import * as i0 from '@angular/core'; import { OnInit, OnDestroy, AfterViewInit, EventEmitter, QueryList, NgZone, OnChanges, ElementRef, Injector, SimpleChanges, ChangeDetectorRef, InjectionToken, AfterContentInit, TemplateRef, PipeTransform, Type, Renderer2, ViewContainerRef, Signal } from '@angular/core'; import * as rxjs from 'rxjs'; import { Observable, BehaviorSubject, Subject, ReplaySubject, Subscription } from 'rxjs'; import * as i2$1 from '@sunbird-cb/resolver-v2'; import { NsWidgetResolver, WidgetBaseComponent } from '@sunbird-cb/resolver-v2'; import * as i27$1 from '@angular/material/tabs'; import { MatTabGroup, MatTabChangeEvent } from '@angular/material/tabs'; import * as i19$1 from '@angular/common/http'; import { HttpClient, HttpErrorResponse } from '@angular/common/http'; import * as i11$1 from '@sunbird-cb/utils-v2'; import { ConfigurationsService as ConfigurationsService$1, IndexedDbService, WidgetEnrollService, NsInstanceConfig, NsAppsConfig, IUserPreference, NsUser, IPortalUrls, NsPage, UtilityService, LoggerService, EventService, ValueService, TelemetryService, MultilingualTranslationsService as MultilingualTranslationsService$1, DomainConfService, NsContent as NsContent$1 } from '@sunbird-cb/utils-v2'; import * as i29 from '@ngx-translate/core'; import { TranslateService } from '@ngx-translate/core'; import * as i4 from '@angular/router'; import { Router, ActivatedRoute } from '@angular/router'; import * as i2 from '@angular/common'; import { DatePipe, Location } from '@angular/common'; import * as i9 from '@angular/material/button'; import * as i3 from '@angular/material/icon'; import * as i6 from '@angular/material/progress-spinner'; import * as i7 from '@angular/material/toolbar'; import * as i10 from '@angular/material/tooltip'; import * as i11 from '@angular/material/list'; import * as i12 from '@angular/material/sidenav'; import * as i13 from '@angular/material/card'; import * as i14 from '@angular/material/expansion'; import * as i15 from '@angular/material/radio'; import * as i16 from '@angular/material/chips'; import * as i17 from '@angular/material/input'; import * as i18 from '@angular/material/form-field'; import * as i19 from '@angular/material/dialog'; import { MatDialogRef, MatDialog } from '@angular/material/dialog'; import * as i20 from '@angular/material/snack-bar'; import { MatSnackBar, MatSnackBarRef } from '@angular/material/snack-bar'; import * as i21 from '@angular/material/select'; import * as i22 from '@angular/material/datepicker'; import * as i23 from '@angular/material/core'; import * as i24 from '@angular/material/table'; import { MatTableDataSource } from '@angular/material/table'; import * as i25 from '@angular/material/checkbox'; import { MatCheckboxChange } from '@angular/material/checkbox'; import * as i26 from '@angular/material/button-toggle'; import * as i27 from '@angular/material/slide-toggle'; import * as i28 from '@angular/material/autocomplete'; import { BreakpointObserver } from '@angular/cdk/layout'; import * as i3$1 from '@angular/forms'; import { FormGroup, FormBuilder, FormArray, AbstractControl, FormControl, UntypedFormBuilder, UntypedFormGroup, UntypedFormControl } from '@angular/forms'; import * as i15$1 from '@angular/material/stepper'; import { MatStepper } from '@angular/material/stepper'; import { ClassicEditor } from 'ckeditor5'; import * as i32 from '@ckeditor/ckeditor5-angular'; import { ChangeEvent } from '@ckeditor/ckeditor5-angular'; import * as _angular_platform_browser from '@angular/platform-browser'; import { SafeHtml, SafeResourceUrl, DomSanitizer } from '@angular/platform-browser'; import * as i7$1 from '@angular/material/menu'; import * as i16$1 from '@angular/material/paginator'; import { MatPaginator, PageEvent } from '@angular/material/paginator'; import { StepperSelectionEvent } from '@angular/cdk/stepper'; import * as i3$2 from '@angular/material/progress-bar'; import { TranslateHttpLoader } from '@ngx-translate/http-loader'; import * as i56 from '@angular/cdk/drag-drop'; import { CdkDragDrop } from '@angular/cdk/drag-drop'; import * as i9$1 from '@angular/material/bottom-sheet'; import { MatBottomSheetRef } from '@angular/material/bottom-sheet'; import * as i8 from '@angular/material/divider'; declare class ConsumptionService { constructor(); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class ConsumptionComponent implements OnInit { constructor(); ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare function HttpLoaderFactory(http: HttpClient): TranslateHttpLoader; declare namespace NsContent { export interface IContinueLearningData extends IContent { continueData: any; } export interface IContinueLearningDataReq { request: { userId: string | undefined; courseId: string; contentIds: string[]; batchId: string | undefined | null; fields?: string[]; }; } export interface IContent { platform?: any; addedOn: string; appIcon: string; artifactUrl: string; averageRating?: any; batches?: any; batch?: any; body?: string; certificationList?: IRelatedContentMeta[]; certificationStatus?: TCertificationStatus; certificationSubmissionDate?: string; certificationUrl: string; childNodes?: string[]; children: IContent[]; childrenClassifiers?: string[]; clients?: IClient[]; collections?: IContent[]; completionPercentage?: number | null; completionStatus?: number; difficultyLevel: string; contentId: string; contentType: EContentTypes; contentUrlAtSource: string; creatorContacts: ICreator[]; creatorDetails: ICreator[]; creatorLogo: string; creatorPosterImage: string; creatorThumbnail: string; curatedTags: string[]; description: string; displayContentType: EDisplayContentTypes; downloadUrl?: string; duration: number; enrolledDate?: string; exclusiveContent?: boolean; expiryDate?: string; equivalentCertifications?: IRelatedContentMeta[]; hasAccess: boolean; hasAssessment?: string; idealScreenSize?: string; identifier: string; introductoryVideo?: string; introductoryVideoIcon?: string; learningTrack?: string; isExternal: boolean; isIframeSupported: 'Yes' | 'No' | 'Maybe'; isInIntranet?: boolean; keywords?: string[]; kArtifacts?: IRelatedContentMeta[]; lastContentAccessTime?: string; lastUpdatedOn: string; learningMode?: TLearningMode; learningObjective: string; labels?: string[]; locale?: string; hasTranslations?: { identifier: string; locale: string; }[]; isTranslationOf?: { identifier: string; locale: string; }[]; me_totalSessionsCount: number; mediaType: string; mimeType: EMimeTypes; msArtifactDetails?: IMSArtifactDetails; mode?: ETagType; name: string; nextCertificationAttemptDate?: string; playgroundInstructions?: string; playgroundResources?: IResourcePlayground[]; postContents?: IPrePostContent[]; posterImage?: string; preContents?: IPrePostContent[]; preRequisites: string; price?: { currency: string; value: number; }; primaryCategory: EPrimaryCategory; proctorUrl?: string; progress?: IMarkAsCompleteProgress; publishedOn: string; recentCertificationAttemptScore?: number; recommendationReasons?: string[]; region?: string[]; registrationUrl?: string; registrationInstructions?: string; resourceCategory?: string[]; resourceType: string; size?: number; skills: ISkill[]; softwareRequirements?: IResourceDetail[]; sourceName: string; sourceShortName: string; sourceIconUrl?: string; sourceUrl?: string; ssoEnabled?: boolean; lastReadContentId?: string; status: 'Draft' | 'InReview' | 'QualityReview' | 'Reviewed' | 'Processing' | 'Live' | 'Deleted' | 'MarkedForDeletion' | 'Expired'; subTitle?: string; subTitles?: ISubtitle[]; studyMaterials?: IRelatedContentMeta[]; systemRequirements?: string[]; tags: ITag[]; topics: IContentTopic[]; totalLikes?: { [key: string]: number; }; totalRating?: number; track: ITrack[]; uniqueLearners?: number; viewCount?: { [key: string]: number; }; reason?: string; trainingLHubCount?: number; verifiers?: { name: string; email: string; id: string; }[]; references?: { url: string; title: string; }[]; resumePage?: number; [key: string]: any; optionalReading: boolean; additionalTags?: string[]; cType: string; contentVersionInfo: any; } export interface IContentResponse { id: string; params: any; responseCode: string; result: { content: IContent; }; ts: string; ver: string; } export interface IBatch { batchId: string; createdBy: string; endDate: string | null; enrollmentType: string; identifier: string; name: string; startDate: string; status: number; cert_templates?: null; collectionId: string; courseId: string; createdDate: string; createdFor: string[]; description?: null; enrollmentEndDate: string | null; id: string; mentors?: string[] | null; tandc?: null; updatedDate?: string | null; } export interface IBatchListResponse { content?: IBatch[]; count?: number; enrolled?: boolean; workFlow?: { wfInitiated?: boolean; batch?: any; wfItem?: any; }; } export interface ICourse { active: true; addedBy: string; batch: IBatch; batchId: string; certificates: []; collectionId: string; completedOn: string | null; completionPercentage: number | null; completionStatus?: number; content: IContent; contentId: string; contentStatus: any; courseId: string; courseLogoUrl: string; courseName: string; dateTime: number; description: string; enrolledDate: string; issuedCertificates: []; lastContentAccessTime?: string; lastReadContentId?: string; lastReadContentStatus: string | null; leafNodesCount: number; progress: number; status: number; userId: string; } export interface IContentMinimal { appIcon: string; artifactUrl: string; difficultyLevel: string; contentType: EContentTypes; description: string; displayContentType?: EDisplayContentTypes; duration: number; identifier: string; hasAccess?: boolean; isInIntranet?: boolean; learningMode?: TLearningMode; mimeType: EMimeTypes; name: string; creatorDetails: ICreator[]; creatorContacts: ICreator[]; posterImage: string; primaryCategory: EPrimaryCategory; resourceType?: string; totalRating?: number; } export interface ICollectionHierarchyResponse { data: IContent; hasMore: boolean; totalContents: number; } export interface IRelatedContentMeta { identifier: string; name: string; } type TCertificationStatus = 'ongoing' | 'passed' | 'canAttempt' | 'cannotAttempt'; export type TLearningMode = 'Self-Paced' | 'Instructor-Led' | 'Open' | 'Closed'; interface IMarkAsCompleteProgress { progressStatus: 'open' | 'started' | 'completed'; showMarkAsComplete: boolean; markAsCompleteReason: string; progressSupported: boolean; progress: number | null; } interface ITag { id: string; type: string; value: string; } interface IMSArtifactDetails { channelId: string; videoId: string; } interface IClient { displayName: string; id: string; name: string; } interface ISubtitle { srclang: string; label: string; url: string; } interface IPrePostContent { identifier: string; name: string; } interface IResourceDetail { title?: string; url?: string; } interface IResourcePlayground { appIcon: string; artifactUrl: string; identifier: string; name: string; } interface ITrack { id: string; name: string; status: string; visibility: string; } interface ISkill { id: string; category: string; skill: string; name: string; } export interface ICreator { id: string; name: string; email: string; } export interface IContentTopic { identifier: string; name: string; } export interface IContact { id: string; name: string; email: string; } export interface IViewerContinueLearningRequest { resourceId: string; contextPathId: string; data: string; dateAccessed: number; contextType?: string; } /** * @deprecated Enum EContentTypes should not be used in future */ export enum EContentTypes { PROGRAMV2 = "Program", PROGRAM = "Learning Path", CHANNEL = "Channel", COURSE = "Course", KNOWLEDGE_ARTIFACT = "Knowledge Artifact", KNOWLEDGE_BOARD = "Knowledge Board", LEARNING_JOURNEY = "Learning Journeys", MODULE = "CourseUnit", RESOURCE = "Resource" } export enum EPrimaryCategory { PROGRAM = "Program", COURSE = "Course", MODULE = "Course Unit", RESOURCE = "Learning Resource", GOALS = "GOALS", PLAYLIST = "PLAYLIST", PRACTICE_RESOURCE = "Practice Question Set", FINAL_ASSESSMENT = "Course Assessment", COMP_ASSESSMENT = "Competency Assessment", FTB_QUESTION = "FTB Question", MTF_QUESTION = "MTF Question", MULTIPLE_CHOICE_QUESTION = "Multiple Choice Question", SINGLE_CHOICE_QUESTION = "Single Choice Question", MANDATORY_COURSE_GOAL = "Mandatory Course Goal", STANDALONE_ASSESSMENT = "Standalone Assessment", BLENDED_PROGRAM = "Blended Program", OFFLINE_SESSION = "Offline Session", CURATED_PROGRAM = "Curated Program", /** * @deprecated The type should not be used */ KNOWLEDGE_ARTIFACT = "Knowledge Artifact", /** * @deprecated The type should not be used */ KNOWLEDGE_BOARD = "Knowledge Board", /** * @deprecated The type should not be used */ LEARNING_JOURNEY = "Learning Journeys", /** * @deprecated The type should not be used */ CHANNEL = "Channel" } export enum ECourseCategory { INVITE_ONLY_PROGRAM = "Invite-Only Program", MODERATED_PROGRAM = "Moderated Program", BLENDED_PROGRAM = "Blended Program", CURATED_PROGRAM = "Curated Program", COURSE = "Course", MODERATED_COURSE = "Moderated Course", STANDALONE_ASSESSMENT = "Standalone Assessment", MODERATED_ASSESSEMENT = "Moderated Assessment", COMPREHENSIVE_ASSESSMENT_PROGRAM = "Comprehensive Assessment Program", MULTILINGUAL_COURSE = "Multilingual Course" } export enum WFBlendedProgramStatus { INITIATE = "INITIATE", SEND_FOR_MDO_APPROVAL = "SEND_FOR_MDO_APPROVAL", SEND_FOR_PC_APPROVAL = "SEND_FOR_PC_APPROVAL", APPROVED = "APPROVED", REJECTED = "REJECTED", WITHDRAWN = "WITHDRAWN", REMOVED = "REMOVED", WITHDRAW = "WITHDRAW" } export enum WFBlendedProgramApprovalTypes { ONE_STEP_PC = "oneStepPCApproval", ONE_STEP_MDO = "oneStepMDOApproval", TWO_STEP_MDO_PC = "twoStepMDOAndPCApproval", TWO_STEP_PC_MDO = "twoStepPCAndMDOApproval" } export const WFSTATUS_MSG_MAPPING: any; export enum EResourcePrimaryCategories { LEARNING_RESOURCE = "Learning Resource", PRACTICE_RESOURCE = "Practice Question Set", FINAL_ASSESSMENT = "Course Assessment", COMP_ASSESSMENT = "Competency Assessment", OFFLINE_SESSION = "Offline Session" } export enum EMiscPlayerSupportedCollectionTypes { PLAYLIST = "Playlist" } export const PLAYER_SUPPORTED_COLLECTION_TYPES: string[]; export const KB_SUPPORTED_CONTENT_TYPES: EPrimaryCategory[]; export const PLAYLIST_SUPPORTED_CONTENT_TYPES: EPrimaryCategory[]; export enum EMimeTypes { COLLECTION = "application/vnd.ekstep.content-collection", ZIP = "application/vnd.ekstep.html-archive", ZIP2 = "application/vnd.ekstep.ecml-archive", HTML = "application/html", HTML_TEXT = "text/html", ILP_FP = "application/ilpfp", IAP = "application/iap-assessment", M4A = "audio/m4a", MP3 = "audio/mpeg", MP4 = "video/mp4", M3U8 = "application/x-mpegURL", INTERACTION = "video/interactive", PDF = "application/pdf", QUIZ = "application/quiz", DRAG_DROP = "application/drag-drop", HTML_PICKER = "application/htmlpicker", WEB_MODULE = "application/web-module", WEB_MODULE_EXERCISE = "application/web-module-exercise", YOUTUBE = "video/x-youtube", HANDS_ON = "application/integrated-hands-on", RDBMS_HANDS_ON = "application/rdbms", CLASS_DIAGRAM = "application/class-diagram", CHANNEL = "application/channel", COLLECTION_RESOURCE = "resource/collection", APPLICATION_JSON = "application/json", PRACTICE_RESOURCE = "application/vnd.sunbird.questionset", FINAL_ASSESSMENT = "application/vnd.sunbird.questionset", OFFLINE_SESSION = "application/offline", CERTIFICATION = "application/certification", PLAYLIST = "application/playlist", TEXT_WEB = "text/x-url", SURVEY = "application/survey", QUESTION_SET = "application/vnd.sunbird.questionset", QUESTION = "application/vnd.sunbird.question", UNKNOWN = "application/unknown" } export enum EDisplayContentTypes { ASSESSMENT = "ASSESSMENT", STANDALONE_ASSESSMENT = "STANDALONE ASSESSMENT", PRACTICE_RESOURCE = "Practice Question Set", FINAL_ASSESSMENT = "Course Assessment", AUDIO = "AUDIO", CERTIFICATION = "CERTIFICATION", CHANNEL = "Channel", CLASS_DIAGRAM = "CLASS_DIAGRAM", COURSE = "COURSE", DEFAULT = "DEFAULT", DRAG_DROP = "DRAG_DROP", EXTERNAL_CERTIFICATION = "EXTERNAL_CERTIFICATION", EXTERNAL_COURSE = "EXTERNAL_COURSE", GOALS = "GOALS", HANDS_ON = "HANDS_ON", IAP = "IAP", INSTRUCTOR_LED = "INSTRUCTOR_LED", INTERACTIVE_VIDEO = "INTERACTIVE_VIDEO", KNOWLEDGE_ARTIFACT = "KNOWLEDGE_ARTIFACT", MODULE = "MODULE", PDF = "PDF", SURVEY = "SURVEY", PLAYLIST = "PLAYLIST", PROGRAM = "PROGRAM", QUIZ = "QUIZ", RESOURCE = "RESOURCE", RDBMS_HANDS_ON = "RDBMS_HANDS_ON", VIDEO = "VIDEO", WEB_MODULE = "WEB_MODULE", WEB_PAGE = "WEB_PAGE", YOUTUBE = "YOUTUBE", LINK = "LINK", KNOWLEDGE_BOARD = "Knowledge Board", LEARNING_JOURNEY = "Learning Journeys", BLENDED_PROGRAM = "BLENDED PROGRAM", CURATED_PROGRAM = "CURATED PROGRAM", SAMUHIK_CHARCHA = "Samuhik Charcha" } export enum EFilterCategory { ALL = "ALL", LEARN = "LEARN", PRACTICE = "PRACTICE", ASSESS = "ASSESS" } export enum ETagType { NEWLY_ADDED = "NEWLY ADDED" } export const UN_SUPPORTED_DATA_TYPES_FOR_NON_BATCH_USERS: string[]; export const PUBLIC_SUPPORTED_CONTENT_TYPES: EMimeTypes[]; export {}; } declare namespace NsCardContent { interface ICard { content: NsContent.IContent; cardSubType: TCardSubType; context: { pageSection: string; position?: number; }; intranetMode?: 'greyOut' | 'hide'; deletedMode?: 'greyOut' | 'hide'; likes?: number; contentTags?: IContentTags; stateData: any; cardCustomeClass?: any; sakshamAIGenerated?: string; publicCard?: any; isiGOTSpecialization?: any; retired?: boolean; } interface IContentTags { daysSpan?: number; excludeContentType?: NsContent.EContentTypes[]; excludeMimeType?: string[]; tag: string; criteriaField?: string; } type TCardSubType = 'standard' | 'minimal' | 'space-saving' | 'card-user-details' | 'basic-info' | 'basic-details' | 'card-description-back' | 'network-card' | 'user-card'; enum EContentStatus { LIVE = "Live", EXPIRED = "Expired", DELETED = "Deleted", MARK_FOR_DELETION = "MarkedForDeletion" } enum ACBPConst { UPCOMING = "upcoming", ALL = "All", OVERDUE = "overdue", SUCCESS = "success" } enum IGOTConst { COMPETENCIES = "competencies_v5", RETIRED = "Retired" } } declare namespace NSSearch { interface IFeatureSearchConfig { tabs: IConfigContentStrip[]; } interface IFilterSearchRequest { contentType?: NsContent.EContentTypes[]; creatorContacts?: string[]; labels?: string[]; resourceCategory?: string[]; catalogPaths?: string[]; } interface ISearchRequest { filters?: IFilterSearchRequest; query?: string; isStandAlone?: boolean; instanceCatalog?: boolean; locale?: string[]; pageNo?: number; pageSize?: number; uuid?: string; rootOrg?: string; sort?: { [key: string]: string; }[]; } interface ISearchOrgRegionRecommendationRequest extends ISearchRequest { defaultLabel?: string; preLabelValue?: string; } interface ISearchV6Request { visibleFilters?: ISearchV6VisibleFilters; excludeSourceFields?: string[]; includeSourceFields?: string[]; sort?: ISearchSort[]; query: string; sourceFields?: string[]; locale?: string[]; pageNo?: number; pageSize?: number; filters?: ISearchV6Filters[]; isStandAlone?: boolean; didYouMean?: boolean; request?: ISearchV6Request; api?: { path: string; type?: string; }; } interface ISearchV6RequestV2 { request: { filters: { primaryCategory: any; }; query: string; sort_by: { lastUpdatedOn: string; }; fields: string[]; facets: string[]; fuzzy?: false; }; } interface ISearchV6RequestV3 { request: { secureSettings?: boolean; filters: { primaryCategory?: string[]; courseCategory?: string[]; contentType?: string[]; status: string[]; organisation?: any; 'secureSettings.isVerifiedKarmayogi'?: string; 'secureSettings.organisation'?: string; }; query: string; sort_by: { lastUpdatedOn: string; }; facets: string[]; limit: number; }; } interface ISearchSort { [key: string]: 'asc' | 'desc'; } interface ISearchV6VisibleFilters { [key: string]: { displayName: string; order?: { [key: string]: 'asc' | 'desc'; }[]; }; } interface ISearchV6Filters { andFilters?: { [key: string]: string[]; }[]; notFilters?: { [key: string]: string[]; }[]; } interface ISearchRedirection { f?: { [index: string]: string[]; }; q?: string; tab?: string; } interface IConfigContentStrip { titleKey?: string; title?: string; reqRoles?: string[]; reqFeatures?: string[]; searchRedirection?: ISearchRedirection; searchQuery?: ISearchRequest; contentIds?: string[]; } interface ISearchApiResult { totalHits: number; result: NsContent.IContent[]; filters: IFilterUnitResponse[]; notToBeShownFilters?: IFilterUnitResponse[]; filtersUsed: string[]; } interface ISearchV6ApiResult { totalHits: number; result: NsContent.IContent[]; filtersUsed: string[]; notVisibleFilters: string[]; filters: IFilterUnitResponse[]; queryUsed?: string; doYouMean?: string; } interface IFilterUnitResponse { id?: string; type: string; displayName: string; content: IFilterUnitContent[]; } interface IFilterUnitContent { type?: string; id?: string; displayName: string; count: number; children?: IFilterUnitContent[]; } interface ITypeUnitResponse { displayName: string; type: string; count: string; } interface ISearchV6ApiResultV2 { totalHits: number; id: string; ver: string; ts: string; params: IParamsContent; responseCode: string; result: ISearchData; filters: IFilterUnitResponse[]; api: string; } interface IFacet { displayName: string; type: string; content: IContentFilter[]; } interface IContentFilter { displayName: string; type: string; count: number; id: string; } interface ISearchData { count: number; content: NsContent.IContent[]; facets: IFacetsData[]; } interface IFacetsData { values: IFacetsValues[]; name: string; } interface IFacetsValues { name: string; count: number; } interface ISearchContentData { ownershipType: string[]; parent: string; code: string; credentials: { enabled: string; }; channel: string; downloadUrl: string; language: string[]; mimeType: string; variants: IVariantsData; idealScreenSize: string; leafNodes: string[]; createdOn: string; objectType: string; primaryCategory: string; children: string[]; contentDisposition: string; lastUpdatedOn: string; contentEncoding: string; contentType: string; dialcodeRequired: string; trackable: { enabled: string; autoBatch: string; }; identifier: string; lastStatusChangedOn: string; audience: string[]; os: string[]; visibility: string; index: number; mediaType: string; osId: string; languageCode: string[]; graph_id: string; nodeType: string; version: number; pkgVersion: number; versionKey: string; license: string; idealScreenDensity: string; depth: number; lastPublishedOn: string; compatibilityLevel: number; leafNodesCount: number; name: string; status: string; node_id: number; } interface IVariantsData { online: { ecarUrl: string; size: number; }; spine: { ecarUrl: string; size: number; }; } interface IParamsContent { resmsgid: string; msgid: string; status: string; err: string; errmsg: string; } } declare namespace NsContentStripWithTabs { export interface IContentStripMultiple { errorWidget?: NsWidgetResolver.IRenderConfigWithAnyData; loader?: boolean; noDataWidget?: NsWidgetResolver.IRenderConfigWithAnyData; strips: IContentStripUnit[]; isChannelStrip?: boolean; enabled?: boolean; } export interface IContentStripUnit { disableTranslate?: any; key: string; title: string; secondaryTitle?: string; titleClass?: string; customeClass?: string; nodataMsg?: string; stripTitleLink?: { link: { queryParams: string; }; icon: string; queryParams: string; }; sliderConfig?: { showNavs: boolean; showDots: boolean; maxWidgets?: number; cerificateCardMargin?: boolean; dotsAlign?: "right" | "left"; arrowsPlacement?: "bottom-right" | "bottom-center" | "bottom-left" | "middle-inline"; responsive?: { showNavs: boolean; showDots: boolean; dotsAlign?: "right" | "left"; arrowsPlacement?: "bottom-right" | "bottom-center" | "bottom-left" | "middle-inline"; }; }; tabsType?: string; tabs?: NsContentStripWithTabs.IContentStripTab[] | undefined; titleDescription?: string; name?: string; mode?: 'accordion'; info?: IStripInfo; logo?: string; stripInfo: any; preWidgets?: NsWidgetResolver.IRenderConfigWithAnyData[]; postWidgets?: NsWidgetResolver.IRenderConfigWithAnyData[]; stripConfig?: IStripConfig; canHideStrip?: boolean; filters?: any[]; selectAll?: boolean | null; request?: { myEvents?: any; playlistRead: any; playlistSearch?: any; ciosContent?: any; search?: NSSearch.ISearchRequest; searchV6?: NSSearch.ISearchV6Request; topContent?: any; featureContent?: any; bookmarkRead?: any; enrollmentList?: any; cbpList?: any; apiUrl: string; condition: string; searchRegionRecommendation?: NSSearch.ISearchOrgRegionRecommendationRequest; api?: IStripRequestApi; networkApi?: INetworkRequestApi; ids?: string[]; recommendedCourses?: any; masterCompetency?: any; trendingSearch?: any; fetchData?: string; payloda?: any; hasIdentifiersApi?: boolean; identifiersApiUrl?: string; }; searchV6Type?: 'KB' | 'Collections' | 'searchQuery' | null; stripBackground?: string; noDataWidget?: NsWidgetResolver.IRenderConfigWithAnyData; loader?: boolean; loaderWidgets?: any; errorWidget?: NsWidgetResolver.IRenderConfigWithAnyData; refreshEvent?: Record<'eventType' | 'from', string>; fetchLikes?: boolean; secondaryHeading?: any; viewMoreUrl?: { queryParams?: any; viewMoreText: string; path: string; }; data?: []; } export interface IStripRequestApi { path: string; queryParams?: { pageNo?: number; pageSize?: number; pageState?: string; sourceFields?: string; }; } export interface INetworkRequestApi { path: string; data?: any; } export interface IStripInfo { mode: 'below' | 'popup' | 'modal'; visibilityMode?: 'hidden' | 'visible'; icon: { icon: string; scale: number; style?: any; }; widget: NsWidgetResolver.IRenderConfigWithAnyData; } interface IStripConfig { cardSubType: NsCardContent.TCardSubType; postCardForSearch?: boolean; intranetMode?: 'greyOut' | 'hide'; deletedMode?: 'greyOut' | 'hide'; contentTags?: IContentTags; hideShowAll?: boolean; publicCard?: any; } export interface IContentTags { daysSpan?: number; excludeContentType?: NsContent.EContentTypes[]; excludeMimeType?: string[]; tag: string; criteriaField: string; } export interface IContentStripResponseApi { contents: NsContent.IContent[]; hasMore?: boolean; pageState?: string; totalHits?: number; } export interface IContentStripTab { label: string; value: string; showTabDataCount: boolean; requestRequired?: boolean; computeDataOnClick?: boolean; computeDataOnClickKey?: string; request?: any; widgets?: NsWidgetResolver.IRenderConfigWithAnyData[]; maxWidgets?: number; fetchTabStatus?: string; nodataMsg?: string; tabLoading?: boolean; stripConfig?: IStripConfig; customeClass?: string; disableTranslate?: boolean; contentShuffel?: boolean; hideTab?: boolean; } export {}; } declare namespace NsContentStripMultiple { export interface IContentStripMultiple { errorWidget?: NsWidgetResolver.IRenderConfigWithAnyData; loader?: boolean; noDataWidget?: NsWidgetResolver.IRenderConfigWithAnyData; strips: IContentStripUnit[]; isChannelStrip?: boolean; } export interface IContentStripUnit { key: string; title: string; customeClass?: string; name?: string; mode?: 'accordion'; info?: IStripInfo; viewMoreUrl?: { queryParams?: any; path?: string; viewMoreText?: string; }; preWidgets?: NsWidgetResolver.IRenderConfigWithAnyData[]; postWidgets?: NsWidgetResolver.IRenderConfigWithAnyData[]; stripConfig?: IStripConfig; canHideStrip?: boolean; filters?: any[]; selectAll?: boolean | null; request?: { search?: NSSearch.ISearchRequest; searchV6?: NSSearch.ISearchV6Request; searchRegionRecommendation?: NSSearch.ISearchOrgRegionRecommendationRequest; api?: IStripRequestApi; ids?: string[]; enrollmentList?: any; comprelatedCbp?: any; recommendedCourses?: any; masterCompetency?: any; mandatoryCourses?: any; basedOnInterest?: any; microsoftCourses?: any; DAKSHTACourses?: any; prarambhCourse?: any; curatedCollections?: any; moderatedCourses?: any; }; searchV6Type?: 'KB' | 'Collections' | 'searchQuery' | null; stripBackground?: string; noDataWidget?: NsWidgetResolver.IRenderConfigWithAnyData; loader?: boolean; errorWidget?: NsWidgetResolver.IRenderConfigWithAnyData; refreshEvent?: Record<'eventType' | 'from', string>; fetchLikes?: boolean; } export interface IContentStripUnitV2 { key: string; title: string; name?: string; mode?: 'accordion'; info?: IStripInfo; viewMoreUrl?: { queryParams?: any; path?: string; }; preWidgets?: NsWidgetResolver.IRenderConfigWithAnyData[]; postWidgets?: NsWidgetResolver.IRenderConfigWithAnyData[]; stripConfig?: IStripConfig; canHideStrip?: boolean; filters?: any[]; selectAll?: boolean | null; request?: { search?: NSSearch.ISearchRequest; searchV6?: NSSearch.ISearchV6RequestV2; searchRegionRecommendation?: NSSearch.ISearchOrgRegionRecommendationRequest; api?: IStripRequestApi; ids?: string[]; enrollmentList?: any; }; searchV6Type?: 'KB' | 'Collections' | 'searchQuery' | null; stripBackground?: string; noDataWidget?: NsWidgetResolver.IRenderConfigWithAnyData; loader?: boolean; errorWidget?: NsWidgetResolver.IRenderConfigWithAnyData; refreshEvent?: Record<'eventType' | 'from', string>; fetchLikes?: boolean; } export interface IStripRequestApi { path: string; queryParams?: { pageNo?: number; pageSize?: number; pageState?: string; sourceFields?: string; }; } export interface IStripInfo { mode: 'below' | 'popup' | 'modal'; visibilityMode?: 'hidden' | 'visible'; icon: { icon: string; scale: number; style?: any; }; widget: NsWidgetResolver.IRenderConfigWithAnyData; } interface IStripConfig { cardSubType: NsCardContent.TCardSubType; postCardForSearch?: boolean; intranetMode?: 'greyOut' | 'hide'; deletedMode?: 'greyOut' | 'hide'; contentTags?: IContentTags; } export interface IContentTags { daysSpan?: number; excludeContentType?: NsContent.EContentTypes[]; excludeMimeType?: string[]; tag: string; criteriaField: string; } export interface IContentStripResponseApi { contents: NsContent.IContent[]; hasMore?: boolean; pageState?: string; totalHits?: number; } export {}; } interface IUserGroupDetails { group_id: number; friendly_name: string; description: string; } declare class ContentDictionaryService { private http; private configSvc; private appDb; private dictionaryRequest; constructor(http: HttpClient, configSvc: ConfigurationsService$1, appDb: IndexedDbService); private dbGet; private dbPut; private isCacheValid; private saveCacheTimestamp; /** * Returns the full dictionary (keyed by do_id). * Serves from IndexedDB when the cache is still valid, otherwise fetches from the API. * @param forceRefresh bypass cache and always call the API */ getDictionary(forceRefresh?: boolean): Observable>; private getDictionaryAsync; private fetchAndCacheDictionary; private requestDictionary; private isDictionaryEnabled; /** * The dictionary used to look a content up. Nothing preloads it, so the first lookup * downloads it (when enabled via global-config apis.content.dictionary) and later lookups * are served from IndexedDB until it expires. Disabled, or when the download fails, * whatever is already cached is used and lookups fall through to content read. */ private lookupDictionary; /** * Returns a single content item by do_id. * Lookup order: dictionary (fetched on first use) → individual IndexedDB entry → content read API. * When fetched from the API the result is saved to IndexedDB and merged into the dictionary. */ getContent(doId: string): Observable; private getContentAsync; private resolveMissingContent; /** * Bulk variant of getContent(). Resolves many do_ids with at most ONE dictionary * fetch instead of one lookup per id. * * Prefer this over forkJoin(ids.map(id => getContent(id))): getContent() re-reads the * whole dictionary blob per id, and on a cold cache each miss issues its own content-read * plus a read-modify-write of the shared blob, so concurrent misses overwrite each other. * Misses are resolved sequentially here for that reason. * * @returns map of do_id -> content metadata; ids that cannot be resolved are omitted. */ getContents(doIds: string[]): Observable>; private getContentsAsync; /** Clears IndexedDB store and resets the cache timestamp. */ clearCache(): Observable; private clearCacheAsync; /** Returns diagnostic information about the current cache state. */ getCacheStats(): Promise<{ itemCount: number; lastUpdate: string | null; cacheAge: number; expiryTime: number; }>; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } interface ICbpCacheEntry { planYear: string; cachedAt: number; data: any[]; } declare class CbpPlanCacheService { private configSvc; private appDb; /** Emits whenever a plan year's cache is written, so subscribers refresh without polling. */ private planMapUpdates; constructor(configSvc: ConfigurationsService$1, appDb: IndexedDbService); /** * Financial year runs April -> March, formatted as YYYY-YY. * e.g. Aug 2026 -> '2026-27', Feb 2027 -> '2026-27'. */ getCurrentFinancialYear(date?: Date): string; get expirySeconds(): number; isEntryValid(entry: ICbpCacheEntry | undefined): boolean; /** * Returns the raw cache entry for a plan year, fresh or stale. * Callers use isEntryValid() to decide, so a stale entry can still serve as an * API-failure fallback rather than being silently discarded. */ getEntry(planYear: string): Promise; setEntry(planYear: string, data: any[]): Promise; private toPlanMap; /** One-shot read of the cached plan map for a year. Resolves to {} on a miss. */ getPlanMap(planYear?: string): Promise>; /** * Emits the cached plan map for a year immediately, then again each time that * year's cache is rewritten. Replaces the old setInterval polling of cbpData. */ watchPlanMap(planYear?: string): Observable>; /** Clears one plan year, or every plan year when called with no argument. */ clear(planYear?: string): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class WidgetUserServiceLib { private enrollSvc; private configSvc; private contentDictSvc; private cbpCacheSvc; private http; environment: any; enrollmentDataIds: any; constructor(environment: any, enrollSvc: WidgetEnrollService, configSvc: ConfigurationsService$1, contentDictSvc: ContentDictionaryService, cbpCacheSvc: CbpPlanCacheService, http: HttpClient); handleError(error: ErrorEvent): Observable; handleError1(error: ErrorEvent): Observable; fetchUserGroupDetails(userId: string): Observable; fetchUserBatchList(userId: string | undefined, queryParams?: { orgdetails: any; licenseDetails: any; fields: any; batchDetails: any; }): Observable; fetchProfileUserBatchList(userId: string | undefined, queryParams?: { orgdetails: any; licenseDetails: any; fields: any; batchDetails: any; }): Observable; checkStorageData(key: any, dataKey: any): boolean; getData(key: any): Observable; /** * CBP plan data for a plan year, read from IndexedDB (iGotAppDB/cbpPlans). * * Previously read localStorage['cbpData'], which no longer holds CBP plan data. * The legacy 'cbpData' argument is tolerated and treated as "current plan year" * so existing callers keep working. */ getCBPData(planYear?: string): Observable; getSavedData(key: any): Observable; setTime(key: any): void; resetTime(key: any): void; /** * @deprecated CBP retrieval moved to CBPlan V3. Kept only so existing callers keep * compiling; it now delegates to fetchCbpPlanListV3 and never issues the old * GET /apis/proxies/v8/user/v1/cbplan request. Call fetchCbpPlanListV3(planYear) directly * so the selected plan year is honoured — this shim always resolves the current one. */ fetchCbpPlanList(_userId?: string, _callApi?: boolean): Observable; /** * Year-scoped CBP/CVP plan list backed by POST /apis/proxies/v8/cbplan/v3/user/dictionary. * * Replaces the V1 GET flow for the CBP strips. V3 returns only content ids + plan * associations, so metadata comes from the content dictionary and enrolment status * still comes from the existing enrolment API. * * @param planYear financial year as YYYY-YY; defaults to the current one * @param forceRefresh bypass the IndexedDB cache * @param enrichment ask the server to enrich the response with content metadata. * Defaults to OFF, which is what every strip wants: the display fields are taken from * the content dictionary in `enrichCbpWithDictionary` and then reduced to a whitelist, * so the server's enriched fields are read by nobody. Only the CBP plan ("View All") * page opts in. */ fetchCbpPlanListV3(planYear?: string, forceRefresh?: boolean, enrichment?: boolean): Observable; /** Current financial year (April -> March) as YYYY-YY, e.g. '2026-27'. */ getCurrentFinancialYear(): string; /** Clears the cached CBP data for one plan year, or all years when omitted. */ clearCbpPlanCache(planYear?: string): Promise; private fetchCbpPlanListV3Async; /** * Flattens a CBP plan response into one association per content id. * * Handles both response shapes the endpoint returns: * - result.content[] — plan-centric: { id, endDate, isApar, contentList[] } * - result.aparContentList / result.nonAparContentList * — content-centric maps of contentId -> [{ endDate, planId, planType }] * * Either way the same rule applies: when a content id appears in several plans the one * with MAX(endDate) wins, APAR breaking a tie, so the UI never renders the same course * twice. * * The winning plan's own `planType` ("AICBP" for an AI-drafted plan, null otherwise) is * carried through as `planTypeV2` — the same field `getCbpFormatedData` sets — because * `planType` itself is stamped with the constant 'cbPlan'. The Draft CBP Plan strip is * keyed off `planTypeV2`, so dropping it here left that strip empty and filed AI-drafted * courses under Training Plan instead. */ resolveCbpAssociations(result: any): any[]; /** Same overdue/upcoming/success bucketing the V1 flow applied. */ private getPlanDuration; /** * Adds content metadata to each plan association. * Dictionary values are merged UNDER the CBP fields so plan data always wins. */ private enrichCbpWithDictionary; private fetchCbpEnrollmentData; fetchEnrollmentDataByContentId(userId: any, contentdata: any): Observable; getCbpFormatedData(cbpContent: any): { cbpContentData: any[]; contentIds: any[]; }; mapCbpData(cbpContent: any, enrollmentData: any, fullMeta?: boolean): Promise; /** * CBP plan data is no longer mirrored to localStorage['cbpData'] — IndexedDB * (CbpPlanCacheService, iGotAppDB/cbpPlans) is the only CBP cache. */ requiredCBPData(cbpData: any): any[]; /** Reduces CBP items to the fields the cards and tab logic need. Pure — no persistence. */ toReducedCbpData(cbpData: any): any[]; mapEnrollmentData(courseData: any): any; fetchExtEnrollData(): Observable; fetchEventEnrollData(userId: any): Observable; fetchDesignationsData(): any; generateCoursesSakshamAI(apiEndpoint: string, requestBody: any): any; getRecommendedCoursesSakshamAI(userId: string): any; getOrgReadData(organisationId: string): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class ContentLanguageService { constructor(); getAllContentLanguages(content: any): any[]; getBaseLanguage(content: any): any; getSelectedLanguage(content: any): any; getRequiredLanguageDetails(content: any, langId: string): any; getContentLanguage(content: any): any; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class WidgetContentLibService { private http; private configSvc; private userSvc; private contentLanguageSvc; constructor(http: HttpClient, configSvc: ConfigurationsService$1, userSvc: WidgetUserServiceLib, contentLanguageSvc: ContentLanguageService); tocConfigData: any; tocConfigData$: any; oneStepResumeEnable: boolean; telemetryData: any; telemetryData$: any; telemetryEventData: any; telemetryEventData$: any; currentMetaData: NsContent.IContent; currentContentReadMetaData: NsContent.IContent; currentBatchEnrollmentList: NsContent.ICourse[]; programChildCourseResumeData: BehaviorSubject; programChildCourseResumeData$: Observable; releventNotRelevent: Subject<{ isRelevent: boolean; widgetData: any; }>; releventNotRelevent$: Observable<{ isRelevent: boolean; widgetData: any; }>; storedRecommendedIds: any; feedbackDataForCourse: any; isTelementrySubscribed: boolean; changeTelemetryData(message: string): void; changeTelemetryEventData(data: any): void; isResource(primaryCategory: string): boolean; fetchMarkAsCompleteMeta(identifier: string): Promise; updateTocConfig(data: any): void; fetchContent(contentId: string, hierarchyType?: 'all' | 'minimal' | 'detail', _additionalFields?: string[], primaryCategory?: string | null): Observable; fetchAuthoringContent(contentId: string): Observable; fetchMultipleContent(ids: string[]): Observable; fetchCollectionHierarchy(type: string, id: string, pageNumber?: number, pageSize?: number): Observable; fetchBlendedCourse(): void; fetchCourseBatches(req: any): Observable; fetchCourseBatch(batchId: string): Observable; autoAssignBatchApi(identifier: any): Observable; autoAssignCuratedBatchApi(request: any, programType: any): Observable; enrollUserToBatch(req: any): Promise; enrollAndUnenrollUserToBatchWF(req: any, type: any): Promise; fetchBlendedUserWF(req: any): Promise; fetchBlendedUserCOUNT(req: any): Promise; fetchContentLikes(contentIds: { content_id: string[]; }): Promise<{ [identifier: string]: number; }>; fetchContentRatings(contentIds: { contentIds: string[]; }): Promise; fetchContentHistory(contentId: string): Observable; fetchContentHistoryV2(req: NsContent.IContinueLearningDataReq): Observable; continueLearning(id: string, collectionId?: string, collectionType?: string): Promise; saveContinueLearning(content: NsContent.IViewerContinueLearningRequest): Observable; setS3Cookie(_contentId: string): Observable; setS3ImageCookie(): Observable; fetchManifest(url: string): Observable; fetchWebModuleContent(url: string): Observable; search(req: NSSearch.ISearchRequest): Observable; searchRegionRecommendation(req: NSSearch.ISearchOrgRegionRecommendationRequest): Observable; searchV6(req: NSSearch.ISearchV6Request): Observable; searchRequest(req: NSSearch.ISearchV6Request): Observable; searchContentSearch_PROD(req: NSSearch.ISearchV6Request): Observable; searchRelatedCBPV6(req: NSSearch.ISearchV6RequestV2): Observable; fetchContentRating(contentId: string): Observable<{ rating: number; }>; deleteContentRating(contentId: string): Observable; addContentRating(contentId: string, data: { rating: number; }): Observable; getFirstChildInHierarchy(content: NsContent.IContent): NsContent.IContent; getRegistrationStatus(source: string): Promise<{ hasAccess: boolean; registrationUrl?: string; }>; fetchConfig(url: string): Observable; addCertTemplate(body: any): Observable; issueCert(body: any): Observable; downloadCert(certId: any): Observable; trendingContentSearch(req: any): Observable; microContentSearch(url: string): Observable; getKarmaPoitns(limit: number, offset: any): Observable; fetchProgramContent(contentId: string[]): Observable; getCourseKarmaPoints(request: any): Observable; claimKarmapoints(request: any): Observable; userKarmaPoints(): Observable; getEnrolledData(doId: string): Promise; getResourseLink(content: any, enrollmentList?: any, checkForResume?: boolean, baseContentRead?: any, multilingualId?: string): Promise; checkForDataToFormUrl(content: any, enrollData: any, baseContentRead?: any, multilingualId?: string): Promise; getResourseDataWithData(enrollmentData: any, resourceId: any, mimeType: any, content: any, baseContentRead?: any, multilingualId?: string): { url: string; queryParams: { [key: string]: any; }; }; gotoPlayerPage(navigationData: any, content: any, baseContentId: string, resourceId: string, mimeType: any, ml?: string, mlId?: string): { url: string; queryParams: { [key: string]: any; }; }; gotoTocPage(content: any): { url: string; queryParams: { [key: string]: any; }; }; isBatchInProgress(batchData: any): boolean; postApiMethod(apiUrl: any, req: any): Observable; getApiMethod(apiUrl: any): Observable; getEnrolledDataFromList(enrollmentList: any, collectionId: string): any; setReleventNotReleventData(data: { isRelevent: boolean; widgetData: any; }): void; saveFeedbackSakshamAI(requestBody: any): any; setRecommendedIds(recommendedIds: string, userId: string): void; getRecommendedIds(userId: string): any; setFeedbackData(feedbackDataArray: any[]): void; getFeedbackData(courseId: string): any; filterCoursesWithNoRating(response: any, courses: any[]): any[]; setTelementrySubscription(event: boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare namespace NSProfileDataV3 { interface IProfileJsonData { tabs: IProfileTab[]; } interface IProfileTab { name: string; key: string; badges: { enabled: boolean; uri?: string; }; enabled: boolean; check: boolean; routerLink: string; step: number; description: string; largeDesc?: any; allowSkip?: any; } interface ICompetencie { type: string; status: string; source: string; competencySelfAttestedLevel?: string; competencySelfAttestedLevelValue?: string; competencySelfAttestedLevelName?: string; osid?: string; competencyType?: string; description: string; id: string; name: string; competencyLevel?: ICompetencyLevel[]; children?: any[]; competencyCBPCompletionLevel?: string; competencyCBPCompletionLevelName?: string; competencyCBPCompletionLevelValue?: string; } interface ICompetencyLevel { name: string; } interface ITopic { children: any[]; code: string; description: string; identifier: string; index: number; name: string; noOfHoursConsumed: number; status: string; } interface ISearch { type: string; field: string; keyword: string; } interface IDesiredTopic { request: { userId: string; profileDetails: { desiredTopics: string[]; }; }; } interface ISystemTopic { request: { userId: string; profileDetails: { systemTopics: ISystemTopicChield[]; }; }; } interface ISystemTopicChield { identifier: string; name: string; children: []; } interface IRolesAndActivities { id: string; name: string; description: string; activities: IRolesActivity[]; } interface IRolesActivity { description: string; id: string; name: string; } interface IChipItems { name: string; } } declare class ConfigurationsService { constructor(); appSetup: boolean; userUrl: string; baseUrl: string; sitePath: string; hostPath: string; userRoles: Set | null; userGroups: Set | null; restrictedFeatures: Set | null; restrictedWidgets: Set | null; instanceConfig: NsInstanceConfig.IConfig | null; appsConfig: NsAppsConfig.IAppsConfig | null; rootOrg: string | null; courseContentPath?: string; org: string[] | null; activeOrg: string | null; isProduction: boolean; hasAcceptedTnc: boolean; profileDetailsStatus: boolean; isActive: boolean; userPreference: IUserPreference | null; userProfile: NsUser.IUserProfile | null; userProfileV2: NsUser.IUserProfile | null; nodebbUserProfile: NsUser.INodebbUserProfile | null; unMappedUser: any; isAuthenticated: boolean; isNewUser: boolean; portalUrls: IPortalUrls | undefined; positions: any; overrideThemeChanges: any; profileTimelyNudges: any; pinnedApps: BehaviorSubject>; prefChangeNotifier: ReplaySubject>; tourGuideNotifier: ReplaySubject; authChangeNotifier: ReplaySubject; private updateProfile; updateProfileObservable: rxjs.Observable; updateTourGuide: BehaviorSubject; updateTourGuideObservable: rxjs.Observable; updatePlatformRating: BehaviorSubject<{ bottom: string; }>; updatePlatformRatingObservable$: rxjs.Observable<{ bottom: string; }>; languageTranslationFlag: Subject; activeThemeObject: NsInstanceConfig.ITheme | null; activeFontObject: NsInstanceConfig.IFontSize | null; isDarkMode: boolean; isIntranetAllowed: boolean; isRTL: boolean; activeLocale: NsInstanceConfig.ILocalsConfig | null; activeLocaleGroup: string; completedActivity: string[] | null; completedTour: boolean; profileSettings: string[]; primaryNavBar: Partial; pageNavBar: Partial; primaryNavBarConfig: NsInstanceConfig.IPrimaryNavbarConfig | null; welcomeTabs: NSProfileDataV3.IProfileTab | null; cstoken: string; changeNavBarFullView: Subject; openExploreMenuForMWeb: Subject; updateGlobalProfile(state: boolean): void; updateTourGuideMethod(state: boolean): void; updatePlatformRatingMethod(state: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class MultilingualTranslationsService { private translate; private http; private configSvc; selectedLang: string; languageSelected: BehaviorSubject; languageSelectedObservable: rxjs.Observable; editProfileDetails: string; constructor(translate: TranslateService, http: HttpClient, configSvc: ConfigurationsService); getLanguage(): void; translateLabelWithoutspace(label: string, type: any, subtype: any): any; translateLabel(label: string, type: any, subtype: any): any; translateActualLabel(label: string, type: any, subtype: any): any; editProfileDetailsAPI(data: any): rxjs.Observable; updatelanguageSelected(state: any, lang: any, userid: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } interface IStripUnitContentData$2 { key: string; canHideStrip: boolean; mode?: string; showStrip: boolean; disableTranslate: boolean; enabled?: boolean; widgets?: NsWidgetResolver.IRenderConfigWithAnyData[]; stripTitle: string; stripSecondaryTitle?: string; titleClass?: string; stripTitleLink?: { link: { queryParams: string; }; icon: string; queryParams: string; }; sliderConfig?: { showNavs: boolean; showDots: boolean; maxWidgets?: number; cerificateCardMargin?: boolean; }; stripConfig: any; tabsType?: string; tabs?: NsContentStripWithTabs.IContentStripTab[] | undefined; stripName?: string; stripLogo?: string; description?: string; stripInfo?: any; noDataWidget?: NsWidgetResolver.IRenderConfigWithAnyData; errorWidget?: NsWidgetResolver.IRenderConfigWithAnyData; showOnNoData: boolean; showOnLoader: boolean; showOnError: boolean; loaderWidgets?: any; stripBackground?: string; secondaryHeading?: any; viewMoreUrl: any; request?: any; } declare class ContentStripWithTabsLibComponent extends WidgetBaseComponent implements OnInit, OnDestroy, AfterViewInit, NsWidgetResolver.IWidgetData { private contentSvc; private loggerSvc; private eventSvc; private configSvc; utilitySvc: UtilityService; router: Router; private userSvc; private translate; private langtranslations; private enrollSvc; private ngZone; private appDb; widgetData: NsContentStripWithTabs.IContentStripMultiple; emptyResponse: EventEmitter; viewAllResponse: EventEmitter; telemtryResponse: EventEmitter; editStripContent: EventEmitter; toggleSectionVisibility: EventEmitter; removeStrip: EventEmitter; providerId: any; emitViewAll: boolean; channnelName: any; isEdit: boolean; id: string; stripsResultDataMap: { [key: string]: IStripUnitContentData$2; }; stripsKeyOrder: string[]; showAccordionData: boolean; showParentLoader: boolean; showParentError: boolean; showParentNoData: boolean; errorDataCount: number; noDataCount: number; successDataCount: number; contentAvailable: boolean; baseUrl: string; veifiedKarmayogi: boolean; environment: any; changeEventSubscription: Subscription | null; defaultMaxWidgets: number; todaysEvents: any; userEventsAll: any; currentTab: any; moveToNextTab: boolean; currentTabIndex: number; tabGroups: QueryList; private paginationTimers; constructor(environment: any, contentSvc: WidgetContentLibService, loggerSvc: LoggerService, eventSvc: EventService, configSvc: ConfigurationsService$1, utilitySvc: UtilityService, router: Router, userSvc: WidgetUserServiceLib, translate: TranslateService, langtranslations: MultilingualTranslationsService, enrollSvc: WidgetEnrollService, ngZone: NgZone, appDb: IndexedDbService); ngOnInit(): void; ngAfterViewInit(): void; ngOnDestroy(): void; /** * Directly call updatePagination() on each MatTabGroup to recalculate * whether pagination arrows should be shown. Uses staggered delays * to handle async rendering during SPA navigation. */ private triggerTabPaginationUpdate; private clearPaginationTimers; showAccordion(key: string): boolean; setHiddenForStrip(key: string): void; private getIfStripHidden; private initData; private fetchStripFromKey; isStripShowing(data: any): any; get isMobile(): boolean; getdata(data: IStripUnitContentData$2): any; checkCondition(wData: NsContentStripWithTabs.IContentStripMultiple, data: IStripUnitContentData$2): boolean; checkVisible(data: IStripUnitContentData$2): boolean; getContineuLearningLenth(data: IStripUnitContentData$2): number; getLength(data: IStripUnitContentData$2, key?: string): number | true; private getFiltersFromArray; private transformSearchV6FiltersV2; checkForDateFilters(filters: any): any; get todayDate(): string; private fetchStripFromRequestData; fetchFromEnrollmentList(strip: NsContentStripWithTabs.IContentStripUnit, calculateParentStatus?: boolean): void; formatEnrollmentData(strip: any, courses: any, content: any, contentNew: any, tabResults: any, calculateParentStatus: any): void; splitEnrollmentTabsData(contentNew: NsContent.IContent[], strip: NsContentStripWithTabs.IContentStripUnit): any[]; getInprogressAndCompleted(array: NsContent.IContent[], customFilter: any, strip: NsContentStripWithTabs.IContentStripUnit): { value: string; widgets: ({ widgetType: string; widgetSubType: string; widgetHostClass: string; widgetData: { cardSubType: "" | NsCardContent.TCardSubType; cardCustomeClass: string; context: { pageSection: string; position: number; }; intranetMode: "" | "greyOut" | "hide"; deletedMode: "" | "greyOut" | "hide"; contentTags: NsContentStripWithTabs.IContentTags; batch: any; content: NsContent.IContent; }; } | { widgetType: string; widgetSubType: string; widgetHostClass: string; widgetData: {}; })[]; }[]; fetchFromSearchV6(strip: NsContentStripWithTabs.IContentStripUnit, calculateParentStatus?: boolean): Promise; checkInvitOnlyAssessments(content: any, strip: any, calculateParentStatus: any, viewMoreUrl: any, enrollmentData: any): void; getEndDateTime(endDate: any): number; searchV6Request(strip: NsContentStripWithTabs.IContentStripUnit, request: NsContentStripWithTabs.IContentStripUnit['request'], calculateParentStatus: boolean): Promise; fetchFromTrendingContent(strip: NsContentStripWithTabs.IContentStripUnit, calculateParentStatus?: boolean): Promise; trendingSearchRequest(strip: NsContentStripWithTabs.IContentStripUnit, request: NsContentStripWithTabs.IContentStripUnit['request'], calculateParentStatus: boolean): Promise; toggleInfo(data: IStripUnitContentData$2): void; private transformContentsToWidgets; private transformEventsToWidgets; private transformSkeletonToWidgets; private processStrip; private checkParentStatus; checkForEmptyWidget(strip: NsContentStripWithTabs.IContentStripUnit): boolean; tabClicked(tabEvent: any, stripMap: IStripUnitContentData$2, stripKey: string): void; getTabDataByNewReqSearchV6(strip: NsContentStripWithTabs.IContentStripUnit, tabIndex: number, currentTab: NsContentStripWithTabs.IContentStripTab, calculateParentStatus: boolean): Promise; getTabDataByNewReqTrending(strip: NsContentStripWithTabs.IContentStripUnit, tabIndex: number, currentTab: NsContentStripWithTabs.IContentStripTab, calculateParentStatus: boolean): Promise; getTabDataByfilter(strip: NsContentStripWithTabs.IContentStripUnit, currentTab: NsContentStripWithTabs.IContentStripTab, calculateParentStatus: boolean): void; fetchAllCbpPlans(strip: any, calculateParentStatus?: boolean): Promise>; splitCbpTabsData(contentNew: NsContent.IContent[], strip: NsContentStripWithTabs.IContentStripUnit): any[]; getTabsList(array: NsContent.IContent[], strip: NsContentStripWithTabs.IContentStripUnit): { value: string; widgets: ({ widgetType: string; widgetSubType: string; widgetHostClass: string; widgetData: { cardSubType: "" | NsCardContent.TCardSubType; cardCustomeClass: string; context: { pageSection: string; position: number; }; intranetMode: "" | "greyOut" | "hide"; deletedMode: "" | "greyOut" | "hide"; contentTags: NsContentStripWithTabs.IContentTags; batch: any; content: NsContent.IContent; }; } | { widgetType: string; widgetSubType: string; widgetHostClass: string; widgetData: {}; })[]; }[]; getSelectedIndex(stripsResultDataMap: any, key: any): number; translateLabels(label: string, type: any): any; identify(index: number, item: any): any; tracker(index: number, item: any): any; fetchAllTopContent(strip: NsContentStripWithTabs.IContentStripUnit, calculateParentStatus?: boolean): Promise; fetchAllFeaturedContent(strip: NsContentStripWithTabs.IContentStripUnit, calculateParentStatus?: boolean): Promise; getTabDataByNewReqTopContent(strip: NsContentStripWithTabs.IContentStripUnit, tabIndex: number, currentTab: NsContentStripWithTabs.IContentStripTab, calculateParentStatus: boolean): Promise; raiseTelemetry(stripData: any): void; postRequestMethod(strip: NsContentStripWithTabs.IContentStripUnit, request: NsContentStripWithTabs.IContentStripUnit['request'], apiUrl: string, calculateParentStatus: boolean): Promise; getRequestMethod(strip: NsContentStripWithTabs.IContentStripUnit, request: NsContentStripWithTabs.IContentStripUnit['request'], apiUrl: string, calculateParentStatus: boolean): Promise; postMethodFilters(filters: any): any; getFullUrl(apiUrl: any, id: string): string; redirectViewAll(stripData: any, path: string, queryParamsData: any): void; fetchAllBookMarkData(strip: NsContentStripWithTabs.IContentStripUnit, calculateParentStatus?: boolean): Promise; private transformAllContentsToWidgets; private transformAllTabContentsToWidgets; fetchAllPlaylistSearch(strip: NsContentStripWithTabs.IContentStripUnit, calculateParentStatus?: boolean): Promise; fetchPlaylistReadData(strip: NsContentStripWithTabs.IContentStripUnit, calculateParentStatus?: boolean): Promise; getTabDataByNewReqPlaylistReadContent(strip: NsContentStripWithTabs.IContentStripUnit, tabIndex: number, currentTab: NsContentStripWithTabs.IContentStripTab, calculateParentStatus: boolean): Promise; fetchCiosContentData(strip: NsContentStripWithTabs.IContentStripUnit, calculateParentStatus?: boolean): Promise; getTabDataByCiosSearch(strip: any, tabIndex: number, _currentTab: NsContentStripWithTabs.IContentStripTab, calculateParentStatus: boolean): Promise; fetchFromSearchV6Events(strip: NsContentStripWithTabs.IContentStripUnit, calculateParentStatus?: boolean): Promise; private transformEventsV2ToWidgets; getEventsTabDataByNewReqSearchV6(strip: NsContentStripWithTabs.IContentStripUnit, tabIndex: number, currentTab: NsContentStripWithTabs.IContentStripTab, calculateParentStatus: boolean): Promise; fetchMyEventsData(strip: any, calculateParentStatus: any): void; getMyEventsByTabs(strip: any, tabIndex: any, currentTabData: any, calculateParentStatus: any): Promise; getCurrentEvents(): any[]; sortData(data: any): any; get getUserId(): string; openEditContentDialog(stripKey: string): void; openEditTabDialog(stripKey: string, tab: any): void; openAddNewTabDialog(stripKey: string): void; removeTabData(stripKey: string, tabData: any): void; onToggleVisibility(stripKey: string, event: any): void; removeStripContent(stripKey: string): void; private setCaIdentifiers; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } type TFetchStatus = 'none' | 'fetching' | 'done' | 'error' | 'hasMore'; declare const ROOT_WIDGET_CONFIG: { card: { _type: string; cardResource: string; eventCardLib: string; }; actionButton: { _type: string; feature: string; newProfile: string; }; }; declare enum SakshamAI { SakshamAI = "sakshamAI" } declare class HorizontalScrollerV2Component implements OnInit, OnChanges, OnDestroy { private valueSvc; private translate; loadStatus: TFetchStatus; id: string; onHover: boolean; sliderConfig: any; loadNext: EventEmitter; widgetsLength: any; defaultMaxWidgets: any; stripConfig: any; extraMeta: any; horizontalScrollElem: ElementRef | null; enablePrev: boolean; enableNext: boolean; activeNav: number; cardSubType: string; bottomDotsArray: any; private scrollObserver; isMobile: boolean; private defaultMenuSubscribe; isLtMedium$: rxjs.Observable; sakshamAIEnum: typeof SakshamAI; constructor(valueSvc: ValueService, translate: TranslateService); ngOnInit(): void; ngOnChanges(): void; ngOnDestroy(): void; showPrev(): void; showNext(): void; private updateNavigationBtnStatus; slideTo(ele: any): void; getBottomDotsArray(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class HorizontalScrollerV2Module { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class ContentStripWithTabsLibModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } interface ICarousel$1 { title?: string; redirectUrl?: string; openInNewTab?: string; banners: IBannerUnit$1; mailTo?: string; queryParams?: any; } interface ICarouselStyle$1 { bannerMetaClass?: "inline-meta"; bannerMetaAlign?: "right" | "left"; navigationArrows?: "hidden" | "visible"; dots?: "hidden" | "visible"; borderRadius?: string; customHeight?: string; arrowsPlacement?: "bottom-right" | "bottom-center" | "bottom-left" | "middle-inline"; imageBorderWidth: number; imageBorderColor: string; imageBorderStyle: string; responsive: { bannerMetaClass?: "inline-meta"; bannerMetaAlign?: "right" | "left"; navigationArrows?: "hidden" | "visible"; dots?: "hidden" | "visible"; borderRadius?: string; customHeight?: string; arrowsPlacement?: "bottom-right" | "bottom-center" | "bottom-left" | "middle-inline"; imageBorderWidth: number; imageBorderColor: string; imageBorderStyle: string; }; } interface IBannerUnit$1 { xs: string; s: string; m: string; l: string; xl: string; } declare class SlidersLibComponent extends WidgetBaseComponent implements OnInit, OnDestroy, NsWidgetResolver.IWidgetData { private events; private valueSvc; widgetData: ICarousel$1[]; styleData: ICarouselStyle$1; title: any; type: any; id: string; private defaultMenuSubscribe; isLtMedium$: rxjs.Observable; currentIndex: number; slideInterval: Subscription | null; isMobile: boolean; constructor(events: EventService, valueSvc: ValueService); ngOnInit(): void; reInitiateSlideInterval(): void; slideTo(index: number): void; get isOpenInNewTab(): boolean; openInNewTab(): void; raiseTelemetry(bannerUrl: string | undefined): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NavigationDirective implements OnChanges { wsUtilsNavigation: string; openInNewTab: boolean; routeUrl: string; onMouseEnter($event: Event): void; constructor(); ngOnChanges(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class NavigationModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } interface IImageResponsiveUnit { [key: string]: string; } declare class ImageResponsiveDirective implements OnChanges, OnDestroy { private breakpointObserver; src: IImageResponsiveUnit | null; srcBindUrl: string; currentSize: string; breakpointSubscription: Subscription | null; constructor(breakpointObserver: BreakpointObserver); ngOnChanges(): void; ngOnDestroy(): void; private setSrc; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class ImageResponsiveModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class SlidersLibModule { static ɵprov: i0.ɵɵInjectableDeclaration; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare namespace NsSpotlightCardsV2 { interface ISpotlightCard { /** URL of the card icon / illustration image. */ iconUrl: string; /** Alt text for the icon image (accessibility). */ iconAlt?: string; /** Label text displayed below the icon. */ label: string; /** Router link or external URL to navigate to on card click. */ redirectionUrl: string; /** When true the URL is treated as external and opened in a new tab. */ externalUrl?: boolean; enabled?: boolean; /** * Card background. Accepts either: * - a CSS variable — `--color-accents-cyan` or `var(--color-accents-cyan, #00bcd4)` — * used as-is in both themes, since the variable resolves per theme itself; or * - plain colours, comma separated as `light,dark` (`#E6F7FF,#0B3A4A`). A single colour * is used for both themes. * Omitted → the default cyan. */ cardBackgroundColor?: string; cardClickDetails: cardClickDetails; } interface cardClickDetails { id: string; subType: string; } /** Root configuration object accepted by . */ interface ISpotlightCardsConfig { /** Section heading displayed on the top-left of the widget. */ heading: string; /** Cards to render. */ cards: ISpotlightCard[]; /** Whether the accordion/collapse toggle button is shown. Default: true. */ showToggle?: boolean; /** Start in collapsed state. Default: false. */ collapsed?: boolean; /** Show skeleton loading placeholders instead of real cards. */ isLoading?: boolean; } } declare enum VisibilityMode { Visible = "visible", Hidden = "hidden", Disabled = "disabled" } declare enum DisplayType { Tabs = "tabs", Pills = "pills", Cards = "cards", Spotlight = "spotlight", Banner = "banner", WelcomeGreeting = "welcomeGreeting", LearningProgress = "learningProgress" } declare enum CardType { CourseCard = "courseCard", AssessmentCard = "assessmentCard", ProgramCard = "programCard", PlanCard = "planCard" } declare enum ApiMethod { Get = "GET", Post = "POST" } interface ContentConfig { apiDetailsKey?: string; contentIds?: string[]; contents?: Record[]; courseCategories?: string[]; showNoData?: boolean; noDataMessage?: string; cardType: CardType; maxCardsToShow: number; cardClickDetails: { courseCategory: string; }; viewMoreUrl: { path: string; queryParams?: Record; f?: any; }; showViewAll: boolean; } interface SpotlightConfig { iconUrl: string; label: string; redirectionUrl: string; enabled?: boolean; cardBackgroundColor?: string; } interface ToggleableElement { enabled: boolean; } interface LearningProgressConfig { viewAll?: ToggleableElement; inProgress?: ToggleableElement; weeklyClaps?: ToggleableElement; } interface PillConfig { pillKey: string; pillLabel: string; translateLabel: boolean; visibilityMode: VisibilityMode; contentConfig: ContentConfig; pillDescription?: string[]; pillImageUrl?: string; showNoData?: boolean; noDataMessage?: string; } interface TabConfig { tabKey: string; tabLabel: string; translateLabel: boolean; visibilityMode: VisibilityMode; hasPills: boolean; defaultPillKey?: string; pills?: PillConfig[]; contentConfig?: ContentConfig; } interface ContentSectionConfig { sectionKey: string; headersubLableTeme?: string; headerSubLabel?: string; showHeaderSubLabel?: boolean; header: string; translateHeader: boolean; visibilityMode: VisibilityMode; displayType: DisplayType; addToAccordian?: boolean; hideAccordianToggel?: boolean; defaultTabKey?: string; tabs?: TabConfig[]; defaultPillKey?: string; pills?: PillConfig[]; contentConfig?: ContentConfig; spotlightConfig?: SpotlightConfig[]; pillEnlarged?: boolean; learningProgressConfig?: LearningProgressConfig; canShowScrollArrow?: boolean; sectionLoading?: boolean; } interface DynamicTab { key: string; label: string; translateLabel: boolean; context: TabConfig; } interface ChainedApiConfig { endpoint: string; method: ApiMethod; queryParams?: Record; headers?: Record; addUserId?: boolean; mode?: 'filterEnrolled' | 'mergeIndependent'; sourceListPath: string; identifierField?: string; buildBody: (ids: string[]) => Record; enrolledListPath: string; enrolledMatchField?: string; } interface ApiRegistryEntry { endpoint: string; method: ApiMethod; queryParams?: Record; body?: Record; headers?: Record; addUserId?: boolean; chainedApi?: ChainedApiConfig; } interface ApiRegistryConfig { [key: string]: ApiRegistryEntry; } declare class ContentApiService { private http; private configSvc; private userCbpPlansSvc; private userServiceLib; private readonly cardClickDetailsSubject; readonly cardClickDetails$: Observable; private readonly emptySectionKeysSubject; readonly emptySectionKeys$: Observable; private readonly sectionUpdateSubject; readonly sectionUpdate$: Observable<{ sectionKey: string; changes: Partial; }>; publishCardClickDetails(details: any): void; reportEmptySection(sectionKey: string): void; updateSection(sectionKey: string, changes: Partial): void; loadContent(apiDetailsKey: string): Promise>; /** * The plans for one CBP section, off a single CBPlan V4 call. * * No dedupe map here: UserCbpPlansService keeps one request per plan year in flight, so * the three sections starting together share that one POST and then each take their own * pre-split list. The V3 path needed a map at this level because its response was one * flat content list that every section re-filtered. */ private loadCbpPlansV4; private executeRequest; private executeCaProgramChain; private executeMergeIndependentChain; private applyUserContextFilters; private makeHttpRequest; private stripParamTypes; getUserId(): string | null; private buildHttpParams; private hasActiveBatch; private isFullyCompleted; private getNestedValue; private setNestedValue; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class SbUicSpotlightCardsV2Component { private readonly router; private readonly events; private readonly contentApiSvc; private utilitySvc; private telemetrySvc; /** Section heading shown at the top-left. */ heading: i0.InputSignal; /** Cards to render. */ cards: i0.InputSignal; /** Whether the accordion toggle button is visible. */ showToggle: i0.InputSignal; /** Initial collapsed state. */ collapsed: i0.InputSignal; /** Accept the full config object as an alternative to individual inputs. */ config: i0.InputSignal; /** Show skeleton loading state instead of real cards. */ isLoading: i0.InputSignal; /** Number of skeleton placeholder cards to render while loading. */ skeletonCount: i0.InputSignal; isCollapsed: i0.WritableSignal; /** Carousel geometry, exposed for the template. */ readonly cardWidth = 248; readonly cardGap = 24; resolvedHeading: i0.Signal; resolvedCards: i0.Signal; resolvedShowToggle: i0.Signal; resolvedIsLoading: i0.Signal; /** * Cards with their background resolved into a light/dark pair, fed to the template as CSS * custom properties. The theme switch itself is handled in CSS off the `data-theme` * attribute ThemeService sets on , so no theme subscription is needed here. */ styledCards: i0.Signal<{ bgLight: string; bgDark: string; iconUrl: string; iconAlt?: string; label: string; redirectionUrl: string; externalUrl?: boolean; enabled?: boolean; cardBackgroundColor?: string; cardClickDetails: NsSpotlightCardsV2.cardClickDetails; }[]>; /** Array used to render skeleton card placeholders with @for. */ skeletonItems: i0.Signal; constructor(router: Router, events: EventService, contentApiSvc: ContentApiService, utilitySvc: UtilityService, telemetrySvc: TelemetryService); /** * Splits the configured `cardBackgroundColor` into the light and dark values. * A CSS variable is checked first and never comma-split, because `var(--x, #fff)` * legitimately contains a comma. A single plain colour is reused for both themes. */ private resolveCardBackground; toggle(): void; navigate(card: NsSpotlightCardsV2.ISpotlightCard): void; emitDetails(cardClickDetails: NsSpotlightCardsV2.cardClickDetails): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class InsiteDataService { private http; constructor(http: HttpClient); fetchSearchData(request: any): Observable; fetchAnnouncementsData(request: any): Observable; fetchTrainingDetails(request: any, url?: string): Observable; fetchSlwLeaderboard(request: any): Observable; fetchSwlStats(request: any): Observable; fetchSlwLearner(stateOrgId: any): Observable; fetchLearner(channelId: any): Observable; fetchLeaderboard(): Observable; fetchLeaderboardV2(): Observable; fetchMdoUsers(orgId: any): Observable; fetchNwlStats(): Observable; fetchInsightsData(payload: any): Observable; fetchUserProgress(): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class DataPointsComponent implements OnInit { insightSvc: InsiteDataService; objectData: any; layoutType: string; fetchDataFromApi: boolean; providerId: any; pageLayout: any; title: any; slwConfig: any; customArray: any[][]; isDataLoading: boolean; apiResults: any; constructor(insightSvc: InsiteDataService); ngOnInit(): void; createCustomArray(arr: any[]): any[][]; getInsiteData(): void; getStats(): void; getSwlStats(): void; converToIndianSystem(value: any): any; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SkeletonLoaderLibComponent implements OnInit { bindingClass: string; height: string; width: string; constructor(); ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SkeletonLoaderLibModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class DataPointsModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class CalenderComponent implements OnInit { private datePipe; insightSvc: InsiteDataService; objectData: any; layoutType: any; fetchDataFromApi: boolean; showHeader: boolean; defaultDays: number; providerId: any; fullCalendor: boolean; days: any[]; trainings: any; currentMonthAndYear: any; isDataLoading: boolean; currentDate: any; endDate: any; startDate: any; allMonths: string[]; monthsDropdown: any; selectedMonth: any; constructor(datePipe: DatePipe, insightSvc: InsiteDataService); ngOnInit(): void; getInsiteData(): void; getKeys(obj: any): string[]; formatDate(date: any): string; convertTo12HourFormat(timeString: string): string; getDays(cDate: any, counter: number): any; getDaysInMonth(year: number, month: number): Date[]; getMonthsDropdownData(): void; selectMonth(event: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class CalenderDayComponent implements OnInit { private datePipe; objectData: any; layoutType: any; day: any; dataLoading: boolean; rowId: any; eventDate: any; webDisplayDate: string; mobileDisplayDate: string; currentDate: any; constructor(datePipe: DatePipe); ngOnInit(): void; openLink(link: string): void; formatDate(date: any, type: string): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class CalenderModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare namespace NsCommonStrip { export interface ICommonStrip { errorWidget?: NsWidgetResolver.IRenderConfigWithAnyData; loader?: boolean; noDataWidget?: NsWidgetResolver.IRenderConfigWithAnyData; strips: ICommonStripUnit[]; isChannelStrip?: boolean; } export interface ICommonStripUnit { disableTranslate?: any; key: string; title: string; dataType?: "in-hand" | ""; dataKey?: string; customeClass?: string; nodataMsg?: string; stripTitleLink?: { link: { queryParams: string; }; icon: string; queryParams: string; }; sliderConfig?: { showNavs: boolean; showDots: boolean; maxWidgets?: number; cerificateCardMargin?: boolean; dotsAlign?: "right" | "left"; arrowsPlacement?: "bottom-right" | "bottom-center" | "bottom-left" | "middle-inline"; responsive?: { showNavs: boolean; showDots: boolean; dotsAlign?: "right" | "left"; arrowsPlacement?: "bottom-right" | "bottom-center" | "bottom-left" | "middle-inline"; }; }; tabs?: NsCommonStrip.ICommonStripTab[] | undefined; titleDescription?: string; name?: string; mode?: 'accordion'; info?: IStripInfo; logo?: string; preWidgets?: NsWidgetResolver.IRenderConfigWithAnyData[]; postWidgets?: NsWidgetResolver.IRenderConfigWithAnyData[]; stripConfig?: IStripConfig; canHideStrip?: boolean; filters?: any[]; selectAll?: boolean | null; request?: { search?: NSSearch.ISearchRequest; searchV6?: NSSearch.ISearchV6Request; enrollmentList?: any; cbpList?: any; searchRegionRecommendation?: NSSearch.ISearchOrgRegionRecommendationRequest; api?: IStripRequestApi; networkApi?: INetworkRequestApi; ids?: string[]; recommendedCourses?: any; masterCompetency?: any; trendingSearch?: any; }; searchV6Type?: 'KB' | 'Collections' | 'searchQuery' | null; stripBackground?: string; noDataWidget?: NsWidgetResolver.IRenderConfigWithAnyData; loader?: boolean; loaderWidgets?: any; errorWidget?: NsWidgetResolver.IRenderConfigWithAnyData; refreshEvent?: Record<'eventType' | 'from', string>; fetchLikes?: boolean; secondaryHeading?: any; viewMoreUrl?: { queryParams?: any; viewMoreText: string; path: string; }; data?: []; } export interface IStripRequestApi { path: string; queryParams?: { pageNo?: number; pageSize?: number; pageState?: string; sourceFields?: string; }; } export interface INetworkRequestApi { path: string; data?: any; } export interface IStripInfo { mode: 'below' | 'popup' | 'modal'; visibilityMode?: 'hidden' | 'visible'; icon: { icon: string; scale: number; style?: any; }; widget: NsWidgetResolver.IRenderConfigWithAnyData; } interface IStripConfig { cardSubType: NsCardContent.TCardSubType; postCardForSearch?: boolean; intranetMode?: 'greyOut' | 'hide'; deletedMode?: 'greyOut' | 'hide'; contentTags?: IContentTags; hideShowAll?: boolean; } export interface IContentTags { daysSpan?: number; excludeContentType?: NsContent.EContentTypes[]; excludeMimeType?: string[]; tag: string; criteriaField: string; } export interface IContentStripResponseApi { contents: NsContent.IContent[]; hasMore?: boolean; pageState?: string; totalHits?: number; } export interface ICommonStripTab { label: string; value: string; showTabDataCount: boolean; requestRequired?: boolean; computeDataOnClick?: boolean; computeDataOnClickKey?: string; request?: any; widgets?: NsWidgetResolver.IRenderConfigWithAnyData[]; maxWidgets?: number; fetchTabStatus?: string; nodataMsg?: string; tabLoading?: boolean; } export {}; } interface ConfigDetails { apiConfig: any; urlConfigPath: string; defaultUrl: string; } declare class CommonMethodsService { private configSvc; constructor(configSvc: ConfigurationsService$1); transformContentsToWidgets(contents: NsContent.IContent[], strip: NsContentStripWithTabs.IContentStripUnit | NsCommonStrip.ICommonStripUnit): ({ widgetType: string; widgetSubType: string; widgetHostClass: string; widgetData: { cardSubType: "" | NsCardContent.TCardSubType; cardCustomeClass: string; context: { pageSection: string; position: number; }; intranetMode: "" | "greyOut" | "hide"; deletedMode: "" | "greyOut" | "hide"; contentTags: NsCommonStrip.IContentTags | NsContentStripWithTabs.IContentTags; batch: any; content: NsContent.IContent; }; } | { widgetType: string; widgetSubType: string; widgetHostClass: string; widgetData: {}; })[]; transformSkeletonToWidgets(strip: any): { widgetType: string; widgetSubType: string; widgetHostClass: string; widgetData: { cardSubType: any; cardCustomeClass: any; }; }[]; handleCapitalize(str: string, type?: string): string; transformContentsToWidgetsWithoutStrip(contents: NsContent.IContent[]): ({ widgetType: string; widgetSubType: string; widgetHostClass: string; widgetData: { batch: any; content: NsContent.IContent; }; } | { widgetType: string; widgetSubType: string; widgetHostClass: string; widgetData: {}; })[]; getCourseUnitIds(): string; getEnabledUrl(config: ConfigDetails): string; /** * True while a response saved earlier (in localStorage) can be used instead of calling its API * again: saveApiCacheTime() was called for this user less than global-config * apicache[cacheKey] seconds ago. Without that key, or with 0, nothing is cached and this is * always false, so callers keep calling the API. * @param cacheKey the apicache key holding the expiry in seconds, e.g. 'summaryTime' * @param userId the signed-in user; a time saved for another user on this browser does not count */ isApiCacheValid(cacheKey: string, userId: string | undefined): boolean; /** Records that the API behind `cacheKey` was just called successfully for this user. */ saveApiCacheTime(cacheKey: string, userId: string | undefined): void; /** Makes the next isApiCacheValid(cacheKey) false, e.g. after the data behind it changed. */ clearApiCacheTime(cacheKey: string): void; private readApiCacheTimes; private writeApiCacheTimes; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } interface IStripUnitCommonData { key: string; canHideStrip: boolean; mode?: string; showStrip: boolean; disableTranslate: boolean; widgets?: NsWidgetResolver.IRenderConfigWithAnyData[]; stripTitle: string; stripTitleLink?: { link: { queryParams: string; }; icon: string; queryParams: string; }; sliderConfig?: { showNavs: boolean; showDots: boolean; maxWidgets?: number; cerificateCardMargin?: boolean; }; stripConfig: any; tabs?: NsCommonStrip.ICommonStripTab[] | undefined; stripName?: string; stripLogo?: string; description?: string; stripInfo?: NsCommonStrip.IStripInfo; noDataWidget?: NsWidgetResolver.IRenderConfigWithAnyData; errorWidget?: NsWidgetResolver.IRenderConfigWithAnyData; showOnNoData: boolean; showOnLoader: boolean; showOnError: boolean; loaderWidgets?: any; stripBackground?: string; secondaryHeading?: any; viewMoreUrl: any; } declare class CommonStripComponent extends WidgetBaseComponent implements OnInit, OnDestroy, NsWidgetResolver.IWidgetData { private contentSvc; private loggerSvc; private eventSvc; private configSvc; utilitySvc: UtilityService; private userSvc; private translate; private langtranslations; private commonMethodsSvc; widgetData: NsCommonStrip.ICommonStrip; id: string; stripsResultDataMap: { [key: string]: IStripUnitCommonData; }; stripsKeyOrder: string[]; showAccordionData: boolean; showParentLoader: boolean; showParentError: boolean; showParentNoData: boolean; errorDataCount: number; noDataCount: number; successDataCount: number; contentAvailable: boolean; baseUrl: string; veifiedKarmayogi: boolean; environment: any; changeEventSubscription: Subscription | null; defaultMaxWidgets: number; enrollInterval: any; todaysEvents: any; constructor(environment: any, contentSvc: WidgetContentLibService, loggerSvc: LoggerService, eventSvc: EventService, configSvc: ConfigurationsService$1, utilitySvc: UtilityService, userSvc: WidgetUserServiceLib, translate: TranslateService, langtranslations: MultilingualTranslationsService, commonMethodsSvc: CommonMethodsService); ngOnInit(): void; ngOnDestroy(): void; showAccordion(key: string): boolean; setHiddenForStrip(key: string): void; private getIfStripHidden; private initData; private fetchStripFromKey; isStripShowing(data: any): any; get isMobile(): boolean; getdata(data: IStripUnitCommonData): {}; checkCondition(wData: NsCommonStrip.ICommonStrip, data: IStripUnitCommonData): boolean; checkVisible(data: IStripUnitCommonData): boolean; getContineuLearningLenth(data: IStripUnitCommonData): number; getLength(data: IStripUnitCommonData): number; private processStrip; getSelectedIndex(stripsResultDataMap: any, key: any): number; private checkParentStatus; checkForEmptyWidget(strip: NsCommonStrip.ICommonStripUnit): boolean; tabClicked(tabEvent: MatTabChangeEvent, stripMap: IStripUnitCommonData, stripKey: string): void; translateLabels(label: string, type: any): any; identify(index: number, item: any): any; tracker(index: number, item: any): any; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class CommonStripModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class AnnouncementsComponent implements OnInit { insightSvc: InsiteDataService; private langtranslations; private injector; objectData: any; layoutType: any; mobileHeight: boolean; fetchDataFromApi: boolean; channelId: any; isEdit: boolean; isEditable: boolean; openDialog: EventEmitter; editClicked: EventEmitter; isLoading: boolean; announcements: any; expand: boolean; expanded: boolean; private eventCallback; constructor(insightSvc: InsiteDataService, langtranslations: MultilingualTranslationsService, injector: Injector); ngOnInit(): void; fetchData(): void; viewMoreOrLess(item: any): void; openAnnouncements(): void; showMoreOrLess(): void; translateLabels(label: string, type: any): any; /** * Handle edit button click * Emits an event to be handled by parent component (mdo-channel-v3) */ onEdit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class AnnouncementsModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class TopLearnersComponent$1 implements OnInit { insightSvc: InsiteDataService; objectData: any; channelId: any; channnelName: any; slwConfig: any; isEdit: boolean; isEditable: boolean; editClicked: EventEmitter; loading: boolean; month: string; results: any; defaultKpIcon: string; colors: any; constructor(insightSvc: InsiteDataService); ngOnInit(): void; getData(): void; getSlwData(): void; getMonth(response: any): void; getRank(rank: number): string; getColor(): string; getKpIcon(): any; onKpIconError(event: Event): void; createInititals(name: string): string; onEdit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class TopLearnersModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class ScrollableItemDirective { private el; key: string; constructor(el: ElementRef); scrollIntoView(blockValue: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class CbpPlanComponent implements OnInit, OnChanges { private translate; private langtranslations; private injector; objectData: any; layoutType: any; mobileHeight: boolean; fetchDataFromApi: boolean; channelId: any; isEdit: boolean; isEditable: boolean; openDialog: EventEmitter; editClicked: EventEmitter; isLoading: boolean; currentIndex: number; styleData: any; contentdata: any; private eventCallback; scrollableItems: QueryList; constructor(translate: TranslateService, langtranslations: MultilingualTranslationsService, injector: Injector); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; /** * Load content data from objectData */ private loadContentData; getCurrentIndex(indexValue: any): void; getFileName(item: any): any; translateLabels(label: string, type: any): any; downloadCBPPlan(item: any): void; /** * Handle edit button click * Emits an event to be handled by parent component (mdo-channel-v3) */ onEdit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ScrollableItemModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } interface ICarousel { title?: string; redirectUrl?: string; openInNewTab?: string; banners: IBannerUnit; mailTo?: string; queryParams?: any; } interface ICarouselStyle { bannerMetaClass?: "inline-meta"; bannerMetaAlign?: "right" | "left"; navigationArrows?: "hidden" | "visible"; dots?: "hidden" | "visible"; borderRadius?: string; customHeight?: string; arrowsPlacement?: "bottom-right" | "bottom-center" | "bottom-left" | "middle-inline"; responsive: { bannerMetaClass?: "inline-meta"; bannerMetaAlign?: "right" | "left"; navigationArrows?: "hidden" | "visible"; dots?: "hidden" | "visible"; borderRadius?: string; customHeight?: string; arrowsPlacement?: "bottom-right" | "bottom-center" | "bottom-left" | "middle-inline"; }; } interface IBannerUnit { xs: string; s: string; m: string; l: string; xl: string; } declare class SlidersNgContentLibComponent extends WidgetBaseComponent implements OnInit, OnDestroy, NsWidgetResolver.IWidgetData { private events; private valueSvc; widgetData: ICarousel[]; styleData: ICarouselStyle; title: any; loadNgContentData: boolean; autoScroll: boolean; customBanner: boolean; currentIndexValue: EventEmitter; id: string; private defaultMenuSubscribe; isLtMedium$: rxjs.Observable; currentIndex: number; slideInterval: Subscription | null; isMobile: boolean; constructor(events: EventService, valueSvc: ValueService); ngOnInit(): void; reInitiateSlideInterval(): void; slideTo(index: number): void; get isOpenInNewTab(): boolean; openInNewTab(): void; raiseTelemetry(bannerUrl: string | undefined): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SlidersNgContentLibModule { static ɵprov: i0.ɵɵInjectableDeclaration; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class CbpPlanModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } interface ICompentencyKeys { vKey: string; vCompetencyArea: string; vCompetencyAreaDescription: string; vCompetencyTheme: string; vCompetencySubTheme: string; } declare class CompetencySummaryComponent implements OnInit, OnChanges { configSvc: ConfigurationsService$1; contentData: any; selectedContents: any; selectedCardData: any[]; competencySummaryObj: any; selectedIndex: number; compentencyKey: ICompentencyKeys; environment: any; constructor(configSvc: ConfigurationsService$1, environment: any); ngOnInit(): void; ngOnChanges(): void; checkIfThemeNameExists(arr: any, fitem: any): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class CompetencySummaryModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class AssessmentService { private http; private assessmentHierarchyData; private primaryCategory; private contextCategory; readOnly: boolean; constructor(http: HttpClient); getAssessmentHierarchyDetails(assessmentId: string): rxjs.Observable; getAssessmentHierarchyDetailsModeEdit(assessmentId: string): rxjs.Observable; getAssessmentHierarchyData(): any; getAssessmentReadDetails(assessmentId: string): rxjs.Observable; getAssessmentReadDetailsModeEdit(assessmentId: string): rxjs.Observable; createAssessment(assessmentReqData: any): rxjs.Observable; updateAssessment(assessmentHierarchyReqData: any): rxjs.Observable; updateAssessmentHierarchyRequest(changedData: any, identifier: string, parentChanges?: any): { request: { data: { nodesModified: any; hierarchy: any; }; }; }; getQuestionReadDetailsModeEdit(reqBody: any): rxjs.Observable; createAssessmentHierarchyRequest(assessmentData: any, identifier?: string): { request: { data: { nodesModified: any; hierarchy: any; }; }; }; generateUUID(): string; buildQuestionHierarchyRequest(questionData: any, sectionIdentifier: string): any; deleteQuestionHierarchyRequest(questionIdentifier: any, sectionIdentifier: string): any; buildSectionHierarchyRequest(sectionData: any, sectionIdentifier?: string): any; isCqfAssessment(): boolean; /** A comprehensive assessment is a `Course Assessment` too, only the course category tells it apart. */ isComprehensiveAssessment(): boolean; private getCreateUrl; /** The CA wrapper takes the same hierarchy body but names the root question set in the path. */ private getUpdateUrl; /** The node the hierarchy update marks as root, '' when it marks none. */ private readRootIdentifier; getContextCategory(): string; setContextCategory(contextCategory: string): void; /** Sent as multipart, so the browser sets the Content-Type with its boundary. */ generateAiQuestions(formData: FormData): rxjs.Observable; /** Where a generation job started by generateAiQuestions has got to. */ getAiQuestionsStatus(jobId: string): rxjs.Observable; getPrimaryCategory(): string; setPrimaryCategory(primaryCategory: string): void; getReadOnly(): boolean; setReadOnly(readOnly: boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** A course linked in Basic Details. The AI drafts the questions from its content. */ interface IAiQuestionsCourse { identifier: string; name: string; language?: string; provider?: string; /** Transcripts and documents the course already holds. Left out when the host does not know. */ contextDocuments?: string[]; } /** How the host turns on AI question generation, and which content the questions are drafted from. */ interface IAiQuestionsGenConfig { enable: boolean; /** The reference content (courses) the AI drafts the questions from. */ refContent: IAiQuestionsCourse[]; } interface IAiQuestionsModalData { /** "What is the number of questions you will be adding?", or null when the assessment type sets no limit. */ plannedCount: number | null; existingCount: number; courses: IAiQuestionsCourse[]; /** The duration from Assessment Settings, in seconds. */ expectedDuration?: number; isBasicAssessment?: boolean; isOptionWeightage?: boolean; } interface IQuestionTypeRow { qType: string; label: string; /** Share of the questions this type takes when the split is first made. */ weight: number; enabled: boolean; count: number; } interface IReferenceSheet { file: File; total: number; fromAI: number; manual: number; } type UploadKind = 'transcripts' | 'documents' | 'reference'; declare class AiQuestionsModalComponent { dialogRef: MatDialogRef; data: IAiQuestionsModalData; private snackBar; private assessmentService; private dialog; readonly languages: string[]; readonly levels: string[]; readonly bloomLevels: { key: string; label: string; description: string; }[]; readonly bloomStep = 5; readonly notesMaxLength = 1000; readonly maxTranscripts = 10; readonly maxDocuments = 3; language: string; notes: string; level: string; bloomOn: boolean; bloom: Record; questionTypes: IQuestionTypeRow[]; transcripts: File[]; documents: File[]; referenceSheet: IReferenceSheet | null; dragTarget: UploadKind | null; generating: boolean; constructor(dialogRef: MatDialogRef, data: IAiQuestionsModalData, snackBar: MatSnackBar, assessmentService: AssessmentService, dialog: MatDialog); /** The questions still needed to reach the planned count, or null when nothing caps them. */ get questionsNeeded(): number | null; /** The most this run can generate: what is still needed, and never more than one request allows. */ get maxQuestions(): number; /** True when the per-run limit, not the planned count, is what caps this run. */ get isCappedPerRun(): boolean; get subtitle(): string; /** Comparing against the bank only helps once it holds questions to repeat. */ get showReferenceSheet(): boolean; get durationMinutes(): number | null; get typesTotal(): number; /** Any total from one up to the run's limit can be generated. */ get isTypesTotalValid(): boolean; get typesBadge(): string; get typesHint(): string; get bloomTotal(): number; /** The first thing standing in the way of generating, shown beside the button. */ get errorMessage(): string; /** The same types the manual question picker offers for this assessment type. */ private getQuestionTypes; /** Spreads the run's limit across the enabled types in proportion to their weights. */ private splitAcrossTypes; countOf(type: IQuestionTypeRow): number; /** Switching a type on with no count gives it whatever is left of the run's limit, never pushing the total past it. */ onTypeToggle(type: IQuestionTypeRow, enabled: boolean): void; selectLevel(level: string): void; changeBloom(key: string, delta: number): void; bloomShare(key: string): number; onFilesPicked(event: Event, kind: UploadKind): void; onDragOver(event: DragEvent, kind: UploadKind): void; onDrop(event: DragEvent, kind: UploadKind): void; removeFile(kind: 'transcripts' | 'documents', index: number): void; formatSize(bytes: number): string; private handleFiles; private addFiles; /** Reads the sheet only to confirm it has questions and to summarise them; the file itself goes to the AI. */ private loadReferenceSheet; private findQuestionColumn; /** * Hands the request to the progress dialog, which starts the job and waits for it. This modal stays open * underneath, so if the job fails or times out, nothing entered is lost. */ generate(): void; private buildRequest; /** The multipart body the AI service takes. */ private buildFormData; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class AssessmentSessionsComponent implements OnInit, OnDestroy, OnChanges { private fb; private assessmentService; private cdr; private snackBar; private dialog; /** Offers AI question generation alongside the manual options when the host enables it. */ aiQuestionsGen: IAiQuestionsGenConfig | null; get aiQuestionsEnabled(): boolean; saved: EventEmitter; updated: EventEmitter; updateQuestion: EventEmitter; sessionsForm: FormGroup; basicAssessmentForm: FormGroup; optionWeightageForm: FormGroup; assessmentData: any; difficultyLevels: { name: string; count: number; }[]; selectedSectionIndex: number; nameMaxLength: number; instructionsMaxLength: number; maxTotalQuestions: number; maxSectionWeightage: number; questionsList: Array<{ qType: string; identifier: string; }>; expandedQuestionIndex: number | null; private subscriptions; constructor(fb: FormBuilder, assessmentService: AssessmentService, cdr: ChangeDetectorRef, snackBar: MatSnackBar, dialog: MatDialog); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; initForm(): void; createSectionGroup(): FormGroup; get sections(): FormArray; get basicSections(): FormArray; get currentSectionGroup(): FormGroup; loadAssessmentData(): void; reloadAssessmentData(): void; isAdvancedAssessmentQuestionWeightage(): boolean; isAdvanceAssessmentOptionWeightage(): boolean; isAdvanceAssessmentQuestionOptionWeightage(): boolean; /** * Question weightage and question-option weightage (CQF) both author their content * through the same multi-section form. */ isSectionedAdvancedAssessment(): boolean; isBasicAssessment(): boolean; isBasicAssessmentWithSections(): boolean; hasBasicAssessmentSection(): boolean; hasCurrentBasicSectionIdentifier(): boolean; hasOptionWeightageSection(): boolean; /** * The questions shown to a learner are drawn from the ones authored, so asking for more * than are being added cannot be satisfied. It sits on the displayed field rather than on * the group so the field itself reports it, the way every other error here does. */ private displayedWithinTotalValidator; /** The pair is only wrong together, so the displayed field is re-checked when either moves. */ private watchQuestionCounts; createBasicSectionGroup(): FormGroup; /** * CQF sections carry a pass mark, a weightage and rich text instructions. The other * assessment types keep the shape they already save, so these are added only for CQF. */ private addCqfSectionControls; onAdditionalInstructionsChange(content: string): void; get additionalInstructionsLength(): number; /** * CQF instructions are stored as markup, so the limit is measured against the text * the learner reads instead of the tags wrapped around it. */ private getInstructionsLength; private instructionsLengthValidator; addBasicSection(): void; selectBasicSection(index: number): void; get currentBasicSectionGroup(): FormGroup; populateBasicAssessmentForm(): void; populateOptionWeightageForm(): void; populateFormFromAssessmentData(): void; calculateDifficultyLevelCounts(): void; selectSection(index: number): void; loadQuestionsForSection(sectionIndex: number): void; getDifficultyLevelSummary(): string; getSectionDifficultyLevelSummary(sectionIndex: number): string; get nameLength(): number; onBasicAssessmentSave(): void; onOptionWeightageSave(): void; onSave(): void; onUpdate(): void; onSaveBasicSection(): void; private calculateParentTotalsForSave; onUpdateBasicSection(): void; private calculateParentTotals; addQuestions(): void; private handleQuestionTypeSelection; private mapQuestionType; onQuestionExpanded(questionIndex: number): void; onQuestionUpdated(questionData: any): void; onQuestionDeleted(event: any): void; getCurrentSectionLevelDefinition(): any; isCurrentSectionParagraphType(): boolean; /** Only basic assessments set how many questions a section holds; the others report 0. */ getSectionTotalQuestions(): number; /** How many more questions the current section takes, or null when its type sets no limit. */ getRemainingQuestionsCount(): number | null; isQuestionLimitReached(): boolean; onGenerateAIQuestions(): void; /** Adds the generated questions to the section, saved through the same hierarchy update as questions written by hand. */ private saveAiQuestions; openBulkUploadDialog(): void; getFtbQuestion(q: string): string; get isReadOnly(): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class AssessmentMainComponent implements OnInit { private assessmentService; private snackBar; config: any; loader: EventEmitter; assessmentSaved: EventEmitter; assessmentUpdated: EventEmitter<{ identifier: string; name: string; }>; stepper: MatStepper; sessionsComponent: AssessmentSessionsComponent; isStepTwoEnabled: boolean; isAssessmentLoaded: boolean; constructor(assessmentService: AssessmentService, snackBar: MatSnackBar); ngOnInit(): void; enableStepTwo(): void; callLoader(show: boolean): void; saveAssessment(event: any): void; updateAssessment(event: any): void; saveSectionData(event: any): void; updateSectionData(event: any): void; updateQuestionData(event: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare namespace NsAssessment { enum EAssessmentType { QUESTION_WEIGHTAGE = "questionWeightage", OPTION_WEIGHTAGE = "optionalWeightage", QUESTION_OPTION_WEIGHTAGE = "questionOptionWeightage" } enum ECompatibilityLevel { BASIC = 6, ADVANCED = 8 } enum EAssessmentContextCategory { PRELIMINARY_ASSESSMENT = "Preliminary Assessment", FINAL_MILESTONE_ASSESSMENT = "Final Milestone Assessment", FINAL_PROGRAM_ASSESSMENT = "Final Program Assessment", PRE_ENROLMENT_ASSESSMENT = "Pre Enrolment Assessment", COMPREHENSIVE_ASSESSMENT = "Comprehensive Assessment", OPTIONAL_PRE_ASSESSMENT = "Optional Pre Assessment", MANDATORY_PRE_ASSESSMENT = "Mandatory Pre Assessment" } enum EAssessmentPrimaryCategory { FINAL_ASSESSMENT = "Course Assessment", PRACTICE_QUESTION_SET = "Practice Question Set", CQF_ASSESSMENT = "CQF Assessment" } } declare class AssessmentBasicInfoComponent implements OnInit, OnDestroy { private fb; private configSvc; private assessmentService; private snackBar; config: any; saved: EventEmitter; updated: EventEmitter; cancelled: EventEmitter; assessmentForm: FormGroup; reAttemptOptions: number[]; nameMaxLength: number; nameMinLength: number; instructionsMaxLength: number; durationTouched: boolean; overallScoreCutoffOptions: { id: string; name: string; description: string; }[]; isFinalAssessment: boolean; isPracticeAssessment: boolean; isCqfAssessment: boolean; /** A comprehensive assessment: several settings are fixed by the preset, not authored. */ isComprehensiveAssessment: boolean; /** A pre assessment: only the Basic assessment type is offered. */ isPreAssessment: boolean; showCoolOffPeriod: boolean; maxRetakeDigits: number; instructionsHtml: string; private showTimerSubscription?; private assessmentTypeSubscription?; private questionWeightageTypeSubscription?; private noOfSectionSubscription?; assessmentTypeList: { name: string; value: NsAssessment.EAssessmentType; }[]; difficultyLevels: string[]; selectedSectionIndex: number; negativePercentageOptions: string[]; assessmentData: any; previousQuestionWeightageType: any; constructor(fb: FormBuilder, configSvc: ConfigurationsService$1, assessmentService: AssessmentService, snackBar: MatSnackBar); ngOnInit(): void; ngOnDestroy(): void; /** * CQF assessments hide every scoring option except the passing percentage, so the * values the API still expects are pinned here instead of being collected from the * author. The passing percentage is only seeded - a saved figure overrides it. */ applyCqfDefaults(): void; /** * A comprehensive assessment is always a basic assessment scored on an overall cutoff, so * neither is offered to the author and both are pinned here. The title is the one the * assessment was created with, seeded so it does not have to be typed twice — a saved * name overrides it, the same way the CQF passing percentage is only seeded. */ applyComprehensiveDefaults(): void; /** * The re-attempt count is typed into a text field, because a number field cannot carry the * autocomplete and still lets `e`, `+` and `.` through in most browsers. So the three ways * a character can arrive are each turned away: the keypress, a paste, and anything that * reaches the field by some other route — a drag and drop, or an autofill. */ onRetakeAttemptsKeypress(event: KeyboardEvent): void; onRetakeAttemptsPaste(event: ClipboardEvent): void; /** The last word on what the field holds, whatever route the text arrived by. */ onRetakeAttemptsInput(event: Event): void; get maxSections(): number; /** * The re-attempt ceiling the assessment is actually under: a comprehensive assessment takes * any count typed in up to this, every other one picks from the options offered. It is what * the field's error quotes, and what the tooltip beside the label has to quote with it. */ get maxRetakeAttempts(): number; getPreAssessmentContextCategory(isMandatory: boolean): string; setupShowTimerSubscription(): void; setupAssessmentTypeSubscription(): void; setupQuestionWeightageTypeSubscription(): void; setupNoOfSectionSubscription(): void; updateSections(count: number): void; createSectionGroup(): FormGroup; createDifficultyLevelGroup(): FormGroup; get sections(): FormArray; get hasMultipleSections(): boolean; getSectionDifficultyLevels(sectionIndex: number): FormArray; calculateTotalMarks(sectionIndex: number, levelIndex: number): number; getSectionTotalQuestions(sectionIndex: number): number; getSectionTotalMarks(sectionIndex: number): number; getGrandTotalQuestions(): number; getGrandTotalMarks(): number; selectSection(index: number): void; populateForm(data: any): void; updateValidators(): void; initForm(): void; get nameLength(): number; get descriptionLength(): number; onInstructionsChange(content: string): void; /** * CQF instructions are stored as markup, so the limit is measured against the text * the learner reads instead of the tags wrapped around it. */ private getInstructionsLength; private instructionsLengthValidator; get controls(): { [key: string]: AbstractControl; }; get totalDuration(): number; get isDurationRequired(): boolean; get isDurationInvalid(): boolean; get isFormValid(): boolean; /** * Validates that for each difficulty level, questions and marks must be consistent * (both > 0 or both = 0) */ areSectionDifficultyLevelsValid(): boolean; /** * Checks if a specific difficulty level has questions but no marks assigned */ isDifficultyLevelMarksInvalid(sectionIndex: number, levelIndex: number): boolean; /** * Checks if a specific difficulty level has marks but no questions assigned */ isDifficultyLevelQuestionsInvalid(sectionIndex: number, levelIndex: number): boolean; get isReadOnly(): boolean; onDurationBlur(): void; onUpdate(): void; onSave(): void; onCancel(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface QuestionTypeData { title?: string; isOptionWeightage?: boolean; isBasicAssessment?: boolean; } declare class SelectQuestionModalComponent { dialogRef: MatDialogRef; data: QuestionTypeData; constructor(dialogRef: MatDialogRef, data: QuestionTypeData); get isOptionWeightage(): boolean; get isBasicAssessment(): boolean; onQuestionTypeSelect(questionType: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class MultipleChoiceQuestionComponent implements OnInit, OnChanges, OnDestroy { questionType: string; options: any[]; isReadOnly: boolean; optionsUpdated: EventEmitter; addOptionRequest: EventEmitter; optionsList: any[]; activeOptionEditors: Set; private readonly editorMount; correctAnswer: any; correctAnswers: any; maxOptions: number; ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; initializeOptions(): void; /** * Queues an editor for every option, in the order they are listed, so they appear down the * list the way the author reads it. A True/False question renders no editors at all, so it * queues none. */ private queueOptionEditors; isMCQSCA(): boolean; isMCQMCA(): boolean; isMCQWeighted(): boolean; isMCQTrueFalse(): boolean; isOptionEditorActive(option: any): boolean; activateOptionEditor(option: any): void; onOptionTextChange(option: any, text: string): void; onCorrectAnswerChange(optionId: number): void; onCorrectAnswerToggle(_option: any): void; onWeightChange(option: any, weight: any): void; addOption(): void; canAddMoreOptions(): boolean; removeOption(index: number): void; private emitOptionsUpdate; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class MatchTheFollowingComponent implements OnInit, OnChanges, OnDestroy { options: any[]; isReadOnly: boolean; optionsUpdated: EventEmitter; addOptionRequest: EventEmitter; pairsList: any[]; maxOptions: number; minOptions: number; /** * The editors already built, held by pair and side. Every side gets one as soon as the * question is opened - they are what the author types into - but they are built one per * task rather than together, so the accordion opens at once and the editors fill in behind * it instead of all fourteen of them holding the browser in a single pass. */ activeEditors: Set; private readonly editorMount; ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; initializePairs(): void; /** Every side of every pair, in reading order, so they appear the way they are laid out. */ private queueEditors; /** The two sides of a pair are tracked apart, so opening one does not build the other. */ private editorKey; isEditorActive(pair: any, side: string): boolean; activateEditor(pair: any, side: string): void; onQuestionTextChange(pair: any, text: string): void; onAnswerTextChange(pair: any, text: string): void; addPair(): void; removePair(index: number): void; canAddMorePairs(): boolean; emitOptionsUpdate(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface BlankOption { id: number; text: string; blankNumber: string | null; } declare class FillUpTheBlanksComponent implements OnInit, OnChanges { private snackBar; options: BlankOption[]; ftbCount: number; isReadOnly: boolean; compatibilityLevel: number | undefined; optionsUpdated: EventEmitter; blankList: any[]; maxOptions: number; minOptions: number; constructor(snackBar: MatSnackBar); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; initializeBlankList(): void; addInitialOptions(): void; addOption(autoAssign?: boolean, blankNumber?: string | null): void; removeOption(index: number): void; onBlankSelectionChange(index: number, selectedBlank: any): void; onTextChange(index: number, text: string): void; canAddMoreOptions(): boolean; private emitUpdatedOptions; getRomanNumeral(num: number): string; isBasicAssessment(): boolean; adjustOptionsForBasicAssessment(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class AssessmentQuestionListComponent implements OnInit, OnChanges { assessemntService: AssessmentService; private dialog; questionData: any; questionIndex: number; isExpanded: boolean; sectionLevelDefinition: any; assessmentData: any; questionUpdated: EventEmitter; questionDeleted: EventEmitter; questionExpanded: EventEmitter; mcqComponent?: MultipleChoiceQuestionComponent; mtfComponent?: MatchTheFollowingComponent; ftbComponent?: FillUpTheBlanksComponent; difficultyLevels: { name: string; value: string; }[]; selectedDifficultyLevel: string; htmlTasRemovalRegex: RegExp; assessmentNoSpecialChar: RegExp; isRegexPassed: boolean; questionText: string; /** * What the editor is seeded with, and the only thing it is ever told. `questionText` is * the live value the editor reports back, so binding the editor to that closed the loop: * the parent handed the editor its own content again on every change, and where the value * came back reshaped - the empty case below rewrites it to '' - the editor answered with * `setData`, which re-parses the document and drops the selection and the undo stack. * A question carrying only an image erased itself that way as it was being authored. * The seed is written when a question is loaded, and never from an edit. */ questionSeed: string; fitbCount: number; fitbConfig: { maxOptions: number; }; questionOptions: any[]; questionDataLoaded: boolean; questionDetailsFetched: boolean; questionDetailsFetchInFlight: boolean; constructor(assessemntService: AssessmentService, dialog: MatDialog); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; initializeQuestionData(): void; populateQuestionForm(): void; hasSectionLevelDefinition(): boolean; isMCQQuestion(): boolean; isMTFQuestion(): boolean; isFTBQuestion(): boolean; isTrueFalseQuestion(): boolean; isUpdateMode(): boolean; onOptionsUpdated(options: any[]): void; parseOptionWeight(answer: any): number | undefined; onAddOption(): void; onAddPair(): void; onAddBlank(): void; canAddMoreOptions(): boolean; canAddMorePairs(): boolean; canAddMoreBlanks(): boolean; canSaveMTFQuestion(): boolean; canSaveFTBQuestion(): boolean; onDifficultyLevelChange(level: string): void; getSelectedLevelMarks(): number; getSelectedLevelName(): string; getQuestionTypeName(): string; onEditQuestion(): void; onExpandQuestion(): void; /** * Fills in the body the card was not listed with - the listing carries a summary, and the * editors cannot render without the rest. `questionDataLoaded` is what holds the spinner * up until then, so every path out of here lowers it. */ private loadQuestionDetails; onDeleteQuestion(): void; onQuestionUpdated(updatedData: any): void; onEditCancelled(): void; getQuestionContent(event: any): void; checkBlankIntext(): void; canSaveQuestion(): boolean; saveQuestion(): void; private getPrimaryCategory; get isReadOnly(): boolean; isBasicAssessment(): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class UploadHelperService { private http; constructor(http: HttpClient); uploadFile(file: File, config: any): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class AssessmentRichTextComponent implements OnInit, OnChanges, OnDestroy { private cdr; private configSvc; private uploadService; private environment; name: any; specificToolBar: any; showAudioVideoToolBar: any; ftbCount: number; ftbMaxCount: number; readOnly: boolean; autoFocus: boolean; getContent: EventEmitter; onTouched: EventEmitter; ready: EventEmitter; isReady: boolean; showEditor: boolean; private showEditorTimer; html: string; set textToBeShown(value: string); height: number; readonly Editor: typeof ClassicEditor; editorConfig: any; effectiveHeight: number; constructor(cdr: ChangeDetectorRef, configSvc: ConfigurationsService$1, uploadService: UploadHelperService, environment: any); ngOnInit(): void; ngOnDestroy(): void; ngOnChanges(changes: SimpleChanges): void; initiateConfig(): void; onChange(event: ChangeEvent): void; onReady(editor: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface QuestionData { identifier: string; code: string; objectType: string; mimeType: string; primaryCategory: string; qType: string; answer: string; name: string; body: string; choices: any; editorState: any; rhsChoices?: any[]; questionLevel?: string; totalMarks?: number; compatibilityLevel?: number; } interface ColumnValidation { [key: string]: { allowedList: string[]; }; } declare class BulkUploadAllTypeQuestionComponent implements OnInit { data: any; dialogRef: MatDialogRef; private snackBar; private assessmentService; private http; maxFileSize: number; questionTracking: any[]; file: File | null; validUploadedValues: QuestionData[]; selectedQuestions: QuestionData[]; isProcessing: boolean; uploadProgress: number; assessmentData: any; isDragOver: boolean; totalQuestions: number | null; compatibilityLevel: any; assessmentType: any; existingQuestionsCount: number; isOldTemplate: boolean; columnValidate: ColumnValidation; constructor(data: any, dialogRef: MatDialogRef, snackBar: MatSnackBar, assessmentService: AssessmentService, http: HttpClient); ngOnInit(): void; onFileSelected(event: any): void; onDragOver(event: DragEvent): void; onDragLeave(event: DragEvent): void; onDrop(event: DragEvent): void; processFile(file: File): void; parseCSVFile(): void; validateTemplate(data: any[]): boolean; validateColumnStructure(data: any[]): boolean; checkValidQuestionTagging(values: any[]): boolean; convertToQuestionFormat(rawData: any[]): void; getPrimaryCategory(questionType: string): string; getQType(questionType: string): string; getAnswerIndex(options: any[], questionType: string): string; onQuestionToggle(event: MatCheckboxChange, question: QuestionData): void; updateQuestionTracking(): void; isQuestionSelected(question: QuestionData): boolean; clearFile(): void; onCreateQuestions(): void; validateQuestions(): { valid: boolean; message: string; }; onCancel(): void; downloadTemplate(): void; downloadReadMe(): void; downloadPDF(pdfContent: string, fileName: string): void; downloadCSV(csvContent: string, filename: string): void; getQuestionTypeName(qType: string): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface IAiQuestionsProgressData { /** The multipart body for the AI service's generate call. */ formData: FormData; } /** * Starts the generation job and waits for it, closing with the completed status response. * Closes with nothing when the job fails or takes too long. */ declare class AiQuestionsProgressComponent implements OnInit, OnDestroy { private dialogRef; private data; private assessmentService; private snackBar; private subscription?; constructor(dialogRef: MatDialogRef, data: IAiQuestionsProgressData, assessmentService: AssessmentService, snackBar: MatSnackBar); ngOnInit(): void; ngOnDestroy(): void; /** Checks the job every 15 seconds until it completes, erroring if it fails, the checks keep failing, or time runs out. */ private waitForJob; private statusOf; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class CertificateDialogComponent implements OnInit { private events; private translate; private langtranslations; dialogRef: MatDialogRef; data: any; url: string; navUrl: string; environment: any; constructor(environment: any, events: EventService, translate: TranslateService, langtranslations: MultilingualTranslationsService$1, dialogRef: MatDialogRef, data: any); ngOnInit(): void; downloadCert(): void; downloadCertPng(): void; downloadCertPdf(): Promise; shareCert(): Window; raiseShareIntreactTelemetry(type?: string, action?: string): void; raiseIntreactTelemetry(action?: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class AddCompetencyPopupComponent implements OnInit { private modalRef; searchTextCtrl: FormControl; orgList: any; selectedList: any[]; sliceCount: number; showMore: boolean; constructor(modalRef: MatDialogRef); ngOnInit(): void; selectedOrgChange(checked: any, arrayItem: any): void; removeSelectedOrg(arrayItem: any): void; clearAll(): void; showMoreSelectedOrg(): void; showLessSelectedOrg(): void; cancelModal(): void; submitCompetency(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SnackbarComponent { data: { message: string; type: "success | error"; }; snackBarRef: MatSnackBarRef; constructor(data: { message: string; type: "success | error"; }, snackBarRef: MatSnackBarRef); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } type DialogData = { title?: string; description?: string; iconName?: string; iconUrl?: string; type?: string; buttonsPositionClass?: string; planeDescription?: string; messages?: { message: string; classes?: string; }[]; buttons?: { classes?: string; text?: string; response?: string | boolean; }[]; }; declare class ConfirmationDialogComponent { private dialogRef; data: DialogData; dialgoData: DialogData; constructor(dialogRef: MatDialogRef, data: DialogData); closeDialog(response: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface NlwCertificateDialogData { action: string; type: string; title?: string; url?: string; pdfZoom?: string; api?: { url: string; method: string; headers?: { [key: string]: string; }; body?: any; responseType?: string; renderAs?: string; withCredentials?: boolean; }; } declare class NlwCertificateDialogComponent implements OnInit, OnDestroy { dialogRef: MatDialogRef; data: NlwCertificateDialogData; private http; private sanitizer; private events; private translate; private langtranslations; isLoading: boolean; hasError: boolean; errorMessage: string; svgContent: SafeHtml | null; pdfUrl: SafeResourceUrl | null; imageUrl: string | null; isMobile: boolean; rawPdfUrl: string | null; private rawSvgString; private objectUrl; private svgWidth; private svgHeight; constructor(dialogRef: MatDialogRef, data: NlwCertificateDialogData, http: HttpClient, sanitizer: DomSanitizer, events: EventService, translate: TranslateService, langtranslations: MultilingualTranslationsService$1); onResize(): void; ngOnInit(): void; private loadPdf; private callDynamicApi; private renderResponse; downloadSvg(): void; downloadPng(): void; downloadPdf(): void; private renderToCanvas; private cleanSvgString; private triggerDownload; private raiseDownloadTelemetry; close(): void; openPdfInBrowser(): void; downloadPdfDirect(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class DialogComponentsModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class AssessmentModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class PeerValidationService { private http; private router; private selectedCourse; constructor(http: HttpClient, router: Router); get isSpvRoute(): boolean; searchContent(payload: any): Observable; setSelectedCourse(course: any): void; getSelectedCourse(): any; saveDraft(payload: any): Observable; getFormById(id: any): Observable; updateForm(id: any, payload: any): Observable; publishForm(id: any): Observable; archiveForm(id: any): Observable; endForm(id: any): Observable; searchPeerValidations(payload: any): Observable; initDownloadReport(id: any): Observable; downloadReport(payload: any): Observable; downloadList(): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } interface ILoaderService { changeLoaderState(isLoading: boolean): void; } declare const LOADER_SERVICE: InjectionToken; interface Survey { id: string; formId: string; courseName: string; thumbnail: string; organisation?: string; createdBy?: string; status: 'Draft' | 'Active' | 'Ended' | 'Archived'; startDate: string; endDate: string; archiveDate: string; submissionRate: string; submissionCount: number; totalCount: number; } interface MDOOption { orgName: string; orgId: string; count: number; } interface DownloadReport { id: string; formid: string; formtitle: string; orgname: string; downloadStatus: 'In Progress' | 'Ready'; fileName: string; generatedAt: number; requestedOn: string; fileUrl?: string; thumbnail?: string; } declare class PvDashboardComponent implements OnInit { private fb; private router; private route; private peerValidationService; private dialog; private configSvc; private snackBar; private loaderService; paginator: MatPaginator; filterForm: FormGroup; displayedColumns: string[]; displayedDownloadColumns: string[]; dataSource: MatTableDataSource; allSurveys: Survey[]; downloadReports: DownloadReport[]; paginatedDownloadReports: DownloadReport[]; selectedTabIndex: number; selectedTab: 'all' | 'active' | 'ended' | 'draft' | 'archived' | 'download'; totalCount: number; downloadTotalCount: number; readonly downloadDefaultPageSize = 20; allCount: number; activeCount: number; endedCount: number; draftCount: number; archivedCount: number; isSPVRoute: boolean; isLoading: boolean; loggedInUserId: string; sortBy: string; sortOrder: 'ASC' | 'DESC'; statusOptions: string[]; mdoOptions: (string | MDOOption)[]; mdoDisplayOptions: (string | MDOOption)[]; hasActiveFilters: boolean; compareMdo: (a: MDOOption, b: MDOOption) => boolean; private computeHasActiveFilters; constructor(fb: FormBuilder, router: Router, route: ActivatedRoute, peerValidationService: PeerValidationService, dialog: MatDialog, configSvc: ConfigurationsService$1, snackBar: MatSnackBar, loaderService: ILoaderService); ngOnInit(): void; initializeForm(): void; clearAllFilters(): void; buildSearchPayload(): any; loadSurveys(): void; loadDownloadReports(): void; mapToDownloadReport(item: any, index: number): DownloadReport; refreshDownloadReports(): void; loadStatusCounts(): void; mapToSurvey(item: any): Survey; ngAfterViewInit(): void; filterByTab(): void; toggleSort(field: string): void; updateDisplayedColumns(): void; onTabChange(index: number): void; onPaginatorChange(): void; onSearch(): void; createNewSurvey(): void; editSurvey(survey: Survey): void; endSurvey(survey: Survey): void; archiveSurvey(survey: Survey): void; downloadExcel(survey: Survey): void; triggerReportDownload(report: DownloadReport): void; getStatusClass(status: string): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class PvConfigStepComponent implements OnInit, OnDestroy { private fb; private peerValidationService; private snackBar; private configSvc; private loaderService; configForm: FormGroup; courseCharCount: number; minTriggerDayOptions: number[]; maxTriggerDayOptions: number[]; courseSearchSubject: Subject; private destroy$; courseSearchResults: any[]; isSearching: boolean; currentSearchQuery: string; currentOffset: number; pageSize: number; totalResults: number; hasMoreResults: boolean; selectedCourse: any; currentPage: number; cardsPerPage: number; environment: any; minDate: Date; courseCategoryList: string[]; constructor(fb: FormBuilder, peerValidationService: PeerValidationService, snackBar: MatSnackBar, configSvc: ConfigurationsService$1, env: any, loaderService: ILoaderService); ngOnInit(): void; ngOnDestroy(): void; initializeForm(): void; setupTriggerValueListener(): void; updateMaxTriggerOptions(minVal: number): void; updateMinDate(): void; setupCourseSearch(): void; setupCategoryChangeListener(): void; onCourseSearch(event: any): void; getCourseCategoryValue(): string; searchCourses(query: string, offset?: number): void; loadMoreResults(): void; get paginatedCourses(): any[]; get totalPages(): number; get visiblePages(): number[]; shouldShowEllipsis(): boolean; shouldShowLastPageButton(): boolean; goToPage(page: number): void; goToFirstPage(): void; goToLastPage(): void; selectCourse(course: any): void; removeSelectedCourse(): void; isCourseSelected(course: any): boolean; getCourseDuration(course: any): string; formatProgramDuration(days: number): string; formatDuration(durationInSeconds: number): string; getCorrectUrl(url: string): string; getLogoUrl(url: string): string; getMissingFields(): string[]; isFormValid(): boolean; getFormData(): any; populateForm(formData: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class HorizontalDynamicStepperComponent implements AfterContentInit { stepper: MatStepper; bodyTemplates: QueryList>; labels: string[]; selectedIndex: number; stepChange: EventEmitter; stepBodies: Map>; ngAfterContentInit(): void; onSelectionChange(event: StepperSelectionEvent): void; /** Programmatically force the mat-stepper to a specific step index */ goToStep(index: number): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class PvCreateComponent implements OnInit, AfterViewInit { private router; private route; private location; private cdr; private snackBar; private peerValidationService; private configSvc; private loaderService; configStepComponent: PvConfigStepComponent; stepperComponent: HorizontalDynamicStepperComponent; stepsLabels: string[]; currentStepperIndex: number; isSPVRoute: boolean; isNewSurvey: boolean; formId: string | null; formData: any; originalSnapshot: any; constructor(router: Router, route: ActivatedRoute, location: Location, cdr: ChangeDetectorRef, snackBar: MatSnackBar, peerValidationService: PeerValidationService, configSvc: ConfigurationsService$1, loaderService: ILoaderService); ngOnInit(): void; loadFormData(id: string): void; refreshFormData(formId: string | null, callback?: () => void): void; populateConfigForm(): void; captureSnapshot(): void; hasFormChanged(): boolean; ngAfterViewInit(): void; backToDashboard(): void; onLoaderChange(value: boolean): void; saveDraftAndExit(): void; buildDraftPayload(): any; buildUpdatePayload(): any; onNext(): void; onPreviousStepper(): void; onStepChanged(index: number): void; validateConfigurationStep(): boolean; onFieldRemoved(fieldName: string): void; onFieldAdded(field: any): void; onPublish(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface ParsedField { id: string; order: number; name: string; fieldType: 'numericRating' | 'textarea' | string; isRequired: boolean; minLabel: string; maxLabel: string; values: { key: string; value: string; }[]; notApplicable: boolean; systemGenerated: boolean; } interface AdditionalQuestion { id: number; type: 'multiple-mcq' | 'single-mcq' | 'text'; question: string; selectionType: string; isRequired: boolean; allowNA: boolean; options: string[]; fieldName: string; } declare class PvQuestionStepComponent implements OnInit { private fb; private _formData; private dataInitialized; set formData(value: any); get formData(): any; fieldAdded: EventEmitter; fieldRemoved: EventEmitter; questionForm: FormGroup; courseName: string; charCounts: { [key: string]: number; }; additionalQuestionCount: number; showMcqEditor: boolean; currentMcqType: 'multiple-mcq' | 'single-mcq' | 'text' | null; mcqEditorForm: FormGroup; savedAdditionalQuestions: AdditionalQuestion[]; nextQuestionId: number; systemGeneratedFields: ParsedField[]; constructor(fb: FormBuilder); ngOnInit(): void; parseFormData(): void; refreshSystemFields(): void; buildForm(fields: ParsedField[]): void; updateCharCount(fieldId: string, event: any): void; getRatingValues(field: ParsedField): any[]; initializeMcqEditorForm(): void; get mcqOptions(): FormArray; addOption(): void; removeOption(index: number): void; addQuestionType(type: 'multiple-mcq' | 'single-mcq' | 'text'): void; closeMcqEditor(): void; saveMcqQuestion(): void; deleteAdditionalQuestion(id: number): void; isFormValid(): boolean; getFormData(): any; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class HorizontalDynamicStepperModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class PeerValidationLibModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class ConsumptionModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class CardResourceComponent extends WidgetBaseComponent implements OnInit, NsWidgetResolver.IWidgetData { widgetData: NsCardContent.ICard; constructor(); ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class CardsComponent extends WidgetBaseComponent implements OnInit, OnDestroy, NsWidgetResolver.IWidgetData { private utilitySvc; private contSvc; private cbpCacheSvc; router: Router; widgetData: NsCardContent.ICard; triggerTelemetry: EventEmitter; isIntranetAllowedSettings: boolean; cbPlanMapData: any; cbPlanSubscription: Subscription | null; constructor(utilitySvc: UtilityService, contSvc: WidgetContentLibService, cbpCacheSvc: CbpPlanCacheService, router: Router); ngOnInit(): void; ngOnDestroy(): void; get isLiveOrMarkForDeletion(): boolean; get showIntranetContent(): boolean; getRedirectUrlData(content: any): Promise; /** @deprecated CBP plan data now arrives via CbpPlanCacheService.watchPlanMap(). */ getCbPlanData(): void; raiseCardClick(data: any): void; redirectToNewVersion(identifier: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class CardPortraitComponent implements OnInit { private snackBar; private translate; private langtranslations; private configSvc; private domainConfSvc; private commonSvc; private contSvc; widgetData: NsCardContent.ICard; isLiveOrMarkForDeletion: any; showIntranetContent: any; isIntranetAllowedSettings: any; isCardLoading: boolean; contentData: EventEmitter; cbPlanMapData: any; isCardFlipped: boolean; acbpConstants: typeof NsCardContent.ACBPConst; defaultThumbnail: any; sourceLogos: any; defaultSLogo: any; showFlip: boolean; widgetType: any; widgetSubType: any; isRelevent: boolean; SAKSHAMAI_ICON_NORMAL: string; SAKSHAMAI_ICON_SUCCESS: string; SAKSHAMAI_ICON_LOADER: string; isHovered: boolean; showStatus: boolean; CaCourseUnitIds: any; constructor(snackBar: MatSnackBar, translate: TranslateService, langtranslations: MultilingualTranslationsService, configSvc: ConfigurationsService$1, domainConfSvc: DomainConfService, commonSvc: CommonMethodsService, contSvc: WidgetContentLibService); isCardElementEnabled(key: string): boolean; ngOnInit(): void; showSnackbar(): void; getRedirectUrlData(contentData: any): void; handleAcceptRelevent(event: Event): void; handleDeclineRelevent(event: Event): void; getStartDate(startDate: any, startTime: any): string; getTime(minutes: number): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare namespace NsCardUser { interface ICard { content: user | IUserProfile; cardSubType: NsCardContent.TCardSubType; context: { pageSection: string; position?: number; }; likes?: number; stateData: any; } interface IUserProfile { userId: string; email?: string; departmentName?: string; userName?: string; name?: string; firstName?: string; surName?: string; middleName?: string; lastName?: string; rootOrgId?: string; rootOrgName?: string; image?: string; givenName?: string; country?: null | string; unit?: string | null; source_profile_picture?: null | string; dealerCode?: null | string; isManager?: boolean; competencies?: any; systemTopics?: any; desiredTopics?: any; desiredCompetencies?: any; userRoles?: any; profileUpdateCompletion?: number; profileImageUrl?: string; professionalDetails?: any; webPortalLang?: any; description?: string; } interface user { userId: string; name?: string; description?: string; image?: string; } type TCardSubType = 'standard' | 'minimal' | 'space-saving' | 'basic-info' | 'basic-details' | 'card-description-back' | 'network-card' | 'user-card'; } declare class CardUserComponent implements OnInit { private snackBar; private events; private translate; private langtranslations; private configSvc; widgetData: NsCardUser.ICard; userData: EventEmitter; defaultThumbnail: any; sourceLogos: any; defaultSLogo: any; widgetType: any; widgetSubType: any; constructor(snackBar: MatSnackBar, events: EventService, translate: TranslateService, langtranslations: MultilingualTranslationsService, configSvc: ConfigurationsService$1); ngOnInit(): void; getRedirectUrlData(userData: any): void; raiseTelemetry(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class CardLandscapeComponent implements OnInit { private snackBar; private events; private translate; private langtranslations; private configSvc; private domainConfSvc; widgetData: NsCardContent.ICard; isLiveOrMarkForDeletion: any; showIntranetContent: any; isIntranetAllowedSettings: any; isCardLoading: boolean; contentData: EventEmitter; triggerTelemetry: EventEmitter; cbPlanMapData: any; /** * Opt in to the enrolment status pill. Off by default so existing usages are unchanged - any * card whose content already carries completionStatus would otherwise start showing one. */ showEnrolmentStatus: boolean; isCardFlipped: boolean; defaultThumbnail: any; acbpConstants: typeof NsCardContent.ACBPConst; sourceLogos: any; defaultSLogo: any; showFlip: boolean; widgetType: any; widgetSubType: any; cbPlanInterval: any; constructor(snackBar: MatSnackBar, events: EventService, translate: TranslateService, langtranslations: MultilingualTranslationsService, configSvc: ConfigurationsService$1, domainConfSvc: DomainConfService); isCardElementEnabled(key: string): boolean; /** * Enrolment status pill, read off content.completionStatus so any caller that already has * enrolment data on the content gets it for free. * * Returns null when the caller has not opted in, when config has switched the element off, or * when the content carries no status at all - the last case being content the user is not * enrolled in, which must render exactly as before. */ get enrolmentStatusPill(): { label: string; cssClass: string; } | null; get requiredKarmaCoins(): number; ngOnInit(): void; showSnackbar(): void; getRedirectUrlData(contentData: any): void; raiseTelemetry(content: any): void; /** * cbPlanMapData is an @Input here — the parent strip supplies it, so this component * never needed its own copy (the assignment has long been commented out). It used to * poll localStorage['cbpData'] every second purely to clear that timer; CBP plan data * now lives in IndexedDB, so the polling is gone. */ getCbPlanData(): void; getProviderNames(providers: any[]): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class CardWideComponent implements OnInit { private snackBar; private events; private translate; private langtranslations; private configSvc; private domainConfSvc; widgetData: NsCardContent.ICard; isLiveOrMarkForDeletion: any; showIntranetContent: any; isIntranetAllowedSettings: any; isCardLoading: boolean; contentData: EventEmitter; isCardFlipped: boolean; defaultThumbnail: any; sourceLogos: any; defaultSLogo: any; showFlip: boolean; widgetType: any; widgetSubType: any; constructor(snackBar: MatSnackBar, events: EventService, translate: TranslateService, langtranslations: MultilingualTranslationsService, configSvc: ConfigurationsService$1, domainConfSvc: DomainConfService); isCardElementEnabled(key: string): boolean; ngOnInit(): void; getRedirectUrlData(contentData: any): void; raiseTelemetry(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class CardMDOChannelComponent implements OnInit { private events; private translate; private langtranslations; private configSvc; private contSvc; router: Router; widgetData: NsContent$1.IContent; channelData: EventEmitter; emitTelemetry: EventEmitter; isCardLoading: boolean; defaultThumbnail: any; sourceLogos: any; defaultSLogo: any; widgetType: any; widgetSubType: any; constructor(events: EventService, translate: TranslateService, langtranslations: MultilingualTranslationsService$1, configSvc: ConfigurationsService$1, contSvc: WidgetContentLibService, router: Router); ngOnInit(): void; raiseTelemetry(contentData: any): void; channelClick(channeldata: any): void; redirectTo(content: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class CardWideV2Component implements OnInit { private snackBar; private events; private translate; private langtranslations; private configSvc; private domainConfSvc; widgetData: NsCardContent.ICard; isLiveOrMarkForDeletion: any; showIntranetContent: any; isIntranetAllowedSettings: any; cbPlanMapData: any; isCardLoading: boolean; contentData: EventEmitter; triggerTelemetry: EventEmitter; isCardFlipped: boolean; acbpConstants: typeof NsCardContent.ACBPConst; defaultThumbnail: any; sourceLogos: any; defaultSLogo: any; showFlip: boolean; widgetType: any; widgetSubType: any; isSmallScreen: boolean; constructor(snackBar: MatSnackBar, events: EventService, translate: TranslateService, langtranslations: MultilingualTranslationsService, configSvc: ConfigurationsService$1, domainConfSvc: DomainConfService); isCardElementEnabled(key: string): boolean; ngOnInit(): void; updateScreenSize(): void; showSnackbar(): void; getRedirectUrlData(contentData: any): void; raiseTelemetry(contentData: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class CardKarmaProgramsComponent implements OnInit { private events; private translate; private langtranslations; private configSvc; private contSvc; private router; widgetData: NsContent$1.IContent; randomColorApply: boolean; userData: EventEmitter; isCardLoading: boolean; defaultThumbnail: any; sourceLogos: any; defaultSLogo: any; widgetType: any; widgetSubType: any; randomColors: any; constructor(events: EventService, translate: TranslateService, langtranslations: MultilingualTranslationsService$1, configSvc: ConfigurationsService$1, contSvc: WidgetContentLibService, router: Router); ngOnInit(): void; setRandomColor(): void; get getRandomColors(): any; redirectTo(data: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class CardKarmaProgramsV2Component implements OnInit { private events; private translate; private langtranslations; private configSvc; private router; widgetData: NsContent$1.IContent; randomColorApply: boolean; userData: EventEmitter; raiseTemeletry: EventEmitter; defaultThumbnail: any; sourceLogos: any; defaultSLogo: any; widgetType: any; widgetSubType: any; randomColors: any; constructor(events: EventService, translate: TranslateService, langtranslations: MultilingualTranslationsService$1, configSvc: ConfigurationsService$1, router: Router); ngOnInit(): void; setRandomColor(): void; redirectTo(content: any): void; get getRandomColors(): any; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ProviderCardComponent implements OnInit { router: Router; contSvc: WidgetContentLibService; widgetData: NsCardContent.ICard; randomColorApply: boolean; isCardLoading: boolean; colors: string[]; constructor(router: Router, contSvc: WidgetContentLibService); ngOnInit(): void; get showKarmaCoinsBadge(): boolean; setRandomColor(): void; redirectTo(content: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class CardPortraitExtComponent implements OnInit { private snackBar; private translate; private langtranslations; private configSvc; private domainConfSvc; private contSvc; widgetData: NsCardContent.ICard; isLiveOrMarkForDeletion: any; showIntranetContent: any; isIntranetAllowedSettings: any; isCardLoading: boolean; contentData: EventEmitter; cbPlanMapData: any; isCardFlipped: boolean; acbpConstants: typeof NsCardContent.ACBPConst; defaultThumbnail: any; sourceLogos: any; defaultSLogo: any; showFlip: boolean; widgetType: any; widgetSubType: any; constructor(snackBar: MatSnackBar, translate: TranslateService, langtranslations: MultilingualTranslationsService, configSvc: ConfigurationsService$1, domainConfSvc: DomainConfService, contSvc: WidgetContentLibService); isCardElementEnabled(key: string): boolean; checkForCiosDuration(content: any): number; ngOnInit(): void; showSnackbar(): void; getRedirectUrlData(contentData: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class CardAssessmentComponent implements OnInit { private configSvc; private contSvc; widgetData: NsContent$1.IContent; contentData: EventEmitter; isCardLoading: boolean; stripData: any; enrollList: any; activeResource: any; eCourseCategory: any; defaultThumbnail: any; defaultSLogo: any; daysRemaining: number; startDate: any; endDate: any; daysPending: boolean; daysFinish: boolean; private intervalId; days: number; hours: number; minutes: number; constructor(configSvc: ConfigurationsService$1, contSvc: WidgetContentLibService); ngOnInit(): void; startCountdown(data: any): void; updateCountdown(startDate: any): void; ngOnDestroy(): void; getRedirectUrlData(contentData: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class CertificateService { private http; constructor(http: HttpClient); downloadCertificate(id: string): Observable; downloadCertificate_v2(id: string): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class CardProgressPortraitLibComponent implements OnInit { private snackBar; private translate; private events; private langtranslations; private configSvc; private domainConfSvc; private contSvc; private certificateService; private dialog; widgetData: NsCardContent.ICard; isLiveOrMarkForDeletion: any; showIntranetContent: any; isIntranetAllowedSettings: any; isCardLoading: boolean; contentData: EventEmitter; redirectToNewVersion: EventEmitter; cbPlanMapData: any; isCardFlipped: boolean; acbpConstants: typeof NsCardContent.ACBPConst; defaultThumbnail: any; sourceLogos: any; defaultSLogo: any; showFlip: boolean; widgetType: any; widgetSubType: any; downloadCertificateLoading: boolean; showRitered: boolean; retiredLabel: string; constructor(snackBar: MatSnackBar, translate: TranslateService, events: EventService, langtranslations: MultilingualTranslationsService, configSvc: ConfigurationsService$1, domainConfSvc: DomainConfService, contSvc: WidgetContentLibService, certificateService: CertificateService, dialog: MatDialog); isCardElementEnabled(key: string): boolean; ngOnInit(): void; showSnackbar(message?: string, duration?: number): void; getRedirectUrlData(contentData: any): void; translateLabels(label: string, type: any, subtype?: any): any; raiseTelemetry(): void; downloadCertificate(certificateData: any, event: any): void; checkSurveyCompletion(): boolean; navigateToNewVersion(contentData: any): void; canEnableCertificateButton(): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class CardMdoChannelV1Component implements OnInit { private events; private translate; private langtranslations; private configSvc; private contSvc; router: Router; widgetData: NsContent$1.IContent; channelData: EventEmitter; emitTelemetry: EventEmitter; isCardLoading: boolean; defaultThumbnail: any; sourceLogos: any; defaultSLogo: any; widgetType: any; widgetSubType: any; constructor(events: EventService, translate: TranslateService, langtranslations: MultilingualTranslationsService$1, configSvc: ConfigurationsService$1, contSvc: WidgetContentLibService, router: Router); ngOnInit(): void; raiseTelemetry(contentData: any): void; channelClick(channeldata: any): void; redirectTo(content: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class AvailableLanguagesComponent implements OnInit { private dialog; private contentLangSvc; content: NsCardContent.ICard; languageList: any[]; constructor(dialog: MatDialog, contentLangSvc: ContentLanguageService); ngOnInit(): void; openLanguageDialog(event: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class BadgeStatsComponent { stats: any[]; tooltipText1: string; tooltipText2: string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ObjectToArrayPipe implements PipeTransform { transform(...args: any[]): any[]; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } declare class ObjectToArrayPipeModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class DisplayContentTypeLibComponent implements OnInit { private langtranslations; useTranslation: boolean; displayContentType: NsContent.EDisplayContentTypes; displayContentTypeEnum: typeof NsContent.EDisplayContentTypes; constructor(langtranslations: MultilingualTranslationsService); ngOnInit(): void; translateLabels(label: string, type: any): any; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class DisplayContentTypeLibModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class DefaultThumbnailDirective implements OnChanges { wsUtilsDefaultThumbnail: string; src: string; isSrcUpdateAttemptedForDefault: boolean; srcUrl: string; updateSrc(): void; ngOnChanges(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class DefaultThumbnailModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class PipeDurationTransformPipe implements PipeTransform { transform(data: number, type: 'time24' | 'hms' | 'hour' | 'hms2H' | 'hms2M' | 'day'): any; defaultDuration(h: number, m: number, s: number): string; hmsCalculation(h: number, m: number, s: number, dur: string, type: string): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } declare class PipeDurationTransformModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class ContentProgressComponent implements OnChanges { contentId: string; progress: number; progressType: string; forPreview: boolean; className: string; customClassName: any; rendom: number; id: string; constructor(); ngOnChanges(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ContentProgressModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class KnowledgeLevelComponent { content: any; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class KnowledgeLevelModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class AvatarPhotoLibComponent implements OnInit, OnChanges { datalen: any; photoUrl: string; name: string; size: string; defaulfColor: string; randomColor: boolean; initials?: string; showBadge: boolean; showInitials: boolean; circleColor: string; random: string; private colors; private randomcolors; ngOnInit(): void; ngOnChanges(change: SimpleChanges): void; get userInitials(): string; private createInititals; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class AvatarPhotoLibModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class CardsModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare const WIDGET_REGISTERED_LIB_MODULES: (typeof CardsModule)[]; declare const WIDGET_REGISTRATION_LIB_CONFIG: NsWidgetResolver.IRegistrationConfig[]; declare class EnrolementDictionaryService { private http; private configSvc; private appDb; constructor(http: HttpClient, configSvc: ConfigurationsService$1, appDb: IndexedDbService); private dbGet; private dbPut; private getExpirySeconds; private getSavedTimestamp; private isCacheValid; private saveCacheTimestamp; /** * Returns the user's enrolment dictionary (keyed by do_id). * Serves from IndexedDB when the cache is still valid, otherwise fetches from the API. * @param forceRefresh bypass cache and always call the API */ getEnrolementDictionary(forceRefresh?: boolean): Observable>; private getEnrolementDictionaryAsync; private fetchAndCacheEnrolementDictionary; /** * Adds a record to the cached enrolment dictionary and saves it back. * Existing entries are kept; an entry with the same do_id is overwritten. * Does not touch the cache timestamp, so it never extends the life of stale data. * * @param record object in the dictionary's own shape, e.g. * { do_123: { primaryCategory: 'Course', courseCategory: 'Course', active: true, status: 0 } } */ addEnrolement(record: Record): Observable; private addEnrolementAsync; /** * Marks a course as un-enrolled in the cached enrolment dictionary and saves it back. * The entry is kept; only active is set to false and status to 0. * Does nothing if the course is not in the dictionary. * Does not touch the cache timestamp. * * @param courseId do_id of the course that was un-enrolled */ updateUnEnrolement(courseId: string): Observable; private updateUnEnrolementAsync; /** Clears the stored enrolment dictionary and resets the cache timestamp. */ clearCache(): Observable; private clearCacheAsync; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } interface IUserCbpPlanContent { identifier: string; mandatory: boolean; } interface IUserCbpPlan { planId: string; name: string; endDate: string; /** Stamped on by this service from the year the plan was fetched for. */ planYear: string; /** * Stamped on from the list the plan arrived in, because the API states it by placement * rather than by field. Carrying it makes a plan self-describing once it is out of that * list — CardTransformerService.resolvePlanType reads it to label the card APAR. */ isApar: boolean; planType: string | null; contentList: IUserCbpPlanContent[]; /** * Content id of the plan's comprehensive assessment, as the dictionary (and * /cbplan/v4/read/:id) now name it. Plans are cached verbatim, so read this first. */ caLinkedId?: string | null; /** * The dictionary's former name for `caLinkedId`. Kept only because an IndexedDB entry * written before the rename can still carry it — read `caLinkedId ?? comprehensiveAssessment`. */ comprehensiveAssessment?: string | null; createdByOrgId: string; createdByOrgName: string; createdByOrgLogo: string | null; } /** What gets cached and returned: the API's two keyed maps, flattened and split by type. */ interface IUserCbpPlanData { aparPlan: number; cbpPlan: number; aiCbpPlan: number; aparPlanList: IUserCbpPlan[]; cbpPlanList: IUserCbpPlan[]; aiCbpPlanList: IUserCbpPlan[]; } /** * The cached value: the data above plus the fields the cache itself needs. * Kept flat rather than wrapped in `{ data }` so what IndexedDB holds is the same shape * callers receive. */ interface IUserCbpPlanCacheEntry extends IUserCbpPlanData { /** * The year the returned plans actually belong to, which is also what each plan in the * lists is stamped with. Usually the year that was asked for — but when the user has no * plans for that year the API answers with an earlier one instead, and this reports the * year the data really is, so a screen can say which year it is showing. */ planYear: string; /** The year that was asked for, and the key this entry is cached under. */ requestedPlanYear: string; cachedAt: number; } type TUserCbpPlanMapType = 'apar' | 'cbp' | 'aicbp'; interface IUserCbpPlanMapEntry { planType: TUserCbpPlanMapType; caLinkedId: string | null; endDate: string; planId: string; } /** Request body under `request`. Unknown fields pass through to the API untouched. */ interface IUserCbpPlanRequest { planYear?: string; [key: string]: any; } interface IUserCbpPlanYearOption { label: string; value: string; current?: boolean; editable?: boolean; } interface IUserCbpPlanYearConfig { currentYear: string; yearList: IUserCbpPlanYearOption[]; } declare class UserCbpPlansService { private http; private configSvc; private appDb; /** * In-flight requests keyed by plan year, dropped as soon as the request settles. * Several strips can ask for the same year in the same tick on a cold cache; without * this each one would issue its own POST. */ private inFlight; constructor(http: HttpClient, configSvc: ConfigurationsService$1, appDb: IndexedDbService); /** * The user's plans for a year, served from IndexedDB while the cache is valid. * * @param callApi true bypasses the cache, calls the API and refreshes the cache with * whatever comes back. False (the default) serves a valid cache entry when there is * one and only calls the API otherwise. * @param request request body; `planYear` defaults to the configured current year, and * any other field is forwarded to the API as-is. */ getUserCbpPlansAsync(callApi?: boolean, request?: IUserCbpPlanRequest): Promise; /** Observable wrapper over getUserCbpPlansAsync, for the library's Observable callers. */ getUserCbpPlans(callApi?: boolean, request?: IUserCbpPlanRequest): Observable; /** * `instanceConfig.cbpPlanYear`, when the instance configures it. * * Read through a cast because NsInstanceConfig.IConfig does not declare `cbpPlanYear` * yet, and both consumers compile against the built @sunbird-cb/utils-v2 package — * adding the field to the model only takes effect once that package is rebuilt. */ get planYearConfig(): IUserCbpPlanYearConfig | undefined; /** Configured plan years, in the order the config lists them. Empty when unconfigured. */ getPlanYearList(): IUserCbpPlanYearOption[]; /** * The plan year to request when a caller names none. * * Config wins over the calendar: `currentYear`, then whichever option is flagged * `current`, and only then the computed financial year — an instance that has not * rolled over to the new year yet still gets the year its config says is current. */ getCurrentPlanYear(): string; /** * Financial year runs April -> March, formatted as YYYY-YY. * e.g. Aug 2026 -> '2026-27', Feb 2027 -> '2026-27'. */ getCurrentFinancialYear(date?: Date): string; /** True when the year is one the instance allows plans to be edited for. */ isPlanYearEditable(planYear?: string): boolean; get expirySeconds(): number; isEntryValid(entry: IUserCbpPlanCacheEntry | undefined): boolean; /** * Returns the cache entry for a plan year, fresh or stale. * Callers use isEntryValid() to decide, so a stale entry can still serve as an * API-failure fallback rather than being silently discarded. */ getCacheEntry(planYear: string): Promise; /** * Clears one plan year, or every year this service knows about when called with no * argument. * * Deliberately deletes key by key rather than clearing the store: CbpPlanCacheService * keeps its V3 entries in the same store, and clearing it would take those with it. */ clearCache(planYear?: string): Promise; /** * True when the entry read back is a V4 entry and not CbpPlanCacheService's V3 one, * which shares this key. V3 sets `cachedAt` too, so the timestamp alone cannot tell * them apart — the plan arrays are what distinguish the shape. */ private isV4Entry; /** * Keyed by the year that was ASKED for, not the year the data turned out to be. * The cache has to answer the same question that was put to it: an entry filed under * the year the API fell back to would miss on every repeat of the original request, and * the fallback would be re-fetched every single time. */ private setCacheEntry; private setPlansMap; private buildPlansMap; private planOutranks; private fetchAndCache; /** * Picks the year slice the API actually answered with, and reports which year that was. * * `result` is keyed by plan year, and the requested year is always present — but it can * come back empty (zero counts, empty maps) while an earlier year still holds the user's * plans. Reading `result[planYear]` alone would then render an empty screen with the * data sitting one key away, so an empty slice is treated as "not the answer" and the * search moves on. Falling back to `result` itself is no good either: that is the * year-keyed wrapper, which has no `aparPlanList` and would also read as "no plans". * * Order: the requested year, then an unkeyed slice (an instance that answers with the * year's contents directly), then the nearest EARLIER year that has plans — 2026-27 * empty falls back to 2025-26, and on back past any year that is also empty. * * The candidates are the dictionary's own keys and nothing else: no year is constructed * by counting back from the requested one, so a response carrying only 2026-27 and * 2025-26 is never probed for a 2024-25 it did not return. The search also only ever * goes backwards — a later year holding plans is not what a user looking at an empty * current year is missing. Descending sort works because YYYY-YY orders by its start * year, and the same comparison places a year before the requested one. * * When no earlier year has plans either, the requested year is returned with its own * (empty) slice, so the screen reports the year that was actually asked for. */ private resolveYearSlice; /** A year's slice of `result`, as opposed to the map that holds those slices. */ private isYearSlice; /** * A year slice that actually carries plans. The counts are not trusted on their own — * they are reported alongside the maps and it is the maps that get rendered, so a slice * only counts as populated when one of them has an entry. */ private hasPlans; private planCount; /** * Flattens the API's planId-keyed maps into the three arrays the UI renders, stamping * each plan with the year it was fetched for. * * APAR plans come through as one list. Non-APAR plans are split on `planType`: 'AICBP' * marks a plan the AI drafted, which the Draft CBP Plan strip shows separately from * ordinary CBP plans — the same rule widget-user-lib.service.ts applies when it carries * `planType` through as `planTypeV2`. */ private transform; /** One planId-keyed map to an array, each plan stamped with its plan year and APAR flag. */ private toPlanArray; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** A criterion value: '*' (any), a single value, or a list of accepted values */ type FormCriterionValue = string | string[]; interface FormRule { id: number; name: string; type?: string; subType: string; clientVersion: number; /** A criterion left out means "any" */ criteria: { [criterion: string]: FormCriterionValue; }; } /** The result of readFormDetails/: that portal's forms for the logged-in user's role */ interface FormLookup { /** criteria names, highest priority first */ rulePriority: string[]; /** * criterion name -> dot path in the user read response (array indexes allowed, e.g. "a.0.b"), * or a list of paths: the first one whose value the lookup uses for that criterion wins */ userFields: { [criterion: string]: string | string[]; }; /** * criterion name -> its values, highest priority first. Used when the user's own value for the * criterion decides nothing but the forms matching the other criteria cover several values. */ valuePriority?: { [criterion: string]: string[]; }; forms: FormRule[]; } /** Used when the lookup can't be read or has no forms list: nothing matches */ declare const EMPTY_FORM_LOOKUP: FormLookup; /** * Picks the form config for a user on the client, using the lookup rules from the readFormDetails API. * Contains no form or criterion specific logic, the rules are documented in form-lookup.ts. * * Each portal's lookup is indexed once by subType|clientVersion, each bucket sorted most * specific first, so a request goes straight to its 1-3 candidates and stops at the first match. * * The lookup is kept in memory and in IndexedDB (iGotAppDB/forms, keyed by portal) for * globalConfig.apicache.formLookupTime seconds; after that the next getForm reads it again. */ declare class FormConfigService { private http; private configSvc; private appDb; private readonly cache; private readonly lookups; private readonly lookupRequests; private clearing; constructor(http: HttpClient, configSvc: ConfigurationsService$1, appDb: IndexedDbService); /** Loads the portal's lookup, finds the form for the user, reads it and returns the read API response (cached per form id) */ getForm(user: any, portal: string, subType: string, clientVersion: number): Observable; /** * The portal's lookup, from memory or IndexedDB while it is younger than the cache time, * otherwise from the API. Calls that miss together share one request; a failed request is * retried by the next call, and falls back to an expired stored copy when there is one. */ loadLookup(portal: string): Observable; private loadPortalLookup; private readPortalLookup; private setPortalLookup; private isFresh; /** globalConfig.apicache.formLookupTime, else the value seen last time it was loaded, else the default */ private expirySeconds; /** The portal's lookup must be loaded (loadLookup) first, until then nothing is found */ findForm(user: any, portal: string, subType: string, clientVersion: number): FormRule | null; private matches; /** The user's normalized value for a criterion: of a userFields list, the first path with a known value, else the first present */ private readUserValue; /** * For a criterion in the lookup's valuePriority that the strict match did not use: if the forms * matching every other criterion cover more than one of its values, the one whose value comes * first in the priority list wins, provided it is more specific than the strict match. */ private findByValuePriority; /** Clears cached read responses and lookups, in memory and IndexedDB, so the next getForm reads both again */ clearCache(): void; /** A response without a forms list is treated as an empty lookup, so every page uses its fallback */ private buildPortalLookup; /** Fills in what the API leaves out, and spells criterion names as in rulePriority/userFields ("rootorg" -> rootOrg) */ private prepareLookup; /** A valuePriority criterion only matters in a bucket whose forms cover 2+ of its values */ private buildPriorityGroups; private indexKey; private indexForm; private readForm; /** globalConfig.apiTimeouts[apiKey], each field falling back to API_TIMEOUT_DEFAULTS */ private apiTimeoutConfig; /** Higher priority criteria are worth more than any combination of lower ones */ private specificity; /** Reads a dot path like "profileDetails.professionalDetails.0.designation" */ private readPath; private normalize; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare namespace NsContentStripWithFacets { export interface IContentStripMultiple { errorWidget?: NsWidgetResolver.IRenderConfigWithAnyData; loader?: boolean; noDataWidget?: NsWidgetResolver.IRenderConfigWithAnyData; strips: IContentStripUnit[]; isChannelStrip?: boolean; } export interface IContentStripUnit { stripRequestFor?: string; onTabClickRequest?: boolean; hideViewMoreUrl?: boolean; type: string; disableTranslate?: any; key: string; title: string; customeClass?: string; nodataMsg?: string; stripTitleLink?: { link: { queryParams: string; }; icon: string; queryParams: string; }; sliderConfig?: { showNavs: boolean; showDots: boolean; maxWidgets?: number; cerificateCardMargin?: boolean; dotsAlign?: "right" | "left"; arrowsPlacement?: "bottom-right" | "bottom-center" | "bottom-left" | "middle-inline"; responsive?: { showNavs: boolean; showDots: boolean; dotsAlign?: "right" | "left"; arrowsPlacement?: "bottom-right" | "bottom-center" | "bottom-left" | "middle-inline"; }; }; tabs?: NsContentStripWithFacets.IContentStripTab[] | undefined; titleDescription?: string; name?: string; mode?: string | 'accordion'; info?: IStripInfo; logo?: string; preWidgets?: NsWidgetResolver.IRenderConfigWithAnyData[]; postWidgets?: NsWidgetResolver.IRenderConfigWithAnyData[]; stripConfig?: IStripConfig; canHideStrip?: boolean; showStrip: boolean; filters?: any[]; selectAll?: boolean | null; request?: { requestBody: any; playlistRead: any; playlistSearch?: any; ciosContent?: any; search?: NSSearch.ISearchRequest; searchV6?: NSSearch.ISearchV6Request; topContent?: any; featureContent?: any; bookmarkRead?: any; enrollmentList?: any; cbpList?: any; apiUrl: string; searchRegionRecommendation?: NSSearch.ISearchOrgRegionRecommendationRequest; api?: IStripRequestApi; networkApi?: INetworkRequestApi; ids?: string[]; recommendedCourses?: any; masterCompetency?: any; trendingSearch?: any; }; searchV6Type?: 'KB' | 'Collections' | 'searchQuery' | null; stripBackground?: string; noDataWidget?: NsWidgetResolver.IRenderConfigWithAnyData; loader?: boolean; loaderWidgets?: any; errorWidget?: NsWidgetResolver.IRenderConfigWithAnyData; refreshEvent?: Record<'eventType' | 'from', string>; fetchLikes?: boolean; secondaryHeading?: any; viewMoreUrl?: { queryParams?: any; viewMoreText: string; path: string; }; data?: []; } export interface IStripRequestApi { path: string; queryParams?: { pageNo?: number; pageSize?: number; pageState?: string; sourceFields?: string; }; } export interface INetworkRequestApi { path: string; data?: any; } export interface IStripInfo { mode: 'below' | 'popup' | 'modal'; visibilityMode?: 'hidden' | 'visible'; icon: { icon: string; scale: number; style?: any; }; widget: NsWidgetResolver.IRenderConfigWithAnyData; } interface IStripConfig { cardSubType: NsCardContent.TCardSubType; postCardForSearch?: boolean; intranetMode?: 'greyOut' | 'hide'; deletedMode?: 'greyOut' | 'hide'; contentTags?: IContentTags; hideShowAll?: boolean; } export interface IContentTags { daysSpan?: number; excludeContentType?: NsContent.EContentTypes[]; excludeMimeType?: string[]; tag: string; criteriaField: string; } export interface IContentStripResponseApi { contents: NsContent.IContent[]; hasMore?: boolean; pageState?: string; totalHits?: number; } export interface IContentStripTab { pillsData?: any; label: string; value: string; showTabDataCount: boolean; requestRequired?: boolean; computeDataOnClick?: boolean; computeDataOnClickKey?: string; request?: any; widgets?: NsWidgetResolver.IRenderConfigWithAnyData[]; maxWidgets?: number; fetchTabStatus?: string; nodataMsg?: string; tabLoading?: boolean; facets?: any; } export {}; } interface IStripUnitContentData$1 { key: string; canHideStrip: boolean; mode?: string; showStrip: boolean; disableTranslate: boolean; widgets?: NsWidgetResolver.IRenderConfigWithAnyData[]; stripTitle: string; hideViewMoreUrl?: boolean; stripTitleLink?: { link: { queryParams: string; }; icon: string; queryParams: string; }; sliderConfig?: { showNavs: boolean; showDots: boolean; maxWidgets?: number; cerificateCardMargin?: boolean; }; stripConfig: any; tabs?: NsContentStripWithFacets.IContentStripTab[] | undefined; stripName?: string; stripLogo?: string; description?: string; stripInfo?: NsContentStripWithFacets.IStripInfo; noDataWidget?: NsWidgetResolver.IRenderConfigWithAnyData; errorWidget?: NsWidgetResolver.IRenderConfigWithAnyData; showOnNoData: boolean; showOnLoader: boolean; showOnError: boolean; loaderWidgets?: any; stripBackground?: string; secondaryHeading?: any; viewMoreUrl: any; request?: any; } declare class ContentStripFacetFilterComponent extends WidgetBaseComponent implements OnInit, OnDestroy, NsWidgetResolver.IWidgetData { private contentSvc; private loggerSvc; private eventSvc; private configSvc; utilitySvc: UtilityService; router: Router; private userSvc; private translate; private langtranslations; private _fb; widgetData: NsContentStripWithFacets.IContentStripMultiple; emptyResponse: EventEmitter; viewAllResponse: EventEmitter; telemtryLearningContentResponse: EventEmitter; providerId: any; emitViewAll: boolean; channnelName: any; id: string; stripsResultDataMap: { [key: string]: IStripUnitContentData$1; }; stripsKeyOrder: string[]; showAccordionData: boolean; showParentLoader: boolean; showParentError: boolean; showParentNoData: boolean; errorDataCount: number; noDataCount: number; successDataCount: number; contentAvailable: boolean; baseUrl: string; veifiedKarmayogi: boolean; environment: any; changeEventSubscription: Subscription | null; defaultMaxWidgets: number; enrollInterval: any; todaysEvents: any; facetForm: any; constructor(environment: any, contentSvc: WidgetContentLibService, loggerSvc: LoggerService, eventSvc: EventService, configSvc: ConfigurationsService$1, utilitySvc: UtilityService, router: Router, userSvc: WidgetUserServiceLib, translate: TranslateService, langtranslations: MultilingualTranslationsService, _fb: UntypedFormBuilder); ngOnDestroy(): void; ngOnInit(): void; private initData; private fetchStripFromKey; private fetchStripFromRequestData; private transformSkeletonToWidgets; private processStrip; private checkParentStatus; checkForEmptyWidget(strip: NsContentStripWithFacets.IContentStripUnit): boolean; toggleInfo(data: IStripUnitContentData$1): void; raiseTelemetry(stripData: any): void; setHiddenForStrip(key: string): void; getSelectedPillIndex(tabdata: any, tabIndex: any): any; getdata(data: IStripUnitContentData$1): {}; tabClicked(tabEvent: any, pillIndex: any, stripMap: IStripUnitContentData$1, stripKey: string): void; pillClicked(event: any, stripMap: IStripUnitContentData$1, stripKey: any, pillIndex: any, tabIndex: any): void; resetSelectedPill(pillData: any): void; getTabDataByfilter(strip: NsContentStripWithFacets.IContentStripUnit, currentTab: NsContentStripWithFacets.IContentStripTab, calculateParentStatus: boolean): void; private getIfStripHidden; translateLabels(label: string, type: any): any; redirectViewAll(stripData: any, path: string, queryParamsData: any): void; identify(index: number, item: any): any; tracker(index: number, item: any): any; getContineuLearningLenth(data: IStripUnitContentData$1): number; showAccordion(key: string): boolean; checkCondition(wData: NsContentStripWithFacets.IContentStripMultiple, data: IStripUnitContentData$1): boolean; checkVisible(data: IStripUnitContentData$1): boolean; getSelectedIndex(stripsResultDataMap: any, key: any): number; getLength(data: IStripUnitContentData$1): any; isStripShowing(data: any): any; get isMobile(): boolean; postRequestMethod(strip: NsContentStripWithFacets.IContentStripUnit, request: NsContentStripWithFacets.IContentStripUnit['request'], apiUrl: string, calculateParentStatus: boolean): Promise; fetchFromSearch(strip: NsContentStripWithFacets.IContentStripUnit, calculateParentStatus?: boolean): Promise; mapAllDataWithFacets(strip: any, content: any, facets: any, calculateParentStatus: any): void; private transformContentsToWidgets; getorgData(eventData: any, stripMap: any, tabIndex: any): void; resetFilter(stripMap: any, tabIndex: any, pillIndex: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ContentStripFacetFilterModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare namespace NsContentStripWithTabsAndPills { export interface IContentStripMultiple { errorWidget?: NsWidgetResolver.IRenderConfigWithAnyData; loader?: boolean; noDataWidget?: NsWidgetResolver.IRenderConfigWithAnyData; strips: IContentStripUnit[]; isChannelStrip?: boolean; } export interface IContentStripUnit { type: string; disableTranslate?: any; key: string; title: string; customeClass?: string; nodataMsg?: string; stripTitleLink?: { link: { queryParams: string; }; icon: string; queryParams: string; }; sliderConfig?: { showNavs: boolean; showDots: boolean; maxWidgets?: number; cerificateCardMargin?: boolean; dotsAlign?: "right" | "left"; arrowsPlacement?: "bottom-right" | "bottom-center" | "bottom-left" | "middle-inline"; responsive?: { showNavs: boolean; showDots: boolean; dotsAlign?: "right" | "left"; arrowsPlacement?: "bottom-right" | "bottom-center" | "bottom-left" | "middle-inline"; }; }; tabs?: NsContentStripWithTabsAndPills.IContentStripTab[] | undefined; titleDescription?: string; name?: string; mode?: string | 'accordion'; info?: IStripInfo; logo?: string; preWidgets?: NsWidgetResolver.IRenderConfigWithAnyData[]; postWidgets?: NsWidgetResolver.IRenderConfigWithAnyData[]; stripConfig?: IStripConfig; canHideStrip?: boolean; showStrip: boolean; filters?: any[]; selectAll?: boolean | null; request?: { playlistRead: any; playlistSearch?: any; ciosContent?: any; search?: NSSearch.ISearchRequest; searchV6?: NSSearch.ISearchV6Request; topContent?: any; featureContent?: any; bookmarkRead?: any; enrollmentList?: any; cbpList?: any; designationsList?: any; apiUrl: string; searchRegionRecommendation?: NSSearch.ISearchOrgRegionRecommendationRequest; api?: IStripRequestApi; networkApi?: INetworkRequestApi; ids?: string[]; recommendedCourses?: any; masterCompetency?: any; trendingSearch?: any; microSearch?: any; }; searchV6Type?: 'KB' | 'Collections' | 'searchQuery' | null; stripBackground?: string; noDataWidget?: NsWidgetResolver.IRenderConfigWithAnyData; loader?: boolean; loaderWidgets?: any; errorWidget?: NsWidgetResolver.IRenderConfigWithAnyData; refreshEvent?: Record<'eventType' | 'from', string>; fetchLikes?: boolean; secondaryHeading?: any; viewMoreUrl?: { queryParams?: any; viewMoreText: string; path: string; }; data?: []; showOnLoader?: boolean; } export interface IStripRequestApi { path: string; queryParams?: { pageNo?: number; pageSize?: number; pageState?: string; sourceFields?: string; }; } export interface INetworkRequestApi { path: string; data?: any; } export interface IStripInfo { mode: 'below' | 'popup' | 'modal'; visibilityMode?: 'hidden' | 'visible'; icon: { icon: string; scale: number; style?: any; }; widget: NsWidgetResolver.IRenderConfigWithAnyData; } interface IStripConfig { cardSubType: NsCardContent.TCardSubType; postCardForSearch?: boolean; intranetMode?: 'greyOut' | 'hide'; deletedMode?: 'greyOut' | 'hide'; contentTags?: IContentTags; hideShowAll?: boolean; } export interface IContentTags { daysSpan?: number; excludeContentType?: NsContent.EContentTypes[]; excludeMimeType?: string[]; tag: string; criteriaField: string; } export interface IContentStripResponseApi { contents: NsContent.IContent[]; hasMore?: boolean; pageState?: string; totalHits?: number; } export interface IContentStripTab { pillsData?: any; label: string; value: string; showTabDataCount: boolean; requestRequired?: boolean; computeDataOnClick?: boolean; computeDataOnClickKey?: string; request?: any; widgets?: NsWidgetResolver.IRenderConfigWithAnyData[]; maxWidgets?: number; fetchTabStatus?: string; nodataMsg?: string; tabLoading?: boolean; hideTab?: boolean; } export {}; } interface IStripUnitContentData { key: string; canHideStrip: boolean; mode?: string; showStrip: boolean; disableTranslate: boolean; widgets?: NsWidgetResolver.IRenderConfigWithAnyData[]; stripTitle: string; stripTitleLink?: { link: { queryParams: string; }; icon: string; queryParams: string; }; sliderConfig?: { showNavs: boolean; showDots: boolean; maxWidgets?: number; cerificateCardMargin?: boolean; }; stripConfig: any; tabs?: NsContentStripWithTabsAndPills.IContentStripTab[] | undefined; stripName?: string; stripLogo?: string; description?: string; stripInfo?: NsContentStripWithTabsAndPills.IStripInfo; noDataWidget?: NsWidgetResolver.IRenderConfigWithAnyData; errorWidget?: NsWidgetResolver.IRenderConfigWithAnyData; showOnNoData: boolean; showOnLoader: boolean; showOnError: boolean; loaderWidgets?: any; stripBackground?: string; secondaryHeading?: any; viewMoreUrl: any; request?: any; } declare class ContentStripWithTabsPillsComponent extends WidgetBaseComponent implements OnInit, OnDestroy, AfterViewInit, NsWidgetResolver.IWidgetData { private contentSvc; private loggerSvc; private eventSvc; private configSvc; utilitySvc: UtilityService; router: Router; private userSvc; private translate; private langtranslations; private enrollSvc; private matDialog; snackBar: MatSnackBar; private commonSvc; private cbpCacheSvc; private ngZone; widgetData: NsContentStripWithTabsAndPills.IContentStripMultiple; emptyResponse: EventEmitter; viewAllResponse: EventEmitter; telemtryResponse: EventEmitter; providerId: any; emitViewAll: boolean; channnelName: any; id: string; stripsResultDataMap: { [key: string]: IStripUnitContentData; }; stripsKeyOrder: string[]; showAccordionData: boolean; showParentLoader: boolean; showParentError: boolean; showParentNoData: boolean; errorDataCount: number; noDataCount: number; successDataCount: number; contentAvailable: boolean; baseUrl: string; veifiedKarmayogi: boolean; environment: any; changeEventSubscription: Subscription | null; defaultMaxWidgets: number; maxWidgetsSakshamAI: number; enrollInterval: any; todaysEvents: any; activeTabIndex: number; activePillIndex: number; recommendationPopup: boolean; sakshamFeedbackPopup: boolean; sakshamAddCompetency: boolean; sakshamLoader: boolean; recommendedCoursesId: string; releventNotReleventSubscription: Subscription | null; cbpPlanMapSubscription: Subscription | null; /** identifier -> CBP plan item for the current plan year (from IndexedDB). */ cbpPlanMap: Record; telementrySubscription: Subscription | null; feedbackCourseId: string; currentStripG: any; tabEventG: any; firstTimeLoaded: boolean; localRecommended: any; sakshamAIEnum: typeof SakshamAI; CaCourseUnitIds: any; tabGroups: QueryList; private paginationTimers; constructor(environment: any, contentSvc: WidgetContentLibService, loggerSvc: LoggerService, eventSvc: EventService, configSvc: ConfigurationsService$1, utilitySvc: UtilityService, router: Router, userSvc: WidgetUserServiceLib, translate: TranslateService, langtranslations: MultilingualTranslationsService, enrollSvc: WidgetEnrollService, matDialog: MatDialog, snackBar: MatSnackBar, commonSvc: CommonMethodsService, cbpCacheSvc: CbpPlanCacheService, ngZone: NgZone); ngOnInit(): void; subscribeToTelementry(): void; parametrizedText(str: string): string; ngAfterViewInit(): void; ngOnDestroy(): void; /** * Directly call updatePagination() on each MatTabGroup to recalculate * whether pagination arrows should be shown. Uses staggered delays * to handle async rendering during SPA navigation. */ private triggerTabPaginationUpdate; private clearPaginationTimers; showAccordion(key: string): boolean; setHiddenForStrip(key: string): void; private getIfStripHidden; initData(): void; private fetchStripFromKey; isStripShowing(data: any): any; get isMobile(): boolean; getdata(data: IStripUnitContentData): {}; checkCondition(wData: NsContentStripWithTabsAndPills.IContentStripMultiple, data: IStripUnitContentData): boolean; checkVisible(data: IStripUnitContentData): boolean; getContineuLearningLenth(data: IStripUnitContentData): number; getLength(data: IStripUnitContentData): number | true; private getFiltersFromArray; private transformSearchV6FiltersV2; checkForDateFilters(filters: any): any; private fetchStripFromRequestData; toggleInfo(data: IStripUnitContentData): void; private transformContentsToWidgets; private transformEventsToWidgets; private transformSkeletonToWidgets; private processStrip; private checkParentStatus; checkForEmptyWidget(strip: NsContentStripWithTabsAndPills.IContentStripUnit): boolean; getRecommendedId(strip: any): string; getTabDataByfilter(strip: NsContentStripWithTabsAndPills.IContentStripUnit, currentTab: NsContentStripWithTabsAndPills.IContentStripTab, calculateParentStatus: boolean): void; getSelectedIndex(stripsResultDataMap: any, key: any): number; translateLabels(label: string, type: any): any; identify(index: number, item: any): any; tracker(index: number, item: any): any; raiseTelemetry(stripData: any): void; redirectViewAll(stripData: any, path: string, queryParamsData: any, tabIndex?: number): void; private getSelectedPill; private navigateToSelectedPillUrl; private navigateToRoute; fetchForYouData(strip: NsContentStripWithTabsAndPills.IContentStripUnit, calculateParentStatus?: boolean): void; fetchFromSearchV6(strip: NsContentStripWithTabsAndPills.IContentStripUnit, calculateParentStatus?: boolean): Promise; getTabDataByNewReqTrending(strip: NsContentStripWithTabsAndPills.IContentStripUnit, tabIndex: number, pillIndex: number, currentTab: NsContentStripWithTabsAndPills.IContentStripTab, calculateParentStatus: boolean): Promise; getTabDataByNewReqSearchV6(strip: NsContentStripWithTabsAndPills.IContentStripUnit, tabIndex: number, pillIndex: number, currentTab: NsContentStripWithTabsAndPills.IContentStripTab, calculateParentStatus: boolean): Promise; trendingSearchRequest(strip: NsContentStripWithTabsAndPills.IContentStripUnit, request: NsContentStripWithTabsAndPills.IContentStripUnit['request'], calculateParentStatus: boolean): Promise; tabChanged(tabIndex: number, stripMap: IStripUnitContentData, stripKey: string): void; tabClicked(tabEvent: any, pillIndex: any, stripMap: IStripUnitContentData, stripKey: string): void; fetchDesignationBasedCourses(strip: NsContentStripWithTabsAndPills.IContentStripUnit, tabIndex: number, calculateParentStatus: boolean): Promise; resetPills(data: any): void; splitDesignationsTabData(contentNew: NsContent.IContent[], strip: NsContentStripWithTabsAndPills.IContentStripUnit, enollData: any, coursesArray: any, type: string): NsContentStripWithTabsAndPills.IContentStripTab[]; getTabsDesignationsList(array: NsContent.IContent[], strip: NsContentStripWithTabsAndPills.IContentStripUnit, enollData: any, coursesArray: any): { value: string; widgets: ({ widgetType: string; widgetSubType: string; widgetHostClass: string; widgetData: { cardSubType: string; cardCustomeClass: string; context: { pageSection: string; position: number; }; intranetMode: "" | "greyOut" | "hide"; deletedMode: "" | "greyOut" | "hide"; contentTags: NsContentStripWithTabsAndPills.IContentTags; sakshamAIGenerated: string; batch: any; content: NsContent.IContent; }; } | { widgetType: string; widgetSubType: string; widgetHostClass: string; widgetData: {}; })[]; }[]; pillClicked(event: any, stripMap: IStripUnitContentData, stripKey: any, pillIndex: any, tabIndex: any): void; searchV6Request(strip: NsContentStripWithTabsAndPills.IContentStripUnit, request: NsContentStripWithTabsAndPills.IContentStripUnit['request'], calculateParentStatus: boolean): Promise; getSelectedPillIndex(tabdata: any, tabIndex: any): any; canShowHeading(strip: any): boolean; /** * The selected CBP plan year is owned by the host portal and arrives on the strip's * request config. Falls back to the current financial year when it is not supplied. */ private resolveCbpPlanYear; /** * Carries the plan year onto "View All" so the listing page opens on the same year * the user was looking at, instead of defaulting to the current one. */ private applyCbpPlanYearToViewMore; fetchAllCbpPlans(strip: any, calculateParentStatus?: boolean): Promise; canShowSakshamAiTab(strip: any): Promise; splitCbpTabsData(contentNew: NsContent.IContent[], strip: NsContentStripWithTabsAndPills.IContentStripUnit): NsContentStripWithTabsAndPills.IContentStripTab[]; getTabsList(array: NsContent.IContent[], strip: NsContentStripWithTabsAndPills.IContentStripUnit): { value: string; widgets: ({ widgetType: string; widgetSubType: string; widgetHostClass: string; widgetData: { cardSubType: string; cardCustomeClass: string; context: { pageSection: string; position: number; }; intranetMode: "" | "greyOut" | "hide"; deletedMode: "" | "greyOut" | "hide"; contentTags: NsContentStripWithTabsAndPills.IContentTags; sakshamAIGenerated: string; batch: any; content: NsContent.IContent; }; } | { widgetType: string; widgetSubType: string; widgetHostClass: string; widgetData: {}; })[]; }[]; resetSelectedPill(pillData: any): void; fetchUserEnrolledData(strip: NsContentStripWithTabsAndPills.IContentStripUnit, tabIndex: number, pillIndex: number, calculateParentStatus?: boolean): void; fetchFromInternalEnrollmentList(strip: NsContentStripWithTabsAndPills.IContentStripUnit, tabIndex: number, pillIndex: number, calculateParentStatus?: boolean): void; fetchEventEnrollmentList(strip: NsContentStripWithTabsAndPills.IContentStripUnit, tabIndex: number, pillIndex: number, calculateParentStatus?: boolean): void; formatNewEnrollmentData(strip: any, tabIndex: number, pillIndex: number, courses: any, calculateParentStatus?: any): void; addCompetency(): void; generateCourseRecommendation(strip: NsContentStripWithTabsAndPills.IContentStripUnit, tabIndex: number, calculateParentStatus: boolean, courseRecommendationId: string): Promise; saveFeedback(comment: string, rating?: number): Promise; subscribeToReleventEmmitter(): void; cancelFeedbackPopup(): void; statusChangetoDone(strip: any, tabIndex: number, pillIndex: number): void; getFullUrl(apiUrl: any, id: string): string; fetchPlaylistReadData(strip: any, calculateParentStatus?: boolean): Promise; getRequestMethod(strip: any, request: NsContentStripWithTabs.IContentStripUnit['request'], apiUrl: string, calculateParentStatus: boolean): Promise; getTabDataByNewReqPlaylistReadContent(strip: any, tabIndex: number, pillIndex: number, currentTab: NsContentStripWithTabs.IContentStripTab, calculateParentStatus: boolean): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ContentStripWithTabsPillsModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } interface IPillRequest { microSearch?: any; nanoSearch?: any; trendingSearch?: any; searchV6?: any; } interface IPillData { label: string; value: string; computeDataOnClick: boolean; computeDataOnClickKey: string; requestRequired: boolean; showTabDataCount: boolean; maxWidgets: number; selected: boolean; hideTab: boolean; nodataMsg: string; request?: IPillRequest; widgets?: any[]; fetchStatus?: 'loading' | 'done' | 'error' | 'empty'; } interface ITabData { label: string; value: string; hideTab?: boolean; pillsData: IPillData[]; } interface IViewMoreUrl { path: string; viewMoreText: string; queryParams?: any; loaderConfig?: any; stripConfig?: any; } interface ISliderConfig { showNavs: boolean; showDots: boolean; maxWidgets: number; showNavsSpacing: boolean; } interface IStripConfig { cardSubType: string; intranetMode?: boolean; deletedMode?: boolean; contentTags?: string[]; } interface IStripData { active: boolean; key: string; title: string; type: string; disableTranslate: boolean; stripTitleLink: { link: string; icon: string; }; sliderConfig: ISliderConfig; stripConfig: IStripConfig; viewMoreUrl: IViewMoreUrl; loader: boolean; loaderConfig: { cardSubType: string; }; tabs: ITabData[]; } interface IWidgetData { order: number; stripType: string; stripVisable: string; strips: IStripData[]; } declare class ContentStripWithTabsPillsNewComponent implements OnInit, OnDestroy, AfterViewInit { private router; private cdr; private configSvc; private contentSvc; private langtranslations; private ngZone; widgetData: IWidgetData | null; tabChanged: EventEmitter; pillChanged: EventEmitter; contentLoaded: EventEmitter; activeTabIndices: { [stripKey: string]: number; }; activePillIndices: { [key: string]: number; }; private skeletonCache; tabGroups: QueryList; private isUserInitiatedTabClick; private loadingTabs; private paginationTimers; constructor(router: Router, cdr: ChangeDetectorRef, configSvc: ConfigurationsService$1, contentSvc: WidgetContentLibService, langtranslations: MultilingualTranslationsService, ngZone: NgZone); ngOnInit(): void; ngAfterViewInit(): void; ngOnDestroy(): void; /** Directly call MatTabGroup.updatePagination() so mat-tab-header recalculates pagination arrows */ private triggerTabPaginationUpdate; private clearPaginationTimers; initializeComponent(): void; getActiveTabIndex(strip: IStripData): number; onTabChange(tabIndex: number, strip: IStripData, stripIndex: number, isUserClick?: boolean): void; getActualTabIndex(strip: IStripData, visibleIndex: number): number; getActualTabIndexFromTab(strip: IStripData, tab: ITabData): number; isTabDisabled(tab: ITabData): boolean; isTabHidden(tab: ITabData): boolean; getVisibleTabs(strip: IStripData): ITabData[]; getTabContentCount(tab: ITabData): number; isPillSelected(pill: IPillData, tab: ITabData, strip: IStripData, pillIndex: number, tabIndex: number): boolean; onPillClick(pill: IPillData, tab: ITabData, strip: IStripData, pillIndex: number, tabIndex: number, stripIndex: number): void; isPillLoading(tab: ITabData, strip: IStripData, tabIndex: number): boolean; isPillEmpty(tab: ITabData, strip: IStripData, tabIndex: number): boolean; hasContentToShow(tab: ITabData, strip: IStripData, tabIndex: number): boolean; shouldShowViewMore(tab: ITabData, strip: IStripData, tabIndex: number): boolean; getSelectedPillData(tab: ITabData, strip: IStripData, tabIndex: number): IPillData | null; getContentLength(tab: ITabData, strip: IStripData, tabIndex: number): number; getMaxWidgets(tab: ITabData, strip: IStripData, tabIndex: number): number; getDisplayContent(tab: ITabData, strip: IStripData, tabIndex: number): any[]; getSkeletonWidgets(strip: IStripData, tabIndex: number): any[]; trackWidget(index: number, widget: any): any; handleViewMore(strip: IStripData): void; translateLabels(label: string, type: any): any; private loadPillContent; private tryLoadNextTab; private callMicroSearchAPI; private clearSkeletonCache; private callTrendingSearchAPI; private callSearchV6API; private transformContentsToWidgets; private transformSkeletonToWidgets; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare function HttpLoaderFactory2(http: HttpClient): TranslateHttpLoader; declare class ContentStripWithTabsPillsNewModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class CompetencyPassbookService { private http; constructor(http: HttpClient); getCompetencyList(payload: any): Observable; getCompetencyListv_V2(): Observable; fetchCertificate(certId: string): Observable; fetchCompetencyV6(): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare namespace NsCompentency { interface CompentencyKeys { vKey: string; vCompetencyArea: string; vCompetencyAreaDescription: string; vCompetencyTheme: string; vCompetencySubTheme: string; } } declare class CompetencyPassbookComponent implements OnInit { configSvc: ConfigurationsService$1; contentSvc: WidgetContentLibService; competencySvc: CompetencyPassbookService; router: Router; objectData: any; providerId: any; cardDisplayCount: any; dynamicClass: any; dynamicColor: any; dynamicAlignPills: any; emptyResponse: EventEmitter; temeletryResponse: EventEmitter; loadCometency: boolean; loadCompetencyArea: boolean; originalCompetencyArray: any; competencyArea: any[]; selectedValue: any; competencyVersion: string; competencyTheme: any; allcompetencyTheme: any; competencyStrength: any; competencyThemeLength: any; showAllTheme: any; environment: any; comeptencyKeys: NsCompentency.CompentencyKeys; constructor(configSvc: ConfigurationsService$1, contentSvc: WidgetContentLibService, competencySvc: CompetencyPassbookService, router: Router, environment: any); ngOnInit(): void; showMore(): void; getCompetencyArea(): Promise; callCompetencySearch(request: any): Promise; competencyChange(e: any): void; getAllCompetencies(): void; getAllCompetenciesV2(): void; getcompetencyTheme(value: any, addFilter?: any): Promise; getThemeDataByArea(areaData: any): void; getcompetencyThemeCount(area: any, addFilter?: any): Promise; resetViewMore(): void; viewMoreChildren(data: any): void; displayAllTheme(event: any): void; navigateToCompetency(compData: any): void; getcompetencySubTheme(compArea: any, addFilter?: any): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class PillsComponent implements OnInit { pillsData: any; selectedValue: any; isLoading: boolean; pillClick: EventEmitter; dynamicClass: any; dynamicColor: any; requiredTitlecase: boolean; constructor(); ngOnInit(): void; selectedPill(pillData: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class PillsModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class CompetencyPassbookModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class CompetencyPassbookMdoService { private http; constructor(http: HttpClient); getCompetencyList(payload: any): Observable; getCompetencyListv_V2(): Observable; mdoCompetency(providerId: string): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class CompetencyPassbookMdoComponent implements OnInit { configSvc: ConfigurationsService$1; contentSvc: WidgetContentLibService; competencySvc: CompetencyPassbookMdoService; router: Router; objectData: any; providerId: any; cardDisplayCount: any; dynamicClass: any; dynamicColor: any; dynamicAlignPills: any; emptyResponse: EventEmitter; temeletryResponse: EventEmitter; loadCometency: boolean; loadCompetencyArea: boolean; originalCompetencyArray: any; competencyArea: any[]; selectedValue: any; competencyVersion: string; competencyThemeData: any; competencyTheme: any; allcompetencyTheme: any; competencyStrength: any; competencyThemeLength: any; showAllTheme: any; environment: any; comeptencyKeys: NsCompentency.CompentencyKeys; constructor(configSvc: ConfigurationsService$1, contentSvc: WidgetContentLibService, competencySvc: CompetencyPassbookMdoService, router: Router, environment: any); ngOnInit(): void; getAllCompetencies(): void; getAllCompetenciesV2(): void; getMdoCompetencies(): Promise; getCompetencyThemeCount(area: any): number; getCompetencyTheme(): void; getMdoCompetency(): Promise; competencyChange(e: any): void; resetViewMore(): void; viewMoreChildren(data: any): void; displayAllTheme(event: any): void; navigateToCompetency(compData: any): void; showMore(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class CompetencyPassbookMdoModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare namespace NsAppRating { interface IRating { activityId: string; userId: string; activityType: string; rating: number; review: string; recommended: any; } interface ILookupRequest { activityId: string; activityType: string; rating?: number; limit: number; updateOn?: string; } } declare class RatingService { http: HttpClient; constructor(http: HttpClient); getRating(contentId: string, contentType: string, userId: string): Observable; addOrUpdateRating(req: NsAppRating.IRating): Observable; getRatingSummary(contentId: string, contentType: string): Observable; getRatingLookup(req: NsAppRating.ILookupRequest): Observable; getRatingReply(req: any): Observable; getRatingIcon(ratingIndex: number, avg: number): 'star' | 'star_border' | 'star_half'; getRatingIconClass(ratingIndex: number, avg: number): boolean; getAuthorReply(contentId: string, userID: string): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class UserContentRatingLibService { private http; constructor(http: HttpClient); fetchTopReviews(doId: any): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class UserContentRatingLibComponent implements OnInit { ratingService: RatingService; userRatingSvc: UserContentRatingLibService; currentIndex: any; providerId: any; formData: any; emptyResponse: EventEmitter; styleData: any; contentdata: any; scrollableItems: QueryList; constructor(ratingService: RatingService, userRatingSvc: UserContentRatingLibService); ngOnInit(): void; getTopReviews(): void; getRatingIcon(ratingIndex: number, avg: number): 'star' | 'star_border' | 'star_half'; getRatingIconClass(ratingIndex: number, avg: number): boolean; getCurrentIndex(indexValue: any): void; handleScrollClick(dataValue: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class UserContentRatingLibModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class MdoChannelV1Component implements OnInit { constructor(); ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class MdoChannelV2Component implements OnInit { private route; private router; private eventSvc; private translate; private langtranslations; configSvc: ConfigurationsService$1; private sanitizer; private utillsSvc; sectionList: any; slwConfiguration: any; providerId: string; channnelName: string; orgId: string; selectedIndex: number; hideCompetencyBlock: boolean; contentTabEmptyResponseCount: number; titles: { title: string; url: string; icon: string; disableTranslate: boolean; }[]; showModal: boolean; descriptionMaxLength: number; isTelemetryRaised: boolean; stripWidth: any; iframeHeight: any; lookerProUrl: SafeResourceUrl; isMobile: boolean; constructor(route: ActivatedRoute, router: Router, eventSvc: EventService, translate: TranslateService, langtranslations: MultilingualTranslationsService$1, configSvc: ConfigurationsService$1, sanitizer: DomSanitizer, utillsSvc: UtilityService); onResize(): void; setWidth(): void; raiseTabClick(event: any): void; ngOnInit(): void; hideKeyHightlight(event: any, learnerReview: any): void; getLookerProUrl(): void; tabClicked(tabEvent: MatTabChangeEvent): void; hideContentStrip(event: any, colData: any): void; triggerOpenDialog(event: boolean): void; onClose(): void; raiseTelemetryInteratEvent(event: any): void; raiseCompetencyTelemetry(name: string): void; raiseTelemetry(name: string): void; hideCompetency(event: any): void; showAllContent(_stripData: any, columnData: any): void; isArray(value: any): boolean; getBackgroundStyle(background: string): any; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class MicrositeV3Service { private http; private environment; constructor(http: HttpClient, environment: any); uploadFile(file: File): Observable; private transformUrl; searchContent(requestBody: any): Observable; getCreateSectionReq(nameValue: string, keyValue: string, enabledValue: boolean): { enabled: boolean; strips: { active: boolean; key: string; logo: string; title: string; titleClass: string; type: string; disableTranslate: boolean; stripTitleLink: { link: string; icon: string; }; sliderConfig: { showNavs: boolean; showDots: boolean; maxWidgets: number; showNavsSpacing: boolean; }; stripBackground: string; titleDescription: string; stripConfig: { cardSubType: string; hideShowAll: boolean; }; viewMoreUrl: {}; hideViewMoreUrl: boolean; loader: boolean; loaderConfig: { cardSubType: string; }; tabs: any[]; filters: any[]; stripRequestType: string; stripRequestFor: string; onTabClickRequest: boolean; request: {}; }[]; }; createPlaylistApi(requestBody: any): Observable; readPlaylist(playlistID: string, OrgId: string): Observable; updatePlaylistApi(requestBody: any): Observable; readPlaylistWithURL(playlistURL: string): Observable; updateMicrosite(requestBody: any): Observable; createMicrosite(requestBody: any): Observable; createAnnouncements(requestBody: any): Observable; updateAnnouncements(requestBody: any): Observable; deleteAnnouncements(announceMentId: string): Observable; readAnnouncements(announceMentId: string): Observable; readOrgBookmark(): Observable; updateOrgBookmark(requestBody: any): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class MdoChannelV3Component implements OnInit, OnChanges { private route; private router; private eventSvc; private translate; private langTranslations; configSvc: ConfigurationsService$1; private sanitizer; private utilsSvc; private injector; private cdr; private dialog; microSiteV3Service: MicrositeV3Service; private snackBar; sectionList: any[]; slwConfiguration: any; userRedirectionData: any; isEdit: boolean; activeSections: any[]; providerId: string; channelName: string; orgId: string; defaultMicrosite: boolean; isMobile: boolean; isStateLearningWeekEnabled: boolean; hasUnsavedChanges: boolean; userRedirectionEnabled: any; isLoading: boolean; navigationTitles: { title: string; url: string; icon: string; disableTranslate: boolean; }[]; private componentRegistry; private _eventCallbackFn; private injectorCache; constructor(route: ActivatedRoute, router: Router, eventSvc: EventService, translate: TranslateService, langTranslations: MultilingualTranslationsService$1, configSvc: ConfigurationsService$1, sanitizer: DomSanitizer, utilsSvc: UtilityService, injector: Injector, cdr: ChangeDetectorRef, dialog: MatDialog, microSiteV3Service: MicrositeV3Service, snackBar: MatSnackBar); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; handleSectionEvent(event: any): void; updateStripSections(stripSections: any[]): void; getSectionComponent(key: string): Type; createInjector(section: any, column: any): Injector; trackByFn(index: number, item: any): any; raiseTelemetry(name: string): void; openEditorDialog(event: any): void; private getDialogWidth; private updateSectionData; private updateNestedField; toggleStateLearningWeek(): void; saveChanges(type?: string): void; updateOrgBookmark(): Promise; publishChanges(): void; openSLWConfigDialog(currentConfig: any): void; handleToggleSLW(): void; handleConfigureSLW(currentConfig: any): void; handleUserRedirectionToggle(enabled: boolean): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class HighlightsOfWeekComponent implements OnInit, OnChanges { objectData: any; isEdit: boolean; editEvent: EventEmitter; currentIndex: number; contentdata: any; styleData: any; expand: boolean; scrollableItems: QueryList; private eventCallback; constructor(); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; loadContentData(): void; toggleWeekHightlits(): void; getCurrentIndex(indexValue: any): void; onEditClick(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class HighlightsOfWeekModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class UserProgressComponent implements OnInit { insightSvc: InsiteDataService; private configSvc; private injector; objectData: any; rootOrgId: any; isEdit: boolean; isEditable: boolean; editClicked: EventEmitter; insitesData: any[]; currentIndex: number; styleData: any; userProgress: any; expand: boolean; scrollableItems: QueryList; private eventCallback; constructor(insightSvc: InsiteDataService, configSvc: ConfigurationsService$1, injector: Injector); ngOnInit(): void; getUserProgress(): void; getInsightsData(): void; roundTo(number: any): number; getCurrentIndex(indexValue: any): void; createInititals(name: string): string; toggleWeekHightlits(): void; formatLearningHours(value: any): string; formatNumber(value: any): string; /** * Handle edit button click * Emits an event to be handled by parent component (mdo-channel-v3) */ onEdit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class UserProgressModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class EventsComponent implements OnInit { insightSvc: InsiteDataService; private injector; object: any; nwlEventsConfig: any; eventsApiConfig: any; viewAllConfig: any; isEdit: boolean; isEditable: boolean; editClicked: EventEmitter; daysBetween: any; events: any; requestBody: any; currentDay: any; loader: boolean; showAllEvents: boolean; toggleShowAll(): void; get showViewAll(): boolean; get viewAllLabel(): string; get viewAllQueryParams(): any; private eventCallback; constructor(insightSvc: InsiteDataService, injector: Injector); ngOnInit(): void; getDaysBetweenDates(): void; getEvents(slectedDate: any): void; getEventsList(): void; sortItemByTime(eventsdata: any): any; customDateFormat(date: any, time: any): string; /** * Handle edit button click * Emits an event to be handled by parent component (mdo-channel-v3) */ onEdit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class EventCardComponent { private router; objectData: any; eventDetails: any; environment: any; loader: any; descriptionMaxLength: number; constructor(environment: any, router: Router); getEventDate(event: any): string; getPublicUrl(url: string): string; redirectTo(event: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class EventsModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class SpeakersComponent implements OnInit { private route; private injector; objectData: any; isEdit: boolean; isEditable: boolean; editClicked: EventEmitter; currentIndex: number; contentdata: any; styleData: any; expand: boolean; private eventCallback; scrollableItems: QueryList; constructor(route: Router, injector: Injector); ngOnInit(): void; createInititals(name: string): string; getCurrentIndex(indexValue: any): void; toggleWeekHightlits(): void; goToEvent(eventData: any): void; getTitleText(): string; /** * Handle edit button click * Emits an event to be handled by parent component (mdo-channel-v3) */ onEdit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SpeakersV2Component implements OnInit { private route; private injector; objectData: any; isEdit: boolean; isEditable: boolean; editClicked: EventEmitter; currentIndex: number; contentdata: any; styleData: any; expand: boolean; private eventCallback; scrollableItems: QueryList; constructor(route: Router, injector: Injector); ngOnInit(): void; getCurrentIndex(indexValue: any): void; toggleWeekHightlits(): void; goToEvent(eventData: any): void; getTitleText(): string; /** * Handle edit button click * Emits an event to be handled by parent component (mdo-channel-v3) */ onEdit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SpeakersModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class MdoLeaderboardComponent implements OnInit { private insiteDataService; private injector; currentTab: any; result: any; filteredData: any; searchTerm: string; expand: boolean; disableLeft: boolean; disableRight: boolean; orgId: any; object: any; slwConfig: any; isEdit: boolean; isEditable: boolean; tabClicked: EventEmitter; editClicked: EventEmitter; scrollableContent: ElementRef; private eventCallback; constructor(insiteDataService: InsiteDataService, injector: Injector); ngOnInit(): void; getSlwData(): void; getData(): void; getFilteredData(response: any): any; getTabData(name: any): void; getRank(rank: number): string; getMedal(rank: number): "assets/images/national-learning/Medal1.svg" | "assets/images/national-learning/Medal2.svg" | "assets/images/national-learning/Medal3.svg"; handleSearchQuery(e: any): void; toggleWeekHightlits(): void; scrollToRight(): void; scrollToLeft(): void; /** * Handle edit button click * Emits an event to be handled by parent component (mdo-channel-v3) */ onEdit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class MdoLeaderboardV2Component implements OnInit, OnChanges { private insiteDataService; private injector; currentPill: any; result: any; filteredData: any; searchTerm: string; expand: boolean; disableLeft: boolean; disableRight: boolean; orgId: any; object: any; slwConfig: any; isEdit: boolean; isEditable: boolean; tabClicked: EventEmitter; editClicked: EventEmitter; scrollableContent: ElementRef; /** Top-level tab support (Center / State) */ hasTabs: boolean; activeTopTab: any; activeTopTabIndex: number; private eventCallback; constructor(insiteDataService: InsiteDataService, injector: Injector); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; private initFromObject; getSlwData(): void; getData(): void; getFilteredData(response: any): any; /** Switch top-level tab (Center / State) */ selectTopTab(index: number): void; /** Returns the options for the currently active tab (or object.options for legacy) */ get activeOptions(): any[]; getPillData(name: any): void; getRank(rank: number): string; getMedal(rank: number): "assets/images/national-learning/Medal1.svg" | "assets/images/national-learning/Medal2.svg" | "assets/images/national-learning/Medal3.svg"; handleSearchQuery(e: any): void; toggleWeekHightlits(): void; scrollToRight(): void; scrollToLeft(): void; onEdit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class MdoLeaderboardModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class KeyHighlightsComponent implements OnInit { currentIndex: any; providerId: any; formData: any; mode: any; isEdit: boolean; emptyResponse: EventEmitter; titleMaxLength: number; styleData: any; contentdata: any; scrollableItems: QueryList; constructor(); ngOnInit(): void; getCurrentIndex(indexValue: any): void; getTruncatedInnerHtml(html: string): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class KeyHighlightsModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class OrderByPipe implements PipeTransform { transform(value: any[], key: string): any[]; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } declare class OrderByPipeModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class SafeUrlPipe implements PipeTransform { private sanitizer; constructor(sanitizer: DomSanitizer); transform(url: string): SafeResourceUrl; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } declare class SafeUrlPipeModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class VideoConferenceComponent { videoConf: any; joinVideoConference(joinLink: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class VideoConferenceModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class TopSectionComponent implements OnInit { data: any; channelName: string; orgId: string; isMobile: boolean; slwConfig: any; isEdit: boolean; eventCallback: (event: any) => void; sanitizer: DomSanitizer; descriptionMaxLength: number; stripWidth: string; constructor(data: any, channelName: string, orgId: string, isMobile: boolean, slwConfig: any, isEdit: boolean, eventCallback: (event: any) => void, sanitizer: DomSanitizer); ngOnInit(): void; emitEvent(action: string, id: string, data?: any): void; openEditor(fieldName: string, displayName: string, value: any): void; getFieldType(fieldName: string, value: any): string; isArray(value: any): boolean; getBackgroundStyle(background: string): any; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class LookerSectionComponent implements OnInit { data: any; isMobile: boolean; isEdit: boolean; eventCallback: (event: any) => void; private sanitizer; lookerUrl: SafeResourceUrl; iframeHeight: string; constructor(data: any, isMobile: boolean, isEdit: boolean, eventCallback: (event: any) => void, sanitizer: DomSanitizer); ngOnInit(): void; setLookerUrl(): void; openEditor(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class TopLearnersComponent { data: any; channelName: string; orgId: string; slwConfig: any; private eventCallback; isEdit: boolean; objectData: any; constructor(data: any, channelName: string, orgId: string, slwConfig: any, eventCallback: any, isEdit: boolean); onEventFromLeaders(event: any): void; onEdit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class MainContentComponent implements OnInit { data: any; channelName: string; orgId: string; isMobile: boolean; providerId: string; slwConfig: any; isEdit: boolean; private eventCallback; configSvc: ConfigurationsService$1; microSiteV3Service: MicrositeV3Service; private dialog; private cdr; selectedIndex: number; hideCompetencyBlock: boolean; contentTabEmptyResponseCount: number; showModal: boolean; stripSections: any[]; sectionData: any; constructor(data: any, channelName: string, orgId: string, isMobile: boolean, providerId: string, slwConfig: any, isEdit: boolean, eventCallback: (event: any) => void, configSvc: ConfigurationsService$1, microSiteV3Service: MicrositeV3Service, dialog: MatDialog, cdr: ChangeDetectorRef); ngOnInit(): void; tabClicked(event: MatTabChangeEvent): void; raiseTabClick(event: any): void; hideKeyHightlight(event: any, data: any): void; triggerOpenDialog(event: boolean): void; onClose(): void; raiseTelemetryInteratEvent(event: any): void; showAllContent(event: any, data: any): void; hideCompetency(event: any): void; raiseCompetencyTelemetry(name: string): void; openEditor(fieldName: string, displayName: string, value: any): void; getFieldType(fieldName: string, value: any): string; addNewSection(): void; removeSection(index: number): void; notifyStripSectionsChange(): void; onEditStripContent(event: any): void; createPlaylist(stripData: any, contentIds: string[], allOrgContent: boolean, tabDetails: any): void; updatePlaylist(stripData: any, playlistReadType: any, contentIds: string[], allOrgContent: boolean): void; onToggleSectionVisibility(event: any): void; onRemoveStrip(event: any): void; trackByIndex(index: number, item: any): number; onPlaylistCreated(event: any): void; openAddTabDialog(stripData?: any): void; addTab(title: string): void; removeTab(index: number, stripData: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SupportSectionComponent { data: any; private eventCallback; constructor(data: any, eventCallback: (event: any) => void); onVideoEvent(event: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class CompetencyComponent { orgId: string; private eventCallback; competency: any; emptyResponse: EventEmitter; telemetryResponse: EventEmitter; hideCompetencyBlock: boolean; constructor(orgId: string, eventCallback: (event: any) => void); hideCompetency(event: any): void; raiseCompetencyTelemetry(name: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ContentStripComponent { orgId: string; channelName: string; private eventCallback; data: any; isEdit: boolean; viewAllResponse: EventEmitter; telemetryResponse: EventEmitter; constructor(orgId: string, channelName: string, eventCallback: (event: any) => void); showAllContent(event: any): void; raiseTelemetryInteratEvent(event: any): void; hideContentStrip(event: any, contentStrip: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ColumnSectionDisplayComponent implements OnInit { data: any[]; orgId: string; channelName: string; isEdit: boolean; competencyEvent: EventEmitter; competencyTelemetry: EventEmitter; contentTelemetry: EventEmitter; viewAllEvent: EventEmitter; filteredData: any[]; ngOnInit(): void; onCompetencyEvent(event: boolean): void; onCompetencyTelemetry(event: string): void; onContentTelemetry(event: any): void; onViewAllEvent(event: any, data: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class MobileSectionsComponent { myProgressData: any; speakersData: any; leaderboardData: any; rootOrgId: string; orgId: string; slwConfig: any; leaderboardTabClicked: EventEmitter; onTabClicked(event: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface SliderItem { active: boolean; banners: { l: string; m: string; s: string; xl: string; xs: string; xxl: string; }; redirectUrl: string; queryParams: any; title: string; } interface SliderData { sliders: SliderItem[]; styleData: any; } declare class EditorDialogComponent implements OnInit { private fb; private http; private micrositeService; dialogRef: MatDialogRef; data: any; configSvc: ConfigurationsService$1; private cdr; editorForm: FormGroup; formType: string; uploadStatus: string; isUploading: boolean; sliderData: SliderData; sliderItemForm: FormGroup; isEditingSlider: boolean; editingIndex: number; speakerForm: FormGroup; isEditingSpeaker: boolean; editingSpeakerIndex: number; constructor(fb: FormBuilder, http: HttpClient, micrositeService: MicrositeV3Service, dialogRef: MatDialogRef, data: any, configSvc: ConfigurationsService$1, cdr: ChangeDetectorRef); get keyHighlightsArray(): FormArray; get weekHighlightsList(): FormArray; get cbpPlanListArray(): FormArray; get announcementsList(): FormArray; get imageItemsArray(): FormArray; get isMultipleImages(): boolean; get isColorMode(): boolean; get isImageMode(): boolean; ngOnInit(): void; createWeekHighlightItem(item?: any): FormGroup; addWeekHighlightItem(): void; removeWeekHighlightItem(index: number): void; dropWeekHighlightItem(event: CdkDragDrop): void; addCbpPlanItem(): void; removeCbpPlanItem(index: number): void; dropCbpPlanItem(event: CdkDragDrop): void; addAnnouncementItem(announcement?: any): void; removeAnnouncementItem(index: number): void; dropAnnouncementItem(event: CdkDragDrop): void; addImageLogoItem(): void; removeImageLogoItem(index: number): void; dropImageLogoItem(event: CdkDragDrop): void; onImageLogoSelected(event: any, index: number): void; uploadImageLogo(file: File, index: number): void; initForm(): void; initKeyHighlightsForm(): void; initSliderItemForm(item?: SliderItem): void; initSpeakerForm(speaker?: any): void; getSpeakersList(): any[]; addNewSpeaker(): void; editSpeaker(index: number): void; removeSpeaker(index: number): void; removeAllSpeakers(): void; saveSpeaker(): void; cancelSpeakerEdit(): void; onSpeakerImageSelected(event: any): void; uploadSpeakerImage(file: File): void; onColorPickerChange(event: any): void; onBannerImageSelected(event: any): void; uploadBannerImage(file: File): void; onDefaultBannerToggle(event: any): void; onFileSelected(event: any): void; uploadImage(file: File): void; currentUploadingIndex: number; onPdfFileSelected(event: any, index: number): void; uploadPdfFile(file: File, index: number): void; onVideoFileSelected(event: any, index: number): void; uploadVideoFile(file: File, index: number): void; onSliderClick(event: any): void; onSliderImageSelected(event: any): void; uploadSliderImage(file: File): void; addSliderItem(): void; editSliderItem(index: number): void; removeSliderItem(index: number): void; saveSliderItem(): void; cancelSliderItemEdit(): void; updateEditorFormValue(): void; transformImageUrl(originalUrl: string): string; addKeyHighlight(): void; removeKeyHighlight(index: number): void; dropKeyHighlight(event: CdkDragDrop): void; onSubmit(): Promise; checkAndCreateAnnouncementItem(list: any[]): Promise; onCancel(): void; dropSliderItem(event: CdkDragDrop): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface SLWConfiguration { enabled: boolean; startDate: string; endDate: string; title: string; description: string; titleHi: string; descriptionHi: string; buttonText: string; width: string; orgId: string; orgName: string; } declare class SlwConfigDialogComponent implements OnInit { private fb; dialogRef: MatDialogRef; data: SLWConfiguration; slwForm: FormGroup; today: Date; constructor(fb: FormBuilder, dialogRef: MatDialogRef, data: SLWConfiguration); ngOnInit(): void; initForm(): void; onCancel(): void; onSave(): void; validateDateRange(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ActionItemsComponent implements OnInit { private dialog; isEdit: boolean; isStateLearningWeekEnabled: boolean; hasUnsavedChanges: boolean; slwConfiguration: any; userRedirData: any; toggleSLW: EventEmitter; saveChanges: EventEmitter; publishChanges: EventEmitter; configureSLW: EventEmitter; userRedirectionToggle: EventEmitter; userRedirectionEnabled: boolean; constructor(dialog: MatDialog); ngOnInit(): void; onToggleStateLearningWeek(event: any): void; onSaveChanges(): void; onPublishChanges(): void; onConfigureSLW(): void; onUserRedirectionToggle(event: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class StripSectionCreateComponent implements OnInit { private dialog; configSvc: ConfigurationsService$1; microSiteV3Service: MicrositeV3Service; private cdr; sectionData: any; sectionIndex: number; providerId: string; channelName: string; removeSection: EventEmitter; playlistCreated: EventEmitter; isEditingTitle: boolean; tempTitle: string; tempEnabled: boolean; constructor(dialog: MatDialog, configSvc: ConfigurationsService$1, microSiteV3Service: MicrositeV3Service, cdr: ChangeDetectorRef); ngOnInit(): void; onRemoveSection(): void; onToggleSectionVisibility(event: any): void; startEditTitle(): void; saveTitle(): void; toCamelCase(str: string): string; cancelEdit(): void; onTitleKeydown(event: KeyboardEvent): void; openAddTabDialog(): void; addTab(title: string): void; removeTab(index: number): void; openAddContentDialog(tabData?: any): void; createPlaylist(contentIds: string[], allOrgContent: boolean, tabDetails: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class StripAddContentComponent { dialogRef: MatDialogRef; data: any; micrositeV3Service: MicrositeV3Service; configSvc: ConfigurationsService$1; searchText: string; selectedContents: string; allOrgContent: boolean; isEditingTitle: boolean; tempTitle: string; isEditMode: boolean; isAllOrgContentDisabled: boolean; contents: { value: string; label: string; }[]; contentsList: any[]; totalCount: number; pageSize: number; pageIndex: number; currentSelectedType: any; selectedContentItems: any[]; showPreview: boolean; constructor(dialogRef: MatDialogRef, data: any, micrositeV3Service: MicrositeV3Service, configSvc: ConfigurationsService$1); checkAndLoadExistingData(): void; checkAndLoadExistingTabData(): void; onCancel(): void; onAdd(): void; onUpdate(): void; onPreview(): void; toggleSelection(content: any): void; isSelected(content: any): boolean; removeSelectedItem(item: any): void; onSearch(): void; onOrgContentToggle(): void; getContentsList(): void; onPageChange(event: any): void; onContentTypeChange(): void; startEditTitle(): void; saveTitle(): void; toCamelCase(str: string): string; cancelEdit(): void; onTitleKeydown(event: KeyboardEvent): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class AddTabDialogComponent { dialogRef: MatDialogRef; data: any; tabTitle: string; constructor(dialogRef: MatDialogRef, data: any); onCancel(): void; onAdd(): void; onKeydown(event: KeyboardEvent): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface ConfirmDialogData { title: string; message: string; confirmText?: string; cancelText?: string; } declare class ConfirmDialogComponent { dialogRef: MatDialogRef; data: ConfirmDialogData; constructor(dialogRef: MatDialogRef, data: ConfirmDialogData); onCancel(): void; onConfirm(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface ContentData { posterImage: string; name: string; identifier: string; source: string; creatorLogo: string; duration: string; courseCategory: string; rating?: number; ratingCount?: number; completionPercentage?: number; } interface StyleData { [key: string]: string; } interface AiProgramMessages { notEnrolled?: string; inProgress?: string; badgeEarned?: string; } interface AiProgramData { enabled: boolean; title: string; description: string; messages?: AiProgramMessages; image: string; noOfCoursesToComplete: string; badgeImage: string; identifier: string; courseIdentifiers: string[]; timeToCallApi?: number; styleData: StyleData; contentData: ContentData; isEnrolled?: boolean; completedCourses?: number; disableBadgeImage?: string; } /** Represents a single element in the progress track */ interface ProgressItem { type: 'bar' | 'shield' | 'badge'; index: number; id: string; } declare class AiProgramComponent implements OnInit, OnChanges, OnDestroy { private http; private configSvc; private router; programData: AiProgramData; contentClicked: EventEmitter; /** Cached progress items — rebuilt only when programData changes */ progressItemsCached: ProgressItem[]; /** Enrollment state — drives the progress bar */ enrolled: boolean; completedCount: number; private enrollSub; private readonly romanNumerals; constructor(http: HttpClient, configSvc: ConfigurationsService$1, router: Router); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; /** localStorage key scoped to this program */ private get cacheKey(); /** TTL in milliseconds (defaults to 5 minutes) */ private get cacheTtlMs(); /** * Main entry point: * 1. Try to read from localStorage * 2. If cache is fresh → use it * 3. Otherwise → call enrollment API, update cache */ private checkEnrollmentAndRefresh; /** Read the cached enrollment data from localStorage */ private readCache; /** Check whether the cache is within the TTL window */ private isCacheFresh; /** Persist enrollment state to localStorage */ private writeCache; /** Call the enrollment API and process the response */ private fetchEnrollmentData; /** * Process the enrollment API response: * - If no courses → not enrolled * - Otherwise → enrolled; cross-reference courseIdentifiers to find completed * A course is "completed" when its status === 2 */ private handleEnrollmentResponse; /** Apply enrollment state and rebuild progress items */ private applyEnrollmentState; /** Total number of courses required for the badge */ get totalCourses(): number; /** Number of courses the user has completed (from API / cache) */ get completedCourses(): number; /** Whether the user is enrolled */ get isEnrolled(): boolean; /** * Builds the ordered progress track (cached via ngOnChanges): * bar[0] → shield[0] → bar[1] → shield[1] → … → bar[N-1] → badge */ private buildProgressItems; /** trackBy for *ngFor — prevents DOM recreation */ trackByItem(_: number, item: ProgressItem): string; /** * Bar state: * - 'full' → bar[i] is completely orange (course i already completed, or enrolled and i===0 with completedCourses > 0) * - 'half' → bar[i] is 50% orange (the "current" bar — user just reached this step) * - 'none' → bar[i] is white/inactive * * Logic: * bar[0]: full when completedCourses >= 1; half when enrolled but 0 completed; else none * bar[i>0]: full when completedCourses > i; half when completedCourses === i; else none */ getBarState(index: number): 'full' | 'half' | 'none'; /** shield[i] active when course (i+1) is completed */ isShieldActive(index: number): boolean; /** Badge at full opacity only when ALL courses completed */ get isBadgeEarned(): boolean; /** * Returns the appropriate message based on enrollment/completion state. * Falls back to programData.description if messages object is not provided. */ get currentMessage(): string; /** Convert 1-based number to Roman numeral string */ getRomanNumeral(num: number): string; /** Convert duration in minutes to human-readable format */ formatDuration(minutes: string | number): string; /** Navigate to the program TOC page and emit event */ onContentClick(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class EventsService { private http; constructor(http: HttpClient); getUserEnrollEvents(userId: string, req: any): rxjs.Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class EventsCalendarComponent implements OnInit { private datePipe; private eventsService; private matSnackBar; private configSvc; private router; private bottomSheetRef; data: any; private langtranslations; private events; eventCalendarDetails: any; selected: Date; selectedDateText: string; currentMonth: Date; currentMonthYearText: string; daysInMonth: { date: Date; isPrevisDate: Boolean; hasRegisteredEvent: Boolean; isCurrentMonth: Boolean; }[]; calandarLoaders: number[]; weekdays: string[]; userEventsList: any; selectedDateEvents: any; calendarLoading: boolean; showAllEvents: boolean; bottomSheet: boolean; isPreviesDate: boolean; constructor(datePipe: DatePipe, eventsService: EventsService, matSnackBar: MatSnackBar, configSvc: ConfigurationsService$1, router: Router, bottomSheetRef: MatBottomSheetRef, data: any, langtranslations: MultilingualTranslationsService$1, events: EventService); ngOnInit(): void; getEnrolledEvents(loadTodayEvents?: boolean): void; generateCalendarDays(): void; hasEvent(dateToCheck: Date): boolean; prevMonth(): void; nextMonth(): void; isToday(date: Date): boolean; selectDate(dateDetails: any): void; getSelectedDateEvents(): void; convertToUTC(date: string, time: string): string; translateLabels(label: string, type: any): any; redirectTo(myEvent: any): void; private openSnackBar; closeDiaolg(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class EventsCalendarModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class MicrositesComponentsModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class MDOChannelModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class ProvidersV2Component implements OnInit { private route; router: Router; private datePipe; private events; sectionList: any; providerName: string; providerId: string; navList: any; hideCompetencyBlock: boolean; currentMonthAndYear: any; titles: { title: string; url: string; icon: string; disableTranslate: boolean; }[]; descriptionMaxLength: number; isTelemetryRaised: boolean; constructor(route: ActivatedRoute, router: Router, datePipe: DatePipe, events: EventService); ngOnInit(): void; getNavitems(): void; scrollToSection(name: string): void; hideCompetency(event: any, columnData: any): void; hideContentStrip(event: any, contentStripData: any): void; hideLearnerReview(event: any, learnerReview: any): void; showAllContent(_stripData: any, columnData: any): void; raiseTelemetryInteratEvent(event: any): void; raiseCompetencyTelemetry(name: string): void; raiseTelemetry(name: string): void; raiseNavTelemetry(name: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ProvidersModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class KarmayogiSaptahComponent implements OnInit { router: Router; private events; private domSanitizer; utilitySvc: UtilityService; sectionList: any; configDetails: any; nwlConfiguration: any; providerId: string; providerName: ''; descriptionMaxLength: number; environment: any; isMobile: boolean; lookerProUrl: any; constructor(environment: any, router: Router, events: EventService, domSanitizer: DomSanitizer, utilitySvc: UtilityService); ngOnInit(): void; hideKeyHightlight(event: any, learnerReview: any): void; showAllContent(_stripData: any, columnData: any): void; hideContentStrip(event: any, contentStripData: any): void; raiseTabClick(event: any): void; raiseTelemetryInteratEvent(event: any): void; getLookerProUrl(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SadhanaSaptahComponent implements OnInit { router: Router; private events; private domSanitizer; utilitySvc: UtilityService; sectionList: any; configDetails: any; nlwConfiguration: any; individualSection: any; providerId: string; providerName: ''; descriptionMaxLength: number; environment: any; isMobile: boolean; constructor(environment: any, router: Router, events: EventService, domSanitizer: DomSanitizer, utilitySvc: UtilityService); ngOnInit(): void; hideKeyHightlight(event: any, learnerReview: any): void; showAllContent(_stripData: any, columnData: any): void; hideContentStrip(event: any, contentStripData: any): void; raiseTabClick(event: any): void; raiseTelemetryInteratEvent(event: any): void; getLookerProUrl(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NationalLearningModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class BharatKalpComponent implements OnInit { router: Router; private events; private domSanitizer; utilitySvc: UtilityService; private http; sectionList: any[]; configDetails: any; bkConfiguration: any; individualSection: any; communityCardsTemplate: any; communitiesLoaded: EventEmitter; providerId: string; environment: any; isMobile: boolean; carouselIndex: number; private readonly _carouselHeights; getCarouselHeight(size: string): string; carouselPrev(total: number): void; carouselNext(total: number): void; goToCarouselSlide(index: number): void; onCarouselClick(slide: any): void; recommendedItems: NsCardContent.ICard[]; recLoading: boolean; communities: any[]; communitiesLoading: boolean; bkCompletedCount: number; bkLearningHoursFormatted: string; /** Receives stats emitted by sb-uic-week-progress after all per-week calls finish */ onProgressStats(stats: { completedCount: number; learningHoursFormatted: string; }): void; /** Merges computed stats into myprogress objectData */ get myProgressData(): any; constructor(environment: any, router: Router, events: EventService, domSanitizer: DomSanitizer, utilitySvc: UtilityService, http: HttpClient); ngOnInit(): void; private _loadRecommended; private _loadCommunities; hideKeyHighlight(event: any, sectionData: any): void; hideContentStrip(event: any, contentStripData: any): void; showAllContent(_stripData: any, columnData: any): void; navigateToContent(card: any): void; /** Handles (contentData) from sb-uic-card-portrait — navigates to TOC */ onCardNavigate(content: any): void; raiseTabClick(event: any): void; raiseTelemetryInteractEvent(event: any): void; raiseCtaClick(label: string): void; getLookerProUrl(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface WeekData { id?: string; name?: string; title: string; stripTitle?: string; stripDesc?: string; stripBadge?: { enabled?: boolean; text?: string; background?: string; textColor?: string; }; topics?: string[]; course_count?: number; content_ids?: { [contentType: string]: string[] | undefined; }; progress?: number; } interface WeekProgressCard { name: string; identifier?: string; posterImage?: string; duration?: string; category?: string; org?: string; orgLogo?: string; rating?: string; } interface WeekProgressTab { key: string; label: string; cards?: WeekProgressCard[]; } interface WeekProgressContentStrip { active?: boolean; title?: string; titleDescription?: string; viewMoreUrl?: { path?: string; }; tabs?: WeekProgressTab[]; } interface WeekProgressData { enabled: boolean; enableTitlePill?: boolean; endedEventPillText?: string; startDate?: string; endDate?: string; currentWeek?: number; totalWeeks: number; viewAllUrl?: string; containerClass?: string; contentStrips?: WeekProgressContentStrip[]; weeks?: { active?: boolean; weekNumber?: number; title?: string; titleDescription?: string; viewMoreUrl?: { path?: string; }; tabs?: WeekData[]; } | { [key: string]: WeekData; }; exploreContent?: { displayContentCategories?: string[]; tabs?: ExploreContentTab[]; }; } interface ExploreContentTab { id: string; [langText: string]: string; } type WeekStatus = 'completed' | 'in-progress' | 'not-started' | 'upcoming'; declare class WeekProgressComponent implements OnInit, AfterViewInit { private router; private snackBar; private http; private configSvc; private cdr; programData: WeekProgressData; bkConfig?: { startDate?: string; endDate?: string; [key: string]: any; }; /** Emits computed stats once all per-week enrollment calls complete */ progressStats: EventEmitter<{ completedCount: number; learningHoursFormatted: string; }>; currentWeek: number; selectedWeek: number; activeTabIndex: number; showAllWeeksPopup: boolean; private readonly _tabCache; weekContentCards: { [tab: string]: NsCardContent.ICard[]; }; weekContentLoading: boolean; /** Which week's content is displayed in the bottom strip */ selectedDisplayWeek: number; weekCardsLoading: boolean; weekCardLoading: { [week: number]: boolean; }; readonly skeletonCards: number[]; private _enrolledMap; private _weekCallsTotal; private _weekCallsDone; /** Flattened, deduped list of every id across all content_ids keys (course, program, event, resources, ...) */ private _allContentIds; /** * Stable WeekProgressTab reference for a content-type key — same object across change * detection cycles, so the tab list does not churn on every pass. * * Scoped per week on purpose. Caching by key alone handed the same object to every week, * so mat-tab-group reused the tab instance when the week changed and kept its selection * on it: switching from a week with only External Course to one with Courses + External * Course left the highlight on External Course while activeTabIndex had been reset to 0, * showing course cards under the external tab. */ private _getTab; /** * Display label for a content-type tab. * * Prefers the authored exploreContent.tabs entry matched on `id`, so the label reads * as configured per language — "extCourses" is meant to show "External Course", not * the key-derived "ExtCourses". Falls back to deriving from the key so a content type * that has no entry yet still gets a usable tab instead of a blank one. */ private _tabLabel; private _formatHours; cardTrackRef: ElementRef; wpStripRef: ElementRef; _canCardsPrev: boolean; _canCardsNext: boolean; constructor(router: Router, snackBar: MatSnackBar, http: HttpClient, configSvc: ConfigurationsService$1, cdr: ChangeDetectorRef); /** Week count derived from bkConfig startDate/endDate (DD-MM-YYYY); falls back to configured totalWeeks */ get totalWeeks(): number; ngOnInit(): void; private _loadWeekProgress; private _loadActiveWeekContent; loadExternalCourses(wd: any, exIdMap: any): void; ngAfterViewInit(): void; private _scrollToCurrentWeek; /** Arrows reflect actual overflow: both disabled when the track has nothing to scroll */ private _updateCardNav; onWindowResize(): void; private _computeCurrentWeek; /** Program has ended when bkConfig endDate (DD-MM-YYYY) is in the past */ /** Display label for a week — configured `name` from week data (e.g. "Week 0"), falls back to "Week N" */ weekLabel(week: number): string; /** Compact stepper form of the label — "Week 0" → "W0" */ weekLabelShort(week: number): string; get isProgramEnded(): boolean; getWeekStatus(week: number): WeekStatus; private _weekHasContent; isWeekCompleted(week: number): boolean; /** Total count across all content types present in content_ids (course, program, event, resources, ...) */ getTotalContentCount(week: number): number; /** Check if a specific week card is still loading its progress */ isWeekLoading(week: number): boolean; getWeekData(week: number): WeekData | null; getWeekDateRange(weekNum: number): string; getRingDash(progress?: number): string; getRingColor(week: number): string; getRingBgColor(week: number): string; get selectedWeekData(): WeekData | null; get selectedWeekStatus(): WeekStatus; get allWeeks(): number[]; onWeekClick(week: number): void; openPopup(): void; closePopup(): void; closeOnOverlay(e: MouseEvent): void; exploreWeekContent(): void; get activeStrip(): WeekProgressContentStrip | null; /** Heading for the content strip — from per-week stripTitle config, else default */ get activeStripTitle(): string; /** Subheading for the content strip — from per-week stripDesc config, else default */ get activeStripDesc(): string; /** Optional badge shown next to strip title — null if disabled or not configured */ get activeStripBadge(): WeekData['stripBadge'] | null; get activeTabs(): WeekProgressTab[]; trackTab(_: number, tab: WeekProgressTab): string; trackTabGroup(_: number, week: number): number; /** content_ids key behind the selected tab — decides which card component renders it */ get activeTabKey(): string; /** * Cards under the selected tab come from the content-partner (cios) search, whose items * are shaped around contentId/contentPartner and carry no externalId - that field belongs * to the internal search. Keying the card component off the tab is what the see-all page * does, and it cannot drift the way a per-item field check did. */ get isActiveTabExternal(): boolean; get activeTabCards(): NsCardContent.ICard[]; onTabChange(index: number): void; onCardContentDataExt(content: any): void; /** Handles (contentData) emitted by sb-uic-card-portrait */ onCardContentData(content: any): void; get canCardsPrev(): boolean; get canCardsNext(): boolean; private _cardScrollAmount; cardsPrev(): void; cardsNext(): void; onTrackScroll(event: Event): void; /** View button on a week card — updates the bottom strip and scrolls to it */ viewWeek(week: number): void; getCardRingBg(week: number): string; viewAllWeeks(): void; onViewAll(_strip: WeekProgressContentStrip): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class BharatKalpModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare namespace NsCampaignMilestone { type TMilestoneType = 'assessment' | 'event' | 'survey'; type TMilestoneTheme = 'blue' | 'purple' | 'orange' | 'image'; /** UI state of a milestone card, resolved by the host page from enrollment/survey APIs */ type TMilestoneState = 'locked' | 'notStarted' | 'inProgress' | 'completed'; /** One entry of `individualSection.programmeMilestones.items` in the microsite page config */ interface IMilestone { order: number; /** `false` greys the card out and makes it inactive; defaults to `true` */ enabled?: boolean; /** `true` shows the card as Locked; availability comes from config, not from `order` */ locked?: boolean; /** `true` keeps the card closed until `eventDetails.startDate` */ lockUntilEventStart?: boolean; type: TMilestoneType; identifier?: string; batchId?: string; /** Assessment only: sent as `?language=` to the auto-enrollment API and fills `{language}` in the player route */ language?: string; /** Assessment only: player route opened after enrollment */ player?: IPlayerRoute; formId?: string; milestoneLabel: string; headline?: string; bigNumber?: string; /** Header gradient, used when there is no usable `posterImage` */ theme: TMilestoneTheme; /** Header image for any card type. When it is set and loads, it replaces the gradient, headline and big number */ posterImage?: string; durationLabel: string; categoryLabel: string; name: string; tags: string[]; provider: IProvider; /** DD-MM-YYYY */ dueDate?: string; redirectUrl?: string; } /** * Player route split into path + query params. Tokens in braces are filled at click time: * `{resourceId}`, `{identifier}`, `{name}`, `{batchId}`, `{language}`. */ interface IPlayerRoute { path: string; resourceId: string; queryParams?: Record; } interface IProvider { name: string; logo: string; } } declare function parseDdMmYyyy(value: string | undefined | null): Date | undefined; /** False for empty values and unfilled `` config entries. */ declare function isUsableUrl(url: string | undefined | null): boolean; type TStatusTone = 'error' | 'warning' | 'success' | 'muted'; type TStatusKind = 'locked' | 'overdue' | 'inProgress' | 'completed' | 'due'; type TCta = 'locked' | 'start' | 'resume' | 'view'; declare class MilestoneCardComponent { milestone: i0.InputSignal; state: i0.InputSignal; isLoading: i0.InputSignal; /** `true` while the host is acting on a click (e.g. enrolling); disables the CTA to block repeat clicks */ isBusy: i0.InputSignal; /** Host-provided button text; replaces the default label whenever the card shows a button (e.g. event phases) */ ctaLabel: i0.InputSignal; /** `true` shows the button but blocks clicks (e.g. "Event yet to start") */ ctaDisabled: i0.InputSignal; /** * Host-provided text (e.g. "Available from 17th Nov") shown next to the category chip in place of * "Available now". Informational only: the button and clicks stay as usual. Ignored once completed. */ availableFrom: i0.InputSignal; /** * Host-provided text (e.g. "Completed"). When set on a completed card, a green tick + this text replaces * the button and the footer "Completed" status is dropped (it would say the same thing twice). */ completedLabel: i0.InputSignal; /** Tooltip on the button, shown on hover even while it is disabled (e.g. why a certificate is not ready) */ ctaTooltip: i0.InputSignal; /** Current time (epoch ms) from the host, e.g. server time; `null` uses the device clock. Drives "Overdue" */ now: i0.InputSignal; milestoneClick: i0.OutputEmitterRef; private readonly translate; /** Visible tag row and an invisible copy of every tag (plus a "+N" sample) used to measure widths */ private readonly tagRow; private readonly tagMeasure; /** Tags that fit on one row; `null` until measured (shows all) */ private readonly visibleTagCount; private readonly tags; readonly visibleTags: i0.Signal; /** Tags behind the "+N" chip, listed in its popover */ readonly hiddenTags: i0.Signal; readonly posterFailed: i0.WritableSignal; readonly logoFailed: i0.WritableSignal; readonly isDisabled: i0.Signal; /** Waiting for a host-provided date (see `availableFrom`) */ readonly isWaiting: i0.Signal; readonly isInactive: i0.Signal; /** Completed indicator in place of the button */ readonly showCompleted: i0.Signal; /** Any card with a usable `posterImage` shows it, whatever its `theme`; a missing or broken image falls back to the theme */ readonly showPoster: i0.Signal; /** Poster -> 'image'; otherwise the configured gradient ('image' with no usable poster falls back to 'blue') */ readonly headerTheme: i0.Signal; /** Open (enabled, not locked, not completed) and the due date is before today */ readonly isOverdue: i0.Signal; readonly showProviderLogo: i0.Signal; /** The template maps `kind` to its translation key */ readonly status: i0.Signal<{ kind: TStatusKind; tone: TStatusTone; date?: string; }>; /** A disabled card keeps a greyed-out, non-clickable "Locked" button */ readonly cta: i0.Signal; constructor(); /** Largest number of tags that fits on one row, leaving room for the "+N" chip when some are left out */ private measureTags; onCardClick(): void; onCtaClick(event: Event): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface IBreadcrumbItem { url?: string; /** Query params for `url`, for trails whose ancestors are one route filtered several ways. */ queryParams?: Record; title: string; icon?: string; } declare class BreadcrumbComponent { widgetData: i0.InputSignal; readonly items: i0.Signal; isLast(index: number): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * A reusable, content-agnostic carousel component built with Angular 20 signals. * * Usage: * * * * * */ declare class CarouselComponent implements AfterViewInit, OnDestroy { private utilitySvc; /** Array of items to render in the carousel */ items: i0.InputSignal; /** Fixed width of each card in pixels */ cardWidth: i0.InputSignal; /** Gap between cards in pixels */ gap: i0.InputSignal; /** Whether to show navigation arrows */ showNavigation: i0.InputSignal; /** Whether to show pagination dots */ showDots: i0.InputSignal; /** Number of cards to scroll per navigation click (0 = scroll by visible count) */ scrollBy: i0.InputSignal; /** Emits when the active page changes */ pageChanged: i0.OutputEmitterRef; /** Emits item and index when a card is clicked */ itemClicked: i0.OutputEmitterRef<{ item: any; index: number; }>; cardTemplate: i0.Signal>; viewport: i0.Signal>; private containerWidth; currentPage: i0.WritableSignal; private resizeObserver; /** Number of cards visible at current container width */ visibleCards: i0.Signal; /** Total number of pages */ totalPages: i0.Signal; /** Effective scroll-by count */ effectiveScrollBy: i0.Signal; /** Whether previous button should be disabled */ canGoPrevious: i0.Signal; /** Whether next button should be disabled */ canGoNext: i0.Signal; /** CSS translateX value for the track */ translateX: i0.Signal; /** Array of page indices for dot rendering */ dotsArray: i0.Signal; constructor(utilitySvc: UtilityService); ngAfterViewInit(): void; ngOnDestroy(): void; goToPage(page: number): void; goNext(): void; goPrevious(): void; onItemClick(item: any, index: number): void; onKeydown(event: KeyboardEvent): void; trackByIndex(index: number): number; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NbspPipe implements PipeTransform { transform(value: any): any; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } declare class NbspModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class CommunitySuggestionsComponent { private router; private events; communitySuggestionsList: any[]; isLoading: boolean; constructor(router: Router, events: EventService); viewCommunity(community: any): void; raiseTelemetry(communityId: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NumberShortenerPipe implements PipeTransform { private readonly SUFFIXES; transform(value: number | string | null | undefined, decimals?: number): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } declare class NumberShortenerModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class PluralPipe implements PipeTransform { transform(value: number, singular: string, plural?: string): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵpipe: i0.ɵɵPipeDeclaration; } declare class PluralModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class CommunitySuggestionsModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class ConnectionNameComponent implements OnInit, OnChanges { private activeRoute; hoverUser: any; showBadge: boolean; showMentor: boolean; me: NsUser.IUserProfile; useravatarName: string; constructor(activeRoute: ActivatedRoute); ngOnInit(): void; ngOnChanges(): void; getUseravatarName(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ConnectionHoverCardComponent implements OnInit, OnChanges { private router; private activeRoute; hoverUser: any; me: NsUser.IUserProfile; userName: string; useravatarName: string; constructor(router: Router, activeRoute: ActivatedRoute); ngOnInit(): void; ngOnChanges(): void; getUseravatarName(): void; goToUserProfile(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class TooltipDirective { private renderer; private elementRef; private viewContainerRef; constructor(renderer: Renderer2, elementRef: ElementRef, viewContainerRef: ViewContainerRef); parametroPlantilla: TemplateRef; placement: string; private tooltipTemplateRef; offset: number; onMouseEnter(): void; onMouseLeave(): void; setPosition(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class ConnectionHoverModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class ConnectionNameModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class TooltipModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class TOCMultiLingualDialogComponent implements OnInit { dialogRef: MatDialogRef; data: any; constructor(dialogRef: MatDialogRef, data: any); ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class TOCMultiLingualDialogModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class UserService { private http; constructor(http: HttpClient); getGroups(): Observable; getUserById(userid: string): Observable; getApprovalsList(request: any): Observable; getAllRoles(): Observable; searchIgotDesignation(_req: any): Observable; searchDesignation(_req: any): Observable; updateUserDetails(reqBody: any): Observable; addUserToRole(req: any): Observable; handleWorkflowV2(request: any): Observable; getMasterLanguages(): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class UserUpdateComponent implements OnInit, OnChanges { private fb; private userService; private dialog; private snackBar; private datePipe; private configSvc; userId: string | null; isNgo: boolean; updateEvent: EventEmitter; rejectDialog: TemplateRef; updaterejectDialog: TemplateRef; userForm: FormGroup; otherDetailsForm: FormGroup; userDetails: any; otherDetails: any; userName: string; avatarUserName: string; rootOrgId: string; currentDesignation: string; designationStatus: string; designationApprovalField: any; groupStatus: string; groupApprovalField: any; actionList: any[]; showCadreDetails: boolean; comment: string; showeditText: boolean; otherDetailsEditable: boolean; rolesList: { roleName: string; isSelected: boolean; }[]; uniqueRoles: any; userRoles: Set; orguserRoles: string[]; groupsList: any; orgHasDesignations: boolean; designationsMeta: any[]; designationsTotalCount: number; designationSearchText: string; designationsOffset: number; filterDesignationsMeta: any; isLoadingMoreDesignations: boolean; designationListLoadCount: number; orgTypeList: any; categoryList: string[]; genderList: string[]; selectedtagsList: string[]; isMdoLeader: boolean; today: Date; separatorKeysCodes: number[]; masterLanguages: Observable | undefined; masterLanguagesEntries: any; phoneNumberPattern: string; emailRegix: string; pincodePattern: string; yearPattern: string; empIDPattern: string; namePatern: string; noHtmlCharacter: RegExp; htmlDetected: boolean; private designationSearchSubscription?; constructor(fb: FormBuilder, userService: UserService, dialog: MatDialog, snackBar: MatSnackBar, datePipe: DatePipe, configSvc: ConfigurationsService$1); initForm(): void; ngOnChanges(changes: SimpleChanges): void; removeControl(group: FormGroup, controlName: string): void; ngOnInit(): void; initialization(): Promise; mergeApiCalls(): void; getApprovalsStatus(): void; setApprovalsStatus(wfInfo: any, userInfo: any): void; addControl(group: FormGroup, controlName: string, value?: any, validatorsList?: any[]): void; patchUserDetails(user: any): void; get getUseravatarName(): string; private getDateFromText; mapRoles(user: any): void; valueChanges(): void; filterLanguage(name: string): any; checkOrgHasDesignations(): void; getdesignationsMeta(): void; getIgotDesignations(): void; getDefaultDesignations(): void; setDesignationResults(data: any[], totalCount: number): void; setupScrollListener(opened: boolean): void; onDesignationSelectScroll(event: any): void; checkCurrentDesignationPresent(): void; onDesignationDropdownClosed(): void; modifyUserRoles(role: string): void; editOtherDetails(): void; addActivity(event: any): void; removeActivity(index: number): void; cancel(): void; onAssignMentorChange(isMentor: boolean): void; onIsMyUserChange(isMyUser: boolean): void; confirmUpdate(popuType?: string): void; markStatus(status: any): void; updateProfile(): void; onClickHandleWorkflow(action: string, field: string): void; updateRejection(field: any): void; validateText(text: any): void; numericOnly(event: any): boolean; showedit(): void; get showApprovalButtons(): boolean; updateApprovals(): void; getUserDetails(): void; openSnackbar(primaryMsg: string, duration?: number): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class AddUsersFormMetaComponent implements OnInit, OnDestroy, AfterViewInit { private formBuilder; private configSvc; private userService; private snackBar; private changeDetector; private environmentConfig; roles: ElementRef; updateEvent: EventEmitter; userId: string; contentForm: UntypedFormGroup; listOfRoles: any[]; userCompleteData: any; emailLengthVal: boolean; phoneNumberPattern: string; disableCreateButton: boolean; environment: any; constructor(formBuilder: UntypedFormBuilder, configSvc: ConfigurationsService$1, userService: UserService, snackBar: MatSnackBar, changeDetector: ChangeDetectorRef, environmentConfig: any); ngOnDestroy(): void; ngAfterViewInit(): void; ngOnInit(): void; assignValues(userId: string): Promise; createFormContent(): void; actionBtn(): void; updateuser(): void; assignRoleToUser(id: string, selectedRoles: any): Promise; showToastMessage(type: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare enum Notify { SAVE_SUCCESS = "SAVE_SUCCESS", SAVE_FAIL = "SAVE_FAIL", UPLOAD_SUCCESS = "UPLOAD_SUCCESS", UPLOAD_FAIL = "UPLOAD_FAIL", SEND_FOR_REVIEW_SUCCESS = "SEND_FOR_REVIEW_SUCCESS", SEND_FOR_REVIEW_FAIL = "SEND_FOR_REVIEW_FAIL", REVIEW_SUCCESS = "REVIEW_SUCCESS", REVIEW_FAIL = "REVIEW_FAIL", PUBLISH_SUCCESS = "PUBLISH_SUCCESS", PUBLISH_SUCCESS_LATE = "PUBLISH_SUCCESS_LATE", PUBLISH_FAIL = "PUBLISH_FAIL", PROCESS_FAIL = "PROCESS_FAIL", EMAIL_SUCCESS = "EMAIL_SUCCESS", EMAIL_FAIL = "EMAIL_FAIL", EMAIL_PARTIAL_SUCCESS = "EMAIL_PARTIAL_SUCCESS", CONTENT_FAIL = "CONTENT_FAIL", COPY = "COPY", NO_ROLE = "NO_ROLE", CANNOT_BE_CURATOR = "CANNOT_BE_CURATOR", IPR_DECLARATION_PF = "IPR_DECLARATION_PF", DUPLICTE = "DUPLICTE", MULTI_STRIP_VIOLATION = "MULTI_STRIP_VIOLATION", INVALID_FORMAT = "INVALID_FORMAT", INVALID_QUESTION_TEMPLATE = "INVALID_QUESTION_TEMPLATE", SIZE_ERROR = "SIZE_ERROR", UP_TO_DATE = "UP_TO_DATE", EMAIL_EXIST = "EMAIL_EXIST", MOBILE_EXIST = "MOBILE_EXIST", MANDATORY_FIELD_ERROR = "MANDATORY_FIELD_ERROR", SUCCESS = "SUCCESS", FAIL = "FAIL", BODY_OR_URL = "BODY_OR_URL", NO_CONTENT = "NO_CONTENT", DATA_PRESENT = "DATA_PRESENT", FORCE_SAVE = "FORCE_SAVE", IPR_DECLARATION = "IPR_DECLARATION", UPLOAD_FILE = "UPLOAD_FILE", FILE_ALLREADY_EXISTS = "FILE_ALLREADY_EXISTS", CREATE_CONTENT = "CREATE_CONTENT", CREATE_CQF_CONTENT = "CREATE_CQF_CONTENT", TRANSCODE_FAIL = "TRANSCODE_FAIL", CURATE_MANDATORY_MISS = "CURATE_MANDATORY_MISS", KBOARD_MANDATORY_MISS = "KBOARD_MANDATORY_MISS", CREATE_MANDATORY_MISS = "CREATE_MANDATORY_MISS", NO_ACCESS = "NO_ACCESS", DELETED = "DELETED", WINDOW_SIZE_ERROR = "WINDOW_SIZE_ERROR", CONTENT_CREATE_SUCCESS = "CONTENT_CREATE_SUCCESS", NOT_READY = "NOT_READY", LINK_UPLOAD = "LINK UPLOAD", DELETE = "DELETE", RESOLUTION_MISMATCH = "RESOLUTION_MISMATCH", RESOURCE_NO_QUIZ = "RESOURCE_NO_QUIZ", ASSESSMENT_MIN_QUIZ = "ASSESSMENT_MIN_QUIZ", QUESTION_EMPTY = "QUESTION_EMPTY", QUESTION_SPACES_ALONE = "QUESTION_SPACES_ALONE", OPTION_EMPTY = "OPTION_EMPTY", OPTION_SPACES_ALONE = "OPTION_SPACES_ALONE", MCQ_ALL_OPTIONS_CORRECT = "MCQ_ALL_OPTIONS_CORRECT", MCQ_NO_OPTION_CORRECT = "MCQ_NO_OPTION_CORRECT", FILLUPS_BLANKS_OPTIONS = "FILLUPS_BLANKS_OPTIONS", MAX_QUIZ_REACHED = "MAX_QUIZ_REACHED", MAX_OPTIONS_REACHED = "MAX_OPTIONS_REACHED", WEB_MODULE_MIN_PAGE_REQUIRED = "WEB_MODULE_MIN_PAGE_REQUIRED", WEB_MODULE_PAGE_EMPTY = "WEB_MODULE_PAGE_EMPTY", WEB_MODULE_AUDIO_ALL_LANGUAGES_PRESENT = "WEB_MODULE_AUDIO_ALL_LANGUAGES_PRESENT", EMPTY_PROBLEM_STATEMENT = "EMPTY_PROBLEM_STATEMENT", CLASS_DIAGRAM_NO_CLASS = "CLASS_DIAGRAM_NO_CLASS", EMPTY_CLASS_NAME = "EMPTY_CLASS_NAME", CLASS_NO_ATTRIBUTE_NO_METHOD = "CLASS_NO_ATTRIBUTE_NO_METHOD", CLASS_USED_IN_RELATION = "CLASS_USED_IN_RELATION", CLASS_NAME_TAKEN = "CLASS_NAME_TAKEN", RELATION_EXISTS = "RELATION_EXISTS", RELATION_MIN_CLASS_REQUIRED = "RELATION_MIN_CLASS_REQUIRED", ROLE_REQUEST_SUBMIT_SUCCESS = "ROLE_REQUEST_SUBMIT_SUCCESS", ROLE_REQUEST_SUBMIT_FAILURE = "ROLE_REQUEST_SUBMIT_FAILURE", COMPETENCY_CREATED_SUCCESS = "COMPETENCY_CREATED_SUCCESS", CANNOT_CHANGE_MIME_TYPE = "CANNOT_CHANGE_MIME_TYPE", DELETE_LIVE_CONTENT = "DELETE_LIVE_CONTENT", REQURIED_FIELDS_MISSING = "REQURIED_FIELDS_MISSING", MCQ_SCA_VALIDATION = "MCQ_SCA_VALIDATION", MCQ_SCA_VALIDATION_TF = "MCQ_SCA_VALIDATION_TF", MCQ_MCA_ANSWER_VALIDATION_TF = "MCQ_MCA_ANSWER_VALIDATION_TF", MCQ_MCA_ANSWER_VALIDATION = "MCQ_MCA_ANSWER_VALIDATION", BULK_UPLOAD_SAME_ANSWER = "BULK_UPLOAD_SAME_ANSWER", BULK_MCQ_SCA_ANSWER = "BULK_MCQ_SCA_ANSWER", BULK_MCQ_MCA_ANSWER = "BULK_MCQ_MCA_ANSWER", BULK_MTF_ANSWER = "BULK_MTF_ANSWER", BULK_FTB_ANSWER = "BULK_FTB_ANSWER", BULK_MCQ_MCA_W_ANSWER = "BULK_MCQ_MCA_W_ANSWER", BULK_MCQ_MCA_W_MIN_MAX = "BULK_MCQ_MCA_W_MIN_MAX", BULK_UPLOAD_EMPTY_QUESTIONS = "BULK_UPLOAD_EMPTY_QUESTIONS", BULK_WORNG_QUESTIONTAGGING = "BULK_WORNG_QUESTIONTAGGING", MCQ_MCA_VALIDATION = "MCQ_MCA_VALIDATION", ASSESSMENT_WRONG_COMBO = "ASSESSMENT_WRONG_COMBO", ASSESSMENT_MAX_LIMIT = "ASSESSMENT_MAX_LIMIT", MISSING_ANSWER_FOR_FITB = "MISSING_ANSWER_FOR_FITB", MISSING_BLANK_FOR_FITB = "MISSING_BLANK_FOR_FITB", ADDED_MORE_BLANKS = "ADDED_MORE_BLANKS", INVALID_WEIGHTAGE_VALUES = "INVALID_WEIGHTAGE_VALUES", INVALID_TIME = "INVALID_TIME", FINALASSESSMENT_AVALIBLE = "FINALASSESSMENT_AVALIBLE", FINALASSESSMENT_AVALIBLE_STANDALONEASSESSMENT = "FINALASSESSMENT_AVALIBLE_STANDALONEASSESSMENT", CANNOT_ADD_COURSE = "CANNOT_ADD_COURSE", ONLY_YOUTUBE = "ONLY_YOUTUBE", INVALID_SURVEY_LINK = "INVALID_SURVEY_LINK", COURSE_DRAFT_ERROR = "COURSE_DRAFT_ERROR", VALUES_CANNOT_BE_ZERO = "VALUES_CANNOT_BE_ZERO", INVALID_VALUE_ENTERED = "INVALID_VALUE_ENTERED", INVALID_PERCENTAGE_VALUE = "INVALID_PERCENTAGE_VALUE", MAX_LIMIT_REACHED = "MAX_LIMIT_REACHED", MISSING_ANSWER_TEXT = "MISSING_ANSWER_TEXT", INVALID_FTB_OPTIONS = "INVALID_FTB_OPTIONS", SURVEY_LINK_TAG_FAIL = "SURVEY_LINK_TAG_FAIL", SURVEY_LINK_TAG_SUCCESS = "SURVEY_LINK_TAG_SUCCESS", SENT_TO_KARMAYOGI_PUBLISHER = "SENT_TO_KARMAYOGI_PUBLISHER", COPY_CONTENT_NAME_REQURIED = "COPY_CONTENT_NAME_REQURIED", LIVE_TO_DRAFT_ERROR = "LIVE_TO_DRAFT_ERROR", SURVEY_MIN_QUEST = "SURVEY_MIN_QUEST", SURVEY_NAME_EMPTY = "SURVEY_NAME_EMPTY", SURVEY_NAME_SPACES_ALONE = "SURVEY_NAME_SPACES_ALONE", REDUCE_FILE_UPLOAD_SIZE = "REDUCE_FILE_UPLOAD_SIZE", MODERATED_DETAILS_REQ = "MODERATED_DETAILS_REQ", BULK_UPLOAD_INVALID_OPTION_FORMAT = "BULK_UPLOAD_INVALID_OPTION_FORMAT", ALLOW_ONLY_HTTPS = "ALLOW_ONLY_HTTPS", MIN_AND_MAX_SECTIONS = "MIN_AND_MAX_SECTIONS", MAX_QUESTIONS_ADDED_FOR_TAGGING = "MAX_QUESTIONS_ADDED_FOR_TAGGING", EXCEED_ASSESSMENT_DURATION = "EXCEED_ASSESSMENT_DURATION", HTML_DETEDTED = "HTML_DETEDTED" } interface IData { type: keyof typeof Notify; data: any; } declare class NotificationComponent { type: any; notify: any; otherData: any; environment: any; constructor(data: IData); canShow(msg: string): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class NotificationModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class UserUpdateModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } interface PageChangeEmitter { currentPage: number; previousPage: number; limit: number; } declare class PaginationComponent implements OnInit, OnChanges { private _currentPage; defaultPaginationSize: number; defaultPaginationSizeOptions: number[]; totalItemsCount: number; set currentPage(value: number); get currentPage(): number; pageChange: EventEmitter; pagination: any; rangeWithDots: any; showingArray: any[]; lastPage: number; firstPage: number; previousPage: number; ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; paginationInListing(): void; paginationDup(c: any, m: any): any; goToPage(page: number): void; navigateToLastPage(page: number): void; navigateToFirstPage(page: number): void; navigateToNextPage(page: number): void; navigateToPrevPage(page: number): void; onChangePageSize(event: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class PaginationModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class CreateRequestService { private http; constructor(http: HttpClient); getUsers(req: any): Observable; createRequestForm(req: any): Observable; getLanguages(req: any): Observable; getRequestDataById(demandId: any): Observable; getRequestTypeList(request: any): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class CreateRequestFormComponent implements OnInit { private router; private fb; private createRequestSvc; dialog: MatDialog; private snackBar; private activatedRoute; requestDetails: EventEmitter; currentStepperIndex: number; steppersList: string[]; isHideData: boolean; contentDetailsForm: UntypedFormGroup; additionalDetailsForm: UntypedFormGroup; demandId: string | null; viewMode: string; requestObjData: any; formLoading: boolean; constructor(router: Router, fb: UntypedFormBuilder, createRequestSvc: CreateRequestService, dialog: MatDialog, snackBar: MatSnackBar, activatedRoute: ActivatedRoute); ngOnInit(): void; initialization(): void; routeSubscription(): void; getRequestDataById(): void; setRequestData(): void; navigateBack(): void; onStepChanged(index: number): void; onNext(): void; onPrevious(): void; onSubmit(): void; generateRequestBody(): { title?: undefined; objective?: undefined; typeOfUser?: undefined; referenceLink?: undefined; requestType?: undefined; preferredProvider?: undefined; assignedProvider?: undefined; proficiencyLevel?: undefined; estimatedDuration?: undefined; courseLanguage?: undefined; sectoralSubjectMatterExpertAvailable?: undefined; sectoralSubjectMatterExpertDetails?: undefined; courseDigitisationAgencyRequired?: undefined; competencies_v6?: undefined; } | { title: any; objective: any; typeOfUser: any; referenceLink: any; requestType: any; preferredProvider: any; assignedProvider: any; proficiencyLevel: any; estimatedDuration: string; courseLanguage: string[]; sectoralSubjectMatterExpertAvailable: any; sectoralSubjectMatterExpertDetails: any; courseDigitisationAgencyRequired: any; competencies_v6: any; }; get providerValue(): any; get assignedProviderValue(): any; get getCourseLanguage(): string[]; get getEstimatedDuration(): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class CreateRequestContentDetailsComponent implements OnInit { contentDetailsForm: FormGroup; viewMode: string; userTypeOptions: { displayName: string; value: string; isChecked: boolean; description: string; }[]; proficiencyLevels: { displayName: string; value: string; description: string; }[]; selectedUserTypes: string[]; constructor(); ngOnInit(): void; initialization(): void; getControl(name: string): i3$1.AbstractControl; controlValidationStatus(controlName: string, errorType: string): boolean; onUserTypeSelectionChange(event: any, opt: { displayName: string; value: string; isChecked: boolean; }): void; numbersOnly(event: Event, controlName: 'hours' | 'minutes' | 'seconds'): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } type Auther$1 = { name: string; number: string; email: string; }; declare class CreateRequestAdditionalDetailsComponent implements OnInit { private dialog; private createRequestSvc; private competencySvc; additionalDetailsForm: UntypedFormGroup; viewMode: string; demandId: string | null; languagesList: any[]; filteredLanguages: any[]; searchText: string; addedAuthersList: Auther$1[]; requestTypeList: { type: string; description: string; }[]; yesNoOptions: { displayName: string; value: boolean; }[]; filteredAssigneeType: any[]; filteredRequestType: any[]; countOfVisibleProviders: number; requestTypeData: any[]; requestObjData: any; environment: any; allCompetencies: any[]; filteredallCompetencies: any[]; allCompetencyTheme: any[]; filteredallCompetencyTheme: any[]; allCompetencySubtheme: any[]; filteredallCompetencySubtheme: any[]; enableCompetencyAdd: boolean; seletedCompetencyArea: any; seletedCompetencyTheme: any; seletedCompetencySubTheme: any; queryThemeControl: UntypedFormControl; querySubThemeControl: UntypedFormControl; isTableExpanded: boolean; listView: boolean; allThemeData: any; allSubThemeData: any; competencyAreaDescriptions: Record; constructor(dialog: MatDialog, createRequestSvc: CreateRequestService, competencySvc: CompetencyPassbookService, environment: any); ngOnInit(): void; initialization(): void; getLanguagesList(): void; getRequestTypeList(): void; valueChangeFunctions(): void; filterOrgValues(searchValue: string, array: any): any; getHiddenOptions(searchValue: string, array: any): any; clearSearch(): void; onSearchChange(event: Event): void; getFilteredLanguagesWithSelected(): any[]; onLanguageRemoved(languageValue: { displayName: string; value: string; }): void; onDropdownToggle(isOpen: boolean): void; compareByValue(v1: any, v2: any): boolean; onAvailableWithMDOChange(event: any): void; openAddAuthorDialog(): void; removeAuthor(index: number): void; controlValidationStatus(controlName: string, errorType: string): boolean; onRequiredFromKBChange(event: any): void; selectRequestType(item: any): void; getControl(controlName: string): FormControl; resetControlAndClearValidators(controlName: string): void; providersOpenedChange(e: any, searchControl: any): void; onProviderRemoved(provider: any): void; clearProviderSearch(event: any, searchControl: any): void; isOptionDisabled(option: any): boolean; get competenciesValue(): any[]; initializeCompetenciesSection(): void; loadCompetencyMaster(): void; filterValues(searchValue: string, array: any[]): any[]; compAreaSelected(option: any): void; compThemeSelected(option: any): void; compSubThemeSelected(option: any): void; resetCompfields(): void; resetCompSubfields(): void; canPush(arr: any[], obj: any): boolean; addCompetency(): void; get uniqueAreas(): string[]; getUniqueThemesForArea(areaName: string): string[]; getSubthemesForAreaAndTheme(areaName: string, themeName: string): string[]; getTotalRowsForArea(areaName: string): number; removeCompetencyV2(area: string, theme: string, subtheme: string): void; updateQuery(key: string, field: 'theme' | 'subtheme'): void; resetSearch(field: 'theme' | 'subtheme'): void; toggleTable(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } type Auther = { name: string; number: string; email: string; }; declare class AddAuthorsComponent implements OnInit { private dialogRef; private fb; private configSvc; private createRequestSvc; authersForm: UntypedFormGroup; phoneNumberPattern: string; emailRegix: string; auhtersListMeta: any[]; authersTotalCount: number; authersSearchText: string; authersOffset: number; authersLimit: number; authersLoading: boolean; isAutherSelected: boolean; environment: any; userProfile: any; constructor(dialogRef: MatDialogRef, fb: UntypedFormBuilder, configSvc: ConfigurationsService$1, createRequestSvc: CreateRequestService); ngOnInit(): void; initialization(): void; getAuthersMeta(): void; setupScrollListener(opened: boolean): void; onAutherSelectScroll(event: any): void; checkCurrentAutherPresent(): void; onAutherDropdownClosed(): void; setName(): void; setMobileAndEmail(selectedAuther: Auther | undefined): void; controlValidationStatus(controlName: string, errorType: string): boolean; numericOnly(event: any): boolean; submitAuthers(): void; closeDialog(data?: Auther | undefined): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class CreateRequestModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } interface FilterOption { name: string; displayName?: string; count?: number; isChecked?: boolean; /** * Renders the control greyed and unselectable. Left undefined the option is enabled, so * existing callers are unaffected. Use it for a choice that exists but would return * nothing — an empty bucket is more informative shown and disabled than hidden, because * hiding it makes the list of choices shift around as the data changes. */ disabled?: boolean; } interface FilterConfig { key: string; heading: string; showSearch?: boolean; showClearAll?: boolean; selectType?: 'checkbox' | 'radio'; showCount?: boolean; showSeeMore?: boolean; seeMoreLimit?: number; order?: number; options: FilterOption[]; } interface ApiFacet { name: string; values: { name: string; count: number; }[]; heading?: string; showSearch?: boolean; showClearAll?: boolean; selectType?: 'checkbox' | 'radio'; showCount?: boolean; showSeeMore?: boolean; seeMoreLimit?: number; order?: number; } interface FilterMetaConfig { [key: string]: { heading: string; showSearch?: boolean; showClearAll?: boolean; selectType?: 'checkbox' | 'radio'; showCount?: boolean; showSeeMore?: boolean; seeMoreLimit?: number; order?: number; }; } interface SelectedFilters { [key: string]: string[]; } interface FilterChip { key: string; value: string; displayName: string; } declare class FilterByComponent implements OnInit, OnDestroy, OnChanges { private translateService; private langtranslations; filterConfig: FilterConfig[]; apiFacets: ApiFacet[]; filterMetaConfig: FilterMetaConfig; showHeader: boolean; headerTitle: string; showClearAllGlobal: boolean; appliedFilter: EventEmitter; filterCleared: EventEmitter; filterChipRemoved: EventEmitter; selectedFilters: SelectedFilters; selectedFilterChips: FilterChip[]; filtersAppliedCount: number; searchQueries: { [key: string]: string; }; showAllMap: { [key: string]: boolean; }; constructor(translateService: TranslateService, langtranslations: MultilingualTranslationsService$1); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; /** * Transform API facets response to filterConfig format * Now supports pre-configured facets from parent component with heading, showSearch, etc. */ transformApiFacetsToConfig(): void; /** * Generate default meta config for unknown filter keys */ getDefaultMeta(key: string): FilterMetaConfig[string]; initializeState(): void; /** * Adopts the selection the parent already declared through each option's `isChecked`. * * `selectedFilters` used to start empty and fill only when someone clicked INSIDE this * panel, so a selection that arrived from anywhere else — a URL query param, a toolbar * control, a restored session — rendered its radio or checkbox as checked while the panel * still believed nothing was applied. That is what drives `filtersAppliedCount`, so the * applied-filter chips and the Clear All button stayed hidden on a page that plainly was * filtered. * * Only runs where `filterConfig` is an input (it is called from `initializeState`), so a * parent that feeds `apiFacets` instead and manages selection by clicking is unaffected: * its options carry no `isChecked`, and this seeds nothing. */ private seedSelectionFromConfig; getSelectedFilter(option: FilterOption, key: string): boolean; onSelectionFilter(event: MatCheckboxChange, option: FilterOption, filterKey: string): void; onRadioChange(option: FilterOption, filterKey: string): void; updateFilterChips(): void; clearFilterChip(chip: FilterChip): void; clearAllFilters(): void; clearSectionFilters(filterKey: string): void; toggleShowMore(filterKey: string): void; getFilteredOptions(config: FilterConfig): FilterOption[]; hasMoreOptions(config: FilterConfig): boolean; getFilteredOptionsCount(config: FilterConfig): number; hasNoSearchResults(config: FilterConfig): boolean; capitalizeFirstLetter(str: string): string; trackByFn(index: number, item: any): any; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SearchSortInputComponent implements AfterViewInit, OnChanges { searchSorter: EventEmitter; category: string; isExploreContentTab: boolean; selectedOption: string; customOptions: any[]; options: any[]; sortSelect: ElementRef; constructor(); ngOnChanges(): void; ngAfterViewInit(): void; onChange(event: Event): void; adjustSelectWidth(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class FiltersModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class BadgeService { private http; private apiUrl; constructor(http: HttpClient); generateBadge(data: any): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class BadgeModalComponent implements OnInit { private badgeService; private configSvc; badgeData: any; ngOnInit(): void; close: EventEmitter; constructor(badgeService: BadgeService, configSvc: ConfigurationsService$1); downloadBadgePng(badgeData: any): void; downloadBadgeSvg(badgeData: any): void; downloadBadgePdf(badgeData: any): void; getUserId(): string; closeModal(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * COMPETENCY LIST COMPONENT - SELF-MANAGING COMPETENCY SELECTION * * WHAT THIS COMPONENT DOES: * - Displays competency area, theme, sub-theme selection UI * - Manages internal list of selected competencies automatically * - Loads competency data from API if not provided via inputs * - Shows selected competencies in a table with remove functionality * * USAGE: * 1. Import CompetenciesModule in your module * 2. Use in template: * 3. Handle the selectedCompetency output to get updated competencies array * * EXPECTED INPUTS: * - competencyAreas/Themes/SubThemes: Optional custom data arrays (will auto-load API if empty) * - selectedCompetencies: Initial array of competencies (for editing existing data) * - viewMode: 'view' (readonly) or 'edit' (default: edit) * - labels: Custom UI labels {areaLabel, themeLabel, subThemeLabel, addButtonLabel} * - showTable: Show/hide competencies table (default: true) * * EXPECTED OUTPUTS: * - selectedCompetency: Emits updated CompetencyData[] array whenever add/remove happens * - addTehem: Emits CompetencyData when a competency is added (for future tracking) * - deletedTeheme: Emits deleted CompetencyData when a competency is removed (for future tracking) * * SIMPLE PARENT COMPONENT EXAMPLE: * // Template: * * * * // Component: * myCompetencies: CompetencyData[] = []; * * NO NEED TO HANDLE ADD/REMOVE MANUALLY - Component manages internal state! */ interface CompetencyLabels { areaLabel?: string; themeLabel?: string; subThemeLabel?: string; addButtonLabel?: string; } interface CompetencyData { competencyAreaIdentifier: string; competencyAreaRefId: string; competencyAreaName: string; competencyAreaDescription: string; competencyThemeIdentifier: string; competencyThemeRefId: string; competencyThemeName: string; competencyThemeType: string; competencyThemeDescription: string; competencyThemeAdditionalProperties: any; competencySubThemeIdentifier: string; competencySubThemeRefId: string; competencySubThemeName: string; competencySubThemeDescription: string; competencySubThemeAdditionalProperties: any; } declare class CompetencyListComponent implements OnInit, OnChanges { private competencySvc; competencyAreas: any[]; competencyThemes: any[]; competencySubThemes: any[]; viewMode: string; labels: CompetencyLabels; selectedCompetencies: CompetencyData[]; showTable: boolean; showCompetencyAdd: boolean; showRoundControls: boolean; showDescriptions: boolean; selectedCompetency: EventEmitter; addTehem: EventEmitter; deletedTeheme: EventEmitter; allCompetencies: any[]; filteredallCompetencies: any[]; allCompetencyTheme: any[]; filteredallCompetencyTheme: any[]; allCompetencySubtheme: any[]; filteredallCompetencySubtheme: any[]; enableCompetencyAdd: boolean; seletedCompetencyArea: any; seletedCompetencyTheme: any; seletedCompetencySubTheme: any; queryThemeControl: UntypedFormControl; querySubThemeControl: UntypedFormControl; isTableExpanded: boolean; listView: boolean; allThemeData: any; allSubThemeData: any; expand: boolean; selectedAreaValue: string | null; internalCompetencies: CompetencyData[]; defaultLabels: CompetencyLabels; competencyAreaDescriptions: Record; constructor(competencySvc: CompetencyPassbookService); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; initializeComponent(): void; setupFormControls(): void; loadCompetencyMaster(): void; filterValues(searchValue: string, array: any[]): any[]; compAreaSelected(option: any): void; compThemeSelected(option: any): void; compSubThemeSelected(option: any): void; resetCompSubfields(): void; addCompetency(): void; removeCompetencyV2(area: string, theme: string, subtheme: string): void; updateQuery(key: string, field: 'theme' | 'subtheme'): void; resetSearch(field: 'theme' | 'subtheme'): void; get uniqueAreas(): string[]; getUniqueThemesForArea(areaName: string): string[]; getSubthemesForAreaAndTheme(areaName: string, themeName: string): string[]; getTotalRowsForArea(areaName: string): number; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class CompetenciesModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } /** * Namespace following sunbird-cb-portal ws-widget conventions. * All model types, enums, and interfaces for the Carousel Banner widget. */ declare namespace NsCarouselBannerV2 { /** * Size variants for the banner height. * - xs : 140px (extra-compact, inline teasers) * - sm : 200px (compact banners, inline blocks) * - md : 320px (medium promotional strips) * - lg : 480px (full hero banners) * - xl : 600px (full-bleed splash banners) */ type BannerSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl'; /** * Position of the overlay content (title / subtitle / CTA) inside the slide. */ type ContentPosition = 'top-left' | 'top-middle' | 'top-right' | 'middle-left' | 'middle' | 'middle-right' | 'bottom-left' | 'bottom-middle' | 'bottom-right'; /** * Slide transition animation effect. * - 'none' : instant cut (default) * - 'slide' : smooth horizontal slide * - 'fade' : cross-fade between slides */ type TransitionEffect = 'none' | 'slide' | 'fade'; /** * Alignment of the dots row when navButtonPosition is middle-inside or middle-outside. */ type DotsPosition = 'bottom-left' | 'bottom-middle' | 'bottom-right'; /** * Position of the CTA button within the overlay content block. */ type CtaPosition = 'top-left' | 'top-middle' | 'top-right' | 'bottom-left' | 'bottom-middle' | 'bottom-right'; /** * Position of the previous / next navigation arrow buttons. */ type NavButtonPosition = 'top-left' | 'top-middle' | 'top-right' | 'middle-inside' | 'middle-outside' | 'bottom-left' | 'bottom-middle' | 'bottom-right'; /** A single slide in the carousel. */ interface IBannerItem { /** URL of the banner background image. */ bannerUrl: string; /** Optional navigation target when the banner is clicked. */ redirectionUrl?: string; /** Alt text for the banner image (accessibility). */ altText?: string; /** Optional overlay title rendered on top of the banner. */ title?: string; /** Optional overlay subtitle rendered on top of the banner. */ subtitle?: string; /** Optional CTA button label rendered on the banner. */ ctaLabel?: string; /** Per-slide CTA position — overrides component-level ctaPosition. */ ctaPosition?: CtaPosition; /** Per-slide overlay position — overrides component-level contentPosition. */ contentPosition?: ContentPosition; } /** Root configuration object accepted by . */ interface ICarouselConfig { banners: IBannerItem[]; size?: BannerSize; navButtonPosition?: NavButtonPosition; autoPlay?: boolean; autoPlayInterval?: number; showDots?: boolean; showArrows?: boolean; contentPosition?: ContentPosition; transitionEffect?: TransitionEffect; dotsPosition?: DotsPosition; scrollNavigation?: boolean; ctaPosition?: CtaPosition; /** When true, renders a skeleton loader in place of the carousel (default: false). */ loading?: boolean; /** * Percentage (0–49) of the next slide to peek into the viewport. * E.g. 25 means the next slide is 25% visible on the right edge. * When 0 (default) the carousel shows one full slide at a time. */ peekPercent?: number; } } declare class SbUicCarouselBannerV2Component implements OnDestroy { private readonly router; private readonly events; private readonly breakpointObserver; banners: i0.InputSignal; size: i0.InputSignal; navButtonPosition: i0.InputSignal; autoPlay: i0.InputSignal; autoPlayInterval: i0.InputSignal; showDots: i0.InputSignal; showArrows: i0.InputSignal; contentPosition: i0.InputSignal; transitionEffect: i0.InputSignal; dotsPosition: i0.InputSignal; scrollNavigation: i0.InputSignal; ctaPosition: i0.InputSignal; /** When true, renders a Tailwind animate-pulse skeleton. Set false once API data loads. */ loading: i0.InputSignal; /** Percentage (0–49) of the next slide to peek into the viewport. */ peekPercent: i0.InputSignal; currentIndex: i0.WritableSignal; skipTransition: i0.WritableSignal; private isMobile; private autoPlayTimer; private touchStartX; private touchStartY; private wheelLocked; resolvedBanners: Signal; /** * Peek falls back to 0 on mobile: a narrow viewport has no room to spare for a sliver of the * next banner, and the sliver also pulls the arrows and the active banner off-centre. Every * other width keeps whatever the consumer passed in. Templates often bind the input as a * string ('25'), so coerce before the arithmetic below relies on it being a number. */ resolvedPeekPercent: Signal; isOutside: Signal; isMiddleInside: Signal; isMiddlePosition: Signal; isTop: Signal; isBottom: Signal; hostClasses: Signal>; trackTransform: Signal; slideFlexBasis: Signal; skeletonHeightClass: Signal; skeletonCtrlBarJustify: Signal<"justify-center" | "justify-end" | "justify-start">; skeletonDotsJustify: Signal<"justify-center" | "justify-end" | "justify-start">; constructor(router: Router, events: EventService, breakpointObserver: BreakpointObserver); ngOnDestroy(): void; resolvedCtaPosition(item: NsCarouselBannerV2.IBannerItem): NsCarouselBannerV2.CtaPosition; isCtaTop(item: NsCarouselBannerV2.IBannerItem): boolean; prev(): void; next(): void; goTo(index: number): void; onTouchStart(event: TouchEvent): void; onTouchEnd(event: TouchEvent): void; onWheel(event: WheelEvent): void; onBannerClick(item: NsCarouselBannerV2.IBannerItem): void; overlayClass(item: NsCarouselBannerV2.IBannerItem): string; private raiseTelemetry; private startAutoPlay; private clearAutoPlay; private resetAutoPlay; private jumpTransition; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class WelcomeGreetingV2Component { private readonly configSvc; /** true when result.last_login was absent → first time login on platform */ get isFirstLogin(): boolean; get userName(): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ContinueLearningV2Component implements OnInit, OnDestroy { /** * Per-element switches from the learningProgress section of the home form config. * Absent config (or an absent key) means shown, so this stays backward compatible with * configs authored before the keys existed. Hiding the whole section is a separate * concern — set the section's own visibilityMode to 'hidden'. */ config: i0.InputSignal; showViewAll: i0.Signal; showInProgress: i0.Signal; showWeeklyClaps: i0.Signal; inProgressCourse: any; isInProgressLoading: i0.WritableSignal; insightsData: any; weeklyData: any; isWeeklyLoading: boolean; private readonly configSvc; private readonly enrollSvc; private readonly domainConfSvc; private readonly http; private readonly router; private readonly eventSvc; private readonly contentApiSvc; private readonly destroy$; ngOnInit(): void; loadInProgressCourse(): void; private formatAndPickFirst; private getInsightsData; loadWeeklyClaps(): void; viewAll(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class InProgressCardV2Component implements OnChanges { course: any; isLoading: boolean; showHeader: boolean; showViewAll: boolean; resumed: EventEmitter; /** Navigation + telemetry for "View All" stay with the parent, which owns the section */ viewAllClicked: EventEmitter; private readonly router; private readonly eventSvc; private readonly utilitySvc; readonly circumference: number; progressPercent: number; courseName: string; courseOrg: string; courseId: string; isRetired: boolean; ngOnChanges(): void; onViewAll(): void; get strokeDashoffset(): number; resume(): void; private navigate; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class WeeklyClapsCardV2Component { insightsData: any; weeklyData: any; isLoading: boolean; showPopup: boolean; private readonly eventSvc; get weeklyClaps(): any; get weekList(): { label: string; key: string; activeWeek: boolean; }[]; get totalClaps(): number; get periodStart(): any; get periodEnd(): any; get hasPeriod(): boolean; private isValidDate; isWeekDone(week: { key: string; activeWeek: boolean; }): boolean; isWeekActive(week: { key: string; activeWeek: boolean; }): boolean; openKnowMore(): void; closePopup(): void; onEscapeKey(): void; getWeekIcon(week: { key: string; activeWeek: boolean; }): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare function buildWeeklyClapsData(weeklyClaps: any): any; declare class CardCourseV2Component { private utilitySvc; content: i0.InputSignal; cbPlanMapData: i0.InputSignalWithTransform, Record>; isiGOTSpecialization: i0.InputSignal; isLoading: i0.InputSignal; isLiveOrMarkForDeletion: i0.InputSignal; config: i0.InputSignal; /** * Lock state of a comprehensive assessment, when the host knows it. * * It cannot be derived here: whether an assessment has opened up depends on every course in * the plan around it, which this card has no sight of. So the page that does know passes it * in, and the card renders it in the footer where a plan status would otherwise sit. */ assessmentState: i0.InputSignal<"completed" | "locked" | "available">; /** * Take the CA chip from `content.isCA` alone, ignoring the `comprehensiveAssessmentCourseUnits` * list in localStorage. * * That list holds the course units of every CA assigned to the user, so on a page scoped to * one plan it tags courses another plan's CA covers — including on plans with no CA at all. * A host that already knows which courses its own CA covers sets this and stamps `isCA`. */ caFromContentOnly: i0.InputSignal; contentData: i0.OutputEmitterRef; private readonly titleElRef; private readonly orgElRef; private readonly router; private readonly configSvc; private readonly events; private readonly contentLangSvc; private readonly commonSvc; private readonly contSvc; private readonly contentApiService; private readonly domainConfSvc; readonly defaultThumbnail: i0.WritableSignal; readonly defaultSLogo: i0.WritableSignal; readonly isTitleTruncated: i0.WritableSignal; readonly isOrgTruncated: i0.WritableSignal; private readonly caCourseUnitIds; readonly languageCount: i0.Signal; readonly thumbnailUrl: i0.Signal; /** Set when the thumbnail request itself fails; reset below whenever the content changes. */ private readonly thumbnailFailed; /** * Show the content's category in place of the picture. * * Comprehensive assessments are authored without a poster, so thumbnailUrl() falls through * to the generic instance default — a picture that says nothing, on a card whose whole job * is to say "this is the assessment". Naming the category is more use than that. * * "No thumbnail" covers both an assessment that carries no image and one whose image does * not load: the second is what a broken or missing poster URL actually looks like, and the * default it falls back to is the same empty grey either way. * * Deliberately narrow — assessments only. Every other content type keeps the default * picture, and an assessment that does have a working poster still shows it. */ readonly showAssessmentMedia: i0.Signal; onThumbnailError(): void; readonly displayType: i0.Signal; readonly isComprehensiveAssessment: i0.Signal; readonly ratingValue: i0.Signal; readonly orgName: i0.Signal; readonly orgLogo: i0.Signal; readonly difficultyLevel: i0.Signal; readonly isPopular: i0.Signal; readonly isMostEnrolled: i0.Signal; readonly isMostTrending: i0.Signal; readonly isIgotSpecialization: i0.Signal; readonly isApar: i0.Signal; readonly isAiCBP: i0.Signal; readonly isCa: i0.Signal; readonly assessmentStateIcon: i0.Signal<"check" | "lock_open" | "lock">; readonly assessmentStateKey: i0.Signal<"" | "cardcontentv2.completed" | "cardcontentv2.unlocked" | "cardcontentv2.locked">; /** The CB plan entry for this content, if the parent supplied one. */ private readonly cbPlan; readonly cbpStatus: i0.Signal<"Completed" | "Overdue" | "Upcoming">; /** * Label for the 'Upcoming' state. Like the V1 cards an upcoming plan shows its * end date rather than a word, so there is no translation key to resolve. */ readonly cbpEndDate: i0.Signal; readonly durationSeconds: i0.Signal; readonly programDurationDays: i0.Signal; constructor(utilitySvc: UtilityService); onCardClick(): Promise; emitDetails(): void; isCardElementEnabled(key: string): boolean; private firstString; /** `organisation` is normally an array of names, but some responses send a bare string. */ private firstOrg; private checkTruncation; private raiseTelemetry; private navigate; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface CardViewModel { identifier: string; title: string; image: string; additionalTags: string[]; duration: string; status: string; rating: number; provider: string; organisation: string[]; creatorLogo: string; sourceName: string; resourceType: string; languageMapV1: Record; language: string[]; difficultyLevel: string; planDuration: string; contentStatus: number; metadata: Record; courseCategory: string; primaryCategory: string; } /** Status shown on a plan card's media badge. */ type PlanStatus = 'overdue' | 'inProgress' | 'completed'; /** * One CBP / APAR / AI-CBP training plan, as rendered by CardType.PlanCard. * * Deliberately NOT a CardViewModel: a plan is not a piece of content — it has no * thumbnail (the card draws a themed one), no rating, no duration and no provider org. * `metadata` keeps the raw plan so navigation and future fields need no remapping. */ interface PlanCardViewModel { /** Plan id — the CBPlan API sends it as `id`, not `identifier`. */ identifier: string; title: string; /** Financial year the plan belongs to, e.g. '2026-27'. */ planYear: string; endDate: string; /** Number of entries in the plan's contentList. */ contentCount: number; /** 'Course', 'Blended program', … — the plan's declared content type. */ contentType: string; /** Display name for the "Created By" row. */ createdByName: string; /** * Logo of the owning org. Empty when the payload carries none — CBPlan V4 sends * `createdByOrgLogo: null` for most orgs — and the card falls back to the instance logo * from `instanceConfig.logos.defaultSourceLogo` rather than rendering a gap. */ createdByLogo: string; /** Plan lifecycle status as the API reports it: draft / live / retire. */ status: string; planType: 'APAR' | 'AICBP' | 'CBP'; /** * Whether the card shows the CA tag: an APAR plan that actually carries a comprehensive * assessment. Both halves matter — a non-APAR plan is not tagged even if the field is * populated, and an APAR plan with `comprehensiveAssessment: null` is not either. */ hasComprehensiveAssessment: boolean; planStatus: PlanStatus; metadata: Record; } /** * Card for a single CBP / APAR / AI-CBP training plan (CardType.PlanCard). * * A plan is not content, so this is a sibling of CardCourseV2Component rather than a mode of * it: there is no thumbnail to show (the media area is drawn from the theme's primary and * secondary colours), no rating, no duration and no provider org. What a plan does have — * year, due date, how many contents it holds, who created it — is what the card leads with. */ declare class CardPlanV2Component { plan: i0.InputSignal; isLoading: i0.InputSignal; /** * 'portrait' is the 254px grid/carousel card; 'landscape' is the full-width row the * mobile listing uses. Same data either way — only the composition differs: landscape * moves the status out of the media area and into the footer beside the owner. */ layout: i0.InputSignal<"portrait" | "landscape">; /** The pill's contentConfig — read for `cardClickDetails` only. */ config: i0.InputSignal; private readonly titleElRef; private readonly ownerElRef; private readonly router; private readonly configSvc; private readonly contentApiService; readonly isTitleTruncated: i0.WritableSignal; readonly isOwnerTruncated: i0.WritableSignal; /** Instance logo, used wherever the owning org has none of its own. */ readonly defaultSLogo: i0.WritableSignal; /** Translation key for the media badge; `inProgress` has no V1 equivalent to reuse. */ readonly statusLabelKey: i0.Signal<"cardcontentv2.completed" | "cardcontentv2.overDue" | "cardplanv2.inProgress">; readonly contentCountLabelKey: i0.Signal<"cardplanv2.course" | "cardplanv2.courses">; /** Text of the plan-type chip. APAR and AI CBP are the two that carry an icon. */ readonly planTypeLabel: i0.Signal<"APAR" | "CBP" | "AI CBP">; /** * The owning org's logo, or the instance logo when it has none. * * CBPlan V4 sends `createdByOrgLogo: null` for most orgs, so the fallback is the usual * path rather than the exception — an empty `src` would render a broken-image glyph. */ readonly ownerLogo: i0.Signal; readonly planTypeIcon: i0.Signal<"" | "assets/icons/content/apar.svg" | "assets/icons/content/Ai_CBP.svg">; constructor(); /** * Always the plan detail page (/app/plans/:id), which lists the plan's courses and its * progress — wherever the card is rendered, the home strip included. * * This deliberately does NOT branch to the MDO editor for users who could edit the plan, the * way TrainingPlansCardComponent.routeTrainingPlanDetails does in @sunbird-cb/search-listing: * an editor opening a plan from a learning surface wants to read it, not edit it. The editor * is still reachable from the MDO portal and from search. */ onCardClick(): void; emitDetails(): void; /** * Falls back to the instance logo when the org's own URL fails to load. * * `ownerLogo()` only covers a logo the payload omits; one that is present but dead — a * moved asset, a host that 404s — still reaches the browser and would leave a broken * image on the card. Guarded against re-entering if the default itself fails. */ onLogoError(event: Event): void; private checkTruncation; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Enums and Types for Dynamic Sidebar Configuration */ /** * Sidebar state change event */ interface SidebarStateChange { isOpen: boolean; } /** * Enum defining the types of cards/sections supported in the sidebar */ declare enum SidebarCardType { NAV_LIST = "nav_list", STAT_CARDS = "stat_cards", INFO_CARDS = "info_cards" } /** * Base interface for all navigation items */ interface BaseNavItem { iconName?: string; iconUrl?: string; disableTranslate?: boolean; enabled?: boolean; subtype?: string; } /** * Navigation list item configuration */ interface NavListItem extends BaseNavItem { label: string; navUrl: string; queryParams?: any; code?: string; isActive?: boolean; tooltipText?: string; } /** * Stat card item configuration (for achievements, rankings, etc.) */ interface StatCardItem extends BaseNavItem { headerLabel: string; value: string; } /** * Info card item configuration with support for nested children */ interface InfoCardItem extends BaseNavItem { hasChildren: boolean; title: string; description: string; navUrl: string; children?: InfoCardChild[]; } /** * Nested child info card configuration */ interface InfoCardChild extends BaseNavItem { title: string; description: string; navUrl: string; } /** * Base section configuration shared across all section types */ interface BaseSectionConfig { cardType: SidebarCardType; sectionTitle: string; sectionKey: string; headersubLableTeme?: string; headerSubLabel?: string; showHeaderSubLabel?: boolean; sectionLoading?: boolean; disableTranslate?: boolean; viewAllKey?: string; collapsible: boolean; showViewAll: boolean; viewAllLabel?: string; disableTranslateOnViewAll?: boolean; maxItemsVisible?: number | null; enabled?: boolean; } /** * Nav list section configuration */ interface NavListSectionConfig extends BaseSectionConfig { cardType: SidebarCardType.NAV_LIST; items: NavListItem[] | null; } /** * Stat cards section configuration */ interface StatCardsSectionConfig extends BaseSectionConfig { cardType: SidebarCardType.STAT_CARDS; items: StatCardItem[]; } /** * Info cards section configuration */ interface InfoCardsSectionConfig extends BaseSectionConfig { cardType: SidebarCardType.INFO_CARDS; items: InfoCardItem[]; } /** * Union type for all section configurations */ type SidebarSection = NavListSectionConfig | StatCardsSectionConfig | InfoCardsSectionConfig; /** * Main sidebar configuration interface */ interface SidebarConfig { logoUrl?: string; navUrl?: string; headerText?: string; defaultOpen: boolean; activeItemCode?: string; navSections: SidebarSection[]; footerSections?: any[]; } /** * Constants for Dynamic Sidebar Component */ /** * Animation timing constants */ declare const SIDEBAR_ANIMATION: { readonly DURATION: "300ms"; readonly EASING: "cubic-bezier(0.4, 0.0, 0.2, 1)"; }; /** * Breakpoint constants * * Mobile: < 600px (no sidebar; the host renders a bottom nav instead) * Tablet: 600px - 1024px (overlay-drawer behavior) * Desktop: > 1024px (push/shift behavior) * * The 600px boundary is Angular Material's Breakpoints.XSmall edge (599.98px), which is what * the host app's isXSmall$ / isTabView$ use to pick which sidebar to render. Tablet used to * start at 768px, which left 600px-767.98px unclaimed: the host rendered the desktop sidebar * there while this component still reported isMobile(), so the drawer was pinned to 320px by * the mobile CSS and the open/closed toggle only resized the container behind it. */ declare const BREAKPOINTS: { readonly MOBILE: 599.98; readonly TABLET_MIN: 600; readonly TABLET: 1024; readonly DESKTOP_MIN: 1024.1; }; /** * Media query strings shared between the component (BreakpointObserver) and SCSS breakpoints */ declare const BREAKPOINT_QUERIES: { readonly MOBILE: "(max-width: 599.98px)"; readonly TABLET: "(min-width: 600px) and (max-width: 1024px)"; readonly DESKTOP: "(min-width: 1024.1px)"; }; /** * Default values */ declare const DEFAULTS: { readonly MAX_ITEMS_VISIBLE: 3; readonly COLLAPSED_STATE: false; }; /** * Dynamic Sidebar Component * * A reusable, configurable sidebar component that dynamically renders * different section types based on configuration input. * * Features: * - Collapsible/expandable with smooth animations * - Dynamic section rendering based on cardType * - Responsive mobile support * - Signal-based state management * - Material Design integration * * @example * */ declare class DynamicSidebarComponent implements OnDestroy, OnChanges { private cdr; private router; private translate; private langtranslations; private breakpointObserver; private domSanitizer; private domainConfSvc; /** * Sidebar configuration input */ menuBarDetails: SidebarConfig; detailsChanged: boolean; otherDetailsChanged: boolean; isNotHome: boolean; navBarOpenStatus: boolean; /** * Event emitted when sidebar state changes (open/closed) * Emits object with isOpen status and current width */ sidebarStateChange: EventEmitter; navItemClicked: EventEmitter<{ code: string; subType: string; }>; isOpen: i0.WritableSignal; showContent: i0.WritableSignal; private hideContentTimer?; readonly SidebarCardType: typeof SidebarCardType; /** * Tooltip for the menu toggle. Plain strings rather than translate keys, matching the * aria-labels alongside it — ngx-translate renders the raw key when one is missing, which * would surface as "leftNavBar.expandMenu" in the tooltip. */ toggleTooltip: Signal<"Collapse Menu" | "Expand Menu">; navSections: SidebarSection[]; footerSections: any[]; private breakpointMatches; isMobile: Signal; isTablet: Signal; isDesktop: Signal; private isNotHomeSignal; isOverlayMode: Signal; private previousMode; logoUrl: Signal<_angular_platform_browser.SafeResourceUrl>; constructor(cdr: ChangeDetectorRef, router: Router, translate: TranslateService, langtranslations: MultilingualTranslationsService, breakpointObserver: BreakpointObserver, domSanitizer: DomSanitizer, domainConfSvc: DomainConfService); ngOnChanges(changes: SimpleChanges): void; /** * Emit sidebar state change event */ private emitStateChange; /** * Toggle sidebar open/close state */ toggleSidebar(): void; /** * ESC closes the sidebar when it is rendered as an overlay drawer (tablet/mobile) */ onEscapeKeydown(): void; /** * Track by function for navSections to optimize rendering */ trackByCardType(index: number, section: any): string; onNavItemClicked(evnet: { code: string; subType: string; }): void; /** * Navigate to the configured navUrl when the sidebar logo is clicked */ onLogoClick(): void; /** * Translate a label using MultilingualTranslationsService */ translateLabels(label: string, type: string): string; /** * Clean up timer on component destroy */ ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Sidebar Nav List Section Component * * Renders a list of navigation items with icons and active route highlighting. * * Features: * - Material icons and custom image icons support * - Active route highlighting * - Hover effects with ripple animation * - Accessible keyboard navigation * - RouterLink integration * * @example * */ declare class SidebarNavListSectionComponent implements OnChanges, OnDestroy { private router; private translate; private langtranslations; private utilitySvc; /** * Navigation list section configuration */ section: NavListSectionConfig; isOpen: boolean; detailsChanged: boolean; /** * Content visibility state (with delayed hiding) */ showContent: boolean; activeItemCode?: string; itemClicked: EventEmitter<{ code: string; subType: string; }>; itemsList: NavListItem[]; limitedItemsList: NavListItem[]; viewAllItems: i0.WritableSignal; showViewAll: i0.WritableSignal; visibleItems: i0.Signal; /** * isActiveRoute() reads the router rather than any component input, so on an * OnPush view nothing marks it dirty when the URL changes. Bumping this signal * on NavigationEnd is what re-runs the active-state bindings. RouterLinkActive * used to provide that as a side effect of its own markForCheck(), which is why * the highlight kept working while two competing sources set the same class. */ private navigationTick; private subs; constructor(router: Router, translate: TranslateService, langtranslations: MultilingualTranslationsService, utilitySvc: UtilityService); ngOnDestroy(): void; ngOnChanges(changes: SimpleChanges): void; /** * Translate a label using MultilingualTranslationsService */ translateLabels(label: string, type: string): string; itemTooltip(item?: NavListItem): string; onItemClick(item: NavListItem): void; /** * Check if a route is currently active * * Sidebar items routinely share a navUrl and are told apart only by their query * string - marketplace and my-learning both sit under seeAll, and the * globalsearch presets differ only by their filter params. So any item that * declares queryParams is active only when the current URL carries them, rather * than just "my-learning" being special-cased. * * 'subset' rather than 'exact' because the page adds params of its own (pill and * tab state the config does not spell out) and those must not break the match. * Items with no queryParams keep ignoring the query string entirely, so * something like /page/home stays active whatever is appended to it. */ isActiveRoute(item?: NavListItem): boolean; /** * Track by function for nav items */ trackByNavUrl(index: number, item: NavListItem): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Sidebar Stat Cards Section Component * * Renders achievement/statistic cards with optional collapsible functionality. * * Features: * - Card-based stat display (rank, karma points, badges, etc.) * - Collapsible section support * - "View All" button with maxItemsVisible support * - Click navigation support * - Responsive card layout * - Material Design cards * * @example * */ declare class SidebarStatCardsSectionComponent implements OnChanges { private translate; private langtranslations; private cdr; /** * Stat cards section configuration */ section: StatCardsSectionConfig; detailsChanged: boolean; /** * Sidebar open/close state */ isOpen: boolean; /** * Content visibility state (with delayed hiding) */ showContent: boolean; itemClicked: EventEmitter<{ code: string; subType: string; }>; constructor(translate: TranslateService, langtranslations: MultilingualTranslationsService, cdr: ChangeDetectorRef); ngOnChanges(changes: SimpleChanges): void; /** * Translate a label using MultilingualTranslationsService */ translateLabels(label: string, type: string): string; private sectionSignal; visibleItems: i0.Signal; sectionLoading: i0.Signal; shouldShowViewAll: i0.Signal; /** * Handle View All click - emit event to parent */ onViewAllClick(): void; /** * Track by function for stat items */ trackByIndex(index: number, item: StatCardItem): number; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Sidebar Info Cards Section Component * * Renders informational cards with support for nested children cards. * * Features: * - Info card display with title and description * - Nested children cards support * - Collapsible parent section * - Expandable children cards * - Click navigation support * - Material Design accordions * * @example * */ declare class SidebarInfoCardsSectionComponent implements OnChanges { private translate; private langtranslations; private cdr; private utilitySvc; /** * Info cards section configuration */ section: InfoCardsSectionConfig; detailsChanged: boolean; /** * Sidebar open/close state */ isOpen: boolean; /** * Content visibility state (with delayed hiding) */ showContent: boolean; itemClicked: EventEmitter<{ code: string; subType: string; }>; constructor(translate: TranslateService, langtranslations: MultilingualTranslationsService, cdr: ChangeDetectorRef, utilitySvc: UtilityService); ngOnChanges(changes: SimpleChanges): void; /** * Translate a label using MultilingualTranslationsService */ translateLabels(label: string, type: string): string; /** * Track expanded state of each parent card */ expandedCards: i0.WritableSignal>; /** * Toggle expansion of a parent card with children */ toggleCardExpansion(index: number): void; isCardExpanded(index: number): boolean; trackByTitle(index: number, item: InfoCardItem): string; trackByChildTitle(index: number, child: any): string; onItemClicked(item: InfoCardItem | any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare function filterVisibleSections(sections: ContentSectionConfig[] | undefined | null): ContentSectionConfig[]; declare function filterVisibleTabs(tabs: TabConfig[] | undefined | null): TabConfig[]; declare function filterVisiblePills(pills: PillConfig[] | undefined | null): PillConfig[]; declare class CardTransformerService { transformCards(response: unknown, cardType: CardType, apiDetailsKey?: string): any[]; processCourseCards(response: unknown, apiDetailsKey?: string): any[]; mapTheData(data: any, apiDetailsKey?: string): CardViewModel[]; private buildDefaultMappedCard; processAssessmentCards(response: unknown): CardViewModel[]; processProgramCards(response: unknown): CardViewModel[]; /** * Plan-level cards: one card per CBP / APAR / AI-CBP training plan. * * Fed by the plan-level lists CBPlan V4 returns, NOT by a content dictionary — those * flatten every plan down to one item per content id, so the plan itself (its name, year, * content count) is already gone by the time the transformer sees them. * * The plan list is shared by all three plan pills, so each `apiDetailsKey` narrows it to the * plans that pill owns — mirroring the aparApi / trainingPlanApi / draftCBPplanApi split above. */ processPlanCards(response: unknown, apiDetailsKey?: string): PlanCardViewModel[]; private belongsToPlanPill; private toPlanCard; /** APAR wins over AI-CBP, matching the MAX(endDate) tie-break used for content cards. */ private resolvePlanType; /** * Badge state on the card's media area. * * The plan list carries no per-user progress, so completion is only claimed when the * response actually reports it; otherwise the state is date-derived — past its end date is * Overdue, anything else is In Progress. */ private resolvePlanStatus; private firstString; /** * Level shown on the card chip. Content publishes it as `difficultyLevel`; `complexityLevel` is * the authoring-side name and `knowledgeLevel` the legacy one, so accept whichever is present. * Reading only `complexityLevel` left the chip blank on every cbplan / search-backed section. */ private resolveDifficultyLevel; private resolveRating; /** * Provider org names, e.g. ['Ministry of Coal'] — the card footer renders organisation[0]. * `organisation` is what search / cbplan / enrolment content carries; the rest are the * single-name shapes used by the trending, playlist and external (CIOS) responses. */ private resolveOrganisation; /** Org logo shown next to the org name. `contentPartner.link` is the external-content variant. */ private resolveCreatorLogo; /** Display provider — the org name wins when the source fields are absent. */ private resolveProvider; private resolveSourceName; private resolveResourceType; /** Per-language translation map ({ hindi: { id, status, isBaseLang } }) — drives the language pill. */ private resolveLanguageMap; /** Fallback for content published before languageMapV1 existed. */ private resolveLanguage; private extractResultArray; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare const API_REGISTRY: ApiRegistryConfig; declare class AccordionComponent { header: i0.InputSignal; showHeaderSubLabel: i0.InputSignal; headerSubLabel: i0.InputSignal; headersubLableTeme: i0.InputSignal; translateHeader: i0.InputSignal; expanded: i0.InputSignal; hideAccordianToggel: i0.InputSignal; contentTemplate: i0.InputSignal>; expandedChange: i0.OutputEmitterRef; isExpanded: i0.WritableSignal; constructor(); toggleExpanded(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class DynamicTabsComponent { tabs: i0.InputSignal; activeTabKey: i0.InputSignal; contentTemplate: i0.InputSignal>; activeTabChange: i0.OutputEmitterRef; activeIndex: i0.WritableSignal; constructor(); onTabChange(index: number): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ContentStripsComponent implements OnInit { contentConfig: i0.InputSignal; sectionKey: i0.InputSignal; forceLoading: i0.InputSignal; CardType: typeof CardType; cbPlanMapData: i0.WritableSignal>; private apiService; private cardTransformer; private dictionarySvc; private cbpCacheSvc; private destroyRef; private router; cards: i0.WritableSignal<(CardViewModel | PlanCardViewModel)[]>; skeletonArray: i0.WritableSignal; loading: i0.WritableSignal; /** * The financial year the plans on screen actually belong to, read off the cards rather * than asked of the config or recomputed from today's date. * * Both plan sources stamp it on — UserCbpPlansService from the year slice the V4 response * came back under, the V2 plan search from the plan itself — and it is the only place the * answer is reliable: CBPlan falls back to an earlier year when the user has no plans for * the year that was requested (ask for 2026-27, receive 2025-26). Scanning for the first * card that carries one keeps a card mapped without it from blanking the year. */ private readonly loadedPlanYear; dummyCards: i0.WritableSignal<{ id: number; title: string; image: string; rating: number; provider: string; duration: string; level: string; tags: string[]; badge: string; overdue: boolean; }[]>; constructor(); ngOnInit(): void; initializeSkeletons(config?: ContentConfig | undefined): void; fetchContent(config?: ContentConfig | undefined): Promise; /** Keeps only content whose courseCategory is in config.courseCategories, when that is set */ private byCourseCategory; /** Cards straight from the metadata in the config (`contents`) - nothing is fetched */ private loadFromConfig; private loadFromDictionary; /** * CBP plan data comes from the IndexedDB cache (iGotAppDB/cbpPlans), not * localStorage['cbpData']. watchPlanMap() emits the cached map immediately and again * whenever the plan cache for the year is rewritten. */ getCbPlanData(): void; getViewAllUrl(): { path: string; queryParams?: Record; f?: any; } | null; redirectViewAll(path: string, queryParamsData: any, filters?: any): void; private navigateToRoute; shouldShowViewAll(): boolean; getCardType(): CardType; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ContentStripWithPillsComponent implements AfterViewInit { pillsContainerRef?: ElementRef; pills: i0.InputSignal; defaultPillKey: i0.InputSignal; section: i0.InputSignal; activePillKey: i0.WritableSignal; showContent: i0.WritableSignal; canScrollLeft: i0.WritableSignal; canScrollRight: i0.WritableSignal; visiblePills: i0.Signal; isSectionLoading: i0.Signal; skeletonPills: i0.Signal; readonly skeletonContentConfig: ContentConfig; resolvedDefaultPillKey: i0.Signal; activeContentConfig: i0.Signal; constructor(); ngAfterViewInit(): void; updateScrollFade(): void; scrollByAmount(amount: number): void; selectPill(pillKey: string): void; isPillActive(pillKey: string): boolean; getActivePill(): PillConfig | undefined; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ContentStripWithTabsPillsV2Component { tabs: i0.InputSignal; defaultTabKey: i0.InputSignal; private filteredTabs; visibleTabs: i0.Signal; onTabChange(tabKey: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ContetnSectionsComponent implements OnDestroy { cardClicked: EventEmitter<{ cardClickDetails: any; }>; private readonly contentApiService; private readonly destroyRef; private readonly activatedRoute; private readonly valueSvc; private emptySectionKeys; private isMobile; private readonly sections; private readonly order; private readonly mWebOrder; visibleSections: i0.Signal; banners: i0.Signal; readonly DisplayType: typeof DisplayType; constructor(); private transformBannerData; isTabsSection(section: ContentSectionConfig): boolean; isPillsSection(section: ContentSectionConfig): boolean; isCardsSection(section: ContentSectionConfig): boolean; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare const typeMap: { readonly cardFull: "card-full"; readonly cardMini: "card-mini"; readonly cardSmall: "card-small"; readonly matButton: "mat-button"; readonly matFabButton: "mat-fab"; readonly matFlatButton: "mat-flat-button"; readonly matIconButton: "mat-icon-button"; readonly matMiniFabButton: "mat-mini-fab"; readonly matRaisedButton: "mat-raised-button"; readonly matStrokedButton: "mat-stroked-button"; readonly menuItem: "mat-menu-item"; readonly featureItem: "feature-item"; readonly externalLinkButton: "external-link-button"; }; declare class BtnFeatureV2Component extends WidgetBaseComponent implements OnInit, OnDestroy { widgetData: NsPage.INavLink; showFixedLength: boolean; id: string; badgeCount: i0.WritableSignal; isPinned: i0.WritableSignal; instanceVal: i0.WritableSignal; isPinFeatureAvailable: i0.WritableSignal; readonly displayType: Record; readonly defaultIconSize = 24; featureStatusColor: i0.Signal<"primary" | "accent" | "warn">; desktopVisible: i0.Signal; private pinnedAppsChangeSubs?; private navigationSubs?; private events; private configurationsSvc; private btnFeatureSvc; private router; private mobileSvc; private configSvc; constructor(); ngOnInit(): void; ngOnDestroy(): void; updateBadge(): void; togglePin(featureId: string, event: MouseEvent): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class MobileAppsService { private readonly router; private readonly _androidRef; private readonly _iosRef; readonly isAndroidApp: i0.Signal; readonly isMobile: i0.Signal; readonly canShowSettings: i0.Signal; init(): void; simulateMobile(): void; goOffline(): void; viewSettings(): void; sendViewerData(viewerData: NsContent.IContent): void; downloadResource(id: string): void; appChatbotVisibility(isVisible: 'yes' | 'no'): void; iosOpenInBrowserRequest(url: string): void; isFunctionAvailableInAndroid(functionName: string): boolean; sendDataAppToClient(eventName: string, data: unknown): void; private _syncRefs; private _send; private _setupGlobalMethods; private _setupNavigationListener; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * Profile dropdown menu configuration. * * Items are driven by globalConfig.components.profileMenu so a tenant can reorder them, relabel * them, or switch individual entries off without a code change. When that config section is * absent the component falls back to DEFAULT_PROFILE_MENU_ITEMS below. */ /** * How an item behaves when clicked. * * - `route` in-app navigation via routerLink * - `newTab` opens `target` in a new browser tab (external links, or pages such as the * public privacy policy that should not replace the current session view) * - `logout` opens the logout confirmation dialog * - `accessibility` opens the UserWay accessibility widget */ type ProfileMenuAction = 'route' | 'newTab' | 'logout' | 'accessibility' | 'startTour'; interface IProfileMenuItem { /** Stable identifier, also used as the telemetry id */ key: string; /** * Translation key resolved through ngx-translate, or the literal text to show when * `disableTranslation` is true. */ label: string; /** * `true` prints `label` verbatim instead of running it through the translate pipe. Use for * labels that carry no translation key — a tenant-specific link name, for instance. * Defaults to false (translate). */ disableTranslation?: boolean; action: ProfileMenuAction; /** Route path for `route`, URL for `newTab`. Ignored by the other actions. */ target?: string; /** Tenants switch entries off with `false`; absent means enabled */ enabled?: boolean; } declare class BtnProfileV2Component extends WidgetBaseComponent implements OnInit { id: string; hostClass: string; widgetData: any; private readonly configSvc; private readonly dialog; private readonly router; private readonly activatedRoute; private readonly translate; private readonly events; private readonly domainConfSvc; private readonly destroyRef; readonly givenName: i0.WritableSignal; readonly profileImage: i0.WritableSignal; readonly verifiedBadge: i0.WritableSignal; readonly hideMenu: i0.WritableSignal; readonly isKbPortal: i0.WritableSignal; /** Dropdown entries, resolved from globalConfig.components.profileMenu (see ngOnInit) */ readonly menuItems: i0.WritableSignal; readonly displayName: i0.Signal; profileCompletionPercentage: number; showProgressBar: boolean; constructor(); ngOnInit(): void; /** * Resolves the dropdown entries from globalConfig.components.profileMenu. * * No `items` array configured -> keep DEFAULT_PROFILE_MENU_ITEMS, so a tenant that has not * adopted this config still gets the standard menu. Section explicitly disabled, or every * item disabled -> render nothing. * * Read straight off getGlobalConfig() rather than through a DomainConfService helper: the * config lives in the host app's assets, while this library resolves @sunbird-cb/utils-v2 * from its published build, so a new service method would not be visible until that package * is rebuilt and re-released. */ private setMenuItems; /** Handles the actions that are not plain links (`logout`, `accessibility`) */ onMenuAction(item: IProfileMenuItem): void; setProfileCompletionGraph(): void; private updateUserInfo; private setPinnedAppsSubscription; redirectToTourPage(): void; redirectToMyLearning(): void; handleRedirectToCompetencyPassbook(): void; redirectToLearnersPage(): void; redirectToKBPortal(): void; openAccessibilityMenu(): void; logout(): void; raiseTelemetry(tabname: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare namespace NsBulkUpload { type HttpMethod = 'GET' | 'POST'; /** `open` opens the url in a new tab, `blob` fetches it and saves it locally */ type DownloadMode = 'open' | 'blob'; type LogFieldType = 'text' | 'date'; interface IInstructions { title?: string; /** each step is rendered with innerHTML so simple markup like is allowed */ steps: string[]; } interface ITexts { title?: string; instructions?: IInstructions; browseText?: string; /** defaults to "Max file size: MB" */ maxFileSizeText?: string; /** defaults to "Supported file types: " */ supportedFileTypeText?: string; logsTitle?: string; refreshText?: string; logCardTitle?: string; emptyLogsText?: string; downloadErrorLogText?: string; downloadFileText?: string; } interface IMessages { /** defaults to "Upload format file only" */ invalidFileType?: string; /** defaults to "File size should not exceed MB" */ fileSizeExceeded?: string; uploadSuccess?: string; uploadFailed?: string; statusListFailed?: string; sampleDownloadFailed?: string; logDownloadFailed?: string; } interface IFileRules { /** extensions without the dot, e.g. ['csv'] */ allowedExtensions: string[]; /** leave empty to skip the size check */ maxFileSizeInMb?: number; /** icon shown on the picker and in the progress dialog */ icon?: string; } interface IUploadApi { /** supports {placeholders} resolved from the component context, e.g. ?orgId={orgId} */ url: string; /** FormData key for the file, e.g. 'data' or 'file' */ fileField: string; /** append the file name as the third FormData argument */ appendFileName?: boolean; /** additional FormData entries, values support {placeholders} */ extraFields?: { [key: string]: string; }; } interface IStatusListApi { url: string; method?: HttpMethod; body?: any; /** lodash path of the list inside the response */ resultPath?: string; } interface IDownloadLogApi { /** set to false to hide the download button on the log cards, defaults to true */ enabled?: boolean; /** url with {placeholders}, the log row is available as {row.} */ url: string; mode?: DownloadMode; /** row key used as the saved file name for blob downloads when no Content-Disposition header is sent */ fileNameKey?: string; } interface ISampleFile { label: string; /** static asset path or api url, supports {placeholders} */ url: string; mode?: DownloadMode; /** saved file name; when empty the Content-Disposition header name is used */ fileName?: string; } interface IOtpConfig { enabled: boolean; sendUrl?: string; verifyEmailUrl?: string; verifyPhoneUrl?: string; /** seconds before resend is allowed */ resendTimeInSec?: number; } interface ILogField { label: string; /** lodash path inside the log row */ key: string; type?: LogFieldType; /** date pipe format for type date */ format?: string; } interface ILogsConfig { fields: ILogField[]; /** set to false to hide the refresh button next to the logs title, defaults to true */ showRefresh?: boolean; statusKey?: string; /** rows with any other status get the error log download label */ successStatus?: string; /** rows still being processed have no result file yet, so they get no download button */ pendingStatuses?: string[]; sortKey?: string; sortOrder?: 'asc' | 'desc'; pageSize?: number; pageSizeOptions?: number[]; } interface IApiConfig { upload: IUploadApi; statusList: IStatusListApi; downloadLog?: IDownloadLogApi; } interface IBulkUploadConfig { texts?: ITexts; messages?: IMessages; file?: IFileRules; api: IApiConfig; sampleFiles?: ISampleFile[]; otp?: IOtpConfig; logs?: ILogsConfig; } /** consumer supplied overrides, merged on top of the default config */ interface IBulkUploadConfigSetting { texts?: ITexts; messages?: IMessages; file?: Partial; api?: { upload?: Partial; statusList?: Partial; downloadLog?: Partial; }; sampleFiles?: ISampleFile[]; otp?: Partial; logs?: Partial; } interface IOtpUser { email?: string; mobile?: string | number; } interface IOtpDialogData extends IOtpUser { otp: IOtpConfig; } interface IFileProgressDialogData { icon?: string; text?: string; } interface IUploadEvent { fileName: string; response: any; } } /** Default config, matches the orgportal users bulk creation screen */ declare const BULK_UPLOAD_DEFAULT_CONFIG: NsBulkUpload.IBulkUploadConfig; /** * Merges config settings on top of the default config, left to right. * Objects are merged deeply, arrays are replaced. */ declare function buildBulkUploadConfig(...settings: (NsBulkUpload.IBulkUploadConfigSetting | null | undefined)[]): NsBulkUpload.IBulkUploadConfig; /** * Ready made settings for the user bulk upload variants. * Pass one as configSetting along with the context values mentioned against it. */ declare const BULK_UPLOAD_PRESETS: { /** users of the logged in org. context: { rootOrgId } */ users: NsBulkUpload.IBulkUploadConfigSetting; /** users of a selected org (v3). context: { rootOrgId, orgId, channel } */ usersForOrg: NsBulkUpload.IBulkUploadConfigSetting; /** non govt (volunteer) org users. context: { rootOrgId } */ ngoUsers: NsBulkUpload.IBulkUploadConfigSetting; }; type OtpContactType = 'email' | 'phone'; declare class BulkUploadService { private http; constructor(http: HttpClient); /** replaces {path} placeholders with url encoded values from the context */ resolveTemplate(template: string, context?: any, encode?: boolean): string; validateFileType(fileName: string, allowedExtensions: string[]): boolean; upload(api: NsBulkUpload.IUploadApi, file: File, context: any): Observable; getStatusList(api: NsBulkUpload.IStatusListApi, context: any): Observable; /** * Saved file name priority: fileName, Content-Disposition header, fallbackFileName, last url segment */ downloadFile(url: string, mode?: NsBulkUpload.DownloadMode, fileName?: string, fallbackFileName?: string): Observable; sendOtp(otp: NsBulkUpload.IOtpConfig, type: OtpContactType, key: string | number): Observable; verifyOtp(otp: NsBulkUpload.IOtpConfig, type: OtpContactType, key: string | number, value: string): Observable; private saveBlob; private getFileNameFromDisposition; private getFileNameFromUrl; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } interface IUploadLogView { row: any; values: any[]; isSuccess: boolean; isPending: boolean; } declare class BulkUploadComponent implements OnInit, OnChanges, OnDestroy { private bulkUploadService; private matSnackBar; private dialog; private configSvc; private loaderService; /** overrides merged on top of the default (users) config, see BULK_UPLOAD_PRESETS */ configSetting?: NsBulkUpload.IBulkUploadConfigSetting | null; /** values for the {placeholders} used in the api urls, e.g. { rootOrgId } */ context: { [key: string]: any; } | null; /** email / mobile used for OTP, defaults to the logged in user */ userProfile?: NsBulkUpload.IOtpUser | null; uploadSuccess: EventEmitter; uploadFailed: EventEmitter; logsLoaded: EventEmitter; config: NsBulkUpload.IBulkUploadConfig; uploadLogs: IUploadLogView[]; pageIndex: number; pageSize: number; acceptTypes: string; maxFileSizeText: string; supportedFileTypeText: string; invalidFileTypeMessage: string; fileSizeExceededMessage: string; showFileError: boolean; showFileSizeError: boolean; isUploading: boolean; isLoadingLogs: boolean; fileSelected: File | null; private initialized; private destroySubject$; private statusListSubscription?; private fileUploadDialogRef?; constructor(bulkUploadService: BulkUploadService, matSnackBar: MatSnackBar, dialog: MatDialog, configSvc: ConfigurationsService$1, loaderService: ILoaderService | null); ngOnChanges(changes: SimpleChanges): void; ngOnInit(): void; get fileRules(): NsBulkUpload.IFileRules; get texts(): NsBulkUpload.ITexts; get messages(): NsBulkUpload.IMessages; get logsConfig(): NsBulkUpload.ILogsConfig; get canDownloadLog(): boolean; get canRefreshLogs(): boolean; private get resolvedContext(); private applyConfig; getBulkStatusList(): void; /** uploads are processed in the background, this re-reads the logs for their latest status */ handleRefreshLogs(): void; handleChangePage(event: PageEvent): void; handleDownloadSampleFile(sample: NsBulkUpload.ISampleFile): void; handleDownloadLog(log: IUploadLogView): void; /** clears the input so selecting the same file again still triggers change */ handleFileClick(event: Event): void; handleOnFileChange(event: Event): void; verifyOTP(): void; uploadFile(): void; private showFileUploadProgress; private closeFileUploadProgress; private getOtpUser; private toLogViews; /** dates (strings or timestamps) are compared by time, anything else as is */ private toSortable; private setLoader; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** Closes with `true` once the OTP is verified */ declare class BulkUploadVerifyOtpComponent implements OnDestroy { dialogRef: MatDialogRef; data: NsBulkUpload.IOtpDialogData; private bulkUploadService; private matSnackBar; private destroySubject$; otpType: OtpContactType | ''; otpSent: boolean; otpEntered: string; timeLeft: number; showResendOTP: boolean; sendingOtp: boolean; verifyingOtp: boolean; interval: any; constructor(dialogRef: MatDialogRef, data: NsBulkUpload.IOtpDialogData, bulkUploadService: BulkUploadService, matSnackBar: MatSnackBar); get timerText(): string; get contactLabel(): string; handleSendOTP(): void; handleResendOTP(): void; handleVerifyOTP(): void; handleCloseModal(): void; private startTimer; private stopTimer; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class BulkUploadFileProgressComponent { data: NsBulkUpload.IFileProgressDialogData; constructor(data: NsBulkUpload.IFileProgressDialogData); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class BulkUploadLibModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { API_REGISTRY, AccordionComponent, AddAuthorsComponent, AddCompetencyPopupComponent, AddUsersFormMetaComponent, AnnouncementsComponent, AnnouncementsModule, ApiMethod, AssessmentBasicInfoComponent, AssessmentMainComponent, AssessmentModule, AvailableLanguagesComponent, AvatarPhotoLibComponent, AvatarPhotoLibModule, BREAKPOINTS, BREAKPOINT_QUERIES, BULK_UPLOAD_DEFAULT_CONFIG, BULK_UPLOAD_PRESETS, BadgeModalComponent, BadgeStatsComponent, BharatKalpComponent, BharatKalpModule, BreadcrumbComponent, BtnFeatureV2Component, BtnProfileV2Component, BulkUploadComponent, BulkUploadLibModule, BulkUploadService, CalenderComponent, CalenderModule, CardCourseV2Component, CardKarmaProgramsComponent, CardKarmaProgramsV2Component, CardLandscapeComponent, CardMDOChannelComponent, CardPlanV2Component, CardPortraitComponent, CardPortraitExtComponent, CardResourceComponent, CardTransformerService, CardType, CardUserComponent, CardWideComponent, CardWideV2Component, CardsComponent, CardsModule, CarouselComponent, CbpPlanCacheService, CbpPlanComponent, CbpPlanModule, CertificateDialogComponent, CommonMethodsService, CommonStripComponent, CommonStripModule, CommunitySuggestionsComponent, CommunitySuggestionsModule, CompetenciesModule, CompetencyListComponent, CompetencyPassbookComponent, CompetencyPassbookMdoComponent, CompetencyPassbookMdoModule, CompetencyPassbookModule, CompetencySummaryComponent, CompetencySummaryModule, ConfirmationDialogComponent, ConnectionHoverCardComponent, ConnectionNameComponent, ConnectionNameModule, ConsumptionComponent, ConsumptionModule, ConsumptionService, ContentApiService, ContentDictionaryService, ContentLanguageService, ContentProgressComponent, ContentProgressModule, ContentStripFacetFilterComponent, ContentStripFacetFilterModule, ContentStripWithPillsComponent, ContentStripWithTabsLibComponent, ContentStripWithTabsLibModule, ContentStripWithTabsPillsComponent, ContentStripWithTabsPillsModule, ContentStripWithTabsPillsNewComponent, ContentStripWithTabsPillsNewModule, ContentStripWithTabsPillsV2Component, ContentStripsComponent, ContetnSectionsComponent, ContinueLearningV2Component, CreateRequestFormComponent, CreateRequestModule, DEFAULTS, DataPointsComponent, DataPointsModule, DialogComponentsModule, DisplayType, DynamicSidebarComponent, DynamicTabsComponent, EMPTY_FORM_LOOKUP, EnrolementDictionaryService, EventCardComponent, EventsComponent, EventsModule, FilterByComponent, FiltersModule, FormConfigService, HighlightsOfWeekComponent, HighlightsOfWeekModule, HorizontalDynamicStepperComponent, HorizontalDynamicStepperModule, HorizontalScrollerV2Component, HorizontalScrollerV2Module, HttpLoaderFactory, HttpLoaderFactory as HttpLoaderFactory1, HttpLoaderFactory2, InProgressCardV2Component, KarmayogiSaptahComponent, KeyHighlightsComponent, KeyHighlightsModule, LOADER_SERVICE, MDOChannelModule, MdoChannelV1Component, MdoChannelV2Component, MdoChannelV3Component, MdoLeaderboardComponent, MdoLeaderboardModule, MdoLeaderboardV2Component, MilestoneCardComponent, MobileAppsService, NationalLearningModule, NbspModule, NbspPipe, NlwCertificateDialogComponent, NsBulkUpload, NsCampaignMilestone, NsCarouselBannerV2, NsContentStripWithTabs, NsContentStripWithTabsAndPills, NsSpotlightCardsV2, PaginationComponent, PaginationModule, PeerValidationLibModule, ProviderCardComponent, ProvidersModule, ProvidersV2Component, PvConfigStepComponent, PvCreateComponent, PvDashboardComponent, PvQuestionStepComponent, ROOT_WIDGET_CONFIG, SIDEBAR_ANIMATION, SadhanaSaptahComponent, SakshamAI, SbUicCarouselBannerV2Component, SbUicSpotlightCardsV2Component, SearchSortInputComponent, SidebarCardType, SidebarInfoCardsSectionComponent, SidebarNavListSectionComponent, SidebarStatCardsSectionComponent, SlidersLibComponent, SlidersLibModule, SnackbarComponent, SpeakersComponent, SpeakersModule, SpeakersV2Component, TOCMultiLingualDialogComponent, TOCMultiLingualDialogModule, TooltipDirective, TooltipModule, TopLearnersComponent$1 as TopLearnersComponent, TopLearnersModule, UserCbpPlansService, UserContentRatingLibComponent, UserContentRatingLibModule, UserProgressComponent, UserProgressModule, UserUpdateComponent, UserUpdateModule, VisibilityMode, WIDGET_REGISTERED_LIB_MODULES, WIDGET_REGISTRATION_LIB_CONFIG, WeeklyClapsCardV2Component, WelcomeGreetingV2Component, WidgetContentLibService, WidgetUserServiceLib, buildBulkUploadConfig, buildWeeklyClapsData, filterVisiblePills, filterVisibleSections, filterVisibleTabs, isUsableUrl, parseDdMmYyyy, typeMap }; export type { ApiFacet, ApiRegistryConfig, ApiRegistryEntry, BaseNavItem, BaseSectionConfig, CardViewModel, ChainedApiConfig, CompetencyData, CompetencyLabels, ConfigDetails, ContentConfig, ContentSectionConfig, DynamicTab, FilterChip, FilterConfig, FilterMetaConfig, FilterOption, FormCriterionValue, FormLookup, FormRule, IBreadcrumbItem, ICbpCacheEntry, ICompentencyKeys, ILoaderService, IUserCbpPlan, IUserCbpPlanCacheEntry, IUserCbpPlanContent, IUserCbpPlanData, IUserCbpPlanMapEntry, IUserCbpPlanRequest, IUserCbpPlanYearConfig, IUserCbpPlanYearOption, InfoCardChild, InfoCardItem, InfoCardsSectionConfig, LearningProgressConfig, NavListItem, NavListSectionConfig, NlwCertificateDialogData, OtpContactType, PageChangeEmitter, PillConfig, PlanCardViewModel, PlanStatus, SelectedFilters, SidebarConfig, SidebarSection, SidebarStateChange, SpotlightConfig, StatCardItem, StatCardsSectionConfig, TUserCbpPlanMapType, TabConfig, ToggleableElement };