UNPKG

angular-t9n

Version:
190 lines (176 loc) 26.5 kB
import {I as It,C as Ct,w as wt,J,r as rt,a as at}from'./chunk-BVUXkDrv.js';import {J as Jt,v as vt,t as ti,q as qe,g as gt}from'./chunk-Cfbj5Ou5.js';import {H as ge,I as ce,N as We,R as Xo,b4 as Vv,g,bb as bG,as as gd,ah as le,a4 as Qd,G as Gd,ar as Js,bX as VS,D,i as xv,F,aA as st,j as hD,k as Ai,B as Ba,a7 as pD,a9 as ye,a6 as Ee,K,bu as Ey,bY as It$1,b9 as nr,A as At,a8 as bv,bZ as Mt,bJ as Ud,bR as Mt$1,e as en,b_ as He,aj as Mo,bj as aa,bv as vH,b6 as Qm,L as Ls,c as Ym,t as pb,J as Jl,bw as kh,o as Lm,ad as xm,w as Xb,d as bg,af as Ql,C as gb,P as Pm,b3 as sd,ag as jo,ax as rd,ay as ey,az as ty,b8 as Jm,X,bS as At$1,E as EC,aE as Zb,f as fy,aY as bb,b7 as Xm,bH as uC,aZ as Ih,a_ as wh}from'./main-XWPOM5LO.js';import {_,d as de,U as Ut,K as Kt}from'./chunk-BaYJwvwh.js';import {d}from'./chunk-C2N3F-hv.js';var je=["trigger"],Qe=["panel"],Ye=[[["mat-select-trigger"]],"*"],Ue=["mat-select-trigger","*"];function Xe(a,u){if(a&1&&(Ls(0,"span",4),EC(1),Jl()),a&2){let e=Zb();bg(),fy(e.placeholder);}}function Je(a,u){a&1&&Xm(0);}function Ze(a,u){if(a&1&&(Ls(0,"span",11),EC(1),Jl()),a&2){let e=Zb(2);bg(),fy(e.triggerValue);}}function $e(a,u){if(a&1&&(Ls(0,"span",5),pb(1,Je,1,0)(2,Ze,2,1,"span",11),Jl()),a&2){let e=Zb();bg(),gb(e.customTrigger?1:2);}}function et(a,u){if(a&1){let e=bb();Ls(0,"div",12,1),Ym("keydown",function(i){Ih(e);let n=Zb();return wh(n._handleKeydown(i))}),Xm(2,1),Jl();}if(a&2){let e=Zb();uC(e.panelClass),jo("mat-select-panel-animations-enabled",!e._animationsDisabled)("mat-primary",e._parentFormField?.color==="primary")("mat-accent",e._parentFormField?.color==="accent")("mat-warn",e._parentFormField?.color==="warn")("mat-undefined",!e._parentFormField?.color),Ql("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby());}}var tt=new D("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let a=g(X);return ()=>At$1(a)}}),it=new D("MAT_SELECT_CONFIG"),nt=new D("MatSelectTrigger"),B=class{source;value;constructor(u,e){this.source=u,this.value=e;}},Rt=(()=>{class a{_viewportRuler=g(bG);_changeDetectorRef=g(gd);_elementRef=g(le);_dir=g(Qd,{optional:true});_idGenerator=g(Gd);_renderer=g(Js);_parentFormField=g(vt,{optional:true});ngControl=g(_,{self:true,optional:true});_liveAnnouncer=g(VS);_defaultOptions=g(it,{optional:true});_animationsDisabled=xv();_popoverLocation;_initialized=new F;_cleanupDetach;options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(e){let t=this.options.toArray()[e];if(t){let i=this.panel.nativeElement,n=Ct(e,this.options,this.optionGroups),r=t._getHostElement();e===0&&n===1?i.scrollTop=0:i.scrollTop=wt(r.offsetTop,r.offsetHeight,i.scrollTop,i.offsetHeight);}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0);}_getChangeEvent(e){return new B(this,e)}_scrollStrategyFactory=g(tt);_panelOpen=false;_compareWith=(e,t)=>e===t;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new F;_errorStateTracker;stateChanges=new F;disableAutomaticLabeling=true;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=false;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=false;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e);}_disableRipple=st(false);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties();}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??false;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next();}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(de.required)??false}set required(e){this._required=e,this.stateChanges.next();}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e;}_multiple=false;disableOptionCentering=this._defaultOptions?.disableOptionCentering??false;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection();}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e);}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e;}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next();}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e;}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??false;optionSelectionChanges=hD(()=>{let e=this.options;return e?e.changes.pipe(Ai(e),Ba(()=>pD(...e.map(t=>t.onSelectionChange)))):this._initialized.pipe(Ba(()=>this.optionSelectionChanges))});openedChange=new ye;_openedStream=this.openedChange.pipe(Ee(e=>e),K(()=>{}));_closedStream=this.openedChange.pipe(Ee(e=>!e),K(()=>{}));selectionChange=new ye;valueChange=new ye;constructor(){let e=g(ti),t=g(Ut,{optional:true}),i=g(Kt,{optional:true}),n=g(new Ey("tabindex"),{optional:true}),r=g(It$1,{optional:true});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new qe(e,this.ngControl,i,t,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=n==null?0:parseInt(n)||0,this._popoverLocation=r?.usePopover===false?null:"inline",this.id=this.id;}ngOnInit(){this._selectionModel=new d(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(nr(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges());});}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(nr(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect());}),this.options.changes.pipe(Ai(null),nr(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection();});}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){let i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?i.setAttribute("aria-labelledby",e):i.removeAttribute("aria-labelledby");}t&&(this._previousControl!==t.control&&(this._previousControl!==void 0&&t.disabled!==null&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState());}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval),e.panelClass&&this.panelClass instanceof Set&&(this.panelClass=Array.from(this.panelClass));}ngOnDestroy(){this._cleanupDetach?.(),this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete();}toggle(){this.panelOpen?this.close():this.open();}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._panelOpen=true,this._overlayDir.positionChange.pipe(At(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled();}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(true)));}close(){this._panelOpen&&(this._panelOpen=false,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(false)));}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{t(),clearTimeout(i),this._cleanupDetach=void 0;};let e=this.panel.nativeElement,t=this._renderer.listen(e,"animationend",n=>{n.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay());}),i=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay();},200);e.classList.add("mat-select-panel-exit");}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck();}writeValue(e){this._assignValue(e);}registerOnChange(e){this._onChange=e;}registerOnTouched(e){this._onTouched=e;}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next();}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return "";if(this._multiple){let e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState();}_isRtl(){return this._dir?this._dir.value==="rtl":false}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e));}_handleClosedKeydown(e){let t=e.keyCode,i=t===40||t===38||t===37||t===39,n=t===13||t===32,r=this._keyManager;if(!r.isTyping()&&n&&!bv(e)||(this.multiple||e.altKey)&&i)e.preventDefault(),this.open();else if(!this.multiple){let g=this.selected;r.onKeydown(e);let o=this.selected;o&&g!==o&&this._liveAnnouncer.announce(o.viewValue,1e4);}}_handleOpenKeydown(e){let t=this._keyManager,i=e.keyCode,n=i===40||i===38,r=t.isTyping();if(n&&e.altKey)e.preventDefault(),this.close();else if(!r&&(i===13||i===32)&&t.activeItem&&!bv(e))e.preventDefault(),t.activeItem._selectViaInteraction();else if(!r&&this._multiple&&i===65&&e.ctrlKey){e.preventDefault();let g=this.options.some(o=>!o.disabled&&!o.selected);this.options.forEach(o=>{o.disabled||(g?o.select():o.deselect());});}else {let g=t.activeItemIndex;t.onKeydown(e),this._multiple&&n&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==g&&t.activeItem._selectViaInteraction();}}_handleOverlayKeydown(e){e.keyCode===27&&!bv(e)&&(e.preventDefault(),this.close());}_onFocus(){this.disabled||(this._focused=true,this.stateChanges.next());}_onBlur(){this._focused=false,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next());}get empty(){return !this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next();});}_setSelectionByValue(e){if(this.options.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else {let t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1);}this._changeDetectorRef.markForCheck();}_selectOptionByValue(e){let t=this.options.find(i=>{if(this._selectionModel.isSelected(i))return false;try{return (i.value!=null||this.canSelectNullableOptions)&&this._compareWith(i.value,e)}catch(n){return false}});return t&&this._selectionModel.select(t),t}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,true):false}_skipPredicate=e=>this.panelOpen?false:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof Mt?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck();}_initKeyManager(){this._keyManager=new Ud(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close());}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction();});}_resetOptions(){let e=pD(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(nr(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus());}),pD(...this.options.map(t=>t._stateChanges)).pipe(nr(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next();});}_onSelect(e,t){let i=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(i!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())),i!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next();}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((t,i)=>this.sortComparator?this.sortComparator(t,i,e):e.indexOf(t)-e.indexOf(i)),this.stateChanges.next();}}_propagateChanges(e){let t;this.multiple?t=this.selected.map(i=>i.value):t=this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck();}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let t=0;t<this.options.length;t++)if(!this.options.get(t).disabled){e=t;break}this._keyManager.setActiveItem(e);}else this._keyManager.setActiveItem(this._selectionModel.selected[0]);}_canOpen(){return !this._panelOpen&&!this.disabled&&this.options?.length>0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e);}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,t=e?e+" ":"";return this.ariaLabelledby?t+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e||(e=this._valueId),e}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let t=this._elementRef.nativeElement;e.length?t.setAttribute("aria-describedby",e.join(" ")):t.removeAttribute("aria-describedby");}onContainerClick(e){let t=Mt$1(e);t&&(t.tagName==="MAT-OPTION"||t.classList.contains("cdk-overlay-backdrop")||t.closest(".mat-mdc-select-panel"))||(this.focus(),this.open());}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(t){return new(t||a)};static \u0275cmp=en({type:a,selectors:[["mat-select"]],contentQueries:function(t,i,n){if(t&1&&Jm(n,nt,5)(n,J,5)(n,rt,5),t&2){let r;ey(r=ty())&&(i.customTrigger=r.first),ey(r=ty())&&(i.options=r),ey(r=ty())&&(i.optionGroups=r);}},viewQuery:function(t,i){if(t&1&&rd(je,5)(Qe,5)(He,5),t&2){let n;ey(n=ty())&&(i.trigger=n.first),ey(n=ty())&&(i.panel=n.first),ey(n=ty())&&(i._overlayDir=n.first);}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(t,i){t&1&&Ym("keydown",function(r){return i._handleKeydown(r)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),t&2&&(Ql("id",i.id)("tabindex",i.disabled?-1:i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),jo("mat-mdc-select-disabled",i.disabled)("mat-mdc-select-invalid",i.errorState)("mat-mdc-select-required",i.required)("mat-mdc-select-empty",i.empty)("mat-mdc-select-multiple",i.multiple)("mat-select-open",i.panelOpen));},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",aa],disableRipple:[2,"disableRipple","disableRipple",aa],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:vH(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",aa],placeholder:"placeholder",required:[2,"required","required",aa],multiple:[2,"multiple","multiple",aa],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",aa],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",vH],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",aa]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[sd([{provide:gt,useExisting:a},{provide:at,useExisting:a}]),Mo],ngContentSelectors:Ue,decls:11,vars:10,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions","cdkConnectedOverlayUsePopover"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",1,"mat-mdc-select-panel","mdc-menu-surface","mdc-menu-surface--open",3,"keydown"]],template:function(t,i){if(t&1&&(Qm(Ye),Ls(0,"div",2,0),Ym("click",function(){return i.open()}),Ls(3,"div",3),pb(4,Xe,2,1,"span",4)(5,$e,3,1,"span",5),Jl(),Ls(6,"div",6)(7,"div",7),kh(),Ls(8,"svg",8),Lm(9,"path",9),Jl()()()(),xm(10,et,3,16,"ng-template",10),Ym("detach",function(){return i.close()})("backdropClick",function(){return i.close()})("overlayKeydown",function(r){return i._handleOverlayKeydown(r)})),t&2){let n=Xb(1);bg(3),Ql("id",i._valueId),bg(),gb(i.empty?4:5),bg(6),Pm("cdkConnectedOverlayDisableClose",true)("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",i._preferredOverlayOrigin||n)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayWidth",i._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",true)("cdkConnectedOverlayUsePopover",i._popoverLocation);}},dependencies:[Mt,He],styles:[`@keyframes _mat-select-enter { from { opacity: 0; transform: scaleY(0.8); } to { opacity: 1; transform: none; } } @keyframes _mat-select-exit { from { opacity: 1; } to { opacity: 0; } } .mat-mdc-select { display: inline-block; width: 100%; outline: none; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; color: var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface)); font-family: var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font)); line-height: var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height)); font-size: var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size)); font-weight: var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight)); letter-spacing: var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking)); } div.mat-mdc-select-panel { box-shadow: var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)); } .mat-mdc-select-disabled { color: var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); } .mat-mdc-select-disabled .mat-mdc-select-placeholder { color: var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); } .mat-mdc-select-trigger { display: inline-flex; align-items: center; cursor: pointer; position: relative; box-sizing: border-box; width: 100%; } .mat-mdc-select-disabled .mat-mdc-select-trigger { -webkit-user-select: none; user-select: none; cursor: default; } .mat-mdc-select-value { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .mat-mdc-select-value-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mat-mdc-select-arrow-wrapper { height: 24px; flex-shrink: 0; display: inline-flex; align-items: center; } .mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper { transform: none; } .mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow, .mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after { color: var(--mat-select-invalid-arrow-color, var(--mat-sys-error)); } .mat-mdc-select-arrow { width: 10px; height: 5px; position: relative; color: var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant)); } .mat-mdc-form-field.mat-focused .mat-mdc-select-arrow { color: var(--mat-select-focused-arrow-color, var(--mat-sys-primary)); } .mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow { color: var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); } .mat-select-open .mat-mdc-select-arrow { transform: rotate(180deg); } .mat-form-field-animations-enabled .mat-mdc-select-arrow { transition: transform 80ms linear; } .mat-mdc-select-arrow svg { fill: currentColor; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); } @media (forced-colors: active) { .mat-mdc-select-arrow svg { fill: CanvasText; } .mat-mdc-select-disabled .mat-mdc-select-arrow svg { fill: GrayText; } } div.mat-mdc-select-panel { width: 100%; max-height: 275px; outline: 0; overflow: auto; padding: 8px 0; box-sizing: border-box; transform-origin: top center; border-radius: 0 0 4px 4px; position: relative; background-color: var(--mat-select-panel-background-color, var(--mat-sys-surface-container)); } .mat-mdc-select-panel-above div.mat-mdc-select-panel { border-radius: 4px 4px 0 0; transform-origin: bottom center; } @media (forced-colors: active) { div.mat-mdc-select-panel { outline: solid 1px; } } .mat-select-panel-animations-enabled { animation: _mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1); } .mat-select-panel-animations-enabled.mat-select-panel-exit { animation: _mat-select-exit 100ms linear; } .mat-mdc-select-placeholder { transition: color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1); color: var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant)); } .mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder, ._mat-animation-noopable .mat-mdc-select-placeholder { transition: none; } .mat-form-field-hide-placeholder .mat-mdc-select-placeholder { color: transparent; -webkit-text-fill-color: transparent; transition: none; display: block; } .mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper { cursor: pointer; } .mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label { max-width: calc(100% - 18px); } .mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above { max-width: calc(100% / 0.75 - 24px); } .mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch { max-width: calc(100% - 60px); } .mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch { max-width: calc(100% - 24px); } .mat-mdc-select-min-line:empty::before { content: " "; white-space: pre; width: 1px; display: inline-block; visibility: hidden; } .mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper { transform: var(--mat-select-arrow-transform, translateY(-8px)); } `],encapsulation:2})}return a})();var Ft=(()=>{class a{static \u0275fac=function(t){return new(t||a)};static \u0275mod=ge({type:a});static \u0275inj=ce({imports:[We,It,Xo,Vv,Jt,It]})}return a})();export{Ft as F,Rt as R};