marketplacepos 5.50.1 → 5.50.3
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-5C24BA5F.js → chunk-2EGTHH3W.js} +1 -1
- package/Marketplace/{chunk-3PIHLKK3.js → chunk-2FB6QJKT.js} +1 -1
- package/Marketplace/{chunk-Z6LN3X5Q.js → chunk-2KQKQSUI.js} +1 -1
- package/Marketplace/{chunk-O3QPBAV5.js → chunk-2OKZEOBU.js} +1 -1
- package/Marketplace/{chunk-2AXBEVQ7.js → chunk-2WQLSGW3.js} +1 -1
- package/Marketplace/{chunk-VH7JZJ2B.js → chunk-2Y3L7QOV.js} +1 -1
- package/Marketplace/{chunk-RZ5N5JLA.js → chunk-2ZKHC4YC.js} +1 -1
- package/Marketplace/{chunk-SIPZP62B.js → chunk-32IYUV7P.js} +1 -1
- package/Marketplace/{chunk-TKZ74HJD.js → chunk-36645CIP.js} +1 -1
- package/Marketplace/{chunk-FOKLBUX6.js → chunk-3NCMRK7E.js} +1 -1
- package/Marketplace/{chunk-RWPLFNHT.js → chunk-3PUUKJCQ.js} +1 -1
- package/Marketplace/{chunk-QMHG3QTI.js → chunk-3T5VLB63.js} +1 -1
- package/Marketplace/{chunk-KR6UNAIL.js → chunk-3WGAMHZW.js} +1 -1
- package/Marketplace/{chunk-YUPBZXLS.js → chunk-3YUIOGNI.js} +1 -1
- package/Marketplace/{chunk-G4T4VM5E.js → chunk-4GV67OQR.js} +1 -1
- package/Marketplace/chunk-53ZGHR7J.js +1 -0
- package/Marketplace/{chunk-YQZHIZHO.js → chunk-56NTLHVB.js} +1 -1
- package/Marketplace/chunk-5NWJOQN5.js +1 -0
- package/Marketplace/{chunk-YAWT3CLI.js → chunk-6F37VT6M.js} +1 -1
- package/Marketplace/{chunk-BMOMTOEW.js → chunk-6H7M43WO.js} +1 -1
- package/Marketplace/{chunk-44KIXUU2.js → chunk-6MUVEZMQ.js} +1 -1
- package/Marketplace/{chunk-IM7YH54S.js → chunk-6O446YFR.js} +1 -1
- package/Marketplace/{chunk-ZDBFIPDM.js → chunk-6Q4BDCI5.js} +1 -1
- package/Marketplace/{chunk-WAXAIL2I.js → chunk-6UM4NHOR.js} +1 -1
- package/Marketplace/{chunk-J6HA4ZHH.js → chunk-75IM3UUA.js} +1 -1
- package/Marketplace/{chunk-VP3XO25X.js → chunk-76AVMRJU.js} +1 -1
- package/Marketplace/{chunk-YMAKW4QT.js → chunk-7E4ZSLPD.js} +1 -1
- package/Marketplace/{chunk-TDMNVEUU.js → chunk-7T5DBPDP.js} +1 -1
- package/Marketplace/{chunk-IV5IPY6H.js → chunk-7VJ22OLT.js} +1 -1
- package/Marketplace/{chunk-Y3O22N4P.js → chunk-A6SP65CH.js} +1 -1
- package/Marketplace/{chunk-RN5CI3LE.js → chunk-BCK2GY66.js} +1 -1
- package/Marketplace/{chunk-DPB2343S.js → chunk-BTCNW6N3.js} +1 -1
- package/Marketplace/{chunk-ALLZQ6Y3.js → chunk-BTJN72MC.js} +1 -1
- package/Marketplace/{chunk-C2LAQOUW.js → chunk-BZWZ64N5.js} +1 -1
- package/Marketplace/{chunk-BC6LHZWP.js → chunk-C37O5TBF.js} +1 -1
- package/Marketplace/{chunk-DDFP4CNP.js → chunk-C4MTEDSW.js} +1 -1
- package/Marketplace/{chunk-6NS3D6KQ.js → chunk-C67KF7MG.js} +1 -1
- package/Marketplace/{chunk-TDP3PQDA.js → chunk-CBULW22C.js} +1 -1
- package/Marketplace/{chunk-MIGPO7BO.js → chunk-CFJAZJYY.js} +1 -1
- package/Marketplace/{chunk-6GNIJWEX.js → chunk-CGDIULPW.js} +1 -1
- package/Marketplace/chunk-CGSMHTKB.js +2 -0
- package/Marketplace/{chunk-A53NYS6S.js → chunk-CIVDQKQZ.js} +1 -1
- package/Marketplace/{chunk-B5ZK5TGW.js → chunk-CIWFLDCI.js} +1 -1
- package/Marketplace/{chunk-BAW6PICI.js → chunk-CKFHJ3IS.js} +1 -1
- package/Marketplace/{chunk-H6YNHOUQ.js → chunk-CQBHWYUO.js} +1 -1
- package/Marketplace/{chunk-V6QH3IVL.js → chunk-CUSAKJLC.js} +1 -1
- package/Marketplace/{chunk-N3E43QWK.js → chunk-CVHFVFZQ.js} +1 -1
- package/Marketplace/{chunk-MM7SAZOU.js → chunk-D6JH2KV4.js} +1 -1
- package/Marketplace/{chunk-EH3PIGLJ.js → chunk-DE3FRI5N.js} +1 -1
- package/Marketplace/{chunk-ESBL3IFN.js → chunk-DIDUSCV7.js} +1 -1
- package/Marketplace/{chunk-4KGXKQPG.js → chunk-DMENVSHH.js} +1 -1
- package/Marketplace/{chunk-52YCKO3Z.js → chunk-E7LOFZQV.js} +1 -1
- package/Marketplace/{chunk-UB62TZOI.js → chunk-ET33HPF3.js} +1 -1
- package/Marketplace/{chunk-NTU64XT4.js → chunk-EV6TBBSW.js} +1 -1
- package/Marketplace/{chunk-UMMQ62IZ.js → chunk-FBXKHJ2G.js} +1 -1
- package/Marketplace/{chunk-RHMSGY7X.js → chunk-FDVRSAF3.js} +1 -1
- package/Marketplace/{chunk-QQF5ZMGS.js → chunk-FH2KAM6J.js} +1 -1
- package/Marketplace/{chunk-MAQQQB3T.js → chunk-FMZLGD5H.js} +1 -1
- package/Marketplace/{chunk-GJC736LV.js → chunk-FO75JP2L.js} +1 -1
- package/Marketplace/{chunk-AJSJJV2I.js → chunk-FPJTI4LM.js} +1 -1
- package/Marketplace/{chunk-RFWRWMRC.js → chunk-FS3VTRY2.js} +1 -1
- package/Marketplace/{chunk-Z2XRGVGT.js → chunk-FSOZOROI.js} +1 -1
- package/Marketplace/{chunk-UMLV2ZUF.js → chunk-GLBJ4Y4T.js} +1 -1
- package/Marketplace/{chunk-YX65R6YJ.js → chunk-GLQBRY2Y.js} +1 -1
- package/Marketplace/{chunk-2NRHX6CZ.js → chunk-GNXSEYJF.js} +1 -1
- package/Marketplace/{chunk-FLNIURLD.js → chunk-GQT5IVF5.js} +1 -1
- package/Marketplace/{chunk-HGVFXR6T.js → chunk-HAZ7U3MT.js} +1 -1
- package/Marketplace/{chunk-AQVMOA6Z.js → chunk-HBWX22FY.js} +1 -1
- package/Marketplace/chunk-HHDJUCIT.js +1 -0
- package/Marketplace/{chunk-S5XYWXXP.js → chunk-HMDHDMIC.js} +1 -1
- package/Marketplace/{chunk-JYSOUJ42.js → chunk-HWMXSD34.js} +1 -1
- package/Marketplace/{chunk-OCXIDX74.js → chunk-I6YNUCDO.js} +1 -1
- package/Marketplace/{chunk-5WT456T7.js → chunk-IA7NJXJD.js} +1 -1
- package/Marketplace/{chunk-7QP3VZ6H.js → chunk-INSRQ7YT.js} +1 -1
- package/Marketplace/{chunk-TOK5EWN4.js → chunk-IQGRGC3E.js} +1 -1
- package/Marketplace/{chunk-TYQYNICX.js → chunk-IQX2CRL5.js} +1 -1
- package/Marketplace/{chunk-QMIL5QUX.js → chunk-ITY2KKS5.js} +1 -1
- package/Marketplace/{chunk-PBAFAOKJ.js → chunk-IXURR6VG.js} +1 -1
- package/Marketplace/{chunk-O4D64GHO.js → chunk-IZZY74PN.js} +1 -1
- package/Marketplace/{chunk-QJCYEP2A.js → chunk-J3XO6ZVT.js} +1 -1
- package/Marketplace/{chunk-VZ7Q4WN7.js → chunk-JEJHGIUU.js} +1 -1
- package/Marketplace/{chunk-ENYJ4KAM.js → chunk-JG7M73IA.js} +1 -1
- package/Marketplace/{chunk-KSRL7Y2J.js → chunk-JHSG3KRS.js} +1 -1
- package/Marketplace/{chunk-LUJ3SHSP.js → chunk-JKRELT7N.js} +1 -1
- package/Marketplace/{chunk-BXNDE6NQ.js → chunk-JLDXWNDU.js} +1 -1
- package/Marketplace/{chunk-RBZU7OVM.js → chunk-JMRRXRKO.js} +1 -1
- package/Marketplace/{chunk-OSGPJXJZ.js → chunk-JPWGFXZT.js} +1 -1
- package/Marketplace/{chunk-SPLGZRGH.js → chunk-JRCXHF2X.js} +1 -1
- package/Marketplace/{chunk-RXC5D64C.js → chunk-JTKEMQZT.js} +1 -1
- package/Marketplace/{chunk-NVPT5BF2.js → chunk-JU4ZP3HI.js} +1 -1
- package/Marketplace/{chunk-6C4UBIZK.js → chunk-K4Q33QIR.js} +1 -1
- package/Marketplace/{chunk-OVZRFDFO.js → chunk-KDJVMFOK.js} +1 -1
- package/Marketplace/{chunk-QOSWDELZ.js → chunk-KKQ32Z72.js} +1 -1
- package/Marketplace/{chunk-KNBXCPTA.js → chunk-KMNWLBEP.js} +1 -1
- package/Marketplace/{chunk-KTTKHI2N.js → chunk-KNE2UYQ2.js} +1 -1
- package/Marketplace/{chunk-SABMHH6B.js → chunk-KOQLZV3N.js} +1 -1
- package/Marketplace/{chunk-PN3KM4M4.js → chunk-KOUB5HRK.js} +1 -1
- package/Marketplace/{chunk-MTVUPPAN.js → chunk-L4EPB2CQ.js} +1 -1
- package/Marketplace/{chunk-SMZOSLIK.js → chunk-L6CRWJ2O.js} +1 -1
- package/Marketplace/{chunk-G3B6ETBU.js → chunk-LZHM5AMX.js} +1 -1
- package/Marketplace/{chunk-4S4BOPUV.js → chunk-M27MYADT.js} +1 -1
- package/Marketplace/{chunk-GVJLKDIO.js → chunk-MAT6VW43.js} +1 -1
- package/Marketplace/{chunk-P3XVM6DH.js → chunk-MHIYVGFS.js} +1 -1
- package/Marketplace/{chunk-M3DUXHYE.js → chunk-MORMHJFP.js} +1 -1
- package/Marketplace/{chunk-JM3NLPH4.js → chunk-MS5NHG4Z.js} +1 -1
- package/Marketplace/{chunk-GG3X4R7G.js → chunk-MSSRROS6.js} +1 -1
- package/Marketplace/{chunk-KUKTPGJ2.js → chunk-MYJZFEAZ.js} +1 -1
- package/Marketplace/{chunk-LQ3VUWFK.js → chunk-MZWP4SZF.js} +2 -2
- package/Marketplace/{chunk-TMBZ4K5S.js → chunk-N4MYHIMN.js} +1 -1
- package/Marketplace/{chunk-5UFP37GQ.js → chunk-NB2H6KA7.js} +1 -1
- package/Marketplace/{chunk-GDHNMHJZ.js → chunk-NGQFZI6A.js} +1 -1
- package/Marketplace/{chunk-YD6BNJ2B.js → chunk-NJNRUDU6.js} +1 -1
- package/Marketplace/{chunk-7R2D2JZ6.js → chunk-O3BS4AC6.js} +1 -1
- package/Marketplace/{chunk-O4U34AC7.js → chunk-OH5T7D7O.js} +1 -1
- package/Marketplace/{chunk-W33M7S2S.js → chunk-OHAT7WXU.js} +1 -1
- package/Marketplace/{chunk-IDGK6BMG.js → chunk-PCOAEOIL.js} +1 -1
- package/Marketplace/{chunk-M7TUSCXB.js → chunk-PFP5WMC3.js} +1 -1
- package/Marketplace/chunk-PHVEBMTE.js +1 -0
- package/Marketplace/{chunk-JV4F6ZYF.js → chunk-PKYMYIGB.js} +1 -1
- package/Marketplace/{chunk-YABJCAAL.js → chunk-PUSOOHGT.js} +1 -1
- package/Marketplace/{chunk-XLQGQESJ.js → chunk-PV4OJSZI.js} +1 -1
- package/Marketplace/{chunk-FFJXYPVA.js → chunk-Q44OVAQU.js} +1 -1
- package/Marketplace/{chunk-WIRBYT7F.js → chunk-QETZ5VDX.js} +1 -1
- package/Marketplace/{chunk-BYL4N2KB.js → chunk-QJASIA27.js} +1 -1
- package/Marketplace/{chunk-WIBWF333.js → chunk-QJH7APJQ.js} +1 -1
- package/Marketplace/{chunk-IIJEILDV.js → chunk-QJU2YGUH.js} +1 -1
- package/Marketplace/{chunk-GBF6A3MS.js → chunk-QWEMPIP7.js} +1 -1
- package/Marketplace/{chunk-FMXX7QB5.js → chunk-QZMWXAUJ.js} +1 -1
- package/Marketplace/{chunk-2ST3DMR6.js → chunk-R2XKB6UH.js} +1 -1
- package/Marketplace/{chunk-PWOKOWVV.js → chunk-RIIIECQH.js} +1 -1
- package/Marketplace/{chunk-24KZDZKS.js → chunk-RO7WOCSA.js} +1 -1
- package/Marketplace/{chunk-FEQXCPQI.js → chunk-RPHZK33A.js} +1 -1
- package/Marketplace/{chunk-MV2PLTWF.js → chunk-RRRPWDKB.js} +1 -1
- package/Marketplace/{chunk-OGF4VFSK.js → chunk-RZXE2MFY.js} +1 -1
- package/Marketplace/{chunk-WVA5LYVE.js → chunk-S22I47XG.js} +1 -1
- package/Marketplace/chunk-S2ZFBPPJ.js +1 -0
- package/Marketplace/{chunk-2K5AP6IZ.js → chunk-S3H2JVI7.js} +1 -1
- package/Marketplace/{chunk-BUMWMFHU.js → chunk-SNRWOTPO.js} +1 -1
- package/Marketplace/{chunk-NIJCYMZM.js → chunk-STOW2RQN.js} +1 -1
- package/Marketplace/{chunk-HORS2MKK.js → chunk-T5NCGRUA.js} +1 -1
- package/Marketplace/{chunk-JYP3Z3TV.js → chunk-TOPYLZOF.js} +1 -1
- package/Marketplace/{chunk-3HME327V.js → chunk-TQROQOXU.js} +1 -1
- package/Marketplace/{chunk-TZTW72NT.js → chunk-TUY6YGYA.js} +1 -1
- package/Marketplace/{chunk-AHMFSCTX.js → chunk-TVEI5B2O.js} +1 -1
- package/Marketplace/{chunk-R3WIWDSP.js → chunk-TYSM3R5E.js} +1 -1
- package/Marketplace/{chunk-NQLMPUSB.js → chunk-UB3ZV5NW.js} +1 -1
- package/Marketplace/{chunk-A2RTZANN.js → chunk-UDNUDL5Z.js} +1 -1
- package/Marketplace/{chunk-YNL43MLU.js → chunk-UEXWQT5J.js} +1 -1
- package/Marketplace/{chunk-UE5E7JXK.js → chunk-UMIGDHOS.js} +1 -1
- package/Marketplace/{chunk-ZRTUQNSQ.js → chunk-UMJVPGHV.js} +1 -1
- package/Marketplace/{chunk-HNDBAXI5.js → chunk-UWKDFRVX.js} +1 -1
- package/Marketplace/{chunk-4G46574H.js → chunk-VA7NXG7X.js} +1 -1
- package/Marketplace/{chunk-5QDH4ZNS.js → chunk-VBQKMNR3.js} +1 -1
- package/Marketplace/{chunk-6F62N7RZ.js → chunk-VG66LDXQ.js} +1 -1
- package/Marketplace/{chunk-MT3CWRVG.js → chunk-VVNLTDLG.js} +1 -1
- package/Marketplace/{chunk-ZGIYCORM.js → chunk-VYI7JYH5.js} +1 -1
- package/Marketplace/{chunk-X52ZT4MU.js → chunk-WAZWPRUG.js} +1 -1
- package/Marketplace/chunk-WD3ADLM3.js +1 -0
- package/Marketplace/chunk-WIRXMAIF.js +1 -0
- package/Marketplace/{chunk-IVKFEOCB.js → chunk-WTHYLNPX.js} +1 -1
- package/Marketplace/{chunk-YYV4FSYQ.js → chunk-X2CTSYKS.js} +1 -1
- package/Marketplace/{chunk-LYN2PNQK.js → chunk-X2WAAZ7G.js} +1 -1
- package/Marketplace/{chunk-2UNT2DUM.js → chunk-XCGXT3P7.js} +1 -1
- package/Marketplace/{chunk-IF7EJSQG.js → chunk-XHWASSX2.js} +1 -1
- package/Marketplace/{chunk-67LUKQJC.js → chunk-XMU7MXAM.js} +1 -1
- package/Marketplace/{chunk-7X4B2T6C.js → chunk-XTNXL2IY.js} +1 -1
- package/Marketplace/{chunk-7HRL6MHY.js → chunk-XW5PNJJ3.js} +1 -1
- package/Marketplace/{chunk-TYNQDFOT.js → chunk-XYRET5HT.js} +1 -1
- package/Marketplace/{chunk-U5DJYZUI.js → chunk-XYZI7ZXN.js} +1 -1
- package/Marketplace/{chunk-E4RY2MK5.js → chunk-YCKLOFMA.js} +1 -1
- package/Marketplace/{chunk-HJZ3XPSH.js → chunk-YDNXBOLU.js} +1 -1
- package/Marketplace/{chunk-FNOENLVR.js → chunk-YEU5TPRD.js} +1 -1
- package/Marketplace/{chunk-34ZZ4GCS.js → chunk-YLQBIIZH.js} +1 -1
- package/Marketplace/{chunk-4YKPN3RV.js → chunk-YQPAS2RI.js} +1 -1
- package/Marketplace/{chunk-LKJCOEGO.js → chunk-YZQDWPFY.js} +1 -1
- package/Marketplace/chunk-Z3PLQ27X.js +1 -0
- package/Marketplace/{chunk-OIWQSDTS.js → chunk-Z3YSNML6.js} +1 -1
- package/Marketplace/{chunk-LQPY6AYJ.js → chunk-Z4RYN6X5.js} +1 -1
- package/Marketplace/chunk-ZLJBRQ5V.js +1 -0
- package/Marketplace/{chunk-VVAEM355.js → chunk-ZM7ND6FE.js} +1 -1
- package/Marketplace/{chunk-5WQ3LCWP.js → chunk-ZZYFVEJO.js} +1 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/{main-RFMKGIMO.js → main-7TBLEURN.js} +1 -1
- package/package.json +1 -1
- package/Marketplace/chunk-3NAMEVOB.js +0 -1
- package/Marketplace/chunk-EGLM6YK5.js +0 -1
- package/Marketplace/chunk-FTIUJUXI.js +0 -1
- package/Marketplace/chunk-JNRCB7N3.js +0 -2
- package/Marketplace/chunk-S5D64XYA.js +0 -1
- package/Marketplace/chunk-SN5AD4QE.js +0 -1
- package/Marketplace/chunk-VV4G5VL5.js +0 -1
- package/Marketplace/chunk-ZWUYPYHD.js +0 -1
- package/Marketplace/chunk-ZXP3XYSZ.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ve}from"./chunk-QQF5ZMGS.js";import{a as Se,b as we}from"./chunk-6NS3D6KQ.js";import{a as Te,b as ye}from"./chunk-LUJ3SHSP.js";import{a as fe}from"./chunk-DLHIDOS3.js";import{a as pe,b as ge,c as ue,g as he,i as Ce,j as xe}from"./chunk-5WT456T7.js";import{a as _e}from"./chunk-YNL43MLU.js";import{b as be}from"./chunk-4S4BOPUV.js";import{a as le}from"./chunk-A2RTZANN.js";import{c as me}from"./chunk-O4D64GHO.js";import{a as D}from"./chunk-ZSUWHVKX.js";import{h as se}from"./chunk-O3QPBAV5.js";import{a as ae,b as re,c as ce}from"./chunk-5UFP37GQ.js";import{c as Z}from"./chunk-UPRDDI4K.js";import{A as L,b as de,h as $,m as B}from"./chunk-WAXAIL2I.js";import{A as oe,q as te,v as ne,z as ie}from"./chunk-JNRCB7N3.js";import{G,Hb as N,Ia as R,Ic as z,Nb as T,Nc as _,Oc as F,Pc as P,Rc as E,Sc as k,Tc as O,Xc as Y,ac as u,ad as M,bd as J,ca as K,cc as h,dc as I,ec as X,f as q,fc as v,gc as S,hc as d,ic as r,id as U,jc as s,jd as H,kc as w,kd as Q,ld as ee,mb as y,ob as c,qc as j,ra as b,rc as C,tb as A,ud as V,wc as x,ya as p,yc as a,za as g}from"./chunk-OHGMB7HJ.js";function Fe(t,l){if(t&1){let e=C();r(0,"span")(1,"mat-checkbox",4),x("change",function(n){p(e);let o=a();return g(o.onSelectAll(n==null?null:n.checked))}),r(2,"h5",5),_(3,"Select All"),s()()()}}function Pe(t,l){if(t&1){let e=C();r(0,"li")(1,"mat-checkbox",6),O("ngModelChange",function(n){let o=p(e).$implicit;return k(o.selected,n)||(o.selected=n),g(n)}),r(2,"div",7),w(3,"img",8),r(4,"h5",9),_(5),s()()()()}if(t&2){let e=l.$implicit;c(),E("ngModel",e.selected),c(2),d("src",e.Img,y),c(2),F(e.Name)}}var dt=(()=>{let l=class l{constructor(){this.data=b(ge),this.dialogRef=b(pe),this.selectedItems=this.data.selectedItems,this.channels=this.data.channels}ngOnInit(){this.initModalConfig()}initModalConfig(){let i=this.data.title?this.data.title:"Updating Inventory";this.modalConfig=new Ce,this.modalConfig.title=i}onSelectAll(i){this.channels=this.channels.map(n=>(n.selected=i,n))}onOk(){this.dialogRef.close(this.channels)}onClose(){this.dialogRef.close()}get getSelectedChannel(){return this.channels.filter(i=>i.selected)}};l.\u0275fac=function(n){return new(n||l)},l.\u0275cmp=N({type:l,selectors:[["app-modal-update-channels"]],decls:7,vars:3,consts:[[3,"onOk","onClose","onCancel","dynamicValidated","config"],["content",""],[2,"overflow-y","auto","max-height","28rem"],[1,"no-bullet",2,"margin-bottom","0px !important","overflow","hidden"],["color","primary",1,"me-6",3,"change"],[1,"fw-light"],["color","primary",3,"ngModelChange","ngModel"],[1,"d-flex","align-items-center"],[1,"channelLogo-md",3,"src"],[1,"fw-light","ms-2","my-auto"]],template:function(n,o){n&1&&(r(0,"modal-material",0),x("onOk",function(){return o.onOk()})("onClose",function(){return o.onClose()})("onCancel",function(){return o.onClose()}),r(1,"div",1)(2,"div",2),u(3,Fe,4,0,"span"),r(4,"ul",3),v(5,Pe,6,3,"li",null,I),s()()()()),n&2&&(d("dynamicValidated",(o.getSelectedChannel==null?null:o.getSelectedChannel.length)>0)("config",o.modalConfig),c(3),h((o.channels==null?null:o.channels.length)>1?3:-1),c(2),S(o.channels))},dependencies:[xe,ve,L,$,B],styles:[".no-bullet[_ngcontent-%COMP%]{list-style-type:none}mat-form-field[_ngcontent-%COMP%]{width:100%;height:100%}.mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.vertical-radio[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"]});let t=l;return t})();var W=t=>[t],Ee=t=>({"text-decoration-line-through":t}),ke=t=>({"text-danger":t}),Oe=(t,l)=>({"bg-gradient-warning":t,"cell-hover pointer":l});function Ve(t,l){if(t&1){let e=C();r(0,"mat-slide-toggle",10),x("toggleChange",function(){p(e);let n=a();return n.toggleStatus=!n.toggleStatus,g(n.onToggle())}),r(1,"small",11),_(2),s()()}if(t&2){let e=a();c(2),P(" ",e.productToggleTitle?e.productToggleTitle:"FILTER DIFFERENT INVENTORY"," ")}}function De(t,l){if(t&1){let e=C();r(0,"th")(1,"input",13),O("ngModelChange",function(n){p(e);let o=a(2);return k(o.checkboxState,n)||(o.checkboxState=n),g(n)}),x("ngModelChange",function(){p(e);let n=a(2);return g(n.onCheckboxStateChange())}),s()()}if(t&2){let e=a(2);c(),E("ngModel",e.checkboxState)}}function Ne(t,l){if(t&1&&(T(0,De,2,1,"ng-template",12),r(1,"th",8),_(2,"POS"),s()),t&2){let e=a();d("ngxPermissionsOnly",M(1,W,e.rolePriceEdit))}}function Ue(t,l){if(t&1&&(r(0,"th",9)(1,"div",14)(2,"div",15),w(3,"img",16),r(4,"div",17),_(5),U(6,"stringLimit"),s()()()()),t&2){let e=l.$implicit;c(2),d("matTooltip",(e.Name==null?null:e.Name.length)>20?e.Name:""),c(),d("src",e==null?null:e.Img,y),c(2),P(" ",Q(6,3,e.Name,20)," ")}}function $e(t,l){t&1&&j(0)}function Be(t,l){if(t&1&&T(0,$e,1,0,"ng-container",29),t&2){a(2);let e=z(5);d("ngTemplateOutlet",e)}}function Le(t,l){if(t&1&&T(0,Be,1,1,"ng-template",12),t&2){let e=a(4);d("ngxPermissionsOnly",M(1,W,e.roleInventoryUpdate))}}function We(t,l){t&1&&j(0)}function Re(t,l){if(t&1&&T(0,We,1,0,"ng-container",29),t&2){a(2);let e=z(5);d("ngTemplateOutlet",e)}}function Ae(t,l){if(t&1&&T(0,Re,1,1,"ng-template",12),t&2){let e=a(4);d("ngxPermissionsOnly",M(1,W,e.rolePriceEdit))}}function je(t,l){if(t&1){let e=C();r(0,"div")(1,"input",30),O("ngModelChange",function(n){p(e);let o=a(4).$implicit;return k(o.selected,n)||(o.selected=n),g(n)}),x("ngModelChange",function(){p(e);let n=a(4).$implicit,o=a();return g(o.onCheckboxStateProduct(n.ID))}),s()()}if(t&2){let e=a(4).$implicit;c(),E("ngModel",e.selected),d("disabled",!(e!=null&&e.Category))}}function ze(t,l){if(t&1&&u(0,je,2,2,"div"),t&2){let e=a(3).$implicit;h((e==null||e.Variants==null?null:e.Variants.length)>1?0:-1)}}function He(t,l){if(t&1){let e=C();r(0,"img",31),x("click",function(n){p(e);let o=a(3).$implicit,m=a();return g(m.onZoomImage(n,o==null?null:o.ImageUrl))}),s()}if(t&2){let e=a(3).$implicit;d("src",Y(e==null?null:e.ThumbnailUrl),y)}}function Ze(t,l){t&1&&w(0,"img",26)}function qe(t,l){if(t&1&&(r(0,"td",23)(1,"div",24),u(2,Le,1,3,null,12)(3,Ae,1,3,null,12),T(4,ze,1,1,"ng-template",null,0,ee),r(6,"div"),u(7,He,1,2,"img",25)(8,Ze,1,0,"img",26),s()()(),r(9,"td",27)(10,"div"),_(11),s(),r(12,"small",28),_(13),s()()),t&2){let e=a(2).$implicit,i=a();d("rowSpan",e==null?null:e.Variants.length),c(2),h(i.table()=="inventory"?2:3),c(5),h(e!=null&&e.ThumbnailUrl?7:8),c(2),d("rowSpan",e==null?null:e.Variants.length),c(2),F(e==null?null:e.Name),c(),d("ngClass",M(7,ke,!(e!=null&&e.Category))),c(),P("(",e!=null&&e.Category?e==null?null:e.Category:"Not Found In POS",")")}}function Ge(t,l){if(t&1&&(r(0,"a",22),w(1,"i",32),s()),t&2){let e=a().$implicit,i=a(2);d("href",i.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(e==null?null:e.ID),y)}}function Ke(t,l){if(t&1){let e=C();r(0,"input",35),O("ngModelChange",function(n){p(e);let o=a(3).$implicit;return k(o.selected,n)||(o.selected=n),g(n)}),s()}if(t&2){let e=a(3).$implicit,i=a().$implicit;E("ngModel",e.selected),d("disabled",!(i!=null&&i.Category))}}function Xe(t,l){if(t&1&&(r(0,"td",33),u(1,Ke,1,2,"input",34),s()),t&2){let e=a(2).$implicit,i=a(2);c(),h(i.printPOS(e)>=0||i.table()=="price"?1:-1)}}function Ye(t,l){if(t&1&&(T(0,Xe,2,1,"ng-template",12),r(1,"td",19),_(2),U(3,"number"),s()),t&2){let e=a().$implicit,i=a(2);d("ngxPermissionsOnly",M(4,W,i.rolePriceEdit)),c(2),F(H(3,2,i.printPOS(e)))}}function Je(t,l){if(t&1){let e=C();r(0,"td",38),x("click",function(){p(e);let n=a().$implicit,o=a().$implicit,m=a().$implicit,f=a();return g(f.onUpdateData(m.Name,o,n.ID,m.ChannelItemID))}),r(1,"div",39)(2,"div",40),_(3),U(4,"number"),s(),r(5,"a",41),x("click",function(n){return p(e),g(n==null?null:n.stopPropagation())}),w(6,"i",32),s()()()}if(t&2){let e=l,i=a(2).$implicit,n=a(2);d("ngClass",J(5,Oe,n.printPOS(i)!=n.printItem(e)&&n.hiddenIPOSInventory()==!1,n.hasPriceEdit()&&n.table()=="price"||n.hasInventoryEdit()&&n.table()=="inventory")),c(3),P(" ",H(4,3,n.printItem(e))," "),c(2),d("href",e.Url,y)}}function Qe(t,l){t&1&&(r(0,"td",37)(1,"div",39)(2,"span"),_(3,"X"),s()()())}function et(t,l){if(t&1&&u(0,Je,7,8,"td",36)(1,Qe,4,0,"td",37),t&2){let e,i=l.$implicit,n=a().$implicit,o=a(2);h((e=o.getItemFromChannel(n,i))?0:1,e)}}function tt(t,l){if(t&1&&(r(0,"tr"),u(1,qe,14,9),r(2,"td",18),_(3),s(),r(4,"td",19)(5,"div",20)(6,"div",21),_(7),s(),r(8,"div",17),u(9,Ge,2,1,"a",22),s()()(),u(10,Ye,4,6),v(11,et,2,1,null,null,I),s()),t&2){let e=l.$implicit,i=l.$index,n=a().$implicit,o=a();c(),h(i==0?1:-1),c(2),F(e==null?null:e.Model),c(2),d("matTooltip",e.Discontinued?o.discontinuedVariantMsg:""),c(),d("ngClass",M(7,Ee,e.Discontinued)),c(),P(" ",e.Code," "),c(2),h(n.Category?9:-1),c(),h(o.hiddenIPOSInventory()==!1?10:-1),c(),S(o.channel())}}function nt(t,l){if(t&1&&(r(0,"tbody"),v(1,tt,13,9,"tr",null,I),s()),t&2){let e=l.$implicit;c(),S(e.Variants)}}var Nt=(()=>{let l=class l{constructor(){this.dialog=b(ue),this.biggerPictureService=b(fe),this.authService=b(se),this.permissionsService=b(ae),this.table=V(void 0),this.channel=V(void 0),this.showProductToggle=V(!1),this.multiwarehouse=V(!1),this.hiddenIPOSInventory=V(!1),this.toggleStatus=!1,this.checkboxState=!1,this.rolePriceEdit=D.PriceUpdate,this.roleInventoryUpdate=D.InventoryUpdate,this.hasPriceEdit=R(!1),this.hasInventoryEdit=R(!1),this.discontinuedVariantMsg="This Variant is discontinued from POS, you must Non Active manually at the seller center so that it is not sold again on the channel.",this.onSubmit=new A,this.destroy$=new q,this.toggle=new A,this.hostName=this.authService.getDomain()}ngOnInit(){this.initRoles();let i=this.table();i=="inventory"?this.stockHeader="Stock":i=="price"&&(this.stockHeader="Price")}initRoles(){this.permissionsService.hasPermission(D.InventoryUpdate).then(i=>this.hasInventoryEdit.set(i)),this.permissionsService.hasPermission(D.PriceUpdate).then(i=>this.hasPriceEdit.set(i))}onCheckboxStateProduct(i){let n=this.data.filter(o=>o.ID==i);n.length>0&&(n=n.map(o=>(o.Variants=o.Variants.map(m=>(m.selected=o.selected,m)),o)))}onCheckboxStateChange(){this.data=this.data.map(i=>(i.Variants=i.Variants.map(n=>(n.selected=this.checkboxState,n)),i))}getItemFromChannel(i,n){return i.Channel.find(m=>Z.IsNotEmpty(n.LocationID)?m.LocationID==n.LocationID:m.ChannelID==n.ID)}printItem(i){let n=this.table();if(n=="inventory")return i.Inventory;if(n=="price")return i.Price}onUpdateData(i,n,o,m){let f=this.table();this.hasPriceEdit()&&f=="price"&&this.onOpenDialogUpdate(i,n,o,m),this.hasInventoryEdit()&&f=="inventory"&&this.onOpenDialogUpdate(i,n,o,m)}onOpenDialogUpdate(i,n,o,m){this.dialog.open(Se,{data:{Name:i,Variant:n,ChannelID:o,Table:this.table(),ChannelItemID:m}}).afterClosed().pipe(G(f=>Z.IsNotEmpty(f)),K(this.destroy$)).subscribe(f=>{this.onSubmit.emit(f)})}printPOS(i){let n=this.table();return n=="inventory"?i.Inventory?i.Inventory:0:n=="price"?i.UnitPrice:null}onToggle(){this.toggle.emit(this.toggleStatus)}onZoomImage(i,n){this.biggerPictureService.openBiggerPicture(i,n)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};l.\u0275fac=function(n){return new(n||l)},l.\u0275cmp=N({type:l,selectors:[["app-table"]],inputs:{data:"data",table:[1,"table"],channel:[1,"channel"],showProductToggle:[1,"showProductToggle"],productToggleTitle:"productToggleTitle",multiwarehouse:[1,"multiwarehouse"],hiddenIPOSInventory:[1,"hiddenIPOSInventory"]},outputs:{onSubmit:"onSubmit",toggle:"onToggle"},decls:18,vars:2,consts:[["checkbox_update",""],[1,"table-responsive"],[1,"table"],[1,"thead-light","sticky-top-thead"],["scope","col","colspan","2",1,"text-center","w-25"],[1,"w-100"],[2,"width","200px"],["scope","col",1,"text-start","w-20"],["scope","col",1,"text-end","w-10"],["scope","col"],[2,"width","200px",3,"toggleChange"],[1,"fw-bold"],[3,"ngxPermissionsOnly"],["type","checkbox",3,"ngModelChange","ngModel"],[1,"w-100","d-flex","align-items-center","justify-content-center"],["matTooltipPosition","above",1,"d-flex","align-items-center","justify-content-center",2,"width","180px",3,"matTooltip"],[2,"width","16px","height","16px",3,"src"],[1,"ms-2"],[1,"text-start"],[1,"text-end"],["matTooltipPosition","above",1,"d-flex","align-items-center","justify-content-end",3,"matTooltip"],[3,"ngClass"],["target","_blank",3,"href"],[1,"text-center",3,"rowSpan"],[1,"d-flex","align-items-center","justify-content-end"],[1,"border","rounded","w-img","cursor-pointer",3,"src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded","w-img"],[1,"text-start",2,"padding-left","0px",3,"rowSpan"],[1,"mt-1",3,"ngClass"],[4,"ngTemplateOutlet"],["type","checkbox",1,"me-3",3,"ngModelChange","ngModel","disabled"],[1,"border","rounded","w-img","cursor-pointer",3,"click","src"],[1,"fas","fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[1,"align-middle"],["type","checkbox",3,"ngModel","disabled"],["type","checkbox",3,"ngModelChange","ngModel","disabled"],[1,"p-0",3,"ngClass"],[1,"table-white","text-center",2,"color","red"],[1,"p-0",3,"click","ngClass"],[1,"d-flex","align-items-center","justify-content-center"],[1,"me-2","mt-1"],["target","_blank",3,"click","href"]],template:function(n,o){n&1&&(r(0,"div",1)(1,"table",2)(2,"thead",3)(3,"tr")(4,"th",4)(5,"div",5)(6,"div"),_(7,"Product"),s(),u(8,Ve,3,1,"mat-slide-toggle",6),s()(),r(9,"th",7),_(10,"Variant"),s(),r(11,"th",8),_(12,"SKU"),s(),u(13,Ne,3,3),v(14,Ue,7,6,"th",9,X),s()(),v(16,nt,3,0,"tbody",null,I),s()()),n&2&&(c(8),h(o.showProductToggle()?8:-1),c(5),h(o.hiddenIPOSInventory()==!1?13:-1),c(),S(o.channel()),c(2),S(o.data))},dependencies:[oe,te,ne,L,de,$,B,ye,Te,he,le,be,ce,re,_e,me,ie,we],styles:[".w-10[_ngcontent-%COMP%]{width:10%}.w-20[_ngcontent-%COMP%]{width:20%}.w-img[_ngcontent-%COMP%]{width:40px;height:40px}.item-name[_ngcontent-%COMP%]{margin-bottom:-14px!important;font-size:larger}.cell-hover[_ngcontent-%COMP%]:hover{background-color:#c9c9c9!important}.text-wrapping[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:88px}.cell-hover[_ngcontent-%COMP%]{width:400px!important}"]});let t=l;return t})();export{dt as a,Nt as b};
|
|
1
|
+
import{a as ve}from"./chunk-FH2KAM6J.js";import{a as Se,b as we}from"./chunk-C67KF7MG.js";import{a as Te,b as ye}from"./chunk-JKRELT7N.js";import{a as fe}from"./chunk-DLHIDOS3.js";import{a as pe,b as ge,c as ue,g as he,i as Ce,j as xe}from"./chunk-IA7NJXJD.js";import{a as _e}from"./chunk-UEXWQT5J.js";import{b as be}from"./chunk-M27MYADT.js";import{a as le}from"./chunk-UDNUDL5Z.js";import{c as me}from"./chunk-IZZY74PN.js";import{a as D}from"./chunk-ZSUWHVKX.js";import{h as se}from"./chunk-2OKZEOBU.js";import{a as ae,b as re,c as ce}from"./chunk-NB2H6KA7.js";import{c as Z}from"./chunk-UPRDDI4K.js";import{A as L,b as de,h as $,m as B}from"./chunk-6UM4NHOR.js";import{A as ie,B as oe,q as te,v as ne}from"./chunk-CGSMHTKB.js";import{G,Hb as N,Ia as R,Ic as z,Nb as T,Nc as _,Oc as F,Pc as P,Rc as E,Sc as k,Tc as O,Xc as Y,ac as u,ad as M,bd as J,ca as K,cc as h,dc as I,ec as X,f as q,fc as v,gc as S,hc as d,ic as r,id as U,jc as s,jd as H,kc as w,kd as Q,ld as ee,mb as y,ob as c,qc as j,ra as b,rc as C,tb as A,ud as V,wc as x,ya as p,yc as a,za as g}from"./chunk-OHGMB7HJ.js";function Fe(t,l){if(t&1){let e=C();r(0,"span")(1,"mat-checkbox",4),x("change",function(n){p(e);let o=a();return g(o.onSelectAll(n==null?null:n.checked))}),r(2,"h5",5),_(3,"Select All"),s()()()}}function Pe(t,l){if(t&1){let e=C();r(0,"li")(1,"mat-checkbox",6),O("ngModelChange",function(n){let o=p(e).$implicit;return k(o.selected,n)||(o.selected=n),g(n)}),r(2,"div",7),w(3,"img",8),r(4,"h5",9),_(5),s()()()()}if(t&2){let e=l.$implicit;c(),E("ngModel",e.selected),c(2),d("src",e.Img,y),c(2),F(e.Name)}}var dt=(()=>{let l=class l{constructor(){this.data=b(ge),this.dialogRef=b(pe),this.selectedItems=this.data.selectedItems,this.channels=this.data.channels}ngOnInit(){this.initModalConfig()}initModalConfig(){let i=this.data.title?this.data.title:"Updating Inventory";this.modalConfig=new Ce,this.modalConfig.title=i}onSelectAll(i){this.channels=this.channels.map(n=>(n.selected=i,n))}onOk(){this.dialogRef.close(this.channels)}onClose(){this.dialogRef.close()}get getSelectedChannel(){return this.channels.filter(i=>i.selected)}};l.\u0275fac=function(n){return new(n||l)},l.\u0275cmp=N({type:l,selectors:[["app-modal-update-channels"]],decls:7,vars:3,consts:[[3,"onOk","onClose","onCancel","dynamicValidated","config"],["content",""],[2,"overflow-y","auto","max-height","28rem"],[1,"no-bullet",2,"margin-bottom","0px !important","overflow","hidden"],["color","primary",1,"me-6",3,"change"],[1,"fw-light"],["color","primary",3,"ngModelChange","ngModel"],[1,"d-flex","align-items-center"],[1,"channelLogo-md",3,"src"],[1,"fw-light","ms-2","my-auto"]],template:function(n,o){n&1&&(r(0,"modal-material",0),x("onOk",function(){return o.onOk()})("onClose",function(){return o.onClose()})("onCancel",function(){return o.onClose()}),r(1,"div",1)(2,"div",2),u(3,Fe,4,0,"span"),r(4,"ul",3),v(5,Pe,6,3,"li",null,I),s()()()()),n&2&&(d("dynamicValidated",(o.getSelectedChannel==null?null:o.getSelectedChannel.length)>0)("config",o.modalConfig),c(3),h((o.channels==null?null:o.channels.length)>1?3:-1),c(2),S(o.channels))},dependencies:[xe,ve,L,$,B],styles:[".no-bullet[_ngcontent-%COMP%]{list-style-type:none}mat-form-field[_ngcontent-%COMP%]{width:100%;height:100%}.mat-dialog-title[_ngcontent-%COMP%]{margin-bottom:0%;margin-left:24px}.vertical-radio[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}"]});let t=l;return t})();var W=t=>[t],Ee=t=>({"text-decoration-line-through":t}),ke=t=>({"text-danger":t}),Oe=(t,l)=>({"bg-gradient-warning":t,"cell-hover pointer":l});function Ve(t,l){if(t&1){let e=C();r(0,"mat-slide-toggle",10),x("toggleChange",function(){p(e);let n=a();return n.toggleStatus=!n.toggleStatus,g(n.onToggle())}),r(1,"small",11),_(2),s()()}if(t&2){let e=a();c(2),P(" ",e.productToggleTitle?e.productToggleTitle:"FILTER DIFFERENT INVENTORY"," ")}}function De(t,l){if(t&1){let e=C();r(0,"th")(1,"input",13),O("ngModelChange",function(n){p(e);let o=a(2);return k(o.checkboxState,n)||(o.checkboxState=n),g(n)}),x("ngModelChange",function(){p(e);let n=a(2);return g(n.onCheckboxStateChange())}),s()()}if(t&2){let e=a(2);c(),E("ngModel",e.checkboxState)}}function Ne(t,l){if(t&1&&(T(0,De,2,1,"ng-template",12),r(1,"th",8),_(2,"POS"),s()),t&2){let e=a();d("ngxPermissionsOnly",M(1,W,e.rolePriceEdit))}}function Ue(t,l){if(t&1&&(r(0,"th",9)(1,"div",14)(2,"div",15),w(3,"img",16),r(4,"div",17),_(5),U(6,"stringLimit"),s()()()()),t&2){let e=l.$implicit;c(2),d("matTooltip",(e.Name==null?null:e.Name.length)>20?e.Name:""),c(),d("src",e==null?null:e.Img,y),c(2),P(" ",Q(6,3,e.Name,20)," ")}}function $e(t,l){t&1&&j(0)}function Be(t,l){if(t&1&&T(0,$e,1,0,"ng-container",29),t&2){a(2);let e=z(5);d("ngTemplateOutlet",e)}}function Le(t,l){if(t&1&&T(0,Be,1,1,"ng-template",12),t&2){let e=a(4);d("ngxPermissionsOnly",M(1,W,e.roleInventoryUpdate))}}function We(t,l){t&1&&j(0)}function Re(t,l){if(t&1&&T(0,We,1,0,"ng-container",29),t&2){a(2);let e=z(5);d("ngTemplateOutlet",e)}}function Ae(t,l){if(t&1&&T(0,Re,1,1,"ng-template",12),t&2){let e=a(4);d("ngxPermissionsOnly",M(1,W,e.rolePriceEdit))}}function je(t,l){if(t&1){let e=C();r(0,"div")(1,"input",30),O("ngModelChange",function(n){p(e);let o=a(4).$implicit;return k(o.selected,n)||(o.selected=n),g(n)}),x("ngModelChange",function(){p(e);let n=a(4).$implicit,o=a();return g(o.onCheckboxStateProduct(n.ID))}),s()()}if(t&2){let e=a(4).$implicit;c(),E("ngModel",e.selected),d("disabled",!(e!=null&&e.Category))}}function ze(t,l){if(t&1&&u(0,je,2,2,"div"),t&2){let e=a(3).$implicit;h((e==null||e.Variants==null?null:e.Variants.length)>1?0:-1)}}function He(t,l){if(t&1){let e=C();r(0,"img",31),x("click",function(n){p(e);let o=a(3).$implicit,m=a();return g(m.onZoomImage(n,o==null?null:o.ImageUrl))}),s()}if(t&2){let e=a(3).$implicit;d("src",Y(e==null?null:e.ThumbnailUrl),y)}}function Ze(t,l){t&1&&w(0,"img",26)}function qe(t,l){if(t&1&&(r(0,"td",23)(1,"div",24),u(2,Le,1,3,null,12)(3,Ae,1,3,null,12),T(4,ze,1,1,"ng-template",null,0,ee),r(6,"div"),u(7,He,1,2,"img",25)(8,Ze,1,0,"img",26),s()()(),r(9,"td",27)(10,"div"),_(11),s(),r(12,"small",28),_(13),s()()),t&2){let e=a(2).$implicit,i=a();d("rowSpan",e==null?null:e.Variants.length),c(2),h(i.table()=="inventory"?2:3),c(5),h(e!=null&&e.ThumbnailUrl?7:8),c(2),d("rowSpan",e==null?null:e.Variants.length),c(2),F(e==null?null:e.Name),c(),d("ngClass",M(7,ke,!(e!=null&&e.Category))),c(),P("(",e!=null&&e.Category?e==null?null:e.Category:"Not Found In POS",")")}}function Ge(t,l){if(t&1&&(r(0,"a",22),w(1,"i",32),s()),t&2){let e=a().$implicit,i=a(2);d("href",i.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(e==null?null:e.ID),y)}}function Ke(t,l){if(t&1){let e=C();r(0,"input",35),O("ngModelChange",function(n){p(e);let o=a(3).$implicit;return k(o.selected,n)||(o.selected=n),g(n)}),s()}if(t&2){let e=a(3).$implicit,i=a().$implicit;E("ngModel",e.selected),d("disabled",!(i!=null&&i.Category))}}function Xe(t,l){if(t&1&&(r(0,"td",33),u(1,Ke,1,2,"input",34),s()),t&2){let e=a(2).$implicit,i=a(2);c(),h(i.printPOS(e)>=0||i.table()=="price"?1:-1)}}function Ye(t,l){if(t&1&&(T(0,Xe,2,1,"ng-template",12),r(1,"td",19),_(2),U(3,"number"),s()),t&2){let e=a().$implicit,i=a(2);d("ngxPermissionsOnly",M(4,W,i.rolePriceEdit)),c(2),F(H(3,2,i.printPOS(e)))}}function Je(t,l){if(t&1){let e=C();r(0,"td",38),x("click",function(){p(e);let n=a().$implicit,o=a().$implicit,m=a().$implicit,f=a();return g(f.onUpdateData(m.Name,o,n.ID,m.ChannelItemID))}),r(1,"div",39)(2,"div",40),_(3),U(4,"number"),s(),r(5,"a",41),x("click",function(n){return p(e),g(n==null?null:n.stopPropagation())}),w(6,"i",32),s()()()}if(t&2){let e=l,i=a(2).$implicit,n=a(2);d("ngClass",J(5,Oe,n.printPOS(i)!=n.printItem(e)&&n.hiddenIPOSInventory()==!1,n.hasPriceEdit()&&n.table()=="price"||n.hasInventoryEdit()&&n.table()=="inventory")),c(3),P(" ",H(4,3,n.printItem(e))," "),c(2),d("href",e.Url,y)}}function Qe(t,l){t&1&&(r(0,"td",37)(1,"div",39)(2,"span"),_(3,"X"),s()()())}function et(t,l){if(t&1&&u(0,Je,7,8,"td",36)(1,Qe,4,0,"td",37),t&2){let e,i=l.$implicit,n=a().$implicit,o=a(2);h((e=o.getItemFromChannel(n,i))?0:1,e)}}function tt(t,l){if(t&1&&(r(0,"tr"),u(1,qe,14,9),r(2,"td",18),_(3),s(),r(4,"td",19)(5,"div",20)(6,"div",21),_(7),s(),r(8,"div",17),u(9,Ge,2,1,"a",22),s()()(),u(10,Ye,4,6),v(11,et,2,1,null,null,I),s()),t&2){let e=l.$implicit,i=l.$index,n=a().$implicit,o=a();c(),h(i==0?1:-1),c(2),F(e==null?null:e.Model),c(2),d("matTooltip",e.Discontinued?o.discontinuedVariantMsg:""),c(),d("ngClass",M(7,Ee,e.Discontinued)),c(),P(" ",e.Code," "),c(2),h(n.Category?9:-1),c(),h(o.hiddenIPOSInventory()==!1?10:-1),c(),S(o.channel())}}function nt(t,l){if(t&1&&(r(0,"tbody"),v(1,tt,13,9,"tr",null,I),s()),t&2){let e=l.$implicit;c(),S(e.Variants)}}var Nt=(()=>{let l=class l{constructor(){this.dialog=b(ue),this.biggerPictureService=b(fe),this.authService=b(se),this.permissionsService=b(ae),this.table=V(void 0),this.channel=V(void 0),this.showProductToggle=V(!1),this.multiwarehouse=V(!1),this.hiddenIPOSInventory=V(!1),this.toggleStatus=!1,this.checkboxState=!1,this.rolePriceEdit=D.PriceUpdate,this.roleInventoryUpdate=D.InventoryUpdate,this.hasPriceEdit=R(!1),this.hasInventoryEdit=R(!1),this.discontinuedVariantMsg="This Variant is discontinued from POS, you must Non Active manually at the seller center so that it is not sold again on the channel.",this.onSubmit=new A,this.destroy$=new q,this.toggle=new A,this.hostName=this.authService.getDomain()}ngOnInit(){this.initRoles();let i=this.table();i=="inventory"?this.stockHeader="Stock":i=="price"&&(this.stockHeader="Price")}initRoles(){this.permissionsService.hasPermission(D.InventoryUpdate).then(i=>this.hasInventoryEdit.set(i)),this.permissionsService.hasPermission(D.PriceUpdate).then(i=>this.hasPriceEdit.set(i))}onCheckboxStateProduct(i){let n=this.data.filter(o=>o.ID==i);n.length>0&&(n=n.map(o=>(o.Variants=o.Variants.map(m=>(m.selected=o.selected,m)),o)))}onCheckboxStateChange(){this.data=this.data.map(i=>(i.Variants=i.Variants.map(n=>(n.selected=this.checkboxState,n)),i))}getItemFromChannel(i,n){return i.Channel.find(m=>Z.IsNotEmpty(n.LocationID)?m.LocationID==n.LocationID:m.ChannelID==n.ID)}printItem(i){let n=this.table();if(n=="inventory")return i.Inventory;if(n=="price")return i.Price}onUpdateData(i,n,o,m){let f=this.table();this.hasPriceEdit()&&f=="price"&&this.onOpenDialogUpdate(i,n,o,m),this.hasInventoryEdit()&&f=="inventory"&&this.onOpenDialogUpdate(i,n,o,m)}onOpenDialogUpdate(i,n,o,m){this.dialog.open(Se,{data:{Name:i,Variant:n,ChannelID:o,Table:this.table(),ChannelItemID:m}}).afterClosed().pipe(G(f=>Z.IsNotEmpty(f)),K(this.destroy$)).subscribe(f=>{this.onSubmit.emit(f)})}printPOS(i){let n=this.table();return n=="inventory"?i.Inventory?i.Inventory:0:n=="price"?i.UnitPrice:null}onToggle(){this.toggle.emit(this.toggleStatus)}onZoomImage(i,n){this.biggerPictureService.openBiggerPicture(i,n)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}};l.\u0275fac=function(n){return new(n||l)},l.\u0275cmp=N({type:l,selectors:[["app-table"]],inputs:{data:"data",table:[1,"table"],channel:[1,"channel"],showProductToggle:[1,"showProductToggle"],productToggleTitle:"productToggleTitle",multiwarehouse:[1,"multiwarehouse"],hiddenIPOSInventory:[1,"hiddenIPOSInventory"]},outputs:{onSubmit:"onSubmit",toggle:"onToggle"},decls:18,vars:2,consts:[["checkbox_update",""],[1,"table-responsive"],[1,"table"],[1,"thead-light","sticky-top-thead"],["scope","col","colspan","2",1,"text-center","w-25"],[1,"w-100"],[2,"width","200px"],["scope","col",1,"text-start","w-20"],["scope","col",1,"text-end","w-10"],["scope","col"],[2,"width","200px",3,"toggleChange"],[1,"fw-bold"],[3,"ngxPermissionsOnly"],["type","checkbox",3,"ngModelChange","ngModel"],[1,"w-100","d-flex","align-items-center","justify-content-center"],["matTooltipPosition","above",1,"d-flex","align-items-center","justify-content-center",2,"width","180px",3,"matTooltip"],[2,"width","16px","height","16px",3,"src"],[1,"ms-2"],[1,"text-start"],[1,"text-end"],["matTooltipPosition","above",1,"d-flex","align-items-center","justify-content-end",3,"matTooltip"],[3,"ngClass"],["target","_blank",3,"href"],[1,"text-center",3,"rowSpan"],[1,"d-flex","align-items-center","justify-content-end"],[1,"border","rounded","w-img","cursor-pointer",3,"src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded","w-img"],[1,"text-start",2,"padding-left","0px",3,"rowSpan"],[1,"mt-1",3,"ngClass"],[4,"ngTemplateOutlet"],["type","checkbox",1,"me-3",3,"ngModelChange","ngModel","disabled"],[1,"border","rounded","w-img","cursor-pointer",3,"click","src"],[1,"fas","fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[1,"align-middle"],["type","checkbox",3,"ngModel","disabled"],["type","checkbox",3,"ngModelChange","ngModel","disabled"],[1,"p-0",3,"ngClass"],[1,"table-white","text-center",2,"color","red"],[1,"p-0",3,"click","ngClass"],[1,"d-flex","align-items-center","justify-content-center"],[1,"me-2","mt-1"],["target","_blank",3,"click","href"]],template:function(n,o){n&1&&(r(0,"div",1)(1,"table",2)(2,"thead",3)(3,"tr")(4,"th",4)(5,"div",5)(6,"div"),_(7,"Product"),s(),u(8,Ve,3,1,"mat-slide-toggle",6),s()(),r(9,"th",7),_(10,"Variant"),s(),r(11,"th",8),_(12,"SKU"),s(),u(13,Ne,3,3),v(14,Ue,7,6,"th",9,X),s()(),v(16,nt,3,0,"tbody",null,I),s()()),n&2&&(c(8),h(o.showProductToggle()?8:-1),c(5),h(o.hiddenIPOSInventory()==!1?13:-1),c(),S(o.channel()),c(2),S(o.data))},dependencies:[oe,te,ne,L,de,$,B,ye,Te,he,le,be,ce,re,_e,me,ie,we],styles:[".w-10[_ngcontent-%COMP%]{width:10%}.w-20[_ngcontent-%COMP%]{width:20%}.w-img[_ngcontent-%COMP%]{width:40px;height:40px}.item-name[_ngcontent-%COMP%]{margin-bottom:-14px!important;font-size:larger}.cell-hover[_ngcontent-%COMP%]:hover{background-color:#c9c9c9!important}.text-wrapping[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:88px}.cell-hover[_ngcontent-%COMP%]{width:400px!important}"]});let t=l;return t})();export{dt as a,Nt as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
1
|
+
import{a as t}from"./chunk-MYJZFEAZ.js";import{a as m,b as v}from"./chunk-75IM3UUA.js";import"./chunk-UEXWQT5J.js";import"./chunk-IZZY74PN.js";import"./chunk-O3BS4AC6.js";import"./chunk-2OKZEOBU.js";import"./chunk-X2CTSYKS.js";import"./chunk-QXRG5XYP.js";import"./chunk-AGBJEXIM.js";import"./chunk-NB2H6KA7.js";import"./chunk-UPRDDI4K.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import"./chunk-D6JH2KV4.js";import{c as d}from"./chunk-UB3ZV5NW.js";import"./chunk-JPWGFXZT.js";import"./chunk-CGSMHTKB.js";import"./chunk-XBIHN6D3.js";import{Hb as a,hc as l,ic as c,jc as p,kc as r,ob as i}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var s=(()=>{let n=class n{constructor(){this.reportTabs=[{Title:"1.Create Order",Url:"/menu/sync-log/order/sync-order"},{Title:"2.Convert Order To Invoice",Url:"/menu/sync-log/order/convert-to-invoice"},{Title:"3.Create Invoice",Url:"/menu/sync-log/order/invoice"},{Title:"4.Create Outbound Logistic",Url:"/menu/sync-log/order/delivery"},{Title:"5.Add Payment",Url:"/menu/sync-log/order/payment"},{Title:"6.Void Invoice",Url:"/menu/sync-log/order/void-invoice"},{Title:"All",Url:"/menu/sync-log/order/all"}]}};n.\u0275fac=function(o){return new(o||n)},n.\u0275cmp=a({type:n,selectors:[["app-order"]],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(o,y){o&1&&(c(0,"nav",0)(1,"div",1)(2,"div"),r(3,"nav-tab",2),p()()(),r(4,"router-outlet")),o&2&&(i(3),l("Tabs",y.reportTabs))},dependencies:[v,m,d],styles:[".dropdown[_ngcontent-%COMP%] .dropdown-menu.report.show[_ngcontent-%COMP%]{top:100%!important;transform:none!important;z-index:10000;cursor:pointer;right:-50%}"]});let e=n;return e})();var O=[{path:"",component:s,children:[{path:"",redirectTo:"all",pathMatch:"full"},{path:"sync-order",loadComponent(){return import("./chunk-RZXE2MFY.js").then(e=>e.SalesOrderComponent)},canActivate:[t],data:{title:"Sync Order"}},{path:"convert-to-invoice",loadComponent(){return import("./chunk-PCOAEOIL.js").then(e=>e.ConvertInvoiceComponent)},canActivate:[t],data:{title:"Sync Convert to Invoice"}},{path:"invoice",loadComponent(){return import("./chunk-MHIYVGFS.js").then(e=>e.InvoiceComponent)},canActivate:[t],data:{title:"Sync Invoice"}},{path:"delivery",loadComponent(){return import("./chunk-2ZKHC4YC.js").then(e=>e.DeliveryComponent)},canActivate:[t],data:{title:"Sync Delivery"}},{path:"payment",loadComponent(){return import("./chunk-2Y3L7QOV.js").then(e=>e.PaymentComponent)},canActivate:[t],data:{title:"Sync Payment"}},{path:"void-invoice",loadComponent(){return import("./chunk-Z4RYN6X5.js").then(e=>e.VoidInvoiceComponent)},canActivate:[t],data:{title:"Sync void invoice"}},{path:"all",loadComponent(){return import("./chunk-YZQDWPFY.js").then(e=>e.AllComponent)},canActivate:[t],data:{title:"All Report"}}]}];export{O as routes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as vt}from"./chunk-R3WIWDSP.js";import"./chunk-LUJ3SHSP.js";import"./chunk-IVKFEOCB.js";import{e as ft}from"./chunk-KTTKHI2N.js";import"./chunk-3HME327V.js";import{c as Pt,d as yt}from"./chunk-TZTW72NT.js";import"./chunk-VP3XO25X.js";import{a as gt}from"./chunk-SABMHH6B.js";import"./chunk-YAWT3CLI.js";import"./chunk-5C24BA5F.js";import"./chunk-LR2YCE6M.js";import"./chunk-BKR7YPEW.js";import"./chunk-C2LAQOUW.js";import{a as bt}from"./chunk-DLHIDOS3.js";import{a as St}from"./chunk-27DIE2YS.js";import{a as xt}from"./chunk-AJSJJV2I.js";import"./chunk-NVPT5BF2.js";import"./chunk-QMHG3QTI.js";import"./chunk-NIJCYMZM.js";import"./chunk-UMLV2ZUF.js";import"./chunk-7X4B2T6C.js";import"./chunk-PN3KM4M4.js";import"./chunk-WIRBYT7F.js";import"./chunk-ZWUYPYHD.js";import"./chunk-WVA5LYVE.js";import"./chunk-FOKLBUX6.js";import"./chunk-BXNDE6NQ.js";import"./chunk-A6QXXKPR.js";import"./chunk-ZDBFIPDM.js";import"./chunk-DDFP4CNP.js";import"./chunk-RBZU7OVM.js";import{b as Ct}from"./chunk-BUMWMFHU.js";import"./chunk-ROS2QMKF.js";import{c as ut}from"./chunk-5WT456T7.js";import"./chunk-YNL43MLU.js";import"./chunk-4S4BOPUV.js";import"./chunk-TBVMCNS2.js";import"./chunk-RM6ZXD3O.js";import"./chunk-2ST3DMR6.js";import"./chunk-24KZDZKS.js";import"./chunk-3RK6DDJD.js";import"./chunk-A2RTZANN.js";import"./chunk-N3E43QWK.js";import"./chunk-ZC526ERX.js";import"./chunk-YD6BNJ2B.js";import"./chunk-XUDE7VBC.js";import"./chunk-X52ZT4MU.js";import"./chunk-BMOMTOEW.js";import"./chunk-HO2TMGLM.js";import"./chunk-RXC5D64C.js";import{c as ht}from"./chunk-O4D64GHO.js";import"./chunk-7R2D2JZ6.js";import{a as W}from"./chunk-ZSUWHVKX.js";import{h as st}from"./chunk-O3QPBAV5.js";import"./chunk-YYV4FSYQ.js";import"./chunk-QXRG5XYP.js";import{a as j}from"./chunk-AGBJEXIM.js";import{b as lt,c as ct}from"./chunk-5UFP37GQ.js";import{c as N}from"./chunk-UPRDDI4K.js";import{A as mt,b as dt,h as pt,m as _t}from"./chunk-WAXAIL2I.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{b as at,e as D}from"./chunk-MM7SAZOU.js";import{d as rt}from"./chunk-NQLMPUSB.js";import"./chunk-OSGPJXJZ.js";import{w as it,z as ot}from"./chunk-JNRCB7N3.js";import"./chunk-XBIHN6D3.js";import{G as V,Hb as tt,Ia as X,K as H,Nb as A,Nc as d,Oc as nt,Pc as y,Rc as B,Sc as $,Tc as U,X as K,Z as q,ac as _,ad as E,bc as et,ca as J,cc as m,ea as k,ec as F,f as z,fa as Z,fc as I,g as R,gc as T,hc as p,ic as r,id as S,jc as c,jd as P,kc as C,ma as Q,mb as v,ob as l,oc as O,pc as M,qa as Y,ra as g,rc as f,v as w,wc as x,ya as h,yc as s,za as u}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var Nt=(()=>{let o=class o{get footerPageNumber(){return this._footerPageNumber}set footerPageNumber(t){this._footerPageNumber=t}get hideCount(){return this._hideCount}set hideCount(t){this._hideCount=t}get disableNextButton(){return this._disableNextButton}set disableNextButton(t){this._disableNextButton=t}get goToLastPage(){return this._goToLastPage}set goToLastPage(t){this._goToLastPage=t}constructor(t){this.http=t,this.pagination$=new R(null),this.destroy$=new z,this.data$=this.paginationFunction()}onNextPage(t){t.PageNumber+=1,this.pagination$.next(t)}setPageNumberFooter(t){this.footerPageNumber=t.PageNumber}setPaginationButtonState(t,e){e==0?this.disableNextButton=!0:this.disableNextButton=!(e<t.RowCount*t.PageNumber)}reloadPagination(t){N.IsEmpty(t.PageNumber)&&(t.PageNumber=1),this.pagination$.next(t),this.hideCount=!0,this.goToLastPage=!1}getAllData(t,e){t.RowCount=e,this.pagination$.next(t),this.goToLastPage=!0}destroy(){this.destroy$.next(!0),this.destroy$.complete(),this.pagination$=null,this.pagination$=new R(null),this.data$=this.paginationFunction()}paginationFunction(){return this.pagination$.pipe(J(this.destroy$),V(t=>t!=null),H(t=>this.http.post(`/API/${this.fetchDataEndpoint}`,JSON.stringify(t)).pipe(w(e=>e.Data))),Z(this.pagination$),K((t,e)=>{let[a,b]=t,[G]=e;return b.PageNumber==1?[G,b]:[a.concat(G),b]}),k(([t,e])=>{this.setPageNumberFooter(e),this.setPaginationButtonState(e,t.length)}),w(([t])=>t),q())}};o.\u0275fac=function(e){return new(e||o)(Y(D))},o.\u0275prov=Q({token:o,factory:o.\u0275fac,providedIn:"root"});let i=o;return i})();var L=i=>[i];function Ft(i,o){if(i&1){let n=f();r(0,"button",11),x("click",function(){h(n);let e=s(3);return u(e.uploadMultipleProduct())}),C(1,"i",12),d(2),c()}if(i&2){let n=s(3);l(2),y(" upload (",n.selectedProducts==null?null:n.selectedProducts.length,") ")}}function It(i,o){if(i&1&&(O(0),_(1,Ft,3,1,"button",10),M()),i&2){let n=s(2);l(),m(n.hasSelectionProduct?1:-1)}}function Tt(i,o){if(i&1){let n=f();O(0),r(1,"button",13),x("click",function(){h(n);let e=s(2);return u(e.openScanDialog())}),C(2,"i",14),d(3," Scan Channel "),c(),M()}}function Ot(i,o){i&1&&(O(0),C(1,"th",21),M())}function Mt(i,o){if(i&1){let n=f();r(0,"td",27)(1,"input",28),U("ngModelChange",function(e){h(n);let a=s(3).$implicit;return $(a.selected,e)||(a.selected=e),u(e)}),x("ngModelChange",function(){h(n);let e=s(4),a=s(3);return u(a.onSelectProduct(e))}),c()()}if(i&2){let n=s(3).$implicit;p("rowSpan",n==null?null:n.Variants.length),l(),B("ngModel",n.selected)}}function Et(i,o){if(i&1&&(O(0),_(1,Mt,2,2,"td",27),M()),i&2){let n=s().$index;l(),m(n==0?1:-1)}}function Vt(i,o){if(i&1){let n=f();r(0,"img",35),x("click",function(e){h(n);let a=s(3).$implicit,b=s(4);return u(b.onZoomImage(e,a==null?null:a.ImageUrl))}),c()}if(i&2){let n=s(3).$implicit;p("src",n==null?null:n.ImageUrl,v)}}function kt(i,o){i&1&&C(0,"img",31)}function At(i,o){if(i&1&&(r(0,"td",27)(1,"div",29),_(2,Vt,1,1,"img",30)(3,kt,1,0,"img",31),c()(),r(4,"td",32)(5,"h4",33)(6,"span",34),d(7),c()()()),i&2){let n=s(2).$implicit;p("rowSpan",n==null?null:n.Variants.length),l(2),m(n!=null&&n.ImageUrl?2:3),l(2),p("rowSpan",n==null?null:n.Variants.length),l(2),p("matTooltip",(n==null||n.Name==null?null:n.Name.length)>50?n==null?null:n.Name:""),l(),y(" ",n==null?null:n.Name," ")}}function Bt(i,o){if(i&1&&(r(0,"div")(1,"a",23),C(2,"img",36),c()()),i&2){let n=o.$implicit;l(),p("href",n.URL,v),l(),p("src",n.Img,v)("matTooltip",n.Name)}}function $t(i,o){if(i&1&&(r(0,"div"),C(1,"img",36),c()),i&2){let n=o.$implicit;l(),p("src",n.Img,v)("matTooltip",n.Name)}}function Dt(i,o){if(i&1&&(r(0,"tr"),A(1,Et,2,1,"ng-container",2),_(2,At,8,5),r(3,"td"),d(4),c(),r(5,"td")(6,"span"),d(7),c(),r(8,"span",22)(9,"a",23),C(10,"i",24),c()()(),r(11,"td",25)(12,"div",26),I(13,Bt,3,3,"div",null,F),c()(),r(15,"td",25)(16,"div",26),I(17,$t,2,2,"div",null,F),c()()()),i&2){let n=o.$implicit,t=o.$index,e=s(5);l(),p("ngxPermissionsOnly",E(5,L,e.uploadProductRole)),l(),m(t==0?2:-1),l(2),y(" ",n.Name," "),l(3),y(" ",n.Code," "),l(2),p("href",e.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(n==null?null:n.ID),v),l(4),T(n==null?null:n.Available),l(4),T(n==null?null:n.NotAvailable)}}function Lt(i,o){if(i&1&&I(0,Dt,19,7,"tr",null,F),i&2){let n=o.$implicit;T(n.Variants)}}function Rt(i,o){i&1&&(r(0,"tbody"),I(1,Lt,2,0,null,null,F),c()),i&2&&(l(),T(o))}function Ut(i,o){if(i&1&&(r(0,"div",8)(1,"table",15)(2,"thead",16)(3,"tr"),A(4,Ot,2,0,"ng-container",2),r(5,"th",17),d(6," Product "),c(),r(7,"th",18),d(8,"Variant"),c(),r(9,"th",18),d(10,"SKU"),c(),r(11,"th",19),d(12,"Available In"),c(),r(13,"th",20),d(14,"Not Available In"),c()()(),_(15,Rt,3,0,"tbody"),S(16,"async"),c()()),i&2){let n,t=s(2);l(4),p("ngxPermissionsOnly",E(4,L,t.uploadProductRole)),l(11),m((n=P(16,2,t.data$))?15:-1,n)}}function jt(i,o){i&1&&(r(0,"div",9),C(1,"app-empty-state"),c())}function Wt(i,o){if(i&1){let n=f();r(0,"span",44),x("click",function(){h(n);let e=s(4);return u(e.getRowCount())}),r(1,"i",45),d(2,"?"),c()()}}function Gt(i,o){if(i&1&&(r(0,"span"),d(1),S(2,"number"),c()),i&2){let n=o;l(),nt(P(2,1,n==null?null:n.Count))}}function zt(i,o){if(i&1){let n=f();r(0,"a",46),x("click",function(){h(n);let e=s(4);return u(e.onNextPage())}),C(1,"i",47),d(2," Next"),c()}}function Ht(i,o){if(i&1){let n=f();r(0,"a",48),x("click",function(){h(n);let e=s(4);return u(e.onLastPage())}),C(1,"i",49),d(2," Last"),c()}}function Kt(i,o){if(i&1&&(r(0,"div",37)(1,"div",38)(2,"div",39),d(3),S(4,"number"),_(5,Wt,3,0,"span",40),_(6,Gt,3,3,"span"),S(7,"async"),d(8),c()(),r(9,"div",41),_(10,zt,3,0,"a",42),_(11,Ht,3,0,"a",43),c()()),i&2){let n,t=s(),e=s(2);l(3),y(" Showing 1 - ",P(4,6,t==null?null:t.length)," of "),l(2),m(e.paginationService.hideCount?5:-1),l(),m((n=!e.paginationService.hideCount&&P(7,8,e.rowCount$))?6:-1,n),l(2),y(" records ~ ",e.paginationService.footerPageNumber," Page "),l(2),m(e.paginationService.disableNextButton&&!e.paginationService.goToLastPage?10:-1),l(),m(e.paginationService.disableNextButton&&!e.paginationService.goToLastPage?11:-1)}}function qt(i,o){if(i&1&&_(0,Kt,12,10,"div",37),i&2){let n=o;m((n==null?null:n.length)>0?0:-1)}}function Jt(i,o){if(i&1){let n=f();r(0,"mainpanel",1),x("onSubmit",function(e){h(n);let a=s();return u(a.searchProduct(e))}),r(1,"actions"),A(2,It,2,1,"ng-container",2)(3,Tt,4,0,"ng-container",2),r(4,"button",3),x("click",function(){h(n);let e=s();return u(e.openExportDialog())}),C(5,"i",4),r(6,"span"),d(7,"Export"),c()()(),r(8,"filters")(9,"filter-query-type",5),U("numberFilterComparatorChange",function(e){h(n);let a=s();return $(a.searchFilter.NumberFilterComparator,e)||(a.searchFilter.NumberFilterComparator=e),u(e)})("searchTypeChange",function(e){h(n);let a=s();return $(a.searchFilter.SearchType,e)||(a.searchFilter.SearchType=e),u(e)}),c()(),r(10,"content")(11,"div",6)(12,"div",7),_(13,Ut,17,6,"div",8),S(14,"async"),et(15,jt,2,0,"div",9),c(),_(16,qt,1,1),S(17,"async"),c()()()}if(i&2){let n,t,e=o,a=s();p("searchBoxPlaceHolder",a.searchPlaceholder()),l(2),p("ngxPermissionsOnly",E(13,L,a.uploadProductRole)),l(),p("ngxPermissionsOnly",E(15,L,a.scanProductRole)),l(6),p("numberFilterComparatorOptions",e==null||e.Options==null?null:e.Options.SearchComparatorTypeOptions),B("numberFilterComparator",a.searchFilter.NumberFilterComparator),p("searchTypeOptions",e==null||e.Options==null?null:e.Options.SearchSKUOnlyOrSKUNameOptions),B("searchType",a.searchFilter.SearchType),l(4),m(((n=P(14,9,a.data$))==null?null:n.length)>0?13:15),l(3),m((t=P(17,11,a.data$))?16:-1,t)}}var Ie=(()=>{let o=class o{constructor(){this.http=g(D),this.dialog=g(ut),this.toastr=g(at),this.route=g(rt),this.productService=g(xt),this.paginationService=g(Nt),this.biggerPictureService=g(bt),this.authService=g(st),this.uploadProductService=g(ft),this.placeholderService=g(Pt),this.loaderAPI="product/Load",this.notChannelAPI="product/GetNotInChannelV2",this.hasSelectionProduct=!1,this.selectedProducts=[],this.scanProductRole=W.ProductScan,this.uploadProductRole=W.ProductUpload,this.searchPlaceholder=X("Search ...");let t=this.authService;this.channelOptions=t.getChannels(),this.hostName=this.authService.getDomain()}ngOnInit(){this.initPageLoader(),this.iniData()}initPageLoader(){this.paginationService.fetchDataEndpoint=this.notChannelAPI,this.loader$=this.http.post(`api/${this.loaderAPI}`,{}).pipe(k(t=>{this.searchFilter=t.Filter,this.paginationService.reloadPagination(t.Filter),this.initSearchPlaceholder()}))}initSearchPlaceholder(){this.searchPlaceholder.set(this.placeholderService.generatePlaceholderBySearchType(this.searchFilter.SearchType,this.searchFilter.NumberFilterComparator))}iniData(){this.data$=this.paginationService.data$.pipe(w(t=>(t=t.map(e=>(e.Variants=e.Variants.map(a=>(a.Available=this.productService.sortChannel(a.Available),a.NotAvailable=this.productService.sortChannel(a.NotAvailable),a.Available=this.assignLogoChannel(a.Available),a.NotAvailable=this.assignLogoChannel(a.NotAvailable),a)),e.Channel=e?.Variants[0]?.Available,e)),t)))}assignLogoChannel(t){return t=t.map(e=>(e.Img=N.getChannelLogoByTypeId(e.TypeID),e)),t}searchProduct(t){this.searchFilter.text=t,this.paginationService.reloadPagination(this.searchFilter),this.initSearchPlaceholder()}scanAllProduct(){let t=this.productService.findChannelById(this.searchFilter.ChannelID,this.channelOptions);this.productService.scanAll(this.searchFilter.ChannelID,this.searchFilter.ScanFull,this.searchFilter.UpdatedProduct,this.searchFilter.Async).subscribe(e=>{this.searchFilter.Async?this.toastr.success("You will be notified when the scan is completed.","Scan Asynchronous"):(this.productService.successToastrScanAllProduct(e,t,!this.searchFilter.UpdatedProduct),this.initPageLoader())})}openScanDialog(){let t=JSON.parse(JSON.stringify(this.searchFilter));t.ChannelID=N.GuidEMpty,this.dialog.open(gt,{data:{filter:t,channelOptions:this.channelOptions},width:"600px"}).afterClosed().pipe(V(a=>N.IsNotEmpty(a))).subscribe(a=>{this.searchFilter.ChannelID=a.ChannelID,this.searchFilter.ScanFull=a.ScanFull,this.searchFilter.UpdatedProduct=a.UpdatedProduct,this.searchFilter.Async=a.Async,this.scanAllProduct()})}getRowCount(){this.paginationService.hideCount=!1;let t={text:this.searchFilter.text,NumberFilterComparator:this.searchFilter.NumberFilterComparator,SearchType:this.searchFilter.SearchType};this.rowCount$=this.http.post(j.GetNotInChannelRowCount,t)}onNextPage(){this.paginationService.onNextPage(this.searchFilter)}onLastPage(){let t={text:this.searchFilter.text,NumberFilterComparator:this.searchFilter.NumberFilterComparator,SearchType:this.searchFilter.SearchType};this.http.post(j.GetNotInChannelRowCount,t).subscribe({next:e=>{this.searchFilter.PageNumber=1,this.paginationService.getAllData(this.searchFilter,e.Count)}})}onZoomImage(t,e){this.biggerPictureService.openBiggerPicture(t,e)}onSelectProduct(t){this.hasSelectionProduct=this.productService.hasSelection(t),this.selectedProducts=this.productService.selectedProduct(t)}uploadMultipleProduct(){this.uploadProductService.setSelectedProduct(this.selectedProducts),this.route.navigate(["/menu/products/upload"])}ngOnDestroy(){this.paginationService.destroy()}openExportDialog(){this.dialog.open(vt,{data:{title:"Export Not In Channel",pageNumber:this.searchFilter.PageNumber,rowCount:this.searchFilter.RowCount,filterExport:this.searchFilter,getRowCountApi:"product/GetNotInChannelRowCount",exportApi:"product/GetNotInChannelExport"}}).afterClosed().subscribe()}};o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=tt({type:o,selectors:[["app-not-in-channel"]],decls:2,vars:3,consts:[["headerTitle","Not in Channel","description","SKU has not been sold on one of channels",3,"searchBoxPlaceHolder"],["headerTitle","Not in Channel","description","SKU has not been sold on one of channels",3,"onSubmit","searchBoxPlaceHolder"],[4,"ngxPermissionsOnly"],[1,"btn","btn-outline-secondary","shadow","rounded","ms-2",3,"click"],[1,"fa-solid","fa-print","me-3"],[3,"numberFilterComparatorChange","searchTypeChange","numberFilterComparatorOptions","numberFilterComparator","searchTypeOptions","searchType"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"btn","btn-light","shadow","rounded","ms-2"],[1,"btn","btn-light","shadow","rounded","ms-2",3,"click"],["aria-hidden","true",1,"fa","fa-upload"],["data-cy","scanNotinChannel","type","button",1,"btn","btn-outline-secondary","shadow","rounded","ms-2",3,"click"],[1,"fas","fa-lg","fa-crosshairs"],[1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],["colspan","2",1,"ms-5","text-center",2,"width","450px"],[2,"width","150px"],[2,"width","20%"],[2,"width","16%"],[2,"width","10px"],[1,"ms-1"],["target","_blank",3,"href"],[1,"fas","fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[2,"padding-left","0px"],[1,"d-flex","flex-wrap","mb-1"],[1,"text-center",3,"rowSpan"],["type","checkbox",3,"ngModelChange","ngModel"],[2,"padding-right","0px"],[1,"border","rounded","cursor-pointer",2,"max-width","40px",3,"src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded",2,"max-width","40px"],[1,"text-start",3,"rowSpan"],[1,"ms-5","fw-normal","text-ellipsis",2,"max-width","26vw !important"],[3,"matTooltip"],[1,"border","rounded","cursor-pointer",2,"max-width","40px",3,"click","src"],["alt","",1,"channel-logo","cursor-pointer","ms-4","mt-3",3,"src","matTooltip"],[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"font-weight-bold","font-italic","hidden-xxs"],[2,"cursor","pointer"],[1,"btn-group"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-arrow-right"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-share"]],template:function(e,a){if(e&1&&(_(0,Jt,18,17,"mainpanel",0),S(1,"async")),e&2){let b;m((b=P(1,1,a.loader$))?0:-1,b)}},dependencies:[Ct,ct,lt,yt,mt,dt,pt,_t,ht,St,it,ot],styles:[".badge-pill[_ngcontent-%COMP%]{padding-bottom:16px!important}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background:#dfeffc;border:1px solid #dfeffc}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{visibility:hidden;position:absolute;left:0;top:0}.rad-btn[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:3px;margin-right:10px;cursor:pointer;padding:10px;margin-bottom:10px;color:#000;width:80px;text-align:center}.modal-dialog[_ngcontent-%COMP%]{max-width:30%!important}.product[_ngcontent-%COMP%]{height:100%!important}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}ul[_ngcontent-%COMP%]{list-style-type:none}.link[_ngcontent-%COMP%]{color:#0202ab;cursor:pointer}.px-1[_ngcontent-%COMP%]{padding-left:5px!important}.sku[_ngcontent-%COMP%]{color:#696969;font-style:italic}.badge-pill[_ngcontent-%COMP%]{height:16px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.no-title[_ngcontent-%COMP%]{margin-top:.33em;margin-bottom:.33rem}.mb-upload[_ngcontent-%COMP%]{padding-bottom:.625rem}.my-1rem[_ngcontent-%COMP%]{margin-bottom:1rem!important;margin-top:1rem!important}.pr-rem[_ngcontent-%COMP%]{padding-right:.6rem}.text-larger[_ngcontent-%COMP%]{font-size:larger}.bg-lightpink[_ngcontent-%COMP%]{background-color:#f9dede}.bottom-buttons[_ngcontent-%COMP%]{margin-left:97px}@media (min-width: 1200px){.max-w-xl[_ngcontent-%COMP%]{max-width:205px}}.navbar-toggler[_ngcontent-%COMP%]:focus{box-shadow:none!important}thead[_ngcontent-%COMP%]{position:sticky;top:0}.channel-logo[_ngcontent-%COMP%]{width:20px}.w-img[_ngcontent-%COMP%]{width:100%}"]});let i=o;return i})();export{Ie as NotInChannelComponent};
|
|
1
|
+
import{a as vt}from"./chunk-TYSM3R5E.js";import"./chunk-JKRELT7N.js";import"./chunk-WTHYLNPX.js";import{e as ft}from"./chunk-KNE2UYQ2.js";import"./chunk-TQROQOXU.js";import{c as Pt,d as yt}from"./chunk-TUY6YGYA.js";import"./chunk-76AVMRJU.js";import{a as gt}from"./chunk-KOQLZV3N.js";import"./chunk-6F37VT6M.js";import"./chunk-2EGTHH3W.js";import"./chunk-LR2YCE6M.js";import"./chunk-BKR7YPEW.js";import"./chunk-BZWZ64N5.js";import{a as bt}from"./chunk-DLHIDOS3.js";import{a as St}from"./chunk-27DIE2YS.js";import{a as xt}from"./chunk-FPJTI4LM.js";import"./chunk-JU4ZP3HI.js";import"./chunk-3T5VLB63.js";import"./chunk-STOW2RQN.js";import"./chunk-GLBJ4Y4T.js";import"./chunk-XTNXL2IY.js";import"./chunk-KOUB5HRK.js";import"./chunk-QETZ5VDX.js";import"./chunk-WIRXMAIF.js";import"./chunk-S22I47XG.js";import"./chunk-3NCMRK7E.js";import"./chunk-JLDXWNDU.js";import"./chunk-A6QXXKPR.js";import"./chunk-6Q4BDCI5.js";import"./chunk-C4MTEDSW.js";import"./chunk-JMRRXRKO.js";import{b as Ct}from"./chunk-SNRWOTPO.js";import"./chunk-ROS2QMKF.js";import{c as ut}from"./chunk-IA7NJXJD.js";import"./chunk-UEXWQT5J.js";import"./chunk-M27MYADT.js";import"./chunk-TBVMCNS2.js";import"./chunk-RM6ZXD3O.js";import"./chunk-R2XKB6UH.js";import"./chunk-RO7WOCSA.js";import"./chunk-3RK6DDJD.js";import"./chunk-UDNUDL5Z.js";import"./chunk-CVHFVFZQ.js";import"./chunk-ZC526ERX.js";import"./chunk-NJNRUDU6.js";import"./chunk-XUDE7VBC.js";import"./chunk-WAZWPRUG.js";import"./chunk-6H7M43WO.js";import"./chunk-HO2TMGLM.js";import"./chunk-JTKEMQZT.js";import{c as ht}from"./chunk-IZZY74PN.js";import"./chunk-O3BS4AC6.js";import{a as W}from"./chunk-ZSUWHVKX.js";import{h as st}from"./chunk-2OKZEOBU.js";import"./chunk-X2CTSYKS.js";import"./chunk-QXRG5XYP.js";import{a as j}from"./chunk-AGBJEXIM.js";import{b as lt,c as ct}from"./chunk-NB2H6KA7.js";import{c as N}from"./chunk-UPRDDI4K.js";import{A as mt,b as dt,h as pt,m as _t}from"./chunk-6UM4NHOR.js";import"./chunk-RQUCYFCB.js";import"./chunk-RXLMJGUY.js";import{b as at,e as D}from"./chunk-D6JH2KV4.js";import{d as rt}from"./chunk-UB3ZV5NW.js";import"./chunk-JPWGFXZT.js";import{A as ot,w as it}from"./chunk-CGSMHTKB.js";import"./chunk-XBIHN6D3.js";import{G as V,Hb as tt,Ia as X,K as H,Nb as A,Nc as d,Oc as nt,Pc as y,Rc as B,Sc as $,Tc as U,X as K,Z as q,ac as _,ad as E,bc as et,ca as J,cc as m,ea as k,ec as F,f as z,fa as Z,fc as I,g as R,gc as T,hc as p,ic as r,id as S,jc as c,jd as P,kc as C,ma as Q,mb as v,ob as l,oc as O,pc as M,qa as Y,ra as g,rc as f,v as w,wc as x,ya as h,yc as s,za as u}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var Nt=(()=>{let o=class o{get footerPageNumber(){return this._footerPageNumber}set footerPageNumber(t){this._footerPageNumber=t}get hideCount(){return this._hideCount}set hideCount(t){this._hideCount=t}get disableNextButton(){return this._disableNextButton}set disableNextButton(t){this._disableNextButton=t}get goToLastPage(){return this._goToLastPage}set goToLastPage(t){this._goToLastPage=t}constructor(t){this.http=t,this.pagination$=new R(null),this.destroy$=new z,this.data$=this.paginationFunction()}onNextPage(t){t.PageNumber+=1,this.pagination$.next(t)}setPageNumberFooter(t){this.footerPageNumber=t.PageNumber}setPaginationButtonState(t,e){e==0?this.disableNextButton=!0:this.disableNextButton=!(e<t.RowCount*t.PageNumber)}reloadPagination(t){N.IsEmpty(t.PageNumber)&&(t.PageNumber=1),this.pagination$.next(t),this.hideCount=!0,this.goToLastPage=!1}getAllData(t,e){t.RowCount=e,this.pagination$.next(t),this.goToLastPage=!0}destroy(){this.destroy$.next(!0),this.destroy$.complete(),this.pagination$=null,this.pagination$=new R(null),this.data$=this.paginationFunction()}paginationFunction(){return this.pagination$.pipe(J(this.destroy$),V(t=>t!=null),H(t=>this.http.post(`/API/${this.fetchDataEndpoint}`,JSON.stringify(t)).pipe(w(e=>e.Data))),Z(this.pagination$),K((t,e)=>{let[a,b]=t,[G]=e;return b.PageNumber==1?[G,b]:[a.concat(G),b]}),k(([t,e])=>{this.setPageNumberFooter(e),this.setPaginationButtonState(e,t.length)}),w(([t])=>t),q())}};o.\u0275fac=function(e){return new(e||o)(Y(D))},o.\u0275prov=Q({token:o,factory:o.\u0275fac,providedIn:"root"});let i=o;return i})();var L=i=>[i];function Ft(i,o){if(i&1){let n=f();r(0,"button",11),x("click",function(){h(n);let e=s(3);return u(e.uploadMultipleProduct())}),C(1,"i",12),d(2),c()}if(i&2){let n=s(3);l(2),y(" upload (",n.selectedProducts==null?null:n.selectedProducts.length,") ")}}function It(i,o){if(i&1&&(O(0),_(1,Ft,3,1,"button",10),M()),i&2){let n=s(2);l(),m(n.hasSelectionProduct?1:-1)}}function Tt(i,o){if(i&1){let n=f();O(0),r(1,"button",13),x("click",function(){h(n);let e=s(2);return u(e.openScanDialog())}),C(2,"i",14),d(3," Scan Channel "),c(),M()}}function Ot(i,o){i&1&&(O(0),C(1,"th",21),M())}function Mt(i,o){if(i&1){let n=f();r(0,"td",27)(1,"input",28),U("ngModelChange",function(e){h(n);let a=s(3).$implicit;return $(a.selected,e)||(a.selected=e),u(e)}),x("ngModelChange",function(){h(n);let e=s(4),a=s(3);return u(a.onSelectProduct(e))}),c()()}if(i&2){let n=s(3).$implicit;p("rowSpan",n==null?null:n.Variants.length),l(),B("ngModel",n.selected)}}function Et(i,o){if(i&1&&(O(0),_(1,Mt,2,2,"td",27),M()),i&2){let n=s().$index;l(),m(n==0?1:-1)}}function Vt(i,o){if(i&1){let n=f();r(0,"img",35),x("click",function(e){h(n);let a=s(3).$implicit,b=s(4);return u(b.onZoomImage(e,a==null?null:a.ImageUrl))}),c()}if(i&2){let n=s(3).$implicit;p("src",n==null?null:n.ImageUrl,v)}}function kt(i,o){i&1&&C(0,"img",31)}function At(i,o){if(i&1&&(r(0,"td",27)(1,"div",29),_(2,Vt,1,1,"img",30)(3,kt,1,0,"img",31),c()(),r(4,"td",32)(5,"h4",33)(6,"span",34),d(7),c()()()),i&2){let n=s(2).$implicit;p("rowSpan",n==null?null:n.Variants.length),l(2),m(n!=null&&n.ImageUrl?2:3),l(2),p("rowSpan",n==null?null:n.Variants.length),l(2),p("matTooltip",(n==null||n.Name==null?null:n.Name.length)>50?n==null?null:n.Name:""),l(),y(" ",n==null?null:n.Name," ")}}function Bt(i,o){if(i&1&&(r(0,"div")(1,"a",23),C(2,"img",36),c()()),i&2){let n=o.$implicit;l(),p("href",n.URL,v),l(),p("src",n.Img,v)("matTooltip",n.Name)}}function $t(i,o){if(i&1&&(r(0,"div"),C(1,"img",36),c()),i&2){let n=o.$implicit;l(),p("src",n.Img,v)("matTooltip",n.Name)}}function Dt(i,o){if(i&1&&(r(0,"tr"),A(1,Et,2,1,"ng-container",2),_(2,At,8,5),r(3,"td"),d(4),c(),r(5,"td")(6,"span"),d(7),c(),r(8,"span",22)(9,"a",23),C(10,"i",24),c()()(),r(11,"td",25)(12,"div",26),I(13,Bt,3,3,"div",null,F),c()(),r(15,"td",25)(16,"div",26),I(17,$t,2,2,"div",null,F),c()()()),i&2){let n=o.$implicit,t=o.$index,e=s(5);l(),p("ngxPermissionsOnly",E(5,L,e.uploadProductRole)),l(),m(t==0?2:-1),l(2),y(" ",n.Name," "),l(3),y(" ",n.Code," "),l(2),p("href",e.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(n==null?null:n.ID),v),l(4),T(n==null?null:n.Available),l(4),T(n==null?null:n.NotAvailable)}}function Lt(i,o){if(i&1&&I(0,Dt,19,7,"tr",null,F),i&2){let n=o.$implicit;T(n.Variants)}}function Rt(i,o){i&1&&(r(0,"tbody"),I(1,Lt,2,0,null,null,F),c()),i&2&&(l(),T(o))}function Ut(i,o){if(i&1&&(r(0,"div",8)(1,"table",15)(2,"thead",16)(3,"tr"),A(4,Ot,2,0,"ng-container",2),r(5,"th",17),d(6," Product "),c(),r(7,"th",18),d(8,"Variant"),c(),r(9,"th",18),d(10,"SKU"),c(),r(11,"th",19),d(12,"Available In"),c(),r(13,"th",20),d(14,"Not Available In"),c()()(),_(15,Rt,3,0,"tbody"),S(16,"async"),c()()),i&2){let n,t=s(2);l(4),p("ngxPermissionsOnly",E(4,L,t.uploadProductRole)),l(11),m((n=P(16,2,t.data$))?15:-1,n)}}function jt(i,o){i&1&&(r(0,"div",9),C(1,"app-empty-state"),c())}function Wt(i,o){if(i&1){let n=f();r(0,"span",44),x("click",function(){h(n);let e=s(4);return u(e.getRowCount())}),r(1,"i",45),d(2,"?"),c()()}}function Gt(i,o){if(i&1&&(r(0,"span"),d(1),S(2,"number"),c()),i&2){let n=o;l(),nt(P(2,1,n==null?null:n.Count))}}function zt(i,o){if(i&1){let n=f();r(0,"a",46),x("click",function(){h(n);let e=s(4);return u(e.onNextPage())}),C(1,"i",47),d(2," Next"),c()}}function Ht(i,o){if(i&1){let n=f();r(0,"a",48),x("click",function(){h(n);let e=s(4);return u(e.onLastPage())}),C(1,"i",49),d(2," Last"),c()}}function Kt(i,o){if(i&1&&(r(0,"div",37)(1,"div",38)(2,"div",39),d(3),S(4,"number"),_(5,Wt,3,0,"span",40),_(6,Gt,3,3,"span"),S(7,"async"),d(8),c()(),r(9,"div",41),_(10,zt,3,0,"a",42),_(11,Ht,3,0,"a",43),c()()),i&2){let n,t=s(),e=s(2);l(3),y(" Showing 1 - ",P(4,6,t==null?null:t.length)," of "),l(2),m(e.paginationService.hideCount?5:-1),l(),m((n=!e.paginationService.hideCount&&P(7,8,e.rowCount$))?6:-1,n),l(2),y(" records ~ ",e.paginationService.footerPageNumber," Page "),l(2),m(e.paginationService.disableNextButton&&!e.paginationService.goToLastPage?10:-1),l(),m(e.paginationService.disableNextButton&&!e.paginationService.goToLastPage?11:-1)}}function qt(i,o){if(i&1&&_(0,Kt,12,10,"div",37),i&2){let n=o;m((n==null?null:n.length)>0?0:-1)}}function Jt(i,o){if(i&1){let n=f();r(0,"mainpanel",1),x("onSubmit",function(e){h(n);let a=s();return u(a.searchProduct(e))}),r(1,"actions"),A(2,It,2,1,"ng-container",2)(3,Tt,4,0,"ng-container",2),r(4,"button",3),x("click",function(){h(n);let e=s();return u(e.openExportDialog())}),C(5,"i",4),r(6,"span"),d(7,"Export"),c()()(),r(8,"filters")(9,"filter-query-type",5),U("numberFilterComparatorChange",function(e){h(n);let a=s();return $(a.searchFilter.NumberFilterComparator,e)||(a.searchFilter.NumberFilterComparator=e),u(e)})("searchTypeChange",function(e){h(n);let a=s();return $(a.searchFilter.SearchType,e)||(a.searchFilter.SearchType=e),u(e)}),c()(),r(10,"content")(11,"div",6)(12,"div",7),_(13,Ut,17,6,"div",8),S(14,"async"),et(15,jt,2,0,"div",9),c(),_(16,qt,1,1),S(17,"async"),c()()()}if(i&2){let n,t,e=o,a=s();p("searchBoxPlaceHolder",a.searchPlaceholder()),l(2),p("ngxPermissionsOnly",E(13,L,a.uploadProductRole)),l(),p("ngxPermissionsOnly",E(15,L,a.scanProductRole)),l(6),p("numberFilterComparatorOptions",e==null||e.Options==null?null:e.Options.SearchComparatorTypeOptions),B("numberFilterComparator",a.searchFilter.NumberFilterComparator),p("searchTypeOptions",e==null||e.Options==null?null:e.Options.SearchSKUOnlyOrSKUNameOptions),B("searchType",a.searchFilter.SearchType),l(4),m(((n=P(14,9,a.data$))==null?null:n.length)>0?13:15),l(3),m((t=P(17,11,a.data$))?16:-1,t)}}var Ie=(()=>{let o=class o{constructor(){this.http=g(D),this.dialog=g(ut),this.toastr=g(at),this.route=g(rt),this.productService=g(xt),this.paginationService=g(Nt),this.biggerPictureService=g(bt),this.authService=g(st),this.uploadProductService=g(ft),this.placeholderService=g(Pt),this.loaderAPI="product/Load",this.notChannelAPI="product/GetNotInChannelV2",this.hasSelectionProduct=!1,this.selectedProducts=[],this.scanProductRole=W.ProductScan,this.uploadProductRole=W.ProductUpload,this.searchPlaceholder=X("Search ...");let t=this.authService;this.channelOptions=t.getChannels(),this.hostName=this.authService.getDomain()}ngOnInit(){this.initPageLoader(),this.iniData()}initPageLoader(){this.paginationService.fetchDataEndpoint=this.notChannelAPI,this.loader$=this.http.post(`api/${this.loaderAPI}`,{}).pipe(k(t=>{this.searchFilter=t.Filter,this.paginationService.reloadPagination(t.Filter),this.initSearchPlaceholder()}))}initSearchPlaceholder(){this.searchPlaceholder.set(this.placeholderService.generatePlaceholderBySearchType(this.searchFilter.SearchType,this.searchFilter.NumberFilterComparator))}iniData(){this.data$=this.paginationService.data$.pipe(w(t=>(t=t.map(e=>(e.Variants=e.Variants.map(a=>(a.Available=this.productService.sortChannel(a.Available),a.NotAvailable=this.productService.sortChannel(a.NotAvailable),a.Available=this.assignLogoChannel(a.Available),a.NotAvailable=this.assignLogoChannel(a.NotAvailable),a)),e.Channel=e?.Variants[0]?.Available,e)),t)))}assignLogoChannel(t){return t=t.map(e=>(e.Img=N.getChannelLogoByTypeId(e.TypeID),e)),t}searchProduct(t){this.searchFilter.text=t,this.paginationService.reloadPagination(this.searchFilter),this.initSearchPlaceholder()}scanAllProduct(){let t=this.productService.findChannelById(this.searchFilter.ChannelID,this.channelOptions);this.productService.scanAll(this.searchFilter.ChannelID,this.searchFilter.ScanFull,this.searchFilter.UpdatedProduct,this.searchFilter.Async).subscribe(e=>{this.searchFilter.Async?this.toastr.success("You will be notified when the scan is completed.","Scan Asynchronous"):(this.productService.successToastrScanAllProduct(e,t,!this.searchFilter.UpdatedProduct),this.initPageLoader())})}openScanDialog(){let t=JSON.parse(JSON.stringify(this.searchFilter));t.ChannelID=N.GuidEMpty,this.dialog.open(gt,{data:{filter:t,channelOptions:this.channelOptions},width:"600px"}).afterClosed().pipe(V(a=>N.IsNotEmpty(a))).subscribe(a=>{this.searchFilter.ChannelID=a.ChannelID,this.searchFilter.ScanFull=a.ScanFull,this.searchFilter.UpdatedProduct=a.UpdatedProduct,this.searchFilter.Async=a.Async,this.scanAllProduct()})}getRowCount(){this.paginationService.hideCount=!1;let t={text:this.searchFilter.text,NumberFilterComparator:this.searchFilter.NumberFilterComparator,SearchType:this.searchFilter.SearchType};this.rowCount$=this.http.post(j.GetNotInChannelRowCount,t)}onNextPage(){this.paginationService.onNextPage(this.searchFilter)}onLastPage(){let t={text:this.searchFilter.text,NumberFilterComparator:this.searchFilter.NumberFilterComparator,SearchType:this.searchFilter.SearchType};this.http.post(j.GetNotInChannelRowCount,t).subscribe({next:e=>{this.searchFilter.PageNumber=1,this.paginationService.getAllData(this.searchFilter,e.Count)}})}onZoomImage(t,e){this.biggerPictureService.openBiggerPicture(t,e)}onSelectProduct(t){this.hasSelectionProduct=this.productService.hasSelection(t),this.selectedProducts=this.productService.selectedProduct(t)}uploadMultipleProduct(){this.uploadProductService.setSelectedProduct(this.selectedProducts),this.route.navigate(["/menu/products/upload"])}ngOnDestroy(){this.paginationService.destroy()}openExportDialog(){this.dialog.open(vt,{data:{title:"Export Not In Channel",pageNumber:this.searchFilter.PageNumber,rowCount:this.searchFilter.RowCount,filterExport:this.searchFilter,getRowCountApi:"product/GetNotInChannelRowCount",exportApi:"product/GetNotInChannelExport"}}).afterClosed().subscribe()}};o.\u0275fac=function(e){return new(e||o)},o.\u0275cmp=tt({type:o,selectors:[["app-not-in-channel"]],decls:2,vars:3,consts:[["headerTitle","Not in Channel","description","SKU has not been sold on one of channels",3,"searchBoxPlaceHolder"],["headerTitle","Not in Channel","description","SKU has not been sold on one of channels",3,"onSubmit","searchBoxPlaceHolder"],[4,"ngxPermissionsOnly"],[1,"btn","btn-outline-secondary","shadow","rounded","ms-2",3,"click"],[1,"fa-solid","fa-print","me-3"],[3,"numberFilterComparatorChange","searchTypeChange","numberFilterComparatorOptions","numberFilterComparator","searchTypeOptions","searchType"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"btn","btn-light","shadow","rounded","ms-2"],[1,"btn","btn-light","shadow","rounded","ms-2",3,"click"],["aria-hidden","true",1,"fa","fa-upload"],["data-cy","scanNotinChannel","type","button",1,"btn","btn-outline-secondary","shadow","rounded","ms-2",3,"click"],[1,"fas","fa-lg","fa-crosshairs"],[1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],["colspan","2",1,"ms-5","text-center",2,"width","450px"],[2,"width","150px"],[2,"width","20%"],[2,"width","16%"],[2,"width","10px"],[1,"ms-1"],["target","_blank",3,"href"],[1,"fas","fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[2,"padding-left","0px"],[1,"d-flex","flex-wrap","mb-1"],[1,"text-center",3,"rowSpan"],["type","checkbox",3,"ngModelChange","ngModel"],[2,"padding-right","0px"],[1,"border","rounded","cursor-pointer",2,"max-width","40px",3,"src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded",2,"max-width","40px"],[1,"text-start",3,"rowSpan"],[1,"ms-5","fw-normal","text-ellipsis",2,"max-width","26vw !important"],[3,"matTooltip"],[1,"border","rounded","cursor-pointer",2,"max-width","40px",3,"click","src"],["alt","",1,"channel-logo","cursor-pointer","ms-4","mt-3",3,"src","matTooltip"],[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"font-weight-bold","font-italic","hidden-xxs"],[2,"cursor","pointer"],[1,"btn-group"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-arrow-right"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click"],[1,"fas","fa-share"]],template:function(e,a){if(e&1&&(_(0,Jt,18,17,"mainpanel",0),S(1,"async")),e&2){let b;m((b=P(1,1,a.loader$))?0:-1,b)}},dependencies:[Ct,ct,lt,yt,mt,dt,pt,_t,ht,St,it,ot],styles:[".badge-pill[_ngcontent-%COMP%]{padding-bottom:16px!important}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background:#dfeffc;border:1px solid #dfeffc}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{visibility:hidden;position:absolute;left:0;top:0}.rad-btn[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:3px;margin-right:10px;cursor:pointer;padding:10px;margin-bottom:10px;color:#000;width:80px;text-align:center}.modal-dialog[_ngcontent-%COMP%]{max-width:30%!important}.product[_ngcontent-%COMP%]{height:100%!important}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}ul[_ngcontent-%COMP%]{list-style-type:none}.link[_ngcontent-%COMP%]{color:#0202ab;cursor:pointer}.px-1[_ngcontent-%COMP%]{padding-left:5px!important}.sku[_ngcontent-%COMP%]{color:#696969;font-style:italic}.badge-pill[_ngcontent-%COMP%]{height:16px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.no-title[_ngcontent-%COMP%]{margin-top:.33em;margin-bottom:.33rem}.mb-upload[_ngcontent-%COMP%]{padding-bottom:.625rem}.my-1rem[_ngcontent-%COMP%]{margin-bottom:1rem!important;margin-top:1rem!important}.pr-rem[_ngcontent-%COMP%]{padding-right:.6rem}.text-larger[_ngcontent-%COMP%]{font-size:larger}.bg-lightpink[_ngcontent-%COMP%]{background-color:#f9dede}.bottom-buttons[_ngcontent-%COMP%]{margin-left:97px}@media (min-width: 1200px){.max-w-xl[_ngcontent-%COMP%]{max-width:205px}}.navbar-toggler[_ngcontent-%COMP%]:focus{box-shadow:none!important}thead[_ngcontent-%COMP%]{position:sticky;top:0}.channel-logo[_ngcontent-%COMP%]{width:20px}.w-img[_ngcontent-%COMP%]{width:100%}"]});let i=o;return i})();export{Ie as NotInChannelComponent};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Ab as _,Ad as me,Bd as It,Ca as Et,Cb as ie,Cd as Mt,Da as V,Db as bt,Ea as Ue,Fb as _t,Fd as se,G as ht,Ga as wt,Gd as We,Ib as Ve,Jb as $,Jc as Rt,K as gt,Kb as Z,La as $e,Oa as te,Ra as ne,S as ke,Ub as Tt,Vb as St,Za as Ct,_a as je,aa as pt,bb as Ft,c as lt,f as ft,ia as y,ja as De,ma as T,na as xe,nd as Ge,od as He,pa as b,pb as At,q as Be,qa as S,ra as D,sa as Dt,sb as vt,uc as P,v as ee,va as mt,vc as F,wa as yt,wb as ze,zb as re}from"./chunk-OHGMB7HJ.js";import{a as Y,b as pe}from"./chunk-66YHNWRR.js";function Ye(e,n){n=encodeURIComponent(n);for(let t of e.split(";")){let r=t.indexOf("="),[i,s]=r==-1?[t,""]:[t.slice(0,r),t.slice(r+1)];if(i.trim()===n)return decodeURIComponent(s)}return null}var oe=class{};var J=class{},ae=class{},G=class e{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(n){n?typeof n=="string"?this.lazyInit=()=>{this.headers=new Map,n.split(`
|
|
2
|
+
`).forEach(t=>{let r=t.indexOf(":");if(r>0){let i=t.slice(0,r),s=t.slice(r+1).trim();this.addHeaderEntry(i,s)}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((t,r)=>{this.addHeaderEntry(r,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([t,r])=>{this.setHeaderEntries(t,r)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();let t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof e?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){let t=new e;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof e?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){let t=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(n.name,t);let i=(n.op==="a"?this.headers.get(t):void 0)||[];i.push(...r),this.headers.set(t,i);break;case"d":let s=n.value;if(!s)this.headers.delete(t),this.normalizedNames.delete(t);else{let o=this.headers.get(t);if(!o)return;o=o.filter(a=>s.indexOf(a)===-1),o.length===0?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,o)}break}}addHeaderEntry(n,t){let r=n.toLowerCase();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(t):this.headers.set(r,[t])}setHeaderEntries(n,t){let r=(Array.isArray(t)?t:[t]).map(s=>s.toString()),i=n.toLowerCase();this.headers.set(i,r),this.maybeSetNormalizedName(n,i)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}};var Ee=class{encodeKey(n){return Pt(n)}encodeValue(n){return Pt(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function Tn(e,n){let t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(i=>{let s=i.indexOf("="),[o,a]=s==-1?[n.decodeKey(i),""]:[n.decodeKey(i.slice(0,s)),n.decodeValue(i.slice(s+1))],u=t.get(o)||[];u.push(a),t.set(o,u)}),t}var Sn=/%(\d[a-f0-9])/gi,Rn={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Pt(e){return encodeURIComponent(e).replace(Sn,(n,t)=>Rn[t]??n)}function ye(e){return`${e}`}var j=class e{map;encoder;updates=null;cloneFrom=null;constructor(n={}){if(this.encoder=n.encoder||new Ee,n.fromString){if(n.fromObject)throw new y(2805,!1);this.map=Tn(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{let r=n.fromObject[t],i=Array.isArray(r)?r.map(ye):[ye(r)];this.map.set(t,i)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();let t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){let t=[];return Object.keys(n).forEach(r=>{let i=n[r];Array.isArray(i)?i.forEach(s=>{t.push({param:r,value:s,op:"a"})}):t.push({param:r,value:i,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{let t=this.encoder.encodeKey(n);return this.map.get(n).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>n!=="").join("&")}clone(n){let t=new e({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":let t=(n.op==="a"?this.map.get(n.param):void 0)||[];t.push(ye(n.value)),this.map.set(n.param,t);break;case"d":if(n.value!==void 0){let r=this.map.get(n.param)||[],i=r.indexOf(ye(n.value));i!==-1&&r.splice(i,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null)}};var we=class{map=new Map;set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}};function In(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Ot(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function Lt(e){return typeof Blob<"u"&&e instanceof Blob}function Nt(e){return typeof FormData<"u"&&e instanceof FormData}function Mn(e){return typeof URLSearchParams<"u"&&e instanceof URLSearchParams}var Bt="Content-Type",kt="Accept",Ut="X-Request-URL",$t="text/plain",jt="application/json",Pn=`${jt}, ${$t}, */*`,X=class e{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(n,t,r,i){this.url=t,this.method=n.toUpperCase();let s;if(In(this.method)||i?(this.body=r!==void 0?r:null,s=i):s=r,s){if(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,this.keepalive=!!s.keepalive,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),s.priority&&(this.priority=s.priority),s.cache&&(this.cache=s.cache),s.credentials&&(this.credentials=s.credentials),typeof s.timeout=="number"){if(s.timeout<1||!Number.isInteger(s.timeout))throw new y(2822,"");this.timeout=s.timeout}s.mode&&(this.mode=s.mode),s.redirect&&(this.redirect=s.redirect),s.integrity&&(this.integrity=s.integrity),s.referrer&&(this.referrer=s.referrer),this.transferCache=s.transferCache}if(this.headers??=new G,this.context??=new we,!this.params)this.params=new j,this.urlWithParams=t;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=t;else{let a=t.indexOf("?"),u=a===-1?"?":a<t.length-1?"&":"";this.urlWithParams=t+u+o}}}serializeBody(){return this.body===null?null:typeof this.body=="string"||Ot(this.body)||Lt(this.body)||Nt(this.body)||Mn(this.body)?this.body:this.body instanceof j?this.body.toString():typeof this.body=="object"||typeof this.body=="boolean"||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return this.body===null||Nt(this.body)?null:Lt(this.body)?this.body.type||null:Ot(this.body)?null:typeof this.body=="string"?$t:this.body instanceof j?"application/x-www-form-urlencoded;charset=UTF-8":typeof this.body=="object"||typeof this.body=="number"||typeof this.body=="boolean"?jt:null}clone(n={}){let t=n.method||this.method,r=n.url||this.url,i=n.responseType||this.responseType,s=n.keepalive??this.keepalive,o=n.priority||this.priority,a=n.cache||this.cache,u=n.mode||this.mode,d=n.redirect||this.redirect,f=n.credentials||this.credentials,c=n.referrer||this.referrer,E=n.integrity||this.integrity,g=n.transferCache??this.transferCache,w=n.timeout??this.timeout,B=n.body!==void 0?n.body:this.body,l=n.withCredentials??this.withCredentials,h=n.reportProgress??this.reportProgress,v=n.headers||this.headers,U=n.params||this.params,C=n.context??this.context;return n.setHeaders!==void 0&&(v=Object.keys(n.setHeaders).reduce((k,H)=>k.set(H,n.setHeaders[H]),v)),n.setParams&&(U=Object.keys(n.setParams).reduce((k,H)=>k.set(H,n.setParams[H]),U)),new e(t,r,B,{params:U,headers:v,context:C,reportProgress:h,responseType:i,withCredentials:l,transferCache:g,keepalive:s,cache:a,priority:o,timeout:w,mode:u,redirect:d,credentials:f,referrer:c,integrity:E})}},W=(function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e})(W||{}),q=class{headers;status;statusText;url;ok;type;redirected;constructor(n,t=200,r="OK"){this.headers=n.headers||new G,this.status=n.status!==void 0?n.status:t,this.statusText=n.statusText||r,this.url=n.url||null,this.redirected=n.redirected,this.ok=this.status>=200&&this.status<300}},Ce=class e extends q{constructor(n={}){super(n)}type=W.ResponseHeader;clone(n={}){return new e({headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},ue=class e extends q{body;constructor(n={}){super(n),this.body=n.body!==void 0?n.body:null}type=W.Response;clone(n={}){return new e({body:n.body!==void 0?n.body:this.body,headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0,redirected:n.redirected??this.redirected})}},K=class extends q{name="HttpErrorResponse";message;error;ok=!1;constructor(n){super(n,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${n.url||"(unknown url)"}`:this.message=`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}},On=200,Ln=204;function Ze(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,credentials:e.credentials,transferCache:e.transferCache,timeout:e.timeout,keepalive:e.keepalive,priority:e.priority,cache:e.cache,mode:e.mode,redirect:e.redirect,integrity:e.integrity,referrer:e.referrer}}var zt=(()=>{class e{handler;constructor(t){this.handler=t}request(t,r,i={}){let s;if(t instanceof X)s=t;else{let u;i.headers instanceof G?u=i.headers:u=new G(i.headers);let d;i.params&&(i.params instanceof j?d=i.params:d=new j({fromObject:i.params})),s=new X(t,r,i.body!==void 0?i.body:null,{headers:u,context:i.context,params:d,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials,transferCache:i.transferCache,keepalive:i.keepalive,priority:i.priority,cache:i.cache,mode:i.mode,redirect:i.redirect,credentials:i.credentials,referrer:i.referrer,integrity:i.integrity,timeout:i.timeout})}let o=Be(s).pipe(gt(u=>this.handler.handle(u)));if(t instanceof X||i.observe==="events")return o;let a=o.pipe(ht(u=>u instanceof ue));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(ee(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new y(2806,!1);return u.body}));case"blob":return a.pipe(ee(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new y(2807,!1);return u.body}));case"text":return a.pipe(ee(u=>{if(u.body!==null&&typeof u.body!="string")throw new y(2808,!1);return u.body}));case"json":default:return a.pipe(ee(u=>u.body))}case"response":return a;default:throw new y(2809,!1)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:new j().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,i={}){return this.request("PATCH",t,Ze(i,r))}post(t,r,i={}){return this.request("POST",t,Ze(i,r))}put(t,r,i={}){return this.request("PUT",t,Ze(i,r))}static \u0275fac=function(r){return new(r||e)(S(J))};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})();var Nn=new b("");function Vt(e,n){return n(e)}function Bn(e,n){return(t,r)=>n.intercept(t,{handle:i=>e(i,r)})}function kn(e,n,t){return(r,i)=>yt(t,()=>n(r,s=>e(s,i)))}var Gt=new b(""),Je=new b(""),Ht=new b(""),qe=new b("",{providedIn:"root",factory:()=>!0});function xn(){let e=null;return(n,t)=>{e===null&&(e=(D(Gt,{optional:!0})??[]).reduceRight(Bn,Vt));let r=D($e);if(D(qe)){let s=r.add();return e(n,t).pipe(ke(s))}else return e(n,t)}}var Fe=(()=>{class e extends J{backend;injector;chain=null;pendingTasks=D($e);contributeToStability=D(qe);constructor(t,r){super(),this.backend=t,this.injector=r}handle(t){if(this.chain===null){let r=Array.from(new Set([...this.injector.get(Je),...this.injector.get(Ht,[])]));this.chain=r.reduceRight((i,s)=>kn(i,s,this.injector),Vt)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(t,i=>this.backend.handle(i)).pipe(ke(r))}else return this.chain(t,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||e)(S(ae),S(mt))};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})();var Un=/^\)\]\}',?\n/,$n=RegExp(`^${Ut}:`,"m");function jn(e){return"responseURL"in e&&e.responseURL?e.responseURL:$n.test(e.getAllResponseHeaders())?e.getResponseHeader(Ut):null}var Xe=(()=>{class e{xhrFactory;constructor(t){this.xhrFactory=t}handle(t){if(t.method==="JSONP")throw new y(-2800,!1);let r=this.xhrFactory;return Be(null).pipe(pt(()=>new lt(s=>{let o=r.build();if(o.open(t.method,t.urlWithParams),t.withCredentials&&(o.withCredentials=!0),t.headers.forEach((l,h)=>o.setRequestHeader(l,h.join(","))),t.headers.has(kt)||o.setRequestHeader(kt,Pn),!t.headers.has(Bt)){let l=t.detectContentTypeHeader();l!==null&&o.setRequestHeader(Bt,l)}if(t.timeout&&(o.timeout=t.timeout),t.responseType){let l=t.responseType.toLowerCase();o.responseType=l!=="json"?l:"text"}let a=t.serializeBody(),u=null,d=()=>{if(u!==null)return u;let l=o.statusText||"OK",h=new G(o.getAllResponseHeaders()),v=jn(o)||t.url;return u=new Ce({headers:h,status:o.status,statusText:l,url:v}),u},f=()=>{let{headers:l,status:h,statusText:v,url:U}=d(),C=null;h!==Ln&&(C=typeof o.response>"u"?o.responseText:o.response),h===0&&(h=C?On:0);let k=h>=200&&h<300;if(t.responseType==="json"&&typeof C=="string"){let H=C;C=C.replace(Un,"");try{C=C!==""?JSON.parse(C):null}catch(bn){C=H,k&&(k=!1,C={error:bn,text:C})}}k?(s.next(new ue({body:C,headers:l,status:h,statusText:v,url:U||void 0})),s.complete()):s.error(new K({error:C,headers:l,status:h,statusText:v,url:U||void 0}))},c=l=>{let{url:h}=d(),v=new K({error:l,status:o.status||0,statusText:o.statusText||"Unknown Error",url:h||void 0});s.error(v)},E=c;t.timeout&&(E=l=>{let{url:h}=d(),v=new K({error:new DOMException("Request timed out","TimeoutError"),status:o.status||0,statusText:o.statusText||"Request timeout",url:h||void 0});s.error(v)});let g=!1,w=l=>{g||(s.next(d()),g=!0);let h={type:W.DownloadProgress,loaded:l.loaded};l.lengthComputable&&(h.total=l.total),t.responseType==="text"&&o.responseText&&(h.partialText=o.responseText),s.next(h)},B=l=>{let h={type:W.UploadProgress,loaded:l.loaded};l.lengthComputable&&(h.total=l.total),s.next(h)};return o.addEventListener("load",f),o.addEventListener("error",c),o.addEventListener("timeout",E),o.addEventListener("abort",c),t.reportProgress&&(o.addEventListener("progress",w),a!==null&&o.upload&&o.upload.addEventListener("progress",B)),o.send(a),s.next({type:W.Sent}),()=>{o.removeEventListener("error",c),o.removeEventListener("abort",c),o.removeEventListener("load",f),o.removeEventListener("timeout",E),t.reportProgress&&(o.removeEventListener("progress",w),a!==null&&o.upload&&o.upload.removeEventListener("progress",B)),o.readyState!==o.DONE&&o.abort()}})))}static \u0275fac=function(r){return new(r||e)(S(oe))};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})(),Wt=new b(""),zn="XSRF-TOKEN",Vn=new b("",{providedIn:"root",factory:()=>zn}),Gn="X-XSRF-TOKEN",Hn=new b("",{providedIn:"root",factory:()=>Gn}),ce=class{},Wn=(()=>{class e{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(t,r){this.doc=t,this.cookieName=r}getToken(){let t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ye(t,this.cookieName),this.lastCookieString=t),this.lastToken}static \u0275fac=function(r){return new(r||e)(S(V),S(Vn))};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})();function Yn(e,n){let t=e.url.toLowerCase();if(!D(Wt)||e.method==="GET"||e.method==="HEAD"||t.startsWith("http://")||t.startsWith("https://"))return n(e);let r=D(ce).getToken(),i=D(Hn);return r!=null&&!e.headers.has(i)&&(e=e.clone({headers:e.headers.set(i,r)})),n(e)}var Qe=(function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e})(Qe||{});function Zn(e,n){return{\u0275kind:e,\u0275providers:n}}function Xn(...e){let n=[zt,Xe,Fe,{provide:J,useExisting:Fe},{provide:ae,useFactory:()=>D(Nn,{optional:!0})??D(Xe)},{provide:Je,useValue:Yn,multi:!0},{provide:Wt,useValue:!0},{provide:ce,useClass:Wn}];for(let t of e)n.push(...t.\u0275providers);return Dt(n)}var xt=new b("");function Kn(){return Zn(Qe.LegacyInterceptors,[{provide:xt,useFactory:xn},{provide:Je,useExisting:xt,multi:!0}])}var Xt=null;function Ae(){return Xt}function Jn(e){Xt??=e}var et=class{},de=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=T({token:e,factory:()=>D(Kt),providedIn:"platform"})}return e})(),qn=new b(""),Kt=(()=>{class e extends de{_location;_history;_doc=D(V);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Ae().getBaseHref(this._doc)}onPopState(t){let r=Ae().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){let r=Ae().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",t,!1),()=>r.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,r,i){this._history.pushState(t,r,i)}replaceState(t,r,i){this._history.replaceState(t,r,i)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||e)};static \u0275prov=T({token:e,factory:()=>new e,providedIn:"platform"})}return e})();function ve(e,n){return e?n?e.endsWith("/")?n.startsWith("/")?e+n.slice(1):e+n:n.startsWith("/")?e+n:`${e}/${n}`:e:n}function Yt(e){let n=e.search(/#|\?|$/);return e[n-1]==="/"?e.slice(0,n-1)+e.slice(n):e}function L(e){return e&&e[0]!=="?"?`?${e}`:e}var Q=(()=>{class e{historyGo(t){throw new Error("")}static \u0275fac=function(r){return new(r||e)};static \u0275prov=T({token:e,factory:()=>D(Jt),providedIn:"root"})}return e})(),be=new b(""),Jt=(()=>{class e extends Q{_platformLocation;_baseHref;_removeListenerFns=[];constructor(t,r){super(),this._platformLocation=t,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??D(V).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return ve(this._baseHref,t)}path(t=!1){let r=this._platformLocation.pathname+L(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${r}${i}`:r}pushState(t,r,i,s){let o=this.prepareExternalUrl(i+L(s));this._platformLocation.pushState(t,r,o)}replaceState(t,r,i,s){let o=this.prepareExternalUrl(i+L(s));this._platformLocation.replaceState(t,r,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static \u0275fac=function(r){return new(r||e)(S(de),S(be,8))};static \u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),qt=(()=>{class e{_subject=new ft;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(t){this._locationStrategy=t;let r=this._locationStrategy.getBaseHref();this._basePath=tr(Yt(Zt(r))),this._locationStrategy.onPopState(i=>{this._subject.next({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+L(r))}normalize(t){return e.stripTrailingSlash(er(this._basePath,Zt(t)))}prepareExternalUrl(t){return t&&t[0]!=="/"&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,r="",i=null){this._locationStrategy.pushState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+L(r)),i)}replaceState(t,r="",i=null){this._locationStrategy.replaceState(i,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+L(r)),i)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(i=>i(t,r))}subscribe(t,r,i){return this._subject.subscribe({next:t,error:r??void 0,complete:i??void 0})}static normalizeQueryParams=L;static joinWithSlash=ve;static stripTrailingSlash=Yt;static \u0275fac=function(r){return new(r||e)(S(Q))};static \u0275prov=T({token:e,factory:()=>Qn(),providedIn:"root"})}return e})();function Qn(){return new qt(S(Q))}function er(e,n){if(!e||!n.startsWith(e))return n;let t=n.substring(e.length);return t===""||["/",";","?","#"].includes(t[0])?t:n}function Zt(e){return e.replace(/\/index.html$/,"")}function tr(e){if(new RegExp("^(https?:)?//").test(e)){let[,t]=e.split(/\/\/[^\/]+/);return t}return e}var nr=(()=>{class e extends Q{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(t,r){super(),this._platformLocation=t,r!=null&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(t){let r=ve(this._baseHref,t);return r.length>0?"#"+r:r}pushState(t,r,i,s){let o=this.prepareExternalUrl(i+L(s))||this._platformLocation.pathname;this._platformLocation.pushState(t,r,o)}replaceState(t,r,i,s){let o=this.prepareExternalUrl(i+L(s))||this._platformLocation.pathname;this._platformLocation.replaceState(t,r,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static \u0275fac=function(r){return new(r||e)(S(de),S(be,8))};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})();var ct=(function(e){return e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency",e[e.Scientific=3]="Scientific",e})(ct||{});var R=(function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e})(R||{}),p=(function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e})(p||{}),I=(function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e})(I||{}),M={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function on(e){return P(e)[F.LocaleId]}function an(e,n,t){let r=P(e),i=[r[F.DayPeriodsFormat],r[F.DayPeriodsStandalone]],s=O(i,n);return O(s,t)}function un(e,n,t){let r=P(e),i=[r[F.DaysFormat],r[F.DaysStandalone]],s=O(i,n);return O(s,t)}function cn(e,n,t){let r=P(e),i=[r[F.MonthsFormat],r[F.MonthsStandalone]],s=O(i,n);return O(s,t)}function dn(e,n){let r=P(e)[F.Eras];return O(r,n)}function le(e,n){let t=P(e);return O(t[F.DateFormat],n)}function fe(e,n){let t=P(e);return O(t[F.TimeFormat],n)}function he(e,n){let r=P(e)[F.DateTimeFormat];return O(r,n)}function x(e,n){let t=P(e),r=t[F.NumberSymbols][n];if(typeof r>"u"){if(n===M.CurrencyDecimal)return t[F.NumberSymbols][M.Decimal];if(n===M.CurrencyGroup)return t[F.NumberSymbols][M.Group]}return r}function ln(e,n){return P(e)[F.NumberFormats][n]}function fn(e){if(!e[F.ExtraData])throw new y(2303,!1)}function hn(e){let n=P(e);return fn(n),(n[F.ExtraData][2]||[]).map(r=>typeof r=="string"?tt(r):[tt(r[0]),tt(r[1])])}function gn(e,n,t){let r=P(e);fn(r);let i=[r[F.ExtraData][0],r[F.ExtraData][1]],s=O(i,n)||[];return O(s,t)||[]}function O(e,n){for(let t=n;t>-1;t--)if(typeof e[t]<"u")return e[t];throw new y(2304,!1)}function tt(e){let[n,t]=e.split(":");return{hours:+n,minutes:+t}}var rr=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,_e={},ir=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function pn(e,n,t,r){let i=hr(e);n=z(t,n)||n;let o=[],a;for(;n;)if(a=ir.exec(n),a){o=o.concat(a.slice(1));let f=o.pop();if(!f)break;n=f}else{o.push(n);break}let u=i.getTimezoneOffset();r&&(u=mn(r,u),i=fr(i,r));let d="";return o.forEach(f=>{let c=dr(f);d+=c?c(i,t,u):f==="''"?"'":f.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),d}function Me(e,n,t){let r=new Date(0);return r.setFullYear(e,n,t),r.setHours(0,0,0),r}function z(e,n){let t=on(e);if(_e[t]??={},_e[t][n])return _e[t][n];let r="";switch(n){case"shortDate":r=le(e,I.Short);break;case"mediumDate":r=le(e,I.Medium);break;case"longDate":r=le(e,I.Long);break;case"fullDate":r=le(e,I.Full);break;case"shortTime":r=fe(e,I.Short);break;case"mediumTime":r=fe(e,I.Medium);break;case"longTime":r=fe(e,I.Long);break;case"fullTime":r=fe(e,I.Full);break;case"short":let i=z(e,"shortTime"),s=z(e,"shortDate");r=Te(he(e,I.Short),[i,s]);break;case"medium":let o=z(e,"mediumTime"),a=z(e,"mediumDate");r=Te(he(e,I.Medium),[o,a]);break;case"long":let u=z(e,"longTime"),d=z(e,"longDate");r=Te(he(e,I.Long),[u,d]);break;case"full":let f=z(e,"fullTime"),c=z(e,"fullDate");r=Te(he(e,I.Full),[f,c]);break}return r&&(_e[t][n]=r),r}function Te(e,n){return n&&(e=e.replace(/\{([^}]+)}/g,function(t,r){return n!=null&&r in n?n[r]:t})),e}function N(e,n,t="-",r,i){let s="";(e<0||i&&e<=0)&&(i?e=-e+1:(e=-e,s=t));let o=String(e);for(;o.length<n;)o="0"+o;return r&&(o=o.slice(o.length-n)),s+o}function sr(e,n){return N(e,3).substring(0,n)}function A(e,n,t=0,r=!1,i=!1){return function(s,o){let a=or(e,s);if((t>0||a>-t)&&(a+=t),e===3)a===0&&t===-12&&(a=12);else if(e===6)return sr(a,n);let u=x(o,M.MinusSign);return N(a,n,u,r,i)}}function or(e,n){switch(e){case 0:return n.getFullYear();case 1:return n.getMonth();case 2:return n.getDate();case 3:return n.getHours();case 4:return n.getMinutes();case 5:return n.getSeconds();case 6:return n.getMilliseconds();case 7:return n.getDay();default:throw new y(2301,!1)}}function m(e,n,t=R.Format,r=!1){return function(i,s){return ar(i,s,e,n,t,r)}}function ar(e,n,t,r,i,s){switch(t){case 2:return cn(n,i,r)[e.getMonth()];case 1:return un(n,i,r)[e.getDay()];case 0:let o=e.getHours(),a=e.getMinutes();if(s){let d=hn(n),f=gn(n,i,r),c=d.findIndex(E=>{if(Array.isArray(E)){let[g,w]=E,B=o>=g.hours&&a>=g.minutes,l=o<w.hours||o===w.hours&&a<w.minutes;if(g.hours<w.hours){if(B&&l)return!0}else if(B||l)return!0}else if(E.hours===o&&E.minutes===a)return!0;return!1});if(c!==-1)return f[c]}return an(n,i,r)[o<12?0:1];case 3:return dn(n,r)[e.getFullYear()<=0?0:1];default:let u=t;throw new y(2302,!1)}}function Se(e){return function(n,t,r){let i=-1*r,s=x(t,M.MinusSign),o=i>0?Math.floor(i/60):Math.ceil(i/60);switch(e){case 0:return(i>=0?"+":"")+N(o,2,s)+N(Math.abs(i%60),2,s);case 1:return"GMT"+(i>=0?"+":"")+N(o,1,s);case 2:return"GMT"+(i>=0?"+":"")+N(o,2,s)+":"+N(Math.abs(i%60),2,s);case 3:return r===0?"Z":(i>=0?"+":"")+N(o,2,s)+":"+N(Math.abs(i%60),2,s);default:throw new y(2310,!1)}}}var ur=0,Ie=4;function cr(e){let n=Me(e,ur,1).getDay();return Me(e,0,1+(n<=Ie?Ie:Ie+7)-n)}function Dn(e){let n=e.getDay(),t=n===0?-3:Ie-n;return Me(e.getFullYear(),e.getMonth(),e.getDate()+t)}function nt(e,n=!1){return function(t,r){let i;if(n){let s=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,o=t.getDate();i=1+Math.floor((o+s)/7)}else{let s=Dn(t),o=cr(s.getFullYear()),a=s.getTime()-o.getTime();i=1+Math.round(a/6048e5)}return N(i,e,x(r,M.MinusSign))}}function Re(e,n=!1){return function(t,r){let s=Dn(t).getFullYear();return N(s,e,x(r,M.MinusSign),n)}}var rt={};function dr(e){if(rt[e])return rt[e];let n;switch(e){case"G":case"GG":case"GGG":n=m(3,p.Abbreviated);break;case"GGGG":n=m(3,p.Wide);break;case"GGGGG":n=m(3,p.Narrow);break;case"y":n=A(0,1,0,!1,!0);break;case"yy":n=A(0,2,0,!0,!0);break;case"yyy":n=A(0,3,0,!1,!0);break;case"yyyy":n=A(0,4,0,!1,!0);break;case"Y":n=Re(1);break;case"YY":n=Re(2,!0);break;case"YYY":n=Re(3);break;case"YYYY":n=Re(4);break;case"M":case"L":n=A(1,1,1);break;case"MM":case"LL":n=A(1,2,1);break;case"MMM":n=m(2,p.Abbreviated);break;case"MMMM":n=m(2,p.Wide);break;case"MMMMM":n=m(2,p.Narrow);break;case"LLL":n=m(2,p.Abbreviated,R.Standalone);break;case"LLLL":n=m(2,p.Wide,R.Standalone);break;case"LLLLL":n=m(2,p.Narrow,R.Standalone);break;case"w":n=nt(1);break;case"ww":n=nt(2);break;case"W":n=nt(1,!0);break;case"d":n=A(2,1);break;case"dd":n=A(2,2);break;case"c":case"cc":n=A(7,1);break;case"ccc":n=m(1,p.Abbreviated,R.Standalone);break;case"cccc":n=m(1,p.Wide,R.Standalone);break;case"ccccc":n=m(1,p.Narrow,R.Standalone);break;case"cccccc":n=m(1,p.Short,R.Standalone);break;case"E":case"EE":case"EEE":n=m(1,p.Abbreviated);break;case"EEEE":n=m(1,p.Wide);break;case"EEEEE":n=m(1,p.Narrow);break;case"EEEEEE":n=m(1,p.Short);break;case"a":case"aa":case"aaa":n=m(0,p.Abbreviated);break;case"aaaa":n=m(0,p.Wide);break;case"aaaaa":n=m(0,p.Narrow);break;case"b":case"bb":case"bbb":n=m(0,p.Abbreviated,R.Standalone,!0);break;case"bbbb":n=m(0,p.Wide,R.Standalone,!0);break;case"bbbbb":n=m(0,p.Narrow,R.Standalone,!0);break;case"B":case"BB":case"BBB":n=m(0,p.Abbreviated,R.Format,!0);break;case"BBBB":n=m(0,p.Wide,R.Format,!0);break;case"BBBBB":n=m(0,p.Narrow,R.Format,!0);break;case"h":n=A(3,1,-12);break;case"hh":n=A(3,2,-12);break;case"H":n=A(3,1);break;case"HH":n=A(3,2);break;case"m":n=A(4,1);break;case"mm":n=A(4,2);break;case"s":n=A(5,1);break;case"ss":n=A(5,2);break;case"S":n=A(6,1);break;case"SS":n=A(6,2);break;case"SSS":n=A(6,3);break;case"Z":case"ZZ":case"ZZZ":n=Se(0);break;case"ZZZZZ":n=Se(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=Se(1);break;case"OOOO":case"ZZZZ":case"zzzz":n=Se(2);break;default:return null}return rt[e]=n,n}function mn(e,n){e=e.replace(/:/g,"");let t=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(t)?n:t}function lr(e,n){return e=new Date(e.getTime()),e.setMinutes(e.getMinutes()+n),e}function fr(e,n,t){let i=e.getTimezoneOffset(),s=mn(n,i);return lr(e,-1*(s-i))}function hr(e){if(Qt(e))return e;if(typeof e=="number"&&!isNaN(e))return new Date(e);if(typeof e=="string"){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){let[i,s=1,o=1]=e.split("-").map(a=>+a);return Me(i,s-1,o)}let t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let r;if(r=e.match(rr))return gr(r)}let n=new Date(e);if(!Qt(n))throw new y(2311,!1);return n}function gr(e){let n=new Date(0),t=0,r=0,i=e[8]?n.setUTCFullYear:n.setFullYear,s=e[8]?n.setUTCHours:n.setHours;e[9]&&(t=Number(e[9]+e[10]),r=Number(e[9]+e[11])),i.call(n,Number(e[1]),Number(e[2])-1,Number(e[3]));let o=Number(e[4]||0)-t,a=Number(e[5]||0)-r,u=Number(e[6]||0),d=Math.floor(parseFloat("0."+(e[7]||0))*1e3);return s.call(n,o,a,u,d),n}function Qt(e){return e instanceof Date&&!isNaN(e.valueOf())}var pr=/^(\d+)?\.((\d+)(-(\d+))?)?$/,en=22,Pe=".",ge="0",Dr=";",mr=",",it="#";function yr(e,n,t,r,i,s,o=!1){let a="",u=!1;if(!isFinite(e))a=x(t,M.Infinity);else{let d=Cr(e);o&&(d=wr(d));let f=n.minInt,c=n.minFrac,E=n.maxFrac;if(s){let v=s.match(pr);if(v===null)throw new y(2306,!1);let U=v[1],C=v[3],k=v[5];U!=null&&(f=st(U)),C!=null&&(c=st(C)),k!=null?E=st(k):C!=null&&c>E&&(E=c)}Fr(d,c,E);let g=d.digits,w=d.integerLen,B=d.exponent,l=[];for(u=g.every(v=>!v);w<f;w++)g.unshift(0);for(;w<0;w++)g.unshift(0);w>0?l=g.splice(w,g.length):(l=g,g=[0]);let h=[];for(g.length>=n.lgSize&&h.unshift(g.splice(-n.lgSize,g.length).join(""));g.length>n.gSize;)h.unshift(g.splice(-n.gSize,g.length).join(""));g.length&&h.unshift(g.join("")),a=h.join(x(t,r)),l.length&&(a+=x(t,i)+l.join("")),B&&(a+=x(t,M.Exponential)+"+"+B)}return e<0&&!u?a=n.negPre+a+n.negSuf:a=n.posPre+a+n.posSuf,a}function yn(e,n,t){let r=ln(n,ct.Decimal),i=Er(r,x(n,M.MinusSign));return yr(e,i,n,M.Group,M.Decimal,t)}function Er(e,n="-"){let t={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=e.split(Dr),i=r[0],s=r[1],o=i.indexOf(Pe)!==-1?i.split(Pe):[i.substring(0,i.lastIndexOf(ge)+1),i.substring(i.lastIndexOf(ge)+1)],a=o[0],u=o[1]||"";t.posPre=a.substring(0,a.indexOf(it));for(let f=0;f<u.length;f++){let c=u.charAt(f);c===ge?t.minFrac=t.maxFrac=f+1:c===it?t.maxFrac=f+1:t.posSuf+=c}let d=a.split(mr);if(t.gSize=d[1]?d[1].length:0,t.lgSize=d[2]||d[1]?(d[2]||d[1]).length:0,s){let f=i.length-t.posPre.length-t.posSuf.length,c=s.indexOf(it);t.negPre=s.substring(0,c).replace(/'/g,""),t.negSuf=s.slice(c+f).replace(/'/g,"")}else t.negPre=n+t.posPre,t.negSuf=t.posSuf;return t}function wr(e){if(e.digits[0]===0)return e;let n=e.digits.length-e.integerLen;return e.exponent?e.exponent+=2:(n===0?e.digits.push(0,0):n===1&&e.digits.push(0),e.integerLen+=2),e}function Cr(e){let n=Math.abs(e)+"",t=0,r,i,s,o,a;for((i=n.indexOf(Pe))>-1&&(n=n.replace(Pe,"")),(s=n.search(/e/i))>0?(i<0&&(i=s),i+=+n.slice(s+1),n=n.substring(0,s)):i<0&&(i=n.length),s=0;n.charAt(s)===ge;s++);if(s===(a=n.length))r=[0],i=1;else{for(a--;n.charAt(a)===ge;)a--;for(i-=s,r=[],o=0;s<=a;s++,o++)r[o]=Number(n.charAt(s))}return i>en&&(r=r.splice(0,en-1),t=i-1,i=1),{digits:r,exponent:t,integerLen:i}}function Fr(e,n,t){if(n>t)throw new y(2307,!1);let r=e.digits,i=r.length-e.integerLen,s=Math.min(Math.max(n,i),t),o=s+e.integerLen,a=r[o];if(o>0){r.splice(Math.max(e.integerLen,o));for(let c=o;c<r.length;c++)r[c]=0}else{i=Math.max(0,i),e.integerLen=1,r.length=Math.max(1,o=s+1),r[0]=0;for(let c=1;c<o;c++)r[c]=0}if(a>=5)if(o-1<0){for(let c=0;c>o;c--)r.unshift(0),e.integerLen++;r.unshift(1),e.integerLen++}else r[o-1]++;for(;i<Math.max(0,s);i++)r.push(0);let u=s!==0,d=n+e.integerLen,f=r.reduceRight(function(c,E,g,w){return E=E+c,w[g]=E<10?E:E-10,u&&(w[g]===0&&g>=d?w.pop():u=!1),E>=10?1:0},0);f&&(r.unshift(f),e.integerLen++)}function st(e){let n=parseInt(e);if(isNaN(n))throw new y(2305,!1);return n}var ot=/\s+/,tn=[],Ar=(()=>{class e{_ngEl;_renderer;initialClasses=tn;rawClass;stateMap=new Map;constructor(t,r){this._ngEl=t,this._renderer=r}set klass(t){this.initialClasses=t!=null?t.trim().split(ot):tn}set ngClass(t){this.rawClass=typeof t=="string"?t.trim().split(ot):t}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(let r of t)this._updateState(r,!0);else if(t!=null)for(let r of Object.keys(t))this._updateState(r,!!t[r]);this._applyStateDiff()}_updateState(t,r){let i=this.stateMap.get(t);i!==void 0?(i.enabled!==r&&(i.changed=!0,i.enabled=r),i.touched=!0):this.stateMap.set(t,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let t of this.stateMap){let r=t[0],i=t[1];i.changed?(this._toggleClass(r,i.enabled),i.changed=!1):i.touched||(i.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),i.touched=!1}}_toggleClass(t,r){t=t.trim(),t.length>0&&t.split(ot).forEach(i=>{r?this._renderer.addClass(this._ngEl.nativeElement,i):this._renderer.removeClass(this._ngEl.nativeElement,i)})}static \u0275fac=function(r){return new(r||e)(_(ne),_(re))};static \u0275dir=$({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})(),vr=(()=>{class e{_viewContainerRef;ngComponentOutlet=null;ngComponentOutletInputs;ngComponentOutletInjector;ngComponentOutletEnvironmentInjector;ngComponentOutletContent;ngComponentOutletNgModule;ngComponentOutletNgModuleFactory;_componentRef;_moduleRef;_inputsUsed=new Map;get componentInstance(){return this._componentRef?.instance??null}constructor(t){this._viewContainerRef=t}_needToReCreateNgModuleInstance(t){return t.ngComponentOutletNgModule!==void 0||t.ngComponentOutletNgModuleFactory!==void 0}_needToReCreateComponentInstance(t){return t.ngComponentOutlet!==void 0||t.ngComponentOutletContent!==void 0||t.ngComponentOutletInjector!==void 0||t.ngComponentOutletEnvironmentInjector!==void 0||this._needToReCreateNgModuleInstance(t)}ngOnChanges(t){if(this._needToReCreateComponentInstance(t)&&(this._viewContainerRef.clear(),this._inputsUsed.clear(),this._componentRef=void 0,this.ngComponentOutlet)){let r=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;this._needToReCreateNgModuleInstance(t)&&(this._moduleRef?.destroy(),this.ngComponentOutletNgModule?this._moduleRef=_t(this.ngComponentOutletNgModule,nn(r)):this.ngComponentOutletNgModuleFactory?this._moduleRef=this.ngComponentOutletNgModuleFactory.create(nn(r)):this._moduleRef=void 0),this._componentRef=this._viewContainerRef.createComponent(this.ngComponentOutlet,{injector:r,ngModuleRef:this._moduleRef,projectableNodes:this.ngComponentOutletContent,environmentInjector:this.ngComponentOutletEnvironmentInjector})}}ngDoCheck(){if(this._componentRef){if(this.ngComponentOutletInputs)for(let t of Object.keys(this.ngComponentOutletInputs))this._inputsUsed.set(t,!0);this._applyInputStateDiff(this._componentRef)}}ngOnDestroy(){this._moduleRef?.destroy()}_applyInputStateDiff(t){for(let[r,i]of this._inputsUsed)i?(t.setInput(r,this.ngComponentOutletInputs[r]),this._inputsUsed.set(r,!1)):(t.setInput(r,void 0),this._inputsUsed.delete(r))}static \u0275fac=function(r){return new(r||e)(_(ie))};static \u0275dir=$({type:e,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInputs:"ngComponentOutletInputs",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletEnvironmentInjector:"ngComponentOutletEnvironmentInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModule:"ngComponentOutletNgModule",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},exportAs:["ngComponentOutlet"],features:[te]})}return e})();function nn(e){return e.get(bt).injector}var Oe=class{$implicit;ngForOf;index;count;constructor(n,t,r,i){this.$implicit=n,this.ngForOf=t,this.index=r,this.count=i}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},En=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(t,r,i){this._viewContainer=t,this._template=r,this._differs=i}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){let t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){let r=this._viewContainer;t.forEachOperation((i,s,o)=>{if(i.previousIndex==null)r.createEmbeddedView(this._template,new Oe(i.item,this._ngForOf,-1,-1),o===null?void 0:o);else if(o==null)r.remove(s===null?void 0:s);else if(s!==null){let a=r.get(s);r.move(a,o),rn(a,i)}});for(let i=0,s=r.length;i<s;i++){let a=r.get(i).context;a.index=i,a.count=s,a.ngForOf=this._ngForOf}t.forEachIdentityChange(i=>{let s=r.get(i.currentIndex);rn(s,i)})}static ngTemplateContextGuard(t,r){return!0}static \u0275fac=function(r){return new(r||e)(_(ie),_(ze),_(It))};static \u0275dir=$({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function rn(e,n){e.context.$implicit=n.item}var br=(()=>{class e{_viewContainer;_context=new Le;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(t,r){this._viewContainer=t,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){sn(t,!1),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){sn(t,!1),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(t,r){return!0}static \u0275fac=function(r){return new(r||e)(_(ie),_(ze))};static \u0275dir=$({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),Le=class{$implicit=null;ngIf=null};function sn(e,n){if(e&&!e.createEmbeddedView)throw new y(2020,!1)}var _r=(()=>{class e{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(t,r,i){this._ngEl=t,this._differs=r,this._renderer=i}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){let t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,r){let[i,s]=t.split("."),o=i.indexOf("-")===-1?void 0:At.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,i,s?`${r}${s}`:r,o):this._renderer.removeStyle(this._ngEl.nativeElement,i,o)}_applyChanges(t){t.forEachRemovedItem(r=>this._setStyle(r.key,null)),t.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),t.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}static \u0275fac=function(r){return new(r||e)(_(ne),_(Mt),_(re))};static \u0275dir=$({type:e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return e})(),Tr=(()=>{class e{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(t){this._viewContainerRef=t}ngOnChanges(t){if(this._shouldRecreateView(t)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let i=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,i,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(t){return!!t.ngTemplateOutlet||!!t.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(t,r,i)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,i):!1,get:(t,r,i)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,i)}})}static \u0275fac=function(r){return new(r||e)(_(ie))};static \u0275dir=$({type:e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[te]})}return e})();function Ne(e,n){return new y(2100,!1)}var at=class{createSubscription(n,t,r){return He(()=>n.subscribe({next:t,error:r}))}dispose(n){He(()=>n.unsubscribe())}},ut=class{createSubscription(n,t,r){return n.then(i=>t?.(i),i=>r?.(i)),{unsubscribe:()=>{t=null,r=null}}}dispose(n){n.unsubscribe()}},Sr=new ut,Rr=new at,Ir=(()=>{class e{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=D(wt);constructor(t){this._ref=t}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(t){if(!this._obj){if(t)try{this.markForCheckOnValueUpdate=!1,this._subscribe(t)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,r=>this._updateLatestValue(t,r),r=>this.applicationErrorHandler(r))}_selectStrategy(t){if(Tt(t))return Sr;if(St(t))return Rr;throw Ne(e,t)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,r){t===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(r){return new(r||e)(_(me,16))};static \u0275pipe=Z({name:"async",type:e,pure:!1})}return e})(),Mr=(()=>{class e{transform(t){if(t==null)return null;if(typeof t!="string")throw Ne(e,t);return t.toLowerCase()}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=Z({name:"lowercase",type:e,pure:!0})}return e})();var Pr="mediumDate",wn=new b(""),Cn=new b(""),Or=(()=>{class e{locale;defaultTimezone;defaultOptions;constructor(t,r,i){this.locale=t,this.defaultTimezone=r,this.defaultOptions=i}transform(t,r,i,s){if(t==null||t===""||t!==t)return null;try{let o=r??this.defaultOptions?.dateFormat??Pr,a=i??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return pn(t,o,s||this.locale,a)}catch(o){throw Ne(e,o.message)}}static \u0275fac=function(r){return new(r||e)(_(Ge,16),_(wn,24),_(Cn,24))};static \u0275pipe=Z({name:"date",type:e,pure:!0})}return e})();var Lr=(()=>{class e{transform(t){return JSON.stringify(t,null,2)}static \u0275fac=function(r){return new(r||e)};static \u0275pipe=Z({name:"json",type:e,pure:!1})}return e})();var Nr=(()=>{class e{_locale;constructor(t){this._locale=t}transform(t,r,i){if(!Br(t))return null;i||=this._locale;try{let s=kr(t);return yn(s,i,r)}catch(s){throw Ne(e,s.message)}}static \u0275fac=function(r){return new(r||e)(_(Ge,16))};static \u0275pipe=Z({name:"number",type:e,pure:!0})}return e})();function Br(e){return!(e==null||e===""||e!==e)}function kr(e){if(typeof e=="string"&&!isNaN(Number(e)-parseFloat(e)))return Number(e);if(typeof e!="number")throw new y(2309,!1);return e}var xr=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=Ve({type:e});static \u0275inj=xe({})}return e})();var Ur="browser",$r="server";function zs(e){return e===Ur}function Vs(e){return e===$r}var Gs=(()=>{class e{static \u0275prov=T({token:e,providedIn:"root",factory:()=>new dt(D(V),window)})}return e})(),dt=class{document;window;offset=()=>[0,0];constructor(n,t){this.document=n,this.window=t}setOffset(n){Array.isArray(n)?this.offset=()=>n:this.offset=n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n,t){this.window.scrollTo(pe(Y({},t),{left:n[0],top:n[1]}))}scrollToAnchor(n,t){let r=jr(this.document,n);r&&(this.scrollToElement(r,t),r.focus())}setHistoryScrollRestoration(n){try{this.window.history.scrollRestoration=n}catch{console.warn(De(2400,!1))}}scrollToElement(n,t){let r=n.getBoundingClientRect(),i=r.left+this.window.pageXOffset,s=r.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(pe(Y({},t),{left:i-o[0],top:s-o[1]}))}};function jr(e,n){let t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if(typeof e.createTreeWalker=="function"&&e.body&&typeof e.body.attachShadow=="function"){let r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT),i=r.currentNode;for(;i;){let s=i.shadowRoot;if(s){let o=s.getElementById(n)||s.querySelector(`[name="${n}"]`);if(o)return o}i=r.nextNode()}}return null}var zr="20";function Vr(e){return/^https?:\/\//.test(e)}function Gr(e){if(!(typeof e=="string")||e.trim()==="")return!1;try{let t=new URL(e);return!0}catch{return!1}}function Hr(e){return e.endsWith("/")?e.slice(0,-1):e}function Wr(e){return e.startsWith("/")?e.slice(1):e}var An=e=>e.src,vn=new b("",{providedIn:"root",factory:()=>An});function Yr(e,n){return function(r){return Gr(r)||Zr(r,n||[]),r=Hr(r),[{provide:vn,useValue:o=>(Vr(o.src)&&Xr(r,o.src),e(r,pe(Y({},o),{src:Wr(o.src)})))}]}}function Zr(e,n){throw new y(2959,!1)}function Xr(e,n){throw new y(2959,!1)}var Hs=Yr(Kr,void 0);function Kr(e,n){let t=new URL(`${e}/${n.src}`);return t.searchParams.set("auto","format"),n.width&&t.searchParams.set("w",n.width.toString()),n.isPlaceholder&&t.searchParams.set("q",zr),t.href}var Fn=/^((\s*\d+w\s*(,|$)){1,})$/;var Jr=[1,2],qr=640;var Qr=1920,ei=1080;var Ws=(()=>{class e{imageLoader=D(vn);config=ti(D(je));renderer=D(re);imgElement=D(ne).nativeElement;injector=D(Et);destroyRef=D(Ue);lcpObserver;_renderedSrc=null;ngSrc;ngSrcset;sizes;width;height;decoding;loading;priority=!1;loaderParams;disableOptimizedSrcset=!1;fill=!1;placeholder;placeholderConfig;src;srcset;constructor(){}ngOnInit(){vt("NgOptimizedImage"),this.placeholder&&this.removePlaceholderOnLoad(this.imgElement),this.setHostAttributes()}setHostAttributes(){this.fill?this.sizes||="100vw":(this.setHostAttribute("width",this.width.toString()),this.setHostAttribute("height",this.height.toString())),this.setHostAttribute("loading",this.getLoadingBehavior()),this.setHostAttribute("fetchpriority",this.getFetchPriority()),this.setHostAttribute("decoding",this.getDecoding()),this.setHostAttribute("ng-img","true");let t=this.updateSrcAndSrcset();this.sizes?this.getLoadingBehavior()==="lazy"?this.setHostAttribute("sizes","auto, "+this.sizes):this.setHostAttribute("sizes",this.sizes):this.ngSrcset&&Fn.test(this.ngSrcset)&&this.getLoadingBehavior()==="lazy"&&this.setHostAttribute("sizes","auto, 100vw")}ngOnChanges(t){if(t.ngSrc&&!t.ngSrc.isFirstChange()){let r=this._renderedSrc;this.updateSrcAndSrcset(!0)}}callImageLoader(t){let r=t;return this.loaderParams&&(r.loaderParams=this.loaderParams),this.imageLoader(r)}getLoadingBehavior(){return!this.priority&&this.loading!==void 0?this.loading:this.priority?"eager":"lazy"}getFetchPriority(){return this.priority?"high":"auto"}getDecoding(){return this.priority?"sync":this.decoding??"auto"}getRewrittenSrc(){if(!this._renderedSrc){let t={src:this.ngSrc};this._renderedSrc=this.callImageLoader(t)}return this._renderedSrc}getRewrittenSrcset(){let t=Fn.test(this.ngSrcset);return this.ngSrcset.split(",").filter(i=>i!=="").map(i=>{i=i.trim();let s=t?parseFloat(i):parseFloat(i)*this.width;return`${this.callImageLoader({src:this.ngSrc,width:s})} ${i}`}).join(", ")}getAutomaticSrcset(){return this.sizes?this.getResponsiveSrcset():this.getFixedSrcset()}getResponsiveSrcset(){let{breakpoints:t}=this.config,r=t;return this.sizes?.trim()==="100vw"&&(r=t.filter(s=>s>=qr)),r.map(s=>`${this.callImageLoader({src:this.ngSrc,width:s})} ${s}w`).join(", ")}updateSrcAndSrcset(t=!1){t&&(this._renderedSrc=null);let r=this.getRewrittenSrc();this.setHostAttribute("src",r);let i;return this.ngSrcset?i=this.getRewrittenSrcset():this.shouldGenerateAutomaticSrcset()&&(i=this.getAutomaticSrcset()),i&&this.setHostAttribute("srcset",i),i}getFixedSrcset(){return Jr.map(r=>`${this.callImageLoader({src:this.ngSrc,width:this.width*r})} ${r}x`).join(", ")}shouldGenerateAutomaticSrcset(){let t=!1;return this.sizes||(t=this.width>Qr||this.height>ei),!this.disableOptimizedSrcset&&!this.srcset&&this.imageLoader!==An&&!t}generatePlaceholder(t){let{placeholderResolution:r}=this.config;return t===!0?`url(${this.callImageLoader({src:this.ngSrc,width:r,isPlaceholder:!0})})`:typeof t=="string"?`url(${t})`:null}shouldBlurPlaceholder(t){return!t||!t.hasOwnProperty("blur")?!0:!!t.blur}removePlaceholderOnLoad(t){let r=()=>{let o=this.injector.get(me);i(),s(),this.placeholder=!1,o.markForCheck()},i=this.renderer.listen(t,"load",r),s=this.renderer.listen(t,"error",r);this.destroyRef.onDestroy(()=>{i(),s()}),ni(t,r)}setHostAttribute(t,r){this.renderer.setAttribute(this.imgElement,t,r)}static \u0275fac=function(r){return new(r||e)};static \u0275dir=$({type:e,selectors:[["img","ngSrc",""]],hostVars:18,hostBindings:function(r,i){r&2&&Rt("position",i.fill?"absolute":null)("width",i.fill?"100%":null)("height",i.fill?"100%":null)("inset",i.fill?"0":null)("background-size",i.placeholder?"cover":null)("background-position",i.placeholder?"50% 50%":null)("background-repeat",i.placeholder?"no-repeat":null)("background-image",i.placeholder?i.generatePlaceholder(i.placeholder):null)("filter",i.placeholder&&i.shouldBlurPlaceholder(i.placeholderConfig)?"blur(15px)":null)},inputs:{ngSrc:[2,"ngSrc","ngSrc",ri],ngSrcset:"ngSrcset",sizes:"sizes",width:[2,"width","width",We],height:[2,"height","height",We],decoding:"decoding",loading:"loading",priority:[2,"priority","priority",se],loaderParams:"loaderParams",disableOptimizedSrcset:[2,"disableOptimizedSrcset","disableOptimizedSrcset",se],fill:[2,"fill","fill",se],placeholder:[2,"placeholder","placeholder",ii],placeholderConfig:"placeholderConfig",src:"src",srcset:"srcset"},features:[te]})}return e})();function ti(e){let n={};return e.breakpoints&&(n.breakpoints=e.breakpoints.sort((t,r)=>t-r)),Object.assign({},Ct,e,n)}function ni(e,n){e.complete&&e.naturalWidth&&n()}function ri(e){return typeof e=="string"?e:Ft(e)}function ii(e){return typeof e=="string"&&e!=="true"&&e!=="false"&&e!==""?e:se(e)}export{Ye as a,oe as b,G as c,j as d,zt as e,Gt as f,Xn as g,Kn as h,Ae as i,Jn as j,et as k,qn as l,Q as m,Jt as n,qt as o,nr as p,Ar as q,vr as r,En as s,br as t,_r as u,Tr as v,Ir as w,Mr as x,Or as y,Lr as z,Nr as A,xr as B,Ur as C,zs as D,Vs as E,Gs as F,Hs as G,Ws as H};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as l,b as d}from"./chunk-
|
|
1
|
+
import{a as l,b as d}from"./chunk-75IM3UUA.js";import"./chunk-UEXWQT5J.js";import"./chunk-IZZY74PN.js";import"./chunk-O3BS4AC6.js";import"./chunk-NB2H6KA7.js";import{c as u,g as m}from"./chunk-UB3ZV5NW.js";import"./chunk-JPWGFXZT.js";import"./chunk-CGSMHTKB.js";import{Hb as p,hc as s,ic as a,jc as i,kc as r,ob as n}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var h=(()=>{let e=class e{constructor(){this.tabs=[{Title:"Users",Url:"/menu/users/users",Description:""},{Title:"Groups",Url:"/menu/users/groups",Description:""},{Title:"Setup",Url:"/menu/users/setup",Description:""}]}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=p({type:e,selectors:[["app-user-menu"]],decls:5,vars:2,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs","usePermissions"]],template:function(o,c){o&1&&(a(0,"nav",0)(1,"div",1)(2,"div"),r(3,"nav-tab",2),i()()(),r(4,"router-outlet")),o&2&&(n(3),s("Tabs",c.tabs)("usePermissions",!0))},dependencies:[d,l,m,u],encapsulation:2});let t=e;return t})(),g=[{path:"",component:h,children:[{path:"users",loadComponent(){return import("./chunk-BTCNW6N3.js").then(t=>t.UsersComponent)},data:{title:"Users"}},{path:"users/form",loadComponent(){return import("./chunk-LZHM5AMX.js").then(t=>t.UserFormComponent)},data:{title:"Users Form"}},{path:"users/info",loadComponent(){return import("./chunk-T5NCGRUA.js").then(t=>t.UserInfoComponent)},data:{title:"Users Info"}},{path:"groups",loadComponent(){return import("./chunk-MORMHJFP.js").then(t=>t.GroupsComponent)},data:{title:"Groups"}},{path:"setup",loadComponent(){return import("./chunk-I6YNUCDO.js").then(t=>t.SetupInfoComponent)},data:{title:"Setup Info"}},{path:"setup/form",loadComponent(){return import("./chunk-Q44OVAQU.js").then(t=>t.SetupFormComponent)},data:{title:"Setup Form"}},{path:"groups/form",loadComponent(){return import("./chunk-GLQBRY2Y.js").then(t=>t.GroupsFormComponent)},data:{title:"Groups Form"}},{path:"groups/info",loadComponent(){return import("./chunk-INSRQ7YT.js").then(t=>t.GroupInfoComponent)},data:{title:"Groups Info"}},{path:"**",redirectTo:"users",pathMatch:"full"},{path:"",pathMatch:"full",redirectTo:"users"}]}];export{h as UserMenuComponent,g as userRoutes};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as L,b as G}from"./chunk-
|
|
1
|
+
import{a as L,b as G}from"./chunk-FH2KAM6J.js";import{b as z}from"./chunk-SNRWOTPO.js";import"./chunk-ROS2QMKF.js";import"./chunk-IA7NJXJD.js";import"./chunk-UEXWQT5J.js";import"./chunk-ZC526ERX.js";import"./chunk-6H7M43WO.js";import"./chunk-HO2TMGLM.js";import"./chunk-IZZY74PN.js";import"./chunk-O3BS4AC6.js";import{A as q,h as W,m as H}from"./chunk-6UM4NHOR.js";import"./chunk-RQUCYFCB.js";import{b as j,e as P}from"./chunk-D6JH2KV4.js";import"./chunk-JPWGFXZT.js";import{B as N,w as A}from"./chunk-CGSMHTKB.js";import"./chunk-XBIHN6D3.js";import{Hb as E,Ia as k,Nc as h,Pc as v,Rc as D,Sc as I,Tc as R,Z as M,_c as $,ac as C,cc as _,dc as T,fc as V,gc as B,hc as S,ic as c,id as g,jc as a,jd as b,ma as O,ob as l,ra as m,rc as f,wc as x,ya as d,yc as p,za as u}from"./chunk-OHGMB7HJ.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var y=(()=>{let t=class t{constructor(){this.httpService=m(P)}getClearCacheOptions$(){return this.httpService.get("/api/channelloader/OptionClearCache")}flushCache(o){return this.httpService.post("/api/Channel/RemoveCacheByRequest",o)}};t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=O({token:t,factory:t.\u0275fac});let n=t;return n})();function K(n,t){if(n&1){let r=f();c(0,"button",11),x("click",function(){let e=d(r),i=p();return u(i.onFlushCache(e))}),h(1," Flush Cache "),a()}if(n&2){let r,o=p();S("disabled",((r=o.selectedOptions())==null?null:r.length)==0)}}function Q(n,t){if(n&1){let r=f();c(0,"mat-checkbox",12),x("change",function(e){let i=d(r),s=p();return u(s.onSelectAll(e.checked,i))}),a()}}function U(n,t){if(n&1){let r=f();c(0,"tr")(1,"td")(2,"div")(3,"mat-checkbox",13),R("ngModelChange",function(e){let i=d(r).$implicit;return I(i.selected,e)||(i.selected=e),u(e)}),x("ngModelChange",function(){d(r);let e=p(),i=p();return u(i.onSelectOption(e))}),a()()(),c(4,"td"),h(5),a(),c(6,"td")(7,"div",14),h(8),a()()()}if(n&2){let r=t.$implicit;l(3),D("ngModel",r.selected),l(2),v(" ",r.Name," "),l(3),v(" ",r.Description," ")}}function X(n,t){n&1&&V(0,U,9,3,"tr",null,T),n&2&&B(t)}var Ce=(()=>{let t=class t{constructor(){this.flushCacheService=m(y),this.toastr=m(j),this.clearCacheOptions$=this.flushCacheService.getClearCacheOptions$().pipe(M(1)),this.selectedOptions=k([])}onFlushCache(o){confirm("Are you sure you want to flush the cache?")&&this.flushCacheService.flushCache(this.selectedOptions()).subscribe(i=>{this.toastr.success(i.Message,"Successfully flushed the cache"),o.forEach(s=>s.selected=!1)})}onSelectAll(o,e){e.forEach(i=>i.selected=o),this.onSelectOption(e)}onSelectOption(o){let e=o.filter(i=>i.selected).map(i=>i.ID);this.selectedOptions.set(e)}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=E({type:t,selectors:[["app-flush-cache"]],features:[$([y])],decls:22,vars:11,consts:[["headerTitle","Flush Cache",3,"hideSearchBox","hideSearchDropdown"],[1,"btn","btn-success","btn-lg","text-success","me-2",3,"disabled"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-12"],[1,"table-responsive"],[1,"table","table-hover"],[1,"table-light"],[2,"width","20px"],["color","primary",2,"margin-bottom","-5px","margin-top","-5px"],[2,"width","300px"],[1,"btn","btn-success","btn-lg","text-success","me-2",3,"click","disabled"],["color","primary",2,"margin-bottom","-5px","margin-top","-5px",3,"change"],["color","primary",2,"margin-bottom","-5px","margin-top","-5px",3,"ngModelChange","ngModel"],[1,"text-capitalize"]],template:function(e,i){if(e&1&&(c(0,"mainpanel",0)(1,"actions"),C(2,K,2,1,"button",1),g(3,"async"),a(),c(4,"content")(5,"div",2)(6,"div",3)(7,"div",4)(8,"div",5)(9,"table",6)(10,"thead")(11,"tr",7)(12,"th",8),C(13,Q,1,0,"mat-checkbox",9),g(14,"async"),a(),c(15,"th",10),h(16,"Cache"),a(),c(17,"th"),h(18,"Description"),a()()(),c(19,"tbody"),C(20,X,2,0),g(21,"async"),a()()()()()()()()),e&2){let s,w,F;S("hideSearchBox",!0)("hideSearchDropdown",!0),l(2),_((s=b(3,5,i.clearCacheOptions$))?2:-1,s),l(11),_((w=b(14,7,i.clearCacheOptions$))?13:-1,w),l(7),_((F=b(21,9,i.clearCacheOptions$))?20:-1,F)}},dependencies:[N,z,G,L,q,W,H,A],encapsulation:2});let n=t;return n})();export{Ce as FlushCacheComponent};
|