marketplacepos 5.41.3 → 5.43.0
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 +123 -123
- package/Marketplace/chunk-24DT5FN2.js +1 -0
- package/Marketplace/{chunk-5MRT2EFE.js → chunk-25OT4I3W.js} +1 -1
- package/Marketplace/chunk-2BUABOHG.js +1 -0
- package/Marketplace/{chunk-7GQIIDFF.js → chunk-2DJWDXTZ.js} +1 -1
- package/Marketplace/chunk-2EL3WEWS.js +1 -0
- package/Marketplace/chunk-2SXRC4IG.js +1 -0
- package/Marketplace/{chunk-KXZCGKQW.js → chunk-2TZBEYNY.js} +1 -1
- package/Marketplace/chunk-2ZTDLZVZ.js +1 -0
- package/Marketplace/chunk-33IXC6UG.js +1 -0
- package/Marketplace/chunk-3Y6LJS2H.js +1 -0
- package/Marketplace/{chunk-7477X7LJ.js → chunk-4CTORK4F.js} +1 -1
- package/Marketplace/{chunk-BUFEIJAI.js → chunk-4M63ID5T.js} +1 -1
- package/Marketplace/chunk-4PZ5Q3HI.js +1 -0
- package/Marketplace/{chunk-RVYGL22E.js → chunk-55OI2SUF.js} +1 -1
- package/Marketplace/chunk-5DIRXS7I.js +1 -0
- package/Marketplace/chunk-5EQNOCXP.js +1 -0
- package/Marketplace/chunk-5QAURMZF.js +222 -0
- package/Marketplace/{chunk-V2OJQHE3.js → chunk-5XI7HWS5.js} +2 -2
- package/Marketplace/chunk-66YHNWRR.js +1 -0
- package/Marketplace/chunk-6BFXOKCB.js +1 -0
- package/Marketplace/chunk-6DZKFXDF.js +1 -0
- package/Marketplace/chunk-6IFZ2TO6.js +1 -0
- package/Marketplace/{chunk-Q72ZXPDP.js → chunk-6LH7FSOW.js} +1 -1
- package/Marketplace/chunk-6LULIB2P.js +2 -0
- package/Marketplace/{chunk-OLSC6KHB.js → chunk-6MPSYC77.js} +1 -1
- package/Marketplace/chunk-6QGSDBR7.js +1 -0
- package/Marketplace/{chunk-BIQHA7UA.js → chunk-6X2OBNJQ.js} +4 -4
- package/Marketplace/chunk-736E275F.js +1 -0
- package/Marketplace/{chunk-IYYVZ6B6.js → chunk-A2YNWIX6.js} +1 -1
- package/Marketplace/chunk-A4F37V57.js +1 -0
- package/Marketplace/{chunk-NMJGLMWI.js → chunk-ABQG3LB5.js} +1 -1
- package/Marketplace/{chunk-77IUCPIQ.js → chunk-ACIMXBIC.js} +1 -1
- package/Marketplace/chunk-AGRVVEIR.js +397 -0
- package/Marketplace/chunk-ALKC77XL.js +78 -0
- package/Marketplace/chunk-ARZ2S6YD.js +1 -0
- package/Marketplace/chunk-AVEGIEYT.js +193 -0
- package/Marketplace/chunk-AVVPZ3NI.js +1 -0
- package/Marketplace/chunk-AZ2FLWCK.js +266 -0
- package/Marketplace/chunk-BAYW2AHI.js +1 -0
- package/Marketplace/chunk-BCM6WRZR.js +5 -0
- package/Marketplace/chunk-BQTUAYGY.js +1 -0
- package/Marketplace/chunk-CFC5CQ3V.js +1 -0
- package/Marketplace/chunk-CLDURV35.js +2 -0
- package/Marketplace/chunk-CRZOIZUQ.js +1 -0
- package/Marketplace/chunk-CSSG7NAJ.js +1 -0
- package/Marketplace/chunk-D66XCOBY.js +1 -0
- package/Marketplace/chunk-DIUEZVRG.js +1 -0
- package/Marketplace/chunk-DJILLV4M.js +1 -0
- package/Marketplace/chunk-DLSU35PZ.js +5 -0
- package/Marketplace/chunk-DMW4DWIM.js +1 -0
- package/Marketplace/{chunk-ZD5LURJS.js → chunk-E2CS7ZMC.js} +1 -1
- package/Marketplace/chunk-ECN3QRMT.js +1 -0
- package/Marketplace/chunk-EU2KAMEK.js +1 -0
- package/Marketplace/chunk-F4GMWHYJ.js +33 -0
- package/Marketplace/chunk-F4HFUSVI.js +1 -0
- package/Marketplace/{chunk-RGR34QZ3.js → chunk-FBZW4Y3J.js} +1 -1
- package/Marketplace/{chunk-6NNAICJE.js → chunk-FWG4H3QG.js} +1 -1
- package/Marketplace/chunk-G4OF4YLE.js +2 -0
- package/Marketplace/chunk-GCECFUOP.js +1 -0
- package/Marketplace/{chunk-UBMI3NQH.js → chunk-GHBGGQNM.js} +1 -1
- package/Marketplace/chunk-GMGCY3OL.js +1 -0
- package/Marketplace/chunk-GOS4RIF2.js +1 -0
- package/Marketplace/{chunk-IEYFOHME.js → chunk-GPC4DECX.js} +1 -1
- package/Marketplace/chunk-GZXQUJKX.js +1 -0
- package/Marketplace/{chunk-TMFFA26Y.js → chunk-HFKKITEW.js} +1 -1
- package/Marketplace/{chunk-KHWTOD6H.js → chunk-HPYTL6TX.js} +1 -1
- package/Marketplace/chunk-HTQJCQ32.js +1 -0
- package/Marketplace/chunk-I5IZPTXZ.js +1 -0
- package/Marketplace/{chunk-GBABJLPQ.js → chunk-IKPRRD5D.js} +1 -1
- package/Marketplace/chunk-IR5OMZTZ.js +1 -0
- package/Marketplace/chunk-ITTTKW6F.js +1 -0
- package/Marketplace/chunk-IUWXRFDI.js +1 -0
- package/Marketplace/{chunk-EGTYAIU5.js → chunk-JOBWFOGC.js} +1 -1
- package/Marketplace/{chunk-PPDHTO44.js → chunk-JRWFZQ5K.js} +1 -1
- package/Marketplace/chunk-JRXB6762.js +252 -0
- package/Marketplace/chunk-JS55A2RS.js +7 -0
- package/Marketplace/chunk-JV4MMNGD.js +79 -0
- package/Marketplace/chunk-K654EZ3I.js +1 -0
- package/Marketplace/chunk-KC3C62UO.js +4 -0
- package/Marketplace/{chunk-GBXNTL4E.js → chunk-KQQCKHF3.js} +1 -1
- package/Marketplace/chunk-KR2UT3GA.js +1 -0
- package/Marketplace/chunk-KWQS4KX7.js +1 -0
- package/Marketplace/{chunk-COBHWPGI.js → chunk-KX5AWR75.js} +1 -1
- package/Marketplace/chunk-KXS76PRS.js +70 -0
- package/Marketplace/chunk-KYIY3VQ6.js +141 -0
- package/Marketplace/{chunk-J7AGLBPL.js → chunk-LHD7CYML.js} +1 -1
- package/Marketplace/chunk-LR4UZ2OS.js +30 -0
- package/Marketplace/{chunk-M3SJUKTG.js → chunk-LSXUXG54.js} +1 -1
- package/Marketplace/chunk-LWSRD5LF.js +1 -0
- package/Marketplace/{chunk-Q2OEJFVT.js → chunk-M5IQRAHV.js} +1 -1
- package/Marketplace/chunk-MKOJVMRR.js +1 -0
- package/Marketplace/chunk-MMT3VFZZ.js +1 -0
- package/Marketplace/{chunk-RIHLYYZU.js → chunk-MQXPOHBV.js} +1 -1
- package/Marketplace/chunk-MTUIRWOB.js +2 -0
- package/Marketplace/chunk-MZI5AYCE.js +1 -0
- package/Marketplace/chunk-NB5XHM62.js +1 -0
- package/Marketplace/{chunk-JBKHY4HH.js → chunk-NRCXYGO3.js} +5 -5
- package/Marketplace/chunk-NTW6FBP5.js +1 -0
- package/Marketplace/chunk-NZA4BEER.js +102 -0
- package/Marketplace/chunk-O55KM5KY.js +1 -0
- package/Marketplace/chunk-O6U5QCHJ.js +1 -0
- package/Marketplace/chunk-OJWFYXZX.js +1 -0
- package/Marketplace/{chunk-G6EG5QJS.js → chunk-OKAPL3YZ.js} +1 -1
- package/Marketplace/chunk-OTFACGUB.js +1 -0
- package/Marketplace/{chunk-WAW37FIG.js → chunk-OZ77CAJD.js} +1 -1
- package/Marketplace/chunk-OZ7LWNOK.js +15 -0
- package/Marketplace/chunk-PB2SJSML.js +1 -0
- package/Marketplace/chunk-PE5AFID4.js +1 -0
- package/Marketplace/{chunk-7TWBIV3T.js → chunk-PO7JVKK3.js} +1 -1
- package/Marketplace/chunk-PW42BQIY.js +1 -0
- package/Marketplace/chunk-PZ4PSWYM.js +3 -0
- package/Marketplace/chunk-QACWANJT.js +1 -0
- package/Marketplace/chunk-QUXUEWEF.js +1 -0
- package/Marketplace/chunk-R22TUWCL.js +15 -0
- package/Marketplace/{chunk-75BDXSG3.js → chunk-R76V3PTN.js} +10 -10
- package/Marketplace/chunk-RCRPQNNW.js +1 -0
- package/Marketplace/chunk-SACERVTF.js +1 -0
- package/Marketplace/chunk-SDKAJBVB.js +1 -0
- package/Marketplace/{chunk-VGXQU74M.js → chunk-SH7KN2AS.js} +1 -1
- package/Marketplace/{chunk-CH2MLZU7.js → chunk-SIYMMMKQ.js} +1 -1
- package/Marketplace/chunk-SLQA5QBT.js +1 -0
- package/Marketplace/chunk-SMCI6XBO.js +1 -0
- package/Marketplace/chunk-SNDG7727.js +1 -0
- package/Marketplace/{chunk-QCZIDOKW.js → chunk-SXLKJLAE.js} +1 -1
- package/Marketplace/{chunk-6IAGGRZN.js → chunk-SYENQYR7.js} +1 -1
- package/Marketplace/chunk-T2IGESWD.js +1 -0
- package/Marketplace/chunk-T3Z5OMIZ.js +1 -0
- package/Marketplace/{chunk-V5WYSCVT.js → chunk-TGMCGROM.js} +1 -1
- package/Marketplace/chunk-TGN4NMQY.js +1 -0
- package/Marketplace/{chunk-OE2JYQHN.js → chunk-TNKPTRB3.js} +1 -1
- package/Marketplace/{chunk-DRSUXHAY.js → chunk-UBB6E4VL.js} +1 -1
- package/Marketplace/chunk-UDIAPGRB.js +1 -0
- package/Marketplace/chunk-UEWZXE4O.js +1 -0
- package/Marketplace/chunk-UF4FKEE7.js +93 -0
- package/Marketplace/chunk-UJYSVGLV.js +1 -0
- package/Marketplace/{chunk-5GX2GLRY.js → chunk-UMY6NG57.js} +1 -1
- package/Marketplace/{chunk-YXFTLQ5M.js → chunk-UPYS4A4M.js} +1 -1
- package/Marketplace/chunk-VRI3CYGG.js +1 -0
- package/Marketplace/{chunk-6XFYITUD.js → chunk-WGXUKTYP.js} +1 -1
- package/Marketplace/{chunk-ZZVNB72Q.js → chunk-WHZ44BAL.js} +1 -1
- package/Marketplace/chunk-WXQDF2MX.js +1 -0
- package/Marketplace/chunk-X5DJBQUZ.js +1 -0
- package/Marketplace/{chunk-MNFHFW3E.js → chunk-XEMNZHW6.js} +1 -1
- package/Marketplace/chunk-XENOOCI4.js +1 -0
- package/Marketplace/{chunk-J3P46Z53.js → chunk-XQGRC7V2.js} +1 -1
- package/Marketplace/{chunk-YR2WEZDG.js → chunk-YPVYJUXS.js} +1 -1
- package/Marketplace/{chunk-VWFLNITX.js → chunk-YR3PNRLA.js} +1 -1
- package/Marketplace/chunk-Z3ITXK3D.js +1 -0
- package/Marketplace/chunk-ZAVDOMSW.js +1 -0
- package/Marketplace/{chunk-GSPHYK6J.js → chunk-ZDYYX736.js} +11 -11
- package/Marketplace/chunk-ZFDUVL4I.js +1 -0
- package/Marketplace/{chunk-GHQH62TZ.js → chunk-ZIOAOUAM.js} +1 -1
- package/Marketplace/chunk-ZNDU44GH.js +51 -0
- package/Marketplace/{chunk-7FUVW73P.js → chunk-ZR5IXNXB.js} +1 -1
- package/Marketplace/index.html +3 -3
- package/Marketplace/main-OO7ZEZW4.js +1 -0
- package/Marketplace/{styles-NJFTKO3E.css → styles-X3FXEB7T.css} +1 -1
- package/package.json +1 -1
- package/Marketplace/chunk-26DZ5AMC.js +0 -1
- package/Marketplace/chunk-2BBMPSAE.js +0 -93
- package/Marketplace/chunk-2G6NLWKN.js +0 -1
- package/Marketplace/chunk-3E5FYRN4.js +0 -1
- package/Marketplace/chunk-3PNMJUYQ.js +0 -15
- package/Marketplace/chunk-4AMQ66FW.js +0 -1
- package/Marketplace/chunk-4ASUM4N5.js +0 -1
- package/Marketplace/chunk-4G3QN54S.js +0 -193
- package/Marketplace/chunk-4NRAXW65.js +0 -1
- package/Marketplace/chunk-4RTZASVJ.js +0 -1
- package/Marketplace/chunk-4XMCJ7I5.js +0 -1
- package/Marketplace/chunk-5KMCSNS6.js +0 -2
- package/Marketplace/chunk-5S6SIKR7.js +0 -1
- package/Marketplace/chunk-62PFQNHJ.js +0 -1
- package/Marketplace/chunk-6AKFGBPY.js +0 -4
- package/Marketplace/chunk-6ALHX2I4.js +0 -1
- package/Marketplace/chunk-7XREAR3H.js +0 -1
- package/Marketplace/chunk-AMXLXRQK.js +0 -1
- package/Marketplace/chunk-AWDLMHBL.js +0 -1
- package/Marketplace/chunk-CHZLFJFI.js +0 -3
- package/Marketplace/chunk-CMCNEAGC.js +0 -1
- package/Marketplace/chunk-CPAHXWMO.js +0 -1
- package/Marketplace/chunk-CTN7GW4H.js +0 -1
- package/Marketplace/chunk-CYZQNZDB.js +0 -1
- package/Marketplace/chunk-D54NUPYF.js +0 -153
- package/Marketplace/chunk-DI4V7KMK.js +0 -1
- package/Marketplace/chunk-DPLEMBB4.js +0 -1
- package/Marketplace/chunk-DZ2EE5MV.js +0 -1
- package/Marketplace/chunk-E3HMIPER.js +0 -2
- package/Marketplace/chunk-GJOCO2OS.js +0 -2
- package/Marketplace/chunk-GPEVUTDI.js +0 -2
- package/Marketplace/chunk-GSH5BYZ6.js +0 -1
- package/Marketplace/chunk-HKYVBAMV.js +0 -1
- package/Marketplace/chunk-IIJMZKPL.js +0 -1
- package/Marketplace/chunk-JDEKWXPV.js +0 -1
- package/Marketplace/chunk-JFJCXZD3.js +0 -1
- package/Marketplace/chunk-K2H6WANG.js +0 -1
- package/Marketplace/chunk-KQOYVGBL.js +0 -1
- package/Marketplace/chunk-KVP6OL4J.js +0 -2
- package/Marketplace/chunk-LPXBSHUI.js +0 -180
- package/Marketplace/chunk-MATSRG2L.js +0 -447
- package/Marketplace/chunk-PJ72KMDS.js +0 -1
- package/Marketplace/chunk-PVUSCHKJ.js +0 -1
- package/Marketplace/chunk-PXB4YEY3.js +0 -1
- package/Marketplace/chunk-Q2R4GEW5.js +0 -1
- package/Marketplace/chunk-RBC7ADJF.js +0 -1
- package/Marketplace/chunk-REFJUWLL.js +0 -5
- package/Marketplace/chunk-RIYAYANU.js +0 -1
- package/Marketplace/chunk-T5ONJF63.js +0 -7
- package/Marketplace/chunk-T6QOFDEE.js +0 -1
- package/Marketplace/chunk-U5VX6JLT.js +0 -1
- package/Marketplace/chunk-VAU6MFH7.js +0 -1
- package/Marketplace/chunk-VETHPEVU.js +0 -1
- package/Marketplace/chunk-VJKFHBPN.js +0 -5
- package/Marketplace/chunk-VSEWXNVC.js +0 -291
- package/Marketplace/chunk-X3LH2IJE.js +0 -1
- package/Marketplace/chunk-XM6GN4VF.js +0 -1
- package/Marketplace/chunk-YIUQQGOQ.js +0 -1
- package/Marketplace/chunk-ZHUHOS5T.js +0 -1
- package/Marketplace/main-CCWBPZQH.js +0 -1
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
import{a as $e}from"./chunk-CRZOIZUQ.js";import{a as Kt,b as Ht}from"./chunk-UF4FKEE7.js";import{a as ke,b as Nt}from"./chunk-ZNDU44GH.js";import{b as Re}from"./chunk-5XI7HWS5.js";import{a as Mt,b as Lt,c as Rt,d as zt}from"./chunk-NZA4BEER.js";import{a as At}from"./chunk-JV4MMNGD.js";import{a as Ft}from"./chunk-GZXQUJKX.js";import{b as $t}from"./chunk-ALKC77XL.js";import{a as kt,c as Et,d as Dt}from"./chunk-NTW6FBP5.js";import{a as Pt}from"./chunk-LR4UZ2OS.js";import"./chunk-F4GMWHYJ.js";import{a as Qt}from"./chunk-PO7JVKK3.js";import{a as rt}from"./chunk-5DIRXS7I.js";import{a as Vt}from"./chunk-KXS76PRS.js";import{a as Ot,c as wt}from"./chunk-OZ7LWNOK.js";import{a as he}from"./chunk-VRI3CYGG.js";import{F as De,N as vt,O as A,P as q,Q as j,S as me,U as St,W as Ct,Y as It,a as ue,ba as Oe,e as ft,ea as Tt,fa as xt,ga as we,ha as Ve,ia as ee,ja as $,ka as _e,q as xe,r as B,t as gt,u as yt,y as bt}from"./chunk-AVEGIEYT.js";import{d as pt,e as dt}from"./chunk-SYENQYR7.js";import"./chunk-PB2SJSML.js";import{b as st}from"./chunk-4M63ID5T.js";import"./chunk-K5XRGNWG.js";import{c as de}from"./chunk-PW42BQIY.js";import{m as _t,n as ht}from"./chunk-6X2OBNJQ.js";import{a as ot,c as at,h as se,m as ce,z as pe}from"./chunk-CSSG7NAJ.js";import"./chunk-MZI5AYCE.js";import{a as ct}from"./chunk-UJYSVGLV.js";import{r as ut,s as mt}from"./chunk-HFKKITEW.js";import"./chunk-OZ77CAJD.js";import{E as tt,G as it,H as nt,J as lt,d as U,f as Xe,g as oe,h as ae,i as re,j as et,n as G}from"./chunk-MTUIRWOB.js";import{$b as Ce,$c as We,Ac as R,Bc as _,Ca as Z,Cc as h,Fc as ie,Gb as P,Gc as v,Hb as Se,Hc as F,Ic as J,Ka as V,Kb as te,Kc as Q,La as He,Lc as N,Mb as p,Mc as K,Nc as Ze,Qc as X,Ra as w,Rc as H,Sc as M,Tc as ne,Uc as Le,Xb as T,Yb as r,Z as ze,Zb as Ge,_b as Be,aa as Qe,ac as W,ad as Ye,cd as L,dc as Y,ea as Ne,gc as qe,hc as je,ia as Ke,ic as d,ja as ye,jc as u,ka as be,kc as D,lc as C,mc as I,nc as x,oc as k,od as S,pa as E,pb as Ue,pd as le,rb as s,rd as Te,sd as Je,tc as O,uc as c,v as Pe,vc as Ie,wc as z,xb as ve,ya as g,za as y,zc as f}from"./chunk-JS55A2RS.js";import"./chunk-EU2KAMEK.js";import{a as Fe,b as Ee}from"./chunk-66YHNWRR.js";var fe=t=>({height:t}),ni=(t,a,e)=>({"p-multiselect-option-selected":t,"p-disabled":a,"p-focus":e}),qt=t=>({$implicit:t}),li=(t,a)=>({checked:t,class:a});function oi(t,a){}function ai(t,a){t&1&&p(0,oi,0,0,"ng-template")}function ri(t,a){if(t&1&&p(0,ai,1,0,null,4),t&2){let e=a.class,n=c(2);r("ngTemplateOutlet",n.itemCheckboxIconTemplate)("ngTemplateOutletContext",ne(2,li,n.selected,e))}}function si(t,a){t&1&&(C(0),p(1,ri,1,5,"ng-template",null,0,L),I())}function ci(t,a){if(t&1&&(d(0,"span"),v(1),u()),t&2){let e,n=c();s(),F((e=n.label)!==null&&e!==void 0?e:"empty")}}function pi(t,a){t&1&&x(0)}var di=["item"],ui=["group"],mi=["loader"],_i=["header"],hi=["filter"],fi=["footer"],gi=["emptyfilter"],yi=["empty"],bi=["selecteditems"],vi=["checkicon"],Si=["loadingicon"],Ci=["filtericon"],Ii=["removetokenicon"],Ti=["chipicon"],xi=["clearicon"],Oi=["dropdownicon"],wi=["itemcheckboxicon"],Vi=["headercheckboxicon"],ki=["overlay"],Mi=["filterInput"],Fi=["focusInput"],Ei=["items"],Li=["scroller"],Di=["lastHiddenFocusableEl"],Ri=["firstHiddenFocusableEl"],$i=["headerCheckbox"],Ai=[[["p-header"]],[["p-footer"]]],Pi=["p-header","p-footer"],zi=()=>({class:"p-multiselect-chip-icon"}),Qi=(t,a)=>({$implicit:t,removeChip:a}),jt=t=>({options:t}),Ni=(t,a,e)=>({checked:t,partialSelected:a,class:e}),Zt=(t,a)=>({$implicit:t,options:a}),Ki=()=>({});function Hi(t,a){if(t&1&&(C(0),v(1),I()),t&2){let e=c(2);s(),F(e.label()||"empty")}}function Ui(t,a){if(t&1&&v(0),t&2){let e=c(3);J(" ",e.getSelectedItemsLabel()," ")}}function Gi(t,a){t&1&&x(0)}function Bi(t,a){if(t&1){let e=k();d(0,"span",28),O("click",function(i){g(e);let l=c(4).$implicit,o=c(4);return y(o.removeOption(l,i))}),p(1,Gi,1,0,"ng-container",29),u()}if(t&2){let e=c(8);T("data-pc-section","clearicon")("aria-hidden",!0),s(),r("ngTemplateOutlet",e.chipIconTemplate||e._chipIconTemplate||e.removeTokenIconTemplate||e._removeTokenIconTemplate)("ngTemplateOutletContext",H(4,zi))}}function qi(t,a){if(t&1&&(C(0),p(1,Bi,2,5,"span",27),I()),t&2){let e=c(7);s(),r("ngIf",e.chipIconTemplate||e._chipIconTemplate||e.removeTokenIconTemplate||e._removeTokenIconTemplate)}}function ji(t,a){if(t&1&&p(0,qi,2,1,"ng-container",20),t&2){let e=c(6);r("ngIf",!e.disabled&&!e.readonly)}}function Zi(t,a){t&1&&(C(0),p(1,ji,1,1,"ng-template",null,5,L),I())}function Wi(t,a){if(t&1){let e=k();d(0,"div",24,4)(2,"p-chip",26),O("onRemove",function(i){let l=g(e).$implicit,o=c(4);return y(o.removeOption(l,i))}),p(3,Zi,3,0,"ng-container",20),u()()}if(t&2){let e=a.$implicit,n=c(4);s(2),r("label",n.getLabelByValue(e))("removable",!n.disabled&&!n.readonly)("removeIcon",n.chipIcon),s(),r("ngIf",n.chipIconTemplate||n._chipIconTemplate||n.removeTokenIconTemplate||n._removeTokenIconTemplate)}}function Yi(t,a){if(t&1&&p(0,Wi,4,4,"div",25),t&2){let e=c(3);r("ngForOf",e.chipSelectedItems())}}function Ji(t,a){if(t&1&&(C(0),v(1),I()),t&2){let e=c(3);s(),F(e.placeholder()||e.defaultLabel||"empty")}}function Xi(t,a){if(t&1&&(C(0),p(1,Ui,1,1)(2,Yi,1,1,"div",24)(3,Ji,2,1,"ng-container",20),I()),t&2){let e=c(2);s(),Y(e.chipSelectedItems()&&e.chipSelectedItems().length===e.maxSelectedLabels?1:2),s(2),r("ngIf",!e.modelValue()||e.modelValue().length===0)}}function en(t,a){if(t&1&&(C(0),p(1,Hi,2,1,"ng-container",20)(2,Xi,4,2,"ng-container",20),I()),t&2){let e=c();s(),r("ngIf",e.display==="comma"),s(),r("ngIf",e.display==="chip")}}function tn(t,a){t&1&&x(0)}function nn(t,a){if(t&1&&(C(0),v(1),I()),t&2){let e=c(2);s(),F(e.placeholder()||e.defaultLabel||"empty")}}function ln(t,a){if(t&1&&(C(0),p(1,tn,1,0,"ng-container",29)(2,nn,2,1,"ng-container",20),I()),t&2){let e=c();s(),r("ngTemplateOutlet",e.selectedItemsTemplate||e._selectedItemsTemplate)("ngTemplateOutletContext",ne(3,Qi,e.selectedOptions,e.removeOption.bind(e))),s(),r("ngIf",!e.modelValue()||e.modelValue().length===0)}}function on(t,a){if(t&1){let e=k();d(0,"TimesIcon",31),O("click",function(i){g(e);let l=c(2);return y(l.clear(i))}),u()}t&2&&T("data-pc-section","clearicon")("aria-hidden",!0)}function an(t,a){}function rn(t,a){t&1&&p(0,an,0,0,"ng-template")}function sn(t,a){if(t&1){let e=k();d(0,"span",31),O("click",function(i){g(e);let l=c(2);return y(l.clear(i))}),p(1,rn,1,0,null,32),u()}if(t&2){let e=c(2);T("data-pc-section","clearicon")("aria-hidden",!0),s(),r("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function cn(t,a){if(t&1&&(C(0),p(1,on,1,2,"TimesIcon",30)(2,sn,2,3,"span",30),I()),t&2){let e=c();s(),r("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),s(),r("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function pn(t,a){t&1&&x(0)}function dn(t,a){if(t&1&&(C(0),p(1,pn,1,0,"ng-container",32),I()),t&2){let e=c(2);s(),r("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function un(t,a){if(t&1&&D(0,"span",35),t&2){let e=c(3);r("ngClass","p-multiselect-loading-icon pi-spin "+e.loadingIcon)}}function mn(t,a){t&1&&D(0,"span",36),t&2&&W("p-multiselect-loading-icon pi pi-spinner pi-spin")}function _n(t,a){if(t&1&&(C(0),p(1,un,1,1,"span",33)(2,mn,1,2,"span",34),I()),t&2){let e=c(2);s(),r("ngIf",e.loadingIcon),s(),r("ngIf",!e.loadingIcon)}}function hn(t,a){if(t&1&&(C(0),p(1,dn,2,1,"ng-container",20)(2,_n,3,2,"ng-container",20),I()),t&2){let e=c();s(),r("ngIf",e.loadingIconTemplate||e._loadingIconTemplate),s(),r("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate)}}function fn(t,a){if(t&1&&D(0,"span",40),t&2){let e=c(3);r("ngClass",e.dropdownIcon),T("data-pc-section","triggericon")("aria-hidden",!0)}}function gn(t,a){t&1&&D(0,"ChevronDownIcon",41),t&2&&(r("styleClass","p-multiselect-dropdown-icon"),T("data-pc-section","triggericon")("aria-hidden",!0))}function yn(t,a){if(t&1&&(C(0),p(1,fn,1,3,"span",38)(2,gn,1,3,"ChevronDownIcon",39),I()),t&2){let e=c(2);s(),r("ngIf",e.dropdownIcon),s(),r("ngIf",!e.dropdownIcon)}}function bn(t,a){}function vn(t,a){t&1&&p(0,bn,0,0,"ng-template")}function Sn(t,a){if(t&1&&(d(0,"span",42),p(1,vn,1,0,null,32),u()),t&2){let e=c(2);T("data-pc-section","triggericon")("aria-hidden",!0),s(),r("ngTemplateOutlet",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function Cn(t,a){if(t&1&&p(0,yn,3,2,"ng-container",20)(1,Sn,2,3,"span",37),t&2){let e=c();r("ngIf",!e.dropdownIconTemplate&&!e._dropdownIconTemplate),s(),r("ngIf",e.dropdownIconTemplate||e._dropdownIconTemplate)}}function In(t,a){t&1&&x(0)}function Tn(t,a){t&1&&x(0)}function xn(t,a){if(t&1&&(C(0),p(1,Tn,1,0,"ng-container",29),I()),t&2){let e=c(3);s(),r("ngTemplateOutlet",e.filterTemplate||e._filterTemplate)("ngTemplateOutletContext",M(2,jt,e.filterOptions))}}function On(t,a){if(t&1&&D(0,"CheckIcon",41),t&2){let e=c().class;r("styleClass",e),T("data-pc-section","icon")}}function wn(t,a){}function Vn(t,a){t&1&&p(0,wn,0,0,"ng-template")}function kn(t,a){if(t&1&&p(0,On,1,2,"CheckIcon",39)(1,Vn,1,0,null,29),t&2){let e=a.class,n=c(5);r("ngIf",!n.headerCheckboxIconTemplate&&!n._headerCheckboxIconTemplate&&n.allSelected()),s(),r("ngTemplateOutlet",n.headerCheckboxIconTemplate||n._headerCheckboxIconTemplate)("ngTemplateOutletContext",Le(3,Ni,n.allSelected(),n.partialSelected(),e))}}function Mn(t,a){if(t&1){let e=k();d(0,"p-checkbox",51,10),O("onChange",function(i){g(e);let l=c(4);return y(l.onToggleAll(i))}),p(2,kn,2,7,"ng-template",null,11,L),u()}if(t&2){let e=c(4);r("ngModel",e.allSelected())("ariaLabel",e.toggleAllAriaLabel)("binary",!0)("variant",e.variant)("disabled",e.disabled)}}function Fn(t,a){t&1&&D(0,"SearchIcon",41),t&2&&r("styleClass","p-multiselect-filter-icon")}function En(t,a){}function Ln(t,a){t&1&&p(0,En,0,0,"ng-template")}function Dn(t,a){if(t&1&&(d(0,"span",55),p(1,Ln,1,0,null,32),u()),t&2){let e=c(5);s(),r("ngTemplateOutlet",e.filterIconTemplate||e._filterIconTemplate)}}function Rn(t,a){if(t&1){let e=k();d(0,"div",52)(1,"p-iconfield")(2,"input",53,12),O("input",function(i){g(e);let l=c(4);return y(l.onFilterInputChange(i))})("keydown",function(i){g(e);let l=c(4);return y(l.onFilterKeyDown(i))})("click",function(i){g(e);let l=c(4);return y(l.onInputClick(i))})("blur",function(i){g(e);let l=c(4);return y(l.onFilterBlur(i))}),u(),d(4,"p-inputicon"),p(5,Fn,1,1,"SearchIcon",39)(6,Dn,2,1,"span",54),u()()()}if(t&2){let e=c(4);s(2),r("variant",e.variant)("value",e._filterValue()||"")("disabled",e.disabled),T("autocomplete",e.autocomplete)("aria-owns",e.id+"_list")("aria-activedescendant",e.focusedOptionId)("placeholder",e.filterPlaceHolder)("aria-label",e.ariaFilterLabel),s(3),r("ngIf",!e.filterIconTemplate&&!e._filterIconTemplate),s(),r("ngIf",e.filterIconTemplate||e._filterIconTemplate)}}function $n(t,a){if(t&1&&p(0,Mn,4,5,"p-checkbox",49)(1,Rn,7,10,"div",50),t&2){let e=c(3);r("ngIf",e.showToggleAll&&!e.selectionLimit),s(),r("ngIf",e.filter)}}function An(t,a){if(t&1&&(d(0,"div",48),z(1),p(2,xn,2,4,"ng-container",22)(3,$n,2,2,"ng-template",null,9,L),u()),t&2){let e=ie(4),n=c(2);s(2),r("ngIf",n.filterTemplate||n._filterTemplate)("ngIfElse",e)}}function Pn(t,a){t&1&&x(0)}function zn(t,a){if(t&1&&p(0,Pn,1,0,"ng-container",29),t&2){let e=a.$implicit,n=a.options;c(2);let i=ie(9);r("ngTemplateOutlet",i)("ngTemplateOutletContext",ne(2,Zt,e,n))}}function Qn(t,a){t&1&&x(0)}function Nn(t,a){if(t&1&&p(0,Qn,1,0,"ng-container",29),t&2){let e=a.options,n=c(4);r("ngTemplateOutlet",n.loaderTemplate||n._loaderTemplate)("ngTemplateOutletContext",M(2,jt,e))}}function Kn(t,a){t&1&&(C(0),p(1,Nn,1,4,"ng-template",null,14,L),I())}function Hn(t,a){if(t&1){let e=k();d(0,"p-scroller",56,13),O("onLazyLoad",function(i){g(e);let l=c(2);return y(l.onLazyLoad.emit(i))}),p(2,zn,1,5,"ng-template",null,3,L)(4,Kn,3,0,"ng-container",20),u()}if(t&2){let e=c(2);Ce(M(9,fe,e.scrollHeight)),r("items",e.visibleOptions())("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("tabindex",-1)("lazy",e.lazy)("options",e.virtualScrollOptions),s(4),r("ngIf",e.loaderTemplate||e._loaderTemplate)}}function Un(t,a){t&1&&x(0)}function Gn(t,a){if(t&1&&(C(0),p(1,Un,1,0,"ng-container",29),I()),t&2){c();let e=ie(9),n=c();s(),r("ngTemplateOutlet",e)("ngTemplateOutletContext",ne(3,Zt,n.visibleOptions(),H(2,Ki)))}}function Bn(t,a){if(t&1&&(d(0,"span"),v(1),u()),t&2){let e=c(2).$implicit,n=c(3);s(),F(n.getOptionGroupLabel(e.optionGroup))}}function qn(t,a){t&1&&x(0)}function jn(t,a){if(t&1&&(C(0),d(1,"li",60),p(2,Bn,2,1,"span",20)(3,qn,1,0,"ng-container",29),u(),I()),t&2){let e=c(),n=e.$implicit,i=e.index,l=c().options,o=c(2);s(),r("ngStyle",M(5,fe,l.itemSize+"px")),T("id",o.id+"_"+o.getOptionIndex(i,l)),s(),r("ngIf",!o.groupTemplate),s(),r("ngTemplateOutlet",o.groupTemplate)("ngTemplateOutletContext",M(7,qt,n.optionGroup))}}function Zn(t,a){if(t&1){let e=k();C(0),d(1,"p-multiselect-item",61),O("onClick",function(i){g(e);let l=c().index,o=c().options,m=c(2);return y(m.onOptionSelect(i,!1,m.getOptionIndex(l,o)))})("onMouseEnter",function(i){g(e);let l=c().index,o=c().options,m=c(2);return y(m.onOptionMouseEnter(i,m.getOptionIndex(l,o)))}),u(),I()}if(t&2){let e=c(),n=e.$implicit,i=e.index,l=c().options,o=c(2);s(),r("id",o.id+"_"+o.getOptionIndex(i,l))("option",n)("selected",o.isSelected(n))("label",o.getOptionLabel(n))("disabled",o.isOptionDisabled(n))("template",o.itemTemplate||o._itemTemplate)("checkIconTemplate",o.checkIconTemplate||o._checkIconTemplate)("itemCheckboxIconTemplate",o.itemCheckboxIconTemplate||o._itemCheckboxIconTemplate)("itemSize",l.itemSize)("focused",o.focusedOptionIndex()===o.getOptionIndex(i,l))("ariaPosInset",o.getAriaPosInset(o.getOptionIndex(i,l)))("ariaSetSize",o.ariaSetSize)("variant",o.variant)("highlightOnSelect",o.highlightOnSelect)}}function Wn(t,a){if(t&1&&p(0,jn,4,9,"ng-container",20)(1,Zn,2,14,"ng-container",20),t&2){let e=a.$implicit,n=c(3);r("ngIf",n.isOptionGroup(e)),s(),r("ngIf",!n.isOptionGroup(e))}}function Yn(t,a){if(t&1&&v(0),t&2){let e=c(4);J(" ",e.emptyFilterMessageLabel," ")}}function Jn(t,a){t&1&&x(0)}function Xn(t,a){if(t&1&&p(0,Jn,1,0,"ng-container",32),t&2){let e=c(4);r("ngTemplateOutlet",e.emptyFilterTemplate||e._emptyFilterTemplate||e.emptyTemplate||e._emptyFilterTemplate)}}function el(t,a){if(t&1&&(d(0,"li",62),p(1,Yn,1,1)(2,Xn,1,1,"ng-container"),u()),t&2){let e=c().options,n=c(2);r("ngStyle",M(2,fe,e.itemSize+"px")),s(),Y(!n.emptyFilterTemplate&&!n._emptyFilterTemplate&&!n.emptyTemplate&&!n._emptyTemplate?1:2)}}function tl(t,a){if(t&1&&v(0),t&2){let e=c(4);J(" ",e.emptyMessageLabel," ")}}function il(t,a){t&1&&x(0)}function nl(t,a){if(t&1&&p(0,il,1,0,"ng-container",32),t&2){let e=c(4);r("ngTemplateOutlet",e.emptyTemplate||e._emptyTemplate)}}function ll(t,a){if(t&1&&(d(0,"li",62),p(1,tl,1,1)(2,nl,1,1,"ng-container"),u()),t&2){let e=c().options,n=c(2);r("ngStyle",M(2,fe,e.itemSize+"px")),s(),Y(!n.emptyTemplate&&!n._emptyTemplate?1:2)}}function ol(t,a){if(t&1&&(d(0,"ul",57,15),p(2,Wn,2,2,"ng-template",58)(3,el,3,4,"li",59)(4,ll,3,4,"li",59),u()),t&2){let e=a.$implicit,n=a.options,i=c(2);Ce(n.contentStyle),r("ngClass",n.contentStyleClass),T("aria-label",i.listLabel),s(2),r("ngForOf",e),s(),r("ngIf",i.hasFilter()&&i.isEmpty()),s(),r("ngIf",!i.hasFilter()&&i.isEmpty())}}function al(t,a){t&1&&x(0)}function rl(t,a){if(t&1&&(d(0,"div"),z(1,1),p(2,al,1,0,"ng-container",32),u()),t&2){let e=c(2);s(2),r("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}function sl(t,a){if(t&1){let e=k();d(0,"div",43)(1,"span",44,6),O("focus",function(i){g(e);let l=c();return y(l.onFirstHiddenFocus(i))}),u(),p(3,In,1,0,"ng-container",32)(4,An,5,2,"div",45),d(5,"div",46),p(6,Hn,5,11,"p-scroller",47)(7,Gn,2,6,"ng-container",20)(8,ol,5,7,"ng-template",null,7,L),u(),p(10,rl,3,1,"div",20),d(11,"span",44,8),O("focus",function(i){g(e);let l=c();return y(l.onLastHiddenFocus(i))}),u()()}if(t&2){let e=c();W(e.panelStyleClass),r("ngClass","p-multiselect-overlay p-component")("ngStyle",e.panelStyle),T("id",e.id+"_list"),s(),T("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0),s(2),r("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),s(),r("ngIf",e.showHeader),s(),Ge("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),s(),r("ngIf",e.virtualScroll),s(),r("ngIf",!e.virtualScroll),s(3),r("ngIf",e.footerFacet||e.footerTemplate||e._footerTemplate),s(),T("tabindex",0)("data-p-hidden-accessible",!0)("data-p-hidden-focusable",!0)}}var cl=({dt:t})=>`
|
|
2
|
+
.p-multiselect {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
cursor: pointer;
|
|
5
|
+
position: relative;
|
|
6
|
+
user-select: none;
|
|
7
|
+
background: ${t("multiselect.background")};
|
|
8
|
+
border: 1px solid ${t("multiselect.border.color")};
|
|
9
|
+
transition: background ${t("multiselect.transition.duration")}, color ${t("multiselect.transition.duration")}, border-color ${t("multiselect.transition.duration")}, outline-color ${t("multiselect.transition.duration")}, box-shadow ${t("multiselect.transition.duration")};
|
|
10
|
+
border-radius: ${t("multiselect.border.radius")};
|
|
11
|
+
outline-color: transparent;
|
|
12
|
+
box-shadow: ${t("multiselect.shadow")};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.p-multiselect.ng-invalid.ng-dirty {
|
|
16
|
+
border-color: ${t("multiselect.invalid.border.color")};
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.p-multiselect:not(.p-disabled):hover {
|
|
20
|
+
border-color: ${t("multiselect.hover.border.color")};
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.p-multiselect:not(.p-disabled).p-focus {
|
|
24
|
+
border-color: ${t("multiselect.focus.border.color")};
|
|
25
|
+
box-shadow: ${t("multiselect.focus.ring.shadow")};
|
|
26
|
+
outline: ${t("multiselect.focus.ring.width")} ${t("multiselect.focus.ring.style")} ${t("multiselect.focus.ring.color")};
|
|
27
|
+
outline-offset: ${t("multiselect.focus.ring.offset")};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.p-multiselect.p-variant-filled {
|
|
31
|
+
background: ${t("multiselect.filled.background")};
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.p-multiselect.p-variant-filled:not(.p-disabled):hover {
|
|
35
|
+
background: ${t("multiselect.filled.hover.background")};
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.p-multiselect.p-variant-filled.p-focus {
|
|
39
|
+
background: ${t("multiselect.filled.focus.background")};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.p-multiselect.p-disabled {
|
|
43
|
+
opacity: 1;
|
|
44
|
+
background: ${t("multiselect.disabled.background")};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.p-multiselect-dropdown {
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
flex-shrink: 0;
|
|
52
|
+
background: transparent;
|
|
53
|
+
color: ${t("multiselect.dropdown.color")};
|
|
54
|
+
width: ${t("multiselect.dropdown.width")};
|
|
55
|
+
border-start-end-radius: ${t("multiselect.border.radius")};
|
|
56
|
+
border-end-end-radius: ${t("multiselect.border.radius")};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.p-multiselect-label-container {
|
|
60
|
+
overflow: hidden;
|
|
61
|
+
flex: 1 1 auto;
|
|
62
|
+
cursor: pointer;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.p-multiselect-label {
|
|
66
|
+
white-space: nowrap;
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
overflow: hidden;
|
|
69
|
+
text-overflow: ellipsis;
|
|
70
|
+
padding: ${t("multiselect.padding.y")} ${t("multiselect.padding.x")};
|
|
71
|
+
color: ${t("multiselect.color")};
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.p-multiselect-display-chip .p-multiselect-label {
|
|
75
|
+
display: flex;
|
|
76
|
+
align-items: center;
|
|
77
|
+
gap: calc(dt('multiselect.padding.y') / 2);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.p-multiselect-label.p-placeholder {
|
|
81
|
+
color: ${t("multiselect.placeholder.color")};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
p-multiSelect.ng-invalid.ng-dirty .p-multiselect-label.p-placeholder,
|
|
85
|
+
p-multi-select.ng-invalid.ng-dirty .p-multiselect-label.p-placeholder,
|
|
86
|
+
p-multiselect.ng-invalid.ng-dirty .p-multiselect-label.p-placeholder {
|
|
87
|
+
color: ${t("multiselect.invalid.placeholder.color")};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.p-multiselect.p-disabled .p-multiselect-label {
|
|
91
|
+
color: ${t("multiselect.disabled.color")};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.p-multiselect-label-empty {
|
|
95
|
+
overflow: hidden;
|
|
96
|
+
visibility: hidden;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.p-multiselect .p-multiselect-overlay {
|
|
100
|
+
min-width: 100%;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.p-multiselect-overlay {
|
|
104
|
+
background: ${t("multiselect.overlay.background")};
|
|
105
|
+
color: ${t("multiselect.overlay.color")};
|
|
106
|
+
border: 1px solid ${t("multiselect.overlay.border.color")};
|
|
107
|
+
border-radius: ${t("multiselect.overlay.border.radius")};
|
|
108
|
+
box-shadow: ${t("multiselect.overlay.shadow")};
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.p-multiselect-header {
|
|
112
|
+
display: flex;
|
|
113
|
+
align-items: center;
|
|
114
|
+
padding: ${t("multiselect.list.header.padding")};
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.p-multiselect-header .p-checkbox {
|
|
118
|
+
margin-inline-end: ${t("multiselect.option.gap")};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.p-multiselect-filter-container {
|
|
122
|
+
flex: 1 1 auto;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.p-multiselect-filter {
|
|
126
|
+
width: 100%;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.p-multiselect-list-container {
|
|
130
|
+
overflow: auto;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.p-multiselect-list {
|
|
134
|
+
margin: 0;
|
|
135
|
+
padding: 0;
|
|
136
|
+
list-style-type: none;
|
|
137
|
+
padding: ${t("multiselect.list.padding")};
|
|
138
|
+
display: flex;
|
|
139
|
+
flex-direction: column;
|
|
140
|
+
gap: ${t("multiselect.list.gap")}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.p-multiselect-option {
|
|
144
|
+
cursor: pointer;
|
|
145
|
+
font-weight: normal;
|
|
146
|
+
white-space: nowrap;
|
|
147
|
+
position: relative;
|
|
148
|
+
overflow: hidden;
|
|
149
|
+
display: flex;
|
|
150
|
+
align-items: center;
|
|
151
|
+
gap: ${t("multiselect.option.gap")};
|
|
152
|
+
padding: ${t("multiselect.option.padding")};
|
|
153
|
+
border: 0 none;
|
|
154
|
+
color: ${t("multiselect.option.color")};
|
|
155
|
+
background: transparent;
|
|
156
|
+
transition: background ${t("multiselect.transition.duration")}, color ${t("multiselect.transition.duration")}, border-color ${t("multiselect.transition.duration")}, box-shadow ${t("multiselect.transition.duration")}, outline-color ${t("multiselect.transition.duration")};
|
|
157
|
+
border-radius: ${t("multiselect.option.border.radius")}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.p-multiselect-option:not(.p-multiselect-option-selected):not(.p-disabled).p-focus {
|
|
161
|
+
background: ${t("multiselect.option.focus.background")};
|
|
162
|
+
color: ${t("multiselect.option.focus.color")};
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.p-multiselect-option.p-multiselect-option-selected {
|
|
166
|
+
background: ${t("multiselect.option.selected.background")};
|
|
167
|
+
color: ${t("multiselect.option.selected.color")};
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.p-multiselect-option.p-multiselect-option-selected.p-focus {
|
|
171
|
+
background: ${t("multiselect.option.selected.focus.background")};
|
|
172
|
+
color: ${t("multiselect.option.selected.focus.color")};
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.p-multiselect-option-group {
|
|
176
|
+
cursor: auto;
|
|
177
|
+
margin: 0;
|
|
178
|
+
padding: ${t("multiselect.option.group.padding")};
|
|
179
|
+
background: ${t("multiselect.option.group.background")};
|
|
180
|
+
color: ${t("multiselect.option.group.color")};
|
|
181
|
+
font-weight: ${t("multiselect.option.group.font.weight")};
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.p-multiselect-empty-message {
|
|
185
|
+
padding: ${t("multiselect.empty.message.padding")};
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.p-multiselect-label .p-chip {
|
|
189
|
+
padding-top: calc(${t("multiselect.padding.y")} / 2);
|
|
190
|
+
padding-bottom: calc(${t("multiselect.padding.y")} / 2);
|
|
191
|
+
border-radius: ${t("multiselect.chip.border.radius")};
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.p-multiselect-label:has(.p-chip) {
|
|
195
|
+
padding: calc(${t("multiselect.padding.y")} / 2) calc(${t("multiselect.padding.x")} / 2);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.p-multiselect-fluid {
|
|
199
|
+
display: flex;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.p-multiselect-sm .p-multiselect-label {
|
|
203
|
+
font-size: ${t("multiselect.sm.font.size")};
|
|
204
|
+
padding-block: ${t("multiselect.sm.padding.y")};
|
|
205
|
+
padding-inline: ${t("multiselect.sm.padding.x")};
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.p-multiselect-sm .p-multiselect-dropdown .p-icon {
|
|
209
|
+
font-size: ${t("multiselect.sm.font.size")};
|
|
210
|
+
width: ${t("multiselect.sm.font.size")};
|
|
211
|
+
height: ${t("multiselect.sm.font.size")};
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.p-multiselect-lg .p-multiselect-label {
|
|
215
|
+
font-size: ${t("multiselect.lg.font.size")};
|
|
216
|
+
padding-block: ${t("multiselect.lg.padding.y")};
|
|
217
|
+
padding-inline: ${t("multiselect.lg.padding.x")};
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.p-multiselect-lg .p-multiselect-dropdown .p-icon {
|
|
221
|
+
font-size: ${t("multiselect.lg.font.size")};
|
|
222
|
+
width: ${t("multiselect.lg.font.size")};
|
|
223
|
+
height: ${t("multiselect.lg.font.size")};
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.p-multiselect-clear-icon {
|
|
227
|
+
cursor: pointer;
|
|
228
|
+
display: flex;
|
|
229
|
+
align-items: center;
|
|
230
|
+
justify-content: center;
|
|
231
|
+
flex-shrink: 0;
|
|
232
|
+
background: transparent;
|
|
233
|
+
color: ${t("multiselect.clear.icon.color")};
|
|
234
|
+
}`,pl={root:({props:t})=>({position:t.appendTo==="self"?"relative":void 0})},dl={root:({instance:t})=>({"p-multiselect p-component p-inputwrapper":!0,"p-multiselect-display-chip":t.display==="chip","p-disabled":t.disabled,"p-invalid":t.invalid,"p-variant-filled":t.variant?t.variant==="filled":t.config.inputStyle==="filled","p-focus":t.focused,"p-inputwrapper-filled":t.filled,"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-multiselect-open":t.overlayVisible,"p-multiselect-fluid":t.hasFluid,"p-multiselect-sm p-inputfield-sm":t.size==="small","p-multiselect-lg p-inputfield-lg":t.size==="large"}),labelContainer:"p-multiselect-label-container",label:({instance:t})=>({"p-multiselect-label":!0,"p-placeholder":t.label()===t.placeholder(),"p-multiselect-label-empty":!t.placeholder()&&!t.defaultLabel&&(!t.modelValue()||t.modelValue().length===0)}),chipItem:"p-multiselect-chip-item",pcChip:"p-multiselect-chip",chipIcon:"p-multiselect-chip-icon",dropdown:"p-multiselect-dropdown",loadingIcon:"p-multiselect-loading-icon",dropdownIcon:"p-multiselect-dropdown-icon",overlay:"p-multiselect-overlay p-component",header:"p-multiselect-header",pcFilterContainer:"p-multiselect-filter-container",pcFilter:"p-multiselect-filter",listContainer:"p-multiselect-list-container",list:"p-multiselect-list",optionGroup:"p-multiselect-option-group",option:({instance:t,option:a,index:e,getItemOptions:n})=>({"p-multiselect-option":!0,"p-multiselect-option-selected":t.isSelected(a)&&t.highlightOnSelect,"p-focus":t.focusedOptionIndex===t.getOptionIndex(e,n),"p-disabled":t.isOptionDisabled(a)}),emptyMessage:"p-multiselect-empty-message"},Ut=(()=>{class t extends Oe{name="multiselect";theme=cl;classes=dl;inlineStyles=pl;static \u0275fac=(()=>{let e;return function(i){return(e||(e=Z(t)))(i||t)}})();static \u0275prov=ye({token:t,factory:t.\u0275fac})}return t})();var ul={provide:ot,useExisting:Ke(()=>Me),multi:!0},ml=(()=>{class t extends he{id;option;selected;label;disabled;itemSize;focused;ariaPosInset;ariaSetSize;variant;template;checkIconTemplate;itemCheckboxIconTemplate;highlightOnSelect;onClick=new V;onMouseEnter=new V;onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option,selected:this.selected}),e.stopPropagation(),e.preventDefault()}onOptionMouseEnter(e){this.onMouseEnter.emit({originalEvent:e,option:this.option,selected:this.selected})}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Z(t)))(i||t)}})();static \u0275cmp=P({type:t,selectors:[["p-multiSelectItem"],["p-multiselect-item"]],inputs:{id:"id",option:"option",selected:[2,"selected","selected",S],label:"label",disabled:[2,"disabled","disabled",S],itemSize:[2,"itemSize","itemSize",le],focused:[2,"focused","focused",S],ariaPosInset:"ariaPosInset",ariaSetSize:"ariaSetSize",variant:"variant",template:"template",checkIconTemplate:"checkIconTemplate",itemCheckboxIconTemplate:"itemCheckboxIconTemplate",highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",S]},outputs:{onClick:"onClick",onMouseEnter:"onMouseEnter"},features:[te],decls:5,vars:28,consts:[["checkboxicon",""],["pRipple","","role","option",1,"p-multiselect-option",3,"click","mouseenter","ngStyle","ngClass","id"],[3,"ngModel","binary","tabindex","variant","ariaLabel"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(n,i){n&1&&(d(0,"li",1),O("click",function(o){return i.onOptionClick(o)})("mouseenter",function(o){return i.onOptionMouseEnter(o)}),d(1,"p-checkbox",2),p(2,si,3,0,"ng-container",3),u(),p(3,ci,2,1,"span",3)(4,pi,1,0,"ng-container",4),u()),n&2&&(r("ngStyle",M(20,fe,i.itemSize+"px"))("ngClass",Le(22,ni,i.selected&&i.highlightOnSelect,i.disabled,i.focused))("id",i.id),T("aria-label",i.label)("aria-setsize",i.ariaSetSize)("aria-posinset",i.ariaPosInset)("aria-selected",i.selected)("data-p-focused",i.focused)("data-p-highlight",i.selected)("data-p-disabled",i.disabled)("aria-checked",i.selected),s(),r("ngModel",i.selected)("binary",!0)("tabindex",-1)("variant",i.variant)("ariaLabel",i.label),s(),r("ngIf",i.itemCheckboxIconTemplate),s(),r("ngIf",!i.template),s(),r("ngTemplateOutlet",i.template)("ngTemplateOutletContext",M(26,qt,i.option)))},dependencies:[G,U,oe,re,ae,Re,pe,se,ce,Pt,$],encapsulation:2})}return t})(),Me=(()=>{class t extends he{zone;filterService;overlayService;id;ariaLabel;style;styleClass;panelStyle;panelStyleClass;inputId;disabled;fluid;readonly;group;filter=!0;filterPlaceHolder;filterLocale;overlayVisible;tabindex=0;variant;appendTo;dataKey;name;ariaLabelledBy;set displaySelectedLabel(e){this._displaySelectedLabel=e}get displaySelectedLabel(){return this._displaySelectedLabel}set maxSelectedLabels(e){this._maxSelectedLabels=e}get maxSelectedLabels(){return this._maxSelectedLabels}selectionLimit;selectedItemsLabel;showToggleAll=!0;emptyFilterMessage="";emptyMessage="";resetFilterOnHide=!1;dropdownIcon;chipIcon;optionLabel;optionValue;optionDisabled;optionGroupLabel="label";optionGroupChildren="items";showHeader=!0;filterBy;scrollHeight="200px";lazy=!1;virtualScroll;loading=!1;virtualScrollItemSize;loadingIcon;virtualScrollOptions;overlayOptions;ariaFilterLabel;filterMatchMode="contains";tooltip="";tooltipPosition="right";tooltipPositionStyle="absolute";tooltipStyleClass;autofocusFilter=!1;display="comma";autocomplete="off";size;showClear=!1;autofocus;get autoZIndex(){return this._autoZIndex}set autoZIndex(e){this._autoZIndex=e,console.log("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get baseZIndex(){return this._baseZIndex}set baseZIndex(e){this._baseZIndex=e,console.log("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(e){this._showTransitionOptions=e,console.log("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(e){this._hideTransitionOptions=e,console.log("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}set defaultLabel(e){this._defaultLabel=e,console.log("defaultLabel property is deprecated since 16.6.0, use placeholder instead")}get defaultLabel(){return this._defaultLabel}set placeholder(e){this._placeholder.set(e)}get placeholder(){return this._placeholder.asReadonly()}get options(){return this._options()}set options(e){vt(this._options(),e)||this._options.set(e)}get filterValue(){return this._filterValue()}set filterValue(e){this._filterValue.set(e)}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.log("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}get selectAll(){return this._selectAll}set selectAll(e){this._selectAll=e}focusOnHover=!0;filterFields;selectOnFocus=!1;autoOptionFocus=!1;highlightOnSelect=!0;onChange=new V;onFilter=new V;onFocus=new V;onBlur=new V;onClick=new V;onClear=new V;onPanelShow=new V;onPanelHide=new V;onLazyLoad=new V;onRemove=new V;onSelectAllChange=new V;overlayViewChild;filterInputChild;focusInputViewChild;itemsViewChild;scroller;lastHiddenFocusableElementOnOverlay;firstHiddenFocusableElementOnOverlay;headerCheckboxViewChild;footerFacet;headerFacet;_componentStyle=E(Ut);searchValue;searchTimeout;_selectAll=null;_autoZIndex;_baseZIndex;_showTransitionOptions;_hideTransitionOptions;_defaultLabel;_placeholder=w(void 0);_itemSize;_selectionLimit;_disableTooltip=!1;value;_filteredOptions;onModelChange=()=>{};onModelTouched=()=>{};valuesAsString;focus;filtered;itemTemplate;groupTemplate;loaderTemplate;headerTemplate;filterTemplate;footerTemplate;emptyFilterTemplate;emptyTemplate;selectedItemsTemplate;checkIconTemplate;loadingIconTemplate;filterIconTemplate;removeTokenIconTemplate;chipIconTemplate;clearIconTemplate;dropdownIconTemplate;itemCheckboxIconTemplate;headerCheckboxIconTemplate;templates;_itemTemplate;_groupTemplate;_loaderTemplate;_headerTemplate;_filterTemplate;_footerTemplate;_emptyFilterTemplate;_emptyTemplate;_selectedItemsTemplate;_checkIconTemplate;_loadingIconTemplate;_filterIconTemplate;_removeTokenIconTemplate;_chipIconTemplate;_clearIconTemplate;_dropdownIconTemplate;_itemCheckboxIconTemplate;_headerCheckboxIconTemplate;ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":this._itemTemplate=e.template;break;case"group":this._groupTemplate=e.template;break;case"selectedItems":case"selecteditems":this._selectedItemsTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"filter":this._filterTemplate=e.template;break;case"emptyfilter":this._emptyFilterTemplate=e.template;break;case"empty":this._emptyTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"loader":this._loaderTemplate=e.template;break;case"checkicon":this._checkIconTemplate=e.template,console.warn("checkicon is deprecated and will removed in future. Use itemcheckboxicon or headercheckboxicon templates instead.");break;case"headercheckboxicon":this._headerCheckboxIconTemplate=e.template;break;case"loadingicon":this._loadingIconTemplate=e.template;break;case"filtericon":this._filterIconTemplate=e.template;break;case"removetokenicon":this._removeTokenIconTemplate=e.template;break;case"clearicon":this._clearIconTemplate=e.template;break;case"dropdownicon":this._dropdownIconTemplate=e.template;break;case"itemcheckboxicon":this._itemCheckboxIconTemplate=e.template;break;case"chipicon":this._chipIconTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}headerCheckboxFocus;filterOptions;preventModelTouched;preventDocumentDefault;focused=!1;itemsWrapper;_displaySelectedLabel=!0;_maxSelectedLabels=3;modelValue=w(null);_filterValue=w(null);_options=w(null);startRangeIndex=w(-1);focusedOptionIndex=w(-1);selectedOptions;clickInProgress=!1;get hostClasses(){let e=[];return typeof this.rootClass=="string"?e.push(this.rootClass):Array.isArray(this.rootClass)?e.push(...this.rootClass):typeof this.rootClass=="object"&&Object.keys(this.rootClass).filter(n=>this.rootClass[n]).forEach(n=>e.push(n)),this.styleClass&&e.push(this.styleClass),e.join(" ")}get rootClass(){return this._componentStyle.classes.root({instance:this})}get labelClass(){return this._componentStyle.classes.label({instance:this})}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(_e.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(_e.EMPTY_FILTER_MESSAGE)}get filled(){return typeof this.modelValue()=="string"?!!this.modelValue():A(this.modelValue())}get isVisibleClearIcon(){return this.modelValue()!=null&&this.modelValue()!==""&&A(this.modelValue())&&this.showClear&&!this.disabled&&!this.readonly&&this.filled}get toggleAllAriaLabel(){return this.config.translation.aria?this.config.translation.aria[this.allSelected()?"selectAll":"unselectAll"]:void 0}get closeAriaLabel(){return this.config.translation.aria?this.config.translation.aria.close:void 0}get listLabel(){return this.config.getTranslation(_e.ARIA).listLabel}get hasFluid(){let n=this.el.nativeElement.closest("p-fluid");return this.fluid||!!n}getAllVisibleAndNonVisibleOptions(){return this.group?this.flatOptions(this.options):this.options||[]}visibleOptions=Te(()=>{let e=this.getAllVisibleAndNonVisibleOptions(),n=St(e)&&wt.isObject(e[0]);if(this._filterValue()){let i;if(n?i=this.filterService.filter(e,this.searchFields(),this._filterValue(),this.filterMatchMode,this.filterLocale):i=e.filter(l=>l.toString().toLocaleLowerCase().includes(this._filterValue().toLocaleLowerCase())),this.group){let l=this.options||[],o=[];return l.forEach(m=>{let ge=this.getOptionGroupChildren(m).filter(ei=>i.includes(ei));ge.length>0&&o.push(Ee(Fe({},m),{[typeof this.optionGroupChildren=="string"?this.optionGroupChildren:"items"]:[...ge]}))}),this.flatOptions(o)}return i}return e});label=Te(()=>{let e,n=this.modelValue();if(n&&n.length&&this.displaySelectedLabel){if(A(this.maxSelectedLabels)&&n.length>this.maxSelectedLabels)return this.getSelectedItemsLabel();e="";for(let i=0;i<n.length;i++)i!==0&&(e+=", "),e+=this.getLabelByValue(n[i])}else e=this.placeholder()||this.defaultLabel||"";return e});chipSelectedItems=Te(()=>A(this.maxSelectedLabels)&&this.modelValue()&&this.modelValue().length>this.maxSelectedLabels?this.modelValue().slice(0,this.maxSelectedLabels):this.modelValue());constructor(e,n,i){super(),this.zone=e,this.filterService=n,this.overlayService=i,Je(()=>{let l=this.modelValue(),o=this.getAllVisibleAndNonVisibleOptions();o&&A(o)&&(this.optionValue&&this.optionLabel&&l?this.selectedOptions=o.filter(m=>l.includes(m[this.optionLabel])||l.includes(m[this.optionValue])):this.selectedOptions=l,this.cd.markForCheck())})}ngOnInit(){super.ngOnInit(),this.id=this.id||It("pn_id_"),this.autoUpdateModel(),this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}maxSelectionLimitReached(){return this.selectionLimit&&this.modelValue()&&this.modelValue().length===this.selectionLimit}ngAfterViewInit(){super.ngAfterViewInit(),this.overlayVisible&&this.show()}ngAfterViewChecked(){this.filtered&&(this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild?.alignOverlay()},1)}),this.filtered=!1)}flatOptions(e){return(e||[]).reduce((n,i,l)=>{n.push({optionGroup:i,group:!0,index:l});let o=this.getOptionGroupChildren(i);return o&&o.forEach(m=>n.push(m)),n},[])}autoUpdateModel(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption()){this.focusedOptionIndex.set(this.findFirstFocusedOptionIndex());let e=this.getOptionValue(this.visibleOptions()[this.focusedOptionIndex()]);this.onOptionSelect({originalEvent:null,option:[e]})}}updateModel(e,n){this.value=e,this.onModelChange(e),this.modelValue.set(e)}onInputClick(e){e.stopPropagation(),e.preventDefault(),this.focusedOptionIndex.set(-1)}onOptionSelect(e,n=!1,i=-1){let{originalEvent:l,option:o}=e;if(this.disabled||this.isOptionDisabled(o))return;let m=this.isSelected(o),b=null;m?b=this.modelValue().filter(ge=>!j(ge,this.getOptionValue(o),this.equalityKey())):b=[...this.modelValue()||[],this.getOptionValue(o)],this.updateModel(b,l),i!==-1&&this.focusedOptionIndex.set(i),n&&B(this.focusInputViewChild?.nativeElement),this.onChange.emit({originalEvent:e,value:b,itemValue:o})}findSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}onOptionSelectRange(e,n=-1,i=-1){if(n===-1&&(n=this.findNearestSelectedOptionIndex(i,!0)),i===-1&&(i=this.findNearestSelectedOptionIndex(n)),n!==-1&&i!==-1){let l=Math.min(n,i),o=Math.max(n,i),m=this.visibleOptions().slice(l,o+1).filter(b=>this.isValidOption(b)).map(b=>this.getOptionValue(b));this.updateModel(m,e)}}searchFields(){return(this.filterBy||this.optionLabel||"label").split(",")}findNearestSelectedOptionIndex(e,n=!1){let i=-1;return this.hasSelectedOption()&&(n?(i=this.findPrevSelectedOptionIndex(e),i=i===-1?this.findNextSelectedOptionIndex(e):i):(i=this.findNextSelectedOptionIndex(e),i=i===-1?this.findPrevSelectedOptionIndex(e):i)),i>-1?i:e}findPrevSelectedOptionIndex(e){let n=this.hasSelectedOption()&&e>0?me(this.visibleOptions().slice(0,e),i=>this.isValidSelectedOption(i)):-1;return n>-1?n:-1}findFirstFocusedOptionIndex(){let e=this.findFirstSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e}findFirstOptionIndex(){return this.visibleOptions().findIndex(e=>this.isValidOption(e))}findFirstSelectedOptionIndex(){return this.hasSelectedOption()?this.visibleOptions().findIndex(e=>this.isValidSelectedOption(e)):-1}findNextSelectedOptionIndex(e){let n=this.hasSelectedOption()&&e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(i=>this.isValidSelectedOption(i)):-1;return n>-1?n+e+1:-1}equalityKey(){return this.optionValue?null:this.dataKey}hasSelectedOption(){return A(this.modelValue())}isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)}isOptionGroup(e){return(this.group||this.optionGroupLabel)&&e.optionGroup&&e.group}isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))}isOptionDisabled(e){return this.maxSelectionLimitReached()&&!this.isSelected(e)?!0:this.optionDisabled?q(e,this.optionDisabled):e&&e.disabled!==void 0?e.disabled:!1}isSelected(e){let n=this.getOptionValue(e);return(this.modelValue()||[]).some(i=>j(i,n,this.equalityKey()))}isOptionMatched(e){return this.isValidOption(e)&&this.getOptionLabel(e).toString().toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))}isEmpty(){return!this._options()||this.visibleOptions()&&this.visibleOptions().length===0}getOptionIndex(e,n){return this.virtualScrollerDisabled?e:n&&n.getItemOptions(e).index}getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions().slice(0,e).filter(n=>this.isOptionGroup(n)).length:e)+1}get ariaSetSize(){return this.visibleOptions().filter(e=>!this.isOptionGroup(e)).length}getLabelByValue(e){let i=(this.group?this.flatOptions(this._options()):this._options()||[]).find(l=>!this.isOptionGroup(l)&&j(this.getOptionValue(l),e,this.equalityKey()));return i?this.getOptionLabel(i):null}getSelectedItemsLabel(){let e=/{(.*?)}/,n=this.selectedItemsLabel?this.selectedItemsLabel:this.config.getTranslation(_e.SELECTION_MESSAGE);return e.test(n)?n.replace(n.match(e)[0],this.modelValue().length+""):n}getOptionLabel(e){return this.optionLabel?q(e,this.optionLabel):e&&e.label!=null?e.label:e}getOptionValue(e){return this.optionValue?q(e,this.optionValue):!this.optionLabel&&e&&e.value!==void 0?e.value:e}getOptionGroupLabel(e){return this.optionGroupLabel?q(e,this.optionGroupLabel):e&&e.label!=null?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?q(e,this.optionGroupChildren):e.items}onKeyDown(e){if(this.disabled){e.preventDefault();return}let n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"Space":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"ShiftLeft":case"ShiftRight":this.onShiftKey();break;default:if(e.code==="KeyA"&&n){let i=this.visibleOptions().filter(l=>this.isValidOption(l)).map(l=>this.getOptionValue(l));this.updateModel(i,e),e.preventDefault();break}!n&&Ct(e.key)&&(!this.overlayVisible&&this.show(),this.searchOptions(e,e.key),e.preventDefault());break}}onFilterKeyDown(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0);break;default:break}}onArrowLeftKey(e,n=!1){n&&this.focusedOptionIndex.set(-1)}onArrowDownKey(e){let n=this.focusedOptionIndex()!==-1?this.findNextOptionIndex(this.focusedOptionIndex()):this.findFirstFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex(),n),this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show(),e.preventDefault(),e.stopPropagation()}onArrowUpKey(e,n=!1){if(e.altKey&&!n)this.focusedOptionIndex()!==-1&&this.onOptionSelect(e,this.visibleOptions()[this.focusedOptionIndex()]),this.overlayVisible&&this.hide(),e.preventDefault();else{let i=this.focusedOptionIndex()!==-1?this.findPrevOptionIndex(this.focusedOptionIndex()):this.findLastFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,i,this.startRangeIndex()),this.changeFocusedOptionIndex(e,i),!this.overlayVisible&&this.show(),e.preventDefault()}e.stopPropagation()}onHomeKey(e,n=!1){let{currentTarget:i}=e;if(n){let l=i.value.length;i.setSelectionRange(0,e.shiftKey?l:0),this.focusedOptionIndex.set(-1)}else{let l=e.metaKey||e.ctrlKey,o=this.findFirstOptionIndex();e.shiftKey&&l&&this.onOptionSelectRange(e,o,this.startRangeIndex()),this.changeFocusedOptionIndex(e,o),!this.overlayVisible&&this.show()}e.preventDefault()}onEndKey(e,n=!1){let{currentTarget:i}=e;if(n){let l=i.value.length;i.setSelectionRange(e.shiftKey?0:l,l),this.focusedOptionIndex.set(-1)}else{let l=e.metaKey||e.ctrlKey,o=this.findLastFocusedOptionIndex();e.shiftKey&&l&&this.onOptionSelectRange(e,this.startRangeIndex(),o),this.changeFocusedOptionIndex(e,o),!this.overlayVisible&&this.show()}e.preventDefault()}onPageDownKey(e){this.scrollInView(this.visibleOptions().length-1),e.preventDefault()}onPageUpKey(e){this.scrollInView(0),e.preventDefault()}onEnterKey(e){this.overlayVisible?this.focusedOptionIndex()!==-1&&(e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex()):this.onOptionSelect({originalEvent:e,option:this.visibleOptions()[this.focusedOptionIndex()]})):this.onArrowDownKey(e),e.preventDefault()}onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.stopPropagation(),e.preventDefault()}onDeleteKey(e){this.showClear&&(this.clear(e),e.preventDefault())}onTabKey(e,n=!1){n||(this.overlayVisible&&this.hasFocusableElements()?(B(e.shiftKey?this.lastHiddenFocusableElementOnOverlay.nativeElement:this.firstHiddenFocusableElementOnOverlay.nativeElement),e.preventDefault()):(this.focusedOptionIndex()!==-1&&this.onOptionSelect({originalEvent:e,option:this.visibleOptions()[this.focusedOptionIndex()]}),this.overlayVisible&&this.hide(this.filter)))}onShiftKey(){this.startRangeIndex.set(this.focusedOptionIndex())}onContainerClick(e){if(!(this.disabled||this.loading||this.readonly||e.target.isSameNode(this.focusInputViewChild?.nativeElement))){if(!this.overlayViewChild||!this.overlayViewChild.el.nativeElement.contains(e.target)){if(this.clickInProgress)return;this.clickInProgress=!0,setTimeout(()=>{this.clickInProgress=!1},150),this.overlayVisible?this.hide(!0):this.show(!0)}this.focusInputViewChild?.nativeElement.focus({preventScroll:!0}),this.onClick.emit(e),this.cd.detectChanges()}}onFirstHiddenFocus(e){let n=e.relatedTarget===this.focusInputViewChild?.nativeElement?yt(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;B(n)}onInputFocus(e){this.focused=!0;let n=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1;this.focusedOptionIndex.set(n),this.overlayVisible&&this.scrollInView(this.focusedOptionIndex()),this.onFocus.emit({originalEvent:e})}onInputBlur(e){this.focused=!1,this.onBlur.emit({originalEvent:e}),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}onFilterInputChange(e){let n=e.target.value;this._filterValue.set(n),this.focusedOptionIndex.set(-1),this.onFilter.emit({originalEvent:e,filter:this._filterValue()}),!this.virtualScrollerDisabled&&this.scroller.scrollToIndex(0),setTimeout(()=>{this.overlayViewChild.alignOverlay()})}onLastHiddenFocus(e){let n=e.relatedTarget===this.focusInputViewChild?.nativeElement?bt(this.overlayViewChild?.overlayViewChild?.nativeElement,':not([data-p-hidden-focusable="true"])'):this.focusInputViewChild?.nativeElement;B(n)}onOptionMouseEnter(e,n){this.focusOnHover&&this.changeFocusedOptionIndex(e,n)}onHeaderCheckboxKeyDown(e){if(this.disabled){e.preventDefault();return}switch(e.code){case"Space":this.onToggleAll(e);break;case"Enter":this.onToggleAll(e);break;default:break}}onFilterBlur(e){this.focusedOptionIndex.set(-1)}onHeaderCheckboxFocus(){this.headerCheckboxFocus=!0}onHeaderCheckboxBlur(){this.headerCheckboxFocus=!1}onToggleAll(e){if(!(this.disabled||this.readonly)){if(this.selectAll!=null)this.onSelectAllChange.emit({originalEvent:e,checked:!this.allSelected()});else{let n=this.getAllVisibleAndNonVisibleOptions().filter(b=>this.isSelected(b)&&(this.optionDisabled?q(b,this.optionDisabled):b&&b.disabled!==void 0?b.disabled:!1)),i=this.allSelected()?this.visibleOptions().filter(b=>!this.isValidOption(b)&&this.isSelected(b)):this.visibleOptions().filter(b=>this.isSelected(b)||this.isValidOption(b)),o=[...this.filter&&!this.allSelected()?this.getAllVisibleAndNonVisibleOptions().filter(b=>this.isSelected(b)&&this.isValidOption(b)):[],...n,...i].map(b=>this.getOptionValue(b)),m=[...new Set(o)];this.updateModel(m,e),(!m.length||m.length===this.getAllVisibleAndNonVisibleOptions().length)&&this.onSelectAllChange.emit({originalEvent:e,checked:!!m.length})}this.partialSelected()&&(this.selectedOptions=null,this.cd.markForCheck()),this.onChange.emit({originalEvent:e,value:this.value}),Ot.focus(this.headerCheckboxViewChild?.inputViewChild?.nativeElement),this.headerCheckboxFocus=!0,e.originalEvent.preventDefault(),e.originalEvent.stopPropagation()}}changeFocusedOptionIndex(e,n){this.focusedOptionIndex()!==n&&(this.focusedOptionIndex.set(n),this.scrollInView())}get virtualScrollerDisabled(){return!this.virtualScroll}scrollInView(e=-1){let n=e!==-1?`${this.id}_${e}`:this.focusedOptionId;if(this.itemsViewChild&&this.itemsViewChild.nativeElement){let i=xe(this.itemsViewChild.nativeElement,`li[id="${n}"]`);i?i.scrollIntoView&&i.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||setTimeout(()=>{this.virtualScroll&&this.scroller?.scrollToIndex(e!==-1?e:this.focusedOptionIndex())},0)}}get focusedOptionId(){return this.focusedOptionIndex()!==-1?`${this.id}_${this.focusedOptionIndex()}`:null}writeValue(e){this.value=e,this.modelValue.set(this.value),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}allSelected(){return this.selectAll!==null?this.selectAll:A(this.visibleOptions())&&this.visibleOptions().every(e=>this.isOptionGroup(e)||this.isOptionDisabled(e)||this.isSelected(e))}partialSelected(){return this.selectedOptions&&this.selectedOptions.length>0&&this.selectedOptions.length<this.options.length}show(e){this.overlayVisible=!0;let n=this.focusedOptionIndex()!==-1?this.focusedOptionIndex():this.autoOptionFocus?this.findFirstFocusedOptionIndex():this.findSelectedOptionIndex();this.focusedOptionIndex.set(n),e&&B(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}hide(e){this.overlayVisible=!1,this.focusedOptionIndex.set(-1),this.filter&&this.resetFilterOnHide&&this.resetFilter(),this.overlayOptions?.mode==="modal"&&ft(),e&&B(this.focusInputViewChild?.nativeElement),this.cd.markForCheck()}onOverlayAnimationStart(e){if(e.toState==="visible"){if(this.itemsWrapper=xe(this.overlayViewChild?.overlayViewChild?.nativeElement,this.virtualScroll?".p-scroller":".p-multiselect-list-container"),this.virtualScroll&&this.scroller?.setContentEl(this.itemsViewChild?.nativeElement),this.options&&this.options.length)if(this.virtualScroll){let n=this.modelValue()?this.focusedOptionIndex():-1;n!==-1&&this.scroller?.scrollToIndex(n)}else{let n=xe(this.itemsWrapper,'[data-p-highlight="true"]');n&&n.scrollIntoView({block:"nearest",inline:"nearest"})}this.filterInputChild&&this.filterInputChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterInputChild.nativeElement.focus()),this.onPanelShow.emit(e)}e.toState==="void"&&(this.itemsWrapper=null,this.onModelTouched(),this.onPanelHide.emit(e))}resetFilter(){this.filterInputChild&&this.filterInputChild.nativeElement&&(this.filterInputChild.nativeElement.value=""),this._filterValue.set(null),this._filteredOptions=null}close(e){this.hide(),e.preventDefault(),e.stopPropagation()}clear(e){this.value=null,this.updateModel(null,e),this.selectedOptions=null,this.onClear.emit(),this._disableTooltip=!0,e.stopPropagation()}labelContainerMouseLeave(){this._disableTooltip&&(this._disableTooltip=!1)}removeOption(e,n){let i=this.modelValue().filter(l=>!j(l,e,this.equalityKey()));this.updateModel(i,n),this.onChange.emit({originalEvent:n,value:i,itemValue:e}),this.onRemove.emit({newValue:i,removed:e}),n&&n.stopPropagation()}findNextItem(e){let n=e.nextElementSibling;return n?ue(n.children[0],"p-disabled")||De(n.children[0])||ue(n,"p-multiselect-item-group")?this.findNextItem(n):n.children[0]:null}findPrevItem(e){let n=e.previousElementSibling;return n?ue(n.children[0],"p-disabled")||De(n.children[0])||ue(n,"p-multiselect-item-group")?this.findPrevItem(n):n.children[0]:null}findNextOptionIndex(e){let n=e<this.visibleOptions().length-1?this.visibleOptions().slice(e+1).findIndex(i=>this.isValidOption(i)):-1;return n>-1?n+e+1:e}findPrevOptionIndex(e){let n=e>0?me(this.visibleOptions().slice(0,e),i=>this.isValidOption(i)):-1;return n>-1?n:e}findLastSelectedOptionIndex(){return this.hasSelectedOption()?me(this.visibleOptions(),e=>this.isValidSelectedOption(e)):-1}findLastFocusedOptionIndex(){let e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e}findLastOptionIndex(){return me(this.visibleOptions(),e=>this.isValidOption(e))}searchOptions(e,n){this.searchValue=(this.searchValue||"")+n;let i=-1,l=!1;return this.focusedOptionIndex()!==-1?(i=this.visibleOptions().slice(this.focusedOptionIndex()).findIndex(o=>this.isOptionMatched(o)),i=i===-1?this.visibleOptions().slice(0,this.focusedOptionIndex()).findIndex(o=>this.isOptionMatched(o)):i+this.focusedOptionIndex()):i=this.visibleOptions().findIndex(o=>this.isOptionMatched(o)),i!==-1&&(l=!0),i===-1&&this.focusedOptionIndex()===-1&&(i=this.findFirstFocusedOptionIndex()),i!==-1&&this.changeFocusedOptionIndex(e,i),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),l}activateFilter(){if(this.hasFilter()&&this._options)if(this.group){let e=[];for(let n of this.options){let i=this.filterService.filter(this.getOptionGroupChildren(n),this.searchFields(),this.filterValue,this.filterMatchMode,this.filterLocale);i&&i.length&&e.push(Ee(Fe({},n),{[this.optionGroupChildren]:i}))}this._filteredOptions=e}else this._filteredOptions=this.filterService.filter(this.options,this.searchFields(),this.filterValue,this.filterMatchMode,this.filterLocale);else this._filteredOptions=null}hasFocusableElements(){return gt(this.overlayViewChild.overlayViewChild.nativeElement,':not([data-p-hidden-focusable="true"])').length>0}hasFilter(){return this._filterValue()&&this._filterValue().trim().length>0}static \u0275fac=function(n){return new(n||t)(ve(He),ve(Tt),ve(xt))};static \u0275cmp=P({type:t,selectors:[["p-multiSelect"],["p-multiselect"],["p-multi-select"]],contentQueries:function(n,i,l){if(n&1&&(f(l,Ve,5),f(l,we,5),f(l,di,4),f(l,ui,4),f(l,mi,4),f(l,_i,4),f(l,hi,4),f(l,fi,4),f(l,gi,4),f(l,yi,4),f(l,bi,4),f(l,vi,4),f(l,Si,4),f(l,Ci,4),f(l,Ii,4),f(l,Ti,4),f(l,xi,4),f(l,Oi,4),f(l,wi,4),f(l,Vi,4),f(l,ee,4)),n&2){let o;_(o=h())&&(i.footerFacet=o.first),_(o=h())&&(i.headerFacet=o.first),_(o=h())&&(i.itemTemplate=o.first),_(o=h())&&(i.groupTemplate=o.first),_(o=h())&&(i.loaderTemplate=o.first),_(o=h())&&(i.headerTemplate=o.first),_(o=h())&&(i.filterTemplate=o.first),_(o=h())&&(i.footerTemplate=o.first),_(o=h())&&(i.emptyFilterTemplate=o.first),_(o=h())&&(i.emptyTemplate=o.first),_(o=h())&&(i.selectedItemsTemplate=o.first),_(o=h())&&(i.checkIconTemplate=o.first),_(o=h())&&(i.loadingIconTemplate=o.first),_(o=h())&&(i.filterIconTemplate=o.first),_(o=h())&&(i.removeTokenIconTemplate=o.first),_(o=h())&&(i.chipIconTemplate=o.first),_(o=h())&&(i.clearIconTemplate=o.first),_(o=h())&&(i.dropdownIconTemplate=o.first),_(o=h())&&(i.itemCheckboxIconTemplate=o.first),_(o=h())&&(i.headerCheckboxIconTemplate=o.first),_(o=h())&&(i.templates=o)}},viewQuery:function(n,i){if(n&1&&(R(ki,5),R(Mi,5),R(Fi,5),R(Ei,5),R(Li,5),R(Di,5),R(Ri,5),R($i,5)),n&2){let l;_(l=h())&&(i.overlayViewChild=l.first),_(l=h())&&(i.filterInputChild=l.first),_(l=h())&&(i.focusInputViewChild=l.first),_(l=h())&&(i.itemsViewChild=l.first),_(l=h())&&(i.scroller=l.first),_(l=h())&&(i.lastHiddenFocusableElementOnOverlay=l.first),_(l=h())&&(i.firstHiddenFocusableElementOnOverlay=l.first),_(l=h())&&(i.headerCheckboxViewChild=l.first)}},hostVars:7,hostBindings:function(n,i){n&1&&O("click",function(o){return i.onContainerClick(o)}),n&2&&(T("id",i.id),Ce(i.style),W(i.hostClasses),Be("p-variant-filled",i.variant==="filled"||i.config.inputVariant()==="filled"||i.config.inputStyle()==="filled"))},inputs:{id:"id",ariaLabel:"ariaLabel",style:"style",styleClass:"styleClass",panelStyle:"panelStyle",panelStyleClass:"panelStyleClass",inputId:"inputId",disabled:[2,"disabled","disabled",S],fluid:[2,"fluid","fluid",S],readonly:[2,"readonly","readonly",S],group:[2,"group","group",S],filter:[2,"filter","filter",S],filterPlaceHolder:"filterPlaceHolder",filterLocale:"filterLocale",overlayVisible:[2,"overlayVisible","overlayVisible",S],tabindex:[2,"tabindex","tabindex",le],variant:"variant",appendTo:"appendTo",dataKey:"dataKey",name:"name",ariaLabelledBy:"ariaLabelledBy",displaySelectedLabel:"displaySelectedLabel",maxSelectedLabels:"maxSelectedLabels",selectionLimit:[2,"selectionLimit","selectionLimit",le],selectedItemsLabel:"selectedItemsLabel",showToggleAll:[2,"showToggleAll","showToggleAll",S],emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",resetFilterOnHide:[2,"resetFilterOnHide","resetFilterOnHide",S],dropdownIcon:"dropdownIcon",chipIcon:"chipIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",showHeader:[2,"showHeader","showHeader",S],filterBy:"filterBy",scrollHeight:"scrollHeight",lazy:[2,"lazy","lazy",S],virtualScroll:[2,"virtualScroll","virtualScroll",S],loading:[2,"loading","loading",S],virtualScrollItemSize:[2,"virtualScrollItemSize","virtualScrollItemSize",le],loadingIcon:"loadingIcon",virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",filterMatchMode:"filterMatchMode",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:[2,"autofocusFilter","autofocusFilter",S],display:"display",autocomplete:"autocomplete",size:"size",showClear:[2,"showClear","showClear",S],autofocus:[2,"autofocus","autofocus",S],autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",defaultLabel:"defaultLabel",placeholder:"placeholder",options:"options",filterValue:"filterValue",itemSize:"itemSize",selectAll:"selectAll",focusOnHover:[2,"focusOnHover","focusOnHover",S],filterFields:"filterFields",selectOnFocus:[2,"selectOnFocus","selectOnFocus",S],autoOptionFocus:[2,"autoOptionFocus","autoOptionFocus",S],highlightOnSelect:[2,"highlightOnSelect","highlightOnSelect",S]},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onClear:"onClear",onPanelShow:"onPanelShow",onPanelHide:"onPanelHide",onLazyLoad:"onLazyLoad",onRemove:"onRemove",onSelectAllChange:"onSelectAllChange"},features:[X([ul,Ut]),te],ngContentSelectors:Pi,decls:16,vars:35,consts:[["focusInput",""],["elseBlock",""],["overlay",""],["content",""],["token",""],["removeicon",""],["firstHiddenFocusableEl",""],["buildInItems",""],["lastHiddenFocusableEl",""],["builtInFilterElement",""],["headerCheckbox",""],["checkboxicon",""],["filterInput",""],["scroller",""],["loader",""],["items",""],[1,"p-hidden-accessible"],["role","combobox",3,"focus","blur","keydown","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","pAutoFocus"],[1,"p-multiselect-label-container",3,"mouseleave","pTooltip","tooltipDisabled","tooltipPosition","positionStyle","tooltipStyleClass"],[3,"ngClass"],[4,"ngIf"],[1,"p-multiselect-dropdown"],[4,"ngIf","ngIfElse"],[3,"visibleChange","onAnimationStart","onHide","visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions"],[1,"p-multiselect-chip-item"],["class","p-multiselect-chip-item",4,"ngFor","ngForOf"],["styleClass","p-multiselect-chip",3,"onRemove","label","removable","removeIcon"],["class","p-multiselect-chip-icon",3,"click",4,"ngIf"],[1,"p-multiselect-chip-icon",3,"click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["class","p-multiselect-clear-icon",3,"click",4,"ngIf"],[1,"p-multiselect-clear-icon",3,"click"],[4,"ngTemplateOutlet"],["aria-hidden","true",3,"ngClass",4,"ngIf"],["aria-hidden","true",3,"class",4,"ngIf"],["aria-hidden","true",3,"ngClass"],["aria-hidden","true"],["class","p-multiselect-dropdown-icon",4,"ngIf"],["class","p-multiselect-dropdown-icon",3,"ngClass",4,"ngIf"],[3,"styleClass",4,"ngIf"],[1,"p-multiselect-dropdown-icon",3,"ngClass"],[3,"styleClass"],[1,"p-multiselect-dropdown-icon"],[3,"ngClass","ngStyle"],["role","presentation",1,"p-hidden-accessible","p-hidden-focusable",3,"focus"],["class","p-multiselect-header",4,"ngIf"],[1,"p-multiselect-list-container"],[3,"items","style","itemSize","autoSize","tabindex","lazy","options","onLazyLoad",4,"ngIf"],[1,"p-multiselect-header"],[3,"ngModel","ariaLabel","binary","variant","disabled","onChange",4,"ngIf"],["class","p-multiselect-filter-container",4,"ngIf"],[3,"onChange","ngModel","ariaLabel","binary","variant","disabled"],[1,"p-multiselect-filter-container"],["pInputText","","type","text","role","searchbox",1,"p-multiselect-filter",3,"input","keydown","click","blur","variant","value","disabled"],["class","p-multiselect-filter-icon",4,"ngIf"],[1,"p-multiselect-filter-icon"],[3,"onLazyLoad","items","itemSize","autoSize","tabindex","lazy","options"],["role","listbox","aria-multiselectable","true",1,"p-multiselect-list",3,"ngClass"],["ngFor","",3,"ngForOf"],["class","p-multiselect-empty-message","role","option",3,"ngStyle",4,"ngIf"],["role","option",1,"p-multiselect-option-group",3,"ngStyle"],[3,"onClick","onMouseEnter","id","option","selected","label","disabled","template","checkIconTemplate","itemCheckboxIconTemplate","itemSize","focused","ariaPosInset","ariaSetSize","variant","highlightOnSelect"],["role","option",1,"p-multiselect-empty-message",3,"ngStyle"]],template:function(n,i){if(n&1){let l=k();Ie(Ai),d(0,"div",16)(1,"input",17,0),O("focus",function(m){return g(l),y(i.onInputFocus(m))})("blur",function(m){return g(l),y(i.onInputBlur(m))})("keydown",function(m){return g(l),y(i.onKeyDown(m))}),u()(),d(3,"div",18),O("mouseleave",function(){return g(l),y(i.labelContainerMouseLeave())}),d(4,"div",19),p(5,en,3,2,"ng-container",20)(6,ln,3,6,"ng-container",20),u()(),p(7,cn,3,2,"ng-container",20),d(8,"div",21),p(9,hn,3,2,"ng-container",22)(10,Cn,2,2,"ng-template",null,1,L),u(),d(12,"p-overlay",23,2),K("visibleChange",function(m){return g(l),N(i.overlayVisible,m)||(i.overlayVisible=m),y(m)}),O("onAnimationStart",function(m){return g(l),y(i.onOverlayAnimationStart(m))})("onHide",function(){return g(l),y(i.hide())}),p(14,sl,13,18,"ng-template",null,3,L),u()}if(n&2){let l,o=ie(11);T("data-p-hidden-accessible",!0),s(),r("pTooltip",i.tooltip)("tooltipPosition",i.tooltipPosition)("positionStyle",i.tooltipPositionStyle)("tooltipStyleClass",i.tooltipStyleClass)("pAutoFocus",i.autofocus),T("aria-disabled",i.disabled)("id",i.inputId)("aria-label",i.ariaLabel)("aria-labelledby",i.ariaLabelledBy)("aria-haspopup","listbox")("aria-expanded",(l=i.overlayVisible)!==null&&l!==void 0?l:!1)("aria-controls",i.overlayVisible?i.id+"_list":null)("tabindex",i.disabled?-1:i.tabindex)("aria-activedescendant",i.focused?i.focusedOptionId:void 0)("value",i.label()||"empty"),s(2),r("pTooltip",i.tooltip)("tooltipDisabled",i._disableTooltip)("tooltipPosition",i.tooltipPosition)("positionStyle",i.tooltipPositionStyle)("tooltipStyleClass",i.tooltipStyleClass),s(),r("ngClass",i.labelClass),s(),r("ngIf",!i.selectedItemsTemplate&&!i._selectedItemsTemplate),s(),r("ngIf",i.selectedItemsTemplate||i._selectedItemsTemplate),s(),r("ngIf",i.isVisibleClearIcon),s(2),r("ngIf",i.loading)("ngIfElse",o),s(3),Q("visible",i.overlayVisible),r("options",i.overlayOptions)("target","@parent")("appendTo",i.appendTo)("autoZIndex",i.autoZIndex)("baseZIndex",i.baseZIndex)("showTransitionOptions",i.showTransitionOptions)("hideTransitionOptions",i.hideTransitionOptions)}},dependencies:[G,U,Xe,oe,re,ae,ml,At,$,Vt,zt,kt,Ft,Lt,Dt,Et,Mt,Rt,$t,ke,Re,pe,se,ce],encapsulation:2,changeDetection:0})}return t})(),Wt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Se({type:t});static \u0275inj=be({imports:[Me,$,$]})}return t})();var hl=["header"],fl=["title"],gl=["subtitle"],yl=["content"],bl=["footer"],vl=["*",[["p-header"]],[["p-footer"]]],Sl=["*","p-header","p-footer"];function Cl(t,a){t&1&&x(0)}function Il(t,a){if(t&1&&(d(0,"div",8),z(1,1),p(2,Cl,1,0,"ng-container",6),u()),t&2){let e=c();s(2),r("ngTemplateOutlet",e.headerTemplate||e._headerTemplate)}}function Tl(t,a){if(t&1&&(C(0),v(1),I()),t&2){let e=c(2);s(),F(e.header)}}function xl(t,a){t&1&&x(0)}function Ol(t,a){if(t&1&&(d(0,"div",9),p(1,Tl,2,1,"ng-container",10)(2,xl,1,0,"ng-container",6),u()),t&2){let e=c();s(),r("ngIf",e.header&&!e._titleTemplate&&!e.titleTemplate),s(),r("ngTemplateOutlet",e.titleTemplate||e._titleTemplate)}}function wl(t,a){if(t&1&&(C(0),v(1),I()),t&2){let e=c(2);s(),F(e.subheader)}}function Vl(t,a){t&1&&x(0)}function kl(t,a){if(t&1&&(d(0,"div",11),p(1,wl,2,1,"ng-container",10)(2,Vl,1,0,"ng-container",6),u()),t&2){let e=c();s(),r("ngIf",e.subheader&&!e._subtitleTemplate&&!e.subtitleTemplate),s(),r("ngTemplateOutlet",e.subtitleTemplate||e._subtitleTemplate)}}function Ml(t,a){t&1&&x(0)}function Fl(t,a){t&1&&x(0)}function El(t,a){if(t&1&&(d(0,"div",12),z(1,2),p(2,Fl,1,0,"ng-container",6),u()),t&2){let e=c();s(2),r("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}var Ll=({dt:t})=>`
|
|
235
|
+
.p-card {
|
|
236
|
+
background: ${t("card.background")};
|
|
237
|
+
color: ${t("card.color")};
|
|
238
|
+
box-shadow: ${t("card.shadow")};
|
|
239
|
+
border-radius: ${t("card.border.radius")};
|
|
240
|
+
display: flex;
|
|
241
|
+
flex-direction: column;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.p-card-caption {
|
|
245
|
+
display: flex;
|
|
246
|
+
flex-direction: column;
|
|
247
|
+
gap: ${t("card.caption.gap")};
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.p-card-body {
|
|
251
|
+
padding: ${t("card.body.padding")};
|
|
252
|
+
display: flex;
|
|
253
|
+
flex-direction: column;
|
|
254
|
+
gap: ${t("card.body.gap")};
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.p-card-title {
|
|
258
|
+
font-size: ${t("card.title.font.size")};
|
|
259
|
+
font-weight: ${t("card.title.font.weight")};
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.p-card-subtitle {
|
|
263
|
+
color: ${t("card.subtitle.color")};
|
|
264
|
+
}
|
|
265
|
+
`,Dl={root:"p-card p-component",header:"p-card-header",body:"p-card-body",caption:"p-card-caption",title:"p-card-title",subtitle:"p-card-subtitle",content:"p-card-content",footer:"p-card-footer"},Yt=(()=>{class t extends Oe{name="card";theme=Ll;classes=Dl;static \u0275fac=(()=>{let e;return function(i){return(e||(e=Z(t)))(i||t)}})();static \u0275prov=ye({token:t,factory:t.\u0275fac})}return t})();var Rl=(()=>{class t extends he{header;subheader;set style(e){j(this._style(),e)||this._style.set(e)}styleClass;headerFacet;footerFacet;headerTemplate;titleTemplate;subtitleTemplate;contentTemplate;footerTemplate;_headerTemplate;_titleTemplate;_subtitleTemplate;_contentTemplate;_footerTemplate;_style=w(null);_componentStyle=E(Yt);getBlockableElement(){return this.el.nativeElement.children[0]}templates;ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this._headerTemplate=e.template;break;case"title":this._titleTemplate=e.template;break;case"subtitle":this._subtitleTemplate=e.template;break;case"content":this._contentTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;default:this._contentTemplate=e.template;break}})}static \u0275fac=(()=>{let e;return function(i){return(e||(e=Z(t)))(i||t)}})();static \u0275cmp=P({type:t,selectors:[["p-card"]],contentQueries:function(n,i,l){if(n&1&&(f(l,we,5),f(l,Ve,5),f(l,hl,4),f(l,fl,4),f(l,gl,4),f(l,yl,4),f(l,bl,4),f(l,ee,4)),n&2){let o;_(o=h())&&(i.headerFacet=o.first),_(o=h())&&(i.footerFacet=o.first),_(o=h())&&(i.headerTemplate=o.first),_(o=h())&&(i.titleTemplate=o.first),_(o=h())&&(i.subtitleTemplate=o.first),_(o=h())&&(i.contentTemplate=o.first),_(o=h())&&(i.footerTemplate=o.first),_(o=h())&&(i.templates=o)}},inputs:{header:"header",subheader:"subheader",style:"style",styleClass:"styleClass"},features:[X([Yt]),te],ngContentSelectors:Sl,decls:9,vars:10,consts:[[3,"ngClass","ngStyle"],["class","p-card-header",4,"ngIf"],[1,"p-card-body"],["class","p-card-title",4,"ngIf"],["class","p-card-subtitle",4,"ngIf"],[1,"p-card-content"],[4,"ngTemplateOutlet"],["class","p-card-footer",4,"ngIf"],[1,"p-card-header"],[1,"p-card-title"],[4,"ngIf"],[1,"p-card-subtitle"],[1,"p-card-footer"]],template:function(n,i){n&1&&(Ie(vl),d(0,"div",0),p(1,Il,3,1,"div",1),d(2,"div",2),p(3,Ol,3,2,"div",3)(4,kl,3,2,"div",4),d(5,"div",5),z(6),p(7,Ml,1,0,"ng-container",6),u(),p(8,El,3,1,"div",7),u()()),n&2&&(W(i.styleClass),r("ngClass","p-card p-component")("ngStyle",i._style()),T("data-pc-name","card"),s(),r("ngIf",i.headerFacet||i.headerTemplate||i._headerTemplate),s(2),r("ngIf",i.header||i.titleTemplate||i._titleTemplate),s(),r("ngIf",i.subheader||i.subtitleTemplate||i._subtitleTemplate),s(3),r("ngTemplateOutlet",i.contentTemplate||i._contentTemplate),s(),r("ngIf",i.footerFacet||i.footerTemplate||i._footerTemplate))},dependencies:[G,U,oe,re,ae,$],encapsulation:2,changeDetection:0})}return t})(),Jt=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=Se({type:t});static \u0275inj=be({imports:[Rl,$,$]})}return t})();var Xt=t=>({empty:t}),Ae=()=>[],$l=(t,a)=>a.ID;function Al(t,a){if(t&1&&(d(0,"div",34),D(1,"img",35),d(2,"div"),v(3),u()()),t&2){let e=a.$implicit;s(),r("src",e.logo,Ue),s(2),F(e.Name)}}function Pl(t,a){if(t&1){let e=k();d(0,"p-chip",38),O("onRemove",function(){let i=g(e).$implicit,l=c(3);return y(l.onRemoveChannel(i.ID))}),u()}if(t&2){let e=a.$implicit;r("label",e.Name)("image",e.logo)("alt",e.Name)("removable",!0)}}function zl(t,a){if(t&1&&qe(0,Pl,1,4,"p-chip",37,$l),t&2){let e=c().$implicit;je(e)}}function Ql(t,a){if(t&1&&(d(0,"span"),v(1),u()),t&2){let e=c().$implicit;s(),J("",e.length," channels selected")}}function Nl(t,a){if(t&1&&(d(0,"div",36),p(1,zl,2,0)(2,Ql,2,1,"span"),u()),t&2){let e=a.$implicit;s(),Y((e==null?null:e.length)<=10?1:2)}}var ca=(()=>{class t{constructor(){this.toastr=E(st),this.userService=E($e),this.activatedRoute=E(tt),this.permissionService=E(ct),this.route=E(it),this.selectedUser=w(null),this.selectedGroup=w(null),this.selectedChannel=w([]),this.selectedUserName=w(null),this.orderDownloadDaysRange=w(0),this.isEditMode=w(!1),this.userFormLoader$=this.activatedRoute.queryParams.pipe(Qe(e=>{let n=e.ID||null;return this.userService.getUserFormLoader(n).pipe(ze(1),Ne(i=>{this.isEditMode.set(de.IsNotEmpty(n)),this.selectedGroup.set(de.IsNotEmpty(i.Form?.GroupID)?i.Form?.GroupID:null),this.selectedUser.set(de.IsNotEmpty(i.Form?.ID)?i.Form?.ID:null),this.orderDownloadDaysRange.set(i.Form?.DownloadOrderDaysRange||0),this.findSelectedUserName(i.Options?.Users,this.selectedUser()),this.selectedChannel.set(i.UserChannels||[])}),Pe(i=>(i.Options.Channels=de.assignChannelLogo(i.Options.Channels),console.log(i),i)))})),this.hasUserEditRole=w(!1),this.permissionService.hasPermission(rt.UserEdit).then(e=>{this.hasUserEditRole.set(e)})}findSelectedUserName(e,n){let i=e.find(l=>l.ID===n);this.selectedUserName.set(i?i.Name:null)}onSave(){if(!this.selectedUser()||!this.selectedGroup()){this.toastr.error("Please select both user and group","Error");return}this.userService.onInviteUser({ID:this.selectedUser(),GroupID:this.selectedGroup(),UserChannels:this.selectedChannel()||[],DownloadOrderDaysRange:this.orderDownloadDaysRange()}).subscribe({next:()=>{this.toastr.success("User updated successfully","Success"),this.route.navigate(["/menu/users/users"])}})}onRemoveChannel(e){let i=(this.selectedChannel()||[]).filter(l=>l!==e);this.selectedChannel.set(i)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-user-form"]],features:[X([$e])],decls:56,vars:25,consts:[[3,"headerTitle","hideSearchBox","hideSearchDropdown"],["routerLink","/menu/users/users",1,"btn","btn-secondary","me-3"],[1,"btn","btn-success",3,"click"],[1,"container-fluid","py-5","bg-light-gray"],[1,"row","mt-8"],[1,"col-12"],[1,"card"],[1,"card-header"],[1,"card-body","mt-8","pb-4"],[1,"row"],[1,"col-6"],[1,"form-label-group","w-100",3,"ngClass"],["bindLabel","LoginID","bindValue","ID","placeholder","Select User","id","userSelection",1,"height-sm",3,"ngModelChange","items","ngModel","disabled"],["for","userSelection"],["bindLabel","Name","bindValue","ID","placeholder","Select Group","id","groupSelection",1,"height-sm",3,"ngModelChange","items","ngModel","disabled"],["for","groupSelection"],["id","myTab","role","tablist",1,"nav","nav-tabs"],["role","presentation",1,"nav-item"],["id","channel-tab","data-bs-toggle","tab","data-bs-target","#channel-tab-pane","type","button","role","tab","aria-controls","channel-tab-pane","aria-selected","true",1,"nav-link","active"],["id","restriction-tab","data-bs-toggle","tab","data-bs-target","#restriction-tab-pane","type","button","role","tab","aria-controls","restriction-tab-pane","aria-selected","false",1,"nav-link"],[1,"card","rounded-0","border-top-0"],[1,"card-body","pb-4"],["id","myTabContent",1,"tab-content","mt-3"],["id","channel-tab-pane","role","tabpanel","aria-labelledby","channel-tab","tabindex","0",1,"tab-pane","fade","show","active","pb-9"],["variant","on",1,"w-100"],["optionLabel","Name","optionValue","ID","display","chip","id","channelSelection",1,"w-100","channel-multiselect",2,"--p-multiselect-padding-y","14px",3,"ngModelChange","options","ngModel","maxSelectedLabels","disabled"],["pTemplate","item"],["pTemplate","selectedItems"],["for","channelSelection"],[1,"mt-4"],["id","restriction-tab-pane","role","tabpanel","aria-labelledby","restriction-tab-pane","tabindex","1",1,"tab-pane","fade"],["matTooltip","How many days of past orders this user can download.","matTooltipPosition","above",1,"form-label-group","mb-3"],["type","text","id","daysRange","name","daysRange","data-toggle","tooltip","title","daysRange","autoNum","",1,"form-control",3,"ngModelChange","ngModel"],["for","daysRange"],[1,"d-flex","align-items-center","gap-2"],[2,"width","18px",3,"src"],[1,"d-flex","flex-wrap","gap-1"],[1,"me-3",2,"--p-chip-image-width","1.2rem","--p-chip-image-height","1.2rem","--p-chip-padding-x","1rem","--p-chip-padding-y","0.5rem","--p-chip-border-radius","0.5rem","--p-chip-font-size","1.2rem",3,"label","image","alt","removable"],[1,"me-3",2,"--p-chip-image-width","1.2rem","--p-chip-image-height","1.2rem","--p-chip-padding-x","1rem","--p-chip-padding-y","0.5rem","--p-chip-border-radius","0.5rem","--p-chip-font-size","1.2rem",3,"onRemove","label","image","alt","removable"]],template:function(n,i){if(n&1){let l=k();Ze(0),We(1,"async"),d(2,"mainpanel",0)(3,"actions")(4,"a",1),v(5," Cancel "),u(),d(6,"button",2),O("click",function(){return g(l),y(i.onSave())}),v(7,"Save"),u()(),d(8,"content")(9,"div",3)(10,"div",4)(11,"div",5)(12,"div",6)(13,"div",7)(14,"h3"),v(15,"User Information"),u()(),d(16,"div",8)(17,"div",9)(18,"div",10)(19,"div",11)(20,"ng-select",12),K("ngModelChange",function(m){return g(l),N(i.selectedUser,m)||(i.selectedUser=m),y(m)}),u(),d(21,"label",13),v(22,"Select User"),u()()(),d(23,"div",10)(24,"div",11)(25,"ng-select",14),K("ngModelChange",function(m){return g(l),N(i.selectedGroup,m)||(i.selectedGroup=m),y(m)}),u(),d(26,"label",15),v(27,"Select Group"),u()()()()()()()(),d(28,"div",9)(29,"div",5)(30,"ul",16)(31,"li",17)(32,"button",18),v(33," Channels Filter "),u()(),d(34,"li",17)(35,"button",19),v(36," Restriction "),u()()(),d(37,"div",20)(38,"div",21)(39,"div",22)(40,"div",23)(41,"p-floatlabel",24)(42,"p-multiselect",25),K("ngModelChange",function(m){return g(l),N(i.selectedChannel,m)||(i.selectedChannel=m),y(m)}),p(43,Al,4,2,"ng-template",26)(44,Nl,3,1,"ng-template",27),u(),d(45,"label",28),v(46,"Select Channels"),u()(),d(47,"div",29),v(48," When no channel filter is assigned all channel will be visible "),u()(),d(49,"div",30)(50,"div",9)(51,"div",10)(52,"div",31)(53,"input",32),K("ngModelChange",function(m){return g(l),N(i.orderDownloadDaysRange,m)||(i.orderDownloadDaysRange=m),y(m)}),u(),d(54,"label",33),v(55,"Download Order Days Range"),u()()()()()()()()()()()()()}if(n&2){let l=Ye(1,16,i.userFormLoader$);s(2),r("headerTitle",i.selectedUserName()?" Edit User Access - "+i.selectedUserName():"User Form")("hideSearchBox",!0)("hideSearchDropdown",!0),s(17),r("ngClass",M(18,Xt,!i.selectedUser())),s(),r("items",(l==null||l.Options==null?null:l.Options.Users)||H(20,Ae)),Q("ngModel",i.selectedUser),r("disabled",i.isEditMode()),s(4),r("ngClass",M(21,Xt,!i.selectedGroup())),s(),r("items",(l==null||l.Options==null?null:l.Options.Groups)||H(23,Ae)),Q("ngModel",i.selectedGroup),r("disabled",!i.hasUserEditRole()),s(17),r("options",(l==null||l.Options==null?null:l.Options.Channels)||H(24,Ae)),Q("ngModel",i.selectedChannel),r("maxSelectedLabels",10)("disabled",!i.hasUserEditRole()),s(11),Q("ngModel",i.orderDownloadDaysRange)}},dependencies:[G,U,et,ht,_t,pe,at,se,ce,Wt,Me,ee,dt,pt,Jt,Ht,Kt,Nt,ke,lt,nt,Qt,mt,ut],styles:[`.nav-tabs .nav-link.active:hover,.nav-tabs .nav-link.active:focus,.nav-tabs .nav-item.show .nav-link:hover,.nav-tabs .nav-item.show .nav-link:focus{background-color:#fff!important;border-color:#dee2e6 #dee2e6 #fff}
|
|
266
|
+
`],encapsulation:2})}}return t})();export{ca as UserFormComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as ae}from"./chunk-G4OF4YLE.js";import"./chunk-2DJWDXTZ.js";import{a as ie}from"./chunk-E2CS7ZMC.js";import"./chunk-R76V3PTN.js";import{a as oe,b as re}from"./chunk-ZR5IXNXB.js";import"./chunk-LSXUXG54.js";import"./chunk-6LH7FSOW.js";import"./chunk-XEMNZHW6.js";import"./chunk-SIYMMMKQ.js";import"./chunk-WHZ44BAL.js";import"./chunk-LHD7CYML.js";import"./chunk-DJILLV4M.js";import"./chunk-OKAPL3YZ.js";import"./chunk-SDUUFQUI.js";import"./chunk-3RK6DDJD.js";import"./chunk-MQXPOHBV.js";import"./chunk-M5IQRAHV.js";import{a as X,b as Z,d as $,e as ee}from"./chunk-SYENQYR7.js";import"./chunk-2ZTDLZVZ.js";import"./chunk-2TZBEYNY.js";import"./chunk-SXLKJLAE.js";import{i as Q}from"./chunk-PZ4PSWYM.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import"./chunk-PB2SJSML.js";import{e as K}from"./chunk-4M63ID5T.js";import"./chunk-K5XRGNWG.js";import"./chunk-HPYTL6TX.js";import{c as J}from"./chunk-PW42BQIY.js";import{m as te,n as ne}from"./chunk-6X2OBNJQ.js";import{c as j,h as q,m as G,o as H,z as Y}from"./chunk-CSSG7NAJ.js";import"./chunk-MZI5AYCE.js";import"./chunk-UJYSVGLV.js";import"./chunk-HFKKITEW.js";import"./chunk-OZ77CAJD.js";import{H as A,J as U,f as W,g as F,k as B,m as k,n as z}from"./chunk-MTUIRWOB.js";import{$c as L,Fc as P,Gb as T,Gc as l,Hc as S,Ic as y,Kc as c,Lc as u,Mb as w,Mc as h,Sc as I,Yb as m,ad as N,bd as V,cd as R,ic as t,jc as n,kc as C,lc as M,mc as x,oc as O,pb as b,rb as r,tc as E,uc as v,xb as D,ya as p,za as s}from"./chunk-JS55A2RS.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var le=a=>({ID:a});function de(a,f){if(a&1&&(t(0,"span",17),C(1,"img",18),n(),l(2)),a&2){let e=f.item;r(),m("src",e.Img,b)("alt",e.Name),r(),y(" ",e.Name," ")}}function me(a,f){if(a&1&&(t(0,"tr")(1,"td"),l(2),n(),t(3,"td"),C(4,"img",28),n(),t(5,"td"),l(6),n(),t(7,"td",29)(8,"a",30),l(9),L(10,"number"),n()(),t(11,"td"),l(12),n(),t(13,"td"),l(14),L(15,"date"),n()()),a&2){let e=f.$implicit;r(2),S(e._source.ChannelName),r(2),m("src",e.logo,b),r(2),S(e._source.DateRange),r(2),m("queryParams",I(12,le,e._source.ID)),r(),y(" ",N(10,7,e._source.CountOrder)," "),r(3),S(e._source.UserLogin),r(2),y(" ",V(15,9,e._source["@timestamp_received"],"dd MMM yyyy hh:mm")," ")}}function pe(a,f){if(a&1){let e=O();M(0),t(1,"div",19)(2,"table",20)(3,"thead")(4,"tr",21)(5,"th",22),l(6,"Channel"),n(),t(7,"th",23),l(8,"Type"),n(),t(9,"th",24),l(10,"Download Date Range"),n(),t(11,"th",25),l(12,"Count"),n(),t(13,"th"),l(14,"User Login"),n(),t(15,"th"),l(16,"Created"),n()()(),t(17,"tbody"),w(18,me,16,14,"tr",26),n()(),t(19,"mat-paginator",27),E("page",function(i){p(e);let d=v();return s(d.onPaginationChange(i))}),n()(),x()}if(a&2){let e=v();r(18),m("ngForOf",e.downloadOrders),r(),m("length",e.paginationTotal)("pageSize",e.paginationPageSize)("pageIndex",(e.filter==null?null:e.filter.PageNumber)==0?0:(e.filter==null?null:e.filter.PageNumber)-1)}}function se(a,f){a&1&&(t(0,"div",31),C(1,"app-empty-state"),n())}var xe=(()=>{class a{constructor(e,g){this.http=e,this.authService=g,this.filter={PageNumber:0,RowCount:20,ChannelID:"",From:"",To:""},this.channelOptions=this.authService.getChannels(),this.onGetLoader()}onGetLoader(){this.http.post("/api/OrdersLoader/OrderLogsLoader",{}).subscribe(e=>{this.filter=e.Filter,this.getDownloadOrders()})}getDownloadOrders(){this.http.post("api/Orders/OrderLogsPaged",this.filter).subscribe(e=>{this.downloadOrders=e.hits,this.setChannelLogo(),this.paginationTotal=e.total.value,this.paginationPageSize=this.filter.RowCount>this.paginationTotal?this.paginationTotal:this.filter.RowCount})}setChannelLogo(){this.downloadOrders=this.downloadOrders.map(e=>(e.logo=J.getChannelLogoByTypeId(e._source.TypeID),e))}onPaginationChange(e){this.filter.PageNumber=e.pageIndex+1,this.getDownloadOrders()}static{this.\u0275fac=function(g){return new(g||a)(D(K),D(Q))}}static{this.\u0275cmp=T({type:a,selectors:[["app-download-order-log"]],decls:29,vars:10,consts:[["EMPTY_STATE",""],["headerTitle","Download Order Log",3,"onSubmit","hideSearchBox"],[1,"fw-bold","mb-2"],["bindLabel","Name","name","channelid","bindValue","ID","placeholder","Select Channel","appendTo","body",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],["ng-option-tmp","","ng-label-tmp",""],[1,"mt-5"],[1,"fw-bold","mb-1"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","RowCount",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[4,"ngIf","ngIfElse"],[1,"me-2"],[2,"width","18px",3,"src","alt"],[1,"table-responsive"],[1,"table","table-hover"],[1,"table-light"],[2,"width","250px"],[2,"width","150px"],[2,"width","200px"],[1,"text-end",2,"width","200px"],[4,"ngFor","ngForOf"],[3,"page","length","pageSize","pageIndex"],[2,"width","25px",3,"src"],[1,"text-end"],["routerLink","/menu/Order/Download_Order_Log/Detail",3,"queryParams"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"]],template:function(g,i){if(g&1){let d=O();t(0,"mainpanel",1),E("onSubmit",function(){return p(d),s(i.getDownloadOrders())}),t(1,"filters")(2,"div")(3,"label",2),l(4,"Channel"),n(),t(5,"ng-select",3),h("ngModelChange",function(o){return p(d),u(i.filter.ChannelID,o)||(i.filter.ChannelID=o),s(o)}),w(6,de,3,3,"ng-template",4),n()(),t(7,"div",5)(8,"label",6),l(9,"From/To"),n(),t(10,"div",7)(11,"datepicker",8),h("dateChange",function(o){return p(d),u(i.filter.From,o)||(i.filter.From=o),s(o)}),n()(),t(12,"div")(13,"datepicker",9),h("dateChange",function(o){return p(d),u(i.filter.To,o)||(i.filter.To=o),s(o)}),n()()(),t(14,"div",5)(15,"label",10),l(16,"Page Number"),n(),t(17,"input",11),h("ngModelChange",function(o){return p(d),u(i.filter.PageNumber,o)||(i.filter.PageNumber=o),s(o)}),n()(),t(18,"div",5)(19,"label",10),l(20,"Page Size"),n(),t(21,"input",12),h("ngModelChange",function(o){return p(d),u(i.filter.RowCount,o)||(i.filter.RowCount=o),s(o)}),n()()(),t(22,"content")(23,"div",13)(24,"div",14)(25,"div",15),w(26,pe,20,4,"ng-container",16)(27,se,2,0,"ng-template",null,0,R),n()()()()()}if(g&2){let d=P(28);m("hideSearchBox",!0),r(5),m("clearable",!0)("items",i.channelOptions),c("ngModel",i.filter.ChannelID),r(6),c("date",i.filter.From),r(2),c("date",i.filter.To),r(4),c("ngModel",i.filter.PageNumber),r(4),c("ngModel",i.filter.RowCount),r(5),m("ngIf",(i.downloadOrders==null?null:i.downloadOrders.length)>0)("ngIfElse",d)}},dependencies:[z,W,F,k,B,re,oe,ne,te,ee,$,X,Z,Y,j,H,q,G,ae,U,A,ie],encapsulation:2})}}return a})();export{xe as DownloadOrderLogComponent};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{a as ie,b as qe}from"./chunk-UMY6NG57.js";import"./chunk-NRCXYGO3.js";import"./chunk-2SXRC4IG.js";import"./chunk-WGXUKTYP.js";import{e as We,k as Le,l as Ae,m as $e,n as ze,o as Ye}from"./chunk-R76V3PTN.js";import"./chunk-6LH7FSOW.js";import"./chunk-XEMNZHW6.js";import"./chunk-ALKC77XL.js";import"./chunk-NTW6FBP5.js";import"./chunk-LR4UZ2OS.js";import"./chunk-F4GMWHYJ.js";import{a as Oe,b as Ne,c as Re}from"./chunk-ZIOAOUAM.js";import"./chunk-SIYMMMKQ.js";import"./chunk-WHZ44BAL.js";import{a as Be}from"./chunk-JOBWFOGC.js";import"./chunk-DJILLV4M.js";import"./chunk-OKAPL3YZ.js";import"./chunk-SDUUFQUI.js";import"./chunk-M5IQRAHV.js";import"./chunk-OZ7LWNOK.js";import"./chunk-VRI3CYGG.js";import"./chunk-AVEGIEYT.js";import{c as Ee,d as Pe,e as Ie}from"./chunk-SYENQYR7.js";import{a as Ue,b as Ge,c as je,e as Ke,f as He,g as Qe}from"./chunk-A2YNWIX6.js";import"./chunk-55OI2SUF.js";import"./chunk-2ZTDLZVZ.js";import"./chunk-2TZBEYNY.js";import"./chunk-SXLKJLAE.js";import{h as be,i as ee}from"./chunk-PZ4PSWYM.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import{a as Z}from"./chunk-PB2SJSML.js";import{b as De,e as Te}from"./chunk-4M63ID5T.js";import"./chunk-K5XRGNWG.js";import"./chunk-HPYTL6TX.js";import{b as X,c as y}from"./chunk-PW42BQIY.js";import{m as Fe,n as ke}from"./chunk-6X2OBNJQ.js";import{c as Se,h as Ce,m as ve,w as ye,z as xe}from"./chunk-CSSG7NAJ.js";import"./chunk-MZI5AYCE.js";import"./chunk-UJYSVGLV.js";import{r as Me,s as Ve}from"./chunk-HFKKITEW.js";import"./chunk-OZ77CAJD.js";import{J as we,d as W,f as B,g as L,j as q,k as J,n as F}from"./chunk-MTUIRWOB.js";import{$c as R,Ac as ce,Bc as he,Cc as ue,Fc as T,Gb as I,Gc as s,Hc as V,Ic as C,Ka as j,Kc as b,Lc as E,Mb as g,Mc as P,Oa as k,Qc as K,Ra as _,Sc as fe,Tc as _e,Yb as d,Z as z,aa as le,ad as U,bd as ge,cd as H,dc as M,ea as Y,ic as o,ja as se,jc as a,kc as S,lc as O,m as re,mc as N,oc as x,pa as v,pb as pe,rb as r,sd as Q,tc as w,uc as h,v as G,xc as de,ya as m,yc as me,za as c}from"./chunk-JS55A2RS.js";import"./chunk-EU2KAMEK.js";import{a as ae,b as oe}from"./chunk-66YHNWRR.js";var et=t=>({"over-due":t});function tt(t,p){if(t&1&&(o(0,"tr",8)(1,"td"),s(2),a(),o(3,"td"),s(4),a(),o(5,"td"),s(6),a(),o(7,"td"),s(8),a()()),t&2){let e=p.$implicit,n=p.index;d("ngClass",fe(5,et,e.Exception)),r(2),V(n+1),r(2),V(e.Number),r(2),V(e.Status),r(2),V(e.Exception)}}function it(t,p){if(t&1&&(O(0),g(1,tt,9,7,"tr",7),N()),t&2){let e,n=h();r(),d("ngForOf",(e=n.downloadResult())==null?null:e.Body)}}function nt(t,p){t&1&&(o(0,"tr",9)(1,"td",10)(2,"div",11),S(3,"i",12),a(),o(4,"h4",13),s(5," There is no order to processed "),a()()())}var Je=(()=>{class t{constructor(){this.downloadResult=k()}ngOnInit(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=I({type:t,selectors:[["complete-step"]],inputs:{downloadResult:[1,"downloadResult"]},decls:16,vars:2,consts:[["EMPTY_DOWNLOAD",""],[1,"row","pt-2"],[1,"col-md-12"],[1,"table"],[1,"thead-light"],["width","1%"],[4,"ngIf","ngIfElse"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[1,"text-center"],["colspan","10",1,"border-0"],[2,"margin-top","16vh"],[1,"far","fa-file","text-secondary",2,"font-size","95px"],[1,"text-secondary","mt-6"]],template:function(n,i){if(n&1&&(o(0,"div",1)(1,"div",2)(2,"table",3)(3,"thead",4)(4,"tr"),S(5,"th",5),o(6,"th"),s(7,"Order Number"),a(),o(8,"th"),s(9,"Status"),a(),o(10,"th"),s(11,"Exception"),a()()(),o(12,"tbody"),g(13,it,2,1,"ng-container",6)(14,nt,6,0,"ng-template",null,0,H),a()()()()),n&2){let l,u=T(15);r(13),d("ngIf",((l=i.downloadResult())==null||l.Body==null?null:l.Body.length)>0)("ngIfElse",u)}},dependencies:[F,W,B,L],encapsulation:2})}}return t})();var A=(()=>{class t{constructor(){this.httpService=v(Te),this.toastr=v(De),this.datePipe=v(J)}gerChannelDetailById(e){return this.httpService.post(Z.GetChannelDetail,{ID:e})}getOrderPreview(e){return this.httpService.post(Z.GetOrderPreviewV2,e)}getDownloadOrder(e){return this.httpService.post(Z.GetDownloadOrderV2,e)}onPreviewOrder(e){return this.validateDatePreview(e)?this.getOrderPreview(e).pipe(Y(n=>{n.Data?.length===0&&this.toastrEmptyPreview(e)})):re}toastrEmptyPreview(e){let n=this.datePipe.transform(e.From,"dd MMM yyyy"),i=this.datePipe.transform(e.To,"dd MMM yyyy"),l=e.TimeFrom?e.TimeFrom:"",u=e.TimeTo?e.TimeTo:"";this.toastr.info(`There is no orders from ${n} ${l} to ${i} ${u}!`,"No Orders!")}validateDatePreview(e){let n=!0;return e.downloadType==!0?y.getDaysDiff(e?.From,e?.To)+1>7&&(this.toastr.warning("Dates cannot be more than 7 days apart!","Warning"),n=!1):y.getDaysDiff(e?.From,e?.To)+1>14&&(this.toastr.warning("Dates cannot be more than 14 days apart!","Warning"),n=!1),n}getDateTitle(e,n){let i=y.formatTitleFromDate(new Date(e),new Date(n)),l=this.datePipe.transform(e,i),u=this.datePipe.transform(n,"dd MMM yyyy");return`${i==null?"":l+"-"} ${u}`}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=se({token:t,factory:t.\u0275fac})}}return t})();function at(t,p){if(t&1&&(o(0,"ng-option",13),S(1,"img",14),s(2),a()),t&2){let e=p.$implicit;d("value",e.ID),r(),d("src",e==null?null:e.Img,pe),r(),C("",e.Name," ")}}function ot(t,p){if(t&1){let e=x();o(0,"div",8)(1,"div",4)(2,"h5"),s(3,"Type"),a(),o(4,"p",5),s(5,"Select Type want to download"),a()(),o(6,"div",4)(7,"div",15)(8,"div")(9,"mat-radio-group",16),P("ngModelChange",function(i){m(e);let l=h();return E(l.downloadType,i)||(l.downloadType=i),c(i)}),w("ngModelChange",function(){m(e);let i=h();return c(i.onDownloadTypeChange())}),o(10,"mat-radio-button",17),s(11," Orders "),a(),o(12,"mat-radio-button",18),s(13," Disbursement "),a()()()(),o(14,"div",19)(15,"div",20),S(16,"i",21),a(),o(17,"p",22),s(18," If there are completed transactions, to obtain payment and service fee, you need to download disbursement. "),a()()()()}if(t&2){let e=h();r(9),b("ngModel",e.downloadType),r(),d("value",!1),r(2),d("value",!0)}}function rt(t,p){t&1&&(o(0,"p",5),s(1," Select Disbursement date "),o(2,"span",23),s(3,"(payment date / order complete date)"),a(),s(4," of the channel you want to download (Max 1 Week). "),a())}function lt(t,p){t&1&&(o(0,"p",5),s(1," Select transaction date of the channel you want to download (Max 2 Weeks) "),a())}function st(t,p){if(t&1){let e=x();o(0,"div",12)(1,"app-timepicker",24),P("timeChange",function(i){m(e);let l=h();return E(l.startTime,i)||(l.startTime=i),c(i)}),w("timeChange",function(){m(e);let i=h();return c(i.onStartTimeChange())}),a(),o(2,"span",25),s(3,"-"),a(),o(4,"app-timepicker",24),P("timeChange",function(i){m(e);let l=h();return E(l.endTime,i)||(l.endTime=i),c(i)}),w("timeChange",function(){m(e);let i=h();return c(i.onEndTimeChange())}),a()()}if(t&2){let e=h();r(),b("time",e.startTime),r(3),b("time",e.endTime)}}var Xe=(()=>{class t{constructor(){this.reset=k(!1),this.authService=v(ee),this.tokenService=v(be),this.downloadService=v(A),this.downloadType=_(!1),this.selectedChannelId=_(null),this.channelOptions=_(this.authService.getChannels()),this.channelType=X,this.selectedChannel=_(null),this.showTimePicker=_(!1),this.startDate=_(null),this.endDate=_(null),this.startTime=_("00:00"),this.endTime=_("23:59"),this.minDate=_(new Date),this.maxDate=_(new Date),this.filterData=new j,Q(()=>{this.reset()&&this.resetFilter()},{allowSignalWrites:!0}),this.initDateValidation()}initDateValidation(){let e=this.tokenService?.getTokenValue(),n=e?.DownloadRange?JSON.parse(e?.DownloadRange):0;if(n<=0)this.minDate.set(null),this.maxDate.set(null);else{let i=new Date,l=y.addDays(i,n-1);this.minDate.set(l)}}resetFilter(){this.selectedChannelId.update(()=>null),this.startDate.update(()=>null),this.endDate.update(()=>null),this.startTime.update(()=>null),this.endTime.update(()=>null),this.downloadType.update(()=>!1),this.selectedChannel.update(()=>null),this.showTimePicker.update(()=>!1),this.channelDetail$=null}onSelectChannel(){this.selectedChannel.update(()=>this.channelOptions().find(e=>e.ID===this.selectedChannelId())),this.selectedChannel()?this.channelDetail$=this.downloadService.gerChannelDetailById(this.selectedChannelId()).pipe(G(e=>e?.Model),z(1)):this.channelDetail$=null,this.emitFilterData()}onFilterDateChange(){let e=1;this.startDate()&&this.endDate()&&(e=y.getDaysDiff(this.startDate(),this.endDate())),this.showTimePicker.update(()=>e==0),this.emitFilterData()}onDownloadTypeChange(){this.emitFilterData()}onStartTimeChange(){this.emitFilterData()}onEndTimeChange(){this.emitFilterData()}emitFilterData(){this.filterData.emit({channelId:this.selectedChannelId(),startDate:this.startDate(),endDate:this.endDate(),downloadType:this.downloadType(),startTime:this.startTime(),endTime:this.endTime()})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=I({type:t,selectors:[["filter-step"]],inputs:{reset:[1,"reset"]},outputs:{filterData:"onFilterChange"},features:[K([A,We()])],decls:27,vars:13,consts:[["picker",""],[1,"row","pt-2",2,"width","63%","margin-right","40px"],[1,"col-12"],[1,"row"],[1,"col-6"],[1,"text-muted"],["appendTo","body","placeholder","Select Channel",3,"ngModelChange","clearable","ngModel"],[3,"value",4,"ngFor","ngForOf"],[1,"row","mt-6"],["id","dates",1,"form-control","rounded","dateRange",3,"rangePicker","min","max"],["matStartDate","","placeholder","Start date",3,"ngModelChange","click","ngModel","maxlength"],["matEndDate","","placeholder","End date",3,"ngModelChange","click","ngModel"],[1,"mt-8"],[3,"value"],[2,"width","18px","margin-right","10px",3,"src"],[1,"form-label-group","radio","download-type",2,"margin-bottom","0px"],["name","dowloadType",3,"ngModelChange","ngModel"],["matTooltip","Download from Create sales order until create logistics status",1,"me-5",3,"value"],["matTooltip","Download only Payment and write off",1,"me-5",3,"value"],[1,"d-flex","border","mb-4","pt-6","px-6","mt-3",2,"background","#1f87ac0a","border-radius","5px"],[1,"me-3","pt-1"],[1,"fa","fa-lightbulb","fs-5"],[1,"mb-6"],[1,"fw-bold"],[3,"timeChange","time"],[1,"mx-4"]],template:function(n,i){if(n&1){let l=x();o(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5"),s(5,"Select a Channel"),a(),o(6,"p",5),s(7,"Select Channel want to download order"),a()(),o(8,"div",4)(9,"ng-select",6),P("ngModelChange",function(f){return m(l),E(i.selectedChannelId,f)||(i.selectedChannelId=f),c(f)}),w("ngModelChange",function(){return m(l),c(i.onSelectChannel())}),g(10,at,3,3,"ng-option",7),a()()(),g(11,ot,19,3,"div",8),R(12,"async"),o(13,"div",8)(14,"div",4)(15,"h5"),s(16,"Date Range"),a(),g(17,rt,5,0,"p",5)(18,lt,2,0,"p",5),a(),o(19,"div",4)(20,"div",2)(21,"mat-date-range-input",9)(22,"input",10),P("ngModelChange",function(f){return m(l),E(i.startDate,f)||(i.startDate=f),c(f)}),w("click",function(){m(l);let f=T(25);return c(f.open())}),a(),o(23,"input",11),P("ngModelChange",function(f){return m(l),E(i.endDate,f)||(i.endDate=f),c(f)}),w("click",function(){m(l);let f=T(25);return c(f.open())})("ngModelChange",function(){return m(l),c(i.onFilterDateChange())}),a()(),S(24,"mat-date-range-picker",null,0),a(),g(26,st,5,2,"div",12),a()()()()}if(n&2){let l,u,f=T(25);r(9),d("clearable",!1),b("ngModel",i.selectedChannelId),r(),d("ngForOf",i.channelOptions()),r(),M((l=U(12,11,i.channelDetail$))!=null&&l.ServiceFeeWriteOff&&((l=i.selectedChannel())==null?null:l.TypeID)==i.channelType.Tokopedia?11:-1),r(6),M(i.downloadType()&&((u=i.selectedChannel())==null?null:u.TypeID)==i.channelType.Tokopedia?17:18),r(4),d("rangePicker",f)("min",i.minDate())("max",i.maxDate()),r(),b("ngModel",i.startDate),r(),b("ngModel",i.endDate),r(3),M(i.showTimePicker()?26:-1)}},dependencies:[F,B,q,Ie,Pe,Ee,Re,Oe,Ne,xe,Se,Ce,ye,ve,qe,ze,Le,Ye,Ae,$e],styles:[".vertical-radio[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}.mt-1rem[_ngcontent-%COMP%]{margin-top:1rem}.dateRange[_ngcontent-%COMP%]{padding-top:.8rem;padding-bottom:.8rem}.form-label-group.radio.download-type[_ngcontent-%COMP%]{height:45.5938px!important;border-radius:.375rem!important}"]})}}return t})();var D=function(t){return t.ALL="all",t.SYNC="sync",t.WRONG="wrong",t.UNSYNC="unsync",t}(D||{});var $=function(t){return t[t.DoNothing=0]="DoNothing",t[t.New=1]="New",t[t.Update=2]="Update",t}($||{});var pt=(t,p)=>({"over-due-today":t,"over-due":p});function dt(t,p){if(t&1&&(o(0,"th",21),s(1),a()),t&2){let e=h();r(),C(" ",e.selectedChannel()?"Created Date":"Last Status Update"," ")}}function mt(t,p){if(t&1&&(o(0,"td"),s(1),R(2,"date"),a()),t&2){let e=h().$implicit;r(),C(" ",ge(2,1,e.Modified,"dd MMM yyyy HH:mm:ss")," ")}}function ct(t,p){if(t&1&&(o(0,"span"),s(1),a()),t&2){let e=h().$implicit;r(),C(" ",e.ActionString," ")}}function ht(t,p){if(t&1&&(o(0,"li"),s(1),a()),t&2){let e=p.$implicit;r(),C(" ",e," ")}}function ut(t,p){if(t&1&&(o(0,"ul",27),g(1,ht,2,1,"li",22),a()),t&2){let e=h().$implicit;r(),d("ngForOf",e.ActionString)}}function ft(t,p){if(t&1&&(o(0,"span",28),S(1,"i",29),a()),t&2){let e=h().$implicit;me("title","Delivery : ",e.DeliveryState,`
|
|
2
|
+
Payment : `,e.PaymentState,"")}}function _t(t,p){if(t&1&&(o(0,"tr")(1,"td"),s(2),a(),o(3,"td"),s(4),a(),g(5,mt,3,4,"td",23),o(6,"td")(7,"span"),s(8),a(),s(9),a(),o(10,"td",24)(11,"span"),s(12),a(),s(13),a(),o(14,"td"),g(15,ct,2,1,"span",23)(16,ut,2,1,"ul",25),a(),o(17,"td"),g(18,ft,2,3,"span",26),a()()),t&2){let e,n=p.$implicit,i=p.index,l=h(2);r(2),V(i+1),r(2),V(n.Number),r(),d("ngIf",((e=l.selectedChannel())==null?null:e.TypeID)!=l.channelType.Shopee&&((e=l.selectedChannel())==null?null:e.TypeID)!==l.channelType.Tiktok),r(3),C("",n.ChannelStatus," - "),r(),C("",n.ChannelStatusDescription," "),r(),d("ngClass",_e(12,pt,(n==null?null:n.Action)==l.actionPreviewOrder.Update,(n==null?null:n.Action)==l.actionPreviewOrder.New))("matTooltip",n.POSStatus==91||n.POSStatusDescription=="Conflict"?"There is a missed status at POS, usually fulfillment has not been recorded but the payment has been recorded":""),r(2),C("",n.POSStatus," - "),r(),C("",n.POSStatusDescription," "),r(2),d("ngIf",n.ActionString.length==1),r(),d("ngIf",n.ActionString.length>1),r(2),d("ngIf",n.ChannelStatus!=99&&n.POSStatus!=99)}}function gt(t,p){if(t&1&&(O(0),g(1,_t,19,15,"tr",22),N()),t&2){let e=h();r(),d("ngForOf",e.displayPreviewData())}}function wt(t,p){t&1&&(o(0,"tr",30)(1,"td",31)(2,"div",32),S(3,"i",33),a(),o(4,"h4",34),s(5," There is no order to processed "),a()()())}var Ze=(()=>{class t{constructor(){this.orderPreview=k(),this.selectedChannel=k(),this.channelType=X,this.allData=_(0),this.syncData=_(0),this.wrongData=_(0),this.unsyncData=_(0),this.pillStatus=_(D.ALL),this.actionPreviewOrder=$,this.previewStatus=D,this.displayPreviewData=_([]),this.exportOrders=new j,Q(()=>{this.orderPreview()&&(this.filterPreviewData(D.ALL),this.initLengthStatusData())},{allowSignalWrites:!0})}filterPreviewData(e){this.pillStatus.update(()=>e),this.displayPreviewData.update(()=>this.filterDataByStatus(e))}initLengthStatusData(){this.wrongData.update(()=>this.filterDataByStatus(D.WRONG).length),this.syncData.update(()=>this.filterDataByStatus(D.SYNC).length),this.allData.update(()=>this.orderPreview().length),this.unsyncData.update(()=>this.filterDataByStatus(D.UNSYNC).length)}filterDataByStatus(e){let n=[];switch(e){case D.ALL:n=this.orderPreview();break;case D.SYNC:n=this.orderPreview().filter(i=>i.Action==$.DoNothing);break;case D.WRONG:n=this.orderPreview().filter(i=>i.Action==$.Update);break;case D.UNSYNC:n=this.orderPreview().filter(i=>i.Action==$.New);break}return n}onExportOrders(){this.exportOrders.emit()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=I({type:t,selectors:[["preview-step"]],inputs:{orderPreview:[1,"orderPreview"],selectedChannel:[1,"selectedChannel"]},outputs:{exportOrders:"onExportOrders"},decls:41,vars:11,consts:[["EMPTY",""],[1,"row","pt-2"],[1,"col-md-12"],[1,"row","mx-1","mb-5"],[1,"col-12","d-flex","justify-content-between","align-items-end",2,"padding-left","0px","padding-right","0px"],[1,"nav","nav-pills"],[1,"nav-item","me-3"],[1,"btn","btn-sm","rounded-pill",3,"click","ngClass"],[1,"nav-item","mx-3"],["matTooltip","All Invoice which is already available in POS",1,"btn","btn-sm","rounded-pill",3,"click","ngClass"],["matTooltip","Invoices that have different status between marketplace and POS",1,"btn","btn-sm","rounded-pill",3,"click","ngClass"],["matTooltip","Invoices which is not exist in POS",1,"btn","btn-sm","rounded-pill",3,"click","ngClass"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[1,"fa-solid","fa-print","me-3"],[1,"table"],[1,"thead-light"],["width","1%"],["width","25%"],["width","15%",4,"ngIf"],["width","10%"],[4,"ngIf","ngIfElse"],["width","15%"],[4,"ngFor","ngForOf"],[4,"ngIf"],["matTooltipClass","custom-width-tooltip",3,"ngClass","matTooltip"],["class","ps-5",4,"ngIf"],[3,"title",4,"ngIf"],[1,"ps-5"],[3,"title"],[1,"fas","fa-info-circle","ms-2"],[1,"text-center"],["colspan","10",1,"border-0"],[2,"margin-top","16vh"],[1,"far","fa-file","text-secondary",2,"font-size","95px"],[1,"text-secondary","mt-6"]],template:function(n,i){if(n&1){let l=x();o(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div")(5,"ul",5)(6,"li",6)(7,"button",7),w("click",function(){return m(l),c(i.filterPreviewData(i.previewStatus.ALL))}),s(8),a()(),o(9,"li",8)(10,"button",9),w("click",function(){return m(l),c(i.filterPreviewData(i.previewStatus.SYNC))}),s(11),a()(),o(12,"li",8)(13,"button",10),w("click",function(){return m(l),c(i.filterPreviewData(i.previewStatus.WRONG))}),s(14),a()(),o(15,"li",8)(16,"button",11),w("click",function(){return m(l),c(i.filterPreviewData(i.previewStatus.UNSYNC))}),s(17),a()()()(),o(18,"div")(19,"button",12),w("click",function(){return m(l),c(i.onExportOrders())}),S(20,"i",13),o(21,"span"),s(22,"Export"),a()()()()(),o(23,"table",14)(24,"thead",15)(25,"tr"),S(26,"th",16),o(27,"th",17),s(28,"Number"),a(),g(29,dt,2,1,"th",18),o(30,"th",19),s(31,"Channel Status"),a(),o(32,"th",19),s(33,"POS Status"),a(),o(34,"th"),s(35,"Action"),a(),S(36,"th",16),a()(),o(37,"tbody"),g(38,gt,2,1,"ng-container",20)(39,wt,6,0,"ng-template",null,0,H),a()()()()}if(n&2){let l,u,f=T(40);r(7),d("ngClass",i.pillStatus()=="all"?"btn-secondary text-white":"btn-outline-dark"),r(),C(" All (",i.allData(),") "),r(2),d("ngClass",i.pillStatus()=="sync"?"btn-success":"btn-outline-success"),r(),C(" Existing (",i.syncData(),") "),r(2),d("ngClass",i.pillStatus()=="wrong"?"btn-warning text-white":"btn-outline-warning"),r(),C(" Wrong Status (",i.wrongData(),") "),r(2),d("ngClass",i.pillStatus()=="unsync"?"btn-danger":"btn-outline-danger"),r(),C(" Missing (",i.unsyncData(),") "),r(12),d("ngIf",((l=i.selectedChannel())==null?null:l.TypeID)!=i.channelType.Shopee&&((l=i.selectedChannel())==null?null:l.TypeID)!==i.channelType.Tiktok),r(9),d("ngIf",((u=i.displayPreviewData())==null?null:u.length)>0)("ngIfElse",f)}},dependencies:[F,W,B,L,J,Ve,Me],encapsulation:2})}}return t})();var St=["stepper"];function Ct(t,p){if(t&1){let e=x();o(0,"div",2)(1,"button",19),w("click",function(){m(e);let i=h();return c(i.onStepperBack())}),s(2," Back "),a(),o(3,"button",20),w("click",function(){m(e);let i=h();return c(i.onNextStep())}),s(4," Next "),a()()}if(t&2){let e=h();r(3),d("disabled",e.disabledNextFilter())}}function vt(t,p){if(t&1){let e=x();o(0,"button",21),w("click",function(){m(e);let i=h();return c(i.onNextStep())}),s(1," Next "),a()}if(t&2){let e=h();d("disabled",e.disabledNextFilter())}}function yt(t,p){if(t&1){let e=x();o(0,"button",22),w("click",function(){m(e);let i=h();return c(i.onNewDownload())}),S(1,"i",23),s(2," New "),a()}}function xt(t,p){t&1&&(S(0,"i",24),o(1,"span"),s(2,"Filter"),a())}function Dt(t,p){t&1&&(S(0,"i",25),o(1,"span"),s(2,"Preview"),a())}function Tt(t,p){if(t&1){let e=x();O(0),o(1,"preview-step",26),w("onExportOrders",function(){m(e);let i=h();return c(i.onExportOrders())}),a(),N()}if(t&2){let e=p.ngIf;r(),d("orderPreview",e)}}function bt(t,p){t&1&&(S(0,"i",27),o(1,"span"),s(2,"Finish"),a())}function Et(t,p){if(t&1&&(O(0),S(1,"complete-step",28),N()),t&2){let e=p.ngIf;r(),d("downloadResult",e)}}function Pt(t,p){t&1&&(o(0,"h6"),s(1,"1"),a())}function It(t,p){t&1&&(o(0,"h6"),s(1,"2"),a())}function Mt(t,p){t&1&&(o(0,"h6"),s(1,"3"),a())}var Ui=(()=>{class t{constructor(){this.downloadService=v(A),this.orderService=v(ie),this.productService=v(Be),this.authService=v(ee),this.stepperSelectedIndex=_(0),this.disabledNextFilter=_(!0),this.isResetFilter=_(!1),this.pageTitle=_("Download to POS"),this.cacheKey=_(y.GuidEMpty)}onFilterChange(e){this.filter=e,this.validateDisabledNext()}validateDisabledNext(){this.disabledNextFilter.update(()=>y.IsEmpty(this.filter?.channelId)||!y.isValidDate(this.filter.startDate)||!y.isValidDate(this.filter.endDate))}onNextStep(){switch(this.stepper.selectedIndex){case 0:this.onPreview();let e=this.productService.findChannelById(this.filter.channelId,this.authService.getChannels());this.setPageTitle(`Preview ${e?.Name}`);break;case 1:this.onDownload(),this.setPageTitle("Download");break}}onStepperNext(){this.stepper.selected.completed=!0,this.stepper.next()}onPreview(){let e={ID:this.filter.channelId,From:this.filter.startDate,To:this.filter.endDate,IsDisbursement:this.filter.downloadType};y.IsNotEmpty(this.filter.startTime)&&(e=oe(ae({},e),{TimeFrom:this.filter.startTime+":00",TimeTo:this.filter.endTime+":00"})),this.orderPreview$=this.downloadService.onPreviewOrder(e).pipe(Y(n=>{n.Data?.length>0&&(this.cacheKey.update(()=>n.CacheKey),this.onStepperNext())}),G(n=>n.Data),z(1))}onExportOrders(){let e={ID:this.filter.channelId,From:this.filter.startDate?this.filter.startDate:null,To:this.filter.endDate?this.filter.endDate:null},n=`Orders ${this.downloadService.getDateTitle(this.filter.startDate,this.filter.endDate)}`;this.orderService.exportOrders(e,n).subscribe()}onDownload(){let e={ID:this.filter.channelId,From:this.filter.startDate,To:this.filter.endDate,ListPreview:[],IsDisbursement:this.filter.downloadType,CacheKey:this.cacheKey()};this.downloadPreview$=this.orderPreview$.pipe(le(n=>(e.ListPreview=n,this.downloadService.getDownloadOrder(e))),Y(()=>{this.onStepperNext()}),z(1))}setPageTitle(e){this.pageTitle.update(()=>`
|
|
3
|
+
${e} (${this.downloadService.getDateTitle(this.filter.startDate,this.filter.endDate)})
|
|
4
|
+
`)}onStepperBack(){this.stepper.previous(),this.pageTitle.update(()=>"Download to POS")}onNewDownload(){this.isResetFilter.update(()=>!0),this.stepper.reset(),this.stepperSelectedIndex.update(()=>0),this.orderPreview$=null,this.downloadPreview$=null,this.pageTitle.update(()=>"Download to POS")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=I({type:t,selectors:[["app-download-v2"]],viewQuery:function(n,i){if(n&1&&ce(St,5),n&2){let l;he(l=ue())&&(i.stepper=l.first)}},features:[K([A,ie,{provide:Ue,useValue:{displayDefaultIndicatorType:!1}}])],decls:26,vars:20,consts:[["stepper",""],[3,"hideSearchBox","hideSearchDropdown","headerTitle","description"],[1,"btn-group","me-3"],["type","button",1,"btn","btn-outline-secondary","btn-fill","me-3","bg-success","text-white",3,"disabled"],[1,"btn","btn-outline-secondary","btn-fill"],[1,"container-fluid","pt-5","mt-5"],[1,"row"],[1,"col-12"],[1,"d-flex","justify-content-center"],["linear","",1,"w-100","stepper-download",3,"selectedIndexChange","ngClass","selectedIndex"],["state","filter",3,"completed","editable"],["matStepLabel",""],[1,"w-100",3,"onFilterChange","reset"],["state","preview",3,"editable","completed"],[4,"ngIf"],["state","finish"],["matStepperIcon","filter"],["matStepperIcon","preview"],["matStepperIcon","finish"],[1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-outline-secondary","bg-success","text-white",3,"click","disabled"],["type","button",1,"btn","btn-outline-secondary","btn-fill","me-3","bg-success","text-white",3,"click","disabled"],[1,"btn","btn-outline-secondary","btn-fill",3,"click"],["aria-hidden","true",1,"fa","fa-file-alt","me-2"],[1,"fa-solid","fa-filter","me-3"],[1,"fa-solid","fa-file","me-3"],[3,"onExportOrders","orderPreview"],[1,"fa-solid","fa-flag","me-3"],[3,"downloadResult"]],template:function(n,i){if(n&1){let l=x();o(0,"mainpanel",1)(1,"actions"),g(2,Ct,5,1,"div",2)(3,vt,2,1,"button",3)(4,yt,3,0,"button",4),a(),o(5,"content")(6,"div",5)(7,"div",6)(8,"div",7)(9,"div",8)(10,"mat-stepper",9,0),P("selectedIndexChange",function(f){return m(l),E(i.stepperSelectedIndex,f)||(i.stepperSelectedIndex=f),c(f)}),o(12,"mat-step",10),g(13,xt,3,0,"ng-template",11),o(14,"filter-step",12),w("onFilterChange",function(f){return m(l),c(i.onFilterChange(f))}),a()(),o(15,"mat-step",13),g(16,Dt,3,0,"ng-template",11)(17,Tt,2,1,"ng-container",14),R(18,"async"),a(),o(19,"mat-step",15),g(20,bt,3,0,"ng-template",11)(21,Et,2,1,"ng-container",14),R(22,"async"),a(),g(23,Pt,2,0,"ng-template",16)(24,It,2,0,"ng-template",17)(25,Mt,2,0,"ng-template",18),a()()()()()()()}if(n&2){let l=T(11);d("hideSearchBox",!0)("hideSearchDropdown",!0)("headerTitle",i.pageTitle())("description",i.pageTitle()),r(2),M(i.stepperSelectedIndex()==1?2:-1),r(),M(i.stepperSelectedIndex()==0?3:-1),r(),M(i.stepperSelectedIndex()==2?4:-1),r(6),de("ngClass","last-edited-step-"+l.selectedIndex),b("selectedIndex",i.stepperSelectedIndex),r(2),d("completed",!1)("editable",i.stepperSelectedIndex()!=2),r(2),d("reset",i.isResetFilter()),r(),d("editable",i.stepperSelectedIndex()!=2)("completed",!1),r(2),d("ngIf",U(18,16,i.orderPreview$)),r(4),d("ngIf",U(22,18,i.downloadPreview$))}},dependencies:[F,W,L,q,Je,Xe,Ze,Qe,Ke,Ge,He,je,ke,Fe,we],styles:[`@import"https://fonts.googleapis.com/icon?family=Material+Icons";.vertical-radio{display:flex;flex-direction:column;margin:15px 0}.mt-1rem{margin-top:1rem}.dateRange{padding-top:.8rem;padding-bottom:.8rem}mat-stepper.stepper-download>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-stepper-header-container{position:relative;width:60%;left:18%}mat-stepper.stepper-download>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-content-container>div.mat-horizontal-stepper-content:nth-child(1){display:flex;justify-content:left}mat-stepper.stepper-download>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-content-container{margin-top:30px}mat-stepper.stepper-download>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-stepper-header-container>mat-step-header.mat-horizontal-stepper-header{pointer-events:none!important}.form-label-group.radio.download-type{height:45.5938px!important;border-radius:.375rem!important}
|
|
5
|
+
`],encapsulation:2})}}return t})();export{Ui as DownloadV2Component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as j,b as q}from"./chunk-AGRVVEIR.js";import{a as V}from"./chunk-4CTORK4F.js";import{ia as $}from"./chunk-AVEGIEYT.js";import{b as s,c as a}from"./chunk-PW42BQIY.js";import{a as I,h as R,m as A,z as D}from"./chunk-CSSG7NAJ.js";import{a as F}from"./chunk-MZI5AYCE.js";import{r as U,s as W}from"./chunk-HFKKITEW.js";import{j as O,n as z}from"./chunk-MTUIRWOB.js";import{$c as E,Ga as _,Gb as w,Gc as y,Ic as M,Ka as T,Kc as v,Lc as L,Mb as g,Mc as P,Oa as h,Qc as B,Ra as c,Yb as d,Z as b,ad as x,dc as k,ia as S,ic as u,jc as r,pa as m,rb as p,tc as f,uc as N,v as C}from"./chunk-JS55A2RS.js";function J(n,G){if(n&1&&(u(0,"div",4),y(1),r()),n&2){let e=N();p(),M(" ",e.selectedCategoryLabel()," ")}}function K(n,G){n&1&&(u(0,"label",3),y(1,"Channel"),r())}var he=(()=>{class n{constructor(){this.multiwarehousTreeService=m(V),this.destroyRef=m(_),this.selectedCategoryLabel=c("Select a Channel"),this.disabled=c(!1),this.selectedNode=c(null),this.multiple=h(!1),this.floatingLabel=h(!1),this.onChannelChange=new T,this.channels$=this.multiwarehousTreeService.getChannelTree$().pipe(C(e=>e.map(t=>{t.children=t.children.map(i=>(i.icon="fa-solid fa-warehouse",i));let o=this.getChannelType(t.typeid);return t.icon=`custom-icon-${o}`,t.expandedIcon=null,t.collapsedIcon=null,t.styleClass=`custom-icon-${o}`,t.logo=a.getChannelLogoByTypeId(t.typeId),t})),b(1)),this.htmlBody=document.querySelector("body"),this.onChange=e=>{},this.onTouched=()=>{}}getChannelType(e){switch(e){case s.Tokopedia:return"tokopedia";case s.Shopee:return"shopee";case s.Lazada:return"lazada";case s.Shopify:return"shopify";case s.WooCommerce:return"woocommerce";case s.Tiktok:return"tiktok";case s.Plugo:return"plugo"}}initSelectedNode(e){this.channels$.pipe(F(this.destroyRef)).subscribe(t=>{if(this.multiple()){let o=[];for(let i of e){let l=a.searchByIdWithParentDFS(t,i),H=Object.assign({},l);o.push(H)}this.selectedNode.set(o),this.emitMultipleNodes()}else{let o=a.searchByIdWithParentDFS(t,e),i=Object.assign({},o);this.selectedNode.set(i),this.emitSingleNode(i)}})}onNodeSelect(e){let t=Object.assign({},e.node);this.multiple()?this.emitMultipleNodes():this.emitSingleNode(t)}emitMultipleNodes(){let e=Object.assign([],this.selectedNode()),t=e.map(o=>o.id);this.onChange(t),this.onChannelChange.emit(e),this.generateLabel()}emitSingleNode(e){this.onChange(e.id),this.onChannelChange.emit(e),this.generateLabel()}onNodeUnSelect(e){if(this.multiple()){let t=e.node;this.selectedNode.update(o=>o.filter(i=>i.id!==t.id)),this.emitMultipleNodes(),this.generateLabel()}}generateLabel(){let e="Select a Channel";if(this.multiple()){e="";for(let t of this.selectedNode())e+=a.getLabelPathTree(t)+", ";this.selectedCategoryLabel.set(e)}else{let t=this.selectedNode();t?(e=a.getLabelPathTree(t),this.selectedCategoryLabel.set(e)):this.selectedCategoryLabel.set(e)}}onClear(){this.onChange(null)}onClick(){let e=this.getBodyTop(),t=document.querySelector(".p-overlay.p-component"),o=e+t.getBoundingClientRect().top,i=t.getAttribute("style")||"";t.setAttribute("style",`${i} top: ${o+e}px;`)}getBodyTop(){return this.htmlBody.getBoundingClientRect().top*-1}writeValue(e){a.IsNotEmpty(e)&&this.initSelectedNode(e)}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled.set(e)}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275cmp=w({type:n,selectors:[["multiwarehouse-tree-select"]],inputs:{multiple:[1,"multiple"],floatingLabel:[1,"floatingLabel"]},outputs:{onChannelChange:"onChannelChange"},features:[B([{provide:I,useExisting:S(()=>n),multi:!0}])],decls:5,vars:9,consts:[["matTooltipPosition","above",1,"p-float-label",3,"matTooltip"],["appendTo","body","containerStyleClass","w-100","id","selectChannel",1,"multiwarehouse-select",3,"click","onNodeSelect","ngModelChange","onClear","onNodeUnselect","filter","filterInputAutoFocus","options","ngModel","selectionMode"],["pTemplate","value","type","default"],["for","selectChannel"],["matTooltipPosition","above"]],template:function(t,o){t&1&&(u(0,"span",0)(1,"p-treeSelect",1),E(2,"async"),f("click",function(){return o.onClick()})("onNodeSelect",function(l){return o.onNodeSelect(l)}),P("ngModelChange",function(l){return L(o.selectedNode,l)||(o.selectedNode=l),l}),f("onClear",function(){return o.onClear()})("onNodeUnselect",function(l){return o.onNodeUnSelect(l)}),g(3,J,2,1,"ng-template",2),r(),g(4,K,2,0,"label",3),r()),t&2&&(d("matTooltip",o.selectedCategoryLabel()),p(),d("filter",!0)("filterInputAutoFocus",!0)("options",x(2,7,o.channels$)),v("ngModel",o.selectedNode),d("selectionMode",o.multiple()?"multiple":"single"),p(3),k(o.floatingLabel()?4:-1))},dependencies:[z,O,q,j,$,D,R,A,W,U],styles:["[_nghost-%COMP%] .p-treeselect{width:100%;display:inline-flex;border:1px solid #ced4da;font-size:.875rem!important} .p-element .p-icon-wrapper{width:14px} .p-float-label .multiwarehouse-select.p-treeselect{padding:7px!important;min-height:.6rem!important} .custom-icon-tokopedia.p-tree-node-icon, .custom-icon-shopee.p-tree-node-icon, .custom-icon-woocommerce.p-tree-node-icon, .custom-icon-lazada.p-tree-node-icon, .custom-icon-tiktok.p-tree-node-icon, .custom-icon-shopify.p-tree-node-icon, .custom-icon-plugo.p-tree-node-icon{background-size:contain;background-repeat:no-repeat;width:20px;height:20px;display:inline-block} .custom-icon-tokopedia.p-tree-node-icon{background-image:url(https://res.cloudinary.com/pos/image/upload/v1598262221/icons/marketplace_icons/tokopedia.png)} .custom-icon-woocommerce.p-tree-node-icon{background-image:url(https://res.cloudinary.com/pos/image/upload/w_50/v1632447439/icons/WooCommerce/woocommerce-icon.webp)} .custom-icon-shopee.p-tree-node-icon{background-image:url(https://res.cloudinary.com/pos/image/upload/v1598262220/icons/marketplace_icons/shopee.png)} .custom-icon-tiktok.p-tree-node-icon{background-image:url(https://res.cloudinary.com/pos/image/upload/w_30/v1645761611/icons/Marketplace%20logo/tiktok.png)} .custom-icon-lazada.p-tree-node-icon{background-image:url(https://res.cloudinary.com/pos/image/upload/v1680681836/icons/marketplace_icons/Lazadanew.png)} .custom-icon-shopify.p-tree-node-icon{background-image:url(https://res.cloudinary.com/pos/image/upload/v1707987435/icons/marketplace_icons/shopify.png)} .custom-icon-plugo.p-tree-node-icon{background-image:url(https://res.cloudinary.com/pos/image/upload/v1739236419/icons/marketplace_icons/plugo.ico)} .custom-icon-shopee .fa-warehouse.p-tree-node-icon, .custom-icon-tiktok .fa-warehouse.p-tree-node-icon, .custom-icon-tokopedia .fa-warehouse.p-tree-node-icon, .custom-icon-lazada .fa-warehouse.p-tree-node-icon, .custom-icon-shopify .fa-warehouse.p-tree-node-icon, .custom-icon-woocommerce .fa-warehouse.p-tree-node-icon, .custom-icon-plugo .fa-warehouse.p-tree-node-icon{background-image:none!important;display:inline-block!important}"]})}}return n})();export{he as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as u,b as l}from"./chunk-TNKPTRB3.js";import"./chunk-UJYSVGLV.js";import"./chunk-HFKKITEW.js";import"./chunk-OZ77CAJD.js";import{F as i,J as m}from"./chunk-MTUIRWOB.js";import{Gb as r,Yb as s,ic as p,jc as a,kc as o,rb as n}from"./chunk-JS55A2RS.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var f=(()=>{class e{constructor(){this.tabs=[{Title:"Users",Url:"/menu/users/users",Description:""},{Title:"Groups",Url:"/menu/users/groups",Description:""}]}static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275cmp=r({type:e,selectors:[["app-user-menu"]],decls:5,vars:2,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs","usePermissions"]],template:function(t,c){t&1&&(p(0,"nav",0)(1,"div",1)(2,"div"),o(3,"nav-tab",2),a()()(),o(4,"router-outlet")),t&2&&(n(3),s("Tabs",c.tabs)("usePermissions",!0))},dependencies:[l,u,m,i],encapsulation:2})}}return e})(),g=[{path:"",component:f,children:[{path:"users",loadComponent(){return import("./chunk-UDIAPGRB.js").then(e=>e.UsersComponent)},data:{title:"Users"}},{path:"users/form",loadComponent(){return import("./chunk-AZ2FLWCK.js").then(e=>e.UserFormComponent)},data:{title:"Users Form"}},{path:"users/info",loadComponent(){return import("./chunk-TGN4NMQY.js").then(e=>e.UserInfoComponent)},data:{title:"Users Info"}},{path:"groups",loadComponent(){return import("./chunk-JRXB6762.js").then(e=>e.GroupsComponent)},data:{title:"Groups"}},{path:"groups/form",loadComponent(){return import("./chunk-OTFACGUB.js").then(e=>e.GroupsFormComponent)},data:{title:"Groups Form"}},{path:"groups/info",loadComponent(){return import("./chunk-IUWXRFDI.js").then(e=>e.GroupInfoComponent)},data:{title:"Groups Info"}},{path:"",pathMatch:"full",redirectTo:"users"}]}];export{f as UserMenuComponent,g as userRoutes};
|