marketplacepos 5.48.0 → 5.48.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Marketplace/3rdpartylicenses.txt +26 -26
- package/Marketplace/{chunk-222IOSGU.js → chunk-2F4DTZCZ.js} +1 -1
- package/Marketplace/{chunk-3LU2SFN4.js → chunk-2IASUYTM.js} +1 -1
- package/Marketplace/chunk-2USFVKEX.js +1 -0
- package/Marketplace/chunk-36U7D4LI.js +1 -0
- package/Marketplace/chunk-3JYZF65T.js +1 -0
- package/Marketplace/chunk-3K2EKA5O.js +1 -0
- package/Marketplace/{chunk-ZV7EHPNJ.js → chunk-3L7Y6LG6.js} +1 -1
- package/Marketplace/chunk-4JDI3AL5.js +1 -0
- package/Marketplace/{chunk-5YBWBAQS.js → chunk-4YCSITNV.js} +1 -1
- package/Marketplace/{chunk-55BTWXFX.js → chunk-5BSPSA4O.js} +1 -1
- package/Marketplace/chunk-5CHTDUME.js +1 -0
- package/Marketplace/chunk-5KYN6Y7M.js +1 -0
- package/Marketplace/{chunk-56BH43Y7.js → chunk-5X2E3W32.js} +1 -1
- package/Marketplace/{chunk-WW7F6LSG.js → chunk-5X2L45XK.js} +1 -1
- package/Marketplace/chunk-6EORXONU.js +4 -0
- package/Marketplace/{chunk-34UF36YY.js → chunk-6OIMOM7S.js} +1 -1
- package/Marketplace/{chunk-J2BPOHP6.js → chunk-6OJQRHIZ.js} +1 -1
- package/Marketplace/{chunk-ZAUKG4R6.js → chunk-6PW6S7MI.js} +1 -1
- package/Marketplace/chunk-6XDT56RT.js +2 -0
- package/Marketplace/{chunk-JOKDW6WD.js → chunk-7DT7FQ2T.js} +1 -1
- package/Marketplace/{chunk-KKB4B7FU.js → chunk-7GY4O2UX.js} +3 -3
- package/Marketplace/chunk-7SB4C4PT.js +1 -0
- package/Marketplace/chunk-A7PUMY67.js +1 -0
- package/Marketplace/chunk-ADKAX3OO.js +1 -0
- package/Marketplace/chunk-AEVLZ7NS.js +1 -0
- package/Marketplace/{chunk-NECWUPZQ.js → chunk-AFIF6VRM.js} +1 -1
- package/Marketplace/chunk-AGBJEXIM.js +1 -0
- package/Marketplace/chunk-ALPG22RQ.js +1 -0
- package/Marketplace/{chunk-DRTRU4DB.js → chunk-B6F5PDL5.js} +1 -1
- package/Marketplace/{chunk-HERBJRWM.js → chunk-BXYXVBXP.js} +1 -1
- package/Marketplace/{chunk-KWNXPX2M.js → chunk-C6JHPCLF.js} +1 -1
- package/Marketplace/{chunk-B4QCGMST.js → chunk-C7N6EI73.js} +1 -1
- package/Marketplace/{chunk-PQEXTCFW.js → chunk-CAZ7U2IL.js} +10 -10
- package/Marketplace/chunk-CBU473N2.js +1 -0
- package/Marketplace/{chunk-UNGNRJ2B.js → chunk-CLQGGKN6.js} +1 -1
- package/Marketplace/chunk-CT6UFONR.js +1 -0
- package/Marketplace/{chunk-IO2TWJDO.js → chunk-DAUML5UD.js} +1 -1
- package/Marketplace/chunk-DH5CXAEM.js +1 -0
- package/Marketplace/chunk-DHPNXR6E.js +1 -0
- package/Marketplace/chunk-DTAHV4GM.js +1 -0
- package/Marketplace/{chunk-MQXW3UAW.js → chunk-DXYMG6QK.js} +1 -1
- package/Marketplace/chunk-E3EBAWLJ.js +1 -0
- package/Marketplace/chunk-E66QUDQF.js +1 -0
- package/Marketplace/chunk-E6ZWL77N.js +1 -0
- package/Marketplace/chunk-EDEZ3JLR.js +4 -0
- package/Marketplace/{chunk-OROFEDQN.js → chunk-FCEXPGTK.js} +1 -1
- package/Marketplace/chunk-FCFCTT5A.js +1 -0
- package/Marketplace/chunk-FHER4TFY.js +1 -0
- package/Marketplace/{chunk-VZSHSSQZ.js → chunk-FKGKMEDE.js} +1 -1
- package/Marketplace/chunk-FRZCC6KZ.js +1 -0
- package/Marketplace/chunk-GG3MDS4C.js +1 -0
- package/Marketplace/{chunk-ONU4O7N2.js → chunk-GPHNPV7O.js} +1 -1
- package/Marketplace/{chunk-J7FL3VT4.js → chunk-GURSK3ZV.js} +1 -1
- package/Marketplace/{chunk-N3WBRUNI.js → chunk-GVI6GJHY.js} +1 -1
- package/Marketplace/chunk-GX6JPDQ5.js +1 -0
- package/Marketplace/chunk-H7GV5SNI.js +5 -0
- package/Marketplace/{chunk-S32PEKW5.js → chunk-HKHNRMPT.js} +1 -1
- package/Marketplace/{chunk-5O33CV4F.js → chunk-I723PUUO.js} +1 -1
- package/Marketplace/{chunk-PGR6BEOA.js → chunk-I7C6W3RB.js} +1 -1
- package/Marketplace/{chunk-R6SCDZGW.js → chunk-IDH7MCR3.js} +1 -1
- package/Marketplace/chunk-ILW6ZFFV.js +1 -0
- package/Marketplace/chunk-J6BQDYXO.js +1 -0
- package/Marketplace/{chunk-TCWEUEBR.js → chunk-J6CZKQ53.js} +1 -1
- package/Marketplace/chunk-JBEKD57G.js +1 -0
- package/Marketplace/{chunk-G6P2UZU4.js → chunk-JW7NES7L.js} +1 -1
- package/Marketplace/{chunk-O4HOLA7Y.js → chunk-KSVJCX2D.js} +1 -1
- package/Marketplace/chunk-KVDREHOE.js +1 -0
- package/Marketplace/chunk-KZSTYKIP.js +1 -0
- package/Marketplace/{chunk-76CPUGUB.js → chunk-L76NLJD7.js} +2 -2
- package/Marketplace/{chunk-XBDQR2BA.js → chunk-LABF6W37.js} +1 -1
- package/Marketplace/{chunk-MAMCOUZ6.js → chunk-M2BYW5SR.js} +1 -1
- package/Marketplace/{chunk-P6TDS7UT.js → chunk-M65Z55OS.js} +1 -1
- package/Marketplace/chunk-MKADKY44.js +2 -0
- package/Marketplace/{chunk-NYJPPKGX.js → chunk-NCKPMA6Q.js} +1 -1
- package/Marketplace/{chunk-TDCMI7YC.js → chunk-O2YF5VGD.js} +1 -1
- package/Marketplace/chunk-O4EO3YBL.js +1 -0
- package/Marketplace/{chunk-Y6WFE3L2.js → chunk-OBF4XVU7.js} +1 -1
- package/Marketplace/chunk-PDCVMSLL.js +1 -0
- package/Marketplace/chunk-PLLHTY6O.js +15 -0
- package/Marketplace/chunk-PMVDQ2OP.js +1 -0
- package/Marketplace/chunk-PZKN5FIT.js +1 -0
- package/Marketplace/chunk-Q4TAOZ73.js +1 -0
- package/Marketplace/chunk-QCV5XC3U.js +266 -0
- package/Marketplace/{chunk-GV3NEJJ6.js → chunk-QFSA7CU4.js} +1 -1
- package/Marketplace/{chunk-XUBQATMN.js → chunk-R2XT5M5F.js} +1 -1
- package/Marketplace/chunk-RCBY7EIY.js +1 -0
- package/Marketplace/{chunk-J5BZDPXE.js → chunk-RQQWNLDZ.js} +1 -1
- package/Marketplace/chunk-S5R6MCNP.js +5 -0
- package/Marketplace/{chunk-RJFFTIAO.js → chunk-S7CKRTJV.js} +1 -1
- package/Marketplace/{chunk-PZB3GQWT.js → chunk-SHUYFOQI.js} +1 -1
- package/Marketplace/{chunk-SILAIDPV.js → chunk-STYL7ETF.js} +1 -1
- package/Marketplace/{chunk-E7FHMF3J.js → chunk-SZVL42NR.js} +1 -1
- package/Marketplace/chunk-T7HRAMHR.js +1 -0
- package/Marketplace/chunk-TIIGDXIJ.js +2 -0
- package/Marketplace/{chunk-CEXUETT6.js → chunk-TJYYRHZZ.js} +1 -1
- package/Marketplace/{chunk-DYQ3BWPB.js → chunk-TXOZULMZ.js} +1 -1
- package/Marketplace/chunk-TYQY4WPY.js +1 -0
- package/Marketplace/chunk-UBTALPOC.js +2 -0
- package/Marketplace/{chunk-6XT3JSG5.js → chunk-UCEZJNIL.js} +1 -1
- package/Marketplace/chunk-VWX2IX64.js +1 -0
- package/Marketplace/{chunk-W7YZT7CH.js → chunk-VYQD3A3M.js} +1 -1
- package/Marketplace/{chunk-37NOSLQL.js → chunk-WHHW4IZT.js} +1 -1
- package/Marketplace/{chunk-74JHI4MS.js → chunk-WNUTNP6I.js} +1 -1
- package/Marketplace/{chunk-DQOO5YZC.js → chunk-WRK3ZHRX.js} +1 -1
- package/Marketplace/chunk-X6COQADC.js +1 -0
- package/Marketplace/{chunk-7Y2L4CNS.js → chunk-XDBH7EGC.js} +1 -1
- package/Marketplace/chunk-XK4RP5MQ.js +1 -0
- package/Marketplace/{chunk-3I2V337G.js → chunk-XLIPGDSC.js} +1 -1
- package/Marketplace/chunk-Y77WYZ6Y.js +5 -0
- package/Marketplace/{chunk-NLSVMXR7.js → chunk-ZKIO2ZQ6.js} +1 -1
- package/Marketplace/chunk-ZME22WYI.js +1 -0
- package/Marketplace/{chunk-A7YRNCQP.js → chunk-ZTHO6JJM.js} +1 -1
- package/Marketplace/chunk-ZUL6ZHSW.js +1 -0
- package/Marketplace/{chunk-UW3UCIOY.js → chunk-ZW2TMVZP.js} +1 -1
- package/Marketplace/index.html +2 -2
- package/Marketplace/main-YJKBQ3LW.js +1 -0
- package/Marketplace/{styles-3SQUCHWS.css → styles-ANCVZJP7.css} +1 -1
- package/package.json +1 -1
- package/Marketplace/chunk-2FSRCK7Y.js +0 -1
- package/Marketplace/chunk-2LCP6ZFH.js +0 -1
- package/Marketplace/chunk-3YDWTOSL.js +0 -1
- package/Marketplace/chunk-44URQXRM.js +0 -1
- package/Marketplace/chunk-465DKI6M.js +0 -1
- package/Marketplace/chunk-46IROEMV.js +0 -2
- package/Marketplace/chunk-4R746B4G.js +0 -1
- package/Marketplace/chunk-573EEV7X.js +0 -1
- package/Marketplace/chunk-5S7ONNKP.js +0 -1
- package/Marketplace/chunk-6ZEQRKBC.js +0 -1
- package/Marketplace/chunk-7HVOZWYY.js +0 -1
- package/Marketplace/chunk-7U32FNM2.js +0 -2
- package/Marketplace/chunk-7VRLCSNB.js +0 -1
- package/Marketplace/chunk-AL5RTE5M.js +0 -1
- package/Marketplace/chunk-AXC6LM6T.js +0 -1
- package/Marketplace/chunk-BHGEKKCM.js +0 -1
- package/Marketplace/chunk-BLHKSSK6.js +0 -1
- package/Marketplace/chunk-BXOHTPGP.js +0 -1
- package/Marketplace/chunk-CNTLG54D.js +0 -1
- package/Marketplace/chunk-DLXWO2XC.js +0 -1
- package/Marketplace/chunk-DPQMNLFO.js +0 -1
- package/Marketplace/chunk-E5JZCOHZ.js +0 -1
- package/Marketplace/chunk-EMLE4JDW.js +0 -1
- package/Marketplace/chunk-FFTZPZOW.js +0 -5
- package/Marketplace/chunk-FHZNWINZ.js +0 -1
- package/Marketplace/chunk-GLMM3CVD.js +0 -1
- package/Marketplace/chunk-GQCDEPDY.js +0 -1
- package/Marketplace/chunk-GZLXMT7F.js +0 -1
- package/Marketplace/chunk-HG4R6CUP.js +0 -1
- package/Marketplace/chunk-HU7LMMZJ.js +0 -1
- package/Marketplace/chunk-I3IA6MAD.js +0 -1
- package/Marketplace/chunk-IZZQQW5G.js +0 -5
- package/Marketplace/chunk-JLVWTKDH.js +0 -1
- package/Marketplace/chunk-JUO4RKIH.js +0 -1
- package/Marketplace/chunk-L2GMXVN6.js +0 -1
- package/Marketplace/chunk-M7U5T2ZP.js +0 -1
- package/Marketplace/chunk-MEER4VNV.js +0 -1
- package/Marketplace/chunk-N26QQL77.js +0 -1
- package/Marketplace/chunk-NOIKC7TF.js +0 -1
- package/Marketplace/chunk-ODQVHQPB.js +0 -15
- package/Marketplace/chunk-PE7QBBA6.js +0 -1
- package/Marketplace/chunk-PNUEO4J2.js +0 -1
- package/Marketplace/chunk-PS43OK3J.js +0 -1
- package/Marketplace/chunk-SNSROU6N.js +0 -1
- package/Marketplace/chunk-SUTHLGCO.js +0 -266
- package/Marketplace/chunk-TUJHFVOP.js +0 -1
- package/Marketplace/chunk-UI5ITL7Z.js +0 -4
- package/Marketplace/chunk-XFIUNEOU.js +0 -1
- package/Marketplace/chunk-XW2CGM4G.js +0 -5
- package/Marketplace/chunk-YJTPDV4D.js +0 -1
- package/Marketplace/chunk-YKEAAH3N.js +0 -2
- package/Marketplace/chunk-YTUPRTC2.js +0 -1
- package/Marketplace/chunk-ZS465QKM.js +0 -2
- package/Marketplace/main-NBCLYU5Y.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as Oe,b as We}from"./chunk-76CPUGUB.js";import{a as Ae,b as De,c as Ne}from"./chunk-BHGEKKCM.js";import{a as Ie}from"./chunk-GZLXMT7F.js";import{a as U}from"./chunk-N3WBRUNI.js";import{a as Fe}from"./chunk-RJFFTIAO.js";import"./chunk-EYT2YJGK.js";import"./chunk-RNWHARPK.js";import{a as Ee}from"./chunk-7JQEF4XX.js";import"./chunk-NECWUPZQ.js";import"./chunk-UW3UCIOY.js";import"./chunk-A7YRNCQP.js";import"./chunk-OROFEDQN.js";import"./chunk-PZB3GQWT.js";import"./chunk-B4QCGMST.js";import"./chunk-GV3NEJJ6.js";import"./chunk-OPXITNRF.js";import"./chunk-HPINZVE4.js";import"./chunk-D2J64VUP.js";import"./chunk-6Q6L5NUD.js";import"./chunk-ONU4O7N2.js";import"./chunk-3RK6DDJD.js";import"./chunk-5YBWBAQS.js";import"./chunk-37NOSLQL.js";import"./chunk-N5AE5WMQ.js";import"./chunk-J2BPOHP6.js";import"./chunk-6KWG6O5L.js";import{a as Ve}from"./chunk-AL5RTE5M.js";import"./chunk-3JRUKSV3.js";import"./chunk-SJ5MC42H.js";import"./chunk-4RLWHMI6.js";import"./chunk-NWB7EVME.js";import{a as Pe}from"./chunk-XFIUNEOU.js";import"./chunk-AFDI4TD4.js";import"./chunk-4RG5YR7N.js";import"./chunk-5MV3UFJQ.js";import"./chunk-E6AMKEQR.js";import"./chunk-IGKMJFKP.js";import"./chunk-ITGVXYDV.js";import"./chunk-HK5FXZE4.js";import"./chunk-KJE5GRQ4.js";import"./chunk-4ILDFTIG.js";import"./chunk-A6QXXKPR.js";import"./chunk-5O33CV4F.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-M4ZE35XK.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import"./chunk-5PMKN6PM.js";import{a as x}from"./chunk-YJTPDV4D.js";import{b as P,e as B}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import{b as d,c as V}from"./chunk-BLHKSSK6.js";import{b as ve,d as ye,f as xe,g as ke,h as Te,m as Me,n as Le}from"./chunk-UI5ITL7Z.js";import{A as z,b as Ce,c as _e,h as W,m as R,o as be}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import{v as Se,w as we}from"./chunk-SILAIDPV.js";import"./chunk-3I2V337G.js";import{i as he,j as ge,l as fe,m as O}from"./chunk-LNJUGHOX.js";import{$b as k,$c as ce,Bc as oe,Cc as re,Dc as ae,G as X,Gb as D,Ha as H,Lc as le,Mc as c,Nc as L,Oc as N,Qc as S,Rc as w,Sc as v,Tc as pe,Uc as se,Vc as F,Z as Y,Zc as me,aa as Z,bc as T,cc as te,ec as ie,fc as ne,gc as y,hc as o,hd as E,ic as r,id as I,jc as C,jd as de,lb as $,ma as A,nb as m,od as ue,qa as j,qc as M,ra as b,v as J,vc as _,xa as h,xc as f,ya as g,zb as ee}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import{a as K,b as G}from"./chunk-66YHNWRR.js";var Re=(()=>{let l=class l{constructor(e,t){this.http=e,this.toastr=t}printTokopediaShippingLabel(e,t=!1){let i={OrderNumber:e,Printed:t};return this.http.post(x.TokopediaPrintShippingLabel,i)}printTiktokShippingLabel(e,t){let i={ShopID:t,OrderNumber:e};return this.http.post(x.TiktokPrintShippingLabel,i)}printShopeeShippingLabel(e,t){let i={ShopID:t,OrderNumber:e};return this.http.post(x.ShopeePrintShippingLabel,i).pipe(J(p=>(p&&(p.Number=e),p)))}printLazadaShippingLabel(e,t){let i={ShopID:t,OrderNumber:e};return this.http.post(x.LazadaPrintShippingLabel,i)}handleShippingLabelResponse(e,t){switch(t){case d.Tokopedia:let u=window.open("about:blank","_blank");u.document.write(e.File),u.document.close();break;case d.Tiktok:e.data!=null?window.open(e.data.doc_url,"_blank"):this.toastr.error("Cannot Print the Shipping Label,The invoice Number is not set to Pickup","Cannot Print");break;case d.Shopee:var i=Uint8Array.from(atob(e.File),s=>s.charCodeAt(0)),p=new Blob([i],{type:"octet/stream"});V.openDownloadFile(p,`${e?.Number}.pdf`);break;case d.Lazada:e?.result?.data!=null?window.open(e?.result?.data?.pdf_url,"_blank"):this.toastr.error(e.message,"Cannot Print");break}}};l.\u0275fac=function(t){return new(t||l)(j(B),j(P))},l.\u0275prov=A({token:l,factory:l.\u0275fac,providedIn:"root"});let a=l;return a})();var ze=(()=>{let l=class l{constructor(e){this.dialogRef=e,this.tandaiSudahDicetak=!1}onCancel(){this.dialogRef.close()}onPrint(){this.dialogRef.close(this.tandaiSudahDicetak?1:0)}};l.\u0275fac=function(t){return new(t||l)(ee(ve))},l.\u0275cmp=D({type:l,selectors:[["app-print-tokopedia"]],decls:17,vars:1,consts:[[1,"container-fluid"],[1,"text-center","mb-4","fw-bold","mt-6"],[1,"row"],[1,"col-12"],[1,"fs-5"],[1,"d-flex","align-items-center","text-center","justify-content-center","mb-8"],[1,"me-2",3,"ngModelChange","ngModel"],[1,"fs-5","pt-1"],[1,"d-flex","align-items-center","justify-content-center"],[1,"btn","btn-light-blue","text-primary","btn-lg","fw-bold","mx-3",3,"click"],[1,"btn","btn-light-blue","me-6","text-primary","btn-lg","fw-bold","mx-3",3,"click"]],template:function(t,i){t&1&&(o(0,"div",0)(1,"h2",1),c(2,"Cetak label pesanan"),r(),o(3,"mat-dialog-content")(4,"div",2)(5,"div",3)(6,"p",4),c(7,"Kamu akan mencetak label yang berisi detail pesanan"),r(),o(8,"div",5)(9,"mat-checkbox",6),v("ngModelChange",function(u){return w(i.tandaiSudahDicetak,u)||(i.tandaiSudahDicetak=u),u}),r(),o(10,"span",7),c(11,'Pesanan telah ditandai sebagai "Sudah Dicetak"'),r()()()()(),o(12,"mat-dialog-actions",8)(13,"button",9),_("click",function(){return i.onCancel()}),c(14,"Cancel"),r(),o(15,"button",10),_("click",function(){return i.onPrint()}),c(16,"Cetak Pesanan"),r()()()),t&2&&(m(9),S("ngModel",i.tandaiSudahDicetak))},dependencies:[O,z,W,R,Te,ke,xe],encapsulation:2});let a=l;return a})();var q=(()=>{let l=class l{constructor(){this.httpService=b(B),this.shippingLabelService=b(Re),this.toastrService=b(P),this.dialog=b(ye)}printShippingLabel(e){switch(e?.MarketType){case d.Shopee:this.shippingLabelService.printShopeeShippingLabel(e.Number,e.ShopID).subscribe(t=>this.shippingLabelService.handleShippingLabelResponse(t,d.Shopee));break;case d.Tiktok:this.shippingLabelService.printTiktokShippingLabel(e.Number,e.ShopID).subscribe(t=>this.shippingLabelService.handleShippingLabelResponse(t,d.Tiktok));break;case d.Tokopedia:this.dialog.open(ze).afterClosed().pipe(X(t=>V.IsNotEmpty(t)),Z(t=>this.shippingLabelService.printTokopediaShippingLabel(e.Number,t))).subscribe(t=>this.shippingLabelService.handleShippingLabelResponse(t,d.Tokopedia));break;case d.Lazada:this.shippingLabelService.printLazadaShippingLabel(e.Number,e.ShopID).subscribe(t=>this.shippingLabelService.handleShippingLabelResponse(t,d.Lazada));break;case d.Shopify:this.toastrService.error("Shopify not supported","Error Not supported");break}}printMultipleShippingLabel(e){let t=e.map(p=>({OrderNumber:p.Number,ShopID:p.ShopID})),i="";switch(e[0]?.MarketType){case d.Shopee:i=x.ShopeePrintMultipleShippingLabel;break;case d.Tiktok:i=x.TiktokPrintMultipleShippingLabel;break;case d.Lazada:i=x.LazadaPrintMultipleShippingLabel;break}this.httpService.post(i,t).subscribe(p=>{var u=Uint8Array.from(atob(p.File),Be=>Be.charCodeAt(0)),s=new Blob([u],{type:"octet/stream"});V.openDownloadFile(s,`${p?.Name}.pdf`)})}};l.\u0275fac=function(t){return new(t||l)},l.\u0275prov=A({token:l,factory:l.\u0275fac});let a=l;return a})();var He=["contextMenu"],Ue=a=>({"td-cell-hover":a});function Qe(a,l){if(a&1){let n=M();o(0,"button",20),_("click",function(){h(n);let t=f(),i=F(0);return g(t.onDowloadShippingLabel(i))}),C(1,"i",21),o(2,"span"),c(3,"Download Shipping Label"),r()()}}function qe(a,l){if(a&1){let n=M();o(0,"input",45),v("ngModelChange",function(t){h(n);let i=f().$implicit;return w(i.selected,t)||(i.selected=t),g(t)}),_("ngModelChange",function(){h(n);let t=f(3),i=F(0);return g(t.onSelectOrders(i))}),r()}if(a&2){let n=f().$implicit,e=f(2);S("ngModel",n.selected),y("disabled",e.selectedChannelType()!=null&&e.selectedChannelType()!=n.MarketType)}}function Ke(a,l){if(a&1&&C(0,"variants-dropdown",38),a&2){let n=f().$implicit;y("variants",n==null?null:n.Variants)}}function Ge(a,l){if(a&1&&C(0,"variant-with-image",39),a&2){let n=f().$implicit;y("variant",n==null?null:n.Variants[0])}}function Je(a,l){if(a&1&&(o(0,"span"),c(1),r()),a&2){let n=f().$implicit;m(),N("(",n.LogisticService==null?null:n.LogisticService.Option,")")}}function Xe(a,l){if(a&1){let n=M();o(0,"button",46),_("click",function(){h(n);let t=f().$implicit,i=f(2);return g(i.onPrintShippingLabel(t))}),C(1,"i",47),r()}}function Ye(a,l){if(a&1){let n=M();o(0,"tr")(1,"td"),k(2,qe,1,2,"input",30),r(),o(3,"td")(4,"div",31),C(5,"img",32),E(6,"channelImage"),o(7,"div",33)(8,"div"),c(9),r(),o(10,"small",34)(11,"span"),c(12),r()()()()(),o(13,"td")(14,"div",35)(15,"div",36)(16,"div"),C(17,"order-link",37),r()(),o(18,"small"),c(19),E(20,"date"),r()()(),o(21,"td"),c(22),r(),o(23,"td"),k(24,Ke,1,1,"variants-dropdown",38)(25,Ge,1,1,"variant-with-image",39),r(),o(26,"td",40),c(27),E(28,"number"),r(),o(29,"td",41),_("mouseenter",function(t){let i=h(n).$implicit,p=f(2);return g(p.onMouseEnter(t,i))}),o(30,"div",42)(31,"div",35)(32,"div",36)(33,"span"),c(34),r(),k(35,Je,2,1,"span"),r(),o(36,"small"),c(37),r()()()(),o(38,"td",43),k(39,Xe,2,0,"button",44),r()()}if(a&2){let n=l.$implicit,e=f(2);m(2),T((n==null?null:n.MarketType)!=e.channelType.WooCommerce?2:-1),m(3),y("src",I(6,16,n==null?null:n.MarketType),$)("alt",n==null||n.Variants[0]==null?null:n.Variants[0].Name),m(4),L(n.Outlet),m(3),L(n.ChannelName),m(5),y("order",n),m(2),N(" ",de(20,18,n==null?null:n.Created,"dd/MM/yyyy HH:mm:ss")," "),m(3),L(n.Customer),m(),le(ce(23,Ue,(n.Variants==null?null:n.Variants.length)>1)),m(),T((n.Variants==null?null:n.Variants.length)>1?24:25),m(3),L(I(28,21,n.Amount)),m(7),L(n.LogisticService!=null&&n.LogisticService.Name?n.LogisticService==null?null:n.LogisticService.Name:"-"),m(),T(n.LogisticService!=null&&n.LogisticService.Option&&(n.LogisticService==null?null:n.LogisticService.Option)!="Default"?35:-1),m(2),N(" ",n.ReferenceNumber?n.ReferenceNumber:"-"," "),m(2),T((n==null?null:n.MarketType)!=e.channelType.WooCommerce?39:-1)}}function Ze(a,l){if(a&1){let n=M();o(0,"div",17)(1,"table",22)(2,"thead",23)(3,"tr",24),C(4,"th",25),o(5,"th",26),c(6,"Outlet"),r(),o(7,"th",26),c(8,"Number"),r(),o(9,"th",26),c(10,"Customer"),r(),o(11,"th"),c(12,"Items"),r(),o(13,"th",27),c(14,"Amount"),r(),o(15,"th",26),c(16,"Shipping"),r(),C(17,"th",28),r()(),o(18,"tbody"),ie(19,Ye,40,25,"tr",null,te),r()(),o(21,"app-custom-paginator",29),_("next",function(){h(n);let t=f();return g(t.initAwaitingCollection())})("previous",function(){h(n);let t=f();return g(t.initAwaitingCollection())}),r()()}if(a&2){let n=f(),e=F(0);m(19),ne(e),m(2),y("filter",n.filter())("totaldata",e==null?null:e.length)}}function $e(a,l){a&1&&(o(0,"div",18),C(1,"app-empty-state"),r())}var Xt=(()=>{let l=class l{constructor(){this.printShippingService=b(q),this.orderService=b(U),this.toastr=b(P),this.fulfillmentService=b(Oe),this.channelType=d,this.selectedOrders=H([]),this.selectedChannelType=ue(()=>{let e=null;return this.selectedOrders().length>0&&(e=this.selectedOrders()[0].MarketType),e}),this.filter=H({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null}),this.contextMenuItems=[{id:"refresh",label:"Refresh Shipping",icon:"fa-solid fa-arrows-rotate"},{id:"fulfillment",label:"Set Fulfillment",icon:"fa-solid fa-truck"}]}ngOnInit(){this.orderService.getOrderDefaultValue().subscribe({next:e=>{this.initFromDate(e)},error:e=>{console.error("Error fetching default date:",e),this.initFromDate(null)}})}initFromDate(e){this.filter.update(t=>G(K({},t),{From:e})),this.initAwaitingCollection()}initAwaitingCollection(){this.awaitingCollections$=this.orderService.getAwaitingCollectionOrders(this.filter()).pipe(Y(1))}onPrintShippingLabel(e){this.printShippingService.printShippingLabel(e)}onSelectOrders(e){let t=e.filter(i=>i.selected);this.selectedOrders.set(t)}onDowloadShippingLabel(e){e=e.map(t=>(t.selected=!1,t)),this.printShippingService.printMultipleShippingLabel(this.selectedOrders()),this.selectedOrders.set([])}onSetFulfillment(e){this.fulfillmentService.setFulfillmentOrder(e).subscribe(()=>{this.toastr.success("Fulfillment set successfully","Success"),this.initAwaitingCollection()})}refreshShippingAndRefNumber(e){this.orderService.refreshShippingCourier(e.ShopID,e.Number).subscribe(()=>{this.toastr.success("Shipping courier and reference number refreshed","Success"),this.initAwaitingCollection()})}onMouseEnter(e,t){(!t.LogisticService?.Name||!t.ReferenceNumber)&&this.contextMenuEl.show(e,t)}onSelectContextItem(e){e.item?.id==="refresh"?this.refreshShippingAndRefNumber(e.data):this.onSetFulfillment(e.data)}};l.\u0275fac=function(t){return new(t||l)},l.\u0275cmp=D({type:l,selectors:[["app-awaiting-collection"]],viewQuery:function(t,i){if(t&1&&oe(He,5),t&2){let p;re(p=ae())&&(i.contextMenuEl=p.first)}},features:[me([U,q])],decls:37,vars:13,consts:[["contextMenu",""],["headerTitle","Awaiting Collection","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],[1,"btn","btn-outline-secondary","shadow","rounded"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-3"],[1,"fa-regular","fa-tv","me-3"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[3,"onSelectItem","items"],[1,"btn","btn-outline-secondary","shadow","rounded",3,"click"],["aria-hidden","true",1,"fa-solid","fa-arrow-down-to-line","me-3"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","5px"],[2,"width","200px"],[1,"text-end",2,"width","100px"],[2,"width","50px"],["rowCountApi","/api/orders/awaitingcollectioncount",3,"next","previous","filter","totaldata"],["type","checkbox",3,"ngModel","disabled"],[1,"d-flex","align-items-center","gap-3"],[2,"width","20px","height","20px",3,"src","alt"],[1,"lh-base"],[1,"d-flex","align-items-center","gap-2"],[1,"lh-sm"],[1,"d-flex","align-items-end","gap-2"],[2,"font-size","14px",3,"order"],[3,"variants"],[3,"variant"],[1,"text-end"],[3,"mouseenter"],[1,"d-flex","align-items-center","gap-6"],[1,"text-end","td-cell-hover"],["type","button","aria-label","Print order","title","Print","matTooltip","Download shipping label",1,"btn","p-0","border-0","bg-transparent"],["type","checkbox",3,"ngModelChange","ngModel","disabled"],["type","button","aria-label","Print order","title","Print","matTooltip","Download shipping label",1,"btn","p-0","border-0","bg-transparent",3,"click"],["aria-hidden","true",1,"fa-solid","fa-arrow-down-to-line"]],template:function(t,i){if(t&1){let p=M();pe(0),E(1,"async"),o(2,"mainpanel",1),_("onSubmit",function(){return h(p),g(i.initAwaitingCollection())}),v("textChange",function(s){return h(p),w(i.filter().Number,s)||(i.filter().Number=s),g(s)}),o(3,"actions"),k(4,Qe,4,0,"button",2),o(5,"a",3),C(6,"i",4),o(7,"span"),c(8,"Order Fulfillment Display"),r()()(),o(9,"filters")(10,"div")(11,"label",5),c(12,"Channel"),r(),o(13,"app-channel-options-v2",6),v("ngModelChange",function(s){return h(p),w(i.filter().ListChannelID,s)||(i.filter().ListChannelID=s),g(s)}),r()(),o(14,"div",7)(15,"label",5),c(16,"From/To"),r(),o(17,"div",8)(18,"datepicker",9),v("dateChange",function(s){return h(p),w(i.filter().From,s)||(i.filter().From=s),g(s)}),r()(),o(19,"div")(20,"datepicker",10),v("dateChange",function(s){return h(p),w(i.filter().To,s)||(i.filter().To=s),g(s)}),r()()(),o(21,"div",7)(22,"label",11),c(23,"Page Number"),r(),o(24,"input",12),v("ngModelChange",function(s){return h(p),w(i.filter().PageNumber,s)||(i.filter().PageNumber=s),g(s)}),r()(),o(25,"div",7)(26,"label",11),c(27,"Page Size"),r(),o(28,"input",13),v("ngModelChange",function(s){return h(p),w(i.filter().PageSize,s)||(i.filter().PageSize=s),g(s)}),r()()(),o(29,"content")(30,"div",14)(31,"div",15)(32,"div",16),k(33,Ze,22,2,"div",17)(34,$e,2,0,"div",18),r()()()()(),o(35,"app-context-menu",19,0),_("onSelectItem",function(s){return h(p),g(i.onSelectContextItem(s))}),r()}if(t&2){let p=se(I(1,10,i.awaitingCollections$));m(2),S("text",i.filter().Number),m(2),T(i.selectedOrders().length>0?4:-1),m(9),y("multiple",!0),S("ngModel",i.filter().ListChannelID),m(5),S("date",i.filter().From),m(2),S("date",i.filter().To),m(4),S("ngModel",i.filter().PageNumber),m(4),S("ngModel",i.filter().PageSize),m(5),T((p==null?null:p.length)>0?33:34),m(2),y("items",i.contextMenuItems)}},dependencies:[O,Le,Me,Ee,Pe,z,_e,be,Ce,W,R,De,Ne,Fe,we,Se,Ie,We,Ve,he,fe,ge,Ae],encapsulation:2});let a=l;return a})();export{Xt as AwaitingCollectionComponent};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{A as le,c as ae,h as re,m as se}from"./chunk-L3W6SG2T.js";import{a as ce}from"./chunk-YTHY4IFS.js";import{b as ge,e as vt,f as fe,g as _e,h as W,i as Q,j as mt,l as be,m as ye,n as Ce,q as pt,r as ve,u as ht,v as xe,w as De}from"./chunk-SILAIDPV.js";import{C as ue,D as G,J as Ct,L as xt,M as Dt,a as yt,g as ct,h as de,n as dt,t as me,y as pe,z as he}from"./chunk-3I2V337G.js";import{I as oe,c as ie,f as lt,h as ne,m as B}from"./chunk-LNJUGHOX.js";import{$ as Z,$c as st,A as $,Ad as ee,Ba as D,Bc as it,Ca as jt,Cc as nt,Dc as ot,F as Lt,G as H,Gb as C,Ha as Bt,Hb as R,Ib as z,Ic as Ut,Jc as _t,Kb as L,Lb as Wt,Lc as at,Mb as u,Mc as j,Nc as Yt,O as P,Oa as X,Oc as rt,Qa as J,Qc as $t,Rc as Zt,Sc as Xt,Xc as Jt,Zb as tt,ad as bt,f as b,g as Rt,gc as p,hc as c,ic as d,jc as w,kb as Vt,kd as te,ma as T,na as F,nb as m,nc as Qt,oc as qt,pa as k,pc as Kt,qc as M,ra as s,rc as ft,sb as y,tb as Nt,ub as Ht,vb as zt,vc as g,xa as f,xc as h,ya as _,yb as Gt,yc as et,zb as I,zc as A}from"./chunk-ZYJ6LAJ3.js";import{a as x,b as Ft}from"./chunk-66YHNWRR.js";function Ve(e,o){}var O=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext};var Mt=(()=>{class e extends _e{_elementRef=s(J);_focusTrapFactory=s(he);_config;_interactivityChecker=s(pe);_ngZone=s(Nt);_focusMonitor=s(me);_renderer=s(Gt);_changeDetectorRef=s(ee);_injector=s(D);_platform=s(de);_document=s(jt);_portalOutlet;_focusTrapped=new b;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=s(O,{optional:!0})||new O,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(t){this._ariaLabelledByQueue.push(t),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(t){let i=this._ariaLabelledByQueue.indexOf(t);i>-1&&(this._ariaLabelledByQueue.splice(i,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(t){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachComponentPortal(t);return this._contentAttached(),i}attachTemplatePortal(t){this._portalOutlet.hasAttached();let i=this._portalOutlet.attachTemplatePortal(t);return this._contentAttached(),i}attachDomPortal=t=>{this._portalOutlet.hasAttached();let i=this._portalOutlet.attachDomPortal(t);return this._contentAttached(),i};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(t,i){this._interactivityChecker.isFocusable(t)||(t.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let n=()=>{a(),r(),t.removeAttribute("tabindex")},a=this._renderer.listen(t,"blur",n),r=this._renderer.listen(t,"mousedown",n)})),t.focus(i)}_focusByCssSelector(t,i){let n=this._elementRef.nativeElement.querySelector(t);n&&this._forceFocus(n,i)}_trapFocus(t){this._isDestroyed||Ht(()=>{let i=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||i.focus(t);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(t)||this._focusDialogContainer(t);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',t);break;default:this._focusByCssSelector(this._config.autoFocus,t);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let t=this._config.restoreFocus,i=null;if(typeof t=="string"?i=this._document.querySelector(t):typeof t=="boolean"?i=t?this._elementFocusedBeforeDialogWasOpened:null:t&&(i=t),this._config.restoreFocus&&i&&typeof i.focus=="function"){let n=dt(),a=this._elementRef.nativeElement;(!n||n===this._document.body||n===a||a.contains(n))&&(this._focusMonitor?(this._focusMonitor.focusVia(i,this._closeInteractionType),this._closeInteractionType=null):i.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(t){this._elementRef.nativeElement.focus?.(t)}_containsFocus(){let t=this._elementRef.nativeElement,i=dt();return t===i||t.contains(i)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=dt()))}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=C({type:e,selectors:[["cdk-dialog-container"]],viewQuery:function(i,n){if(i&1&&it(W,7),i&2){let a;nt(a=ot())&&(n._portalOutlet=a.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(i,n){i&2&&tt("id",n._config.id||null)("role",n._config.role)("aria-modal",n._config.ariaModal)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledByQueue[0])("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null)},features:[L],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(i,n){i&1&&u(0,Ve,0,0,"ng-template",0)},dependencies:[W],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit}
|
|
2
|
-
`],encapsulation:2})}return e})(),q=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new b;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(o,t){this.overlayRef=o,this.config=t,this.disableClose=t.disableClose,this.backdropClick=o.backdropClick(),this.keydownEvents=o.keydownEvents(),this.outsidePointerEvents=o.outsidePointerEvents(),this.id=t.id,this.keydownEvents.subscribe(i=>{i.keyCode===27&&!this.disableClose&&!ct(i)&&(i.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=o.detachments().subscribe(()=>{t.closeOnOverlayDetachments!==!1&&this.close()})}close(o,t){if(this._canClose(o)){let i=this.closed;this.containerInstance._closeInteractionType=t?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),i.next(o),i.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(o="",t=""){return this.overlayRef.updateSize({width:o,height:t}),this}addPanelClass(o){return this.overlayRef.addPanelClass(o),this}removePanelClass(o){return this.overlayRef.removePanelClass(o),this}_canClose(o){let t=this.config;return!!this.containerInstance&&(!t.closePredicate||t.closePredicate(o,t,this.componentInstance))}},Ne=new k("DialogScrollStrategy",{providedIn:"root",factory:()=>{let e=s(D);return()=>mt(e)}}),He=new k("DialogData"),ze=new k("DefaultDialogConfig");function Ge(e){let o=Bt(e),t=new y;return{valueSignal:o,get value(){return o()},change:t,ngOnDestroy(){t.complete()}}}var At=(()=>{class e{_injector=s(D);_defaultOptions=s(ze,{optional:!0});_parentDialog=s(e,{optional:!0,skipSelf:!0});_overlayContainer=s(ye);_idGenerator=s(G);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new b;_afterOpenedAtThisLevel=new b;_ariaHiddenElements=new Map;_scrollStrategy=s(Ne);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=$(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Z(void 0)));constructor(){}open(t,i){let n=this._defaultOptions||new O;i=x(x({},n),i),i.id=i.id||this._idGenerator.getId("cdk-dialog-"),i.id&&this.getDialogById(i.id);let a=this._getOverlayConfig(i),r=ve(this._injector,a),l=new q(r,i),v=this._attachContainer(r,l,i);if(l.containerInstance=v,!this.openDialogs.length){let gt=this._overlayContainer.getContainerElement();v._focusTrapped?v._focusTrapped.pipe(P(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(gt)}):this._hideNonDialogContentFromAssistiveTechnology(gt)}return this._attachDialogContent(t,l,v,i),this.openDialogs.push(l),l.closed.subscribe(()=>this._removeOpenDialog(l,!0)),this.afterOpened.next(l),l}closeAll(){wt(this.openDialogs,t=>t.close())}getDialogById(t){return this.openDialogs.find(i=>i.id===t)}ngOnDestroy(){wt(this._openDialogsAtThisLevel,t=>{t.config.closeOnDestroy===!1&&this._removeOpenDialog(t,!1)}),wt(this._openDialogsAtThisLevel,t=>t.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(t){let i=new be({positionStrategy:t.positionStrategy||pt().centerHorizontally().centerVertically(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,width:t.width,height:t.height,disposeOnNavigation:t.closeOnNavigation,disableAnimations:t.disableAnimations});return t.backdropClass&&(i.backdropClass=t.backdropClass),i}_attachContainer(t,i,n){let a=n.injector||n.viewContainerRef?.injector,r=[{provide:O,useValue:n},{provide:q,useValue:i},{provide:Ce,useValue:t}],l;n.container?typeof n.container=="function"?l=n.container:(l=n.container.type,r.push(...n.container.providers(n))):l=Mt;let v=new vt(l,n.viewContainerRef,D.create({parent:a||this._injector,providers:r}));return t.attach(v).instance}_attachDialogContent(t,i,n,a){if(t instanceof zt){let r=this._createInjector(a,i,n,void 0),l={$implicit:a.data,dialogRef:i};a.templateContext&&(l=x(x({},l),typeof a.templateContext=="function"?a.templateContext():a.templateContext)),n.attachTemplatePortal(new fe(t,null,l,r))}else{let r=this._createInjector(a,i,n,this._injector),l=n.attachComponentPortal(new vt(t,a.viewContainerRef,r));i.componentRef=l,i.componentInstance=l.instance}}_createInjector(t,i,n,a){let r=t.injector||t.viewContainerRef?.injector,l=[{provide:He,useValue:t.data},{provide:q,useValue:i}];return t.providers&&(typeof t.providers=="function"?l.push(...t.providers(i,t,n)):l.push(...t.providers)),t.direction&&(!r||!r.get(Ct,null,{optional:!0}))&&l.push({provide:Ct,useValue:Ge(t.direction)}),D.create({parent:r||a,providers:l})}_removeOpenDialog(t,i){let n=this.openDialogs.indexOf(t);n>-1&&(this.openDialogs.splice(n,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((a,r)=>{a?r.setAttribute("aria-hidden",a):r.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),i&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(t){if(t.parentElement){let i=t.parentElement.children;for(let n=i.length-1;n>-1;n--){let a=i[n];a!==t&&a.nodeName!=="SCRIPT"&&a.nodeName!=="STYLE"&&!a.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(a,a.getAttribute("aria-hidden")),a.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(i){return new(i||e)};static \u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function wt(e,o){let t=e.length;for(;t--;)o(e[t])}var Me=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=R({type:e});static \u0275inj=F({providers:[At],imports:[ht,Q,ue,Q]})}return e})();function We(e,o){}var U=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;enterAnimationDuration;exitAnimationDuration},Tt="mdc-dialog--open",Ae="mdc-dialog--opening",Te="mdc-dialog--closing",Qe=150,qe=75,Se=(()=>{class e extends Mt{_animationStateChanged=new y;_animationsEnabled=!xt();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?Oe(this._config.enterAnimationDuration)??Qe:0;_exitAnimationDuration=this._animationsEnabled?Oe(this._config.exitAnimationDuration)??qe:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(ke,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Ae,Tt)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(Tt),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(Tt),this._animationsEnabled?(this._hostElement.style.setProperty(ke,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Te)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(t){this._actionSectionCount+=t,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(Ae,Te)}_waitForAnimationToComplete(t,i){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(i,t)}_requestAnimationFrame(t){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(t):t()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(t){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:t})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(t){let i=super.attachComponentPortal(t);return i.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),i}static \u0275fac=(()=>{let t;return function(n){return(t||(t=X(e)))(n||e)}})();static \u0275cmp=C({type:e,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(i,n){i&2&&(ft("id",n._config.id),tt("aria-modal",n._config.ariaModal)("role",n._config.role)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledByQueue[0])("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null),_t("_mat-animation-noopable",!n._animationsEnabled)("mat-mdc-dialog-container-with-actions",n._actionSectionCount>0))},features:[L],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(i,n){i&1&&(c(0,"div",0)(1,"div",1),u(2,We,0,0,"ng-template",2),d()())},dependencies:[W],styles:[`.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mat-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mat-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mat-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mat-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mat-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mat-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mat-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mat-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;box-sizing:border-box;min-height:52px;margin:0;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents}
|
|
3
|
-
`],encapsulation:2})}return e})(),ke="--mat-dialog-transition-duration";function Oe(e){return e==null?null:typeof e=="number"?e:e.endsWith("ms")?yt(e.substring(0,e.length-2)):e.endsWith("s")?yt(e.substring(0,e.length-1))*1e3:e==="0"?0:null}var K=(function(e){return e[e.OPEN=0]="OPEN",e[e.CLOSING=1]="CLOSING",e[e.CLOSED=2]="CLOSED",e})(K||{}),E=class{_ref;_config;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new b;_beforeClosed=new b;_result;_closeFallbackTimeout;_state=K.OPEN;_closeInteractionType;constructor(o,t,i){this._ref=o,this._config=t,this._containerInstance=i,this.disableClose=t.disableClose,this.id=o.id,o.addPanelClass("mat-mdc-dialog-panel"),i._animationStateChanged.pipe(H(n=>n.state==="opened"),P(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),i._animationStateChanged.pipe(H(n=>n.state==="closed"),P(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),o.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Lt(this.backdropClick(),this.keydownEvents().pipe(H(n=>n.keyCode===27&&!this.disableClose&&!ct(n)))).subscribe(n=>{this.disableClose||(n.preventDefault(),Ie(this,n.type==="keydown"?"keyboard":"mouse"))})}close(o){let t=this._config.closePredicate;t&&!t(o,this._config,this.componentInstance)||(this._result=o,this._containerInstance._animationStateChanged.pipe(H(i=>i.state==="closing"),P(1)).subscribe(i=>{this._beforeClosed.next(o),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),i.totalTime+100)}),this._state=K.CLOSING,this._containerInstance._startExitAnimation())}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(o){let t=this._ref.config.positionStrategy;return o&&(o.left||o.right)?o.left?t.left(o.left):t.right(o.right):t.centerHorizontally(),o&&(o.top||o.bottom)?o.top?t.top(o.top):t.bottom(o.bottom):t.centerVertically(),this._ref.updatePosition(),this}updateSize(o="",t=""){return this._ref.updateSize(o,t),this}addPanelClass(o){return this._ref.addPanelClass(o),this}removePanelClass(o){return this._ref.removePanelClass(o),this}getState(){return this._state}_finishDialogClose(){this._state=K.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function Ie(e,o,t){return e._closeInteractionType=o,e.close(t)}var ut=new k("MatMdcDialogData"),Ee=new k("mat-mdc-dialog-default-options"),Pe=new k("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let e=s(D);return()=>mt(e)}}),Y=(()=>{class e{_defaultOptions=s(Ee,{optional:!0});_scrollStrategy=s(Pe);_parentDialog=s(e,{optional:!0,skipSelf:!0});_idGenerator=s(G);_injector=s(D);_dialog=s(At);_animationsDisabled=xt();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new b;_afterOpenedAtThisLevel=new b;dialogConfigClass=U;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=$(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(Z(void 0)));constructor(){this._dialogRefConstructor=E,this._dialogContainerType=Se,this._dialogDataToken=ut}open(t,i){let n;i=x(x({},this._defaultOptions||new U),i),i.id=i.id||this._idGenerator.getId("mat-mdc-dialog-"),i.scrollStrategy=i.scrollStrategy||this._scrollStrategy();let a=this._dialog.open(t,Ft(x({},i),{positionStrategy:pt(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||i.enterAnimationDuration?.toLocaleString()==="0"||i.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:i},{provide:O,useValue:i}]},templateContext:()=>({dialogRef:n}),providers:(r,l,v)=>(n=new this._dialogRefConstructor(r,i,v),n.updatePosition(i?.position),[{provide:this._dialogContainerType,useValue:v},{provide:this._dialogDataToken,useValue:l.data},{provide:this._dialogRefConstructor,useValue:n}])}));return n.componentRef=a.componentRef,n.componentInstance=a.componentInstance,this.openDialogs.push(n),this.afterOpened.next(n),n.afterClosed().subscribe(()=>{let r=this.openDialogs.indexOf(n);r>-1&&(this.openDialogs.splice(r,1),this.openDialogs.length||this._getAfterAllClosed().next())}),n}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(t){return this.openDialogs.find(i=>i.id===t)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(t){let i=t.length;for(;i--;)t[i].close()}static \u0275fac=function(i){return new(i||e)};static \u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Fe=(()=>{class e{_dialogRef=s(E,{optional:!0});_elementRef=s(J);_dialog=s(Y);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=Ke(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(i){return new(i||e)};static \u0275dir=z({type:e})}return e})(),kt=(()=>{class e extends Fe{id=s(G).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let t;return function(n){return(t||(t=X(e)))(n||e)}})();static \u0275dir=z({type:e,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(i,n){i&2&&ft("id",n.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[L]})}return e})(),Ot=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275dir=z({type:e,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[Wt([ge])]})}return e})(),St=(()=>{class e extends Fe{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let t;return function(n){return(t||(t=X(e)))(n||e)}})();static \u0275dir=z({type:e,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(i,n){i&2&&_t("mat-mdc-dialog-actions-align-start",n.align==="start")("mat-mdc-dialog-actions-align-center",n.align==="center")("mat-mdc-dialog-actions-align-end",n.align==="end")},inputs:{align:"align"},features:[L]})}return e})();function Ke(e,o){let t=e.nativeElement.parentElement;for(;t&&!t.classList.contains("mat-mdc-dialog-container");)t=t.parentElement;return t?o.find(i=>i.id===t.id):null}var It=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=R({type:e});static \u0275inj=F({providers:[Y],imports:[Me,ht,Q,Dt,Dt]})}return e})();var Re=(()=>{let o=class o{constructor(){this.filterSubject=new b,this.onTriggerfilter$=this.filterSubject.asObservable()}openModalFilter(){this.filterSubject.next()}};o.\u0275fac=function(n){return new(n||o)},o.\u0275prov=T({token:o,factory:o.\u0275fac,providedIn:"root"});let e=o;return e})();var S=(function(e){return e.Success="Success",e.Info="Info",e.Warning="Warning",e.Error="Error",e})(S||{});var N=class{constructor(){this.title="New Modal",this.titleExtra="",this.okText="OK",this.cancelText="CANCEL",this.hideFooter=!1,this.hideCancel=!1,this.hideOk=!1,this.hideClose=!1,this.eMoney=!1,this.headerType=S.Success,this.validated=!0,this.customWidth="initial",this.bodyScrollable=!1,this.hideScrollbar=!1,this.disableKeyup=!1,this.showMoreButton=!1,this.noPadding=!1}};var Ye=[[["","header",""]],[["","content",""]],[["","more-content",""]],[["","footer",""]]],$e=["[header]","[content]","[more-content]","[footer]"],Ze=(e,o)=>({bodyScrollable:e,hideScrollbar:o}),Xe=e=>({"mx-auto":e}),Je=(e,o)=>({"show-footer":e,"p-0":o});function ti(e,o){if(e&1){let t=M();c(0,"div",9),g("click",function(){f(t);let n=h();return _(n.onBack.emit())}),c(1,"a",10),w(2,"i",11),d()()}}function ei(e,o){if(e&1){let t=M();c(0,"div",12)(1,"a",13),g("click",function(){f(t);let n=h();return _(n.onCancel.emit())}),w(2,"i",14),d()()}}function ii(e,o){e&1&&A(0,2,["*ngIf","more"])}function ni(e,o){if(e&1){let t=M();c(0,"a",19),g("click",function(){f(t);let n=h(2);return _(n.more=!n.more)}),j(1,"More"),d()}}function oi(e,o){if(e&1){let t=M();c(0,"button",20),g("click",function(){f(t);let n=h(2);return _(n.onCancel.emit())}),j(1),d()}if(e&2){let t=h(2);m(),rt(" ",t.config.cancelText?t.config.cancelText:"CANCEL")}}function ai(e,o){if(e&1){let t=M();c(0,"button",21),g("click",function(){f(t);let n=h(2);return _(n.onOk.emit())})("keyup.F2",function(){f(t);let n=h(2);return _(n.onOk.emit())}),d()}if(e&2){let t=h(2);p("disabled",!t.config.validated||!t.dynamicValidated)("innerHTML",t.config.okText?t.config.okText:"OK",Vt)}}function ri(e,o){if(e&1&&(c(0,"mat-dialog-actions",15),u(1,ni,2,0,"a",16),A(2,3),u(3,oi,2,1,"button",17)(4,ai,1,2,"button",18),d()),e&2){let t=h();m(),p("ngIf",t.config.showMoreButton),m(2),p("ngIf",!t.config.hideCancel),m(),p("ngIf",!t.config.hideOk)}}var je=(()=>{let o=class o{constructor(){this.dynamicValidated=!0,this.onOk=new y,this.onCancel=new y,this.onClose=new y,this.onBack=new y,this.term="",this.more=!1}ngOnInit(){switch(this.config==null&&(this.config=new N),this.config.headerType){case S.Success:this.background="bg-success";break;case S.Warning:this.background="bg-warning";break;case S.Info:this.background="bg-warning";break;case S.Error:this.background="bg-danger";break;default:this.background="";break}}onKeyup(i){this.config.disableKeyup||(i.code=="F2"&&this.onOk.emit("F2"),(i.code=="Enter"||i.code=="NumpadEnter")&&this.onOk.emit("Enter"))}};o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=C({type:o,selectors:[["modal-material"]],inputs:{config:"config",dynamicValidated:"dynamicValidated"},outputs:{onOk:"onOk",onCancel:"onCancel",onClose:"onClose",onBack:"onBack"},ngContentSelectors:$e,decls:12,vars:21,consts:[[1,"modal-material","d-flex","align-items-start","flex-column","position-relative","maxHeight",3,"keyup","ngClass"],["mat-dialog-title",""],["class","back-button position-absolute pointer d-print-none",3,"click",4,"ngIf"],[1,"d-flex","flex-row","d-print-none",3,"ngClass"],[1,"fw-normal","text-white"],["class","ps-3",4,"ngIf"],[1,"modal-body","w-100",3,"ngClass"],[4,"ngIf"],["class","w-100 mt-10 py-7 border-top d-flex justify-content-end d-print-none",4,"ngIf"],[1,"back-button","position-absolute","pointer","d-print-none",3,"click"],[1,"btn","back-button"],[1,"fa-solid","fa-arrow-left"],[1,"ps-3"],[1,"btn-light-blue","btn-sm","pointer","close",3,"click"],[1,"fas","fa-times","fa-md","text-primary"],[1,"w-100","mt-10","py-7","border-top","d-flex","justify-content-end","d-print-none"],["class","more clearfix",3,"click",4,"ngIf"],["class","btn btn-light-blue text-primary btn-lg fw-bold mx-3 py-8",3,"click",4,"ngIf"],["style","width: 70px;","class","btn btn-light-blue me-6 text-primary btn-lg fw-bold mx-3 py-8","data-cy","ConfirmOk",3,"disabled","innerHTML","click","keyup.F2",4,"ngIf"],[1,"more","clearfix",3,"click"],[1,"btn","btn-light-blue","text-primary","btn-lg","fw-bold","mx-3","py-8",3,"click"],["data-cy","ConfirmOk",1,"btn","btn-light-blue","me-6","text-primary","btn-lg","fw-bold","mx-3","py-8",2,"width","70px",3,"click","keyup.F2","disabled","innerHTML"]],template:function(n,a){n&1&&(et(Ye),c(0,"div",0),g("keyup",function(l){return a.onKeyup(l)}),c(1,"div",1),u(2,ti,3,0,"div",2),c(3,"div",3)(4,"h3",4),j(5),d(),A(6),d(),u(7,ei,3,0,"div",5),d(),c(8,"mat-dialog-content",6),A(9,1),u(10,ii,1,0,"ng-content",7),d(),u(11,ri,5,3,"mat-dialog-actions",8),d()),n&2&&(Ut("width",a.config.customWidth),p("ngClass",bt(13,Ze,a.config.bodyScrollable,a.config.hideScrollbar)),m(),at(Jt("d-flex w-100 justify-content-between modal-header position-relative ",a.background)),m(),p("ngIf",a.config.eMoney),m(),p("ngClass",st(16,Xe,a.config.eMoney)),m(2),Yt(a.config.title),m(2),p("ngIf",!a.config.hideClose),m(),p("ngClass",bt(18,Je,!a.config.hideFooter,a.config.noPadding)),m(2),p("ngIf",a.more),m(),p("ngIf",!a.config.hideFooter))},dependencies:[B,ie,lt,It,kt,St,Ot],styles:[".mat-dialog-container{padding:0!important;border-radius:4px!important;overflow:visible!important} .mat-dialog-container [mat-dialog-title]{color:#fff;padding:15px;border:none}@media print{ .mat-dialog-container{box-shadow:unset;width:100vw}}@media print{ .cdk-overlay-pane{position:absolute!important;top:-30px;max-width:100vw!important}.modal-body[_ngcontent-%COMP%]{width:100vw!important}}.maxHeight[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:100%!important}.maxHeight.bodyScrollable[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:450px!important;overflow-y:auto}body.modal-body[_ngcontent-%COMP%]{height:100%;overflow-y:hidden}mat-dialog-actions[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:15px!important;margin-right:12px}mat-dialog-actions[_ngcontent-%COMP%] .more[_ngcontent-%COMP%]{margin-right:auto;margin-top:-1rem;padding-top:.4rem!important;margin-left:1rem}.back-button[_ngcontent-%COMP%]{top:5px;left:0}.close[_ngcontent-%COMP%]{padding:.4rem .5rem}.no-padding[_ngcontent-%COMP%]{padding:0}.modal-material[_ngcontent-%COMP%]{width:40vw}@media (max-width: 992px){.modal-material[_ngcontent-%COMP%]{width:50vw!important}}.modal-header[_ngcontent-%COMP%], .modal-footer[_ngcontent-%COMP%], .modal-footer[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{padding:15px}.modal-dialog[_ngcontent-%COMP%]{max-width:none}.modal-content[_ngcontent-%COMP%]{width:auto;margin:auto;max-width:850px}.maxHeight[_ngcontent-%COMP%] .modal-body[_ngcontent-%COMP%]{max-height:400px;overflow:auto}.modal-body[_ngcontent-%COMP%]{padding:1rem!important}.modal-body[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:block}.modal-body[_ngcontent-%COMP%] .more[_ngcontent-%COMP%]{margin:0;position:absolute;bottom:-20px}.modal-body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:330px;height:90px}"]});let e=o;return e})();function si(e,o){e&1&&Kt(0)}var Pt=(()=>{let o=class o{constructor(i,n){this.dialogRef=i,this.data=n,this.initModal()}initModal(){this.modalConfig=new N,this.modalConfig.title="Filter",this.modalConfig.customWidth="450px",this.modalConfig.bodyScrollable=!0}onSubmit(){this.dialogRef.close(!0)}onClose(){this.dialogRef.close(!1)}};o.\u0275fac=function(n){return new(n||o)(I(E),I(ut))},o.\u0275cmp=C({type:o,selectors:[["app-modal-filter"]],decls:3,vars:2,consts:[[3,"onClose","onCancel","onOk","config"],["content",""],[4,"ngTemplateOutlet"]],template:function(n,a){n&1&&(c(0,"modal-material",0),g("onClose",function(){return a.onClose()})("onCancel",function(){return a.onClose()})("onOk",function(){return a.onSubmit()}),c(1,"div",1),u(2,si,1,0,"ng-container",2),d()()),n&2&&(p("config",a.modalConfig),m(2),p("ngTemplateOutlet",a.data.template))},dependencies:[B,ne,je],encapsulation:2});let e=o;return e})();var Be=(()=>{let o=class o{toggleSidebar(){this._toggleState.next(!this._toggleState.value)}constructor(){this._toggleState=new Rt(!1),this.toggleState$=this._toggleState.asObservable()}};o.\u0275fac=function(n){return new(n||o)},o.\u0275prov=T({token:o,factory:o.\u0275fac,providedIn:"root"});let e=o;return e})();var ci=["filterTemplateRef"],di=[[["actions"]],[["content"]],[["filters"]]],mi=["actions","content","filters"],pi=e=>({"ps-5":e});function hi(e,o){if(e&1){let t=M();Qt(0),c(1,"div",19)(2,"input",20),Xt("ngModelChange",function(n){f(t);let a=h();return Zt(a.text,n)||(a.text=n),_(n)}),g("keyup",function(){f(t);let n=h();return _(n.onTextChange())})("keyup.enter",function(){f(t);let n=h();return _(n.onSubmit())}),d(),c(3,"div")(4,"button",21),g("click",function(){f(t);let n=h();return _(n.onSubmit())}),w(5,"i",22),d()()(),qt()}if(e&2){let t=h();m(2),$t("ngModel",t.text),p("placeholder",t.searchBoxPlaceHolder)}}function ui(e,o){e&1&&A(0,2)}function gi(e,o){if(e&1){let t=M();c(0,"div",23)(1,"a",24),g("click",function(){f(t);let n=h();return _(n.openFilterModal())}),c(2,"i",25),w(3,"i",26),d()(),u(4,ui,1,0,"ng-template",null,0,te),d()}if(e&2){let t=h();at(st(2,pi,!t.hideSearchBox))}}var zn=(()=>{let o=class o{constructor(i,n,a){this.sidebarService=i,this.dialog=n,this.mainPanelService=a,this.searchBoxPlaceHolder="Search...",this.submitEvent=new y,this.textChange=new y,this.searchBoxPlaceHolder=this.searchBoxPlaceHolder||"Search..",this.mainPanelService.onTriggerfilter$.pipe(ce()).subscribe(()=>{this.openFilterModal()})}onSubmit(){this.inputText=this.text,this.submitEvent.emit(this.inputText)}onTextChange(){this.textChange.emit(this.text)}toggleMenu(){this.sidebarService.toggleSidebar()}openFilterModal(){this.dialog.open(Pt,{data:{template:this.filterTemplateRef}}).afterClosed().subscribe(i=>{i&&this.onSubmit()})}};o.\u0275fac=function(n){return new(n||o)(I(Be),I(Y),I(Re))},o.\u0275cmp=C({type:o,selectors:[["mainpanel"]],viewQuery:function(n,a){if(n&1&&it(ci,5),n&2){let r;nt(r=ot())&&(a.filterTemplateRef=r.first)}},inputs:{text:"text",headerTitle:"headerTitle",textButton:"textButton",hideSearchBox:"hideSearchBox",hideSearchDropdown:"hideSearchDropdown",searchBoxPlaceHolder:"searchBoxPlaceHolder",description:"description"},outputs:{submitEvent:"onSubmit",textChange:"textChange"},standalone:!1,ngContentSelectors:mi,decls:26,vars:4,consts:[["filterTemplateRef",""],[1,"navbar","navbar-default","fixed-top","navbar-expand-lg","fixed-top","d-block","d-print-none","bg-white"],[1,"row","px-7",2,"margin-top","9px"],[1,"col-auto","pe-0","order-0","g-0","ms-6"],[1,"navbar-brand","me-5","float-start","my-1",2,"margin-right","0px !important",3,"matTooltip"],["id","action-filter",1,"col-lg-auto","col-12","d-lg-flex","collapse","order-lg-1","ps-0","order-2","gx-0","ms-5",2,"padding-left","0px"],[1,"search-box"],[1,"d-flex","h-100","align-items-center","justify-content-lg-start","justify-content-end"],[4,"ngIf"],["class","text-secondary",3,"class",4,"ngIf"],[1,"col","d-lg-none","d-flex","justify-content-end","align-items-center","order-lg-2","order-1"],["type","button","data-bs-toggle","collapse","data-bs-target","#action-button","aria-expanded","false","aria-controls","collapseExample",1,"btn","btn-lg","btn-outline-secondary","d-lg-none","me-2"],["aria-hidden","true",1,"fa","fa-sort-down"],["type","button","data-bs-toggle","collapse","data-bs-target","#action-filter","aria-expanded","false","aria-controls","collapseExample",1,"btn","btn-lg","btn-outline-secondary","d-lg-none","me-2"],["aria-hidden","true",1,"fa","fa-search"],["type","button","aria-controls","navigation-index","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler","navbar-toggler-right","float-end","toggle-menu","ps-2","pe-0",2,"width","max-content","height","max-content",3,"click"],[1,"navbar-toggler-bar","burger-lines"],["id","action-button",1,"col-lg","col-12","d-lg-flex","justify-content-end","collapse","order-3"],[1,"main-panel-content","d-block","d-print-none"],[1,"input-group",2,"width","13.375rem"],["type","text",1,"form-control",2,"font-size","1rem",3,"ngModelChange","keyup","keyup.enter","ngModel","placeholder"],["type","button",1,"btn","btn-outline-secondary","fw-bold","rounded-0","border-start-0",3,"click"],[1,"fa","fa-search"],[1,"text-secondary"],["role","button","aria-expanded","false",1,"text-muted","h5",3,"click"],[1,"fa","fa-filter","d-flex","align-items-end"],[1,"fa-solid","fa-caret-down","fs-6"]],template:function(n,a){n&1&&(et(di),c(0,"nav",1)(1,"div",2)(2,"div",3)(3,"h1",4),j(4),d()(),c(5,"div",5)(6,"div",6)(7,"div",7)(8,"div")(9,"div"),u(10,hi,6,2,"ng-container",8),d()(),u(11,gi,6,4,"div",9),d()()(),c(12,"div",10)(13,"button",11),w(14,"i",12),d(),c(15,"button",13),w(16,"i",14),d(),c(17,"button",15),g("click",function(){return a.toggleMenu()}),w(18,"span",16)(19,"span",16)(20,"span",16),d()(),c(21,"div",17),A(22),d()()(),c(23,"div",18)(24,"div"),A(25,1),d()()),n&2&&(m(3),p("matTooltip",a.description?a.description:""),m(),rt(" ",a.headerTitle," "),m(6),p("ngIf",!a.hideSearchBox),m(),p("ngIf",!a.hideSearchDropdown))},dependencies:[lt,ae,re,se,xe],styles:[`.search-box .form-control{height:auto}.navbar .navbar-brand{white-space:nowrap;max-width:24.75rem;overflow:hidden;text-overflow:ellipsis;text-transform:capitalize}@media (max-width: 468px){.navbar .navbar-brand{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media (max-width: 480px){.navbar.page-nav{height:auto}}@media (min-width: 1366px){.navbar.page-nav{height:44px}}
|
|
4
|
-
`],encapsulation:2});let e=o;return e})(),Gn=(()=>{let o=class o{};o.\u0275fac=function(n){return new(n||o)},o.\u0275mod=R({type:o}),o.\u0275inj=F({imports:[B,le,oe,De,Pt]});let e=o;return e})();export{Be as a,E as b,ut as c,Y as d,kt as e,Ot as f,St as g,It as h,S as i,N as j,je as k,Re as l,zn as m,Gn as n};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{e as L}from"./chunk-OXWPYJNB.js";import{i as T,l as B,m as D}from"./chunk-LNJUGHOX.js";import{$b as S,Gb as x,Mc as a,Nc as A,Oc as N,Pc as V,Z as E,bc as k,hd as p,id as m,kc as r,lc as s,mc as g,nb as o,qc as w,ra as y,rc as b,sb as u,td as v,v as _,wc as C,xa as f,xc as P,ya as h}from"./chunk-ZYJ6LAJ3.js";function R(e,i){if(e&1){let d=w();r(0,"span",9),C("click",function(){f(d);let l=P();return h(l.onShowTotal())}),r(1,"i",10),a(2,"?"),s()()}}function z(e,i){if(e&1&&(r(0,"span"),a(1),p(2,"async"),p(3,"number"),s()),e&2){let d=P();o(),A(d.rowCountApi()?m(2,1,d.rowCount$):m(3,3,d.paginationTotal))}}var K=(()=>{let i=class i{constructor(){this.httpService=y(L),this.nextButtonAlwaysVisible=v(!1),this.next=new u,this.filterChange=new u,this.previous=new u,this.total=new u,this.hasClicked=!1,this.rowCountApi=v(null),this.rowCount$=null}initRowCount(){this.rowCountApi()&&(this.hasClicked=!0,this.rowCount$=this.httpService.post(this.rowCountApi(),this.filter).pipe(_(c=>c.Count),E(1)))}onShowTotal(){this.total.emit(),this.initRowCount()}onPreviousPage(){this.filter.PageNumber=this.filter.PageNumber-1,this.filterChange.emit(this.filter),this.previous.emit()}onNextPage(){this.filter.PageNumber=this.filter.PageNumber+1,this.filterChange.emit(this.filter),this.next.emit()}};i.\u0275fac=function(l){return new(l||i)},i.\u0275cmp=x({type:i,selectors:[["app-custom-paginator"]],inputs:{nextButtonAlwaysVisible:[1,"nextButtonAlwaysVisible"],filter:"filter",paginationTotal:"paginationTotal",totaldata:"totaldata",hasClicked:"hasClicked",rowCountApi:[1,"rowCountApi"]},outputs:{next:"next",filterChange:"filterChange",previous:"previous",total:"total"},decls:17,vars:12,consts:[[1,"d-flex","justify-content-between","mt-5"],[1,"me-auto","d-sm-block","collapse","mt-3"],[1,"font-weight-bold","font-italic","hidden-xxs"],[2,"cursor","pointer"],[1,"btn-group"],["role","button","title","Load all products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click","hidden"],[1,"fas","fa-arrow-left"],["role","button","title","Load more for 20 products",1,"btn","btn-outline-secondary","btn-sm","text-primary",3,"click","hidden"],[1,"fas","fa-arrow-right"],[2,"cursor","pointer",3,"click"],["title","Retreive rows count",1,"border","p-3"]],template:function(l,t){if(l&1){let n=w();r(0,"div",0)(1,"div",1)(2,"div",2),a(3),p(4,"number"),p(5,"number"),S(6,R,3,0,"span",3)(7,z,4,5,"span"),a(8),s()(),r(9,"div",4)(10,"a",5),C("click",function(){return f(n),h(t.onPreviousPage())}),g(11,"i",6),a(12," Prev"),s(),r(13,"a",7),p(14,"async"),C("click",function(){return f(n),h(t.onNextPage())}),g(15,"i",8),a(16," Next"),s()()()}if(l&2){let n=t.filter.PageSize!=null||t.filter.PageSize!=null?t.filter.PageSize:t.filter.RowCount;o(3),V(" Showing ",m(4,6,n*(t.filter.PageNumber-1)+1)," - ",m(5,8,n*(t.filter.PageNumber-1)+t.totaldata)," of "),o(3),k(t.hasClicked?7:6),o(2),N(" records ~ ",t.filter.PageNumber," Page "),o(2),b("hidden",t.filter.PageNumber==1),o(3),b("hidden",(n*(t.filter.PageNumber-1)+t.totaldata==(t.rowCountApi()?m(14,10,t.rowCount$):t.paginationTotal)||t.totaldata<n)&&!t.nextButtonAlwaysVisible())}},dependencies:[D,T,B],encapsulation:2});let e=i;return e})();export{K as a};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import{a as nt,b as at,c as ot}from"./chunk-Q2QX5AAJ.js";import"./chunk-AZOCRKXK.js";import{a as pe}from"./chunk-N3WBRUNI.js";import"./chunk-RNWHARPK.js";import{a as qe,b as Je,c as Xe,e as et,f as tt,g as it}from"./chunk-XUBQATMN.js";import{e as $e,k as je,l as He,m as Ke,n as Qe,o as Ze}from"./chunk-UW3UCIOY.js";import"./chunk-222IOSGU.js";import{a as ze,b as Ye,c as Ue}from"./chunk-55BTWXFX.js";import"./chunk-FULVA6QB.js";import"./chunk-A7YRNCQP.js";import"./chunk-OROFEDQN.js";import"./chunk-PZB3GQWT.js";import"./chunk-B4QCGMST.js";import"./chunk-UH5C5HXK.js";import{a as Ge}from"./chunk-3LU2SFN4.js";import"./chunk-OPXITNRF.js";import"./chunk-HPINZVE4.js";import"./chunk-D2J64VUP.js";import"./chunk-6Q6L5NUD.js";import"./chunk-ONU4O7N2.js";import"./chunk-37NOSLQL.js";import"./chunk-N5AE5WMQ.js";import"./chunk-34UF36YY.js";import{c as Fe,d as Oe,e as Re}from"./chunk-6KWG6O5L.js";import"./chunk-4RLWHMI6.js";import"./chunk-IGKMJFKP.js";import"./chunk-ITGVXYDV.js";import"./chunk-HK5FXZE4.js";import"./chunk-KJE5GRQ4.js";import"./chunk-4ILDFTIG.js";import"./chunk-A6QXXKPR.js";import{h as Ne,i as le}from"./chunk-5O33CV4F.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import{qa as Ae}from"./chunk-5PMKN6PM.js";import{a as re}from"./chunk-YJTPDV4D.js";import{b as Ve,e as ke}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import{b as oe,c as x}from"./chunk-BLHKSSK6.js";import{m as Be,n as Le}from"./chunk-UI5ITL7Z.js";import{A as ae,b as Ee,c as Pe,h as ie,m as ne,x as Ie}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import{v as We,w as se}from"./chunk-SILAIDPV.js";import"./chunk-3I2V337G.js";import{I as Me,c as O,e as z,f as Y,i as te,j as U,m as V}from"./chunk-LNJUGHOX.js";import{$b as k,$c as J,Bc as we,Cc as Ce,Dc as ve,Gb as I,Ha as f,Hc as T,Mb as v,Mc as d,Nc as F,Oc as S,Qc as b,Rc as M,Sc as E,Wc as Se,Yc as ye,Z as j,Zc as q,_c as De,aa as he,ad as xe,bc as N,ea as H,gc as m,hc as a,hd as B,ic as o,id as K,jc as C,jd as Te,kd as X,lb as fe,m as ue,ma as ge,nb as l,nc as R,oc as W,pd as ee,qc as y,ra as D,sb as A,sd as be,td as L,v as Z,vc as w,xa as u,xc as _,ya as h,zb as _e}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import{a as me,b as ce}from"./chunk-66YHNWRR.js";var pt=e=>({"over-due":e});function mt(e,r){if(e&1&&(a(0,"tr",8)(1,"td"),d(2),o(),a(3,"td"),d(4),o(),a(5,"td"),d(6),o(),a(7,"td"),d(8),o()()),e&2){let s=r.$implicit,t=r.index;m("ngClass",J(5,pt,s.Exception)),l(2),F(t+1),l(2),F(s.Number),l(2),F(s.Status),l(2),F(s.Exception)}}function ct(e,r){if(e&1&&(R(0),v(1,mt,9,7,"tr",7),W()),e&2){let s,t=_();l(),m("ngForOf",(s=t.downloadResult())==null?null:s.Body)}}function ut(e,r){e&1&&(a(0,"tr",9)(1,"td",10)(2,"div",11),C(3,"i",12),o(),a(4,"h4",13),d(5," There is no order to processed "),o()()())}var rt=(()=>{let r=class r{constructor(){this.downloadResult=L()}ngOnInit(){}};r.\u0275fac=function(n){return new(n||r)},r.\u0275cmp=I({type:r,selectors:[["complete-step"]],inputs:{downloadResult:[1,"downloadResult"]},decls:16,vars:2,consts:[["EMPTY_DOWNLOAD",""],[1,"row","pt-2"],[1,"col-md-12"],[1,"table"],[1,"thead-light"],["width","1%"],[4,"ngIf","ngIfElse"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"],[1,"text-center"],["colspan","10",1,"border-0"],[2,"margin-top","16vh"],[1,"far","fa-file","text-secondary",2,"font-size","95px"],[1,"text-secondary","mt-6"]],template:function(n,i){if(n&1&&(a(0,"div",1)(1,"div",2)(2,"table",3)(3,"thead",4)(4,"tr"),C(5,"th",5),a(6,"th"),d(7,"Order Number"),o(),a(8,"th"),d(9,"Status"),o(),a(10,"th"),d(11,"Exception"),o()()(),a(12,"tbody"),v(13,ct,2,1,"ng-container",6)(14,ut,6,0,"ng-template",null,0,X),o()()()()),n&2){let p,g=T(15);l(13),m("ngIf",((p=i.downloadResult())==null||p.Body==null?null:p.Body.length)>0)("ngIfElse",g)}},dependencies:[V,O,z,Y],encapsulation:2});let e=r;return e})();var gt=e=>({"full-width":e}),ft=()=>({standalone:!0}),lt=(()=>{let r=class r{constructor(t){this.datePipe=t,this.fullWidth=!1,this.timeChange=new A}ngOnInit(){}onTimeChange(t){let n=null;t&&(n=this.datePipe.transform(t,"HH:mm")),this.timeChange.emit(n),this.onTimePickerChange()}onShowCalendar(){let t=document.getElementById("dropdown-filter");if(t){var n=new bootstrap.Dropdown(t);n&&(n._config.autoClose="inside")}}onTimePickerChange(){let t=document.getElementById("dropdown-filter");if(t){var n=new bootstrap.Dropdown(t);n&&(n._config.autoClose="outside")}}};r.\u0275fac=function(n){return new(n||r)(_e(U))},r.\u0275cmp=I({type:r,selectors:[["app-timepicker"]],inputs:{time:"time",fullWidth:"fullWidth"},outputs:{timeChange:"timeChange"},decls:4,vars:8,consts:[["myCalendar",""],["styleClass","custom-height","id","shippingTime","appendTo","body",3,"ngModelChange","onSelect","ngClass","baseZIndex","ngModel","timeOnly","ngModelOptions"],["size","small","label","Close",3,"click"]],template:function(n,i){if(n&1){let p=y();a(0,"p-datepicker",1,0),E("ngModelChange",function(c){return u(p),M(i.time,c)||(i.time=c),h(c)}),w("ngModelChange",function(c){return u(p),h(i.onTimeChange(c))})("onSelect",function(){return u(p),h(i.onShowCalendar())}),a(2,"p-footer")(3,"p-button",2),w("click",function(){return u(p),T(1).hideOverlay(),h(i.onShowCalendar())}),o()()()}n&2&&(m("ngClass",J(5,gt,i.fullWidth))("baseZIndex",1100),b("ngModel",i.time),m("timeOnly",!0)("ngModelOptions",De(7,ft)))},dependencies:[V,O,ae,ie,ne,ot,at,nt,Ae],styles:["p-datepicker span.p-datepicker.custom-height{height:44px;width:70px} p-datepicker.full-width span.p-datepicker.custom-height{height:44px;width:100%!important}"]});let e=r;return e})();var $=(()=>{let r=class r{constructor(){this.httpService=D(ke),this.toastr=D(Ve),this.datePipe=D(U)}gerChannelDetailById(t){return this.httpService.post(re.GetChannelDetail,{ID:t})}getOrderPreview(t){return this.httpService.post(re.GetOrderPreviewV2,t)}getDownloadOrder(t){return this.httpService.post(re.GetDownloadOrderV2,t)}onPreviewOrder(t){return this.validateDatePreview(t)?this.getOrderPreview(t).pipe(H(n=>{n.Data?.length===0&&this.toastrEmptyPreview(t)})):ue}toastrEmptyPreview(t){let n=this.datePipe.transform(t.From,"dd MMM yyyy"),i=this.datePipe.transform(t.To,"dd MMM yyyy"),p=t.TimeFrom?t.TimeFrom:"",g=t.TimeTo?t.TimeTo:"";this.toastr.info(`There is no orders from ${n} ${p} to ${i} ${g}!`,"No Orders!")}validateDatePreview(t){let n=!0;return t.downloadType==!0?x.getDaysDiff(t?.From,t?.To)+1>7&&(this.toastr.warning("Dates cannot be more than 7 days apart!","Warning"),n=!1):x.getDaysDiff(t?.From,t?.To)+1>14&&(this.toastr.warning("Dates cannot be more than 14 days apart!","Warning"),n=!1),n}getDateTitle(t,n){let i=x.formatTitleFromDate(new Date(t),new Date(n)),p=this.datePipe.transform(t,i),g=this.datePipe.transform(n,"dd MMM yyyy");return`${i==null?"":p+"-"} ${g}`}};r.\u0275fac=function(n){return new(n||r)},r.\u0275prov=ge({token:r,factory:r.\u0275fac});let e=r;return e})();function _t(e,r){if(e&1&&(a(0,"ng-option",16),C(1,"img",17),d(2),o()),e&2){let s=r.$implicit;m("value",s.ID),l(),m("src",s==null?null:s.Img,fe),l(),S("",s.Name," ")}}function wt(e,r){if(e&1){let s=y();a(0,"div",8)(1,"div",4)(2,"h5"),d(3,"Type"),o(),a(4,"p",5),d(5,"Select Type want to download"),o()(),a(6,"div",4)(7,"div",18)(8,"div")(9,"mat-radio-group",19),E("ngModelChange",function(n){u(s);let i=_();return M(i.downloadType,n)||(i.downloadType=n),h(n)}),w("ngModelChange",function(){u(s);let n=_();return h(n.onDownloadTypeChange())}),a(10,"mat-radio-button",20),d(11," Orders "),o(),a(12,"mat-radio-button",21),d(13," Disbursement "),o()()()(),a(14,"div",22)(15,"div",23),C(16,"i",24),o(),a(17,"p",25),d(18," If there are completed transactions, to obtain payment and service fee, you need to download disbursement. "),o()()()()}if(e&2){let s=_();l(9),b("ngModel",s.downloadType),l(),m("value",!1),l(2),m("value",!0)}}function Ct(e,r){e&1&&(a(0,"p",5),d(1," Select Disbursement date "),a(2,"span",26),d(3,"(payment date / order complete date)"),o(),d(4," of the channel you want to download (Max 1 Week). "),o())}function vt(e,r){e&1&&(a(0,"p",5),d(1," Select transaction date of the channel you want to download (Max 2 Weeks) "),o())}function St(e,r){if(e&1){let s=y();a(0,"div",12)(1,"app-timepicker",27),E("timeChange",function(n){u(s);let i=_();return M(i.startTime,n)||(i.startTime=n),h(n)}),w("timeChange",function(){u(s);let n=_();return h(n.onStartTimeChange())}),o(),a(2,"span",28),d(3,"-"),o(),a(4,"app-timepicker",27),E("timeChange",function(n){u(s);let i=_();return M(i.endTime,n)||(i.endTime=n),h(n)}),w("timeChange",function(){u(s);let n=_();return h(n.onEndTimeChange())}),o()()}if(e&2){let s=_();l(),b("time",s.startTime),l(3),b("time",s.endTime)}}var st=(()=>{let r=class r{constructor(){this.reset=L(!1),this.authService=D(le),this.tokenService=D(Ne),this.downloadService=D($),this.downloadType=f(!1),this.selectedChannelId=f(null),this.channelOptions=f(this.authService.getChannels()),this.channelType=oe,this.selectedChannel=f(null),this.showTimePicker=f(!1),this.startDate=f(null),this.endDate=f(null),this.startTime=f("00:00"),this.endTime=f("23:59"),this.minDate=f(new Date),this.maxDate=f(new Date),this.filterData=new A,this._onRememberMeChange=be({alias:"onRememberMeChange"}),this.rememberMe=f(!1),ee(()=>{this.reset()&&this.resetFilter()},{allowSignalWrites:!0}),this.initDateValidation()}initDateValidation(){let t=this.tokenService?.getTokenValue(),n=t?.DownloadRange?JSON.parse(t?.DownloadRange):0;if(n<=0)this.minDate.set(null),this.maxDate.set(null);else{let i=new Date,p=x.addDays(i,n-1);this.minDate.set(p)}}resetFilter(){this.selectedChannelId.update(()=>null),this.startDate.update(()=>null),this.endDate.update(()=>null),this.startTime.update(()=>null),this.endTime.update(()=>null),this.downloadType.update(()=>!1),this.selectedChannel.update(()=>null),this.showTimePicker.update(()=>!1),this.channelDetail$=null}onSelectChannel(){this.selectedChannel.update(()=>this.channelOptions().find(t=>t.ID===this.selectedChannelId())),this.selectedChannel()?this.channelDetail$=this.downloadService.gerChannelDetailById(this.selectedChannelId()).pipe(Z(t=>t?.Model),j(1)):this.channelDetail$=null,this.emitFilterData()}onFilterDateChange(){let t=1;this.startDate()&&this.endDate()&&(t=x.getDaysDiff(this.startDate(),this.endDate())),this.showTimePicker.update(()=>t==0),this.emitFilterData()}onDownloadTypeChange(){this.emitFilterData()}onStartTimeChange(){this.emitFilterData()}onEndTimeChange(){this.emitFilterData()}emitFilterData(){this.filterData.emit({channelId:this.selectedChannelId(),startDate:this.startDate(),endDate:this.endDate(),downloadType:this.downloadType(),startTime:this.startTime(),endTime:this.endTime()})}onChangeRememberMe(t){this._onRememberMeChange.emit(t)}};r.\u0275fac=function(n){return new(n||r)},r.\u0275cmp=I({type:r,selectors:[["filter-step"]],inputs:{reset:[1,"reset"]},outputs:{filterData:"onFilterChange",_onRememberMeChange:"onRememberMeChange"},features:[q([$,$e()])],decls:32,vars:14,consts:[["picker",""],[1,"row","pt-2",2,"width","63%","margin-right","40px"],[1,"col-12"],[1,"row"],[1,"col-6"],[1,"text-muted"],["appendTo","body","placeholder","Select Channel",3,"ngModelChange","clearable","ngModel"],[3,"value",4,"ngFor","ngForOf"],[1,"row","mt-6"],["id","dates",1,"form-control","rounded","dateRange",3,"rangePicker","min","max"],["matStartDate","","placeholder","Start date",3,"ngModelChange","click","ngModel","maxlength"],["matEndDate","","placeholder","End date",3,"ngModelChange","click","ngModel"],[1,"mt-8"],[1,"col-6","d-flex","align-items-center","gap-2"],["type","checkbox",2,"width","16px","height","16px",3,"ngModelChange","ngModel"],[1,"ms-2","fw-bold"],[3,"value"],[2,"width","18px","margin-right","10px",3,"src"],[1,"form-label-group","radio","download-type",2,"margin-bottom","0px"],["name","dowloadType",3,"ngModelChange","ngModel"],["matTooltip","Download from Create sales order until create logistics status",1,"me-5",3,"value"],["matTooltip","Download only Payment and write off",1,"me-5",3,"value"],[1,"d-flex","border","mb-4","pt-6","px-6","mt-3",2,"background","#1f87ac0a","border-radius","5px"],[1,"me-3","pt-1"],[1,"fa","fa-lightbulb","fs-5"],[1,"mb-6"],[1,"fw-bold"],[3,"timeChange","time"],[1,"mx-4"]],template:function(n,i){if(n&1){let p=y();a(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h5"),d(5,"Select a Channel"),o(),a(6,"p",5),d(7,"Select Channel want to download order"),o()(),a(8,"div",4)(9,"ng-select",6),E("ngModelChange",function(c){return u(p),M(i.selectedChannelId,c)||(i.selectedChannelId=c),h(c)}),w("ngModelChange",function(){return u(p),h(i.onSelectChannel())}),v(10,_t,3,3,"ng-option",7),o()()(),k(11,wt,19,3,"div",8),B(12,"async"),a(13,"div",8)(14,"div",4)(15,"h5"),d(16,"Date Range"),o(),k(17,Ct,5,0,"p",5)(18,vt,2,0,"p",5),o(),a(19,"div",4)(20,"div",2)(21,"mat-date-range-input",9)(22,"input",10),E("ngModelChange",function(c){return u(p),M(i.startDate,c)||(i.startDate=c),h(c)}),w("click",function(){u(p);let c=T(25);return h(c.open())}),o(),a(23,"input",11),E("ngModelChange",function(c){return u(p),M(i.endDate,c)||(i.endDate=c),h(c)}),w("click",function(){u(p);let c=T(25);return h(c.open())})("ngModelChange",function(){return u(p),h(i.onFilterDateChange())}),o()(),C(24,"mat-date-range-picker",null,0),o(),k(26,St,5,2,"div",12),o()(),a(27,"div",8)(28,"div",13)(29,"input",14),E("ngModelChange",function(c){return u(p),M(i.rememberMe,c)||(i.rememberMe=c),h(c)}),w("ngModelChange",function(c){return u(p),h(i.onChangeRememberMe(c))}),o(),a(30,"h5",15),d(31,"Remember Me"),o()()()()()}if(n&2){let p,g,c=T(25);l(9),m("clearable",!1),b("ngModel",i.selectedChannelId),l(),m("ngForOf",i.channelOptions()),l(),N((p=K(12,12,i.channelDetail$))!=null&&p.ServiceFeeWriteOff&&((p=i.selectedChannel())==null?null:p.TypeID)==i.channelType.Tokopedia?11:-1),l(6),N(i.downloadType()&&((g=i.selectedChannel())==null?null:g.TypeID)==i.channelType.Tokopedia?17:18),l(4),m("rangePicker",c)("min",i.minDate())("max",i.maxDate()),l(),b("ngModel",i.startDate),l(),b("ngModel",i.endDate),l(3),N(i.showTimePicker()?26:-1),l(3),b("ngModel",i.rememberMe)}},dependencies:[V,z,Re,Oe,Fe,Ue,ze,Ye,ae,Pe,Ee,ie,Ie,ne,lt,Qe,je,Ze,He,Ke,te],styles:[".vertical-radio[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:15px 0}.mt-1rem[_ngcontent-%COMP%]{margin-top:1rem}.dateRange[_ngcontent-%COMP%]{padding-top:.8rem;padding-bottom:.8rem}.form-label-group.radio.download-type[_ngcontent-%COMP%]{height:45.5938px!important;border-radius:.375rem!important}"]});let e=r;return e})();var P=(function(e){return e.ALL="all",e.SYNC="sync",e.WRONG="wrong",e.UNSYNC="unsync",e})(P||{});var G=(function(e){return e[e.DoNothing=0]="DoNothing",e[e.New=1]="New",e[e.Update=2]="Update",e})(G||{});var yt=(e,r)=>({"over-due-today":e,"over-due":r});function Dt(e,r){if(e&1&&(a(0,"th",21),d(1),o()),e&2){let s=_();l(),S(" ",s.selectedChannel()?"Created Date":"Last Status Update"," ")}}function xt(e,r){if(e&1&&(a(0,"td"),d(1),B(2,"date"),o()),e&2){let s=_().$implicit;l(),S(" ",Te(2,1,s.Modified,"dd MMM yyyy HH:mm:ss")," ")}}function Tt(e,r){if(e&1&&(a(0,"span"),d(1),o()),e&2){let s=_().$implicit;l(),S(" ",s.ActionString," ")}}function bt(e,r){if(e&1&&(a(0,"li"),d(1),o()),e&2){let s=r.$implicit;l(),S(" ",s," ")}}function Mt(e,r){if(e&1&&(a(0,"ul",27),v(1,bt,2,1,"li",22),o()),e&2){let s=_().$implicit;l(),m("ngForOf",s.ActionString)}}function Et(e,r){if(e&1&&(a(0,"span",28),C(1,"i",29),o()),e&2){let s=_().$implicit;m("title",ye("Delivery : ",s.DeliveryState,`
|
|
2
|
-
Payment : `,s.PaymentState))}}function Pt(e,r){if(e&1&&(a(0,"tr")(1,"td"),d(2),o(),a(3,"td"),d(4),o(),v(5,xt,3,4,"td",23),a(6,"td")(7,"span"),d(8),o(),d(9),o(),a(10,"td",24)(11,"span"),d(12),o(),d(13),o(),a(14,"td"),v(15,Tt,2,1,"span",23)(16,Mt,2,1,"ul",25),o(),a(17,"td"),v(18,Et,2,3,"span",26),o()()),e&2){let s,t=r.$implicit,n=r.index,i=_(2);l(2),F(n+1),l(2),F(t.Number),l(),m("ngIf",((s=i.selectedChannel())==null?null:s.TypeID)!=i.channelType.Shopee&&((s=i.selectedChannel())==null?null:s.TypeID)!==i.channelType.Tiktok),l(3),S("",t.ChannelStatus," - "),l(),S("",t.ChannelStatusDescription," "),l(),m("ngClass",xe(12,yt,(t==null?null:t.Action)==i.actionPreviewOrder.Update,(t==null?null:t.Action)==i.actionPreviewOrder.New))("matTooltip",t.POSStatus==91||t.POSStatusDescription=="Conflict"?"There is a missed status at POS, usually fulfillment has not been recorded but the payment has been recorded":""),l(2),S("",t.POSStatus," - "),l(),S("",t.POSStatusDescription," "),l(2),m("ngIf",t.ActionString.length==1),l(),m("ngIf",t.ActionString.length>1),l(2),m("ngIf",t.ChannelStatus!=99&&t.POSStatus!=99)}}function It(e,r){if(e&1&&(R(0),v(1,Pt,19,15,"tr",22),W()),e&2){let s=_();l(),m("ngForOf",s.displayPreviewData())}}function Vt(e,r){e&1&&(a(0,"tr",30)(1,"td",31)(2,"div",32),C(3,"i",33),o(),a(4,"h4",34),d(5," There is no order to processed "),o()()())}var dt=(()=>{let r=class r{constructor(){this.orderPreview=L(),this.selectedChannel=L(),this.channelType=oe,this.allData=f(0),this.syncData=f(0),this.wrongData=f(0),this.unsyncData=f(0),this.pillStatus=f(P.ALL),this.actionPreviewOrder=G,this.previewStatus=P,this.displayPreviewData=f([]),this.exportOrders=new A,ee(()=>{this.orderPreview()&&(this.filterPreviewData(P.ALL),this.initLengthStatusData())},{allowSignalWrites:!0})}filterPreviewData(t){this.pillStatus.update(()=>t),this.displayPreviewData.update(()=>this.filterDataByStatus(t))}initLengthStatusData(){this.wrongData.update(()=>this.filterDataByStatus(P.WRONG).length),this.syncData.update(()=>this.filterDataByStatus(P.SYNC).length),this.allData.update(()=>this.orderPreview().length),this.unsyncData.update(()=>this.filterDataByStatus(P.UNSYNC).length)}filterDataByStatus(t){let n=[];switch(t){case P.ALL:n=this.orderPreview();break;case P.SYNC:n=this.orderPreview().filter(i=>i.Action==G.DoNothing);break;case P.WRONG:n=this.orderPreview().filter(i=>i.Action==G.Update);break;case P.UNSYNC:n=this.orderPreview().filter(i=>i.Action==G.New);break}return n}onExportOrders(){this.exportOrders.emit()}};r.\u0275fac=function(n){return new(n||r)},r.\u0275cmp=I({type:r,selectors:[["preview-step"]],inputs:{orderPreview:[1,"orderPreview"],selectedChannel:[1,"selectedChannel"]},outputs:{exportOrders:"onExportOrders"},decls:41,vars:11,consts:[["EMPTY",""],[1,"row","pt-2"],[1,"col-md-12"],[1,"row","mx-1","mb-5"],[1,"col-12","d-flex","justify-content-between","align-items-end",2,"padding-left","0px","padding-right","0px"],[1,"nav","nav-pills"],[1,"nav-item","me-3"],[1,"btn","btn-sm","rounded-pill",3,"click","ngClass"],[1,"nav-item","mx-3"],["matTooltip","All Invoice which is already available in POS",1,"btn","btn-sm","rounded-pill",3,"click","ngClass"],["matTooltip","Invoices that have different status between marketplace and POS",1,"btn","btn-sm","rounded-pill",3,"click","ngClass"],["matTooltip","Invoices which is not exist in POS",1,"btn","btn-sm","rounded-pill",3,"click","ngClass"],["type","button",1,"btn","btn-outline-secondary",3,"click"],[1,"fa-solid","fa-print","me-3"],[1,"table"],[1,"thead-light"],["width","1%"],["width","25%"],["width","15%",4,"ngIf"],["width","10%"],[4,"ngIf","ngIfElse"],["width","15%"],[4,"ngFor","ngForOf"],[4,"ngIf"],["matTooltipClass","custom-width-tooltip",3,"ngClass","matTooltip"],["class","ps-5",4,"ngIf"],[3,"title",4,"ngIf"],[1,"ps-5"],[3,"title"],[1,"fas","fa-info-circle","ms-2"],[1,"text-center"],["colspan","10",1,"border-0"],[2,"margin-top","16vh"],[1,"far","fa-file","text-secondary",2,"font-size","95px"],[1,"text-secondary","mt-6"]],template:function(n,i){if(n&1){let p=y();a(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div")(5,"ul",5)(6,"li",6)(7,"button",7),w("click",function(){return u(p),h(i.filterPreviewData(i.previewStatus.ALL))}),d(8),o()(),a(9,"li",8)(10,"button",9),w("click",function(){return u(p),h(i.filterPreviewData(i.previewStatus.SYNC))}),d(11),o()(),a(12,"li",8)(13,"button",10),w("click",function(){return u(p),h(i.filterPreviewData(i.previewStatus.WRONG))}),d(14),o()(),a(15,"li",8)(16,"button",11),w("click",function(){return u(p),h(i.filterPreviewData(i.previewStatus.UNSYNC))}),d(17),o()()()(),a(18,"div")(19,"button",12),w("click",function(){return u(p),h(i.onExportOrders())}),C(20,"i",13),a(21,"span"),d(22,"Export"),o()()()()(),a(23,"table",14)(24,"thead",15)(25,"tr"),C(26,"th",16),a(27,"th",17),d(28,"Number"),o(),v(29,Dt,2,1,"th",18),a(30,"th",19),d(31,"Channel Status"),o(),a(32,"th",19),d(33,"POS Status"),o(),a(34,"th"),d(35,"Action"),o(),C(36,"th",16),o()(),a(37,"tbody"),v(38,It,2,1,"ng-container",20)(39,Vt,6,0,"ng-template",null,0,X),o()()()()}if(n&2){let p,g,c=T(40);l(7),m("ngClass",i.pillStatus()=="all"?"btn-secondary text-white":"btn-outline-dark"),l(),S(" All (",i.allData(),") "),l(2),m("ngClass",i.pillStatus()=="sync"?"btn-success":"btn-outline-success"),l(),S(" Existing (",i.syncData(),") "),l(2),m("ngClass",i.pillStatus()=="wrong"?"btn-warning text-white":"btn-outline-warning"),l(),S(" Wrong Status (",i.wrongData(),") "),l(2),m("ngClass",i.pillStatus()=="unsync"?"btn-danger":"btn-outline-danger"),l(),S(" Missing (",i.unsyncData(),") "),l(12),m("ngIf",((p=i.selectedChannel())==null?null:p.TypeID)!=i.channelType.Shopee&&((p=i.selectedChannel())==null?null:p.TypeID)!==i.channelType.Tiktok),l(9),m("ngIf",((g=i.displayPreviewData())==null?null:g.length)>0)("ngIfElse",c)}},dependencies:[V,O,z,Y,se,We,U],encapsulation:2});let e=r;return e})();var kt=["stepper"];function Nt(e,r){if(e&1){let s=y();a(0,"div",2)(1,"button",19),w("click",function(){u(s);let n=_();return h(n.onStepperBack())}),d(2," Back "),o(),a(3,"button",20),w("click",function(){u(s);let n=_();return h(n.onNextStep())}),d(4," Next "),o()()}if(e&2){let s=_();l(3),m("disabled",s.disabledNextFilter())}}function Ft(e,r){if(e&1){let s=y();a(0,"button",21),w("click",function(){u(s);let n=_();return h(n.onNextStep())}),d(1," Next "),o()}if(e&2){let s=_();m("disabled",s.disabledNextFilter())}}function Ot(e,r){if(e&1){let s=y();a(0,"button",22),w("click",function(){u(s);let n=_();return h(n.onNewDownload())}),C(1,"i",23),d(2," New "),o()}}function Rt(e,r){e&1&&(C(0,"i",24),a(1,"span"),d(2,"Filter"),o())}function Wt(e,r){e&1&&(C(0,"i",25),a(1,"span"),d(2,"Preview"),o())}function Bt(e,r){if(e&1){let s=y();R(0),a(1,"preview-step",26),w("onExportOrders",function(){u(s);let n=_();return h(n.onExportOrders())}),o(),W()}if(e&2){let s=r.ngIf;l(),m("orderPreview",s)}}function Lt(e,r){e&1&&(C(0,"i",27),a(1,"span"),d(2,"Finish"),o())}function At(e,r){if(e&1&&(R(0),C(1,"complete-step",28),W()),e&2){let s=r.ngIf;l(),m("downloadResult",s)}}function zt(e,r){e&1&&(a(0,"h6"),d(1,"1"),o())}function Yt(e,r){e&1&&(a(0,"h6"),d(1,"2"),o())}function Ut(e,r){e&1&&(a(0,"h6"),d(1,"3"),o())}var gn=(()=>{let r=class r{constructor(){this.downloadService=D($),this.orderService=D(pe),this.productService=D(Ge),this.authService=D(le),this.stepperSelectedIndex=f(0),this.disabledNextFilter=f(!0),this.isResetFilter=f(!1),this.pageTitle=f("Download to POS"),this.cacheKey=f(x.GuidEMpty),this.rememberMe=f(!1)}onFilterChange(t){this.filter=t,this.validateDisabledNext()}validateDisabledNext(){this.disabledNextFilter.update(()=>x.IsEmpty(this.filter?.channelId)||!x.isValidDate(this.filter.startDate)||!x.isValidDate(this.filter.endDate))}onNextStep(){switch(this.stepper.selectedIndex){case 0:this.onPreview();let t=this.productService.findChannelById(this.filter.channelId,this.authService.getChannels());this.setPageTitle(`Preview ${t?.Name}`);break;case 1:this.onDownload(),this.setPageTitle("Download");break}}onStepperNext(){this.stepper.selected.completed=!0,this.stepper.next()}onPreview(){let t={ID:this.filter.channelId,From:this.filter.startDate,To:this.filter.endDate,IsDisbursement:this.filter.downloadType};x.IsNotEmpty(this.filter.startTime)&&(t=ce(me({},t),{TimeFrom:this.filter.startTime+":00",TimeTo:this.filter.endTime+":00"})),this.orderPreview$=this.downloadService.onPreviewOrder(t).pipe(H(n=>{n.Data?.length>0&&(this.cacheKey.update(()=>n.CacheKey),this.onStepperNext())}),Z(n=>n.Data),j(1))}onExportOrders(){let t={ID:this.filter.channelId,From:this.filter.startDate?this.filter.startDate:null,To:this.filter.endDate?this.filter.endDate:null},n=`Orders ${this.downloadService.getDateTitle(this.filter.startDate,this.filter.endDate)}`;this.orderService.exportOrders(t,n).subscribe()}onDownload(){let t={ID:this.filter.channelId,From:this.filter.startDate,To:this.filter.endDate,ListPreview:[],IsDisbursement:this.filter.downloadType,CacheKey:this.cacheKey()};this.downloadPreview$=this.orderPreview$.pipe(he(n=>(t.ListPreview=n,this.downloadService.getDownloadOrder(t))),H(()=>{this.onStepperNext()}),j(1))}setPageTitle(t){this.pageTitle.update(()=>`
|
|
3
|
-
${t} (${this.downloadService.getDateTitle(this.filter.startDate,this.filter.endDate)})
|
|
4
|
-
`)}onStepperBack(){this.stepper.previous(),this.pageTitle.update(()=>"Download to POS")}onNewDownload(){this.isResetFilter.update(()=>!this.rememberMe()),this.stepper.reset(),this.stepperSelectedIndex.update(()=>0),this.orderPreview$=null,this.downloadPreview$=null,this.pageTitle.update(()=>"Download to POS")}};r.\u0275fac=function(n){return new(n||r)},r.\u0275cmp=I({type:r,selectors:[["app-download-v2"]],viewQuery:function(n,i){if(n&1&&we(kt,5),n&2){let p;Ce(p=ve())&&(i.stepper=p.first)}},features:[q([$,pe,{provide:qe,useValue:{displayDefaultIndicatorType:!1}}])],decls:26,vars:21,consts:[["stepper",""],[3,"hideSearchBox","hideSearchDropdown","headerTitle","description"],[1,"btn-group","me-3"],["type","button",1,"btn","btn-outline-secondary","btn-fill","me-3","bg-success","text-white",3,"disabled"],[1,"btn","btn-outline-secondary","btn-fill","d-flex","align-items-center","gap-2"],[1,"container-fluid","pt-5","mt-5"],[1,"row"],[1,"col-12"],[1,"d-flex","justify-content-center"],["linear","",1,"w-100","stepper-download",3,"selectedIndexChange","ngClass","selectedIndex"],["state","filter",3,"completed","editable"],["matStepLabel",""],[1,"w-100",3,"onFilterChange","onRememberMeChange","reset"],["state","preview",3,"editable","completed"],[4,"ngIf"],["state","finish"],["matStepperIcon","filter"],["matStepperIcon","preview"],["matStepperIcon","finish"],[1,"btn","btn-outline-secondary",3,"click"],["type","button",1,"btn","btn-outline-secondary","bg-success","text-white",3,"click","disabled"],["type","button",1,"btn","btn-outline-secondary","btn-fill","me-3","bg-success","text-white",3,"click","disabled"],[1,"btn","btn-outline-secondary","btn-fill","d-flex","align-items-center","gap-2",3,"click"],["aria-hidden","true",1,"fa","fa-file-alt"],[1,"fa-solid","fa-filter","me-3"],[1,"fa-solid","fa-file","me-3"],[3,"onExportOrders","orderPreview"],[1,"fa-solid","fa-flag","me-3"],[3,"downloadResult"]],template:function(n,i){if(n&1){let p=y();a(0,"mainpanel",1)(1,"actions"),k(2,Nt,5,1,"div",2),k(3,Ft,2,1,"button",3),k(4,Ot,3,0,"button",4),o(),a(5,"content")(6,"div",5)(7,"div",6)(8,"div",7)(9,"div",8)(10,"mat-stepper",9,0),E("selectedIndexChange",function(c){return u(p),M(i.stepperSelectedIndex,c)||(i.stepperSelectedIndex=c),h(c)}),a(12,"mat-step",10),v(13,Rt,3,0,"ng-template",11),a(14,"filter-step",12),w("onFilterChange",function(c){return u(p),h(i.onFilterChange(c))})("onRememberMeChange",function(c){return u(p),h(i.rememberMe.set(c))}),o()(),a(15,"mat-step",13),v(16,Wt,3,0,"ng-template",11)(17,Bt,2,1,"ng-container",14),B(18,"async"),o(),a(19,"mat-step",15),v(20,Lt,3,0,"ng-template",11)(21,At,2,1,"ng-container",14),B(22,"async"),o(),v(23,zt,2,0,"ng-template",16)(24,Yt,2,0,"ng-template",17)(25,Ut,2,0,"ng-template",18),o()()()()()()()}if(n&2){let p=T(11);m("hideSearchBox",!0)("hideSearchDropdown",!0)("headerTitle",i.pageTitle())("description",i.pageTitle()),l(2),N(i.stepperSelectedIndex()==1?2:-1),l(),N(i.stepperSelectedIndex()==0?3:-1),l(),N(i.stepperSelectedIndex()==2?4:-1),l(6),m("ngClass",Se("last-edited-step-"+p.selectedIndex)),b("selectedIndex",i.stepperSelectedIndex),l(2),m("completed",!1)("editable",i.stepperSelectedIndex()!=2),l(2),m("reset",i.isResetFilter()),l(),m("editable",i.stepperSelectedIndex()!=2)("completed",!1),l(2),m("ngIf",K(18,17,i.orderPreview$)),l(4),m("ngIf",K(22,19,i.downloadPreview$))}},dependencies:[V,O,Y,rt,st,dt,it,et,Je,tt,Xe,Le,Be,Me,se,te],styles:[`@import"https://fonts.googleapis.com/icon?family=Material+Icons";.vertical-radio{display:flex;flex-direction:column;margin:15px 0}.mt-1rem{margin-top:1rem}.dateRange{padding-top:.8rem;padding-bottom:.8rem}mat-stepper.stepper-download>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-stepper-header-container{position:relative;width:60%;left:18%}mat-stepper.stepper-download>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-content-container>div.mat-horizontal-stepper-content:nth-child(1){display:flex;justify-content:left}mat-stepper.stepper-download>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-content-container{margin-top:30px}mat-stepper.stepper-download>div.mat-horizontal-stepper-wrapper>div.mat-horizontal-stepper-header-container>mat-step-header.mat-horizontal-stepper-header{pointer-events:none!important}.form-label-group.radio.download-type{height:45.5938px!important;border-radius:.375rem!important}
|
|
5
|
-
`],encapsulation:2});let e=r;return e})();export{gn as DownloadV2Component};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=(()=>{let t=class t{};t.SubmitConfig="/api/Channel/SubmitConfig",t.PosAccountTest="/api/POSAccount/Test",t.PosAccountRemove="/api/POSAccount/Remove",t.PosAccountGetConfig="/api/ChannelLoader/GetConfig",t.ChannelGetLastSyncByID="/api/Channel/GetLastSyncByID",t.GetChannel="/api/Channel/GetChannel",t.GetChannelLoader="/api/ChannelLoader/GetChannelLoader",t.TestShopID="/api/Channel/TestShopID",t.UpdateChannelIndex="/api/Channel/UpdateChannelIndex",t.DeleteChannel="/api/Channel/DeleteChannel",t.GetRegisterByOutletName="/api/Channel/GetRegistersByOutletOrder",t.GetChannelRowCount="/api/Channel/GetCountChannel",t.GetChannelWarehouse="/api/Channel/GetChannelWarehouseLocation",t.UnSynchronizedWarehouse="/api/Channel/UnSynchronizedWarehouse",t.GetChannelDetail="/api/ChannelLoader/GetChannelView",t.GetOrderPreview="/api/Orders/Preview",t.GetOrderPreviewV2="/api/Orders/PreviewV2",t.GetDownloadOrder="/api/Orders/Download",t.GetDownloadOrderV2="/api/Orders/DownloadV2",t.ShopeeV2_URL="/api/ChannelAuthorization/ShopeeV2_URL",t.Tiktok_URL="/api/ChannelAuthorization/Tiktok_URL",t.Lazada_URL="/api/ChannelAuthorization/Lazada_URL",t.AddTokopedia="/api/ChannelAdd/Tokopedia",t.AddShopify="/api/ChannelAdd/AddShopify",t.AddWoocommerce="/api/ChannelAdd/AddWooCommerce",t.AddPlugo="/api/ChannelAdd/Plugo",t.UploadPlugoProduct="/api/product/plugo/AddProduct",t.RefreshToken="/api/RefreshToken",t.RefreshInventory="/api/Inventory/RefreshInventory",t.GetToShip="/api/orders/toship",t.GetShipped="/api/orders/shipped",t.GetCompleted="/api/orders/completed",t.GetAll="/api/orders/all",t.GetCancelled="/api/orders/GetCancelled",t.GetAwaitingCollection="/api/orders/AwaitingCollection",t.GetShopeeShippingOptions="/api/v1/shipping/shopee/OptionShip",t.ShopeeSelectShipping="/api/v1/shipping/shopee/SelectShip",t.ShopeeSelectMultipleShipping="/api/v1/shipping/shopee/SelectMultipleShip",t.GetTiktokShippingOptions="/api/v1/shipping/tiktok/OptionShip",t.TiktokSelectShipping="/api/v1/shipping/tiktok/SelectShip",t.TiktokSelectMultipleShipping="/api/v1/shipping/tiktok/SelectMultipleShip",t.GetOrderApiLog="/api/Orders/GetOrderDetailByChannel",t.getOrderDaysFrom="/api/orders/DaysFrom",t.GetUserLoader="/api/userloader/List",t.GetUsers="/api/user/list",t.GetLoaderForm="/api/userloader/Form",t.UpdateUser="/api/user/Submit",t.DeleteUsers="/api/user/Delete",t.MyProfile="/api/user/myprofile",t.MigrateUsers="/api/user/migrate",t.MigrateLoader="/api/userloader/Migrate",t.GetGroups="/api/UserGroup/list",t.GetGroupsLoader="/api/UserGroupLoader/list",t.GetGroupFormLoader="/api/UserGrouploader/Form",t.SubmitGroup="/api/userGroup/AssignRole",t.DeleteGroups="/api/userGroup/Delete",t.GetEscrowDetail="/api/Orders/GetEscrowDetail",t.DetachVariant="/api/product/DetachVariant",t.GetProductApiLog="/api/Product/GetProductDetailBySKU",t.ScanSyncProductV2="/api/v2/ProductScan/SyncProduct",t.ScanAsyncProductV2="/api/v2/ProductScan/AsyncProduct",t.GetLastInfoDownloadInventory="/api/Inventory/GetOrderDownloadLatestOn",t.UpdateInventoryChannel="/api/Inventory/UpdateChannel",t.GetJobScanList="/api/notification/GetJobScanV2",t.GetJobScanDetail="/api/notification/GetJobScanV2ByID",t.UpdateChannelInventory="/api/Inventory/UpdateChannel",t.GetMultiListingSKU="/api/product/GetMultiListingSKU",t.GetMultilistingSKUCount="/api/product/GetCountMultiListingSKU",t.UpdateUpdateQuantityByItem="/api/Inventory/UpdateQuantityByItem",t.UpdatePriceById="/api/Price/UpdatePriceByID",t.UpdateChannelPrice="/api/Price/UpdateChannel",t.TokopediaPrintShippingLabel="api/v1/Shippinglabel/Tokopedia",t.TiktokPrintShippingLabel="api/v1/Shippinglabel/Tiktok/DownloadShipping",t.LazadaPrintShippingLabel="api/v1/Shippinglabel/Lazada/DownloadShipping",t.ShopeePrintShippingLabel="api/v1/Shippinglabel/shopee/DownloadShipping",t.ShopeePrintMultipleShippingLabel="/api/v1/Shippinglabel/shopee/MultiDownloadShipping",t.TiktokPrintMultipleShippingLabel="/api/v1/Shippinglabel/Tiktok/MultiDownloadShipping",t.LazadaPrintMultipleShippingLabel="/api/v1/Shippinglabel/Lazada/MultiDownloadShipping",t.RefreshShippingCourierAndRefNumber="/api/orders/RefreshShippingProvider";let i=t;return i})();export{e as a};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import"./chunk-NOIKC7TF.js";import"./chunk-7VRLCSNB.js";import{a as qe}from"./chunk-SNSROU6N.js";import"./chunk-4VNQYYVV.js";import{b as Ze}from"./chunk-NLSVMXR7.js";import{c as Ye}from"./chunk-55BTWXFX.js";import"./chunk-FULVA6QB.js";import{a as g}from"./chunk-6XT3JSG5.js";import"./chunk-A7YRNCQP.js";import"./chunk-PZB3GQWT.js";import"./chunk-B4QCGMST.js";import"./chunk-BXOHTPGP.js";import{b as Xe}from"./chunk-TDCMI7YC.js";import{b as Ke}from"./chunk-GV3NEJJ6.js";import"./chunk-OPXITNRF.js";import"./chunk-HPINZVE4.js";import"./chunk-D2J64VUP.js";import"./chunk-6Q6L5NUD.js";import"./chunk-ONU4O7N2.js";import"./chunk-3RK6DDJD.js";import{a as Qe}from"./chunk-5YBWBAQS.js";import"./chunk-37NOSLQL.js";import{a as l}from"./chunk-ZSUWHVKX.js";import"./chunk-N5AE5WMQ.js";import{b as Ne}from"./chunk-34UF36YY.js";import{a as ze,d as Ae,e as V}from"./chunk-6KWG6O5L.js";import{a as Le}from"./chunk-A6QXXKPR.js";import{b as Oe,i as ke}from"./chunk-5O33CV4F.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-YJTPDV4D.js";import"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import"./chunk-BLHKSSK6.js";import{a as Be,h as We,k as Y,n as Je}from"./chunk-UI5ITL7Z.js";import{A as R,B as we,h as Ie,m as Te}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import{a as Ee,b as De,c as Pe}from"./chunk-ZETUYNFJ.js";import{v as He,w as U}from"./chunk-SILAIDPV.js";import{C as $e,D as Fe,I as je,L as Ge,M as Q,v as Re,w as Ve,y as Ue}from"./chunk-3I2V337G.js";import{E as ye,F as Me,G as xe,H as Se,I as J,c as ue,e as _e,f as be,i as Ce,j as ve,m as N}from"./chunk-LNJUGHOX.js";import{$b as se,Bc as pe,Ca as ie,Cc as ge,Dc as he,Fd as L,G as K,Gb as y,Hb as C,Hc as z,Ib as le,Ic as fe,Jc as A,Lc as H,M as X,Mb as _,Mc as p,Nc as M,Oc as w,Q as ee,Qa as ne,ac as de,bc as ce,ca as te,f as G,gc as c,hc as r,hd as W,ic as d,id as q,jc as v,kd as B,lb as ae,na as b,nb as s,nc as P,oc as k,qc as me,ra as f,sb as D,tb as oe,v as E,vc as T,xa as x,xc as m,ya as S,yb as re,zb as I}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import{i as j}from"./chunk-66YHNWRR.js";var $=class{constructor(){this.menus=[{Icon:"fa-solid fa-chart-pie",Title:"Dashboard",Url:"/menu/dashboard",Roles:[l.DashboardView]},{Icon:"fas fa-tag",Title:"Products",Url:"/menu/products",Roles:[l.ProductView]},{Icon:"fas fa-archive",Title:"Inventory",Url:"/menu/inventory",Roles:[l.InventoryView]},{Icon:"fas fa-money-bill-alt",Title:"Price",Url:"/menu/price",Roles:[l.PriceView]},{Icon:"fas fa-shopping-cart",Title:"Order",Url:"/menu/order",Roles:[l.OrderView]},{Icon:"fas fa-cog",Title:"Channel",Url:"/menu/channel",Roles:[l.ChannelView]},{Icon:"fa-solid fa-user",Title:"Users",Url:"/menu/users",Roles:[l.UserView]},{Icon:"fas fa-clipboard-list",Title:"Sync Logs",Url:"/menu/sync-log",Roles:[l.Report]},{Icon:"fas fa-dolly",Title:"Logistic",Url:"/menu/Logistic",Roles:[l.LogisticView]},{Icon:"fas fa-file-alt",Title:"Developer",Url:"/menu/log",Roles:[l.DevView]},{Icon:"fa-solid fa-file-brackets-curly",Title:"JSON Api",Url:"/menu/json-api",Roles:[l.JsonApiView]}]}get getMenu(){return this.menus}};var et="mat-badge-content",st=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=y({type:e,selectors:[["ng-component"]],decls:0,vars:0,template:function(n,a){},styles:[`.mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-content{position:absolute;text-align:center;display:inline-block;transition:transform 200ms ease-in-out;transform:scale(0.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;pointer-events:none;background-color:var(--mat-badge-background-color, var(--mat-sys-error));color:var(--mat-badge-text-color, var(--mat-sys-on-error));font-family:var(--mat-badge-text-font, var(--mat-sys-label-small-font));font-weight:var(--mat-badge-text-weight, var(--mat-sys-label-small-weight));border-radius:var(--mat-badge-container-shape, var(--mat-sys-corner-full))}.mat-badge-above .mat-badge-content{bottom:100%}.mat-badge-below .mat-badge-content{top:100%}.mat-badge-before .mat-badge-content{right:100%}[dir=rtl] .mat-badge-before .mat-badge-content{right:auto;left:100%}.mat-badge-after .mat-badge-content{left:100%}[dir=rtl] .mat-badge-after .mat-badge-content{left:auto;right:100%}@media(forced-colors: active){.mat-badge-content{outline:solid 1px;border-radius:0}}.mat-badge-disabled .mat-badge-content{background-color:var(--mat-badge-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-error) 38%, transparent));color:var(--mat-badge-disabled-state-text-color, var(--mat-sys-on-error))}.mat-badge-hidden .mat-badge-content{display:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:var(--mat-badge-legacy-small-size-container-size, unset);height:var(--mat-badge-legacy-small-size-container-size, unset);min-width:var(--mat-badge-small-size-container-size, 6px);min-height:var(--mat-badge-small-size-container-size, 6px);line-height:var(--mat-badge-small-size-line-height, 6px);padding:var(--mat-badge-small-size-container-padding, 0);font-size:var(--mat-badge-small-size-text-size, 0);margin:var(--mat-badge-small-size-container-offset, -6px 0)}.mat-badge-small.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-small-size-container-overlap-offset, -6px)}.mat-badge-medium .mat-badge-content{width:var(--mat-badge-legacy-container-size, unset);height:var(--mat-badge-legacy-container-size, unset);min-width:var(--mat-badge-container-size, 16px);min-height:var(--mat-badge-container-size, 16px);line-height:var(--mat-badge-line-height, 16px);padding:var(--mat-badge-container-padding, 0 4px);font-size:var(--mat-badge-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-container-offset, -12px 0)}.mat-badge-medium.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-container-overlap-offset, -12px)}.mat-badge-large .mat-badge-content{width:var(--mat-badge-legacy-large-size-container-size, unset);height:var(--mat-badge-legacy-large-size-container-size, unset);min-width:var(--mat-badge-large-size-container-size, 16px);min-height:var(--mat-badge-large-size-container-size, 16px);line-height:var(--mat-badge-large-size-line-height, 16px);padding:var(--mat-badge-large-size-container-padding, 0 4px);font-size:var(--mat-badge-large-size-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-large-size-container-offset, -12px 0)}.mat-badge-large.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-large-size-container-overlap-offset, -12px)}
|
|
2
|
-
`],encapsulation:2,changeDetection:0})}return e})(),tt=(()=>{class e{_ngZone=f(oe);_elementRef=f(ne);_ariaDescriber=f(je);_renderer=f(re);_animationsDisabled=Ge();_idGenerator=f(Fe);get color(){return this._color}set color(i){this._setColor(i),this._color=i}_color="primary";overlap=!0;disabled;position="above after";get content(){return this._content}set content(i){this._updateRenderedContent(i)}_content;get description(){return this._description}set description(i){this._updateDescription(i)}_description;size="medium";hidden;_badgeElement;_inlineBadgeDescription;_isInitialized=!1;_interactivityChecker=f(Ue);_document=f(ie);constructor(){let i=f(Re);i.load(st),i.load(Ve)}isAbove(){return this.position.indexOf("below")===-1}isAfter(){return this.position.indexOf("before")===-1}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&(this._renderer.destroyNode(this._badgeElement),this._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})}_createBadgeElement(){let i=this._renderer.createElement("span"),n="mat-badge-active";return i.setAttribute("id",this._idGenerator.getId("mat-badge-content-")),i.setAttribute("aria-hidden","true"),i.classList.add(et),this._animationsDisabled&&i.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(i),typeof requestAnimationFrame=="function"&&!this._animationsDisabled?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{i.classList.add(n)})}):i.classList.add(n),i}_updateRenderedContent(i){let n=`${i??""}`.trim();this._isInitialized&&n&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=n),this._content=n}_updateDescription(i){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!i||this._isHostInteractive())&&this._removeInlineDescription(),this._description=i,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,i):this._updateInlineDescription()}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden")),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription)}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0}_setColor(i){let n=this._elementRef.nativeElement.classList;n.remove(`mat-badge-${this._color}`),i&&n.add(`mat-badge-${i}`)}_clearExistingBadges(){let i=this._elementRef.nativeElement.querySelectorAll(`:scope > .${et}`);for(let n of Array.from(i))n!==this._badgeElement&&n.remove()}static \u0275fac=function(n){return new(n||e)};static \u0275dir=le({type:e,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(n,a){n&2&&A("mat-badge-overlap",a.overlap)("mat-badge-above",a.isAbove())("mat-badge-below",!a.isAbove())("mat-badge-before",!a.isAfter())("mat-badge-after",a.isAfter())("mat-badge-small",a.size==="small")("mat-badge-medium",a.size==="medium")("mat-badge-large",a.size==="large")("mat-badge-hidden",a.hidden||!a.content)("mat-badge-disabled",a.disabled)},inputs:{color:[0,"matBadgeColor","color"],overlap:[2,"matBadgeOverlap","overlap",L],disabled:[2,"matBadgeDisabled","disabled",L],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",L]}})}return e})(),it=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=C({type:e});static \u0275inj=b({imports:[$e,Q,Q]})}return e})();function ct(e,t){if(e&1&&(P(0),r(1,"p",25),p(2),d(),k()),e&2){let i=m(3).$implicit;s(2),w(" ",i.Title," ")}}function mt(e,t){if(e&1&&(r(0,"p"),p(1),d()),e&2){let i=m(3).$implicit;s(),M(i.Title)}}function pt(e,t){if(e&1&&(r(0,"a",24),v(1,"i"),_(2,ct,3,1,"ng-container",22)(3,mt,2,1,"ng-template",null,1,B),d()),e&2){let i=z(4),n=m(2).$implicit;c("href",n.Url,ae),s(),H(n.Icon),s(),c("ngIf",n.Badge)("ngIfElse",i)}}function gt(e,t){if(e&1&&(P(0),_(1,pt,5,5,"a",23),k()),e&2){let i=m().$implicit;s(),c("ngxPermissionsOnly",i.Roles)}}function ht(e,t){if(e&1&&(r(0,"p",25),p(1),d()),e&2){let i=m(4).$implicit;s(),w(" ",i.Title," ")}}function ft(e,t){if(e&1&&(r(0,"p"),p(1),d()),e&2){let i=m(4).$implicit;s(),M(i.Title)}}function ut(e,t){if(e&1&&(P(0),se(1,ht,2,1,"p",25),W(2,"async"),de(3,ft,2,1,"p"),k()),e&2){let i=m(4);s(),ce(q(2,1,i.notifications$)!=0?1:3)}}function _t(e,t){if(e&1&&(r(0,"p"),p(1),d()),e&2){let i=m(3).$implicit;s(),M(i.Title)}}function bt(e,t){if(e&1&&(r(0,"a",27),v(1,"i"),_(2,ut,4,3,"ng-container",22)(3,_t,2,1,"ng-template",null,2,B),d()),e&2){let i=z(4),n=m(2).$implicit,a=m();c("matTooltip",a.isCollapseSidebar?n.Title:"")("routerLink",n.Url),s(),H(n.Icon),s(),c("ngIf",n.Badge)("ngIfElse",i)}}function Ct(e,t){if(e&1&&_(0,bt,5,6,"a",26),e&2){let i=m().$implicit;c("ngxPermissionsOnly",i.Roles)}}function vt(e,t){if(e&1&&(r(0,"li",21),_(1,gt,2,1,"ng-container",22)(2,Ct,1,1,"ng-template",null,0,B),d()),e&2){let i=t.$implicit,n=z(3);s(),c("ngIf",i.ExternalLink)("ngIfElse",n)}}var nt=(()=>{let t=class t{constructor(n,a,o,h){this.toggleSidebarService=n,this.notificationService=a,this.decodeTokenService=o,this.authService=h,this.Menu={},this.isCollapseSidebar=!1,this.token=o.getParseToken(),this.storeName=this.token.StoreName,this.Menu=new $().getMenu,this.toggleState$=this.toggleSidebarService.toggleState$}ngOnInit(){this.initNotifications()}initNotifications(){this.notifications$=this.notificationService.getNotification().pipe(E(n=>n.length))}onLogout(){this.authService.logout()}onCallapseSidebar(){this.isCollapseSidebar=!this.isCollapseSidebar,this.storeName=this.token.StoreName,this.isCollapseSidebar&&(this.storeName=this.getInitialTitle(this.token.StoreName))}getInitialTitle(n){if(n){let a,o=n.split(" ");return o.length==1?a=o[0].substring(0,2):a=o.shift().charAt(0)+o.pop().charAt(0),a}}};t.\u0275fac=function(a){return new(a||t)(I(Be),I(Ne),I(Oe),I(ke))},t.\u0275cmp=y({type:t,selectors:[["app-menu"]],standalone:!1,decls:28,vars:9,consts:[["DEFAULT_ROUTE",""],["NO_BADGE",""],["WITHOUT_BADGE",""],[1,"wrapper"],["data-color","green",1,"sidebar",3,"ngClass"],[1,"btn-minimize","d-md-block","d-none","p-0","border-0","bg-white",3,"click"],[1,"fas","cursor",3,"ngClass"],[1,"logo"],[1,"navbar","dropdown","bg-transparent","border-0"],["data-bs-toggle","dropdown","aria-expanded","false",1,"simple-text","text-start","dropdown-toggle","d-flex","align-items-center","justify-content-center","cursor-pointer"],[1,"dropdown-menu"],[1,"dropdown-header","text-dark","border-bottom"],[1,"divider","m-0"],["routerLink","/menu/profile",1,"dropdown-item","h5",2,"cursor","pointer"],["aria-hidden","true",1,"fa-user","fas"],[1,"dropdown-item","h5",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fas","fa-sign-out-alt"],[1,"sidebar-wrapper"],[1,"nav"],["routerLinkActive","active",4,"ngFor","ngForOf"],[1,"main-panel"],["routerLinkActive","active"],[4,"ngIf","ngIfElse"],["class","nav-link position-relative d-block changelog","target","_blank",3,"href",4,"ngxPermissionsOnly"],["target","_blank",1,"nav-link","position-relative","d-block","changelog",3,"href"],["matBadge","!","matBadgeColor","warn","matBadgeSize","small",1,"shake-animation"],["class","nav-link position-relative d-block","matTooltipPosition","right",3,"matTooltip","routerLink",4,"ngxPermissionsOnly"],["matTooltipPosition","right",1,"nav-link","position-relative","d-block",3,"matTooltip","routerLink"]],template:function(a,o){a&1&&(r(0,"div",3),W(1,"async"),r(2,"div",4)(3,"button",5),T("click",function(){return o.onCallapseSidebar()}),v(4,"i",6),d(),r(5,"div",7)(6,"div",8)(7,"a",9),p(8),d(),r(9,"div",10)(10,"div",11),p(11),d(),v(12,"div",12),r(13,"a",13),v(14,"i",14),p(15,"\xA0 "),r(16,"span"),p(17,"My Profile"),d()(),r(18,"a",15),T("click",function(){return o.onLogout()}),v(19,"i",16),p(20,"\xA0 "),r(21,"span"),p(22," Log Out"),d()()()()(),r(23,"div",17)(24,"ul",18),_(25,vt,4,2,"li",19),d()()(),r(26,"div",20),v(27,"router-outlet"),d()()),a&2&&(A("nav-open",q(1,7,o.toggleState$)),s(2),c("ngClass",o.isCollapseSidebar?"collapses":""),s(2),c("ngClass",o.isCollapseSidebar?"fa-angle-left":"fa-angle-right"),s(4),w(" ",o.storeName," "),s(3),w(" ",o.token==null?null:o.token.LID," "),s(14),c("ngForOf",o.Menu))},dependencies:[ue,_e,be,ye,xe,Se,He,tt,De,Ce],styles:["@media (max-width: 468px){.navbar[_ngcontent-%COMP%] .navbar-brand[_ngcontent-%COMP%]{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media only screen and (min-width: 992px){.sidebar[_ngcontent-%COMP%]{z-index:1050!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%], .sidebar.collapses[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{width:70px;transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] .simple-text[_ngcontent-%COMP%]{background-color:#ffffff3b;border-radius:20px;height:40px;width:40px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important;height:50px;text-align:center;margin:10px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{padding-left:70px}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{left:70px!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]{position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1;background-color:#fff;position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border:0;border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;padding:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1}.full-container[_ngcontent-%COMP%]{padding-top:0!important}} p.shake-animation.mat-badge>span.mat-badge-content{animation:_ngcontent-%COMP%_shake-animation 4.72s ease infinite;font-size:12px;transform-origin:50% 50%;right:-14px!important}@keyframes _ngcontent-%COMP%_shake-animation{0%{transform:translate(0)}1.78571%{transform:translate(5px)}3.57143%{transform:translate(0)}5.35714%{transform:translate(5px)}7.14286%{transform:translate(0)}8.92857%{transform:translate(5px)}10.71429%{transform:translate(0)}to{transform:translate(0)}} .changelog:visited p.shake-animation.mat-badge>span.mat-badge-content{color:#77c425;background-color:#77c425;z-index:-1}@media print{.main-panel[_ngcontent-%COMP%]{padding:0!important}}"]});let e=t;return e})();var u=(e,t)=>j(null,null,function*(){let i=f(Ee),n=f(Me),a=e.data?.roles||[],o=e.data?.redirectUrl||"/";return a.length===0||(yield yt(i,a))?!0:(n.navigate([o]),!1)});function yt(e,t){return j(this,null,function*(){let i=t.map(a=>e.hasPermission(a));return(yield Promise.all(i)).some(a=>a)})}var Mt=[{path:"",component:nt,children:[{path:"",redirectTo:"dashboard",pathMatch:"full"},{path:"profile",loadChildren:()=>import("./chunk-HERBJRWM.js").then(e=>e.routes),canActivate:[g],data:{title:"My Profile"}},{path:"dashboard",loadChildren:()=>import("./chunk-KKB4B7FU.js").then(e=>e.DashboardModule),canActivate:[g,u,qe],data:{title:"Dashboard",roles:[l.DashboardView],redirectUrl:"/menu/products"}},{path:"products",loadChildren:()=>import("./chunk-R6SCDZGW.js").then(e=>e.ProductModule),canActivate:[g,u],data:{title:"Products",roles:[l.ProductView],redirectUrl:"/menu/inventory"}},{path:"inventory",loadChildren:()=>import("./chunk-HG4R6CUP.js").then(e=>e.InventoryRoutingModule),canActivate:[g,u],data:{title:"Inventory",roles:[l.InventoryView],redirectUrl:"/menu/price"}},{path:"price",loadChildren:()=>import("./chunk-YTUPRTC2.js").then(e=>e.PriceRoutingModule),canActivate:[g,u],data:{title:"Price",roles:[l.PriceView],redirectUrl:"/menu/Order"}},{path:"order",loadChildren:()=>import("./chunk-DRTRU4DB.js").then(e=>e.routes),canActivate:[g],data:{title:"Order"}},{path:"sync-log",loadChildren:()=>import("./chunk-JOKDW6WD.js").then(e=>e.ReportModule),canActivate:[g,u],data:{title:"Report",roles:[l.Report],redirectUrl:"/menu/Logistic"}},{path:"Logistic",loadChildren:()=>import("./chunk-N26QQL77.js").then(e=>e.LogisticModule),canActivate:[g,u],data:{title:"Logistic",roles:[l.LogisticView],redirectUrl:"/menu/channel"}},{path:"channel",loadChildren:()=>import("./chunk-ODQVHQPB.js").then(e=>e.ChannelsModule),canActivate:[g,u],data:{title:"Marketplace",roles:[l.ChannelView],redirectUrl:"/menu/log"}},{path:"log",loadChildren:()=>import("./chunk-44URQXRM.js").then(e=>e.LogsModule),canActivate:[g,u],data:{title:"Orders",roles:[l.DevView]}},{path:"users",loadChildren:()=>import("./chunk-J7FL3VT4.js").then(e=>e.userRoutes),canActivate:[g,u],data:{title:"Users",roles:[l.UserView],redirectUrl:"/menu/dashboard"}},{path:"json-api",loadChildren:()=>import("./chunk-UNGNRJ2B.js").then(e=>e.routes),canActivate:[g],data:{title:"Json API"}}]}],at=(()=>{let t=class t{};t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=C({type:t}),t.\u0275inj=b({imports:[J.forChild(Mt),J]});let e=t;return e})();var St=["selectId"];function It(e,t){if(e&1&&(r(0,"span",3),p(1),d()),e&2){let i=t.item,n=m();c("title",i[n.bindLabel]),s(),M(i[n.bindLabel])}}var ot=(()=>{let t=class t{set items(n){this.ngSelectInfiniteScroll.data=n,this.ngSelectInfiniteScroll.initSelectedValue(this.selected,this.bindValue)}get selected(){return this._selected}set selected(n){this._selected=n,this.ngSelectInfiniteScroll.initSelectedValue(this.selected,this.bindValue)}constructor(){this.placeholder="",this.bindValue="",this.bindLabel="",this.width="100%",this.clearable=!0,this.parent="body",this.disabled=!1,this.optionTitle=!1,this._selected="",this.ngSelectInfiniteScroll=new Z,this.selectedChange=new D,this.selectedLabel=new D,this.onOpen=new D}onOpenSelect(){this.onOpen.emit()}onSelectChange(n){n?(this.selectedChange.emit(n[this.bindValue]),this.selectedLabel.emit(n[this.bindLabel])):(this.selectedChange.emit(null),this.selectedLabel.emit(null))}};t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=y({type:t,selectors:[["ng-select-infinite"]],viewQuery:function(a,o){if(a&1&&pe(St,7),a&2){let h;ge(h=he())&&(o.ngSelectElement=h.first)}},inputs:{placeholder:"placeholder",bindValue:"bindValue",bindLabel:"bindLabel",width:"width",clearable:"clearable",parent:"parent",disabled:"disabled",optionTitle:"optionTitle",items:"items",selected:"selected"},outputs:{selectedChange:"selectedChange",selectedLabel:"selectedLabel",onOpen:"onOpen"},decls:3,vars:12,consts:[["selectId",""],[3,"clear","scrollToEnd","open","change","appendTo","disabled","virtualScroll","typeahead","items","bindLabel","bindValue","placeholder","ngModel","clearable"],["ng-option-tmp",""],[3,"title"]],template:function(a,o){if(a&1){let h=me();r(0,"ng-select",1,0),T("clear",function(){return x(h),S(o.ngSelectInfiniteScroll.onClear())})("scrollToEnd",function(){return x(h),S(o.ngSelectInfiniteScroll.onScrollToEnd())})("open",function(){return x(h),S(o.onOpenSelect())})("change",function(lt){return x(h),S(o.onSelectChange(lt))}),_(2,It,2,2,"ng-template",2),d()}a&2&&(fe("width",o.width),c("appendTo",o.parent)("disabled",o.disabled)("virtualScroll",!0)("typeahead",o.ngSelectInfiniteScroll.input$)("items",o.ngSelectInfiniteScroll.bufferData)("bindLabel",o.bindLabel)("bindValue",o.bindValue)("placeholder",o.placeholder)("ngModel",o.selected)("clearable",o.clearable))},dependencies:[V,Ae,ze,R,Ie,Te],encapsulation:2});let e=t;return e})(),Z=class{constructor(){this._dataBuffer=[],this._data=[],this._input$=new G,this._destroy$=new G,this._loading=!1,this._bufferSize=50,this.data=[]}onSearch(){this._input$.pipe(X(200),ee(),E(t=>(t&&(t=t.toLowerCase()),this.filterData(t))),K(t=>t!==void 0),te(this._destroy$)).subscribe(t=>{this._dataBuffer=t.slice(0,this._bufferSize)})}onClear(){this._dataBuffer=this._data.slice(0,this._bufferSize)}filterData(t){let i=-1,n;return this._data.filter(o=>(n=JSON.stringify(o).toLowerCase(),i=n.indexOf(t),i!==-1||t==null))}get input$(){return this._input$}get bufferData(){return this._dataBuffer}get loading(){return this._loading}set data(t){this._data=t||[],this._dataBuffer=this._data.slice(0,this._bufferSize),this.onSearch()}initSelectedValue(t,i){if(Le.IsNotEmpty(t)){let n=this._data.filter(a=>a[i].toString().toLowerCase().indexOf(t)!==-1);this._dataBuffer=n.slice(0,this._bufferSize)}}set bufferSize(t){this._bufferSize=t}onScrollToEnd(){this.fetchMore()}fetchMore(){let t=this._dataBuffer.length,i=this._data.slice(t,this._bufferSize+t);this._loading=!0,setTimeout(()=>{this._loading=!1,this._dataBuffer=this._dataBuffer.concat(i)},200)}destroy(){this._destroy$.next(!0),this._destroy$.complete()}};var rt=(()=>{let t=class t{};t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=C({type:t}),t.\u0275inj=b({imports:[N,R,We,Ye,Ke,Qe,Ze,Xe,U,Y,ot,V,we]});let e=t;return e})();var Cn=(()=>{let t=class t{};t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=C({type:t}),t.\u0275inj=b({providers:[ve],imports:[N,at,Je,U,rt,it,Pe.forChild()]});let e=t;return e})();export{Cn as MenuModule};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-6XT3JSG5.js";import{a as C,b as v}from"./chunk-PS43OK3J.js";import"./chunk-5O33CV4F.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-YJTPDV4D.js";import"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import"./chunk-BLHKSSK6.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import"./chunk-SILAIDPV.js";import"./chunk-3I2V337G.js";import{E as h,I as i,m as n}from"./chunk-LNJUGHOX.js";import{Gb as c,Hb as s,gc as d,hc as u,ic as f,jc as r,na as m,nb as l}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var b=(()=>{let e=class e{constructor(){this.priceTabs=[{Title:"Single Channel Comparison",Url:"/menu/price/SingleChannel"},{Title:"Multi Channel Comparison",Url:"/menu/price/pos"}]}};e.\u0275fac=function(o){return new(o||e)},e.\u0275cmp=c({type:e,selectors:[["app-price"]],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(o,g){o&1&&(u(0,"nav",0)(1,"div",1)(2,"div"),r(3,"nav-tab",2),f()()(),r(4,"router-outlet")),o&2&&(l(3),d("Tabs",g.priceTabs))},dependencies:[n,v,C,i,h],encapsulation:2});let t=e;return t})();var M=[{path:"",component:b,children:[{path:"",redirectTo:"SingleChannel",pathMatch:"full"},{path:"pos",loadComponent(){return import("./chunk-MEER4VNV.js").then(t=>t.PricePosChannelComponent)},canActivate:[a],data:{title:"Global Price Comparison"}},{path:"SingleChannel",loadComponent(){return import("./chunk-FHZNWINZ.js").then(t=>t.PriceSingleChannelComponent)},canActivate:[a],data:{title:"Price Single Channel Comparison"}}]}],G=(()=>{let e=class e{};e.\u0275fac=function(o){return new(o||e)},e.\u0275mod=s({type:e}),e.\u0275inj=m({imports:[n,i.forChild(M)]});let t=e;return t})();export{G as PriceRoutingModule};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{b as Ot}from"./chunk-JUO4RKIH.js";import{a as Pt}from"./chunk-NECWUPZQ.js";import{a as Te,b as Ct,c as bt,d as Ie,e as Se}from"./chunk-P6TDS7UT.js";import"./chunk-56BH43Y7.js";import{a as _t,b as ye,c as ht,d as ve,f as xt,g as Tt,h as Ae,i as It,o as ce}from"./chunk-UW3UCIOY.js";import{b as Ft}from"./chunk-222IOSGU.js";import{a as yt}from"./chunk-GLMM3CVD.js";import"./chunk-A7YRNCQP.js";import{b as vt,d as Fe}from"./chunk-OROFEDQN.js";import"./chunk-PZB3GQWT.js";import"./chunk-B4QCGMST.js";import{b as At}from"./chunk-3WRXJBHF.js";import"./chunk-UH5C5HXK.js";import{a as kt,b as Et}from"./chunk-TDCMI7YC.js";import{a as St}from"./chunk-63I3I3MX.js";import"./chunk-3LU2SFN4.js";import{a as gt,b as xe}from"./chunk-GV3NEJJ6.js";import"./chunk-OPXITNRF.js";import"./chunk-HPINZVE4.js";import"./chunk-D2J64VUP.js";import"./chunk-6Q6L5NUD.js";import"./chunk-ONU4O7N2.js";import"./chunk-3RK6DDJD.js";import{a as be}from"./chunk-5YBWBAQS.js";import{a as dt,b as ut,f as ft}from"./chunk-37NOSLQL.js";import"./chunk-ZSUWHVKX.js";import"./chunk-N5AE5WMQ.js";import"./chunk-J2BPOHP6.js";import{a as mt}from"./chunk-I3IA6MAD.js";import"./chunk-34UF36YY.js";import{d as H,e as W}from"./chunk-6KWG6O5L.js";import"./chunk-NWB7EVME.js";import"./chunk-AFDI4TD4.js";import"./chunk-4RG5YR7N.js";import"./chunk-5MV3UFJQ.js";import"./chunk-E6AMKEQR.js";import"./chunk-IGKMJFKP.js";import"./chunk-ITGVXYDV.js";import"./chunk-HK5FXZE4.js";import"./chunk-KJE5GRQ4.js";import"./chunk-4ILDFTIG.js";import"./chunk-A6QXXKPR.js";import"./chunk-5O33CV4F.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import"./chunk-5PMKN6PM.js";import"./chunk-YJTPDV4D.js";import{b as at,e as le}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import{b as we,c as h}from"./chunk-BLHKSSK6.js";import{m as st,n as pt}from"./chunk-UI5ITL7Z.js";import{A as ae,B as j,a as et,c as re,e as de,h as Y,i as K,l as Ce,m as tt,n as J,q,r as it,s as z,t as nt,u as ot,v as rt,z as Q}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import{v as lt,w as ct}from"./chunk-SILAIDPV.js";import"./chunk-3I2V337G.js";import{f as E,i as P,m as x}from"./chunk-LNJUGHOX.js";import{$ as We,$b as F,Ad as Ze,Gb as v,Hb as _e,Hc as he,Ic as Ne,K as je,M as He,Mb as T,Mc as _,Na as D,Nc as oe,Oc as ee,Qc as Ke,Rc as Je,Sc as qe,Wc as ze,Z as ne,Zb as Xe,Zc as k,_c as ge,bc as A,ca as me,cc as R,ea as L,ec as $,f as ue,fc as G,g as Ye,gc as p,hc as m,hd as I,ic as l,id as S,jc as u,ma as N,na as fe,nb as s,nc as V,oc as U,qc as O,ra as f,sb as w,sd as Qe,td as De,v as B,vc as y,xa as C,xc as c,ya as b,zb as X}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var Z=(function(e){return e[e.SINGLE_DROP_DOWN=1]="SINGLE_DROP_DOWN",e[e.SINGLE_COMBO_BOX=2]="SINGLE_COMBO_BOX",e[e.FREE_TEXT_FILED=3]="FREE_TEXT_FILED",e[e.MULTI_DROP_DOWN=4]="MULTI_DROP_DOWN",e[e.MULTI_COMBO_BOX=5]="MULTI_COMBO_BOX",e})(Z||{});var se=(function(e){return e[e.FORMAT_NORMAL=1]="FORMAT_NORMAL",e[e.FORMAT_QUANTITATIVE_WITH_UNIT=2]="FORMAT_QUANTITATIVE_WITH_UNIT",e})(se||{});var pe=(function(e){return e[e.VALIDATOR_NO_VALIDATE_TYPE=0]="VALIDATOR_NO_VALIDATE_TYPE",e[e.VALIDATOR_INT_TYPE=1]="VALIDATOR_INT_TYPE",e[e.VALIDATOR_STRING_TYPE=2]="VALIDATOR_STRING_TYPE",e[e.VALIDATOR_FLOAT_TYPE=3]="VALIDATOR_FLOAT_TYPE",e[e.VALIDATOR_DATE_TYPE=4]="VALIDATOR_DATE_TYPE",e})(pe||{});var Ve=class extends Ce{setValue(o,i){if(o instanceof Date){let n=Math.floor(o.getTime()/1e3);super.setValue(n,i)}else super.setValue(o,i)}},Ue=(()=>{let o=class o{constructor(){this.shopeeUploadService=f(Te),this.formBuilder=f(Q)}getAttributes(n){return this.shopeeUploadService.getAttributes(n.channelId,n.categoryId).pipe(B(t=>this.setLabelToIndonesian(t)))}setLabelToIndonesian(n=[]){let t,a;return n=n.map(r=>(t=r?.multi_lang?.find(d=>d.language=="id"),r.attribute_value_list=r?.attribute_value_list?.map(d=>(a=d?.multi_lang?.find(g=>g.language=="id"),d.name=a?.value,d)),r.name=t?.value?t?.value:r.name,r)),n}createFormGroup(n){let t=this.formBuilder.group({}),a=[];return n.forEach(r=>{if(a=[],r.mandatory&&a.push(de.required),r?.attribute_info?.format_type==se.FORMAT_QUANTITATIVE_WITH_UNIT&&r?.attribute_info?.input_type==Z.FREE_TEXT_FILED){let d=this.formBuilder.group({unit:new Ce(null),value:new Ce(null,a)});t.addControl(JSON.stringify(r.attribute_id),d)}else r?.attribute_info?.input_type==Z.FREE_TEXT_FILED&&r?.attribute_info?.input_validation_type==pe.VALIDATOR_DATE_TYPE?t.addControl(JSON.stringify(r.attribute_id),new Ve(null,a)):t.addControl(JSON.stringify(r.attribute_id),this.formBuilder.control(null,a))}),t}getFilteredAttributes(n,t){let a=JSON.parse(JSON.stringify(n)),r=Object.keys(t),d=a.filter(g=>r.findIndex(Me=>parseInt(Me)==g.attribute_id||g.mandatory)!=-1);return d=this.filterSelectedAttributes(d,t),d}filterSelectedAttributes(n,t){return n.map(r=>{switch(r.attribute_info.input_type){case Z.MULTI_COMBO_BOX:h.IsNotEmpty(t[r.attribute_id])?r.attribute_value_list=r.attribute_value_list.filter(d=>t[r.attribute_id]?.findIndex(g=>g==d.value_id)!=-1):r.attribute_value_list=[];break;case Z.FREE_TEXT_FILED:r.attribute_info.format_type==se.FORMAT_QUANTITATIVE_WITH_UNIT?r.attribute_value_list=this.setSelectedQuantitativeAttr(t[r.attribute_id]?.value,t[r.attribute_id]?.unit):r.attribute_info.input_validation_type==pe.VALIDATOR_DATE_TYPE?r.attribute_value_list=this.setSelectedDateAttr(t[r.attribute_id]):r.attribute_value_list=this.setSelectedQuantitativeAttr(t[r.attribute_id]);break;default:r.attribute_value_list=r.attribute_value_list.filter(d=>d.value_id==t[r.attribute_id])}return r}).filter(r=>r?.attribute_value_list?.length>0)}setSelectedQuantitativeAttr(n,t){let a=[];if(h.IsNotEmpty(n)){let r={value_id:0,original_value_name:JSON.stringify(n)};h.IsNotEmpty(t)&&(r.value_unit=t),a=[r]}return a}setSelectedDateAttr(n){let t=[];return h.IsNotEmpty(n)&&(t=[{value_id:0,original_value_name:JSON.stringify(n)}]),t}};o.\u0275fac=function(t){return new(t||o)},o.\u0275prov=N({token:o,factory:o.\u0275fac});let e=o;return e})();var ke=(()=>{let o=class o{constructor(){this._calendarHeaderConfig=new Ye({hideBtnClear:!1,hideBtnToday:!1}),this.calendarConfig=this._calendarHeaderConfig.value}setHeaderConfig(n){this._calendarHeaderConfig.next(n)}getHeaderConfig$(){return this._calendarHeaderConfig.asObservable()}};o.\u0275fac=function(t){return new(t||o)},o.\u0275prov=N({token:o,factory:o.\u0275fac,providedIn:"root"});let e=o;return e})();var Yt=["class","component ts"];function jt(e,o){if(e&1){let i=O();m(0,"button",3),y("click",function(){C(i);let t=c(2);return b(t.todayClicked())}),u(1,"i",4),l()}}function Ht(e,o){if(e&1){let i=O();m(0,"button",5),y("click",function(){C(i);let t=c(2);return b(t.clearClicked())}),u(1,"i",6),l()}}function Wt(e,o){if(e&1&&(V(0),T(1,jt,2,0,"button",1)(2,Ht,2,0,"button",2),U()),e&2){let i=o.ngIf;s(),p("ngIf",!i.hideBtnToday),s(),p("ngIf",!i.hideBtnClear)}}var Nt=(()=>{let o=class o{constructor(n,t,a,r,d){this._datePicker=n,this._calendar=t,this._dateAdapter=a,this.calendarService=r,this._destroyed=new ue,t.stateChanges.pipe(me(this._destroyed)).subscribe(g=>d.markForCheck()),this.calendarConfig$=this.calendarService.getHeaderConfig$()}todayClicked(){this._calendar.activeDate=this._dateAdapter.today(),this._datePicker.select(this._dateAdapter.today()),this._datePicker.close()}clearClicked(){this._datePicker.select(null),this._datePicker.close()}ngOnChanges(n){this._calendar.ngOnChanges(n)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}};o.\u0275fac=function(t){return new(t||o)(X(Ae),X(Tt),X(ye),X(ke),X(Ze))},o.\u0275cmp=v({type:o,selectors:[["POS-DatepickerHeader",8,"component","ts"]],standalone:!1,features:[D],attrs:Yt,decls:3,vars:3,consts:[[4,"ngIf"],["mat-icon-button","","title","Today",3,"click",4,"ngIf"],["mat-icon-button","","title","Clear",3,"click",4,"ngIf"],["mat-icon-button","","title","Today",3,"click"],[1,"far","fa-clock",2,"font-size","18px"],["mat-icon-button","","title","Clear",3,"click"],[1,"far","fa-xmark-circle",2,"font-size","18px"]],template:function(t,a){t&1&&(m(0,"mat-calendar-header"),T(1,Wt,3,2,"ng-container",0),I(2,"async"),l()),t&2&&(s(),p("ngIf",S(2,1,a.calendarConfig$)))},dependencies:[E,vt,xt,P],encapsulation:2});let e=o;return e})(),Dt=(()=>{let o=class o{};o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=_e({type:o}),o.\u0275inj=fe({providers:[ce],imports:[x,Fe,ve,ce,be,xe]});let e=o;return e})();function Xt(e,o){if(e&1&&(m(0,"mat-label",7)(1,"span"),_(2),l()()),e&2){let i=c();p("show",i.placeholder),s(2),oe(i.placeholder)}}var Kt={parse:{dateInput:"DD MMM YYYY"},display:{dateInput:"dddd, D MMMM YYYY",monthYearLabel:"MMM YYYY",dateA11yLabel:"dddd, D MMMM YYYY",monthYearA11yLabel:"MMMM YYYY"}},wt=(()=>{let o=class o{set hidelClearBtn(n){this.calendarService.setHeaderConfig({hideBtnClear:n,hideBtnToday:this.calendarService.calendarConfig.hideBtnToday})}change(n){let t=null;n&&(t=n.toDate(),t.setHours(0,0,0,0)),this.onChange(t),this.dateChange.emit(t)}constructor(n){this.calendarService=n,this.headerComponent=Nt,this.appearance="outline",this.isFloatingLabel=!0,this.disabled=!1,this.readOnly=!1,this.dateChange=new w,this.minDate=h.MinDate,this.onChange=t=>{},this.displayToggle=!0}writeValue(n){this.date=n}registerOnChange(n){this.onChange=n}registerOnTouched(n){}setDisabledState(n){this.disabled=n}onOpenDatepicker(){let n=document.getElementById("dropdown-filter");if(n){var t=new bootstrap.Dropdown(n);t&&(t._config.autoClose="inside")}}onCloseDatepicker(){let n=document.getElementById("dropdown-filter");if(n){var t=new bootstrap.Dropdown(n);t&&(t._config.autoClose="outside")}}ngOnDestroy(){this.calendarService.setHeaderConfig({hideBtnClear:!1,hideBtnToday:!1})}};o.\u0275fac=function(t){return new(t||o)(X(ke))},o.\u0275cmp=v({type:o,selectors:[["datepicker"]],inputs:{data_cy:"data_cy",placeholder:"placeholder",displayToggle:"displayToggle",appearance:"appearance",width:"width",isFloatingLabel:"isFloatingLabel",date:"date",disabled:"disabled",readOnly:"readOnly",minDateValidation:"minDateValidation",maxDateValidation:"maxDateValidation",hidelClearBtn:"hidelClearBtn"},outputs:{dateChange:"dateChange"},standalone:!1,features:[k([{provide:ye,useClass:Pt,deps:[_t]},{provide:ht,useValue:Kt},{provide:et,multi:!0,useExisting:o}])],decls:7,vars:17,consts:[["picker1",""],[1,"datepicker",3,"disabled","appearance"],[3,"show",4,"ngIf"],["matInput","",3,"dateChange","click","matDatepicker","min","max","placeholder","value","disabled","readonly"],["matSuffix","","aria-hidden","true",1,"datepicker-toggle-icon",3,"click"],[1,"fa-regular","fa-angle-down"],[3,"opened","closed","calendarHeaderComponent"],[3,"show"]],template:function(t,a){if(t&1){let r=O();m(0,"mat-form-field",1),T(1,Xt,3,2,"mat-label",2),m(2,"input",3),y("dateChange",function(g){return C(r),b(a.change(g.value))})("click",function(){C(r);let g=he(6);return b(g.open())}),l(),m(3,"span",4),y("click",function(){C(r);let g=he(6);return b(g.open())}),u(4,"i",5),l(),m(5,"mat-datepicker",6,0),y("opened",function(){return C(r),b(a.onOpenDatepicker())})("closed",function(){return C(r),b(a.onCloseDatepicker())}),l()()}if(t&2){let r=he(6);Ne("width",a.width||100,"%"),p("disabled",a.disabled)("appearance",a.appearance),s(),p("ngIf",a.isFloatingLabel&&a.placeholder),s(),p("placeholder",ze(a.placeholder||""))("matDatepicker",r)("min",a.minDateValidation)("max",a.maxDateValidation)("value",a.date==a.minDate?null:a.date)("disabled",a.disabled)("readonly",a.readOnly),Xe("data-cy",a.data_cy),s(),Ne("display",a.displayToggle?"unset":"none"),s(2),p("calendarHeaderComponent",a.headerComponent)}},dependencies:[E,Ae,It,ft,dt,ut,gt],styles:[`.mat-mdc-form-field-disabled ::ng-deep .mat-form-field-appearance-outline{background-color:#e9ecef!important;opacity:1!important}.mat-mdc-form-field-disabled ::ng-deep .mat-form-field-appearance-outline input{color:#00000061!important}.datepicker .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{min-height:3px;padding-top:18px;padding-bottom:13px}.datepicker .mat-mdc-icon-button.mat-mdc-button-base{padding:0}.datepicker .mat-mdc-form-field-subscript-wrapper{display:none}.mat-calendar-controls .mat-mdc-icon-button.mat-mdc-button-base{padding:0!important}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{top:28px!important;font-size:16px;color:#9da2a6}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:23px!important;font-size:.875rem;color:#ccc}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:#fff}.datepicker .datepicker-toggle-icon{width:28px;height:36px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;margin-right:6px}.datepicker .datepicker-toggle-icon i{font-family:"Font Awesome 6 Pro","Font Awesome 6 Free","Font Awesome 5 Pro","Font Awesome 5 Free";font-weight:400;font-size:16px;line-height:1;color:#6b7280}
|
|
2
|
-
`],encapsulation:2});let e=o;return e})(),Vt=(()=>{let o=class o{};o.\u0275fac=function(t){return new(t||o)},o.\u0275mod=_e({type:o}),o.\u0275inj=fe({providers:[ce],imports:[x,Fe,ve,ce,be,xe,Dt,Ft]});let e=o;return e})();var Be=()=>[];function qt(e,o){e&1&&(m(0,"span",5),_(1,"*"),l())}function zt(e,o){if(e&1&&u(0,"ng-select",6),e&2){let i=c().$implicit;p("multiple",!0)("formControlName",i.attribute_id)("items",i.attribute_value_list?i.attribute_value_list:ge(4,Be))("placeholder","Pilih "+(i==null?null:i.name))}}function Qt(e,o){if(e&1&&u(0,"input",8),e&2){let i=c(2).$implicit;p("formControlName",i.attribute_id)("placeholder","Isi "+(i==null?null:i.name))}}function Zt(e,o){if(e&1&&(m(0,"option",15),_(1),l()),e&2){let i=o.$implicit;p("value",i),s(),oe(i)}}function ei(e,o){if(e&1&&(m(0,"div",10),u(1,"input",12),m(2,"select",13)(3,"option",14),_(4,"Unit"),l(),$(5,Zt,2,2,"option",15,R),l()()),e&2){let i=c(3).$implicit;p("formGroupName",i.attribute_id),s(),p("placeholder","Isi "+(i==null?null:i.name)),s(2),p("value",null),s(2),G(i==null||i.attribute_info==null?null:i.attribute_info.attribute_unit_list)}}function ti(e,o){if(e&1&&u(0,"input",11),e&2){let i=c(3).$implicit;p("formControlName",i.attribute_id)("placeholder","Isi "+(i==null?null:i.name))}}function ii(e,o){if(e&1&&F(0,ei,7,3,"div",10)(1,ti,1,2,"input",11),e&2){let i=c(2).$implicit,n=c(2);A((i==null||i.attribute_info==null?null:i.attribute_info.format_type)==n.formatType.FORMAT_QUANTITATIVE_WITH_UNIT?0:1)}}function ni(e,o){if(e&1&&u(0,"datepicker",9),e&2){let i=c(2).$implicit;p("formControlName",i.attribute_id)}}function oi(e,o){if(e&1&&F(0,Qt,1,2,"input",8)(1,ii,2,1)(2,ni,1,1,"datepicker",9),e&2){let i,n=c().$implicit,t=c(2);A((i=n==null||n.attribute_info==null?null:n.attribute_info.input_validation_type)===t.validationType.VALIDATOR_STRING_TYPE?0:i===t.validationType.VALIDATOR_FLOAT_TYPE?1:i===t.validationType.VALIDATOR_DATE_TYPE?2:-1)}}function ri(e,o){if(e&1&&u(0,"ng-select",7),e&2){let i=c().$implicit;p("formControlName",i.attribute_id)("items",i.attribute_value_list?i.attribute_value_list:ge(3,Be))("placeholder","Pilih "+(i==null?null:i.name))}}function ai(e,o){if(e&1&&u(0,"ng-select",7),e&2){let i=c().$implicit;p("formControlName",i.attribute_id)("items",i.attribute_value_list?i.attribute_value_list:ge(3,Be))("placeholder","Pilih "+(i==null?null:i.name))}}function li(e,o){if(e&1&&(m(0,"div",3)(1,"div",4),F(2,qt,2,0,"span",5),m(3,"span"),_(4),l()(),F(5,zt,1,5,"ng-select",6)(6,oi,3,1)(7,ri,1,4,"ng-select",7)(8,ai,1,4,"ng-select",7),l()),e&2){let i,n=o.$implicit,t=c(2);s(2),A(n.mandatory?2:-1),s(2),ee(" ",n==null?null:n.name," "),s(),A((i=n==null||n.attribute_info==null?null:n.attribute_info.input_type)===t.inputType.MULTI_COMBO_BOX?5:i===t.inputType.FREE_TEXT_FILED?6:i===t.inputType.SINGLE_COMBO_BOX?7:8)}}function ci(e,o){if(e&1&&(V(0),m(1,"form",1)(2,"div",2),$(3,li,9,3,"div",3,R),l()(),U()),e&2){let i=o.ngIf,n=c();s(),p("formGroup",n.form),s(2),G(i)}}var Ut=(()=>{let o=class o{constructor(){this.formCategoryService=f(Ue),this.attributesChanges=new w,this.inputType=Z,this.formatType=se,this.validationType=pe}ngOnChanges(){h.IsNotEmpty(this.categoryId)&&h.IsNotEmpty(this.channelId)&&(this.attributes$=this.formCategoryService.getAttributes({categoryId:this.categoryId,channelId:this.channelId,channelType:this.channelType}).pipe(L(n=>{this.form=this.formCategoryService.createFormGroup(n),this.listenToFormChange(n)}),ne(1)))}listenToFormChange(n){let t=[];this.formSubscription=this.form.valueChanges.subscribe(a=>{t=this.formCategoryService.getFilteredAttributes(n,a),this.attributesChanges.emit(t)})}ngOnDestroy(){this.formSubscription&&this.formSubscription.unsubscribe()}};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=v({type:o,selectors:[["shopee-attribute-form"]],inputs:{channelType:"channelType",categoryId:"categoryId",channelId:"channelId",channelProductUpload:"channelProductUpload"},outputs:{attributesChanges:"attributesChanges"},features:[k([Ue]),D],decls:2,vars:3,consts:[[4,"ngIf"],[3,"formGroup"],[1,"row"],[1,"col-6","mb-3"],[1,"mb-1"],[1,"text-danger"],["bindLabel","name","bindValue","value_id",3,"multiple","formControlName","items","placeholder"],["bindLabel","name","bindValue","value_id",3,"formControlName","items","placeholder"],["type","text",1,"form-control",3,"formControlName","placeholder"],[1,"attribute-datepicker",3,"formControlName"],[1,"d-flex","align-items-center",3,"formGroupName"],["type","text","autoNum","",1,"form-control",3,"formControlName","placeholder"],["formControlName","value","type","text","autoNum","",1,"form-control","me-1",2,"width","200px",3,"placeholder"],["name","unit","id","unit","formControlName","unit",1,"form-control"],["disabled","","selected","",3,"value"],[3,"value"]],template:function(t,a){t&1&&(T(0,ci,5,1,"ng-container",0),I(1,"async")),t&2&&p("ngIf",S(1,1,a.attributes$))},dependencies:[x,E,W,H,j,J,ot,rt,re,nt,Y,K,q,z,it,St,Vt,wt,P],styles:["input[_ngcontent-%COMP%], select[_ngcontent-%COMP%]{height:36px;border-radius:4px} datepicker.attribute-datepicker>mat-form-field.mat-mdc-form-field>.mat-mdc-text-field-wrapper{height:36px} datepicker.attribute-datepicker .mat-mdc-text-field-wrapper.mdc-text-field--outlined .mat-mdc-form-field-infix{padding-top:11px!important;padding-bottom:11px!important;height:36px;min-height:36px!important} datepicker.attribute-datepicker mat-datepicker-toggle>button.mat-mdc-icon-button.mat-mdc-button-base{--mat-icon-button-state-layer-size: 36px}"]});let e=o;return e})();var ie=(function(e){return e.TIKTOK_SHOP="TIKTOK_SHOP",e.TOKOPEDIA="TOKOPEDIA",e})(ie||{});var Le=(()=>{let o=class o{constructor(){this.httpService=f(le),this.formBuilder=f(Q),this.uploadProductService=f(Se)}getAttributes(n,t){return this.httpService.get("api/product/tiktok/GetAttributes",[{key:"ID",value:n},{key:"CategoryID",value:t}]).pipe(je(r=>this.uploadProductService.selectedProduct$.pipe(B(d=>(r=this.mappingAttributeSalesProperty(r,d),r)))))}mappingAttributeSalesProperty(n,t){let a=0;return n.filter(r=>(r.type=="SALES_PROPERTY"&&(a+=1),a>1?(a=0,!1):!0)).map(r=>(r.type=="SALES_PROPERTY"&&(r.name="Jenis Variant",r.is_multiple_selection=!1,r.is_required=this.isProductHasMoreVariant(t),r.values=[{id:"Warna",name:"Warna"},{id:"Ukuran",name:"Ukuran"}]),r))}isProductHasMoreVariant(n){let t=!1,a=[];return n.forEach(r=>{r.Variants&&a.push(r.Variants.length)}),t=a.some(r=>r>1),t}createFormGroup(n){let t=this.formBuilder.group({}),a=[];return n.forEach(r=>{a=[],r.is_required&&a.push(de.required),t.addControl(r.id,this.formBuilder.control(null,a))}),t.addControl("listingPlatform",this.formBuilder.control([ie.TIKTOK_SHOP,ie.TOKOPEDIA],[de.required])),t}getFilteredAttributes(n,t){let a=JSON.parse(JSON.stringify(n)),r=Object.keys(t),d=a.filter(g=>r.findIndex(Me=>parseInt(Me)==g.id)!=-1);return d=this.filterSelectedAttributes(d,t),d}filterSelectedAttributes(n,t){return n.map(r=>(h.IsNotEmpty(r.values)?r.is_multiple_selection?r.values=r.values.filter(d=>t[r.id]?.includes(d.id)):r.values=r.values.filter(d=>d.id==t[r.id]):t[r.id]&&(r.values=[{id:null,name:t[r.id]}]),r)).filter(r=>r?.values?.length>0)}};o.\u0275fac=function(t){return new(t||o)},o.\u0275prov=N({token:o,factory:o.\u0275fac});let e=o;return e})();function si(e,o){e&1&&(m(0,"small",6),_(1," Platform is required "),l())}function pi(e,o){e&1&&(m(0,"span",6),_(1,"*"),l())}function mi(e,o){if(e&1&&u(0,"ng-select",7),e&2){let i=c().$implicit;p("multiple",!0)("formControlName",i.id)("items",i.values)("placeholder","Pilih "+(i==null?null:i.name))}}function di(e,o){if(e&1&&u(0,"ng-select",8),e&2){let i=c().$implicit;p("formControlName",i.id)("items",i.values)("placeholder","Pilih "+(i==null?null:i.name))}}function ui(e,o){if(e&1&&u(0,"input",9),e&2){let i=c().$implicit;p("formControlName",i.id)("placeholder",i==null?null:i.name)}}function fi(e,o){if(e&1&&(m(0,"small",6),_(1),l()),e&2){let i=c().$implicit;s(),ee(" ",i==null?null:i.name," is mandatory ")}}function _i(e,o){if(e&1&&(m(0,"div",3)(1,"div",4),F(2,pi,2,0,"span",6),m(3,"span"),_(4),l()(),F(5,mi,1,4,"ng-select",7)(6,di,1,3,"ng-select",8)(7,ui,1,2,"input",9),F(8,fi,2,1,"small",6),l()),e&2){let i=o.$implicit;s(2),A(i.is_required?2:-1),s(2),ee(" ",i==null?null:i.name," "),s(),A(i.is_multiple_selection?5:i.values!==null&&i.values.length>0?6:7),s(3),A(i.is_required?8:-1)}}function hi(e,o){if(e&1&&(V(0),m(1,"form",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"span"),_(6," Platform Options"),l()(),u(7,"ng-select",5),F(8,si,2,0,"small",6),l(),$(9,_i,9,4,"div",3,R),l()(),U()),e&2){let i,n=o.ngIf,t=c();s(),p("formGroup",t.form),s(6),p("multiple",!0)("items",t.platformOptions)("clearable",!1),s(),A(!(t.form==null||(i=t.form.get("listingPlatform").errors)==null)&&i.required?8:-1),s(),G(n)}}var Bt=(()=>{let o=class o{constructor(){this.tiktokAttributeFormService=f(Le),this.platformChange=Qe({alias:"onPlatformChanges"}),this.formSubscription=new ue,this.attributesChanges=new w,this.platformOptions=[{label:"TikTok Shop",value:ie.TIKTOK_SHOP},{label:"Tokopedia",value:ie.TOKOPEDIA}]}ngOnChanges(){h.IsNotEmpty(this.categoryId)&&h.IsNotEmpty(this.channelId)&&(this.attributes$=this.tiktokAttributeFormService.getAttributes(this.channelId,this.categoryId).pipe(B(n=>n.filter(t=>!(t.type=="PRODUCT_PROPERTY"&&(h.IsEmpty(t.values)||t.values?.length==0)&&t.is_customizable==!1))),L(n=>{this.form=this.tiktokAttributeFormService.createFormGroup(n),this.listenToFormChange(n)}),ne(1)))}listenToFormChange(n){let t=[];this.form.valueChanges.pipe(me(this.formSubscription)).subscribe(a=>{delete a.listingPlatform,t=this.tiktokAttributeFormService.getFilteredAttributes(n,a),this.attributesChanges.emit(t)}),this.form.get("listingPlatform").valueChanges.pipe(We(this.form.get("listingPlatform").value),me(this.formSubscription)).subscribe(a=>{this.platformChange.emit(a)})}ngOnDestroy(){this.formSubscription&&this.formSubscription.unsubscribe()}};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=v({type:o,selectors:[["tiktok-attribute-form"]],inputs:{channelId:"channelId",categoryId:"categoryId"},outputs:{platformChange:"onPlatformChanges",attributesChanges:"attributesChanges"},features:[k([Le]),D],decls:2,vars:3,consts:[[4,"ngIf"],[3,"formGroup"],[1,"row"],[1,"col-6","mb-3"],[1,"mb-1"],["formControlName","listingPlatform","bindLabel","label","bindValue","value","placeholder","Platform Options",3,"multiple","items","clearable"],[1,"text-danger"],["bindLabel","name","bindValue","id",3,"multiple","formControlName","items","placeholder"],["bindLabel","name","bindValue","id",3,"formControlName","items","placeholder"],["type","text",1,"form-control",3,"formControlName","placeholder"]],template:function(t,a){t&1&&(T(0,hi,11,5,"ng-container",0),I(1,"async")),t&2&&p("ngIf",S(1,1,a.attributes$))},dependencies:[x,E,W,H,j,J,re,Y,K,q,z,ae,P],encapsulation:2});let e=o;return e})();var Re=(()=>{let o=class o{constructor(){this.woocommerceUploadService=f(Ie)}getAttributes(n,t){return this.woocommerceUploadService.getAttributes(n,t).pipe(B(a=>a.map(r=>({key:r.name,label:r.name}))))}};o.\u0275fac=function(t){return new(t||o)},o.\u0275prov=N({token:o,factory:o.\u0275fac});let e=o;return e})();var Lt=(()=>{let o=class o{constructor(){this.wooAttributeFormService=f(Re),this.channelId=De(),this.categoryId=De(),this.attributesChanges=new w}ngOnChanges(){h.IsNotEmpty(this.categoryId())&&h.IsNotEmpty(this.channelId())&&(this.attributes$=this.wooAttributeFormService.getAttributes(this.channelId(),this.categoryId()))}onSelectAttribute(n){this.attributesChanges.emit([n.key])}};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=v({type:o,selectors:[["wooocommerce-attribute-form"]],inputs:{channelId:[1,"channelId"],categoryId:[1,"categoryId"]},outputs:{attributesChanges:"attributesChanges"},features:[k([Re]),D],decls:6,vars:3,consts:[[1,"row"],[1,"col-6"],[1,"mb-1"],["bindLabel","label","bindValue","id","placeholder","Pilih Atribut",3,"change","items"]],template:function(t,a){t&1&&(m(0,"div",0)(1,"div",1)(2,"div",2),_(3,"Atribut"),l(),m(4,"ng-select",3),I(5,"async"),y("change",function(d){return a.onSelectAttribute(d)}),l()()()),t&2&&(s(4),p("items",S(5,1,a.attributes$)))},dependencies:[x,ae,W,H,j,P],encapsulation:2});let e=o;return e})();var $e=(()=>{let o=class o{constructor(){this.httpService=f(le),this.formBuilder=f(Q)}getAttributes(n,t){return this.httpService.get("api/product/tokopedia/GetAttributes",[{key:"ID",value:n},{key:"CategoryID",value:t}]).pipe(B(r=>r))}createFormGroup(n){let t=this.formBuilder.group({});return n.forEach(a=>{t.addControl(a.variant,this.formBuilder.control(null))}),t}convertAttributes(n={}){return Object.values(n).filter(a=>a!==null).map(a=>JSON.stringify(a))}};o.\u0275fac=function(t){return new(t||o)},o.\u0275prov=N({token:o,factory:o.\u0275fac});let e=o;return e})();function gi(e,o){if(e&1&&(m(0,"div",3)(1,"div",4),_(2),l(),u(3,"ng-select",5),l()),e&2){let i=o.$implicit;s(2),ee(" ",i==null?null:i.variant," "),s(),p("formControlName",i.variant)("items",i.values)("placeholder","Pilih "+(i==null?null:i.variant))}}function Ci(e,o){if(e&1&&(V(0),m(1,"form",1)(2,"div",2),$(3,gi,4,4,"div",3,R),l()(),U()),e&2){let i=o.ngIf,n=c();s(),p("formGroup",n.form),s(2),G(i)}}var Rt=(()=>{let o=class o{constructor(){this.tokpedAttrFormService=f($e),this.attributesChanges=new w}ngOnInit(){}ngOnChanges(n){h.IsNotEmpty(this.categoryId)&&h.IsNotEmpty(this.channelId)&&(this.attributes$=this.tokpedAttrFormService.getAttributes(this.channelId,this.categoryId).pipe(L(t=>{this.form=this.tokpedAttrFormService.createFormGroup(t),this.listenToFormChange()})))}listenToFormChange(){let n=[];this.formSubscription=this.form.valueChanges.subscribe(t=>{n=this.tokpedAttrFormService.convertAttributes(t),this.attributesChanges.emit(n)})}ngOnDestroy(){this.formSubscription&&this.formSubscription.unsubscribe()}};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=v({type:o,selectors:[["tokopedia-attribute-form"]],inputs:{channelId:"channelId",categoryId:"categoryId"},outputs:{attributesChanges:"attributesChanges"},features:[k([$e]),D],decls:2,vars:3,consts:[[4,"ngIf"],[3,"formGroup"],[1,"row"],[1,"col-6","mb-3"],[1,"mb-1"],["bindLabel","name","bindValue","id",3,"formControlName","items","placeholder"]],template:function(t,a){t&1&&(T(0,Ci,5,1,"ng-container",0),I(1,"async")),t&2&&p("ngIf",S(1,1,a.attributes$))},dependencies:[x,E,W,H,j,J,Y,K,q,z,P],encapsulation:2});let e=o;return e})();var Ge=(()=>{let o=class o{constructor(){this.httpService=f(le),this.formBuilder=f(Q)}getAttributes(n){return this.httpService.get("api/product/shopify/GetAttributes",[{key:"ID",value:n}]).pipe(L(a=>(a.Options.StatusOptions=a.Options.Status.map(r=>({id:r,name:r})),a)))}createFormGroup(n){let t=this.formBuilder.group({});return Object.keys(n.Attribute).forEach(r=>{t.addControl(r,this.formBuilder.control(null))}),t}};o.\u0275fac=function(t){return new(t||o)},o.\u0275prov=N({token:o,factory:o.\u0275fac});let e=o;return e})();function bi(e,o){if(e&1&&(V(0),m(1,"form",1)(2,"div",2)(3,"div",3)(4,"div",4),_(5," Brand "),l(),u(6,"input",5),l(),m(7,"div",6)(8,"div",4),_(9," Product Type "),l(),u(10,"input",7),l(),m(11,"div",6)(12,"div",4),_(13," Status "),l(),u(14,"ng-select",8),l()()(),U()),e&2){let i=o.ngIf,n=c();s(),p("formGroup",n.form),s(13),p("items",i.Options.StatusOptions)}}var $t=(()=>{let o=class o{constructor(){this.attributesChanges=new w,this.shopifyFormService=f(Ge)}ngOnChanges(n){n.channelId&&(this.attributes$=this.shopifyFormService.getAttributes(this.channelId).pipe(L(t=>{this.form=this.shopifyFormService.createFormGroup(t),this.listenToFormChange()})))}listenToFormChange(){this.formSubscription=this.form.valueChanges.pipe(He(500)).subscribe(n=>{this.attributesChanges.emit([n])})}ngOnDestroy(){this.formSubscription.unsubscribe()}};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=v({type:o,selectors:[["shopify-attribute-form"]],inputs:{channelId:"channelId"},outputs:{attributesChanges:"attributesChanges"},features:[k([Ge]),D],decls:2,vars:3,consts:[[4,"ngIf"],[3,"formGroup"],[1,"row"],[1,"col-6","mb-3"],[1,"mb-1"],["formControlName","Brand","type","text","placeholder","brand",1,"form-control"],[1,"col-6"],["formControlName","ProductType","type","text","placeholder","Product Type",1,"form-control"],["formControlName","Status","bindLabel","name","bindValue","id","placeholder","Status",3,"items"]],template:function(t,a){t&1&&(T(0,bi,15,2,"ng-container",0),I(1,"async")),t&2&&p("ngIf",S(1,1,a.attributes$))},dependencies:[x,E,j,J,re,Y,K,q,z,W,H,P],encapsulation:2});let e=o;return e})();function yi(e,o){if(e&1&&(m(0,"div",6),u(1,"app-product-card",9),l()),e&2){let i=o.$implicit;s(),p("productId",i==null?null:i.ID)("title",i==null?null:i.Name)("image",i==null?null:i.ThumbnailUrl)("description",(i==null||i.Variants==null?null:i.Variants.length)>1?(i==null||i.Variants==null?null:i.Variants.length)+" Variants":null)("imageForZoom",i==null?null:i.ImageUrl)("code",i==null||i.Variants[0]==null?null:i.Variants[0].Code)("showFooter",!1)}}function vi(e,o){if(e&1){let i=O();V(0),m(1,"mat-checkbox",21),qe("ngModelChange",function(t){C(i);let a=c().$implicit;return Je(a.selected,t)||(a.selected=t),b(t)}),y("ngModelChange",function(){let t=C(i).ngIf,a=c(),r=a.$implicit,d=a.$index,g=c();return b(g.onSelectChannel(r,d,t))}),l(),U()}if(e&2){let i=c().$implicit;s(),Ke("ngModel",i.selected)}}function xi(e,o){if(e&1&&(m(0,"div",18),u(1,"input",22),l()),e&2){let i=c().$implicit,n=c();p("matTooltip",i.type==n.channelType.Shopify||i.type==n.channelType.ShopifyV2?"Cannot change category, please change category in admin.shopify.com":i.type==n.channelType.Plugo?"You can change the category after the product has been uploaded to the Plugo Dashboard.":"")}}function Ti(e,o){if(e&1){let i=O();m(0,"app-channel-category-select",23),y("selectedCategory",function(t){C(i);let a=c().$index,r=c();return b(r.onCategoryChange(a,t))}),l()}if(e&2){let i=c().$implicit,n=c();p("disabled",!i.selected||i.selected&&i.type==n.channelType.Lazada)("channelId",i.id)("channelType",i.type)("categoryId",i.categoryId)}}function Ii(e,o){if(e&1){let i=O();m(0,"shopee-attribute-form",27),y("attributesChanges",function(t){C(i);let a=c(2).$index,r=c();return b(r.onAttributesChange(a,t))}),l()}if(e&2){let i=c(2).$implicit;p("categoryId",i.categoryId)("channelId",i.id)("channelType",i.type)}}function Si(e,o){if(e&1){let i=O();m(0,"tiktok-attribute-form",28),y("attributesChanges",function(t){C(i);let a=c(2).$index,r=c();return b(r.onAttributesChange(a,t))})("onPlatformChanges",function(t){C(i);let a=c(2).$index,r=c();return b(r.onPlatformChange(a,t))}),l()}if(e&2){let i=c(2).$implicit;p("categoryId",i.categoryId)("channelId",i.id)}}function Fi(e,o){if(e&1){let i=O();m(0,"wooocommerce-attribute-form",29),y("attributesChanges",function(t){C(i);let a=c(2).$index,r=c();return b(r.onAttributesChange(a,t))}),l()}if(e&2){let i=c(2).$implicit;p("categoryId",i.categoryId)("channelId",i.id)}}function Ai(e,o){if(e&1){let i=O();m(0,"tokopedia-attribute-form",29),y("attributesChanges",function(t){C(i);let a=c(2).$index,r=c();return b(r.onAttributesChange(a,t))}),l()}if(e&2){let i=c(2).$implicit;p("categoryId",i.categoryId)("channelId",i.id)}}function ki(e,o){if(e&1&&(m(0,"div",20)(1,"div",24),F(2,Ii,1,3,"shopee-attribute-form",25)(3,Si,1,2,"tiktok-attribute-form",26)(4,Fi,1,2,"wooocommerce-attribute-form",26)(5,Ai,1,2,"tokopedia-attribute-form",26),l()()),e&2){let i,n=c().$implicit,t=c();s(2),A((i=n.type)===t.channelType.Shopee?2:i===t.channelType.Tiktok?3:i===t.channelType.WooCommerce?4:i===t.channelType.Tokopedia?5:-1)}}function Ei(e,o){if(e&1){let i=O();m(0,"div",20)(1,"div",24)(2,"shopify-attribute-form",30),y("attributesChanges",function(t){C(i);let a=c().$index,r=c();return b(r.onAttributesChange(a,t))}),l()()()}if(e&2){let i=c().$implicit;s(2),p("channelId",i.id)}}function Pi(e,o){if(e&1&&(m(0,"div",8)(1,"div",10)(2,"div",11)(3,"div",12)(4,"div",13)(5,"div"),T(6,vi,2,1,"ng-container",14),I(7,"async"),l(),m(8,"div"),u(9,"app-channel-logo",15),l(),m(10,"div",16)(11,"span"),_(12),l()()()(),m(13,"div",12)(14,"div",17),F(15,xi,2,1,"div",18)(16,Ti,1,4,"app-channel-category-select",19),l()()(),F(17,ki,6,1,"div",20)(18,Ei,3,1,"div",20),l()()),e&2){let i=o.$implicit,n=c();s(6),p("ngIf",S(7,8,n.defaultCategories$)),s(3),p("typeId",i.type)("showChannelName",!1),s(),p("matTooltip",i.name)("matTooltipShowDelay",2500),s(2),oe(i.name),s(3),A(i.type==n.channelType.Shopify||i.type==n.channelType.Plugo||i.type==n.channelType.ShopifyV2?15:16),s(2),A(i.categoryId&&n.channelType.Lazada!=i.type&&i.selected?17:(n.channelType.Shopify==i.type||i.type==n.channelType.ShopifyV2)&&i.selected?18:-1)}}var Er=(()=>{let o=class o{constructor(){this.toastr=f(at),this.uploadProductService=f(Se),this.selectedProducts$=this.uploadProductService.selectedProduct$,this.channelProductUploads=this.uploadProductService.channelProductUpload,this.channelType=we,this.defaultCategories$=this.uploadProductService.getDefaultCategory().pipe(ne(1))}onCategoryChange(n,t){this.channelProductUploads.update(a=>a.map((r,d)=>(d==n&&(r.categoryId=t,r.attributes=[]),r)))}onPlatformChange(n,t){this.channelProductUploads.update(a=>a.map((r,d)=>(d==n&&(r.listing_platforms=t),r)))}onAttributesChange(n,t){this.channelProductUploads.update(a=>a.map((r,d)=>(d==n&&(r.attributes=t),r)))}tiktokPlatformChanges(n,t){this.channelProductUploads.update(a=>a.map((r,d)=>(d==n&&(r.listing_platforms=t),r)))}onSelectChannel(n,t,a){this.channelProductUploads.update(r=>r.map((d,g)=>{if(g==t&&n.selected){let Oe=this.findCategoryByChannelId(n.id,a);d.categoryId=Oe?.DefaultCategoryID}return g==t&&!n.selected&&(d.categoryId=null),d}))}findCategoryByChannelId(n,t){return t.find(a=>a.ID===n)}onUploadProduct(){if(this.checkTiktokPlatform()==!1){this.toastr.error("Please select at least one platform for TikTok channel","Platform is Required");return}this.uploadProductService.onUploadProduct(this.channelProductUploads())}checkTiktokPlatform(){return this.channelProductUploads().every(t=>t.type==we.Tiktok&&h.IsNotEmpty(t?.categoryId)?t.listing_platforms.length>0:!0)}ngOnDestroy(){this.uploadProductService.clearSelectedProduct()}};o.\u0275fac=function(t){return new(t||o)},o.\u0275cmp=v({type:o,selectors:[["app-product-upload"]],features:[k([Te,Ct,bt,Ie])],decls:17,vars:5,consts:[["headerTitle","Upload Product To Channel",3,"hideSearchBox","hideSearchDropdown"],[1,"btn","btn-light","shadow","rounded","ms-2",3,"click","disabled"],["aria-hidden","true",1,"fa","fa-upload"],[1,"container-fluid","mt-6"],[1,"ps-3","mt-8","pb-5","fw-medium"],[1,"row","mb-10","ps-3"],[1,"col-12","col-md-6","col-xl-4","px-3","my-3"],[1,"ps-3","mb-8","border-bottom","pb-5","fw-medium"],[1,"row","mb-6"],[3,"productId","title","image","description","imageForZoom","code","showFooter"],[1,"col-12"],[1,"row"],[1,"col-3"],[1,"d-flex","align-items-center"],[4,"ngIf"],[3,"typeId","showChannelName"],[2,"overflow","hidden","text-overflow","ellipsis","white-space","nowrap",3,"matTooltip","matTooltipShowDelay"],[1,"w-100"],["matTooltipPosition","above",3,"matTooltip"],[3,"disabled","channelId","channelType","categoryId"],[1,"row","my-3"],["color","primary",1,"example-margin",3,"ngModelChange","ngModel"],["disabled","","type","text","placeholder","Category Unavailable",1,"form-control","rounded-1",2,"height","35px"],[3,"selectedCategory","disabled","channelId","channelType","categoryId"],[1,"col-12","ps-11"],[3,"categoryId","channelId","channelType"],[3,"categoryId","channelId"],[3,"attributesChanges","categoryId","channelId","channelType"],[3,"attributesChanges","onPlatformChanges","categoryId","channelId"],[3,"attributesChanges","categoryId","channelId"],[3,"attributesChanges","channelId"]],template:function(t,a){if(t&1&&(m(0,"mainpanel",0)(1,"actions")(2,"button",1),y("click",function(){return a.onUploadProduct()}),u(3,"i",2),_(4," Upload "),l()(),m(5,"content")(6,"div",3)(7,"h3",4),_(8,"Product To Upload"),l(),m(9,"div",5),$(10,yi,2,7,"div",6,R),I(12,"async"),l(),m(13,"h3",7),_(14,"Channel To Upload"),l(),$(15,Pi,19,10,"div",8,R),l()()()),t&2){let r;p("hideSearchBox",!0)("hideSearchDropdown",!0),s(2),p("disabled",((r=a.channelProductUploads())==null?null:r.length)==0),s(8),G(S(12,3,a.selectedProducts$)),s(5),G(a.channelProductUploads())}},dependencies:[x,E,At,pt,st,Et,kt,mt,ae,Y,tt,ct,lt,Bt,Lt,Rt,$t,yt,Ot,Ut,P],encapsulation:2});let e=o;return e})();export{Er as ProductUploadComponent};
|