{ "version": 3, "sources": ["../ui/app/ajs.upgraded.components.js", "../ui/app/mn.focus.directive.js", "../ui/app/mn.spinner.directive.js", "../ui/app/mn.shared.module.js"], "sourcesContent": ["/*\nCopyright 2020-Present Couchbase, Inc.\n\nUse of this software is governed by the Business Source License included in\nthe file licenses/BSL-Couchbase.txt. As of the Change Date specified in that\nfile, in accordance with the Business Source License, use of this software will\nbe governed by the Apache License, Version 2.0, included in the file\nlicenses/APL2.txt.\n*/\n//setAngularJSGlobal should be called after each\n//@angular/upgrade/static to protect esbuild from crash\nimport angular from 'angular';\nimport {Directive, ElementRef, Injector} from '@angular/core';\nimport {UpgradeComponent, setAngularJSGlobal} from '@angular/upgrade/static';\nsetAngularJSGlobal(angular);\n\nexport {MnDetailStatsDirective, MnMainSpinnerDirective};\n\nclass MnDetailStatsDirective extends UpgradeComponent {\n static get annotations() { return [\n new Directive({\n selector: \"mn-detail-stats\",\n inputs: [\n \"mnTitle\",\n \"bucket\",\n \"itemId\",\n \"service\",\n \"prefix\",\n \"nodeName\"\n ]\n })\n ]}\n\n static get parameters() { return [\n ElementRef,\n Injector\n ]}\n\n constructor(elementRef, injector) {\n super('mnDetailStats', elementRef, injector);\n }\n}\n\nclass MnMainSpinnerDirective extends UpgradeComponent {\n static get annotations() { return [\n new Directive({\n selector: \"mn-main-spinner\",\n inputs: [\n \"mnSpinnerValue\"\n ]\n })\n ]}\n\n static get parameters() { return [\n ElementRef,\n Injector\n ]}\n\n constructor(elementRef, injector) {\n super('mnMainSpinner', elementRef, injector);\n }\n}\n", "/*\nCopyright 2020-Present Couchbase, Inc.\n\nUse of this software is governed by the Business Source License included in\nthe file licenses/BSL-Couchbase.txt. As of the Change Date specified in that\nfile, in accordance with the Business Source License, use of this software will\nbe governed by the Apache License, Version 2.0, included in the file\nlicenses/APL2.txt.\n*/\n\nimport {ChangeDetectionStrategy, Directive, ElementRef} from '@angular/core';\nimport {BehaviorSubject} from 'rxjs';\nimport {filter, takeUntil} from 'rxjs/operators';\nimport {MnLifeCycleHooksToStream} from './mn.core.js';\n\nexport { MnFocusDirective };\n\nclass MnFocusDirective extends MnLifeCycleHooksToStream {\n static get annotations() { return [\n new Directive({\n selector: \"[mnFocus]\",\n inputs: [\n \"mnFocus\",\n \"mnName\"\n ],\n changeDetection: ChangeDetectionStrategy.OnPush\n })\n ]}\n\n\n static get parameters() { return [\n ElementRef\n ]}\n\n constructor(el) {\n super();\n this.el = el.nativeElement;\n }\n\n ngOnInit() {\n this.mnFocus = this.mnFocus || new BehaviorSubject(true);\n this.mnFocus.pipe(\n filter(this.maybePrevent.bind(this)),\n takeUntil(this.mnOnDestroy)\n ).subscribe(this.doFocus.bind(this));\n }\n\n doFocus() {\n this.el.focus();\n }\n\n maybePrevent(value) {\n return (typeof value === \"string\") ? value === this.mnName : value;\n }\n\n}\n", "/*\nCopyright 2021-Present Couchbase, Inc.\n\nUse of this software is governed by the Business Source License included in\nthe file licenses/BSL-Couchbase.txt. As of the Change Date specified in that\nfile, in accordance with the Business Source License, use of this software will\nbe governed by the Apache License, Version 2.0, included in the file\nlicenses/APL2.txt.\n*/\n\nimport { ChangeDetectionStrategy, Directive, ElementRef, Renderer2 } from '@angular/core';\nimport { MnLifeCycleHooksToStream } from './mn.core.js';\n\nexport { MnSpinnerDirective };\n\nclass MnSpinnerDirective extends MnLifeCycleHooksToStream {\n static get annotations() { return [\n new Directive({\n selector: \"[mnSpinner]\",\n inputs: [\"mnSpinner\"],\n changeDetection: ChangeDetectionStrategy.OnPush\n })\n ]}\n\n\n static get parameters() { return [\n ElementRef,\n Renderer2\n ]}\n\n constructor(el, mnRenderer) {\n super();\n\n this.renderer = mnRenderer;\n this.el = el;\n\n this.loadingElement = this.renderer.createElement('div');\n\n this.renderer.addClass(this.loadingElement, 'spinner');\n this.renderer.addClass(this.el.nativeElement, 'relative')\n this.renderer.appendChild(this.el.nativeElement, this.loadingElement);\n }\n\n ngOnChanges() {\n if (this.mnSpinner) {\n this.renderer.addClass(this.loadingElement, 'hidden');\n } else {\n this.renderer.removeClass(this.loadingElement, 'hidden');\n }\n }\n}\n", "/*\nCopyright 2020-Present Couchbase, Inc.\n\nUse of this software is governed by the Business Source License included in\nthe file licenses/BSL-Couchbase.txt. As of the Change Date specified in that\nfile, in accordance with the Business Source License, use of this software will\nbe governed by the Apache License, Version 2.0, included in the file\nlicenses/APL2.txt.\n*/\n\nimport {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {ReactiveFormsModule} from '@angular/forms';\n\nimport {MnFocusDirective} from './mn.focus.directive.js';\nimport {MnSpinnerDirective} from './mn.spinner.directive.js';\nimport {MnMainSpinnerDirective} from './ajs.upgraded.components.js';\n\nexport {MnSharedModule}\n\nclass MnSharedModule {\n static get annotations() { return [\n new NgModule({\n imports: [\n ReactiveFormsModule,\n CommonModule,\n // ngb.NgbModule,\n ],\n declarations: [\n MnFocusDirective,\n MnMainSpinnerDirective,\n MnSpinnerDirective\n // mn.components.MnAutoCompactionForm,\n // mn.components.MnPeriod,\n // mn.components.MnServicesConfig,\n // mn.components.MnSearch,\n // mn.components.MnSearchField\n ],\n exports: [\n MnFocusDirective,\n MnMainSpinnerDirective,\n MnSpinnerDirective,\n CommonModule\n // mn.components.MnServicesConfig,\n // mn.components.MnAutoCompactionForm,\n // mn.components.MnSearch,\n // mn.components.MnSearchField\n ]\n })\n ]}\n}\n"], "mappings": "+ZAcA,mBAAmB,WAInB,wCAAqC,iBAAiB,WACzC,cAAc,CAAE,MAAO,CAChC,GAAI,WAAU,CACZ,SAAU,kBACV,OAAQ,CACN,UACA,SACA,SACA,UACA,SACA,yBAKK,aAAa,CAAE,MAAO,CAC/B,WACA,UAGF,YAAY,WAAY,SAAU,CAChC,MAAM,gBAAiB,WAAY,YArBvC,wDAyBA,wCAAqC,iBAAiB,WACzC,cAAc,CAAE,MAAO,CAChC,GAAI,WAAU,CACZ,SAAU,kBACV,OAAQ,CACN,+BAKK,aAAa,CAAE,MAAO,CAC/B,WACA,UAGF,YAAY,WAA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