@signalk/freeboard-sk 2.24.0 → 2.24.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/assets/icons/icon-192x192.png +0 -0
- package/docs/screenshots/1_freeboard-sk.png +0 -0
- package/docs/screenshots/README.md +31 -0
- package/package.json +26 -7
- package/public/3rdpartylicenses.txt +9 -361
- package/public/chunk-2AF4T5IB.js +1 -0
- package/public/chunk-346FAZUS.js +1 -0
- package/public/{chunk-BTVNOQ7K.js → chunk-3GHIRJ3C.js} +2 -2
- package/public/chunk-4SHFYAXK.js +1 -0
- package/public/{chunk-2LV2AYBP.js → chunk-64QDJX7X.js} +1 -1
- package/public/chunk-A4TULHTL.js +1 -0
- package/public/chunk-AEB5DG3B.js +1 -0
- package/public/chunk-AFVK3UQJ.js +5482 -0
- package/public/chunk-AX3UMUXB.js +1 -0
- package/public/{chunk-TLBNKF2R.js → chunk-EFVTFEXB.js} +1 -1
- package/public/chunk-FALIRPMH.js +1035 -0
- package/public/{chunk-A7QJNGJ7.js → chunk-FEIJMPL7.js} +2 -2
- package/public/chunk-G4GM24WE.js +1 -0
- package/public/{chunk-DPEXDGKO.js → chunk-GQXHMDKV.js} +1 -1
- package/public/chunk-KFWFMRV7.js +1 -0
- package/public/chunk-LXUTMJYP.js +1145 -0
- package/public/chunk-NTIQMWPW.js +2718 -0
- package/public/chunk-QIOZNURQ.js +1 -0
- package/public/chunk-RWJHAOI2.js +1 -0
- package/public/chunk-SBFXQ3G7.js +1 -0
- package/public/chunk-TAJAMNLU.js +1 -0
- package/public/chunk-UEUVGTXJ.js +1 -0
- package/public/{chunk-WUXY5N7A.js → chunk-WA2ENVQZ.js} +1 -1
- package/public/index.html +2 -2
- package/public/main-AZEF35BN.js +466 -0
- package/public/polyfills-RV3JTMEC.js +2 -0
- package/public/styles-FMJMFQ5P.css +1 -0
- package/public/worker-AUTVLQL7.js +3 -0
- package/public/worker-FRXPLBUO.js +12 -0
- package/public/worker-T4RJR7DG.js +12 -0
- package/public/worker-Y35X2QU7.js +26 -0
- package/public/chunk-3MOH2GUU.js +0 -1
- package/public/chunk-3ZBG3EOD.js +0 -1
- package/public/chunk-4SN3Q6K3.js +0 -1
- package/public/chunk-5KDMJ54F.js +0 -1
- package/public/chunk-67IVDHNW.js +0 -1
- package/public/chunk-AZK5ODAA.js +0 -1
- package/public/chunk-GMWUHE7S.js +0 -131
- package/public/chunk-GQRIAFM6.js +0 -1
- package/public/chunk-HQSHA6SH.js +0 -13
- package/public/chunk-LXWUCH7T.js +0 -1
- package/public/chunk-QPQHN5VS.js +0 -22
- package/public/chunk-RBFFWNLA.js +0 -1
- package/public/chunk-TQPGRJVE.js +0 -19
- package/public/chunk-V3DD3MHN.js +0 -1
- package/public/chunk-Y6FV7FIU.js +0 -1
- package/public/chunk-YPACWLLV.js +0 -1
- package/public/chunk-YUTPR5Z4.js +0 -1
- package/public/main-SF5NH7GR.js +0 -11
- package/public/polyfills-5CFQRCPP.js +0 -2
- package/public/styles-N7HVRSAT.css +0 -1
- package/public/worker-42LKK6ER.js +0 -26
- package/public/worker-FPJG6QKK.js +0 -5
- package/public/worker-UZNU4LIJ.js +0 -12
- package/public/worker-WYOFLVNH.js +0 -12
|
@@ -0,0 +1,1035 @@
|
|
|
1
|
+
import{Aa as H,B as ye,C as _t,Ca as Ne,Cb as oa,Cc as wt,Cd as Ta,D as R,Da as ae,Dc as ca,Ea as ie,Ec as O,Ed as rt,F as gt,Fa as u,Fc as ha,Fd as xt,G as ce,Ga as d,Gb as Je,Gc as Me,Gd as Va,H as $,Ha as c,Hc as pa,Hd as Be,I as x,Ia as M,J as ea,Ja as F,Jc as at,K as s,Ka as L,Kc as ma,Kd as ot,L as b,La as na,Lc as ua,M as y,Mc as _a,Md as Oa,N as ve,Nc as it,Nd as Ra,O as ft,Ob as V,Oc as kt,Od as Fa,P as Z,Pa as ne,Pc as Mt,Pd as Pa,Q as qe,Qa as re,Qb as S,Qc as nt,Qd as La,Ra as g,Rb as vt,Rd as st,S as p,Sa as Ue,T as Pe,Ta as m,Tc as ga,Td as Et,U as f,Ua as Ce,Uc as fa,Ud as Na,Va as oe,Vc as Ae,Vd as It,W as J,Wa as Xe,Wc as ba,X as ta,Xa as N,Xd as Ya,Ya as v,Z as P,Za as D,_d as Tt,a as K,ad as ya,bb as $e,bd as va,be as Ba,c as C,cb as Ze,cd as Da,db as A,dc as et,de as Ha,ea as l,fa as ke,fb as he,fc as Dt,gb as h,gc as sa,gd as At,h as Ke,hb as E,hc as we,hd as Ca,he as za,ia as De,ib as pe,j as ut,jb as yt,jc as Ct,je as Wa,ka as aa,kb as G,kd as X,ke as ja,la as Qe,lb as q,lc as se,ld as wa,le as Vt,m as Jt,ma as w,mb as Q,me as lt,na as ee,nc as me,ne as Ka,oa as te,oe as dt,pc as la,pd as ka,pe as Ga,q as de,qa as bt,qd as St,qe as qa,r as Fe,ra as Le,rb as U,rc as da,rd as Ma,re as Qa,sb as ra,sd as Aa,se as Ua,ta as ia,te as Xa,uc as tt,vd as Sa,w as Ge,wc as ue,wd as xa,xc as Ye,xd as Ea,ya as k,yd as Ia,za as B}from"./chunk-NTIQMWPW.js";import{a as be,b as Zt}from"./chunk-EQVTEUXC.js";var He=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected=null;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new C;constructor(o=!1,e,t=!0,a){this._multiple=o,this._emitChanges=t,this.compareWith=a,e&&e.length&&(o?e.forEach(i=>this._markSelected(i)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...o){this._verifyValueAssignment(o),o.forEach(t=>this._markSelected(t));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...o){this._verifyValueAssignment(o),o.forEach(t=>this._unmarkSelected(t));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...o){this._verifyValueAssignment(o);let e=this.selected,t=new Set(o.map(i=>this._getConcreteValue(i)));o.forEach(i=>this._markSelected(i)),e.filter(i=>!t.has(this._getConcreteValue(i,t))).forEach(i=>this._unmarkSelected(i));let a=this._hasQueuedChanges();return this._emitChangeEvent(),a}toggle(o){return this.isSelected(o)?this.deselect(o):this.select(o)}clear(o=!0){this._unmarkAll();let e=this._hasQueuedChanges();return o&&this._emitChangeEvent(),e}isSelected(o){return this._selection.has(this._getConcreteValue(o))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(o){this._multiple&&this.selected&&this._selected.sort(o)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(o){o=this._getConcreteValue(o),this.isSelected(o)||(this._multiple||this._unmarkAll(),this.isSelected(o)||this._selection.add(o),this._emitChanges&&this._selectedToEmit.push(o))}_unmarkSelected(o){o=this._getConcreteValue(o),this.isSelected(o)&&(this._selection.delete(o),this._emitChanges&&this._deselectedToEmit.push(o))}_unmarkAll(){this.isEmpty()||this._selection.forEach(o=>this._unmarkSelected(o))}_verifyValueAssignment(o){o.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(o,e){if(this.compareWith){e=e??this._selection;for(let t of e)if(this.compareWith(o,t))return t;return o}else return o}};var Mi=(()=>{class n{_listeners=[];notify(e,t){for(let a of this._listeners)a(e,t)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(t=>e!==t)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(t){return new(t||n)};static \u0275prov=ce({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var $a=(()=>{class n{_animationsDisabled=X();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=w({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(t,a){t&2&&A("mat-pseudo-checkbox-indeterminate",a.state==="indeterminate")("mat-pseudo-checkbox-checked",a.state==="checked")("mat-pseudo-checkbox-disabled",a.disabled)("mat-pseudo-checkbox-minimal",a.appearance==="minimal")("mat-pseudo-checkbox-full",a.appearance==="full")("_mat-animation-noopable",a._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(t,a){},styles:[`.mat-pseudo-checkbox {
|
|
2
|
+
border-radius: 2px;
|
|
3
|
+
cursor: pointer;
|
|
4
|
+
display: inline-block;
|
|
5
|
+
vertical-align: middle;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
position: relative;
|
|
8
|
+
flex-shrink: 0;
|
|
9
|
+
transition: border-color 90ms cubic-bezier(0, 0, 0.2, 0.1), background-color 90ms cubic-bezier(0, 0, 0.2, 0.1);
|
|
10
|
+
}
|
|
11
|
+
.mat-pseudo-checkbox::after {
|
|
12
|
+
position: absolute;
|
|
13
|
+
opacity: 0;
|
|
14
|
+
content: "";
|
|
15
|
+
border-bottom: 2px solid currentColor;
|
|
16
|
+
transition: opacity 90ms cubic-bezier(0, 0, 0.2, 0.1);
|
|
17
|
+
}
|
|
18
|
+
.mat-pseudo-checkbox._mat-animation-noopable {
|
|
19
|
+
transition: none !important;
|
|
20
|
+
animation: none !important;
|
|
21
|
+
}
|
|
22
|
+
.mat-pseudo-checkbox._mat-animation-noopable::after {
|
|
23
|
+
transition: none;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.mat-pseudo-checkbox-disabled {
|
|
27
|
+
cursor: default;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.mat-pseudo-checkbox-indeterminate::after {
|
|
31
|
+
left: 1px;
|
|
32
|
+
opacity: 1;
|
|
33
|
+
border-radius: 2px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.mat-pseudo-checkbox-checked::after {
|
|
37
|
+
left: 1px;
|
|
38
|
+
border-left: 2px solid currentColor;
|
|
39
|
+
transform: rotate(-45deg);
|
|
40
|
+
opacity: 1;
|
|
41
|
+
box-sizing: content-box;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after, .mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after {
|
|
45
|
+
color: var(--mat-pseudo-checkbox-minimal-selected-checkmark-color, var(--mat-sys-primary));
|
|
46
|
+
}
|
|
47
|
+
.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after, .mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after {
|
|
48
|
+
color: var(--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.mat-pseudo-checkbox-full {
|
|
52
|
+
border-color: var(--mat-pseudo-checkbox-full-unselected-icon-color, var(--mat-sys-on-surface-variant));
|
|
53
|
+
border-width: 2px;
|
|
54
|
+
border-style: solid;
|
|
55
|
+
}
|
|
56
|
+
.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled {
|
|
57
|
+
border-color: var(--mat-pseudo-checkbox-full-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
|
|
58
|
+
}
|
|
59
|
+
.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked, .mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate {
|
|
60
|
+
background-color: var(--mat-pseudo-checkbox-full-selected-icon-color, var(--mat-sys-primary));
|
|
61
|
+
border-color: transparent;
|
|
62
|
+
}
|
|
63
|
+
.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after, .mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after {
|
|
64
|
+
color: var(--mat-pseudo-checkbox-full-selected-checkmark-color, var(--mat-sys-on-primary));
|
|
65
|
+
}
|
|
66
|
+
.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled, .mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled {
|
|
67
|
+
background-color: var(--mat-pseudo-checkbox-full-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
|
|
68
|
+
}
|
|
69
|
+
.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after, .mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after {
|
|
70
|
+
color: var(--mat-pseudo-checkbox-full-disabled-selected-checkmark-color, var(--mat-sys-surface));
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.mat-pseudo-checkbox {
|
|
74
|
+
width: 18px;
|
|
75
|
+
height: 18px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after {
|
|
79
|
+
width: 14px;
|
|
80
|
+
height: 6px;
|
|
81
|
+
transform-origin: center;
|
|
82
|
+
top: -4.2426406871px;
|
|
83
|
+
left: 0;
|
|
84
|
+
bottom: 0;
|
|
85
|
+
right: 0;
|
|
86
|
+
margin: auto;
|
|
87
|
+
}
|
|
88
|
+
.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after {
|
|
89
|
+
top: 8px;
|
|
90
|
+
width: 16px;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after {
|
|
94
|
+
width: 10px;
|
|
95
|
+
height: 4px;
|
|
96
|
+
transform-origin: center;
|
|
97
|
+
top: -2.8284271247px;
|
|
98
|
+
left: 0;
|
|
99
|
+
bottom: 0;
|
|
100
|
+
right: 0;
|
|
101
|
+
margin: auto;
|
|
102
|
+
}
|
|
103
|
+
.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after {
|
|
104
|
+
top: 6px;
|
|
105
|
+
width: 12px;
|
|
106
|
+
}
|
|
107
|
+
`],encapsulation:2,changeDetection:0})}return n})();var Ai=["text"],Si=[[["mat-icon"]],"*"],xi=["mat-icon","*"];function Ei(n,o){if(n&1&&M(0,"mat-pseudo-checkbox",1),n&2){let e=m();u("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function Ii(n,o){if(n&1&&M(0,"mat-pseudo-checkbox",3),n&2){let e=m();u("disabled",e.disabled)}}function Ti(n,o){if(n&1&&(d(0,"span",4),h(1),c()),n&2){let e=m();l(),pe("(",e.group.label,")")}}var Rt=new x("MAT_OPTION_PARENT_COMPONENT"),Ft=new x("MatOptgroup");var Ot=class{source;isUserInput;constructor(o,e=!1){this.source=o,this.isUserInput=e}},Se=(()=>{class n{_element=s(P);_changeDetectorRef=s(V);_parent=s(Rt,{optional:!0});group=s(Ft,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=s(ue).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=f(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new p;_text;_stateChanges=new C;constructor(){let e=s(we);e.load(rt),e.load(Ae),this._signalDisableRipple=!!this._parent&&ia(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,t){let a=this._getHostElement();typeof a.focus=="function"&&a.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!O(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new Ot(this,e))}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=w({type:n,selectors:[["mat-option"]],viewQuery:function(t,a){if(t&1&&N(Ai,7),t&2){let i;v(i=D())&&(a._text=i.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(t,a){t&1&&g("click",function(){return a._selectViaInteraction()})("keydown",function(r){return a._handleKeydown(r)}),t&2&&(re("id",a.id),k("aria-selected",a.selected)("aria-disabled",a.disabled.toString()),A("mdc-list-item--selected",a.selected)("mat-mdc-option-multiple",a.multiple)("mat-mdc-option-active",a.active)("mdc-list-item--disabled",a.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",S]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:xi,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,a){t&1&&(Ce(Si),B(0,Ei,1,2,"mat-pseudo-checkbox",1),oe(1),d(2,"span",2,0),oe(4,1),c(),B(5,Ii,1,1,"mat-pseudo-checkbox",3),B(6,Ti,2,1,"span",4),M(7,"div",5)),t&2&&(H(a.multiple?0:-1),l(5),H(!a.multiple&&a.selected&&!a.hideSingleSelectionIndicator?5:-1),l(),H(a.group&&a.group._inert?6:-1),l(),u("matRippleTrigger",a._getHostElement())("matRippleDisabled",a.disabled||a.disableRipple))},dependencies:[$a,Ta],styles:[`.mat-mdc-option {
|
|
108
|
+
-webkit-user-select: none;
|
|
109
|
+
user-select: none;
|
|
110
|
+
-moz-osx-font-smoothing: grayscale;
|
|
111
|
+
-webkit-font-smoothing: antialiased;
|
|
112
|
+
display: flex;
|
|
113
|
+
position: relative;
|
|
114
|
+
align-items: center;
|
|
115
|
+
justify-content: flex-start;
|
|
116
|
+
overflow: hidden;
|
|
117
|
+
min-height: 48px;
|
|
118
|
+
padding: 0 16px;
|
|
119
|
+
cursor: pointer;
|
|
120
|
+
-webkit-tap-highlight-color: transparent;
|
|
121
|
+
color: var(--mat-option-label-text-color, var(--mat-sys-on-surface));
|
|
122
|
+
font-family: var(--mat-option-label-text-font, var(--mat-sys-label-large-font));
|
|
123
|
+
line-height: var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));
|
|
124
|
+
font-size: var(--mat-option-label-text-size, var(--mat-sys-body-large-size));
|
|
125
|
+
letter-spacing: var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));
|
|
126
|
+
font-weight: var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight));
|
|
127
|
+
}
|
|
128
|
+
.mat-mdc-option:hover:not(.mdc-list-item--disabled) {
|
|
129
|
+
background-color: var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));
|
|
130
|
+
}
|
|
131
|
+
.mat-mdc-option:focus.mdc-list-item, .mat-mdc-option.mat-mdc-option-active.mdc-list-item {
|
|
132
|
+
background-color: var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));
|
|
133
|
+
outline: 0;
|
|
134
|
+
}
|
|
135
|
+
.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-active, .mat-mdc-option-multiple, :focus, :hover) {
|
|
136
|
+
background-color: var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container));
|
|
137
|
+
}
|
|
138
|
+
.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-active, .mat-mdc-option-multiple, :focus, :hover) .mdc-list-item__primary-text {
|
|
139
|
+
color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container));
|
|
140
|
+
}
|
|
141
|
+
.mat-mdc-option .mat-pseudo-checkbox {
|
|
142
|
+
--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container));
|
|
143
|
+
}
|
|
144
|
+
.mat-mdc-option.mdc-list-item {
|
|
145
|
+
align-items: center;
|
|
146
|
+
background: transparent;
|
|
147
|
+
}
|
|
148
|
+
.mat-mdc-option.mdc-list-item--disabled {
|
|
149
|
+
cursor: default;
|
|
150
|
+
pointer-events: none;
|
|
151
|
+
}
|
|
152
|
+
.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox, .mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text, .mat-mdc-option.mdc-list-item--disabled > mat-icon {
|
|
153
|
+
opacity: 0.38;
|
|
154
|
+
}
|
|
155
|
+
.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple) {
|
|
156
|
+
padding-left: 32px;
|
|
157
|
+
}
|
|
158
|
+
[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple) {
|
|
159
|
+
padding-left: 16px;
|
|
160
|
+
padding-right: 32px;
|
|
161
|
+
}
|
|
162
|
+
.mat-mdc-option .mat-icon,
|
|
163
|
+
.mat-mdc-option .mat-pseudo-checkbox-full {
|
|
164
|
+
margin-right: 16px;
|
|
165
|
+
flex-shrink: 0;
|
|
166
|
+
}
|
|
167
|
+
[dir=rtl] .mat-mdc-option .mat-icon,
|
|
168
|
+
[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full {
|
|
169
|
+
margin-right: 0;
|
|
170
|
+
margin-left: 16px;
|
|
171
|
+
}
|
|
172
|
+
.mat-mdc-option .mat-pseudo-checkbox-minimal {
|
|
173
|
+
margin-left: 16px;
|
|
174
|
+
flex-shrink: 0;
|
|
175
|
+
}
|
|
176
|
+
[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal {
|
|
177
|
+
margin-right: 16px;
|
|
178
|
+
margin-left: 0;
|
|
179
|
+
}
|
|
180
|
+
.mat-mdc-option .mat-mdc-option-ripple {
|
|
181
|
+
top: 0;
|
|
182
|
+
left: 0;
|
|
183
|
+
right: 0;
|
|
184
|
+
bottom: 0;
|
|
185
|
+
position: absolute;
|
|
186
|
+
pointer-events: none;
|
|
187
|
+
}
|
|
188
|
+
.mat-mdc-option .mdc-list-item__primary-text {
|
|
189
|
+
white-space: normal;
|
|
190
|
+
font-size: inherit;
|
|
191
|
+
font-weight: inherit;
|
|
192
|
+
letter-spacing: inherit;
|
|
193
|
+
line-height: inherit;
|
|
194
|
+
font-family: inherit;
|
|
195
|
+
text-decoration: inherit;
|
|
196
|
+
text-transform: inherit;
|
|
197
|
+
margin-right: auto;
|
|
198
|
+
}
|
|
199
|
+
[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text {
|
|
200
|
+
margin-right: 0;
|
|
201
|
+
margin-left: auto;
|
|
202
|
+
}
|
|
203
|
+
@media (forced-colors: active) {
|
|
204
|
+
.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after {
|
|
205
|
+
content: "";
|
|
206
|
+
position: absolute;
|
|
207
|
+
top: 50%;
|
|
208
|
+
right: 16px;
|
|
209
|
+
transform: translateY(-50%);
|
|
210
|
+
width: 10px;
|
|
211
|
+
height: 0;
|
|
212
|
+
border-bottom: solid 10px;
|
|
213
|
+
border-radius: 10px;
|
|
214
|
+
}
|
|
215
|
+
[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after {
|
|
216
|
+
right: auto;
|
|
217
|
+
left: 16px;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.mat-mdc-option-multiple {
|
|
222
|
+
--mat-list-list-item-selected-container-color: var(--mat-list-list-item-container-color, transparent);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.mat-mdc-option-active .mat-focus-indicator::before {
|
|
226
|
+
content: "";
|
|
227
|
+
}
|
|
228
|
+
`],encapsulation:2,changeDetection:0})}return n})();function Za(n,o,e){if(e.length){let t=o.toArray(),a=e.toArray(),i=0;for(let r=0;r<n+1;r++)t[r].group&&t[r].group===a[i]&&i++;return i}return 0}function Ja(n,o,e,t){return n<e?n:n+o>e+t?Math.max(0,n-t+o):e}var ei=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=ee({type:n});static \u0275inj=$({imports:[me]})}return n})();var Pt=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=ee({type:n});static \u0275inj=$({imports:[Va,ei,Se,me]})}return n})();var Oi=["trigger"],Ri=["panel"],Fi=[[["mat-select-trigger"]],"*"],Pi=["mat-select-trigger","*"];function Li(n,o){if(n&1&&(d(0,"span",4),h(1),c()),n&2){let e=m();l(),E(e.placeholder)}}function Ni(n,o){n&1&&oe(0)}function Yi(n,o){if(n&1&&(d(0,"span",11),h(1),c()),n&2){let e=m(2);l(),E(e.triggerValue)}}function Bi(n,o){if(n&1&&(d(0,"span",5),B(1,Ni,1,0)(2,Yi,2,1,"span",11),c()),n&2){let e=m();l(),H(e.customTrigger?1:2)}}function Hi(n,o){if(n&1){let e=ne();d(0,"div",12,1),g("keydown",function(a){b(e);let i=m();return y(i._handleKeydown(a))}),oe(2,1),c()}if(n&2){let e=m();he(e.panelClass),A("mat-select-panel-animations-enabled",!e._animationsDisabled)("mat-primary",(e._parentFormField==null?null:e._parentFormField.color)==="primary")("mat-accent",(e._parentFormField==null?null:e._parentFormField.color)==="accent")("mat-warn",(e._parentFormField==null?null:e._parentFormField.color)==="warn")("mat-undefined",!(e._parentFormField!=null&&e._parentFormField.color)),k("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var zi=new x("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let n=s(Z);return()=>Me(n)}}),Wi=new x("MAT_SELECT_CONFIG"),ti=new x("MatSelectTrigger"),Lt=class{source;value;constructor(o,e){this.source=o,this.value=e}},ai=(()=>{class n{_viewportRuler=s(da);_changeDetectorRef=s(V);_elementRef=s(P);_dir=s(se,{optional:!0});_idGenerator=s(ue);_renderer=s(De);_parentFormField=s(lt,{optional:!0});ngControl=s(Et,{self:!0,optional:!0});_liveAnnouncer=s(va);_defaultOptions=s(Wi,{optional:!0});_animationsDisabled=X();_popoverLocation;_initialized=new C;_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 a=this.panel.nativeElement,i=Za(e,this.options,this.optionGroups),r=t._getHostElement();e===0&&i===1?a.scrollTop=0:a.scrollTop=Ja(r.offsetTop,r.offsetHeight,a.scrollTop,a.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new Lt(this,e)}_scrollStrategyFactory=s(zi);_panelOpen=!1;_compareWith=(e,t)=>e===t;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new C;_errorStateTracker;stateChanges=new C;disableAutomaticLabeling=!0;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=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=f(!1);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(st.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;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??!1;optionSelectionChanges=Jt(()=>{let e=this.options;return e?e.changes.pipe(ye(e),_t(()=>de(...e.map(t=>t.onSelectionChange)))):this._initialized.pipe(_t(()=>this.optionSelectionChanges))});openedChange=new p;_openedStream=this.openedChange.pipe(Fe(e=>e),ut(()=>{}));_closedStream=this.openedChange.pipe(Fe(e=>!e),ut(()=>{}));selectionChange=new p;valueChange=new p;constructor(){let e=s(qa),t=s(It,{optional:!0}),a=s(Tt,{optional:!0}),i=s(new Je("tabindex"),{optional:!0}),r=s(_a,{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new Qa(e,this.ngControl,a,t,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=i==null?0:parseInt(i)||0,this._popoverLocation=r?.usePopover===!1?null:"inline",this.id=this.id}ngOnInit(){this._selectionModel=new He(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(R(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(R(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(ye(null),R(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){let a=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?a.setAttribute("aria-labelledby",e):a.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(),this._clearFromModal()}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._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe(Ge(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(!0)))}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let t=`${this.id}-panel`;this._trackedModal&&St(this._trackedModal,"aria-owns",t),ka(e,"aria-owns",t),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;St(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{t(),clearTimeout(a),this._cleanupDetach=void 0};let e=this.panel.nativeElement,t=this._renderer.listen(e,"animationend",i=>{i.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),a=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":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let t=e.keyCode,a=t===40||t===38||t===37||t===39,i=t===13||t===32,r=this._keyManager;if(!r.isTyping()&&i&&!O(e)||(this.multiple||e.altKey)&&a)e.preventDefault(),this.open();else if(!this.multiple){let _=this.selected;r.onKeydown(e);let T=this.selected;T&&_!==T&&this._liveAnnouncer.announce(T.viewValue,1e4)}}_handleOpenKeydown(e){let t=this._keyManager,a=e.keyCode,i=a===40||a===38,r=t.isTyping();if(i&&e.altKey)e.preventDefault(),this.close();else if(!r&&(a===13||a===32)&&t.activeItem&&!O(e))e.preventDefault(),t.activeItem._selectViaInteraction();else if(!r&&this._multiple&&a===65&&e.ctrlKey){e.preventDefault();let _=this.options.some(T=>!T.disabled&&!T.selected);this.options.forEach(T=>{T.disabled||(_?T.select():T.deselect())})}else{let _=t.activeItemIndex;t.onKeydown(e),this._multiple&&i&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==_&&t.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!O(e)&&(e.preventDefault(),this.close())}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,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)Array.isArray(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(a=>{if(this._selectionModel.isSelected(a))return!1;try{return(a.value!=null||this.canSelectNullableOptions)&&this._compareWith(a.value,e)}catch(i){return!1}});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,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof kt?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 wa(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=de(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(R(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),de(...this.options.map(t=>t._stateChanges)).pipe(R(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,t){let a=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(a!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())),a!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((t,a)=>this.sortComparator?this.sortComparator(t,a,e):e.indexOf(t)-e.indexOf(a)),this.stateChanges.next()}}_propagateChanges(e){let t;this.multiple?t=this.selected.map(a=>a.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=sa(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||n)};static \u0275cmp=w({type:n,selectors:[["mat-select"]],contentQueries:function(t,a,i){if(t&1&&Xe(i,ti,5)(i,Se,5)(i,Ft,5),t&2){let r;v(r=D())&&(a.customTrigger=r.first),v(r=D())&&(a.options=r),v(r=D())&&(a.optionGroups=r)}},viewQuery:function(t,a){if(t&1&&N(Oi,5)(Ri,5)(Mt,5),t&2){let i;v(i=D())&&(a.trigger=i.first),v(i=D())&&(a.panel=i.first),v(i=D())&&(a._overlayDir=i.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(t,a){t&1&&g("keydown",function(r){return a._handleKeydown(r)})("focus",function(){return a._onFocus()})("blur",function(){return a._onBlur()}),t&2&&(k("id",a.id)("tabindex",a.disabled?-1:a.tabIndex)("aria-controls",a.panelOpen?a.id+"-panel":null)("aria-expanded",a.panelOpen)("aria-label",a.ariaLabel||null)("aria-required",a.required.toString())("aria-disabled",a.disabled.toString())("aria-invalid",a.errorState)("aria-activedescendant",a._getAriaActiveDescendant()),A("mat-mdc-select-disabled",a.disabled)("mat-mdc-select-invalid",a.errorState)("mat-mdc-select-required",a.required)("mat-mdc-select-empty",a.empty)("mat-mdc-select-multiple",a.multiple)("mat-select-open",a.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",S],disableRipple:[2,"disableRipple","disableRipple",S],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:vt(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",S],placeholder:"placeholder",required:[2,"required","required",S],multiple:[2,"multiple","multiple",S],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",S],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",vt],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",S]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[U([{provide:Vt,useExisting:n},{provide:Rt,useExisting:n}]),J],ngContentSelectors:Pi,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,a){if(t&1&&(Ce(Fi),d(0,"div",2,0),g("click",function(){return a.open()}),d(3,"div",3),B(4,Li,2,1,"span",4)(5,Bi,3,1,"span",5),c(),d(6,"div",6)(7,"div",7),ve(),d(8,"svg",8),M(9,"path",9),c()()()(),Le(10,Hi,3,16,"ng-template",10),g("detach",function(){return a.close()})("backdropClick",function(){return a.close()})("overlayKeydown",function(r){return a._handleOverlayKeydown(r)})),t&2){let i=$e(1);l(3),k("id",a._valueId),l(),H(a.empty?4:5),l(6),u("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",a._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",a._scrollStrategy)("cdkConnectedOverlayOrigin",a._preferredOverlayOrigin||i)("cdkConnectedOverlayPositions",a._positions)("cdkConnectedOverlayWidth",a._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)("cdkConnectedOverlayUsePopover",a._popoverLocation)}},dependencies:[kt,Mt],styles:[`@keyframes _mat-select-enter {
|
|
229
|
+
from {
|
|
230
|
+
opacity: 0;
|
|
231
|
+
transform: scaleY(0.8);
|
|
232
|
+
}
|
|
233
|
+
to {
|
|
234
|
+
opacity: 1;
|
|
235
|
+
transform: none;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
@keyframes _mat-select-exit {
|
|
239
|
+
from {
|
|
240
|
+
opacity: 1;
|
|
241
|
+
}
|
|
242
|
+
to {
|
|
243
|
+
opacity: 0;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
.mat-mdc-select {
|
|
247
|
+
display: inline-block;
|
|
248
|
+
width: 100%;
|
|
249
|
+
outline: none;
|
|
250
|
+
-moz-osx-font-smoothing: grayscale;
|
|
251
|
+
-webkit-font-smoothing: antialiased;
|
|
252
|
+
color: var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));
|
|
253
|
+
font-family: var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));
|
|
254
|
+
line-height: var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));
|
|
255
|
+
font-size: var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));
|
|
256
|
+
font-weight: var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));
|
|
257
|
+
letter-spacing: var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking));
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
div.mat-mdc-select-panel {
|
|
261
|
+
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));
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
.mat-mdc-select-disabled {
|
|
265
|
+
color: var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
|
|
266
|
+
}
|
|
267
|
+
.mat-mdc-select-disabled .mat-mdc-select-placeholder {
|
|
268
|
+
color: var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.mat-mdc-select-trigger {
|
|
272
|
+
display: inline-flex;
|
|
273
|
+
align-items: center;
|
|
274
|
+
cursor: pointer;
|
|
275
|
+
position: relative;
|
|
276
|
+
box-sizing: border-box;
|
|
277
|
+
width: 100%;
|
|
278
|
+
}
|
|
279
|
+
.mat-mdc-select-disabled .mat-mdc-select-trigger {
|
|
280
|
+
-webkit-user-select: none;
|
|
281
|
+
user-select: none;
|
|
282
|
+
cursor: default;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.mat-mdc-select-value {
|
|
286
|
+
width: 100%;
|
|
287
|
+
overflow: hidden;
|
|
288
|
+
text-overflow: ellipsis;
|
|
289
|
+
white-space: nowrap;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.mat-mdc-select-value-text {
|
|
293
|
+
white-space: nowrap;
|
|
294
|
+
overflow: hidden;
|
|
295
|
+
text-overflow: ellipsis;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
.mat-mdc-select-arrow-wrapper {
|
|
299
|
+
height: 24px;
|
|
300
|
+
flex-shrink: 0;
|
|
301
|
+
display: inline-flex;
|
|
302
|
+
align-items: center;
|
|
303
|
+
}
|
|
304
|
+
.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper {
|
|
305
|
+
transform: none;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,
|
|
309
|
+
.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after {
|
|
310
|
+
color: var(--mat-select-invalid-arrow-color, var(--mat-sys-error));
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
.mat-mdc-select-arrow {
|
|
314
|
+
width: 10px;
|
|
315
|
+
height: 5px;
|
|
316
|
+
position: relative;
|
|
317
|
+
color: var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant));
|
|
318
|
+
}
|
|
319
|
+
.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow {
|
|
320
|
+
color: var(--mat-select-focused-arrow-color, var(--mat-sys-primary));
|
|
321
|
+
}
|
|
322
|
+
.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow {
|
|
323
|
+
color: var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
|
|
324
|
+
}
|
|
325
|
+
.mat-select-open .mat-mdc-select-arrow {
|
|
326
|
+
transform: rotate(180deg);
|
|
327
|
+
}
|
|
328
|
+
.mat-form-field-animations-enabled .mat-mdc-select-arrow {
|
|
329
|
+
transition: transform 80ms linear;
|
|
330
|
+
}
|
|
331
|
+
.mat-mdc-select-arrow svg {
|
|
332
|
+
fill: currentColor;
|
|
333
|
+
position: absolute;
|
|
334
|
+
top: 50%;
|
|
335
|
+
left: 50%;
|
|
336
|
+
transform: translate(-50%, -50%);
|
|
337
|
+
}
|
|
338
|
+
@media (forced-colors: active) {
|
|
339
|
+
.mat-mdc-select-arrow svg {
|
|
340
|
+
fill: CanvasText;
|
|
341
|
+
}
|
|
342
|
+
.mat-mdc-select-disabled .mat-mdc-select-arrow svg {
|
|
343
|
+
fill: GrayText;
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
div.mat-mdc-select-panel {
|
|
348
|
+
width: 100%;
|
|
349
|
+
max-height: 275px;
|
|
350
|
+
outline: 0;
|
|
351
|
+
overflow: auto;
|
|
352
|
+
padding: 8px 0;
|
|
353
|
+
box-sizing: border-box;
|
|
354
|
+
transform-origin: top center;
|
|
355
|
+
border-radius: 0 0 4px 4px;
|
|
356
|
+
position: relative;
|
|
357
|
+
background-color: var(--mat-select-panel-background-color, var(--mat-sys-surface-container));
|
|
358
|
+
}
|
|
359
|
+
.mat-mdc-select-panel-above div.mat-mdc-select-panel {
|
|
360
|
+
border-radius: 4px 4px 0 0;
|
|
361
|
+
transform-origin: bottom center;
|
|
362
|
+
}
|
|
363
|
+
@media (forced-colors: active) {
|
|
364
|
+
div.mat-mdc-select-panel {
|
|
365
|
+
outline: solid 1px;
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.mat-select-panel-animations-enabled {
|
|
370
|
+
animation: _mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1);
|
|
371
|
+
}
|
|
372
|
+
.mat-select-panel-animations-enabled.mat-select-panel-exit {
|
|
373
|
+
animation: _mat-select-exit 100ms linear;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
.mat-mdc-select-placeholder {
|
|
377
|
+
transition: color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);
|
|
378
|
+
color: var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant));
|
|
379
|
+
}
|
|
380
|
+
.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder, ._mat-animation-noopable .mat-mdc-select-placeholder {
|
|
381
|
+
transition: none;
|
|
382
|
+
}
|
|
383
|
+
.mat-form-field-hide-placeholder .mat-mdc-select-placeholder {
|
|
384
|
+
color: transparent;
|
|
385
|
+
-webkit-text-fill-color: transparent;
|
|
386
|
+
transition: none;
|
|
387
|
+
display: block;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper {
|
|
391
|
+
cursor: pointer;
|
|
392
|
+
}
|
|
393
|
+
.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label {
|
|
394
|
+
max-width: calc(100% - 18px);
|
|
395
|
+
}
|
|
396
|
+
.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above {
|
|
397
|
+
max-width: calc(100% / 0.75 - 24px);
|
|
398
|
+
}
|
|
399
|
+
.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch {
|
|
400
|
+
max-width: calc(100% - 60px);
|
|
401
|
+
}
|
|
402
|
+
.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch {
|
|
403
|
+
max-width: calc(100% - 24px);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
.mat-mdc-select-min-line:empty::before {
|
|
407
|
+
content: " ";
|
|
408
|
+
white-space: pre;
|
|
409
|
+
width: 1px;
|
|
410
|
+
display: inline-block;
|
|
411
|
+
visibility: hidden;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper {
|
|
415
|
+
transform: var(--mat-select-arrow-transform, translateY(-8px));
|
|
416
|
+
}
|
|
417
|
+
`],encapsulation:2,changeDetection:0})}return n})(),Gr=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=te({type:n,selectors:[["mat-select-trigger"]],features:[U([{provide:ti,useExisting:n}])]})}return n})(),ii=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=ee({type:n});static \u0275inj=$({imports:[nt,Pt,me,tt,dt,Pt]})}return n})();var Nt=new x("MAT_DATE_LOCALE",{providedIn:"root",factory:()=>s(oa)}),Te="Method not implemented",I=class{locale;_localeChanges=new C;localeChanges=this._localeChanges;setTime(o,e,t,a){throw new Error(Te)}getHours(o){throw new Error(Te)}getMinutes(o){throw new Error(Te)}getSeconds(o){throw new Error(Te)}parseTime(o,e){throw new Error(Te)}addSeconds(o,e){throw new Error(Te)}getValidDateOrNull(o){return this.isDateInstance(o)&&this.isValid(o)?o:null}deserialize(o){return o==null||this.isDateInstance(o)&&this.isValid(o)?o:this.invalid()}setLocale(o){this.locale=o,this._localeChanges.next()}compareDate(o,e){return this.getYear(o)-this.getYear(e)||this.getMonth(o)-this.getMonth(e)||this.getDate(o)-this.getDate(e)}compareTime(o,e){return this.getHours(o)-this.getHours(e)||this.getMinutes(o)-this.getMinutes(e)||this.getSeconds(o)-this.getSeconds(e)}sameDate(o,e){if(o&&e){let t=this.isValid(o),a=this.isValid(e);return t&&a?!this.compareDate(o,e):t==a}return o==e}sameTime(o,e){if(o&&e){let t=this.isValid(o),a=this.isValid(e);return t&&a?!this.compareTime(o,e):t==a}return o==e}clampDate(o,e,t){return e&&this.compareDate(o,e)<0?e:t&&this.compareDate(o,t)>0?t:o}},fe=new x("mat-date-formats");var Ki=["tooltip"],Gi=20;var qi=new x("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let n=s(Z);return()=>Me(n,{scrollThrottle:Gi})}}),Qi=new x("mat-tooltip-default-options",{providedIn:"root",factory:()=>({showDelay:0,hideDelay:0,touchendHideDelay:1500})});var ni="tooltip-panel",Ui={passive:!0},Xi=8,$i=8,Zi=24,Ji=200,ri=(()=>{class n{_elementRef=s(P);_ngZone=s(Pe);_platform=s(et);_ariaDescriber=s(Ma);_focusMonitor=s(ga);_dir=s(se);_injector=s(Z);_viewContainerRef=s(Qe);_mediaMatcher=s(ba);_document=s(qe);_renderer=s(De);_animationsDisabled=X();_defaultOptions=s(Qi,{optional:!0});_overlayRef=null;_tooltipInstance=null;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=en;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending=!1;_dirSubscribed=!1;get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=At(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let t=At(e);this._disabled!==t&&(this._disabled=t,t?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Ct(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Ct(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let t=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(t)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_eventCleanups=[];_touchstartTimeout=null;_destroyed=new C;_isDestroyed=!1;constructor(){let e=this._defaultOptions;e&&(this._showDelay=e.showDelay,this._hideDelay=e.hideDelay,e.position&&(this.position=e.position),e.positionAtOrigin&&(this.positionAtOrigin=e.positionAtOrigin),e.touchGestures&&(this.touchGestures=e.touchGestures),e.tooltipClass&&(this.tooltipClass=e.tooltipClass)),this._viewportMargin=Xi}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(R(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._eventCleanups.forEach(t=>t()),this._eventCleanups.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,t){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let a=this._createOverlay(t);this._detach(),this._portal=this._portal||new Ye(this._tooltipComponent,this._viewContainerRef);let i=this._tooltipInstance=a.attach(this._portal).instance;i._triggerElement=this._elementRef.nativeElement,i._mouseLeaveHideDelay=this._hideDelay,i.afterHidden().pipe(R(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),i.show(e)}hide(e=this.hideDelay){let t=this._tooltipInstance;t&&(t.isVisible()?t.hide(e):(t._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let r=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&r._origin instanceof P)return this._overlayRef;this._detach()}let t=this._injector.get(la).getAncestorScrollContainers(this._elementRef),a=`${this._cssClassPrefix}-${ni}`,i=at(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t).withPopoverLocation("global");return i.positionChanges.pipe(R(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=it(this._injector,{direction:this._dir,positionStrategy:i,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,a]:a,scrollStrategy:this._injector.get(qi)(),disableAnimations:this._animationsDisabled,eventPredicate:this._overlayEventPredicate}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(R(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(R(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(R(this._destroyed)).subscribe(r=>{r.preventDefault(),r.stopPropagation(),this._ngZone.run(()=>this.hide(0))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(R(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let t=e.getConfig().positionStrategy,a=this._getOrigin(),i=this._getOverlayPosition();t.withPositions([this._addOffset(be(be({},a.main),i.main)),this._addOffset(be(be({},a.fallback),i.fallback))])}_addOffset(e){let t=$i,a=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-t:e.originY==="bottom"?e.offsetY=t:e.originX==="start"?e.offsetX=a?-t:t:e.originX==="end"&&(e.offsetX=a?t:-t),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",t=this.position,a;t=="above"||t=="below"?a={originX:"center",originY:t=="above"?"top":"bottom"}:t=="before"||t=="left"&&e||t=="right"&&!e?a={originX:"start",originY:"center"}:(t=="after"||t=="right"&&e||t=="left"&&!e)&&(a={originX:"end",originY:"center"});let{x:i,y:r}=this._invertPosition(a.originX,a.originY);return{main:a,fallback:{originX:i,originY:r}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",t=this.position,a;t=="above"?a={overlayX:"center",overlayY:"bottom"}:t=="below"?a={overlayX:"center",overlayY:"top"}:t=="before"||t=="left"&&e||t=="right"&&!e?a={overlayX:"end",overlayY:"center"}:(t=="after"||t=="right"&&e||t=="left"&&!e)&&(a={overlayX:"start",overlayY:"center"});let{x:i,y:r}=this._invertPosition(a.overlayX,a.overlayY);return{main:a,fallback:{overlayX:i,overlayY:r}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),ke(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e instanceof Set?Array.from(e):e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return this.position==="above"||this.position==="below"?t==="top"?t="bottom":t==="bottom"&&(t="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){let{overlayY:t,originX:a,originY:i}=e,r;if(t==="center"?this._dir&&this._dir.value==="rtl"?r=a==="end"?"left":"right":r=a==="start"?"left":"right":r=t==="bottom"&&i==="top"?"above":"below",r!==this._currentPosition){let _=this._overlayRef;if(_){let T=`${this._cssClassPrefix}-${ni}-`;_.removePanelClass(T+this._currentPosition),_.addPanelClass(T+r)}this._currentPosition=r}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._eventCleanups.length||(this._isTouchPlatform()?this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._addListener("touchstart",e=>{let t=e.targetTouches?.[0],a=t?{x:t.clientX,y:t.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let i=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,a)},this._defaultOptions?.touchLongPressShowDelay??i)})):this._addListener("mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let t;e.x!==void 0&&e.y!==void 0&&(t=e),this.show(void 0,t)}))}_setupPointerExitEventsIfNeeded(){if(!this._pointerExitEventsInitialized){if(this._pointerExitEventsInitialized=!0,!this._isTouchPlatform())this._addListener("mouseleave",e=>{let t=e.relatedTarget;(!t||!this._overlayRef?.overlayElement.contains(t))&&this.hide()}),this._addListener("wheel",e=>{if(this._isTooltipVisible()){let t=this._document.elementFromPoint(e.clientX,e.clientY),a=this._elementRef.nativeElement;t!==a&&!a.contains(t)&&this.hide()}});else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let e=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};this._addListener("touchend",e),this._addListener("touchcancel",e)}}}_addListener(e,t){this._eventCleanups.push(this._renderer.listen(this._elementRef.nativeElement,e,t,Ui))}_isTouchPlatform(){let e=this._defaultOptions?.detectHoverCapability;return typeof e=="function"?!e():this._platform.IOS||this._platform.ANDROID?!0:this._platform.isBrowser?!!e&&this._mediaMatcher.matchMedia("(any-hover: none)").matches:!1}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let t=this._elementRef.nativeElement,a=t.style;(e==="on"||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA")&&(a.userSelect=a.msUserSelect=a.webkitUserSelect=a.MozUserSelect="none"),(e==="on"||!t.draggable)&&(a.webkitUserDrag="none"),a.touchAction="none",a.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||ke({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}_overlayEventPredicate=e=>e.type==="keydown"?this._isTooltipVisible()&&e.keyCode===27&&!O(e):!0;static \u0275fac=function(t){return new(t||n)};static \u0275dir=te({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(t,a){t&2&&A("mat-mdc-tooltip-disabled",a.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return n})(),en=(()=>{class n{_changeDetectorRef=s(V);_elementRef=s(P);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=X();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new C;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>Zi&&e.width>=Ji}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let t=this._tooltip.nativeElement,a=this._showAnimation,i=this._hideAnimation;if(t.classList.remove(e?i:a),t.classList.add(e?a:i),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let r=getComputedStyle(t);(r.getPropertyValue("animation-duration")==="0s"||r.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=w({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(t,a){if(t&1&&N(Ki,7),t&2){let i;v(i=D())&&(a._tooltip=i.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(t,a){t&1&&g("mouseleave",function(r){return a._handleMouseLeave(r)})},decls:4,vars:5,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(t,a){t&1&&(F(0,"div",1,0),Ue("animationend",function(r){return a._handleAnimationEnd(r)}),F(2,"div",2),h(3),L()()),t&2&&(he(a.tooltipClass),A("mdc-tooltip--multiline",a._isMultiline),l(3),E(a.message))},styles:[`.mat-mdc-tooltip {
|
|
418
|
+
position: relative;
|
|
419
|
+
transform: scale(0);
|
|
420
|
+
display: inline-flex;
|
|
421
|
+
}
|
|
422
|
+
.mat-mdc-tooltip::before {
|
|
423
|
+
content: "";
|
|
424
|
+
top: 0;
|
|
425
|
+
right: 0;
|
|
426
|
+
bottom: 0;
|
|
427
|
+
left: 0;
|
|
428
|
+
z-index: -1;
|
|
429
|
+
position: absolute;
|
|
430
|
+
}
|
|
431
|
+
.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before {
|
|
432
|
+
top: -8px;
|
|
433
|
+
}
|
|
434
|
+
.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before {
|
|
435
|
+
bottom: -8px;
|
|
436
|
+
}
|
|
437
|
+
.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before {
|
|
438
|
+
left: -8px;
|
|
439
|
+
}
|
|
440
|
+
.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before {
|
|
441
|
+
right: -8px;
|
|
442
|
+
}
|
|
443
|
+
.mat-mdc-tooltip._mat-animation-noopable {
|
|
444
|
+
animation: none;
|
|
445
|
+
transform: scale(1);
|
|
446
|
+
}
|
|
447
|
+
|
|
448
|
+
.mat-mdc-tooltip-surface {
|
|
449
|
+
word-break: normal;
|
|
450
|
+
overflow-wrap: anywhere;
|
|
451
|
+
padding: 4px 8px;
|
|
452
|
+
min-width: 40px;
|
|
453
|
+
max-width: 200px;
|
|
454
|
+
min-height: 24px;
|
|
455
|
+
max-height: 40vh;
|
|
456
|
+
box-sizing: border-box;
|
|
457
|
+
overflow: hidden;
|
|
458
|
+
text-align: center;
|
|
459
|
+
will-change: transform, opacity;
|
|
460
|
+
background-color: var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface));
|
|
461
|
+
color: var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));
|
|
462
|
+
border-radius: var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small));
|
|
463
|
+
font-family: var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font));
|
|
464
|
+
font-size: var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size));
|
|
465
|
+
font-weight: var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));
|
|
466
|
+
line-height: var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));
|
|
467
|
+
letter-spacing: var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking));
|
|
468
|
+
}
|
|
469
|
+
.mat-mdc-tooltip-surface::before {
|
|
470
|
+
position: absolute;
|
|
471
|
+
box-sizing: border-box;
|
|
472
|
+
width: 100%;
|
|
473
|
+
height: 100%;
|
|
474
|
+
top: 0;
|
|
475
|
+
left: 0;
|
|
476
|
+
border: 1px solid transparent;
|
|
477
|
+
border-radius: inherit;
|
|
478
|
+
content: "";
|
|
479
|
+
pointer-events: none;
|
|
480
|
+
}
|
|
481
|
+
.mdc-tooltip--multiline .mat-mdc-tooltip-surface {
|
|
482
|
+
text-align: left;
|
|
483
|
+
}
|
|
484
|
+
[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface {
|
|
485
|
+
text-align: right;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
.mat-mdc-tooltip-panel {
|
|
489
|
+
line-height: normal;
|
|
490
|
+
}
|
|
491
|
+
.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive {
|
|
492
|
+
pointer-events: none;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
@keyframes mat-mdc-tooltip-show {
|
|
496
|
+
0% {
|
|
497
|
+
opacity: 0;
|
|
498
|
+
transform: scale(0.8);
|
|
499
|
+
}
|
|
500
|
+
100% {
|
|
501
|
+
opacity: 1;
|
|
502
|
+
transform: scale(1);
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
@keyframes mat-mdc-tooltip-hide {
|
|
506
|
+
0% {
|
|
507
|
+
opacity: 1;
|
|
508
|
+
transform: scale(1);
|
|
509
|
+
}
|
|
510
|
+
100% {
|
|
511
|
+
opacity: 0;
|
|
512
|
+
transform: scale(0.8);
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
.mat-mdc-tooltip-show {
|
|
516
|
+
animation: mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
.mat-mdc-tooltip-hide {
|
|
520
|
+
animation: mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards;
|
|
521
|
+
}
|
|
522
|
+
`],encapsulation:2,changeDetection:0})}return n})();var tn=["mat-calendar-body",""];function an(n,o){return this._trackRow(o)}var pi=(n,o)=>o.id;function nn(n,o){if(n&1&&(F(0,"tr",0)(1,"td",3),h(2),L()()),n&2){let e=m();l(),Ze("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),k("colspan",e.numCols),l(),pe(" ",e.label," ")}}function rn(n,o){if(n&1&&(F(0,"td",3),h(1),L()),n&2){let e=m(2);Ze("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),k("colspan",e._firstRowOffset),l(),pe(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function on(n,o){if(n&1){let e=ne();F(0,"td",6)(1,"button",7),Ue("click",function(a){let i=b(e).$implicit,r=m(2);return y(r._cellClicked(i,a))})("focus",function(a){let i=b(e).$implicit,r=m(2);return y(r._emitActiveDateChange(i,a))}),F(2,"span",8),h(3),L(),na(4,"span",9),L()()}if(n&2){let e=o.$implicit,t=o.$index,a=m().$index,i=m();Ze("width",i._cellWidth)("padding-top",i._cellPadding)("padding-bottom",i._cellPadding),k("data-mat-row",a)("data-mat-col",t),l(),he(e.cssClasses),A("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",i._isActiveCell(a,t))("mat-calendar-body-range-start",i._isRangeStart(e.compareValue))("mat-calendar-body-range-end",i._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",i._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",i._isComparisonBridgeStart(e.compareValue,a,t))("mat-calendar-body-comparison-bridge-end",i._isComparisonBridgeEnd(e.compareValue,a,t))("mat-calendar-body-comparison-start",i._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",i._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",i._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",i._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",i._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",i._isInPreview(e.compareValue)),re("tabIndex",i._isActiveCell(a,t)?0:-1),k("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",i._isSelected(e.compareValue))("aria-current",i.todayValue===e.compareValue?"date":null)("aria-describedby",i._getDescribedby(e.compareValue)),l(),A("mat-calendar-body-selected",i._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",i._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",i.todayValue===e.compareValue),l(),pe(" ",e.displayValue," ")}}function sn(n,o){if(n&1&&(F(0,"tr",1),B(1,rn,2,6,"td",4),ae(2,on,5,49,"td",5,pi),L()),n&2){let e=o.$implicit,t=o.$index,a=m();l(),H(t===0&&a._firstRowOffset?1:-1),l(),ie(e)}}function ln(n,o){if(n&1&&(d(0,"th",2)(1,"span",6),h(2),c(),d(3,"span",3),h(4),c()()),n&2){let e=o.$implicit;l(2),E(e.long),l(2),E(e.narrow)}}var dn=["*"];function cn(n,o){}function hn(n,o){if(n&1){let e=ne();d(0,"mat-month-view",4),Q("activeDateChange",function(a){b(e);let i=m();return q(i.activeDate,a)||(i.activeDate=a),y(a)}),g("_userSelection",function(a){b(e);let i=m();return y(i._dateSelected(a))})("dragStarted",function(a){b(e);let i=m();return y(i._dragStarted(a))})("dragEnded",function(a){b(e);let i=m();return y(i._dragEnded(a))}),c()}if(n&2){let e=m();G("activeDate",e.activeDate),u("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function pn(n,o){if(n&1){let e=ne();d(0,"mat-year-view",5),Q("activeDateChange",function(a){b(e);let i=m();return q(i.activeDate,a)||(i.activeDate=a),y(a)}),g("monthSelected",function(a){b(e);let i=m();return y(i._monthSelectedInYearView(a))})("selectedChange",function(a){b(e);let i=m();return y(i._goToDateInView(a,"month"))}),c()}if(n&2){let e=m();G("activeDate",e.activeDate),u("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function mn(n,o){if(n&1){let e=ne();d(0,"mat-multi-year-view",6),Q("activeDateChange",function(a){b(e);let i=m();return q(i.activeDate,a)||(i.activeDate=a),y(a)}),g("yearSelected",function(a){b(e);let i=m();return y(i._yearSelectedInMultiYearView(a))})("selectedChange",function(a){b(e);let i=m();return y(i._goToDateInView(a,"year"))}),c()}if(n&2){let e=m();G("activeDate",e.activeDate),u("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function un(n,o){}var _n=["button"],gn=[[["","matDatepickerToggleIcon",""]]],fn=["[matDatepickerToggleIcon]"];function bn(n,o){n&1&&(ve(),d(0,"svg",2),M(1,"path",3),c())}var Re=(()=>{class n{changes=new C;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}static \u0275fac=function(t){return new(t||n)};static \u0275prov=ce({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),yn=0,We=class{value;displayValue;ariaLabel;enabled;compareValue;rawValue;id=yn++;cssClasses;constructor(o,e,t,a,i,r=o,_){this.value=o,this.displayValue=e,this.ariaLabel=t,this.enabled=a,this.compareValue=r,this.rawValue=_,this.cssClasses=i instanceof Set?Array.from(i):i}},vn={passive:!1,capture:!0},ct={passive:!0,capture:!0},oi={passive:!0},Oe=(()=>{class n{_elementRef=s(P);_ngZone=s(Pe);_platform=s(et);_intl=s(Re);_eventCleanups;_skipNextFocus=!1;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart=null;comparisonEnd=null;previewStart=null;previewEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;selectedValueChange=new p;previewChange=new p;activeDateChange=new p;dragStarted=new p;dragEnded=new p;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=s(Z);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=s(De),t=s(ue);this._startDateLabelId=t.getId("mat-calendar-body-start-"),this._endDateLabelId=t.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=t.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=t.getId("mat-calendar-body-comparison-end-"),s(we).load(rt),this._ngZone.runOutsideAngular(()=>{let a=this._elementRef.nativeElement,i=[e.listen(a,"touchmove",this._touchmoveHandler,vn),e.listen(a,"mouseenter",this._enterHandler,ct),e.listen(a,"focus",this._enterHandler,ct),e.listen(a,"mouseleave",this._leaveHandler,ct),e.listen(a,"blur",this._leaveHandler,ct),e.listen(a,"mousedown",this._mousedownHandler,oi),e.listen(a,"touchstart",this._mousedownHandler,oi)];this._platform.isBrowser&&i.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=i})}_cellClicked(e,t){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:t})}_emitActiveDateChange(e,t){e.enabled&&this.activeDateChange.emit({value:e.value,event:t})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let t=e.numCols,{rows:a,numCols:i}=this;(e.rows||t)&&(this._firstRowOffset=a&&a.length&&a[0].length?i-a[0].length:0),(e.cellAspectRatio||t||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/i}%`),(t||!this._cellWidth)&&(this._cellWidth=`${100/i}%`)}ngOnDestroy(){this._eventCleanups.forEach(e=>e())}_isActiveCell(e,t){let a=e*this.numCols+t;return e&&(a-=this._firstRowOffset),a==this.activeCell}_focusActiveCell(e=!0){ke(()=>{setTimeout(()=>{let t=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");t&&(e||(this._skipNextFocus=!0),t.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return Ht(e,this.startValue,this.endValue)}_isRangeEnd(e){return zt(e,this.startValue,this.endValue)}_isInRange(e){return Wt(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return Ht(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,t,a){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let i=this.rows[t][a-1];if(!i){let r=this.rows[t-1];i=r&&r[r.length-1]}return i&&!this._isRangeEnd(i.compareValue)}_isComparisonBridgeEnd(e,t,a){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let i=this.rows[t][a+1];if(!i){let r=this.rows[t+1];i=r&&r[0]}return i&&!this._isRangeStart(i.compareValue)}_isComparisonEnd(e){return zt(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return Wt(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return Ht(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return zt(e,this.previewStart,this.previewEnd)}_isInPreview(e){return Wt(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){if(!this.isRange)return null;if(this.startValue===e&&this.endValue===e)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===e)return this._startDateLabelId;if(this.endValue===e)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(e===this.comparisonStart&&e===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(e===this.comparisonStart)return this._comparisonStartDateLabelId;if(e===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=!1;return}if(e.target&&this.isRange){let t=this._getCellFromElement(e.target);t&&this._ngZone.run(()=>this.previewChange.emit({value:t.enabled?t:null,event:e}))}};_touchmoveHandler=e=>{if(!this.isRange)return;let t=si(e),a=t?this._getCellFromElement(t):null;t!==e.target&&(this._didDragSinceMouseDown=!0),Bt(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:a?.enabled?a:null,event:e}))};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=!0),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})))};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let t=e.target&&this._getCellFromElement(e.target);!t||!this._isInRange(t.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:t.rawValue,event:e})})};_mouseupHandler=e=>{if(!this.isRange)return;let t=Bt(e.target);if(!t){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e})});return}t.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let a=this._getCellFromElement(t);this.dragEnded.emit({value:a?.rawValue??null,event:e})})};_touchendHandler=e=>{let t=si(e);t&&this._mouseupHandler({target:t})};_getCellFromElement(e){let t=Bt(e);if(t){let a=t.getAttribute("data-mat-row"),i=t.getAttribute("data-mat-col");if(a&&i)return this.rows[parseInt(a)]?.[parseInt(i)]||null}return null}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=w({type:n,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[J],attrs:tn,decls:11,vars:11,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(t,a){t&1&&(B(0,nn,3,6,"tr",0),ae(1,sn,4,1,"tr",1,an,!0),F(3,"span",2),h(4),L(),F(5,"span",2),h(6),L(),F(7,"span",2),h(8),L(),F(9,"span",2),h(10),L()),t&2&&(H(a._firstRowOffset<a.labelMinRequiredCells?0:-1),l(),ie(a.rows),l(2),re("id",a._startDateLabelId),l(),pe(" ",a.startDateAccessibleName,`
|
|
523
|
+
`),l(),re("id",a._endDateLabelId),l(),pe(" ",a.endDateAccessibleName,`
|
|
524
|
+
`),l(),re("id",a._comparisonStartDateLabelId),l(),yt(" ",a.comparisonDateAccessibleName," ",a.startDateAccessibleName,`
|
|
525
|
+
`),l(),re("id",a._comparisonEndDateLabelId),l(),yt(" ",a.comparisonDateAccessibleName," ",a.endDateAccessibleName,`
|
|
526
|
+
`))},styles:[`.mat-calendar-body {
|
|
527
|
+
min-width: 224px;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical) {
|
|
531
|
+
border-color: var(--mat-datepicker-calendar-date-today-outline-color, var(--mat-sys-primary));
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.mat-calendar-body-label {
|
|
535
|
+
height: 0;
|
|
536
|
+
line-height: 0;
|
|
537
|
+
text-align: start;
|
|
538
|
+
padding-left: 4.7142857143%;
|
|
539
|
+
padding-right: 4.7142857143%;
|
|
540
|
+
font-size: var(--mat-datepicker-calendar-body-label-text-size, var(--mat-sys-title-small-size));
|
|
541
|
+
font-weight: var(--mat-datepicker-calendar-body-label-text-weight, var(--mat-sys-title-small-weight));
|
|
542
|
+
color: var(--mat-datepicker-calendar-body-label-text-color, var(--mat-sys-on-surface));
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
.mat-calendar-body-hidden-label {
|
|
546
|
+
display: none;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
.mat-calendar-body-cell-container {
|
|
550
|
+
position: relative;
|
|
551
|
+
height: 0;
|
|
552
|
+
line-height: 0;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
.mat-calendar-body-cell {
|
|
556
|
+
position: absolute;
|
|
557
|
+
top: 0;
|
|
558
|
+
left: 0;
|
|
559
|
+
width: 100%;
|
|
560
|
+
height: 100%;
|
|
561
|
+
background: none;
|
|
562
|
+
text-align: center;
|
|
563
|
+
outline: none;
|
|
564
|
+
margin: 0;
|
|
565
|
+
font-family: var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));
|
|
566
|
+
font-size: var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size));
|
|
567
|
+
-webkit-user-select: none;
|
|
568
|
+
user-select: none;
|
|
569
|
+
cursor: pointer;
|
|
570
|
+
outline: none;
|
|
571
|
+
border: none;
|
|
572
|
+
-webkit-tap-highlight-color: transparent;
|
|
573
|
+
}
|
|
574
|
+
.mat-calendar-body-cell::-moz-focus-inner {
|
|
575
|
+
border: 0;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
.mat-calendar-body-cell::before,
|
|
579
|
+
.mat-calendar-body-cell::after,
|
|
580
|
+
.mat-calendar-body-cell-preview {
|
|
581
|
+
content: "";
|
|
582
|
+
position: absolute;
|
|
583
|
+
top: 5%;
|
|
584
|
+
left: 0;
|
|
585
|
+
z-index: 0;
|
|
586
|
+
box-sizing: border-box;
|
|
587
|
+
display: block;
|
|
588
|
+
height: 90%;
|
|
589
|
+
width: 100%;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
.mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,
|
|
593
|
+
.mat-calendar-body-range-start::after,
|
|
594
|
+
.mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,
|
|
595
|
+
.mat-calendar-body-comparison-start::after,
|
|
596
|
+
.mat-calendar-body-preview-start .mat-calendar-body-cell-preview {
|
|
597
|
+
left: 5%;
|
|
598
|
+
width: 95%;
|
|
599
|
+
border-top-left-radius: 999px;
|
|
600
|
+
border-bottom-left-radius: 999px;
|
|
601
|
+
}
|
|
602
|
+
[dir=rtl] .mat-calendar-body-range-start:not(.mat-calendar-body-in-comparison-range)::before,
|
|
603
|
+
[dir=rtl] .mat-calendar-body-range-start::after,
|
|
604
|
+
[dir=rtl] .mat-calendar-body-comparison-start:not(.mat-calendar-body-comparison-bridge-start)::before,
|
|
605
|
+
[dir=rtl] .mat-calendar-body-comparison-start::after,
|
|
606
|
+
[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview {
|
|
607
|
+
left: 0;
|
|
608
|
+
border-radius: 0;
|
|
609
|
+
border-top-right-radius: 999px;
|
|
610
|
+
border-bottom-right-radius: 999px;
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
.mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,
|
|
614
|
+
.mat-calendar-body-range-end::after,
|
|
615
|
+
.mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,
|
|
616
|
+
.mat-calendar-body-comparison-end::after,
|
|
617
|
+
.mat-calendar-body-preview-end .mat-calendar-body-cell-preview {
|
|
618
|
+
width: 95%;
|
|
619
|
+
border-top-right-radius: 999px;
|
|
620
|
+
border-bottom-right-radius: 999px;
|
|
621
|
+
}
|
|
622
|
+
[dir=rtl] .mat-calendar-body-range-end:not(.mat-calendar-body-in-comparison-range)::before,
|
|
623
|
+
[dir=rtl] .mat-calendar-body-range-end::after,
|
|
624
|
+
[dir=rtl] .mat-calendar-body-comparison-end:not(.mat-calendar-body-comparison-bridge-end)::before,
|
|
625
|
+
[dir=rtl] .mat-calendar-body-comparison-end::after,
|
|
626
|
+
[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview {
|
|
627
|
+
left: 5%;
|
|
628
|
+
border-radius: 0;
|
|
629
|
+
border-top-left-radius: 999px;
|
|
630
|
+
border-bottom-left-radius: 999px;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
[dir=rtl] .mat-calendar-body-comparison-bridge-start.mat-calendar-body-range-end::after,
|
|
634
|
+
[dir=rtl] .mat-calendar-body-comparison-bridge-end.mat-calendar-body-range-start::after {
|
|
635
|
+
width: 95%;
|
|
636
|
+
border-top-right-radius: 999px;
|
|
637
|
+
border-bottom-right-radius: 999px;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
.mat-calendar-body-comparison-start.mat-calendar-body-range-end::after, [dir=rtl] .mat-calendar-body-comparison-start.mat-calendar-body-range-end::after,
|
|
641
|
+
.mat-calendar-body-comparison-end.mat-calendar-body-range-start::after,
|
|
642
|
+
[dir=rtl] .mat-calendar-body-comparison-end.mat-calendar-body-range-start::after {
|
|
643
|
+
width: 90%;
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
.mat-calendar-body-in-preview {
|
|
647
|
+
color: var(--mat-datepicker-calendar-date-preview-state-outline-color, var(--mat-sys-primary));
|
|
648
|
+
}
|
|
649
|
+
.mat-calendar-body-in-preview .mat-calendar-body-cell-preview {
|
|
650
|
+
border-top: dashed 1px;
|
|
651
|
+
border-bottom: dashed 1px;
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
.mat-calendar-body-preview-start .mat-calendar-body-cell-preview {
|
|
655
|
+
border-left: dashed 1px;
|
|
656
|
+
}
|
|
657
|
+
[dir=rtl] .mat-calendar-body-preview-start .mat-calendar-body-cell-preview {
|
|
658
|
+
border-left: 0;
|
|
659
|
+
border-right: dashed 1px;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
.mat-calendar-body-preview-end .mat-calendar-body-cell-preview {
|
|
663
|
+
border-right: dashed 1px;
|
|
664
|
+
}
|
|
665
|
+
[dir=rtl] .mat-calendar-body-preview-end .mat-calendar-body-cell-preview {
|
|
666
|
+
border-right: 0;
|
|
667
|
+
border-left: dashed 1px;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
.mat-calendar-body-disabled {
|
|
671
|
+
cursor: default;
|
|
672
|
+
}
|
|
673
|
+
.mat-calendar-body-disabled > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical) {
|
|
674
|
+
color: var(--mat-datepicker-calendar-date-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
|
|
675
|
+
}
|
|
676
|
+
.mat-calendar-body-disabled > .mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical) {
|
|
677
|
+
border-color: var(--mat-datepicker-calendar-date-today-disabled-state-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
|
|
678
|
+
}
|
|
679
|
+
@media (forced-colors: active) {
|
|
680
|
+
.mat-calendar-body-disabled {
|
|
681
|
+
opacity: 0.5;
|
|
682
|
+
}
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
.mat-calendar-body-cell-content {
|
|
686
|
+
top: 5%;
|
|
687
|
+
left: 5%;
|
|
688
|
+
z-index: 1;
|
|
689
|
+
display: flex;
|
|
690
|
+
align-items: center;
|
|
691
|
+
justify-content: center;
|
|
692
|
+
box-sizing: border-box;
|
|
693
|
+
width: 90%;
|
|
694
|
+
height: 90%;
|
|
695
|
+
line-height: 1;
|
|
696
|
+
border-width: 1px;
|
|
697
|
+
border-style: solid;
|
|
698
|
+
border-radius: 999px;
|
|
699
|
+
color: var(--mat-datepicker-calendar-date-text-color, var(--mat-sys-on-surface));
|
|
700
|
+
border-color: var(--mat-datepicker-calendar-date-outline-color, transparent);
|
|
701
|
+
}
|
|
702
|
+
.mat-calendar-body-cell-content.mat-focus-indicator {
|
|
703
|
+
position: absolute;
|
|
704
|
+
}
|
|
705
|
+
@media (forced-colors: active) {
|
|
706
|
+
.mat-calendar-body-cell-content {
|
|
707
|
+
border: none;
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
.cdk-keyboard-focused .mat-calendar-body-active > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical), .cdk-program-focused .mat-calendar-body-active > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical) {
|
|
712
|
+
background-color: var(--mat-datepicker-calendar-date-focus-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
@media (hover: hover) {
|
|
716
|
+
.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover > .mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical) {
|
|
717
|
+
background-color: var(--mat-datepicker-calendar-date-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
.mat-calendar-body-selected {
|
|
721
|
+
background-color: var(--mat-datepicker-calendar-date-selected-state-background-color, var(--mat-sys-primary));
|
|
722
|
+
color: var(--mat-datepicker-calendar-date-selected-state-text-color, var(--mat-sys-on-primary));
|
|
723
|
+
}
|
|
724
|
+
.mat-calendar-body-disabled > .mat-calendar-body-selected {
|
|
725
|
+
background-color: var(--mat-datepicker-calendar-date-selected-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));
|
|
726
|
+
}
|
|
727
|
+
.mat-calendar-body-selected.mat-calendar-body-today {
|
|
728
|
+
box-shadow: inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color, var(--mat-sys-primary));
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
.mat-calendar-body-in-range::before {
|
|
732
|
+
background: var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container));
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
.mat-calendar-body-comparison-identical,
|
|
736
|
+
.mat-calendar-body-in-comparison-range::before {
|
|
737
|
+
background: var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container));
|
|
738
|
+
}
|
|
739
|
+
|
|
740
|
+
.mat-calendar-body-comparison-identical,
|
|
741
|
+
.mat-calendar-body-in-comparison-range::before {
|
|
742
|
+
background: var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container));
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
.mat-calendar-body-comparison-bridge-start::before,
|
|
746
|
+
[dir=rtl] .mat-calendar-body-comparison-bridge-end::before {
|
|
747
|
+
background: linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%);
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
.mat-calendar-body-comparison-bridge-end::before,
|
|
751
|
+
[dir=rtl] .mat-calendar-body-comparison-bridge-start::before {
|
|
752
|
+
background: linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%);
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
.mat-calendar-body-in-range > .mat-calendar-body-comparison-identical,
|
|
756
|
+
.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after {
|
|
757
|
+
background: var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color, var(--mat-sys-secondary-container));
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
.mat-calendar-body-comparison-identical.mat-calendar-body-selected,
|
|
761
|
+
.mat-calendar-body-in-comparison-range > .mat-calendar-body-selected {
|
|
762
|
+
background: var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color, var(--mat-sys-secondary));
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
@media (forced-colors: active) {
|
|
766
|
+
.mat-datepicker-popup:not(:empty),
|
|
767
|
+
.mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected {
|
|
768
|
+
outline: solid 1px;
|
|
769
|
+
}
|
|
770
|
+
.mat-calendar-body-today {
|
|
771
|
+
outline: dotted 1px;
|
|
772
|
+
}
|
|
773
|
+
.mat-calendar-body-cell::before,
|
|
774
|
+
.mat-calendar-body-cell::after,
|
|
775
|
+
.mat-calendar-body-selected {
|
|
776
|
+
background: none;
|
|
777
|
+
}
|
|
778
|
+
.mat-calendar-body-in-range::before,
|
|
779
|
+
.mat-calendar-body-comparison-bridge-start::before,
|
|
780
|
+
.mat-calendar-body-comparison-bridge-end::before {
|
|
781
|
+
border-top: solid 1px;
|
|
782
|
+
border-bottom: solid 1px;
|
|
783
|
+
}
|
|
784
|
+
.mat-calendar-body-range-start::before {
|
|
785
|
+
border-left: solid 1px;
|
|
786
|
+
}
|
|
787
|
+
[dir=rtl] .mat-calendar-body-range-start::before {
|
|
788
|
+
border-left: 0;
|
|
789
|
+
border-right: solid 1px;
|
|
790
|
+
}
|
|
791
|
+
.mat-calendar-body-range-end::before {
|
|
792
|
+
border-right: solid 1px;
|
|
793
|
+
}
|
|
794
|
+
[dir=rtl] .mat-calendar-body-range-end::before {
|
|
795
|
+
border-right: 0;
|
|
796
|
+
border-left: solid 1px;
|
|
797
|
+
}
|
|
798
|
+
.mat-calendar-body-in-comparison-range::before {
|
|
799
|
+
border-top: dashed 1px;
|
|
800
|
+
border-bottom: dashed 1px;
|
|
801
|
+
}
|
|
802
|
+
.mat-calendar-body-comparison-start::before {
|
|
803
|
+
border-left: dashed 1px;
|
|
804
|
+
}
|
|
805
|
+
[dir=rtl] .mat-calendar-body-comparison-start::before {
|
|
806
|
+
border-left: 0;
|
|
807
|
+
border-right: dashed 1px;
|
|
808
|
+
}
|
|
809
|
+
.mat-calendar-body-comparison-end::before {
|
|
810
|
+
border-right: dashed 1px;
|
|
811
|
+
}
|
|
812
|
+
[dir=rtl] .mat-calendar-body-comparison-end::before {
|
|
813
|
+
border-right: 0;
|
|
814
|
+
border-left: dashed 1px;
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
`],encapsulation:2,changeDetection:0})}return n})();function Yt(n){return n?.nodeName==="TD"}function Bt(n){let o;return Yt(n)?o=n:Yt(n.parentNode)?o=n.parentNode:Yt(n.parentNode?.parentNode)&&(o=n.parentNode.parentNode),o?.getAttribute("data-mat-row")!=null?o:null}function Ht(n,o,e){return e!==null&&o!==e&&n<e&&n===o}function zt(n,o,e){return o!==null&&o!==e&&n>=o&&n===e}function Wt(n,o,e,t){return t&&o!==null&&e!==null&&o!==e&&n>=o&&n<=e}function si(n){let o=n.changedTouches[0];return document.elementFromPoint(o.clientX,o.clientY)}var z=class{start;end;_disableStructuralEquivalency;constructor(o,e){this.start=o,this.end=e}},je=(()=>{class n{selection;_adapter;_selectionChanged=new C;selectionChanged=this._selectionChanged;constructor(e,t){this.selection=e,this._adapter=t,this.selection=e}updateSelection(e,t){let a=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:t,oldValue:a})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static \u0275fac=function(t){aa()};static \u0275prov=ce({token:n,factory:n.\u0275fac})}return n})(),Dn=(()=>{class n extends je{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new n(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(t){return new(t||n)(ea(I))};static \u0275prov=ce({token:n,factory:n.\u0275fac})}return n})();var mi={provide:je,useFactory:()=>s(je,{optional:!0,skipSelf:!0})||new Dn(s(I))};var ui=new x("MAT_DATE_RANGE_SELECTION_STRATEGY");var jt=7,Cn=0,li=(()=>{class n{_changeDetectorRef=s(V);_dateFormats=s(fe,{optional:!0});_dateAdapter=s(I,{optional:!0});_dir=s(se,{optional:!0});_rangeStrategy=s(ui,{optional:!0});_rerenderSubscription=K.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate,a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(a,this.minDate,this.maxDate),this._hasSameMonthAndYear(t,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof z?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;activeDrag=null;selectedChange=new p;_userSelection=new p;dragStarted=new p;dragEnded=new p;activeDateChange=new p;_matCalendarBody;_monthLabel=f("");_weeks=f([]);_firstWeekOffset=f(0);_rangeStart=f(null);_rangeEnd=f(null);_comparisonRangeStart=f(null);_comparisonRangeEnd=f(null);_previewStart=f(null);_previewEnd=f(null);_isRange=f(!1);_todayDate=f(null);_weekdays=f([]);constructor(){s(we).load(Ae),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(ye(null)).subscribe(()=>this._init())}ngOnChanges(e){let t=e.comparisonStart||e.comparisonEnd;t&&!t.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let t=e.value,a=this._getDateFromDayOfMonth(t),i,r;this._selected instanceof z?(i=this._getDateInCurrentMonth(this._selected.start),r=this._getDateInCurrentMonth(this._selected.end)):i=r=this._getDateInCurrentMonth(this._selected),(i!==t||r!==t)&&this.selectedChange.emit(a),this._userSelection.emit({value:a,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let t=e.value,a=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(t),this._dateAdapter.compareDate(a,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let t=this._activeDate,a=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,a?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,a?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&e.preventDefault();return;case 27:this._previewEnd()!=null&&!O(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate.set(this._getCellCompareValue(this._dateAdapter.today())),this._monthLabel.set(this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset.set((jt+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%jt),this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:t}){if(this._rangeStrategy){let a=t?t.rawValue:null,i=this._rangeStrategy.createPreview(a,this.selected,e);if(this._previewStart.set(this._getCellCompareValue(i.start)),this._previewEnd.set(this._getCellCompareValue(i.end)),this.activeDrag&&a){let r=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,a,e);r&&(this._previewStart.set(this._getCellCompareValue(r.start)),this._previewEnd.set(this._getCellCompareValue(r.end)))}}}_dragEnded(e){if(this.activeDrag)if(e.value){let t=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:t??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),t=this._dateAdapter.getDayOfWeekNames("narrow"),i=this._dateAdapter.getDayOfWeekNames("long").map((r,_)=>({long:r,narrow:t[_],id:Cn++}));this._weekdays.set(i.slice(e).concat(i.slice(0,e)))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),t=this._dateAdapter.getDateNames(),a=[[]];for(let i=0,r=this._firstWeekOffset();i<e;i++,r++){r==jt&&(a.push([]),r=0);let _=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),i+1),T=this._shouldEnableDate(_),wi=this._dateAdapter.format(_,this._dateFormats.display.dateA11yLabel),ki=this.dateClass?this.dateClass(_,"month"):void 0;a[a.length-1].push(new We(i+1,t[i],wi,T,ki,this._getCellCompareValue(_),_))}this._weeks.set(a)}_shouldEnableDate(e){return!!e&&(!this.minDate||this._dateAdapter.compareDate(e,this.minDate)>=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,t){return!!(e&&t&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(t)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t))}_getCellCompareValue(e){if(e){let t=this._dateAdapter.getYear(e),a=this._dateAdapter.getMonth(e),i=this._dateAdapter.getDate(e);return new Date(t,a,i).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof z?(this._rangeStart.set(this._getCellCompareValue(e.start)),this._rangeEnd.set(this._getCellCompareValue(e.end)),this._isRange.set(!0)):(this._rangeStart.set(this._getCellCompareValue(e)),this._rangeEnd.set(this._rangeStart()),this._isRange.set(!1)),this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart)),this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd))}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart.set(null),this._previewEnd.set(null)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=w({type:n,selectors:[["mat-month-view"]],viewQuery:function(t,a){if(t&1&&N(Oe,5),t&2){let i;v(i=D())&&(a._matCalendarBody=i.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[J],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(t,a){t&1&&(d(0,"table",0)(1,"thead",1)(2,"tr"),ae(3,ln,5,2,"th",2,pi),c(),d(5,"tr",3),M(6,"th",4),c()(),d(7,"tbody",5),g("selectedValueChange",function(r){return a._dateSelected(r)})("activeDateChange",function(r){return a._updateActiveDate(r)})("previewChange",function(r){return a._previewChanged(r)})("dragStarted",function(r){return a.dragStarted.emit(r)})("dragEnded",function(r){return a._dragEnded(r)})("keyup",function(r){return a._handleCalendarBodyKeyup(r)})("keydown",function(r){return a._handleCalendarBodyKeydown(r)}),c()()),t&2&&(l(3),ie(a._weekdays()),l(4),u("label",a._monthLabel())("rows",a._weeks())("todayValue",a._todayDate())("startValue",a._rangeStart())("endValue",a._rangeEnd())("comparisonStart",a._comparisonRangeStart())("comparisonEnd",a._comparisonRangeEnd())("previewStart",a._previewStart())("previewEnd",a._previewEnd())("isRange",a._isRange())("labelMinRequiredCells",3)("activeCell",a._dateAdapter.getDate(a.activeDate)-1)("startDateAccessibleName",a.startDateAccessibleName)("endDateAccessibleName",a.endDateAccessibleName))},dependencies:[Oe],encapsulation:2,changeDetection:0})}return n})(),Y=24,Kt=4,di=(()=>{class n{_changeDetectorRef=s(V);_dateAdapter=s(I,{optional:!0});_dir=s(se,{optional:!0});_rerenderSubscription=K.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate,a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(a,this.minDate,this.maxDate),_i(this._dateAdapter,t,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof z?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;selectedChange=new p;yearSelected=new p;activeDateChange=new p;_matCalendarBody;_years=f([]);_todayYear=f(0);_selectedYear=f(null);constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(ye(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear.set(this._dateAdapter.getYear(this._dateAdapter.today()));let t=this._dateAdapter.getYear(this._activeDate)-ze(this._dateAdapter,this.activeDate,this.minDate,this.maxDate),a=[];for(let i=0,r=[];i<Y;i++)r.push(t+i),r.length==Kt&&(a.push(r.map(_=>this._createCellForYear(_))),r=[]);this._years.set(a),this._changeDetectorRef.markForCheck()}_yearSelected(e){let t=e.value,a=this._dateAdapter.createDate(t,0,1),i=this._getDateFromYear(t);this.yearSelected.emit(a),this.selectedChange.emit(i)}_updateActiveDate(e){let t=e.value,a=this._activeDate;this.activeDate=this._getDateFromYear(t),this._dateAdapter.compareDate(a,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let t=this._activeDate,a=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,a?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,a?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Kt);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Kt);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-ze(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Y-ze(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-Y*10:-Y);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Y*10:Y);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return ze(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let t=this._dateAdapter.getMonth(this.activeDate),a=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,t,1));return this._dateAdapter.createDate(e,t,Math.min(this._dateAdapter.getDate(this.activeDate),a))}_createCellForYear(e){let t=this._dateAdapter.createDate(e,0,1),a=this._dateAdapter.getYearName(t),i=this.dateClass?this.dateClass(t,"multi-year"):void 0;return new We(e,a,a,this._shouldEnableYear(e),i)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e<this._dateAdapter.getYear(this.minDate))return!1;if(!this.dateFilter)return!0;let t=this._dateAdapter.createDate(e,0,1);for(let a=t;this._dateAdapter.getYear(a)==e;a=this._dateAdapter.addCalendarDays(a,1))if(this.dateFilter(a))return!0;return!1}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setSelectedYear(e){if(this._selectedYear.set(null),e instanceof z){let t=e.start||e.end;t&&this._selectedYear.set(this._dateAdapter.getYear(t))}else e&&this._selectedYear.set(this._dateAdapter.getYear(e))}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=w({type:n,selectors:[["mat-multi-year-view"]],viewQuery:function(t,a){if(t&1&&N(Oe,5),t&2){let i;v(i=D())&&(a._matCalendarBody=i.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",activeDateChange:"activeDateChange"},exportAs:["matMultiYearView"],decls:5,vars:7,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","keyup","keydown","rows","todayValue","startValue","endValue","numCols","cellAspectRatio","activeCell"]],template:function(t,a){t&1&&(d(0,"table",0)(1,"thead",1)(2,"tr"),M(3,"th",2),c()(),d(4,"tbody",3),g("selectedValueChange",function(r){return a._yearSelected(r)})("activeDateChange",function(r){return a._updateActiveDate(r)})("keyup",function(r){return a._handleCalendarBodyKeyup(r)})("keydown",function(r){return a._handleCalendarBodyKeydown(r)}),c()()),t&2&&(l(4),u("rows",a._years())("todayValue",a._todayYear())("startValue",a._selectedYear())("endValue",a._selectedYear())("numCols",4)("cellAspectRatio",4/7)("activeCell",a._getActiveCell()))},dependencies:[Oe],encapsulation:2,changeDetection:0})}return n})();function _i(n,o,e,t,a){let i=n.getYear(o),r=n.getYear(e),_=gi(n,t,a);return Math.floor((i-_)/Y)===Math.floor((r-_)/Y)}function ze(n,o,e,t){let a=n.getYear(o);return wn(a-gi(n,e,t),Y)}function gi(n,o,e){let t=0;return e?t=n.getYear(e)-Y+1:o&&(t=n.getYear(o)),t}function wn(n,o){return(n%o+o)%o}var ci=(()=>{class n{_changeDetectorRef=s(V);_dateFormats=s(fe,{optional:!0});_dateAdapter=s(I,{optional:!0});_dir=s(se,{optional:!0});_rerenderSubscription=K.EMPTY;_selectionKeyPressed=!1;get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate,a=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(a,this.minDate,this.maxDate),this._dateAdapter.getYear(t)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof z?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;selectedChange=new p;monthSelected=new p;activeDateChange=new p;_matCalendarBody;_months=f([]);_yearLabel=f("");_todayMonth=f(null);_selectedMonth=f(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(ye(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let t=e.value,a=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1);this.monthSelected.emit(a);let i=this._getDateFromMonth(t);this.selectedChange.emit(i)}_updateActiveDate(e){let t=e.value,a=this._activeDate;this.activeDate=this._getDateFromMonth(t),this._dateAdapter.compareDate(a,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let t=this._activeDate,a=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,a?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,a?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth.set(this._getMonthInCurrentYear(this._dateAdapter.today())),this._yearLabel.set(this._dateAdapter.getYearName(this.activeDate));let e=this._dateAdapter.getMonthNames("short");this._months.set([[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(t=>t.map(a=>this._createCellForMonth(a,e[a])))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),a=this._dateAdapter.getNumDaysInMonth(t);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),a))}_createCellForMonth(e,t){let a=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),i=this._dateAdapter.format(a,this._dateFormats.display.monthYearA11yLabel),r=this.dateClass?this.dateClass(a,"year"):void 0;return new We(e,t.toLocaleUpperCase(),i,this._shouldEnableMonth(e),r)}_shouldEnableMonth(e){let t=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(t,e)||this._isYearAndMonthBeforeMinDate(t,e))return!1;if(!this.dateFilter)return!0;let a=this._dateAdapter.createDate(t,e,1);for(let i=a;this._dateAdapter.getMonth(i)==e;i=this._dateAdapter.addCalendarDays(i,1))if(this.dateFilter(i))return!0;return!1}_isYearAndMonthAfterMaxDate(e,t){if(this.maxDate){let a=this._dateAdapter.getYear(this.maxDate),i=this._dateAdapter.getMonth(this.maxDate);return e>a||e===a&&t>i}return!1}_isYearAndMonthBeforeMinDate(e,t){if(this.minDate){let a=this._dateAdapter.getYear(this.minDate),i=this._dateAdapter.getMonth(this.minDate);return e<a||e===a&&t<i}return!1}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setSelectedMonth(e){e instanceof z?this._selectedMonth.set(this._getMonthInCurrentYear(e.start)||this._getMonthInCurrentYear(e.end)):this._selectedMonth.set(this._getMonthInCurrentYear(e))}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=w({type:n,selectors:[["mat-year-view"]],viewQuery:function(t,a){if(t&1&&N(Oe,5),t&2){let i;v(i=D())&&(a._matCalendarBody=i.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",monthSelected:"monthSelected",activeDateChange:"activeDateChange"},exportAs:["matYearView"],decls:5,vars:9,consts:[["role","grid",1,"mat-calendar-table"],["aria-hidden","true",1,"mat-calendar-table-header"],["colspan","4",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","keyup","keydown","label","rows","todayValue","startValue","endValue","labelMinRequiredCells","numCols","cellAspectRatio","activeCell"]],template:function(t,a){t&1&&(d(0,"table",0)(1,"thead",1)(2,"tr"),M(3,"th",2),c()(),d(4,"tbody",3),g("selectedValueChange",function(r){return a._monthSelected(r)})("activeDateChange",function(r){return a._updateActiveDate(r)})("keyup",function(r){return a._handleCalendarBodyKeyup(r)})("keydown",function(r){return a._handleCalendarBodyKeydown(r)}),c()()),t&2&&(l(4),u("label",a._yearLabel())("rows",a._months())("todayValue",a._todayMonth())("startValue",a._selectedMonth())("endValue",a._selectedMonth())("labelMinRequiredCells",2)("numCols",4)("cellAspectRatio",4/7)("activeCell",a._dateAdapter.getMonth(a.activeDate)))},dependencies:[Oe],encapsulation:2,changeDetection:0})}return n})(),fi=(()=>{class n{_intl=s(Re);calendar=s(Gt);_dateAdapter=s(I,{optional:!0});_dateFormats=s(fe,{optional:!0});_periodButtonText;_periodButtonDescription;_periodButtonLabel;_prevButtonLabel;_nextButtonLabel;constructor(){s(we).load(Ae);let e=s(V);this._updateLabels(),this.calendar.stateChanges.subscribe(()=>{this._updateLabels(),e.markForCheck()})}get periodButtonText(){return this._periodButtonText}get periodButtonDescription(){return this._periodButtonDescription}get periodButtonLabel(){return this._periodButtonLabel}get prevButtonLabel(){return this._prevButtonLabel}get nextButtonLabel(){return this._nextButtonLabel}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.previousEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-Y))}nextClicked(){this.nextEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:Y))}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_updateLabels(){let e=this.calendar,t=this._intl,a=this._dateAdapter;e.currentView==="month"?(this._periodButtonText=a.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonDescription=a.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonLabel=t.switchToMultiYearViewLabel,this._prevButtonLabel=t.prevMonthLabel,this._nextButtonLabel=t.nextMonthLabel):e.currentView==="year"?(this._periodButtonText=a.getYearName(e.activeDate),this._periodButtonDescription=a.getYearName(e.activeDate),this._periodButtonLabel=t.switchToMonthViewLabel,this._prevButtonLabel=t.prevYearLabel,this._nextButtonLabel=t.nextYearLabel):(this._periodButtonText=t.formatYearRange(...this._formatMinAndMaxYearLabels()),this._periodButtonDescription=t.formatYearRangeLabel(...this._formatMinAndMaxYearLabels()),this._periodButtonLabel=t.switchToMonthViewLabel,this._prevButtonLabel=t.prevMultiYearLabel,this._nextButtonLabel=t.nextMultiYearLabel)}_isSameView(e,t){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(t):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t):_i(this._dateAdapter,e,t,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let t=this._dateAdapter.getYear(this.calendar.activeDate)-ze(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),a=t+Y-1,i=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),r=this._dateAdapter.getYearName(this._dateAdapter.createDate(a,0,1));return[i,r]}_periodButtonLabelId=s(ue).getId("mat-calendar-period-label-");static \u0275fac=function(t){return new(t||n)};static \u0275cmp=w({type:n,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:dn,decls:17,vars:13,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(t,a){t&1&&(Ce(),d(0,"div",0)(1,"div",1)(2,"span",2),h(3),c(),d(4,"button",3),g("click",function(){return a.currentPeriodClicked()}),d(5,"span",4),h(6),c(),ve(),d(7,"svg",5),M(8,"polygon",6),c()(),ft(),M(9,"div",7),oe(10),d(11,"button",8),g("click",function(){return a.previousClicked()}),ve(),d(12,"svg",9),M(13,"path",10),c()(),ft(),d(14,"button",11),g("click",function(){return a.nextClicked()}),ve(),d(15,"svg",9),M(16,"path",12),c()()()()),t&2&&(l(2),u("id",a._periodButtonLabelId),l(),E(a.periodButtonDescription),l(),k("aria-label",a.periodButtonLabel)("aria-describedby",a._periodButtonLabelId),l(2),E(a.periodButtonText),l(),A("mat-calendar-invert",a.calendar.currentView!=="month"),l(4),u("disabled",!a.previousEnabled())("matTooltip",a.prevButtonLabel),k("aria-label",a.prevButtonLabel),l(3),u("disabled",!a.nextEnabled())("matTooltip",a.nextButtonLabel),k("aria-label",a.nextButtonLabel))},dependencies:[Be,xt,ri],encapsulation:2,changeDetection:0})}return n})(),Gt=(()=>{class n{_dateAdapter=s(I,{optional:!0});_dateFormats=s(fe,{optional:!0});_changeDetectorRef=s(V);_elementRef=s(P);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt=null;startView="month";get selected(){return this._selected}set selected(e){e instanceof z?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_selected=null;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate=null;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate=null;dateFilter;dateClass;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;selectedChange=new p;yearSelected=new p;monthSelected=new p;viewChanged=new p(!0);_userSelection=new p;_userDragDrop=new p;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(e){let t=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),t&&(this.stateChanges.next(),this.viewChanged.emit(t))}_currentView;_activeDrag=null;stateChanges=new C;constructor(){this._intlChanges=s(Re).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new Ye(this.headerComponent||fi),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){let t=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,a=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,i=t||a||e.dateFilter;if(i&&!i.firstChange){let r=this._getCurrentViewComponent();r&&(this._elementRef.nativeElement.contains(Dt())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),r._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()?._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()?._init()}_dateSelected(e){let t=e.value;(this.selected instanceof z||t&&!this._dateAdapter.sameDate(t,this.selected))&&this.selectedChange.emit(t),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,t){this.activeDate=e,this.currentView=t}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=w({type:n,selectors:[["mat-calendar"]],viewQuery:function(t,a){if(t&1&&N(li,5)(ci,5)(di,5),t&2){let i;v(i=D())&&(a.monthView=i.first),v(i=D())&&(a.yearView=i.first),v(i=D())&&(a.multiYearView=i.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[U([mi]),J],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(t,a){if(t&1&&(Le(0,cn,0,0,"ng-template",0),d(1,"div",1),B(2,hn,1,11,"mat-month-view",2)(3,pn,1,6,"mat-year-view",3)(4,mn,1,6,"mat-multi-year-view",3),c()),t&2){let i;u("cdkPortalOutlet",a._calendarHeaderPortal),l(2),H((i=a.currentView)==="month"?2:i==="year"?3:i==="multi-year"?4:-1)}},dependencies:[wt,fa,li,ci,di],styles:[`.mat-calendar {
|
|
818
|
+
display: block;
|
|
819
|
+
line-height: normal;
|
|
820
|
+
font-family: var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));
|
|
821
|
+
font-size: var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size));
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
.mat-calendar-header {
|
|
825
|
+
padding: 8px 8px 0 8px;
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
.mat-calendar-content {
|
|
829
|
+
padding: 0 8px 8px 8px;
|
|
830
|
+
outline: none;
|
|
831
|
+
}
|
|
832
|
+
|
|
833
|
+
.mat-calendar-controls {
|
|
834
|
+
display: flex;
|
|
835
|
+
align-items: center;
|
|
836
|
+
margin: 5% calc(4.7142857143% - 16px);
|
|
837
|
+
}
|
|
838
|
+
|
|
839
|
+
.mat-calendar-spacer {
|
|
840
|
+
flex: 1 1 auto;
|
|
841
|
+
}
|
|
842
|
+
|
|
843
|
+
.mat-calendar-period-button {
|
|
844
|
+
min-width: 0;
|
|
845
|
+
margin: 0 8px;
|
|
846
|
+
font-size: var(--mat-datepicker-calendar-period-button-text-size, var(--mat-sys-title-small-size));
|
|
847
|
+
font-weight: var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-sys-title-small-weight));
|
|
848
|
+
--mat-button-text-label-text-color: var(--mat-datepicker-calendar-period-button-text-color, var(--mat-sys-on-surface-variant));
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
.mat-calendar-arrow {
|
|
852
|
+
display: inline-block;
|
|
853
|
+
width: 10px;
|
|
854
|
+
height: 5px;
|
|
855
|
+
margin: 0 0 0 5px;
|
|
856
|
+
vertical-align: middle;
|
|
857
|
+
fill: var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-sys-on-surface-variant));
|
|
858
|
+
}
|
|
859
|
+
.mat-calendar-arrow.mat-calendar-invert {
|
|
860
|
+
transform: rotate(180deg);
|
|
861
|
+
}
|
|
862
|
+
[dir=rtl] .mat-calendar-arrow {
|
|
863
|
+
margin: 0 5px 0 0;
|
|
864
|
+
}
|
|
865
|
+
@media (forced-colors: active) {
|
|
866
|
+
.mat-calendar-arrow {
|
|
867
|
+
fill: CanvasText;
|
|
868
|
+
}
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),
|
|
872
|
+
.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled) {
|
|
873
|
+
color: var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-sys-on-surface-variant));
|
|
874
|
+
}
|
|
875
|
+
[dir=rtl] .mat-calendar-previous-button,
|
|
876
|
+
[dir=rtl] .mat-calendar-next-button {
|
|
877
|
+
transform: rotate(180deg);
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
.mat-calendar-table {
|
|
881
|
+
border-spacing: 0;
|
|
882
|
+
border-collapse: collapse;
|
|
883
|
+
width: 100%;
|
|
884
|
+
}
|
|
885
|
+
|
|
886
|
+
.mat-calendar-table-header th {
|
|
887
|
+
text-align: center;
|
|
888
|
+
padding: 0 0 8px 0;
|
|
889
|
+
color: var(--mat-datepicker-calendar-header-text-color, var(--mat-sys-on-surface-variant));
|
|
890
|
+
font-size: var(--mat-datepicker-calendar-header-text-size, var(--mat-sys-title-small-size));
|
|
891
|
+
font-weight: var(--mat-datepicker-calendar-header-text-weight, var(--mat-sys-title-small-weight));
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
.mat-calendar-table-header-divider {
|
|
895
|
+
position: relative;
|
|
896
|
+
height: 1px;
|
|
897
|
+
}
|
|
898
|
+
.mat-calendar-table-header-divider::after {
|
|
899
|
+
content: "";
|
|
900
|
+
position: absolute;
|
|
901
|
+
top: 0;
|
|
902
|
+
left: -8px;
|
|
903
|
+
right: -8px;
|
|
904
|
+
height: 1px;
|
|
905
|
+
background: var(--mat-datepicker-calendar-header-divider-color, transparent);
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
.mat-calendar-body-cell-content::before {
|
|
909
|
+
margin: calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px) * -1);
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
.mat-calendar-body-cell:focus-visible .mat-focus-indicator::before {
|
|
913
|
+
content: "";
|
|
914
|
+
}
|
|
915
|
+
`],encapsulation:2,changeDetection:0})}return n})(),kn=new x("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let n=s(Z);return()=>Me(n)}}),bi=(()=>{class n{_elementRef=s(P);_animationsDisabled=X();_changeDetectorRef=s(V);_globalModel=s(je);_dateAdapter=s(I);_ngZone=s(Pe);_rangeSelectionStrategy=s(ui,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart=null;comparisonEnd=null;startDateAccessibleName=null;endDateAccessibleName=null;_isAbove=!1;_animationDone=new C;_isAnimating=!1;_closeButtonText;_closeButtonFocused=!1;_actionsPortal=null;_dialogLabelId=null;constructor(){if(s(we).load(Ae),this._closeButtonText=s(Re).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,t=s(De);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[t.listen(e,"animationstart",this._handleAnimationEvent),t.listen(e,"animationend",this._handleAnimationEvent),t.listen(e,"animationcancel",this._handleAnimationEvent)])}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._calendar.focusActiveCell()}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(e=>e()),this._stateChanges?.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let t=this._model.selection,a=e.value,i=t instanceof z;if(i&&this._rangeSelectionStrategy){let r=this._rangeSelectionStrategy.selectionFinished(a,t,e.event);this._model.updateSelection(r,this)}else a&&(i||!this._dateAdapter.sameDate(a,t))&&this._model.add(a);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next()},200))}_handleAnimationEvent=e=>{let t=this._elementRef.nativeElement;e.target!==t||!e.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating=e.type==="animationstart",t.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next())};_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,t){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,t&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=w({type:n,selectors:[["mat-datepicker-content"]],viewQuery:function(t,a){if(t&1&&N(Gt,5),t&2){let i;v(i=D())&&(a._calendar=i.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(t,a){t&2&&(he(a.color?"mat-"+a.color:""),A("mat-datepicker-content-touch",a.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!a._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(t,a){t&1&&(d(0,"div",0)(1,"mat-calendar",1),g("yearSelected",function(r){return a.datepicker._selectYear(r)})("monthSelected",function(r){return a.datepicker._selectMonth(r)})("viewChanged",function(r){return a.datepicker._viewChanged(r)})("_userSelection",function(r){return a._handleUserSelection(r)})("_userDragDrop",function(r){return a._handleUserDragDrop(r)}),c(),Le(2,un,0,0,"ng-template",2),d(3,"button",3),g("focus",function(){return a._closeButtonFocused=!0})("blur",function(){return a._closeButtonFocused=!1})("click",function(){return a.datepicker.close()}),h(4),c()()),t&2&&(A("mat-datepicker-content-container-with-custom-header",a.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",a._actionsPortal),k("aria-modal",!0)("aria-labelledby",a._dialogLabelId??void 0),l(),he(a.datepicker.panelClass),u("id",a.datepicker.id)("startAt",a.datepicker.startAt)("startView",a.datepicker.startView)("minDate",a.datepicker._getMinDate())("maxDate",a.datepicker._getMaxDate())("dateFilter",a.datepicker._getDateFilter())("headerComponent",a.datepicker.calendarHeaderComponent)("selected",a._getSelected())("dateClass",a.datepicker.dateClass)("comparisonStart",a.comparisonStart)("comparisonEnd",a.comparisonEnd)("startDateAccessibleName",a.startDateAccessibleName)("endDateAccessibleName",a.endDateAccessibleName),l(),u("cdkPortalOutlet",a._actionsPortal),l(),A("cdk-visually-hidden",!a._closeButtonFocused),u("color",a.color||"primary"),l(),E(a._closeButtonText))},dependencies:[ya,Gt,wt,Be],styles:[`@keyframes _mat-datepicker-content-dropdown-enter {
|
|
916
|
+
from {
|
|
917
|
+
opacity: 0;
|
|
918
|
+
transform: scaleY(0.8);
|
|
919
|
+
}
|
|
920
|
+
to {
|
|
921
|
+
opacity: 1;
|
|
922
|
+
transform: none;
|
|
923
|
+
}
|
|
924
|
+
}
|
|
925
|
+
@keyframes _mat-datepicker-content-dialog-enter {
|
|
926
|
+
from {
|
|
927
|
+
opacity: 0;
|
|
928
|
+
transform: scale(0.8);
|
|
929
|
+
}
|
|
930
|
+
to {
|
|
931
|
+
opacity: 1;
|
|
932
|
+
transform: none;
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
@keyframes _mat-datepicker-content-exit {
|
|
936
|
+
from {
|
|
937
|
+
opacity: 1;
|
|
938
|
+
}
|
|
939
|
+
to {
|
|
940
|
+
opacity: 0;
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
.mat-datepicker-content {
|
|
944
|
+
display: block;
|
|
945
|
+
background-color: var(--mat-datepicker-calendar-container-background-color, var(--mat-sys-surface-container-high));
|
|
946
|
+
color: var(--mat-datepicker-calendar-container-text-color, var(--mat-sys-on-surface));
|
|
947
|
+
box-shadow: var(--mat-datepicker-calendar-container-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));
|
|
948
|
+
border-radius: var(--mat-datepicker-calendar-container-shape, var(--mat-sys-corner-large));
|
|
949
|
+
}
|
|
950
|
+
.mat-datepicker-content.mat-datepicker-content-animations-enabled {
|
|
951
|
+
animation: _mat-datepicker-content-dropdown-enter 120ms cubic-bezier(0, 0, 0.2, 1);
|
|
952
|
+
}
|
|
953
|
+
.mat-datepicker-content .mat-calendar {
|
|
954
|
+
width: 296px;
|
|
955
|
+
height: 354px;
|
|
956
|
+
}
|
|
957
|
+
.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar {
|
|
958
|
+
height: auto;
|
|
959
|
+
}
|
|
960
|
+
.mat-datepicker-content .mat-datepicker-close-button {
|
|
961
|
+
position: absolute;
|
|
962
|
+
top: 100%;
|
|
963
|
+
left: 0;
|
|
964
|
+
margin-top: 8px;
|
|
965
|
+
}
|
|
966
|
+
.mat-datepicker-content-animating .mat-datepicker-content .mat-datepicker-close-button {
|
|
967
|
+
display: none;
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
.mat-datepicker-content-container {
|
|
971
|
+
display: flex;
|
|
972
|
+
flex-direction: column;
|
|
973
|
+
justify-content: space-between;
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
.mat-datepicker-content-touch {
|
|
977
|
+
display: block;
|
|
978
|
+
max-height: 80vh;
|
|
979
|
+
box-shadow: var(--mat-datepicker-calendar-container-touch-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));
|
|
980
|
+
border-radius: var(--mat-datepicker-calendar-container-touch-shape, var(--mat-sys-corner-extra-large));
|
|
981
|
+
position: relative;
|
|
982
|
+
overflow: visible;
|
|
983
|
+
min-height: fit-content;
|
|
984
|
+
}
|
|
985
|
+
.mat-datepicker-content-touch.mat-datepicker-content-animations-enabled {
|
|
986
|
+
animation: _mat-datepicker-content-dialog-enter 150ms cubic-bezier(0, 0, 0.2, 1);
|
|
987
|
+
}
|
|
988
|
+
.mat-datepicker-content-touch .mat-datepicker-content-container {
|
|
989
|
+
min-height: 312px;
|
|
990
|
+
max-height: 788px;
|
|
991
|
+
min-width: 250px;
|
|
992
|
+
max-width: 750px;
|
|
993
|
+
}
|
|
994
|
+
.mat-datepicker-content-touch .mat-calendar {
|
|
995
|
+
width: 100%;
|
|
996
|
+
height: auto;
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
.mat-datepicker-content-exit.mat-datepicker-content-animations-enabled {
|
|
1000
|
+
animation: _mat-datepicker-content-exit 100ms linear;
|
|
1001
|
+
}
|
|
1002
|
+
|
|
1003
|
+
@media all and (orientation: landscape) {
|
|
1004
|
+
.mat-datepicker-content-touch .mat-datepicker-content-container {
|
|
1005
|
+
width: 64vh;
|
|
1006
|
+
height: 80vh;
|
|
1007
|
+
}
|
|
1008
|
+
}
|
|
1009
|
+
@media all and (orientation: portrait) {
|
|
1010
|
+
.mat-datepicker-content-touch .mat-datepicker-content-container {
|
|
1011
|
+
width: 80vw;
|
|
1012
|
+
height: 100vw;
|
|
1013
|
+
}
|
|
1014
|
+
.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions {
|
|
1015
|
+
height: 115vw;
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
`],encapsulation:2,changeDetection:0})}return n})(),hi=(()=>{class n{_injector=s(Z);_viewContainerRef=s(Qe);_dateAdapter=s(I,{optional:!0});_dir=s(se,{optional:!0});_model=s(je);_animationsDisabled=X();_scrollStrategy=s(kn);_inputStateChanges=K.EMPTY;_document=s(qe);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt=null;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}_color;touchUi=!1;get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}_disabled;xPosition="start";yPosition="below";restoreFocus=!0;yearSelected=new p;monthSelected=new p;viewChanged=new p(!0);dateClass;openedStream=new p;closedStream=new p;get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=Ca(e)}_panelClass;get opened(){return this._opened}set opened(e){e?this.open():this.close()}_opened=!1;id=s(ue).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef=null;_componentRef=null;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal=null;datepickerInput;stateChanges=new C;_changeDetectorRef=s(V);constructor(){this._dateAdapter,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(e){let t=e.xPosition||e.yPosition;if(t&&!t.firstChange&&this._overlayRef){let a=this._overlayRef.getConfig().positionStrategy;a instanceof ma&&(this._setConnectedPositions(a),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=Dt(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",t=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:a,location:i}=this._componentRef;a._animationDone.pipe(Ge(1)).subscribe(()=>{let r=this._document.activeElement;e&&(!r||r===this._document.activeElement||i.nativeElement.contains(r))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()}),a._startExitAnimation()}e?setTimeout(t):t()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,t=new Ye(bi,this._viewContainerRef),a=this._overlayRef=it(this._injector,new pa({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:e?ha(this._injector):this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`,disableAnimations:this._animationsDisabled}));this._getCloseStream(a).subscribe(i=>{i&&i.preventDefault(),this.close()}),a.keydownEvents().subscribe(i=>{let r=i.keyCode;(r===38||r===40||r===37||r===39||r===33||r===34)&&i.preventDefault()}),this._componentRef=a.attach(t),this._forwardContentValues(this._componentRef.instance),e||ke(()=>{a.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return ua(this._injector).centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=at(this._injector,this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let t=this.xPosition==="end"?"end":"start",a=t==="start"?"end":"start",i=this.yPosition==="above"?"bottom":"top",r=i==="top"?"bottom":"top";return e.withPositions([{originX:t,originY:r,overlayX:t,overlayY:i},{originX:t,originY:i,overlayX:t,overlayY:r},{originX:a,originY:r,overlayX:a,overlayY:i},{originX:a,originY:i,overlayX:a,overlayY:r}])}_getCloseStream(e){let t=["ctrlKey","shiftKey","metaKey"];return de(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(Fe(a=>a.keyCode===27&&!O(a)||this.datepickerInput&&O(a,"altKey")&&a.keyCode===38&&t.every(i=>!O(a,i)))))}static \u0275fac=function(t){return new(t||n)};static \u0275dir=te({type:n,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",S],disabled:[2,"disabled","disabled",S],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",S],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",S]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[J]})}return n})(),yi=(()=>{class n extends hi{static \u0275fac=(()=>{let e;return function(a){return(e||(e=ta(n)))(a||n)}})();static \u0275cmp=w({type:n,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[U([mi,{provide:hi,useExisting:n}]),bt],decls:0,vars:0,template:function(t,a){},encapsulation:2,changeDetection:0})}return n})(),Ve=class{target;targetElement;value=null;constructor(o,e){this.target=o,this.targetElement=e,this.value=this.target.value}},Mn=(()=>{class n{_elementRef=s(P);_dateAdapter=s(I,{optional:!0});_dateFormats=s(fe,{optional:!0});_isInitialized=!1;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e,!0)}_model;get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let t=e,a=this._elementRef.nativeElement;this._disabled!==t&&(this._disabled=t,this.stateChanges.next(void 0)),t&&this._isInitialized&&a.blur&&a.blur()}_disabled;dateChange=new p;dateInput=new p;stateChanges=new C;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=K.EMPTY;_localeSubscription=K.EMPTY;_pendingValue=null;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=e=>{let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!t||this._matchesFilter(t)?null:{matDatepickerFilter:!0}};_minValidator=e=>{let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),a=this._getMinDate();return!a||!t||this._dateAdapter.compareDate(a,t)<=0?null:{matDatepickerMin:{min:a,actual:t}}};_maxValidator=e=>{let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),a=this._getMaxDate();return!a||!t||this._dateAdapter.compareDate(a,t)>=0?null:{matDatepickerMax:{max:a,actual:t}}};_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(t=>{if(this._shouldHandleChangeEvent(t)){let a=this._getValueFromModel(t.selection);this._lastValueValid=this._isValidValue(a),this._cvaOnChange(a),this._onTouched(),this._formatValue(a),this.dateInput.emit(new Ve(this,this._elementRef.nativeElement)),this.dateChange.emit(new Ve(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value,!0)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){An(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e,e!==this.value)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let t=["ctrlKey","shiftKey","metaKey"];O(e,"altKey")&&e.keyCode===40&&t.every(i=>!O(e,i))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let t=e.target.value,a=this._lastValueValid,i=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(i),i=this._dateAdapter.getValidDateOrNull(i);let r=!this._dateAdapter.sameDate(i,this.value);!i||r?this._cvaOnChange(i):(t&&!this.value&&this._cvaOnChange(i),a!==this._lastValueValid&&this._validatorOnChange()),r&&(this._assignValue(i),this.dateInput.emit(new Ve(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Ve(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e,t){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),t&&this._formatValue(e)}_matchesFilter(e){let t=this._getDateFilter();return!t||t(e)}static \u0275fac=function(t){return new(t||n)};static \u0275dir=te({type:n,inputs:{value:"value",disabled:[2,"disabled","disabled",S]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[J]})}return n})();function An(n,o){let e=Object.keys(n);for(let t of e){let{previousValue:a,currentValue:i}=n[t];if(o.isDateInstance(a)&&o.isDateInstance(i)){if(!o.sameDate(a,i))return!0}else return!0}return!1}var Sn={provide:Fa,useExisting:gt(()=>mt),multi:!0},xn={provide:La,useExisting:gt(()=>mt),multi:!0},mt=(()=>{class n extends Mn{_formField=s(lt,{optional:!0});_closedSubscription=K.EMPTY;_openedSubscription=K.EMPTY;set matDatepicker(e){e&&(this._datepicker=e,this._ariaOwns.set(e.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(e.registerInput(this)))}_datepicker;_ariaOwns=f(null);get min(){return this._min}set min(e){let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._min)||(this._min=t,this._validatorOnChange())}_min=null;get max(){return this._max}set max(e){let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._max)||(this._max=t,this._validatorOnChange())}_max=null;get dateFilter(){return this._dateFilter}set dateFilter(e){let t=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==t&&this._validatorOnChange()}_dateFilter;_validator=null;constructor(){super(),this._validator=st.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static \u0275fac=function(t){return new(t||n)};static \u0275dir=te({type:n,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(t,a){t&1&&g("input",function(r){return a._onInput(r)})("change",function(){return a._onChange()})("blur",function(){return a._onBlur()})("keydown",function(r){return a._onKeydown(r)}),t&2&&(re("disabled",a.disabled),k("aria-haspopup",a._datepicker?"dialog":null)("aria-owns",a._ariaOwns())("min",a.min?a._dateAdapter.toIso8601(a.min):null)("max",a.max?a._dateAdapter.toIso8601(a.max):null)("data-mat-calendar",a._datepicker?a._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[U([Sn,xn,{provide:Ga,useExisting:n}]),bt]})}return n})(),En=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=te({type:n,selectors:[["","matDatepickerToggleIcon",""]]})}return n})(),Ut=(()=>{class n{_intl=s(Re);_changeDetectorRef=s(V);_stateChanges=K.EMPTY;datepicker;tabIndex=null;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}_disabled;disableRipple=!1;_customIcon;_button;constructor(){let e=s(new Je("tabindex"),{optional:!0}),t=Number(e);this.tabIndex=t||t===0?t:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:Ke(),t=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:Ke(),a=this.datepicker?de(this.datepicker.openedStream,this.datepicker.closedStream):Ke();this._stateChanges.unsubscribe(),this._stateChanges=de(this._intl.changes,e,t,a).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=w({type:n,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,a,i){if(t&1&&Xe(i,En,5),t&2){let r;v(r=D())&&(a._customIcon=r.first)}},viewQuery:function(t,a){if(t&1&&N(_n,5),t&2){let i;v(i=D())&&(a._button=i.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(t,a){t&1&&g("click",function(r){return a._open(r)}),t&2&&(k("tabindex",null)("data-mat-calendar",a.datepicker?a.datepicker.id:null),A("mat-datepicker-toggle-active",a.datepicker&&a.datepicker.opened)("mat-accent",a.datepicker&&a.datepicker.color==="accent")("mat-warn",a.datepicker&&a.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",S],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[J],ngContentSelectors:fn,decls:4,vars:7,consts:[["button",""],["matIconButton","","type","button",3,"tabIndex","disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(t,a){t&1&&(Ce(gn),d(0,"button",1,0),B(2,bn,2,0,":svg:svg",2),oe(3),c()),t&2&&(u("tabIndex",a.disabled?-1:a.tabIndex)("disabled",a.disabled)("disableRipple",a.disableRipple),k("aria-haspopup",a.datepicker?"dialog":null)("aria-label",a.ariaLabel||a._intl.openCalendarLabel)("aria-expanded",a.datepicker?a.datepicker.opened:null),l(2),H(a._customIcon?-1:2))},dependencies:[xt],styles:[`.mat-datepicker-toggle {
|
|
1019
|
+
pointer-events: auto;
|
|
1020
|
+
color: var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant));
|
|
1021
|
+
}
|
|
1022
|
+
.mat-datepicker-toggle button {
|
|
1023
|
+
color: inherit;
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
.mat-datepicker-toggle-active {
|
|
1027
|
+
color: var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-sys-primary));
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
@media (forced-colors: active) {
|
|
1031
|
+
.mat-datepicker-toggle-default-icon {
|
|
1032
|
+
color: CanvasText;
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
`],encapsulation:2,changeDetection:0})}return n})();var vi=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=ee({type:n});static \u0275inj=$({providers:[Re],imports:[ot,nt,Da,ca,bi,Ut,fi,me,tt]})}return n})();var Tn=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,Vn=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function Xt(n,o){let e=Array(n);for(let t=0;t<n;t++)e[t]=o(t);return e}var On=(()=>{class n extends I{_matDateLocale=s(Nt,{optional:!0});constructor(){super();let e=s(Nt,{optional:!0});e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Xt(12,a=>this._format(t,new Date(2017,a,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Xt(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){let t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Xt(7,a=>this._format(t,new Date(2017,0,a+1)))}getYearName(e){let t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),t=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return t===7?0:t}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,a){let i=this._createDateWithOverflow(e,t,a);return i.getMonth()!=t,i}today(){return new Date}parse(e,t){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let a=new Intl.DateTimeFormat(this.locale,Zt(be({},t),{timeZone:"utc"}));return this._format(a,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,t*12)}addCalendarMonths(e,t){let a=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(a)!=((this.getMonth(e)+t)%12+12)%12&&(a=this._createDateWithOverflow(this.getYear(a),this.getMonth(a),0)),a}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(Tn.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}setTime(e,t,a,i){let r=this.clone(e);return r.setHours(t,a,i,0),r}getHours(e){return e.getHours()}getMinutes(e){return e.getMinutes()}getSeconds(e){return e.getSeconds()}parseTime(e,t){if(typeof e!="string")return e instanceof Date?new Date(e.getTime()):null;let a=e.trim();if(a.length===0)return null;let i=this._parseTimeString(a);if(i===null){let r=a.replace(/[^0-9:(AM|PM)]/gi,"").trim();r.length>0&&(i=this._parseTimeString(r))}return i||this.invalid()}addSeconds(e,t){return new Date(e.getTime()+t*1e3)}_createDateWithOverflow(e,t,a){let i=new Date;return i.setFullYear(e,t,a),i.setHours(0,0,0,0),i}_2digit(e){return("00"+e).slice(-2)}_format(e,t){let a=new Date;return a.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),a.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(a)}_parseTimeString(e){let t=e.toUpperCase().match(Vn);if(t){let a=parseInt(t[1]),i=parseInt(t[2]),r=t[3]==null?void 0:parseInt(t[3]),_=t[4];if(a===12?a=_==="AM"?0:a:_==="PM"&&(a+=12),$t(a,0,23)&&$t(i,0,59)&&(r==null||$t(r,0,59)))return this.setTime(this.today(),a,i,r||0)}return null}static \u0275fac=function(t){return new(t||n)};static \u0275prov=ce({token:n,factory:n.\u0275fac})}return n})();function $t(n,o,e){return!isNaN(n)&&n>=o&&n<=e}var Rn={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};function Di(n=Rn){return[{provide:I,useClass:On},{provide:fe,useValue:n}]}var Fn=()=>["self","all"];function Pn(n,o){if(n&1&&(d(0,"mat-option",5),h(1),c()),n&2){let e=o.$implicit;u("value",e),l(),E(e)}}function Ln(n,o){if(n&1&&(d(0,"mat-option",5),h(1),c()),n&2){let e=o.$implicit;u("value",e),l(),E(e)}}function Nn(n,o){if(n&1&&(d(0,"mat-option",5),h(1),c()),n&2){let e=o.$implicit;u("value",e),l(),E(e)}}function Yn(n,o){if(n&1&&(d(0,"mat-option",5),h(1),c()),n&2){let e=o.$implicit;u("value",e),l(),E(e)}}var Ci=class n{hour;minute;formData={context:"all",startTimeHr:"00",startTimeMin:"00",startDate:null,playbackRate:1};maxDate=new Date;dialogRef=s(Aa);constructor(){}submit(o=!1){let e={},t="";o||(this.formData.startDate.setHours(parseInt(this.formData.startTimeHr)),this.formData.startDate.setMinutes(parseInt(this.formData.startTimeMin)),t=this.formData.startDate.toISOString(),t=t.slice(0,t.indexOf("."))+"Z",e={subscribe:this.formData.context,startTime:t,playbackRate:this.formData.playbackRate}),this.dialogRef.close({result:!o,query:e,startTime:t})}hrValues(){let o=[];for(let e=0;e<24;e++)o.push(("00"+e).slice(-2));return o}minValues(){let o=[];for(let e=0;e<59;e++)o.push(("00"+e).slice(-2));return o}rateValues(){return[.5,1,2,5,10]}static \u0275fac=function(e){return new(e||n)};static \u0275cmp=w({type:n,selectors:[["ap-playbackdialog"]],features:[U([Di()])],decls:57,vars:10,consts:[["picker",""],[1,"_ap-playback"],["mat-dialog-title",""],[2,"display","flex"],[3,"ngModelChange","ngModel"],[3,"value"],["floatLabel","always"],["matInput","","required","",3,"ngModelChange","max","matDatepicker","ngModel"],["matSuffix","",3,"for"],[2,"font-size","10pt"],[2,"width","100px"],["matTooltip","Advance stream the selected number of seconds for every second of playback",2,"width","150px"],[2,"text-align","center","width","100%"],["mat-raised-button","",3,"click","disabled"],["mat-raised-button","",3,"click"]],template:function(e,t){if(e&1){let a=ne();d(0,"div",1)(1,"div")(2,"h1",2)(3,"mat-icon"),h(4,"history"),c(),h(5,"\xA0 \xA0\xA0History Playback "),c()(),d(6,"mat-dialog-content")(7,"div",3)(8,"div")(9,"div")(10,"mat-form-field")(11,"mat-label"),h(12,"Context"),c(),d(13,"mat-select",4),Q("ngModelChange",function(r){return b(a),q(t.formData.context,r)||(t.formData.context=r),y(r)}),ae(14,Pn,2,2,"mat-option",5,Ne),c()()(),d(16,"div")(17,"mat-form-field",6)(18,"mat-label"),h(19,"Start date"),c(),d(20,"input",7),Q("ngModelChange",function(r){return b(a),q(t.formData.startDate,r)||(t.formData.startDate=r),y(r)}),c(),d(21,"mat-hint"),h(22,"MM/DD/YYYY"),c(),M(23,"mat-datepicker-toggle",8)(24,"mat-datepicker",null,0),c()(),d(26,"div",9)(27,"b"),h(28,"Start Time:"),c(),M(29,"br"),d(30,"mat-form-field",10)(31,"mat-label"),h(32,"Hour"),c(),d(33,"mat-select",4),Q("ngModelChange",function(r){return b(a),q(t.formData.startTimeHr,r)||(t.formData.startTimeHr=r),y(r)}),ae(34,Ln,2,2,"mat-option",5,Ne),c()(),d(36,"b"),h(37,": "),c(),d(38,"mat-form-field",10)(39,"mat-label"),h(40,"Minutes"),c(),d(41,"mat-select",4),Q("ngModelChange",function(r){return b(a),q(t.formData.startTimeMin,r)||(t.formData.startTimeMin=r),y(r)}),ae(42,Nn,2,2,"mat-option",5,Ne),c()()(),d(44,"div")(45,"mat-form-field",11)(46,"mat-label"),h(47,"Playback Rate"),c(),d(48,"mat-select",4),Q("ngModelChange",function(r){return b(a),q(t.formData.playbackRate,r)||(t.formData.playbackRate=r),y(r)}),ae(49,Yn,2,2,"mat-option",5,Ne),c()()()()()(),d(51,"mat-dialog-actions")(52,"div",12)(53,"button",13),g("click",function(){return t.submit()}),h(54," START "),c(),d(55,"button",14),g("click",function(){return t.submit(!0)}),h(56,"CANCEL"),c()()()()}if(e&2){let a=$e(25);l(13),G("ngModel",t.formData.context),l(),ie(ra(9,Fn)),l(6),u("max",t.maxDate)("matDatepicker",a),G("ngModel",t.formData.startDate),l(3),u("for",a),l(10),G("ngModel",t.formData.startTimeHr),l(),ie(t.hrValues()),l(7),G("ngModel",t.formData.startTimeMin),l(),ie(t.minValues()),l(6),G("ngModel",t.formData.playbackRate),l(),ie(t.rateValues()),l(4),u("disabled",!t.formData.startDate)}},dependencies:[Ha,Pa,Na,Ba,Ya,Ia,Sa,Ea,xa,Ra,Oa,ot,Be,dt,Ka,za,Wa,ja,ii,ai,Se,Xa,Ua,vi,yi,mt,Ut],styles:["._ap-playback[_ngcontent-%COMP%]{font-family:arial;min-width:300px}"]})};export{He as a,Mi as b,$a as c,ei as d,ri as e,Se as f,ai as g,Gr as h,ii as i,yi as j,mt as k,Ut as l,vi as m,Di as n,Ci as o};
|