{"version":3,"sources":["node_modules/ngx-guided-tour/fesm2020/ngx-guided-tour.mjs"],"sourcesContent":["import { debounceTime } from 'rxjs/operators';\nimport * as i0 from '@angular/core';\nimport { PLATFORM_ID, Injectable, Inject, Component, ViewEncapsulation, Input, ViewChild, ErrorHandler, NgModule } from '@angular/core';\nimport { Subject, fromEvent } from 'rxjs';\nimport { cloneDeep } from 'lodash';\nimport * as i3 from '@angular/common';\nimport { isPlatformBrowser, DOCUMENT, CommonModule } from '@angular/common';\nconst _c0 = [\"tourStep\"];\nconst _c1 = a0 => ({\n \"page-tour-step\": a0\n});\nconst _c2 = (a0, a1) => ({\n currentStepNumber: a0,\n totalSteps: a1\n});\nfunction GuidedTourComponent_div_0_Template(rf, ctx) {\n if (rf & 1) {\n const _r1 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\", 5);\n i0.ɵɵlistener(\"mouseenter\", function GuidedTourComponent_div_0_Template_div_mouseenter_0_listener() {\n i0.ɵɵrestoreView(_r1);\n const ctx_r1 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r1.handleOrb());\n });\n i0.ɵɵelement(1, \"div\", 6);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵclassMapInterpolate1(\"tour-orb tour-\", ctx_r1.currentTourStep.orientation, \"\");\n i0.ɵɵstyleProp(\"top\", ctx_r1.orbTopPosition, \"px\")(\"left\", ctx_r1.orbLeftPosition, \"px\")(\"transform\", ctx_r1.orbTransform);\n }\n}\nfunction GuidedTourComponent_div_1_Template(rf, ctx) {\n if (rf & 1) {\n const _r3 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\")(1, \"div\", 7);\n i0.ɵɵlistener(\"click\", function GuidedTourComponent_div_1_Template_div_click_1_listener($event) {\n i0.ɵɵrestoreView(_r3);\n const ctx_r1 = i0.ɵɵnextContext();\n return i0.ɵɵresetView(ctx_r1.backdropClick($event));\n });\n i0.ɵɵelementEnd();\n i0.ɵɵelement(2, \"div\", 8);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵadvance(2);\n i0.ɵɵstyleProp(\"top\", ctx_r1.overlayTop, \"px\")(\"left\", ctx_r1.overlayLeft, \"px\")(\"height\", ctx_r1.overlayHeight, \"px\")(\"width\", ctx_r1.overlayWidth, \"px\");\n }\n}\nfunction GuidedTourComponent_div_2_div_1_div_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"div\", 20);\n }\n}\nfunction GuidedTourComponent_div_2_div_1_div_4_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction GuidedTourComponent_div_2_div_1_div_4_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 21);\n i0.ɵɵtemplate(1, GuidedTourComponent_div_2_div_1_div_4_ng_container_1_Template, 1, 0, \"ng-container\", 22);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n i0.ɵɵnextContext(3);\n const progress_r4 = i0.ɵɵreference(4);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", progress_r4);\n }\n}\nfunction GuidedTourComponent_div_2_div_1_h3_5_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"h3\", 23);\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(3);\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate1(\" \", ctx_r1.currentTourStep.title, \" \");\n }\n}\nfunction GuidedTourComponent_div_2_div_1_h2_6_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"h2\", 23);\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(3);\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate1(\" \", ctx_r1.currentTourStep.title, \" \");\n }\n}\nfunction GuidedTourComponent_div_2_div_1_button_9_Template(rf, ctx) {\n if (rf & 1) {\n const _r5 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"button\", 24);\n i0.ɵɵlistener(\"click\", function GuidedTourComponent_div_2_div_1_button_9_Template_button_click_0_listener() {\n i0.ɵɵrestoreView(_r5);\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.guidedTourService.skipTour());\n });\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(3);\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate1(\" \", ctx_r1.skipText, \" \");\n }\n}\nfunction GuidedTourComponent_div_2_div_1_button_10_ng_container_2_ng_container_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction GuidedTourComponent_div_2_div_1_button_10_ng_container_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtemplate(1, GuidedTourComponent_div_2_div_1_button_10_ng_container_2_ng_container_1_Template, 1, 0, \"ng-container\", 22);\n i0.ɵɵelementContainerEnd();\n }\n if (rf & 2) {\n i0.ɵɵnextContext(4);\n const progress_r4 = i0.ɵɵreference(4);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngTemplateOutlet\", progress_r4);\n }\n}\nfunction GuidedTourComponent_div_2_div_1_button_10_Template(rf, ctx) {\n if (rf & 1) {\n const _r6 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"button\", 25);\n i0.ɵɵlistener(\"click\", function GuidedTourComponent_div_2_div_1_button_10_Template_button_click_0_listener() {\n i0.ɵɵrestoreView(_r6);\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.guidedTourService.nextStep());\n });\n i0.ɵɵtext(1);\n i0.ɵɵtemplate(2, GuidedTourComponent_div_2_div_1_button_10_ng_container_2_Template, 2, 1, \"ng-container\", 4);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(3);\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate1(\" \", ctx_r1.nextText, \" \");\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.progressIndicatorLocation === ctx_r1.progressIndicatorLocations.InsideNextButton);\n }\n}\nfunction GuidedTourComponent_div_2_div_1_button_11_Template(rf, ctx) {\n if (rf & 1) {\n const _r7 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"button\", 25);\n i0.ɵɵlistener(\"click\", function GuidedTourComponent_div_2_div_1_button_11_Template_button_click_0_listener() {\n i0.ɵɵrestoreView(_r7);\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.guidedTourService.nextStep());\n });\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(3);\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate1(\" \", ctx_r1.doneText, \" \");\n }\n}\nfunction GuidedTourComponent_div_2_div_1_button_12_Template(rf, ctx) {\n if (rf & 1) {\n const _r8 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"button\", 25);\n i0.ɵɵlistener(\"click\", function GuidedTourComponent_div_2_div_1_button_12_Template_button_click_0_listener() {\n i0.ɵɵrestoreView(_r8);\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.guidedTourService.resetTour());\n });\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(3);\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate1(\" \", ctx_r1.closeText, \" \");\n }\n}\nfunction GuidedTourComponent_div_2_div_1_button_13_Template(rf, ctx) {\n if (rf & 1) {\n const _r9 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"button\", 26);\n i0.ɵɵlistener(\"click\", function GuidedTourComponent_div_2_div_1_button_13_Template_button_click_0_listener() {\n i0.ɵɵrestoreView(_r9);\n const ctx_r1 = i0.ɵɵnextContext(3);\n return i0.ɵɵresetView(ctx_r1.guidedTourService.backStep());\n });\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(3);\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate1(\" \", ctx_r1.backText, \" \");\n }\n}\nfunction GuidedTourComponent_div_2_div_1_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 10, 2);\n i0.ɵɵtemplate(2, GuidedTourComponent_div_2_div_1_div_2_Template, 1, 0, \"div\", 11);\n i0.ɵɵelementStart(3, \"div\", 12);\n i0.ɵɵtemplate(4, GuidedTourComponent_div_2_div_1_div_4_Template, 2, 1, \"div\", 13)(5, GuidedTourComponent_div_2_div_1_h3_5_Template, 2, 1, \"h3\", 14)(6, GuidedTourComponent_div_2_div_1_h2_6_Template, 2, 1, \"h2\", 14);\n i0.ɵɵelement(7, \"div\", 15);\n i0.ɵɵelementStart(8, \"div\", 16);\n i0.ɵɵtemplate(9, GuidedTourComponent_div_2_div_1_button_9_Template, 2, 1, \"button\", 17)(10, GuidedTourComponent_div_2_div_1_button_10_Template, 3, 2, \"button\", 18)(11, GuidedTourComponent_div_2_div_1_button_11_Template, 2, 1, \"button\", 18)(12, GuidedTourComponent_div_2_div_1_button_12_Template, 2, 1, \"button\", 18)(13, GuidedTourComponent_div_2_div_1_button_13_Template, 2, 1, \"button\", 19);\n i0.ɵɵelementEnd()()();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext(2);\n i0.ɵɵclassMapInterpolate1(\"tour-step tour-\", ctx_r1.currentTourStep.orientation, \"\");\n i0.ɵɵstyleProp(\"top\", ctx_r1.currentTourStep.selector && ctx_r1.selectedElementRect ? ctx_r1.topPosition : null, \"px\")(\"left\", ctx_r1.currentTourStep.selector && ctx_r1.selectedElementRect ? ctx_r1.leftPosition : null, \"px\")(\"width\", ctx_r1.currentTourStep.selector && ctx_r1.selectedElementRect ? ctx_r1.calculatedTourStepWidth : null, \"px\")(\"transform\", ctx_r1.currentTourStep.selector && ctx_r1.selectedElementRect ? ctx_r1.transform : null);\n i0.ɵɵproperty(\"ngClass\", i0.ɵɵpureFunction1(22, _c1, !ctx_r1.currentTourStep.selector));\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", ctx_r1.currentTourStep.selector);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", ctx_r1.progressIndicatorLocation === ctx_r1.progressIndicatorLocations.TopOfTourBlock && !ctx_r1.guidedTourService.onResizeMessage);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.currentTourStep.title && ctx_r1.currentTourStep.selector);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.currentTourStep.title && !ctx_r1.currentTourStep.selector);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"innerHTML\", ctx_r1.currentTourStep.content, i0.ɵɵsanitizeHtml);\n i0.ɵɵadvance(2);\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.guidedTourService.onResizeMessage);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.guidedTourService.onLastStep && !ctx_r1.guidedTourService.onResizeMessage);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.guidedTourService.onLastStep);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.guidedTourService.onResizeMessage);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", !ctx_r1.guidedTourService.onFirstStep && !ctx_r1.guidedTourService.onResizeMessage);\n }\n}\nfunction GuidedTourComponent_div_2_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\");\n i0.ɵɵtemplate(1, GuidedTourComponent_div_2_div_1_Template, 14, 24, \"div\", 9);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.currentTourStep);\n }\n}\nfunction GuidedTourComponent_ng_template_3_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainer(0);\n }\n}\nfunction GuidedTourComponent_ng_template_3_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, GuidedTourComponent_ng_template_3_ng_container_0_Template, 1, 0, \"ng-container\", 27);\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext();\n const defaultProgressIndicator_r10 = i0.ɵɵreference(6);\n i0.ɵɵproperty(\"ngTemplateOutlet\", ctx_r1.progressIndicator || defaultProgressIndicator_r10)(\"ngTemplateOutletContext\", i0.ɵɵpureFunction2(2, _c2, ctx_r1.guidedTourService.currentTourStepDisplay, ctx_r1.guidedTourService.currentTourStepCount));\n }\n}\nfunction GuidedTourComponent_ng_template_5_ng_container_0_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementContainerStart(0);\n i0.ɵɵtext(1, \"\\xA0\");\n i0.ɵɵelementContainerEnd();\n }\n}\nfunction GuidedTourComponent_ng_template_5_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, GuidedTourComponent_ng_template_5_ng_container_0_Template, 2, 0, \"ng-container\", 4);\n i0.ɵɵtext(1);\n }\n if (rf & 2) {\n const currentStepNumber_r11 = ctx.currentStepNumber;\n const totalSteps_r12 = ctx.totalSteps;\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵproperty(\"ngIf\", ctx_r1.progressIndicatorLocation === ctx_r1.progressIndicatorLocations.InsideNextButton);\n i0.ɵɵadvance();\n i0.ɵɵtextInterpolate2(\"\", currentStepNumber_r11, \"/\", totalSteps_r12, \" \");\n }\n}\nlet Orientation = /*#__PURE__*/(() => {\n class Orientation {}\n Orientation.Bottom = 'bottom';\n Orientation.BottomLeft = 'bottom-left';\n Orientation.BottomRight = 'bottom-right';\n Orientation.Center = 'center';\n Orientation.Left = 'left';\n Orientation.Right = 'right';\n Orientation.Top = 'top';\n Orientation.TopLeft = 'top-left';\n Orientation.TopRight = 'top-right';\n return Orientation;\n})();\nvar ProgressIndicatorLocation = /*#__PURE__*/function (ProgressIndicatorLocation) {\n ProgressIndicatorLocation[\"InsideNextButton\"] = \"inside-next-button\";\n ProgressIndicatorLocation[\"TopOfTourBlock\"] = \"top-of-tour-block\";\n ProgressIndicatorLocation[\"None\"] = \"none\";\n return ProgressIndicatorLocation;\n}(ProgressIndicatorLocation || {});\nfunction getWindow() {\n return window;\n}\nfunction getMockWindow() {\n return {\n innerWidth: 0,\n innerHeight: 0,\n scrollY: 0,\n scrollX: 0,\n pageYOffset: 0,\n pageXOffset: 0,\n scroll: () => {},\n scrollTo: () => {},\n addEventListener: () => {},\n removeEventListener: () => {}\n };\n}\nlet WindowRefService = /*#__PURE__*/(() => {\n class WindowRefService {\n constructor(platformId) {\n this.isBrowser = false;\n this.isBrowser = isPlatformBrowser(platformId);\n }\n get nativeWindow() {\n if (this.isBrowser) {\n return getWindow();\n } else {\n return getMockWindow();\n }\n }\n }\n WindowRefService.ɵfac = function WindowRefService_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || WindowRefService)(i0.ɵɵinject(PLATFORM_ID));\n };\n WindowRefService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: WindowRefService,\n factory: WindowRefService.ɵfac\n });\n return WindowRefService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet GuidedTourService = /*#__PURE__*/(() => {\n class GuidedTourService {\n constructor(errorHandler, windowRef, dom) {\n this.errorHandler = errorHandler;\n this.windowRef = windowRef;\n this.dom = dom;\n this._guidedTourCurrentStepSubject = new Subject();\n this._guidedTourOrbShowingSubject = new Subject();\n this._currentTourStepIndex = 0;\n this._currentTour = null;\n this._onFirstStep = true;\n this._onLastStep = true;\n this._onResizeMessage = false;\n this.guidedTourCurrentStepStream = this._guidedTourCurrentStepSubject.asObservable();\n this.guidedTourOrbShowingStream = this._guidedTourOrbShowingSubject.asObservable();\n fromEvent(this.windowRef.nativeWindow, 'resize').pipe(debounceTime(200)).subscribe(() => {\n if (this._currentTour && this._currentTourStepIndex > -1) {\n if (this._currentTour.minimumScreenSize && this._currentTour.minimumScreenSize >= this.windowRef.nativeWindow.innerWidth) {\n this._onResizeMessage = true;\n const dialog = this._currentTour.resizeDialog || {\n title: 'Please resize',\n content: 'You have resized the tour to a size that is too small to continue. Please resize the browser to a larger size to continue the tour or close the tour.'\n };\n this._guidedTourCurrentStepSubject.next(dialog);\n } else {\n this._onResizeMessage = false;\n this._guidedTourCurrentStepSubject.next(this.getPreparedTourStep(this._currentTourStepIndex));\n }\n }\n });\n }\n nextStep() {\n if (this._currentTour.steps[this._currentTourStepIndex].closeAction) {\n this._currentTour.steps[this._currentTourStepIndex].closeAction();\n }\n if (this._currentTour.steps[this._currentTourStepIndex + 1]) {\n this._currentTourStepIndex++;\n this._setFirstAndLast();\n if (this._currentTour.steps[this._currentTourStepIndex].action) {\n this._currentTour.steps[this._currentTourStepIndex].action();\n // Usually an action is opening something so we need to give it time to render.\n setTimeout(() => {\n if (this._checkSelectorValidity()) {\n this._guidedTourCurrentStepSubject.next(this.getPreparedTourStep(this._currentTourStepIndex));\n } else {\n this.nextStep();\n }\n });\n } else {\n if (this._checkSelectorValidity()) {\n this._guidedTourCurrentStepSubject.next(this.getPreparedTourStep(this._currentTourStepIndex));\n } else {\n this.nextStep();\n }\n }\n } else {\n if (this._currentTour.completeCallback) {\n this._currentTour.completeCallback();\n }\n this.resetTour();\n }\n }\n backStep() {\n if (this._currentTour.steps[this._currentTourStepIndex].closeAction) {\n this._currentTour.steps[this._currentTourStepIndex].closeAction();\n }\n if (this._currentTour.steps[this._currentTourStepIndex - 1]) {\n this._currentTourStepIndex--;\n this._setFirstAndLast();\n if (this._currentTour.steps[this._currentTourStepIndex].action) {\n this._currentTour.steps[this._currentTourStepIndex].action();\n setTimeout(() => {\n if (this._checkSelectorValidity()) {\n this._guidedTourCurrentStepSubject.next(this.getPreparedTourStep(this._currentTourStepIndex));\n } else {\n this.backStep();\n }\n });\n } else {\n if (this._checkSelectorValidity()) {\n this._guidedTourCurrentStepSubject.next(this.getPreparedTourStep(this._currentTourStepIndex));\n } else {\n this.backStep();\n }\n }\n } else {\n this.resetTour();\n }\n }\n skipTour() {\n if (this._currentTour.skipCallback) {\n this._currentTour.skipCallback(this._currentTourStepIndex);\n }\n this.resetTour();\n }\n resetTour() {\n this.dom.body.classList.remove('tour-open');\n this._currentTour = null;\n this._currentTourStepIndex = 0;\n this._guidedTourCurrentStepSubject.next(null);\n }\n startTour(tour) {\n this._currentTour = cloneDeep(tour);\n this._currentTour.steps = this._currentTour.steps.filter(step => !step.skipStep);\n this._currentTourStepIndex = 0;\n this._setFirstAndLast();\n this._guidedTourOrbShowingSubject.next(this._currentTour.useOrb);\n if (this._currentTour.steps.length > 0 && (!this._currentTour.minimumScreenSize || this.windowRef.nativeWindow.innerWidth >= this._currentTour.minimumScreenSize)) {\n if (!this._currentTour.useOrb) {\n this.dom.body.classList.add('tour-open');\n }\n if (this._currentTour.steps[this._currentTourStepIndex].action) {\n this._currentTour.steps[this._currentTourStepIndex].action();\n }\n if (this._checkSelectorValidity()) {\n this._guidedTourCurrentStepSubject.next(this.getPreparedTourStep(this._currentTourStepIndex));\n } else {\n this.nextStep();\n }\n }\n }\n activateOrb() {\n this._guidedTourOrbShowingSubject.next(false);\n this.dom.body.classList.add('tour-open');\n }\n _setFirstAndLast() {\n this._onLastStep = this._currentTour.steps.length - 1 === this._currentTourStepIndex;\n this._onFirstStep = this._currentTourStepIndex === 0;\n }\n _checkSelectorValidity() {\n if (this._currentTour.steps[this._currentTourStepIndex].selector) {\n const selectedElement = this.dom.querySelector(this._currentTour.steps[this._currentTourStepIndex].selector);\n if (!selectedElement) {\n this.errorHandler.handleError(\n // If error handler is configured this should not block the browser.\n new Error(`Error finding selector ${this._currentTour.steps[this._currentTourStepIndex].selector} on step ${this._currentTourStepIndex + 1} during guided tour: ${this._currentTour.tourId}`));\n return false;\n }\n }\n return true;\n }\n get onLastStep() {\n return this._onLastStep;\n }\n get onFirstStep() {\n return this._onFirstStep;\n }\n get onResizeMessage() {\n return this._onResizeMessage;\n }\n get currentTourStepDisplay() {\n return this._currentTourStepIndex + 1;\n }\n get currentTourStepCount() {\n return this._currentTour && this._currentTour.steps ? this._currentTour.steps.length : 0;\n }\n get preventBackdropFromAdvancing() {\n return this._currentTour && this._currentTour.preventBackdropFromAdvancing;\n }\n getPreparedTourStep(index) {\n return this.setTourOrientation(this._currentTour.steps[index]);\n }\n setTourOrientation(step) {\n const convertedStep = cloneDeep(step);\n if (convertedStep.orientation && !(typeof convertedStep.orientation === 'string') && convertedStep.orientation.length) {\n convertedStep.orientation.sort((a, b) => {\n if (!b.maximumSize) {\n return 1;\n }\n if (!a.maximumSize) {\n return -1;\n }\n return b.maximumSize - a.maximumSize;\n });\n let currentOrientation = Orientation.Top;\n convertedStep.orientation.forEach(orientationConfig => {\n if (!orientationConfig.maximumSize || this.windowRef.nativeWindow.innerWidth <= orientationConfig.maximumSize) {\n currentOrientation = orientationConfig.orientationDirection;\n }\n });\n convertedStep.orientation = currentOrientation;\n }\n return convertedStep;\n }\n }\n GuidedTourService.ɵfac = function GuidedTourService_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || GuidedTourService)(i0.ɵɵinject(i0.ErrorHandler), i0.ɵɵinject(WindowRefService), i0.ɵɵinject(DOCUMENT));\n };\n GuidedTourService.ɵprov = /* @__PURE__ */i0.ɵɵdefineInjectable({\n token: GuidedTourService,\n factory: GuidedTourService.ɵfac\n });\n return GuidedTourService;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet GuidedTourComponent = /*#__PURE__*/(() => {\n class GuidedTourComponent {\n constructor(guidedTourService, windowRef, dom) {\n this.guidedTourService = guidedTourService;\n this.windowRef = windowRef;\n this.dom = dom;\n this.topOfPageAdjustment = 0;\n this.tourStepWidth = 300;\n this.minimalTourStepWidth = 200;\n this.skipText = 'Skip';\n this.nextText = 'Next';\n this.doneText = 'Done';\n this.closeText = 'Close';\n this.backText = 'Back';\n this.progressIndicatorLocation = ProgressIndicatorLocation.InsideNextButton;\n this.progressIndicator = undefined;\n this.highlightPadding = 4;\n this.currentTourStep = null;\n this.selectedElementRect = null;\n this.isOrbShowing = false;\n this.progressIndicatorLocations = ProgressIndicatorLocation;\n }\n get maxWidthAdjustmentForTourStep() {\n return this.tourStepWidth - this.minimalTourStepWidth;\n }\n get widthAdjustmentForScreenBound() {\n if (!this.tourStep) {\n return 0;\n }\n let adjustment = 0;\n if (this.calculatedLeftPosition < 0) {\n adjustment = -this.calculatedLeftPosition;\n }\n if (this.calculatedLeftPosition > this.windowRef.nativeWindow.innerWidth - this.tourStepWidth) {\n adjustment = this.calculatedLeftPosition - (this.windowRef.nativeWindow.innerWidth - this.tourStepWidth);\n }\n return Math.min(this.maxWidthAdjustmentForTourStep, adjustment);\n }\n get calculatedTourStepWidth() {\n return this.tourStepWidth - this.widthAdjustmentForScreenBound;\n }\n ngAfterViewInit() {\n this.guidedTourService.guidedTourCurrentStepStream.subscribe(step => {\n this.currentTourStep = step;\n if (step && step.selector) {\n const selectedElement = this.dom.querySelector(step.selector);\n if (selectedElement) {\n this.scrollToAndSetElement();\n } else {\n this.selectedElementRect = null;\n }\n } else {\n this.selectedElementRect = null;\n }\n });\n this.guidedTourService.guidedTourOrbShowingStream.subscribe(value => {\n this.isOrbShowing = value;\n });\n this.resizeSubscription = fromEvent(this.windowRef.nativeWindow, 'resize').subscribe(() => {\n this.updateStepLocation();\n });\n this.scrollSubscription = fromEvent(this.windowRef.nativeWindow, 'scroll').subscribe(() => {\n this.updateStepLocation();\n });\n }\n ngOnDestroy() {\n this.resizeSubscription?.unsubscribe();\n this.scrollSubscription?.unsubscribe();\n }\n scrollToAndSetElement() {\n this.updateStepLocation();\n // Allow things to render to scroll to the correct location\n setTimeout(() => {\n if (!this.isOrbShowing && !this.isTourOnScreen()) {\n if (this.selectedElementRect && this.isBottom()) {\n // Scroll so the element is on the top of the screen.\n const topPos = this.windowRef.nativeWindow.scrollY + this.selectedElementRect.top - this.topOfPageAdjustment - (this.currentTourStep.scrollAdjustment ? this.currentTourStep.scrollAdjustment : 0) + this.getStepScreenAdjustment();\n try {\n this.windowRef.nativeWindow.scrollTo({\n left: null,\n top: topPos,\n behavior: 'smooth'\n });\n } catch (err) {\n if (err instanceof TypeError) {\n this.windowRef.nativeWindow.scroll(0, topPos);\n } else {\n throw err;\n }\n }\n } else {\n // Scroll so the element is on the bottom of the screen.\n const topPos = this.windowRef.nativeWindow.scrollY + this.selectedElementRect.top + this.selectedElementRect.height - this.windowRef.nativeWindow.innerHeight + (this.currentTourStep.scrollAdjustment ? this.currentTourStep.scrollAdjustment : 0) - this.getStepScreenAdjustment();\n try {\n this.windowRef.nativeWindow.scrollTo({\n left: null,\n top: topPos,\n behavior: 'smooth'\n });\n } catch (err) {\n if (err instanceof TypeError) {\n this.windowRef.nativeWindow.scroll(0, topPos);\n } else {\n throw err;\n }\n }\n }\n }\n });\n }\n handleOrb() {\n this.guidedTourService.activateOrb();\n if (this.currentTourStep && this.currentTourStep.selector) {\n this.scrollToAndSetElement();\n }\n }\n isTourOnScreen() {\n return this.tourStep && this.elementInViewport(this.dom.querySelector(this.currentTourStep.selector)) && this.elementInViewport(this.tourStep.nativeElement);\n }\n // Modified from https://stackoverflow.com/questions/123999/how-to-tell-if-a-dom-element-is-visible-in-the-current-viewport\n elementInViewport(element) {\n let top = element.offsetTop;\n const height = element.offsetHeight;\n while (element.offsetParent) {\n element = element.offsetParent;\n top += element.offsetTop;\n }\n if (this.isBottom()) {\n return top >= this.windowRef.nativeWindow.pageYOffset + this.topOfPageAdjustment + (this.currentTourStep.scrollAdjustment ? this.currentTourStep.scrollAdjustment : 0) + this.getStepScreenAdjustment() && top + height <= this.windowRef.nativeWindow.pageYOffset + this.windowRef.nativeWindow.innerHeight;\n } else {\n return top >= this.windowRef.nativeWindow.pageYOffset + this.topOfPageAdjustment - this.getStepScreenAdjustment() && top + height + (this.currentTourStep.scrollAdjustment ? this.currentTourStep.scrollAdjustment : 0) <= this.windowRef.nativeWindow.pageYOffset + this.windowRef.nativeWindow.innerHeight;\n }\n }\n backdropClick(event) {\n if (this.guidedTourService.preventBackdropFromAdvancing) {\n event.stopPropagation();\n } else {\n this.guidedTourService.nextStep();\n }\n }\n updateStepLocation() {\n if (this.currentTourStep && this.currentTourStep.selector) {\n const selectedElement = this.dom.querySelector(this.currentTourStep.selector);\n if (selectedElement && typeof selectedElement.getBoundingClientRect === 'function') {\n this.selectedElementRect = selectedElement.getBoundingClientRect();\n } else {\n this.selectedElementRect = null;\n }\n } else {\n this.selectedElementRect = null;\n }\n }\n isBottom() {\n return this.currentTourStep.orientation && (this.currentTourStep.orientation === Orientation.Bottom || this.currentTourStep.orientation === Orientation.BottomLeft || this.currentTourStep.orientation === Orientation.BottomRight);\n }\n get topPosition() {\n const paddingAdjustment = this.getHighlightPadding();\n if (this.isBottom()) {\n return this.selectedElementRect.top + this.selectedElementRect.height + paddingAdjustment;\n }\n return this.selectedElementRect.top - this.getHighlightPadding();\n }\n get orbTopPosition() {\n if (this.isBottom()) {\n return this.selectedElementRect.top + this.selectedElementRect.height;\n }\n if (this.currentTourStep.orientation === Orientation.Right || this.currentTourStep.orientation === Orientation.Left) {\n return this.selectedElementRect.top + this.selectedElementRect.height / 2;\n }\n return this.selectedElementRect.top;\n }\n get calculatedLeftPosition() {\n const paddingAdjustment = this.getHighlightPadding();\n if (this.currentTourStep.orientation === Orientation.TopRight || this.currentTourStep.orientation === Orientation.BottomRight) {\n return this.selectedElementRect.right - this.tourStepWidth;\n }\n if (this.currentTourStep.orientation === Orientation.TopLeft || this.currentTourStep.orientation === Orientation.BottomLeft) {\n return this.selectedElementRect.left;\n }\n if (this.currentTourStep.orientation === Orientation.Left) {\n return this.selectedElementRect.left - this.tourStepWidth - paddingAdjustment;\n }\n if (this.currentTourStep.orientation === Orientation.Right) {\n return this.selectedElementRect.left + this.selectedElementRect.width + paddingAdjustment;\n }\n return this.selectedElementRect.right - this.selectedElementRect.width / 2 - this.tourStepWidth / 2;\n }\n get leftPosition() {\n if (this.calculatedLeftPosition >= 0) {\n return this.calculatedLeftPosition;\n }\n const adjustment = Math.max(0, -this.calculatedLeftPosition);\n const maxAdjustment = Math.min(this.maxWidthAdjustmentForTourStep, adjustment);\n return this.calculatedLeftPosition + maxAdjustment;\n }\n get orbLeftPosition() {\n if (this.currentTourStep.orientation === Orientation.TopRight || this.currentTourStep.orientation === Orientation.BottomRight) {\n return this.selectedElementRect.right;\n }\n if (this.currentTourStep.orientation === Orientation.TopLeft || this.currentTourStep.orientation === Orientation.BottomLeft) {\n return this.selectedElementRect.left;\n }\n if (this.currentTourStep.orientation === Orientation.Left) {\n return this.selectedElementRect.left;\n }\n if (this.currentTourStep.orientation === Orientation.Right) {\n return this.selectedElementRect.left + this.selectedElementRect.width;\n }\n return this.selectedElementRect.right - this.selectedElementRect.width / 2;\n }\n get transform() {\n if (!this.currentTourStep.orientation || this.currentTourStep.orientation === Orientation.Top || this.currentTourStep.orientation === Orientation.TopRight || this.currentTourStep.orientation === Orientation.TopLeft) {\n return 'translateY(-100%)';\n }\n return null;\n }\n get orbTransform() {\n if (!this.currentTourStep.orientation || this.currentTourStep.orientation === Orientation.Top || this.currentTourStep.orientation === Orientation.Bottom || this.currentTourStep.orientation === Orientation.TopLeft || this.currentTourStep.orientation === Orientation.BottomLeft) {\n return 'translateY(-50%)';\n }\n if (this.currentTourStep.orientation === Orientation.TopRight || this.currentTourStep.orientation === Orientation.BottomRight) {\n return 'translate(-100%, -50%)';\n }\n if (this.currentTourStep.orientation === Orientation.Right || this.currentTourStep.orientation === Orientation.Left) {\n return 'translate(-50%, -50%)';\n }\n return null;\n }\n get overlayTop() {\n if (this.selectedElementRect) {\n return this.selectedElementRect.top - this.getHighlightPadding();\n }\n return 0;\n }\n get overlayLeft() {\n if (this.selectedElementRect) {\n return this.selectedElementRect.left - this.getHighlightPadding();\n }\n return 0;\n }\n get overlayHeight() {\n if (this.selectedElementRect) {\n return this.selectedElementRect.height + this.getHighlightPadding() * 2;\n }\n return 0;\n }\n get overlayWidth() {\n if (this.selectedElementRect) {\n return this.selectedElementRect.width + this.getHighlightPadding() * 2;\n }\n return 0;\n }\n getHighlightPadding() {\n let paddingAdjustment = this.currentTourStep.useHighlightPadding ? this.highlightPadding : 0;\n if (this.currentTourStep.highlightPadding) {\n paddingAdjustment = this.currentTourStep.highlightPadding;\n }\n return paddingAdjustment;\n }\n // This calculates a value to add or subtract so the step should not be off screen.\n getStepScreenAdjustment() {\n if (this.currentTourStep.orientation === Orientation.Left || this.currentTourStep.orientation === Orientation.Right) {\n return 0;\n }\n const scrollAdjustment = this.currentTourStep.scrollAdjustment ? this.currentTourStep.scrollAdjustment : 0;\n const tourStepHeight = typeof this.tourStep.nativeElement.getBoundingClientRect === 'function' ? this.tourStep.nativeElement.getBoundingClientRect().height : 0;\n const elementHeight = this.selectedElementRect.height + scrollAdjustment + tourStepHeight;\n if (this.windowRef.nativeWindow.innerHeight - this.topOfPageAdjustment < elementHeight) {\n return elementHeight - (this.windowRef.nativeWindow.innerHeight - this.topOfPageAdjustment);\n }\n return 0;\n }\n }\n GuidedTourComponent.ɵfac = function GuidedTourComponent_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || GuidedTourComponent)(i0.ɵɵdirectiveInject(GuidedTourService), i0.ɵɵdirectiveInject(WindowRefService), i0.ɵɵdirectiveInject(DOCUMENT));\n };\n GuidedTourComponent.ɵcmp = /* @__PURE__ */i0.ɵɵdefineComponent({\n type: GuidedTourComponent,\n selectors: [[\"ngx-guided-tour\"]],\n viewQuery: function GuidedTourComponent_Query(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵviewQuery(_c0, 5);\n }\n if (rf & 2) {\n let _t;\n i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tourStep = _t.first);\n }\n },\n inputs: {\n topOfPageAdjustment: \"topOfPageAdjustment\",\n tourStepWidth: \"tourStepWidth\",\n minimalTourStepWidth: \"minimalTourStepWidth\",\n skipText: \"skipText\",\n nextText: \"nextText\",\n doneText: \"doneText\",\n closeText: \"closeText\",\n backText: \"backText\",\n progressIndicatorLocation: \"progressIndicatorLocation\",\n progressIndicator: \"progressIndicator\"\n },\n decls: 7,\n vars: 3,\n consts: [[\"progress\", \"\"], [\"defaultProgressIndicator\", \"\"], [\"tourStep\", \"\"], [3, \"class\", \"top\", \"left\", \"transform\", \"mouseenter\", 4, \"ngIf\"], [4, \"ngIf\"], [3, \"mouseenter\"], [1, \"tour-orb-ring\"], [1, \"guided-tour-user-input-mask\", 3, \"click\"], [1, \"guided-tour-spotlight-overlay\"], [3, \"class\", \"ngClass\", \"top\", \"left\", \"width\", \"transform\", 4, \"ngIf\"], [3, \"ngClass\"], [\"class\", \"tour-arrow\", 4, \"ngIf\"], [1, \"tour-block\"], [\"class\", \"tour-progress-indicator\", 4, \"ngIf\"], [\"class\", \"tour-title\", 4, \"ngIf\"], [1, \"tour-content\", 3, \"innerHTML\"], [1, \"tour-buttons\"], [\"class\", \"skip-button link-button\", 3, \"click\", 4, \"ngIf\"], [\"class\", \"next-button\", 3, \"click\", 4, \"ngIf\"], [\"class\", \"back-button link-button\", 3, \"click\", 4, \"ngIf\"], [1, \"tour-arrow\"], [1, \"tour-progress-indicator\"], [4, \"ngTemplateOutlet\"], [1, \"tour-title\"], [1, \"skip-button\", \"link-button\", 3, \"click\"], [1, \"next-button\", 3, \"click\"], [1, \"back-button\", \"link-button\", 3, \"click\"], [4, \"ngTemplateOutlet\", \"ngTemplateOutletContext\"]],\n template: function GuidedTourComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵtemplate(0, GuidedTourComponent_div_0_Template, 2, 9, \"div\", 3)(1, GuidedTourComponent_div_1_Template, 3, 8, \"div\", 4)(2, GuidedTourComponent_div_2_Template, 2, 1, \"div\", 4)(3, GuidedTourComponent_ng_template_3_Template, 1, 5, \"ng-template\", null, 0, i0.ɵɵtemplateRefExtractor)(5, GuidedTourComponent_ng_template_5_Template, 2, 3, \"ng-template\", null, 1, i0.ɵɵtemplateRefExtractor);\n }\n if (rf & 2) {\n i0.ɵɵproperty(\"ngIf\", ctx.currentTourStep && ctx.selectedElementRect && ctx.isOrbShowing);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.currentTourStep && !ctx.isOrbShowing);\n i0.ɵɵadvance();\n i0.ɵɵproperty(\"ngIf\", ctx.currentTourStep && !ctx.isOrbShowing);\n }\n },\n dependencies: [i3.NgIf, i3.NgClass, i3.NgTemplateOutlet],\n styles: [\"ngx-guided-tour .guided-tour-user-input-mask{position:fixed;top:0;left:0;display:block;height:100%;width:100%;max-height:100vh;text-align:center;opacity:0}ngx-guided-tour .guided-tour-spotlight-overlay{position:fixed;box-shadow:0 0 0 9999px #000000b3,0 0 1.5rem #00000080}ngx-guided-tour .tour-orb{position:fixed;width:20px;height:20px;border-radius:50%}ngx-guided-tour .tour-orb .tour-orb-ring{width:35px;height:35px;position:relative;top:50%;left:50%;transform:translate(-50%,-50%);animation:pulse 2s linear infinite}ngx-guided-tour .tour-orb .tour-orb-ring:after{content:\\\"\\\";display:inline-block;height:100%;width:100%;border-radius:50%}@keyframes pulse{0%{transform:translate(-50%,-50%) scale(.45);opacity:1}to{transform:translate(-50%,-50%) scale(1);opacity:0}}ngx-guided-tour .tour-step{position:fixed}ngx-guided-tour .tour-step.page-tour-step{max-width:400px;width:50%;left:50%;top:50%;transform:translate(-50%,-50%)}ngx-guided-tour .tour-step.tour-bottom .tour-arrow:before,ngx-guided-tour .tour-step.tour-bottom-right .tour-arrow:before,ngx-guided-tour .tour-step.tour-bottom-left .tour-arrow:before{position:absolute}ngx-guided-tour .tour-step.tour-bottom .tour-block,ngx-guided-tour .tour-step.tour-bottom-right .tour-block,ngx-guided-tour .tour-step.tour-bottom-left .tour-block{margin-top:10px}ngx-guided-tour .tour-step.tour-top,ngx-guided-tour .tour-step.tour-top-right,ngx-guided-tour .tour-step.tour-top-left{margin-bottom:10px}ngx-guided-tour .tour-step.tour-top .tour-arrow:before,ngx-guided-tour .tour-step.tour-top-right .tour-arrow:before,ngx-guided-tour .tour-step.tour-top-left .tour-arrow:before{position:absolute;bottom:0}ngx-guided-tour .tour-step.tour-top .tour-block,ngx-guided-tour .tour-step.tour-top-right .tour-block,ngx-guided-tour .tour-step.tour-top-left .tour-block{margin-bottom:10px}ngx-guided-tour .tour-step.tour-bottom .tour-arrow:before,ngx-guided-tour .tour-step.tour-top .tour-arrow:before{transform:translate(-50%);left:50%}ngx-guided-tour .tour-step.tour-bottom-right .tour-arrow:before,ngx-guided-tour .tour-step.tour-top-right .tour-arrow:before{transform:translate(-100%);left:calc(100% - 5px)}ngx-guided-tour .tour-step.tour-bottom-left .tour-arrow:before,ngx-guided-tour .tour-step.tour-top-left .tour-arrow:before{left:5px}ngx-guided-tour .tour-step.tour-left .tour-arrow:before{position:absolute;left:100%;transform:translate(-100%);top:5px}ngx-guided-tour .tour-step.tour-left .tour-block{margin-right:10px}ngx-guided-tour .tour-step.tour-right .tour-arrow:before{position:absolute;left:0;top:5px}ngx-guided-tour .tour-step.tour-right .tour-block{margin-left:10px}ngx-guided-tour .tour-step .tour-block{padding:15px 25px}ngx-guided-tour .tour-step .tour-progress-indicator{padding-bottom:15px}ngx-guided-tour .tour-step .tour-title{font-weight:700!important;padding-bottom:20px}ngx-guided-tour .tour-step h3.tour-title{font-size:20px}ngx-guided-tour .tour-step h2.tour-title{font-size:30px}ngx-guided-tour .tour-step .tour-content{min-height:80px;padding-bottom:30px;font-size:15px}ngx-guided-tour .tour-step .tour-buttons{overflow:hidden}ngx-guided-tour .tour-step .tour-buttons button.link-button{font-size:15px;font-weight:700;max-width:none!important;cursor:pointer;text-align:center;white-space:nowrap;vertical-align:middle;border:1px solid transparent;line-height:1.5;background-color:transparent;position:relative;outline:none;padding:0 15px;-webkit-appearance:button}ngx-guided-tour .tour-step .tour-buttons button.skip-button.link-button{padding-left:0;border-left:0}ngx-guided-tour .tour-step .tour-buttons .back-button{float:right}ngx-guided-tour .tour-step .tour-buttons .next-button{cursor:pointer;border-radius:1px;float:right;font-size:14px;border:none;outline:none;padding-left:10px;padding-right:10px}\\n\"],\n encapsulation: 2\n });\n return GuidedTourComponent;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\nlet GuidedTourModule = /*#__PURE__*/(() => {\n class GuidedTourModule {\n static forRoot() {\n return {\n ngModule: GuidedTourModule,\n providers: [ErrorHandler, GuidedTourService]\n };\n }\n }\n GuidedTourModule.ɵfac = function GuidedTourModule_Factory(__ngFactoryType__) {\n return new (__ngFactoryType__ || GuidedTourModule)();\n };\n GuidedTourModule.ɵmod = /* @__PURE__ */i0.ɵɵdefineNgModule({\n type: GuidedTourModule\n });\n GuidedTourModule.ɵinj = /* @__PURE__ */i0.ɵɵdefineInjector({\n providers: [WindowRefService],\n imports: [[CommonModule]]\n });\n return GuidedTourModule;\n})();\n(() => {\n (typeof ngDevMode === \"undefined\" || ngDevMode) && void 0;\n})();\n\n/*\n * Public API Surface of ngx-guided-tour\n */\n\n/**\n * Generated bundle index. Do not edit.\n */\n\nexport { GuidedTourComponent, GuidedTourModule, GuidedTourService, Orientation, ProgressIndicatorLocation, WindowRefService };\n"],"names":["import_lodash","_c0","_c1","a0","_c2","a1","GuidedTourComponent_div_0_Template","rf","ctx","_r1","ɵɵgetCurrentView","ɵɵelementStart","ɵɵlistener","ɵɵrestoreView","ctx_r1","ɵɵnextContext","ɵɵresetView","ɵɵelement","ɵɵelementEnd","ɵɵclassMapInterpolate1","ɵɵstyleProp","GuidedTourComponent_div_1_Template","_r3","$event","ɵɵadvance","GuidedTourComponent_div_2_div_1_div_2_Template","GuidedTourComponent_div_2_div_1_div_4_ng_container_1_Template","ɵɵelementContainer","GuidedTourComponent_div_2_div_1_div_4_Template","ɵɵtemplate","progress_r4","ɵɵreference","ɵɵproperty","GuidedTourComponent_div_2_div_1_h3_5_Template","ɵɵtext","ɵɵtextInterpolate1","GuidedTourComponent_div_2_div_1_h2_6_Template","GuidedTourComponent_div_2_div_1_button_9_Template","_r5","GuidedTourComponent_div_2_div_1_button_10_ng_container_2_ng_container_1_Template","GuidedTourComponent_div_2_div_1_button_10_ng_container_2_Template","ɵɵelementContainerStart","ɵɵelementContainerEnd","GuidedTourComponent_div_2_div_1_button_10_Template","_r6","GuidedTourComponent_div_2_div_1_button_11_Template","_r7","GuidedTourComponent_div_2_div_1_button_12_Template","_r8","GuidedTourComponent_div_2_div_1_button_13_Template","_r9","GuidedTourComponent_div_2_div_1_Template","ɵɵpureFunction1","ɵɵsanitizeHtml","GuidedTourComponent_div_2_Template","GuidedTourComponent_ng_template_3_ng_container_0_Template","GuidedTourComponent_ng_template_3_Template","defaultProgressIndicator_r10","ɵɵpureFunction2","GuidedTourComponent_ng_template_5_ng_container_0_Template","GuidedTourComponent_ng_template_5_Template","currentStepNumber_r11","totalSteps_r12","ɵɵtextInterpolate2","Orientation","ProgressIndicatorLocation","getWindow","getMockWindow","WindowRefService","platformId","isPlatformBrowser","__ngFactoryType__","ɵɵinject","PLATFORM_ID","ɵɵdefineInjectable","GuidedTourService","errorHandler","windowRef","dom","Subject","fromEvent","debounceTime","dialog","tour","step","index","convertedStep","b","currentOrientation","orientationConfig","ErrorHandler","DOCUMENT","GuidedTourComponent","guidedTourService","adjustment","value","topPos","err","element","top","height","event","selectedElement","paddingAdjustment","maxAdjustment","scrollAdjustment","tourStepHeight","elementHeight","ɵɵdirectiveInject","ɵɵdefineComponent","ɵɵviewQuery","_t","ɵɵqueryRefresh","ɵɵloadQuery","ɵɵtemplateRefExtractor","NgIf","NgClass","NgTemplateOutlet","GuidedTourModule","ɵɵdefineNgModule","ɵɵdefineInjector","CommonModule"],"mappings":";;4aAIA,IAAAA,EAA0B,WAG1B,IAAMC,GAAM,CAAC,UAAU,EACjBC,GAAMC,IAAO,CACjB,iBAAkBA,CACpB,GACMC,GAAM,CAACD,EAAIE,KAAQ,CACvB,kBAAmBF,EACnB,WAAYE,CACd,GACA,SAASC,GAAmCC,EAAIC,EAAK,CACnD,GAAID,EAAK,EAAG,CACV,IAAME,EAASC,EAAiB,EAC7BC,EAAe,EAAG,MAAO,CAAC,EAC1BC,EAAW,aAAc,UAAwE,CAC/FC,EAAcJ,CAAG,EACpB,IAAMK,EAAYC,EAAc,EAChC,OAAUC,EAAYF,EAAO,UAAU,CAAC,CAC1C,CAAC,EACEG,EAAU,EAAG,MAAO,CAAC,EACrBC,EAAa,CAClB,CACA,GAAIX,EAAK,EAAG,CACV,IAAMO,EAAYC,EAAc,EAC7BI,EAAuB,iBAAkBL,EAAO,gBAAgB,YAAa,EAAE,EAC/EM,EAAY,MAAON,EAAO,eAAgB,IAAI,EAAE,OAAQA,EAAO,gBAAiB,IAAI,EAAE,YAAaA,EAAO,YAAY,CAC3H,CACF,CACA,SAASO,GAAmCd,EAAIC,EAAK,CACnD,GAAID,EAAK,EAAG,CACV,IAAMe,EAASZ,EAAiB,EAC7BC,EAAe,EAAG,KAAK,EAAE,EAAG,MAAO,CAAC,EACpCC,EAAW,QAAS,SAAiEW,EAAQ,CAC3FV,EAAcS,CAAG,EACpB,IAAMR,EAAYC,EAAc,EAChC,OAAUC,EAAYF,EAAO,cAAcS,CAAM,CAAC,CACpD,CAAC,EACEL,EAAa,EACbD,EAAU,EAAG,MAAO,CAAC,EACrBC,EAAa,CAClB,CACA,GAAIX,EAAK,EAAG,CACV,IAAMO,EAAYC,EAAc,EAC7BS,EAAU,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