marketplacepos 5.43.2 → 5.43.4
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 +106 -106
- package/Marketplace/{chunk-DV6CR4ON.js → chunk-227LB3XT.js} +1 -1
- package/Marketplace/chunk-2CBZOVID.js +1 -0
- package/Marketplace/{chunk-EWP765EH.js → chunk-2EOAYJGX.js} +1 -1
- package/Marketplace/{chunk-F4H4L2MZ.js → chunk-2IDDYNBR.js} +1 -1
- package/Marketplace/{chunk-LS372KQR.js → chunk-2YTIJJIP.js} +1 -1
- package/Marketplace/{chunk-AG6WVG43.js → chunk-32WYK3BN.js} +1 -1
- package/Marketplace/{chunk-GFZNLP7T.js → chunk-3ASK736S.js} +1 -1
- package/Marketplace/{chunk-SXLKJLAE.js → chunk-3BT5DR3X.js} +1 -1
- package/Marketplace/{chunk-SIYMMMKQ.js → chunk-3LRWABHB.js} +1 -1
- package/Marketplace/{chunk-WBH4HJM5.js → chunk-3NMM37H7.js} +1 -1
- package/Marketplace/chunk-43XFDAKY.js +1 -0
- package/Marketplace/chunk-53FUEOBJ.js +1 -0
- package/Marketplace/chunk-5DODHGO5.js +1 -0
- package/Marketplace/{chunk-CNAOOCHA.js → chunk-5JVEEL2T.js} +1 -1
- package/Marketplace/{chunk-4CTORK4F.js → chunk-5KS4WK6H.js} +1 -1
- package/Marketplace/{chunk-OKAPL3YZ.js → chunk-5OHRA4AS.js} +1 -1
- package/Marketplace/{chunk-AEMYBJSZ.js → chunk-5TIGE5UP.js} +8 -8
- package/Marketplace/{chunk-QG5FNL4B.js → chunk-64IHCPTX.js} +1 -1
- package/Marketplace/chunk-66MLRB2J.js +5 -0
- package/Marketplace/{chunk-N2NHN3VW.js → chunk-67N4UGA5.js} +1 -1
- package/Marketplace/{chunk-SLZOAGEK.js → chunk-6FY74YFQ.js} +1 -1
- package/Marketplace/{chunk-PAUX3XL6.js → chunk-6LN62T32.js} +1 -1
- package/Marketplace/{chunk-PLKN56KI.js → chunk-6QYD6NIJ.js} +1 -1
- package/Marketplace/{chunk-7YWCBMKG.js → chunk-6W6DKFRE.js} +1 -1
- package/Marketplace/{chunk-U5DJKOE4.js → chunk-722SRHLY.js} +1 -1
- package/Marketplace/{chunk-ODP5RBKW.js → chunk-74FAXIJ6.js} +1 -1
- package/Marketplace/{chunk-WHZ44BAL.js → chunk-74IXJYWO.js} +1 -1
- package/Marketplace/{chunk-M5IQRAHV.js → chunk-7SVF5UPT.js} +1 -1
- package/Marketplace/{chunk-55OI2SUF.js → chunk-7UHCDGAA.js} +1 -1
- package/Marketplace/{chunk-NUGAU26U.js → chunk-7UWULSSK.js} +1 -1
- package/Marketplace/{chunk-X2RRI4VD.js → chunk-7ZXNQAAU.js} +1 -1
- package/Marketplace/{chunk-SLQA5QBT.js → chunk-A4BNLR77.js} +1 -1
- package/Marketplace/chunk-ADDTLV5D.js +2 -0
- package/Marketplace/chunk-AEOSNAHH.js +1 -0
- package/Marketplace/chunk-AQTXFEBA.js +1 -0
- package/Marketplace/{chunk-MZI5AYCE.js → chunk-ATZ475FN.js} +1 -1
- package/Marketplace/{chunk-LR4UZ2OS.js → chunk-AYPY47VM.js} +1 -1
- package/Marketplace/{chunk-2SXRC4IG.js → chunk-B5VBBEEN.js} +1 -1
- package/Marketplace/{chunk-OZ77CAJD.js → chunk-B73M3AMU.js} +1 -1
- package/Marketplace/{chunk-JS55A2RS.js → chunk-B7KTCPKC.js} +3 -3
- package/Marketplace/{chunk-IUE63ICJ.js → chunk-BFU7VKO3.js} +1 -1
- package/Marketplace/chunk-BLXMX3JN.js +1 -0
- package/Marketplace/{chunk-F2Z5B5F7.js → chunk-BTHDOSGS.js} +1 -1
- package/Marketplace/{chunk-HV6V6JHY.js → chunk-C4XFI4J7.js} +1 -1
- package/Marketplace/{chunk-ZYOC4667.js → chunk-CATX24UZ.js} +1 -1
- package/Marketplace/{chunk-HSKNABGC.js → chunk-CIIO2CJ6.js} +1 -1
- package/Marketplace/{chunk-QUKSBWYY.js → chunk-CLER2MX6.js} +1 -1
- package/Marketplace/{chunk-HPYTL6TX.js → chunk-CMTBBXR5.js} +1 -1
- package/Marketplace/{chunk-JRWFZQ5K.js → chunk-CROPN4YC.js} +1 -1
- package/Marketplace/chunk-CSBEB66Y.js +1 -0
- package/Marketplace/{chunk-JOBWFOGC.js → chunk-DDV4X5WD.js} +1 -1
- package/Marketplace/{chunk-FWG4H3QG.js → chunk-DRHWRRQV.js} +1 -1
- package/Marketplace/{chunk-O52OUAO2.js → chunk-DYWTLXMP.js} +1 -1
- package/Marketplace/{chunk-WGXUKTYP.js → chunk-E3ROEHBW.js} +1 -1
- package/Marketplace/{chunk-W2T2IE6B.js → chunk-E6XWD6WX.js} +1 -1
- package/Marketplace/{chunk-VRI3CYGG.js → chunk-ECRWEMEV.js} +1 -1
- package/Marketplace/{chunk-IUXKVT25.js → chunk-EH6HWI3G.js} +1 -1
- package/Marketplace/{chunk-GOH4NFHB.js → chunk-EK4VKN7N.js} +1 -1
- package/Marketplace/{chunk-E2CS7ZMC.js → chunk-EPVCMYCI.js} +1 -1
- package/Marketplace/{chunk-VB4FJ2II.js → chunk-FNEDIIIS.js} +1 -1
- package/Marketplace/chunk-FTGUKCA5.js +1 -0
- package/Marketplace/chunk-G47XGOST.js +1 -0
- package/Marketplace/{chunk-JTOYNS32.js → chunk-G6X5CZ34.js} +1 -1
- package/Marketplace/{chunk-ZWBIPCRI.js → chunk-GA7T6FWT.js} +1 -1
- package/Marketplace/{chunk-O7ADIUFO.js → chunk-GS3A2D4O.js} +1 -1
- package/Marketplace/{chunk-FBZW4Y3J.js → chunk-GSZJGR7K.js} +1 -1
- package/Marketplace/{chunk-O6U5QCHJ.js → chunk-H3IVI3LN.js} +1 -1
- package/Marketplace/{chunk-2IBGS5NP.js → chunk-H3J5OAIG.js} +1 -1
- package/Marketplace/{chunk-FQPTE3NE.js → chunk-H4OBICY5.js} +1 -1
- package/Marketplace/{chunk-TNKPTRB3.js → chunk-HYJVHRMN.js} +1 -1
- package/Marketplace/{chunk-JV4MMNGD.js → chunk-IA6KOBDJ.js} +1 -1
- package/Marketplace/chunk-IGXU4VAO.js +1 -0
- package/Marketplace/{chunk-2TZBEYNY.js → chunk-IL5JIRWJ.js} +1 -1
- package/Marketplace/chunk-IRK2APYZ.js +1 -0
- package/Marketplace/chunk-ISRFFTGW.js +1 -0
- package/Marketplace/{chunk-MQXPOHBV.js → chunk-J2KWRDVH.js} +1 -1
- package/Marketplace/{chunk-6LH7FSOW.js → chunk-JDIBETL5.js} +1 -1
- package/Marketplace/chunk-JFUCAI5X.js +1 -0
- package/Marketplace/{chunk-QNVCH6O7.js → chunk-JHEGROJF.js} +1 -1
- package/Marketplace/{chunk-CQP2B2TM.js → chunk-JILE74BG.js} +1 -1
- package/Marketplace/{chunk-EH44DQPL.js → chunk-JTIFX4RL.js} +2 -2
- package/Marketplace/chunk-JWARXDWM.js +1 -0
- package/Marketplace/{chunk-4M63ID5T.js → chunk-JXSBFTQM.js} +1 -1
- package/Marketplace/{chunk-SZECT5VQ.js → chunk-K2GYNGBL.js} +1 -1
- package/Marketplace/chunk-KDEVWOVI.js +1 -0
- package/Marketplace/{chunk-XEMNZHW6.js → chunk-L7K5HOBY.js} +1 -1
- package/Marketplace/{chunk-25OT4I3W.js → chunk-LA6B2JGP.js} +1 -1
- package/Marketplace/chunk-LUVP4A3V.js +1 -0
- package/Marketplace/{chunk-AVEGIEYT.js → chunk-LZCEM2PC.js} +1 -1
- package/Marketplace/{chunk-MTUIRWOB.js → chunk-M2FCTYGU.js} +1 -1
- package/Marketplace/{chunk-TCR2MYFZ.js → chunk-M5JQ7BGW.js} +1 -1
- package/Marketplace/{chunk-4CWRB5AG.js → chunk-M5XGP4SG.js} +1 -1
- package/Marketplace/{chunk-KX5AWR75.js → chunk-M7NQID2Z.js} +1 -1
- package/Marketplace/{chunk-USOWXH7U.js → chunk-MHCAI6KP.js} +1 -1
- package/Marketplace/chunk-MQD5HJA6.js +5 -0
- package/Marketplace/{chunk-AQ6ECUX3.js → chunk-MQQD4OJO.js} +1 -1
- package/Marketplace/{chunk-ZNDU44GH.js → chunk-NS46QSCM.js} +1 -1
- package/Marketplace/{chunk-KWQS4KX7.js → chunk-OAOQONOA.js} +1 -1
- package/Marketplace/{chunk-UF26HAKV.js → chunk-OC2FBL33.js} +1 -1
- package/Marketplace/{chunk-RM6R233Y.js → chunk-OLOIQI4D.js} +1 -1
- package/Marketplace/{chunk-KPW2PAKY.js → chunk-ONLHWPKX.js} +1 -1
- package/Marketplace/chunk-ORD5Z4XI.js +1 -0
- package/Marketplace/{chunk-UO4C5CL2.js → chunk-P42VFND7.js} +1 -1
- package/Marketplace/{chunk-KXS76PRS.js → chunk-PAEIUO2F.js} +1 -1
- package/Marketplace/{chunk-AP4EF2UL.js → chunk-PFB7XEYZ.js} +1 -1
- package/Marketplace/{chunk-IKPRRD5D.js → chunk-PFIBU2IX.js} +1 -1
- package/Marketplace/{chunk-W74FHQHW.js → chunk-PP3PVKNQ.js} +1 -1
- package/Marketplace/{chunk-5C44SGF2.js → chunk-PVY6MYHG.js} +1 -1
- package/Marketplace/{chunk-37J5GG7B.js → chunk-Q2U3MMNW.js} +1 -1
- package/Marketplace/{chunk-BXOEDDVZ.js → chunk-Q6TBOHRA.js} +1 -1
- package/Marketplace/{chunk-Y4M43RCV.js → chunk-QWHPQWPM.js} +1 -1
- package/Marketplace/chunk-R4GAF5EA.js +1 -0
- package/Marketplace/{chunk-GZXQUJKX.js → chunk-RECNBAEB.js} +1 -1
- package/Marketplace/{chunk-YSRNSXDO.js → chunk-RMCAWPWK.js} +1 -1
- package/Marketplace/{chunk-ANNMHZZT.js → chunk-RZU7PSKG.js} +1 -1
- package/Marketplace/chunk-S2HNMEC2.js +1 -0
- package/Marketplace/chunk-S5SDX7ZG.js +3 -0
- package/Marketplace/{chunk-NTW6FBP5.js → chunk-SB7NWPDS.js} +1 -1
- package/Marketplace/{chunk-F4GMWHYJ.js → chunk-SM3P57SO.js} +1 -1
- package/Marketplace/{chunk-WLKXZBL7.js → chunk-SN4AOGQK.js} +1 -1
- package/Marketplace/{chunk-VHALYIP4.js → chunk-SRVGUGY2.js} +1 -1
- package/Marketplace/{chunk-UJYSVGLV.js → chunk-SWQXSJ7O.js} +1 -1
- package/Marketplace/{chunk-SH7KN2AS.js → chunk-SYUFPF3D.js} +1 -1
- package/Marketplace/chunk-T6SBAKYS.js +1 -0
- package/Marketplace/{chunk-FIJNFHLO.js → chunk-UDIDZKN6.js} +1 -1
- package/Marketplace/{chunk-UF4FKEE7.js → chunk-UEPQYAWE.js} +1 -1
- package/Marketplace/{chunk-W2JHOFCS.js → chunk-UWIHXA2S.js} +1 -1
- package/Marketplace/{chunk-2BUABOHG.js → chunk-V5BKQSAT.js} +1 -1
- package/Marketplace/{chunk-KYIY3VQ6.js → chunk-VIMB2VWB.js} +1 -1
- package/Marketplace/{chunk-4OE3MMMX.js → chunk-VKMFDXJJ.js} +1 -1
- package/Marketplace/chunk-VYIEJVSJ.js +1 -0
- package/Marketplace/{chunk-5EQNOCXP.js → chunk-WPW3D4MQ.js} +1 -1
- package/Marketplace/{chunk-LWSRD5LF.js → chunk-WUHNNJ2C.js} +1 -1
- package/Marketplace/{chunk-CYWMBHSL.js → chunk-WW22F76D.js} +1 -1
- package/Marketplace/{chunk-GHBGGQNM.js → chunk-XUL4LU4R.js} +1 -1
- package/Marketplace/chunk-Y2QG7YNG.js +2 -0
- package/Marketplace/chunk-YB65PX7S.js +1 -0
- package/Marketplace/{chunk-HFKKITEW.js → chunk-YCH6HHU3.js} +1 -1
- package/Marketplace/{chunk-CZTCB6IN.js → chunk-YHKEECJR.js} +1 -1
- package/Marketplace/{chunk-2N2I6BF2.js → chunk-YMMOJKVP.js} +1 -1
- package/Marketplace/{chunk-PFUTB4ID.js → chunk-YRFZDTXH.js} +1 -1
- package/Marketplace/{chunk-WDF2BOO6.js → chunk-YT3P3EBI.js} +1 -1
- package/Marketplace/{chunk-K2AEH6J2.js → chunk-YUCD4HRB.js} +1 -1
- package/Marketplace/{chunk-CZVDXGFV.js → chunk-YZKPQRLO.js} +1 -1
- package/Marketplace/chunk-ZHZMT7GZ.js +1 -0
- package/Marketplace/index.html +2 -2
- package/Marketplace/main-ZMGZIM3D.js +1 -0
- package/package.json +1 -1
- package/Marketplace/chunk-2OBP7IGO.js +0 -1
- package/Marketplace/chunk-2SCFZLQO.js +0 -1
- package/Marketplace/chunk-2YV6WOL3.js +0 -1
- package/Marketplace/chunk-2ZTDLZVZ.js +0 -1
- package/Marketplace/chunk-36RDOY5Y.js +0 -2
- package/Marketplace/chunk-3FHLYPLG.js +0 -5
- package/Marketplace/chunk-4K4ZKRRO.js +0 -1
- package/Marketplace/chunk-4MOAWEAS.js +0 -1
- package/Marketplace/chunk-6ZS2L5PN.js +0 -2
- package/Marketplace/chunk-AROCRZ77.js +0 -1
- package/Marketplace/chunk-CKPC5U5G.js +0 -1
- package/Marketplace/chunk-DJILLV4M.js +0 -1
- package/Marketplace/chunk-ETSGUVUY.js +0 -1
- package/Marketplace/chunk-GJBLRYGL.js +0 -1
- package/Marketplace/chunk-JBRMFKFP.js +0 -1
- package/Marketplace/chunk-KM7AK6CM.js +0 -1
- package/Marketplace/chunk-KSJM72K6.js +0 -2
- package/Marketplace/chunk-LUKM5MU6.js +0 -4
- package/Marketplace/chunk-OQZUWV6H.js +0 -1
- package/Marketplace/chunk-POYJI64B.js +0 -1
- package/Marketplace/chunk-R54A2XXE.js +0 -1
- package/Marketplace/chunk-SCDRAKE5.js +0 -1
- package/Marketplace/chunk-SJPCH5QW.js +0 -1
- package/Marketplace/chunk-SXWLDBET.js +0 -1
- package/Marketplace/chunk-TTKODGQ5.js +0 -3
- package/Marketplace/chunk-TV4AND7E.js +0 -1
- package/Marketplace/chunk-VHON4PKV.js +0 -1
- package/Marketplace/chunk-YXWPKMEG.js +0 -1
- package/Marketplace/main-2VAZARFN.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as H}from"./chunk-SH7KN2AS.js";import{a as T}from"./chunk-5DIRXS7I.js";import{c as Z}from"./chunk-PW42BQIY.js";import{A as N}from"./chunk-PLKN56KI.js";import{b as j,c as L}from"./chunk-UJYSVGLV.js";import{r as $,s as A}from"./chunk-HFKKITEW.js";import{d as U,f as F,g as M,n as z}from"./chunk-MTUIRWOB.js";import{Fc as S,Gb as B,Gc as u,Hc as k,Ic as D,Ka as b,Mb as d,Sc as h,Tc as V,Vc as R,Yb as _,cd as y,dc as w,ic as r,jc as c,kc as s,lc as p,mc as m,oc as x,pb as E,rb as o,tc as f,uc as a,xb as I,xc as O,ya as C,za as g}from"./chunk-JS55A2RS.js";var W=(t,i,n,l)=>[t,i,n,l],v=t=>[t],q=(t,i)=>[t,i],J=t=>({"me-3":t}),K=t=>({"border-bottom pb-2":t});function G(t,i){if(t&1){let n=x();p(0),r(1,"img",19),f("click",function(e){C(n);let P=a();return g(P.openBiggerPicture(e))}),c(),m()}if(t&2){let n=a();o(),_("src",n.image,E)}}function Q(t,i){t&1&&s(0,"img",20)}function X(t,i){if(t&1&&(p(0),r(1,"span",24)(2,"a",25),s(3,"i",26),c()(),m()),t&2){let n=a(2);o(2),_("href",n.redirectUrl,E)}}function Y(t,i){if(t&1&&(r(0,"div",21),s(1,"i",22),r(2,"span"),u(3),c(),d(4,X,4,1,"ng-container",23),c()),t&2){let n=a();o(3),k(n.code),o(),_("ngIf",n.code!=="SKU not assigned"&&n.showRedirectIcon)}}function tt(t,i){if(t&1){let n=x();r(0,"div",27),f("click",function(){C(n);let e=a();return g(e.onEventDesc())}),s(1,"i",28),r(2,"span"),u(3),c()()}if(t&2){let n=a();o(3),k(n.description)}}function nt(t,i){if(t&1){let n=x();r(0,"div",30)(1,"input",31),f("change",function(e){C(n);let P=a(2);return g(P.onCheck(e.target.checked))}),c()()}}function et(t,i){if(t&1&&(p(0),d(1,nt,2,0,"div",29),m()),t&2){let n=a();o(),_("ngIf",n.showCheckBox)}}function it(t,i){if(t&1){let n=x();r(0,"button",34),f("click",function(){C(n);let e=a(3);return g(e.onDownload())}),s(1,"i",35),u(2,"Download "),c()}}function ot(t,i){if(t&1&&(p(0),d(1,it,3,0,"button",33),m()),t&2){let n=a(2);o(),_("ngIf",n.downloadButton)}}function at(t,i){}function rt(t,i){if(t&1){let n=x();r(0,"li")(1,"a",42),f("click",function(){C(n);let e=a(6);return g(e.onScan())}),s(2,"i",43),u(3,"Scan "),c()()}}function ct(t,i){if(t&1&&(p(0),d(1,rt,4,0,"li"),m()),t&2){let n=a(5);o(),w(n.scanButton?1:-1)}}function lt(t,i){if(t&1){let n=x();r(0,"li")(1,"a",44),f("click",function(){C(n);let e=a(6);return g(e.onDetach())}),s(2,"i",45),u(3,"Detach "),c()()}}function _t(t,i){if(t&1&&(p(0),d(1,lt,4,0,"li"),m()),t&2){let n=a(5);o(),w(n.detachButton?1:-1)}}function dt(t,i){if(t&1&&(p(0),r(1,"div",39),s(2,"button",40),r(3,"ul",41),d(4,ct,2,1,"ng-container",17)(5,_t,2,1,"ng-container",17),c()(),m()),t&2){let n=a(4);o(4),_("ngxPermissionsOnly",h(2,v,n.productScanRole)),o(),_("ngxPermissionsOnly",h(4,v,n.productDetachRole))}}function st(t,i){if(t&1){let n=x();r(0,"button",37),f("click",function(){C(n);let e=a(3);return g(e.onUpload())}),s(1,"i",38),u(2,"Upload "),c(),d(3,dt,6,6,"ng-container",17)}if(t&2){let n=a(3);o(3),_("ngxPermissionsOnly",V(1,q,n.productScanRole,n.productDetachRole))}}function pt(t,i){if(t&1){let n=x();r(0,"button",34),f("click",function(){C(n);let e=a(5);return g(e.onScan())}),s(1,"i",47),u(2," Scan "),c()}}function mt(t,i){if(t&1&&(p(0),d(1,pt,3,0,"button",46),m()),t&2){let n=a(4);o(),w(n.scanButton?1:-1)}}function ut(t,i){if(t&1){let n=x();r(0,"button",49),f("click",function(){C(n);let e=a(5);return g(e.onDetach())}),s(1,"i",45),u(2,"Detach "),c()}}function Ct(t,i){if(t&1&&(p(0),d(1,ut,3,0,"button",48),m()),t&2){let n=a(4);o(),w(n.detachButton?1:-1)}}function gt(t,i){if(t&1&&d(0,mt,2,1,"ng-container",17)(1,Ct,2,1,"ng-container",17),t&2){let n=a(3);_("ngxPermissionsOnly",h(2,v,n.productScanRole)),o(),_("ngxPermissionsOnly",h(4,v,n.productDetachRole))}}function xt(t,i){if(t&1&&(r(0,"div",32),d(1,at,0,0,"ng-template",36)(2,st,4,4,"ng-template",null,1,y)(4,gt,2,6,"ng-template",null,2,y),c()),t&2){let n=S(3),l=S(5),e=a(2);o(),_("ngxPermissionsOnly",h(3,v,e.productUploadRole))("ngxPermissionsOnlyThen",n)("ngxPermissionsOnlyElse",l)}}function ft(t,i){if(t&1){let n=x();r(0,"button",34),f("click",function(){C(n);let e=a(4);return g(e.onScan())}),s(1,"i",47),u(2," Scan "),c()}}function ht(t,i){if(t&1&&(p(0),d(1,ft,3,0,"button",46),m()),t&2){let n=a(3);o(),w(n.scanButton?1:-1)}}function wt(t,i){if(t&1){let n=x();r(0,"button",51),f("click",function(){C(n);let e=a(4);return g(e.onDetach())}),s(1,"i",45),u(2,"Detach "),c()}}function vt(t,i){if(t&1&&(p(0),d(1,wt,3,0,"button",50),m()),t&2){let n=a(3);o(),w(n.detachButton?1:-1)}}function Pt(t,i){if(t&1&&d(0,ht,2,1,"ng-container",17)(1,vt,2,1,"ng-container",17),t&2){let n=a(2);_("ngxPermissionsOnly",h(2,v,n.productScanRole)),o(),_("ngxPermissionsOnly",h(4,v,n.productDetachRole))}}function bt(t,i){if(t&1&&(p(0),r(1,"a",53),s(2,"img",54),c(),m()),t&2){let n=i.$implicit,l=i.index,e=a(4);o(),O("href",n.Url,E),o(),_("ngClass",h(4,J,l!=e.channels.length-1))("src",e.getChannelLogo(n),E)("matTooltip",n.Title?n.Title:n.Name)}}function Et(t,i){if(t&1&&(p(0),d(1,bt,3,6,"ng-container",52),m()),t&2){let n=a(3);o(),_("ngForOf",n.channels)}}function St(t,i){if(t&1&&(r(0,"li")(1,"div",58)(2,"div",59)(3,"a",53),s(4,"img",60),r(5,"span",61),u(6),c()()()()()),t&2){let n=i.$implicit,l=i.index,e=a(4);o(2),_("ngClass",h(4,K,l!=e.channels.length-1)),o(),_("href",n.Url,E),o(),_("src",e.getChannelLogo(n),E),o(2),k(n.Title)}}function yt(t,i){if(t&1&&(r(0,"div",55)(1,"button",56),u(2),c(),r(3,"ul",57),d(4,St,7,6,"li",52),c()()),t&2){let n=a(3);o(2),D(" ",n.channels.length," CHANNELS "),o(2),_("ngForOf",n.channels)}}function Tt(t,i){if(t&1&&(r(0,"div"),d(1,Et,2,1,"ng-container",10)(2,yt,5,2,"ng-template",null,3,y),c()),t&2){let n=S(3),l=a(2);o(),_("ngIf",l.channels.length<4)("ngIfElse",n)}}function kt(t,i){if(t&1&&(r(0,"div",18)(1,"div"),d(2,ot,2,1,"ng-container",17)(3,xt,6,5,"div",32)(4,Pt,2,6),c(),d(5,Tt,4,2,"div"),c()),t&2){let n=a();o(2),_("ngxPermissionsOnly",h(3,v,n.productDownloadRole)),o(),w(n.uploadButton?3:4),o(2),w(n.channels&&(n.channels==null?null:n.channels.length)>0?5:-1)}}var Ht=(()=>{class t{constructor(n){this.biggerPictureService=n,this.uploadButton=!1,this.scanButton=!1,this.showCheckBox=!1,this.downloadButton=!1,this.showFooter=!0,this.detachButton=!1,this.hasZoom=!0,this.showRedirectIcon=!0,this.productUploadRole=T.ProductUpload,this.productScanRole=T.ProductScan,this.productDownloadRole=T.ProductDownload,this.productDetachRole=T.ProductDetach,this.onUploadEvent=new b,this.onScanEvent=new b,this.checkBoxChange=new b,this.onDescEvent=new b,this.onDownloadEvent=new b,this.onDetachEvent=new b}ngAfterContentInit(){this.initRedirectUrl()}initRedirectUrl(){let n=localStorage.getItem("Authorization"),l=JSON.parse(n)?.Host;this.redirectUrl=`https://${l}/menu/Products/Catalog/Products/Info?ID=${this.productId}`}onUpload(){this.onUploadEvent.emit()}onScan(){this.onScanEvent.emit()}onCheck(n){this.checkBoxChange.emit(n)}onEventDesc(){this.onDescEvent.emit()}onDownload(){this.onDownloadEvent.emit()}onDetach(){this.onDetachEvent.emit()}getChannelLogo(n){return Z.getChannelLogoByTypeId(n.TypeID)}openBiggerPicture(n){this.biggerPictureService.openBiggerPicture(n,this.imageForZoom)}static{this.\u0275fac=function(l){return new(l||t)(I(H))}}static{this.\u0275cmp=B({type:t,selectors:[["app-product-card"]],inputs:{productId:"productId",uploadButton:"uploadButton",scanButton:"scanButton",showCheckBox:"showCheckBox",downloadButton:"downloadButton",showFooter:"showFooter",detachButton:"detachButton",image:"image",title:"title",code:"code",description:"description",channels:"channels",check:"check",imageForZoom:"imageForZoom",hasZoom:"hasZoom",showRedirectIcon:"showRedirectIcon"},outputs:{onUploadEvent:"onUpload",onScanEvent:"onScan",checkBoxChange:"onCheckBoxChange",onDescEvent:"onDescEvent",onDownloadEvent:"onDownload",onDetachEvent:"onDetach"},decls:18,vars:13,consts:[["elsePic",""],["thenBlock",""],["elseBlock",""],["DROPDOWN",""],[1,"card",2,"margin-bottom","0px"],[1,"card-body","py-6"],[1,"row"],[1,"col-4"],[1,"productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[4,"ngIf","ngIfElse"],[1,"col-7","d-inline-block","justify-content-between","gx-0",2,"padding-left","0px"],[1,"itemTitle","cursor-pointer",3,"click","matTooltip"],["class","description cursor-pointer",4,"ngIf"],["class","description cursor-pointer",3,"click",4,"ngIf"],[1,"col-1","gx-0","d-flex","justify-content-center"],[1,"text-end"],[4,"ngxPermissionsOnly"],[1,"card-footer","d-flex","justify-content-between","py-5","bg-footer","align-items-center",2,"border-top","0.1px solid rgb(220 220 220)"],[1,"rounded","imgUpload","float-left",3,"click","src"],["src","https://res.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png",1,"rounded","float-left","imgUpload"],[1,"description","cursor-pointer"],[1,"fa","fa-barcode","me-2"],[4,"ngIf"],[1,"ms-2"],["target","_blank",2,"color","#0976b4",3,"href"],[1,"fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[1,"description","cursor-pointer",3,"click"],[1,"fa","fa-tag","me-2"],["class","text-end gx-0",4,"ngIf"],[1,"text-end","gx-0"],["type","checkbox",3,"change"],["role","group","aria-label","Scan button with other button",1,"btn-group","btn-sm"],["class","fs-6 btn btn-light btn-sm me-3",3,"click",4,"ngIf"],[1,"fs-6","btn","btn-light","btn-sm","me-3",3,"click"],["aria-hidden","true",1,"fa","fa-download","me-1"],[3,"ngxPermissionsOnly","ngxPermissionsOnlyThen","ngxPermissionsOnlyElse"],["type","button",1,"fs-6","btn","btn-light","btn-sm",3,"click"],["aria-hidden","true",1,"fa","fa-upload","me-1"],["role","group",1,"btn-group"],["type","button","data-bs-toggle","dropdown","aria-expanded","false",1,"fs-6","btn","btn-light","btn-sm","dropdown-toggle","ps-3"],[1,"dropdown-menu",2,"min-width","100px !important"],[1,"dropdown-item","cursor-pointer",3,"click"],[1,"fa","fa-spinner","me-2"],["matTooltip","Detaching a product with it's associated channel will stop inventory synchronization",1,"dropdown-item","cursor-pointer",3,"click"],[1,"fa-sharp","fa-link-slash","me-2"],[1,"fs-6","btn","btn-light","btn-sm","me-3"],[1,"fa","fa-spinner","me-1"],["matTooltip","Detaching a product with it's associated channel will stop inventory synchronization",1,"fs-6","btn","btn-light","btn-sm"],["matTooltip","Detaching a product with it's associated channel will stop inventory synchronization",1,"fs-6","btn","btn-light","btn-sm",3,"click"],[1,"fs-6","btn","btn-light","btn-sm"],[1,"fs-6","btn","btn-light","btn-sm",3,"click"],[4,"ngFor","ngForOf"],["target","_blank",3,"href"],["alt","",1,"img-logo",3,"ngClass","src","matTooltip"],[1,"dropdown"],["type","button","id","dropdownMenuButton1","data-bs-toggle","dropdown","aria-expanded","false",1,"btn","fs-6","btn-sm","btn-light","dropdown-toggle"],[1,"dropdown-menu"],[1,"dropdown-item","py-2",2,"cursor","pointer"],[3,"ngClass"],[1,"img-logo",3,"src"],[1,"ms-4"]],template:function(l,e){if(l&1){let P=x();r(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7)(4,"div",8)(5,"div",9),d(6,G,2,1,"ng-container",10)(7,Q,1,0,"ng-template",null,0,y),c()()(),r(9,"div",11)(10,"h4",12),f("click",function(){return C(P),g(e.onEventDesc())}),u(11),c(),d(12,Y,5,2,"div",13)(13,tt,4,1,"div",14),c(),r(14,"div",15)(15,"div",16),d(16,et,2,1,"ng-container",17),c()()()(),d(17,kt,6,5,"div",18),c()}if(l&2){let P=S(8);o(6),_("ngIf",e.image)("ngIfElse",P),o(4),_("matTooltip",(e.title==null?null:e.title.length)>25?e.title:""),o(),D(" ",e.title," "),o(),_("ngIf",e.code),o(),_("ngIf",e.description),o(3),_("ngxPermissionsOnly",R(8,W,e.productDownloadRole,e.productScanRole,e.productUploadRole,e.productDetachRole)),o(),w(e.showFooter?17:-1)}},dependencies:[z,U,F,M,N,A,$,L,j],styles:[".img-logo[_ngcontent-%COMP%]{height:24px;width:24px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:100%}.bg-footer[_ngcontent-%COMP%]{background-color:#ededed69}.description[_ngcontent-%COMP%]{font-weight:300;margin-left:2px}.productUpload_defaultSize[_ngcontent-%COMP%]{max-width:100px!important;max-height:100px!important;width:auto!important;height:auto!important}.image-upload[_ngcontent-%COMP%]{position:relative}.imgContainer[_ngcontent-%COMP%]{width:100%;height:100px}.imgUpload[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down;cursor:pointer}.dropdown[_ngcontent-%COMP%] .dropdown-menu.show[_ngcontent-%COMP%]{top:unset!important}"]})}}return t})();export{Ht as a};
|
|
1
|
+
import{a as H}from"./chunk-SYUFPF3D.js";import{a as T}from"./chunk-5DIRXS7I.js";import{c as Z}from"./chunk-PW42BQIY.js";import{b as j,c as L}from"./chunk-SWQXSJ7O.js";import{A as N}from"./chunk-6QYD6NIJ.js";import{r as $,s as A}from"./chunk-YCH6HHU3.js";import{d as U,f as F,g as M,n as z}from"./chunk-M2FCTYGU.js";import{Fc as S,Gb as B,Gc as u,Hc as k,Ic as D,Ka as b,Mb as d,Sc as h,Tc as V,Vc as R,Yb as _,cd as y,dc as w,ic as r,jc as c,kc as s,lc as p,mc as m,oc as x,pb as E,rb as o,tc as f,uc as a,xb as I,xc as O,ya as C,za as g}from"./chunk-B7KTCPKC.js";var W=(t,i,n,l)=>[t,i,n,l],v=t=>[t],q=(t,i)=>[t,i],J=t=>({"me-3":t}),K=t=>({"border-bottom pb-2":t});function G(t,i){if(t&1){let n=x();p(0),r(1,"img",19),f("click",function(e){C(n);let P=a();return g(P.openBiggerPicture(e))}),c(),m()}if(t&2){let n=a();o(),_("src",n.image,E)}}function Q(t,i){t&1&&s(0,"img",20)}function X(t,i){if(t&1&&(p(0),r(1,"span",24)(2,"a",25),s(3,"i",26),c()(),m()),t&2){let n=a(2);o(2),_("href",n.redirectUrl,E)}}function Y(t,i){if(t&1&&(r(0,"div",21),s(1,"i",22),r(2,"span"),u(3),c(),d(4,X,4,1,"ng-container",23),c()),t&2){let n=a();o(3),k(n.code),o(),_("ngIf",n.code!=="SKU not assigned"&&n.showRedirectIcon)}}function tt(t,i){if(t&1){let n=x();r(0,"div",27),f("click",function(){C(n);let e=a();return g(e.onEventDesc())}),s(1,"i",28),r(2,"span"),u(3),c()()}if(t&2){let n=a();o(3),k(n.description)}}function nt(t,i){if(t&1){let n=x();r(0,"div",30)(1,"input",31),f("change",function(e){C(n);let P=a(2);return g(P.onCheck(e.target.checked))}),c()()}}function et(t,i){if(t&1&&(p(0),d(1,nt,2,0,"div",29),m()),t&2){let n=a();o(),_("ngIf",n.showCheckBox)}}function it(t,i){if(t&1){let n=x();r(0,"button",34),f("click",function(){C(n);let e=a(3);return g(e.onDownload())}),s(1,"i",35),u(2,"Download "),c()}}function ot(t,i){if(t&1&&(p(0),d(1,it,3,0,"button",33),m()),t&2){let n=a(2);o(),_("ngIf",n.downloadButton)}}function at(t,i){}function rt(t,i){if(t&1){let n=x();r(0,"li")(1,"a",42),f("click",function(){C(n);let e=a(6);return g(e.onScan())}),s(2,"i",43),u(3,"Scan "),c()()}}function ct(t,i){if(t&1&&(p(0),d(1,rt,4,0,"li"),m()),t&2){let n=a(5);o(),w(n.scanButton?1:-1)}}function lt(t,i){if(t&1){let n=x();r(0,"li")(1,"a",44),f("click",function(){C(n);let e=a(6);return g(e.onDetach())}),s(2,"i",45),u(3,"Detach "),c()()}}function _t(t,i){if(t&1&&(p(0),d(1,lt,4,0,"li"),m()),t&2){let n=a(5);o(),w(n.detachButton?1:-1)}}function dt(t,i){if(t&1&&(p(0),r(1,"div",39),s(2,"button",40),r(3,"ul",41),d(4,ct,2,1,"ng-container",17)(5,_t,2,1,"ng-container",17),c()(),m()),t&2){let n=a(4);o(4),_("ngxPermissionsOnly",h(2,v,n.productScanRole)),o(),_("ngxPermissionsOnly",h(4,v,n.productDetachRole))}}function st(t,i){if(t&1){let n=x();r(0,"button",37),f("click",function(){C(n);let e=a(3);return g(e.onUpload())}),s(1,"i",38),u(2,"Upload "),c(),d(3,dt,6,6,"ng-container",17)}if(t&2){let n=a(3);o(3),_("ngxPermissionsOnly",V(1,q,n.productScanRole,n.productDetachRole))}}function pt(t,i){if(t&1){let n=x();r(0,"button",34),f("click",function(){C(n);let e=a(5);return g(e.onScan())}),s(1,"i",47),u(2," Scan "),c()}}function mt(t,i){if(t&1&&(p(0),d(1,pt,3,0,"button",46),m()),t&2){let n=a(4);o(),w(n.scanButton?1:-1)}}function ut(t,i){if(t&1){let n=x();r(0,"button",49),f("click",function(){C(n);let e=a(5);return g(e.onDetach())}),s(1,"i",45),u(2,"Detach "),c()}}function Ct(t,i){if(t&1&&(p(0),d(1,ut,3,0,"button",48),m()),t&2){let n=a(4);o(),w(n.detachButton?1:-1)}}function gt(t,i){if(t&1&&d(0,mt,2,1,"ng-container",17)(1,Ct,2,1,"ng-container",17),t&2){let n=a(3);_("ngxPermissionsOnly",h(2,v,n.productScanRole)),o(),_("ngxPermissionsOnly",h(4,v,n.productDetachRole))}}function xt(t,i){if(t&1&&(r(0,"div",32),d(1,at,0,0,"ng-template",36)(2,st,4,4,"ng-template",null,1,y)(4,gt,2,6,"ng-template",null,2,y),c()),t&2){let n=S(3),l=S(5),e=a(2);o(),_("ngxPermissionsOnly",h(3,v,e.productUploadRole))("ngxPermissionsOnlyThen",n)("ngxPermissionsOnlyElse",l)}}function ft(t,i){if(t&1){let n=x();r(0,"button",34),f("click",function(){C(n);let e=a(4);return g(e.onScan())}),s(1,"i",47),u(2," Scan "),c()}}function ht(t,i){if(t&1&&(p(0),d(1,ft,3,0,"button",46),m()),t&2){let n=a(3);o(),w(n.scanButton?1:-1)}}function wt(t,i){if(t&1){let n=x();r(0,"button",51),f("click",function(){C(n);let e=a(4);return g(e.onDetach())}),s(1,"i",45),u(2,"Detach "),c()}}function vt(t,i){if(t&1&&(p(0),d(1,wt,3,0,"button",50),m()),t&2){let n=a(3);o(),w(n.detachButton?1:-1)}}function Pt(t,i){if(t&1&&d(0,ht,2,1,"ng-container",17)(1,vt,2,1,"ng-container",17),t&2){let n=a(2);_("ngxPermissionsOnly",h(2,v,n.productScanRole)),o(),_("ngxPermissionsOnly",h(4,v,n.productDetachRole))}}function bt(t,i){if(t&1&&(p(0),r(1,"a",53),s(2,"img",54),c(),m()),t&2){let n=i.$implicit,l=i.index,e=a(4);o(),O("href",n.Url,E),o(),_("ngClass",h(4,J,l!=e.channels.length-1))("src",e.getChannelLogo(n),E)("matTooltip",n.Title?n.Title:n.Name)}}function Et(t,i){if(t&1&&(p(0),d(1,bt,3,6,"ng-container",52),m()),t&2){let n=a(3);o(),_("ngForOf",n.channels)}}function St(t,i){if(t&1&&(r(0,"li")(1,"div",58)(2,"div",59)(3,"a",53),s(4,"img",60),r(5,"span",61),u(6),c()()()()()),t&2){let n=i.$implicit,l=i.index,e=a(4);o(2),_("ngClass",h(4,K,l!=e.channels.length-1)),o(),_("href",n.Url,E),o(),_("src",e.getChannelLogo(n),E),o(2),k(n.Title)}}function yt(t,i){if(t&1&&(r(0,"div",55)(1,"button",56),u(2),c(),r(3,"ul",57),d(4,St,7,6,"li",52),c()()),t&2){let n=a(3);o(2),D(" ",n.channels.length," CHANNELS "),o(2),_("ngForOf",n.channels)}}function Tt(t,i){if(t&1&&(r(0,"div"),d(1,Et,2,1,"ng-container",10)(2,yt,5,2,"ng-template",null,3,y),c()),t&2){let n=S(3),l=a(2);o(),_("ngIf",l.channels.length<4)("ngIfElse",n)}}function kt(t,i){if(t&1&&(r(0,"div",18)(1,"div"),d(2,ot,2,1,"ng-container",17)(3,xt,6,5,"div",32)(4,Pt,2,6),c(),d(5,Tt,4,2,"div"),c()),t&2){let n=a();o(2),_("ngxPermissionsOnly",h(3,v,n.productDownloadRole)),o(),w(n.uploadButton?3:4),o(2),w(n.channels&&(n.channels==null?null:n.channels.length)>0?5:-1)}}var Ht=(()=>{class t{constructor(n){this.biggerPictureService=n,this.uploadButton=!1,this.scanButton=!1,this.showCheckBox=!1,this.downloadButton=!1,this.showFooter=!0,this.detachButton=!1,this.hasZoom=!0,this.showRedirectIcon=!0,this.productUploadRole=T.ProductUpload,this.productScanRole=T.ProductScan,this.productDownloadRole=T.ProductDownload,this.productDetachRole=T.ProductDetach,this.onUploadEvent=new b,this.onScanEvent=new b,this.checkBoxChange=new b,this.onDescEvent=new b,this.onDownloadEvent=new b,this.onDetachEvent=new b}ngAfterContentInit(){this.initRedirectUrl()}initRedirectUrl(){let n=localStorage.getItem("Authorization"),l=JSON.parse(n)?.Host;this.redirectUrl=`https://${l}/menu/Products/Catalog/Products/Info?ID=${this.productId}`}onUpload(){this.onUploadEvent.emit()}onScan(){this.onScanEvent.emit()}onCheck(n){this.checkBoxChange.emit(n)}onEventDesc(){this.onDescEvent.emit()}onDownload(){this.onDownloadEvent.emit()}onDetach(){this.onDetachEvent.emit()}getChannelLogo(n){return Z.getChannelLogoByTypeId(n.TypeID)}openBiggerPicture(n){this.biggerPictureService.openBiggerPicture(n,this.imageForZoom)}static{this.\u0275fac=function(l){return new(l||t)(I(H))}}static{this.\u0275cmp=B({type:t,selectors:[["app-product-card"]],inputs:{productId:"productId",uploadButton:"uploadButton",scanButton:"scanButton",showCheckBox:"showCheckBox",downloadButton:"downloadButton",showFooter:"showFooter",detachButton:"detachButton",image:"image",title:"title",code:"code",description:"description",channels:"channels",check:"check",imageForZoom:"imageForZoom",hasZoom:"hasZoom",showRedirectIcon:"showRedirectIcon"},outputs:{onUploadEvent:"onUpload",onScanEvent:"onScan",checkBoxChange:"onCheckBoxChange",onDescEvent:"onDescEvent",onDownloadEvent:"onDownload",onDetachEvent:"onDetach"},decls:18,vars:13,consts:[["elsePic",""],["thenBlock",""],["elseBlock",""],["DROPDOWN",""],[1,"card",2,"margin-bottom","0px"],[1,"card-body","py-6"],[1,"row"],[1,"col-4"],[1,"productUpload_defaultSize","me-2","image-upload"],[1,"imgContainer"],[4,"ngIf","ngIfElse"],[1,"col-7","d-inline-block","justify-content-between","gx-0",2,"padding-left","0px"],[1,"itemTitle","cursor-pointer",3,"click","matTooltip"],["class","description cursor-pointer",4,"ngIf"],["class","description cursor-pointer",3,"click",4,"ngIf"],[1,"col-1","gx-0","d-flex","justify-content-center"],[1,"text-end"],[4,"ngxPermissionsOnly"],[1,"card-footer","d-flex","justify-content-between","py-5","bg-footer","align-items-center",2,"border-top","0.1px solid rgb(220 220 220)"],[1,"rounded","imgUpload","float-left",3,"click","src"],["src","https://res.cloudinary.com/pos/image/upload/w_110/POS/Images/Icon/products_thumb.png",1,"rounded","float-left","imgUpload"],[1,"description","cursor-pointer"],[1,"fa","fa-barcode","me-2"],[4,"ngIf"],[1,"ms-2"],["target","_blank",2,"color","#0976b4",3,"href"],[1,"fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[1,"description","cursor-pointer",3,"click"],[1,"fa","fa-tag","me-2"],["class","text-end gx-0",4,"ngIf"],[1,"text-end","gx-0"],["type","checkbox",3,"change"],["role","group","aria-label","Scan button with other button",1,"btn-group","btn-sm"],["class","fs-6 btn btn-light btn-sm me-3",3,"click",4,"ngIf"],[1,"fs-6","btn","btn-light","btn-sm","me-3",3,"click"],["aria-hidden","true",1,"fa","fa-download","me-1"],[3,"ngxPermissionsOnly","ngxPermissionsOnlyThen","ngxPermissionsOnlyElse"],["type","button",1,"fs-6","btn","btn-light","btn-sm",3,"click"],["aria-hidden","true",1,"fa","fa-upload","me-1"],["role","group",1,"btn-group"],["type","button","data-bs-toggle","dropdown","aria-expanded","false",1,"fs-6","btn","btn-light","btn-sm","dropdown-toggle","ps-3"],[1,"dropdown-menu",2,"min-width","100px !important"],[1,"dropdown-item","cursor-pointer",3,"click"],[1,"fa","fa-spinner","me-2"],["matTooltip","Detaching a product with it's associated channel will stop inventory synchronization",1,"dropdown-item","cursor-pointer",3,"click"],[1,"fa-sharp","fa-link-slash","me-2"],[1,"fs-6","btn","btn-light","btn-sm","me-3"],[1,"fa","fa-spinner","me-1"],["matTooltip","Detaching a product with it's associated channel will stop inventory synchronization",1,"fs-6","btn","btn-light","btn-sm"],["matTooltip","Detaching a product with it's associated channel will stop inventory synchronization",1,"fs-6","btn","btn-light","btn-sm",3,"click"],[1,"fs-6","btn","btn-light","btn-sm"],[1,"fs-6","btn","btn-light","btn-sm",3,"click"],[4,"ngFor","ngForOf"],["target","_blank",3,"href"],["alt","",1,"img-logo",3,"ngClass","src","matTooltip"],[1,"dropdown"],["type","button","id","dropdownMenuButton1","data-bs-toggle","dropdown","aria-expanded","false",1,"btn","fs-6","btn-sm","btn-light","dropdown-toggle"],[1,"dropdown-menu"],[1,"dropdown-item","py-2",2,"cursor","pointer"],[3,"ngClass"],[1,"img-logo",3,"src"],[1,"ms-4"]],template:function(l,e){if(l&1){let P=x();r(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7)(4,"div",8)(5,"div",9),d(6,G,2,1,"ng-container",10)(7,Q,1,0,"ng-template",null,0,y),c()()(),r(9,"div",11)(10,"h4",12),f("click",function(){return C(P),g(e.onEventDesc())}),u(11),c(),d(12,Y,5,2,"div",13)(13,tt,4,1,"div",14),c(),r(14,"div",15)(15,"div",16),d(16,et,2,1,"ng-container",17),c()()()(),d(17,kt,6,5,"div",18),c()}if(l&2){let P=S(8);o(6),_("ngIf",e.image)("ngIfElse",P),o(4),_("matTooltip",(e.title==null?null:e.title.length)>25?e.title:""),o(),D(" ",e.title," "),o(),_("ngIf",e.code),o(),_("ngIf",e.description),o(3),_("ngxPermissionsOnly",R(8,W,e.productDownloadRole,e.productScanRole,e.productUploadRole,e.productDetachRole)),o(),w(e.showFooter?17:-1)}},dependencies:[z,U,F,M,N,A,$,L,j],styles:[".img-logo[_ngcontent-%COMP%]{height:24px;width:24px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:100%}.bg-footer[_ngcontent-%COMP%]{background-color:#ededed69}.description[_ngcontent-%COMP%]{font-weight:300;margin-left:2px}.productUpload_defaultSize[_ngcontent-%COMP%]{max-width:100px!important;max-height:100px!important;width:auto!important;height:auto!important}.image-upload[_ngcontent-%COMP%]{position:relative}.imgContainer[_ngcontent-%COMP%]{width:100%;height:100px}.imgUpload[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:scale-down;cursor:pointer}.dropdown[_ngcontent-%COMP%] .dropdown-menu.show[_ngcontent-%COMP%]{top:unset!important}"]})}}return t})();export{Ht as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Z,b as ee,c as te,d as oe,e as ie,f as ne}from"./chunk-
|
|
1
|
+
import{a as Z,b as ee,c as te,d as oe,e as ie,f as ne}from"./chunk-VIMB2VWB.js";import{a as R}from"./chunk-K2GYNGBL.js";import"./chunk-B5VBBEEN.js";import"./chunk-E3ROEHBW.js";import"./chunk-AYPY47VM.js";import"./chunk-SM3P57SO.js";import{a as T}from"./chunk-5DIRXS7I.js";import{a as X,b as Y}from"./chunk-PAEIUO2F.js";import"./chunk-OZ7LWNOK.js";import"./chunk-ECRWEMEV.js";import"./chunk-LZCEM2PC.js";import"./chunk-V3NCYRCF.js";import{b as J,c as K}from"./chunk-SWQXSJ7O.js";import{b as H}from"./chunk-JXSBFTQM.js";import"./chunk-K5XRGNWG.js";import{m as Q,n as W}from"./chunk-CLER2MX6.js";import"./chunk-6QYD6NIJ.js";import"./chunk-ATZ475FN.js";import"./chunk-YCH6HHU3.js";import"./chunk-B73M3AMU.js";import{E as q,G as U,H as V,J as z,j as B,n as j}from"./chunk-M2FCTYGU.js";import{$c as N,Gb as E,Gc as d,Hc as k,Ic as O,Mb as u,Nc as F,Oc as $,Pc as g,Qc as L,Sc as S,Yb as s,aa as I,ac as G,ad as A,dc as _,ec as b,gc as h,hc as v,ic as r,jc as a,kc as f,lc as C,mc as y,oc as w,pa as m,rb as l,tc as M,uc as c,v as x,ya as P,za as D}from"./chunk-B7KTCPKC.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var re=t=>({ID:t}),ae=t=>({"border-end-0":t});function le(t,p){if(t&1){let e=w();C(0),r(1,"button",11),M("click",function(){P(e);let n=c(),o=g(0);return D(n.onDeleteGroup(o==null?null:o.id))}),f(2,"i",12),d(3," Delete "),a(),y()}}function pe(t,p){if(t&1&&(C(0),r(1,"a",13),f(2,"i",14),d(3," Edit "),a(),y()),t&2){c();let e=g(0);l(),s("queryParams",S(1,re,e==null?null:e.id))}}function se(t,p){if(t&1&&(r(0,"div",21)(1,"div",22)(2,"p",23),d(3),a()()()),t&2){let e=c(),i=e.$implicit,n=e.$index,o=c(2).$implicit;G(S(4,ae,n!==o.Roles.length-1)),s("pTooltip",i.Description),l(3),O(" ",i.Name," ")}}function ce(t,p){if(t&1&&u(0,se,4,6,"div",20),t&2){let e=p.$implicit;_(e.checked?0:-1)}}function de(t,p){if(t&1&&(r(0,"div",15)(1,"div",16)(2,"div",17)(3,"span",18),d(4),a()()(),r(5,"div",19)(6,"div",15),h(7,ce,1,1,null,null,b),a()()()),t&2){let e=c().$implicit;l(4),k(e.Name),l(3),v(e==null?null:e.Roles)}}function me(t,p){if(t&1&&u(0,de,9,1,"div",15),t&2){let e=p.$implicit;_((e==null||e.Roles==null?null:e.Roles.length)>0?0:-1)}}function ue(t,p){if(t&1&&(r(0,"div",9),h(1,me,1,1,null,null,b),a()),t&2){c();let e=g(0);l(),v(e.groups)}}var Oe=(()=>{class t{constructor(){this.groupService=m(R),this.activatedRoute=m(q),this.toastr=m(H),this.route=m(U),this.group$=this.activatedRoute.queryParams.pipe(I(e=>this.groupService.getGroupsForm(e.ID).pipe(x(i=>(i.ID=e.ID,i)))),x(e=>({id:e.ID,name:e.Group.Name,groups:this.mapSelectedRoles(e.Options,e.RoleSelected),description:e.Group.Description}))),this.userEditRole=T.UserEdit,this.userDeleteRole=T.UserDelete}mapSelectedRoles(e,i){return e.map(n=>(n.Roles=n.Roles.map(o=>(o.checked=i.includes(o.ID),o)).filter(o=>o.checked),n.checked=n.Roles.some(o=>o.checked),n))}onDeleteGroup(e){confirm("Are you sure you want to delete this group?")&&this.groupService.deleteGroups([e]).subscribe(()=>{this.toastr.success("Group deleted successfully","Success"),this.route.navigate(["/menu/users/groups"])})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=E({type:t,selectors:[["app-group-info"]],features:[L([R])],decls:23,vars:11,consts:[[3,"headerTitle","hideSearchBox","hideSearchDropdown"],["role","group","aria-label","User Group Actions",1,"btn-group"],[4,"ngxPermissionsOnly"],[1,"container-fluid"],[1,"row","mt-8"],[1,"col-12"],["type","text","pInputText","","placeholder","Group Name","readonly","",1,"w-100","form-control","rounded-1",2,"padding-top","12px","padding-bottom","12px","font-size","14px",3,"value"],["value","0"],["value","1"],[1,"d-flex","flex-column","row-gap-6","ps-8"],["pInputTextarea","","rows","10","placeholder","Description","readonly","",1,"w-100","form-control","rounded-1",3,"value"],[1,"btn","btn-outline-secondary",3,"click"],[1,"fa","fa-trash","me-1"],["role","button","routerLink","/menu/users/groups/form",1,"btn","btn-outline-secondary",3,"queryParams"],[1,"fa","fa-edit","me-1"],[1,"row"],[1,"col-2","border","d-flex","align-items-center","justify-content-between","border-end-0",2,"height","40px","background","#f6f6f6"],[1,"d-flex","justify-content-center","w-100","align-items-center","gap-4"],[1,"fs-5","w-100","text-center"],[1,"col"],["tooltipPosition","top",1,"col-3","border","p-0","bg-white",2,"height","40px",3,"class","pTooltip"],["tooltipPosition","top",1,"col-3","border","p-0","bg-white",2,"height","40px",3,"pTooltip"],[1,"d-flex","h-100","align-items-center","gap-4","px-2"],[1,"fs-6","text-dark",2,"margin","0"]],template:function(i,n){if(i&1&&(F(0),N(1,"async"),r(2,"mainpanel",0)(3,"actions")(4,"div",1),u(5,le,4,0,"ng-container",2)(6,pe,4,3,"ng-container",2),a()(),r(7,"content")(8,"div",3)(9,"div",4)(10,"div",5),f(11,"input",6),a()(),r(12,"p-tabs",7)(13,"p-tablist")(14,"p-tab",7),d(15,"Permission"),a(),r(16,"p-tab",8),d(17,"Description"),a()(),r(18,"p-tabpanels")(19,"p-tabpanel",7),u(20,ue,3,0,"div",9),a(),r(21,"p-tabpanel",8),f(22,"textarea",10),a()()()()()()),i&2){let o=$(A(1,8,n.group$));l(2),s("headerTitle",(o==null?null:o.name)+" Info")("hideSearchBox",!0)("hideSearchDropdown",!0),l(3),s("ngxPermissionsOnly",n.userDeleteRole),l(),s("ngxPermissionsOnly",n.userEditRole),l(5),s("value",o==null?null:o.name),l(9),_(o?20:-1),l(2),s("value",o==null?null:o.description)}},dependencies:[j,B,W,Q,ne,ie,oe,te,Z,ee,Y,X,K,J,z,V],styles:["[_nghost-%COMP%] .p-tabs{--p-tabs-tab-active-color: #555555;--p-tabs-tab-color: #0976b4}[_nghost-%COMP%] .p-tabs .p-tabpanels{padding-left:0!important}[_nghost-%COMP%] .p-tabs .p-tablist-active-bar{background-color:#555!important}[_nghost-%COMP%] .p-panel .p-panel-header{display:none!important}[_nghost-%COMP%] .btn-outline-secondary{background-color:#fff;border-color:#ccc;color:#000}[_nghost-%COMP%] .btn-outline-secondary:hover{background-color:#f8f9fa;border-color:#b3b3b3;color:#000}"]})}}return t})();export{Oe as GroupInfoComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as se,b as ce,c as ue}from"./chunk-
|
|
1
|
+
import{a as se,b as ce,c as ue}from"./chunk-V5BKQSAT.js";import{a as he}from"./chunk-MQQD4OJO.js";import{a as me}from"./chunk-CATX24UZ.js";import{a as de}from"./chunk-66MLRB2J.js";import"./chunk-M5JQ7BGW.js";import{a as pe}from"./chunk-EPVCMYCI.js";import"./chunk-JDIBETL5.js";import"./chunk-L7K5HOBY.js";import"./chunk-74IXJYWO.js";import"./chunk-G47XGOST.js";import"./chunk-H3J5OAIG.js";import"./chunk-AQTXFEBA.js";import"./chunk-SDUUFQUI.js";import"./chunk-IL5JIRWJ.js";import"./chunk-5OHRA4AS.js";import"./chunk-3BT5DR3X.js";import"./chunk-3RK6DDJD.js";import"./chunk-J2KWRDVH.js";import"./chunk-7SVF5UPT.js";import"./chunk-CMTBBXR5.js";import{a as le}from"./chunk-WPW3D4MQ.js";import"./chunk-S5SDX7ZG.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import{a as ie}from"./chunk-V3NCYRCF.js";import"./chunk-5JVEEL2T.js";import"./chunk-PW42BQIY.js";import"./chunk-SWQXSJ7O.js";import"./chunk-AEOSNAHH.js";import{e as te}from"./chunk-JXSBFTQM.js";import"./chunk-K5XRGNWG.js";import{m as oe,n as ae}from"./chunk-CLER2MX6.js";import{A as ee,c as X,h as Y,m as Z,o as $}from"./chunk-6QYD6NIJ.js";import"./chunk-ATZ475FN.js";import{r as ne,s as re}from"./chunk-YCH6HHU3.js";import"./chunk-B73M3AMU.js";import{j as q,k as J,m as K,n as Q}from"./chunk-M2FCTYGU.js";import{$c as w,Gb as N,Gc as l,Hc as v,Ic as B,Kc as _,Lc as f,Mb as x,Mc as S,Nc as z,Oc as A,Pc as j,Qc as H,Ra as O,Rc as R,Sc as U,Yb as c,ac as W,ad as E,bd as G,dc as b,ec as I,gc as D,hc as k,ic as t,ja as L,jc as i,kc as u,oc as V,pa as y,pb as F,rb as a,tc as M,uc as h,v as P,ya as m,za as d}from"./chunk-B7KTCPKC.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var T=(()=>{class n{constructor(){this.httpService=y(te)}getShippedOrders(e){return this.httpService.post(ie.GetShipped,e).pipe(P(p=>p.Data||[]))}static{this.\u0275fac=function(p){return new(p||n)}}static{this.\u0275prov=L({token:n,factory:n.\u0275fac})}}return n})();var fe=()=>[],Se=n=>({"td-cell-hover":n});function ge(n,g){if(n&1&&u(0,"variants-dropdown",29),n&2){let e=h().$implicit;c("variants",e==null?null:e.Variants)}}function Ce(n,g){if(n&1&&u(0,"variant-with-image",30),n&2){let e=h().$implicit;c("variant",e==null?null:e.Variants[0])}}function ve(n,g){if(n&1&&(t(0,"span"),l(1),i()),n&2){let e=h().$implicit;a(),v(e.LogisticService==null?null:e.LogisticService.Option)}}function we(n,g){if(n&1&&(t(0,"tr")(1,"td"),l(2),i(),t(3,"td")(4,"div",25)(5,"div",26)(6,"div"),u(7,"img",27),w(8,"channelImage"),i(),t(9,"div"),u(10,"order-link",28),i()(),t(11,"small"),l(12),w(13,"date"),i()()(),t(14,"td"),l(15),i(),t(16,"td"),x(17,ge,1,1,"variants-dropdown",29)(18,Ce,1,1,"variant-with-image",30),i(),t(19,"td",31),l(20),w(21,"number"),i(),t(22,"td")(23,"span"),l(24),i(),x(25,ve,2,1,"span"),i()()),n&2){let e=g.$implicit;a(2),v(e.Outlet),a(5),c("src",E(8,12,e==null?null:e.MarketType),F)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),a(3),c("order",e),a(2),B(" ",G(13,14,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),a(3),v(e.Customer),a(),W(U(19,Se,(e.Variants==null?null:e.Variants.length)>1)),a(),b((e.Variants==null?null:e.Variants.length)>1?17:18),a(3),v(E(21,17,e.Amount)),a(4),v(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),a(),b(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?25:-1)}}function ye(n,g){if(n&1){let e=V();t(0,"div",15)(1,"table",17)(2,"thead",18)(3,"tr",19)(4,"th",20),l(5,"Outlet"),i(),t(6,"th",21),l(7,"Number"),i(),t(8,"th",21),l(9,"Customer"),i(),t(10,"th"),l(11,"Items"),i(),t(12,"th",22),l(13,"Amount"),i(),t(14,"th",23),l(15,"Shipping"),i()()(),t(16,"tbody"),D(17,we,26,21,"tr",null,I),i()(),t(19,"app-custom-paginator",24),M("next",function(){m(e);let r=h();return d(r.initShippedOrders())})("previous",function(){m(e);let r=h();return d(r.initShippedOrders())}),i()()}if(n&2){let e=h(),p=j(0);a(17),k(p),a(2),c("filter",e.filter())("totaldata",p==null?null:p.length)}}function xe(n,g){n&1&&(t(0,"div",16),u(1,"app-empty-state"),i())}var Xe=(()=>{class n{constructor(){this.shippedService=y(T),this.filter=O({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null})}ngOnInit(){this.initShippedOrders()}initShippedOrders(){this.shippedOrders$=this.shippedService.getShippedOrders(this.filter())}static{this.\u0275fac=function(p){return new(p||n)}}static{this.\u0275cmp=N({type:n,selectors:[["app-shipped"]],features:[H([T])],decls:34,vars:12,consts:[["headerTitle","Shipped","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-2"],[1,"fa-regular","fa-tv","me-3"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","100px"],[2,"width","250px"],[1,"text-end",2,"width","150px"],[2,"width","150px"],["rowCountApi","/api/orders/shippedcount",3,"next","previous","filter","totaldata"],[1,"lh-sm"],[1,"d-flex","align-items-end","gap-2"],[2,"width","12px","padding-bottom","2.5px",3,"src","alt"],[2,"font-size","14px",3,"order"],[3,"variants"],[3,"variant"],[1,"text-end"]],template:function(p,r){if(p&1){let s=V();z(0),w(1,"async"),t(2,"mainpanel",0),M("onSubmit",function(){return m(s),d(r.initShippedOrders())}),S("textChange",function(o){return m(s),f(r.filter().Number,o)||(r.filter().Number=o),d(o)}),t(3,"actions")(4,"a",1),u(5,"i",2),t(6,"span"),l(7,"Order Fulfillment Display"),i()()(),t(8,"filters")(9,"div")(10,"label",3),l(11,"From/To"),i(),t(12,"channel-select-options",4),S("ngModelChange",function(o){return m(s),f(r.filter().ListChannelID,o)||(r.filter().ListChannelID=o),d(o)}),i()(),t(13,"div",5)(14,"label",3),l(15,"From/To"),i(),t(16,"div",6)(17,"datepicker",7),S("dateChange",function(o){return m(s),f(r.filter().From,o)||(r.filter().From=o),d(o)}),i()(),t(18,"div")(19,"datepicker",8),S("dateChange",function(o){return m(s),f(r.filter().To,o)||(r.filter().To=o),d(o)}),i()()(),t(20,"div",5)(21,"label",9),l(22,"Page Number"),i(),t(23,"input",10),S("ngModelChange",function(o){return m(s),f(r.filter().PageNumber,o)||(r.filter().PageNumber=o),d(o)}),i()(),t(24,"div",5)(25,"label",9),l(26,"Page Size"),i(),t(27,"input",11),S("ngModelChange",function(o){return m(s),f(r.filter().PageSize,o)||(r.filter().PageSize=o),d(o)}),i()()(),t(28,"content")(29,"div",12)(30,"div",13)(31,"div",14),x(32,ye,20,2,"div",15)(33,xe,2,0,"div",16),i()()()()()}if(p&2){let s=A(E(1,8,r.shippedOrders$)||R(11,fe));a(2),_("text",r.filter().Number),a(10),c("multiple",!0),_("ngModel",r.filter().ListChannelID),a(5),_("date",r.filter().From),a(2),_("date",r.filter().To),a(4),_("ngModel",r.filter().PageNumber),a(4),_("ngModel",r.filter().PageSize),a(5),b(s.length>0?32:33)}},dependencies:[Q,q,K,J,ae,oe,pe,le,ee,X,$,Y,Z,se,ce,ue,de,me,re,ne,he],encapsulation:2})}}return n})();export{Xe as ShippedComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as se,b as ce,c as ue}from"./chunk-
|
|
1
|
+
import{a as se,b as ce,c as ue}from"./chunk-V5BKQSAT.js";import{a as Ce}from"./chunk-MQQD4OJO.js";import{a as pe}from"./chunk-CATX24UZ.js";import{a as de}from"./chunk-66MLRB2J.js";import"./chunk-M5JQ7BGW.js";import{a as me}from"./chunk-EPVCMYCI.js";import"./chunk-JDIBETL5.js";import"./chunk-L7K5HOBY.js";import"./chunk-74IXJYWO.js";import"./chunk-G47XGOST.js";import"./chunk-H3J5OAIG.js";import"./chunk-AQTXFEBA.js";import"./chunk-SDUUFQUI.js";import"./chunk-IL5JIRWJ.js";import"./chunk-5OHRA4AS.js";import"./chunk-3BT5DR3X.js";import"./chunk-3RK6DDJD.js";import"./chunk-J2KWRDVH.js";import"./chunk-7SVF5UPT.js";import"./chunk-CMTBBXR5.js";import{a as ae}from"./chunk-WPW3D4MQ.js";import"./chunk-S5SDX7ZG.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import{a as ie}from"./chunk-V3NCYRCF.js";import"./chunk-5JVEEL2T.js";import"./chunk-PW42BQIY.js";import"./chunk-SWQXSJ7O.js";import"./chunk-AEOSNAHH.js";import{e as te}from"./chunk-JXSBFTQM.js";import"./chunk-K5XRGNWG.js";import{m as re,n as le}from"./chunk-CLER2MX6.js";import{A as ee,c as X,h as Y,m as Z,o as $}from"./chunk-6QYD6NIJ.js";import"./chunk-ATZ475FN.js";import{r as ne,s as oe}from"./chunk-YCH6HHU3.js";import"./chunk-B73M3AMU.js";import{j as q,k as J,m as K,n as Q}from"./chunk-M2FCTYGU.js";import{$c as w,Gb as F,Gc as a,Hc as v,Ic as z,Kc as f,Lc as _,Mb as x,Mc as g,Nc as A,Oc as j,Pc as H,Qc as R,Ra as N,Sc as U,Yb as c,Z as L,ac as I,ad as E,bd as G,dc as b,ec as D,gc as k,hc as B,ic as t,ja as O,jc as i,kc as u,oc as V,pa as y,pb as W,rb as l,tc as M,uc as C,v as P,ya as d,za as s}from"./chunk-B7KTCPKC.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var T=(()=>{class n{constructor(){this.httpService=y(te)}getCompletedOrders(e){return this.httpService.post(ie.GetCompleted,e).pipe(P(m=>m?.Data||[]))}static{this.\u0275fac=function(m){return new(m||n)}}static{this.\u0275prov=O({token:n,factory:n.\u0275fac})}}return n})();var _e=n=>({"td-cell-hover":n});function ge(n,h){if(n&1&&u(0,"variants-dropdown",29),n&2){let e=C().$implicit;c("variants",e==null?null:e.Variants)}}function he(n,h){if(n&1&&u(0,"variant-with-image",30),n&2){let e=C().$implicit;c("variant",e==null?null:e.Variants[0])}}function Se(n,h){if(n&1&&(t(0,"span"),a(1),i()),n&2){let e=C().$implicit;l(),v(e.LogisticService==null?null:e.LogisticService.Option)}}function ve(n,h){if(n&1&&(t(0,"tr")(1,"td"),a(2),i(),t(3,"td")(4,"div",25)(5,"div",26)(6,"div"),u(7,"img",27),w(8,"channelImage"),i(),t(9,"div"),u(10,"order-link",28),i()(),t(11,"small"),a(12),w(13,"date"),i()()(),t(14,"td"),a(15),i(),t(16,"td"),x(17,ge,1,1,"variants-dropdown",29)(18,he,1,1,"variant-with-image",30),i(),t(19,"td",31),a(20),w(21,"number"),i(),t(22,"td")(23,"span"),a(24),i(),x(25,Se,2,1,"span"),i()()),n&2){let e=h.$implicit;l(2),v(e.Outlet),l(5),c("src",E(8,12,e==null?null:e.MarketType),W)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),l(3),c("order",e),l(2),z(" ",G(13,14,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),l(3),v(e.Customer),l(),I(U(19,_e,(e.Variants==null?null:e.Variants.length)>1)),l(),b((e.Variants==null?null:e.Variants.length)>1?17:18),l(3),v(E(21,17,e.Amount)),l(4),v(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),l(),b(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?25:-1)}}function we(n,h){if(n&1){let e=V();t(0,"div",15)(1,"table",17)(2,"thead",18)(3,"tr",19)(4,"th",20),a(5,"Outlet"),i(),t(6,"th",21),a(7,"Number"),i(),t(8,"th",21),a(9,"Customer"),i(),t(10,"th"),a(11,"Items"),i(),t(12,"th",22),a(13,"Amount"),i(),t(14,"th",23),a(15,"Shipping"),i()()(),t(16,"tbody"),k(17,ve,26,21,"tr",null,D),i()(),t(19,"app-custom-paginator",24),M("next",function(){d(e);let o=C();return s(o.initCompletedOrders())})("previous",function(){d(e);let o=C();return s(o.initCompletedOrders())}),i()()}if(n&2){let e=C(),m=H(0);l(17),B(m),l(2),c("filter",e.filter())("totaldata",m==null?null:m.length)}}function ye(n,h){n&1&&(t(0,"div",16),u(1,"app-empty-state"),i())}var Xe=(()=>{class n{constructor(){this.completedService=y(T),this.filter=N({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null})}ngOnInit(){this.initCompletedOrders()}initCompletedOrders(){this.completedOrders$=this.completedService.getCompletedOrders(this.filter()).pipe(L(1))}static{this.\u0275fac=function(m){return new(m||n)}}static{this.\u0275cmp=F({type:n,selectors:[["app-completed"]],features:[R([T])],decls:34,vars:11,consts:[["headerTitle","Completed","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-2"],[1,"fa-regular","fa-tv","me-3"],[1,"fw-bold","mb-2"],[3,"ngModelChange","multiple","ngModel"],[1,"mt-5"],[1,"mb-4"],["name","From",3,"dateChange","date"],["name","To",3,"dateChange","date"],[1,"fw-bold"],["type","number","name","PageNumber",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],["type","number","name","PageSize",1,"w-100","mt-2","form-control",3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"d-flex","flex-column","justify-content-center","align-items-center",2,"margin-top","26vh"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","100px"],[2,"width","250px"],[1,"text-end",2,"width","150px"],[2,"width","150px"],["rowCountApi","/api/orders/completedcount",3,"next","previous","filter","totaldata"],[1,"lh-sm"],[1,"d-flex","align-items-end","gap-2"],[2,"width","14px","padding-bottom","2.5px",3,"src","alt"],[2,"font-size","14px",3,"order"],[3,"variants"],[3,"variant"],[1,"text-end"]],template:function(m,o){if(m&1){let p=V();A(0),w(1,"async"),t(2,"mainpanel",0),M("onSubmit",function(){return d(p),s(o.initCompletedOrders())}),g("textChange",function(r){return d(p),_(o.filter().Number,r)||(o.filter().Number=r),s(r)}),t(3,"actions")(4,"a",1),u(5,"i",2),t(6,"span"),a(7,"Order Fulfillment Display"),i()()(),t(8,"filters")(9,"div")(10,"label",3),a(11,"From/To"),i(),t(12,"channel-select-options",4),g("ngModelChange",function(r){return d(p),_(o.filter().ListChannelID,r)||(o.filter().ListChannelID=r),s(r)}),i()(),t(13,"div",5)(14,"label",3),a(15,"From/To"),i(),t(16,"div",6)(17,"datepicker",7),g("dateChange",function(r){return d(p),_(o.filter().From,r)||(o.filter().From=r),s(r)}),i()(),t(18,"div")(19,"datepicker",8),g("dateChange",function(r){return d(p),_(o.filter().To,r)||(o.filter().To=r),s(r)}),i()()(),t(20,"div",5)(21,"label",9),a(22,"Page Number"),i(),t(23,"input",10),g("ngModelChange",function(r){return d(p),_(o.filter().PageNumber,r)||(o.filter().PageNumber=r),s(r)}),i()(),t(24,"div",5)(25,"label",9),a(26,"Page Size"),i(),t(27,"input",11),g("ngModelChange",function(r){return d(p),_(o.filter().PageSize,r)||(o.filter().PageSize=r),s(r)}),i()()(),t(28,"content")(29,"div",12)(30,"div",13)(31,"div",14),x(32,we,20,2,"div",15)(33,ye,2,0,"div",16),i()()()()()}if(m&2){let p=j(E(1,8,o.completedOrders$));l(2),f("text",o.filter().Number),l(10),c("multiple",!0),f("ngModel",o.filter().ListChannelID),l(5),f("date",o.filter().From),l(2),f("date",o.filter().To),l(4),f("ngModel",o.filter().PageNumber),l(4),f("ngModel",o.filter().PageSize),l(5),b((p==null?null:p.length)>0?32:33)}},dependencies:[Q,q,K,J,le,re,me,ae,ee,X,$,Y,Z,se,ce,ue,de,pe,oe,ne,Ce],encapsulation:2})}}return n})();export{Xe as CompletedComponent};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ne,b as ae,c as pe,d as se,e as ce,f as le}from"./chunk-
|
|
1
|
+
import{a as ne,b as ae,c as pe,d as se,e as ce,f as le}from"./chunk-VIMB2VWB.js";import{a as F}from"./chunk-K2GYNGBL.js";import"./chunk-B5VBBEEN.js";import{b as ie,c as re}from"./chunk-EH6HWI3G.js";import"./chunk-E3ROEHBW.js";import"./chunk-RECNBAEB.js";import"./chunk-AYPY47VM.js";import"./chunk-SM3P57SO.js";import{a as te,b as oe}from"./chunk-PAEIUO2F.js";import"./chunk-OZ7LWNOK.js";import"./chunk-ECRWEMEV.js";import"./chunk-LZCEM2PC.js";import"./chunk-V3NCYRCF.js";import{b as Y}from"./chunk-JXSBFTQM.js";import"./chunk-K5XRGNWG.js";import{m as Z,n as ee}from"./chunk-CLER2MX6.js";import{A as X,c as K,h as Q,m as U}from"./chunk-6QYD6NIJ.js";import"./chunk-ATZ475FN.js";import"./chunk-YCH6HHU3.js";import"./chunk-B73M3AMU.js";import{E as $,G as q,H,J,j,n as z}from"./chunk-M2FCTYGU.js";import{$b as v,$c as L,Gb as D,Gc as l,Hc as N,Ic as O,Kc as C,Lc as x,Mb as P,Mc as y,Nc as V,Qc as W,Ra as b,Rc as T,Sc as B,Yb as g,aa as R,ac as E,ad as A,dc as I,ea as G,ec as k,gc as M,hc as w,ic as n,jc as a,oc as _,pa as h,rb as p,tc as S,uc as f,ya as d,za as m}from"./chunk-B7KTCPKC.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var de=()=>({display:"d-flex"}),me=i=>({"border-end-0":i});function ue(i,u){if(i&1){let e=_();n(0,"div",18)(1,"div",19)(2,"p-checkbox",20),y("ngModelChange",function(t){let o=d(e).$implicit;return x(o.checked,t)||(o.checked=t),m(t)}),a(),n(3,"p",21),l(4),a()()()}if(i&2){let e=u.$implicit,r=u.$index,t=f().$implicit;E(B(8,me,r!==t.Roles.length-1)),g("pTooltip",e.Description),p(2),v(T(10,de)),g("binary",!0),C("ngModel",e.checked),p(2),O(" ",e.Name," ")}}function he(i,u){if(i&1){let e=_();n(0,"div",11)(1,"div",12)(2,"div",13)(3,"span",14),l(4),a(),n(5,"p-checkbox",15),S("onChange",function(t){let o=d(e).$implicit,s=f(2);return m(s.onPermissionGroupChange(t.checked,o.ID))}),a()()(),n(6,"div",16)(7,"div",11),M(8,ue,5,11,"div",17,k),a()()()}if(i&2){let e=u.$implicit;p(4),N(e.Name),p(),v(T(5,de)),g("binary",!0)("ngModel",e.checked),p(3),w(e==null?null:e.Roles)}}function ge(i,u){if(i&1&&(n(0,"div",9),M(1,he,10,6,"div",11,k),a()),i&2){let e=f();p(),w(e.roleOptions())}}var We=(()=>{class i{constructor(){this.groupService=h(F),this.activatedRoute=h($),this.toastr=h(Y),this.router=h(q),this.groupName=b(null),this.roleOptions=b([]),this.description=b(null),this.group$=this.activatedRoute.queryParams.pipe(R(e=>(this.groupID=e.ID,this.groupService.getGroupsForm(e.ID))),G(e=>{this.groupName.set(e.Group.Name),this.description.set(e.Group.Description),this.initRoleOptions(e.Options,e.RoleSelected)}))}initRoleOptions(e,r){e=e.map(t=>(t.Roles=t.Roles.map(o=>(o.checked=r.includes(o.ID),o)),t.checked=t.Roles.every(o=>o.checked),t)),this.roleOptions.set(e)}onPermissionGroupChange(e,r){this.roleOptions.update(t=>{let o=t.findIndex(s=>s.ID===r);return o!==-1&&(t[o].checked=e,t[o].Roles=t[o].Roles.map(s=>(s.checked=e,s))),[...t]})}onSubmit(){let e={Group:{ID:this.groupID,Name:this.groupName(),Description:this.description()},RoleSelected:this.getSelecedRoles()};this.groupService.submitGroup(e).subscribe({next:r=>{this.toastr.success("Group saved successfully","Success"),this.router.navigate(["/menu/users/groups"])}})}getSelecedRoles(){let e=[];return this.roleOptions().forEach(r=>{r.Roles.forEach(t=>{t.checked&&e.push(t.ID)})}),e}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275cmp=D({type:i,selectors:[["app-groups-form"]],features:[W([F])],decls:24,vars:8,consts:[["headerTitle","Groups Form",3,"headerTitle","hideSearchBox","hideSearchDropdown"],["routerLink","/menu/users/groups",1,"btn","btn-secondary","me-3"],[1,"btn","btn-success",3,"click"],[1,"container-fluid"],[1,"row","mt-8"],[1,"col-12"],["type","text","pInputText","","placeholder","Group Name",1,"w-100","form-control","rounded-1",2,"padding-top","12px","padding-bottom","12px","font-size","14px",3,"ngModelChange","ngModel"],["value","0"],["value","1"],[1,"d-flex","flex-column","row-gap-6","ps-8"],["pInputTextarea","","rows","10","placeholder","Description",1,"w-100","form-control","rounded-1",3,"ngModelChange","ngModel"],[1,"row"],[1,"col-2","border","d-flex","align-items-center","justify-content-between","border-end-0",2,"height","40px","background","#f6f6f6"],[1,"d-flex","justify-content-center","w-100","align-items-center","gap-4"],[1,"fs-5","w-100","text-center"],["size","small",3,"onChange","binary","ngModel"],[1,"col"],["tooltipPosition","top",1,"col-3","border","p-0","bg-white",2,"height","40px",3,"class","pTooltip"],["tooltipPosition","top",1,"col-3","border","p-0","bg-white",2,"height","40px",3,"pTooltip"],[1,"d-flex","h-100","align-items-center","gap-4","px-2"],["size","small",3,"ngModelChange","binary","ngModel"],[1,"fs-6","text-dark",2,"margin","0"]],template:function(r,t){if(r&1){let o=_();V(0),L(1,"async"),n(2,"mainpanel",0)(3,"actions")(4,"a",1),l(5," Cancel "),a(),n(6,"button",2),S("click",function(){return d(o),m(t.onSubmit())}),l(7,"Save"),a()(),n(8,"content")(9,"div",3)(10,"div",4)(11,"div",5)(12,"input",6),y("ngModelChange",function(c){return d(o),x(t.groupName,c)||(t.groupName=c),m(c)}),a()()(),n(13,"p-tabs",7)(14,"p-tablist")(15,"p-tab",7),l(16,"Permission"),a(),n(17,"p-tab",8),l(18,"Description"),a()(),n(19,"p-tabpanels")(20,"p-tabpanel",7),P(21,ge,3,0,"div",9),a(),n(22,"p-tabpanel",8)(23,"textarea",10),y("ngModelChange",function(c){return d(o),x(t.description,c)||(t.description=c),m(c)}),a()()()()()()()}if(r&2){let o=A(1,6,t.group$);p(2),g("headerTitle",t.groupName()?"Edit Group - "+t.groupName():"New Group Form")("hideSearchBox",!0)("hideSearchDropdown",!0),p(10),C("ngModel",t.groupName),p(9),I(o?21:-1),p(2),C("ngModel",t.description)}},dependencies:[z,j,ee,Z,le,ce,se,pe,ne,ae,X,K,Q,U,re,ie,oe,te,J,H],styles:["[_nghost-%COMP%] .p-checkbox{display:flex!important;--p-checkbox-checked-background: #0976b4;--p-checkbox-hover-border-color: #0976b4;--p-checkbox-checked-border-color: #0976b4;--p-checkbox-checked-hover-border-color: #0976b4;--p-checkbox-hover-border-color-background: #0669a2;--p-checkbox-checked-hover-background: #0976b4}[_nghost-%COMP%] .p-tabs{--p-tabs-tab-active-color: #555555;--p-tabs-tab-color: #0976b4}[_nghost-%COMP%] .p-tabs .p-tabpanels{padding-left:0!important}[_nghost-%COMP%] .p-tabs .p-tablist-active-bar{background-color:#555!important}[_nghost-%COMP%] .p-panel .p-panel-header{display:none!important}"],changeDetection:0})}}return i})();export{We as GroupsFormComponent};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as P,b as W,c as B}from"./chunk-
|
|
1
|
+
import{a as P,b as W,c as B}from"./chunk-WW22F76D.js";import{ha as N}from"./chunk-LZCEM2PC.js";import{e as x}from"./chunk-JXSBFTQM.js";import{A as j,h as E,m as D}from"./chunk-6QYD6NIJ.js";import{d as V,k as I,n as F}from"./chunk-M2FCTYGU.js";import{Fc as y,Gb as S,Ka as C,Kc as v,Lc as T,Mc as b,Rc as O,Sc as M,Yb as u,ea as g,ic as h,ja as c,jc as _,oa as d,oc as k,tc as f,v as m,xb as w,ya as p,za as l}from"./chunk-B7KTCPKC.js";var G=(()=>{class o{constructor(){}convertToCSV(e,t){let i;if(typeof e=="string")i=e;else{var n=typeof e=="object"?e:JSON.parse(e);i=this.transformToCSVStringFormat(n)}this.downloadCSV(i,t)}transformToCSVStringFormat(e){if(!e||!e.length)return;let t=",",i=Object.keys(e[0]);return e.map(a=>i.map(r=>{let s=a[r]===null||a[r]===void 0?"":a[r];return s=s instanceof Date?s.toLocaleString():s.toString().replace(/"/g,'""'),s.search(/("|,|\n)/g)>=0&&(s=`"${s}"`),s}).join(t)).join(`
|
|
2
2
|
`)}downloadCSV(e,t){var i=new Blob([e],{type:"text/csv;charset=utf8;"}),n=document.createElement("a");n.setAttribute("href",window.URL.createObjectURL(i)),n.setAttribute("download",t),document.body.appendChild(n),n.click(),document.body.removeChild(n)}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275prov=c({token:o,factory:o.\u0275fac,providedIn:"root"})}}return o})();var J=(()=>{class o{constructor(e,t){this.http=e,this.exportService=t}loadInitialPage(){return this.http.post("/api/ordersLoader/GetOrder",{})}getNewOrders(e){return this.http.post("/api/orders/GetNewOrder",e).pipe(m(t=>t.Data))}getTotalNewOrders(e,t,i){let n={ListChannelID:e,From:t,To:i};return this.http.post("/api/orders/GetCountNewOrder",n).pipe(m(a=>a.Count))}exportOrders(e,t){return this.http.post("api/Orders/ExportOrder",e).pipe(g(i=>{this.exportService.convertToCSV(i,t)}))}static{this.\u0275fac=function(t){return new(t||o)(d(x),d(G))}}static{this.\u0275prov=c({token:o,factory:o.\u0275fac})}}return o})();var R=o=>({"full-width":o}),U=()=>({standalone:!0}),ae=(()=>{class o{constructor(e){this.datePipe=e,this.fullWidth=!1,this.timeChange=new C}ngOnInit(){}onTimeChange(e){let t=null;e&&(t=this.datePipe.transform(e,"HH:mm")),this.timeChange.emit(t),this.onTimePickerChange()}onShowCalendar(){let e=document.getElementById("dropdown-filter");if(e){var t=new bootstrap.Dropdown(e);t&&(t._config.autoClose="inside")}}onTimePickerChange(){let e=document.getElementById("dropdown-filter");if(e){var t=new bootstrap.Dropdown(e);t&&(t._config.autoClose="outside")}}static{this.\u0275fac=function(t){return new(t||o)(w(I))}}static{this.\u0275cmp=S({type:o,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(t,i){if(t&1){let n=k();h(0,"p-datepicker",1,0),b("ngModelChange",function(r){return p(n),T(i.time,r)||(i.time=r),l(r)}),f("ngModelChange",function(r){return p(n),l(i.onTimeChange(r))})("onSelect",function(){return p(n),l(i.onShowCalendar())}),h(2,"p-footer")(3,"p-button",2),f("click",function(){return p(n),y(1).hideOverlay(),l(i.onShowCalendar())}),_()()()}t&2&&(u("ngClass",M(5,R,i.fullWidth))("baseZIndex",1100),v("ngModel",i.time),u("timeOnly",!0)("ngModelOptions",O(7,U)))},dependencies:[F,V,j,E,D,B,W,P,N],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}"]})}}return o})();export{J as a,ae as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as k}from"./chunk-G6X5CZ34.js";import{a as be}from"./chunk-H3IVI3LN.js";import{a as Ve}from"./chunk-XUL4LU4R.js";import{a as Te,b as De}from"./chunk-NS46QSCM.js";import{a as Me}from"./chunk-E6XWD6WX.js";import{b as ke,c as Ee}from"./chunk-EH6HWI3G.js";import"./chunk-OLOIQI4D.js";import"./chunk-IA6KOBDJ.js";import"./chunk-RECNBAEB.js";import"./chunk-SN4AOGQK.js";import"./chunk-SB7NWPDS.js";import"./chunk-AYPY47VM.js";import"./chunk-SM3P57SO.js";import{a as Y}from"./chunk-5DIRXS7I.js";import"./chunk-PAEIUO2F.js";import"./chunk-OZ7LWNOK.js";import"./chunk-ECRWEMEV.js";import"./chunk-LZCEM2PC.js";import{a as ue}from"./chunk-Z3ITXK3D.js";import"./chunk-V3NCYRCF.js";import{d as he,e as fe}from"./chunk-5JVEEL2T.js";import{c as de}from"./chunk-PW42BQIY.js";import{a as _e,b as ge,c as Ce}from"./chunk-SWQXSJ7O.js";import{b as Z}from"./chunk-JXSBFTQM.js";import"./chunk-K5XRGNWG.js";import{b as xe,c as te,d as ye,j as Se,k as ve,m as Ue,n as we}from"./chunk-CLER2MX6.js";import{A as H,b as me,h as q,m as j}from"./chunk-6QYD6NIJ.js";import"./chunk-ATZ475FN.js";import"./chunk-YCH6HHU3.js";import"./chunk-B73M3AMU.js";import{H as ce,J as pe,j as $,n as z}from"./chunk-M2FCTYGU.js";import{$b as K,$c as A,G as se,Gb as B,Gc as g,Hc as Q,Ic as D,Kb as le,Kc as U,Lc as w,Mb as f,Mc as M,Nc as O,Oc as N,Pc as C,Qc as W,Ra as S,Rc as X,Sc as ee,Yb as _,Z as E,ad as F,dc as v,ea as J,ec as V,gc as P,hc as I,ic as o,jc as s,kc as L,lc as b,mc as T,oc as y,pa as x,pb as ae,q as oe,rb as a,rd as R,tc as h,uc as l,v as G,ya as c,za as p}from"./chunk-B7KTCPKC.js";import"./chunk-EU2KAMEK.js";import{a as ne,b as re}from"./chunk-66YHNWRR.js";var ie=function(i){return i.ERROR="https://res.cloudinary.com/pos/image/upload/v1705387550/POS/Images/Cashier/globalerror.svg",i.UNAUTHORIZED="https://res.cloudinary.com/pos/image/upload/v1702547639/POS/Images/Dashboard/locked.svg",i.EMPTY_LIST="https://res.cloudinary.com/pos/image/upload/v1705388070/POS/Images/Cashier/globalnodata.svg",i.REMOVE="https://res.cloudinary.com/pos/image/upload/v1706156973/icons/globalerrorclear.svg",i}(ie||{});var Pe=()=>({display:"d-flex"});function Fe(i,m){if(i&1&&(o(0,"div",6),L(1,"img",9),o(2,"p",10),g(3," All users already migrated. "),s()()),i&2){let e=l();a(),_("src",e.emptyStateIcon,ae)}}function Re(i,m){if(i&1){let e=y();o(0,"div",14)(1,"p-checkBox",15),M("ngModelChange",function(t){let n=c(e).$implicit;return w(n.selected,t)||(n.selected=t),p(t)}),h("ngModelChange",function(){c(e);let t=l(2),n=C(0);return p(t.onUserCheckChange(n))}),s(),o(2,"label",16),g(3),s()()}if(i&2){let e=m.$implicit;a(),K(X(7,Pe)),_("binary",!0)("id",e.ID),U("ngModel",e.selected),a(),_("for",e.ID),a(),D(" ",e.Name," ")}}function Ge(i,m){if(i&1){let e=y();o(0,"div",11)(1,"p-checkBox",12),M("ngModelChange",function(t){c(e);let n=l();return w(n.isCheckAll,t)||(n.isCheckAll=t),p(t)}),h("ngModelChange",function(t){c(e);let n=l(),d=C(0);return p(n.onCheckAllChange(t,d))}),s(),o(2,"label",13),g(3," Check All "),s()(),P(4,Re,4,8,"div",14,V)}if(i&2){let e=l(),r=C(0);a(),K(X(4,Pe)),_("binary",!0),U("ngModel",e.isCheckAll),a(3),I(r)}}var Ie=(()=>{class i extends be{constructor(){super(),this.dialogRef=x(xe),this.data=x(te),this.userService=x(k),this.dialogData=x(te),this.toastr=x(Z),this.userGroups=R(()=>this.dialogData.userGroups||[]),this.availableUsers=R(()=>{let e=new Map;return this.dialogData.availableUsers.forEach(r=>e.set(r.ID,r)),e}),this.migrateLoader$=this.userService.getUserMigrateLoader().pipe(G(e=>e.Data),G(e=>e.filter(t=>this.availableUsers().has(t.ID)===!1)),G(e=>e.map(t=>(t.selected=!0,t))),E(1)),this.isCheckAll=S(!0),this.selectedGroup=S(null),this.emptyStateIcon=ie.EMPTY_LIST,this.config=new Se,this.config.title="Migrate Users",this.config.customWidth="600px"}ngAfterViewInit(){this.initTopPosition()}ngOnDestroy(){this.stopOverlayObserver()}onUserCheckChange(e){let r=e.every(t=>t.selected);this.isCheckAll.set(r)}onCheckAllChange(e,r){this.isCheckAll.set(e),r.forEach(t=>t.selected=e)}onClose(){this.dialogRef.close(!1)}onSubmit(e){let r=e.filter(n=>n.selected);if(r.length===0){this.toastr.error("Please select at least one user","Error");return}if(de.IsEmpty(this.selectedGroup())){this.toastr.error("Please select a user group","Error");return}let t={userIds:r.map(n=>n.ID),groupId:this.selectedGroup()};this.userService.migrateUser(t).subscribe(()=>{this.dialogRef.close(!0),this.toastr.success("Users migrated successfully","Success")})}onClickSelect(){setTimeout(()=>{this.adjustOverlayPosition()},0)}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275cmp=B({type:i,selectors:[["app-migrate-dialog"]],features:[W([k]),le],decls:15,vars:8,consts:[[3,"onClose","onCancel","onOk","config"],["content",""],[1,"row"],[1,"col","border-end"],[1,"modal-title","mb-8"],[1,"user-list-scroll","mt-5",2,"max-height","300x","overflow-y","auto","overflow-x","hidden","box-sizing","border-box"],[1,"d-flex","flex-column","align-items-center","mt-5"],[1,"col"],["optionLabel","Name","optionValue","ID","placeholder","Select a group","filterBy","Name","appendTo","body",1,"w-100",3,"click","ngModelChange","options","filter","ngModel"],["alt","No users found",2,"width","100px","height","100px",3,"src"],[1,"text-muted","mt-4","opacity-50",2,"margin-bottom","0px"],[1,"d-flex","w-100","align-items-center","mb-4"],["id","checkBoxAll",3,"ngModelChange","binary","ngModel"],["for","checkBoxAll",1,"ms-2"],[1,"d-flex","w-100","align-items-center","mb-3","ms-10"],[3,"ngModelChange","binary","id","ngModel"],[1,"ms-2",3,"for"]],template:function(r,t){if(r&1){let n=y();O(0),A(1,"async"),o(2,"modal-material",0),h("onClose",function(){return c(n),p(t.onClose())})("onCancel",function(){return c(n),p(t.onClose())})("onOk",function(){c(n);let u=C(0);return p(t.onSubmit(u))}),o(3,"div",1)(4,"div",2)(5,"div",3)(6,"h5",4),g(7,"Users from POS"),s(),o(8,"div",5),f(9,Fe,4,1,"div",6)(10,Ge,6,5),s()(),o(11,"div",7)(12,"h5",4),g(13,"Assign Group"),s(),o(14,"p-select",8),h("click",function(){return c(n),p(t.onClickSelect())}),M("ngModelChange",function(u){return c(n),w(t.selectedGroup,u)||(t.selectedGroup=u),p(u)}),s()()()()()}if(r&2){let n=N(F(1,5,t.migrateLoader$));a(2),_("config",t.config),a(7),v((n==null?null:n.length)===0?9:10),a(5),_("options",t.userGroups())("filter",!0),U("ngModel",t.selectedGroup)}},dependencies:[z,$,ve,H,q,j,ke,Me],styles:[".user-list-scroll[_ngcontent-%COMP%]{max-height:160px;overflow-y:auto;overflow-x:hidden;box-sizing:border-box}"]})}}return i})();var Le=i=>({ID:i});function Be(i,m){if(i&1){let e=y();o(0,"button",13),h("click",function(){c(e);let t=l(2),n=C(0);return p(t.onDeleteUser(n==null?null:n.Filter))}),L(1,"i",14),g(2),s()}if(i&2){let e,r=l(2);a(2),D(" Delete (",(e=r.selectedUsers())==null?null:e.length,") ")}}function We(i,m){if(i&1&&(b(0),f(1,Be,3,1,"button",12),T()),i&2){let e,r=l();a(),v(((e=r.selectedUsers())==null?null:e.length)>0?1:-1)}}function $e(i,m){if(i&1){let e=y();b(0),o(1,"button",15),h("click",function(){c(e);let t=l(),n=C(0),d=C(2);return p(t.onMigrateUser(n==null||n.Options==null?null:n.Options.Groups,d==null?null:d.Data))}),g(2," Migrate "),s(),T()}}function ze(i,m){i&1&&(b(0),o(1,"a",16),g(2," Invite "),s(),T())}function qe(i,m){if(i&1){let e=y();b(0),o(1,"th",17)(2,"div",18)(3,"input",19),h("change",function(t){c(e);let n=l(),d=C(2);return p(n.onCheckAllUser(t.target.checked,d==null?null:d.Data))}),s()()(),T()}}function je(i,m){if(i&1){let e=y();o(0,"div",18)(1,"input",23),M("ngModelChange",function(t){c(e);let n=l(2).$implicit;return w(n.checked,t)||(n.checked=t),p(t)}),h("ngModelChange",function(){c(e);let t=l(3),n=C(2);return p(t.onSelectUser(n==null?null:n.Data))}),s()()}if(i&2){let e=l(2).$implicit;a(),U("ngModel",e.checked)}}function He(i,m){if(i&1&&(b(0),o(1,"td"),f(2,je,2,1,"div",18),s(),T()),i&2){let e,r=l().$implicit,t=l();a(2),v(r.Name!==((e=t.currentLoginUser())==null?null:e.username)?2:-1)}}function Ye(i,m){if(i&1&&(o(0,"a",20),g(1),s()),i&2){let e=l().$implicit;_("queryParams",ee(2,Le,e.UserID)),a(),D(" ",e.Name," ")}}function Ze(i,m){if(i&1&&(o(0,"span"),g(1),s()),i&2){let e=l().$implicit;a(),Q(e.Name)}}function Je(i,m){if(i&1&&(o(0,"a",21),g(1),s()),i&2){let e=l().$implicit;_("queryParams",ee(2,Le,e.GroupID)),a(),D(" ",e.GroupName," ")}}function Ke(i,m){if(i&1&&(o(0,"span"),g(1),s()),i&2){let e=l().$implicit;a(),Q(e.GroupName)}}function Qe(i,m){if(i&1&&L(0,"p-chip",24),i&2){let e=m.$implicit;_("label",e.Name)("image",e.Logo)("alt",e.Name)}}function Xe(i,m){if(i&1&&P(0,Qe,1,3,"p-chip",24,V),i&2){let e=l().$implicit;I(e.Channels)}}function et(i,m){i&1&&(o(0,"span"),g(1,"All Channels"),s())}function tt(i,m){if(i&1&&(o(0,"tr"),f(1,He,3,1,"ng-container",3),o(2,"td"),f(3,Ye,2,4,"a",20)(4,Ze,2,1,"span"),s(),o(5,"td"),f(6,Je,2,4,"a",21)(7,Ke,2,1,"span"),s(),o(8,"td")(9,"div",22),f(10,Xe,2,0)(11,et,2,0,"span"),s()()()),i&2){let e=m.$implicit,r=l();a(),_("ngxPermissionsOnly",r.userDeleteRole),a(2),v(r.hasUserEditRole()?3:4),a(3),v(r.hasUserEditRole()?6:7),a(4),v((e.Channels==null?null:e.Channels.length)>0?10:11)}}function it(i,m){if(i&1){let e=y();o(0,"app-mat-paginator-no-count",25),h("next",function(){c(e);let t=l(),n=C(0);return p(t.onNextPage(n==null?null:n.Filter))})("previous",function(){c(e);let t=l(),n=C(0);return p(t.onPrevPage(n==null?null:n.Filter))}),s()}if(i&2){l();let e=C(0),r=C(2);_("filter",e==null?null:e.Filter)("totaldata",r==null||r.Data==null?null:r.Data.length)("paginationTotal",r==null?null:r.Count)("hasClicked",!0)}}var zt=(()=>{class i{constructor(){this.usersService=x(k),this.permissionService=x(_e),this.toastService=x(Z),this.dialog=x(ye),this.userInviteOptions=S([]),this.searchText=S(null),this.selectedGroup=S(null),this.userLoader$=this.usersService.getLoader().pipe(J(e=>{this.userInviteOptions.set(e.Options.Users),this.initUsers(e.Filter)}),E(1)),this.users$=oe({Count:0,Data:[]}),this.userAddRole=Y.UserAdd,this.userDeleteRole=Y.UserDelete,this.hasUserEditRole=S(!1),this.selectedUsers=S([]),this.currentLoginUser=R(()=>{let e=localStorage.getItem(ue.AUTHORIZATION);return e?JSON.parse(e):null}),this.permissionService.hasPermission(Y.UserEdit).then(e=>{this.hasUserEditRole.set(e)})}initUsers(e){let r=re(ne({},e),{Name:this.searchText(),GroupID:this.selectedGroup()});this.users$=this.usersService.getUsers(r).pipe(J(t=>this.filterUserInvtiteOptions(t.Data)),E(1))}filterUserInvtiteOptions(e){this.userInviteOptions.update(r=>r.filter(t=>e.findIndex(n=>n.UserID===t.ID)===-1))}onCheckAllUser(e,r){r.forEach(n=>{n.Name!==this.currentLoginUser()?.username&&(n.checked=e)});let t=r.filter(n=>n.checked);this.selectedUsers.set(t)}onSelectUser(e){let r=e.filter(t=>t.checked);this.selectedUsers.set(r)}onDeleteUser(e={PageNumber:1,PageSize:10}){let r=this.selectedUsers().map(n=>n.UserID);confirm("Are you sure you want to delete selected users?")&&this.usersService.deleteUsers(r).subscribe(()=>{this.selectedUsers.set([]),this.toastService.success("User deleted successfully","Success"),this.initUsers(e)})}onMigrateUser(e,r){this.dialog.open(Ie,{data:{userGroups:e,availableUsers:r}}).afterClosed().pipe(se(t=>t===!0)).subscribe(()=>{this.initUsers({PageNumber:1,PageSize:10})})}onNextPage(e){e.PageNumber+=1,this.initUsers(e)}onPrevPage(e){e.PageNumber-=1,this.initUsers(e)}onSuccessUpdateUser(e){e.PageNumber=1,this.initUsers(e)}static{this.\u0275fac=function(r){return new(r||i)}}static{this.\u0275cmp=B({type:i,selectors:[["app-users"]],features:[W([k])],decls:33,vars:17,consts:[["headerTitle","Users","description","Manage your users and their permissions",3,"textChange","onSubmit","text"],[1,"fw-bold","mb-2"],["appendTo","body","bindLabel","Name","name","Name","bindValue","ID","placeholder","Select Group",1,"center-text",3,"ngModelChange","clearable","items","ngModel"],[4,"ngxPermissionsOnly"],[1,"container-fluid"],[1,"row","mt-6"],[1,"col-12"],[1,"table"],[1,"thead-light","sticky-top-thead"],[2,"width","15%"],[3,"filter","totaldata","paginationTotal","hasClicked"],[3,"onSuccessUpdateUser","groups","users"],[1,"btn","btn-danger","me-3"],[1,"btn","btn-danger","me-3",3,"click"],[1,"fa","fa-trash","me-1"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["role","button","routerLink","/menu/users/users/form",1,"btn","btn-success"],[2,"width","5px"],[1,"d-flex"],["name","selectAll","type","checkbox",3,"change"],["routerLink","/menu/users/users/info",3,"queryParams"],["routerLink","/menu/users/groups/info",3,"queryParams"],[1,"lh-base"],["type","checkbox",3,"ngModelChange","ngModel"],[1,"me-3","mb-3",2,"--p-chip-image-width","1.2rem","--p-chip-image-height","1.2rem","--p-chip-padding-x","1rem","--p-chip-padding-y","0.5rem","--p-chip-border-radius","0.5rem","--p-chip-font-size","1.2rem",3,"label","image","alt"],[3,"next","previous","filter","totaldata","paginationTotal","hasClicked"]],template:function(r,t){if(r&1){let n=y();O(0),A(1,"async"),O(2),A(3,"async"),o(4,"mainpanel",0),M("textChange",function(u){return c(n),w(t.searchText,u)||(t.searchText=u),p(u)}),h("onSubmit",function(){c(n);let u=C(0);return p(t.initUsers(u==null?null:u.Filter))}),o(5,"filters")(6,"div")(7,"label",1),g(8,"Group"),s(),o(9,"ng-select",2),M("ngModelChange",function(u){return c(n),w(t.selectedGroup,u)||(t.selectedGroup=u),p(u)}),s()()(),o(10,"actions"),f(11,We,2,1,"ng-container",3)(12,$e,3,0,"ng-container",3)(13,ze,3,0,"ng-container",3),s(),o(14,"content")(15,"div",4)(16,"div",5)(17,"div",6)(18,"table",7)(19,"thead",8)(20,"tr"),f(21,qe,4,0,"ng-container",3),o(22,"th",9),g(23,"Login ID"),s(),o(24,"th",9),g(25,"Group"),s(),o(26,"th"),g(27,"Channel"),s()()(),o(28,"tbody"),P(29,tt,12,4,"tr",null,V),s()(),f(31,it,1,4,"app-mat-paginator-no-count",10),s()()()()(),o(32,"invite-group",11),h("onSuccessUpdateUser",function(){c(n);let u=C(0);return p(t.onSuccessUpdateUser(u==null?null:u.Filter))}),s()}if(r&2){let n=N(F(1,11,t.userLoader$));a(2);let d=N(F(3,14,t.users$));a(2),U("text",t.searchText),a(5),_("clearable",!0)("items",n==null||n.Options==null?null:n.Options.Groups),U("ngModel",t.selectedGroup),a(2),_("ngxPermissionsOnly",t.userDeleteRole),a(),_("ngxPermissionsOnly",t.userAddRole),a(),_("ngxPermissionsOnly",t.userAddRole),a(8),_("ngxPermissionsOnly",t.userDeleteRole),a(8),I(d==null?null:d.Data),a(2),v(n?31:-1),a(),_("groups",n==null||n.Options==null?null:n.Options.Groups)("users",t.userInviteOptions())}},dependencies:[z,$,we,Ue,pe,ce,Ve,Ce,ge,fe,he,H,me,q,j,Ee,De,Te],encapsulation:2})}}return i})();export{zt as UsersComponent};
|