UNPKG

ngx-guided-tour

Version:

Guided tour for your Angular6+ applications.

2 lines 24 kB
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("rxjs/internal/operators"),require("lodash"),require("rxjs"),require("@angular/core"),require("@angular/common")):"function"==typeof define&&define.amd?define("ngx-guided-tour",["exports","rxjs/internal/operators","lodash","rxjs","@angular/core","@angular/common"],e):e(t["ngx-guided-tour"]={},t.rxjs["internal/operators"],t.lodash,t.rxjs,t.ng.core,t.ng.common)}(this,function(t,r,o,n,e,i){"use strict";var u=(s.Bottom="bottom",s.BottomLeft="bottom-left",s.BottomRight="bottom-right",s.Center="center",s.Left="left",s.Right="right",s.Top="top",s.TopLeft="top-left",s.TopRight="top-right",s);function s(){}var c=(p.prototype.nextStep=function(){var t=this;this._currentTour.steps[this._currentTourStepIndex].closeAction&&this._currentTour.steps[this._currentTourStepIndex].closeAction(),this._currentTour.steps[this._currentTourStepIndex+1]?(this._currentTourStepIndex++,this._setFirstAndLast(),this._currentTour.steps[this._currentTourStepIndex].action?(this._currentTour.steps[this._currentTourStepIndex].action(),setTimeout(function(){t._checkSelectorValidity()?t._guidedTourCurrentStepSubject.next(t.getPreparedTourStep(t._currentTourStepIndex)):t.nextStep()})):this._checkSelectorValidity()?this._guidedTourCurrentStepSubject.next(this.getPreparedTourStep(this._currentTourStepIndex)):this.nextStep()):(this._currentTour.completeCallback&&this._currentTour.completeCallback(),this.resetTour())},p.prototype.backStep=function(){var t=this;this._currentTour.steps[this._currentTourStepIndex].closeAction&&this._currentTour.steps[this._currentTourStepIndex].closeAction(),this._currentTour.steps[this._currentTourStepIndex-1]?(this._currentTourStepIndex--,this._setFirstAndLast(),this._currentTour.steps[this._currentTourStepIndex].action?(this._currentTour.steps[this._currentTourStepIndex].action(),setTimeout(function(){t._checkSelectorValidity()?t._guidedTourCurrentStepSubject.next(t.getPreparedTourStep(t._currentTourStepIndex)):t.backStep()})):this._checkSelectorValidity()?this._guidedTourCurrentStepSubject.next(this.getPreparedTourStep(this._currentTourStepIndex)):this.backStep()):this.resetTour()},p.prototype.skipTour=function(){this._currentTour.skipCallback&&this._currentTour.skipCallback(this._currentTourStepIndex),this.resetTour()},p.prototype.resetTour=function(){document.body.classList.remove("tour-open"),this._currentTour=null,this._currentTourStepIndex=0,this._guidedTourCurrentStepSubject.next(null)},p.prototype.startTour=function(t){this._currentTour=o.cloneDeep(t),this._currentTour.steps=this._currentTour.steps.filter(function(t){return!t.skipStep}),this._currentTourStepIndex=0,this._setFirstAndLast(),this._guidedTourOrbShowingSubject.next(this._currentTour.useOrb),0<this._currentTour.steps.length&&(!this._currentTour.minimumScreenSize||window.innerWidth>=this._currentTour.minimumScreenSize)&&(this._currentTour.useOrb||document.body.classList.add("tour-open"),this._currentTour.steps[this._currentTourStepIndex].action&&this._currentTour.steps[this._currentTourStepIndex].action(),this._checkSelectorValidity()?this._guidedTourCurrentStepSubject.next(this.getPreparedTourStep(this._currentTourStepIndex)):this.nextStep())},p.prototype.activateOrb=function(){this._guidedTourOrbShowingSubject.next(!1),document.body.classList.add("tour-open")},p.prototype._setFirstAndLast=function(){this._onLastStep=this._currentTour.steps.length-1===this._currentTourStepIndex,this._onFirstStep=0===this._currentTourStepIndex},p.prototype._checkSelectorValidity=function(){return!(this._currentTour.steps[this._currentTourStepIndex].selector&&!document.querySelector(this._currentTour.steps[this._currentTourStepIndex].selector))||(this.errorHandler.handleError(new Error("Error finding selector "+this._currentTour.steps[this._currentTourStepIndex].selector+" on step "+(this._currentTourStepIndex+1)+" during guided tour: "+this._currentTour.tourId)),!1)},Object.defineProperty(p.prototype,"onLastStep",{get:function(){return this._onLastStep},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"onFirstStep",{get:function(){return this._onFirstStep},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"onResizeMessage",{get:function(){return this._onResizeMessage},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"currentTourStepDisplay",{get:function(){return this._currentTourStepIndex+1},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"currentTourStepCount",{get:function(){return this._currentTour&&this._currentTour.steps?this._currentTour.steps.length:0},enumerable:!0,configurable:!0}),Object.defineProperty(p.prototype,"preventBackdropFromAdvancing",{get:function(){return this._currentTour&&this._currentTour.preventBackdropFromAdvancing},enumerable:!0,configurable:!0}),p.prototype.getPreparedTourStep=function(t){return this.setTourOrientation(this._currentTour.steps[t])},p.prototype.setTourOrientation=function(t){var e=o.cloneDeep(t);if(e.orientation&&"string"!=typeof e.orientation&&e.orientation.length){e.orientation.sort(function(t,e){return e.maximumSize?t.maximumSize?e.maximumSize-t.maximumSize:-1:1});var r=u.Top;e.orientation.forEach(function(t){(!t.maximumSize||window.innerWidth<=t.maximumSize)&&(r=t.orientationDirection)}),e.orientation=r}return e},p.decorators=[{type:e.Injectable}],p.ctorParameters=function(){return[{type:e.ErrorHandler}]},p);function p(t){var e=this;this.errorHandler=t,this._guidedTourCurrentStepSubject=new n.Subject,this._guidedTourOrbShowingSubject=new n.Subject,this._currentTourStepIndex=0,this._currentTour=null,this._onFirstStep=!0,this._onLastStep=!0,this._onResizeMessage=!1,this.guidedTourCurrentStepStream=this._guidedTourCurrentStepSubject.asObservable(),this.guidedTourOrbShowingStream=this._guidedTourOrbShowingSubject.asObservable(),n.fromEvent(window,"resize").pipe(r.debounceTime(200)).subscribe(function(){e._currentTour&&-1<e._currentTourStepIndex&&(e._currentTour.minimumScreenSize&&e._currentTour.minimumScreenSize>=window.innerWidth?(e._onResizeMessage=!0,e._guidedTourCurrentStepSubject.next({title:"Please resize",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."})):(e._onResizeMessage=!1,e._guidedTourCurrentStepSubject.next(e.getPreparedTourStep(e._currentTourStepIndex))))})}var d=(Object.defineProperty(l.prototype,"maxWidthAdjustmentForTourStep",{get:function(){return this.tourStepWidth-this.minimalTourStepWidth},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"widthAdjustmentForScreenBound",{get:function(){if(!this.tourStep)return 0;var t=0;return this.calculatedLeftPosition<0&&(t=-this.calculatedLeftPosition),this.calculatedLeftPosition>window.innerWidth-this.tourStepWidth&&(t=this.calculatedLeftPosition-(window.innerWidth-this.tourStepWidth)),Math.min(this.maxWidthAdjustmentForTourStep,t)},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"calculatedTourStepWidth",{get:function(){return this.tourStepWidth-this.widthAdjustmentForScreenBound},enumerable:!0,configurable:!0}),l.prototype.ngAfterViewInit=function(){var e=this;this.guidedTourService.guidedTourCurrentStepStream.subscribe(function(t){(e.currentTourStep=t)&&t.selector&&document.querySelector(t.selector)?e.scrollToAndSetElement():e.selectedElementRect=null}),this.guidedTourService.guidedTourOrbShowingStream.subscribe(function(t){e.isOrbShowing=t}),this.resizeSubscription=n.fromEvent(window,"resize").subscribe(function(){e.updateStepLocation()}),this.scrollSubscription=n.fromEvent(window,"scroll").subscribe(function(){e.updateStepLocation()})},l.prototype.ngOnDestroy=function(){this.resizeSubscription.unsubscribe(),this.scrollSubscription.unsubscribe()},l.prototype.scrollToAndSetElement=function(){var r=this;this.updateStepLocation(),setTimeout(function(){if(!r.isOrbShowing&&!r.isTourOnScreen())if(r.selectedElementRect&&r.isBottom()){var t=window.scrollY+r.selectedElementRect.top-r.topOfPageAdjustment-(r.currentTourStep.scrollAdjustment?r.currentTourStep.scrollAdjustment:0)+r.getStepScreenAdjustment();try{window.scrollTo({left:null,top:t,behavior:"smooth"})}catch(e){if(!(e instanceof TypeError))throw e;window.scroll(0,t)}}else{t=window.scrollY+r.selectedElementRect.top+r.selectedElementRect.height-window.innerHeight+(r.currentTourStep.scrollAdjustment?r.currentTourStep.scrollAdjustment:0)-r.getStepScreenAdjustment();try{window.scrollTo({left:null,top:t,behavior:"smooth"})}catch(e){if(!(e instanceof TypeError))throw e;window.scroll(0,t)}}})},l.prototype.handleOrb=function(){this.guidedTourService.activateOrb(),this.currentTourStep&&this.currentTourStep.selector&&this.scrollToAndSetElement()},l.prototype.isTourOnScreen=function(){return this.tourStep&&this.elementInViewport(document.querySelector(this.currentTourStep.selector))&&this.elementInViewport(this.tourStep.nativeElement)},l.prototype.elementInViewport=function(t){for(var e=t.offsetTop,r=t.offsetHeight;t.offsetParent;)e+=(t=t.offsetParent).offsetTop;return this.isBottom()?e>=window.pageYOffset+this.topOfPageAdjustment+(this.currentTourStep.scrollAdjustment?this.currentTourStep.scrollAdjustment:0)+this.getStepScreenAdjustment()&&e+r<=window.pageYOffset+window.innerHeight:e>=window.pageYOffset+this.topOfPageAdjustment-this.getStepScreenAdjustment()&&e+r+(this.currentTourStep.scrollAdjustment?this.currentTourStep.scrollAdjustment:0)<=window.pageYOffset+window.innerHeight},l.prototype.backdropClick=function(t){this.guidedTourService.preventBackdropFromAdvancing?t.stopPropagation():this.guidedTourService.nextStep()},l.prototype.updateStepLocation=function(){if(this.currentTourStep&&this.currentTourStep.selector){var t=document.querySelector(this.currentTourStep.selector);this.selectedElementRect=t?t.getBoundingClientRect():null}else this.selectedElementRect=null},l.prototype.isBottom=function(){return this.currentTourStep.orientation&&(this.currentTourStep.orientation===u.Bottom||this.currentTourStep.orientation===u.BottomLeft||this.currentTourStep.orientation===u.BottomRight)},Object.defineProperty(l.prototype,"topPosition",{get:function(){var t=this.getHighlightPadding();return this.isBottom()?this.selectedElementRect.top+this.selectedElementRect.height+t:this.selectedElementRect.top-this.getHighlightPadding()},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"orbTopPosition",{get:function(){return this.isBottom()?this.selectedElementRect.top+this.selectedElementRect.height:this.currentTourStep.orientation===u.Right||this.currentTourStep.orientation===u.Left?this.selectedElementRect.top+this.selectedElementRect.height/2:this.selectedElementRect.top},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"calculatedLeftPosition",{get:function(){var t=this.getHighlightPadding();return this.currentTourStep.orientation===u.TopRight||this.currentTourStep.orientation===u.BottomRight?this.selectedElementRect.right-this.tourStepWidth:this.currentTourStep.orientation===u.TopLeft||this.currentTourStep.orientation===u.BottomLeft?this.selectedElementRect.left:this.currentTourStep.orientation===u.Left?this.selectedElementRect.left-this.tourStepWidth-t:this.currentTourStep.orientation===u.Right?this.selectedElementRect.left+this.selectedElementRect.width+t:this.selectedElementRect.right-this.selectedElementRect.width/2-this.tourStepWidth/2},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"leftPosition",{get:function(){if(0<=this.calculatedLeftPosition)return this.calculatedLeftPosition;var t=Math.max(0,-this.calculatedLeftPosition),e=Math.min(this.maxWidthAdjustmentForTourStep,t);return this.calculatedLeftPosition+e},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"orbLeftPosition",{get:function(){return this.currentTourStep.orientation===u.TopRight||this.currentTourStep.orientation===u.BottomRight?this.selectedElementRect.right:this.currentTourStep.orientation===u.TopLeft||this.currentTourStep.orientation===u.BottomLeft?this.selectedElementRect.left:this.currentTourStep.orientation===u.Left?this.selectedElementRect.left:this.currentTourStep.orientation===u.Right?this.selectedElementRect.left+this.selectedElementRect.width:this.selectedElementRect.right-this.selectedElementRect.width/2},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"transform",{get:function(){return this.currentTourStep.orientation&&this.currentTourStep.orientation!==u.Top&&this.currentTourStep.orientation!==u.TopRight&&this.currentTourStep.orientation!==u.TopLeft?null:"translateY(-100%)"},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"orbTransform",{get:function(){return this.currentTourStep.orientation&&this.currentTourStep.orientation!==u.Top&&this.currentTourStep.orientation!==u.Bottom&&this.currentTourStep.orientation!==u.TopLeft&&this.currentTourStep.orientation!==u.BottomLeft?this.currentTourStep.orientation===u.TopRight||this.currentTourStep.orientation===u.BottomRight?"translate(-100%, -50%)":this.currentTourStep.orientation===u.Right||this.currentTourStep.orientation===u.Left?"translate(-50%, -50%)":null:"translateY(-50%)"},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"overlayTop",{get:function(){return this.selectedElementRect?this.selectedElementRect.top-this.getHighlightPadding():0},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"overlayLeft",{get:function(){return this.selectedElementRect?this.selectedElementRect.left-this.getHighlightPadding():0},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"overlayHeight",{get:function(){return this.selectedElementRect?this.selectedElementRect.height+2*this.getHighlightPadding():0},enumerable:!0,configurable:!0}),Object.defineProperty(l.prototype,"overlayWidth",{get:function(){return this.selectedElementRect?this.selectedElementRect.width+2*this.getHighlightPadding():0},enumerable:!0,configurable:!0}),l.prototype.getHighlightPadding=function(){var t=this.currentTourStep.useHighlightPadding?this.highlightPadding:0;return this.currentTourStep.highlightPadding&&(t=this.currentTourStep.highlightPadding),t},l.prototype.getStepScreenAdjustment=function(){if(this.currentTourStep.orientation===u.Left||this.currentTourStep.orientation===u.Right)return 0;var t=this.selectedElementRect.height+(this.currentTourStep.scrollAdjustment?this.currentTourStep.scrollAdjustment:0)+this.tourStep.nativeElement.getBoundingClientRect().height;return window.innerHeight-this.topOfPageAdjustment<t?t-(window.innerHeight-this.topOfPageAdjustment):0},l.decorators=[{type:e.Component,args:[{selector:"ngx-guided-tour",template:'\n <div *ngIf="currentTourStep && selectedElementRect && isOrbShowing"\n (mouseenter)="handleOrb()"\n class="tour-orb tour-{{ currentTourStep.orientation }}"\n [style.top.px]="orbTopPosition"\n [style.left.px]="orbLeftPosition"\n [style.transform]="orbTransform">\n <div class="tour-orb-ring"></div>\n </div>\n <div *ngIf="currentTourStep && !isOrbShowing">\n <div class="guided-tour-user-input-mask" (click)="backdropClick($event)"></div>\n <div class="guided-tour-spotlight-overlay"\n [style.top.px]="overlayTop"\n [style.left.px]="overlayLeft"\n [style.height.px]="overlayHeight"\n [style.width.px]="overlayWidth">\n </div>\n </div>\n <div *ngIf="currentTourStep && !isOrbShowing">\n <div #tourStep *ngIf="currentTourStep"\n class="tour-step tour-{{ currentTourStep.orientation }}"\n [ngClass]="{\n \'page-tour-step\': !currentTourStep.selector\n }"\n [style.top.px]="(currentTourStep.selector && selectedElementRect ? topPosition : null)"\n [style.left.px]="(currentTourStep.selector && selectedElementRect ? leftPosition : null)"\n [style.width.px]="(currentTourStep.selector && selectedElementRect ? calculatedTourStepWidth : null)"\n [style.transform]="(currentTourStep.selector && selectedElementRect ? transform : null)">\n <div *ngIf="currentTourStep.selector" class="tour-arrow"></div>\n <div class="tour-block">\n <h3 class="tour-title" *ngIf="currentTourStep.title && currentTourStep.selector">\n {{ currentTourStep.title }}\n </h3>\n <h2 class="tour-title" *ngIf="currentTourStep.title && !currentTourStep.selector">\n {{ currentTourStep.title }}\n </h2>\n <div class="tour-content" [innerHTML]="currentTourStep.content"></div>\n <div class="tour-buttons">\n <button *ngIf="!guidedTourService.onResizeMessage"\n (click)="guidedTourService.skipTour()"\n class="skip-button link-button">\n {{ skipText }}\n </button>\n <button *ngIf="!guidedTourService.onLastStep && !guidedTourService.onResizeMessage"\n class="next-button"\n (click)="guidedTourService.nextStep()">\n {{ nextText }}&nbsp;&nbsp;{{ guidedTourService.currentTourStepDisplay }}/{{ guidedTourService.currentTourStepCount }}\n </button>\n <button *ngIf="guidedTourService.onLastStep"\n class="next-button"\n (click)="guidedTourService.nextStep()">\n {{ doneText }}\n </button>\n\n <button *ngIf="guidedTourService.onResizeMessage"\n class="next-button"\n (click)="guidedTourService.resetTour()">\n {{ closeText }}\n </button>\n <button *ngIf="!guidedTourService.onFirstStep && !guidedTourService.onResizeMessage"\n class="back-button link-button"\n (click)="guidedTourService.backStep()">\n {{ backText }}\n </button>\n </div>\n </div>\n </div>\n </div>\n ',encapsulation:e.ViewEncapsulation.None,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 rgba(0,0,0,.7),0 0 1.5rem rgba(0,0,0,.5)}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%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);-webkit-animation:2s linear infinite pulse;animation:2s linear infinite pulse}ngx-guided-tour .tour-orb .tour-orb-ring:after{content:'';display:inline-block;height:100%;width:100%;border-radius:50%}@-webkit-keyframes pulse{from{-webkit-transform:translate(-50%,-50%) scale(.45);transform:translate(-50%,-50%) scale(.45);opacity:1}to{-webkit-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1);opacity:0}}@keyframes pulse{from{-webkit-transform:translate(-50%,-50%) scale(.45);transform:translate(-50%,-50%) scale(.45);opacity:1}to{-webkit-transform:translate(-50%,-50%) scale(1);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%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}ngx-guided-tour .tour-step.tour-bottom .tour-arrow::before,ngx-guided-tour .tour-step.tour-bottom-left .tour-arrow::before,ngx-guided-tour .tour-step.tour-bottom-right .tour-arrow::before{position:absolute}ngx-guided-tour .tour-step.tour-bottom .tour-block,ngx-guided-tour .tour-step.tour-bottom-left .tour-block,ngx-guided-tour .tour-step.tour-bottom-right .tour-block{margin-top:10px}ngx-guided-tour .tour-step.tour-top,ngx-guided-tour .tour-step.tour-top-left,ngx-guided-tour .tour-step.tour-top-right{margin-bottom:10px}ngx-guided-tour .tour-step.tour-top .tour-arrow::before,ngx-guided-tour .tour-step.tour-top-left .tour-arrow::before,ngx-guided-tour .tour-step.tour-top-right .tour-arrow::before{position:absolute;bottom:0}ngx-guided-tour .tour-step.tour-top .tour-block,ngx-guided-tour .tour-step.tour-top-left .tour-block,ngx-guided-tour .tour-step.tour-top-right .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{-webkit-transform:translateX(-50%);transform:translateX(-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{-webkit-transform:translateX(-100%);transform:translateX(-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%;-webkit-transform:translateX(-100%);transform:translateX(-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-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:0;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:0;padding-left:10px;padding-right:10px}"]}]}],l.ctorParameters=function(){return[{type:c}]},l.propDecorators={topOfPageAdjustment:[{type:e.Input}],tourStepWidth:[{type:e.Input}],minimalTourStepWidth:[{type:e.Input}],skipText:[{type:e.Input}],nextText:[{type:e.Input}],doneText:[{type:e.Input}],closeText:[{type:e.Input}],backText:[{type:e.Input}],tourStep:[{type:e.ViewChild,args:["tourStep"]}]},l);function l(t){this.guidedTourService=t,this.topOfPageAdjustment=0,this.tourStepWidth=300,this.minimalTourStepWidth=200,this.skipText="Skip",this.nextText="Next",this.doneText="Done",this.closeText="Close",this.backText="Back",this.highlightPadding=4,this.currentTourStep=null,this.selectedElementRect=null,this.isOrbShowing=!1,this._announcementsCount=0}var a=(h.forRoot=function(){return{ngModule:h,providers:[e.ErrorHandler,c]}},h.decorators=[{type:e.NgModule,args:[{declarations:[d],imports:[i.CommonModule],exports:[d],entryComponents:[d]}]}],h);function h(){}t.GuidedTourModule=a,t.GuidedTourComponent=d,t.GuidedTourService=c,t.Orientation=u,Object.defineProperty(t,"__esModule",{value:!0})}); //# sourceMappingURL=ngx-guided-tour.umd.min.js.map