System.register(["@angular/core","@angular/material/core","@angular/cdk/platform","@angular/common"],function(o){"use strict";var t,e,r,n,i;return{setters:[function(o){t=o,o.Directive,o.Component,o.ChangeDetectionStrategy,o.ViewEncapsulation,o.Inject,o.ContentChildren,o.NgModule},function(o){e=o.mixinColor,r=o.MatCommonModule},function(o){n=o},function(o){i=o.DOCUMENT}],execute:function(){o("throwToolbarMixedModesError",u);const a=["*",[["mat-toolbar-row"]]],l=e(class{constructor(o){this._elementRef=o}});class s{}o("MatToolbarRow",s),s.\u0275fac=function(o){return new(o||s)},s.\u0275dir=t.\u0275\u0275defineDirective({type:s,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]});class c extends l{constructor(o,t,e){super(o),this._platform=t,this._document=e}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length,0}}function u(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `<mat-toolbar-row>` elements explicitly or just place content inside of a `<mat-toolbar>` for a single row.")}o("MatToolbar",c),c.\u0275fac=function(o){return new(o||c)(t.\u0275\u0275directiveInject(t.ElementRef),t.\u0275\u0275directiveInject(n.Platform),t.\u0275\u0275directiveInject(i))},c.\u0275cmp=t.\u0275\u0275defineComponent({type:c,selectors:[["mat-toolbar"]],contentQueries:function(o,e,r){if(1&o&&t.\u0275\u0275contentQuery(r,s,5),2&o){let o;t.\u0275\u0275queryRefresh(o=t.\u0275\u0275loadQuery())&&(e._toolbarRows=o)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(o,e){2&o&&t.\u0275\u0275classProp("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[t.\u0275\u0275InheritDefinitionFeature],ngContentSelectors:["*","mat-toolbar-row"],decls:2,vars:0,template:function(o,e){1&o&&(t.\u0275\u0275projectionDef(a),t.\u0275\u0275projection(0),t.\u0275\u0275projection(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}"],encapsulation:2,changeDetection:0});class m{}o("MatToolbarModule",m),m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.\u0275\u0275defineNgModule({type:m}),m.\u0275inj=t.\u0275\u0275defineInjector({imports:[r,r]})}}});
