{"version":3,"file":"hint-jemb2rro.js","sources":["packages/vanilla/lib/features/hint/src/hint.html","packages/vanilla/lib/features/hint/src/hint.component.ts","packages/vanilla/lib/features/hint/src/hint-overlay.service.ts","packages/vanilla/lib/features/hint/src/hint-queue.service.ts","packages/vanilla/lib/features/hint/src/hint.models.ts","packages/vanilla/lib/features/hint/src/hint-bootstrap.service.ts","packages/vanilla/lib/features/hint/src/hint.feature.ts"],"sourcesContent":["@if (hint; as hint) {\n
\n}\n","import { OverlayRef } from '@angular/cdk/overlay';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, Input, OnDestroy, OnInit, ViewEncapsulation, inject } from '@angular/core';\n\nimport { ContentItem, WebWorkerService, WorkerType } from '@frontend/vanilla/core';\nimport { PageMatrixComponent } from '@frontend/vanilla/features/content';\nimport { IconCustomComponent } from '@frontend/vanilla/shared/icons';\nimport { toNumber } from 'lodash-es';\n\n@Component({\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [CommonModule, PageMatrixComponent, IconCustomComponent],\n selector: 'vn-hint',\n templateUrl: 'hint.html',\n styleUrls: ['../../../../../themepark/themes/whitelabel/components/bookmark-hint/styles.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class HintComponent implements OnInit, OnDestroy {\n @Input() hint?: ContentItem;\n closeIcon: string;\n\n private overlayRef = inject(OverlayRef);\n private webWorkerService = inject(WebWorkerService);\n\n ngOnInit() {\n this.closeIcon = this.hint?.parameters?.['closeIcon'] || 'theme-close-i';\n const timeOutParam = this.hint?.parameters?.['timeOut'];\n\n if (timeOutParam) {\n const timeOut = toNumber(timeOutParam);\n\n if (timeOut) {\n this.webWorkerService.createWorker(WorkerType.HintTimerTimeout, { timeout: timeOut }, () => {\n this.closeMessage();\n });\n }\n }\n }\n\n ngOnDestroy() {\n this.webWorkerService.removeWorker(WorkerType.HintTimerTimeout);\n }\n\n closeMessage() {\n this.overlayRef.detach();\n }\n}\n","import { OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { ComponentRef, Injectable, Injector } from '@angular/core';\n\nimport { ContentItem } from '@frontend/vanilla/core';\nimport { OverlayFactory } from '@frontend/vanilla/shared/overlay-factory';\n\nimport { HintComponent } from './hint.component';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class HintOverlayService {\n constructor(\n private overlay: OverlayFactory,\n private injector: Injector,\n ) {}\n\n show(item: ContentItem): [OverlayRef, ComponentRef