marketplacepos 5.48.0 → 5.48.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Marketplace/3rdpartylicenses.txt +26 -26
- package/Marketplace/{chunk-222IOSGU.js → chunk-2F4DTZCZ.js} +1 -1
- package/Marketplace/{chunk-3LU2SFN4.js → chunk-2IASUYTM.js} +1 -1
- package/Marketplace/chunk-2USFVKEX.js +1 -0
- package/Marketplace/chunk-36U7D4LI.js +1 -0
- package/Marketplace/chunk-3JYZF65T.js +1 -0
- package/Marketplace/chunk-3K2EKA5O.js +1 -0
- package/Marketplace/{chunk-ZV7EHPNJ.js → chunk-3L7Y6LG6.js} +1 -1
- package/Marketplace/chunk-4JDI3AL5.js +1 -0
- package/Marketplace/{chunk-5YBWBAQS.js → chunk-4YCSITNV.js} +1 -1
- package/Marketplace/{chunk-55BTWXFX.js → chunk-5BSPSA4O.js} +1 -1
- package/Marketplace/chunk-5CHTDUME.js +1 -0
- package/Marketplace/chunk-5KYN6Y7M.js +1 -0
- package/Marketplace/{chunk-56BH43Y7.js → chunk-5X2E3W32.js} +1 -1
- package/Marketplace/{chunk-WW7F6LSG.js → chunk-5X2L45XK.js} +1 -1
- package/Marketplace/chunk-6EORXONU.js +4 -0
- package/Marketplace/{chunk-34UF36YY.js → chunk-6OIMOM7S.js} +1 -1
- package/Marketplace/{chunk-J2BPOHP6.js → chunk-6OJQRHIZ.js} +1 -1
- package/Marketplace/{chunk-ZAUKG4R6.js → chunk-6PW6S7MI.js} +1 -1
- package/Marketplace/chunk-6XDT56RT.js +2 -0
- package/Marketplace/{chunk-JOKDW6WD.js → chunk-7DT7FQ2T.js} +1 -1
- package/Marketplace/{chunk-KKB4B7FU.js → chunk-7GY4O2UX.js} +3 -3
- package/Marketplace/chunk-7SB4C4PT.js +1 -0
- package/Marketplace/chunk-A7PUMY67.js +1 -0
- package/Marketplace/chunk-ADKAX3OO.js +1 -0
- package/Marketplace/chunk-AEVLZ7NS.js +1 -0
- package/Marketplace/{chunk-NECWUPZQ.js → chunk-AFIF6VRM.js} +1 -1
- package/Marketplace/chunk-AGBJEXIM.js +1 -0
- package/Marketplace/chunk-ALPG22RQ.js +1 -0
- package/Marketplace/{chunk-DRTRU4DB.js → chunk-B6F5PDL5.js} +1 -1
- package/Marketplace/{chunk-HERBJRWM.js → chunk-BXYXVBXP.js} +1 -1
- package/Marketplace/{chunk-KWNXPX2M.js → chunk-C6JHPCLF.js} +1 -1
- package/Marketplace/{chunk-B4QCGMST.js → chunk-C7N6EI73.js} +1 -1
- package/Marketplace/{chunk-PQEXTCFW.js → chunk-CAZ7U2IL.js} +10 -10
- package/Marketplace/chunk-CBU473N2.js +1 -0
- package/Marketplace/{chunk-UNGNRJ2B.js → chunk-CLQGGKN6.js} +1 -1
- package/Marketplace/chunk-CT6UFONR.js +1 -0
- package/Marketplace/{chunk-IO2TWJDO.js → chunk-DAUML5UD.js} +1 -1
- package/Marketplace/chunk-DH5CXAEM.js +1 -0
- package/Marketplace/chunk-DHPNXR6E.js +1 -0
- package/Marketplace/chunk-DTAHV4GM.js +1 -0
- package/Marketplace/{chunk-MQXW3UAW.js → chunk-DXYMG6QK.js} +1 -1
- package/Marketplace/chunk-E3EBAWLJ.js +1 -0
- package/Marketplace/chunk-E66QUDQF.js +1 -0
- package/Marketplace/chunk-E6ZWL77N.js +1 -0
- package/Marketplace/chunk-EDEZ3JLR.js +4 -0
- package/Marketplace/{chunk-OROFEDQN.js → chunk-FCEXPGTK.js} +1 -1
- package/Marketplace/chunk-FCFCTT5A.js +1 -0
- package/Marketplace/chunk-FHER4TFY.js +1 -0
- package/Marketplace/{chunk-VZSHSSQZ.js → chunk-FKGKMEDE.js} +1 -1
- package/Marketplace/chunk-FRZCC6KZ.js +1 -0
- package/Marketplace/chunk-GG3MDS4C.js +1 -0
- package/Marketplace/{chunk-ONU4O7N2.js → chunk-GPHNPV7O.js} +1 -1
- package/Marketplace/{chunk-J7FL3VT4.js → chunk-GURSK3ZV.js} +1 -1
- package/Marketplace/{chunk-N3WBRUNI.js → chunk-GVI6GJHY.js} +1 -1
- package/Marketplace/chunk-GX6JPDQ5.js +1 -0
- package/Marketplace/chunk-H7GV5SNI.js +5 -0
- package/Marketplace/{chunk-S32PEKW5.js → chunk-HKHNRMPT.js} +1 -1
- package/Marketplace/{chunk-5O33CV4F.js → chunk-I723PUUO.js} +1 -1
- package/Marketplace/{chunk-PGR6BEOA.js → chunk-I7C6W3RB.js} +1 -1
- package/Marketplace/{chunk-R6SCDZGW.js → chunk-IDH7MCR3.js} +1 -1
- package/Marketplace/chunk-ILW6ZFFV.js +1 -0
- package/Marketplace/chunk-J6BQDYXO.js +1 -0
- package/Marketplace/{chunk-TCWEUEBR.js → chunk-J6CZKQ53.js} +1 -1
- package/Marketplace/chunk-JBEKD57G.js +1 -0
- package/Marketplace/{chunk-G6P2UZU4.js → chunk-JW7NES7L.js} +1 -1
- package/Marketplace/{chunk-O4HOLA7Y.js → chunk-KSVJCX2D.js} +1 -1
- package/Marketplace/chunk-KVDREHOE.js +1 -0
- package/Marketplace/chunk-KZSTYKIP.js +1 -0
- package/Marketplace/{chunk-76CPUGUB.js → chunk-L76NLJD7.js} +2 -2
- package/Marketplace/{chunk-XBDQR2BA.js → chunk-LABF6W37.js} +1 -1
- package/Marketplace/{chunk-MAMCOUZ6.js → chunk-M2BYW5SR.js} +1 -1
- package/Marketplace/{chunk-P6TDS7UT.js → chunk-M65Z55OS.js} +1 -1
- package/Marketplace/chunk-MKADKY44.js +2 -0
- package/Marketplace/{chunk-NYJPPKGX.js → chunk-NCKPMA6Q.js} +1 -1
- package/Marketplace/{chunk-TDCMI7YC.js → chunk-O2YF5VGD.js} +1 -1
- package/Marketplace/chunk-O4EO3YBL.js +1 -0
- package/Marketplace/{chunk-Y6WFE3L2.js → chunk-OBF4XVU7.js} +1 -1
- package/Marketplace/chunk-PDCVMSLL.js +1 -0
- package/Marketplace/chunk-PLLHTY6O.js +15 -0
- package/Marketplace/chunk-PMVDQ2OP.js +1 -0
- package/Marketplace/chunk-PZKN5FIT.js +1 -0
- package/Marketplace/chunk-Q4TAOZ73.js +1 -0
- package/Marketplace/chunk-QCV5XC3U.js +266 -0
- package/Marketplace/{chunk-GV3NEJJ6.js → chunk-QFSA7CU4.js} +1 -1
- package/Marketplace/{chunk-XUBQATMN.js → chunk-R2XT5M5F.js} +1 -1
- package/Marketplace/chunk-RCBY7EIY.js +1 -0
- package/Marketplace/{chunk-J5BZDPXE.js → chunk-RQQWNLDZ.js} +1 -1
- package/Marketplace/chunk-S5R6MCNP.js +5 -0
- package/Marketplace/{chunk-RJFFTIAO.js → chunk-S7CKRTJV.js} +1 -1
- package/Marketplace/{chunk-PZB3GQWT.js → chunk-SHUYFOQI.js} +1 -1
- package/Marketplace/{chunk-SILAIDPV.js → chunk-STYL7ETF.js} +1 -1
- package/Marketplace/{chunk-E7FHMF3J.js → chunk-SZVL42NR.js} +1 -1
- package/Marketplace/chunk-T7HRAMHR.js +1 -0
- package/Marketplace/chunk-TIIGDXIJ.js +2 -0
- package/Marketplace/{chunk-CEXUETT6.js → chunk-TJYYRHZZ.js} +1 -1
- package/Marketplace/{chunk-DYQ3BWPB.js → chunk-TXOZULMZ.js} +1 -1
- package/Marketplace/chunk-TYQY4WPY.js +1 -0
- package/Marketplace/chunk-UBTALPOC.js +2 -0
- package/Marketplace/{chunk-6XT3JSG5.js → chunk-UCEZJNIL.js} +1 -1
- package/Marketplace/chunk-VWX2IX64.js +1 -0
- package/Marketplace/{chunk-W7YZT7CH.js → chunk-VYQD3A3M.js} +1 -1
- package/Marketplace/{chunk-37NOSLQL.js → chunk-WHHW4IZT.js} +1 -1
- package/Marketplace/{chunk-74JHI4MS.js → chunk-WNUTNP6I.js} +1 -1
- package/Marketplace/{chunk-DQOO5YZC.js → chunk-WRK3ZHRX.js} +1 -1
- package/Marketplace/chunk-X6COQADC.js +1 -0
- package/Marketplace/{chunk-7Y2L4CNS.js → chunk-XDBH7EGC.js} +1 -1
- package/Marketplace/chunk-XK4RP5MQ.js +1 -0
- package/Marketplace/{chunk-3I2V337G.js → chunk-XLIPGDSC.js} +1 -1
- package/Marketplace/chunk-Y77WYZ6Y.js +5 -0
- package/Marketplace/{chunk-NLSVMXR7.js → chunk-ZKIO2ZQ6.js} +1 -1
- package/Marketplace/chunk-ZME22WYI.js +1 -0
- package/Marketplace/{chunk-A7YRNCQP.js → chunk-ZTHO6JJM.js} +1 -1
- package/Marketplace/chunk-ZUL6ZHSW.js +1 -0
- package/Marketplace/{chunk-UW3UCIOY.js → chunk-ZW2TMVZP.js} +1 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/main-YJKBQ3LW.js +1 -0
- package/Marketplace/{styles-3SQUCHWS.css → styles-ANCVZJP7.css} +1 -1
- package/package.json +1 -1
- package/Marketplace/chunk-2FSRCK7Y.js +0 -1
- package/Marketplace/chunk-2LCP6ZFH.js +0 -1
- package/Marketplace/chunk-3YDWTOSL.js +0 -1
- package/Marketplace/chunk-44URQXRM.js +0 -1
- package/Marketplace/chunk-465DKI6M.js +0 -1
- package/Marketplace/chunk-46IROEMV.js +0 -2
- package/Marketplace/chunk-4R746B4G.js +0 -1
- package/Marketplace/chunk-573EEV7X.js +0 -1
- package/Marketplace/chunk-5S7ONNKP.js +0 -1
- package/Marketplace/chunk-6ZEQRKBC.js +0 -1
- package/Marketplace/chunk-7HVOZWYY.js +0 -1
- package/Marketplace/chunk-7U32FNM2.js +0 -2
- package/Marketplace/chunk-7VRLCSNB.js +0 -1
- package/Marketplace/chunk-AL5RTE5M.js +0 -1
- package/Marketplace/chunk-AXC6LM6T.js +0 -1
- package/Marketplace/chunk-BHGEKKCM.js +0 -1
- package/Marketplace/chunk-BLHKSSK6.js +0 -1
- package/Marketplace/chunk-BXOHTPGP.js +0 -1
- package/Marketplace/chunk-CNTLG54D.js +0 -1
- package/Marketplace/chunk-DLXWO2XC.js +0 -1
- package/Marketplace/chunk-DPQMNLFO.js +0 -1
- package/Marketplace/chunk-E5JZCOHZ.js +0 -1
- package/Marketplace/chunk-EMLE4JDW.js +0 -1
- package/Marketplace/chunk-FFTZPZOW.js +0 -5
- package/Marketplace/chunk-FHZNWINZ.js +0 -1
- package/Marketplace/chunk-GLMM3CVD.js +0 -1
- package/Marketplace/chunk-GQCDEPDY.js +0 -1
- package/Marketplace/chunk-GZLXMT7F.js +0 -1
- package/Marketplace/chunk-HG4R6CUP.js +0 -1
- package/Marketplace/chunk-HU7LMMZJ.js +0 -1
- package/Marketplace/chunk-I3IA6MAD.js +0 -1
- package/Marketplace/chunk-IZZQQW5G.js +0 -5
- package/Marketplace/chunk-JLVWTKDH.js +0 -1
- package/Marketplace/chunk-JUO4RKIH.js +0 -1
- package/Marketplace/chunk-L2GMXVN6.js +0 -1
- package/Marketplace/chunk-M7U5T2ZP.js +0 -1
- package/Marketplace/chunk-MEER4VNV.js +0 -1
- package/Marketplace/chunk-N26QQL77.js +0 -1
- package/Marketplace/chunk-NOIKC7TF.js +0 -1
- package/Marketplace/chunk-ODQVHQPB.js +0 -15
- package/Marketplace/chunk-PE7QBBA6.js +0 -1
- package/Marketplace/chunk-PNUEO4J2.js +0 -1
- package/Marketplace/chunk-PS43OK3J.js +0 -1
- package/Marketplace/chunk-SNSROU6N.js +0 -1
- package/Marketplace/chunk-SUTHLGCO.js +0 -266
- package/Marketplace/chunk-TUJHFVOP.js +0 -1
- package/Marketplace/chunk-UI5ITL7Z.js +0 -4
- package/Marketplace/chunk-XFIUNEOU.js +0 -1
- package/Marketplace/chunk-XW2CGM4G.js +0 -5
- package/Marketplace/chunk-YJTPDV4D.js +0 -1
- package/Marketplace/chunk-YKEAAH3N.js +0 -2
- package/Marketplace/chunk-YTUPRTC2.js +0 -1
- package/Marketplace/chunk-ZS465QKM.js +0 -2
- package/Marketplace/main-NBCLYU5Y.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as q}from"./chunk-
|
|
1
|
+
import{a as q}from"./chunk-TXOZULMZ.js";import{a as ze}from"./chunk-63I3I3MX.js";import{d as Fe,e as xe}from"./chunk-6KWG6O5L.js";import{a as je,b as qe}from"./chunk-SJ5MC42H.js";import{a as Ae,b as Ge}from"./chunk-NWB7EVME.js";import"./chunk-AFDI4TD4.js";import{b as Pe,c as We}from"./chunk-4RG5YR7N.js";import"./chunk-5MV3UFJQ.js";import"./chunk-E6AMKEQR.js";import"./chunk-IGKMJFKP.js";import"./chunk-ITGVXYDV.js";import"./chunk-KJE5GRQ4.js";import"./chunk-4ILDFTIG.js";import"./chunk-M4ZE35XK.js";import"./chunk-L7WZ6U4T.js";import{c as Le,d as Qe,e as x,f as L}from"./chunk-LOWGZOML.js";import{V as ke,ja as Be,pa as Oe,qa as Ve,ra as O,sa as V}from"./chunk-5PMKN6PM.js";import"./chunk-AGBJEXIM.js";import{b as Ee}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import{c as F}from"./chunk-JBEKD57G.js";import{m as Re,n as Ie}from"./chunk-EDEZ3JLR.js";import{A as De,c as Se,h as Me,m as we}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import{v as Ne,w as Ue}from"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{D as be,F as ve,G as Ce,I as Te,c as fe,f as ge,h as _e,i as ye,m as B}from"./chunk-LNJUGHOX.js";import{$b as ae,$c as j,Ac as _,Cc as y,Dc as b,Gb as U,Ha as g,Hb as te,Kb as ne,Kc as pe,Lb as ie,Lc as v,Mb as u,Mc as c,Nc as M,Oa as Q,Oc as ce,Qc as w,Rc as D,Sc as E,Tc as me,Z as $,Zc as I,_c as k,aa as J,bc as oe,ea as K,ec as re,fc as le,gc as o,hc as s,hd as ue,ic as d,id as he,jc as se,lb as ee,ma as X,na as Y,nb as l,nc as A,oc as G,pa as Z,pc as S,qc as P,ra as f,v as H,vc as W,xa as C,xc as h,ya as T,yc as de,zc as R}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var He=`
|
|
2
2
|
.p-card {
|
|
3
3
|
background: dt('card.background');
|
|
4
4
|
color: dt('card.color');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as pe,b as se,c as ue}from"./chunk-
|
|
1
|
+
import{a as pe,b as se,c as ue}from"./chunk-ILW6ZFFV.js";import{a as _e}from"./chunk-KZSTYKIP.js";import{a as A}from"./chunk-GVI6GJHY.js";import{a as ce}from"./chunk-S7CKRTJV.js";import{a as me}from"./chunk-7JQEF4XX.js";import"./chunk-AFIF6VRM.js";import"./chunk-ZW2TMVZP.js";import"./chunk-ZTHO6JJM.js";import"./chunk-SHUYFOQI.js";import"./chunk-FCEXPGTK.js";import"./chunk-QFSA7CU4.js";import"./chunk-OPXITNRF.js";import"./chunk-HPINZVE4.js";import"./chunk-D2J64VUP.js";import"./chunk-6Q6L5NUD.js";import"./chunk-C7N6EI73.js";import"./chunk-GPHNPV7O.js";import"./chunk-3RK6DDJD.js";import"./chunk-4YCSITNV.js";import"./chunk-WHHW4IZT.js";import"./chunk-N5AE5WMQ.js";import"./chunk-6OJQRHIZ.js";import{a as de}from"./chunk-5KYN6Y7M.js";import"./chunk-3JRUKSV3.js";import"./chunk-SJ5MC42H.js";import"./chunk-4RLWHMI6.js";import"./chunk-NWB7EVME.js";import{a as ae}from"./chunk-PDCVMSLL.js";import"./chunk-AFDI4TD4.js";import"./chunk-4RG5YR7N.js";import"./chunk-5MV3UFJQ.js";import"./chunk-E6AMKEQR.js";import"./chunk-IGKMJFKP.js";import"./chunk-ITGVXYDV.js";import"./chunk-HK5FXZE4.js";import"./chunk-KJE5GRQ4.js";import"./chunk-4ILDFTIG.js";import"./chunk-A6QXXKPR.js";import"./chunk-I723PUUO.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-M4ZE35XK.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import"./chunk-5PMKN6PM.js";import"./chunk-AGBJEXIM.js";import"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import"./chunk-JBEKD57G.js";import{m as le,n as oe}from"./chunk-EDEZ3JLR.js";import{A as ie,c as Z,h as $,m as ee,o as te}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import{v as ne,w as re}from"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{i as K,j as Q,l as X,m as Y}from"./chunk-LNJUGHOX.js";import{$b as y,$c as G,Gb as D,Ha as O,Lc as z,Mc as a,Nc as b,Oc as V,Qc as C,Rc as h,Sc as S,Tc as R,Uc as H,Vc as j,Z as N,Zc as U,_c as q,bc as x,cc as I,ec as B,fc as k,gc as _,hc as t,hd as w,ic as i,id as E,jc as f,jd as J,lb as W,nb as l,qc as M,ra as F,vc as T,xa as u,xc as g,ya as c}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import{a as P,b as L}from"./chunk-66YHNWRR.js";var fe=()=>[],ge=r=>({"td-cell-hover":r});function Ce(r,m){if(r&1&&f(0,"variants-dropdown",27),r&2){let e=g().$implicit;_("variants",e==null?null:e.Variants)}}function he(r,m){if(r&1&&f(0,"variant-with-image",28),r&2){let e=g().$implicit;_("variant",e==null?null:e.Variants[0])}}function Se(r,m){if(r&1&&(t(0,"span"),a(1),i()),r&2){let e=g().$implicit;l(),V("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function ve(r,m){if(r&1&&(t(0,"tr")(1,"td")(2,"div",23)(3,"div",24)(4,"div"),f(5,"img",25),w(6,"channelImage"),i(),t(7,"div"),f(8,"order-link",26),i()(),t(9,"small"),a(10),w(11,"date"),i()()(),t(12,"td"),a(13),i(),t(14,"td"),y(15,Ce,1,1,"variants-dropdown",27)(16,he,1,1,"variant-with-image",28),i(),t(17,"td"),a(18),w(19,"number"),i(),t(20,"td")(21,"div",23)(22,"div",24)(23,"span"),a(24),i(),y(25,Se,2,1,"span"),i(),t(26,"small"),a(27),i()()()()),r&2){let e=m.$implicit;l(5),_("src",E(6,12,e==null?null:e.MarketType),W)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),l(3),_("order",e),l(2),V(" ",J(11,14,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),l(3),b(e.Customer),l(),z(G(19,ge,(e.Variants==null?null:e.Variants.length)>1)),l(),x((e.Variants==null?null:e.Variants.length)>1?15:16),l(3),b(E(19,17,e.Amount)),l(6),b(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),l(),x(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?25:-1),l(2),V(" ",e.ReferenceNumber?e.ReferenceNumber:"-"," ")}}function we(r,m){if(r&1){let e=M();t(0,"div",15)(1,"table",17)(2,"thead",18)(3,"tr",19)(4,"th",20),a(5,"Number"),i(),t(6,"th",20),a(7,"Customer"),i(),t(8,"th"),a(9,"Items"),i(),t(10,"th",21),a(11,"Amount"),i(),t(12,"th",21),a(13,"Shipping"),i()()(),t(14,"tbody"),B(15,ve,28,21,"tr",null,I),i()(),t(17,"app-custom-paginator",22),T("next",function(){u(e);let p=g();return c(p.initAllOrders())})("previous",function(){u(e);let p=g();return c(p.initAllOrders())}),i()()}if(r&2){let e=g(),d=j(0);l(15),k(d),l(2),_("filter",e.filter())("totaldata",d==null?null:d.length)}}function ye(r,m){r&1&&(t(0,"div",16),f(1,"app-empty-state"),i())}var qe=(()=>{let m=class m{constructor(){this.orderService=F(A),this.filter=O({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null})}ngOnInit(){this.orderService.getOrderDefaultValue().subscribe({next:d=>{this.initFromDate(d)},error:d=>{console.error("Error fetching default date:",d),this.initFromDate(null)}})}initFromDate(d){this.filter.update(p=>L(P({},p),{From:d})),this.initAllOrders()}initAllOrders(){this.allOrders$=this.orderService.getAllOrders(this.filter()).pipe(N(1))}};m.\u0275fac=function(p){return new(p||m)},m.\u0275cmp=D({type:m,selectors:[["app-all"]],features:[U([A])],decls:34,vars:12,consts:[["headerTitle","Completed","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-2"],[1,"fa-solid","fa-clipboard-list","me-3"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[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","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","250px"],[2,"width","150px"],["rowCountApi","/api/orders/allcount",3,"next","previous","filter","totaldata"],[1,"lh-sm"],[1,"d-flex","align-items-end","gap-2"],[2,"width","14px","padding-bottom","2.5px",3,"src","alt"],[3,"order"],[3,"variants"],[3,"variant"]],template:function(p,o){if(p&1){let s=M();R(0),w(1,"async"),t(2,"mainpanel",0),T("onSubmit",function(){return u(s),c(o.initAllOrders())}),S("textChange",function(n){return u(s),h(o.filter().Number,n)||(o.filter().Number=n),c(n)}),t(3,"actions")(4,"a",1),f(5,"i",2),t(6,"span"),a(7,"Order Fulfillment Display"),i()()(),t(8,"filters")(9,"div")(10,"label",3),a(11,"Channel"),i(),t(12,"app-channel-options-v2",4),S("ngModelChange",function(n){return u(s),h(o.filter().ListChannelID,n)||(o.filter().ListChannelID=n),c(n)}),i()(),t(13,"div",5)(14,"label",3),a(15,"From/To"),i(),t(16,"div",6)(17,"datepicker",7),S("dateChange",function(n){return u(s),h(o.filter().From,n)||(o.filter().From=n),c(n)}),i()(),t(18,"div")(19,"datepicker",8),S("dateChange",function(n){return u(s),h(o.filter().To,n)||(o.filter().To=n),c(n)}),i()()(),t(20,"div",5)(21,"label",9),a(22,"Page Number"),i(),t(23,"input",10),S("ngModelChange",function(n){return u(s),h(o.filter().PageNumber,n)||(o.filter().PageNumber=n),c(n)}),i()(),t(24,"div",5)(25,"label",9),a(26,"Page Size"),i(),t(27,"input",11),S("ngModelChange",function(n){return u(s),h(o.filter().PageSize,n)||(o.filter().PageSize=n),c(n)}),i()()(),t(28,"content")(29,"div",12)(30,"div",13)(31,"div",14),y(32,we,18,2,"div",15)(33,ye,2,0,"div",16),i()()()()()}if(p&2){let s=H(E(1,8,o.allOrders$)||q(11,fe));l(2),C("text",o.filter().Number),l(10),_("multiple",!0),C("ngModel",o.filter().ListChannelID),l(5),C("date",o.filter().From),l(2),C("date",o.filter().To),l(4),C("ngModel",o.filter().PageNumber),l(4),C("ngModel",o.filter().PageSize),l(5),x((s==null?null:s.length)>0?32:33)}},dependencies:[Y,oe,le,me,ae,ie,Z,te,$,ee,se,ue,ce,re,ne,_e,de,K,X,Q,pe],encapsulation:2});let r=m;return r})();export{qe as AllComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as Fe,b as Ie}from"./chunk-L76NLJD7.js";import{a as Ee,b as Ve,c as Ae}from"./chunk-ILW6ZFFV.js";import{a as Ne}from"./chunk-KZSTYKIP.js";import{a as j}from"./chunk-GVI6GJHY.js";import{a as De}from"./chunk-S7CKRTJV.js";import"./chunk-EYT2YJGK.js";import"./chunk-RNWHARPK.js";import{a as Le}from"./chunk-7JQEF4XX.js";import"./chunk-AFIF6VRM.js";import"./chunk-ZW2TMVZP.js";import"./chunk-ZTHO6JJM.js";import"./chunk-SHUYFOQI.js";import"./chunk-FCEXPGTK.js";import"./chunk-QFSA7CU4.js";import"./chunk-OPXITNRF.js";import"./chunk-HPINZVE4.js";import"./chunk-D2J64VUP.js";import"./chunk-6Q6L5NUD.js";import"./chunk-C7N6EI73.js";import"./chunk-GPHNPV7O.js";import"./chunk-3RK6DDJD.js";import"./chunk-4YCSITNV.js";import"./chunk-WHHW4IZT.js";import"./chunk-N5AE5WMQ.js";import"./chunk-6OJQRHIZ.js";import"./chunk-6KWG6O5L.js";import{a as Pe}from"./chunk-5KYN6Y7M.js";import"./chunk-3JRUKSV3.js";import"./chunk-SJ5MC42H.js";import"./chunk-4RLWHMI6.js";import"./chunk-NWB7EVME.js";import{a as Me}from"./chunk-PDCVMSLL.js";import"./chunk-AFDI4TD4.js";import"./chunk-4RG5YR7N.js";import"./chunk-5MV3UFJQ.js";import"./chunk-E6AMKEQR.js";import"./chunk-IGKMJFKP.js";import"./chunk-ITGVXYDV.js";import"./chunk-HK5FXZE4.js";import"./chunk-KJE5GRQ4.js";import"./chunk-4ILDFTIG.js";import"./chunk-A6QXXKPR.js";import"./chunk-I723PUUO.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-M4ZE35XK.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import"./chunk-5PMKN6PM.js";import{a as x}from"./chunk-AGBJEXIM.js";import{b as P,e as z}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import{b as d,c as V}from"./chunk-JBEKD57G.js";import{b as Se,d as we,f as ve,g as ye,h as xe,m as ke,n as Te}from"./chunk-EDEZ3JLR.js";import{A as R,b as ge,c as fe,h as O,m as W,o as Ce}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import{v as _e,w as be}from"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{i as ce,j as de,l as ue,m as he}from"./chunk-LNJUGHOX.js";import{$b as k,$c as pe,Bc as te,Cc as ie,Dc as ne,G,Gb as D,Ha as B,Lc as oe,Mc as c,Nc as L,Oc as N,Qc as S,Rc as w,Sc as v,Tc as re,Uc as ae,Vc as F,Z as J,Zc as le,aa as X,bc as T,cc as Z,ec as $,fc as ee,gc as y,hc as o,hd as E,ic as r,id as I,jc as _,jd as se,lb as Y,ma as A,nb as m,od as me,qc as M,ra as C,v as K,vc as b,xa as h,xc as f,ya as g}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import{a as Q,b as q}from"./chunk-66YHNWRR.js";var Oe=(()=>{let l=class l{constructor(){this.http=C(z),this.toastr=C(P)}printTokopediaShippingLabel(e,t=!1){let i={OrderNumber:e,Printed:t};return this.http.post(x.TokopediaPrintShippingLabel,i)}printTiktokShippingLabel(e,t){let i={ShopID:t,OrderNumber:e};return this.http.post(x.TiktokPrintShippingLabel,i)}printShopeeShippingLabel(e,t){let i={ShopID:t,OrderNumber:e};return this.http.post(x.ShopeePrintShippingLabel,i).pipe(K(p=>(p&&(p.Number=e),p)))}printLazadaShippingLabel(e,t){let i={ShopID:t,OrderNumber:e};return this.http.post(x.LazadaPrintShippingLabel,i)}handleShippingLabelResponse(e,t){switch(t){case d.Tokopedia:let u=window.open("about:blank","_blank");u.document.write(e.File),u.document.close();break;case d.Tiktok:e.data!=null?window.open(e.data.doc_url,"_blank"):this.toastr.error("Cannot Print the Shipping Label,The invoice Number is not set to Pickup","Cannot Print");break;case d.Shopee:var i=Uint8Array.from(atob(e.File),s=>s.charCodeAt(0)),p=new Blob([i],{type:"octet/stream"});V.openDownloadFile(p,`${e?.Number}.pdf`);break;case d.Lazada:e?.result?.data!=null?window.open(e?.result?.data?.pdf_url,"_blank"):this.toastr.error(e.message,"Cannot Print");break}}};l.\u0275fac=function(t){return new(t||l)},l.\u0275prov=A({token:l,factory:l.\u0275fac,providedIn:"root"});let a=l;return a})();var We=(()=>{let l=class l{constructor(){this.dialogRef=C(Se),this.tandaiSudahDicetak=!1}onCancel(){this.dialogRef.close()}onPrint(){this.dialogRef.close(this.tandaiSudahDicetak?1:0)}};l.\u0275fac=function(t){return new(t||l)},l.\u0275cmp=D({type:l,selectors:[["app-print-tokopedia"]],decls:17,vars:1,consts:[[1,"container-fluid"],[1,"text-center","mb-4","fw-bold","mt-6"],[1,"row"],[1,"col-12"],[1,"fs-5"],[1,"d-flex","align-items-center","text-center","justify-content-center","mb-8"],[1,"me-2",3,"ngModelChange","ngModel"],[1,"fs-5","pt-1"],[1,"d-flex","align-items-center","justify-content-center"],[1,"btn","btn-light-blue","text-primary","btn-lg","fw-bold","mx-3",3,"click"],[1,"btn","btn-light-blue","me-6","text-primary","btn-lg","fw-bold","mx-3",3,"click"]],template:function(t,i){t&1&&(o(0,"div",0)(1,"h2",1),c(2,"Cetak label pesanan"),r(),o(3,"mat-dialog-content")(4,"div",2)(5,"div",3)(6,"p",4),c(7,"Kamu akan mencetak label yang berisi detail pesanan"),r(),o(8,"div",5)(9,"mat-checkbox",6),v("ngModelChange",function(u){return w(i.tandaiSudahDicetak,u)||(i.tandaiSudahDicetak=u),u}),r(),o(10,"span",7),c(11,'Pesanan telah ditandai sebagai "Sudah Dicetak"'),r()()()()(),o(12,"mat-dialog-actions",8)(13,"button",9),b("click",function(){return i.onCancel()}),c(14,"Cancel"),r(),o(15,"button",10),b("click",function(){return i.onPrint()}),c(16,"Cetak Pesanan"),r()()()),t&2&&(m(9),S("ngModel",i.tandaiSudahDicetak))},dependencies:[R,O,W,xe,ye,ve],encapsulation:2});let a=l;return a})();var U=(()=>{let l=class l{constructor(){this.httpService=C(z),this.shippingLabelService=C(Oe),this.toastrService=C(P),this.dialog=C(we)}printShippingLabel(e){switch(e?.MarketType){case d.Shopee:this.shippingLabelService.printShopeeShippingLabel(e.Number,e.ShopID).subscribe(t=>this.shippingLabelService.handleShippingLabelResponse(t,d.Shopee));break;case d.Tiktok:this.shippingLabelService.printTiktokShippingLabel(e.Number,e.ShopID).subscribe(t=>this.shippingLabelService.handleShippingLabelResponse(t,d.Tiktok));break;case d.Tokopedia:this.dialog.open(We).afterClosed().pipe(G(t=>V.IsNotEmpty(t)),X(t=>this.shippingLabelService.printTokopediaShippingLabel(e.Number,t))).subscribe(t=>this.shippingLabelService.handleShippingLabelResponse(t,d.Tokopedia));break;case d.Lazada:this.shippingLabelService.printLazadaShippingLabel(e.Number,e.ShopID).subscribe(t=>this.shippingLabelService.handleShippingLabelResponse(t,d.Lazada));break;case d.Shopify:this.toastrService.error("Shopify not supported","Error Not supported");break}}printMultipleShippingLabel(e){let t=e.map(p=>({OrderNumber:p.Number,ShopID:p.ShopID})),i="";switch(e[0]?.MarketType){case d.Shopee:i=x.ShopeePrintMultipleShippingLabel;break;case d.Tiktok:i=x.TiktokPrintMultipleShippingLabel;break;case d.Lazada:i=x.LazadaPrintMultipleShippingLabel;break}this.httpService.post(i,t).subscribe(p=>{var u=Uint8Array.from(atob(p.File),Re=>Re.charCodeAt(0)),s=new Blob([u],{type:"octet/stream"});V.openDownloadFile(s,`${p?.Name}.pdf`)})}};l.\u0275fac=function(t){return new(t||l)},l.\u0275prov=A({token:l,factory:l.\u0275fac});let a=l;return a})();var Be=["contextMenu"],je=a=>({"td-cell-hover":a});function He(a,l){if(a&1){let n=M();o(0,"button",20),b("click",function(){h(n);let t=f(),i=F(0);return g(t.onDowloadShippingLabel(i))}),_(1,"i",21),o(2,"span"),c(3,"Download Shipping Label"),r()()}}function Ue(a,l){if(a&1){let n=M();o(0,"input",45),v("ngModelChange",function(t){h(n);let i=f().$implicit;return w(i.selected,t)||(i.selected=t),g(t)}),b("ngModelChange",function(){h(n);let t=f(3),i=F(0);return g(t.onSelectOrders(i))}),r()}if(a&2){let n=f().$implicit,e=f(2);S("ngModel",n.selected),y("disabled",e.selectedChannelType()!=null&&e.selectedChannelType()!=n.MarketType)}}function Qe(a,l){if(a&1&&_(0,"variants-dropdown",38),a&2){let n=f().$implicit;y("variants",n==null?null:n.Variants)}}function qe(a,l){if(a&1&&_(0,"variant-with-image",39),a&2){let n=f().$implicit;y("variant",n==null?null:n.Variants[0])}}function Ke(a,l){if(a&1&&(o(0,"span"),c(1),r()),a&2){let n=f().$implicit;m(),N("(",n.LogisticService==null?null:n.LogisticService.Option,")")}}function Ge(a,l){if(a&1){let n=M();o(0,"button",46),b("click",function(){h(n);let t=f().$implicit,i=f(2);return g(i.onPrintShippingLabel(t))}),_(1,"i",47),r()}}function Je(a,l){if(a&1){let n=M();o(0,"tr")(1,"td"),k(2,Ue,1,2,"input",30),r(),o(3,"td")(4,"div",31),_(5,"img",32),E(6,"channelImage"),o(7,"div",33)(8,"div"),c(9),r(),o(10,"small",34)(11,"span"),c(12),r()()()()(),o(13,"td")(14,"div",35)(15,"div",36)(16,"div"),_(17,"order-link",37),r()(),o(18,"small"),c(19),E(20,"date"),r()()(),o(21,"td"),c(22),r(),o(23,"td"),k(24,Qe,1,1,"variants-dropdown",38)(25,qe,1,1,"variant-with-image",39),r(),o(26,"td",40),c(27),E(28,"number"),r(),o(29,"td",41),b("mouseenter",function(t){let i=h(n).$implicit,p=f(2);return g(p.onMouseEnter(t,i))}),o(30,"div",42)(31,"div",35)(32,"div",36)(33,"span"),c(34),r(),k(35,Ke,2,1,"span"),r(),o(36,"small"),c(37),r()()()(),o(38,"td",43),k(39,Ge,2,0,"button",44),r()()}if(a&2){let n=l.$implicit,e=f(2);m(2),T((n==null?null:n.MarketType)!=e.channelType.WooCommerce?2:-1),m(3),y("src",I(6,16,n==null?null:n.MarketType),Y)("alt",n==null||n.Variants[0]==null?null:n.Variants[0].Name),m(4),L(n.Outlet),m(3),L(n.ChannelName),m(5),y("order",n),m(2),N(" ",se(20,18,n==null?null:n.Created,"dd/MM/yyyy HH:mm:ss")," "),m(3),L(n.Customer),m(),oe(pe(23,je,(n.Variants==null?null:n.Variants.length)>1)),m(),T((n.Variants==null?null:n.Variants.length)>1?24:25),m(3),L(I(28,21,n.Amount)),m(7),L(n.LogisticService!=null&&n.LogisticService.Name?n.LogisticService==null?null:n.LogisticService.Name:"-"),m(),T(n.LogisticService!=null&&n.LogisticService.Option&&(n.LogisticService==null?null:n.LogisticService.Option)!="Default"?35:-1),m(2),N(" ",n.ReferenceNumber?n.ReferenceNumber:"-"," "),m(2),T((n==null?null:n.MarketType)!=e.channelType.WooCommerce?39:-1)}}function Xe(a,l){if(a&1){let n=M();o(0,"div",17)(1,"table",22)(2,"thead",23)(3,"tr",24),_(4,"th",25),o(5,"th",26),c(6,"Outlet"),r(),o(7,"th",26),c(8,"Number"),r(),o(9,"th",26),c(10,"Customer"),r(),o(11,"th"),c(12,"Items"),r(),o(13,"th",27),c(14,"Amount"),r(),o(15,"th",26),c(16,"Shipping"),r(),_(17,"th",28),r()(),o(18,"tbody"),$(19,Je,40,25,"tr",null,Z),r()(),o(21,"app-custom-paginator",29),b("next",function(){h(n);let t=f();return g(t.initAwaitingCollection())})("previous",function(){h(n);let t=f();return g(t.initAwaitingCollection())}),r()()}if(a&2){let n=f(),e=F(0);m(19),ee(e),m(2),y("filter",n.filter())("totaldata",e==null?null:e.length)}}function Ye(a,l){a&1&&(o(0,"div",18),_(1,"app-empty-state"),r())}var Yt=(()=>{let l=class l{constructor(){this.printShippingService=C(U),this.orderService=C(j),this.toastr=C(P),this.fulfillmentService=C(Fe),this.channelType=d,this.selectedOrders=B([]),this.selectedChannelType=me(()=>{let e=null;return this.selectedOrders().length>0&&(e=this.selectedOrders()[0].MarketType),e}),this.filter=B({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null}),this.contextMenuItems=[{id:"refresh",label:"Refresh Shipping",icon:"fa-solid fa-arrows-rotate"},{id:"fulfillment",label:"Set Fulfillment",icon:"fa-solid fa-truck"}]}ngOnInit(){this.orderService.getOrderDefaultValue().subscribe({next:e=>{this.initFromDate(e)},error:e=>{console.error("Error fetching default date:",e),this.initFromDate(null)}})}initFromDate(e){this.filter.update(t=>q(Q({},t),{From:e})),this.initAwaitingCollection()}initAwaitingCollection(){this.awaitingCollections$=this.orderService.getAwaitingCollectionOrders(this.filter()).pipe(J(1))}onPrintShippingLabel(e){this.printShippingService.printShippingLabel(e)}onSelectOrders(e){let t=e.filter(i=>i.selected);this.selectedOrders.set(t)}onDowloadShippingLabel(e){e=e.map(t=>(t.selected=!1,t)),this.printShippingService.printMultipleShippingLabel(this.selectedOrders()),this.selectedOrders.set([])}onSetFulfillment(e){this.fulfillmentService.setFulfillmentOrder(e).subscribe(()=>{this.toastr.success("Fulfillment set successfully","Success"),this.initAwaitingCollection()})}refreshShippingAndRefNumber(e){this.orderService.refreshShippingCourier(e.ShopID,e.Number).subscribe(()=>{this.toastr.success("Shipping courier and reference number refreshed","Success"),this.initAwaitingCollection()})}onMouseEnter(e,t){(!t.LogisticService?.Name||!t.ReferenceNumber)&&this.contextMenuEl.show(e,t)}onSelectContextItem(e){e.item?.id==="refresh"?this.refreshShippingAndRefNumber(e.data):this.onSetFulfillment(e.data)}};l.\u0275fac=function(t){return new(t||l)},l.\u0275cmp=D({type:l,selectors:[["app-awaiting-collection"]],viewQuery:function(t,i){if(t&1&&te(Be,5),t&2){let p;ie(p=ne())&&(i.contextMenuEl=p.first)}},features:[le([j,U])],decls:37,vars:13,consts:[["contextMenu",""],["headerTitle","Awaiting Collection","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],[1,"btn","btn-outline-secondary","shadow","rounded"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-3"],[1,"fa-regular","fa-tv","me-3"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[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","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[3,"onSelectItem","items"],[1,"btn","btn-outline-secondary","shadow","rounded",3,"click"],["aria-hidden","true",1,"fa-solid","fa-arrow-down-to-line","me-3"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","5px"],[2,"width","200px"],[1,"text-end",2,"width","100px"],[2,"width","50px"],["rowCountApi","/api/orders/awaitingcollectioncount",3,"next","previous","filter","totaldata"],["type","checkbox",3,"ngModel","disabled"],[1,"d-flex","align-items-center","gap-3"],[2,"width","20px","height","20px",3,"src","alt"],[1,"lh-base"],[1,"d-flex","align-items-center","gap-2"],[1,"lh-sm"],[1,"d-flex","align-items-end","gap-2"],[2,"font-size","14px",3,"order"],[3,"variants"],[3,"variant"],[1,"text-end"],[3,"mouseenter"],[1,"d-flex","align-items-center","gap-6"],[1,"text-end","td-cell-hover"],["type","button","aria-label","Print order","title","Print","matTooltip","Download shipping label",1,"btn","p-0","border-0","bg-transparent"],["type","checkbox",3,"ngModelChange","ngModel","disabled"],["type","button","aria-label","Print order","title","Print","matTooltip","Download shipping label",1,"btn","p-0","border-0","bg-transparent",3,"click"],["aria-hidden","true",1,"fa-solid","fa-arrow-down-to-line"]],template:function(t,i){if(t&1){let p=M();re(0),E(1,"async"),o(2,"mainpanel",1),b("onSubmit",function(){return h(p),g(i.initAwaitingCollection())}),v("textChange",function(s){return h(p),w(i.filter().Number,s)||(i.filter().Number=s),g(s)}),o(3,"actions"),k(4,He,4,0,"button",2),o(5,"a",3),_(6,"i",4),o(7,"span"),c(8,"Order Fulfillment Display"),r()()(),o(9,"filters")(10,"div")(11,"label",5),c(12,"Channel"),r(),o(13,"app-channel-options-v2",6),v("ngModelChange",function(s){return h(p),w(i.filter().ListChannelID,s)||(i.filter().ListChannelID=s),g(s)}),r()(),o(14,"div",7)(15,"label",5),c(16,"From/To"),r(),o(17,"div",8)(18,"datepicker",9),v("dateChange",function(s){return h(p),w(i.filter().From,s)||(i.filter().From=s),g(s)}),r()(),o(19,"div")(20,"datepicker",10),v("dateChange",function(s){return h(p),w(i.filter().To,s)||(i.filter().To=s),g(s)}),r()()(),o(21,"div",7)(22,"label",11),c(23,"Page Number"),r(),o(24,"input",12),v("ngModelChange",function(s){return h(p),w(i.filter().PageNumber,s)||(i.filter().PageNumber=s),g(s)}),r()(),o(25,"div",7)(26,"label",11),c(27,"Page Size"),r(),o(28,"input",13),v("ngModelChange",function(s){return h(p),w(i.filter().PageSize,s)||(i.filter().PageSize=s),g(s)}),r()()(),o(29,"content")(30,"div",14)(31,"div",15)(32,"div",16),k(33,Xe,22,2,"div",17)(34,Ye,2,0,"div",18),r()()()()(),o(35,"app-context-menu",19,0),b("onSelectItem",function(s){return h(p),g(i.onSelectContextItem(s))}),r()}if(t&2){let p=ae(I(1,10,i.awaitingCollections$));m(2),S("text",i.filter().Number),m(2),T(i.selectedOrders().length>0?4:-1),m(9),y("multiple",!0),S("ngModel",i.filter().ListChannelID),m(5),S("date",i.filter().From),m(2),S("date",i.filter().To),m(4),S("ngModel",i.filter().PageNumber),m(4),S("ngModel",i.filter().PageSize),m(5),T((p==null?null:p.length)>0?33:34),m(2),y("items",i.contextMenuItems)}},dependencies:[he,Te,ke,Le,Me,R,fe,Ce,ge,O,W,Ve,Ae,De,be,_e,Ne,Ie,Pe,ce,ue,de,Ee],encapsulation:2});let a=l;return a})();export{Yt as AwaitingCollectionComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as de,b as me,c as se}from"./chunk-
|
|
1
|
+
import{a as de,b as me,c as se}from"./chunk-ILW6ZFFV.js";import{a as ue}from"./chunk-KZSTYKIP.js";import{a as P}from"./chunk-GVI6GJHY.js";import{a as ce}from"./chunk-S7CKRTJV.js";import{a as le}from"./chunk-7JQEF4XX.js";import"./chunk-AFIF6VRM.js";import"./chunk-ZW2TMVZP.js";import"./chunk-ZTHO6JJM.js";import"./chunk-SHUYFOQI.js";import"./chunk-FCEXPGTK.js";import"./chunk-QFSA7CU4.js";import"./chunk-OPXITNRF.js";import"./chunk-HPINZVE4.js";import"./chunk-D2J64VUP.js";import"./chunk-6Q6L5NUD.js";import"./chunk-C7N6EI73.js";import"./chunk-GPHNPV7O.js";import"./chunk-3RK6DDJD.js";import"./chunk-4YCSITNV.js";import"./chunk-WHHW4IZT.js";import"./chunk-N5AE5WMQ.js";import"./chunk-6OJQRHIZ.js";import{a as pe}from"./chunk-5KYN6Y7M.js";import"./chunk-3JRUKSV3.js";import"./chunk-SJ5MC42H.js";import"./chunk-4RLWHMI6.js";import"./chunk-NWB7EVME.js";import{a as oe}from"./chunk-PDCVMSLL.js";import"./chunk-AFDI4TD4.js";import"./chunk-4RG5YR7N.js";import"./chunk-5MV3UFJQ.js";import"./chunk-E6AMKEQR.js";import"./chunk-IGKMJFKP.js";import"./chunk-ITGVXYDV.js";import"./chunk-HK5FXZE4.js";import"./chunk-KJE5GRQ4.js";import"./chunk-4ILDFTIG.js";import"./chunk-A6QXXKPR.js";import"./chunk-I723PUUO.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-M4ZE35XK.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import"./chunk-5PMKN6PM.js";import"./chunk-AGBJEXIM.js";import"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import"./chunk-JBEKD57G.js";import{m as re,n as ae}from"./chunk-EDEZ3JLR.js";import{A as te,c as Y,h as Z,m as $,o as ee}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import{v as ie,w as ne}from"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{i as J,j as K,l as Q,m as X}from"./chunk-LNJUGHOX.js";import{$b as y,$c as q,Gb as D,Ha as F,Lc as z,Mc as l,Nc as w,Oc as E,Qc as f,Rc as S,Sc as C,Tc as A,Uc as R,Vc as H,Zc as j,_c as U,bc as b,cc as I,ec as B,fc as k,gc as h,hc as t,hd as x,ic as i,id as V,jc as _,jd as G,lb as W,nb as r,qc as M,ra as O,vc as T,xa as s,xc as g,ya as c}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import{a as L,b as N}from"./chunk-66YHNWRR.js";var he=()=>[],_e=a=>({"td-cell-hover":a});function ge(a,p){if(a&1&&_(0,"variants-dropdown",31),a&2){let e=g().$implicit;h("variants",e==null?null:e.Variants)}}function fe(a,p){if(a&1&&_(0,"variant-with-image",32),a&2){let e=g().$implicit;h("variant",e==null?null:e.Variants[0])}}function Se(a,p){if(a&1&&(t(0,"span"),l(1),i()),a&2){let e=g().$implicit;r(),E("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function Ce(a,p){if(a&1&&(t(0,"tr")(1,"td")(2,"div",24),_(3,"img",25),x(4,"channelImage"),t(5,"div",26)(6,"div"),l(7),i(),t(8,"small",27)(9,"span"),l(10),i()()()()(),t(11,"td")(12,"div",28)(13,"div",29)(14,"div"),_(15,"order-link",30),i()(),t(16,"small"),l(17),x(18,"date"),i()()(),t(19,"td"),l(20),i(),t(21,"td"),y(22,ge,1,1,"variants-dropdown",31)(23,fe,1,1,"variant-with-image",32),i(),t(24,"td",33),l(25),x(26,"number"),i(),t(27,"td")(28,"div",28)(29,"div",29)(30,"span"),l(31),i(),y(32,Se,2,1,"span"),i(),t(33,"small"),l(34),i()()()()),a&2){let e=p.$implicit;r(3),h("src",V(4,14,e==null?null:e.MarketType),W)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),r(4),w(e.Outlet),r(3),w(e.ChannelName),r(5),h("order",e),r(2),E(" ",G(18,16,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),r(3),w(e.Customer),r(),z(q(21,_e,(e.Variants==null?null:e.Variants.length)>1)),r(),b((e.Variants==null?null:e.Variants.length)>1?22:23),r(3),w(V(26,19,e.Amount)),r(6),w(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),r(),b(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?32:-1),r(2),E(" ",e.ReferenceNumber?e.ReferenceNumber:"-"," ")}}function ve(a,p){if(a&1){let e=M();t(0,"div",15)(1,"table",17)(2,"thead",18)(3,"tr",19)(4,"th",20),l(5,"Outlet"),i(),t(6,"th",20),l(7,"Number"),i(),t(8,"th",20),l(9,"Customer"),i(),t(10,"th"),l(11,"Items"),i(),t(12,"th",21),l(13,"Amount"),i(),t(14,"th",22),l(15,"Shipping"),i()()(),t(16,"tbody"),B(17,Ce,35,23,"tr",null,I),i()(),t(19,"app-custom-paginator",23),T("next",function(){s(e);let m=g();return c(m.initShippedOrders())})("previous",function(){s(e);let m=g();return c(m.initShippedOrders())}),i()()}if(a&2){let e=g(),d=H(0);r(17),k(d),r(2),h("filter",e.filter())("totaldata",d==null?null:d.length)}}function we(a,p){a&1&&(t(0,"div",16),_(1,"app-empty-state"),i())}var je=(()=>{let p=class p{constructor(){this.orderService=O(P),this.filter=F({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null})}ngOnInit(){this.orderService.getOrderDefaultValue().subscribe({next:d=>{this.initFromDate(d)},error:d=>{console.error("Error fetching default date:",d),this.initFromDate(null)}})}initFromDate(d){this.filter.update(m=>N(L({},m),{From:d})),this.initShippedOrders()}initShippedOrders(){this.shippedOrders$=this.orderService.getShippedOrders(this.filter())}};p.\u0275fac=function(m){return new(m||p)},p.\u0275cmp=D({type:p,selectors:[["app-shipped"]],features:[j([P])],decls:34,vars:12,consts:[["headerTitle","Shipped","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-2"],[1,"fa-regular","fa-tv","me-3"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[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","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","200px"],[1,"text-end",2,"width","100px"],[2,"width","100px"],["rowCountApi","/api/orders/shippedcount",3,"next","previous","filter","totaldata"],[1,"d-flex","align-items-center","gap-3"],[2,"width","20px","height","20px",3,"src","alt"],[1,"lh-base"],[1,"d-flex","align-items-center","gap-2"],[1,"lh-sm"],[1,"d-flex","align-items-end","gap-2"],[2,"font-size","14px",3,"order"],[3,"variants"],[3,"variant"],[1,"text-end"]],template:function(m,o){if(m&1){let u=M();A(0),x(1,"async"),t(2,"mainpanel",0),T("onSubmit",function(){return s(u),c(o.initShippedOrders())}),C("textChange",function(n){return s(u),S(o.filter().Number,n)||(o.filter().Number=n),c(n)}),t(3,"actions")(4,"a",1),_(5,"i",2),t(6,"span"),l(7,"Order Fulfillment Display"),i()()(),t(8,"filters")(9,"div")(10,"label",3),l(11,"Channel"),i(),t(12,"app-channel-options-v2",4),C("ngModelChange",function(n){return s(u),S(o.filter().ListChannelID,n)||(o.filter().ListChannelID=n),c(n)}),i()(),t(13,"div",5)(14,"label",3),l(15,"From/To"),i(),t(16,"div",6)(17,"datepicker",7),C("dateChange",function(n){return s(u),S(o.filter().From,n)||(o.filter().From=n),c(n)}),i()(),t(18,"div")(19,"datepicker",8),C("dateChange",function(n){return s(u),S(o.filter().To,n)||(o.filter().To=n),c(n)}),i()()(),t(20,"div",5)(21,"label",9),l(22,"Page Number"),i(),t(23,"input",10),C("ngModelChange",function(n){return s(u),S(o.filter().PageNumber,n)||(o.filter().PageNumber=n),c(n)}),i()(),t(24,"div",5)(25,"label",9),l(26,"Page Size"),i(),t(27,"input",11),C("ngModelChange",function(n){return s(u),S(o.filter().PageSize,n)||(o.filter().PageSize=n),c(n)}),i()()(),t(28,"content")(29,"div",12)(30,"div",13)(31,"div",14),y(32,ve,20,2,"div",15)(33,we,2,0,"div",16),i()()()()()}if(m&2){let u=R(V(1,8,o.shippedOrders$)||U(11,he));r(2),f("text",o.filter().Number),r(10),h("multiple",!0),f("ngModel",o.filter().ListChannelID),r(5),f("date",o.filter().From),r(2),f("date",o.filter().To),r(4),f("ngModel",o.filter().PageNumber),r(4),f("ngModel",o.filter().PageSize),r(5),b(u.length>0?32:33)}},dependencies:[X,ae,re,le,oe,te,Y,ee,Z,$,me,se,ce,ne,ie,ue,pe,J,Q,K,de],encapsulation:2});let a=p;return a})();export{je as ShippedComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as fe,b as be}from"./chunk-S5R6MCNP.js";import{a as xe,b as he}from"./chunk-DXYMG6QK.js";import{b as ue}from"./chunk-QFSA7CU4.js";import{a as ge}from"./chunk-4YCSITNV.js";import{a as M}from"./chunk-ZSUWHVKX.js";import{a as Ce}from"./chunk-6OJQRHIZ.js";import{i as _e}from"./chunk-I723PUUO.js";import{c as R}from"./chunk-JBEKD57G.js";import{d as me,h as pe}from"./chunk-EDEZ3JLR.js";import{A as le,b as ne,h as ie,m as oe}from"./chunk-L3W6SG2T.js";import{a as re,b as ae,c as ce}from"./chunk-ZETUYNFJ.js";import{v as se,w as de}from"./chunk-STYL7ETF.js";import{c as J,h as Q,l as ee,m as te}from"./chunk-LNJUGHOX.js";import{$b as p,$c as T,G as A,Gb as Z,Ha as $,Hc as W,Mb as h,Mc as m,Nc as V,Oc as v,Qc as k,Rc as O,Sc as D,Wc as K,ad as X,bc as g,ca as H,cc as E,dc as q,ec as F,f as z,fc as I,gc as s,hc as c,hd as N,ic as _,id as j,jc as P,jd as Y,kd as G,lb as w,nb as a,pc as L,qc as f,ra as S,sb as B,td as y,vc as b,xa as u,xc as o,ya as C}from"./chunk-ZYJ6LAJ3.js";var U=t=>[t],Te=t=>({"text-decoration-line-through":t}),ve=t=>({"text-danger":t}),ye=(t,r)=>({"bg-gradient-warning":t,"cell-hover pointer":r});function Se(t,r){if(t&1){let e=f();c(0,"mat-slide-toggle",10),b("toggleChange",function(){u(e);let n=o();return n.toggleStatus=!n.toggleStatus,C(n.onToggle())}),c(1,"small",11),m(2),_()()}if(t&2){let e=o();a(2),v(" ",e.productToggleTitle?e.productToggleTitle:"FILTER DIFFERENT INVENTORY"," ")}}function we(t,r){if(t&1){let e=f();c(0,"th")(1,"input",13),D("ngModelChange",function(n){u(e);let l=o(2);return O(l.checkboxState,n)||(l.checkboxState=n),C(n)}),b("ngModelChange",function(){u(e);let n=o(2);return C(n.onCheckboxStateChange())}),_()()}if(t&2){let e=o(2);a(),k("ngModel",e.checkboxState)}}function Fe(t,r){if(t&1&&(h(0,we,2,1,"ng-template",12),c(1,"th",8),m(2,"POS"),_()),t&2){let e=o();s("ngxPermissionsOnly",T(1,U,e.rolePriceEdit))}}function Ie(t,r){if(t&1&&(c(0,"th",9)(1,"div",14)(2,"div",15),P(3,"img",16),c(4,"div",17),m(5),N(6,"stringLimit"),_()()()()),t&2){let e=r.$implicit;a(2),s("matTooltip",(e.Name==null?null:e.Name.length)>20?e.Name:""),a(),s("src",e==null?null:e.Img,w),a(2),v(" ",Y(6,3,e.Name,20)," ")}}function Pe(t,r){t&1&&L(0)}function Me(t,r){if(t&1&&h(0,Pe,1,0,"ng-container",29),t&2){o(2);let e=W(5);s("ngTemplateOutlet",e)}}function Ee(t,r){if(t&1&&h(0,Me,1,1,"ng-template",12),t&2){let e=o(4);s("ngxPermissionsOnly",T(1,U,e.roleInventoryUpdate))}}function Ve(t,r){t&1&&L(0)}function ke(t,r){if(t&1&&h(0,Ve,1,0,"ng-container",29),t&2){o(2);let e=W(5);s("ngTemplateOutlet",e)}}function Oe(t,r){if(t&1&&h(0,ke,1,1,"ng-template",12),t&2){let e=o(4);s("ngxPermissionsOnly",T(1,U,e.rolePriceEdit))}}function De(t,r){if(t&1){let e=f();c(0,"div")(1,"input",30),D("ngModelChange",function(n){u(e);let l=o(4).$implicit;return O(l.selected,n)||(l.selected=n),C(n)}),b("ngModelChange",function(){u(e);let n=o(4).$implicit,l=o();return C(l.onCheckboxStateProduct(n.ID))}),_()()}if(t&2){let e=o(4).$implicit;a(),k("ngModel",e.selected),s("disabled",!(e!=null&&e.Category))}}function Ne(t,r){if(t&1&&p(0,De,2,2,"div"),t&2){let e=o(3).$implicit;g((e==null||e.Variants==null?null:e.Variants.length)>1?0:-1)}}function Ue(t,r){if(t&1){let e=f();c(0,"img",31),b("click",function(n){u(e);let l=o(3).$implicit,d=o();return C(d.onZoomImage(n,l==null?null:l.ImageUrl))}),_()}if(t&2){let e=o(3).$implicit;s("src",K(e==null?null:e.ThumbnailUrl),w)}}function $e(t,r){t&1&&P(0,"img",26)}function Be(t,r){if(t&1&&(c(0,"td",23)(1,"div",24),p(2,Ee,1,3,null,12)(3,Oe,1,3,null,12),h(4,Ne,1,1,"ng-template",null,0,G),c(6,"div"),p(7,Ue,1,2,"img",25)(8,$e,1,0,"img",26),_()()(),c(9,"td",27)(10,"div"),m(11),_(),c(12,"small",28),m(13),_()()),t&2){let e=o(2).$implicit,i=o();s("rowSpan",e==null?null:e.Variants.length),a(2),g(i.table()=="inventory"?2:3),a(5),g(e!=null&&e.ThumbnailUrl?7:8),a(2),s("rowSpan",e==null?null:e.Variants.length),a(2),V(e==null?null:e.Name),a(),s("ngClass",T(7,ve,!(e!=null&&e.Category))),a(),v("(",e!=null&&e.Category?e==null?null:e.Category:"Not Found In POS",")")}}function Le(t,r){if(t&1&&(c(0,"a",22),P(1,"i",32),_()),t&2){let e=o().$implicit,i=o(2);s("href",i.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(e==null?null:e.ID),w)}}function We(t,r){if(t&1){let e=f();c(0,"input",35),D("ngModelChange",function(n){u(e);let l=o(3).$implicit;return O(l.selected,n)||(l.selected=n),C(n)}),_()}if(t&2){let e=o(3).$implicit,i=o().$implicit;k("ngModel",e.selected),s("disabled",!(i!=null&&i.Category))}}function je(t,r){if(t&1&&(c(0,"td",33),p(1,We,1,2,"input",34),_()),t&2){let e=o(2).$implicit,i=o(2);a(),g(i.printPOS(e)>=0||i.table()=="price"?1:-1)}}function Re(t,r){if(t&1&&(h(0,je,2,1,"ng-template",12),c(1,"td",19),m(2),N(3,"number"),_()),t&2){let e=o().$implicit,i=o(2);s("ngxPermissionsOnly",T(4,U,i.rolePriceEdit)),a(2),V(j(3,2,i.printPOS(e)))}}function ze(t,r){if(t&1){let e=f();c(0,"td",38),b("click",function(){u(e);let n=o().$implicit,l=o().$implicit,d=o().$implicit,x=o();return C(x.onUpdateData(d.Name,l,n.ID,d.ChannelItemID))}),c(1,"div",39)(2,"div",40),m(3),N(4,"number"),_(),c(5,"a",41),b("click",function(n){return u(e),C(n==null?null:n.stopPropagation())}),P(6,"i",32),_()()()}if(t&2){let e=r,i=o(2).$implicit,n=o(2);s("ngClass",X(5,ye,n.printPOS(i)!=n.printItem(e)&&n.hiddenIPOSInventory()==!1,n.hasPriceEdit()&&n.table()=="price"||n.hasInventoryEdit()&&n.table()=="inventory")),a(3),v(" ",j(4,3,n.printItem(e))," "),a(2),s("href",e.Url,w)}}function Ae(t,r){t&1&&(c(0,"td",37)(1,"div",39)(2,"span"),m(3,"X"),_()()())}function He(t,r){if(t&1&&p(0,ze,7,8,"td",36)(1,Ae,4,0,"td",37),t&2){let e,i=r.$implicit,n=o().$implicit,l=o(2);g((e=l.getItemFromChannel(n,i))?0:1,e)}}function Ze(t,r){if(t&1&&(c(0,"tr"),p(1,Be,14,9),c(2,"td",18),m(3),_(),c(4,"td",19)(5,"div",20)(6,"div",21),m(7),_(),c(8,"div",17),p(9,Le,2,1,"a",22),_()()(),p(10,Re,4,6),F(11,He,2,1,null,null,E),_()),t&2){let e=r.$implicit,i=r.$index,n=o().$implicit,l=o();a(),g(i==0?1:-1),a(2),V(e==null?null:e.Model),a(2),s("matTooltip",e.Discontinued?l.discontinuedVariantMsg:""),a(),s("ngClass",T(7,Te,e.Discontinued)),a(),v(" ",e.Code," "),a(2),g(n.Category?9:-1),a(),g(l.hiddenIPOSInventory()==!1?10:-1),a(),I(l.channel())}}function qe(t,r){if(t&1&&(c(0,"tbody"),F(1,Ze,13,9,"tr",null,E),_()),t&2){let e=r.$implicit;a(),I(e.Variants)}}var ft=(()=>{let r=class r{constructor(){this.dialog=S(me),this.biggerPictureService=S(Ce),this.authService=S(_e),this.permissionsService=S(re),this.table=y(void 0),this.channel=y(void 0),this.showProductToggle=y(!1),this.multiwarehouse=y(!1),this.hiddenIPOSInventory=y(!1),this.toggleStatus=!1,this.checkboxState=!1,this.rolePriceEdit=M.PriceUpdate,this.roleInventoryUpdate=M.InventoryUpdate,this.hasPriceEdit=$(!1),this.hasInventoryEdit=$(!1),this.discontinuedVariantMsg="This Variant is discontinued from POS, you must Non Active manually at the seller center so that it is not sold again on the channel.",this.onSubmit=new B,this.destroy$=new z,this.toggle=new B,this.hostName=this.authService.getDomain()}ngOnInit(){this.initRoles();let i=this.table();i=="inventory"?this.stockHeader="Stock":i=="price"&&(this.stockHeader="Price")}initRoles(){this.permissionsService.hasPermission(M.InventoryUpdate).then(i=>this.hasInventoryEdit.set(i)),this.permissionsService.hasPermission(M.PriceUpdate).then(i=>this.hasPriceEdit.set(i))}onCheckboxStateProduct(i){let n=this.data.filter(l=>l.ID==i);n.length>0&&(n=n.map(l=>(l.Variants=l.Variants.map(d=>(d.selected=l.selected,d)),l)))}onCheckboxStateChange(){this.data=this.data.map(i=>(i.Variants=i.Variants.map(n=>(n.selected=this.checkboxState,n)),i))}getItemFromChannel(i,n){return i.Channel.find(d=>R.IsNotEmpty(n.LocationID)?d.LocationID==n.LocationID:d.ChannelID==n.ID)}printItem(i){let n=this.table();if(n=="inventory")return i.Inventory;if(n=="price")return i.Price}onUpdateData(i,n,l,d){let x=this.table();this.hasPriceEdit()&&x=="price"&&this.onOpenDialogUpdate(i,n,l,d),this.hasInventoryEdit()&&x=="inventory"&&this.onOpenDialogUpdate(i,n,l,d)}onOpenDialogUpdate(i,n,l,d){this.dialog.open(fe,{data:{Name:i,Variant:n,ChannelID:l,Table:this.table(),ChannelItemID:d}}).afterClosed().pipe(A(x=>R.IsNotEmpty(x)),H(this.destroy$)).subscribe(x=>{this.onSubmit.emit(x)})}printPOS(i){let n=this.table();return n=="inventory"?i.Inventory?i.Inventory:0:n=="price"?i.UnitPrice:null}onToggle(){this.toggle.emit(this.toggleStatus)}onZoomImage(i,n){this.biggerPictureService.openBiggerPicture(i,n)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};r.\u0275fac=function(n){return new(n||r)},r.\u0275cmp=Z({type:r,selectors:[["app-table"]],inputs:{data:"data",table:[1,"table"],channel:[1,"channel"],showProductToggle:[1,"showProductToggle"],productToggleTitle:"productToggleTitle",multiwarehouse:[1,"multiwarehouse"],hiddenIPOSInventory:[1,"hiddenIPOSInventory"]},outputs:{onSubmit:"onSubmit",toggle:"onToggle"},decls:18,vars:2,consts:[["checkbox_update",""],[1,"table-responsive"],[1,"table"],[1,"thead-light","sticky-top-thead"],["scope","col","colspan","2",1,"text-center","w-25"],[1,"w-100"],[2,"width","200px"],["scope","col",1,"text-start","w-20"],["scope","col",1,"text-end","w-10"],["scope","col"],[2,"width","200px",3,"toggleChange"],[1,"fw-bold"],[3,"ngxPermissionsOnly"],["type","checkbox",3,"ngModelChange","ngModel"],[1,"w-100","d-flex","align-items-center","justify-content-center"],["matTooltipPosition","above",1,"d-flex","align-items-center","justify-content-center",2,"width","180px",3,"matTooltip"],[2,"width","16px","height","16px",3,"src"],[1,"ms-2"],[1,"text-start"],[1,"text-end"],["matTooltipPosition","above",1,"d-flex","align-items-center","justify-content-end",3,"matTooltip"],[3,"ngClass"],["target","_blank",3,"href"],[1,"text-center",3,"rowSpan"],[1,"d-flex","align-items-center","justify-content-end"],[1,"border","rounded","w-img","cursor-pointer",3,"src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded","w-img"],[1,"text-start",2,"padding-left","0px",3,"rowSpan"],[1,"mt-1",3,"ngClass"],[4,"ngTemplateOutlet"],["type","checkbox",1,"me-3",3,"ngModelChange","ngModel","disabled"],[1,"border","rounded","w-img","cursor-pointer",3,"click","src"],[1,"fas","fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[1,"align-middle"],["type","checkbox",3,"ngModel","disabled"],["type","checkbox",3,"ngModelChange","ngModel","disabled"],[1,"p-0",3,"ngClass"],[1,"table-white","text-center",2,"color","red"],[1,"p-0",3,"click","ngClass"],[1,"d-flex","align-items-center","justify-content-center"],[1,"me-2","mt-1"],["target","_blank",3,"click","href"]],template:function(n,l){n&1&&(c(0,"div",1)(1,"table",2)(2,"thead",3)(3,"tr")(4,"th",4)(5,"div",5)(6,"div"),m(7,"Product"),_(),p(8,Se,3,1,"mat-slide-toggle",6),_()(),c(9,"th",7),m(10,"Variant"),_(),c(11,"th",8),m(12,"SKU"),_(),p(13,Fe,3,3),F(14,Ie,7,6,"th",9,q),_()(),F(16,qe,3,0,"tbody",null,E),_()()),n&2&&(a(8),g(l.showProductToggle()?8:-1),a(5),g(l.hiddenIPOSInventory()==!1?13:-1),a(),I(l.channel()),a(2),I(l.data))},dependencies:[te,J,Q,le,ne,ie,oe,he,xe,pe,ge,ue,ce,ae,de,se,ee,be],styles:[".w-10[_ngcontent-%COMP%]{width:10%}.w-20[_ngcontent-%COMP%]{width:20%}.w-img[_ngcontent-%COMP%]{width:40px;height:40px}.item-name[_ngcontent-%COMP%]{margin-bottom:-14px!important;font-size:larger}.cell-hover[_ngcontent-%COMP%]:hover{background-color:#c9c9c9!important}.text-wrapping[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:88px}.cell-hover[_ngcontent-%COMP%]{width:400px!important}"]});let t=r;return t})();export{ft as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{n as Ue}from"./chunk-LNJUGHOX.js";import{$ as we,Ba as C,Ca as m,Fd as J,G as Ae,Ga as X,Gb as ke,Ha as D,Hb as g,Ib as T,Id as je,M as k,Na as De,O as Te,Q as Me,Qa as A,Ra as q,Ta as j,Va as Oe,Wa as Le,Xa as Fe,Xb as xe,_ as x,a as ge,c as be,ca as P,ea as Ne,f as h,g as ve,ma as c,na as p,pa as u,pd as Pe,q as Ee,ra as o,sb as U,tb as _,ua as Ce,ub as Re,v as N,w as ye,xb as Se,z as Ie}from"./chunk-ZYJ6LAJ3.js";import{a as Q}from"./chunk-66YHNWRR.js";function _t(t,n=0){return Be(t)?Number(t):arguments.length===2?n:0}function Be(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function O(t){return t instanceof A?t.nativeElement:t}function ee(t){return Array.isArray(t)?t:[t]}function $t(t){return t==null?"":typeof t=="string"?t:`${t}px`}function zt(t){return t!=null&&`${t}`!="false"}function Qt(t,n=/\s+/){let e=[];if(t!=null){let i=Array.isArray(t)?t:`${t}`.split(n);for(let s of i){let r=`${s}`.trim();r&&e.push(r)}}return e}function Ke(t,...n){return n.length?n.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var te;try{te=typeof Intl<"u"&&Intl.v8BreakIterator}catch{te=!1}var l=(()=>{class t{_platformId=o(Oe);isBrowser=this._platformId?Ue(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||te)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(i){return new(i||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var L;function Ve(){if(L==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>L=!0}))}finally{L=L||!1}return L}function ie(t){return Ve()?t:!!t.capture}var F=(function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t})(F||{}),B,v;function ri(){if(v==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return v=!1,v;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)v=!0;else{let t=Element.prototype.scrollTo;t?v=!/\{\s*\[native code\]\s*\}/.test(t.toString()):v=!1}}return v}function oi(){if(typeof document!="object"||!document)return F.NORMAL;if(B==null){let t=document.createElement("div"),n=t.style;t.dir="rtl",n.width="1px",n.overflow="auto",n.visibility="hidden",n.pointerEvents="none",n.position="absolute";let e=document.createElement("div"),i=e.style;i.width="2px",i.height="1px",t.appendChild(e),document.body.appendChild(t),B=F.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,B=t.scrollLeft===0?F.NEGATED:F.INVERTED),t.remove()}return B}var ne;function He(){if(ne==null){let t=typeof document<"u"?document.head:null;ne=!!(t&&(t.createShadowRoot||t.attachShadow))}return ne}function se(t){if(He()){let n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function re(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function E(t){return t.composedPath?t.composedPath()[0]:t.target}function di(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var M,We=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function li(){if(M)return M;if(typeof document!="object"||!document)return M=new Set(We),M;let t=document.createElement("input");return M=new Set(We.filter(n=>(t.setAttribute("type",n),t.type===n))),M}function oe(t){return t.buttons===0||t.detail===0}function ae(t){let n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!n&&n.identifier===-1&&(n.radiusX==null||n.radiusX===1)&&(n.radiusY==null||n.radiusY===1)}var Ge=new u("cdk-input-modality-detector-options"),Ze={ignoreKeys:[18,17,224,91,16]},$e=650,ce={passive:!0,capture:!0},Ye=(()=>{class t{_platform=o(l);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new ve(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(i=>i===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=E(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs<$e||(this._modality.next(oe(e)?"keyboard":"mouse"),this._mostRecentTarget=E(e))};_onTouchstart=e=>{if(ae(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=E(e)};constructor(){let e=o(_),i=o(m),s=o(Ge,{optional:!0});if(this._options=Q(Q({},Ze),s),this.modalityDetected=this._modality.pipe(x(1)),this.modalityChanged=this.modalityDetected.pipe(Me()),this._platform.isBrowser){let r=o(Se).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[r.listen(i,"keydown",this._onKeydown,ce),r.listen(i,"mousedown",this._onMousedown,ce),r.listen(i,"touchstart",this._onTouchstart,ce)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(i){return new(i||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),R=(function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t})(R||{}),ze=new u("cdk-focus-monitor-default-options"),K=ie({passive:!0,capture:!0}),Qe=(()=>{class t{_ngZone=o(_);_platform=o(l);_inputModalityDetector=o(Ye);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=o(m);_stopInputModalityDetector=new h;constructor(){let e=o(ze,{optional:!0});this._detectionMode=e?.detectionMode||R.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let i=E(e);for(let s=i;s;s=s.parentElement)e.type==="focus"?this._onFocus(e,s):this._onBlur(e,s)};monitor(e,i=!1){let s=O(e);if(!this._platform.isBrowser||s.nodeType!==1)return Ee();let r=se(s)||this._document,a=this._elementInfo.get(s);if(a)return i&&(a.checkChildren=!0),a.subject;let d={checkChildren:i,subject:new h,rootNode:r};return this._elementInfo.set(s,d),this._registerGlobalListeners(d),d.subject}stopMonitoring(e){let i=O(e),s=this._elementInfo.get(i);s&&(s.subject.complete(),this._setClasses(i),this._elementInfo.delete(i),this._removeGlobalListeners(s))}focusVia(e,i,s){let r=O(e),a=this._document.activeElement;r===a?this._getClosestElementsInfo(r).forEach(([d,I])=>this._originChanged(d,i,I)):(this._setOrigin(i),typeof r.focus=="function"&&r.focus(s))}ngOnDestroy(){this._elementInfo.forEach((e,i)=>this.stopMonitoring(i))}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===R.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,i){e.classList.toggle("cdk-focused",!!i),e.classList.toggle("cdk-touch-focused",i==="touch"),e.classList.toggle("cdk-keyboard-focused",i==="keyboard"),e.classList.toggle("cdk-mouse-focused",i==="mouse"),e.classList.toggle("cdk-program-focused",i==="program")}_setOrigin(e,i=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&i,this._detectionMode===R.IMMEDIATE){clearTimeout(this._originTimeoutId);let s=this._originFromTouchInteraction?$e:1;this._originTimeoutId=setTimeout(()=>this._origin=null,s)}})}_onFocus(e,i){let s=this._elementInfo.get(i),r=E(e);!s||!s.checkChildren&&i!==r||this._originChanged(i,this._getFocusOrigin(r),s)}_onBlur(e,i){let s=this._elementInfo.get(i);!s||s.checkChildren&&e.relatedTarget instanceof Node&&i.contains(e.relatedTarget)||(this._setClasses(i),this._emitOrigin(s,null))}_emitOrigin(e,i){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(i))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let i=e.rootNode,s=this._rootNodeFocusListenerCount.get(i)||0;s||this._ngZone.runOutsideAngular(()=>{i.addEventListener("focus",this._rootNodeFocusAndBlurListener,K),i.addEventListener("blur",this._rootNodeFocusAndBlurListener,K)}),this._rootNodeFocusListenerCount.set(i,s+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(P(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){let i=e.rootNode;if(this._rootNodeFocusListenerCount.has(i)){let s=this._rootNodeFocusListenerCount.get(i);s>1?this._rootNodeFocusListenerCount.set(i,s-1):(i.removeEventListener("focus",this._rootNodeFocusAndBlurListener,K),i.removeEventListener("blur",this._rootNodeFocusAndBlurListener,K),this._rootNodeFocusListenerCount.delete(i))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,i,s){this._setClasses(e,i),this._emitOrigin(s,i),this._lastFocusOrigin=i}_getClosestElementsInfo(e){let i=[];return this._elementInfo.forEach((s,r)=>{(r===e||s.checkChildren&&r.contains(e))&&i.push([r,s])}),i}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:i,mostRecentModality:s}=this._inputModalityDetector;if(s!=="mouse"||!i||i===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let r=e.labels;if(r){for(let a=0;a<r.length;a++)if(r[a].contains(i))return!0}return!1}static \u0275fac=function(i){return new(i||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),pt=(()=>{class t{_elementRef=o(A);_focusMonitor=o(Qe);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new U;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(i=>{this._focusOrigin=i,this.cdkFocusChange.emit(i)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var V=new WeakMap,S=(()=>{class t{_appRef;_injector=o(C);_environmentInjector=o(Ce);load(e){let i=this._appRef=this._appRef||this._injector.get(xe),s=V.get(i);s||(s={loaders:new Set,refs:[]},V.set(i,s),i.onDestroy(()=>{V.get(i)?.refs.forEach(r=>r.destroy()),V.delete(i)})),s.loaders.has(e)||(s.loaders.add(e),s.refs.push(je(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var H=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=ke({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(i,s){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0}
|
|
2
|
-
`],encapsulation:2,changeDetection:0})}return t})();var gt=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Xe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=g({type:t});static \u0275inj=p({providers:[gt]})}return t})();var qe=new Set,y,W=(()=>{class t{_platform=o(l);_nonce=o(Fe,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):vt}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&bt(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function bt(t,n){if(!qe.has(t))try{y||(y=document.createElement("style"),n&&y.setAttribute("nonce",n),y.setAttribute("type","text/css"),document.head.appendChild(y)),y.sheet&&(y.sheet.insertRule(`@media ${t} {body{ }}`,0),qe.add(t))}catch(e){console.error(e)}}function vt(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var de=(()=>{class t{_mediaMatcher=o(W);_zone=o(_);_queries=new Map;_destroySubject=new h;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Je(ee(e)).some(s=>this._registerQuery(s).mql.matches)}observe(e){let s=Je(ee(e)).map(a=>this._registerQuery(a).observable),r=ye(s);return r=Ie(r.pipe(Te(1)),r.pipe(x(1),k(0))),r.pipe(N(a=>{let d={matches:!1,breakpoints:{}};return a.forEach(({matches:I,query:ft})=>{d.matches=d.matches||I,d.breakpoints[ft]=I}),d}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),r={observable:new be(a=>{let d=I=>this._zone.run(()=>a.next(I));return i.addListener(d),()=>{i.removeListener(d)}}).pipe(we(i),N(({matches:a})=>({query:e,matches:a})),P(this._destroySubject)),mql:i};return this._queries.set(e,r),r}static \u0275fac=function(i){return new(i||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Je(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}var nt=(()=>{class t{_platform=o(l);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return yt(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let i=Et(Dt(e));if(i&&(et(i)===-1||!this.isVisible(i)))return!1;let s=e.nodeName.toLowerCase(),r=et(e);return e.hasAttribute("contenteditable")?r!==-1:s==="iframe"||s==="object"||this._platform.WEBKIT&&this._platform.IOS&&!Nt(e)?!1:s==="audio"?e.hasAttribute("controls")?r!==-1:!1:s==="video"?r===-1?!1:r!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,i){return Ct(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Et(t){try{return t.frameElement}catch{return null}}function yt(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function It(t){let n=t.nodeName.toLowerCase();return n==="input"||n==="select"||n==="button"||n==="textarea"}function At(t){return Mt(t)&&t.type=="hidden"}function Tt(t){return wt(t)&&t.hasAttribute("href")}function Mt(t){return t.nodeName.toLowerCase()=="input"}function wt(t){return t.nodeName.toLowerCase()=="a"}function st(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let n=t.getAttribute("tabindex");return!!(n&&!isNaN(parseInt(n,10)))}function et(t){if(!st(t))return null;let n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}function Nt(t){let n=t.nodeName.toLowerCase(),e=n==="input"&&t.type;return e==="text"||e==="password"||n==="select"||n==="textarea"}function Ct(t){return At(t)?!1:It(t)||Tt(t)||t.hasAttribute("contenteditable")||st(t)}function Dt(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var G=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_enabled=!0;constructor(n,e,i,s,r=!1,a){this._element=n,this._checker=e,this._ngZone=i,this._document=s,this._injector=a,r||this.attachAnchors()}destroy(){let n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){let e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return n=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){let e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){let e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;let e=n.children;for(let i=0;i<e.length;i++){let s=e[i].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[i]):null;if(s)return s}return null}_getLastTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;let e=n.children;for(let i=e.length-1;i>=0;i--){let s=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(s)return s}return null}_createAnchor(){let n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._injector?Re(n,{injector:this._injector}):setTimeout(n)}},rt=(()=>{class t{_checker=o(nt);_ngZone=o(_);_document=o(m);_injector=o(C);constructor(){o(S).load(H)}create(e,i=!1){return new G(e,this._checker,this._ngZone,this._document,i,this._injector)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ot=(()=>{class t{_elementRef=o(A);_focusTrapFactory=o(rt);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture;constructor(){o(l).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){let i=e.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=re(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",J],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",J]},exportAs:["cdkTrapFocus"],features:[De]})}return t})(),ot=new u("liveAnnouncerElement",{providedIn:"root",factory:at});function at(){return null}var ct=new u("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Lt=0,Ft=(()=>{class t{_ngZone=o(_);_defaultOptions=o(ct,{optional:!0});_liveElement;_document=o(m);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=o(ot,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...i){let s=this._defaultOptions,r,a;return i.length===1&&typeof i[0]=="number"?a=i[0]:[r,a]=i,this.clear(),clearTimeout(this._previousTimeout),r||(r=s&&s.politeness?s.politeness:"polite"),a==null&&s&&(a=s.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(d=>this._currentResolve=d)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),s=this._document.createElement("div");for(let r=0;r<i.length;r++)i[r].remove();return s.classList.add(e),s.classList.add("cdk-visually-hidden"),s.setAttribute("aria-atomic","true"),s.setAttribute("aria-live","polite"),s.id=`cdk-live-announcer-${Lt++}`,this._document.body.appendChild(s),s}_exposeAnnouncerToModals(e){let i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let s=0;s<i.length;s++){let r=i[s],a=r.getAttribute("aria-owns");a?a.indexOf(e)===-1&&r.setAttribute("aria-owns",a+" "+e):r.setAttribute("aria-owns",e)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var b=(function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t})(b||{}),tt="cdk-high-contrast-black-on-white",it="cdk-high-contrast-white-on-black",ue="cdk-high-contrast-active",Z=(()=>{class t{_platform=o(l);_hasCheckedHighContrastMode;_document=o(m);_breakpointSubscription;constructor(){this._breakpointSubscription=o(de).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return b.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,s=i&&i.getComputedStyle?i.getComputedStyle(e):null,r=(s&&s.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return b.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return b.BLACK_ON_WHITE}return b.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(ue,tt,it),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===b.BLACK_ON_WHITE?e.add(ue,tt):i===b.WHITE_ON_BLACK&&e.add(ue,it)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Rt=(()=>{class t{constructor(){o(Z)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||t)};static \u0275mod=g({type:t});static \u0275inj=p({imports:[Xe]})}return t})();var le={},St=(()=>{class t{_appId=o(j);getId(e){return this._appId!=="ng"&&(e+=this._appId),le.hasOwnProperty(e)||(le[e]=0),`${e}${le[e]++}`}static \u0275fac=function(i){return new(i||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var kt=200,$=class{_letterKeyStream=new h;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new h;selectedItem=this._selectedItem;constructor(n,e){let i=typeof e?.debounceInterval=="number"?e.debounceInterval:kt;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(n),this._setupKeyHandler(i)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(n){this._selectedItemIndex=n}setItems(n){this._items=n}handleKey(n){let e=n.keyCode;n.key&&n.key.length===1?this._letterKeyStream.next(n.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(n){this._letterKeyStream.pipe(Ne(e=>this._pressedLetters.push(e)),k(n),Ae(()=>this._pressedLetters.length>0),N(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let i=1;i<this._items.length+1;i++){let s=(this._selectedItemIndex+i)%this._items.length,r=this._items[s];if(!this._skipPredicateFn?.(r)&&r.getLabel?.().toLocaleUpperCase().trim().indexOf(e)===0){this._selectedItem.next(r);break}}this._pressedLetters=[]})}};var w=class{_items;_activeItemIndex=D(-1);_activeItem=D(null);_wrap=!1;_typeaheadSubscription=ge.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=n=>n.disabled;constructor(n,e){this._items=n,n instanceof q?this._itemChangesSubscription=n.changes.subscribe(i=>this._itemsChanged(i.toArray())):X(n)&&(this._effectRef=Pe(()=>this._itemsChanged(n()),{injector:e}))}tabOut=new h;change=new h;skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new $(e,{debounceInterval:typeof n=="number"?n:void 0,skipPredicate:i=>this._skipPredicateFn(i)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(i=>{this.setActiveItem(i)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(n=!0){return this._homeAndEnd=n,this}withPageUpDown(n=!0,e=10){return this._pageUpAndDown={enabled:n,delta:e},this}setActiveItem(n){let e=this._activeItem();this.updateActiveItem(n),this._activeItem()!==e&&this.change.next(this._activeItemIndex())}onKeydown(n){let e=n.keyCode,s=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!n[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&s){this.setNextItemActive();break}else return;case 38:if(this._vertical&&s){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&s){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&s){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&s){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&s){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&s){let r=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&s){let r=this._activeItemIndex()+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r<a?r:a-1,-1);break}else return;default:(s||Ke(n,"shiftKey"))&&this._typeahead?.handleKey(n);return}this._typeahead?.reset(),n.preventDefault()}get activeItemIndex(){return this._activeItemIndex()}get activeItem(){return this._activeItem()}isTyping(){return!!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex()<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex()<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(n){let e=this._getItemsArray(),i=typeof n=="number"?n:e.indexOf(n),s=e[i];this._activeItem.set(s??null),this._activeItemIndex.set(i),this._typeahead?.setCurrentSelectedItemIndex(i)}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete()}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){let e=this._getItemsArray();for(let i=1;i<=e.length;i++){let s=(this._activeItemIndex()+n*i+e.length)%e.length,r=e[s];if(!this._skipPredicateFn(r)){this.setActiveItem(s);return}}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex()+n,n)}_setActiveItemByIndex(n,e){let i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(n+=e,!i[n])return;this.setActiveItem(n)}}_getItemsArray(){return X(this._items)?this._items():this._items instanceof q?this._items.toArray():this._items}_itemsChanged(n){this._typeahead?.setItems(n);let e=this._activeItem();if(e){let i=n.indexOf(e);i>-1&&i!==this._activeItemIndex()&&(this._activeItemIndex.set(i),this._typeahead?.setCurrentSelectedItemIndex(i))}}};var he=class extends w{_origin="program";setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}};var me=class extends w{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}};var ut=" ";function xt(t,n,e){let i=z(t,n);e=e.trim(),!i.some(s=>s.trim()===e)&&(i.push(e),t.setAttribute(n,i.join(ut)))}function Pt(t,n,e){let i=z(t,n);e=e.trim();let s=i.filter(r=>r!==e);s.length?t.setAttribute(n,s.join(ut)):t.removeAttribute(n)}function z(t,n){return t.getAttribute(n)?.match(/\S+/g)??[]}var lt="cdk-describedby-message",Y="cdk-describedby-host",_e=0,Wn=(()=>{class t{_platform=o(l);_document=o(m);_messageRegistry=new Map;_messagesContainer=null;_id=`${_e++}`;constructor(){o(S).load(H),this._id=o(j)+"-"+_e++}describe(e,i,s){if(!this._canBeDescribed(e,i))return;let r=fe(i,s);typeof i!="string"?(dt(i,this._id),this._messageRegistry.set(r,{messageElement:i,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(i,s),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,i,s){if(!i||!this._isElementNode(e))return;let r=fe(i,s);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),typeof i=="string"){let a=this._messageRegistry.get(r);a&&a.referenceCount===0&&this._deleteMessageElement(r)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${Y}="${this._id}"]`);for(let i=0;i<e.length;i++)this._removeCdkDescribedByReferenceIds(e[i]),e[i].removeAttribute(Y);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(e,i){let s=this._document.createElement("div");dt(s,this._id),s.textContent=e,i&&s.setAttribute("role",i),this._createMessagesContainer(),this._messagesContainer.appendChild(s),this._messageRegistry.set(fe(e,i),{messageElement:s,referenceCount:0})}_deleteMessageElement(e){this._messageRegistry.get(e)?.messageElement?.remove(),this._messageRegistry.delete(e)}_createMessagesContainer(){if(this._messagesContainer)return;let e="cdk-describedby-message-container",i=this._document.querySelectorAll(`.${e}[platform="server"]`);for(let r=0;r<i.length;r++)i[r].remove();let s=this._document.createElement("div");s.style.visibility="hidden",s.classList.add(e),s.classList.add("cdk-visually-hidden"),this._platform.isBrowser||s.setAttribute("platform","server"),this._document.body.appendChild(s),this._messagesContainer=s}_removeCdkDescribedByReferenceIds(e){let i=z(e,"aria-describedby").filter(s=>s.indexOf(lt)!=0);e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){let s=this._messageRegistry.get(i);xt(e,"aria-describedby",s.messageElement.id),e.setAttribute(Y,this._id),s.referenceCount++}_removeMessageReference(e,i){let s=this._messageRegistry.get(i);s.referenceCount--,Pt(e,"aria-describedby",s.messageElement.id),e.removeAttribute(Y)}_isElementDescribedByMessage(e,i){let s=z(e,"aria-describedby"),r=this._messageRegistry.get(i),a=r&&r.messageElement.id;return!!a&&s.indexOf(a)!=-1}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&typeof i=="object")return!0;let s=i==null?"":`${i}`.trim(),r=e.getAttribute("aria-label");return s?!r||r.trim()!==s:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(i){return new(i||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function fe(t,n){return typeof t=="string"?`${n||""}/${t}`:t}function dt(t,n){t.id||(t.id=`${lt}-${n}-${_e++}`)}var jt=new u("cdk-dir-doc",{providedIn:"root",factory:Ut});function Ut(){return o(m)}var Bt=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function ht(t){let n=t?.toLowerCase()||"";return n==="auto"&&typeof navigator<"u"&&navigator?.language?Bt.test(navigator.language)?"rtl":"ltr":n==="rtl"?"rtl":"ltr"}var Kt=(()=>{class t{get value(){return this.valueSignal()}valueSignal=D("ltr");change=new U;constructor(){let e=o(jt,{optional:!0});if(e){let i=e.body?e.body.dir:null,s=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(ht(i||s||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var pe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=g({type:t});static \u0275inj=p({})}return t})();var Vt=new u("MATERIAL_ANIMATIONS");var mt=null;function Ht(){return o(Vt,{optional:!0})?.animationsDisabled||o(Le,{optional:!0})==="NoopAnimations"?"di-disabled":(mt??=o(W).matchMedia("(prefers-reduced-motion)").matches,mt?"reduced-motion":"enabled")}function ds(){return Ht()!=="enabled"}var _s=(()=>{class t{constructor(){o(Z)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||t)};static \u0275mod=g({type:t});static \u0275inj=p({imports:[pe,pe]})}return t})();export{_t as a,O as b,ee as c,$t as d,zt as e,Qt as f,Ke as g,l as h,ie as i,F as j,ri as k,oi as l,se as m,re as n,E as o,di as p,li as q,oe as r,ae as s,Qe as t,pt as u,S as v,H as w,Xe as x,nt as y,rt as z,Ot as A,Ft as B,Rt as C,St as D,me as E,he as F,xt as G,Pt as H,Wn as I,Kt as J,pe as K,ds as L,_s as M};
|
|
2
|
+
`],encapsulation:2,changeDetection:0})}return t})();var Xe=new Set,y,W=(()=>{class t{_platform=o(l);_nonce=o(Fe,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):bt}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&>(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function gt(t,n){if(!Xe.has(t))try{y||(y=document.createElement("style"),n&&y.setAttribute("nonce",n),y.setAttribute("type","text/css"),document.head.appendChild(y)),y.sheet&&(y.sheet.insertRule(`@media ${t} {body{ }}`,0),Xe.add(t))}catch(e){console.error(e)}}function bt(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var de=(()=>{class t{_mediaMatcher=o(W);_zone=o(_);_queries=new Map;_destroySubject=new h;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return qe(ee(e)).some(s=>this._registerQuery(s).mql.matches)}observe(e){let s=qe(ee(e)).map(a=>this._registerQuery(a).observable),r=ye(s);return r=Ie(r.pipe(Te(1)),r.pipe(x(1),k(0))),r.pipe(N(a=>{let d={matches:!1,breakpoints:{}};return a.forEach(({matches:I,query:ft})=>{d.matches=d.matches||I,d.breakpoints[ft]=I}),d}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let i=this._mediaMatcher.matchMedia(e),r={observable:new be(a=>{let d=I=>this._zone.run(()=>a.next(I));return i.addListener(d),()=>{i.removeListener(d)}}).pipe(we(i),N(({matches:a})=>({query:e,matches:a})),P(this._destroySubject)),mql:i};return this._queries.set(e,r),r}static \u0275fac=function(i){return new(i||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function qe(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}var vt=(()=>{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Je=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=g({type:t});static \u0275inj=p({providers:[vt]})}return t})();var nt=(()=>{class t{_platform=o(l);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return yt(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let i=Et(Dt(e));if(i&&(et(i)===-1||!this.isVisible(i)))return!1;let s=e.nodeName.toLowerCase(),r=et(e);return e.hasAttribute("contenteditable")?r!==-1:s==="iframe"||s==="object"||this._platform.WEBKIT&&this._platform.IOS&&!Nt(e)?!1:s==="audio"?e.hasAttribute("controls")?r!==-1:!1:s==="video"?r===-1?!1:r!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,i){return Ct(e)&&!this.isDisabled(e)&&(i?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(i){return new(i||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Et(t){try{return t.frameElement}catch{return null}}function yt(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function It(t){let n=t.nodeName.toLowerCase();return n==="input"||n==="select"||n==="button"||n==="textarea"}function At(t){return Mt(t)&&t.type=="hidden"}function Tt(t){return wt(t)&&t.hasAttribute("href")}function Mt(t){return t.nodeName.toLowerCase()=="input"}function wt(t){return t.nodeName.toLowerCase()=="a"}function st(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let n=t.getAttribute("tabindex");return!!(n&&!isNaN(parseInt(n,10)))}function et(t){if(!st(t))return null;let n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}function Nt(t){let n=t.nodeName.toLowerCase(),e=n==="input"&&t.type;return e==="text"||e==="password"||n==="select"||n==="textarea"}function Ct(t){return At(t)?!1:It(t)||Tt(t)||t.hasAttribute("contenteditable")||st(t)}function Dt(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var G=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_enabled=!0;constructor(n,e,i,s,r=!1,a){this._element=n,this._checker=e,this._ngZone=i,this._document=s,this._injector=a,r||this.attachAnchors()}destroy(){let n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){let e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return n=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let i=this._getFirstTabbableElement(e);return i?.focus(n),!!i}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){let e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){let e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;let e=n.children;for(let i=0;i<e.length;i++){let s=e[i].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(e[i]):null;if(s)return s}return null}_getLastTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;let e=n.children;for(let i=e.length-1;i>=0;i--){let s=e[i].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[i]):null;if(s)return s}return null}_createAnchor(){let n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._injector?Re(n,{injector:this._injector}):setTimeout(n)}},rt=(()=>{class t{_checker=o(nt);_ngZone=o(_);_document=o(m);_injector=o(C);constructor(){o(S).load(H)}create(e,i=!1){return new G(e,this._checker,this._ngZone,this._document,i,this._injector)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ot=(()=>{class t{_elementRef=o(A);_focusTrapFactory=o(rt);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture;constructor(){o(l).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){let i=e.autoCapture;i&&!i.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=re(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(i){return new(i||t)};static \u0275dir=T({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",J],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",J]},exportAs:["cdkTrapFocus"],features:[De]})}return t})(),ot=new u("liveAnnouncerElement",{providedIn:"root",factory:at});function at(){return null}var ct=new u("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Lt=0,Ft=(()=>{class t{_ngZone=o(_);_defaultOptions=o(ct,{optional:!0});_liveElement;_document=o(m);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=o(ot,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...i){let s=this._defaultOptions,r,a;return i.length===1&&typeof i[0]=="number"?a=i[0]:[r,a]=i,this.clear(),clearTimeout(this._previousTimeout),r||(r=s&&s.politeness?s.politeness:"polite"),a==null&&s&&(a=s.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(d=>this._currentResolve=d)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let e="cdk-live-announcer-element",i=this._document.getElementsByClassName(e),s=this._document.createElement("div");for(let r=0;r<i.length;r++)i[r].remove();return s.classList.add(e),s.classList.add("cdk-visually-hidden"),s.setAttribute("aria-atomic","true"),s.setAttribute("aria-live","polite"),s.id=`cdk-live-announcer-${Lt++}`,this._document.body.appendChild(s),s}_exposeAnnouncerToModals(e){let i=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let s=0;s<i.length;s++){let r=i[s],a=r.getAttribute("aria-owns");a?a.indexOf(e)===-1&&r.setAttribute("aria-owns",a+" "+e):r.setAttribute("aria-owns",e)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var b=(function(t){return t[t.NONE=0]="NONE",t[t.BLACK_ON_WHITE=1]="BLACK_ON_WHITE",t[t.WHITE_ON_BLACK=2]="WHITE_ON_BLACK",t})(b||{}),tt="cdk-high-contrast-black-on-white",it="cdk-high-contrast-white-on-black",ue="cdk-high-contrast-active",Z=(()=>{class t{_platform=o(l);_hasCheckedHighContrastMode;_document=o(m);_breakpointSubscription;constructor(){this._breakpointSubscription=o(de).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return b.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let i=this._document.defaultView||window,s=i&&i.getComputedStyle?i.getComputedStyle(e):null,r=(s&&s.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return b.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return b.BLACK_ON_WHITE}return b.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(ue,tt,it),this._hasCheckedHighContrastMode=!0;let i=this.getHighContrastMode();i===b.BLACK_ON_WHITE?e.add(ue,tt):i===b.WHITE_ON_BLACK&&e.add(ue,it)}}static \u0275fac=function(i){return new(i||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Rt=(()=>{class t{constructor(){o(Z)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||t)};static \u0275mod=g({type:t});static \u0275inj=p({imports:[Je]})}return t})();var le={},St=(()=>{class t{_appId=o(j);getId(e){return this._appId!=="ng"&&(e+=this._appId),le.hasOwnProperty(e)||(le[e]=0),`${e}${le[e]++}`}static \u0275fac=function(i){return new(i||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var kt=200,$=class{_letterKeyStream=new h;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new h;selectedItem=this._selectedItem;constructor(n,e){let i=typeof e?.debounceInterval=="number"?e.debounceInterval:kt;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(n),this._setupKeyHandler(i)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(n){this._selectedItemIndex=n}setItems(n){this._items=n}handleKey(n){let e=n.keyCode;n.key&&n.key.length===1?this._letterKeyStream.next(n.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(n){this._letterKeyStream.pipe(Ne(e=>this._pressedLetters.push(e)),k(n),Ae(()=>this._pressedLetters.length>0),N(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let i=1;i<this._items.length+1;i++){let s=(this._selectedItemIndex+i)%this._items.length,r=this._items[s];if(!this._skipPredicateFn?.(r)&&r.getLabel?.().toLocaleUpperCase().trim().indexOf(e)===0){this._selectedItem.next(r);break}}this._pressedLetters=[]})}};var w=class{_items;_activeItemIndex=D(-1);_activeItem=D(null);_wrap=!1;_typeaheadSubscription=ge.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=n=>n.disabled;constructor(n,e){this._items=n,n instanceof q?this._itemChangesSubscription=n.changes.subscribe(i=>this._itemsChanged(i.toArray())):X(n)&&(this._effectRef=Pe(()=>this._itemsChanged(n()),{injector:e}))}tabOut=new h;change=new h;skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new $(e,{debounceInterval:typeof n=="number"?n:void 0,skipPredicate:i=>this._skipPredicateFn(i)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(i=>{this.setActiveItem(i)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(n=!0){return this._homeAndEnd=n,this}withPageUpDown(n=!0,e=10){return this._pageUpAndDown={enabled:n,delta:e},this}setActiveItem(n){let e=this._activeItem();this.updateActiveItem(n),this._activeItem()!==e&&this.change.next(this._activeItemIndex())}onKeydown(n){let e=n.keyCode,s=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!n[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&s){this.setNextItemActive();break}else return;case 38:if(this._vertical&&s){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&s){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&s){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&s){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&s){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&s){let r=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&s){let r=this._activeItemIndex()+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r<a?r:a-1,-1);break}else return;default:(s||Ke(n,"shiftKey"))&&this._typeahead?.handleKey(n);return}this._typeahead?.reset(),n.preventDefault()}get activeItemIndex(){return this._activeItemIndex()}get activeItem(){return this._activeItem()}isTyping(){return!!this._typeahead&&this._typeahead.isTyping()}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._getItemsArray().length-1,-1)}setNextItemActive(){this._activeItemIndex()<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex()<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(n){let e=this._getItemsArray(),i=typeof n=="number"?n:e.indexOf(n),s=e[i];this._activeItem.set(s??null),this._activeItemIndex.set(i),this._typeahead?.setCurrentSelectedItemIndex(i)}destroy(){this._typeaheadSubscription.unsubscribe(),this._itemChangesSubscription?.unsubscribe(),this._effectRef?.destroy(),this._typeahead?.destroy(),this.tabOut.complete(),this.change.complete()}_setActiveItemByDelta(n){this._wrap?this._setActiveInWrapMode(n):this._setActiveInDefaultMode(n)}_setActiveInWrapMode(n){let e=this._getItemsArray();for(let i=1;i<=e.length;i++){let s=(this._activeItemIndex()+n*i+e.length)%e.length,r=e[s];if(!this._skipPredicateFn(r)){this.setActiveItem(s);return}}}_setActiveInDefaultMode(n){this._setActiveItemByIndex(this._activeItemIndex()+n,n)}_setActiveItemByIndex(n,e){let i=this._getItemsArray();if(i[n]){for(;this._skipPredicateFn(i[n]);)if(n+=e,!i[n])return;this.setActiveItem(n)}}_getItemsArray(){return X(this._items)?this._items():this._items instanceof q?this._items.toArray():this._items}_itemsChanged(n){this._typeahead?.setItems(n);let e=this._activeItem();if(e){let i=n.indexOf(e);i>-1&&i!==this._activeItemIndex()&&(this._activeItemIndex.set(i),this._typeahead?.setCurrentSelectedItemIndex(i))}}};var he=class extends w{_origin="program";setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}};var me=class extends w{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}};var ut=" ";function xt(t,n,e){let i=z(t,n);e=e.trim(),!i.some(s=>s.trim()===e)&&(i.push(e),t.setAttribute(n,i.join(ut)))}function Pt(t,n,e){let i=z(t,n);e=e.trim();let s=i.filter(r=>r!==e);s.length?t.setAttribute(n,s.join(ut)):t.removeAttribute(n)}function z(t,n){return t.getAttribute(n)?.match(/\S+/g)??[]}var lt="cdk-describedby-message",Y="cdk-describedby-host",_e=0,Wn=(()=>{class t{_platform=o(l);_document=o(m);_messageRegistry=new Map;_messagesContainer=null;_id=`${_e++}`;constructor(){o(S).load(H),this._id=o(j)+"-"+_e++}describe(e,i,s){if(!this._canBeDescribed(e,i))return;let r=fe(i,s);typeof i!="string"?(dt(i,this._id),this._messageRegistry.set(r,{messageElement:i,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(i,s),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,i,s){if(!i||!this._isElementNode(e))return;let r=fe(i,s);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),typeof i=="string"){let a=this._messageRegistry.get(r);a&&a.referenceCount===0&&this._deleteMessageElement(r)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${Y}="${this._id}"]`);for(let i=0;i<e.length;i++)this._removeCdkDescribedByReferenceIds(e[i]),e[i].removeAttribute(Y);this._messagesContainer?.remove(),this._messagesContainer=null,this._messageRegistry.clear()}_createMessageElement(e,i){let s=this._document.createElement("div");dt(s,this._id),s.textContent=e,i&&s.setAttribute("role",i),this._createMessagesContainer(),this._messagesContainer.appendChild(s),this._messageRegistry.set(fe(e,i),{messageElement:s,referenceCount:0})}_deleteMessageElement(e){this._messageRegistry.get(e)?.messageElement?.remove(),this._messageRegistry.delete(e)}_createMessagesContainer(){if(this._messagesContainer)return;let e="cdk-describedby-message-container",i=this._document.querySelectorAll(`.${e}[platform="server"]`);for(let r=0;r<i.length;r++)i[r].remove();let s=this._document.createElement("div");s.style.visibility="hidden",s.classList.add(e),s.classList.add("cdk-visually-hidden"),this._platform.isBrowser||s.setAttribute("platform","server"),this._document.body.appendChild(s),this._messagesContainer=s}_removeCdkDescribedByReferenceIds(e){let i=z(e,"aria-describedby").filter(s=>s.indexOf(lt)!=0);e.setAttribute("aria-describedby",i.join(" "))}_addMessageReference(e,i){let s=this._messageRegistry.get(i);xt(e,"aria-describedby",s.messageElement.id),e.setAttribute(Y,this._id),s.referenceCount++}_removeMessageReference(e,i){let s=this._messageRegistry.get(i);s.referenceCount--,Pt(e,"aria-describedby",s.messageElement.id),e.removeAttribute(Y)}_isElementDescribedByMessage(e,i){let s=z(e,"aria-describedby"),r=this._messageRegistry.get(i),a=r&&r.messageElement.id;return!!a&&s.indexOf(a)!=-1}_canBeDescribed(e,i){if(!this._isElementNode(e))return!1;if(i&&typeof i=="object")return!0;let s=i==null?"":`${i}`.trim(),r=e.getAttribute("aria-label");return s?!r||r.trim()!==s:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(i){return new(i||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function fe(t,n){return typeof t=="string"?`${n||""}/${t}`:t}function dt(t,n){t.id||(t.id=`${lt}-${n}-${_e++}`)}var jt=new u("cdk-dir-doc",{providedIn:"root",factory:Ut});function Ut(){return o(m)}var Bt=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function ht(t){let n=t?.toLowerCase()||"";return n==="auto"&&typeof navigator<"u"&&navigator?.language?Bt.test(navigator.language)?"rtl":"ltr":n==="rtl"?"rtl":"ltr"}var Kt=(()=>{class t{get value(){return this.valueSignal()}valueSignal=D("ltr");change=new U;constructor(){let e=o(jt,{optional:!0});if(e){let i=e.body?e.body.dir:null,s=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(ht(i||s||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(i){return new(i||t)};static \u0275prov=c({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var pe=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=g({type:t});static \u0275inj=p({})}return t})();var rs={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var Vt=new u("MATERIAL_ANIMATIONS");var mt=null;function Ht(){return o(Vt,{optional:!0})?.animationsDisabled||o(Le,{optional:!0})==="NoopAnimations"?"di-disabled":(mt??=o(W).matchMedia("(prefers-reduced-motion)").matches,mt?"reduced-motion":"enabled")}function us(){return Ht()!=="enabled"}var ps=(()=>{class t{constructor(){o(Z)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(i){return new(i||t)};static \u0275mod=g({type:t});static \u0275inj=p({imports:[pe,pe]})}return t})();export{_t as a,O as b,ee as c,$t as d,zt as e,Qt as f,Ke as g,l as h,ie as i,F as j,ri as k,oi as l,se as m,re as n,E as o,di as p,li as q,oe as r,ae as s,Qe as t,pt as u,S as v,H as w,de as x,Je as y,nt as z,rt as A,Ot as B,Ft as C,Rt as D,St as E,me as F,he as G,xt as H,Pt as I,Wn as J,Kt as K,pe as L,rs as M,us as N,ps as O};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{a as ie,b as re,c as ae,d as le,e as pe,f as se,g as me}from"./chunk-R2XT5M5F.js";import{b as oe}from"./chunk-2F4DTZCZ.js";import{a as Y}from"./chunk-UCEZJNIL.js";import"./chunk-6Q6L5NUD.js";import"./chunk-C7N6EI73.js";import"./chunk-GPHNPV7O.js";import{a as Z,b as ee}from"./chunk-A7PUMY67.js";import"./chunk-N5AE5WMQ.js";import{i as X}from"./chunk-I723PUUO.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-AGBJEXIM.js";import{e as Q}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import"./chunk-JBEKD57G.js";import{m as te,n as ne}from"./chunk-EDEZ3JLR.js";import{A as J,c as z,h as K,m as q}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{E as j,G as $,I as G,g as H,m as W}from"./chunk-LNJUGHOX.js";import{$b as x,$c as T,Gb as h,Hb as L,Hc as D,Mb as v,Mc as p,Nc as R,Oc as O,Qc as P,Rc as F,Sc as V,Zc as A,bc as w,dc as g,ec as S,fc as C,gc as m,hc as i,ic as o,jc as c,kb as N,ma as M,na as U,nb as s,qc as _,ra as y,sb as B,td as E,vc as b,xa as u,xc as d,ya as f}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var he=e=>[e];function ge(e,t){if(e&1&&(i(0,"a",8),p(1),o()),e&2){let a=t.$implicit;m("routerLink",T(2,he,a.url)),s(),O(" ",a.title)}}var ce=(()=>{let t=class t{constructor(){this.tabs=[{Title:"Download By Url",Url:"/menu/products/download/by-url",Description:"Download products information by product URL as a parameter"}],this.moreMenu=[{title:"Sold In Channel",url:"/menu/products/status/sold-in-channel"},{title:"In POS",url:"/menu/products/status/in-pos"},{title:"Not In Channel",url:"/menu/products/status/not-in-channel"},{title:"Duplicate SKU",url:"/menu/products/status/duplicate-sku"}]}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=h({type:t,selectors:[["app-download"]],standalone:!1,decls:13,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid","d-flex","align-items-center","justify-content-between"],[3,"Tabs"],[1,"dropdown","me-6"],["role","button","data-bs-toggle","dropdown","aria-expanded","false",1,"text-dark"],[1,"fa-solid","fa-bars","fa-lg"],[1,"dropdown-menu","dropdown-menu-end","row"],[1,"d-block"],[1,"dropdown-item",3,"routerLink"]],template:function(r,l){r&1&&(i(0,"nav",0)(1,"div",1)(2,"div"),c(3,"nav-tab",2),o()(),i(4,"div")(5,"div",3)(6,"a",4),c(7,"i",5),o(),i(8,"div",6)(9,"div",7),S(10,ge,2,4,"a",8,g),o()()()()(),c(12,"router-outlet")),r&2&&(s(3),m("Tabs",l.tabs),s(7),C(l.moreMenu))},dependencies:[Z,j,$],encapsulation:2});let e=t;return e})();var k=(()=>{let t=class t{constructor(){this.httpService=y(Q)}download(n){return this.httpService.post("/api/Product/downloadurl",n)}};t.\u0275fac=function(r){return new(r||t)},t.\u0275prov=M({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();var Se=e=>({"background-color":e});function Ce(e,t){if(e&1&&(i(0,"th"),p(1),o()),e&2){let a=t.$implicit;s(),R(a.column)}}function be(e,t){if(e&1&&(i(0,"td"),c(1,"span",4),o()),e&2){let a=t.$implicit,n=d().$implicit;s(),m("innerHTML",n[a.prop],N)}}function ye(e,t){if(e&1&&(i(0,"tr",3),S(1,be,2,1,"td",null,g),o()),e&2){let a=t.$implicit,n=d();m("ngStyle",T(1,Se,a.Status>200?"#F4D6D5":"#DEE9C9")),s(),C(n.configs())}}var de=(()=>{let t=class t{constructor(){this.configs=E([]),this.data=E([]),this.status=E(void 0),this.eventClose=new B}ngOnInit(){}onClose(){this.eventClose.emit()}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=h({type:t,selectors:[["app-response-api-list"]],inputs:{configs:[1,"configs"],data:[1,"data"],status:[1,"status"]},outputs:{eventClose:"onClose"},standalone:!1,decls:9,vars:0,consts:[[1,"table-responsive"],[1,"table"],[1,"thead-light"],[3,"ngStyle"],[3,"innerHTML"]],template:function(r,l){r&1&&(i(0,"div",0)(1,"table",1)(2,"thead",2)(3,"tr"),S(4,Ce,2,1,"th",null,g),o()(),i(6,"tbody"),S(7,ye,3,3,"tr",3,g),o()()()),r&2&&(s(4),C(l.configs()),s(3),C(l.data()))},dependencies:[H],encapsulation:2});let e=t;return e})();function xe(e,t){if(e&1){let a=_();i(0,"button",17),b("click",function(){u(a);let r=d(),l=D(11);return f(r.onNewStepperState(l))}),c(1,"i",18),p(2," New "),o()}}function we(e,t){if(e&1){let a=_();i(0,"button",17),b("click",function(){u(a),d();let r=D(11);return f(r.previous())}),p(1," Back "),o()}}function De(e,t){if(e&1){let a=_();i(0,"button",19),b("click",function(){u(a);let r=d(),l=D(11);return f(r.onStepperNext(l))}),p(1," Next "),o()}}function Te(e,t){if(e&1){let a=_();i(0,"button",20),b("click",function(){u(a);let r=d(),l=D(11);return f(r.onSubmit(l))}),p(1,"Download"),o()}if(e&2){let a=d();m("disabled",!a.urls)}}function Ee(e,t){e&1&&(c(0,"i",21),i(1,"span"),p(2,"Instruction"),o())}function Ie(e,t){e&1&&(i(0,"div",22)(1,"div",23)(2,"div",24)(3,"h4",25),p(4,"Note"),o()(),i(5,"div",26)(6,"ol",27)(7,"li"),p(8," Use this form to Download Products from Tokopedia using product URL "),o(),i(9,"li"),p(10," Copy Product URL from "),i(11,"a",28),p(12,"https://seller.tokopedia.com/ "),o(),p(13," and paste in this form "),o(),i(14,"li"),p(15," Use New Line when you want to input several product URLs "),o()()()()())}function ke(e,t){e&1&&(c(0,"i",29),i(1,"span"),p(2,"Download"),o())}function Me(e,t){if(e&1){let a=_();i(0,"div",22)(1,"textarea",30),V("ngModelChange",function(r){u(a);let l=d();return F(l.urls,r)||(l.urls=r),f(r)}),o()()}if(e&2){let a=d();s(),m("placeholder",a.urlPlaceholder),P("ngModel",a.urls)}}function Ue(e,t){e&1&&(c(0,"i",31),i(1,"span"),p(2,"Finish"),o())}function Ne(e,t){if(e&1&&(i(0,"div",22),c(1,"app-response-api-list",32),o()),e&2){let a=d();s(),m("data",a.downloadResponses)("configs",a.configs)}}function Be(e,t){e&1&&(i(0,"h6"),p(1,"1"),o())}function Le(e,t){e&1&&(i(0,"h6"),p(1,"2"),o())}function Re(e,t){e&1&&(i(0,"h6"),p(1,"3"),o())}var ue=(()=>{let t=class t{constructor(){this.downloadService=y(k),this.authService=y(X),this.configs=[{column:"Url",prop:"URL"},{column:"POS",prop:"Name"},{column:"Exception",prop:"Message"}],this.downloadResponses=[],this.stepperState="DOWNLOAD",this.urlPlaceholder=`https://tokopedia.com/tokoriyanadi/kaos-polos-biru
|
|
2
|
+
https://tokopedia.com/tokoriyanadi/Celana-Chinos-Coklat`,this.currentDomain=this.authService.getDomain()}onStepperChange(n){this.stepperState=n.selectedStep.state}onSubmit(n){let r=this.urls.split(/\r?\n/);this.downloadService.download(r).subscribe(l=>{this.downloadResponses=l,this.mappingLinkToProduct(),this.onStepperNext(n)})}mappingLinkToProduct(){this.downloadResponses=this.downloadResponses.map(n=>(n.Name=n?.Name?`<a href="${this.currentDomain}/menu/Products/Catalog/Products/Info?ID=${n.ID}" target="_blank">
|
|
3
|
+
${n?.Name}
|
|
4
|
+
</a>`:"-",n))}onNewStepperState(n){this.downloadResponses=[],this.urls=null,this.stepperState="DOWNLOAD",n.reset(),this.onStepperNext(n)}onStepperNext(n){n.selected.completed=!0,n.next()}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=h({type:t,selectors:[["app-by-url"]],standalone:!1,features:[A([{provide:ie,useValue:{displayDefaultIndicatorType:!1}}])],decls:24,vars:11,consts:[["stepper",""],["headerTitle","Tokopedia - Product Download By Url",3,"hideSearchBox","hideSearchDropdown"],[1,"btn","btn-outline-secondary","btn-fill","btn-lg"],["type","button",1,"btn","btn-outline-secondary","btn-fill","btn-lg","ms-3"],["role","button",1,"btn","btn-success","btn-fill","btn-lg","text-white","ms-3",3,"disabled"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-12"],["linear","",1,"stepper-downloadByUrl",3,"selectionChange","selectedIndex"],["state","GUIDE",3,"editable","completed"],["matStepLabel",""],["matStepContent",""],["state","DOWNLOAD",3,"editable","completed"],["state","FINISH"],["matStepperIcon","GUIDE"],["matStepperIcon","DOWNLOAD"],["matStepperIcon","FINISH"],[1,"btn","btn-outline-secondary","btn-fill","btn-lg",3,"click"],["aria-hidden","true",1,"fa","fa-file-alt","me-2"],["type","button",1,"btn","btn-outline-secondary","btn-fill","btn-lg","ms-3",3,"click"],["role","button",1,"btn","btn-success","btn-fill","btn-lg","text-white","ms-3",3,"click","disabled"],[1,"fa-solid","fa-info","me-3"],[1,"mt-8"],[1,"card","border","w-50"],[1,"card-header","py-6"],[1,"text-primary"],[1,"card-body",2,"padding-left","0px"],[1,"mt-6"],["href","https://seller.tokopedia.com","target","_blank"],[1,"fa-solid","fa-download","me-3"],["name","url","cols","30","rows","25",1,"form-control",3,"ngModelChange","placeholder","ngModel"],[1,"fa-sharp","fa-solid","fa-flag","me-3"],["status","error",3,"data","configs"]],template:function(r,l){if(r&1){let fe=_();i(0,"mainpanel",1)(1,"actions"),x(2,xe,3,0,"button",2),x(3,we,2,0,"button",2),x(4,De,2,0,"button",3),x(5,Te,2,1,"button",4),o(),i(6,"content")(7,"div",5)(8,"div",6)(9,"div",7)(10,"mat-stepper",8,0),b("selectionChange",function(_e){return u(fe),f(l.onStepperChange(_e))}),i(12,"mat-step",9),v(13,Ee,3,0,"ng-template",10)(14,Ie,16,0,"ng-template",11),o(),i(15,"mat-step",12),v(16,ke,3,0,"ng-template",10)(17,Me,2,2,"ng-template",11),o(),i(18,"mat-step",13),v(19,Ue,3,0,"ng-template",10)(20,Ne,2,2,"ng-template",11),o(),v(21,Be,2,0,"ng-template",14)(22,Le,2,0,"ng-template",15)(23,Re,2,0,"ng-template",16),o()()()()()()}r&2&&(m("hideSearchBox",!0)("hideSearchDropdown",!0),s(2),w(l.stepperState=="FINISH"?2:-1),s(),w(l.stepperState=="DOWNLOAD"?3:-1),s(),w(l.stepperState=="GUIDE"?4:-1),s(),w(l.stepperState=="DOWNLOAD"?5:-1),s(5),m("selectedIndex",1),s(2),m("editable",l.stepperState!="FINISH")("completed",!0),s(3),m("editable",l.stepperState!="FINISH")("completed",!1))},dependencies:[z,K,q,te,pe,re,se,ae,le,de],styles:[`@import"https://fonts.googleapis.com/icon?family=Material+Icons";.card-header{background-color:#00000008}mat-stepper.stepper-downloadByUrl>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-stepper-header-container{position:relative;width:60%;left:18%}
|
|
5
|
+
`],encapsulation:2});let e=t;return e})();var Oe=[{path:"",component:ce,children:[{path:"by-url",component:ue,data:{title:"Download Product By Url"},canActivate:[Y]},{pathMatch:"full",path:"",redirectTo:"by-url"}]}],St=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=L({type:t}),t.\u0275inj=U({providers:[k],imports:[W,J,ee,ne,me,oe,G.forChild(Oe)]});let e=t;return e})();export{St as DownloadModule};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as Ee}from"./chunk-FULVA6QB.js";import{a as Ve,b as Le,c as Pe,d as We,e as Be,f as j}from"./chunk-A7YRNCQP.js";import{a as Re}from"./chunk-D2J64VUP.js";import{a as Fe}from"./chunk-6Q6L5NUD.js";import{a as Ae}from"./chunk-5YBWBAQS.js";import{c as Ie,d as Te}from"./chunk-37NOSLQL.js";import{e as ge,g as fe,k as ye,q as ve}from"./chunk-L3W6SG2T.js";import{c as Se,d as ke,k as q,s as H,t as Q,u as xe}from"./chunk-SILAIDPV.js";import{B as be,D as Ce,E as Oe,G as we,H as z,J as Me,L as De,M as Y,g as D}from"./chunk-3I2V337G.js";import{c as _e}from"./chunk-LNJUGHOX.js";import{$ as A,$b as F,A as U,Ac as k,Ad as ue,Ba as R,Bc as x,Cc as u,Dc as _,F as O,Fd as d,G as T,Gb as re,Gd as G,Ha as ee,Hb as ne,Hc as ce,Jc as B,Lc as de,Mb as le,Mc as K,Na as te,Nc as N,O as $,Qa as ie,Xc as he,Zb as S,Zc as pe,aa as E,bc as V,ca as g,f as C,gc as L,hc as o,ic as m,jc as se,na as J,nb as p,pa as w,qc as P,qd as me,ra as l,sb as M,v as I,vc as b,xa as f,xc as v,ya as y,yb as ae,yc as oe,za as Z,zc as W}from"./chunk-ZYJ6LAJ3.js";var Xe=["trigger"],Ue=["panel"],$e=[[["mat-select-trigger"]],"*"],Je=["mat-select-trigger","*"];function Ze(r,c){if(r&1&&(o(0,"span",4),K(1),m()),r&2){let e=v();p(),N(e.placeholder)}}function et(r,c){r&1&&W(0)}function tt(r,c){if(r&1&&(o(0,"span",11),K(1),m()),r&2){let e=v(2);p(),N(e.triggerValue)}}function it(r,c){if(r&1&&(o(0,"span",5),F(1,et,1,0)(2,tt,2,1,"span",11),m()),r&2){let e=v();p(),V(e.customTrigger?1:2)}}function at(r,c){if(r&1){let e=P();o(0,"div",12,1),b("keydown",function(i){f(e);let a=v();return y(a._handleKeydown(i))}),W(2,1),m()}if(r&2){let e=v();de(he("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme())),B("mat-select-panel-animations-enabled",!e._animationsDisabled),L("ngClass",e.panelClass),S("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var qe=new w("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let r=l(R);return()=>q(r)}});function rt(r){let c=l(R);return()=>q(c)}var nt=new w("MAT_SELECT_CONFIG"),lt={provide:qe,deps:[],useFactory:rt},st=new w("MatSelectTrigger"),X=class{source;value;constructor(c,e){this.source=c,this.value=e}},Bt=(()=>{class r{_viewportRuler=l(Se);_changeDetectorRef=l(ue);_elementRef=l(ie);_dir=l(Me,{optional:!0});_idGenerator=l(Ce);_renderer=l(ae);_parentFormField=l(Te,{optional:!0});ngControl=l(fe,{self:!0,optional:!0});_liveAnnouncer=l(be);_defaultOptions=l(nt,{optional:!0});_animationsDisabled=De();_initialized=new C;_cleanupDetach;options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(e){let t=this.options.toArray()[e];if(t){let i=this.panel.nativeElement,a=We(e,this.options,this.optionGroups),n=t._getHostElement();e===0&&a===1?i.scrollTop=0:i.scrollTop=Be(n.offsetTop,n.offsetHeight,i.scrollTop,i.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new X(this,e)}_scrollStrategyFactory=l(qe);_panelOpen=!1;_compareWith=(e,t)=>e===t;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new C;_errorStateTracker;stateChanges=new C;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=ee(!1);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(ge.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=U(()=>{let e=this.options;return e?e.changes.pipe(A(e),E(()=>O(...e.map(t=>t.onSelectionChange)))):this._initialized.pipe(E(()=>this.optionSelectionChanges))});openedChange=new M;_openedStream=this.openedChange.pipe(T(e=>e),I(()=>{}));_closedStream=this.openedChange.pipe(T(e=>!e),I(()=>{}));selectionChange=new M;valueChange=new M;constructor(){let e=l(Fe),t=l(ye,{optional:!0}),i=l(ve,{optional:!0}),a=l(new me("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new Re(e,this.ngControl,i,t,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=a==null?0:parseInt(a)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Ee(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(g(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(g(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(A(null),g(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){let i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?i.setAttribute("aria-labelledby",e):i.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(this._previousControl!==void 0&&t.disabled!==null&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._cleanupDetach?.(),this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe($(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let t=`${this.id}-panel`;this._trackedModal&&z(this._trackedModal,"aria-owns",t),we(e,"aria-owns",t),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;z(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{t(),clearTimeout(i),this._cleanupDetach=void 0};let e=this.panel.nativeElement,t=this._renderer.listen(e,"animationend",a=>{a.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),i=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);e.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let t=e.keyCode,i=t===40||t===38||t===37||t===39,a=t===13||t===32,n=this._keyManager;if(!n.isTyping()&&a&&!D(e)||(this.multiple||e.altKey)&&i)e.preventDefault(),this.open();else if(!this.multiple){let h=this.selected;n.onKeydown(e);let s=this.selected;s&&h!==s&&this._liveAnnouncer.announce(s.viewValue,1e4)}}_handleOpenKeydown(e){let t=this._keyManager,i=e.keyCode,a=i===40||i===38,n=t.isTyping();if(a&&e.altKey)e.preventDefault(),this.close();else if(!n&&(i===13||i===32)&&t.activeItem&&!D(e))e.preventDefault(),t.activeItem._selectViaInteraction();else if(!n&&this._multiple&&i===65&&e.ctrlKey){e.preventDefault();let h=this.options.some(s=>!s.disabled&&!s.selected);this.options.forEach(s=>{s.disabled||(h?s.select():s.deselect())})}else{let h=t.activeItemIndex;t.onKeydown(e),this._multiple&&a&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==h&&t.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!D(e)&&(e.preventDefault(),this.close())}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{let t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let t=this.options.find(i=>{if(this._selectionModel.isSelected(i))return!1;try{return(i.value!=null||this.canSelectNullableOptions)&&this._compareWith(i.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof H?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new Oe(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=O(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(g(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),O(...this.options.map(t=>t._stateChanges)).pipe(g(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,t){let i=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(i!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())),i!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((t,i)=>this.sortComparator?this.sortComparator(t,i,e):e.indexOf(t)-e.indexOf(i)),this.stateChanges.next()}}_propagateChanges(e){let t;this.multiple?t=this.selected.map(i=>i.value):t=this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let t=0;t<this.options.length;t++)if(!this.options.get(t).disabled){e=t;break}this._keyManager.setActiveItem(e)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,t=e?e+" ":"";return this.ariaLabelledby?t+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e||(e=this._valueId),e}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=re({type:r,selectors:[["mat-select"]],contentQueries:function(t,i,a){if(t&1&&(k(a,st,5),k(a,Pe,5),k(a,Le,5)),t&2){let n;u(n=_())&&(i.customTrigger=n.first),u(n=_())&&(i.options=n),u(n=_())&&(i.optionGroups=n)}},viewQuery:function(t,i){if(t&1&&(x(Xe,5),x(Ue,5),x(Q,5)),t&2){let a;u(a=_())&&(i.trigger=a.first),u(a=_())&&(i.panel=a.first),u(a=_())&&(i._overlayDir=a.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(t,i){t&1&&b("keydown",function(n){return i._handleKeydown(n)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),t&2&&(S("id",i.id)("tabindex",i.disabled?-1:i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),B("mat-mdc-select-disabled",i.disabled)("mat-mdc-select-invalid",i.errorState)("mat-mdc-select-required",i.required)("mat-mdc-select-empty",i.empty)("mat-mdc-select-multiple",i.multiple)("mat-select-open",i.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",d],disableRipple:[2,"disableRipple","disableRipple",d],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:G(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",d],placeholder:"placeholder",required:[2,"required","required",d],multiple:[2,"multiple","multiple",d],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",d],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",G],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",d]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[pe([{provide:Ie,useExisting:r},{provide:Ve,useExisting:r}]),te],ngContentSelectors:Je,decls:11,vars:9,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(t,i){if(t&1){let a=P();oe($e),o(0,"div",2,0),b("click",function(){return f(a),y(i.open())}),o(3,"div",3),F(4,Ze,2,1,"span",4)(5,it,3,1,"span",5),m(),o(6,"div",6)(7,"div",7),Z(),o(8,"svg",8),se(9,"path",9),m()()()(),le(10,at,3,10,"ng-template",10),b("detach",function(){return f(a),y(i.close())})("backdropClick",function(){return f(a),y(i.close())})("overlayKeydown",function(h){return f(a),y(i._handleOverlayKeydown(h))})}if(t&2){let a=ce(1);p(3),S("id",i._valueId),p(),V(i.empty?4:5),p(6),L("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",i._preferredOverlayOrigin||a)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayWidth",i._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)}},dependencies:[H,Q,_e],styles:[`@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-select-open .mat-mdc-select-arrow{transform:rotate(180deg)}.mat-form-field-animations-enabled .mat-mdc-select-arrow{transition:transform 80ms linear}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))}
|
|
1
|
+
import{a as Ve,b as Le,c as Pe,d as We,e as Be,f as j}from"./chunk-ZTHO6JJM.js";import{b as Ee}from"./chunk-FULVA6QB.js";import{a as Re}from"./chunk-D2J64VUP.js";import{a as Fe}from"./chunk-6Q6L5NUD.js";import{a as Ae}from"./chunk-4YCSITNV.js";import{c as Ie,d as Te}from"./chunk-WHHW4IZT.js";import{e as ge,g as fe,k as ye,q as ve}from"./chunk-L3W6SG2T.js";import{c as Se,d as ke,k as q,s as H,t as Q,u as xe}from"./chunk-STYL7ETF.js";import{C as be,E as Ce,F as Oe,H as we,I as z,K as Me,N as De,O as Y,g as D}from"./chunk-XLIPGDSC.js";import{c as _e}from"./chunk-LNJUGHOX.js";import{$ as A,$b as F,A as U,Ac as k,Ad as ue,Ba as R,Bc as x,Cc as u,Dc as _,F as O,Fd as d,G as T,Gb as re,Gd as G,Ha as ee,Hb as ne,Hc as ce,Jc as B,Lc as de,Mb as le,Mc as K,Na as te,Nc as N,O as $,Qa as ie,Xc as he,Zb as S,Zc as pe,aa as E,bc as V,ca as g,f as C,gc as L,hc as o,ic as m,jc as se,na as J,nb as p,pa as w,qc as P,qd as me,ra as l,sb as M,v as I,vc as b,xa as f,xc as v,ya as y,yb as ae,yc as oe,za as Z,zc as W}from"./chunk-ZYJ6LAJ3.js";var Xe=["trigger"],Ue=["panel"],$e=[[["mat-select-trigger"]],"*"],Je=["mat-select-trigger","*"];function Ze(r,c){if(r&1&&(o(0,"span",4),K(1),m()),r&2){let e=v();p(),N(e.placeholder)}}function et(r,c){r&1&&W(0)}function tt(r,c){if(r&1&&(o(0,"span",11),K(1),m()),r&2){let e=v(2);p(),N(e.triggerValue)}}function it(r,c){if(r&1&&(o(0,"span",5),F(1,et,1,0)(2,tt,2,1,"span",11),m()),r&2){let e=v();p(),V(e.customTrigger?1:2)}}function at(r,c){if(r&1){let e=P();o(0,"div",12,1),b("keydown",function(i){f(e);let a=v();return y(a._handleKeydown(i))}),W(2,1),m()}if(r&2){let e=v();de(he("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme())),B("mat-select-panel-animations-enabled",!e._animationsDisabled),L("ngClass",e.panelClass),S("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var qe=new w("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let r=l(R);return()=>q(r)}});function rt(r){let c=l(R);return()=>q(c)}var nt=new w("MAT_SELECT_CONFIG"),lt={provide:qe,deps:[],useFactory:rt},st=new w("MatSelectTrigger"),X=class{source;value;constructor(c,e){this.source=c,this.value=e}},Bt=(()=>{class r{_viewportRuler=l(Se);_changeDetectorRef=l(ue);_elementRef=l(ie);_dir=l(Me,{optional:!0});_idGenerator=l(Ce);_renderer=l(ae);_parentFormField=l(Te,{optional:!0});ngControl=l(fe,{self:!0,optional:!0});_liveAnnouncer=l(be);_defaultOptions=l(nt,{optional:!0});_animationsDisabled=De();_initialized=new C;_cleanupDetach;options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(e){let t=this.options.toArray()[e];if(t){let i=this.panel.nativeElement,a=We(e,this.options,this.optionGroups),n=t._getHostElement();e===0&&a===1?i.scrollTop=0:i.scrollTop=Be(n.offsetTop,n.offsetHeight,i.scrollTop,i.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new X(this,e)}_scrollStrategyFactory=l(qe);_panelOpen=!1;_compareWith=(e,t)=>e===t;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new C;_errorStateTracker;stateChanges=new C;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=ee(!1);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(ge.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=U(()=>{let e=this.options;return e?e.changes.pipe(A(e),E(()=>O(...e.map(t=>t.onSelectionChange)))):this._initialized.pipe(E(()=>this.optionSelectionChanges))});openedChange=new M;_openedStream=this.openedChange.pipe(T(e=>e),I(()=>{}));_closedStream=this.openedChange.pipe(T(e=>!e),I(()=>{}));selectionChange=new M;valueChange=new M;constructor(){let e=l(Fe),t=l(ye,{optional:!0}),i=l(ve,{optional:!0}),a=l(new me("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new Re(e,this.ngControl,i,t,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=a==null?0:parseInt(a)||0,this.id=this.id}ngOnInit(){this._selectionModel=new Ee(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(g(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(g(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(A(null),g(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){let i=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?i.setAttribute("aria-labelledby",e):i.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(this._previousControl!==void 0&&t.disabled!==null&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._cleanupDetach?.(),this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe($(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let t=`${this.id}-panel`;this._trackedModal&&z(this._trackedModal,"aria-owns",t),we(e,"aria-owns",t),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;z(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{t(),clearTimeout(i),this._cleanupDetach=void 0};let e=this.panel.nativeElement,t=this._renderer.listen(e,"animationend",a=>{a.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),i=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);e.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let t=e.keyCode,i=t===40||t===38||t===37||t===39,a=t===13||t===32,n=this._keyManager;if(!n.isTyping()&&a&&!D(e)||(this.multiple||e.altKey)&&i)e.preventDefault(),this.open();else if(!this.multiple){let h=this.selected;n.onKeydown(e);let s=this.selected;s&&h!==s&&this._liveAnnouncer.announce(s.viewValue,1e4)}}_handleOpenKeydown(e){let t=this._keyManager,i=e.keyCode,a=i===40||i===38,n=t.isTyping();if(a&&e.altKey)e.preventDefault(),this.close();else if(!n&&(i===13||i===32)&&t.activeItem&&!D(e))e.preventDefault(),t.activeItem._selectViaInteraction();else if(!n&&this._multiple&&i===65&&e.ctrlKey){e.preventDefault();let h=this.options.some(s=>!s.disabled&&!s.selected);this.options.forEach(s=>{s.disabled||(h?s.select():s.deselect())})}else{let h=t.activeItemIndex;t.onKeydown(e),this._multiple&&a&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==h&&t.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!D(e)&&(e.preventDefault(),this.close())}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{let t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let t=this.options.find(i=>{if(this._selectionModel.isSelected(i))return!1;try{return(i.value!=null||this.canSelectNullableOptions)&&this._compareWith(i.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof H?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new Oe(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=O(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(g(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),O(...this.options.map(t=>t._stateChanges)).pipe(g(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,t){let i=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(i!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())),i!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((t,i)=>this.sortComparator?this.sortComparator(t,i,e):e.indexOf(t)-e.indexOf(i)),this.stateChanges.next()}}_propagateChanges(e){let t;this.multiple?t=this.selected.map(i=>i.value):t=this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let t=0;t<this.options.length;t++)if(!this.options.get(t).disabled){e=t;break}this._keyManager.setActiveItem(e)}else this._keyManager.setActiveItem(this._selectionModel.selected[0])}_canOpen(){return!this._panelOpen&&!this.disabled&&this.options?.length>0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,t=e?e+" ":"";return this.ariaLabelledby?t+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e||(e=this._valueId),e}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(t){return new(t||r)};static \u0275cmp=re({type:r,selectors:[["mat-select"]],contentQueries:function(t,i,a){if(t&1&&(k(a,st,5),k(a,Pe,5),k(a,Le,5)),t&2){let n;u(n=_())&&(i.customTrigger=n.first),u(n=_())&&(i.options=n),u(n=_())&&(i.optionGroups=n)}},viewQuery:function(t,i){if(t&1&&(x(Xe,5),x(Ue,5),x(Q,5)),t&2){let a;u(a=_())&&(i.trigger=a.first),u(a=_())&&(i.panel=a.first),u(a=_())&&(i._overlayDir=a.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(t,i){t&1&&b("keydown",function(n){return i._handleKeydown(n)})("focus",function(){return i._onFocus()})("blur",function(){return i._onBlur()}),t&2&&(S("id",i.id)("tabindex",i.disabled?-1:i.tabIndex)("aria-controls",i.panelOpen?i.id+"-panel":null)("aria-expanded",i.panelOpen)("aria-label",i.ariaLabel||null)("aria-required",i.required.toString())("aria-disabled",i.disabled.toString())("aria-invalid",i.errorState)("aria-activedescendant",i._getAriaActiveDescendant()),B("mat-mdc-select-disabled",i.disabled)("mat-mdc-select-invalid",i.errorState)("mat-mdc-select-required",i.required)("mat-mdc-select-empty",i.empty)("mat-mdc-select-multiple",i.multiple)("mat-select-open",i.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",d],disableRipple:[2,"disableRipple","disableRipple",d],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:G(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",d],placeholder:"placeholder",required:[2,"required","required",d],multiple:[2,"multiple","multiple",d],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",d],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",G],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",d]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[pe([{provide:Ie,useExisting:r},{provide:Ve,useExisting:r}]),te],ngContentSelectors:Je,decls:11,vars:9,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(t,i){if(t&1){let a=P();oe($e),o(0,"div",2,0),b("click",function(){return f(a),y(i.open())}),o(3,"div",3),F(4,Ze,2,1,"span",4)(5,it,3,1,"span",5),m(),o(6,"div",6)(7,"div",7),Z(),o(8,"svg",8),se(9,"path",9),m()()()(),le(10,at,3,10,"ng-template",10),b("detach",function(){return f(a),y(i.close())})("backdropClick",function(){return f(a),y(i.close())})("overlayKeydown",function(h){return f(a),y(i._handleOverlayKeydown(h))})}if(t&2){let a=ce(1);p(3),S("id",i._valueId),p(),V(i.empty?4:5),p(6),L("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",i._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",i._scrollStrategy)("cdkConnectedOverlayOrigin",i._preferredOverlayOrigin||a)("cdkConnectedOverlayPositions",i._positions)("cdkConnectedOverlayWidth",i._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)}},dependencies:[H,Q,_e],styles:[`@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-select-open .mat-mdc-select-arrow{transform:rotate(180deg)}.mat-form-field-animations-enabled .mat-mdc-select-arrow{transition:transform 80ms linear}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))}
|
|
2
2
|
`],encapsulation:2,changeDetection:0})}return r})();var Kt=(()=>{class r{static \u0275fac=function(t){return new(t||r)};static \u0275mod=ne({type:r});static \u0275inj=J({providers:[lt],imports:[xe,j,Y,ke,Ae,j,Y]})}return r})();export{Bt as a,Kt as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ca as l,Hb as y,Ib as _,ma as a,na as u,pa as p,ra as s,sb as f,tb as m,vc as h}from"./chunk-ZYJ6LAJ3.js";var r=class{_document;_textarea;constructor(n,t){this._document=t;let e=this._textarea=this._document.createElement("textarea"),i=e.style;i.position="fixed",i.top=i.opacity="0",i.left="-999em",e.setAttribute("aria-hidden","true"),e.value=n,e.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(e)}copy(){let n=this._textarea,t=!1;try{if(n){let e=this._document.activeElement;n.select(),n.setSelectionRange(0,n.value.length),t=this._document.execCommand("copy"),e&&e.focus()}}catch{}return t}destroy(){let n=this._textarea;n&&(n.remove(),this._textarea=void 0)}},C=(()=>{class o{_document=s(l);constructor(){}copy(t){let e=this.beginCopy(t),i=e.copy();return e.destroy(),i}beginCopy(t){return new r(t,this._document)}static \u0275fac=function(e){return new(e||o)};static \u0275prov=a({token:o,factory:o.\u0275fac,providedIn:"root"})}return o})(),g=new p("CDK_COPY_TO_CLIPBOARD_CONFIG"),I=(()=>{class o{_clipboard=s(C);_ngZone=s(m);text="";attempts=1;copied=new f;_pending=new Set;_destroyed;_currentTimeout;constructor(){let t=s(g,{optional:!0});t&&t.attempts!=null&&(this.attempts=t.attempts)}copy(t=this.attempts){if(t>1){let e=t,i=this._clipboard.beginCopy(this.text);this._pending.add(i);let c=()=>{let d=i.copy();!d&&--e&&!this._destroyed?this._currentTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(c,1)):(this._currentTimeout=null,this._pending.delete(i),i.destroy(),this.copied.emit(d))};c()}else this.copied.emit(this._clipboard.copy(this.text))}ngOnDestroy(){this._currentTimeout&&clearTimeout(this._currentTimeout),this._pending.forEach(t=>t.destroy()),this._pending.clear(),this._destroyed=!0}static \u0275fac=function(e){return new(e||o)};static \u0275dir=_({type:o,selectors:[["","cdkCopyToClipboard",""]],hostBindings:function(e,i){e&1&&h("click",function(){return i.copy()})},inputs:{text:[0,"cdkCopyToClipboard","text"],attempts:[0,"cdkCopyToClipboardAttempts","attempts"]},outputs:{copied:"cdkCopyToClipboardCopied"}})}return o})(),M=(()=>{class o{static \u0275fac=function(e){return new(e||o)};static \u0275mod=y({type:o});static \u0275inj=u({})}return o})();export{I as a,M as b};
|