marketplacepos 5.48.6 → 5.50.1
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 +214 -214
- package/Marketplace/{chunk-SHUYFOQI.js → chunk-24KZDZKS.js} +1 -1
- package/Marketplace/{chunk-7JQEF4XX.js → chunk-27DIE2YS.js} +1 -1
- package/Marketplace/chunk-2AXBEVQ7.js +4 -0
- package/Marketplace/chunk-2K5AP6IZ.js +1 -0
- package/Marketplace/{chunk-4RG5YR7N.js → chunk-2NRHX6CZ.js} +2 -2
- package/Marketplace/{chunk-ZTHO6JJM.js → chunk-2ST3DMR6.js} +1 -1
- package/Marketplace/chunk-2UNT2DUM.js +1 -0
- package/Marketplace/chunk-34ZZ4GCS.js +1 -0
- package/Marketplace/{chunk-5X2E3W32.js → chunk-3HME327V.js} +1 -1
- package/Marketplace/chunk-3NAMEVOB.js +1 -0
- package/Marketplace/chunk-3PIHLKK3.js +1 -0
- package/Marketplace/{chunk-AFIF6VRM.js → chunk-3SCX7IMW.js} +1 -1
- package/Marketplace/chunk-44KIXUU2.js +1 -0
- package/Marketplace/chunk-4G46574H.js +1 -0
- package/Marketplace/chunk-4KGXKQPG.js +1 -0
- package/Marketplace/{chunk-QFSA7CU4.js → chunk-4S4BOPUV.js} +2 -2
- package/Marketplace/chunk-4YKPN3RV.js +1 -0
- package/Marketplace/chunk-52YCKO3Z.js +1 -0
- package/Marketplace/{chunk-5BSPSA4O.js → chunk-5C24BA5F.js} +1 -1
- package/Marketplace/{chunk-PMVDQ2OP.js → chunk-5QDH4ZNS.js} +1 -1
- package/Marketplace/{chunk-ZETUYNFJ.js → chunk-5UFP37GQ.js} +1 -1
- package/Marketplace/{chunk-PDCVMSLL.js → chunk-5WQ3LCWP.js} +1 -1
- package/Marketplace/chunk-5WT456T7.js +3 -0
- package/Marketplace/chunk-67LUKQJC.js +1 -0
- package/Marketplace/chunk-6C4UBIZK.js +10 -0
- package/Marketplace/{chunk-ZKIO2ZQ6.js → chunk-6F62N7RZ.js} +2 -2
- package/Marketplace/chunk-6GNIJWEX.js +1 -0
- package/Marketplace/chunk-6NS3D6KQ.js +5 -0
- package/Marketplace/{chunk-RQQWNLDZ.js → chunk-7HRL6MHY.js} +1 -1
- package/Marketplace/chunk-7QP3VZ6H.js +1 -0
- package/Marketplace/chunk-7R2D2JZ6.js +3 -0
- package/Marketplace/{chunk-5MV3UFJQ.js → chunk-7X4B2T6C.js} +2 -2
- package/Marketplace/chunk-A2RTZANN.js +1 -0
- package/Marketplace/chunk-A53NYS6S.js +1 -0
- package/Marketplace/chunk-AHMFSCTX.js +2 -0
- package/Marketplace/{chunk-LEUBNBGC.js → chunk-AJSJJV2I.js} +1 -1
- package/Marketplace/chunk-ALLZQ6Y3.js +1 -0
- package/Marketplace/chunk-AQVMOA6Z.js +1 -0
- package/Marketplace/chunk-B5ZK5TGW.js +1 -0
- package/Marketplace/chunk-BAW6PICI.js +2 -0
- package/Marketplace/{chunk-DTAHV4GM.js → chunk-BC6LHZWP.js} +1 -1
- package/Marketplace/{chunk-GPHNPV7O.js → chunk-BMOMTOEW.js} +2 -2
- package/Marketplace/chunk-BUMWMFHU.js +2 -0
- package/Marketplace/{chunk-OQM7K2EA.js → chunk-BXNDE6NQ.js} +1 -1
- package/Marketplace/chunk-BYL4N2KB.js +1 -0
- package/Marketplace/{chunk-6KWG6O5L.js → chunk-C2LAQOUW.js} +1 -1
- package/Marketplace/{chunk-L7WZ6U4T.js → chunk-DDFP4CNP.js} +1 -1
- package/Marketplace/{chunk-6OJQRHIZ.js → chunk-DLHIDOS3.js} +1 -1
- package/Marketplace/chunk-DPB2343S.js +1 -0
- package/Marketplace/chunk-E4RY2MK5.js +1 -0
- package/Marketplace/chunk-EGLM6YK5.js +1 -0
- package/Marketplace/{chunk-IM5M2CAI.js → chunk-EH3PIGLJ.js} +1 -1
- package/Marketplace/chunk-ENYJ4KAM.js +1 -0
- package/Marketplace/chunk-ESBL3IFN.js +1 -0
- package/Marketplace/{chunk-2J7P6ENI.js → chunk-F26O6FCO.js} +1 -1
- package/Marketplace/chunk-FEQXCPQI.js +2 -0
- package/Marketplace/chunk-FFJXYPVA.js +1 -0
- package/Marketplace/chunk-FLNIURLD.js +1 -0
- package/Marketplace/chunk-FMXX7QB5.js +5 -0
- package/Marketplace/chunk-FNOENLVR.js +2 -0
- package/Marketplace/{chunk-4ILDFTIG.js → chunk-FOKLBUX6.js} +1 -1
- package/Marketplace/chunk-FTIUJUXI.js +1 -0
- package/Marketplace/{chunk-WNUTNP6I.js → chunk-G3B6ETBU.js} +5 -5
- package/Marketplace/{chunk-VWX2IX64.js → chunk-G4T4VM5E.js} +1 -1
- package/Marketplace/chunk-GBF6A3MS.js +1 -0
- package/Marketplace/chunk-GDHNMHJZ.js +1 -0
- package/Marketplace/chunk-GG3X4R7G.js +1 -0
- package/Marketplace/chunk-GJC736LV.js +1 -0
- package/Marketplace/chunk-GVJLKDIO.js +1 -0
- package/Marketplace/chunk-H6YNHOUQ.js +1 -0
- package/Marketplace/chunk-HGVFXR6T.js +1 -0
- package/Marketplace/chunk-HJZ3XPSH.js +266 -0
- package/Marketplace/chunk-HNDBAXI5.js +1 -0
- package/Marketplace/{chunk-N5AE5WMQ.js → chunk-HO2TMGLM.js} +1 -1
- package/Marketplace/chunk-HORS2MKK.js +1 -0
- package/Marketplace/chunk-IDGK6BMG.js +1 -0
- package/Marketplace/chunk-IF7EJSQG.js +1 -0
- package/Marketplace/chunk-IIJEILDV.js +1 -0
- package/Marketplace/{chunk-3L7Y6LG6.js → chunk-IM7YH54S.js} +1 -1
- package/Marketplace/chunk-IV5IPY6H.js +1 -0
- package/Marketplace/{chunk-63I3I3MX.js → chunk-IVKFEOCB.js} +1 -1
- package/Marketplace/chunk-J6HA4ZHH.js +1 -0
- package/Marketplace/chunk-JM3NLPH4.js +9 -0
- package/Marketplace/chunk-JNRCB7N3.js +2 -0
- package/Marketplace/chunk-JV4F6ZYF.js +1 -0
- package/Marketplace/chunk-JWDQVXQP.js +1 -0
- package/Marketplace/{chunk-3664K4KH.js → chunk-JYP3Z3TV.js} +19 -19
- package/Marketplace/chunk-JYSOUJ42.js +1 -0
- package/Marketplace/chunk-K5WSFDNA.js +1 -0
- package/Marketplace/chunk-KNBXCPTA.js +1 -0
- package/Marketplace/chunk-KR6UNAIL.js +3 -0
- package/Marketplace/chunk-KSRL7Y2J.js +2 -0
- package/Marketplace/{chunk-ODLI42YV.js → chunk-KTTKHI2N.js} +1 -1
- package/Marketplace/chunk-KUKTPGJ2.js +1 -0
- package/Marketplace/chunk-LKJCOEGO.js +1 -0
- package/Marketplace/chunk-LQ3VUWFK.js +2 -0
- package/Marketplace/chunk-LQPY6AYJ.js +1 -0
- package/Marketplace/{chunk-FULVA6QB.js → chunk-LR2YCE6M.js} +1 -1
- package/Marketplace/{chunk-DXYMG6QK.js → chunk-LUJ3SHSP.js} +1 -1
- package/Marketplace/chunk-LYN2PNQK.js +1 -0
- package/Marketplace/{chunk-J6CZKQ53.js → chunk-M3DUXHYE.js} +4 -4
- package/Marketplace/chunk-M7TUSCXB.js +1 -0
- package/Marketplace/{chunk-6PW6S7MI.js → chunk-MAQQQB3T.js} +1 -1
- package/Marketplace/chunk-MIGPO7BO.js +1 -0
- package/Marketplace/chunk-MM7SAZOU.js +1 -0
- package/Marketplace/{chunk-CM3B2UZ7.js → chunk-MPFJ7FBJ.js} +1 -1
- package/Marketplace/{chunk-SJ5MC42H.js → chunk-MT3CWRVG.js} +2 -2
- package/Marketplace/chunk-MTVUPPAN.js +149 -0
- package/Marketplace/chunk-MV2PLTWF.js +1 -0
- package/Marketplace/{chunk-WHHW4IZT.js → chunk-N3E43QWK.js} +2 -2
- package/Marketplace/{chunk-AFDI4TD4.js → chunk-NIJCYMZM.js} +3 -3
- package/Marketplace/chunk-NQLMPUSB.js +1 -0
- package/Marketplace/chunk-NTU64XT4.js +1 -0
- package/Marketplace/{chunk-3JRUKSV3.js → chunk-NVPT5BF2.js} +2 -2
- package/Marketplace/chunk-O3QPBAV5.js +7 -0
- package/Marketplace/chunk-O4D64GHO.js +2 -0
- package/Marketplace/{chunk-UH5C5HXK.js → chunk-O4U34AC7.js} +1 -1
- package/Marketplace/chunk-OCXIDX74.js +1 -0
- package/Marketplace/chunk-OGF4VFSK.js +1 -0
- package/Marketplace/chunk-OHGMB7HJ.js +4 -0
- package/Marketplace/chunk-OIWQSDTS.js +1 -0
- package/Marketplace/chunk-OSGPJXJZ.js +1 -0
- package/Marketplace/chunk-OVZRFDFO.js +1 -0
- package/Marketplace/chunk-P3XVM6DH.js +1 -0
- package/Marketplace/chunk-PBAFAOKJ.js +1 -0
- package/Marketplace/{chunk-IGKMJFKP.js → chunk-PN3KM4M4.js} +2 -2
- package/Marketplace/{chunk-L76NLJD7.js → chunk-PWOKOWVV.js} +2 -2
- package/Marketplace/chunk-QJCYEP2A.js +1 -0
- package/Marketplace/{chunk-4RLWHMI6.js → chunk-QMHG3QTI.js} +1 -1
- package/Marketplace/chunk-QMIL5QUX.js +1 -0
- package/Marketplace/chunk-QOSWDELZ.js +1 -0
- package/Marketplace/chunk-QQF5ZMGS.js +2 -0
- package/Marketplace/{chunk-6XDT56RT.js → chunk-R3WIWDSP.js} +2 -2
- package/Marketplace/{chunk-LOWGZOML.js → chunk-RBZU7OVM.js} +1 -1
- package/Marketplace/chunk-RFWRWMRC.js +1 -0
- package/Marketplace/chunk-RHMSGY7X.js +1 -0
- package/Marketplace/chunk-RM6ZXD3O.js +1 -0
- package/Marketplace/chunk-RN5CI3LE.js +1 -0
- package/Marketplace/chunk-ROS2QMKF.js +1 -0
- package/Marketplace/{chunk-YTHY4IFS.js → chunk-RQUCYFCB.js} +1 -1
- package/Marketplace/chunk-RUYX7KTP.js +1 -0
- package/Marketplace/{chunk-L22SKCLL.js → chunk-RWPLFNHT.js} +1 -1
- package/Marketplace/{chunk-5PMKN6PM.js → chunk-RXC5D64C.js} +2 -2
- package/Marketplace/chunk-RZ5N5JLA.js +1 -0
- package/Marketplace/chunk-S5D64XYA.js +1 -0
- package/Marketplace/chunk-S5XYWXXP.js +1 -0
- package/Marketplace/chunk-SABMHH6B.js +1 -0
- package/Marketplace/{chunk-TXOZULMZ.js → chunk-SIPZP62B.js} +1 -1
- package/Marketplace/{chunk-6CM22SKR.js → chunk-SMZOSLIK.js} +1 -1
- package/Marketplace/chunk-SN5AD4QE.js +1 -0
- package/Marketplace/chunk-SPLGZRGH.js +5 -0
- package/Marketplace/chunk-TBVMCNS2.js +1 -0
- package/Marketplace/{chunk-3WRXJBHF.js → chunk-TDMNVEUU.js} +3 -3
- package/Marketplace/chunk-TDP3PQDA.js +1 -0
- package/Marketplace/{chunk-RUBV3KX2.js → chunk-TKZ74HJD.js} +1 -1
- package/Marketplace/chunk-TMBZ4K5S.js +1 -0
- package/Marketplace/chunk-TOK5EWN4.js +1 -0
- package/Marketplace/chunk-TYNQDFOT.js +5 -0
- package/Marketplace/{chunk-7GY4O2UX.js → chunk-TYQYNICX.js} +3 -3
- package/Marketplace/{chunk-VX75I7HA.js → chunk-TZTW72NT.js} +1 -1
- package/Marketplace/chunk-U5DJYZUI.js +1 -0
- package/Marketplace/{chunk-AZOCRKXK.js → chunk-UB62TZOI.js} +1 -1
- package/Marketplace/chunk-UE5E7JXK.js +1 -0
- package/Marketplace/chunk-UMLV2ZUF.js +1 -0
- package/Marketplace/{chunk-DUXKDRDP.js → chunk-UMMQ62IZ.js} +1 -1
- package/Marketplace/{chunk-JBEKD57G.js → chunk-UPRDDI4K.js} +1 -1
- package/Marketplace/{chunk-MDP2SGJI.js → chunk-V6QH3IVL.js} +1 -1
- package/Marketplace/chunk-VH7JZJ2B.js +1 -0
- package/Marketplace/chunk-VOONKP66.js +1 -0
- package/Marketplace/chunk-VP3XO25X.js +2 -0
- package/Marketplace/{chunk-KTLMPVSK.js → chunk-VV4G5VL5.js} +1 -1
- package/Marketplace/chunk-VVAEM355.js +1 -0
- package/Marketplace/chunk-VZ7Q4WN7.js +1 -0
- package/Marketplace/{chunk-NWB7EVME.js → chunk-W33M7S2S.js} +1 -1
- package/Marketplace/{chunk-L3W6SG2T.js → chunk-WAXAIL2I.js} +1 -1
- package/Marketplace/chunk-WIBWF333.js +1 -0
- package/Marketplace/{chunk-HK5FXZE4.js → chunk-WIRBYT7F.js} +1 -1
- package/Marketplace/{chunk-KJE5GRQ4.js → chunk-WVA5LYVE.js} +1 -1
- package/Marketplace/chunk-X52ZT4MU.js +1 -0
- package/Marketplace/chunk-XLQGQESJ.js +2 -0
- package/Marketplace/{chunk-6Q6L5NUD.js → chunk-XUDE7VBC.js} +1 -1
- package/Marketplace/{chunk-DHPNXR6E.js → chunk-Y3O22N4P.js} +1 -1
- package/Marketplace/{chunk-Q2QX5AAJ.js → chunk-YABJCAAL.js} +4 -4
- package/Marketplace/{chunk-WFVK32EW.js → chunk-YAWT3CLI.js} +1 -1
- package/Marketplace/chunk-YD6BNJ2B.js +1 -0
- package/Marketplace/{chunk-FHER4TFY.js → chunk-YKKHSYDW.js} +1 -1
- package/Marketplace/chunk-YMAKW4QT.js +1 -0
- package/Marketplace/chunk-YNL43MLU.js +1 -0
- package/Marketplace/chunk-YQZHIZHO.js +6 -0
- package/Marketplace/chunk-YUPBZXLS.js +1 -0
- package/Marketplace/chunk-YX65R6YJ.js +1 -0
- package/Marketplace/chunk-YYV4FSYQ.js +1 -0
- package/Marketplace/{chunk-EYT2YJGK.js → chunk-Z2XRGVGT.js} +1 -1
- package/Marketplace/chunk-Z6LN3X5Q.js +1 -0
- package/Marketplace/{chunk-HPINZVE4.js → chunk-ZC526ERX.js} +1 -1
- package/Marketplace/{chunk-M4ZE35XK.js → chunk-ZDBFIPDM.js} +1 -1
- package/Marketplace/{chunk-RNWHARPK.js → chunk-ZGIYCORM.js} +1 -1
- package/Marketplace/chunk-ZRTUQNSQ.js +1 -0
- package/Marketplace/{chunk-ITGVXYDV.js → chunk-ZWUYPYHD.js} +1 -1
- package/Marketplace/chunk-ZXP3XYSZ.js +1 -0
- package/Marketplace/index.html +2 -2
- package/Marketplace/main-RFMKGIMO.js +1 -0
- package/package.json +1 -1
- package/Marketplace/chunk-2B5DXBBJ.js +0 -1
- package/Marketplace/chunk-2F4DTZCZ.js +0 -2
- package/Marketplace/chunk-2MEVIFIA.js +0 -1
- package/Marketplace/chunk-2USFVKEX.js +0 -1
- package/Marketplace/chunk-36U7D4LI.js +0 -1
- package/Marketplace/chunk-4JDI3AL5.js +0 -1
- package/Marketplace/chunk-4LQREJ6J.js +0 -1
- package/Marketplace/chunk-4YCSITNV.js +0 -1
- package/Marketplace/chunk-5A3P2NB3.js +0 -1
- package/Marketplace/chunk-6EORXONU.js +0 -4
- package/Marketplace/chunk-6LRZDPE5.js +0 -1
- package/Marketplace/chunk-6UOPF4ZP.js +0 -1
- package/Marketplace/chunk-7Z5X4HRT.js +0 -1
- package/Marketplace/chunk-A7PUMY67.js +0 -1
- package/Marketplace/chunk-BQEBDVGB.js +0 -7
- package/Marketplace/chunk-BXYXVBXP.js +0 -1
- package/Marketplace/chunk-C4VD7LDS.js +0 -266
- package/Marketplace/chunk-C6JVY2ER.js +0 -1
- package/Marketplace/chunk-C7N6EI73.js +0 -1
- package/Marketplace/chunk-CBD25LAJ.js +0 -5
- package/Marketplace/chunk-CT6UFONR.js +0 -1
- package/Marketplace/chunk-D2J64VUP.js +0 -1
- package/Marketplace/chunk-DAUML5UD.js +0 -2
- package/Marketplace/chunk-DDV2A3Y2.js +0 -1
- package/Marketplace/chunk-E32KODU7.js +0 -1
- package/Marketplace/chunk-E3EBAWLJ.js +0 -1
- package/Marketplace/chunk-E66QUDQF.js +0 -1
- package/Marketplace/chunk-E6AMKEQR.js +0 -149
- package/Marketplace/chunk-E6ZWL77N.js +0 -1
- package/Marketplace/chunk-EDEZ3JLR.js +0 -4
- package/Marketplace/chunk-ESXDXSQ3.js +0 -1
- package/Marketplace/chunk-FCEXPGTK.js +0 -5
- package/Marketplace/chunk-FKGKMEDE.js +0 -2
- package/Marketplace/chunk-FKPDG4AM.js +0 -1
- package/Marketplace/chunk-GG3MDS4C.js +0 -1
- package/Marketplace/chunk-GURSK3ZV.js +0 -1
- package/Marketplace/chunk-HNFW4VQS.js +0 -1
- package/Marketplace/chunk-HSQHQZV7.js +0 -1
- package/Marketplace/chunk-I3R7CC6J.js +0 -1
- package/Marketplace/chunk-I7C6W3RB.js +0 -1
- package/Marketplace/chunk-ICE4DSEP.js +0 -1
- package/Marketplace/chunk-ILW6ZFFV.js +0 -1
- package/Marketplace/chunk-JW7NES7L.js +0 -1
- package/Marketplace/chunk-JWK3HR6P.js +0 -1
- package/Marketplace/chunk-K2BII75W.js +0 -15
- package/Marketplace/chunk-KSR5TQDN.js +0 -1
- package/Marketplace/chunk-KUBWQQZK.js +0 -1
- package/Marketplace/chunk-KUNITWR6.js +0 -1
- package/Marketplace/chunk-KVDREHOE.js +0 -1
- package/Marketplace/chunk-LNJUGHOX.js +0 -2
- package/Marketplace/chunk-LY32FUZ4.js +0 -2
- package/Marketplace/chunk-M2BYW5SR.js +0 -1
- package/Marketplace/chunk-MTPSSM64.js +0 -2
- package/Marketplace/chunk-N5VHHR26.js +0 -1
- package/Marketplace/chunk-NBCUYSP7.js +0 -1
- package/Marketplace/chunk-NCKPMA6Q.js +0 -1
- package/Marketplace/chunk-NH6QGSVC.js +0 -1
- package/Marketplace/chunk-O2YF5VGD.js +0 -2
- package/Marketplace/chunk-O4EO3YBL.js +0 -1
- package/Marketplace/chunk-OBF4XVU7.js +0 -1
- package/Marketplace/chunk-ONPG3DER.js +0 -2
- package/Marketplace/chunk-OPXITNRF.js +0 -1
- package/Marketplace/chunk-OXWPYJNB.js +0 -1
- package/Marketplace/chunk-Q4TAOZ73.js +0 -1
- package/Marketplace/chunk-Q56RJPES.js +0 -1
- package/Marketplace/chunk-R2XT5M5F.js +0 -3
- package/Marketplace/chunk-RI7L4QSY.js +0 -5
- package/Marketplace/chunk-RWVVRZJY.js +0 -1
- package/Marketplace/chunk-S5R6MCNP.js +0 -5
- package/Marketplace/chunk-S7CKRTJV.js +0 -2
- package/Marketplace/chunk-STYL7ETF.js +0 -3
- package/Marketplace/chunk-T5IUZ6UD.js +0 -1
- package/Marketplace/chunk-TAITBX62.js +0 -1
- package/Marketplace/chunk-TJYYRHZZ.js +0 -1
- package/Marketplace/chunk-TYQY4WPY.js +0 -1
- package/Marketplace/chunk-UQK5JNU2.js +0 -1
- package/Marketplace/chunk-XLIPGDSC.js +0 -2
- package/Marketplace/chunk-ZLBPUHTQ.js +0 -1
- package/Marketplace/chunk-ZME22WYI.js +0 -1
- package/Marketplace/chunk-ZW2TMVZP.js +0 -10
- package/Marketplace/chunk-ZYJ6LAJ3.js +0 -4
- package/Marketplace/main-K3MDOIIF.js +0 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{a as F}from"./chunk-YD6BNJ2B.js";import{a as B}from"./chunk-X52ZT4MU.js";import{a as E}from"./chunk-HO2TMGLM.js";import{H as I,I as b,j as M,l as D}from"./chunk-7R2D2JZ6.js";import{Ac as i,Fd as m,Gd as A,Hb as s,Ib as g,Jb as x,Kc as l,Lb as c,Mc as z,Ra as v,_b as _,lc as w,mc as k,na as p,nc as r,pa as f,ra as n,ub as h,zb as y,zc as d}from"./chunk-OHGMB7HJ.js";var P=["mat-icon-button",""],S=["*"],N=new f("MAT_BUTTON_CONFIG");function R(a){return a==null?void 0:A(a)}var u=(()=>{class a{_elementRef=n(v);_ngZone=n(h);_animationsDisabled=I();_config=n(N,{optional:!0});_focusMonitor=n(M);_cleanupClick;_renderer=n(y);_rippleLoader=n(F);_isAnchor;_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=t,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;tabIndex;set _tabindex(t){this.tabIndex=t}constructor(){n(D).load(E);let t=this._elementRef.nativeElement;this._isAnchor=t.tagName==="A",this.disabledInteractive=this._config?.disabledInteractive??!1,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(t,{className:"mat-mdc-button-ripple"})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0),this._isAnchor&&this._setupAsAnchor()}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(t="program",e){t?this._focusMonitor.focusVia(this._elementRef.nativeElement,t,e):this._elementRef.nativeElement.focus(e)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}_getTabIndex(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",t=>{this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())}))}static \u0275fac=function(e){return new(e||a)};static \u0275dir=x({type:a,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(e,o){e&2&&(_("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled())("tabindex",o._getTabIndex()),z(o.color?"mat-"+o.color:""),l("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("mat-unthemed",!o.color)("_mat-animation-noopable",o._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",m],disabled:[2,"disabled","disabled",m],ariaDisabled:[2,"aria-disabled","ariaDisabled",m],disabledInteractive:[2,"disabledInteractive","disabledInteractive",m],tabIndex:[2,"tabIndex","tabIndex",R],_tabindex:[2,"tabindex","_tabindex",R]}})}return a})(),L=(()=>{class a extends u{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(e){return new(e||a)};static \u0275cmp=s({type:a,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[c],attrs:P,ngContentSelectors:S,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(e,o){e&1&&(d(),r(0,"span",0),i(1),r(2,"span",1)(3,"span",2))},styles:[`.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%));flex-shrink:0;text-align:center;width:var(--mat-icon-button-state-layer-size, 40px);height:var(--mat-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mat-icon-button-state-layer-size, 40px) - var(--mat-icon-button-icon-size, 24px)) / 2);font-size:var(--mat-icon-button-icon-size, 24px);color:var(--mat-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-icon-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-icon-button-touch-target-size, 48px);display:var(--mat-icon-button-touch-target-display, block);left:50%;width:var(--mat-icon-button-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mat-icon-button-icon-size, 24px);height:var(--mat-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%))}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1}
|
|
2
|
+
`,`@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}}
|
|
3
|
+
`],encapsulation:2,changeDetection:0})}return a})();var O=["matButton",""],U=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],V=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var C=new Map([["text",["mat-mdc-button"]],["filled",["mdc-button--unelevated","mat-mdc-unelevated-button"]],["elevated",["mdc-button--raised","mat-mdc-raised-button"]],["outlined",["mdc-button--outlined","mat-mdc-outlined-button"]],["tonal",["mat-tonal-button"]]]),rt=(()=>{class a extends u{get appearance(){return this._appearance}set appearance(t){this.setAppearance(t||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();let t=Y(this._elementRef.nativeElement);t&&this.setAppearance(t)}setAppearance(t){if(t===this._appearance)return;let e=this._elementRef.nativeElement.classList,o=this._appearance?C.get(this._appearance):null,T=C.get(t);o&&e.remove(...o),e.add(...T),this._appearance=t}static \u0275fac=function(e){return new(e||a)};static \u0275cmp=s({type:a,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostAttrs:[1,"mdc-button"],inputs:{appearance:[0,"matButton","appearance"]},exportAs:["matButton","matAnchor"],features:[c],attrs:O,ngContentSelectors:V,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(e,o){e&1&&(d(U),r(0,"span",0),i(1),w(2,"span",1),i(3,1),k(),i(4,2),r(5,"span",2)(6,"span",3)),e&2&&l("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[`.mat-mdc-button-base{text-decoration:none}.mat-mdc-button-base .mat-icon{min-height:fit-content;flex-shrink:0}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-button-text-horizontal-padding, 12px);height:var(--mat-button-text-container-height, 40px);font-family:var(--mat-button-text-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-text-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-text-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-text-label-text-transform);font-weight:var(--mat-button-text-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mat-button-text-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mat-button-text-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-text-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-button-text-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-button-text-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-text-touch-target-size, 48px);display:var(--mat-button-text-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-filled-container-height, 40px);font-family:var(--mat-button-filled-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-filled-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-filled-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-filled-label-text-transform);font-weight:var(--mat-button-filled-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-filled-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-button-filled-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-filled-touch-target-size, 48px);display:var(--mat-button-filled-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mat-button-filled-label-text-color, var(--mat-sys-on-primary));background-color:var(--mat-button-filled-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mat-button-filled-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mat-button-protected-container-elevation-shadow, var(--mat-sys-level1));height:var(--mat-button-protected-container-height, 40px);font-family:var(--mat-button-protected-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-protected-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-protected-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-protected-label-text-transform);font-weight:var(--mat-button-protected-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-protected-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-button-protected-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-protected-touch-target-size, 48px);display:var(--mat-button-protected-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-raised-button:not(:disabled){color:var(--mat-button-protected-label-text-color, var(--mat-sys-primary));background-color:var(--mat-button-protected-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mat-button-protected-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mat-button-protected-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mat-button-protected-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mat-button-protected-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-protected-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-protected-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mat-button-protected-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-outlined-container-height, 40px);font-family:var(--mat-button-outlined-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-outlined-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-outlined-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-outlined-label-text-transform);font-weight:var(--mat-button-outlined-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mat-button-outlined-container-shape, var(--mat-sys-corner-full));border-width:var(--mat-button-outlined-outline-width, 1px);padding:0 var(--mat-button-outlined-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-button-outlined-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-outlined-touch-target-size, 48px);display:var(--mat-button-outlined-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-outlined-button:not(:disabled){color:var(--mat-button-outlined-label-text-color, var(--mat-sys-primary));border-color:var(--mat-button-outlined-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mat-button-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-tonal-container-height, 40px);font-family:var(--mat-button-tonal-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-tonal-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-tonal-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-tonal-label-text-transform);font-weight:var(--mat-button-tonal-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-tonal-horizontal-padding, 24px)}.mat-tonal-button:not(:disabled){color:var(--mat-button-tonal-label-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-tonal-container-color, var(--mat-sys-secondary-container))}.mat-tonal-button,.mat-tonal-button .mdc-button__ripple{border-radius:var(--mat-button-tonal-container-shape, var(--mat-sys-corner-full))}.mat-tonal-button[disabled],.mat-tonal-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-tonal-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-tonal-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-tonal-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}[dir=rtl] .mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}.mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}[dir=rtl] .mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}.mat-tonal-button .mat-ripple-element{background-color:var(--mat-button-tonal-ripple-color, color-mix(in srgb, var(--mat-sys-on-secondary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-tonal-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-tonal-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-tonal-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-tonal-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-tonal-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-tonal-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-tonal-touch-target-size, 48px);display:var(--mat-button-tonal-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button,.mat-tonal-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon,.mat-tonal-button .mdc-button__label,.mat-tonal-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator,.mat-tonal-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before,.mat-tonal-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable,.mat-tonal-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon,.mat-tonal-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-tonal-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}
|
|
4
|
+
`,`@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}}
|
|
5
|
+
`],encapsulation:2,changeDetection:0})}return a})();function Y(a){return a.hasAttribute("mat-raised-button")?"elevated":a.hasAttribute("mat-stroked-button")?"outlined":a.hasAttribute("mat-flat-button")?"filled":a.hasAttribute("mat-button")?"text":null}var it=(()=>{class a{static \u0275fac=function(e){return new(e||a)};static \u0275mod=g({type:a});static \u0275inj=p({imports:[b,B,b]})}return a})();export{L as a,rt as b,it as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{pa as o}from"./chunk-OHGMB7HJ.js";var _=new o("MAT_INPUT_VALUE_ACCESSOR");export{_ as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as Xe}from"./chunk-
|
|
1
|
+
import{a as Xe}from"./chunk-O4U34AC7.js";import{a as rt}from"./chunk-MTVUPPAN.js";import{b as at}from"./chunk-2NRHX6CZ.js";import{a as Je,b as Ze,c as tt,d as lt}from"./chunk-NIJCYMZM.js";import{a as it}from"./chunk-7X4B2T6C.js";import{a as we,b as nt}from"./chunk-PN3KM4M4.js";import{a as ot}from"./chunk-WIRBYT7F.js";import{a as he,b as We,c as Ye,d as _e,e as et}from"./chunk-ZWUYPYHD.js";import{b as Ge}from"./chunk-WVA5LYVE.js";import{b as ze,c as le,d as Ie,e as V,f as je}from"./chunk-RBZU7OVM.js";import{D as Pe,F as He,T as Se,U as Re,a as P,da as Ce,la as ge,m as Be,ma as z,na as Qe,oa as Ue,t as xe,u as Ae,ua as fe,v as $,x as oe,y as Le}from"./chunk-RXC5D64C.js";import{A as Ne,a as qe,h as $e,m as Ke}from"./chunk-WAXAIL2I.js";import{A as ie,q as Oe,s as ee,t as te,u as ue,v as ne}from"./chunk-JNRCB7N3.js";import{Aa as B,Ab as ke,Bc as v,Cc as k,Dc as g,Ec as f,Fd as T,Gd as R,Hb as W,Ia as se,Ib as Te,Ic as ve,Jc as be,Lb as G,Lc as U,Mb as de,Mc as u,Nb as c,Nc as q,Oc as ce,Pa as Q,Pc as pe,Rc as De,Sc as Me,Tc as Ve,_b as w,_c as X,ac as Y,ad as A,bd as H,cc as J,cd as Fe,hc as r,ic as m,jc as y,kc as C,la as re,ld as D,ma as ae,na as ye,ob as d,oc as N,pa as j,pc as I,pd as L,qc as E,ra as M,rc as O,tb as b,ud as Z,wc as S,ya as h,yc as s,za as _}from"./chunk-OHGMB7HJ.js";import{a as K}from"./chunk-66YHNWRR.js";var st=`
|
|
2
2
|
.p-tree {
|
|
3
3
|
display: block;
|
|
4
4
|
background: dt('tree.background');
|
|
@@ -182,7 +182,7 @@ import{a as Xe}from"./chunk-UH5C5HXK.js";import{a as Je,b as Ze,c as tt,d as lt}
|
|
|
182
182
|
.p-tree-flex-scrollable .p-tree-root {
|
|
183
183
|
flex: 1;
|
|
184
184
|
}
|
|
185
|
-
`;var ut=t=>({height:t}),St=(t,a)=>({$implicit:t,loading:a}),Ct=(t,a,e)=>({$implicit:t,partialSelected:a,class:e}),gt=t=>({$implicit:t});function Nt(t,a){if(t&1&&C(0,"div",9),t&2){let e=s(2);u(e.cx("dropPoint")),r("pBind",e.getPTOptions("dropPoint")),w("aria-hidden",!0)}}function It(t,a){if(t&1&&(B(),C(0,"svg",13)),t&2){let e=s(4);u(e.cx("nodeToggleIcon")),r("pBind",e.getPTOptions("nodeToggleIcon"))}}function wt(t,a){if(t&1&&(B(),C(0,"svg",14)),t&2){let e=s(4);u(e.cx("nodeToggleIcon")),r("pBind",e.getPTOptions("nodeToggleIcon"))}}function Et(t,a){if(t&1&&(N(0),c(1,It,1,3,"svg",11)(2,wt,1,3,"svg",12),I()),t&2){let e=s(3);d(),r("ngIf",!e.node.expanded),d(),r("ngIf",e.node.expanded)}}function kt(t,a){if(t&1&&(N(0),B(),C(1,"svg",15),I()),t&2){let e=s(3);d(),u(e.cx("nodeToggleIcon")),r("pBind",e.getPTOptions("nodeToggleIcon"))}}function Dt(t,a){if(t&1&&(N(0),c(1,Et,3,2,"ng-container",6)(2,kt,2,3,"ng-container",6),I()),t&2){let e=s(2);d(),r("ngIf",!e.node.loading),d(),r("ngIf",e.loadingMode==="icon"&&e.node.loading)}}function Mt(t,a){}function Vt(t,a){t&1&&c(0,Mt,0,0,"ng-template")}function Ft(t,a){if(t&1&&(m(0,"span",9),c(1,Vt,1,0,null,16),y()),t&2){let e=s(2);u(e.cx("nodeToggleIcon")),r("pBind",e.getPTOptions("nodeToggleIcon")),d(),r("ngTemplateOutlet",e.tree.togglerIconTemplate||e.tree._togglerIconTemplate)("ngTemplateOutletContext",H(5,St,e.node.expanded,e.node.loading))}}function Ot(t,a){}function Bt(t,a){t&1&&c(0,Ot,0,0,"ng-template")}function At(t,a){if(t&1&&c(0,Bt,1,0,null,16),t&2){let e=s(4);r("ngTemplateOutlet",e.tree.checkboxIconTemplate||e.tree._checkboxIconTemplate)("ngTemplateOutletContext",Fe(2,Ct,e.isSelected(),e.node.partialSelected,e.cx("nodeCheckbox")))}}function Lt(t,a){t&1&&(N(0),c(1,At,1,6,"ng-template",null,0,D),I())}function Pt(t,a){if(t&1){let e=O();m(0,"p-checkbox",17),S("click",function(n){return h(e),_(n.preventDefault())}),c(1,Lt,3,0,"ng-container",6),y()}if(t&2){let e=s(2);r("ngModel",e.isSelected())("styleClass",e.cx("nodeCheckbox"))("binary",!0)("indeterminate",e.node.partialSelected)("disabled",e.node.selectable===!1)("variant",(e.tree==null?null:e.tree.config.inputStyle())==="filled"||(e.tree==null?null:e.tree.config.inputVariant())==="filled"?"filled":"outlined")("tabindex",-1)("pt",e.getPTOptions("pcNodeCheckbox")),w("data-p-partialchecked",e.node.partialSelected),d(),r("ngIf",e.tree.checkboxIconTemplate||e.tree._checkboxIconTemplate)}}function Ht(t,a){if(t&1&&C(0,"span",9),t&2){let e=s(2);u(e.getIcon()),r("pBind",e.getPTOptions("nodeIcon"))}}function Rt(t,a){if(t&1&&(m(0,"span"),q(1),y()),t&2){let e=s(2);d(),ce(e.node.label)}}function zt(t,a){t&1&&E(0)}function Qt(t,a){if(t&1&&(m(0,"span"),c(1,zt,1,0,"ng-container",16),y()),t&2){let e=s(2);d(),r("ngTemplateOutlet",e.tree.getTemplateForNode(e.node))("ngTemplateOutletContext",A(2,gt,e.node))}}function Ut(t,a){if(t&1&&C(0,"div",9),t&2){let e=s(2);u(e.cx("dropPoint")),r("pBind",e.getPTOptions("dropPoint")),w("aria-hidden",!0)}}function qt(t,a){if(t&1&&C(0,"p-treeNode",20),t&2){let e=a.$implicit,i=a.first,n=a.last,o=a.index,l=s(3);r("node",e)("parentNode",l.node)("firstChild",i)("lastChild",n)("index",o)("itemSize",l.itemSize)("level",l.level+1)("loadingMode",l.loadingMode)}}function $t(t,a){if(t&1&&(m(0,"ul",18),c(1,qt,1,8,"p-treeNode",19),y()),t&2){let e=s(2);u(e.cx("nodeChildren")),r("pBind",e.ptm("nodeChildren")),d(),r("ngForOf",e.node.children)("ngForTrackBy",e.tree.trackBy.bind(e))}}function Kt(t,a){if(t&1){let e=O();m(0,"li",2),S("keydown",function(n){h(e);let o=s();return _(o.onKeyDown(n))}),Y(1,Nt,1,4,"div",3),m(2,"div",4),S("click",function(n){h(e);let o=s();return _(o.onNodeClick(n))})("contextmenu",function(n){h(e);let o=s();return _(o.onNodeRightClick(n))})("dblclick",function(n){h(e);let o=s();return _(o.onNodeDblClick(n))})("touchend",function(){h(e);let n=s();return _(n.onNodeTouchEnd())})("drop",function(n){h(e);let o=s();return _(o.onNodeDrop(n))})("dragstart",function(n){h(e);let o=s();return _(o.onNodeDragStart(n))})("dragover",function(n){h(e);let o=s();return _(o.onNodeDragOver(n))})("dragleave",function(n){h(e);let o=s();return _(o.onNodeDragLeave(n))})("dragend",function(n){h(e);let o=s();return _(o.onNodeDragEnd(n))}),m(3,"button",5),S("click",function(n){h(e);let o=s();return _(o.toggle(n))}),c(4,Dt,3,2,"ng-container",6)(5,Ft,2,8,"span",7),y(),c(6,Pt,2,10,"p-checkbox",8)(7,Ht,1,3,"span",7),m(8,"span",9),c(9,Rt,2,1,"span",6)(10,Qt,2,4,"span",6),y()(),Y(11,Ut,1,4,"div",3),c(12,$t,2,5,"ul",10),y()}if(t&2){let e=s();U(e.node.style),u(e.cn(e.cx("node"),e.node.styleClass)),r("ngStyle",A(36,ut,e.itemSize+"px"))("pBind",e.getPTOptions("node")),w("aria-label",e.node.label)("aria-checked",e.checked)("aria-setsize",e.node.children?e.node.children.length:0)("aria-selected",e.selected)("aria-expanded",e.node.expanded)("aria-posinset",e.index+1)("aria-level",e.level+1)("tabindex",e.index===0?0:-1)("data-id",e.node.key),d(),J(e.isPrevDropPointActive()?1:-1),d(),u(e.cx("nodeContent")),be("padding-left",e.level*e.indentation+"rem"),r("draggable",e.tree.draggableNodes)("pBind",e.getPTOptions("nodeContent")),d(),u(e.cx("nodeToggleButton")),r("pBind",e.getPTOptions("nodeToggleButton")),d(),r("ngIf",!e.tree.togglerIconTemplate&&!e.tree._togglerIconTemplate),d(),r("ngIf",e.tree.togglerIconTemplate||e.tree._togglerIconTemplate),d(),r("ngIf",e.tree.selectionMode=="checkbox"),d(),r("ngIf",e.node.icon||e.node.expandedIcon||e.node.collapsedIcon),d(),u(e.cx("nodeLabel")),r("pBind",e.getPTOptions("nodeLabel")),d(),r("ngIf",!e.tree.getTemplateForNode(e.node)),d(),r("ngIf",e.tree.getTemplateForNode(e.node)),d(),J(e.isNextDropPointActive()?11:-1),d(),r("ngIf",!e.tree.virtualScroll&&e.node.children&&e.node.expanded)}}var dt=["filter"],jt=["node"],Wt=["header"],Gt=["footer"],Yt=["loader"],Jt=["empty"],Xt=["togglericon"],Zt=["checkboxicon"],en=["loadingicon"],tn=["filtericon"],nn=["scroller"],on=["wrapper"],ln=["content"],rn=t=>({options:t});function an(t,a){if(t&1&&C(0,"i",11),t&2){let e=s(2);u(e.cn(e.cx("loadingIcon"),"pi-spin"+e.loadingIcon)),r("pBind",e.ptm("loadingIcon"))}}function sn(t,a){if(t&1&&(B(),C(0,"svg",13)),t&2){let e=s(3);u(e.cx("loadingIcon")),r("pBind",e.ptm("loadingIcon"))}}function dn(t,a){}function cn(t,a){t&1&&c(0,dn,0,0,"ng-template")}function pn(t,a){if(t&1&&(m(0,"span",11),c(1,cn,1,0,null,8),y()),t&2){let e=s(3);u(e.cx("loadingIcon")),r("pBind",e.ptm("loadingIcon")),d(),r("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function un(t,a){if(t&1&&(N(0),c(1,sn,1,3,"svg",12)(2,pn,2,4,"span",7),I()),t&2){let e=s(2);d(),r("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),d(),r("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function gn(t,a){if(t&1&&(m(0,"div",11),c(1,an,1,3,"i",7)(2,un,3,2,"ng-container",10),y()),t&2){let e=s();u(e.cx("mask")),r("pBind",e.ptm("mask")),d(),r("ngIf",e.loadingIcon),d(),r("ngIf",!e.loadingIcon)}}function fn(t,a){t&1&&E(0)}function hn(t,a){t&1&&E(0)}function _n(t,a){if(t&1&&c(0,hn,1,0,"ng-container",14),t&2){let e=s();r("ngTemplateOutlet",e.filterTemplate||e._filterTemplate)("ngTemplateOutletContext",A(2,gt,e.filterOptions))}}function mn(t,a){if(t&1&&(B(),C(0,"svg",19)),t&2){let e=s(3);u(e.cx("filterIcon")),r("pBind",e.ptm("filterIcon"))}}function yn(t,a){}function Tn(t,a){t&1&&c(0,yn,0,0,"ng-template")}function vn(t,a){if(t&1&&(m(0,"span",11),c(1,Tn,1,0,null,8),y()),t&2){let e=s(3);u(e.cx("filterIcon")),r("pBind",e.ptm("filterIcon")),d(),r("ngTemplateOutlet",e.filterIconTemplate||e._filterIconTemplate)}}function bn(t,a){if(t&1){let e=O();m(0,"p-iconfield",16)(1,"input",17,0),S("keydown.enter",function(n){return h(e),_(n.preventDefault())})("input",function(n){h(e);let o=s(2);return _(o._filter(n.target==null?null:n.target.value))}),y(),m(3,"p-inputicon",16),c(4,mn,1,3,"svg",18)(5,vn,2,4,"span",7),y()()}if(t&2){let e=s(2);u(e.cx("pcFilterContainer")),r("pt",e.ptm("pcFilterContainer")),d(),u(e.cx("pcFilterInput")),r("pAutoFocus",e.filterInputAutoFocus)("pt",e.ptm("pcFilterInput")),w("placeholder",e.filterPlaceholder),d(2),r("pt",e.ptm("pcFilterIconContainer")),d(),r("ngIf",!e.filterIconTemplate&&!e._filterIconTemplate),d(),r("ngIf",e.filterIconTemplate||e._filterIconTemplate)}}function xn(t,a){if(t&1&&c(0,bn,6,11,"p-iconfield",15),t&2){let e=s();r("ngIf",e.filter)}}function Sn(t,a){if(t&1&&C(0,"p-treeNode",25,3),t&2){let e=a.$implicit,i=a.first,n=a.last,o=a.index,l=s(2).options,p=s(3);r("level",e.level)("rowNode",e)("node",e.node)("parentNode",e.parent)("firstChild",i)("lastChild",n)("index",p.getIndex(l,o))("itemSize",l.itemSize)("indentation",p.indentation)("loadingMode",p.loadingMode)("pt",p.pt)}}function Cn(t,a){if(t&1&&(m(0,"ul",23,2),c(2,Sn,2,11,"p-treeNode",24),y()),t&2){let e=s(),i=e.$implicit,n=e.options,o=s(3);U(n.contentStyle),u(o.cx("rootChildren")),r("ngClass",n.contentStyleClass)("pBind",o.ptm("rootChildren")),w("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy),d(2),r("ngForOf",i)("ngForTrackBy",o.trackBy)}}function Nn(t,a){if(t&1&&c(0,Cn,3,10,"ul",22),t&2){let e=a.$implicit;r("ngIf",e)}}function In(t,a){t&1&&E(0)}function wn(t,a){if(t&1&&c(0,In,1,0,"ng-container",14),t&2){let e=a.options,i=s(4);r("ngTemplateOutlet",i.loaderTemplate||i._loaderTemplate)("ngTemplateOutletContext",A(2,rn,e))}}function En(t,a){t&1&&(N(0),c(1,wn,1,4,"ng-template",null,4,D),I())}function kn(t,a){if(t&1){let e=O();m(0,"p-scroller",21,1),S("onScroll",function(n){h(e);let o=s(2);return _(o.onScroll.emit(n))})("onScrollIndexChange",function(n){h(e);let o=s(2);return _(o.onScrollIndexChange.emit(n))})("onLazyLoad",function(n){h(e);let o=s(2);return _(o.onLazyLoad.emit(n))}),c(2,Nn,1,1,"ng-template",null,2,D)(4,En,3,0,"ng-container",10),y()}if(t&2){let e=s(2);U(A(11,ut,e.scrollHeight!=="flex"?e.scrollHeight:void 0)),r("items",e.serializedValue)("tabindex",-1)("styleClass",e.cx("wrapper"))("scrollHeight",e.scrollHeight!=="flex"?void 0:"100%")("itemSize",e.virtualScrollItemSize)("lazy",e.lazy)("options",e.virtualScrollOptions)("pt",e.ptm("virtualScroller")),d(4),r("ngIf",e.loaderTemplate||e._loaderTemplate)}}function Dn(t,a){if(t&1&&C(0,"p-treeNode",29),t&2){let e=a.$implicit,i=a.first,n=a.last,o=a.index,l=s(4);r("node",e)("firstChild",i)("lastChild",n)("index",o)("level",0)("loadingMode",l.loadingMode)("pt",l.pt)}}function Mn(t,a){if(t&1&&(m(0,"ul",27,2),c(2,Dn,1,7,"p-treeNode",28),y()),t&2){let e=s(3);u(e.cx("rootChildren")),r("pBind",e.ptm("rootChildren")),w("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledBy),d(2),r("ngForOf",e.getRootNode())("ngForTrackBy",e.trackBy.bind(e))}}function Vn(t,a){if(t&1&&(N(0),m(1,"div",11,5),c(3,Mn,3,7,"ul",26),y(),I()),t&2){let e=s(2);d(),u(e.cx("wrapper")),be("max-height",e.scrollHeight),r("pBind",e.ptm("wrapper")),d(2),r("ngIf",e.getRootNode())}}function Fn(t,a){if(t&1&&(N(0),c(1,kn,5,13,"p-scroller",20)(2,Vn,4,6,"ng-container",10),I()),t&2){let e=s();d(),r("ngIf",e.virtualScroll),d(),r("ngIf",!e.virtualScroll)}}function On(t,a){if(t&1&&(N(0),q(1),I()),t&2){let e=s(2);d(),pe(" ",e.emptyMessageLabel," ")}}function Bn(t,a){}function An(t,a){t&1&&c(0,Bn,0,0,"ng-template",null,6,D)}function Ln(t,a){if(t&1&&(m(0,"div",11),c(1,On,2,1,"ng-container",30)(2,An,2,0,null,8),y()),t&2){let e=s();u(e.cx("emptyMessage")),r("pBind",e.ptm("emptyMessage")),d(),r("ngIf",!e.emptyMessageTemplate&&!e._emptyMessageTemplate)("ngIfElse",e.emptyFilter),d(),r("ngTemplateOutlet",e.emptyMessageTemplate||e._emptyMessageTemplate)}}function Pn(t,a){t&1&&E(0)}var Hn={root:({instance:t})=>["p-tree p-component",{"p-tree-selectable":t.selectionMode!=null,"p-tree-loading":t.loading,"p-tree-flex-scrollable":t.scrollHeight==="flex","p-tree-node-dragover":t.dragHover}],mask:"p-tree-mask p-overlay-mask",loadingIcon:"p-tree-loading-icon",pcFilterInput:"p-tree-filter-input",wrapper:"p-tree-root",rootChildren:"p-tree-root-children",node:({instance:t})=>({"p-tree-node":!0,"p-tree-node-leaf":t.isLeaf()}),nodeContent:({instance:t})=>({"p-tree-node-content":!0,"p-tree-node-selectable":t.selectable,"p-tree-node-dragover":t.isNodeDropActive(),"p-tree-node-selected":t.selectionMode==="checkbox"&&t.tree.highlightOnSelect?t.checked:t.selected}),nodeToggleButton:"p-tree-node-toggle-button",nodeToggleIcon:"p-tree-node-toggle-icon",nodeCheckbox:"p-tree-node-checkbox",nodeIcon:"p-tree-node-icon",nodeLabel:"p-tree-node-label",nodeChildren:"p-tree-node-children",emptyMessage:"p-tree-empty-message",dropPoint:"p-tree-node-drop-point"},me=(()=>{class t extends ge{name="tree";style=st;classes=Hn;static \u0275fac=(()=>{let e;return function(n){return(e||(e=Q(t)))(n||t)}})();static \u0275prov=ae({token:t,factory:t.\u0275fac})}return t})();var ct=new j("TREE_INSTANCE"),pt=new j("TREENODE_INSTANCE"),Rn=(()=>{class t extends Ie{$pcTreeNode=M(pt,{optional:!0,skipSelf:!0})??void 0;static ICON_CLASS="p-tree-node-icon ";rowNode;node;parentNode;root;index;firstChild;lastChild;level;indentation;itemSize;loadingMode;tree=M(re(()=>Ee));timeout;isPrevDropPointHovered=se(!1);isNextDropPointHovered=se(!1);isNodeDropHovered=se(!1);isPrevDropPointActive=L(()=>this.isPrevDropPointHovered()&&this.isDroppable());isNextDropPointActive=L(()=>this.isNextDropPointHovered()&&this.isDroppable());isNodeDropActive=L(()=>this.isNodeDropHovered()&&this.isNodeDroppable());dropPosition=L(()=>this.isPrevDropPointActive()?-1:this.isNextDropPointActive()?1:0);_componentStyle=M(me);get selected(){return this.tree.selectionMode==="single"||this.tree.selectionMode==="multiple"?this.isSelected():void 0}get checked(){return this.tree.selectionMode==="checkbox"?this.isSelected():void 0}get nodeClass(){return this.tree._componentStyle.classes.node({instance:this})}get selectable(){return this.node?.selectable===!1?!1:this.tree?.selectionMode!=null}get subNodes(){return this.node?.parent?this.node.parent.children:this.tree.value}getPTOptions(e){return this.ptm(e,{context:{node:this.node,index:this.index,expanded:this.node?.expanded,selected:this.selected,checked:this.checked,partialChecked:this.node?.partialSelected,leaf:this.isLeaf()}})}onInit(){this.node.parent=this.parentNode;let i=this.tree.el.nativeElement.closest("p-dialog");this.parentNode&&!i&&(this.setAllNodesTabIndexes(),this.tree.syncNodeOption(this.node,this.tree.value,"parent",this.tree.getNodeWithKey(this.parentNode.key,this.tree.value)))}getIcon(){let e;return this.node.icon?e=this.node.icon:e=this.node.expanded&&this.node.children&&this.node.children?.length?this.node.expandedIcon:this.node.collapsedIcon,t.ICON_CLASS+" "+e+" p-tree-node-icon"}isLeaf(){return this.tree.isNodeLeaf(this.node)}isSelected(){return this.tree.isSelected(this.node)}isSameNode(e){return e.currentTarget&&(e.currentTarget.isSameNode(e.target)||e.currentTarget.isSameNode(e.target.closest('[role="treeitem"]')))}isDraggable(){return this.tree.draggableNodes}isDroppable(){return this.tree.droppableNodes&&this.tree.allowDrop(this.tree.dragNode,this.node,this.tree.dragNodeScope)}isNodeDroppable(){return this.node?.droppable!==!1&&this.isDroppable()}isNodeDraggable(){return this.node?.draggable!==!1&&this.isDraggable()}toggle(e){this.node.expanded?this.collapse(e):this.expand(e),e.stopPropagation()}expand(e){this.node.expanded=!0,this.tree.virtualScroll&&(this.tree.updateSerializedValue(),this.focusVirtualNode()),this.tree.onNodeExpand.emit({originalEvent:e,node:this.node})}collapse(e){this.node.expanded=!1,this.tree.virtualScroll&&(this.tree.updateSerializedValue(),this.focusVirtualNode()),this.tree.onNodeCollapse.emit({originalEvent:e,node:this.node})}onNodeClick(e){this.tree.onNodeClick(e,this.node)}onNodeKeydown(e){e.key==="Enter"&&this.tree.onNodeClick(e,this.node)}onNodeTouchEnd(){this.tree.onNodeTouchEnd()}onNodeRightClick(e){this.tree.onNodeRightClick(e,this.node)}onNodeDblClick(e){this.tree.onNodeDblClick(e,this.node)}insertNodeOnDrop(){let{dragNode:e,dragNodeIndex:i,dragNodeSubNodes:n}=this.tree;if(!this.node||i==null||!e||!n)return;let o=this.dropPosition(),l=this.subNodes||[],p=this.index||0,x=n===l?i>p?p:p-1:p;n.splice(i,1),o<0?l.splice(x,0,e):o>0?l.splice(x+1,0,e):(this.node.children=this.node.children||[],this.node.children.push(e)),this.tree.dragDropService.stopDrag({node:e,subNodes:l,index:i})}onNodeDrop(e){if(e.preventDefault(),e.stopPropagation(),this.isDroppable()){let{dragNode:i}=this.tree,n=this.dropPosition();(n!==0||n===0&&this.isNodeDroppable())&&(this.tree.validateDrop?this.tree.onNodeDrop.emit({originalEvent:e,dragNode:i,dropNode:this.node,index:this.index,accept:()=>{this.insertNodeOnDrop()}}):(this.insertNodeOnDrop(),this.tree.onNodeDrop.emit({originalEvent:e,dragNode:i,dropNode:this.node,index:this.index})))}this.isPrevDropPointHovered.set(!1),this.isNextDropPointHovered.set(!1),this.isNodeDropHovered.set(!1)}onNodeDragStart(e){if(this.isNodeDraggable()){e.dataTransfer.effectAllowed="all",e.dataTransfer?.setData("text","data");let i=e.currentTarget,n=i.cloneNode(!0),o=n.querySelector('[data-pc-section="nodetogglebutton"]'),l=n.querySelector('[data-pc-name="pcnodecheckbox"]');i.setAttribute("data-p-dragging","true"),n.style.width=Pe(i)+"px",n.style.height=Qe(i)+"px",n.setAttribute("data-pc-section","drag-image"),o.style.visibility="hidden",l?.remove(),document.body.appendChild(n),e.dataTransfer?.setDragImage(n,0,0),setTimeout(()=>document.body.removeChild(n),0),this.tree.dragDropService.startDrag({tree:this,node:this.node,subNodes:this.subNodes,index:this.index,scope:this.tree.draggableScope})}else e.preventDefault()}onNodeDragOver(e){if(this.isDroppable()){e.dataTransfer.dropEffect="copy";let n=e.currentTarget.getBoundingClientRect(),o=e.clientY-parseInt(n.top);this.isPrevDropPointHovered.set(!1),this.isNextDropPointHovered.set(!1),this.isNodeDropHovered.set(!1),o<n.height*.25?this.isPrevDropPointHovered.set(!0):o>n.height*.75?this.isNextDropPointHovered.set(!0):this.isNodeDroppable()&&this.isNodeDropHovered.set(!0)}else e.dataTransfer.dropEffect="none";this.tree.droppableNodes&&(e.preventDefault(),e.stopPropagation())}onNodeDragLeave(){this.isPrevDropPointHovered.set(!1),this.isNextDropPointHovered.set(!1),this.isNodeDropHovered.set(!1)}onNodeDragEnd(e){e.currentTarget?.removeAttribute("data-p-dragging"),this.tree.dragDropService.stopDrag({node:this.node,subNodes:this.subNodes,index:this.index})}onKeyDown(e){if(!(!this.isSameNode(e)||this.tree.contextMenu&&this.tree.contextMenu.containerViewChild?.nativeElement.style.display==="block"))switch(e.code){case"ArrowDown":this.onArrowDown(e);break;case"ArrowUp":this.onArrowUp(e);break;case"ArrowRight":this.onArrowRight(e);break;case"ArrowLeft":this.onArrowLeft(e);break;case"Enter":case"Space":case"NumpadEnter":this.onEnter(e);break;case"Tab":this.setAllNodesTabIndexes();break;default:break}}onArrowUp(e){let i=e.target.getAttribute("data-pc-section")==="nodetogglebutton"?e.target.closest('[role="treeitem"]'):e.target.parentElement;if(i?.previousElementSibling)this.focusRowChange(i,i.previousElementSibling,this.findLastVisibleDescendant(i.previousElementSibling));else{let n=this.getParentNodeElement(i);n&&this.focusRowChange(i,n)}e.preventDefault()}onArrowDown(e){let i=e.target.getAttribute("data-pc-section")==="nodetogglebutton"?e.target.closest('[role="treeitem"]'):e.target,n=i?.children[1];if(n&&n.children.length>0)this.focusRowChange(i,n.children[0]);else if(i?.parentElement?.nextElementSibling)this.focusRowChange(i,i.parentElement.nextElementSibling);else{let o=this.findNextSiblingOfAncestor(i?.parentElement);o&&this.focusRowChange(i,o)}e.preventDefault()}onArrowRight(e){!this.node?.expanded&&!this.tree.isNodeLeaf(this.node)&&(this.expand(e),e.currentTarget.tabIndex=-1,setTimeout(()=>{this.onArrowDown(e)},1)),e.preventDefault()}onArrowLeft(e){let i=e.target.getAttribute("data-pc-section")==="nodetogglebutton"?e.target.closest('[role="treeitem"]'):e.target;if(this.level===0&&!this.node?.expanded)return!1;if(this.node?.expanded){this.collapse(e);return}let n=this.getParentNodeElement(i?.parentElement);n&&this.focusRowChange(e.currentTarget,n),e.preventDefault()}onEnter(e){this.tree.onNodeClick(e,this.node),this.setTabIndexForSelectionMode(e,this.tree.nodeTouched),e.preventDefault()}setAllNodesTabIndexes(){let e=Se(this.tree.el.nativeElement,".p-tree-node"),i=[...e].some(n=>n.getAttribute("aria-selected")==="true"||n.getAttribute("aria-checked")==="true");if([...e].forEach(n=>{n.tabIndex=-1}),i){let n=[...e].filter(o=>o.getAttribute("aria-selected")==="true"||o.getAttribute("aria-checked")==="true");n[0].tabIndex=0;return}e.length&&([...e][0].tabIndex=0)}setTabIndexForSelectionMode(e,i){if(this.tree.selectionMode!==null){let n=[...Se(this.tree.el.nativeElement,'[role="treeitem"]')];e.currentTarget.tabIndex=i===!1?-1:0,n.every(o=>o.tabIndex===-1)&&(n[0].tabIndex=0)}}findNextSiblingOfAncestor(e){let i=this.getParentNodeElement(e);return i?i.nextElementSibling?i.nextElementSibling:this.findNextSiblingOfAncestor(i):null}findLastVisibleDescendant(e){let n=Array.from(e.children).find(o=>P(o,"p-tree-node"))?.children[1];if(n&&n.children.length>0){let o=n.children[n.children.length-1];return this.findLastVisibleDescendant(o)}else return e}getParentNodeElement(e){let i=e.parentElement?.parentElement?.parentElement;return i?.tagName==="P-TREENODE"?i:null}focusNode(e){this.tree.droppableNodes?e.children[1].focus():e.children[0].focus()}focusRowChange(e,i,n){e.tabIndex="-1",i.children[0].tabIndex="0",this.focusNode(n||i)}focusVirtualNode(){this.timeout=setTimeout(()=>{let e=He(this.tree?.contentViewChild?.nativeElement,`[data-id="${this.node?.key??this.node?.data}"]`);$(e)},1)}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Q(t)))(n||t)}})();static \u0275cmp=W({type:t,selectors:[["p-treeNode"]],inputs:{rowNode:"rowNode",node:"node",parentNode:"parentNode",root:[2,"root","root",T],index:[2,"index","index",R],firstChild:[2,"firstChild","firstChild",T],lastChild:[2,"lastChild","lastChild",T],level:[2,"level","level",R],indentation:[2,"indentation","indentation",R],itemSize:[2,"itemSize","itemSize",R],loadingMode:"loadingMode"},features:[X([me,{provide:pt,useExisting:t},{provide:le,useExisting:t}]),G],decls:1,vars:1,consts:[["icon",""],["role","treeitem",3,"class","ngStyle","style","pBind"],["role","treeitem",3,"keydown","ngStyle","pBind"],[3,"class","pBind"],[3,"click","contextmenu","dblclick","touchend","drop","dragstart","dragover","dragleave","dragend","draggable","pBind"],["type","button","pRipple","","tabindex","-1",3,"click","pBind"],[4,"ngIf"],[3,"class","pBind",4,"ngIf"],[3,"ngModel","styleClass","binary","indeterminate","disabled","variant","tabindex","pt","click",4,"ngIf"],[3,"pBind"],["role","group",3,"class","pBind",4,"ngIf"],["data-p-icon","chevron-right",3,"class","pBind",4,"ngIf"],["data-p-icon","chevron-down",3,"class","pBind",4,"ngIf"],["data-p-icon","chevron-right",3,"pBind"],["data-p-icon","chevron-down",3,"pBind"],["data-p-icon","spinner","spin","",3,"pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"click","ngModel","styleClass","binary","indeterminate","disabled","variant","tabindex","pt"],["role","group",3,"pBind"],[3,"node","parentNode","firstChild","lastChild","index","itemSize","level","loadingMode",4,"ngFor","ngForOf","ngForTrackBy"],[3,"node","parentNode","firstChild","lastChild","index","itemSize","level","loadingMode"]],template:function(i,n){i&1&&Y(0,Kt,13,38,"li",1),i&2&&J(n.node?0:-1)},dependencies:[t,ie,ee,te,ne,ue,ot,rt,xe,Ae,Le,Xe,_e,we,z,je,V],encapsulation:2})}return t})(),Ee=(()=>{class t extends Ie{dragDropService;bindDirectiveInstance=M(V,{self:!0});$pcTree=M(ct,{optional:!0,skipSelf:!0})??void 0;onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}value;selectionMode;loadingMode="mask";selection;styleClass;contextMenu;draggableScope;droppableScope;draggableNodes;droppableNodes;metaKeySelection=!1;propagateSelectionUp=!0;propagateSelectionDown=!0;loading;loadingIcon;emptyMessage="";ariaLabel;togglerAriaLabel;ariaLabelledBy;validateDrop;filter;filterInputAutoFocus=!1;filterBy="label";filterMode="lenient";filterOptions;filterPlaceholder;filteredNodes;filterLocale;scrollHeight;lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;indentation=1.5;_templateMap;trackBy=(e,i)=>i;highlightOnSelect=!1;selectionChange=new b;onNodeSelect=new b;onNodeUnselect=new b;onNodeExpand=new b;onNodeCollapse=new b;onNodeContextMenuSelect=new b;onNodeDoubleClick=new b;onNodeDrop=new b;onLazyLoad=new b;onScroll=new b;onScrollIndexChange=new b;onFilter=new b;filterTemplate;nodeTemplate;headerTemplate;footerTemplate;loaderTemplate;emptyMessageTemplate;togglerIconTemplate;checkboxIconTemplate;loadingIconTemplate;filterIconTemplate;filterViewChild;scroller;wrapperViewChild;contentViewChild;templates;_headerTemplate;_emptyMessageTemplate;_footerTemplate;_loaderTemplate;_togglerIconTemplate;_checkboxIconTemplate;_loadingIconTemplate;_filterIconTemplate;_filterTemplate;onAfterContentInit(){this.templates.length&&(this._templateMap={}),this.templates.forEach(e=>{switch(e.getType()){case"header":this._headerTemplate=e.template;break;case"empty":this._emptyMessageTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"togglericon":this._togglerIconTemplate=e.template;break;case"checkboxicon":this._checkboxIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"filter":this._filterTemplate=e.template;break;default:this._templateMap[e.name]=e.template;break}})}serializedValue;nodeTouched;dragNodeTree;dragNode;dragNodeSubNodes;dragNodeIndex;dragNodeScope;dragHover;dragStartSubscription;dragStopSubscription;_componentStyle=M(me);handleDropEvent(e){this.onDrop(e)}handleDragOverEvent(e){this.onDragOver(e)}handleDragEnterEvent(){this.onDragEnter()}handleDragLeaveEvent(e){this.onDragLeave(e)}constructor(e){super(),this.dragDropService=e}onInit(){this.filterBy&&(this.filterOptions={filter:e=>this._filter(e),reset:()=>this.resetFilter()}),this.droppableNodes&&(this.dragStartSubscription=this.dragDropService.dragStart$.subscribe(e=>{this.dragNodeTree=e.tree,this.dragNode=e.node,this.dragNodeSubNodes=e.subNodes,this.dragNodeIndex=e.index,this.dragNodeScope=e.scope}),this.dragStopSubscription=this.dragDropService.dragStop$.subscribe(e=>{this.dragNodeTree=null,this.dragNode=null,this.dragNodeSubNodes=null,this.dragNodeIndex=null,this.dragNodeScope=null,this.dragHover=!1}))}onChanges(e){e.value&&(this.updateSerializedValue(),this.hasFilterActive()&&this._filter(this.filterViewChild?.nativeElement?.value))}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation($e.EMPTY_MESSAGE)}updateSerializedValue(){this.serializedValue=[],this.serializeNodes(null,this.getRootNode(),0,!0)}serializeNodes(e,i,n,o){if(i&&i.length)for(let l of i){l.parent=e;let p={node:l,parent:e,level:n,visible:o&&(e?e.expanded:!0)};this.serializedValue.push(p),p.visible&&l.expanded&&this.serializeNodes(l,l.children,n+1,p.visible)}}onNodeClick(e,i){let n=e.target;if(!(P(n,"p-tree-toggler")||P(n,"p-tree-toggler-icon"))){if(this.selectionMode){if(i.selectable===!1){i.style="--p-focus-ring-color: none;";return}else i.style?.includes("--p-focus-ring-color")||(i.style=i.style?`${i.style}--p-focus-ring-color: var(--primary-color)`:"--p-focus-ring-color: var(--primary-color)");if(this.hasFilteredNodes()&&(i=this.getNodeWithKey(i.key,this.filteredNodes),!i))return;let o=this.findIndexInSelection(i),l=o>=0;if(this.isCheckboxSelectionMode())l?(this.propagateSelectionDown?this.propagateDown(i,!1):this.selection=this.selection.filter((p,x)=>x!=o),this.propagateSelectionUp&&i.parent&&this.propagateUp(i.parent,!1),this.selectionChange.emit(this.selection),this.onNodeUnselect.emit({originalEvent:e,node:i})):(this.propagateSelectionDown?this.propagateDown(i,!0):this.selection=[...this.selection||[],i],this.propagateSelectionUp&&i.parent&&this.propagateUp(i.parent,!0),this.selectionChange.emit(this.selection),this.onNodeSelect.emit({originalEvent:e,node:i}));else if(this.nodeTouched?!1:this.metaKeySelection){let x=e.metaKey||e.ctrlKey;l&&x?(this.isSingleSelectionMode()?this.selectionChange.emit(null):(this.selection=this.selection.filter((F,Tt)=>Tt!=o),this.selectionChange.emit(this.selection)),this.onNodeUnselect.emit({originalEvent:e,node:i})):(this.isSingleSelectionMode()?this.selectionChange.emit(i):this.isMultipleSelectionMode()&&(this.selection=x?this.selection||[]:[],this.selection=[...this.selection,i],this.selectionChange.emit(this.selection)),this.onNodeSelect.emit({originalEvent:e,node:i}))}else this.isSingleSelectionMode()?l?(this.selection=null,this.onNodeUnselect.emit({originalEvent:e,node:i})):(this.selection=i,setTimeout(()=>{this.onNodeSelect.emit({originalEvent:e,node:i})})):l?(this.selection=this.selection.filter((x,F)=>F!=o),this.onNodeUnselect.emit({originalEvent:e,node:i})):(this.selection=[...this.selection||[],i],setTimeout(()=>{this.onNodeSelect.emit({originalEvent:e,node:i})})),this.selectionChange.emit(this.selection)}this.nodeTouched=!1}}onNodeTouchEnd(){this.nodeTouched=!0}onNodeRightClick(e,i){if(this.contextMenu){let n=e.target;if(n.className&&n.className.indexOf("p-tree-toggler")===0)return;this.findIndexInSelection(i)>=0||(this.isSingleSelectionMode()?this.selectionChange.emit(i):this.selectionChange.emit([i])),this.contextMenu.show(e),this.onNodeContextMenuSelect.emit({originalEvent:e,node:i})}}onNodeDblClick(e,i){this.onNodeDoubleClick.emit({originalEvent:e,node:i})}findIndexInSelection(e){let i=-1;if(this.selectionMode&&this.selection)if(this.isSingleSelectionMode())i=this.selection.key&&this.selection.key===e.key||this.selection==e?0:-1;else for(let n=0;n<this.selection.length;n++){let o=this.selection[n];if(o.key&&o.key===e.key||o==e){i=n;break}}return i}syncNodeOption(e,i,n,o){let l=this.hasFilteredNodes()?this.getNodeWithKey(e.key,i):null;l&&(l[n]=o||e[n])}hasFilteredNodes(){return this.filter&&this.filteredNodes&&this.filteredNodes.length}hasFilterActive(){return this.filter&&this.filterViewChild?.nativeElement?.value.length>0}getNodeWithKey(e,i){for(let n of i){if(n.key===e)return n;if(n.children){let o=this.getNodeWithKey(e,n.children);if(o)return o}}}propagateUp(e,i){if(e.children&&e.children.length){let o=0,l=!1;for(let p of e.children)this.isSelected(p)?o++:p.partialSelected&&(l=!0);if(i&&o==e.children.length)this.selection=[...this.selection||[],e],e.partialSelected=!1;else{if(!i){let p=this.findIndexInSelection(e);p>=0&&(this.selection=this.selection.filter((x,F)=>F!=p))}l||o>0&&o!=e.children.length?e.partialSelected=!0:e.partialSelected=!1}this.syncNodeOption(e,this.filteredNodes,"partialSelected")}let n=e.parent;n&&this.propagateUp(n,i)}propagateDown(e,i){let n=this.findIndexInSelection(e);if(i&&n==-1?this.selection=[...this.selection||[],e]:!i&&n>-1&&(this.selection=this.selection.filter((o,l)=>l!=n)),e.partialSelected=!1,this.syncNodeOption(e,this.filteredNodes,"partialSelected"),e.children&&e.children.length)for(let o of e.children)this.propagateDown(o,i)}isSelected(e){return this.findIndexInSelection(e)!=-1}isSingleSelectionMode(){return this.selectionMode&&this.selectionMode=="single"}isMultipleSelectionMode(){return this.selectionMode&&this.selectionMode=="multiple"}isCheckboxSelectionMode(){return this.selectionMode&&this.selectionMode=="checkbox"}isNodeLeaf(e){return e.leaf==!1?!1:!(e.children&&e.children.length)}getRootNode(){return this.filteredNodes?this.filteredNodes:this.value}getTemplateForNode(e){return this._templateMap?e.type?this._templateMap[e.type]:this._templateMap.default:null}onDragOver(e){this.droppableNodes&&this.allowDrop(this.dragNode,null,this.dragNodeScope)&&(e.dataTransfer.dropEffect="copy",e.preventDefault())}onDrop(e){if(this.droppableNodes){e.preventDefault();let i=this.dragNode;if(this.isSameTreeScope(this.dragNodeScope))return;if(this.allowDrop(i,null,this.dragNodeScope)){let n=this.dragNodeIndex;this.value=this.value||[],this.validateDrop?this.onNodeDrop.emit({originalEvent:e,dragNode:i,dropNode:null,index:n,accept:()=>{this.processTreeDrop(i,n)}}):(this.onNodeDrop.emit({originalEvent:e,dragNode:i,dropNode:null,index:n}),this.processTreeDrop(i,n))}}}processTreeDrop(e,i){this.dragNodeSubNodes.splice(i,1),this.value.push(e),this.dragDropService.stopDrag({node:e})}onDragEnter(){this.droppableNodes&&this.allowDrop(this.dragNode,null,this.dragNodeScope)&&(this.dragHover=!0)}onDragLeave(e){if(this.droppableNodes){let i=e.currentTarget.getBoundingClientRect();(e.x>parseInt(i.left)+i.width||e.x<parseInt(i.left)||e.y>parseInt(i.top)+i.height||e.y<parseInt(i.top))&&(this.dragHover=!1)}}allowDrop(e,i,n){if(e)if(this.isValidDragScope(n)){let o=!0;if(i)if(e===i)o=!1;else{let l=i.parent;for(;l!=null;){if(l===e){o=!1;break}l=l.parent}}return o}else return!1;else return!1}hasCommonScope(e,i){if(typeof i=="string"){if(typeof e=="string")return i===e;if(Array.isArray(e))return e.indexOf(i)!=-1}else if(Array.isArray(i)){if(typeof e=="string")return i.indexOf(e)!=-1;if(Array.isArray(e)){for(let n of i)for(let o of e)if(n===o)return!0}}return!1}isSameTreeScope(e){return this.hasCommonScope(e,this.draggableScope)}isValidDragScope(e){let i=this.droppableScope;return i?this.hasCommonScope(e,i):!0}_filter(e){let i=e;if(i==="")this.filteredNodes=null;else{this.filteredNodes=[];let n=this.filterBy.split(","),o=Ne(i).toLocaleLowerCase(this.filterLocale),l=this.filterMode==="strict";for(let p of this.value){let x=K({},p),F={searchFields:n,filterText:o,isStrictMode:l};(l&&(this.findFilteredNodes(x,F)||this.isFilterMatched(x,F))||!l&&(this.isFilterMatched(x,F)||this.findFilteredNodes(x,F)))&&this.filteredNodes.push(x)}}this.updateSerializedValue(),this.onFilter.emit({filter:i,filteredValue:this.filteredNodes})}resetFilter(){this.filteredNodes=null,this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}scrollToVirtualIndex(e){this.virtualScroll&&this.scroller?.scrollToIndex(e)}scrollTo(e){this.virtualScroll?this.scroller?.scrollTo(e):this.wrapperViewChild&&this.wrapperViewChild.nativeElement&&(this.wrapperViewChild.nativeElement.scrollTo?this.wrapperViewChild.nativeElement.scrollTo(e):(this.wrapperViewChild.nativeElement.scrollLeft=e.left,this.wrapperViewChild.nativeElement.scrollTop=e.top))}findFilteredNodes(e,i){if(e){let n=!1;if(e.children){let o=[...e.children];e.children=[];for(let l of o){let p=K({},l);this.isFilterMatched(p,i)&&(n=!0,e.children.push(p))}}if(n)return e.expanded=!0,!0}}isFilterMatched(e,i){let{searchFields:n,filterText:o,isStrictMode:l}=i,p=!1;for(let x of n)Ne(String(Ue(e,x))).toLocaleLowerCase(this.filterLocale).indexOf(o)>-1&&(p=!0);return(!p||l&&!this.isNodeLeaf(e))&&(p=this.findFilteredNodes(e,{searchFields:n,filterText:o,isStrictMode:l})||p),p}getIndex(e,i){let n=e.getItemOptions;return n?n(i).index:i}getBlockableElement(){return this.el.nativeElement.children[0]}onDestroy(){this.dragStartSubscription&&this.dragStartSubscription.unsubscribe(),this.dragStopSubscription&&this.dragStopSubscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)(ke(Ke,8))};static \u0275cmp=W({type:t,selectors:[["p-tree"]],contentQueries:function(i,n,o){if(i&1&&(v(o,dt,4),v(o,jt,4),v(o,Wt,4),v(o,Gt,4),v(o,Yt,4),v(o,Jt,4),v(o,Xt,4),v(o,Zt,4),v(o,en,4),v(o,tn,4),v(o,fe,4)),i&2){let l;g(l=f())&&(n.filterTemplate=l.first),g(l=f())&&(n.nodeTemplate=l.first),g(l=f())&&(n.headerTemplate=l.first),g(l=f())&&(n.footerTemplate=l.first),g(l=f())&&(n.loaderTemplate=l.first),g(l=f())&&(n.emptyMessageTemplate=l.first),g(l=f())&&(n.togglerIconTemplate=l.first),g(l=f())&&(n.checkboxIconTemplate=l.first),g(l=f())&&(n.loadingIconTemplate=l.first),g(l=f())&&(n.filterIconTemplate=l.first),g(l=f())&&(n.templates=l)}},viewQuery:function(i,n){if(i&1&&(k(dt,5),k(nn,5),k(on,5),k(ln,5)),i&2){let o;g(o=f())&&(n.filterViewChild=o.first),g(o=f())&&(n.scroller=o.first),g(o=f())&&(n.wrapperViewChild=o.first),g(o=f())&&(n.contentViewChild=o.first)}},hostVars:2,hostBindings:function(i,n){i&1&&S("drop",function(l){return n.handleDropEvent(l)})("dragover",function(l){return n.handleDragOverEvent(l)})("dragenter",function(){return n.handleDragEnterEvent()})("dragleave",function(l){return n.handleDragLeaveEvent(l)}),i&2&&u(n.cn(n.cx("root"),n.styleClass))},inputs:{value:"value",selectionMode:"selectionMode",loadingMode:"loadingMode",selection:"selection",styleClass:"styleClass",contextMenu:"contextMenu",draggableScope:"draggableScope",droppableScope:"droppableScope",draggableNodes:[2,"draggableNodes","draggableNodes",T],droppableNodes:[2,"droppableNodes","droppableNodes",T],metaKeySelection:[2,"metaKeySelection","metaKeySelection",T],propagateSelectionUp:[2,"propagateSelectionUp","propagateSelectionUp",T],propagateSelectionDown:[2,"propagateSelectionDown","propagateSelectionDown",T],loading:[2,"loading","loading",T],loadingIcon:"loadingIcon",emptyMessage:"emptyMessage",ariaLabel:"ariaLabel",togglerAriaLabel:"togglerAriaLabel",ariaLabelledBy:"ariaLabelledBy",validateDrop:[2,"validateDrop","validateDrop",T],filter:[2,"filter","filter",T],filterInputAutoFocus:[2,"filterInputAutoFocus","filterInputAutoFocus",T],filterBy:"filterBy",filterMode:"filterMode",filterOptions:"filterOptions",filterPlaceholder:"filterPlaceholder",filteredNodes:"filteredNodes",filterLocale:"filterLocale",scrollHeight:"scrollHeight",lazy:[2,"lazy","lazy",T],virtualScroll:[2,"virtualScroll","virtualScroll",T],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",R],virtualScrollOptions:"virtualScrollOptions",indentation:[2,"indentation","indentation",R],_templateMap:"_templateMap",trackBy:"trackBy",highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",T]},outputs:{selectionChange:"selectionChange",onNodeSelect:"onNodeSelect",onNodeUnselect:"onNodeUnselect",onNodeExpand:"onNodeExpand",onNodeCollapse:"onNodeCollapse",onNodeContextMenuSelect:"onNodeContextMenuSelect",onNodeDoubleClick:"onNodeDoubleClick",onNodeDrop:"onNodeDrop",onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange",onFilter:"onFilter"},features:[X([me,{provide:ct,useExisting:t},{provide:le,useExisting:t}]),de([V]),G],decls:7,vars:6,consts:[["filter",""],["scroller",""],["content",""],["treeNode",""],["loader",""],["wrapper",""],["emptyFilter",""],[3,"class","pBind",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"class","pt"],[4,"ngIf"],[3,"pBind"],["data-p-icon","spinner","spin","",3,"class","pBind",4,"ngIf"],["data-p-icon","spinner","spin","",3,"pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class","pt",4,"ngIf"],[3,"pt"],["pInputText","","type","search","autocomplete","off",3,"keydown.enter","input","pAutoFocus","pt"],["data-p-icon","search",3,"class","pBind",4,"ngIf"],["data-p-icon","search",3,"pBind"],["hostName","tree",3,"items","tabindex","styleClass","style","scrollHeight","itemSize","lazy","options","pt","onScroll","onScrollIndexChange","onLazyLoad",4,"ngIf"],["hostName","tree",3,"onScroll","onScrollIndexChange","onLazyLoad","items","tabindex","styleClass","scrollHeight","itemSize","lazy","options","pt"],["role","tree",3,"class","ngClass","style","pBind",4,"ngIf"],["role","tree",3,"ngClass","pBind"],[3,"level","rowNode","node","parentNode","firstChild","lastChild","index","itemSize","indentation","loadingMode","pt",4,"ngFor","ngForOf","ngForTrackBy"],[3,"level","rowNode","node","parentNode","firstChild","lastChild","index","itemSize","indentation","loadingMode","pt"],["role","tree",3,"class","pBind",4,"ngIf"],["role","tree",3,"pBind"],[3,"node","firstChild","lastChild","index","level","loadingMode","pt",4,"ngFor","ngForOf","ngForTrackBy"],[3,"node","firstChild","lastChild","index","level","loadingMode","pt"],[4,"ngIf","ngIfElse"]],template:function(i,n){if(i&1&&(c(0,gn,3,5,"div",7)(1,fn,1,0,"ng-container",8),Y(2,_n,1,4,"ng-container")(3,xn,1,1,"p-iconfield",9),c(4,Fn,3,2,"ng-container",10)(5,Ln,3,6,"div",7)(6,Pn,1,0,"ng-container",8)),i&2){let o;r("ngIf",n.loading&&n.loadingMode==="mask"),d(),r("ngTemplateOutlet",n.headerTemplate||n._headerTemplate),d(),J(n.filterTemplate||n._filterTemplate?2:3),d(2),r("ngIf",(o=n.getRootNode())==null?null:o.length),d(),r("ngIf",!n.loading&&(n.getRootNode()==null||n.getRootNode().length===0)),d(),r("ngTemplateOutlet",n.footerTemplate||n._footerTemplate)}},dependencies:[ie,Oe,ee,te,ne,lt,z,Ze,we,nt,xe,Je,tt,Rn,We,he,V],encapsulation:2,changeDetection:0})}return t})();var ft=`
|
|
185
|
+
`;var ut=t=>({height:t}),St=(t,a)=>({$implicit:t,loading:a}),Ct=(t,a,e)=>({$implicit:t,partialSelected:a,class:e}),gt=t=>({$implicit:t});function Nt(t,a){if(t&1&&C(0,"div",9),t&2){let e=s(2);u(e.cx("dropPoint")),r("pBind",e.getPTOptions("dropPoint")),w("aria-hidden",!0)}}function It(t,a){if(t&1&&(B(),C(0,"svg",13)),t&2){let e=s(4);u(e.cx("nodeToggleIcon")),r("pBind",e.getPTOptions("nodeToggleIcon"))}}function wt(t,a){if(t&1&&(B(),C(0,"svg",14)),t&2){let e=s(4);u(e.cx("nodeToggleIcon")),r("pBind",e.getPTOptions("nodeToggleIcon"))}}function Et(t,a){if(t&1&&(N(0),c(1,It,1,3,"svg",11)(2,wt,1,3,"svg",12),I()),t&2){let e=s(3);d(),r("ngIf",!e.node.expanded),d(),r("ngIf",e.node.expanded)}}function kt(t,a){if(t&1&&(N(0),B(),C(1,"svg",15),I()),t&2){let e=s(3);d(),u(e.cx("nodeToggleIcon")),r("pBind",e.getPTOptions("nodeToggleIcon"))}}function Dt(t,a){if(t&1&&(N(0),c(1,Et,3,2,"ng-container",6)(2,kt,2,3,"ng-container",6),I()),t&2){let e=s(2);d(),r("ngIf",!e.node.loading),d(),r("ngIf",e.loadingMode==="icon"&&e.node.loading)}}function Mt(t,a){}function Vt(t,a){t&1&&c(0,Mt,0,0,"ng-template")}function Ft(t,a){if(t&1&&(m(0,"span",9),c(1,Vt,1,0,null,16),y()),t&2){let e=s(2);u(e.cx("nodeToggleIcon")),r("pBind",e.getPTOptions("nodeToggleIcon")),d(),r("ngTemplateOutlet",e.tree.togglerIconTemplate||e.tree._togglerIconTemplate)("ngTemplateOutletContext",H(5,St,e.node.expanded,e.node.loading))}}function Ot(t,a){}function Bt(t,a){t&1&&c(0,Ot,0,0,"ng-template")}function At(t,a){if(t&1&&c(0,Bt,1,0,null,16),t&2){let e=s(4);r("ngTemplateOutlet",e.tree.checkboxIconTemplate||e.tree._checkboxIconTemplate)("ngTemplateOutletContext",Fe(2,Ct,e.isSelected(),e.node.partialSelected,e.cx("nodeCheckbox")))}}function Lt(t,a){t&1&&(N(0),c(1,At,1,6,"ng-template",null,0,D),I())}function Pt(t,a){if(t&1){let e=O();m(0,"p-checkbox",17),S("click",function(n){return h(e),_(n.preventDefault())}),c(1,Lt,3,0,"ng-container",6),y()}if(t&2){let e=s(2);r("ngModel",e.isSelected())("styleClass",e.cx("nodeCheckbox"))("binary",!0)("indeterminate",e.node.partialSelected)("disabled",e.node.selectable===!1)("variant",(e.tree==null?null:e.tree.config.inputStyle())==="filled"||(e.tree==null?null:e.tree.config.inputVariant())==="filled"?"filled":"outlined")("tabindex",-1)("pt",e.getPTOptions("pcNodeCheckbox")),w("data-p-partialchecked",e.node.partialSelected),d(),r("ngIf",e.tree.checkboxIconTemplate||e.tree._checkboxIconTemplate)}}function Ht(t,a){if(t&1&&C(0,"span",9),t&2){let e=s(2);u(e.getIcon()),r("pBind",e.getPTOptions("nodeIcon"))}}function Rt(t,a){if(t&1&&(m(0,"span"),q(1),y()),t&2){let e=s(2);d(),ce(e.node.label)}}function zt(t,a){t&1&&E(0)}function Qt(t,a){if(t&1&&(m(0,"span"),c(1,zt,1,0,"ng-container",16),y()),t&2){let e=s(2);d(),r("ngTemplateOutlet",e.tree.getTemplateForNode(e.node))("ngTemplateOutletContext",A(2,gt,e.node))}}function Ut(t,a){if(t&1&&C(0,"div",9),t&2){let e=s(2);u(e.cx("dropPoint")),r("pBind",e.getPTOptions("dropPoint")),w("aria-hidden",!0)}}function qt(t,a){if(t&1&&C(0,"p-treeNode",20),t&2){let e=a.$implicit,i=a.first,n=a.last,o=a.index,l=s(3);r("node",e)("parentNode",l.node)("firstChild",i)("lastChild",n)("index",o)("itemSize",l.itemSize)("level",l.level+1)("loadingMode",l.loadingMode)}}function $t(t,a){if(t&1&&(m(0,"ul",18),c(1,qt,1,8,"p-treeNode",19),y()),t&2){let e=s(2);u(e.cx("nodeChildren")),r("pBind",e.ptm("nodeChildren")),d(),r("ngForOf",e.node.children)("ngForTrackBy",e.tree.trackBy.bind(e))}}function Kt(t,a){if(t&1){let e=O();m(0,"li",2),S("keydown",function(n){h(e);let o=s();return _(o.onKeyDown(n))}),Y(1,Nt,1,4,"div",3),m(2,"div",4),S("click",function(n){h(e);let o=s();return _(o.onNodeClick(n))})("contextmenu",function(n){h(e);let o=s();return _(o.onNodeRightClick(n))})("dblclick",function(n){h(e);let o=s();return _(o.onNodeDblClick(n))})("touchend",function(){h(e);let n=s();return _(n.onNodeTouchEnd())})("drop",function(n){h(e);let o=s();return _(o.onNodeDrop(n))})("dragstart",function(n){h(e);let o=s();return _(o.onNodeDragStart(n))})("dragover",function(n){h(e);let o=s();return _(o.onNodeDragOver(n))})("dragleave",function(n){h(e);let o=s();return _(o.onNodeDragLeave(n))})("dragend",function(n){h(e);let o=s();return _(o.onNodeDragEnd(n))}),m(3,"button",5),S("click",function(n){h(e);let o=s();return _(o.toggle(n))}),c(4,Dt,3,2,"ng-container",6)(5,Ft,2,8,"span",7),y(),c(6,Pt,2,10,"p-checkbox",8)(7,Ht,1,3,"span",7),m(8,"span",9),c(9,Rt,2,1,"span",6)(10,Qt,2,4,"span",6),y()(),Y(11,Ut,1,4,"div",3),c(12,$t,2,5,"ul",10),y()}if(t&2){let e=s();U(e.node.style),u(e.cn(e.cx("node"),e.node.styleClass)),r("ngStyle",A(36,ut,e.itemSize+"px"))("pBind",e.getPTOptions("node")),w("aria-label",e.node.label)("aria-checked",e.checked)("aria-setsize",e.node.children?e.node.children.length:0)("aria-selected",e.selected)("aria-expanded",e.node.expanded)("aria-posinset",e.index+1)("aria-level",e.level+1)("tabindex",e.index===0?0:-1)("data-id",e.node.key),d(),J(e.isPrevDropPointActive()?1:-1),d(),u(e.cx("nodeContent")),be("padding-left",e.level*e.indentation+"rem"),r("draggable",e.tree.draggableNodes)("pBind",e.getPTOptions("nodeContent")),d(),u(e.cx("nodeToggleButton")),r("pBind",e.getPTOptions("nodeToggleButton")),d(),r("ngIf",!e.tree.togglerIconTemplate&&!e.tree._togglerIconTemplate),d(),r("ngIf",e.tree.togglerIconTemplate||e.tree._togglerIconTemplate),d(),r("ngIf",e.tree.selectionMode=="checkbox"),d(),r("ngIf",e.node.icon||e.node.expandedIcon||e.node.collapsedIcon),d(),u(e.cx("nodeLabel")),r("pBind",e.getPTOptions("nodeLabel")),d(),r("ngIf",!e.tree.getTemplateForNode(e.node)),d(),r("ngIf",e.tree.getTemplateForNode(e.node)),d(),J(e.isNextDropPointActive()?11:-1),d(),r("ngIf",!e.tree.virtualScroll&&e.node.children&&e.node.expanded)}}var dt=["filter"],jt=["node"],Wt=["header"],Gt=["footer"],Yt=["loader"],Jt=["empty"],Xt=["togglericon"],Zt=["checkboxicon"],en=["loadingicon"],tn=["filtericon"],nn=["scroller"],on=["wrapper"],ln=["content"],rn=t=>({options:t});function an(t,a){if(t&1&&C(0,"i",11),t&2){let e=s(2);u(e.cn(e.cx("loadingIcon"),"pi-spin"+e.loadingIcon)),r("pBind",e.ptm("loadingIcon"))}}function sn(t,a){if(t&1&&(B(),C(0,"svg",13)),t&2){let e=s(3);u(e.cx("loadingIcon")),r("pBind",e.ptm("loadingIcon"))}}function dn(t,a){}function cn(t,a){t&1&&c(0,dn,0,0,"ng-template")}function pn(t,a){if(t&1&&(m(0,"span",11),c(1,cn,1,0,null,8),y()),t&2){let e=s(3);u(e.cx("loadingIcon")),r("pBind",e.ptm("loadingIcon")),d(),r("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function un(t,a){if(t&1&&(N(0),c(1,sn,1,3,"svg",12)(2,pn,2,4,"span",7),I()),t&2){let e=s(2);d(),r("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate),d(),r("ngIf",e.loadingIconTemplate||e._loadingIconTemplate)}}function gn(t,a){if(t&1&&(m(0,"div",11),c(1,an,1,3,"i",7)(2,un,3,2,"ng-container",10),y()),t&2){let e=s();u(e.cx("mask")),r("pBind",e.ptm("mask")),d(),r("ngIf",e.loadingIcon),d(),r("ngIf",!e.loadingIcon)}}function fn(t,a){t&1&&E(0)}function hn(t,a){t&1&&E(0)}function _n(t,a){if(t&1&&c(0,hn,1,0,"ng-container",14),t&2){let e=s();r("ngTemplateOutlet",e.filterTemplate||e._filterTemplate)("ngTemplateOutletContext",A(2,gt,e.filterOptions))}}function mn(t,a){if(t&1&&(B(),C(0,"svg",19)),t&2){let e=s(3);u(e.cx("filterIcon")),r("pBind",e.ptm("filterIcon"))}}function yn(t,a){}function Tn(t,a){t&1&&c(0,yn,0,0,"ng-template")}function vn(t,a){if(t&1&&(m(0,"span",11),c(1,Tn,1,0,null,8),y()),t&2){let e=s(3);u(e.cx("filterIcon")),r("pBind",e.ptm("filterIcon")),d(),r("ngTemplateOutlet",e.filterIconTemplate||e._filterIconTemplate)}}function bn(t,a){if(t&1){let e=O();m(0,"p-iconfield",16)(1,"input",17,0),S("keydown.enter",function(n){return h(e),_(n.preventDefault())})("input",function(n){h(e);let o=s(2);return _(o._filter(n.target==null?null:n.target.value))}),y(),m(3,"p-inputicon",16),c(4,mn,1,3,"svg",18)(5,vn,2,4,"span",7),y()()}if(t&2){let e=s(2);u(e.cx("pcFilterContainer")),r("pt",e.ptm("pcFilterContainer")),d(),u(e.cx("pcFilterInput")),r("pAutoFocus",e.filterInputAutoFocus)("pt",e.ptm("pcFilterInput")),w("placeholder",e.filterPlaceholder),d(2),r("pt",e.ptm("pcFilterIconContainer")),d(),r("ngIf",!e.filterIconTemplate&&!e._filterIconTemplate),d(),r("ngIf",e.filterIconTemplate||e._filterIconTemplate)}}function xn(t,a){if(t&1&&c(0,bn,6,11,"p-iconfield",15),t&2){let e=s();r("ngIf",e.filter)}}function Sn(t,a){if(t&1&&C(0,"p-treeNode",25,3),t&2){let e=a.$implicit,i=a.first,n=a.last,o=a.index,l=s(2).options,p=s(3);r("level",e.level)("rowNode",e)("node",e.node)("parentNode",e.parent)("firstChild",i)("lastChild",n)("index",p.getIndex(l,o))("itemSize",l.itemSize)("indentation",p.indentation)("loadingMode",p.loadingMode)("pt",p.pt)}}function Cn(t,a){if(t&1&&(m(0,"ul",23,2),c(2,Sn,2,11,"p-treeNode",24),y()),t&2){let e=s(),i=e.$implicit,n=e.options,o=s(3);U(n.contentStyle),u(o.cx("rootChildren")),r("ngClass",n.contentStyleClass)("pBind",o.ptm("rootChildren")),w("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledBy),d(2),r("ngForOf",i)("ngForTrackBy",o.trackBy)}}function Nn(t,a){if(t&1&&c(0,Cn,3,10,"ul",22),t&2){let e=a.$implicit;r("ngIf",e)}}function In(t,a){t&1&&E(0)}function wn(t,a){if(t&1&&c(0,In,1,0,"ng-container",14),t&2){let e=a.options,i=s(4);r("ngTemplateOutlet",i.loaderTemplate||i._loaderTemplate)("ngTemplateOutletContext",A(2,rn,e))}}function En(t,a){t&1&&(N(0),c(1,wn,1,4,"ng-template",null,4,D),I())}function kn(t,a){if(t&1){let e=O();m(0,"p-scroller",21,1),S("onScroll",function(n){h(e);let o=s(2);return _(o.onScroll.emit(n))})("onScrollIndexChange",function(n){h(e);let o=s(2);return _(o.onScrollIndexChange.emit(n))})("onLazyLoad",function(n){h(e);let o=s(2);return _(o.onLazyLoad.emit(n))}),c(2,Nn,1,1,"ng-template",null,2,D)(4,En,3,0,"ng-container",10),y()}if(t&2){let e=s(2);U(A(11,ut,e.scrollHeight!=="flex"?e.scrollHeight:void 0)),r("items",e.serializedValue)("tabindex",-1)("styleClass",e.cx("wrapper"))("scrollHeight",e.scrollHeight!=="flex"?void 0:"100%")("itemSize",e.virtualScrollItemSize)("lazy",e.lazy)("options",e.virtualScrollOptions)("pt",e.ptm("virtualScroller")),d(4),r("ngIf",e.loaderTemplate||e._loaderTemplate)}}function Dn(t,a){if(t&1&&C(0,"p-treeNode",29),t&2){let e=a.$implicit,i=a.first,n=a.last,o=a.index,l=s(4);r("node",e)("firstChild",i)("lastChild",n)("index",o)("level",0)("loadingMode",l.loadingMode)("pt",l.pt)}}function Mn(t,a){if(t&1&&(m(0,"ul",27,2),c(2,Dn,1,7,"p-treeNode",28),y()),t&2){let e=s(3);u(e.cx("rootChildren")),r("pBind",e.ptm("rootChildren")),w("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledBy),d(2),r("ngForOf",e.getRootNode())("ngForTrackBy",e.trackBy.bind(e))}}function Vn(t,a){if(t&1&&(N(0),m(1,"div",11,5),c(3,Mn,3,7,"ul",26),y(),I()),t&2){let e=s(2);d(),u(e.cx("wrapper")),be("max-height",e.scrollHeight),r("pBind",e.ptm("wrapper")),d(2),r("ngIf",e.getRootNode())}}function Fn(t,a){if(t&1&&(N(0),c(1,kn,5,13,"p-scroller",20)(2,Vn,4,6,"ng-container",10),I()),t&2){let e=s();d(),r("ngIf",e.virtualScroll),d(),r("ngIf",!e.virtualScroll)}}function On(t,a){if(t&1&&(N(0),q(1),I()),t&2){let e=s(2);d(),pe(" ",e.emptyMessageLabel," ")}}function Bn(t,a){}function An(t,a){t&1&&c(0,Bn,0,0,"ng-template",null,6,D)}function Ln(t,a){if(t&1&&(m(0,"div",11),c(1,On,2,1,"ng-container",30)(2,An,2,0,null,8),y()),t&2){let e=s();u(e.cx("emptyMessage")),r("pBind",e.ptm("emptyMessage")),d(),r("ngIf",!e.emptyMessageTemplate&&!e._emptyMessageTemplate)("ngIfElse",e.emptyFilter),d(),r("ngTemplateOutlet",e.emptyMessageTemplate||e._emptyMessageTemplate)}}function Pn(t,a){t&1&&E(0)}var Hn={root:({instance:t})=>["p-tree p-component",{"p-tree-selectable":t.selectionMode!=null,"p-tree-loading":t.loading,"p-tree-flex-scrollable":t.scrollHeight==="flex","p-tree-node-dragover":t.dragHover}],mask:"p-tree-mask p-overlay-mask",loadingIcon:"p-tree-loading-icon",pcFilterInput:"p-tree-filter-input",wrapper:"p-tree-root",rootChildren:"p-tree-root-children",node:({instance:t})=>({"p-tree-node":!0,"p-tree-node-leaf":t.isLeaf()}),nodeContent:({instance:t})=>({"p-tree-node-content":!0,"p-tree-node-selectable":t.selectable,"p-tree-node-dragover":t.isNodeDropActive(),"p-tree-node-selected":t.selectionMode==="checkbox"&&t.tree.highlightOnSelect?t.checked:t.selected}),nodeToggleButton:"p-tree-node-toggle-button",nodeToggleIcon:"p-tree-node-toggle-icon",nodeCheckbox:"p-tree-node-checkbox",nodeIcon:"p-tree-node-icon",nodeLabel:"p-tree-node-label",nodeChildren:"p-tree-node-children",emptyMessage:"p-tree-empty-message",dropPoint:"p-tree-node-drop-point"},me=(()=>{class t extends fe{name="tree";style=st;classes=Hn;static \u0275fac=(()=>{let e;return function(n){return(e||(e=Q(t)))(n||t)}})();static \u0275prov=ae({token:t,factory:t.\u0275fac})}return t})();var ct=new j("TREE_INSTANCE"),pt=new j("TREENODE_INSTANCE"),Rn=(()=>{class t extends Ie{$pcTreeNode=M(pt,{optional:!0,skipSelf:!0})??void 0;static ICON_CLASS="p-tree-node-icon ";rowNode;node;parentNode;root;index;firstChild;lastChild;level;indentation;itemSize;loadingMode;tree=M(re(()=>Ee));timeout;isPrevDropPointHovered=se(!1);isNextDropPointHovered=se(!1);isNodeDropHovered=se(!1);isPrevDropPointActive=L(()=>this.isPrevDropPointHovered()&&this.isDroppable());isNextDropPointActive=L(()=>this.isNextDropPointHovered()&&this.isDroppable());isNodeDropActive=L(()=>this.isNodeDropHovered()&&this.isNodeDroppable());dropPosition=L(()=>this.isPrevDropPointActive()?-1:this.isNextDropPointActive()?1:0);_componentStyle=M(me);get selected(){return this.tree.selectionMode==="single"||this.tree.selectionMode==="multiple"?this.isSelected():void 0}get checked(){return this.tree.selectionMode==="checkbox"?this.isSelected():void 0}get nodeClass(){return this.tree._componentStyle.classes.node({instance:this})}get selectable(){return this.node?.selectable===!1?!1:this.tree?.selectionMode!=null}get subNodes(){return this.node?.parent?this.node.parent.children:this.tree.value}getPTOptions(e){return this.ptm(e,{context:{node:this.node,index:this.index,expanded:this.node?.expanded,selected:this.selected,checked:this.checked,partialChecked:this.node?.partialSelected,leaf:this.isLeaf()}})}onInit(){this.node.parent=this.parentNode;let i=this.tree.el.nativeElement.closest("p-dialog");this.parentNode&&!i&&(this.setAllNodesTabIndexes(),this.tree.syncNodeOption(this.node,this.tree.value,"parent",this.tree.getNodeWithKey(this.parentNode.key,this.tree.value)))}getIcon(){let e;return this.node.icon?e=this.node.icon:e=this.node.expanded&&this.node.children&&this.node.children?.length?this.node.expandedIcon:this.node.collapsedIcon,t.ICON_CLASS+" "+e+" p-tree-node-icon"}isLeaf(){return this.tree.isNodeLeaf(this.node)}isSelected(){return this.tree.isSelected(this.node)}isSameNode(e){return e.currentTarget&&(e.currentTarget.isSameNode(e.target)||e.currentTarget.isSameNode(e.target.closest('[role="treeitem"]')))}isDraggable(){return this.tree.draggableNodes}isDroppable(){return this.tree.droppableNodes&&this.tree.allowDrop(this.tree.dragNode,this.node,this.tree.dragNodeScope)}isNodeDroppable(){return this.node?.droppable!==!1&&this.isDroppable()}isNodeDraggable(){return this.node?.draggable!==!1&&this.isDraggable()}toggle(e){this.node.expanded?this.collapse(e):this.expand(e),e.stopPropagation()}expand(e){this.node.expanded=!0,this.tree.virtualScroll&&(this.tree.updateSerializedValue(),this.focusVirtualNode()),this.tree.onNodeExpand.emit({originalEvent:e,node:this.node})}collapse(e){this.node.expanded=!1,this.tree.virtualScroll&&(this.tree.updateSerializedValue(),this.focusVirtualNode()),this.tree.onNodeCollapse.emit({originalEvent:e,node:this.node})}onNodeClick(e){this.tree.onNodeClick(e,this.node)}onNodeKeydown(e){e.key==="Enter"&&this.tree.onNodeClick(e,this.node)}onNodeTouchEnd(){this.tree.onNodeTouchEnd()}onNodeRightClick(e){this.tree.onNodeRightClick(e,this.node)}onNodeDblClick(e){this.tree.onNodeDblClick(e,this.node)}insertNodeOnDrop(){let{dragNode:e,dragNodeIndex:i,dragNodeSubNodes:n}=this.tree;if(!this.node||i==null||!e||!n)return;let o=this.dropPosition(),l=this.subNodes||[],p=this.index||0,x=n===l?i>p?p:p-1:p;n.splice(i,1),o<0?l.splice(x,0,e):o>0?l.splice(x+1,0,e):(this.node.children=this.node.children||[],this.node.children.push(e)),this.tree.dragDropService.stopDrag({node:e,subNodes:l,index:i})}onNodeDrop(e){if(e.preventDefault(),e.stopPropagation(),this.isDroppable()){let{dragNode:i}=this.tree,n=this.dropPosition();(n!==0||n===0&&this.isNodeDroppable())&&(this.tree.validateDrop?this.tree.onNodeDrop.emit({originalEvent:e,dragNode:i,dropNode:this.node,index:this.index,accept:()=>{this.insertNodeOnDrop()}}):(this.insertNodeOnDrop(),this.tree.onNodeDrop.emit({originalEvent:e,dragNode:i,dropNode:this.node,index:this.index})))}this.isPrevDropPointHovered.set(!1),this.isNextDropPointHovered.set(!1),this.isNodeDropHovered.set(!1)}onNodeDragStart(e){if(this.isNodeDraggable()){e.dataTransfer.effectAllowed="all",e.dataTransfer?.setData("text","data");let i=e.currentTarget,n=i.cloneNode(!0),o=n.querySelector('[data-pc-section="nodetogglebutton"]'),l=n.querySelector('[data-pc-name="pcnodecheckbox"]');i.setAttribute("data-p-dragging","true"),n.style.width=Be(i)+"px",n.style.height=He(i)+"px",n.setAttribute("data-pc-section","drag-image"),o.style.visibility="hidden",l?.remove(),document.body.appendChild(n),e.dataTransfer?.setDragImage(n,0,0),setTimeout(()=>document.body.removeChild(n),0),this.tree.dragDropService.startDrag({tree:this,node:this.node,subNodes:this.subNodes,index:this.index,scope:this.tree.draggableScope})}else e.preventDefault()}onNodeDragOver(e){if(this.isDroppable()){e.dataTransfer.dropEffect="copy";let n=e.currentTarget.getBoundingClientRect(),o=e.clientY-parseInt(n.top);this.isPrevDropPointHovered.set(!1),this.isNextDropPointHovered.set(!1),this.isNodeDropHovered.set(!1),o<n.height*.25?this.isPrevDropPointHovered.set(!0):o>n.height*.75?this.isNextDropPointHovered.set(!0):this.isNodeDroppable()&&this.isNodeDropHovered.set(!0)}else e.dataTransfer.dropEffect="none";this.tree.droppableNodes&&(e.preventDefault(),e.stopPropagation())}onNodeDragLeave(){this.isPrevDropPointHovered.set(!1),this.isNextDropPointHovered.set(!1),this.isNodeDropHovered.set(!1)}onNodeDragEnd(e){e.currentTarget?.removeAttribute("data-p-dragging"),this.tree.dragDropService.stopDrag({node:this.node,subNodes:this.subNodes,index:this.index})}onKeyDown(e){if(!(!this.isSameNode(e)||this.tree.contextMenu&&this.tree.contextMenu.containerViewChild?.nativeElement.style.display==="block"))switch(e.code){case"ArrowDown":this.onArrowDown(e);break;case"ArrowUp":this.onArrowUp(e);break;case"ArrowRight":this.onArrowRight(e);break;case"ArrowLeft":this.onArrowLeft(e);break;case"Enter":case"Space":case"NumpadEnter":this.onEnter(e);break;case"Tab":this.setAllNodesTabIndexes();break;default:break}}onArrowUp(e){let i=e.target.getAttribute("data-pc-section")==="nodetogglebutton"?e.target.closest('[role="treeitem"]'):e.target.parentElement;if(i?.previousElementSibling)this.focusRowChange(i,i.previousElementSibling,this.findLastVisibleDescendant(i.previousElementSibling));else{let n=this.getParentNodeElement(i);n&&this.focusRowChange(i,n)}e.preventDefault()}onArrowDown(e){let i=e.target.getAttribute("data-pc-section")==="nodetogglebutton"?e.target.closest('[role="treeitem"]'):e.target,n=i?.children[1];if(n&&n.children.length>0)this.focusRowChange(i,n.children[0]);else if(i?.parentElement?.nextElementSibling)this.focusRowChange(i,i.parentElement.nextElementSibling);else{let o=this.findNextSiblingOfAncestor(i?.parentElement);o&&this.focusRowChange(i,o)}e.preventDefault()}onArrowRight(e){!this.node?.expanded&&!this.tree.isNodeLeaf(this.node)&&(this.expand(e),e.currentTarget.tabIndex=-1,setTimeout(()=>{this.onArrowDown(e)},1)),e.preventDefault()}onArrowLeft(e){let i=e.target.getAttribute("data-pc-section")==="nodetogglebutton"?e.target.closest('[role="treeitem"]'):e.target;if(this.level===0&&!this.node?.expanded)return!1;if(this.node?.expanded){this.collapse(e);return}let n=this.getParentNodeElement(i?.parentElement);n&&this.focusRowChange(e.currentTarget,n),e.preventDefault()}onEnter(e){this.tree.onNodeClick(e,this.node),this.setTabIndexForSelectionMode(e,this.tree.nodeTouched),e.preventDefault()}setAllNodesTabIndexes(){let e=xe(this.tree.el.nativeElement,".p-tree-node"),i=[...e].some(n=>n.getAttribute("aria-selected")==="true"||n.getAttribute("aria-checked")==="true");if([...e].forEach(n=>{n.tabIndex=-1}),i){let n=[...e].filter(o=>o.getAttribute("aria-selected")==="true"||o.getAttribute("aria-checked")==="true");n[0].tabIndex=0;return}e.length&&([...e][0].tabIndex=0)}setTabIndexForSelectionMode(e,i){if(this.tree.selectionMode!==null){let n=[...xe(this.tree.el.nativeElement,'[role="treeitem"]')];e.currentTarget.tabIndex=i===!1?-1:0,n.every(o=>o.tabIndex===-1)&&(n[0].tabIndex=0)}}findNextSiblingOfAncestor(e){let i=this.getParentNodeElement(e);return i?i.nextElementSibling?i.nextElementSibling:this.findNextSiblingOfAncestor(i):null}findLastVisibleDescendant(e){let n=Array.from(e.children).find(o=>P(o,"p-tree-node"))?.children[1];if(n&&n.children.length>0){let o=n.children[n.children.length-1];return this.findLastVisibleDescendant(o)}else return e}getParentNodeElement(e){let i=e.parentElement?.parentElement?.parentElement;return i?.tagName==="P-TREENODE"?i:null}focusNode(e){this.tree.droppableNodes?e.children[1].focus():e.children[0].focus()}focusRowChange(e,i,n){e.tabIndex="-1",i.children[0].tabIndex="0",this.focusNode(n||i)}focusVirtualNode(){this.timeout=setTimeout(()=>{let e=Ae(this.tree?.contentViewChild?.nativeElement,`[data-id="${this.node?.key??this.node?.data}"]`);$(e)},1)}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Q(t)))(n||t)}})();static \u0275cmp=W({type:t,selectors:[["p-treeNode"]],inputs:{rowNode:"rowNode",node:"node",parentNode:"parentNode",root:[2,"root","root",T],index:[2,"index","index",R],firstChild:[2,"firstChild","firstChild",T],lastChild:[2,"lastChild","lastChild",T],level:[2,"level","level",R],indentation:[2,"indentation","indentation",R],itemSize:[2,"itemSize","itemSize",R],loadingMode:"loadingMode"},features:[X([me,{provide:pt,useExisting:t},{provide:le,useExisting:t}]),G],decls:1,vars:1,consts:[["icon",""],["role","treeitem",3,"class","ngStyle","style","pBind"],["role","treeitem",3,"keydown","ngStyle","pBind"],[3,"class","pBind"],[3,"click","contextmenu","dblclick","touchend","drop","dragstart","dragover","dragleave","dragend","draggable","pBind"],["type","button","pRipple","","tabindex","-1",3,"click","pBind"],[4,"ngIf"],[3,"class","pBind",4,"ngIf"],[3,"ngModel","styleClass","binary","indeterminate","disabled","variant","tabindex","pt","click",4,"ngIf"],[3,"pBind"],["role","group",3,"class","pBind",4,"ngIf"],["data-p-icon","chevron-right",3,"class","pBind",4,"ngIf"],["data-p-icon","chevron-down",3,"class","pBind",4,"ngIf"],["data-p-icon","chevron-right",3,"pBind"],["data-p-icon","chevron-down",3,"pBind"],["data-p-icon","spinner","spin","",3,"pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"click","ngModel","styleClass","binary","indeterminate","disabled","variant","tabindex","pt"],["role","group",3,"pBind"],[3,"node","parentNode","firstChild","lastChild","index","itemSize","level","loadingMode",4,"ngFor","ngForOf","ngForTrackBy"],[3,"node","parentNode","firstChild","lastChild","index","itemSize","level","loadingMode"]],template:function(i,n){i&1&&Y(0,Kt,13,38,"li",1),i&2&&J(n.node?0:-1)},dependencies:[t,ie,ee,te,ne,ue,ot,rt,Ne,$e,Ke,Xe,_e,we,z,je,V],encapsulation:2})}return t})(),Ee=(()=>{class t extends Ie{dragDropService;bindDirectiveInstance=M(V,{self:!0});$pcTree=M(ct,{optional:!0,skipSelf:!0})??void 0;onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}value;selectionMode;loadingMode="mask";selection;styleClass;contextMenu;draggableScope;droppableScope;draggableNodes;droppableNodes;metaKeySelection=!1;propagateSelectionUp=!0;propagateSelectionDown=!0;loading;loadingIcon;emptyMessage="";ariaLabel;togglerAriaLabel;ariaLabelledBy;validateDrop;filter;filterInputAutoFocus=!1;filterBy="label";filterMode="lenient";filterOptions;filterPlaceholder;filteredNodes;filterLocale;scrollHeight;lazy=!1;virtualScroll;virtualScrollItemSize;virtualScrollOptions;indentation=1.5;_templateMap;trackBy=(e,i)=>i;highlightOnSelect=!1;selectionChange=new b;onNodeSelect=new b;onNodeUnselect=new b;onNodeExpand=new b;onNodeCollapse=new b;onNodeContextMenuSelect=new b;onNodeDoubleClick=new b;onNodeDrop=new b;onLazyLoad=new b;onScroll=new b;onScrollIndexChange=new b;onFilter=new b;filterTemplate;nodeTemplate;headerTemplate;footerTemplate;loaderTemplate;emptyMessageTemplate;togglerIconTemplate;checkboxIconTemplate;loadingIconTemplate;filterIconTemplate;filterViewChild;scroller;wrapperViewChild;contentViewChild;templates;_headerTemplate;_emptyMessageTemplate;_footerTemplate;_loaderTemplate;_togglerIconTemplate;_checkboxIconTemplate;_loadingIconTemplate;_filterIconTemplate;_filterTemplate;onAfterContentInit(){this.templates.length&&(this._templateMap={}),this.templates.forEach(e=>{switch(e.getType()){case"header":this._headerTemplate=e.template;break;case"empty":this._emptyMessageTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"togglericon":this._togglerIconTemplate=e.template;break;case"checkboxicon":this._checkboxIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"filter":this._filterTemplate=e.template;break;default:this._templateMap[e.name]=e.template;break}})}serializedValue;nodeTouched;dragNodeTree;dragNode;dragNodeSubNodes;dragNodeIndex;dragNodeScope;dragHover;dragStartSubscription;dragStopSubscription;_componentStyle=M(me);handleDropEvent(e){this.onDrop(e)}handleDragOverEvent(e){this.onDragOver(e)}handleDragEnterEvent(){this.onDragEnter()}handleDragLeaveEvent(e){this.onDragLeave(e)}constructor(e){super(),this.dragDropService=e}onInit(){this.filterBy&&(this.filterOptions={filter:e=>this._filter(e),reset:()=>this.resetFilter()}),this.droppableNodes&&(this.dragStartSubscription=this.dragDropService.dragStart$.subscribe(e=>{this.dragNodeTree=e.tree,this.dragNode=e.node,this.dragNodeSubNodes=e.subNodes,this.dragNodeIndex=e.index,this.dragNodeScope=e.scope}),this.dragStopSubscription=this.dragDropService.dragStop$.subscribe(e=>{this.dragNodeTree=null,this.dragNode=null,this.dragNodeSubNodes=null,this.dragNodeIndex=null,this.dragNodeScope=null,this.dragHover=!1}))}onChanges(e){e.value&&(this.updateSerializedValue(),this.hasFilterActive()&&this._filter(this.filterViewChild?.nativeElement?.value))}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(Qe.EMPTY_MESSAGE)}updateSerializedValue(){this.serializedValue=[],this.serializeNodes(null,this.getRootNode(),0,!0)}serializeNodes(e,i,n,o){if(i&&i.length)for(let l of i){l.parent=e;let p={node:l,parent:e,level:n,visible:o&&(e?e.expanded:!0)};this.serializedValue.push(p),p.visible&&l.expanded&&this.serializeNodes(l,l.children,n+1,p.visible)}}onNodeClick(e,i){let n=e.target;if(!(P(n,"p-tree-toggler")||P(n,"p-tree-toggler-icon"))){if(this.selectionMode){if(i.selectable===!1){i.style="--p-focus-ring-color: none;";return}else i.style?.includes("--p-focus-ring-color")||(i.style=i.style?`${i.style}--p-focus-ring-color: var(--primary-color)`:"--p-focus-ring-color: var(--primary-color)");if(this.hasFilteredNodes()&&(i=this.getNodeWithKey(i.key,this.filteredNodes),!i))return;let o=this.findIndexInSelection(i),l=o>=0;if(this.isCheckboxSelectionMode())l?(this.propagateSelectionDown?this.propagateDown(i,!1):this.selection=this.selection.filter((p,x)=>x!=o),this.propagateSelectionUp&&i.parent&&this.propagateUp(i.parent,!1),this.selectionChange.emit(this.selection),this.onNodeUnselect.emit({originalEvent:e,node:i})):(this.propagateSelectionDown?this.propagateDown(i,!0):this.selection=[...this.selection||[],i],this.propagateSelectionUp&&i.parent&&this.propagateUp(i.parent,!0),this.selectionChange.emit(this.selection),this.onNodeSelect.emit({originalEvent:e,node:i}));else if(this.nodeTouched?!1:this.metaKeySelection){let x=e.metaKey||e.ctrlKey;l&&x?(this.isSingleSelectionMode()?this.selectionChange.emit(null):(this.selection=this.selection.filter((F,Tt)=>Tt!=o),this.selectionChange.emit(this.selection)),this.onNodeUnselect.emit({originalEvent:e,node:i})):(this.isSingleSelectionMode()?this.selectionChange.emit(i):this.isMultipleSelectionMode()&&(this.selection=x?this.selection||[]:[],this.selection=[...this.selection,i],this.selectionChange.emit(this.selection)),this.onNodeSelect.emit({originalEvent:e,node:i}))}else this.isSingleSelectionMode()?l?(this.selection=null,this.onNodeUnselect.emit({originalEvent:e,node:i})):(this.selection=i,setTimeout(()=>{this.onNodeSelect.emit({originalEvent:e,node:i})})):l?(this.selection=this.selection.filter((x,F)=>F!=o),this.onNodeUnselect.emit({originalEvent:e,node:i})):(this.selection=[...this.selection||[],i],setTimeout(()=>{this.onNodeSelect.emit({originalEvent:e,node:i})})),this.selectionChange.emit(this.selection)}this.nodeTouched=!1}}onNodeTouchEnd(){this.nodeTouched=!0}onNodeRightClick(e,i){if(this.contextMenu){let n=e.target;if(n.className&&n.className.indexOf("p-tree-toggler")===0)return;this.findIndexInSelection(i)>=0||(this.isSingleSelectionMode()?this.selectionChange.emit(i):this.selectionChange.emit([i])),this.contextMenu.show(e),this.onNodeContextMenuSelect.emit({originalEvent:e,node:i})}}onNodeDblClick(e,i){this.onNodeDoubleClick.emit({originalEvent:e,node:i})}findIndexInSelection(e){let i=-1;if(this.selectionMode&&this.selection)if(this.isSingleSelectionMode())i=this.selection.key&&this.selection.key===e.key||this.selection==e?0:-1;else for(let n=0;n<this.selection.length;n++){let o=this.selection[n];if(o.key&&o.key===e.key||o==e){i=n;break}}return i}syncNodeOption(e,i,n,o){let l=this.hasFilteredNodes()?this.getNodeWithKey(e.key,i):null;l&&(l[n]=o||e[n])}hasFilteredNodes(){return this.filter&&this.filteredNodes&&this.filteredNodes.length}hasFilterActive(){return this.filter&&this.filterViewChild?.nativeElement?.value.length>0}getNodeWithKey(e,i){for(let n of i){if(n.key===e)return n;if(n.children){let o=this.getNodeWithKey(e,n.children);if(o)return o}}}propagateUp(e,i){if(e.children&&e.children.length){let o=0,l=!1;for(let p of e.children)this.isSelected(p)?o++:p.partialSelected&&(l=!0);if(i&&o==e.children.length)this.selection=[...this.selection||[],e],e.partialSelected=!1;else{if(!i){let p=this.findIndexInSelection(e);p>=0&&(this.selection=this.selection.filter((x,F)=>F!=p))}l||o>0&&o!=e.children.length?e.partialSelected=!0:e.partialSelected=!1}this.syncNodeOption(e,this.filteredNodes,"partialSelected")}let n=e.parent;n&&this.propagateUp(n,i)}propagateDown(e,i){let n=this.findIndexInSelection(e);if(i&&n==-1?this.selection=[...this.selection||[],e]:!i&&n>-1&&(this.selection=this.selection.filter((o,l)=>l!=n)),e.partialSelected=!1,this.syncNodeOption(e,this.filteredNodes,"partialSelected"),e.children&&e.children.length)for(let o of e.children)this.propagateDown(o,i)}isSelected(e){return this.findIndexInSelection(e)!=-1}isSingleSelectionMode(){return this.selectionMode&&this.selectionMode=="single"}isMultipleSelectionMode(){return this.selectionMode&&this.selectionMode=="multiple"}isCheckboxSelectionMode(){return this.selectionMode&&this.selectionMode=="checkbox"}isNodeLeaf(e){return e.leaf==!1?!1:!(e.children&&e.children.length)}getRootNode(){return this.filteredNodes?this.filteredNodes:this.value}getTemplateForNode(e){return this._templateMap?e.type?this._templateMap[e.type]:this._templateMap.default:null}onDragOver(e){this.droppableNodes&&this.allowDrop(this.dragNode,null,this.dragNodeScope)&&(e.dataTransfer.dropEffect="copy",e.preventDefault())}onDrop(e){if(this.droppableNodes){e.preventDefault();let i=this.dragNode;if(this.isSameTreeScope(this.dragNodeScope))return;if(this.allowDrop(i,null,this.dragNodeScope)){let n=this.dragNodeIndex;this.value=this.value||[],this.validateDrop?this.onNodeDrop.emit({originalEvent:e,dragNode:i,dropNode:null,index:n,accept:()=>{this.processTreeDrop(i,n)}}):(this.onNodeDrop.emit({originalEvent:e,dragNode:i,dropNode:null,index:n}),this.processTreeDrop(i,n))}}}processTreeDrop(e,i){this.dragNodeSubNodes.splice(i,1),this.value.push(e),this.dragDropService.stopDrag({node:e})}onDragEnter(){this.droppableNodes&&this.allowDrop(this.dragNode,null,this.dragNodeScope)&&(this.dragHover=!0)}onDragLeave(e){if(this.droppableNodes){let i=e.currentTarget.getBoundingClientRect();(e.x>parseInt(i.left)+i.width||e.x<parseInt(i.left)||e.y>parseInt(i.top)+i.height||e.y<parseInt(i.top))&&(this.dragHover=!1)}}allowDrop(e,i,n){if(e)if(this.isValidDragScope(n)){let o=!0;if(i)if(e===i)o=!1;else{let l=i.parent;for(;l!=null;){if(l===e){o=!1;break}l=l.parent}}return o}else return!1;else return!1}hasCommonScope(e,i){if(typeof i=="string"){if(typeof e=="string")return i===e;if(Array.isArray(e))return e.indexOf(i)!=-1}else if(Array.isArray(i)){if(typeof e=="string")return i.indexOf(e)!=-1;if(Array.isArray(e)){for(let n of i)for(let o of e)if(n===o)return!0}}return!1}isSameTreeScope(e){return this.hasCommonScope(e,this.draggableScope)}isValidDragScope(e){let i=this.droppableScope;return i?this.hasCommonScope(e,i):!0}_filter(e){let i=e;if(i==="")this.filteredNodes=null;else{this.filteredNodes=[];let n=this.filterBy.split(","),o=Ce(i).toLocaleLowerCase(this.filterLocale),l=this.filterMode==="strict";for(let p of this.value){let x=K({},p),F={searchFields:n,filterText:o,isStrictMode:l};(l&&(this.findFilteredNodes(x,F)||this.isFilterMatched(x,F))||!l&&(this.isFilterMatched(x,F)||this.findFilteredNodes(x,F)))&&this.filteredNodes.push(x)}}this.updateSerializedValue(),this.onFilter.emit({filter:i,filteredValue:this.filteredNodes})}resetFilter(){this.filteredNodes=null,this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value="")}scrollToVirtualIndex(e){this.virtualScroll&&this.scroller?.scrollToIndex(e)}scrollTo(e){this.virtualScroll?this.scroller?.scrollTo(e):this.wrapperViewChild&&this.wrapperViewChild.nativeElement&&(this.wrapperViewChild.nativeElement.scrollTo?this.wrapperViewChild.nativeElement.scrollTo(e):(this.wrapperViewChild.nativeElement.scrollLeft=e.left,this.wrapperViewChild.nativeElement.scrollTop=e.top))}findFilteredNodes(e,i){if(e){let n=!1;if(e.children){let o=[...e.children];e.children=[];for(let l of o){let p=K({},l);this.isFilterMatched(p,i)&&(n=!0,e.children.push(p))}}if(n)return e.expanded=!0,!0}}isFilterMatched(e,i){let{searchFields:n,filterText:o,isStrictMode:l}=i,p=!1;for(let x of n)Ce(String(Re(e,x))).toLocaleLowerCase(this.filterLocale).indexOf(o)>-1&&(p=!0);return(!p||l&&!this.isNodeLeaf(e))&&(p=this.findFilteredNodes(e,{searchFields:n,filterText:o,isStrictMode:l})||p),p}getIndex(e,i){let n=e.getItemOptions;return n?n(i).index:i}getBlockableElement(){return this.el.nativeElement.children[0]}onDestroy(){this.dragStartSubscription&&this.dragStartSubscription.unsubscribe(),this.dragStopSubscription&&this.dragStopSubscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)(ke(Ue,8))};static \u0275cmp=W({type:t,selectors:[["p-tree"]],contentQueries:function(i,n,o){if(i&1&&(v(o,dt,4),v(o,jt,4),v(o,Wt,4),v(o,Gt,4),v(o,Yt,4),v(o,Jt,4),v(o,Xt,4),v(o,Zt,4),v(o,en,4),v(o,tn,4),v(o,ge,4)),i&2){let l;g(l=f())&&(n.filterTemplate=l.first),g(l=f())&&(n.nodeTemplate=l.first),g(l=f())&&(n.headerTemplate=l.first),g(l=f())&&(n.footerTemplate=l.first),g(l=f())&&(n.loaderTemplate=l.first),g(l=f())&&(n.emptyMessageTemplate=l.first),g(l=f())&&(n.togglerIconTemplate=l.first),g(l=f())&&(n.checkboxIconTemplate=l.first),g(l=f())&&(n.loadingIconTemplate=l.first),g(l=f())&&(n.filterIconTemplate=l.first),g(l=f())&&(n.templates=l)}},viewQuery:function(i,n){if(i&1&&(k(dt,5),k(nn,5),k(on,5),k(ln,5)),i&2){let o;g(o=f())&&(n.filterViewChild=o.first),g(o=f())&&(n.scroller=o.first),g(o=f())&&(n.wrapperViewChild=o.first),g(o=f())&&(n.contentViewChild=o.first)}},hostVars:2,hostBindings:function(i,n){i&1&&S("drop",function(l){return n.handleDropEvent(l)})("dragover",function(l){return n.handleDragOverEvent(l)})("dragenter",function(){return n.handleDragEnterEvent()})("dragleave",function(l){return n.handleDragLeaveEvent(l)}),i&2&&u(n.cn(n.cx("root"),n.styleClass))},inputs:{value:"value",selectionMode:"selectionMode",loadingMode:"loadingMode",selection:"selection",styleClass:"styleClass",contextMenu:"contextMenu",draggableScope:"draggableScope",droppableScope:"droppableScope",draggableNodes:[2,"draggableNodes","draggableNodes",T],droppableNodes:[2,"droppableNodes","droppableNodes",T],metaKeySelection:[2,"metaKeySelection","metaKeySelection",T],propagateSelectionUp:[2,"propagateSelectionUp","propagateSelectionUp",T],propagateSelectionDown:[2,"propagateSelectionDown","propagateSelectionDown",T],loading:[2,"loading","loading",T],loadingIcon:"loadingIcon",emptyMessage:"emptyMessage",ariaLabel:"ariaLabel",togglerAriaLabel:"togglerAriaLabel",ariaLabelledBy:"ariaLabelledBy",validateDrop:[2,"validateDrop","validateDrop",T],filter:[2,"filter","filter",T],filterInputAutoFocus:[2,"filterInputAutoFocus","filterInputAutoFocus",T],filterBy:"filterBy",filterMode:"filterMode",filterOptions:"filterOptions",filterPlaceholder:"filterPlaceholder",filteredNodes:"filteredNodes",filterLocale:"filterLocale",scrollHeight:"scrollHeight",lazy:[2,"lazy","lazy",T],virtualScroll:[2,"virtualScroll","virtualScroll",T],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",R],virtualScrollOptions:"virtualScrollOptions",indentation:[2,"indentation","indentation",R],_templateMap:"_templateMap",trackBy:"trackBy",highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",T]},outputs:{selectionChange:"selectionChange",onNodeSelect:"onNodeSelect",onNodeUnselect:"onNodeUnselect",onNodeExpand:"onNodeExpand",onNodeCollapse:"onNodeCollapse",onNodeContextMenuSelect:"onNodeContextMenuSelect",onNodeDoubleClick:"onNodeDoubleClick",onNodeDrop:"onNodeDrop",onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange",onFilter:"onFilter"},features:[X([me,{provide:ct,useExisting:t},{provide:le,useExisting:t}]),de([V]),G],decls:7,vars:6,consts:[["filter",""],["scroller",""],["content",""],["treeNode",""],["loader",""],["wrapper",""],["emptyFilter",""],[3,"class","pBind",4,"ngIf"],[4,"ngTemplateOutlet"],[3,"class","pt"],[4,"ngIf"],[3,"pBind"],["data-p-icon","spinner","spin","",3,"class","pBind",4,"ngIf"],["data-p-icon","spinner","spin","",3,"pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class","pt",4,"ngIf"],[3,"pt"],["pInputText","","type","search","autocomplete","off",3,"keydown.enter","input","pAutoFocus","pt"],["data-p-icon","search",3,"class","pBind",4,"ngIf"],["data-p-icon","search",3,"pBind"],["hostName","tree",3,"items","tabindex","styleClass","style","scrollHeight","itemSize","lazy","options","pt","onScroll","onScrollIndexChange","onLazyLoad",4,"ngIf"],["hostName","tree",3,"onScroll","onScrollIndexChange","onLazyLoad","items","tabindex","styleClass","scrollHeight","itemSize","lazy","options","pt"],["role","tree",3,"class","ngClass","style","pBind",4,"ngIf"],["role","tree",3,"ngClass","pBind"],[3,"level","rowNode","node","parentNode","firstChild","lastChild","index","itemSize","indentation","loadingMode","pt",4,"ngFor","ngForOf","ngForTrackBy"],[3,"level","rowNode","node","parentNode","firstChild","lastChild","index","itemSize","indentation","loadingMode","pt"],["role","tree",3,"class","pBind",4,"ngIf"],["role","tree",3,"pBind"],[3,"node","firstChild","lastChild","index","level","loadingMode","pt",4,"ngFor","ngForOf","ngForTrackBy"],[3,"node","firstChild","lastChild","index","level","loadingMode","pt"],[4,"ngIf","ngIfElse"]],template:function(i,n){if(i&1&&(c(0,gn,3,5,"div",7)(1,fn,1,0,"ng-container",8),Y(2,_n,1,4,"ng-container")(3,xn,1,1,"p-iconfield",9),c(4,Fn,3,2,"ng-container",10)(5,Ln,3,6,"div",7)(6,Pn,1,0,"ng-container",8)),i&2){let o;r("ngIf",n.loading&&n.loadingMode==="mask"),d(),r("ngTemplateOutlet",n.headerTemplate||n._headerTemplate),d(),J(n.filterTemplate||n._filterTemplate?2:3),d(2),r("ngIf",(o=n.getRootNode())==null?null:o.length),d(),r("ngIf",!n.loading&&(n.getRootNode()==null||n.getRootNode().length===0)),d(),r("ngTemplateOutlet",n.footerTemplate||n._footerTemplate)}},dependencies:[ie,Oe,ee,te,ne,lt,z,Ze,we,nt,Ne,Je,tt,Rn,We,he,V],encapsulation:2,changeDetection:0})}return t})();var ft=`
|
|
186
186
|
.p-treeselect {
|
|
187
187
|
display: inline-flex;
|
|
188
188
|
cursor: pointer;
|
|
@@ -377,4 +377,4 @@ import{a as Xe}from"./chunk-UH5C5HXK.js";import{a as Je,b as Ze,c as tt,d as lt}
|
|
|
377
377
|
.p-treeselect-clear-icon.p-icon {
|
|
378
378
|
flex-shrink: 0;
|
|
379
379
|
}
|
|
380
|
-
`,Qi={root:({instance:t})=>K({position:t.$appendTo()==="self"?"relative":void 0},t.containerStyle)},Ui={root:({instance:t})=>["p-treeselect p-component p-inputwrapper",{"p-treeselect-display-chip":t.display==="chip","p-disabled":t.$disabled(),"p-invalid":t.invalid(),"p-focus":t.focused,"p-variant-filled":t.$variant()==="filled","p-inputwrapper-filled":!t.emptyValue,"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-treeselect-open":t.overlayVisible,"p-treeselect-clearable":t.showClear,"p-treeselect-fluid":t.hasFluid,"p-treeselect-sm p-inputfield-sm":t.size()==="small","p-treeselect-lg p-inputfield-lg":t.size()==="large"}],labelContainer:"p-treeselect-label-container",label:({instance:t})=>["p-treeselect-label",{"p-placeholder":t.label===t.placeholder,"p-treeselect-label-empty":!t.placeholder&&t.emptyValue}],clearIcon:"p-treeselect-clear-icon",chip:"p-treeselect-chip-item",pcChip:"p-treeselect-chip",dropdown:"p-treeselect-dropdown",dropdownIcon:"p-treeselect-dropdown-icon",panel:"p-treeselect-overlay p-component-overlay p-component",treeContainer:"p-treeselect-tree-container",emptyMessage:"p-treeselect-empty-message"},_t=(()=>{class t extends ge{name="treeselect";style=zi;classes=Ui;inlineStyles=Qi;static \u0275fac=(()=>{let e;return function(n){return(e||(e=Q(t)))(n||t)}})();static \u0275prov=ae({token:t,factory:t.\u0275fac})}return t})();var qi={provide:Be,useExisting:re(()=>yt),multi:!0},mt=new j("TREESELECT_INSTANCE"),yt=(()=>{class t extends Ge{$pcTreeSelect=M(mt,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=M(V,{self:!0});_componentStyle=M(_t);onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}inputId;scrollHeight="400px";metaKeySelection=!1;display="comma";selectionMode="single";tabindex="0";ariaLabel;ariaLabelledBy;placeholder;panelClass;panelStyle;panelStyleClass;containerStyle;containerStyleClass;labelStyle;labelStyleClass;overlayOptions;emptyMessage="";filter=!1;filterBy="label";filterMode="lenient";filterPlaceholder;filterLocale;filterInputAutoFocus=!0;propagateSelectionDown=!0;propagateSelectionUp=!0;showClear=!1;resetFilterOnHide=!0;virtualScroll;virtualScrollItemSize;virtualScrollOptions;autofocus;get options(){return this._options}set options(e){this._options=e,this.updateTreeState()}loading;size=Z();variant=Z();fluid=Z(void 0,{transform:T});appendTo=Z(void 0);onNodeExpand=new b;onNodeCollapse=new b;onShow=new b;onHide=new b;onClear=new b;onFilter=new b;onFocus=new b;onBlur=new b;onNodeUnselect=new b;onNodeSelect=new b;$appendTo=L(()=>this.appendTo()||this.config.overlayAppendTo());focusInput;filterViewChild;treeViewChild;panelEl;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;$variant=L(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());pcFluid=M(Ye,{optional:!0,host:!0,skipSelf:!0});get hasFluid(){return this.fluid()??!!this.pcFluid}filteredNodes;filterValue=null;serializedValue;valueTemplate;headerTemplate;emptyTemplate;footerTemplate;clearIconTemplate;triggerIconTemplate;dropdownIconTemplate;filterIconTemplate;closeIconTemplate;itemTogglerIconTemplate;itemCheckboxIconTemplate;itemLoadingIconTemplate;templates;_valueTemplate;_headerTemplate;_emptyTemplate;_footerTemplate;_clearIconTemplate;_triggerIconTemplate;_filterIconTemplate;_closeIconTemplate;_itemTogglerIconTemplate;_itemCheckboxIconTemplate;_itemLoadingIconTemplate;_dropdownIconTemplate;focused;overlayVisible;value;expandedNodes=[];_options;templateMap;listId="";onHostClick(e){this.onClick(e)}onInit(){this.listId=qe("pn_id_")+"_list",this.updateTreeState()}onAfterContentInit(){this.templates.length&&(this.templateMap={}),this.templates.forEach(e=>{switch(e.getType()){case"value":this._valueTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"triggericon":this._triggerIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"closeicon":this._closeIconTemplate=e.template;break;case"itemtogglericon":this._itemTogglerIconTemplate=e.template;break;case"itemcheckboxicon":this._itemCheckboxIconTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"itemloadingicon":this._itemLoadingIconTemplate=e.template;break;default:e.name?this.templateMap[e.name]=e.template:this.valueTemplate=e.template;break}})}onOverlayAnimationStart(e){switch(e.toState){case"visible":if(this.filter)Ce(this.filterValue)&&this.treeViewChild?._filter(this.filterValue),this.filterInputAutoFocus&&this.filterViewChild?.nativeElement.focus();else{let i=oe(this.panelEl?.nativeElement);i&&i.length>0&&i[0].focus()}break}}onOverlayBeforeHide(e){let i=oe(this.el.nativeElement);i&&i.length>0&&i[0].focus()}onSelectionChange(e){this.value=e,this.onModelChange(this.value),this.cd.markForCheck()}onClick(e){this.$disabled()||!this.overlayViewChild?.el?.nativeElement?.contains(e.target)&&!P(e.target,"p-treeselect-close")&&!P(e.target,"p-checkbox-box")&&!P(e.target,"p-checkbox-icon")&&(this.overlayVisible?this.hide():this.show(),this.focusInput?.nativeElement.focus())}onKeyDown(e){switch(e.code){case"ArrowDown":this.overlayVisible||(this.show(),e.preventDefault()),this.onArrowDown(e),e.preventDefault();break;case"Space":case"Enter":this.overlayVisible||(this.show(),e.preventDefault());break;case"Escape":this.overlayVisible&&(this.hide(),this.focusInput?.nativeElement.focus(),e.preventDefault());break;case"Tab":this.onTabKey(e);break;default:break}}onFilterInput(e){this.filterValue=e.target.value,this.treeViewChild?._filter(this.filterValue),this.onFilter.emit({filter:this.filterValue,filteredValue:this.treeViewChild?.filteredNodes}),setTimeout(()=>{this.overlayViewChild?.alignOverlay()})}onArrowDown(e){if(this.overlayVisible&&this.panelEl?.nativeElement){let i=oe(this.panelEl.nativeElement,".p-tree-node");i&&i.length>0&&i[0].focus(),e.preventDefault()}}onFirstHiddenFocus(e){let i=e.relatedTarget===this.focusInput?.nativeElement?Re(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInput?.nativeElement;$(i)}onLastHiddenFocus(e){let i=e.relatedTarget===this.focusInput?.nativeElement?ze(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInput?.nativeElement;$(i)}show(){this.overlayVisible=!0}hide(e){this.overlayVisible=!1,this.resetFilter(),this.onHide.emit(e),this.cd.markForCheck()}clear(e){this.value=null,this.resetExpandedNodes(),this.resetPartialSelected(),this.onModelChange(this.value),this.onClear.emit(),e.stopPropagation()}checkValue(){return this.value!==null&&Ce(this.value)}onTabKey(e,i=!1){i||(this.overlayVisible&&this.hasFocusableElements()?($(e.shiftKey?this.lastHiddenFocusableElementOnOverlay?.nativeElement:this.firstHiddenFocusableElementOnOverlay?.nativeElement),e.preventDefault()):this.overlayVisible&&this.hide(this.filter))}hasFocusableElements(){return oe(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}resetFilter(){this.filter&&!this.resetFilterOnHide?(this.filteredNodes=this.treeViewChild?.filteredNodes,this.treeViewChild?.resetFilter()):this.filterValue=null}updateTreeState(){if(this.value){let e=this.selectionMode==="single"?[this.value]:[...this.value];this.resetExpandedNodes(),this.resetPartialSelected(),e&&this.options&&this.updateTreeBranchState(null,null,e)}}updateTreeBranchState(e,i,n){if(e){if(this.isSelected(e)&&(this.expandPath(i),n.splice(n.indexOf(e),1)),n.length>0&&e.children)for(let o of e.children)this.updateTreeBranchState(o,[...i,e],n)}else for(let o of this.options)this.updateTreeBranchState(o,[],n)}expandPath(e){for(let i of e)i.expanded=!0;this.expandedNodes=[...e]}nodeExpand(e){this.onNodeExpand.emit(e),this.expandedNodes.push(e.node),setTimeout(()=>{this.overlayViewChild?.alignOverlay()})}nodeCollapse(e){this.onNodeCollapse.emit(e),this.expandedNodes.splice(this.expandedNodes.indexOf(e.node),1),setTimeout(()=>{this.overlayViewChild?.alignOverlay()})}resetExpandedNodes(){for(let e of this.expandedNodes)e.expanded=!1;this.expandedNodes=[]}resetPartialSelected(e=this.options){if(e)for(let i of e)i.partialSelected=!1,i.children&&i.children?.length>0&&this.resetPartialSelected(i.children)}findSelectedNodes(e,i,n){if(e){if(this.isSelected(e)&&(n.push(e),delete i[e.key]),Object.keys(i).length&&e.children)for(let o of e.children)this.findSelectedNodes(o,i,n)}else for(let o of this.options)this.findSelectedNodes(o,i,n)}isSelected(e){return this.findIndexInSelection(e)!=-1}findIndexInSelection(e){let i=-1;if(this.value)if(this.selectionMode==="single")i=this.value.key&&this.value.key===e.key||this.value==e?0:-1;else for(let n=0;n<this.value.length;n++){let o=this.value[n];if(o.key&&o.key===e.key||o==e){i=n;break}}return i}onSelect(e){this.onNodeSelect.emit(e),this.selectionMode==="single"&&(this.hide(),this.focusInput?.nativeElement.focus())}onUnselect(e){this.onNodeUnselect.emit(e)}onInputFocus(e){this.$disabled()||(this.focused=!0,this.onFocus.emit(e))}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),this.onModelTouched()}writeControlValue(e){this.value=e,this.updateTreeState(),this.cd.markForCheck()}get emptyValue(){return!this.value||Object.keys(this.value).length===0}get emptyOptions(){return!this.options||this.options.length===0}get label(){let e=this.value||[];return e.length?e.map(i=>i.label).join(", "):this.selectionMode==="single"&&this.value?e.label:this.placeholder}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Q(t)))(n||t)}})();static \u0275cmp=W({type:t,selectors:[["p-treeSelect"],["p-treeselect"],["p-tree-select"]],contentQueries:function(i,n,o){if(i&1&&(v(o,zn,4),v(o,Qn,4),v(o,Un,4),v(o,qn,4),v(o,$n,4),v(o,Kn,4),v(o,jn,4),v(o,Wn,4),v(o,Gn,4),v(o,Yn,4),v(o,Jn,4),v(o,Xn,4),v(o,fe,4)),i&2){let l;g(l=f())&&(n.valueTemplate=l.first),g(l=f())&&(n.headerTemplate=l.first),g(l=f())&&(n.emptyTemplate=l.first),g(l=f())&&(n.footerTemplate=l.first),g(l=f())&&(n.clearIconTemplate=l.first),g(l=f())&&(n.triggerIconTemplate=l.first),g(l=f())&&(n.dropdownIconTemplate=l.first),g(l=f())&&(n.filterIconTemplate=l.first),g(l=f())&&(n.closeIconTemplate=l.first),g(l=f())&&(n.itemTogglerIconTemplate=l.first),g(l=f())&&(n.itemCheckboxIconTemplate=l.first),g(l=f())&&(n.itemLoadingIconTemplate=l.first),g(l=f())&&(n.templates=l)}},viewQuery:function(i,n){if(i&1&&(k(Zn,5),k(ei,5),k(ti,5),k(ni,5),k(ii,5),k(oi,5),k(li,5)),i&2){let o;g(o=f())&&(n.focusInput=o.first),g(o=f())&&(n.filterViewChild=o.first),g(o=f())&&(n.treeViewChild=o.first),g(o=f())&&(n.panelEl=o.first),g(o=f())&&(n.overlayViewChild=o.first),g(o=f())&&(n.firstHiddenFocusableElementOnOverlay=o.first),g(o=f())&&(n.lastHiddenFocusableElementOnOverlay=o.first)}},hostVars:4,hostBindings:function(i,n){i&1&&S("click",function(l){return n.onHostClick(l)}),i&2&&(U(n.sx("root")),u(n.cn(n.cx("root"),n.containerStyleClass)))},inputs:{inputId:"inputId",scrollHeight:"scrollHeight",metaKeySelection:[2,"metaKeySelection","metaKeySelection",T],display:"display",selectionMode:"selectionMode",tabindex:"tabindex",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",placeholder:"placeholder",panelClass:"panelClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",containerStyle:"containerStyle",containerStyleClass:"containerStyleClass",labelStyle:"labelStyle",labelStyleClass:"labelStyleClass",overlayOptions:"overlayOptions",emptyMessage:"emptyMessage",filter:[2,"filter","filter",T],filterBy:"filterBy",filterMode:"filterMode",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",filterInputAutoFocus:[2,"filterInputAutoFocus","filterInputAutoFocus",T],propagateSelectionDown:[2,"propagateSelectionDown","propagateSelectionDown",T],propagateSelectionUp:[2,"propagateSelectionUp","propagateSelectionUp",T],showClear:[2,"showClear","showClear",T],resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",T],virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",autofocus:[2,"autofocus","autofocus",T],options:"options",loading:[2,"loading","loading",T],size:[1,"size"],variant:[1,"variant"],fluid:[1,"fluid"],appendTo:[1,"appendTo"]},outputs:{onNodeExpand:"onNodeExpand",onNodeCollapse:"onNodeCollapse",onShow:"onShow",onHide:"onHide",onClear:"onClear",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onNodeUnselect:"onNodeUnselect",onNodeSelect:"onNodeSelect"},features:[X([qi,_t,{provide:mt,useExisting:t},{provide:le,useExisting:t}]),de([V]),G],decls:16,vars:35,consts:[["focusInput",""],["defaultValueTemplate",""],["overlay",""],["content",""],["chipsValueTemplate",""],["panel",""],["firstHiddenFocusableEl",""],["tree",""],["lastHiddenFocusableEl",""],["empty",""],["togglericon",""],["checkboxicon",""],["loadingicon",""],[1,"p-hidden-accessible",3,"pBind"],["type","text","role","combobox","readonly","",3,"focus","blur","keydown","pAutoFocus","pBind"],[3,"pBind"],[3,"ngStyle","pBind"],[4,"ngIf","ngIfElse"],[4,"ngIf"],["role","button","aria-haspopup","tree",3,"pBind"],["data-p-icon","chevron-down",3,"class","pBind",4,"ngIf"],[3,"class","pBind",4,"ngIf"],[3,"visibleChange","onAnimationStart","onBeforeHide","onShow","onHide","hostAttrSelector","visible","options","target","appendTo","pt"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class","pBind",4,"ngFor","ngForOf"],[3,"label","pt"],["data-p-icon","times",3,"class","pBind","click",4,"ngIf"],[3,"class","pBind","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[3,"click","pBind"],[4,"ngTemplateOutlet"],["data-p-icon","chevron-down",3,"pBind"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus","pBind"],[3,"selectionChange","onNodeExpand","onNodeCollapse","onNodeSelect","onNodeUnselect","value","propagateSelectionDown","propagateSelectionUp","selectionMode","selection","metaKeySelection","emptyMessage","filter","filterBy","filterMode","filterPlaceholder","filterLocale","filteredNodes","virtualScroll","virtualScrollItemSize","virtualScrollOptions","_templateMap","loading","filterInputAutoFocus","pt"]],template:function(i,n){if(i&1){let o=O();m(0,"div",13)(1,"input",14,0),S("focus",function(p){return h(o),_(n.onInputFocus(p))})("blur",function(p){return h(o),_(n.onInputBlur(p))})("keydown",function(p){return h(o),_(n.onKeyDown(p))}),y()(),m(3,"div",15)(4,"div",16),c(5,pi,2,5,"ng-container",17)(6,_i,3,2,"ng-template",null,1,D),y()(),c(8,bi,3,2,"ng-container",18),m(9,"div",19),c(10,xi,1,3,"svg",20)(11,Ni,2,4,"span",21),y(),m(12,"p-overlay",22,2),Ve("visibleChange",function(p){return h(o),Me(n.overlayVisible,p)||(n.overlayVisible=p),_(p)}),S("onAnimationStart",function(p){return h(o),_(n.onOverlayAnimationStart(p))})("onBeforeHide",function(p){return h(o),_(n.onOverlayBeforeHide(p))})("onShow",function(p){return h(o),_(n.onShow.emit(p))})("onHide",function(p){return h(o),_(n.hide(p))}),c(14,Ri,15,53,"ng-template",null,3,D),y()}if(i&2){let o=ve(7);r("pBind",n.ptm("hiddenInputContainer")),w("data-p-hidden-accessible",!0),d(),r("pAutoFocus",n.autofocus)("pBind",n.ptm("hiddenInput")),w("id",n.inputId)("disabled",n.$disabled()?"":void 0)("tabindex",n.$disabled()?-1:n.tabindex)("aria-controls",n.overlayVisible?n.listId:null)("aria-haspopup","tree")("aria-expanded",n.overlayVisible??!1)("aria-labelledby",n.ariaLabelledBy)("aria-label",n.ariaLabel||(n.label==="p-emptylabel"?void 0:n.label)),d(2),u(n.cx("labelContainer")),r("pBind",n.ptm("labelContainer")),d(),u(n.cn(n.cx("label"),n.labelStyleClass)),r("ngStyle",n.labelStyle)("pBind",n.ptm("label")),d(),r("ngIf",n.valueTemplate||n._valueTemplate)("ngIfElse",o),d(3),r("ngIf",n.checkValue()&&!n.$disabled()&&n.showClear),d(),u(n.cx("dropdown")),r("pBind",n.ptm("dropdown")),w("aria-expanded",n.overlayVisible??!1)("aria-label","treeselect trigger"),d(),r("ngIf",!n.triggerIconTemplate&&!n._triggerIconTemplate&&!n.dropdownIconTemplate&&!n._dropdownIconTemplate),d(),r("ngIf",n.triggerIconTemplate||n._triggerIconTemplate||n.dropdownIconTemplate||n._dropdownIconTemplate),d(),r("hostAttrSelector",n.$attrSelector),De("visible",n.overlayVisible),r("options",n.overlayOptions)("target","@parent")("appendTo",n.$appendTo())("pt",n.ptm("pcOverlay"))}},dependencies:[ie,ee,te,ne,ue,it,z,Ee,he,et,_e,at,V],encapsulation:2,changeDetection:0})}return t})(),nl=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Te({type:t});static \u0275inj=ye({imports:[yt,z,z]})}return t})();export{yt as a,nl as b};
|
|
380
|
+
`,Qi={root:({instance:t})=>K({position:t.$appendTo()==="self"?"relative":void 0},t.containerStyle)},Ui={root:({instance:t})=>["p-treeselect p-component p-inputwrapper",{"p-treeselect-display-chip":t.display==="chip","p-disabled":t.$disabled(),"p-invalid":t.invalid(),"p-focus":t.focused,"p-variant-filled":t.$variant()==="filled","p-inputwrapper-filled":!t.emptyValue,"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-treeselect-open":t.overlayVisible,"p-treeselect-clearable":t.showClear,"p-treeselect-fluid":t.hasFluid,"p-treeselect-sm p-inputfield-sm":t.size()==="small","p-treeselect-lg p-inputfield-lg":t.size()==="large"}],labelContainer:"p-treeselect-label-container",label:({instance:t})=>["p-treeselect-label",{"p-placeholder":t.label===t.placeholder,"p-treeselect-label-empty":!t.placeholder&&t.emptyValue}],clearIcon:"p-treeselect-clear-icon",chip:"p-treeselect-chip-item",pcChip:"p-treeselect-chip",dropdown:"p-treeselect-dropdown",dropdownIcon:"p-treeselect-dropdown-icon",panel:"p-treeselect-overlay p-component-overlay p-component",treeContainer:"p-treeselect-tree-container",emptyMessage:"p-treeselect-empty-message"},_t=(()=>{class t extends fe{name="treeselect";style=zi;classes=Ui;inlineStyles=Qi;static \u0275fac=(()=>{let e;return function(n){return(e||(e=Q(t)))(n||t)}})();static \u0275prov=ae({token:t,factory:t.\u0275fac})}return t})();var qi={provide:qe,useExisting:re(()=>yt),multi:!0},mt=new j("TREESELECT_INSTANCE"),yt=(()=>{class t extends Ge{$pcTreeSelect=M(mt,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=M(V,{self:!0});_componentStyle=M(_t);onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}inputId;scrollHeight="400px";metaKeySelection=!1;display="comma";selectionMode="single";tabindex="0";ariaLabel;ariaLabelledBy;placeholder;panelClass;panelStyle;panelStyleClass;containerStyle;containerStyleClass;labelStyle;labelStyleClass;overlayOptions;emptyMessage="";filter=!1;filterBy="label";filterMode="lenient";filterPlaceholder;filterLocale;filterInputAutoFocus=!0;propagateSelectionDown=!0;propagateSelectionUp=!0;showClear=!1;resetFilterOnHide=!0;virtualScroll;virtualScrollItemSize;virtualScrollOptions;autofocus;get options(){return this._options}set options(e){this._options=e,this.updateTreeState()}loading;size=Z();variant=Z();fluid=Z(void 0,{transform:T});appendTo=Z(void 0);onNodeExpand=new b;onNodeCollapse=new b;onShow=new b;onHide=new b;onClear=new b;onFilter=new b;onFocus=new b;onBlur=new b;onNodeUnselect=new b;onNodeSelect=new b;$appendTo=L(()=>this.appendTo()||this.config.overlayAppendTo());focusInput;filterViewChild;treeViewChild;panelEl;overlayViewChild;firstHiddenFocusableElementOnOverlay;lastHiddenFocusableElementOnOverlay;$variant=L(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());pcFluid=M(Ye,{optional:!0,host:!0,skipSelf:!0});get hasFluid(){return this.fluid()??!!this.pcFluid}filteredNodes;filterValue=null;serializedValue;valueTemplate;headerTemplate;emptyTemplate;footerTemplate;clearIconTemplate;triggerIconTemplate;dropdownIconTemplate;filterIconTemplate;closeIconTemplate;itemTogglerIconTemplate;itemCheckboxIconTemplate;itemLoadingIconTemplate;templates;_valueTemplate;_headerTemplate;_emptyTemplate;_footerTemplate;_clearIconTemplate;_triggerIconTemplate;_filterIconTemplate;_closeIconTemplate;_itemTogglerIconTemplate;_itemCheckboxIconTemplate;_itemLoadingIconTemplate;_dropdownIconTemplate;focused;overlayVisible;value;expandedNodes=[];_options;templateMap;listId="";onHostClick(e){this.onClick(e)}onInit(){this.listId=ze("pn_id_")+"_list",this.updateTreeState()}onAfterContentInit(){this.templates.length&&(this.templateMap={}),this.templates.forEach(e=>{switch(e.getType()){case"value":this._valueTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"triggericon":this._triggerIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"closeicon":this._closeIconTemplate=e.template;break;case"itemtogglericon":this._itemTogglerIconTemplate=e.template;break;case"itemcheckboxicon":this._itemCheckboxIconTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"itemloadingicon":this._itemLoadingIconTemplate=e.template;break;default:e.name?this.templateMap[e.name]=e.template:this.valueTemplate=e.template;break}})}onOverlayAnimationStart(e){switch(e.toState){case"visible":if(this.filter)Se(this.filterValue)&&this.treeViewChild?._filter(this.filterValue),this.filterInputAutoFocus&&this.filterViewChild?.nativeElement.focus();else{let i=oe(this.panelEl?.nativeElement);i&&i.length>0&&i[0].focus()}break}}onOverlayBeforeHide(e){let i=oe(this.el.nativeElement);i&&i.length>0&&i[0].focus()}onSelectionChange(e){this.value=e,this.onModelChange(this.value),this.cd.markForCheck()}onClick(e){this.$disabled()||!this.overlayViewChild?.el?.nativeElement?.contains(e.target)&&!P(e.target,"p-treeselect-close")&&!P(e.target,"p-checkbox-box")&&!P(e.target,"p-checkbox-icon")&&(this.overlayVisible?this.hide():this.show(),this.focusInput?.nativeElement.focus())}onKeyDown(e){switch(e.code){case"ArrowDown":this.overlayVisible||(this.show(),e.preventDefault()),this.onArrowDown(e),e.preventDefault();break;case"Space":case"Enter":this.overlayVisible||(this.show(),e.preventDefault());break;case"Escape":this.overlayVisible&&(this.hide(),this.focusInput?.nativeElement.focus(),e.preventDefault());break;case"Tab":this.onTabKey(e);break;default:break}}onFilterInput(e){this.filterValue=e.target.value,this.treeViewChild?._filter(this.filterValue),this.onFilter.emit({filter:this.filterValue,filteredValue:this.treeViewChild?.filteredNodes}),setTimeout(()=>{this.overlayViewChild?.alignOverlay()})}onArrowDown(e){if(this.overlayVisible&&this.panelEl?.nativeElement){let i=oe(this.panelEl.nativeElement,".p-tree-node");i&&i.length>0&&i[0].focus(),e.preventDefault()}}onFirstHiddenFocus(e){let i=e.relatedTarget===this.focusInput?.nativeElement?Le(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInput?.nativeElement;$(i)}onLastHiddenFocus(e){let i=e.relatedTarget===this.focusInput?.nativeElement?Pe(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInput?.nativeElement;$(i)}show(){this.overlayVisible=!0}hide(e){this.overlayVisible=!1,this.resetFilter(),this.onHide.emit(e),this.cd.markForCheck()}clear(e){this.value=null,this.resetExpandedNodes(),this.resetPartialSelected(),this.onModelChange(this.value),this.onClear.emit(),e.stopPropagation()}checkValue(){return this.value!==null&&Se(this.value)}onTabKey(e,i=!1){i||(this.overlayVisible&&this.hasFocusableElements()?($(e.shiftKey?this.lastHiddenFocusableElementOnOverlay?.nativeElement:this.firstHiddenFocusableElementOnOverlay?.nativeElement),e.preventDefault()):this.overlayVisible&&this.hide(this.filter))}hasFocusableElements(){return oe(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}resetFilter(){this.filter&&!this.resetFilterOnHide?(this.filteredNodes=this.treeViewChild?.filteredNodes,this.treeViewChild?.resetFilter()):this.filterValue=null}updateTreeState(){if(this.value){let e=this.selectionMode==="single"?[this.value]:[...this.value];this.resetExpandedNodes(),this.resetPartialSelected(),e&&this.options&&this.updateTreeBranchState(null,null,e)}}updateTreeBranchState(e,i,n){if(e){if(this.isSelected(e)&&(this.expandPath(i),n.splice(n.indexOf(e),1)),n.length>0&&e.children)for(let o of e.children)this.updateTreeBranchState(o,[...i,e],n)}else for(let o of this.options)this.updateTreeBranchState(o,[],n)}expandPath(e){for(let i of e)i.expanded=!0;this.expandedNodes=[...e]}nodeExpand(e){this.onNodeExpand.emit(e),this.expandedNodes.push(e.node),setTimeout(()=>{this.overlayViewChild?.alignOverlay()})}nodeCollapse(e){this.onNodeCollapse.emit(e),this.expandedNodes.splice(this.expandedNodes.indexOf(e.node),1),setTimeout(()=>{this.overlayViewChild?.alignOverlay()})}resetExpandedNodes(){for(let e of this.expandedNodes)e.expanded=!1;this.expandedNodes=[]}resetPartialSelected(e=this.options){if(e)for(let i of e)i.partialSelected=!1,i.children&&i.children?.length>0&&this.resetPartialSelected(i.children)}findSelectedNodes(e,i,n){if(e){if(this.isSelected(e)&&(n.push(e),delete i[e.key]),Object.keys(i).length&&e.children)for(let o of e.children)this.findSelectedNodes(o,i,n)}else for(let o of this.options)this.findSelectedNodes(o,i,n)}isSelected(e){return this.findIndexInSelection(e)!=-1}findIndexInSelection(e){let i=-1;if(this.value)if(this.selectionMode==="single")i=this.value.key&&this.value.key===e.key||this.value==e?0:-1;else for(let n=0;n<this.value.length;n++){let o=this.value[n];if(o.key&&o.key===e.key||o==e){i=n;break}}return i}onSelect(e){this.onNodeSelect.emit(e),this.selectionMode==="single"&&(this.hide(),this.focusInput?.nativeElement.focus())}onUnselect(e){this.onNodeUnselect.emit(e)}onInputFocus(e){this.$disabled()||(this.focused=!0,this.onFocus.emit(e))}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),this.onModelTouched()}writeControlValue(e){this.value=e,this.updateTreeState(),this.cd.markForCheck()}get emptyValue(){return!this.value||Object.keys(this.value).length===0}get emptyOptions(){return!this.options||this.options.length===0}get label(){let e=this.value||[];return e.length?e.map(i=>i.label).join(", "):this.selectionMode==="single"&&this.value?e.label:this.placeholder}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Q(t)))(n||t)}})();static \u0275cmp=W({type:t,selectors:[["p-treeSelect"],["p-treeselect"],["p-tree-select"]],contentQueries:function(i,n,o){if(i&1&&(v(o,zn,4),v(o,Qn,4),v(o,Un,4),v(o,qn,4),v(o,$n,4),v(o,Kn,4),v(o,jn,4),v(o,Wn,4),v(o,Gn,4),v(o,Yn,4),v(o,Jn,4),v(o,Xn,4),v(o,ge,4)),i&2){let l;g(l=f())&&(n.valueTemplate=l.first),g(l=f())&&(n.headerTemplate=l.first),g(l=f())&&(n.emptyTemplate=l.first),g(l=f())&&(n.footerTemplate=l.first),g(l=f())&&(n.clearIconTemplate=l.first),g(l=f())&&(n.triggerIconTemplate=l.first),g(l=f())&&(n.dropdownIconTemplate=l.first),g(l=f())&&(n.filterIconTemplate=l.first),g(l=f())&&(n.closeIconTemplate=l.first),g(l=f())&&(n.itemTogglerIconTemplate=l.first),g(l=f())&&(n.itemCheckboxIconTemplate=l.first),g(l=f())&&(n.itemLoadingIconTemplate=l.first),g(l=f())&&(n.templates=l)}},viewQuery:function(i,n){if(i&1&&(k(Zn,5),k(ei,5),k(ti,5),k(ni,5),k(ii,5),k(oi,5),k(li,5)),i&2){let o;g(o=f())&&(n.focusInput=o.first),g(o=f())&&(n.filterViewChild=o.first),g(o=f())&&(n.treeViewChild=o.first),g(o=f())&&(n.panelEl=o.first),g(o=f())&&(n.overlayViewChild=o.first),g(o=f())&&(n.firstHiddenFocusableElementOnOverlay=o.first),g(o=f())&&(n.lastHiddenFocusableElementOnOverlay=o.first)}},hostVars:4,hostBindings:function(i,n){i&1&&S("click",function(l){return n.onHostClick(l)}),i&2&&(U(n.sx("root")),u(n.cn(n.cx("root"),n.containerStyleClass)))},inputs:{inputId:"inputId",scrollHeight:"scrollHeight",metaKeySelection:[2,"metaKeySelection","metaKeySelection",T],display:"display",selectionMode:"selectionMode",tabindex:"tabindex",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",placeholder:"placeholder",panelClass:"panelClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",containerStyle:"containerStyle",containerStyleClass:"containerStyleClass",labelStyle:"labelStyle",labelStyleClass:"labelStyleClass",overlayOptions:"overlayOptions",emptyMessage:"emptyMessage",filter:[2,"filter","filter",T],filterBy:"filterBy",filterMode:"filterMode",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",filterInputAutoFocus:[2,"filterInputAutoFocus","filterInputAutoFocus",T],propagateSelectionDown:[2,"propagateSelectionDown","propagateSelectionDown",T],propagateSelectionUp:[2,"propagateSelectionUp","propagateSelectionUp",T],showClear:[2,"showClear","showClear",T],resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",T],virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",autofocus:[2,"autofocus","autofocus",T],options:"options",loading:[2,"loading","loading",T],size:[1,"size"],variant:[1,"variant"],fluid:[1,"fluid"],appendTo:[1,"appendTo"]},outputs:{onNodeExpand:"onNodeExpand",onNodeCollapse:"onNodeCollapse",onShow:"onShow",onHide:"onHide",onClear:"onClear",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onNodeUnselect:"onNodeUnselect",onNodeSelect:"onNodeSelect"},features:[X([qi,_t,{provide:mt,useExisting:t},{provide:le,useExisting:t}]),de([V]),G],decls:16,vars:35,consts:[["focusInput",""],["defaultValueTemplate",""],["overlay",""],["content",""],["chipsValueTemplate",""],["panel",""],["firstHiddenFocusableEl",""],["tree",""],["lastHiddenFocusableEl",""],["empty",""],["togglericon",""],["checkboxicon",""],["loadingicon",""],[1,"p-hidden-accessible",3,"pBind"],["type","text","role","combobox","readonly","",3,"focus","blur","keydown","pAutoFocus","pBind"],[3,"pBind"],[3,"ngStyle","pBind"],[4,"ngIf","ngIfElse"],[4,"ngIf"],["role","button","aria-haspopup","tree",3,"pBind"],["data-p-icon","chevron-down",3,"class","pBind",4,"ngIf"],[3,"class","pBind",4,"ngIf"],[3,"visibleChange","onAnimationStart","onBeforeHide","onShow","onHide","hostAttrSelector","visible","options","target","appendTo","pt"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"class","pBind",4,"ngFor","ngForOf"],[3,"label","pt"],["data-p-icon","times",3,"class","pBind","click",4,"ngIf"],[3,"class","pBind","click",4,"ngIf"],["data-p-icon","times",3,"click","pBind"],[3,"click","pBind"],[4,"ngTemplateOutlet"],["data-p-icon","chevron-down",3,"pBind"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus","pBind"],[3,"selectionChange","onNodeExpand","onNodeCollapse","onNodeSelect","onNodeUnselect","value","propagateSelectionDown","propagateSelectionUp","selectionMode","selection","metaKeySelection","emptyMessage","filter","filterBy","filterMode","filterPlaceholder","filterLocale","filteredNodes","virtualScroll","virtualScrollItemSize","virtualScrollOptions","_templateMap","loading","filterInputAutoFocus","pt"]],template:function(i,n){if(i&1){let o=O();m(0,"div",13)(1,"input",14,0),S("focus",function(p){return h(o),_(n.onInputFocus(p))})("blur",function(p){return h(o),_(n.onInputBlur(p))})("keydown",function(p){return h(o),_(n.onKeyDown(p))}),y()(),m(3,"div",15)(4,"div",16),c(5,pi,2,5,"ng-container",17)(6,_i,3,2,"ng-template",null,1,D),y()(),c(8,bi,3,2,"ng-container",18),m(9,"div",19),c(10,xi,1,3,"svg",20)(11,Ni,2,4,"span",21),y(),m(12,"p-overlay",22,2),Ve("visibleChange",function(p){return h(o),Me(n.overlayVisible,p)||(n.overlayVisible=p),_(p)}),S("onAnimationStart",function(p){return h(o),_(n.onOverlayAnimationStart(p))})("onBeforeHide",function(p){return h(o),_(n.onOverlayBeforeHide(p))})("onShow",function(p){return h(o),_(n.onShow.emit(p))})("onHide",function(p){return h(o),_(n.hide(p))}),c(14,Ri,15,53,"ng-template",null,3,D),y()}if(i&2){let o=ve(7);r("pBind",n.ptm("hiddenInputContainer")),w("data-p-hidden-accessible",!0),d(),r("pAutoFocus",n.autofocus)("pBind",n.ptm("hiddenInput")),w("id",n.inputId)("disabled",n.$disabled()?"":void 0)("tabindex",n.$disabled()?-1:n.tabindex)("aria-controls",n.overlayVisible?n.listId:null)("aria-haspopup","tree")("aria-expanded",n.overlayVisible??!1)("aria-labelledby",n.ariaLabelledBy)("aria-label",n.ariaLabel||(n.label==="p-emptylabel"?void 0:n.label)),d(2),u(n.cx("labelContainer")),r("pBind",n.ptm("labelContainer")),d(),u(n.cn(n.cx("label"),n.labelStyleClass)),r("ngStyle",n.labelStyle)("pBind",n.ptm("label")),d(),r("ngIf",n.valueTemplate||n._valueTemplate)("ngIfElse",o),d(3),r("ngIf",n.checkValue()&&!n.$disabled()&&n.showClear),d(),u(n.cx("dropdown")),r("pBind",n.ptm("dropdown")),w("aria-expanded",n.overlayVisible??!1)("aria-label","treeselect trigger"),d(),r("ngIf",!n.triggerIconTemplate&&!n._triggerIconTemplate&&!n.dropdownIconTemplate&&!n._dropdownIconTemplate),d(),r("ngIf",n.triggerIconTemplate||n._triggerIconTemplate||n.dropdownIconTemplate||n._dropdownIconTemplate),d(),r("hostAttrSelector",n.$attrSelector),De("visible",n.overlayVisible),r("options",n.overlayOptions)("target","@parent")("appendTo",n.$appendTo())("pt",n.ptm("pcOverlay"))}},dependencies:[ie,ee,te,ne,ue,it,z,Ee,he,et,_e,at,V],encapsulation:2,changeDetection:0})}return t})(),nl=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Te({type:t});static \u0275inj=ye({imports:[yt,z,z]})}return t})();export{yt as a,nl as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as ve}from"./chunk-QQF5ZMGS.js";import{a as Se,b as we}from"./chunk-6NS3D6KQ.js";import{a as Te,b as ye}from"./chunk-LUJ3SHSP.js";import{a as fe}from"./chunk-DLHIDOS3.js";import{a as pe,b as ge,c as ue,g as he,i as Ce,j as xe}from"./chunk-5WT456T7.js";import{a as _e}from"./chunk-YNL43MLU.js";import{b as be}from"./chunk-4S4BOPUV.js";import{a as le}from"./chunk-A2RTZANN.js";import{c as me}from"./chunk-O4D64GHO.js";import{a as D}from"./chunk-ZSUWHVKX.js";import{h as se}from"./chunk-O3QPBAV5.js";import{a as ae,b as re,c as ce}from"./chunk-5UFP37GQ.js";import{c as Z}from"./chunk-UPRDDI4K.js";import{A as L,b as de,h as $,m as B}from"./chunk-WAXAIL2I.js";import{A as oe,q as te,v as ne,z as ie}from"./chunk-JNRCB7N3.js";import{G,Hb as N,Ia as R,Ic as z,Nb as T,Nc as _,Oc as F,Pc as P,Rc as E,Sc as k,Tc as O,Xc as Y,ac as u,ad as M,bd as J,ca as K,cc as h,dc as I,ec as X,f as q,fc as v,gc as S,hc as d,ic as r,id as U,jc as s,jd as H,kc as w,kd as Q,ld as ee,mb as y,ob as c,qc as j,ra as b,rc as C,tb as A,ud as V,wc as x,ya as p,yc as a,za as g}from"./chunk-OHGMB7HJ.js";function Fe(t,l){if(t&1){let e=C();r(0,"span")(1,"mat-checkbox",4),x("change",function(n){p(e);let o=a();return g(o.onSelectAll(n==null?null:n.checked))}),r(2,"h5",5),_(3,"Select All"),s()()()}}function Pe(t,l){if(t&1){let e=C();r(0,"li")(1,"mat-checkbox",6),O("ngModelChange",function(n){let o=p(e).$implicit;return k(o.selected,n)||(o.selected=n),g(n)}),r(2,"div",7),w(3,"img",8),r(4,"h5",9),_(5),s()()()()}if(t&2){let e=l.$implicit;c(),E("ngModel",e.selected),c(2),d("src",e.Img,y),c(2),F(e.Name)}}var dt=(()=>{let l=class l{constructor(){this.data=b(ge),this.dialogRef=b(pe),this.selectedItems=this.data.selectedItems,this.channels=this.data.channels}ngOnInit(){this.initModalConfig()}initModalConfig(){let i=this.data.title?this.data.title:"Updating Inventory";this.modalConfig=new Ce,this.modalConfig.title=i}onSelectAll(i){this.channels=this.channels.map(n=>(n.selected=i,n))}onOk(){this.dialogRef.close(this.channels)}onClose(){this.dialogRef.close()}get getSelectedChannel(){return this.channels.filter(i=>i.selected)}};l.\u0275fac=function(n){return new(n||l)},l.\u0275cmp=N({type:l,selectors:[["app-modal-update-channels"]],decls:7,vars:3,consts:[[3,"onOk","onClose","onCancel","dynamicValidated","config"],["content",""],[2,"overflow-y","auto","max-height","28rem"],[1,"no-bullet",2,"margin-bottom","0px !important","overflow","hidden"],["color","primary",1,"me-6",3,"change"],[1,"fw-light"],["color","primary",3,"ngModelChange","ngModel"],[1,"d-flex","align-items-center"],[1,"channelLogo-md",3,"src"],[1,"fw-light","ms-2","my-auto"]],template:function(n,o){n&1&&(r(0,"modal-material",0),x("onOk",function(){return o.onOk()})("onClose",function(){return o.onClose()})("onCancel",function(){return o.onClose()}),r(1,"div",1)(2,"div",2),u(3,Fe,4,0,"span"),r(4,"ul",3),v(5,Pe,6,3,"li",null,I),s()()()()),n&2&&(d("dynamicValidated",(o.getSelectedChannel==null?null:o.getSelectedChannel.length)>0)("config",o.modalConfig),c(3),h((o.channels==null?null:o.channels.length)>1?3:-1),c(2),S(o.channels))},dependencies:[xe,ve,L,$,B],styles:[".no-bullet[_ngcontent-%COMP%]{list-style-type:none}mat-form-field[_ngcontent-%COMP%]{width:100%;height:100%}.mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.vertical-radio[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"]});let t=l;return t})();var W=t=>[t],Ee=t=>({"text-decoration-line-through":t}),ke=t=>({"text-danger":t}),Oe=(t,l)=>({"bg-gradient-warning":t,"cell-hover pointer":l});function Ve(t,l){if(t&1){let e=C();r(0,"mat-slide-toggle",10),x("toggleChange",function(){p(e);let n=a();return n.toggleStatus=!n.toggleStatus,g(n.onToggle())}),r(1,"small",11),_(2),s()()}if(t&2){let e=a();c(2),P(" ",e.productToggleTitle?e.productToggleTitle:"FILTER DIFFERENT INVENTORY"," ")}}function De(t,l){if(t&1){let e=C();r(0,"th")(1,"input",13),O("ngModelChange",function(n){p(e);let o=a(2);return k(o.checkboxState,n)||(o.checkboxState=n),g(n)}),x("ngModelChange",function(){p(e);let n=a(2);return g(n.onCheckboxStateChange())}),s()()}if(t&2){let e=a(2);c(),E("ngModel",e.checkboxState)}}function Ne(t,l){if(t&1&&(T(0,De,2,1,"ng-template",12),r(1,"th",8),_(2,"POS"),s()),t&2){let e=a();d("ngxPermissionsOnly",M(1,W,e.rolePriceEdit))}}function Ue(t,l){if(t&1&&(r(0,"th",9)(1,"div",14)(2,"div",15),w(3,"img",16),r(4,"div",17),_(5),U(6,"stringLimit"),s()()()()),t&2){let e=l.$implicit;c(2),d("matTooltip",(e.Name==null?null:e.Name.length)>20?e.Name:""),c(),d("src",e==null?null:e.Img,y),c(2),P(" ",Q(6,3,e.Name,20)," ")}}function $e(t,l){t&1&&j(0)}function Be(t,l){if(t&1&&T(0,$e,1,0,"ng-container",29),t&2){a(2);let e=z(5);d("ngTemplateOutlet",e)}}function Le(t,l){if(t&1&&T(0,Be,1,1,"ng-template",12),t&2){let e=a(4);d("ngxPermissionsOnly",M(1,W,e.roleInventoryUpdate))}}function We(t,l){t&1&&j(0)}function Re(t,l){if(t&1&&T(0,We,1,0,"ng-container",29),t&2){a(2);let e=z(5);d("ngTemplateOutlet",e)}}function Ae(t,l){if(t&1&&T(0,Re,1,1,"ng-template",12),t&2){let e=a(4);d("ngxPermissionsOnly",M(1,W,e.rolePriceEdit))}}function je(t,l){if(t&1){let e=C();r(0,"div")(1,"input",30),O("ngModelChange",function(n){p(e);let o=a(4).$implicit;return k(o.selected,n)||(o.selected=n),g(n)}),x("ngModelChange",function(){p(e);let n=a(4).$implicit,o=a();return g(o.onCheckboxStateProduct(n.ID))}),s()()}if(t&2){let e=a(4).$implicit;c(),E("ngModel",e.selected),d("disabled",!(e!=null&&e.Category))}}function ze(t,l){if(t&1&&u(0,je,2,2,"div"),t&2){let e=a(3).$implicit;h((e==null||e.Variants==null?null:e.Variants.length)>1?0:-1)}}function He(t,l){if(t&1){let e=C();r(0,"img",31),x("click",function(n){p(e);let o=a(3).$implicit,m=a();return g(m.onZoomImage(n,o==null?null:o.ImageUrl))}),s()}if(t&2){let e=a(3).$implicit;d("src",Y(e==null?null:e.ThumbnailUrl),y)}}function Ze(t,l){t&1&&w(0,"img",26)}function qe(t,l){if(t&1&&(r(0,"td",23)(1,"div",24),u(2,Le,1,3,null,12)(3,Ae,1,3,null,12),T(4,ze,1,1,"ng-template",null,0,ee),r(6,"div"),u(7,He,1,2,"img",25)(8,Ze,1,0,"img",26),s()()(),r(9,"td",27)(10,"div"),_(11),s(),r(12,"small",28),_(13),s()()),t&2){let e=a(2).$implicit,i=a();d("rowSpan",e==null?null:e.Variants.length),c(2),h(i.table()=="inventory"?2:3),c(5),h(e!=null&&e.ThumbnailUrl?7:8),c(2),d("rowSpan",e==null?null:e.Variants.length),c(2),F(e==null?null:e.Name),c(),d("ngClass",M(7,ke,!(e!=null&&e.Category))),c(),P("(",e!=null&&e.Category?e==null?null:e.Category:"Not Found In POS",")")}}function Ge(t,l){if(t&1&&(r(0,"a",22),w(1,"i",32),s()),t&2){let e=a().$implicit,i=a(2);d("href",i.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(e==null?null:e.ID),y)}}function Ke(t,l){if(t&1){let e=C();r(0,"input",35),O("ngModelChange",function(n){p(e);let o=a(3).$implicit;return k(o.selected,n)||(o.selected=n),g(n)}),s()}if(t&2){let e=a(3).$implicit,i=a().$implicit;E("ngModel",e.selected),d("disabled",!(i!=null&&i.Category))}}function Xe(t,l){if(t&1&&(r(0,"td",33),u(1,Ke,1,2,"input",34),s()),t&2){let e=a(2).$implicit,i=a(2);c(),h(i.printPOS(e)>=0||i.table()=="price"?1:-1)}}function Ye(t,l){if(t&1&&(T(0,Xe,2,1,"ng-template",12),r(1,"td",19),_(2),U(3,"number"),s()),t&2){let e=a().$implicit,i=a(2);d("ngxPermissionsOnly",M(4,W,i.rolePriceEdit)),c(2),F(H(3,2,i.printPOS(e)))}}function Je(t,l){if(t&1){let e=C();r(0,"td",38),x("click",function(){p(e);let n=a().$implicit,o=a().$implicit,m=a().$implicit,f=a();return g(f.onUpdateData(m.Name,o,n.ID,m.ChannelItemID))}),r(1,"div",39)(2,"div",40),_(3),U(4,"number"),s(),r(5,"a",41),x("click",function(n){return p(e),g(n==null?null:n.stopPropagation())}),w(6,"i",32),s()()()}if(t&2){let e=l,i=a(2).$implicit,n=a(2);d("ngClass",J(5,Oe,n.printPOS(i)!=n.printItem(e)&&n.hiddenIPOSInventory()==!1,n.hasPriceEdit()&&n.table()=="price"||n.hasInventoryEdit()&&n.table()=="inventory")),c(3),P(" ",H(4,3,n.printItem(e))," "),c(2),d("href",e.Url,y)}}function Qe(t,l){t&1&&(r(0,"td",37)(1,"div",39)(2,"span"),_(3,"X"),s()()())}function et(t,l){if(t&1&&u(0,Je,7,8,"td",36)(1,Qe,4,0,"td",37),t&2){let e,i=l.$implicit,n=a().$implicit,o=a(2);h((e=o.getItemFromChannel(n,i))?0:1,e)}}function tt(t,l){if(t&1&&(r(0,"tr"),u(1,qe,14,9),r(2,"td",18),_(3),s(),r(4,"td",19)(5,"div",20)(6,"div",21),_(7),s(),r(8,"div",17),u(9,Ge,2,1,"a",22),s()()(),u(10,Ye,4,6),v(11,et,2,1,null,null,I),s()),t&2){let e=l.$implicit,i=l.$index,n=a().$implicit,o=a();c(),h(i==0?1:-1),c(2),F(e==null?null:e.Model),c(2),d("matTooltip",e.Discontinued?o.discontinuedVariantMsg:""),c(),d("ngClass",M(7,Ee,e.Discontinued)),c(),P(" ",e.Code," "),c(2),h(n.Category?9:-1),c(),h(o.hiddenIPOSInventory()==!1?10:-1),c(),S(o.channel())}}function nt(t,l){if(t&1&&(r(0,"tbody"),v(1,tt,13,9,"tr",null,I),s()),t&2){let e=l.$implicit;c(),S(e.Variants)}}var Nt=(()=>{let l=class l{constructor(){this.dialog=b(ue),this.biggerPictureService=b(fe),this.authService=b(se),this.permissionsService=b(ae),this.table=V(void 0),this.channel=V(void 0),this.showProductToggle=V(!1),this.multiwarehouse=V(!1),this.hiddenIPOSInventory=V(!1),this.toggleStatus=!1,this.checkboxState=!1,this.rolePriceEdit=D.PriceUpdate,this.roleInventoryUpdate=D.InventoryUpdate,this.hasPriceEdit=R(!1),this.hasInventoryEdit=R(!1),this.discontinuedVariantMsg="This Variant is discontinued from POS, you must Non Active manually at the seller center so that it is not sold again on the channel.",this.onSubmit=new A,this.destroy$=new q,this.toggle=new A,this.hostName=this.authService.getDomain()}ngOnInit(){this.initRoles();let i=this.table();i=="inventory"?this.stockHeader="Stock":i=="price"&&(this.stockHeader="Price")}initRoles(){this.permissionsService.hasPermission(D.InventoryUpdate).then(i=>this.hasInventoryEdit.set(i)),this.permissionsService.hasPermission(D.PriceUpdate).then(i=>this.hasPriceEdit.set(i))}onCheckboxStateProduct(i){let n=this.data.filter(o=>o.ID==i);n.length>0&&(n=n.map(o=>(o.Variants=o.Variants.map(m=>(m.selected=o.selected,m)),o)))}onCheckboxStateChange(){this.data=this.data.map(i=>(i.Variants=i.Variants.map(n=>(n.selected=this.checkboxState,n)),i))}getItemFromChannel(i,n){return i.Channel.find(m=>Z.IsNotEmpty(n.LocationID)?m.LocationID==n.LocationID:m.ChannelID==n.ID)}printItem(i){let n=this.table();if(n=="inventory")return i.Inventory;if(n=="price")return i.Price}onUpdateData(i,n,o,m){let f=this.table();this.hasPriceEdit()&&f=="price"&&this.onOpenDialogUpdate(i,n,o,m),this.hasInventoryEdit()&&f=="inventory"&&this.onOpenDialogUpdate(i,n,o,m)}onOpenDialogUpdate(i,n,o,m){this.dialog.open(Se,{data:{Name:i,Variant:n,ChannelID:o,Table:this.table(),ChannelItemID:m}}).afterClosed().pipe(G(f=>Z.IsNotEmpty(f)),K(this.destroy$)).subscribe(f=>{this.onSubmit.emit(f)})}printPOS(i){let n=this.table();return n=="inventory"?i.Inventory?i.Inventory:0:n=="price"?i.UnitPrice:null}onToggle(){this.toggle.emit(this.toggleStatus)}onZoomImage(i,n){this.biggerPictureService.openBiggerPicture(i,n)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};l.\u0275fac=function(n){return new(n||l)},l.\u0275cmp=N({type:l,selectors:[["app-table"]],inputs:{data:"data",table:[1,"table"],channel:[1,"channel"],showProductToggle:[1,"showProductToggle"],productToggleTitle:"productToggleTitle",multiwarehouse:[1,"multiwarehouse"],hiddenIPOSInventory:[1,"hiddenIPOSInventory"]},outputs:{onSubmit:"onSubmit",toggle:"onToggle"},decls:18,vars:2,consts:[["checkbox_update",""],[1,"table-responsive"],[1,"table"],[1,"thead-light","sticky-top-thead"],["scope","col","colspan","2",1,"text-center","w-25"],[1,"w-100"],[2,"width","200px"],["scope","col",1,"text-start","w-20"],["scope","col",1,"text-end","w-10"],["scope","col"],[2,"width","200px",3,"toggleChange"],[1,"fw-bold"],[3,"ngxPermissionsOnly"],["type","checkbox",3,"ngModelChange","ngModel"],[1,"w-100","d-flex","align-items-center","justify-content-center"],["matTooltipPosition","above",1,"d-flex","align-items-center","justify-content-center",2,"width","180px",3,"matTooltip"],[2,"width","16px","height","16px",3,"src"],[1,"ms-2"],[1,"text-start"],[1,"text-end"],["matTooltipPosition","above",1,"d-flex","align-items-center","justify-content-end",3,"matTooltip"],[3,"ngClass"],["target","_blank",3,"href"],[1,"text-center",3,"rowSpan"],[1,"d-flex","align-items-center","justify-content-end"],[1,"border","rounded","w-img","cursor-pointer",3,"src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded","w-img"],[1,"text-start",2,"padding-left","0px",3,"rowSpan"],[1,"mt-1",3,"ngClass"],[4,"ngTemplateOutlet"],["type","checkbox",1,"me-3",3,"ngModelChange","ngModel","disabled"],[1,"border","rounded","w-img","cursor-pointer",3,"click","src"],[1,"fas","fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[1,"align-middle"],["type","checkbox",3,"ngModel","disabled"],["type","checkbox",3,"ngModelChange","ngModel","disabled"],[1,"p-0",3,"ngClass"],[1,"table-white","text-center",2,"color","red"],[1,"p-0",3,"click","ngClass"],[1,"d-flex","align-items-center","justify-content-center"],[1,"me-2","mt-1"],["target","_blank",3,"click","href"]],template:function(n,o){n&1&&(r(0,"div",1)(1,"table",2)(2,"thead",3)(3,"tr")(4,"th",4)(5,"div",5)(6,"div"),_(7,"Product"),s(),u(8,Ve,3,1,"mat-slide-toggle",6),s()(),r(9,"th",7),_(10,"Variant"),s(),r(11,"th",8),_(12,"SKU"),s(),u(13,Ne,3,3),v(14,Ue,7,6,"th",9,X),s()(),v(16,nt,3,0,"tbody",null,I),s()()),n&2&&(c(8),h(o.showProductToggle()?8:-1),c(5),h(o.hiddenIPOSInventory()==!1?13:-1),c(),S(o.channel()),c(2),S(o.data))},dependencies:[oe,te,ne,L,de,$,B,ye,Te,he,le,be,ce,re,_e,me,ie,we],styles:[".w-10[_ngcontent-%COMP%]{width:10%}.w-20[_ngcontent-%COMP%]{width:20%}.w-img[_ngcontent-%COMP%]{width:40px;height:40px}.item-name[_ngcontent-%COMP%]{margin-bottom:-14px!important;font-size:larger}.cell-hover[_ngcontent-%COMP%]:hover{background-color:#c9c9c9!important}.text-wrapping[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:88px}.cell-hover[_ngcontent-%COMP%]{width:400px!important}"]});let t=l;return t})();export{dt as a,Nt as b};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as wt}from"./chunk-
|
|
1
|
+
import{a as wt}from"./chunk-UB62TZOI.js";import{a as Dt}from"./chunk-O4U34AC7.js";import{a as rt,b as Ct}from"./chunk-WIRBYT7F.js";import{b as xt,c as F,d as L,e as l,f as m}from"./chunk-RBZU7OVM.js";import{E as at,H as Q,V as ot,j as it,la as Bt,m as yt,ma as st,u as Tt,ua as A,v as _t,w as z}from"./chunk-RXC5D64C.js";import{A as R,C as Z,v as Y}from"./chunk-JNRCB7N3.js";import{Aa as nt,Ac as M,Bc as J,Cc as k,Dc as p,Ec as f,Fc as bt,Fd as T,Gd as mt,Hb as B,Hc as pt,Ia as $,Ib as dt,Ic as ft,Lb as w,Mb as D,Mc as c,Nb as P,Pa as u,Ra as ct,_b as y,_c as E,ac as C,cc as N,hc as b,ic as V,jc as q,kc as W,la as S,ld as vt,ma as _,na as lt,ob as v,pa as x,pd as r,qc as U,qd as ht,ra as o,rc as G,sc as ut,ud as g,wc as O,wd as gt,ya as H,yc as h,yd as X,za as K,zc as I}from"./chunk-OHGMB7HJ.js";var Nt=`
|
|
2
2
|
.p-tabs {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as re,b as pe}from"./chunk-AHMFSCTX.js";import"./chunk-6F62N7RZ.js";import"./chunk-LR2YCE6M.js";import{a as ne,b as ie,d as ae,e as oe}from"./chunk-C2LAQOUW.js";import{a as le}from"./chunk-27DIE2YS.js";import{b as te}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import"./chunk-SPLGZRGH.js";import"./chunk-2ST3DMR6.js";import"./chunk-24KZDZKS.js";import"./chunk-A2RTZANN.js";import"./chunk-N3E43QWK.js";import"./chunk-YD6BNJ2B.js";import"./chunk-XUDE7VBC.js";import"./chunk-X52ZT4MU.js";import"./chunk-BMOMTOEW.js";import"./chunk-HO2TMGLM.js";import"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import{h as X}from"./chunk-O3QPBAV5.js";import"./chunk-YYV4FSYQ.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import"./chunk-5UFP37GQ.js";import{c as K}from"./chunk-UPRDDI4K.js";import{A as ee,h as Y,m as Z}from"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{e as Q}from"./chunk-MM7SAZOU.js";import"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{A as G,w as k,x as H,y as U}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{Hb as B,Nb as P,Nc as s,Oc as f,Pc as y,Rc as z,Sc as A,Tc as V,Z as D,_c as J,aa as M,ac as R,bc as T,cc as $,dc as F,fc as j,g as L,gc as O,hc as h,ic as a,id as c,jc as o,jd as d,kc as u,kd as W,ma as w,mb as S,ob as p,ra as g,rc as q,v as I,wc as v,ya as E,yc as x,za as N}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import{a as _}from"./chunk-66YHNWRR.js";var b=(()=>{let t=class t{constructor(){this.httpService=g(Q),this._pageination=new L({PageNumber:1,RowCount:100,ChannelID:null}),this.filter$=this._pageination.asObservable(),this.log$=this.filter$.pipe(M(n=>this.getLogs$(n).pipe()))}getLogs$(n){return this.httpService.post("/api/Channel/GetChannelLogPaged",n)}onPaginationChange(n){let e=this._pageination.value;e.PageNumber=n.pageIndex+1,this._pageination.next(e)}onFilter(n){let e=this._pageination.value;e.PageNumber=1,e=_(_({},e),n),this._pageination.next(e)}};t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=w({token:t,factory:t.\u0275fac});let i=t;return i})();function se(i,t){if(i&1&&(a(0,"span",10),u(1,"img",11),o(),s(2)),i&2){let l=t.item;p(),h("src",l.Img,S)("alt",l.Name),p(),y(" ",l.Name," ")}}function ce(i,t){if(i&1&&(a(0,"tr")(1,"td"),u(2,"img",17),a(3,"span"),s(4),o()(),a(5,"td")(6,"span",18),s(7),c(8,"json"),o()(),a(9,"td"),s(10),c(11,"json"),o(),a(12,"td"),s(13),c(14,"date"),o()()),i&2){let l=t.$implicit;p(2),h("src",l.Img,S),p(2),y(" ",l.ChannelName," "),p(3),f(d(8,5,l.Request)),p(3),f(d(11,7,l.Response)),p(3),f(W(14,9,l.Created,"dd-MM-yyyy hh:mm:ss"))}}function de(i,t){if(i&1){let l=q();a(0,"div",8)(1,"table",12)(2,"thead")(3,"tr",13)(4,"th",14),s(5,"Channel"),o(),a(6,"th"),s(7,"Request"),o(),a(8,"th"),s(9,"Response"),o(),a(10,"th",15),s(11,"Created"),o()()(),a(12,"tbody"),j(13,ce,15,12,"tr",null,F),c(15,"async"),o()(),a(16,"mat-paginator",16),c(17,"async"),c(18,"async"),c(19,"async"),c(20,"async"),v("page",function(e){E(l);let r=x();return N(r.channelLogService.onPaginationChange(e))}),o()()}if(i&2){let l,n,e,r,m=x();p(13),O((l=d(15,3,m.channelLogs$))==null?null:l.Data),p(3),h("length",(n=d(17,5,m.channelLogs$))==null?null:n.Count)("pageSize",(e=d(18,7,m.filter$))==null?null:e.RowCount)("pageIndex",(r=d(19,9,m.filter$))!=null&&r.PageNumber?0:((r=d(20,11,m.filter$))==null?null:r.PageNumber)-1)}}function he(i,t){i&1&&(a(0,"div",9),u(1,"app-empty-state"),o())}var je=(()=>{let t=class t{constructor(){this.channelLogService=g(b),this.authService=g(X),this.channelOptions=this.authService.getChannels(),this.channelLogs$=this.channelLogService.log$.pipe(I(n=>(n.Data?n.Data=n.Data.map(e=>(e.Response=e.Response?JSON.parse(e.Response):"",e.Request=e.Request?JSON.parse(e.Request):"",e.Img=K.getChannelLogoByTypeId(e.TypeID),e)):n.Data=[],n)),D(1)),this.filter$=this.channelLogService.filter$}onSubmitFilter(){this.channelLogService.onFilter({ChannelID:this.channelID})}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=B({type:t,selectors:[["app-channel-log"]],features:[J([b])],decls:15,vars:7,consts:[["headerTitle","Authorization Log",3,"onSubmit","hideSearchBox"],["container",""],[1,"fw-bold","mb-2"],["appendTo","body","bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[1,"table","table-hover"],[1,"table-light"],[2,"width","250px"],[2,"width","150px"],[3,"page","length","pageSize","pageIndex"],[1,"me-2",2,"width","25px",3,"src"],[1,""]],template:function(e,r){if(e&1&&(a(0,"mainpanel",0),v("onSubmit",function(){return r.onSubmitFilter()}),a(1,"filters")(2,"div",1)(3,"div")(4,"label",2),s(5,"Channel"),o(),a(6,"ng-select",3),V("ngModelChange",function(C){return A(r.channelID,C)||(r.channelID=C),C}),P(7,se,3,3,"ng-template",4),o()()()(),a(8,"content")(9,"div",5)(10,"div",6)(11,"div",7),R(12,de,21,13,"div",8),c(13,"async"),T(14,he,2,0,"div",9),o()()()()()),e&2){let m;h("hideSearchBox",!0),p(6),h("clearable",!0)("items",r.channelOptions),z("ngModel",r.channelID),p(6),$(((m=d(13,5,r.channelLogs$))==null||m.Data==null?null:m.Data.length)>0?12:14)}},dependencies:[G,te,le,pe,re,oe,ae,ne,ie,ee,Y,Z,k,U,H],encapsulation:2});let i=t;return i})();export{je as ChannelLogComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as K}from"./chunk-DLHIDOS3.js";import{a as J}from"./chunk-YNL43MLU.js";import{c as q}from"./chunk-O4D64GHO.js";import{a as E}from"./chunk-ZSUWHVKX.js";import{b as L,c as A}from"./chunk-5UFP37GQ.js";import{c as j}from"./chunk-UPRDDI4K.js";import{A as H}from"./chunk-WAXAIL2I.js";import{A as $,q as Z}from"./chunk-JNRCB7N3.js";import{Hb as I,Ic as U,Nb as P,Nc as u,Oc as k,Pc as O,ac as _,ad as w,bd as N,cc as s,dd as z,ec as B,fc as V,gc as M,hc as d,ic as r,jc as c,kc as p,ld as R,mb as T,ob as i,oc as v,pc as b,ra as F,rc as f,tb as y,ud as g,wc as C,ya as x,yc as a,za as h}from"./chunk-OHGMB7HJ.js";var G=(t,e,n,l)=>[t,e,n,l],S=t=>[t],Q=(t,e)=>[t,e],W=t=>({"me-3":t}),X=t=>({"border-bottom pb-2":t});function Y(t,e){if(t&1){let n=f();r(0,"img",17),C("click",function(o){x(n);let m=a();return h(m.openBiggerPicture(o))}),c()}if(t&2){let n=a();d("src",n.image,T)}}function tt(t,e){t&1&&p(0,"img",9)}function nt(t,e){if(t&1&&(r(0,"span",19)(1,"a",20),p(2,"i",21),c()()),t&2){let n=a(2);i(),d("href",n.redirectUrl,T)}}function et(t,e){if(t&1&&(r(0,"div",12),p(1,"i",18),r(2,"span"),u(3),c(),_(4,nt,3,1,"span",19),c()),t&2){let n=a();i(3),k(n.code),i(),s(n.code!=="SKU not assigned"&&n.showRedirectIcon()?4:-1)}}function it(t,e){if(t&1){let n=f();r(0,"div",22),C("click",function(){x(n);let o=a();return h(o.onEventDesc())}),p(1,"i",23),r(2,"span"),u(3),c()()}if(t&2){let n=a();i(3),k(n.description)}}function ot(t,e){if(t&1){let n=f();r(0,"div",24)(1,"input",25),C("change",function(o){x(n);let m=a(2);return h(m.onCheck(o.target.checked))}),c()()}}function at(t,e){if(t&1&&(v(0),_(1,ot,2,0,"div",24),b()),t&2){let n=a();i(),s(n.showCheckBox()?1:-1)}}function rt(t,e){if(t&1){let n=f();r(0,"button",28),C("click",function(){x(n);let o=a(3);return h(o.onDownload())}),p(1,"i",29),u(2,"Download "),c()}}function ct(t,e){if(t&1&&(v(0),_(1,rt,3,0,"button",27),b()),t&2){let n=a(2);i(),s(n.downloadButton()?1:-1)}}function lt(t,e){}function dt(t,e){if(t&1){let n=f();r(0,"li")(1,"a",36),C("click",function(){x(n);let o=a(6);return h(o.onScan())}),p(2,"i",37),u(3,"Scan "),c()()}}function _t(t,e){if(t&1&&(v(0),_(1,dt,4,0,"li"),b()),t&2){let n=a(5);i(),s(n.scanButton()?1:-1)}}function st(t,e){if(t&1){let n=f();r(0,"li")(1,"a",38),C("click",function(){x(n);let o=a(6);return h(o.onDetach())}),p(2,"i",39),u(3,"Detach "),c()()}}function mt(t,e){if(t&1&&(v(0),_(1,st,4,0,"li"),b()),t&2){let n=a(5);i(),s(n.detachButton()?1:-1)}}function pt(t,e){if(t&1&&(v(0),r(1,"div",33),p(2,"button",34),r(3,"ul",35),P(4,_t,2,1,"ng-container",15)(5,mt,2,1,"ng-container",15),c()(),b()),t&2){let n=a(4);i(4),d("ngxPermissionsOnly",w(2,S,n.productScanRole)),i(),d("ngxPermissionsOnly",w(4,S,n.productDetachRole))}}function ut(t,e){if(t&1){let n=f();r(0,"button",31),C("click",function(){x(n);let o=a(3);return h(o.onUpload())}),p(1,"i",32),u(2,"Upload "),c(),P(3,pt,6,6,"ng-container",15)}if(t&2){let n=a(3);i(3),d("ngxPermissionsOnly",N(1,Q,n.productScanRole,n.productDetachRole))}}function Ct(t,e){if(t&1){let n=f();r(0,"button",28),C("click",function(){x(n);let o=a(5);return h(o.onScan())}),p(1,"i",40),u(2," Scan "),c()}}function gt(t,e){if(t&1&&(v(0),_(1,Ct,3,0,"button",27),b()),t&2){let n=a(4);i(),s(n.scanButton()?1:-1)}}function xt(t,e){if(t&1){let n=f();r(0,"button",42),C("click",function(){x(n);let o=a(5);return h(o.onDetach())}),p(1,"i",39),u(2,"Detach "),c()}}function ht(t,e){if(t&1&&(v(0),_(1,xt,3,0,"button",41),b()),t&2){let n=a(4);i(),s(n.detachButton()?1:-1)}}function ft(t,e){if(t&1&&P(0,gt,2,1,"ng-container",15)(1,ht,2,1,"ng-container",15),t&2){let n=a(3);d("ngxPermissionsOnly",w(2,S,n.productScanRole)),i(),d("ngxPermissionsOnly",w(4,S,n.productDetachRole))}}function wt(t,e){if(t&1&&(r(0,"div",26),P(1,lt,0,0,"ng-template",30)(2,ut,4,4,"ng-template",null,0,R)(4,ft,2,6,"ng-template",null,1,R),c()),t&2){let n=U(3),l=U(5),o=a(2);i(),d("ngxPermissionsOnly",w(3,S,o.productUploadRole))("ngxPermissionsOnlyThen",n)("ngxPermissionsOnlyElse",l)}}function vt(t,e){if(t&1){let n=f();r(0,"button",28),C("click",function(){x(n);let o=a(4);return h(o.onScan())}),p(1,"i",40),u(2," Scan "),c()}}function bt(t,e){if(t&1&&(v(0),_(1,vt,3,0,"button",27),b()),t&2){let n=a(3);i(),s(n.scanButton()?1:-1)}}function Pt(t,e){if(t&1){let n=f();r(0,"button",44),C("click",function(){x(n);let o=a(4);return h(o.onDetach())}),p(1,"i",39),u(2,"Detach "),c()}}function St(t,e){if(t&1&&(v(0),_(1,Pt,3,0,"button",43),b()),t&2){let n=a(3);i(),s(n.detachButton()?1:-1)}}function Tt(t,e){if(t&1&&P(0,bt,2,1,"ng-container",15)(1,St,2,1,"ng-container",15),t&2){let n=a(2);d("ngxPermissionsOnly",w(2,S,n.productScanRole)),i(),d("ngxPermissionsOnly",w(4,S,n.productDetachRole))}}function yt(t,e){if(t&1&&(r(0,"a",46),p(1,"img",47),c()),t&2){let n=e.$implicit,l=e.$index,o=a(4);d("href",n==null?null:n.Url,T),i(),d("ngClass",w(4,W,l!=o.channels.length-1))("src",o.getChannelLogo(n),T)("matTooltip",n!=null&&n.Title?n==null?null:n.Title:n.Name)}}function Et(t,e){if(t&1&&V(0,yt,2,6,"a",46,B),t&2){let n=a(3);M(n.channels)}}function kt(t,e){if(t&1&&(r(0,"li")(1,"div",50)(2,"div",51)(3,"a",46),p(4,"img",52),r(5,"span",53),u(6),c()()()()()),t&2){let n=e.$implicit,l=e.$index,o=a(4);i(2),d("ngClass",w(4,X,l!=o.channels.length-1)),i(),d("href",n==null?null:n.Url,T),i(),d("src",o.getChannelLogo(n),T),i(2),k(n==null?null:n.Title)}}function Dt(t,e){if(t&1&&(r(0,"div",45)(1,"button",48),u(2),c(),r(3,"ul",49),V(4,kt,7,6,"li",null,B),c()()),t&2){let n=a(3);i(2),O(" ",n.channels.length," CHANNELS "),i(2),M(n.channels)}}function Bt(t,e){if(t&1&&(r(0,"div"),_(1,Et,2,0)(2,Dt,6,1,"div",45),c()),t&2){let n=a(2);i(),s(n.channels.length<4?1:2)}}function Vt(t,e){if(t&1&&(r(0,"div",16)(1,"div"),P(2,ct,2,1,"ng-container",15),_(3,wt,6,5,"div",26)(4,Tt,2,6),c(),_(5,Bt,3,1,"div"),c()),t&2){let n=a();i(2),d("ngxPermissionsOnly",w(3,S,n.productDownloadRole)),i(),s(n.uploadButton()?3:4),i(2),s(n.channels&&(n.channels==null?null:n.channels.length)>0?5:-1)}}var Jt=(()=>{let e=class e{constructor(){this.biggerPictureService=F(K),this.productId=g(void 0),this.uploadButton=g(!1),this.scanButton=g(!1),this.showCheckBox=g(!1),this.downloadButton=g(!1),this.showFooter=g(!0),this.detachButton=g(!1),this.title=g(void 0),this.check=g(void 0),this.imageForZoom=g(void 0),this.hasZoom=g(!0),this.showRedirectIcon=g(!0),this.productUploadRole=E.ProductUpload,this.productScanRole=E.ProductScan,this.productDownloadRole=E.ProductDownload,this.productDetachRole=E.ProductDetach,this.onUploadEvent=new y,this.onScanEvent=new y,this.checkBoxChange=new y,this.onDescEvent=new y,this.onDownloadEvent=new y,this.onDetachEvent=new y}ngAfterContentInit(){this.initRedirectUrl()}initRedirectUrl(){let l=localStorage.getItem("Authorization"),o=JSON.parse(l)?.Host;this.redirectUrl=`https://${o}/menu/Products/Catalog/Products/Info?ID=${this.productId()}`}onUpload(){this.onUploadEvent.emit()}onScan(){this.onScanEvent.emit()}onCheck(l){this.checkBoxChange.emit(l)}onEventDesc(){this.onDescEvent.emit()}onDownload(){this.onDownloadEvent.emit()}onDetach(){this.onDetachEvent.emit()}getChannelLogo(l){return j.getChannelLogoByTypeId(l.TypeID)}openBiggerPicture(l){this.biggerPictureService.openBiggerPicture(l,this.imageForZoom())}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=I({type:e,selectors:[["app-product-card"]],inputs:{productId:[1,"productId"],uploadButton:[1,"uploadButton"],scanButton:[1,"scanButton"],showCheckBox:[1,"showCheckBox"],downloadButton:[1,"downloadButton"],showFooter:[1,"showFooter"],detachButton:[1,"detachButton"],image:"image",title:[1,"title"],code:"code",description:"description",channels:"channels",check:[1,"check"],imageForZoom:[1,"imageForZoom"],hasZoom:[1,"hasZoom"],showRedirectIcon:[1,"showRedirectIcon"]},outputs:{onUploadEvent:"onUpload",onScanEvent:"onScan",checkBoxChange:"onCheckBoxChange",onDescEvent:"onDescEvent",onDownloadEvent:"onDownload",onDetachEvent:"onDetach"},decls:17,vars:12,consts:[["thenBlock",""],["elseBlock",""],[1,"card",2,"margin-bottom","0px"],[1,"card-body","py-6"],[1,"row"],[1,"col-4"],[1,"productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[1,"rounded","imgUpload","float-left",3,"src"],["src","https://resc.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png",1,"rounded","float-left","imgUpload"],[1,"col-7","d-inline-block","justify-content-between","gx-0",2,"padding-left","0px"],[1,"itemTitle","cursor-pointer",3,"click","matTooltip"],[1,"description","cursor-pointer"],[1,"col-1","gx-0","d-flex","justify-content-center"],[1,"text-end"],[4,"ngxPermissionsOnly"],[1,"card-footer","d-flex","justify-content-between","py-5","bg-footer","align-items-center",2,"border-top","0.1px solid rgb(220 220 220)"],[1,"rounded","imgUpload","float-left",3,"click","src"],[1,"fa","fa-barcode","me-2"],[1,"ms-2"],["target","_blank",2,"color","#0976b4",3,"href"],[1,"fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[1,"description","cursor-pointer",3,"click"],[1,"fa","fa-tag","me-2"],[1,"text-end","gx-0"],["type","checkbox",3,"change"],["role","group","aria-label","Scan button with other button",1,"btn-group","btn-sm"],[1,"fs-6","btn","btn-light","btn-sm","me-3"],[1,"fs-6","btn","btn-light","btn-sm","me-3",3,"click"],["aria-hidden","true",1,"fa","fa-download","me-1"],[3,"ngxPermissionsOnly","ngxPermissionsOnlyThen","ngxPermissionsOnlyElse"],["type","button",1,"fs-6","btn","btn-light","btn-sm",3,"click"],["aria-hidden","true",1,"fa","fa-upload","me-1"],["role","group",1,"btn-group"],["type","button","data-bs-toggle","dropdown","aria-expanded","false",1,"fs-6","btn","btn-light","btn-sm","dropdown-toggle","ps-3"],[1,"dropdown-menu",2,"min-width","100px !important"],[1,"dropdown-item","cursor-pointer",3,"click"],[1,"fa","fa-spinner","me-2"],["matTooltip","Detaching a product with it's associated channel will stop inventory synchronization",1,"dropdown-item","cursor-pointer",3,"click"],[1,"fa-sharp","fa-link-slash","me-2"],[1,"fa","fa-spinner","me-1"],["matTooltip","Detaching a product with it's associated channel will stop inventory synchronization",1,"fs-6","btn","btn-light","btn-sm"],["matTooltip","Detaching a product with it's associated channel will stop inventory synchronization",1,"fs-6","btn","btn-light","btn-sm",3,"click"],[1,"fs-6","btn","btn-light","btn-sm"],[1,"fs-6","btn","btn-light","btn-sm",3,"click"],[1,"dropdown"],["target","_blank",3,"href"],["alt","",1,"img-logo",3,"ngClass","src","matTooltip"],["type","button","id","dropdownMenuButton1","data-bs-toggle","dropdown","aria-expanded","false",1,"btn","fs-6","btn-sm","btn-light","dropdown-toggle"],[1,"dropdown-menu"],[1,"dropdown-item","py-2",2,"cursor","pointer"],[3,"ngClass"],[1,"img-logo",3,"src"],[1,"ms-4"]],template:function(o,m){if(o&1&&(r(0,"div",2)(1,"div",3)(2,"div",4)(3,"div",5)(4,"div",6)(5,"div",7),_(6,Y,1,1,"img",8)(7,tt,1,0,"img",9),c()()(),r(8,"div",10)(9,"h4",11),C("click",function(){return m.onEventDesc()}),u(10),c(),_(11,et,5,2,"div",12),_(12,it,4,1,"div",12),c(),r(13,"div",13)(14,"div",14),P(15,at,2,1,"ng-container",15),c()()()(),_(16,Vt,6,5,"div",16),c()),o&2){let D;i(6),s(m.image?6:7),i(3),d("matTooltip",((D=m.title())==null?null:D.length)>25?m.title():""),i(),O(" ",m.title()," "),i(),s(m.code?11:-1),i(),s(m.description?12:-1),i(3),d("ngxPermissionsOnly",z(7,G,m.productDownloadRole,m.productScanRole,m.productUploadRole,m.productDetachRole)),i(),s(m.showFooter()?16:-1)}},dependencies:[$,Z,H,J,q,A,L],styles:[".img-logo[_ngcontent-%COMP%]{height:24px;width:24px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:100%}.bg-footer[_ngcontent-%COMP%]{background-color:#ededed69}.description[_ngcontent-%COMP%]{font-weight:300;margin-left:2px}.productUpload_defaultSize[_ngcontent-%COMP%]{max-width:100px!important;max-height:100px!important;width:auto!important;height:auto!important}.image-upload[_ngcontent-%COMP%]{position:relative}.imgContainer[_ngcontent-%COMP%]{width:100%;height:100px}.imgUpload[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down;cursor:pointer}.dropdown[_ngcontent-%COMP%] .dropdown-menu.show[_ngcontent-%COMP%]{top:unset!important}"]});let t=e;return t})();export{Jt as a};
|