-
Notifications
You must be signed in to change notification settings - Fork 1
/
src_app_custom-elements_expandable-section_expandable-section_module_ts.e1e162cedbd51c4d.js
2 lines (2 loc) · 16.6 KB
/
src_app_custom-elements_expandable-section_expandable-section_module_ts.e1e162cedbd51c4d.js
1
2
"use strict";(self.webpackChunksite=self.webpackChunksite||[]).push([["src_app_custom-elements_expandable-section_expandable-section_module_ts"],{6407:(ee,_,s)=>{s.r(_),s.d(_,{ExpandableSectionModule:()=>q});var e=s(5460),b=s(5344),M=s(2676);const v=new e.UbH("CdkAccordion");let D=0,k=(()=>{var t;class i{get expanded(){return this._expanded}set expanded(n){this._expanded!==n&&(this._expanded=n,this.expandedChange.emit(n),n?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())}constructor(n,a,r){this.accordion=n,this._changeDetectorRef=a,this._expansionDispatcher=r,this._openCloseAllSubscription=M.wH.EMPTY,this.closed=new e._w7,this.opened=new e._w7,this.destroyed=new e._w7,this.expandedChange=new e._w7,this.id="cdk-accordion-child-"+D++,this._expanded=!1,this.disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=r.listen((l,h)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===h&&this.id!==l&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(n=>{this.disabled||(this.expanded=n)})}}return(t=i).\u0275fac=function(n){return new(n||t)(e.GI1(v,12),e.GI1(e.kD9),e.GI1(b.kT))},t.\u0275dir=e.Sc5({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[e.Wk5.HasDecoratorInputTransform,"expanded","expanded",e.cZD],disabled:[e.Wk5.HasDecoratorInputTransform,"disabled","disabled",e.cZD]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],standalone:!0,features:[e.M5G([{provide:v,useValue:void 0}]),e.QJr]}),i})(),T=(()=>{var t;class i{}return(t=i).\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.a4G({type:t}),t.\u0275inj=e.s3X({}),i})();var g=s(6886),H=s(6929),S=s(7472),F=s(9688),O=s(9248),x=s(2440),G=s(1100),u=s(1908),y=s(3441),R=s(5272),N=s(3456),d=s(9156),K=s(3267);const U=["body"];function z(t,i){}const X=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],Y=["mat-expansion-panel-header","*","mat-action-row"];function B(t,i){if(1&t&&e.wR5(0,"span",2),2&t){const o=e.GaO();e.E7m("@indicatorRotate",o._getExpandedState())}}const Q=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],$=["mat-panel-title","mat-panel-description","*"],A=new e.UbH("MAT_ACCORDION"),E="225ms cubic-bezier(0.4,0.0,0.2,1)",C={indicatorRotate:(0,d.gV)("indicatorRotate",[(0,d.K2)("collapsed, void",(0,d.wb)({transform:"rotate(0deg)"})),(0,d.K2)("expanded",(0,d.wb)({transform:"rotate(180deg)"})),(0,d.aK)("expanded <=> collapsed, void => collapsed",(0,d.Cs)(E))]),bodyExpansion:(0,d.gV)("bodyExpansion",[(0,d.K2)("collapsed, void",(0,d.wb)({height:"0px",visibility:"hidden"})),(0,d.K2)("expanded",(0,d.wb)({height:"*",visibility:""})),(0,d.aK)("expanded <=> collapsed, void => collapsed",(0,d.Cs)(E))])},P=new e.UbH("MAT_EXPANSION_PANEL");let L=(()=>{var t;class i{constructor(n,a){this._template=n,this._expansionPanel=a}}return(t=i).\u0275fac=function(n){return new(n||t)(e.GI1(e.Yw2),e.GI1(P,8))},t.\u0275dir=e.Sc5({type:t,selectors:[["ng-template","matExpansionPanelContent",""]],standalone:!0}),i})(),V=0;const w=new e.UbH("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let I=(()=>{var t;class i extends k{get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(n){this._hideToggle=n}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(n){this._togglePosition=n}constructor(n,a,r,l,h,f,m){super(n,a,r),this._viewContainerRef=l,this._animationMode=f,this._hideToggle=!1,this.afterExpand=new e._w7,this.afterCollapse=new e._w7,this._inputChanges=new y.E,this._headerId="mat-expansion-panel-header-"+V++,this._bodyAnimationDone=new y.E,this.accordion=n,this._document=h,this._bodyAnimationDone.pipe((0,F.a)((p,c)=>p.fromState===c.fromState&&p.toState===c.toState)).subscribe(p=>{"void"!==p.fromState&&("expanded"===p.toState?this.afterExpand.emit():"collapsed"===p.toState&&this.afterCollapse.emit())}),m&&(this.hideToggle=m.hideToggle)}_hasSpacing(){return!!this.accordion&&this.expanded&&"default"===this.accordion.displayMode}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe((0,O.W)(null),(0,x.I)(()=>this.expanded&&!this._portal),(0,G.U)(1)).subscribe(()=>{this._portal=new g.CC(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(n){this._inputChanges.next(n)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const n=this._document.activeElement,a=this._body.nativeElement;return n===a||a.contains(n)}return!1}}return(t=i).\u0275fac=function(n){return new(n||t)(e.GI1(A,12),e.GI1(e.kD9),e.GI1(b.kT),e.GI1(e.y8U),e.GI1(K.Ud),e.GI1(e.qwP,8),e.GI1(w,8))},t.\u0275cmp=e.In1({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(n,a,r){if(1&n&&e.szK(r,L,5),2&n){let l;e.wto(l=e.Gqi())&&(a._lazyContent=l.first)}},viewQuery:function(n,a){if(1&n&&e.CC$(U,5),2&n){let r;e.wto(r=e.Gqi())&&(a._body=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(n,a){2&n&&e.eAK("mat-expanded",a.expanded)("_mat-animation-noopable","NoopAnimations"===a._animationMode)("mat-expansion-panel-spacing",a._hasSpacing())},inputs:{hideToggle:[e.Wk5.HasDecoratorInputTransform,"hideToggle","hideToggle",e.cZD],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],standalone:!0,features:[e.M5G([{provide:A,useValue:void 0},{provide:P,useExisting:t}]),e.QJr,e.eg9,e.SYr,e.UHJ],ngContentSelectors:Y,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(n,a){1&n&&(e.kPM(X),e._Xx(0),e.I0R(1,"div",0,1),e.qCj("@bodyExpansion.done",function(l){return a._bodyAnimationDone.next(l)}),e.I0R(3,"div",2),e._Xx(4,1),e.yuY(5,z,0,0,"ng-template",3),e.C$Y(),e._Xx(6,2),e.C$Y()),2&n&&(e.yG2(),e.E7m("@bodyExpansion",a._getExpandedState())("id",a.id),e.e48("aria-labelledby",a._headerId),e.yG2(4),e.E7m("cdkPortalOutlet",a._portal))},dependencies:[g.IP],styles:['.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);position:relative;background:var(--mat-expansion-container-background-color);color:var(--mat-expansion-container-text-color);border-radius:var(--mat-expansion-container-shape)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape);border-top-left-radius:var(--mat-expansion-container-shape)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape);border-bottom-left-radius:var(--mat-expansion-container-shape)}.cdk-high-contrast-active .mat-expansion-panel{outline:solid 1px}.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel,.mat-expansion-panel._mat-animation-noopable{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;font-family:var(--mat-expansion-container-text-font);font-size:var(--mat-expansion-container-text-size);font-weight:var(--mat-expansion-container-text-weight);line-height:var(--mat-expansion-container-text-line-height);letter-spacing:var(--mat-expansion-container-text-tracking)}.mat-expansion-panel-content[style*="visibility: hidden"] *{visibility:hidden !important}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color)}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}'],encapsulation:2,data:{animation:[C.bodyExpansion]},changeDetection:0}),i})(),j=(()=>{var t;class i{constructor(n,a,r,l,h,f,m){this.panel=n,this._element=a,this._focusMonitor=r,this._changeDetectorRef=l,this._animationMode=f,this._parentChangeSubscription=M.wH.EMPTY,this.tabIndex=0;const p=n.accordion?n.accordion._stateChanges.pipe((0,x.I)(c=>!(!c.hideToggle&&!c.togglePosition))):R.k;this.tabIndex=parseInt(m||"")||0,this._parentChangeSubscription=(0,N.U)(n.opened,n.closed,p,n._inputChanges.pipe((0,x.I)(c=>!!(c.hideToggle||c.disabled||c.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),n.closed.pipe((0,x.I)(()=>n._containsFocus())).subscribe(()=>r.focusVia(a,"program")),h&&(this.expandedHeight=h.expandedHeight,this.collapsedHeight=h.collapsedHeight)}get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){const n=this._isExpanded();return n&&this.expandedHeight?this.expandedHeight:!n&&this.collapsedHeight?this.collapsedHeight:null}_keydown(n){switch(n.keyCode){case u.Gi:case u.wJ:(0,u.Yp)(n)||(n.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(n))}}focus(n,a){n?this._focusMonitor.focusVia(this._element,n,a):this._element.nativeElement.focus(a)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(n=>{n&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return(t=i).\u0275fac=function(n){return new(n||t)(e.GI1(I,1),e.GI1(e.GMv),e.GI1(S.Kk),e.GI1(e.kD9),e.GI1(w,8),e.GI1(e.qwP,8),e.gJ8("tabindex"))},t.\u0275cmp=e.In1({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(n,a){1&n&&e.qCj("click",function(){return a._toggle()})("keydown",function(l){return a._keydown(l)}),2&n&&(e.e48("id",a.panel._headerId)("tabindex",a.disabled?-1:a.tabIndex)("aria-controls",a._getPanelId())("aria-expanded",a._isExpanded())("aria-disabled",a.panel.disabled),e.m4B("height",a._getHeaderHeight()),e.eAK("mat-expanded",a._isExpanded())("mat-expansion-toggle-indicator-after","after"===a._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===a._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===a._animationMode))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[e.Wk5.HasDecoratorInputTransform,"tabIndex","tabIndex",o=>null==o?0:(0,e.cJ3)(o)]},standalone:!0,features:[e.QJr,e.UHJ],ngContentSelectors:$,decls:5,vars:3,consts:[[1,"mat-content"],["class","mat-expansion-indicator"],[1,"mat-expansion-indicator"]],template:function(n,a){1&n&&(e.kPM(Q),e.I0R(0,"span",0),e._Xx(1),e._Xx(2,1),e._Xx(3,2),e.C$Y(),e.yuY(4,B,1,1,"span",1)),2&n&&(e.eAK("mat-content-hide-toggle",!a._showToggle()),e.yG2(4),e.C0Y(4,a._showToggle()?4:-1))},styles:['.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-expansion-header-collapsed-state-height);font-family:var(--mat-expansion-header-text-font);font-size:var(--mat-expansion-header-text-size);font-weight:var(--mat-expansion-header-text-weight);line-height:var(--mat-expansion-header-text-line-height);letter-spacing:var(--mat-expansion-header-text-tracking)}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color)}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color)}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color)}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color)}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color)}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color)}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}'],encapsulation:2,data:{animation:[C.indicatorRotate]},changeDetection:0}),i})(),J=(()=>{var t;class i{}return(t=i).\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.a4G({type:t}),t.\u0275inj=e.s3X({imports:[H.AN,T,g.g$]}),i})();const W=["*"];let Z=(()=>{var t;class i{}return(t=i).\u0275fac=function(n){return new(n||t)},t.\u0275cmp=e.In1({type:t,selectors:[["aio-expandable-section"]],inputs:{title:"title"},ngContentSelectors:W,decls:4,vars:1,consts:[[2,"background","inherit"]],template:function(n,a){1&n&&(e.kPM(),e.I0R(0,"mat-expansion-panel",0)(1,"mat-expansion-panel-header"),e.OEk(2),e.C$Y(),e._Xx(3),e.C$Y()),2&n&&(e.yG2(2),e.oRS(" ",a.title," "))},dependencies:[I,j],encapsulation:2}),i})(),q=(()=>{var t;class i{constructor(){this.customElementComponent=Z}}return(t=i).\u0275fac=function(n){return new(n||t)},t.\u0275mod=e.a4G({type:t}),t.\u0275inj=e.s3X({imports:[J]}),i})()}}]);
//# sourceMappingURL=src_app_custom-elements_expandable-section_expandable-section_module_ts.e1e162cedbd51c4d.js.map