/**
 * Minified by jsDelivr using Terser v5.37.0.
 * Original file: /npm/@taiga-ui/addon-tablebars@3.89.0/bundles/taiga-ui-addon-tablebars.umd.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@ng-web-apis/common"),require("@taiga-ui/cdk"),require("@taiga-ui/core"),require("rxjs"),require("@angular/common"),require("@tinkoff/ng-polymorpheus")):"function"==typeof define&&define.amd?define("@taiga-ui/addon-tablebars",["exports","@angular/core","@ng-web-apis/common","@taiga-ui/cdk","@taiga-ui/core","rxjs","@angular/common","@tinkoff/ng-polymorpheus"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self)["taiga-ui"]=e["taiga-ui"]||{},e["taiga-ui"]["addon-tablebars"]={}),e.ng.core,e.common,e.cdk,e.i1,e.rxjs,e.ng.common,e.i3)}(this,(function(e,t,n,o,i,r,a,s){"use strict";function c(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var u=c(t),l=c(i),d=c(r),p=c(a),m=c(s),g=function(){function e(e,t,n){void 0===n&&(n={}),this.observer=e,this.content=t;var o=n.mode,i=void 0===o?"onLight":o,r=n.hasCloseButton,a=void 0!==r&&r,s=n.adaptive,c=void 0!==s&&s;this.mode=i,this.hasCloseButton=a,this.adaptive=c}return e.prototype.close=function(){this.observer.complete()},e}(),b=function(){function e(){this.bar$=new r.ReplaySubject(1)}return e.prototype.open=function(e,t){var n=this;return new r.Observable((function(i){ngDevMode&&o.tuiAssert.assert(o.tuiIsObserved(n.bar$),"Table bars are disabled, enable support by adding TuiTableBarsHostModule to your main app module and tui-table-bars-host component to app template");var r=new g(i,e,t);return n.bar$.next(r),function(){n.bar$.next(null)}}))},e}();b.ɵfac=u.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.17",ngImport:u,type:b,deps:[],target:u.ɵɵFactoryTarget.Injectable}),b.ɵprov=u.ɵɵngDeclareInjectable({minVersion:"12.0.0",version:"12.2.17",ngImport:u,type:b,providedIn:"root"}),u.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.17",ngImport:u,type:b,decorators:[{type:t.Injectable,args:[{providedIn:"root"}]}]});var h=function(){function e(e,t,n,o,i,r){this.service=e,this.closeWord$=t,this.icons=n,this.animation=o,this.media=i,this.win=r}return Object.defineProperty(e.prototype,"isMobile",{get:function(){return i.tuiIsMobile(this.win,this.media)},enumerable:!1,configurable:!0}),e.prototype.getMode=function(e){return"onLight"===e?"onDark":null},e.prototype.onCloseClick=function(e){e.close()},e.prototype.getItemContext=function(e){return{$implicit:function(){return e.close()}}},e}();h.ɵfac=u.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.17",ngImport:u,type:h,deps:[{token:b},{token:i.TUI_CLOSE_WORD},{token:i.TUI_COMMON_ICONS},{token:i.TUI_ANIMATION_OPTIONS},{token:i.TUI_MEDIA},{token:n.WINDOW}],target:u.ɵɵFactoryTarget.Component}),h.ɵcmp=u.ɵɵngDeclareComponent({minVersion:"12.0.0",version:"12.2.17",type:h,selector:"tui-table-bars-host",ngImport:u,template:'<div\n    *ngIf="service.bar$ | async as item"\n    class="t-wrapper"\n    @tuiParentAnimation\n>\n    <div\n        automation-id="tui-table-bar__bar"\n        class="t-bar"\n        [@tuiSlideInTop]="animation"\n        [class.t-bar_light]="item.mode === \'onDark\'"\n    >\n        <div\n            class="t-container"\n            [class.t-container_adaptive]="item.adaptive"\n        >\n            <div class="t-inner">\n                <div class="t-content">\n                    \x3c!-- TODO: Polymorpheus fix type --\x3e\n                    <ng-container *polymorpheusOutlet="$any(item.content) as text; context: getItemContext(item)">\n                        {{ text }}\n                    </ng-container>\n                </div>\n\n                <button\n                    *ngIf="item.hasCloseButton"\n                    appearance="icon"\n                    automation-id="tui-table-bar__close-button"\n                    size="xs"\n                    tuiIconButton\n                    type="button"\n                    class="t-close-button"\n                    [icon]="icons.close"\n                    [title]="closeWord$ | async"\n                    [tuiMode]="getMode(item.mode)"\n                    (click)="onCloseClick(item)"\n                ></button>\n            </div>\n        </div>\n    </div>\n</div>\n',styles:[":host{position:fixed;bottom:0;left:0;display:flex;align-items:flex-end;width:100%;height:0}.t-wrapper{display:flex;width:100%}.t-bar{box-shadow:var(--tui-shadow);flex:0 0 100%;background:var(--tui-base-07);color:var(--tui-base-01)}.t-bar_light{background:var(--tui-base-01);color:var(--tui-text-01)}.t-container{position:relative;margin:0 auto}@media screen and (min-width: 80em){.t-container.t-container_adaptive{width:69rem}}@media screen and (max-width: 79.9625em){.t-container.t-container_adaptive{width:51.5rem}}@media screen and (max-width: 47.9625em){.t-container.t-container_adaptive{width:100%;padding:0 1rem;box-sizing:border-box}}@media screen and (min-width: 80em){.t-container{width:69rem}}@media screen and (max-width: 79.9625em){.t-container{width:51.5rem;padding:0 3rem}}.t-inner{display:flex;align-items:center;height:4.5rem;width:100%;overflow:hidden}:host-context(tui-root._mobile) .t-inner{height:5.75rem}.t-close-button{margin-left:1.5rem}.t-content{width:100%;flex:1 1 0}\n"],components:[{type:l.TuiButtonComponent,selector:"button[tuiButton], button[tuiIconButton], a[tuiButton], a[tuiIconButton]",inputs:["appearance","disabled","icon","iconRight","shape","showLoader","size"]}],directives:[{type:p.NgIf,selector:"[ngIf]",inputs:["ngIf","ngIfThen","ngIfElse"]},{type:m.PolymorpheusOutletDirective,selector:"[polymorpheusOutlet]",inputs:["polymorpheusOutlet","polymorpheusOutletContext"]},{type:l.TuiModeDirective,selector:"[tuiMode]",inputs:["tuiMode"]}],pipes:{async:p.AsyncPipe},animations:[i.tuiSlideInTop,o.TUI_PARENT_ANIMATION],changeDetection:u.ChangeDetectionStrategy.OnPush}),u.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.17",ngImport:u,type:h,decorators:[{type:t.Component,args:[{selector:"tui-table-bars-host",templateUrl:"./table-bars-host.template.html",styleUrls:["./table-bars-host.style.less"],changeDetection:t.ChangeDetectionStrategy.OnPush,animations:[i.tuiSlideInTop,o.TUI_PARENT_ANIMATION]}]}],ctorParameters:function(){return[{type:b,decorators:[{type:t.Inject,args:[b]}]},{type:d.Observable,decorators:[{type:t.Inject,args:[i.TUI_CLOSE_WORD]}]},{type:void 0,decorators:[{type:t.Inject,args:[i.TUI_COMMON_ICONS]}]},{type:void 0,decorators:[{type:t.Inject,args:[i.TUI_ANIMATION_OPTIONS]}]},{type:void 0,decorators:[{type:t.Inject,args:[i.TUI_MEDIA]}]},{type:Window,decorators:[{type:t.Inject,args:[n.WINDOW]}]}]}});var y=function(){};y.ɵfac=u.ɵɵngDeclareFactory({minVersion:"12.0.0",version:"12.2.17",ngImport:u,type:y,deps:[],target:u.ɵɵFactoryTarget.NgModule}),y.ɵmod=u.ɵɵngDeclareNgModule({minVersion:"12.0.0",version:"12.2.17",ngImport:u,type:y,declarations:[h],imports:[a.CommonModule,s.PolymorpheusModule,i.TuiModeModule,i.TuiButtonModule],exports:[h]}),y.ɵinj=u.ɵɵngDeclareInjector({minVersion:"12.0.0",version:"12.2.17",ngImport:u,type:y,imports:[[a.CommonModule,s.PolymorpheusModule,i.TuiModeModule,i.TuiButtonModule]]}),u.ɵɵngDeclareClassMetadata({minVersion:"12.0.0",version:"12.2.17",ngImport:u,type:y,decorators:[{type:t.NgModule,args:[{imports:[a.CommonModule,s.PolymorpheusModule,i.TuiModeModule,i.TuiButtonModule],declarations:[h],exports:[h]}]}]}),e.TuiTableBar=g,e.TuiTableBarsHostComponent=h,e.TuiTableBarsHostModule=y,e.TuiTableBarsService=b,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=/sm/24ad5c0faf9a89db9eb0cf293d07007b1d11e78811274fb25debce0b96b9a528.map