marketplacepos 5.48.0 → 5.48.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/Marketplace/3rdpartylicenses.txt +26 -26
- package/Marketplace/{chunk-222IOSGU.js → chunk-2F4DTZCZ.js} +1 -1
- package/Marketplace/{chunk-3LU2SFN4.js → chunk-2IASUYTM.js} +1 -1
- package/Marketplace/chunk-2USFVKEX.js +1 -0
- package/Marketplace/chunk-36U7D4LI.js +1 -0
- package/Marketplace/chunk-3JYZF65T.js +1 -0
- package/Marketplace/chunk-3K2EKA5O.js +1 -0
- package/Marketplace/{chunk-ZV7EHPNJ.js → chunk-3L7Y6LG6.js} +1 -1
- package/Marketplace/chunk-4JDI3AL5.js +1 -0
- package/Marketplace/{chunk-5YBWBAQS.js → chunk-4YCSITNV.js} +1 -1
- package/Marketplace/{chunk-55BTWXFX.js → chunk-5BSPSA4O.js} +1 -1
- package/Marketplace/chunk-5CHTDUME.js +1 -0
- package/Marketplace/chunk-5KYN6Y7M.js +1 -0
- package/Marketplace/{chunk-56BH43Y7.js → chunk-5X2E3W32.js} +1 -1
- package/Marketplace/{chunk-WW7F6LSG.js → chunk-5X2L45XK.js} +1 -1
- package/Marketplace/chunk-6EORXONU.js +4 -0
- package/Marketplace/{chunk-34UF36YY.js → chunk-6OIMOM7S.js} +1 -1
- package/Marketplace/{chunk-J2BPOHP6.js → chunk-6OJQRHIZ.js} +1 -1
- package/Marketplace/{chunk-ZAUKG4R6.js → chunk-6PW6S7MI.js} +1 -1
- package/Marketplace/chunk-6XDT56RT.js +2 -0
- package/Marketplace/{chunk-JOKDW6WD.js → chunk-7DT7FQ2T.js} +1 -1
- package/Marketplace/{chunk-KKB4B7FU.js → chunk-7GY4O2UX.js} +3 -3
- package/Marketplace/chunk-7SB4C4PT.js +1 -0
- package/Marketplace/chunk-A7PUMY67.js +1 -0
- package/Marketplace/chunk-ADKAX3OO.js +1 -0
- package/Marketplace/chunk-AEVLZ7NS.js +1 -0
- package/Marketplace/{chunk-NECWUPZQ.js → chunk-AFIF6VRM.js} +1 -1
- package/Marketplace/chunk-AGBJEXIM.js +1 -0
- package/Marketplace/chunk-ALPG22RQ.js +1 -0
- package/Marketplace/{chunk-DRTRU4DB.js → chunk-B6F5PDL5.js} +1 -1
- package/Marketplace/{chunk-HERBJRWM.js → chunk-BXYXVBXP.js} +1 -1
- package/Marketplace/{chunk-KWNXPX2M.js → chunk-C6JHPCLF.js} +1 -1
- package/Marketplace/{chunk-B4QCGMST.js → chunk-C7N6EI73.js} +1 -1
- package/Marketplace/{chunk-PQEXTCFW.js → chunk-CAZ7U2IL.js} +10 -10
- package/Marketplace/chunk-CBU473N2.js +1 -0
- package/Marketplace/{chunk-UNGNRJ2B.js → chunk-CLQGGKN6.js} +1 -1
- package/Marketplace/chunk-CT6UFONR.js +1 -0
- package/Marketplace/{chunk-IO2TWJDO.js → chunk-DAUML5UD.js} +1 -1
- package/Marketplace/chunk-DH5CXAEM.js +1 -0
- package/Marketplace/chunk-DHPNXR6E.js +1 -0
- package/Marketplace/chunk-DTAHV4GM.js +1 -0
- package/Marketplace/{chunk-MQXW3UAW.js → chunk-DXYMG6QK.js} +1 -1
- package/Marketplace/chunk-E3EBAWLJ.js +1 -0
- package/Marketplace/chunk-E66QUDQF.js +1 -0
- package/Marketplace/chunk-E6ZWL77N.js +1 -0
- package/Marketplace/chunk-EDEZ3JLR.js +4 -0
- package/Marketplace/{chunk-OROFEDQN.js → chunk-FCEXPGTK.js} +1 -1
- package/Marketplace/chunk-FCFCTT5A.js +1 -0
- package/Marketplace/chunk-FHER4TFY.js +1 -0
- package/Marketplace/{chunk-VZSHSSQZ.js → chunk-FKGKMEDE.js} +1 -1
- package/Marketplace/chunk-FRZCC6KZ.js +1 -0
- package/Marketplace/chunk-GG3MDS4C.js +1 -0
- package/Marketplace/{chunk-ONU4O7N2.js → chunk-GPHNPV7O.js} +1 -1
- package/Marketplace/{chunk-J7FL3VT4.js → chunk-GURSK3ZV.js} +1 -1
- package/Marketplace/{chunk-N3WBRUNI.js → chunk-GVI6GJHY.js} +1 -1
- package/Marketplace/chunk-GX6JPDQ5.js +1 -0
- package/Marketplace/chunk-H7GV5SNI.js +5 -0
- package/Marketplace/{chunk-S32PEKW5.js → chunk-HKHNRMPT.js} +1 -1
- package/Marketplace/{chunk-5O33CV4F.js → chunk-I723PUUO.js} +1 -1
- package/Marketplace/{chunk-PGR6BEOA.js → chunk-I7C6W3RB.js} +1 -1
- package/Marketplace/{chunk-R6SCDZGW.js → chunk-IDH7MCR3.js} +1 -1
- package/Marketplace/chunk-ILW6ZFFV.js +1 -0
- package/Marketplace/chunk-J6BQDYXO.js +1 -0
- package/Marketplace/{chunk-TCWEUEBR.js → chunk-J6CZKQ53.js} +1 -1
- package/Marketplace/chunk-JBEKD57G.js +1 -0
- package/Marketplace/{chunk-G6P2UZU4.js → chunk-JW7NES7L.js} +1 -1
- package/Marketplace/{chunk-O4HOLA7Y.js → chunk-KSVJCX2D.js} +1 -1
- package/Marketplace/chunk-KVDREHOE.js +1 -0
- package/Marketplace/chunk-KZSTYKIP.js +1 -0
- package/Marketplace/{chunk-76CPUGUB.js → chunk-L76NLJD7.js} +2 -2
- package/Marketplace/{chunk-XBDQR2BA.js → chunk-LABF6W37.js} +1 -1
- package/Marketplace/{chunk-MAMCOUZ6.js → chunk-M2BYW5SR.js} +1 -1
- package/Marketplace/{chunk-P6TDS7UT.js → chunk-M65Z55OS.js} +1 -1
- package/Marketplace/chunk-MKADKY44.js +2 -0
- package/Marketplace/{chunk-NYJPPKGX.js → chunk-NCKPMA6Q.js} +1 -1
- package/Marketplace/{chunk-TDCMI7YC.js → chunk-O2YF5VGD.js} +1 -1
- package/Marketplace/chunk-O4EO3YBL.js +1 -0
- package/Marketplace/{chunk-Y6WFE3L2.js → chunk-OBF4XVU7.js} +1 -1
- package/Marketplace/chunk-PDCVMSLL.js +1 -0
- package/Marketplace/chunk-PLLHTY6O.js +15 -0
- package/Marketplace/chunk-PMVDQ2OP.js +1 -0
- package/Marketplace/chunk-PZKN5FIT.js +1 -0
- package/Marketplace/chunk-Q4TAOZ73.js +1 -0
- package/Marketplace/chunk-QCV5XC3U.js +266 -0
- package/Marketplace/{chunk-GV3NEJJ6.js → chunk-QFSA7CU4.js} +1 -1
- package/Marketplace/{chunk-XUBQATMN.js → chunk-R2XT5M5F.js} +1 -1
- package/Marketplace/chunk-RCBY7EIY.js +1 -0
- package/Marketplace/{chunk-J5BZDPXE.js → chunk-RQQWNLDZ.js} +1 -1
- package/Marketplace/chunk-S5R6MCNP.js +5 -0
- package/Marketplace/{chunk-RJFFTIAO.js → chunk-S7CKRTJV.js} +1 -1
- package/Marketplace/{chunk-PZB3GQWT.js → chunk-SHUYFOQI.js} +1 -1
- package/Marketplace/{chunk-SILAIDPV.js → chunk-STYL7ETF.js} +1 -1
- package/Marketplace/{chunk-E7FHMF3J.js → chunk-SZVL42NR.js} +1 -1
- package/Marketplace/chunk-T7HRAMHR.js +1 -0
- package/Marketplace/chunk-TIIGDXIJ.js +2 -0
- package/Marketplace/{chunk-CEXUETT6.js → chunk-TJYYRHZZ.js} +1 -1
- package/Marketplace/{chunk-DYQ3BWPB.js → chunk-TXOZULMZ.js} +1 -1
- package/Marketplace/chunk-TYQY4WPY.js +1 -0
- package/Marketplace/chunk-UBTALPOC.js +2 -0
- package/Marketplace/{chunk-6XT3JSG5.js → chunk-UCEZJNIL.js} +1 -1
- package/Marketplace/chunk-VWX2IX64.js +1 -0
- package/Marketplace/{chunk-W7YZT7CH.js → chunk-VYQD3A3M.js} +1 -1
- package/Marketplace/{chunk-37NOSLQL.js → chunk-WHHW4IZT.js} +1 -1
- package/Marketplace/{chunk-74JHI4MS.js → chunk-WNUTNP6I.js} +1 -1
- package/Marketplace/{chunk-DQOO5YZC.js → chunk-WRK3ZHRX.js} +1 -1
- package/Marketplace/chunk-X6COQADC.js +1 -0
- package/Marketplace/{chunk-7Y2L4CNS.js → chunk-XDBH7EGC.js} +1 -1
- package/Marketplace/chunk-XK4RP5MQ.js +1 -0
- package/Marketplace/{chunk-3I2V337G.js → chunk-XLIPGDSC.js} +1 -1
- package/Marketplace/chunk-Y77WYZ6Y.js +5 -0
- package/Marketplace/{chunk-NLSVMXR7.js → chunk-ZKIO2ZQ6.js} +1 -1
- package/Marketplace/chunk-ZME22WYI.js +1 -0
- package/Marketplace/{chunk-A7YRNCQP.js → chunk-ZTHO6JJM.js} +1 -1
- package/Marketplace/chunk-ZUL6ZHSW.js +1 -0
- package/Marketplace/{chunk-UW3UCIOY.js → chunk-ZW2TMVZP.js} +1 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/main-YJKBQ3LW.js +1 -0
- package/Marketplace/{styles-3SQUCHWS.css → styles-ANCVZJP7.css} +1 -1
- package/package.json +1 -1
- package/Marketplace/chunk-2FSRCK7Y.js +0 -1
- package/Marketplace/chunk-2LCP6ZFH.js +0 -1
- package/Marketplace/chunk-3YDWTOSL.js +0 -1
- package/Marketplace/chunk-44URQXRM.js +0 -1
- package/Marketplace/chunk-465DKI6M.js +0 -1
- package/Marketplace/chunk-46IROEMV.js +0 -2
- package/Marketplace/chunk-4R746B4G.js +0 -1
- package/Marketplace/chunk-573EEV7X.js +0 -1
- package/Marketplace/chunk-5S7ONNKP.js +0 -1
- package/Marketplace/chunk-6ZEQRKBC.js +0 -1
- package/Marketplace/chunk-7HVOZWYY.js +0 -1
- package/Marketplace/chunk-7U32FNM2.js +0 -2
- package/Marketplace/chunk-7VRLCSNB.js +0 -1
- package/Marketplace/chunk-AL5RTE5M.js +0 -1
- package/Marketplace/chunk-AXC6LM6T.js +0 -1
- package/Marketplace/chunk-BHGEKKCM.js +0 -1
- package/Marketplace/chunk-BLHKSSK6.js +0 -1
- package/Marketplace/chunk-BXOHTPGP.js +0 -1
- package/Marketplace/chunk-CNTLG54D.js +0 -1
- package/Marketplace/chunk-DLXWO2XC.js +0 -1
- package/Marketplace/chunk-DPQMNLFO.js +0 -1
- package/Marketplace/chunk-E5JZCOHZ.js +0 -1
- package/Marketplace/chunk-EMLE4JDW.js +0 -1
- package/Marketplace/chunk-FFTZPZOW.js +0 -5
- package/Marketplace/chunk-FHZNWINZ.js +0 -1
- package/Marketplace/chunk-GLMM3CVD.js +0 -1
- package/Marketplace/chunk-GQCDEPDY.js +0 -1
- package/Marketplace/chunk-GZLXMT7F.js +0 -1
- package/Marketplace/chunk-HG4R6CUP.js +0 -1
- package/Marketplace/chunk-HU7LMMZJ.js +0 -1
- package/Marketplace/chunk-I3IA6MAD.js +0 -1
- package/Marketplace/chunk-IZZQQW5G.js +0 -5
- package/Marketplace/chunk-JLVWTKDH.js +0 -1
- package/Marketplace/chunk-JUO4RKIH.js +0 -1
- package/Marketplace/chunk-L2GMXVN6.js +0 -1
- package/Marketplace/chunk-M7U5T2ZP.js +0 -1
- package/Marketplace/chunk-MEER4VNV.js +0 -1
- package/Marketplace/chunk-N26QQL77.js +0 -1
- package/Marketplace/chunk-NOIKC7TF.js +0 -1
- package/Marketplace/chunk-ODQVHQPB.js +0 -15
- package/Marketplace/chunk-PE7QBBA6.js +0 -1
- package/Marketplace/chunk-PNUEO4J2.js +0 -1
- package/Marketplace/chunk-PS43OK3J.js +0 -1
- package/Marketplace/chunk-SNSROU6N.js +0 -1
- package/Marketplace/chunk-SUTHLGCO.js +0 -266
- package/Marketplace/chunk-TUJHFVOP.js +0 -1
- package/Marketplace/chunk-UI5ITL7Z.js +0 -4
- package/Marketplace/chunk-XFIUNEOU.js +0 -1
- package/Marketplace/chunk-XW2CGM4G.js +0 -5
- package/Marketplace/chunk-YJTPDV4D.js +0 -1
- package/Marketplace/chunk-YKEAAH3N.js +0 -2
- package/Marketplace/chunk-YTUPRTC2.js +0 -1
- package/Marketplace/chunk-ZS465QKM.js +0 -2
- package/Marketplace/main-NBCLYU5Y.js +0 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{a as Ze,b as Ye}from"./chunk-222IOSGU.js";import{a as We}from"./chunk-B4QCGMST.js";import{a as K}from"./chunk-6Q6L5NUD.js";import{d as Ke}from"./chunk-ONU4O7N2.js";import{a as Ue}from"./chunk-N5AE5WMQ.js";import{f as Oe}from"./chunk-L3W6SG2T.js";import{f as $e,h as je,i as qe}from"./chunk-SILAIDPV.js";import{D as He,F as Qe,J as Ve,K as Be,L as Ge,M as le,g as Re,h as Le,n as Fe,t as Ae,v as Pe,w as Ne}from"./chunk-3I2V337G.js";import{h as se}from"./chunk-LNJUGHOX.js";import{$ as S,$b as _,$c as oe,Ac as g,Ad as U,Bb as Me,Bc as P,Cc as m,Dc as h,Fd as z,Gb as w,Gd as ze,Ha as f,Hb as Q,Hc as re,Ib as y,Ic as Ee,Jc as D,Kb as L,La as be,Lc as q,Ma as ye,Mb as V,Mc as x,Na as xe,Nb as De,Nc as C,Oa as te,Qa as O,Ra as R,Xc as ke,Zb as T,Zc as ae,a as he,aa as _e,bc as v,bd as we,ca as b,dc as B,ec as $,f as N,fc as j,gc as u,hc as d,ic as c,jc as ie,kd as Te,ma as ve,na as H,nb as s,od as G,pa as ge,pc as M,q as ue,qc as Ie,ra as l,sb as E,tb as Ce,v as fe,vb as k,vc as ne,xa as X,xc as p,ya as ee,yb as Se,yc as F,zc as A}from"./chunk-ZYJ6LAJ3.js";var nt=["*"];function rt(t,a){t&1&&A(0)}var pe=(()=>{class t{_elementRef=l(O);constructor(){}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]})}return t})(),de=(()=>{class t{template=l(k);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["","cdkStepLabel",""]]})}return t})();var I={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},at=new ge("STEPPER_GLOBAL_OPTIONS"),W=(()=>{class t{_stepperOptions;_stepper=l(Z);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;get interacted(){return this._interacted()}set interacted(e){this._interacted.set(e)}_interacted=f(!1);interactedStream=new E;label;errorMessage;ariaLabel;ariaLabelledby;get state(){return this._state()}set state(e){this._state.set(e)}_state=f(void 0);get editable(){return this._editable()}set editable(e){this._editable.set(e)}_editable=f(!0);optional=!1;get completed(){let e=this._completedOverride(),i=this._interacted();return e??(i&&(!this.stepControl||this.stepControl.valid))}set completed(e){this._completedOverride.set(e)}_completedOverride=f(null);index=f(-1);isSelected=G(()=>this._stepper.selectedIndex===this.index());indicatorType=G(()=>{let e=this.isSelected(),i=this.completed,n=this._state()??I.NUMBER,r=this._editable();return this._showError()&&this.hasError&&!e?I.ERROR:this._displayDefaultIndicatorType?!i||e?I.NUMBER:r?I.EDIT:I.DONE:i&&!e?I.DONE:i&&e?n:r&&e?I.EDIT:n});isNavigable=G(()=>{let e=this.isSelected();return this.completed||e||!this._stepper.linear});get hasError(){let e=this._customError();return e??this._getDefaultError()}set hasError(e){this._customError.set(e)}_customError=f(null);_getDefaultError(){return this.interacted&&!!this.stepControl?.invalid}constructor(){let e=l(at,{optional:!0});this._stepperOptions=e||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this._interacted.set(!1),this._completedOverride()!=null&&this._completedOverride.set(!1),this._customError()!=null&&this._customError.set(!1),this.stepControl&&(this._childForms?.forEach(e=>e.resetForm?.()),this.stepControl.reset())}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this._interacted()||(this._interacted.set(!0),this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError()!=null}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=w({type:t,selectors:[["cdk-step"]],contentQueries:function(i,n,r){if(i&1&&(g(r,de,5),g(r,Oe,5)),i&2){let o;m(o=h())&&(n.stepLabel=o.first),m(o=h())&&(n._childForms=o)}},viewQuery:function(i,n){if(i&1&&P(k,7),i&2){let r;m(r=h())&&(n.content=r.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",z],optional:[2,"optional","optional",z],completed:[2,"completed","completed",z],hasError:[2,"hasError","hasError",z]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[xe],ngContentSelectors:nt,decls:1,vars:0,template:function(i,n){i&1&&(F(),De(0,rt,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return t})(),Z=(()=>{class t{_dir=l(Ve,{optional:!0});_changeDetectorRef=l(U);_elementRef=l(O);_destroyed=new N;_keyManager;_steps;steps=new R;_stepHeader;_sortedHeaders=new R;linear=!1;get selectedIndex(){return this._selectedIndex()}set selectedIndex(e){this._steps?(this._isValidIndex(e),this.selectedIndex!==e&&(this.selected?._markAsInteracted(),!this._anyControlsInvalidOrPending(e)&&(e>=this.selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e))):this._selectedIndex.set(e)}_selectedIndex=f(0);get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}selectionChange=new E;selectedIndexChange=new E;_groupId=l(He).getId("cdk-stepper-");get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation(e==="vertical")}_orientation="horizontal";constructor(){}ngAfterContentInit(){this._steps.changes.pipe(S(this._steps),b(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(i=>i._stepper===this)),this.steps.forEach((i,n)=>i.index.set(n)),this.steps.notifyOnChanges()})}ngAfterViewInit(){if(this._stepHeader.changes.pipe(S(this._stepHeader),b(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((i,n)=>i._elementRef.nativeElement.compareDocumentPosition(n._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new Qe(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),this._keyManager.updateActiveItem(this.selectedIndex),(this._dir?this._dir.change:ue()).pipe(S(this._layoutDirection()),b(this._destroyed)).subscribe(e=>this._keyManager?.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this.selectedIndex),this.steps.changes.subscribe(()=>{this.selected||this._selectedIndex.set(Math.max(this.selectedIndex-1,0))}),this._isValidIndex(this.selectedIndex)||this._selectedIndex.set(0),this.linear&&this.selectedIndex>0){let e=this.steps.toArray().slice(0,this._selectedIndex());for(let i of e)i._markAsInteracted()}}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex()+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex()-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`${this._groupId}-label-${e}`}_getStepContentId(e){return`${this._groupId}-content-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){let i=e-this._selectedIndex();return i<0?this._layoutDirection()==="rtl"?"next":"previous":i>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex()}_updateSelectedItemIndex(e){let i=this.steps.toArray(),n=this._selectedIndex();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:n,selectedStep:i[e],previouslySelectedStep:i[n]}),this._keyManager&&(this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e)),this._selectedIndex.set(e),this.selectedIndexChange.emit(e),this._stateChanged()}_onKeydown(e){let i=Re(e),n=e.keyCode,r=this._keyManager;r?.activeItemIndex!=null&&!i&&(n===32||n===13)?(this.selectedIndex=r.activeItemIndex,e.preventDefault()):r?.setFocusOrigin("keyboard").onKeydown(e)}_anyControlsInvalidOrPending(e){return this.linear&&e>=0?this.steps.toArray().slice(0,e).some(i=>{let n=i.stepControl;return(n?n.invalid||n.pending||!i.interacted:!i.completed)&&!i.optional&&!i._completedOverride()}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let e=this._elementRef.nativeElement,i=Fe();return e===i||e.contains(i)}_isValidIndex(e){return e>-1&&(!this.steps||e<this.steps.length)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["","cdkStepper",""]],contentQueries:function(i,n,r){if(i&1&&(g(r,W,5),g(r,pe,5)),i&2){let o;m(o=h())&&(n._steps=o),m(o=h())&&(n._stepHeader=o)}},inputs:{linear:[2,"linear","linear",z],selectedIndex:[2,"selectedIndex","selectedIndex",ze],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"]})}return t})();var Je=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Q({type:t});static \u0275inj=H({imports:[Be]})}return t})();var ot=(t,a,e)=>({index:t,active:a,optional:e});function st(t,a){if(t&1&&M(0,2),t&2){let e=p();u("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",we(2,ot,e.index,e.active,e.optional))}}function lt(t,a){if(t&1&&(d(0,"span",7),x(1),c()),t&2){let e=p(2);s(),C(e._getDefaultTextForState(e.state))}}function pt(t,a){if(t&1&&(d(0,"span",8),x(1),c()),t&2){let e=p(3);s(),C(e._intl.completedLabel)}}function dt(t,a){if(t&1&&(d(0,"span",8),x(1),c()),t&2){let e=p(3);s(),C(e._intl.editableLabel)}}function ct(t,a){if(t&1&&(_(0,pt,2,1,"span",8)(1,dt,2,1,"span",8),d(2,"mat-icon",7),x(3),c()),t&2){let e=p(2);v(e.state==="done"?0:e.state==="edit"?1:-1),s(3),C(e._getDefaultTextForState(e.state))}}function mt(t,a){if(t&1&&_(0,lt,2,1,"span",7)(1,ct,4,2),t&2){let e,i=p();v((e=i.state)==="number"?0:1)}}function ht(t,a){t&1&&(d(0,"div",4),M(1,9),c()),t&2&&(s(),u("ngTemplateOutlet",a.template))}function ut(t,a){if(t&1&&(d(0,"div",4),x(1),c()),t&2){let e=p();s(),C(e.label)}}function ft(t,a){if(t&1&&(d(0,"div",5),x(1),c()),t&2){let e=p();s(),C(e._intl.optionalLabel)}}function _t(t,a){if(t&1&&(d(0,"div",6),x(1),c()),t&2){let e=p();s(),C(e.errorMessage)}}var Xe=["*"];function vt(t,a){}function gt(t,a){if(t&1&&(A(0),V(1,vt,0,0,"ng-template",0)),t&2){let e=p();s(),u("cdkPortalOutlet",e._portal)}}var bt=["animatedContainer"],et=t=>({step:t});function yt(t,a){t&1&&A(0)}function xt(t,a){t&1&&ie(0,"div",7)}function Ct(t,a){if(t&1&&(M(0,6),_(1,xt,1,0,"div",7)),t&2){let e=a.$implicit,i=a.$index,n=a.$count;p(2);let r=re(4);u("ngTemplateOutlet",r)("ngTemplateOutletContext",oe(3,et,e)),s(),v(i!==n-1?1:-1)}}function St(t,a){if(t&1&&(d(0,"div",8,1),M(2,9),c()),t&2){let e=a.$implicit,i=a.$index,n=p(2);q("mat-horizontal-stepper-content-"+n._getAnimationDirection(i)),u("id",n._getStepContentId(i)),T("aria-labelledby",n._getStepLabelId(i))("inert",n.selectedIndex===i?null:""),s(2),u("ngTemplateOutlet",e.content)}}function Mt(t,a){if(t&1&&(d(0,"div",2)(1,"div",3),$(2,Ct,2,5,null,null,B),c(),d(4,"div",4),$(5,St,3,6,"div",5,B),c()()),t&2){let e=p();s(2),j(e.steps),s(3),j(e.steps)}}function Dt(t,a){if(t&1&&(d(0,"div",10),M(1,6),d(2,"div",11,1)(4,"div",12)(5,"div",13),M(6,9),c()()()()),t&2){let e=a.$implicit,i=a.$index,n=a.$index,r=a.$count,o=p(2),J=re(4);s(),u("ngTemplateOutlet",J)("ngTemplateOutletContext",oe(10,et,e)),s(),D("mat-stepper-vertical-line",n!==r-1)("mat-vertical-content-container-active",o.selectedIndex===i),T("inert",o.selectedIndex===i?null:""),s(2),u("id",o._getStepContentId(i)),T("aria-labelledby",o._getStepLabelId(i)),s(2),u("ngTemplateOutlet",e.content)}}function It(t,a){if(t&1&&$(0,Dt,7,12,"div",10,B),t&2){let e=p();j(e.steps)}}function Et(t,a){if(t&1){let e=Ie();d(0,"mat-step-header",14),ne("click",function(){let n=X(e).step;return ee(n.select())})("keydown",function(n){X(e);let r=p();return ee(r._onKeydown(n))}),c()}if(t&2){let e=a.step,i=p();D("mat-horizontal-stepper-header",i.orientation==="horizontal")("mat-vertical-stepper-header",i.orientation==="vertical"),u("tabIndex",i._getFocusIndex()===e.index()?0:-1)("id",i._getStepLabelId(e.index()))("index",e.index())("state",e.indicatorType())("label",e.stepLabel||e.label)("selected",e.isSelected())("active",e.isNavigable())("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",i._iconOverrides)("disableRipple",i.disableRipple||!e.isNavigable())("color",e.color||i.color),T("aria-posinset",e.index()+1)("aria-setsize",i.steps.length)("aria-controls",i._getStepContentId(e.index()))("aria-selected",e.isSelected())("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",e.isNavigable()?null:!0)}}var ce=(()=>{class t extends de{static \u0275fac=(()=>{let e;return function(n){return(e||(e=te(t)))(n||t)}})();static \u0275dir=y({type:t,selectors:[["","matStepLabel",""]],features:[L]})}return t})(),Y=(()=>{class t{changes=new N;optionalLabel="Optional";completedLabel="Completed";editableLabel="Editable";static \u0275fac=function(i){return new(i||t)};static \u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function kt(t){return t||new Y}var wt={provide:Y,deps:[[new be,new ye,Y]],useFactory:kt},me=(()=>{class t extends pe{_intl=l(Y);_focusMonitor=l(Ae);_intlSubscription;state;label;errorMessage;iconOverrides;index;selected;active;optional;disableRipple;color;constructor(){super();let e=l(Pe);e.load(Ue),e.load(Ne);let i=l(U);this._intlSubscription=this._intl.changes.subscribe(()=>i.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._elementRef,e,i):this._elementRef.nativeElement.focus(i)}_stringLabel(){return this.label instanceof ce?null:this.label}_templateLabel(){return this.label instanceof ce?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getDefaultTextForState(e){return e=="number"?`${this.index+1}`:e=="edit"?"create":e=="error"?"warning":e}_hasEmptyLabel(){return!this._stringLabel()&&!this._templateLabel()&&!this._hasOptionalLabel()&&!this._hasErrorLabel()}_hasOptionalLabel(){return this.optional&&this.state!=="error"}_hasErrorLabel(){return this.state==="error"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=w({type:t,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:4,hostBindings:function(i,n){i&2&&(q("mat-"+(n.color||"primary")),D("mat-step-header-empty-label",n._hasEmptyLabel()))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[L],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(i,n){if(i&1&&(ie(0,"div",0),d(1,"div")(2,"div",1),_(3,st,1,6,"ng-container",2)(4,mt,2,1),c()(),d(5,"div",3),_(6,ht,2,1,"div",4)(7,ut,2,1,"div",4),_(8,ft,2,1,"div",5),_(9,_t,2,1,"div",6),c()),i&2){let r;u("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disableRipple),s(),q(ke("mat-step-icon-state-",n.state," mat-step-icon")),D("mat-step-icon-selected",n.selected),s(2),v(n.iconOverrides&&n.iconOverrides[n.state]?3:4),s(2),D("mat-step-label-active",n.active)("mat-step-label-selected",n.selected)("mat-step-label-error",n.state=="error"),s(),v((r=n._templateLabel())?6:n._stringLabel()?7:-1,r),s(2),v(n._hasOptionalLabel()?8:-1),s(),v(n._hasErrorLabel()?9:-1)}},dependencies:[Ke,se,Ze],styles:[`.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-hover-state-layer-shape, var(--mat-sys-corner-medium))}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-focus-state-layer-shape, var(--mat-sys-corner-medium))}@media(hover: none){.mat-step-header:hover{background:none}}@media(forced-colors: active){.mat-step-header{outline:solid 1px}.mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-header[aria-disabled=true]{outline-color:GrayText}.mat-step-header[aria-disabled=true] .mat-step-label,.mat-step-header[aria-disabled=true] .mat-step-icon,.mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color, var(--mat-sys-surface));background-color:var(--mat-stepper-header-icon-background-color, var(--mat-sys-on-surface-variant))}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color, transparent);color:var(--mat-stepper-header-error-state-icon-foreground-color, var(--mat-sys-error))}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-stepper-header-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-stepper-header-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color, var(--mat-sys-error));font-size:var(--mat-stepper-header-error-state-label-text-size, var(--mat-sys-title-small-size))}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-selected-state-label-text-weight, var(--mat-sys-title-small-weight))}.mat-step-header-empty-label .mat-step-label{min-width:0}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-selected-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-done-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-sys-on-primary))}
|
|
1
|
+
import{a as Ze,b as Ye}from"./chunk-2F4DTZCZ.js";import{a as K}from"./chunk-6Q6L5NUD.js";import{a as We}from"./chunk-C7N6EI73.js";import{d as Ke}from"./chunk-GPHNPV7O.js";import{a as Ue}from"./chunk-N5AE5WMQ.js";import{f as Oe}from"./chunk-L3W6SG2T.js";import{f as $e,h as je,i as qe}from"./chunk-STYL7ETF.js";import{E as He,G as Qe,K as Ve,L as Be,N as Ge,O as le,g as Re,h as Le,n as Fe,t as Ae,v as Pe,w as Ne}from"./chunk-XLIPGDSC.js";import{h as se}from"./chunk-LNJUGHOX.js";import{$ as S,$b as _,$c as oe,Ac as g,Ad as U,Bb as Me,Bc as P,Cc as m,Dc as h,Fd as z,Gb as w,Gd as ze,Ha as f,Hb as Q,Hc as re,Ib as y,Ic as Ee,Jc as D,Kb as L,La as be,Lc as q,Ma as ye,Mb as V,Mc as x,Na as xe,Nb as De,Nc as C,Oa as te,Qa as O,Ra as R,Xc as ke,Zb as T,Zc as ae,a as he,aa as _e,bc as v,bd as we,ca as b,dc as B,ec as $,f as N,fc as j,gc as u,hc as d,ic as c,jc as ie,kd as Te,ma as ve,na as H,nb as s,od as G,pa as ge,pc as M,q as ue,qc as Ie,ra as l,sb as E,tb as Ce,v as fe,vb as k,vc as ne,xa as X,xc as p,ya as ee,yb as Se,yc as F,zc as A}from"./chunk-ZYJ6LAJ3.js";var nt=["*"];function rt(t,a){t&1&&A(0)}var pe=(()=>{class t{_elementRef=l(O);constructor(){}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]})}return t})(),de=(()=>{class t{template=l(k);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["","cdkStepLabel",""]]})}return t})();var I={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},at=new ge("STEPPER_GLOBAL_OPTIONS"),W=(()=>{class t{_stepperOptions;_stepper=l(Z);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;get interacted(){return this._interacted()}set interacted(e){this._interacted.set(e)}_interacted=f(!1);interactedStream=new E;label;errorMessage;ariaLabel;ariaLabelledby;get state(){return this._state()}set state(e){this._state.set(e)}_state=f(void 0);get editable(){return this._editable()}set editable(e){this._editable.set(e)}_editable=f(!0);optional=!1;get completed(){let e=this._completedOverride(),i=this._interacted();return e??(i&&(!this.stepControl||this.stepControl.valid))}set completed(e){this._completedOverride.set(e)}_completedOverride=f(null);index=f(-1);isSelected=G(()=>this._stepper.selectedIndex===this.index());indicatorType=G(()=>{let e=this.isSelected(),i=this.completed,n=this._state()??I.NUMBER,r=this._editable();return this._showError()&&this.hasError&&!e?I.ERROR:this._displayDefaultIndicatorType?!i||e?I.NUMBER:r?I.EDIT:I.DONE:i&&!e?I.DONE:i&&e?n:r&&e?I.EDIT:n});isNavigable=G(()=>{let e=this.isSelected();return this.completed||e||!this._stepper.linear});get hasError(){let e=this._customError();return e??this._getDefaultError()}set hasError(e){this._customError.set(e)}_customError=f(null);_getDefaultError(){return this.interacted&&!!this.stepControl?.invalid}constructor(){let e=l(at,{optional:!0});this._stepperOptions=e||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this._interacted.set(!1),this._completedOverride()!=null&&this._completedOverride.set(!1),this._customError()!=null&&this._customError.set(!1),this.stepControl&&(this._childForms?.forEach(e=>e.resetForm?.()),this.stepControl.reset())}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this._interacted()||(this._interacted.set(!0),this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError()!=null}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=w({type:t,selectors:[["cdk-step"]],contentQueries:function(i,n,r){if(i&1&&(g(r,de,5),g(r,Oe,5)),i&2){let o;m(o=h())&&(n.stepLabel=o.first),m(o=h())&&(n._childForms=o)}},viewQuery:function(i,n){if(i&1&&P(k,7),i&2){let r;m(r=h())&&(n.content=r.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",z],optional:[2,"optional","optional",z],completed:[2,"completed","completed",z],hasError:[2,"hasError","hasError",z]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[xe],ngContentSelectors:nt,decls:1,vars:0,template:function(i,n){i&1&&(F(),De(0,rt,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return t})(),Z=(()=>{class t{_dir=l(Ve,{optional:!0});_changeDetectorRef=l(U);_elementRef=l(O);_destroyed=new N;_keyManager;_steps;steps=new R;_stepHeader;_sortedHeaders=new R;linear=!1;get selectedIndex(){return this._selectedIndex()}set selectedIndex(e){this._steps?(this._isValidIndex(e),this.selectedIndex!==e&&(this.selected?._markAsInteracted(),!this._anyControlsInvalidOrPending(e)&&(e>=this.selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e))):this._selectedIndex.set(e)}_selectedIndex=f(0);get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}selectionChange=new E;selectedIndexChange=new E;_groupId=l(He).getId("cdk-stepper-");get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation(e==="vertical")}_orientation="horizontal";constructor(){}ngAfterContentInit(){this._steps.changes.pipe(S(this._steps),b(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(i=>i._stepper===this)),this.steps.forEach((i,n)=>i.index.set(n)),this.steps.notifyOnChanges()})}ngAfterViewInit(){if(this._stepHeader.changes.pipe(S(this._stepHeader),b(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((i,n)=>i._elementRef.nativeElement.compareDocumentPosition(n._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new Qe(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),this._keyManager.updateActiveItem(this.selectedIndex),(this._dir?this._dir.change:ue()).pipe(S(this._layoutDirection()),b(this._destroyed)).subscribe(e=>this._keyManager?.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this.selectedIndex),this.steps.changes.subscribe(()=>{this.selected||this._selectedIndex.set(Math.max(this.selectedIndex-1,0))}),this._isValidIndex(this.selectedIndex)||this._selectedIndex.set(0),this.linear&&this.selectedIndex>0){let e=this.steps.toArray().slice(0,this._selectedIndex());for(let i of e)i._markAsInteracted()}}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex()+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex()-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`${this._groupId}-label-${e}`}_getStepContentId(e){return`${this._groupId}-content-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){let i=e-this._selectedIndex();return i<0?this._layoutDirection()==="rtl"?"next":"previous":i>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex()}_updateSelectedItemIndex(e){let i=this.steps.toArray(),n=this._selectedIndex();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:n,selectedStep:i[e],previouslySelectedStep:i[n]}),this._keyManager&&(this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e)),this._selectedIndex.set(e),this.selectedIndexChange.emit(e),this._stateChanged()}_onKeydown(e){let i=Re(e),n=e.keyCode,r=this._keyManager;r?.activeItemIndex!=null&&!i&&(n===32||n===13)?(this.selectedIndex=r.activeItemIndex,e.preventDefault()):r?.setFocusOrigin("keyboard").onKeydown(e)}_anyControlsInvalidOrPending(e){return this.linear&&e>=0?this.steps.toArray().slice(0,e).some(i=>{let n=i.stepControl;return(n?n.invalid||n.pending||!i.interacted:!i.completed)&&!i.optional&&!i._completedOverride()}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let e=this._elementRef.nativeElement,i=Fe();return e===i||e.contains(i)}_isValidIndex(e){return e>-1&&(!this.steps||e<this.steps.length)}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["","cdkStepper",""]],contentQueries:function(i,n,r){if(i&1&&(g(r,W,5),g(r,pe,5)),i&2){let o;m(o=h())&&(n._steps=o),m(o=h())&&(n._stepHeader=o)}},inputs:{linear:[2,"linear","linear",z],selectedIndex:[2,"selectedIndex","selectedIndex",ze],selected:"selected",orientation:"orientation"},outputs:{selectionChange:"selectionChange",selectedIndexChange:"selectedIndexChange"},exportAs:["cdkStepper"]})}return t})();var Je=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Q({type:t});static \u0275inj=H({imports:[Be]})}return t})();var ot=(t,a,e)=>({index:t,active:a,optional:e});function st(t,a){if(t&1&&M(0,2),t&2){let e=p();u("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",we(2,ot,e.index,e.active,e.optional))}}function lt(t,a){if(t&1&&(d(0,"span",7),x(1),c()),t&2){let e=p(2);s(),C(e._getDefaultTextForState(e.state))}}function pt(t,a){if(t&1&&(d(0,"span",8),x(1),c()),t&2){let e=p(3);s(),C(e._intl.completedLabel)}}function dt(t,a){if(t&1&&(d(0,"span",8),x(1),c()),t&2){let e=p(3);s(),C(e._intl.editableLabel)}}function ct(t,a){if(t&1&&(_(0,pt,2,1,"span",8)(1,dt,2,1,"span",8),d(2,"mat-icon",7),x(3),c()),t&2){let e=p(2);v(e.state==="done"?0:e.state==="edit"?1:-1),s(3),C(e._getDefaultTextForState(e.state))}}function mt(t,a){if(t&1&&_(0,lt,2,1,"span",7)(1,ct,4,2),t&2){let e,i=p();v((e=i.state)==="number"?0:1)}}function ht(t,a){t&1&&(d(0,"div",4),M(1,9),c()),t&2&&(s(),u("ngTemplateOutlet",a.template))}function ut(t,a){if(t&1&&(d(0,"div",4),x(1),c()),t&2){let e=p();s(),C(e.label)}}function ft(t,a){if(t&1&&(d(0,"div",5),x(1),c()),t&2){let e=p();s(),C(e._intl.optionalLabel)}}function _t(t,a){if(t&1&&(d(0,"div",6),x(1),c()),t&2){let e=p();s(),C(e.errorMessage)}}var Xe=["*"];function vt(t,a){}function gt(t,a){if(t&1&&(A(0),V(1,vt,0,0,"ng-template",0)),t&2){let e=p();s(),u("cdkPortalOutlet",e._portal)}}var bt=["animatedContainer"],et=t=>({step:t});function yt(t,a){t&1&&A(0)}function xt(t,a){t&1&&ie(0,"div",7)}function Ct(t,a){if(t&1&&(M(0,6),_(1,xt,1,0,"div",7)),t&2){let e=a.$implicit,i=a.$index,n=a.$count;p(2);let r=re(4);u("ngTemplateOutlet",r)("ngTemplateOutletContext",oe(3,et,e)),s(),v(i!==n-1?1:-1)}}function St(t,a){if(t&1&&(d(0,"div",8,1),M(2,9),c()),t&2){let e=a.$implicit,i=a.$index,n=p(2);q("mat-horizontal-stepper-content-"+n._getAnimationDirection(i)),u("id",n._getStepContentId(i)),T("aria-labelledby",n._getStepLabelId(i))("inert",n.selectedIndex===i?null:""),s(2),u("ngTemplateOutlet",e.content)}}function Mt(t,a){if(t&1&&(d(0,"div",2)(1,"div",3),$(2,Ct,2,5,null,null,B),c(),d(4,"div",4),$(5,St,3,6,"div",5,B),c()()),t&2){let e=p();s(2),j(e.steps),s(3),j(e.steps)}}function Dt(t,a){if(t&1&&(d(0,"div",10),M(1,6),d(2,"div",11,1)(4,"div",12)(5,"div",13),M(6,9),c()()()()),t&2){let e=a.$implicit,i=a.$index,n=a.$index,r=a.$count,o=p(2),J=re(4);s(),u("ngTemplateOutlet",J)("ngTemplateOutletContext",oe(10,et,e)),s(),D("mat-stepper-vertical-line",n!==r-1)("mat-vertical-content-container-active",o.selectedIndex===i),T("inert",o.selectedIndex===i?null:""),s(2),u("id",o._getStepContentId(i)),T("aria-labelledby",o._getStepLabelId(i)),s(2),u("ngTemplateOutlet",e.content)}}function It(t,a){if(t&1&&$(0,Dt,7,12,"div",10,B),t&2){let e=p();j(e.steps)}}function Et(t,a){if(t&1){let e=Ie();d(0,"mat-step-header",14),ne("click",function(){let n=X(e).step;return ee(n.select())})("keydown",function(n){X(e);let r=p();return ee(r._onKeydown(n))}),c()}if(t&2){let e=a.step,i=p();D("mat-horizontal-stepper-header",i.orientation==="horizontal")("mat-vertical-stepper-header",i.orientation==="vertical"),u("tabIndex",i._getFocusIndex()===e.index()?0:-1)("id",i._getStepLabelId(e.index()))("index",e.index())("state",e.indicatorType())("label",e.stepLabel||e.label)("selected",e.isSelected())("active",e.isNavigable())("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",i._iconOverrides)("disableRipple",i.disableRipple||!e.isNavigable())("color",e.color||i.color),T("aria-posinset",e.index()+1)("aria-setsize",i.steps.length)("aria-controls",i._getStepContentId(e.index()))("aria-selected",e.isSelected())("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",e.isNavigable()?null:!0)}}var ce=(()=>{class t extends de{static \u0275fac=(()=>{let e;return function(n){return(e||(e=te(t)))(n||t)}})();static \u0275dir=y({type:t,selectors:[["","matStepLabel",""]],features:[L]})}return t})(),Y=(()=>{class t{changes=new N;optionalLabel="Optional";completedLabel="Completed";editableLabel="Editable";static \u0275fac=function(i){return new(i||t)};static \u0275prov=ve({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function kt(t){return t||new Y}var wt={provide:Y,deps:[[new be,new ye,Y]],useFactory:kt},me=(()=>{class t extends pe{_intl=l(Y);_focusMonitor=l(Ae);_intlSubscription;state;label;errorMessage;iconOverrides;index;selected;active;optional;disableRipple;color;constructor(){super();let e=l(Pe);e.load(Ue),e.load(Ne);let i=l(U);this._intlSubscription=this._intl.changes.subscribe(()=>i.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,i){e?this._focusMonitor.focusVia(this._elementRef,e,i):this._elementRef.nativeElement.focus(i)}_stringLabel(){return this.label instanceof ce?null:this.label}_templateLabel(){return this.label instanceof ce?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getDefaultTextForState(e){return e=="number"?`${this.index+1}`:e=="edit"?"create":e=="error"?"warning":e}_hasEmptyLabel(){return!this._stringLabel()&&!this._templateLabel()&&!this._hasOptionalLabel()&&!this._hasErrorLabel()}_hasOptionalLabel(){return this.optional&&this.state!=="error"}_hasErrorLabel(){return this.state==="error"}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=w({type:t,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:4,hostBindings:function(i,n){i&2&&(q("mat-"+(n.color||"primary")),D("mat-step-header-empty-label",n._hasEmptyLabel()))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[L],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(i,n){if(i&1&&(ie(0,"div",0),d(1,"div")(2,"div",1),_(3,st,1,6,"ng-container",2)(4,mt,2,1),c()(),d(5,"div",3),_(6,ht,2,1,"div",4)(7,ut,2,1,"div",4),_(8,ft,2,1,"div",5),_(9,_t,2,1,"div",6),c()),i&2){let r;u("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disableRipple),s(),q(ke("mat-step-icon-state-",n.state," mat-step-icon")),D("mat-step-icon-selected",n.selected),s(2),v(n.iconOverrides&&n.iconOverrides[n.state]?3:4),s(2),D("mat-step-label-active",n.active)("mat-step-label-selected",n.selected)("mat-step-label-error",n.state=="error"),s(),v((r=n._templateLabel())?6:n._stringLabel()?7:-1,r),s(2),v(n._hasOptionalLabel()?8:-1),s(),v(n._hasErrorLabel()?9:-1)}},dependencies:[Ke,se,Ze],styles:[`.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-hover-state-layer-shape, var(--mat-sys-corner-medium))}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-focus-state-layer-shape, var(--mat-sys-corner-medium))}@media(hover: none){.mat-step-header:hover{background:none}}@media(forced-colors: active){.mat-step-header{outline:solid 1px}.mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-header[aria-disabled=true]{outline-color:GrayText}.mat-step-header[aria-disabled=true] .mat-step-label,.mat-step-header[aria-disabled=true] .mat-step-icon,.mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color, var(--mat-sys-surface));background-color:var(--mat-stepper-header-icon-background-color, var(--mat-sys-on-surface-variant))}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color, transparent);color:var(--mat-stepper-header-error-state-icon-foreground-color, var(--mat-sys-error))}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-stepper-header-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-stepper-header-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color, var(--mat-sys-error));font-size:var(--mat-stepper-header-error-state-label-text-size, var(--mat-sys-title-small-size))}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-selected-state-label-text-weight, var(--mat-sys-title-small-weight))}.mat-step-header-empty-label .mat-step-label{min-width:0}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-selected-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-done-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-sys-on-primary))}
|
|
2
2
|
`],encapsulation:2,changeDetection:0})}return t})(),Tt=(()=>{class t{templateRef=l(k);name;constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]}})}return t})(),zt=(()=>{class t{_template=l(k);constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275dir=y({type:t,selectors:[["ng-template","matStepContent",""]]})}return t})(),Ot=(()=>{class t extends W{_errorStateMatcher=l(K,{skipSelf:!0});_viewContainerRef=l(Me);_isSelected=he.EMPTY;stepLabel=void 0;color;_lazyContent;_portal;ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(_e(()=>this._stepper.selectionChange.pipe(fe(e=>e.selectedStep===this),S(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new $e(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(e,i){let n=this._errorStateMatcher.isErrorState(e,i),r=!!(e&&e.invalid&&this.interacted);return n||r}static \u0275fac=(()=>{let e;return function(n){return(e||(e=te(t)))(n||t)}})();static \u0275cmp=w({type:t,selectors:[["mat-step"]],contentQueries:function(i,n,r){if(i&1&&(g(r,ce,5),g(r,zt,5)),i&2){let o;m(o=h())&&(n.stepLabel=o.first),m(o=h())&&(n._lazyContent=o.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],features:[ae([{provide:K,useExisting:t},{provide:W,useExisting:t}]),L],ngContentSelectors:Xe,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(i,n){i&1&&(F(),V(0,gt,2,1,"ng-template"))},dependencies:[je],encapsulation:2,changeDetection:0})}return t})(),Rt=(()=>{class t extends Z{_ngZone=l(Ce);_renderer=l(Se);_animationsDisabled=Ge();_cleanupTransition;_isAnimating=f(!1);_stepHeader=void 0;_animatedContainers;_steps=void 0;steps=new R;_icons;animationDone=new E;disableRipple;color;labelPosition="end";headerPosition="top";_iconOverrides={};get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}_animationDuration="";_isServer=!l(Le).isBrowser;constructor(){super();let i=l(O).nativeElement.nodeName.toLowerCase();this.orientation=i==="mat-vertical-stepper"?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:i})=>this._iconOverrides[e]=i),this.steps.changes.pipe(b(this._destroyed)).subscribe(()=>this._stateChanged()),this.selectedIndexChange.pipe(b(this._destroyed)).subscribe(()=>{let e=this._getAnimationDuration();e==="0ms"||e==="0s"?this._onAnimationDone():this._isAnimating.set(!0)}),this._ngZone.runOutsideAngular(()=>{this._animationsDisabled||setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-stepper-animations-enabled"),this._cleanupTransition=this._renderer.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionend)},200)})}ngAfterViewInit(){if(super.ngAfterViewInit(),typeof queueMicrotask=="function"){let e=!1;this._animatedContainers.changes.pipe(S(null),b(this._destroyed)).subscribe(()=>queueMicrotask(()=>{e||(e=!0,this.animationDone.emit()),this._stateChanged()}))}}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransition?.()}_getAnimationDuration(){return this._animationsDisabled?"0ms":this.animationDuration?this.animationDuration:this.orientation==="horizontal"?"500ms":"225ms"}_handleTransitionend=e=>{let i=e.target;if(!i)return;let n=this.orientation==="horizontal"&&e.propertyName==="transform"&&i.classList.contains("mat-horizontal-stepper-content-current"),r=this.orientation==="vertical"&&e.propertyName==="grid-template-rows"&&i.classList.contains("mat-vertical-content-container-active");(n||r)&&this._animatedContainers.find(J=>J.nativeElement===i)&&this._onAnimationDone()};_onAnimationDone(){this._isAnimating.set(!1),this.animationDone.emit()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=w({type:t,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(i,n,r){if(i&1&&(g(r,Ot,5),g(r,Tt,5)),i&2){let o;m(o=h())&&(n._steps=o),m(o=h())&&(n._icons=o)}},viewQuery:function(i,n){if(i&1&&(P(me,5),P(bt,5)),i&2){let r;m(r=h())&&(n._stepHeader=r),m(r=h())&&(n._animatedContainers=r)}},hostAttrs:["role","tablist"],hostVars:15,hostBindings:function(i,n){i&2&&(T("aria-orientation",n.orientation),Ee("--mat-stepper-animation-duration",n._getAnimationDuration()),D("mat-stepper-horizontal",n.orientation==="horizontal")("mat-stepper-vertical",n.orientation==="vertical")("mat-stepper-label-position-end",n.orientation==="horizontal"&&n.labelPosition=="end")("mat-stepper-label-position-bottom",n.orientation==="horizontal"&&n.labelPosition=="bottom")("mat-stepper-header-position-bottom",n.headerPosition==="bottom")("mat-stepper-animating",n._isAnimating()))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[ae([{provide:Z,useExisting:t}]),L],ngContentSelectors:Xe,decls:5,vars:2,consts:[["stepTemplate",""],["animatedContainer",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","class"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"]],template:function(i,n){if(i&1&&(F(),_(0,yt,1,0),_(1,Mt,7,0,"div",2)(2,It,2,0),V(3,Et,1,23,"ng-template",null,0,Te)),i&2){let r;v(n._isServer?0:-1),s(),v((r=n.orientation)==="horizontal"?1:r==="vertical"?2:-1)}},dependencies:[se,me],styles:[`.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font, var(--mat-sys-body-medium-font));background:var(--mat-stepper-container-color, var(--mat-sys-surface))}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height, 72px)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header.mat-step-header-empty-label .mat-step-icon{margin:0}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{visibility:hidden;overflow:hidden;outline:0;height:0}.mat-stepper-animations-enabled .mat-horizontal-stepper-content{transition:transform var(--mat-stepper-animation-duration, 0) cubic-bezier(0.35, 0, 0.25, 1)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-previous{transform:translate3d(-100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-next{transform:translate3d(100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{visibility:visible;transform:none;height:auto}.mat-stepper-horizontal:not(.mat-stepper-animating) .mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{overflow:visible}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}@media(forced-colors: active){.mat-horizontal-content-container{outline:solid 1px}}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{display:grid;grid-template-rows:0fr;grid-template-columns:100%;margin-left:36px;border:0;position:relative}.mat-stepper-animations-enabled .mat-vertical-content-container{transition:grid-template-rows var(--mat-stepper-animation-duration, 0) cubic-bezier(0.4, 0, 0.2, 1)}.mat-vertical-content-container.mat-vertical-content-container-active{grid-template-rows:1fr}.mat-step:last-child .mat-vertical-content-container{border:none}@media(forced-colors: active){.mat-vertical-content-container{outline:solid 1px}}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}@supports not (grid-template-rows: 0fr){.mat-vertical-content-container{height:0}.mat-vertical-content-container.mat-vertical-content-container-active{height:auto}}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color, var(--mat-sys-outline));top:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0;visibility:hidden}.mat-stepper-animations-enabled .mat-vertical-stepper-content{transition:visibility var(--mat-stepper-animation-duration, 0) linear}.mat-vertical-content-container-active>.mat-vertical-stepper-content{visibility:visible}.mat-vertical-content{padding:0 24px 24px 24px}
|
|
3
3
|
`],encapsulation:2,changeDetection:0})}return t})();var Oi=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Q({type:t});static \u0275inj=H({providers:[wt,K],imports:[le,qe,Je,Ye,We,Rt,me,le]})}return t})();export{at as a,ce as b,Tt as c,zt as d,Ot as e,Rt as f,Oi as g};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as _e}from"./chunk-TYQY4WPY.js";import"./chunk-IM5M2CAI.js";import{a as fe}from"./chunk-XK4RP5MQ.js";import{a as ge}from"./chunk-GG3MDS4C.js";import{a as V}from"./chunk-ISMIPSYN.js";import{c as Se,d as O,e as R}from"./chunk-S5R6MCNP.js";import{c as ue,d as Ce}from"./chunk-T7HRAMHR.js";import"./chunk-DAUML5UD.js";import"./chunk-DXYMG6QK.js";import"./chunk-3WRXJBHF.js";import"./chunk-UH5C5HXK.js";import"./chunk-O2YF5VGD.js";import"./chunk-63I3I3MX.js";import{a as me}from"./chunk-2IASUYTM.js";import"./chunk-QFSA7CU4.js";import"./chunk-OPXITNRF.js";import"./chunk-5BSPSA4O.js";import"./chunk-FULVA6QB.js";import"./chunk-HPINZVE4.js";import"./chunk-D2J64VUP.js";import"./chunk-6Q6L5NUD.js";import"./chunk-C7N6EI73.js";import"./chunk-GPHNPV7O.js";import"./chunk-3RK6DDJD.js";import"./chunk-4YCSITNV.js";import"./chunk-WHHW4IZT.js";import{a as ie}from"./chunk-ZSUWHVKX.js";import"./chunk-N5AE5WMQ.js";import"./chunk-6OJQRHIZ.js";import"./chunk-6OIMOM7S.js";import{e as se}from"./chunk-6KWG6O5L.js";import"./chunk-AFDI4TD4.js";import"./chunk-4RG5YR7N.js";import"./chunk-5MV3UFJQ.js";import"./chunk-E6AMKEQR.js";import"./chunk-IGKMJFKP.js";import"./chunk-ITGVXYDV.js";import"./chunk-HK5FXZE4.js";import"./chunk-KJE5GRQ4.js";import"./chunk-4ILDFTIG.js";import"./chunk-A6QXXKPR.js";import{i as N}from"./chunk-I723PUUO.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import"./chunk-5PMKN6PM.js";import{a as E}from"./chunk-AGBJEXIM.js";import{b as oe,e as re}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import{c as _}from"./chunk-JBEKD57G.js";import{d as ce,l as pe,m as he,n as de}from"./chunk-EDEZ3JLR.js";import{A as ne,c as Z,h as $,m as ee,o as te}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import{b as ae,c as le}from"./chunk-ZETUYNFJ.js";import"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{i as X,m as Y}from"./chunk-LNJUGHOX.js";import{$b as F,$c as J,G as k,Gb as A,Ha as y,Mb as G,Mc as v,Qc as b,Rc as I,Sc as T,Tc as K,Zc as Q,bc as M,ea as H,gc as f,hc as s,hd as P,ic as d,id as w,jc as j,ma as W,nb as C,nc as z,oc as q,qc as D,ra as c,vc as S,xa as p,xc as g,ya as h}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import{a as B,b as U}from"./chunk-66YHNWRR.js";var x=(()=>{let l=class l{constructor(){this.authService=c(N),this.channelOptions=this.authService.getChannels()}filterSelectedChannels(n,r){let e=Object.assign([],this.channelOptions),i=[],o;return n.forEach(t=>{o=e.find(u=>u.ID==t?.parent?.id),o&&(o=U(B({},o),{Name:`${t?.parent?.label} - ${t?.label}`,LocationID:t?.id}),i.push(o))}),r.forEach(t=>{o=e.find(u=>u.ID==t.id),o&&i.push(o)}),i}generateFilterLocation(n,r){let e=[],i=[],o=[];return n.length>0?(e=n.map(t=>t.id),i=n.filter(t=>_.IsNotEmpty(t?.parent?.id)).map(t=>t?.parent?.id).filter((t,u,L)=>L.indexOf(t)===u)):(e=[],i=[]),o=r.map(t=>t.id),o=o.concat(i).filter((t,u,L)=>L.indexOf(t)===u),{locationIds:e,channelIds:o}}};l.\u0275fac=function(r){return new(r||l)},l.\u0275prov=W({token:l,factory:l.\u0275fac});let a=l;return a})();var ve=a=>[a];function be(a,l){if(a&1){let m=D();s(0,"button",17),S("click",function(){p(m);let r=g(2),e=g();return h(e.onUpdateItems(r))}),j(1,"i",18),v(2," Update "),d()}}function Ie(a,l){if(a&1&&(z(0),F(1,be,3,0,"button",16),q()),a&2){let m=g(),n=g();C(),M(n.productService.hasSelectionVariant(m)?1:-1)}}function Pe(a,l){if(a&1&&(s(0,"actions")(1,"div",14),G(2,Ie,2,1,"ng-container",15),d()()),a&2){let m=g();C(2),f("ngxPermissionsOnly",J(1,ve,m.inventoryUpdateRole))}}function we(a,l){if(a&1){let m=D();s(0,"app-table",19),S("onToggle",function(r){p(m);let e=g();return h(e.onShowDifferenceStock(r))})("onSubmit",function(r){p(m);let e=g();return h(e.updateStockByVariant(r))}),d()}if(a&2){let m=g();f("data",l)("channel",m.channels())("showProductToggle",!0)("hiddenIPOSInventory",m.searchFilter.HiddenIPOSInventory)}}var pt=(()=>{let l=class l{constructor(){this.http=c(re),this.toastr=c(oe),this.dialog=c(ce),this.productService=c(me),this.authService=c(N),this.mainPanelService=c(pe),this.placeholderService=c(ue),this.paginationService=c(O),this.multiChannelService=c(x),this.updateResHandling=c(R),this.searchFilter={PageNumber:1,RowCount:100},this.loaderEndpoint="InventoryLoader/GetMultipleInventoryComparison",this.dataEndpoint="Inventory/GetMultipleChannelComparison",this.allDataCountEndpoint="Inventory/GetMultipleChannelComparisonRowCount",this.selectedLocations=y([]),this.selectedChannels=y([]),this.channels=y([]),this.inventoryUpdateRole=ie.InventoryUpdate,this.searchPlaceholder=y("Search ..."),this.channelOptions=this.authService.getChannels()}ngOnInit(){this.initPageLoader()}initPageLoader(){this.paginationService.fetchDataEndpoint=this.dataEndpoint,this.paginationService.fethRowCountEndpoint=this.allDataCountEndpoint,this.loader$=this.http.post(`/API/${this.loaderEndpoint}`,{}).pipe(H(n=>{n.Filter={PageNumber:n.Filter.PageNumber,filterModel:V.ALL,RowCount:n.Filter.PageSize,HiddenIPOSInventory:n.Filter.HiddenIPOSInventory,SearchType:n.Filter.SearchType,NumberFilterComparator:n.Filter.NumberFilterComparator},this.searchFilter=n.Filter,this.initSearchPlaceholder(),this.mainPanelService.openModalFilter()}))}initSearchPlaceholder(){this.searchPlaceholder.set(this.placeholderService.generatePlaceholderBySearchType(this.searchFilter.SearchType,this.searchFilter.NumberFilterComparator))}onChannelChange(n=[]){let r=n.filter(i=>_.isValidGUID(i.id)==!1),e=n.filter(i=>_.isValidGUID(i.id));this.selectedLocations.set(r),this.selectedChannels.set(e)}onSearch(n){let r=this.multiChannelService.filterSelectedChannels(this.selectedLocations(),this.selectedChannels());this.channels.set(r);let e=this.multiChannelService.generateFilterLocation(this.selectedLocations(),this.selectedChannels());this.searchFilter.ListChannelID=e.channelIds,this.searchFilter.ListLocationID=e.locationIds,this.searchFilter.text=n,this.initSearchPlaceholder(),this.paginationService.reloadPagination(this.searchFilter)}updateStock(n,r){if(n.length>0){let e=[];n.forEach(t=>{t.Channel?.forEach(u=>{e.push({ChannelItemID:u?.ChannelItemID,ChannelVariationID:u?.ChannelVariationID,Inventory:t.Inventory,LocationID:u?.LocationID})})});let o={ListChannelID:r.filter(t=>t.selected).map(t=>t.ID),List:e};this.http.post(E.UpdateInventoryChannel,o).subscribe(t=>{this.paginationService.reloadPagination(this.searchFilter),this.toastr.success("Successfully updated "+o.List.length+" variants in "+o.ListChannelID.length+" channels","Success")})}}updateStockByVariant(n){let r=n.InventoryMultiwarehouse[0]?.LocationID,e={ID:n.ChannelID,ChannelItemID:n.ChannelItemID,ChannelVariantID:n.ChannelVariationID,NewQuantity:n.Inventory,VariantID:n.ID,SKU:n?.Sku,LocationID:r};this.http.post(E.UpdateUpdateQuantityByItem,e).subscribe(i=>{this.paginationService.reloadPagination(this.searchFilter),this.handlingUpdateStock(i)})}handlingUpdateStock(n){if(n){let r=n?.Response?.Fail_list,e=n?.Response?.Success_list;this.updateResHandling.responseHandling(e,r,"Stock")}else this.toastr.error(n?.Exception,"Error")}onShowDifferenceStock(n){n?this.searchFilter.filterModel=V.DIFFERENCE:this.searchFilter.filterModel=V.ALL,this.paginationService.reloadPagination(this.searchFilter)}onUpdateItems(n){let r=this.productService.selectedVariantProduct(n),e=this.channelOptions.filter(i=>this.channels()?.find(o=>o.ID===i.ID));this.dialog.open(ge,{data:{selectedItems:r,channels:JSON.parse(JSON.stringify(e))},width:"400px"}).afterClosed().pipe(k(i=>_.IsNotEmpty(i))).subscribe(i=>{this.updateStock(r,i)})}};l.\u0275fac=function(r){return new(r||l)},l.\u0275cmp=A({type:l,selectors:[["app-multi-channel-comparison"]],features:[Q([O,x,R])],decls:28,vars:25,consts:[["headerTitle","Inventory Comparison","textButton","Search",3,"onSubmit","hideSearchBox","searchBoxPlaceHolder"],[1,"mb-5"],["for","selectChannel",1,"fw-bold","mb-3"],["id","selectChannel",3,"onChannelChange","multiple"],[3,"numberFilterComparatorChange","searchTypeChange","numberFilterComparatorOptions","numberFilterComparator","searchTypeOptions","searchType"],["for","PageNumber",1,"fw-bold"],["type","number","id","PageNumber","placeholder","PageNumber","name","PageNumber","data-toggle","tooltip","matTooltip","Page Number",1,"form-control","mt-2",3,"ngModelChange","ngModel"],["for","RowCount",1,"fw-bold"],["type","number","id","RowCount","placeholder","Page Size","name","RowCount","data-toggle","tooltip","matTooltip","Page Size",1,"form-control","mt-2",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],["table","inventory",3,"data","channel","showProductToggle","hiddenIPOSInventory"],[3,"onNextPage","onLastPage","onGetRowCount","totalData","hideCount","rowCount","pageNumber","disableNextButton","goToLastPage"],[1,"d-flex"],[4,"ngxPermissionsOnly"],["type","button",1,"btn","btn-success","shadow-sm","rounded","me-3"],["type","button",1,"btn","btn-success","shadow-sm","rounded","me-3",3,"click"],[1,"fas","fa-chevron-circle-up"],["table","inventory",3,"onToggle","onSubmit","data","channel","showProductToggle","hiddenIPOSInventory"]],template:function(r,e){if(r&1){let i=D();s(0,"mainpanel",0),S("onSubmit",function(t){return p(i),h(e.onSearch(t))}),F(1,Pe,3,3,"actions"),P(2,"async"),s(3,"filters"),K(4),P(5,"async"),s(6,"div",1)(7,"label",2),v(8,"Channel"),d(),s(9,"multiwarehouse-tree-select",3),S("onChannelChange",function(t){return p(i),h(e.onChannelChange(t))}),d()(),s(10,"div",1)(11,"filter-query-type",4),T("numberFilterComparatorChange",function(t){return p(i),I(e.searchFilter.NumberFilterComparator,t)||(e.searchFilter.NumberFilterComparator=t),h(t)})("searchTypeChange",function(t){return p(i),I(e.searchFilter.SearchType,t)||(e.searchFilter.SearchType=t),h(t)}),d()(),s(12,"div",1)(13,"label",5),v(14,"PageNumber"),d(),s(15,"input",6),T("ngModelChange",function(t){return p(i),I(e.searchFilter.PageNumber,t)||(e.searchFilter.PageNumber=t),h(t)}),d()(),s(16,"div")(17,"label",7),v(18,"Page Size"),d(),s(19,"input",8),T("ngModelChange",function(t){return p(i),I(e.searchFilter.RowCount,t)||(e.searchFilter.RowCount=t),h(t)}),d()()(),s(20,"content")(21,"div",9)(22,"div",10)(23,"div",11),F(24,we,1,4,"app-table",12),P(25,"async"),s(26,"infinite-paginator",13),P(27,"async"),S("onNextPage",function(){return p(i),h(e.paginationService.onNextPage(e.searchFilter))})("onLastPage",function(){return p(i),h(e.paginationService.onLastPage(e.searchFilter))})("onGetRowCount",function(){return p(i),h(e.paginationService.getRowCount(e.searchFilter))}),d()()()()()()}if(r&2){let i,o;f("hideSearchBox",!1)("searchBoxPlaceHolder",e.searchPlaceholder()),C(),M((i=w(2,17,e.paginationService.data$))?1:-1,i);let t=w(5,19,e.loader$);C(8),f("multiple",!0),C(2),f("numberFilterComparatorOptions",t==null||t.Options==null?null:t.Options.SearchComparatorTypeOptions),b("numberFilterComparator",e.searchFilter.NumberFilterComparator),f("searchTypeOptions",t==null||t.Options==null?null:t.Options.SearchSKUOnlyOrSKUNameOptions),b("searchType",e.searchFilter.SearchType),C(4),b("ngModel",e.searchFilter.PageNumber),C(4),b("ngModel",e.searchFilter.RowCount),C(5),M((o=w(25,21,e.paginationService.data$))?24:-1,o),C(2),f("totalData",e.paginationService.totalData())("hideCount",e.paginationService.hideCount())("rowCount",w(27,23,e.paginationService.totalRowCount$))("pageNumber",e.paginationService.pageNumber())("disableNextButton",e.paginationService.disableNextButton())("goToLastPage",e.paginationService.isLastPage())}},dependencies:[Y,de,he,fe,ne,Z,te,$,ee,Se,_e,le,ae,se,Ce,X],styles:[".no-bullet[_ngcontent-%COMP%]{list-style-type:none}"]});let a=l;return a})();export{pt as MultiChannelComparison};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./chunk-
|
|
1
|
+
import{a as e}from"./chunk-AGBJEXIM.js";import{e as s}from"./chunk-OXWPYJNB.js";import{ma as i,ra as p}from"./chunk-ZYJ6LAJ3.js";var G=(()=>{let r=class r{constructor(){this.httpService=p(s)}getGroupsLoader(){return this.httpService.get(e.GetGroupsLoader)}getGroups(t){return this.httpService.post(e.GetGroups,t)}getGroupsForm(t){return this.httpService.post(e.GetGroupFormLoader,{ID:t})}submitGroup(t){return this.httpService.post(e.SubmitGroup,t)}deleteGroups(t){return this.httpService.post(e.DeleteGroups,{ListID:t})}};r.\u0275fac=function(u){return new(u||r)},r.\u0275prov=i({token:r,factory:r.\u0275fac});let o=r;return o})();export{G as a};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{a as wt}from"./chunk-63I3I3MX.js";import{b as Tt}from"./chunk-QFSA7CU4.js";import{a as Nt}from"./chunk-4YCSITNV.js";import{a as dt}from"./chunk-ZSUWHVKX.js";import{b as ut,e as gt}from"./chunk-OXWPYJNB.js";import{b as ct}from"./chunk-JBEKD57G.js";import{b as _t,c as bt,h as xt,j as vt,k as Pt}from"./chunk-EDEZ3JLR.js";import{A as mt,c as rt,h as lt,m as st}from"./chunk-L3W6SG2T.js";import{a as pt,c as ht}from"./chunk-ZETUYNFJ.js";import{v as ft,w as Ct}from"./chunk-STYL7ETF.js";import{h as at,l as L,m as $}from"./chunk-LNJUGHOX.js";import{$b as g,G as J,Gb as I,Ha as P,Hc as nt,Jb as tt,K as Y,Mb as F,Mc as m,Nc as N,Oc as A,Qc as U,Rc as W,Sc as G,X as q,Z as K,bc as p,ca as Q,ea as O,f as H,fa as X,g as z,gc as w,hc as h,hd as M,ic as f,id as y,kc as C,kd as ot,lc as _,ma as E,mc as j,nb as l,od as D,pc as et,qa as Z,qc as b,ra as v,sd as S,td as x,v as T,vc as it,wc as V,xa as c,xc as s,ya as u}from"./chunk-ZYJ6LAJ3.js";function Et(i,n){i&1&&et(0)}function It(i,n){if(i&1&&F(0,Et,1,0,"ng-container",5),i&2){s(2);let a=nt(5);w("ngTemplateOutlet",a)}}function Vt(i,n){if(i&1&&(h(0,"div",4)(1,"label"),m(2,"Editing Data"),f(),h(3,"div")(4,"span"),m(5),M(6,"number"),f()()()),i&2){let a=s(2);l(5),N(y(6,1,a.value))}}function St(i,n){if(i&1&&g(0,It,1,1,"ng-container")(1,Vt,7,3,"div",4),i&2){let a=s();p(a.hasPriceEdit?0:1)}}function Lt(i,n){if(i&1){let a=b();h(0,"div",3)(1,"input",6),G("ngModelChange",function(e){c(a);let o=s();return W(o.value,e)||(o.value=e),u(e)}),f(),h(2,"label",7),m(3),f()()}if(i&2){let a=s();l(),U("ngModel",a.value),w("max",a.maxEditInventory),l(2),N(a.item.Table)}}function $t(i,n){if(i&1){let a=b();h(0,"div",3)(1,"input",6),G("ngModelChange",function(e){c(a);let o=s();return W(o.value,e)||(o.value=e),u(e)}),f(),h(2,"label",7),m(3),f()()}if(i&2){let a=s();l(),U("ngModel",a.value),w("max",a.maxEditInventory),l(2),N(a.item.Table)}}var ie=(()=>{let n=class n{constructor(){this.dialogRef=v(_t),this.item=v(bt),this.permissionService=v(pt),this.maxEditInventory=1e5,this.permissionService.hasPermission(dt.PriceUpdate).then(t=>this.hasPriceEdit=t)}ngOnInit(){this.selectedChannel=this.item.Variant.Channel.find(t=>t.ChannelID==this.item.ChannelID),this.selectedChannel.ID=this.item.Variant.ID,this.selectedChannel.Sku=this.item.Variant.Code,this.item.Table=="inventory"?(this.value=this.selectedChannel.Inventory,this.maxEditInventory=this.selectedChannel?.TypeID==ct.Tokopedia?1e5:null):this.item.Table=="price"&&(this.value=this.selectedChannel.Price,this.maxEditInventory=null),this.selectedChannel.ItemName=this.item.Name,this.selectedChannel.VarName=this.item.Variant.Model,this.initModalConfig()}initModalConfig(){let t=this.item.Table=="inventory"?"Update Inventory":"Update Price";this.modalConfig=new vt,this.modalConfig.title=`${t} ${this.item?.Name} in ${this.selectedChannel?.Title}`}onSubmit(){this.item.Table=="inventory"?this.selectedChannel.Inventory=this.value:this.item.Table=="price"&&(this.selectedChannel.Price=this.value),this.dialogRef.close(this.selectedChannel)}onClose(){this.dialogRef.close()}};n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=I({type:n,selectors:[["app-table-dialog"]],decls:6,vars:3,consts:[["INVENTORY",""],[3,"onClose","onCancel","onOk","dynamicValidated","config"],["content",""],[1,"form-label-group","mt-3"],["matTooltipPosition","above","matTooltip","Cannot edit Unit Price because you dont have access ProductEditor role",1,"info-label-group","mt-3",2,"background","#e9ecef","opacity","1"],[4,"ngTemplateOutlet"],["type","text","name","edit","autoNum","",1,"form-control",3,"ngModelChange","ngModel","max"],["for","edit",1,"text-capitalize"]],template:function(e,o){if(e&1){let r=b();h(0,"modal-material",1),it("onClose",function(){return c(r),u(o.onClose())})("onCancel",function(){return c(r),u(o.onClose())})("onOk",function(){return c(r),u(o.onSubmit())}),h(1,"div",2),g(2,St,2,1)(3,Lt,4,3,"div",3),F(4,$t,4,3,"ng-template",null,0,ot),f()()}e&2&&(w("dynamicValidated",o.value)("config",o.modalConfig),l(2),p(o.item.Table=="price"?2:3))},dependencies:[$,at,xt,Nt,Tt,wt,Pt,mt,rt,lt,st,ht,Ct,ft,L],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%;height:100%}.mat-dialog-title[_ngcontent-%COMP%]{margin-left:1rem;margin-right:1rem}.mat-dialog-content[_ngcontent-%COMP%]{padding-left:.5rem;padding-right:.5rem;margin-left:.5rem;margin-right:.5rem}.font-lg[_ngcontent-%COMP%]{font-size:large}.font-lgr[_ngcontent-%COMP%]{font-size:larger}"]});let i=n;return i})();var oe=(()=>{let n=class n{transform(t,e,o=0){if(!t)return t;let r=e?parseInt(e,10):10;return t.length>r?t.substring(o,r)+"...":t}};n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=tt({name:"stringLimit",type:n,pure:!0});let i=n;return i})();function Bt(i,n){if(i&1){let a=b();C(0,"span",5),V("click",function(){c(a);let e=s();return u(e.onGetRowCount())}),C(1,"i",6),m(2,"?"),_()()}}function kt(i,n){if(i&1&&(C(0,"span"),m(1),M(2,"number"),_()),i&2){let a=s();l(),N(y(2,1,a.rowCount()))}}function Rt(i,n){if(i&1){let a=b();C(0,"a",9),V("click",function(){c(a);let e=s(2);return u(e.onNextPage())}),j(1,"i",10),m(2," Next"),_()}}function Ot(i,n){if(i&1){let a=b();C(0,"a",11),V("click",function(){c(a);let e=s(2);return u(e.onLastPage())}),j(1,"i",12),m(2," Last"),_()}}function Ft(i,n){if(i&1&&(C(0,"div",4),g(1,Rt,3,0,"a",7),g(2,Ot,3,0,"a",8),_()),i&2){let a=s();l(),p(a.disableNextButton()&&!a.goToLastPage()?1:-1),l(),p(a.disableNextButton()&&!a.goToLastPage()?2:-1)}}var me=(()=>{let n=class n{constructor(){this.totalData=x(0),this.rowCount=x(),this.pageNumber=x(),this.disableNextButton=x(),this.goToLastPage=x(),this.hideCount=x(),this.nextPage=S({alias:"onNextPage"}),this.lastPage=S({alias:"onLastPage"}),this.getRowCount=S({alias:"onGetRowCount"})}onNextPage(){this.nextPage.emit()}onLastPage(){this.lastPage.emit()}onGetRowCount(){this.getRowCount.emit()}};n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=I({type:n,selectors:[["infinite-paginator"]],inputs:{totalData:[1,"totalData"],rowCount:[1,"rowCount"],pageNumber:[1,"pageNumber"],disableNextButton:[1,"disableNextButton"],goToLastPage:[1,"goToLastPage"],hideCount:[1,"hideCount"]},outputs:{nextPage:"onNextPage",lastPage:"onLastPage",getRowCount:"onGetRowCount"},decls:9,vars:7,consts:[[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"font-weight-bold","font-italic","hidden-xxs"],[2,"cursor","pointer"],[1,"btn-group"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary","border-start-0"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-arrow-right"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary","border-start-0",3,"click"],[1,"fas","fa-share"]],template:function(e,o){e&1&&(C(0,"div",0)(1,"div",1)(2,"div",2),m(3),M(4,"number"),g(5,Bt,3,0,"span",3),g(6,kt,3,3,"span"),m(7),_()(),g(8,Ft,3,2,"div",4),_()),e&2&&(l(3),A(" Showing 1 - ",y(4,5,o.totalData())," of "),l(2),p(o.hideCount()?5:-1),l(),p(!o.hideCount()&&o.rowCount()?6:-1),l(),A(" records ~ ",o.pageNumber()," Page "),l(),p(o.totalData()>0?8:-1))},dependencies:[$,L],encapsulation:2});let i=n;return i})();var he=(()=>{let n=class n{constructor(t){this.http=t,this.pagination$=new z(null),this._pageNumber=P(1),this.pageNumber=D(()=>this._pageNumber()),this._hideCount=P(!0),this.hideCount=D(()=>this._hideCount()),this._disableNextButton=P(!0),this.disableNextButton=D(()=>this._disableNextButton()),this._goToLastPage=P(!1),this.isLastPage=D(()=>this._goToLastPage()),this.totalData=P(0),this.destroy$=new H,this.data$=this.paginationFunction()}onNextPage(t){t.PageNumber+=1,this.pagination$.next(t)}setPageNumberFooter(t){this._pageNumber.set(t.PageNumber)}setPaginationButtonState(t,e){e==0?this._disableNextButton.set(!0):this._disableNextButton.set(!(e<t.RowCount*t.PageNumber))}reloadPagination(t){t.PageNumber=1,this.pagination$.next(t),this._hideCount.set(!0),this._goToLastPage.set(!1)}onLastPage(t={}){let e=JSON.parse(JSON.stringify(t));this.totalRowCount$=this.http.post(`/api/${this.fethRowCountEndpoint}`,e).pipe(T(o=>o.Total),O(o=>{this._hideCount.set(!1),e.RowCount=o,e.PageNumber=1,this.pagination$.next(e),this._goToLastPage.set(!0)}))}paginationFunction(){return this.pagination$.pipe(Q(this.destroy$),J(t=>t!=null),Y(t=>this.http.post(`/API/${this.fetchDataEndpoint}`,JSON.stringify(t)).pipe(T(e=>e.Data?e.Data:[]))),X(this.pagination$),q((t,e)=>{let[o,r]=t,[d]=e;return r.PageNumber==1?[d,r]:[o.concat(d),r]}),O(([t,e])=>{this.setPageNumberFooter(e);let o=this.calculateProductLength(t);this.totalData.set(o),this.setPaginationButtonState(e,o)}),T(([t])=>t),K())}getRowCount(t){this._hideCount.set(!1),this.totalRowCount$=this.http.post(`/API/${this.fethRowCountEndpoint}`,t).pipe(T(e=>e.Total))}calculateProductLength(t=[]){return t.reduce((o,r)=>o+(r.Variants?.length?r.Variants?.length:0),0)}};n.\u0275fac=function(e){return new(e||n)(Z(gt))},n.\u0275prov=E({token:n,factory:n.\u0275fac});let i=n;return i})();var xe=(()=>{let n=class n{constructor(){this.toastr=v(ut)}responseHandling(t=[],e=[],o,r=[]){let d=t.length>0,k=e.length>0;if(!k&&d&&this.toastr.success(`${this.generateSuccessMessage(t.length,r)}`,"Success",{enableHtml:!0}),k&&d){let R=`<li>${this.generateSuccessMessage(t.length)}</li>`,Mt=this.generateErrorMessage(o,e),yt=`<ol>${R} ${Mt}</ol>`;this.toastr.warning(yt,"Warning",{enableHtml:!0})}if(k&&!d){let R=`<ol>${this.generateErrorMessage(o,e)}</ol>`;this.toastr.error(R,"Error",{enableHtml:!0})}}generateSuccessMessage(t,e=[]){let o=e.length>1?e.length:1;return`
|
|
2
|
+
<div>
|
|
3
|
+
<span class="fw-bold">Successfully</span> updated ${t} variants in ${o} channels
|
|
4
|
+
</div>
|
|
5
|
+
`}generateErrorMessage(t,e=[]){let o="";return e.forEach((r,d)=>{o+=`<li><span class="fw-bold">Error</span> Updating ${t} for [${r.Name} - ${r.Code}] - <b>${r.Message}</b></li>`}),o}};n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=E({token:n,factory:n.\u0275fac});let i=n;return i})();export{ie as a,oe as b,me as c,he as d,xe as e};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as le}from"./chunk-
|
|
1
|
+
import{a as le}from"./chunk-AFIF6VRM.js";import{a as ee,b as D,c as te,d as V,f as ne,g as oe,h as H,i as re,j as de,o as v}from"./chunk-ZW2TMVZP.js";import{b as ae,d as E}from"./chunk-FCEXPGTK.js";import{a as ie,b as O}from"./chunk-QFSA7CU4.js";import{a as S}from"./chunk-4YCSITNV.js";import{a as W,b as X,f as Z}from"./chunk-WHHW4IZT.js";import{a as Q}from"./chunk-A6QXXKPR.js";import{a as K}from"./chunk-L3W6SG2T.js";import{i as q,m as J}from"./chunk-LNJUGHOX.js";import{$b as h,Ad as G,Gb as M,Hc as w,Ic as x,Mc as R,Na as L,Nc as z,Wc as $,Zb as j,Zc as T,bc as C,ca as Y,f as I,g as A,gc as f,hc as l,hd as N,ic as m,id as U,jc as k,la as B,ma as F,nb as d,qc as b,sb as P,vc as _,xa as c,xc as y,ya as p,zb as s}from"./chunk-ZYJ6LAJ3.js";var pe=["class","component ts"];function se(n,i){if(n&1){let r=b();l(0,"button",2),_("click",function(){c(r);let t=y(2);return p(t.todayClicked())}),k(1,"i",3),m()}}function me(n,i){if(n&1){let r=b();l(0,"button",4),_("click",function(){c(r);let t=y(2);return p(t.clearClicked())}),k(1,"i",5),m()}}function fe(n,i){if(n&1&&(h(0,se,2,0,"button",0),h(1,me,2,0,"button",1)),n&2){let r=i;C(r.hideBtnToday?-1:0),d(),C(r.hideBtnClear?-1:1)}}function ue(n,i){if(n&1&&(l(0,"mat-label",2)(1,"span"),R(2),m()()),n&2){let r=y();f("show",r.placeholder),d(2),z(r.placeholder)}}var ce=(()=>{let i=class i{constructor(){this._calendarHeaderConfig=new A({hideBtnClear:!1,hideBtnToday:!1}),this.calendarConfig=this._calendarHeaderConfig.value}setHeaderConfig(e){this._calendarHeaderConfig.next(e)}getHeaderConfig$(){return this._calendarHeaderConfig.asObservable()}};i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=F({token:i,factory:i.\u0275fac,providedIn:"root"});let n=i;return n})(),he=(()=>{let i=class i{constructor(e,t,a,o,u){this._datePicker=e,this._calendar=t,this._dateAdapter=a,this.calendarService=o,this._destroyed=new I,t.stateChanges.pipe(Y(this._destroyed)).subscribe(g=>u.markForCheck()),this.calendarConfig$=this.calendarService.getHeaderConfig$()}todayClicked(){this._calendar.activeDate=this._dateAdapter.today(),this._datePicker.select(this._dateAdapter.today()),this._datePicker.close()}clearClicked(){this._datePicker.select(null),this._datePicker.close()}ngOnChanges(e){this._calendar.ngOnChanges(e)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}};i.\u0275fac=function(t){return new(t||i)(s(H),s(oe),s(D),s(ce),s(G))},i.\u0275cmp=M({type:i,selectors:[["POS-DatepickerHeader",8,"component","ts"]],features:[T([v]),L],attrs:pe,decls:3,vars:3,consts:[["mat-icon-button","","title","Today"],["mat-icon-button","","title","Clear"],["mat-icon-button","","title","Today",3,"click"],[1,"far","fa-clock",2,"font-size","18px"],["mat-icon-button","","title","Clear",3,"click"],[1,"far","fa-xmark-circle",2,"font-size","18px"]],template:function(t,a){if(t&1&&(l(0,"mat-calendar-header"),h(1,fe,2,2),N(2,"async"),m()),t&2){let o;d(),C((o=U(2,1,a.calendarConfig$))?1:-1,o)}},dependencies:[J,E,ae,V,v,ne,S,O,q],encapsulation:2});let n=i;return n})(),Ce={parse:{dateInput:"DD MMM YYYY"},display:{dateInput:"DD MMM YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"LL",monthYearA11yLabel:"MMMM YYYY"}},Re=(()=>{let i=class i{set hidelClearBtn(e){this.calendarService.setHeaderConfig({hideBtnClear:e,hideBtnToday:this.calendarService.calendarConfig.hideBtnToday})}change(e){let t=null;e&&(t=e.toDate(),t.setHours(0,0,0,0)),this.dateChange.emit(t),this.onChange(t)}constructor(e){this.calendarService=e,this.headerComponent=he,this.appearance="outline",this.isFloatingLabel=!0,this.disabled=!1,this.readOnly=!1,this.dateChange=new P,this.minDate=Q.MinDate,this.onChange=t=>{},this.displayToggle=!0}onOpenDatepicker(){let e=document.getElementById("dropdown-filter");if(e){var t=new bootstrap.Dropdown(e);t&&(t._config.autoClose="inside")}}onCloseDatepicker(){let e=document.getElementById("dropdown-filter");if(e){var t=new bootstrap.Dropdown(e);t&&(t._config.autoClose="outside")}}ngOnDestroy(){this.calendarService.setHeaderConfig({hideBtnClear:!1,hideBtnToday:!1})}writeValue(e){e&&(this.date=e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){}setDisabledState(e){this.disabled=e}};i.\u0275fac=function(t){return new(t||i)(s(ce))},i.\u0275cmp=M({type:i,selectors:[["datepicker"]],inputs:{data_cy:"data_cy",placeholder:"placeholder",displayToggle:"displayToggle",appearance:"appearance",width:"width",isFloatingLabel:"isFloatingLabel",date:"date",disabled:"disabled",readOnly:"readOnly",minDateValidation:"minDateValidation",maxDateValidation:"maxDateValidation",hidelClearBtn:"hidelClearBtn"},outputs:{dateChange:"dateChange"},features:[T([{provide:D,useClass:le,deps:[ee]},{provide:te,useValue:Ce},{provide:K,useExisting:B(()=>i),multi:!0}])],decls:6,vars:18,consts:[["picker1",""],[1,"datepicker",3,"disabled","appearance"],[3,"show"],["matInput","",3,"dateChange","click","matDatepicker","min","max","placeholder","value","disabled","readonly"],["matSuffix","",3,"for"],[3,"opened","closed","calendarHeaderComponent"]],template:function(t,a){if(t&1){let o=b();l(0,"mat-form-field",1),h(1,ue,3,2,"mat-label",2),l(2,"input",3),_("dateChange",function(g){return c(o),p(a.change(g.value))})("click",function(){c(o);let g=w(5);return p(g.open())}),m(),k(3,"mat-datepicker-toggle",4),l(4,"mat-datepicker",5,0),_("opened",function(){return c(o),p(a.onOpenDatepicker())})("closed",function(){return c(o),p(a.onCloseDatepicker())}),m()()}if(t&2){let o=w(5);x("width",a.width||100,"%"),f("disabled",a.disabled)("appearance",a.appearance),d(),C(a.isFloatingLabel&&a.placeholder?1:-1),d(),f("placeholder",$(a.placeholder||""))("matDatepicker",o)("min",a.minDateValidation)("max",a.maxDateValidation)("value",a.date==a.minDate?null:a.date)("disabled",a.disabled)("readonly",a.readOnly),j("data-cy",a.data_cy),d(),x("display",a.displayToggle?"unset":"none"),f("for",o),d(),f("calendarHeaderComponent",a.headerComponent)}},dependencies:[E,V,v,H,re,de,S,Z,W,X,O,ie],styles:[`.mat-mdc-form-field-disabled ::ng-deep .mat-form-field-appearance-outline{background-color:#e9ecef!important;opacity:1!important}.mat-mdc-form-field-disabled ::ng-deep .mat-form-field-appearance-outline input{color:#00000061!important}.datepicker .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{min-height:33px;padding-top:18px;padding-bottom:13px}.datepicker .mat-mdc-icon-button.mat-mdc-button-base{padding:0}.datepicker .mat-mdc-form-field-subscript-wrapper{display:none}.mat-calendar-controls .mat-mdc-icon-button.mat-mdc-button-base{padding:0!important}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{top:28px!important;font-size:16px;color:#9da2a6}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:23px!important;font-size:.875rem;color:#ccc}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:#fff}div.form-floating-outline>datepicker .datepicker .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{min-height:57px!important;padding-top:20px!important;padding-bottom:13px!important;font-size:.875rem!important}div.form-floating-outline>datepicker .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:26px!important;font-size:.875rem!important}
|
|
2
2
|
`],encapsulation:2});let n=i;return n})();export{Re as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{N as s}from"./chunk-XLIPGDSC.js";import{Gb as c,Jc as r}from"./chunk-ZYJ6LAJ3.js";var n=(()=>{class o{_animationsDisabled=s();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(a){return new(a||o)};static \u0275cmp=c({type:o,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(a,e){a&2&&r("mat-pseudo-checkbox-indeterminate",e.state==="indeterminate")("mat-pseudo-checkbox-checked",e.state==="checked")("mat-pseudo-checkbox-disabled",e.disabled)("mat-pseudo-checkbox-minimal",e.appearance==="minimal")("mat-pseudo-checkbox-full",e.appearance==="full")("_mat-animation-noopable",e._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(a,e){},styles:[`.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-minimal-selected-checkmark-color, var(--mat-sys-primary))}.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{color:var(--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-pseudo-checkbox-full-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-pseudo-checkbox-full-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-pseudo-checkbox-full-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-full-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-pseudo-checkbox-full-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.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{color:var(--mat-pseudo-checkbox-full-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px}
|
|
2
2
|
`],encapsulation:2,changeDetection:0})}return o})();export{n as a};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{C as fe,D as pe,I as ue,J as F,K as W,L as Ft,M as Vt,a as rt,b as he,c as Mt,d as p,e as At,g as at,h as P,i as ce,j as Y,k as lt,l as H,o as ht,p as It,t as de,v as Lt}from"./chunk-3I2V337G.js";import{b as ae,c as le}from"./chunk-LNJUGHOX.js";import{Ad as Tt,Ba as _,Bb as L,Bc as Et,Ca as y,Cb as St,Cc as xt,Dc as Pt,Fd as M,G as tt,Gb as X,Hb as E,I as wt,Ib as x,Id as re,Jc as nt,Kb as Rt,Mc as se,Na as bt,Nc as ne,Oa as it,Qa as w,Wa as te,Xb as Ot,a as T,c as $t,ca as O,da as qt,f as u,gc as ee,hc as Dt,ic as ie,ma as b,na as D,nb as Ct,pa as z,q as Kt,qc as oe,ra as l,sb as k,tb as m,ua as et,ub as A,vb as ot,vc as kt,xa as Qt,xb as I,ya as Jt,yb as st}from"./chunk-ZYJ6LAJ3.js";import{a as R,b as Ut}from"./chunk-66YHNWRR.js";var je=20,V=(()=>{class s{_ngZone=l(m);_platform=l(P);_renderer=l(I).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new u;_scrolledCount=0;scrollContainers=new Map;register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){let e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=je){return this._platform.isBrowser?new $t(e=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=t>0?this._scrolled.pipe(wt(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):Kt()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){let o=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(tt(n=>!n||o.indexOf(n)>-1))}getAncestorScrollContainers(t){let e=[];return this.scrollContainers.forEach((o,n)=>{this._scrollableContainsElement(n,t)&&e.push(n)}),e}_scrollableContainsElement(t,e){let o=he(e),n=t.getElementRef().nativeElement;do if(o==n)return!0;while(o=o.parentElement);return!1}static \u0275fac=function(e){return new(e||s)};static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),Xe=(()=>{class s{elementRef=l(w);scrollDispatcher=l(V);ngZone=l(m);dir=l(F,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new u;_renderer=l(st);_cleanupScroll;_elementScrolled=new u;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",t=>this._elementScrolled.next(t))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){let e=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";t.left==null&&(t.left=o?t.end:t.start),t.right==null&&(t.right=o?t.start:t.end),t.bottom!=null&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),o&&H()!=Y.NORMAL?(t.left!=null&&(t.right=e.scrollWidth-e.clientWidth-t.left),H()==Y.INVERTED?t.left=t.right:H()==Y.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){let e=this.elementRef.nativeElement;lt()?e.scrollTo(t):(t.top!=null&&(e.scrollTop=t.top),t.left!=null&&(e.scrollLeft=t.left))}measureScrollOffset(t){let e="left",o="right",n=this.elementRef.nativeElement;if(t=="top")return n.scrollTop;if(t=="bottom")return n.scrollHeight-n.clientHeight-n.scrollTop;let r=this.dir&&this.dir.value=="rtl";return t=="start"?t=r?o:e:t=="end"&&(t=r?e:o),r&&H()==Y.INVERTED?t==e?n.scrollWidth-n.clientWidth-n.scrollLeft:n.scrollLeft:r&&H()==Y.NEGATED?t==e?n.scrollLeft+n.scrollWidth-n.clientWidth:-n.scrollLeft:t==e?n.scrollLeft:n.scrollWidth-n.clientWidth-n.scrollLeft}static \u0275fac=function(e){return new(e||s)};static \u0275dir=x({type:s,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return s})(),We=20,j=(()=>{class s{_platform=l(P);_listeners;_viewportSize;_change=new u;_document=l(y);constructor(){let t=l(m),e=l(I).createRenderer(null,null);t.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=n=>this._change.next(n);this._listeners=[e.listen("window","resize",o),e.listen("window","orientationchange",o)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(t=>t()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:e,height:o}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+o,right:t.left+e,height:o,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let t=this._document,e=this._getWindow(),o=t.documentElement,n=o.getBoundingClientRect(),r=-n.top||t.body.scrollTop||e.scrollY||o.scrollTop||0,a=-n.left||t.body.scrollLeft||e.scrollX||o.scrollLeft||0;return{top:r,left:a}}change(t=We){return t>0?this._change.pipe(wt(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}static \u0275fac=function(e){return new(e||s)};static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var G=(()=>{class s{static \u0275fac=function(e){return new(e||s)};static \u0275mod=E({type:s});static \u0275inj=D({})}return s})(),Bt=(()=>{class s{static \u0275fac=function(e){return new(e||s)};static \u0275mod=E({type:s});static \u0275inj=D({imports:[W,G,W,G]})}return s})();var Z=class{_attachedHost;attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;i!=null&&(this._attachedHost=null,i.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(i){this._attachedHost=i}},U=class extends Z{component;viewContainerRef;injector;projectableNodes;constructor(i,t,e,o){super(),this.component=i,this.viewContainerRef=t,this.injector=e,this.projectableNodes=o}},$=class extends Z{templateRef;viewContainerRef;context;injector;constructor(i,t,e,o){super(),this.templateRef=i,this.viewContainerRef=t,this.context=e,this.injector=o}get origin(){return this.templateRef.elementRef}attach(i,t=this.context){return this.context=t,super.attach(i)}detach(){return this.context=void 0,super.detach()}},Nt=class extends Z{element;constructor(i){super(),this.element=i instanceof w?i.nativeElement:i}},dt=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(i){if(i instanceof U)return this._attachedPortal=i,this.attachComponentPortal(i);if(i instanceof $)return this._attachedPortal=i,this.attachTemplatePortal(i);if(this.attachDomPortal&&i instanceof Nt)return this._attachedPortal=i,this.attachDomPortal(i)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(i){this._disposeFn=i}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},ft=class extends dt{outletElement;_appRef;_defaultInjector;constructor(i,t,e){super(),this.outletElement=i,this._appRef=t,this._defaultInjector=e}attachComponentPortal(i){let t;if(i.viewContainerRef){let e=i.injector||i.viewContainerRef.injector,o=e.get(St,null,{optional:!0})||void 0;t=i.viewContainerRef.createComponent(i.component,{index:i.viewContainerRef.length,injector:e,ngModuleRef:o,projectableNodes:i.projectableNodes||void 0}),this.setDisposeFn(()=>t.destroy())}else{let e=this._appRef,o=i.injector||this._defaultInjector||_.NULL,n=o.get(et,e.injector);t=re(i.component,{elementInjector:o,environmentInjector:n,projectableNodes:i.projectableNodes||void 0}),e.attachView(t.hostView),this.setDisposeFn(()=>{e.viewCount>0&&e.detachView(t.hostView),t.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=i,t}attachTemplatePortal(i){let t=i.viewContainerRef,e=t.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return e.rootNodes.forEach(o=>this.outletElement.appendChild(o)),e.detectChanges(),this.setDisposeFn(()=>{let o=t.indexOf(e);o!==-1&&t.remove(o)}),this._attachedPortal=i,e}attachDomPortal=i=>{let t=i.element;t.parentNode;let e=this.outletElement.ownerDocument.createComment("dom-portal");t.parentNode.insertBefore(e,t),this.outletElement.appendChild(t),this._attachedPortal=i,super.setDisposeFn(()=>{e.parentNode&&e.parentNode.replaceChild(t,e)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(i){return i.hostView.rootNodes[0]}};var Ki=(()=>{class s extends dt{_moduleRef=l(St,{optional:!0});_document=l(y);_viewContainerRef=l(L);_isInitialized=!1;_attachedRef;constructor(){super()}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null)}attached=new k;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(t){t.setAttachedHost(this);let e=t.viewContainerRef!=null?t.viewContainerRef:this._viewContainerRef,o=e.createComponent(t.component,{index:e.length,injector:t.injector||e.injector,projectableNodes:t.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return e!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=t,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(t){t.setAttachedHost(this);let e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}attachDomPortal=t=>{let e=t.element;e.parentNode;let o=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(o,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(e,o)})};_getRootNode(){let t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}static \u0275fac=function(e){return new(e||s)};static \u0275dir=x({type:s,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Rt]})}return s})();var _e=(()=>{class s{static \u0275fac=function(e){return new(e||s)};static \u0275mod=E({type:s});static \u0275inj=D({})}return s})();var ge=lt();function Re(s){return new pt(s.get(j),s.get(y))}var pt=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(i,t){this._viewportRuler=i,this._document=t}attach(){}enable(){if(this._canBeEnabled()){let i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=p(-this._previousScrollPosition.left),i.style.top=p(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let i=this._document.documentElement,t=this._document.body,e=i.style,o=t.style,n=e.scrollBehavior||"",r=o.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),ge&&(e.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),ge&&(e.scrollBehavior=n,o.scrollBehavior=r)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let t=this._document.documentElement,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}};function Oe(s,i){return new ut(s.get(V),s.get(m),s.get(j),i)}var ut=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(i,t,e,o){this._scrollDispatcher=i,this._ngZone=t,this._viewportRuler=e,this._config=o}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(this._scrollSubscription)return;let i=this._scrollDispatcher.scrolled(0).pipe(tt(t=>!t||!this._overlayRef.overlayElement.contains(t.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=i.subscribe(()=>{let t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}};var K=class{enable(){}disable(){}attach(){}};function zt(s,i){return i.some(t=>{let e=s.bottom<t.top,o=s.top>t.bottom,n=s.right<t.left,r=s.left>t.right;return e||o||n||r})}function me(s,i){return i.some(t=>{let e=s.top<t.top,o=s.bottom>t.bottom,n=s.left<t.left,r=s.right>t.right;return e||o||n||r})}function N(s,i){return new _t(s.get(V),s.get(j),s.get(m),i)}var _t=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(i,t,e,o){this._scrollDispatcher=i,this._viewportRuler=t,this._ngZone=e,this._config=o}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(!this._scrollSubscription){let i=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(i).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:o}=this._viewportRuler.getViewportSize();zt(t,[{width:e,height:o,bottom:o,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},De=(()=>{class s{_injector=l(_);constructor(){}noop=()=>new K;close=t=>Oe(this._injector,t);block=()=>Re(this._injector);reposition=t=>N(this._injector,t);static \u0275fac=function(e){return new(e||s)};static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),q=class{positionStrategy;scrollStrategy=new K;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(i){if(i){let t=Object.keys(i);for(let e of t)i[e]!==void 0&&(this[e]=i[e])}}};var gt=class{connectionPair;scrollableViewProperties;constructor(i,t){this.connectionPair=i,this.scrollableViewProperties=t}};var ke=(()=>{class s{_attachedOverlays=[];_document=l(y);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){let e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(e){return new(e||s)};static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),Ee=(()=>{class s extends ke{_ngZone=l(m);_renderer=l(I).createRenderer(null,null);_cleanupKeydown;add(t){super.add(t),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=t=>{let e=this._attachedOverlays;for(let o=e.length-1;o>-1;o--)if(e[o]._keydownEvents.observers.length>0){this._ngZone.run(()=>e[o]._keydownEvents.next(t));break}};static \u0275fac=(()=>{let t;return function(o){return(t||(t=it(s)))(o||s)}})();static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),xe=(()=>{class s extends ke{_platform=l(P);_ngZone=l(m);_renderer=l(I).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(t){if(super.add(t),!this._isAttached){let e=this._document.body,o={capture:!0},n=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[n.listen(e,"pointerdown",this._pointerDownListener,o),n.listen(e,"click",this._clickListener,o),n.listen(e,"auxclick",this._clickListener,o),n.listen(e,"contextmenu",this._clickListener,o)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=e.style.cursor,e.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(t=>t()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=t=>{this._pointerDownEventTarget=ht(t)};_clickListener=t=>{let e=ht(t),o=t.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:e;this._pointerDownEventTarget=null;let n=this._attachedOverlays.slice();for(let r=n.length-1;r>-1;r--){let a=n[r];if(a._outsidePointerEvents.observers.length<1||!a.hasAttached())continue;if(ve(a.overlayElement,e)||ve(a.overlayElement,o))break;let c=a._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>c.next(t)):c.next(t)}};static \u0275fac=(()=>{let t;return function(o){return(t||(t=it(s)))(o||s)}})();static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();function ve(s,i){let t=typeof ShadowRoot<"u"&&ShadowRoot,e=i;for(;e;){if(e===s)return!0;e=t&&e instanceof ShadowRoot?e.host:e.parentNode}return!1}var Pe=(()=>{class s{static \u0275fac=function(e){return new(e||s)};static \u0275cmp=X({type:s,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(e,o){},styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}
|
|
1
|
+
import{D as fe,E as pe,J as ue,K as F,L as W,N as Ft,O as Vt,a as rt,b as he,c as Mt,d as p,e as At,g as at,h as P,i as ce,j as Y,k as lt,l as H,o as ht,p as It,t as de,v as Lt}from"./chunk-XLIPGDSC.js";import{b as ae,c as le}from"./chunk-LNJUGHOX.js";import{Ad as Tt,Ba as _,Bb as L,Bc as Et,Ca as y,Cb as St,Cc as xt,Dc as Pt,Fd as M,G as tt,Gb as X,Hb as E,I as wt,Ib as x,Id as re,Jc as nt,Kb as Rt,Mc as se,Na as bt,Nc as ne,Oa as it,Qa as w,Wa as te,Xb as Ot,a as T,c as $t,ca as O,da as qt,f as u,gc as ee,hc as Dt,ic as ie,ma as b,na as D,nb as Ct,pa as z,q as Kt,qc as oe,ra as l,sb as k,tb as m,ua as et,ub as A,vb as ot,vc as kt,xa as Qt,xb as I,ya as Jt,yb as st}from"./chunk-ZYJ6LAJ3.js";import{a as R,b as Ut}from"./chunk-66YHNWRR.js";var je=20,V=(()=>{class s{_ngZone=l(m);_platform=l(P);_renderer=l(I).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new u;_scrolledCount=0;scrollContainers=new Map;register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){let e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=je){return this._platform.isBrowser?new $t(e=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=t>0?this._scrolled.pipe(wt(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):Kt()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){let o=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(tt(n=>!n||o.indexOf(n)>-1))}getAncestorScrollContainers(t){let e=[];return this.scrollContainers.forEach((o,n)=>{this._scrollableContainsElement(n,t)&&e.push(n)}),e}_scrollableContainsElement(t,e){let o=he(e),n=t.getElementRef().nativeElement;do if(o==n)return!0;while(o=o.parentElement);return!1}static \u0275fac=function(e){return new(e||s)};static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),Xe=(()=>{class s{elementRef=l(w);scrollDispatcher=l(V);ngZone=l(m);dir=l(F,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new u;_renderer=l(st);_cleanupScroll;_elementScrolled=new u;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",t=>this._elementScrolled.next(t))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(t){let e=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";t.left==null&&(t.left=o?t.end:t.start),t.right==null&&(t.right=o?t.start:t.end),t.bottom!=null&&(t.top=e.scrollHeight-e.clientHeight-t.bottom),o&&H()!=Y.NORMAL?(t.left!=null&&(t.right=e.scrollWidth-e.clientWidth-t.left),H()==Y.INVERTED?t.left=t.right:H()==Y.NEGATED&&(t.left=t.right?-t.right:t.right)):t.right!=null&&(t.left=e.scrollWidth-e.clientWidth-t.right),this._applyScrollToOptions(t)}_applyScrollToOptions(t){let e=this.elementRef.nativeElement;lt()?e.scrollTo(t):(t.top!=null&&(e.scrollTop=t.top),t.left!=null&&(e.scrollLeft=t.left))}measureScrollOffset(t){let e="left",o="right",n=this.elementRef.nativeElement;if(t=="top")return n.scrollTop;if(t=="bottom")return n.scrollHeight-n.clientHeight-n.scrollTop;let r=this.dir&&this.dir.value=="rtl";return t=="start"?t=r?o:e:t=="end"&&(t=r?e:o),r&&H()==Y.INVERTED?t==e?n.scrollWidth-n.clientWidth-n.scrollLeft:n.scrollLeft:r&&H()==Y.NEGATED?t==e?n.scrollLeft+n.scrollWidth-n.clientWidth:-n.scrollLeft:t==e?n.scrollLeft:n.scrollWidth-n.clientWidth-n.scrollLeft}static \u0275fac=function(e){return new(e||s)};static \u0275dir=x({type:s,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return s})(),We=20,j=(()=>{class s{_platform=l(P);_listeners;_viewportSize;_change=new u;_document=l(y);constructor(){let t=l(m),e=l(I).createRenderer(null,null);t.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=n=>this._change.next(n);this._listeners=[e.listen("window","resize",o),e.listen("window","orientationchange",o)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(t=>t()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){let t=this.getViewportScrollPosition(),{width:e,height:o}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+o,right:t.left+e,height:o,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let t=this._document,e=this._getWindow(),o=t.documentElement,n=o.getBoundingClientRect(),r=-n.top||t.body.scrollTop||e.scrollY||o.scrollTop||0,a=-n.left||t.body.scrollLeft||e.scrollX||o.scrollLeft||0;return{top:r,left:a}}change(t=We){return t>0?this._change.pipe(wt(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}static \u0275fac=function(e){return new(e||s)};static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();var G=(()=>{class s{static \u0275fac=function(e){return new(e||s)};static \u0275mod=E({type:s});static \u0275inj=D({})}return s})(),Bt=(()=>{class s{static \u0275fac=function(e){return new(e||s)};static \u0275mod=E({type:s});static \u0275inj=D({imports:[W,G,W,G]})}return s})();var Z=class{_attachedHost;attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;i!=null&&(this._attachedHost=null,i.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(i){this._attachedHost=i}},U=class extends Z{component;viewContainerRef;injector;projectableNodes;constructor(i,t,e,o){super(),this.component=i,this.viewContainerRef=t,this.injector=e,this.projectableNodes=o}},$=class extends Z{templateRef;viewContainerRef;context;injector;constructor(i,t,e,o){super(),this.templateRef=i,this.viewContainerRef=t,this.context=e,this.injector=o}get origin(){return this.templateRef.elementRef}attach(i,t=this.context){return this.context=t,super.attach(i)}detach(){return this.context=void 0,super.detach()}},Nt=class extends Z{element;constructor(i){super(),this.element=i instanceof w?i.nativeElement:i}},dt=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(i){if(i instanceof U)return this._attachedPortal=i,this.attachComponentPortal(i);if(i instanceof $)return this._attachedPortal=i,this.attachTemplatePortal(i);if(this.attachDomPortal&&i instanceof Nt)return this._attachedPortal=i,this.attachDomPortal(i)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(i){this._disposeFn=i}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},ft=class extends dt{outletElement;_appRef;_defaultInjector;constructor(i,t,e){super(),this.outletElement=i,this._appRef=t,this._defaultInjector=e}attachComponentPortal(i){let t;if(i.viewContainerRef){let e=i.injector||i.viewContainerRef.injector,o=e.get(St,null,{optional:!0})||void 0;t=i.viewContainerRef.createComponent(i.component,{index:i.viewContainerRef.length,injector:e,ngModuleRef:o,projectableNodes:i.projectableNodes||void 0}),this.setDisposeFn(()=>t.destroy())}else{let e=this._appRef,o=i.injector||this._defaultInjector||_.NULL,n=o.get(et,e.injector);t=re(i.component,{elementInjector:o,environmentInjector:n,projectableNodes:i.projectableNodes||void 0}),e.attachView(t.hostView),this.setDisposeFn(()=>{e.viewCount>0&&e.detachView(t.hostView),t.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(t)),this._attachedPortal=i,t}attachTemplatePortal(i){let t=i.viewContainerRef,e=t.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return e.rootNodes.forEach(o=>this.outletElement.appendChild(o)),e.detectChanges(),this.setDisposeFn(()=>{let o=t.indexOf(e);o!==-1&&t.remove(o)}),this._attachedPortal=i,e}attachDomPortal=i=>{let t=i.element;t.parentNode;let e=this.outletElement.ownerDocument.createComment("dom-portal");t.parentNode.insertBefore(e,t),this.outletElement.appendChild(t),this._attachedPortal=i,super.setDisposeFn(()=>{e.parentNode&&e.parentNode.replaceChild(t,e)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(i){return i.hostView.rootNodes[0]}};var Ki=(()=>{class s extends dt{_moduleRef=l(St,{optional:!0});_document=l(y);_viewContainerRef=l(L);_isInitialized=!1;_attachedRef;constructor(){super()}get portal(){return this._attachedPortal}set portal(t){this.hasAttached()&&!t&&!this._isInitialized||(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t||null)}attached=new k;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(t){t.setAttachedHost(this);let e=t.viewContainerRef!=null?t.viewContainerRef:this._viewContainerRef,o=e.createComponent(t.component,{index:e.length,injector:t.injector||e.injector,projectableNodes:t.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return e!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=t,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(t){t.setAttachedHost(this);let e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context,{injector:t.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}attachDomPortal=t=>{let e=t.element;e.parentNode;let o=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(o,e),this._getRootNode().appendChild(e),this._attachedPortal=t,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(e,o)})};_getRootNode(){let t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}static \u0275fac=function(e){return new(e||s)};static \u0275dir=x({type:s,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Rt]})}return s})();var _e=(()=>{class s{static \u0275fac=function(e){return new(e||s)};static \u0275mod=E({type:s});static \u0275inj=D({})}return s})();var ge=lt();function Re(s){return new pt(s.get(j),s.get(y))}var pt=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(i,t){this._viewportRuler=i,this._document=t}attach(){}enable(){if(this._canBeEnabled()){let i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=p(-this._previousScrollPosition.left),i.style.top=p(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let i=this._document.documentElement,t=this._document.body,e=i.style,o=t.style,n=e.scrollBehavior||"",r=o.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),ge&&(e.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),ge&&(e.scrollBehavior=n,o.scrollBehavior=r)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let t=this._document.documentElement,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}};function Oe(s,i){return new ut(s.get(V),s.get(m),s.get(j),i)}var ut=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(i,t,e,o){this._scrollDispatcher=i,this._ngZone=t,this._viewportRuler=e,this._config=o}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(this._scrollSubscription)return;let i=this._scrollDispatcher.scrolled(0).pipe(tt(t=>!t||!this._overlayRef.overlayElement.contains(t.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=i.subscribe(()=>{let t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}};var K=class{enable(){}disable(){}attach(){}};function zt(s,i){return i.some(t=>{let e=s.bottom<t.top,o=s.top>t.bottom,n=s.right<t.left,r=s.left>t.right;return e||o||n||r})}function me(s,i){return i.some(t=>{let e=s.top<t.top,o=s.bottom>t.bottom,n=s.left<t.left,r=s.right>t.right;return e||o||n||r})}function N(s,i){return new _t(s.get(V),s.get(j),s.get(m),i)}var _t=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(i,t,e,o){this._scrollDispatcher=i,this._viewportRuler=t,this._ngZone=e,this._config=o}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(!this._scrollSubscription){let i=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(i).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:o}=this._viewportRuler.getViewportSize();zt(t,[{width:e,height:o,bottom:o,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},De=(()=>{class s{_injector=l(_);constructor(){}noop=()=>new K;close=t=>Oe(this._injector,t);block=()=>Re(this._injector);reposition=t=>N(this._injector,t);static \u0275fac=function(e){return new(e||s)};static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),q=class{positionStrategy;scrollStrategy=new K;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(i){if(i){let t=Object.keys(i);for(let e of t)i[e]!==void 0&&(this[e]=i[e])}}};var gt=class{connectionPair;scrollableViewProperties;constructor(i,t){this.connectionPair=i,this.scrollableViewProperties=t}};var ke=(()=>{class s{_attachedOverlays=[];_document=l(y);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){let e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(e){return new(e||s)};static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),Ee=(()=>{class s extends ke{_ngZone=l(m);_renderer=l(I).createRenderer(null,null);_cleanupKeydown;add(t){super.add(t),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=t=>{let e=this._attachedOverlays;for(let o=e.length-1;o>-1;o--)if(e[o]._keydownEvents.observers.length>0){this._ngZone.run(()=>e[o]._keydownEvents.next(t));break}};static \u0275fac=(()=>{let t;return function(o){return(t||(t=it(s)))(o||s)}})();static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),xe=(()=>{class s extends ke{_platform=l(P);_ngZone=l(m);_renderer=l(I).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(t){if(super.add(t),!this._isAttached){let e=this._document.body,o={capture:!0},n=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[n.listen(e,"pointerdown",this._pointerDownListener,o),n.listen(e,"click",this._clickListener,o),n.listen(e,"auxclick",this._clickListener,o),n.listen(e,"contextmenu",this._clickListener,o)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=e.style.cursor,e.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(t=>t()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=t=>{this._pointerDownEventTarget=ht(t)};_clickListener=t=>{let e=ht(t),o=t.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:e;this._pointerDownEventTarget=null;let n=this._attachedOverlays.slice();for(let r=n.length-1;r>-1;r--){let a=n[r];if(a._outsidePointerEvents.observers.length<1||!a.hasAttached())continue;if(ve(a.overlayElement,e)||ve(a.overlayElement,o))break;let c=a._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>c.next(t)):c.next(t)}};static \u0275fac=(()=>{let t;return function(o){return(t||(t=it(s)))(o||s)}})();static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();function ve(s,i){let t=typeof ShadowRoot<"u"&&ShadowRoot,e=i;for(;e;){if(e===s)return!0;e=t&&e instanceof ShadowRoot?e.host:e.parentNode}return!1}var Pe=(()=>{class s{static \u0275fac=function(e){return new(e||s)};static \u0275cmp=X({type:s,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(e,o){},styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}
|
|
2
2
|
`],encapsulation:2,changeDetection:0})}return s})(),Te=(()=>{class s{_platform=l(P);_containerElement;_document=l(y);_styleLoader=l(Lt);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let t="cdk-overlay-container";if(this._platform.isBrowser||It()){let o=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let n=0;n<o.length;n++)o[n].remove()}let e=this._document.createElement("div");e.classList.add(t),It()?e.setAttribute("platform","test"):this._platform.isBrowser||e.setAttribute("platform","server"),this._document.body.appendChild(e),this._containerElement=e}_loadStyles(){this._styleLoader.load(Pe)}static \u0275fac=function(e){return new(e||s)};static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),Yt=class{_renderer;_ngZone;element;_cleanupClick;_cleanupTransitionEnd;_fallbackTimeout;constructor(i,t,e,o){this._renderer=t,this._ngZone=e,this.element=i.createElement("div"),this.element.classList.add("cdk-overlay-backdrop"),this._cleanupClick=t.listen(this.element,"click",o)}detach(){this._ngZone.runOutsideAngular(()=>{let i=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(i,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),i.style.pointerEvents="none",i.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}},mt=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new u;_attachments=new u;_detachments=new u;_positionStrategy;_scrollStrategy;_locationChanges=T.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_previousHostParent;_keydownEvents=new u;_outsidePointerEvents=new u;_afterNextRenderRef;constructor(i,t,e,o,n,r,a,c,d,h=!1,f,S){this._portalOutlet=i,this._host=t,this._pane=e,this._config=o,this._ngZone=n,this._keyboardDispatcher=r,this._document=a,this._location=c,this._outsideClickDispatcher=d,this._animationsDisabled=h,this._injector=f,this._renderer=S,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(i){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let t=this._portalOutlet.attach(i);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=A(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof t?.onDestroy=="function"&&t.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let i=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){let i=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,i&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config=R(R({},this._config),i),this._updateElementSize()}setDirection(i){this._config=Ut(R({},this._config),{direction:i}),this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){let i=this._config.direction;return i?typeof i=="string"?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let i=this._pane.style;i.width=p(this._config.width),i.height=p(this._config.height),i.minWidth=p(this._config.minWidth),i.minHeight=p(this._config.minHeight),i.maxWidth=p(this._config.maxWidth),i.maxHeight=p(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachBackdrop(){let i="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new Yt(this._document,this._renderer,this._ngZone,t=>{this._backdropClick.next(t)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(i))}):this._backdropRef.element.classList.add(i)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(i,t,e){let o=Mt(t||[]).filter(n=>!!n);o.length&&(e?i.classList.add(...o):i.classList.remove(...o))}_detachContentWhenEmpty(){let i=!1;try{this._detachContentAfterRenderRef=A(()=>{i=!0,this._detachContent()},{injector:this._injector})}catch(t){if(i)throw t;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){let i=this._scrollStrategy;i?.disable(),i?.detach?.()}},ye="cdk-overlay-connected-position-bounding-box",Ge=/([A-Za-z%]+)$/;function Q(s,i){return new vt(i,s.get(j),s.get(y),s.get(P),s.get(Te))}var vt=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new u;_resizeSubscription=T.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(i,t,e,o,n){this._viewportRuler=t,this._document=e,this._platform=o,this._overlayContainer=n,this.setOrigin(i)}attach(i){this._overlayRef&&this._overlayRef,this._validatePositions(),i.hostElement.classList.add(ye),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let i=this._originRect,t=this._overlayRect,e=this._viewportRect,o=this._containerRect,n=[],r;for(let a of this._preferredPositions){let c=this._getOriginPoint(i,o,a),d=this._getOverlayPoint(c,t,a),h=this._getOverlayFit(d,t,e,a);if(h.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,c);return}if(this._canFitWithFlexibleDimensions(h,d,e)){n.push({position:a,origin:c,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(c,a)});continue}(!r||r.overlayFit.visibleArea<h.visibleArea)&&(r={overlayFit:h,overlayPoint:d,originPoint:c,position:a,overlayRect:t})}if(n.length){let a=null,c=-1;for(let d of n){let h=d.boundingBoxRect.width*d.boundingBoxRect.height*(d.position.weight||1);h>c&&(c=h,a=d)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(r.position,r.originPoint);return}this._applyPosition(r.position,r.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&B(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(ye),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let i=this._lastPosition;if(i){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let t=this._getOriginPoint(this._originRect,this._containerRect,i);this._applyPosition(i,t)}else this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,i.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}_getOriginPoint(i,t,e){let o;if(e.originX=="center")o=i.left+i.width/2;else{let r=this._isRtl()?i.right:i.left,a=this._isRtl()?i.left:i.right;o=e.originX=="start"?r:a}t.left<0&&(o-=t.left);let n;return e.originY=="center"?n=i.top+i.height/2:n=e.originY=="top"?i.top:i.bottom,t.top<0&&(n-=t.top),{x:o,y:n}}_getOverlayPoint(i,t,e){let o;e.overlayX=="center"?o=-t.width/2:e.overlayX==="start"?o=this._isRtl()?-t.width:0:o=this._isRtl()?0:-t.width;let n;return e.overlayY=="center"?n=-t.height/2:n=e.overlayY=="top"?0:-t.height,{x:i.x+o,y:i.y+n}}_getOverlayFit(i,t,e,o){let n=be(t),{x:r,y:a}=i,c=this._getOffset(o,"x"),d=this._getOffset(o,"y");c&&(r+=c),d&&(a+=d);let h=0-r,f=r+n.width-e.width,S=0-a,v=a+n.height-e.height,g=this._subtractOverflows(n.width,h,f),C=this._subtractOverflows(n.height,S,v),Zt=g*C;return{visibleArea:Zt,isCompletelyWithinViewport:n.width*n.height===Zt,fitsInViewportVertically:C===n.height,fitsInViewportHorizontally:g==n.width}}_canFitWithFlexibleDimensions(i,t,e){if(this._hasFlexibleDimensions){let o=e.bottom-t.y,n=e.right-t.x,r=we(this._overlayRef.getConfig().minHeight),a=we(this._overlayRef.getConfig().minWidth),c=i.fitsInViewportVertically||r!=null&&r<=o,d=i.fitsInViewportHorizontally||a!=null&&a<=n;return c&&d}return!1}_pushOverlayOnScreen(i,t,e){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};let o=be(t),n=this._viewportRect,r=Math.max(i.x+o.width-n.width,0),a=Math.max(i.y+o.height-n.height,0),c=Math.max(n.top-e.top-i.y,0),d=Math.max(n.left-e.left-i.x,0),h=0,f=0;return o.width<=n.width?h=d||-r:h=i.x<this._viewportMargin?n.left-e.left-i.x:0,o.height<=n.height?f=c||-a:f=i.y<this._viewportMargin?n.top-e.top-i.y:0,this._previousPushAmount={x:h,y:f},{x:i.x+h,y:i.y+f}}_applyPosition(i,t){if(this._setTransformOrigin(i),this._setOverlayElementStyles(t,i),this._setBoundingBoxStyles(t,i),i.panelClass&&this._addPanelClasses(i.panelClass),this._positionChanges.observers.length){let e=this._getScrollVisibility();if(i!==this._lastPosition||!this._lastScrollVisibility||!Ze(this._lastScrollVisibility,e)){let o=new gt(i,e);this._positionChanges.next(o)}this._lastScrollVisibility=e}this._lastPosition=i,this._isInitialRender=!1}_setTransformOrigin(i){if(!this._transformOriginSelector)return;let t=this._boundingBox.querySelectorAll(this._transformOriginSelector),e,o=i.overlayY;i.overlayX==="center"?e="center":this._isRtl()?e=i.overlayX==="start"?"right":"left":e=i.overlayX==="start"?"left":"right";for(let n=0;n<t.length;n++)t[n].style.transformOrigin=`${e} ${o}`}_calculateBoundingBoxRect(i,t){let e=this._viewportRect,o=this._isRtl(),n,r,a;if(t.overlayY==="top")r=i.y,n=e.height-r+this._viewportMargin;else if(t.overlayY==="bottom")a=e.height-i.y+this._viewportMargin*2,n=e.height-a+this._viewportMargin;else{let v=Math.min(e.bottom-i.y+e.top,i.y),g=this._lastBoundingBoxSize.height;n=v*2,r=i.y-v,n>g&&!this._isInitialRender&&!this._growAfterOpen&&(r=i.y-g/2)}let c=t.overlayX==="start"&&!o||t.overlayX==="end"&&o,d=t.overlayX==="end"&&!o||t.overlayX==="start"&&o,h,f,S;if(d)S=e.width-i.x+this._viewportMargin*2,h=i.x-this._viewportMargin;else if(c)f=i.x,h=e.right-i.x;else{let v=Math.min(e.right-i.x+e.left,i.x),g=this._lastBoundingBoxSize.width;h=v*2,f=i.x-v,h>g&&!this._isInitialRender&&!this._growAfterOpen&&(f=i.x-g/2)}return{top:r,left:f,bottom:a,right:S,width:h,height:n}}_setBoundingBoxStyles(i,t){let e=this._calculateBoundingBoxRect(i,t);!this._isInitialRender&&!this._growAfterOpen&&(e.height=Math.min(e.height,this._lastBoundingBoxSize.height),e.width=Math.min(e.width,this._lastBoundingBoxSize.width));let o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{let n=this._overlayRef.getConfig().maxHeight,r=this._overlayRef.getConfig().maxWidth;o.height=p(e.height),o.top=p(e.top),o.bottom=p(e.bottom),o.width=p(e.width),o.left=p(e.left),o.right=p(e.right),t.overlayX==="center"?o.alignItems="center":o.alignItems=t.overlayX==="end"?"flex-end":"flex-start",t.overlayY==="center"?o.justifyContent="center":o.justifyContent=t.overlayY==="bottom"?"flex-end":"flex-start",n&&(o.maxHeight=p(n)),r&&(o.maxWidth=p(r))}this._lastBoundingBoxSize=e,B(this._boundingBox.style,o)}_resetBoundingBoxStyles(){B(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){B(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,t){let e={},o=this._hasExactPosition(),n=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(o){let h=this._viewportRuler.getViewportScrollPosition();B(e,this._getExactOverlayY(t,i,h)),B(e,this._getExactOverlayX(t,i,h))}else e.position="static";let a="",c=this._getOffset(t,"x"),d=this._getOffset(t,"y");c&&(a+=`translateX(${c}px) `),d&&(a+=`translateY(${d}px)`),e.transform=a.trim(),r.maxHeight&&(o?e.maxHeight=p(r.maxHeight):n&&(e.maxHeight="")),r.maxWidth&&(o?e.maxWidth=p(r.maxWidth):n&&(e.maxWidth="")),B(this._pane.style,e)}_getExactOverlayY(i,t,e){let o={top:"",bottom:""},n=this._getOverlayPoint(t,this._overlayRect,i);if(this._isPushed&&(n=this._pushOverlayOnScreen(n,this._overlayRect,e)),i.overlayY==="bottom"){let r=this._document.documentElement.clientHeight;o.bottom=`${r-(n.y+this._overlayRect.height)}px`}else o.top=p(n.y);return o}_getExactOverlayX(i,t,e){let o={left:"",right:""},n=this._getOverlayPoint(t,this._overlayRect,i);this._isPushed&&(n=this._pushOverlayOnScreen(n,this._overlayRect,e));let r;if(this._isRtl()?r=i.overlayX==="end"?"left":"right":r=i.overlayX==="end"?"right":"left",r==="right"){let a=this._document.documentElement.clientWidth;o.right=`${a-(n.x+this._overlayRect.width)}px`}else o.left=p(n.x);return o}_getScrollVisibility(){let i=this._getOriginRect(),t=this._pane.getBoundingClientRect(),e=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:me(i,e),isOriginOutsideView:zt(i,e),isOverlayClipped:me(t,e),isOverlayOutsideView:zt(t,e)}}_subtractOverflows(i,...t){return t.reduce((e,o)=>e-Math.max(o,0),i)}_getNarrowedViewportRect(){let i=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,e=this._viewportRuler.getViewportScrollPosition();return{top:e.top+this._viewportMargin,left:e.left+this._viewportMargin,right:e.left+i-this._viewportMargin,bottom:e.top+t-this._viewportMargin,width:i-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,t){return t==="x"?i.offsetX==null?this._offsetX:i.offsetX:i.offsetY==null?this._offsetY:i.offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&Mt(i).forEach(t=>{t!==""&&this._appliedPanelClasses.indexOf(t)===-1&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getOriginRect(){let i=this._origin;if(i instanceof w)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();let t=i.width||0,e=i.height||0;return{top:i.y,bottom:i.y+e,left:i.x,right:i.x+t,height:e,width:t}}};function B(s,i){for(let t in i)i.hasOwnProperty(t)&&(s[t]=i[t]);return s}function we(s){if(typeof s!="number"&&s!=null){let[i,t]=s.split(Ge);return!t||t==="px"?parseFloat(i):null}return s||null}function be(s){return{top:Math.floor(s.top),right:Math.floor(s.right),bottom:Math.floor(s.bottom),left:Math.floor(s.left),width:Math.floor(s.width),height:Math.floor(s.height)}}function Ze(s,i){return s===i?!0:s.isOriginClipped===i.isOriginClipped&&s.isOriginOutsideView===i.isOriginOutsideView&&s.isOverlayClipped===i.isOverlayClipped&&s.isOverlayOutsideView===i.isOverlayOutsideView}var Ce="cdk-global-overlay-wrapper";function Me(s){return new yt}var yt=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(i){let t=i.getConfig();this._overlayRef=i,this._width&&!t.width&&i.updateSize({width:this._width}),this._height&&!t.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(Ce),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let i=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,e=this._overlayRef.getConfig(),{width:o,height:n,maxWidth:r,maxHeight:a}=e,c=(o==="100%"||o==="100vw")&&(!r||r==="100%"||r==="100vw"),d=(n==="100%"||n==="100vh")&&(!a||a==="100%"||a==="100vh"),h=this._xPosition,f=this._xOffset,S=this._overlayRef.getConfig().direction==="rtl",v="",g="",C="";c?C="flex-start":h==="center"?(C="center",S?g=f:v=f):S?h==="left"||h==="end"?(C="flex-end",v=f):(h==="right"||h==="start")&&(C="flex-start",g=f):h==="left"||h==="start"?(C="flex-start",v=f):(h==="right"||h==="end")&&(C="flex-end",g=f),i.position=this._cssPosition,i.marginLeft=c?"0":v,i.marginTop=d?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=c?"0":g,t.justifyContent=C,t.alignItems=d?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let i=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,e=t.style;t.classList.remove(Ce),e.justifyContent=e.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}},Ae=(()=>{class s{_injector=l(_);constructor(){}global(){return Me()}flexibleConnectedTo(t){return Q(this._injector,t)}static \u0275fac=function(e){return new(e||s)};static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})();function J(s,i){s.get(Lt).load(Pe);let t=s.get(Te),e=s.get(y),o=s.get(pe),n=s.get(Ot),r=s.get(F),a=e.createElement("div"),c=e.createElement("div");c.id=o.getId("cdk-overlay-"),c.classList.add("cdk-overlay-pane"),a.appendChild(c),t.getContainerElement().appendChild(a);let d=new ft(c,n,s),h=new q(i),f=s.get(st,null,{optional:!0})||s.get(I).createRenderer(null,null);return h.direction=h.direction||r.value,new mt(d,a,c,h,s.get(m),s.get(Ee),e,s.get(ae),s.get(xe),i?.disableAnimations??s.get(te,null,{optional:!0})==="NoopAnimations",s.get(et),f)}var Ie=(()=>{class s{scrollStrategies=l(De);_positionBuilder=l(Ae);_injector=l(_);constructor(){}create(t){return J(this._injector,t)}position(){return this._positionBuilder}static \u0275fac=function(e){return new(e||s)};static \u0275prov=b({token:s,factory:s.\u0275fac,providedIn:"root"})}return s})(),Ue=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Le=new z("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let s=l(_);return()=>N(s)}}),Ht=(()=>{class s{elementRef=l(w);constructor(){}static \u0275fac=function(e){return new(e||s)};static \u0275dir=x({type:s,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return s})(),$e=(()=>{class s{_dir=l(F,{optional:!0});_injector=l(_);_overlayRef;_templatePortal;_backdropSubscription=T.EMPTY;_attachSubscription=T.EMPTY;_detachSubscription=T.EMPTY;_positionSubscription=T.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=l(Le);_disposeOnNavigation=!1;_ngZone=l(m);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(t){this._disposeOnNavigation=t}backdropClick=new k;positionChange=new k;attach=new k;detach=new k;overlayKeydown=new k;overlayOutsideClick=new k;constructor(){let t=l(ot),e=l(L);this._templatePortal=new $(t,e),this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef?.dispose()}ngOnChanges(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this.attachOverlay():this.detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Ue);let t=this._overlayRef=J(this._injector,this._buildConfig());this._attachSubscription=t.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=t.detachments().subscribe(()=>this.detach.emit()),t.keydownEvents().subscribe(e=>{this.overlayKeydown.next(e),e.keyCode===27&&!this.disableClose&&!at(e)&&(e.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(e=>{let o=this._getOriginElement(),n=ht(e);(!o||o!==n&&!o.contains(n))&&this.overlayOutsideClick.next(e)})}_buildConfig(){let t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new q({direction:this._dir||"ltr",positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(e.width=this.width),(this.height||this.height===0)&&(e.height=this.height),(this.minWidth||this.minWidth===0)&&(e.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}_updatePositionStrategy(t){let e=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return t.setOrigin(this._getOrigin()).withPositions(e).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let t=Q(this._injector,this._getOrigin());return this._updatePositionStrategy(t),t}_getOrigin(){return this.origin instanceof Ht?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Ht?this.origin.elementRef.nativeElement:this.origin instanceof w?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(t=>{this.backdropClick.emit(t)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(qt(()=>this.positionChange.observers.length>0)).subscribe(t=>{this._ngZone.run(()=>this.positionChange.emit(t)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}static \u0275fac=function(e){return new(e||s)};static \u0275dir=x({type:s,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",M],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",M],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",M],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",M],push:[2,"cdkConnectedOverlayPush","push",M],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",M]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[bt]})}return s})();function Ke(s){let i=l(_);return()=>N(i)}var qe={provide:Le,useFactory:Ke},jt=(()=>{class s{static \u0275fac=function(e){return new(e||s)};static \u0275mod=E({type:s});static \u0275inj=D({providers:[Ie,qe],imports:[W,_e,Bt,Bt]})}return s})();var Qe=["tooltip"],Xt=20;var Wt=new z("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let s=l(_);return()=>N(s,{scrollThrottle:Xt})}});function Be(s){let i=l(_);return()=>N(i,{scrollThrottle:Xt})}var Gt={provide:Wt,deps:[],useFactory:Be};function Ne(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var ze=new z("mat-tooltip-default-options",{providedIn:"root",factory:Ne});var Fe="tooltip-panel",Ve=ce({passive:!0}),Je=8,ti=8,ei=24,ii=200,oi=(()=>{class s{_elementRef=l(w);_ngZone=l(m);_platform=l(P);_ariaDescriber=l(ue);_focusMonitor=l(de);_dir=l(F);_injector=l(_);_viewContainerRef=l(L);_animationsDisabled=Ft();_defaultOptions=l(ze,{optional:!0});_overlayRef;_tooltipInstance;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=Ye;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;_dirSubscribed=!1;get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(t){this._positionAtOrigin=At(t),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(t){let e=At(t);this._disabled!==e&&(this._disabled=e,e?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(t){this._showDelay=rt(t)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(t){this._hideDelay=rt(t),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(t){let e=this._message;this._message=t!=null?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(e)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_touchstartTimeout=null;_destroyed=new u;_isDestroyed=!1;constructor(){let t=this._defaultOptions;t&&(this._showDelay=t.showDelay,this._hideDelay=t.hideDelay,t.position&&(this.position=t.position),t.positionAtOrigin&&(this.positionAtOrigin=t.positionAtOrigin),t.touchGestures&&(this.touchGestures=t.touchGestures),t.tooltipClass&&(this.tooltipClass=t.tooltipClass)),this._viewportMargin=Je}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(O(this._destroyed)).subscribe(t=>{t?t==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let t=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([e,o])=>{t.removeEventListener(e,o,Ve)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay,e){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let o=this._createOverlay(e);this._detach(),this._portal=this._portal||new U(this._tooltipComponent,this._viewContainerRef);let n=this._tooltipInstance=o.attach(this._portal).instance;n._triggerElement=this._elementRef.nativeElement,n._mouseLeaveHideDelay=this._hideDelay,n.afterHidden().pipe(O(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),n.show(t)}hide(t=this.hideDelay){let e=this._tooltipInstance;e&&(e.isVisible()?e.hide(t):(e._cancelPendingAnimations(),this._detach()))}toggle(t){this._isTooltipVisible()?this.hide():this.show(void 0,t)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(t){if(this._overlayRef){let r=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!t)&&r._origin instanceof w)return this._overlayRef;this._detach()}let e=this._injector.get(V).getAncestorScrollContainers(this._elementRef),o=`${this._cssClassPrefix}-${Fe}`,n=Q(this._injector,this.positionAtOrigin?t||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return n.positionChanges.pipe(O(this._destroyed)).subscribe(r=>{this._updateCurrentPositionClass(r.connectionPair),this._tooltipInstance&&r.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=J(this._injector,{direction:this._dir,positionStrategy:n,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,o]:o,scrollStrategy:this._injector.get(Wt)(),disableAnimations:this._animationsDisabled}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(O(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(O(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(O(this._destroyed)).subscribe(r=>{this._isTooltipVisible()&&r.keyCode===27&&!at(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(O(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(t){let e=t.getConfig().positionStrategy,o=this._getOrigin(),n=this._getOverlayPosition();e.withPositions([this._addOffset(R(R({},o.main),n.main)),this._addOffset(R(R({},o.fallback),n.fallback))])}_addOffset(t){let e=ti,o=!this._dir||this._dir.value=="ltr";return t.originY==="top"?t.offsetY=-e:t.originY==="bottom"?t.offsetY=e:t.originX==="start"?t.offsetX=o?-e:e:t.originX==="end"&&(t.offsetX=o?e:-e),t}_getOrigin(){let t=!this._dir||this._dir.value=="ltr",e=this.position,o;e=="above"||e=="below"?o={originX:"center",originY:e=="above"?"top":"bottom"}:e=="before"||e=="left"&&t||e=="right"&&!t?o={originX:"start",originY:"center"}:(e=="after"||e=="right"&&t||e=="left"&&!t)&&(o={originX:"end",originY:"center"});let{x:n,y:r}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:n,originY:r}}}_getOverlayPosition(){let t=!this._dir||this._dir.value=="ltr",e=this.position,o;e=="above"?o={overlayX:"center",overlayY:"bottom"}:e=="below"?o={overlayX:"center",overlayY:"top"}:e=="before"||e=="left"&&t||e=="right"&&!t?o={overlayX:"end",overlayY:"center"}:(e=="after"||e=="right"&&t||e=="left"&&!t)&&(o={overlayX:"start",overlayY:"center"});let{x:n,y:r}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:n,overlayY:r}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),A(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return this.position==="above"||this.position==="below"?e==="top"?e="bottom":e==="bottom"&&(e="top"):t==="end"?t="start":t==="start"&&(t="end"),{x:t,y:e}}_updateCurrentPositionClass(t){let{overlayY:e,originX:o,originY:n}=t,r;if(e==="center"?this._dir&&this._dir.value==="rtl"?r=o==="end"?"left":"right":r=o==="start"?"left":"right":r=e==="bottom"&&n==="top"?"above":"below",r!==this._currentPosition){let a=this._overlayRef;if(a){let c=`${this._cssClassPrefix}-${Fe}-`;a.removePanelClass(c+this._currentPosition),a.addPanelClass(c+r)}this._currentPosition=r}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",t=>{this._setupPointerExitEventsIfNeeded();let e;t.x!==void 0&&t.y!==void 0&&(e=t),this.show(void 0,e)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",t=>{let e=t.targetTouches?.[0],o=e?{x:e.clientX,y:e.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let n=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,o)},this._defaultOptions?.touchLongPressShowDelay??n)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",e=>{let o=e.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",e=>this._wheelListener(e)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let e=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([e,o])=>{this._elementRef.nativeElement.addEventListener(e,o,Ve)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(t){if(this._isTooltipVisible()){let e=this._injector.get(y).elementFromPoint(t.clientX,t.clientY),o=this._elementRef.nativeElement;e!==o&&!o.contains(e)&&this.hide()}}_disableNativeGesturesIfNecessary(){let t=this.touchGestures;if(t!=="off"){let e=this._elementRef.nativeElement,o=e.style;(t==="on"||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA")&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),(t==="on"||!e.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}_syncAriaDescription(t){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,t,"tooltip"),this._isDestroyed||A({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}static \u0275fac=function(e){return new(e||s)};static \u0275dir=x({type:s,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(e,o){e&2&&nt("mat-mdc-tooltip-disabled",o.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 s})(),Ye=(()=>{class s{_changeDetectorRef=l(Tt);_elementRef=l(w);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=Ft();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new u;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){}show(t){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},t)}hide(t){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},t)}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:t}){(!t||!this._triggerElement.contains(t))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let t=this._elementRef.nativeElement.getBoundingClientRect();return t.height>ei&&t.width>=ii}_handleAnimationEnd({animationName:t}){(t===this._showAnimation||t===this._hideAnimation)&&this._finalizeAnimation(t===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(t){t?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(t){let e=this._tooltip.nativeElement,o=this._showAnimation,n=this._hideAnimation;if(e.classList.remove(t?n:o),e.classList.add(t?o:n),this._isVisible!==t&&(this._isVisible=t,this._changeDetectorRef.markForCheck()),t&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let r=getComputedStyle(e);(r.getPropertyValue("animation-duration")==="0s"||r.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}t&&this._onShow(),this._animationsDisabled&&(e.classList.add("_mat-animation-noopable"),this._finalizeAnimation(t))}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=X({type:s,selectors:[["mat-tooltip-component"]],viewQuery:function(e,o){if(e&1&&Et(Qe,7),e&2){let n;xt(n=Pt())&&(o._tooltip=n.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(e,o){e&1&&kt("mouseleave",function(r){return o._handleMouseLeave(r)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(e,o){if(e&1){let n=oe();Dt(0,"div",1,0),kt("animationend",function(a){return Qt(n),Jt(o._handleAnimationEnd(a))}),Dt(2,"div",2),se(3),ie()()}e&2&&(nt("mdc-tooltip--multiline",o._isMultiline),ee("ngClass",o.tooltipClass),Ct(3),ne(o.message))},dependencies:[le],styles:[`.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards}
|
|
3
3
|
`],encapsulation:2,changeDetection:0})}return s})();var si=(()=>{class s{static \u0275fac=function(e){return new(e||s)};static \u0275mod=E({type:s});static \u0275inj=D({providers:[Gt],imports:[fe,jt,Vt,Vt,G]})}return s})();export{V as a,Xe as b,j as c,G as d,U as e,$ as f,dt as g,Ki as h,_e as i,Re as j,N as k,q as l,Te as m,mt as n,Q as o,vt as p,Me as q,J as r,Ht as s,$e as t,jt as u,oi as v,si as w};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as U}from"./chunk-
|
|
1
|
+
import{a as U}from"./chunk-5KYN6Y7M.js";import"./chunk-3JRUKSV3.js";import"./chunk-SJ5MC42H.js";import"./chunk-4RLWHMI6.js";import"./chunk-NWB7EVME.js";import"./chunk-AFDI4TD4.js";import"./chunk-4RG5YR7N.js";import"./chunk-5MV3UFJQ.js";import"./chunk-E6AMKEQR.js";import"./chunk-IGKMJFKP.js";import"./chunk-ITGVXYDV.js";import"./chunk-HK5FXZE4.js";import"./chunk-KJE5GRQ4.js";import"./chunk-4ILDFTIG.js";import"./chunk-A6QXXKPR.js";import"./chunk-I723PUUO.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-M4ZE35XK.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import"./chunk-5PMKN6PM.js";import{a as H}from"./chunk-AGBJEXIM.js";import{e as F}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import"./chunk-JBEKD57G.js";import{m as J,n as G}from"./chunk-EDEZ3JLR.js";import{A as j,c as W,h as I,m as R}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{i as P,k,m as B}from"./chunk-LNJUGHOX.js";import{$b as M,Gb as x,Ha as h,Mc as i,Nc as V,Qc as f,Rc as C,Sc as b,Tc as O,Uc as D,Vc as _,Z as S,bc as N,gc as g,hc as e,hd as v,ic as t,id as y,jc as L,nb as d,qc as T,ra as E,vc as w,xa as p,xc as A,ya as m}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function q(r,l){if(r&1&&(e(0,"pre",21),i(1),v(2,"json"),t()),r&2){A();let Y=_(25);d(),V(y(2,1,Y))}}function z(r,l){r&1&&(e(0,"p",22),i(1," Your data will be shown here once it's available "),t())}var ce=(()=>{let l=class l{constructor(){this.httpService=E(F),this.selectedChannel=h(null),this.orderNumber=h(null)}initEscrowLog(){this.escrowLog$=this.httpService.post(H.GetEscrowDetail,{ChannelID:this.selectedChannel(),OrderNumber:this.orderNumber()}).pipe(S(1))}copyToClipboard(c){if(!c)return;let s=typeof c=="string"?c:JSON.stringify(c,null,2);navigator.clipboard.writeText(s),alert("Copied to clipboard!")}};l.\u0275fac=function(s){return new(s||l)},l.\u0275cmp=x({type:l,selectors:[["app-escrow-api"]],decls:40,vars:9,consts:[["headerTitle","Origin Escrow Api",3,"hideSearchBox","hideSearchDropdown"],[1,"btn","btn-success","btn-fill","me-3",3,"click"],[1,"fa","fa-search"],[1,"container-fluid","mt-8","px-10"],[1,"row"],[1,"col-7"],[1,"d-flex","align-items-center"],[1,"w-75"],[1,"mb-0","text-muted","fst-italic"],[1,"w-100"],[3,"ngModelChange","ngModel"],[1,"d-flex","align-items-center","mt-3"],["type","text","placeholder","Order Number or Invoice Number",1,"form-control","rounded-1",2,"height","40px",3,"ngModelChange","ngModel"],[1,"row","mt-6"],[1,"col-12"],[1,"card"],[1,"card-header","d-flex","justify-content-between","align-items-center"],["type","button",1,"btn","btn-sm","btn-outline-primary",3,"click","disabled"],[1,"card-body"],[1,"col-sm-12"],[1,"form-group","position-relative"],["id","escrowLogText"],[1,"text-center","my-12","text-muted"]],template:function(s,n){if(s&1){let a=T();e(0,"mainpanel",0)(1,"actions")(2,"button",1),w("click",function(){return p(a),m(n.initEscrowLog())}),L(3,"i",2),i(4," Search "),t()(),e(5,"content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"div",7)(11,"h6"),i(12,"Channel"),t(),e(13,"p",8),i(14," View logs related to Escrow API "),t()(),e(15,"div",9)(16,"app-channel-options-v2",10),b("ngModelChange",function(o){return p(a),C(n.selectedChannel,o)||(n.selectedChannel=o),m(o)}),t()()(),e(17,"div",11)(18,"div",7)(19,"h6"),i(20,"Order Number"),t(),e(21,"p",8),i(22," Order or Invoice number from Channel. "),t()(),e(23,"div",9)(24,"input",12),b("ngModelChange",function(o){return p(a),C(n.orderNumber,o)||(n.orderNumber=o),m(o)}),t()()()()(),O(25),v(26,"async"),e(27,"div",13)(28,"div",14)(29,"div",15)(30,"div",16)(31,"h5"),i(32,"Response"),t(),e(33,"button",17),w("click",function(){p(a);let o=_(25);return m(n.copyToClipboard(o))}),i(34," Copy "),t()(),e(35,"div",18)(36,"div",19)(37,"div",20),M(38,q,3,3,"pre",21)(39,z,2,0,"p",22),t()()()()()()()()()}if(s&2){g("hideSearchBox",!0)("hideSearchDropdown",!0),d(16),f("ngModel",n.selectedChannel),d(8),f("ngModel",n.orderNumber),d();let a=D(y(26,6,n.escrowLog$));d(8),g("disabled",!a),d(5),N(a?38:39)}},dependencies:[B,j,W,I,R,G,J,U,P,k],styles:[".container-fluid[_ngcontent-%COMP%]{padding-bottom:1rem}#escrowLogText[_ngcontent-%COMP%]{white-space:pre-wrap;word-break:break-word}"]});let r=l;return r})();export{ce as EscrowApiComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as S}from"./chunk-DAUML5UD.js";import{d as T,e as O}from"./chunk-6KWG6O5L.js";import{A as M,h as y,m as f}from"./chunk-L3W6SG2T.js";import{Gb as b,Mc as h,gc as u,hc as a,ic as i,ma as C,nb as d,sd as g,td as s,vc as c}from"./chunk-ZYJ6LAJ3.js";var p=(function(e){return e[e.SkuAndName=0]="SkuAndName",e[e.SKUOnly=1]="SKUOnly",e[e.NameOnly=2]="NameOnly",e})(p||{});var o=(function(e){return e[e.Is=0]="Is",e[e.StartsWith=1]="StartsWith",e[e.EndsWith=2]="EndsWith",e[e.Contains=3]="Contains",e})(o||{});var I=(()=>{let n=class n{generatePlaceholderBySearchType(m,r){let t="Search ...";switch(m){case p.SkuAndName:t="SKU / Name";break;case p.SKUOnly:t="SKU";break;case p.NameOnly:t="Name";break}switch(r){case o.StartsWith:t=`${t} Starts With`;break;case o.EndsWith:t=`${t} Ends With`;break;case o.Contains:t=`${t} Contains`;break;case o.Is:t=`${t} Is`;break}return t}};n.\u0275fac=function(r){return new(r||n)},n.\u0275prov=C({token:n,factory:n.\u0275fac,providedIn:"root"});let e=n;return e})();var Q=(()=>{let n=class n{constructor(){this.searchType=s(),this.searchTypeChange=g(),this.searchTypeOptions=s([]),this.numberFilterComparator=s(),this.numberFilterComparatorChange=g(),this.numberFilterComparatorOptions=s([])}};n.\u0275fac=function(r){return new(r||n)},n.\u0275cmp=b({type:n,selectors:[["filter-query-type"]],inputs:{searchType:[1,"searchType"],searchTypeOptions:[1,"searchTypeOptions"],numberFilterComparator:[1,"numberFilterComparator"],numberFilterComparatorOptions:[1,"numberFilterComparatorOptions"]},outputs:{searchTypeChange:"searchTypeChange",numberFilterComparatorChange:"numberFilterComparatorChange"},decls:9,vars:4,consts:[[1,"mb-5"],[1,"fw-bold","mb-2"],["bindLabel","Value","bindValue","Key","placeholder","Number Filter Comparator","name","numberFilterComparator","appendTo","body",3,"ngModelChange","items","ngModel"],[1,"border","border-1","rounded-1","p-4"],[3,"ngModelChange","options","ngModel"]],template:function(r,t){r&1&&(a(0,"div",0)(1,"label",1),h(2,"Number Filter Comparator"),i(),a(3,"ng-select",2),c("ngModelChange",function(l){return t.numberFilterComparatorChange.emit(l)}),i()(),a(4,"div")(5,"label",1),h(6,"Search Type"),i(),a(7,"div",3)(8,"radio-options",4),c("ngModelChange",function(l){return t.searchTypeChange.emit(l)}),i()()()),r&2&&(d(3),u("items",t.numberFilterComparatorOptions())("ngModel",t.numberFilterComparator()),d(5),u("options",t.searchTypeOptions())("ngModel",t.searchType()))},dependencies:[S,O,T,M,y,f],encapsulation:2});let e=n;return e})();export{p as a,o as b,I as c,Q as d};
|