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 G,b as J}from"./chunk-TDCMI7YC.js";import"./chunk-HPINZVE4.js";import"./chunk-ONU4O7N2.js";import"./chunk-N5AE5WMQ.js";import{b as H,e as q}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import{m as z,n as L}from"./chunk-UI5ITL7Z.js";import{A as W,h as P,m as j}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-SILAIDPV.js";import"./chunk-3I2V337G.js";import{f as R,i as $,m as A}from"./chunk-LNJUGHOX.js";import{Gb as E,Ha as O,Mb as f,Mc as h,Oc as y,Qc as V,Rc as B,Sc as D,Z as F,Zc as N,cc as I,ec as k,fc as T,gc as l,hc as a,hd as S,ic as c,id as v,ma as M,nb as s,nc as _,oc as C,qc as g,ra as m,vc as x,xa as d,xc as p,ya as u}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var w=(()=>{let t=class t{constructor(){this.httpService=m(q)}getClearCacheOptions$(){return this.httpService.get("/api/channelloader/OptionClearCache")}flushCache(o){return this.httpService.post("/api/Channel/RemoveCacheByRequest",o)}};t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=M({token:t,factory:t.\u0275fac});let i=t;return i})();function Q(i,t){if(i&1){let r=g();_(0),a(1,"button",10),x("click",function(){let e=d(r).ngIf,n=p();return u(n.onFlushCache(e))}),h(2," Flush Cache "),c(),C()}if(i&2){let r,o=p();s(),l("disabled",((r=o.selectedOptions())==null?null:r.length)==0)}}function U(i,t){if(i&1){let r=g();_(0),a(1,"mat-checkbox",11),x("change",function(e){let n=d(r).ngIf,b=p();return u(b.onSelectAll(e.checked,n))}),c(),C()}}function X(i,t){if(i&1){let r=g();a(0,"tr")(1,"td")(2,"div")(3,"mat-checkbox",12),D("ngModelChange",function(e){let n=d(r).$implicit;return B(n.selected,e)||(n.selected=e),u(e)}),x("ngModelChange",function(){d(r);let e=p().ngIf,n=p();return u(n.onSelectOption(e))}),c()()(),a(4,"td"),h(5),c(),a(6,"td")(7,"div",13),h(8),c()()()}if(i&2){let r=t.$implicit;s(3),V("ngModel",r.selected),s(2),y(" ",r.Name," "),s(3),y(" ",r.Description," ")}}function Y(i,t){if(i&1&&(_(0),k(1,X,9,3,"tr",null,I),C()),i&2){let r=t.ngIf;s(),T(r)}}var Ce=(()=>{let t=class t{constructor(){this.flushCacheService=m(w),this.toastr=m(H),this.clearCacheOptions$=this.flushCacheService.getClearCacheOptions$().pipe(F(1)),this.selectedOptions=O([])}onFlushCache(o){confirm("Are you sure you want to flush the cache?")&&this.flushCacheService.flushCache(this.selectedOptions()).subscribe(n=>{this.toastr.success(n.Message,"Successfully flushed the cache"),o.forEach(b=>b.selected=!1)})}onSelectAll(o,e){e.forEach(n=>n.selected=o),this.onSelectOption(e)}onSelectOption(o){let e=o.filter(n=>n.selected).map(n=>n.ID);this.selectedOptions.set(e)}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=E({type:t,selectors:[["app-flush-cache"]],features:[N([w])],decls:22,vars:11,consts:[["headerTitle","Flush Cache",3,"hideSearchBox","hideSearchDropdown"],[4,"ngIf"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-12"],[1,"table-responsive"],[1,"table","table-hover"],[1,"table-light"],[2,"width","20px"],[2,"width","300px"],[1,"btn","btn-success","btn-lg","text-success","me-2",3,"click","disabled"],["color","primary",2,"margin-bottom","-5px","margin-top","-5px",3,"change"],["color","primary",2,"margin-bottom","-5px","margin-top","-5px",3,"ngModelChange","ngModel"],[1,"text-capitalize"]],template:function(e,n){e&1&&(a(0,"mainpanel",0)(1,"actions"),f(2,Q,3,1,"ng-container",1),S(3,"async"),c(),a(4,"content")(5,"div",2)(6,"div",3)(7,"div",4)(8,"div",5)(9,"table",6)(10,"thead")(11,"tr",7)(12,"th",8),f(13,U,2,0,"ng-container",1),S(14,"async"),c(),a(15,"th",9),h(16,"Cache"),c(),a(17,"th"),h(18,"Description"),c()()(),a(19,"tbody"),f(20,Y,3,0,"ng-container",1),S(21,"async"),c()()()()()()()()),e&2&&(l("hideSearchBox",!0)("hideSearchDropdown",!0),s(2),l("ngIf",v(3,5,n.clearCacheOptions$)),s(11),l("ngIf",v(14,7,n.clearCacheOptions$)),s(7),l("ngIf",v(21,9,n.clearCacheOptions$)))},dependencies:[A,R,L,z,J,G,W,P,j,$],encapsulation:2});let i=t;return i})();export{Ce as FlushCacheComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as E}from"./chunk-DYQ3BWPB.js";import{a as Ie}from"./chunk-6ZEQRKBC.js";import{a as J}from"./chunk-ZSUWHVKX.js";import{d as xe,e as ve}from"./chunk-6KWG6O5L.js";import{a as De,c as Te}from"./chunk-3JRUKSV3.js";import"./chunk-4RLWHMI6.js";import"./chunk-AFDI4TD4.js";import{b as Ve,c as Pe}from"./chunk-4RG5YR7N.js";import"./chunk-5MV3UFJQ.js";import{b as ke,c as Ee}from"./chunk-E6AMKEQR.js";import"./chunk-IGKMJFKP.js";import"./chunk-ITGVXYDV.js";import"./chunk-HK5FXZE4.js";import"./chunk-KJE5GRQ4.js";import"./chunk-4ILDFTIG.js";import{a as ge}from"./chunk-QXRG5XYP.js";import"./chunk-M4ZE35XK.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import"./chunk-5PMKN6PM.js";import"./chunk-YJTPDV4D.js";import{b as K}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import{c as _e}from"./chunk-BLHKSSK6.js";import{b as ye,c as ne,d as Se,j as Ue,k as Me,m as we,n as be}from"./chunk-UI5ITL7Z.js";import{A as Z,b as ue,h as H,m as Y}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import{a as Ce,b as he,c as fe}from"./chunk-ZETUYNFJ.js";import"./chunk-SILAIDPV.js";import"./chunk-3I2V337G.js";import{G as pe,I as de,i as q,m as j}from"./chunk-LNJUGHOX.js";import{$b as S,$c as ie,G as le,Gb as W,Ha as y,Kb as me,Kc as X,Mb as $,Mc as g,Nc as ee,Oc as k,Qc as M,Rc as w,Sc as b,Tc as O,Uc as A,Vc as C,Z as V,Zc as z,_c as te,bc as U,cc as P,ea as Q,ec as I,fc as L,gc as _,hc as s,hd as F,ic as l,id as G,jc as N,lb as ce,nb as c,nc as D,oc as T,od as R,q as ae,qc as v,ra as x,v as B,vc as h,xa as p,xc as m,ya as d}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import{a as oe,b as se}from"./chunk-66YHNWRR.js";var re=(function(i){return i.ERROR="https://resc.cloudinary.com/pos/image/upload/v1705387550/POS/Images/Cashier/globalerror.svg",i.UNAUTHORIZED="https://resc.cloudinary.com/pos/image/upload/v1702547639/POS/Images/Dashboard/locked.svg",i.EMPTY_LIST="https://resc.cloudinary.com/pos/image/upload/v1705388070/POS/Images/Cashier/globalnodata.svg",i.REMOVE="https://resc.cloudinary.com/pos/image/upload/v1706156973/icons/globalerrorclear.svg",i})(re||{});var Le=()=>({display:"d-flex"});function Re(i,a){if(i&1&&(s(0,"div",6),N(1,"img",9),s(2,"p",10),g(3," All users already migrated. "),l()()),i&2){let r=m();c(),_("src",r.emptyStateIcon,ce)}}function Be(i,a){if(i&1){let r=v();s(0,"div",14)(1,"p-checkBox",15),b("ngModelChange",function(n){let e=p(r).$implicit;return w(e.selected,n)||(e.selected=n),d(n)}),h("ngModelChange",function(){p(r);let n=m(2),e=C(0);return d(n.onUserCheckChange(e))}),l(),s(2,"label",16),g(3),l()()}if(i&2){let r=a.$implicit;c(),X(te(7,Le)),_("binary",!0)("id",r.ID),M("ngModel",r.selected),c(),_("for",r.ID),c(),k(" ",r.Name," ")}}function We(i,a){if(i&1){let r=v();s(0,"div",11)(1,"p-checkBox",12),b("ngModelChange",function(n){p(r);let e=m();return w(e.isCheckAll,n)||(e.isCheckAll=n),d(n)}),h("ngModelChange",function(n){p(r);let e=m(),o=C(0);return d(e.onCheckAllChange(n,o))}),l(),s(2,"label",13),g(3," Check All "),l()(),I(4,Be,4,8,"div",14,P)}if(i&2){let r=m(),t=C(0);c(),X(te(4,Le)),_("binary",!0),M("ngModel",r.isCheckAll),c(3),L(t)}}var Ne=(()=>{let a=class a extends Te{constructor(){super(),this.dialogRef=x(ye),this.data=x(ne),this.userService=x(E),this.dialogData=x(ne),this.toastr=x(K),this.userGroups=R(()=>this.dialogData.userGroups||[]),this.availableUsers=R(()=>{let t=new Map;return this.dialogData.availableUsers.forEach(n=>t.set(n.ID,n)),t}),this.migrateLoader$=this.userService.getUserMigrateLoader().pipe(B(t=>t.Data),B(t=>t.filter(e=>this.availableUsers().has(e.ID)===!1)),B(t=>t.map(e=>(e.selected=!0,e))),V(1)),this.isCheckAll=y(!0),this.selectedGroup=y(null),this.emptyStateIcon=re.EMPTY_LIST,this.config=new Ue,this.config.title="Migrate Users",this.config.customWidth="600px"}ngAfterViewInit(){this.initTopPosition()}ngOnDestroy(){this.stopOverlayObserver()}onUserCheckChange(t){let n=t.every(e=>e.selected);this.isCheckAll.set(n)}onCheckAllChange(t,n){this.isCheckAll.set(t),n.forEach(e=>e.selected=t)}onClose(){this.dialogRef.close(!1)}onSubmit(t){let n=t.filter(o=>o.selected);if(n.length===0){this.toastr.error("Please select at least one user","Error");return}if(_e.IsEmpty(this.selectedGroup())){this.toastr.error("Please select a user group","Error");return}let e={userIds:n.map(o=>o.ID),groupId:this.selectedGroup()};this.userService.migrateUser(e).subscribe(()=>{this.dialogRef.close(!0),this.toastr.success("Users migrated successfully","Success")})}onClickSelect(){setTimeout(()=>{this.adjustOverlayPosition()},0)}};a.\u0275fac=function(n){return new(n||a)},a.\u0275cmp=W({type:a,selectors:[["app-migrate-dialog"]],features:[z([E]),me],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(n,e){if(n&1){let o=v();O(0),F(1,"async"),s(2,"modal-material",0),h("onClose",function(){return p(o),d(e.onClose())})("onCancel",function(){return p(o),d(e.onClose())})("onOk",function(){p(o);let u=C(0);return d(e.onSubmit(u))}),s(3,"div",1)(4,"div",2)(5,"div",3)(6,"h5",4),g(7,"Users from POS"),l(),s(8,"div",5),S(9,Re,4,1,"div",6)(10,We,6,5),l()(),s(11,"div",7)(12,"h5",4),g(13,"Assign Group"),l(),s(14,"p-select",8),h("click",function(){return p(o),d(e.onClickSelect())}),b("ngModelChange",function(u){return p(o),w(e.selectedGroup,u)||(e.selectedGroup=u),d(u)}),l()()()()()}if(n&2){let o=A(G(1,5,e.migrateLoader$));c(2),_("config",e.config),c(7),U((o==null?null:o.length)===0?9:10),c(5),_("options",e.userGroups())("filter",!0),M("ngModel",e.selectedGroup)}},dependencies:[j,Me,Z,H,Y,ke,De,q],styles:[".user-list-scroll[_ngcontent-%COMP%]{max-height:160px;overflow-y:auto;overflow-x:hidden;box-sizing:border-box}"]});let i=a;return i})();var Oe=i=>({ID:i});function $e(i,a){if(i&1){let r=v();s(0,"button",13),h("click",function(){p(r);let n=m(2),e=C(0);return d(n.onDeleteUser(e==null?null:e.Filter))}),N(1,"i",14),g(2),l()}if(i&2){let r,t=m(2);c(2),k(" Delete (",(r=t.selectedUsers())==null?null:r.length,") ")}}function ze(i,a){if(i&1&&(D(0),S(1,$e,3,1,"button",12),T()),i&2){let r,t=m();c(),U(((r=t.selectedUsers())==null?null:r.length)>0?1:-1)}}function qe(i,a){if(i&1){let r=v();D(0),s(1,"button",15),h("click",function(){p(r);let n=m(),e=C(0),o=C(2);return d(n.onMigrateUser(e==null||e.Options==null?null:e.Options.Groups,o==null?null:o.Data))}),g(2," Migrate "),l(),T()}}function je(i,a){i&1&&(D(0),s(1,"a",16),g(2," Invite "),l(),T())}function He(i,a){if(i&1){let r=v();D(0),s(1,"th",17)(2,"div",18)(3,"input",19),h("change",function(n){p(r);let e=m(),o=C(2);return d(e.onCheckAllUser(n.target.checked,o==null?null:o.Data))}),l()()(),T()}}function Ye(i,a){if(i&1){let r=v();s(0,"div",18)(1,"input",23),b("ngModelChange",function(n){p(r);let e=m(2).$implicit;return w(e.checked,n)||(e.checked=n),d(n)}),h("ngModelChange",function(){p(r);let n=m(3),e=C(2);return d(n.onSelectUser(e==null?null:e.Data))}),l()()}if(i&2){let r=m(2).$implicit;c(),M("ngModel",r.checked)}}function Ze(i,a){if(i&1&&(D(0),s(1,"td"),S(2,Ye,2,1,"div",18),l(),T()),i&2){let r,t=m().$implicit,n=m();c(2),U(t.Name!==((r=n.currentLoginUser())==null?null:r.username)?2:-1)}}function Je(i,a){if(i&1&&(s(0,"a",20),g(1),l()),i&2){let r=m().$implicit;_("queryParams",ie(2,Oe,r.UserID)),c(),k(" ",r.Name," ")}}function Ke(i,a){if(i&1&&(s(0,"span"),g(1),l()),i&2){let r=m().$implicit;c(),ee(r.Name)}}function Qe(i,a){if(i&1&&(s(0,"a",21),g(1),l()),i&2){let r=m().$implicit;_("queryParams",ie(2,Oe,r.GroupID)),c(),k(" ",r.GroupName," ")}}function Xe(i,a){if(i&1&&(s(0,"span"),g(1),l()),i&2){let r=m().$implicit;c(),ee(r.GroupName)}}function et(i,a){if(i&1&&N(0,"p-chip",24),i&2){let r=a.$implicit;_("label",r.Name)("image",r.Logo)("alt",r.Name)}}function tt(i,a){if(i&1&&I(0,et,1,3,"p-chip",24,P),i&2){let r=m().$implicit;L(r.Channels)}}function it(i,a){i&1&&(s(0,"span"),g(1,"All Channels"),l())}function nt(i,a){if(i&1&&(s(0,"tr"),$(1,Ze,3,1,"ng-container",3),s(2,"td"),S(3,Je,2,4,"a",20)(4,Ke,2,1,"span"),l(),s(5,"td"),S(6,Qe,2,4,"a",21)(7,Xe,2,1,"span"),l(),s(8,"td")(9,"div",22),S(10,tt,2,0)(11,it,2,0,"span"),l()()()),i&2){let r=a.$implicit,t=m();c(),_("ngxPermissionsOnly",t.userDeleteRole),c(2),U(t.hasUserEditRole()?3:4),c(3),U(t.hasUserEditRole()?6:7),c(4),U((r.Channels==null?null:r.Channels.length)>0?10:11)}}function rt(i,a){if(i&1){let r=v();s(0,"app-mat-paginator-no-count",25),h("next",function(){p(r);let n=m(),e=C(0);return d(n.onNextPage(e==null?null:e.Filter))})("previous",function(){p(r);let n=m(),e=C(0);return d(n.onPrevPage(e==null?null:e.Filter))}),l()}if(i&2){m();let r=C(0),t=C(2);_("filter",r==null?null:r.Filter)("totaldata",t==null||t.Data==null?null:t.Data.length)("paginationTotal",t==null?null:t.Count)("hasClicked",!0)("alwaysShowNextButton",!0)}}var jt=(()=>{let a=class a{constructor(){this.usersService=x(E),this.permissionService=x(Ce),this.toastService=x(K),this.dialog=x(Se),this.userInviteOptions=y([]),this.searchText=y(null),this.selectedGroup=y(null),this.userLoader$=this.usersService.getLoader().pipe(Q(t=>{this.userInviteOptions.set(t.Options.Users),this.initUsers(t.Filter)}),V(1)),this.users$=ae({Count:0,Data:[]}),this.userAddRole=J.UserInvite,this.userDeleteRole=J.UserDelete,this.hasUserEditRole=y(!1),this.selectedUsers=y([]),this.currentLoginUser=R(()=>{let t=localStorage.getItem(ge.AUTHORIZATION);return t?JSON.parse(t):null}),this.permissionService.hasPermission(J.UserEdit).then(t=>{this.hasUserEditRole.set(t)})}initUsers(t){let n=se(oe({},t),{Name:this.searchText(),GroupID:this.selectedGroup()});this.users$=this.usersService.getUsers(n).pipe(Q(e=>this.filterUserInvtiteOptions(e.Data)),V(1))}filterUserInvtiteOptions(t){this.userInviteOptions.update(n=>n.filter(e=>t.findIndex(o=>o.UserID===e.ID)===-1))}onCheckAllUser(t,n){n.forEach(o=>{o.Name!==this.currentLoginUser()?.username&&(o.checked=t)});let e=n.filter(o=>o.checked);this.selectedUsers.set(e)}onSelectUser(t){let n=t.filter(e=>e.checked);this.selectedUsers.set(n)}onDeleteUser(t={PageNumber:1,PageSize:10}){let n=this.selectedUsers().map(o=>o.UserID);confirm("Are you sure you want to delete selected users?")&&this.usersService.deleteUsers(n).subscribe(()=>{this.selectedUsers.set([]),this.toastService.success("User deleted successfully","Success"),this.initUsers(t)})}onMigrateUser(t,n){this.dialog.open(Ne,{data:{userGroups:t,availableUsers:n}}).afterClosed().pipe(le(e=>e===!0)).subscribe(()=>{this.initUsers({PageNumber:1,PageSize:10})})}onNextPage(t){t.PageNumber+=1,this.initUsers(t)}onPrevPage(t){t.PageNumber-=1,this.initUsers(t)}onSuccessUpdateUser(t){t.PageNumber=1,this.initUsers(t)}};a.\u0275fac=function(n){return new(n||a)},a.\u0275cmp=W({type:a,selectors:[["app-users"]],features:[z([E])],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","alwaysShowNextButton"],[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","alwaysShowNextButton"]],template:function(n,e){if(n&1){let o=v();O(0),F(1,"async"),O(2),F(3,"async"),s(4,"mainpanel",0),b("textChange",function(u){return p(o),w(e.searchText,u)||(e.searchText=u),d(u)}),h("onSubmit",function(){p(o);let u=C(0);return d(e.initUsers(u==null?null:u.Filter))}),s(5,"filters")(6,"div")(7,"label",1),g(8,"Group"),l(),s(9,"ng-select",2),b("ngModelChange",function(u){return p(o),w(e.selectedGroup,u)||(e.selectedGroup=u),d(u)}),l()()(),s(10,"actions"),$(11,ze,2,1,"ng-container",3)(12,qe,3,0,"ng-container",3)(13,je,3,0,"ng-container",3),l(),s(14,"content")(15,"div",4)(16,"div",5)(17,"div",6)(18,"table",7)(19,"thead",8)(20,"tr"),$(21,He,4,0,"ng-container",3),s(22,"th",9),g(23,"Login ID"),l(),s(24,"th",9),g(25,"Group"),l(),s(26,"th"),g(27,"Channel"),l()()(),s(28,"tbody"),I(29,nt,12,4,"tr",null,P),l()(),S(31,rt,1,5,"app-mat-paginator-no-count",10),l()()()()(),s(32,"invite-group",11),h("onSuccessUpdateUser",function(){p(o);let u=C(0);return d(e.onSuccessUpdateUser(u==null?null:u.Filter))}),l()}if(n&2){let o=A(G(1,11,e.userLoader$));c(2);let f=A(G(3,14,e.users$));c(2),M("text",e.searchText),c(5),_("clearable",!0)("items",o==null||o.Options==null?null:o.Options.Groups),M("ngModel",e.selectedGroup),c(2),_("ngxPermissionsOnly",e.userDeleteRole),c(),_("ngxPermissionsOnly",e.userAddRole),c(),_("ngxPermissionsOnly",e.userAddRole),c(8),_("ngxPermissionsOnly",e.userDeleteRole),c(8),L(f==null?null:f.Data),c(2),U(o?31:-1),c(),_("groups",o==null||o.Options==null?null:o.Options.Groups)("users",e.userInviteOptions())}},dependencies:[j,be,we,de,pe,Ie,fe,he,ve,xe,Z,ue,H,Y,Ee,Pe,Ve,q],encapsulation:2});let i=a;return i})();export{jt as UsersComponent};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{b as k,c as M}from"./chunk-ZETUYNFJ.js";import{w as D}from"./chunk-SILAIDPV.js";import{G as E,H as N,I as P,f as y,m as S}from"./chunk-LNJUGHOX.js";import{Gb as T,Hb as C,Hc as b,Mb as c,Mc as d,Oc as v,cc as l,ec as p,fc as f,gc as o,hc as a,ic as s,kd as I,na as g,nb as n,nc as u,oc as _,xc as m}from"./chunk-ZYJ6LAJ3.js";function O(e,t){if(e&1&&(u(0),a(1,"li",4)(2,"a",5),d(3),s()(),_()),e&2){let i=m().$implicit;n(2),o("routerLink",i.Url)("title",i.Description?i.Description:""),n(),v(" ",i.Title," ")}}function R(e,t){if(e&1&&c(0,O,4,3,"ng-container",3),e&2){let i=t.$implicit;o("ngxPermissionsOnly",i.Permissions)}}function F(e,t){if(e&1&&(u(0),p(1,R,1,1,"ng-container",null,l),_()),e&2){let i=m();n(),f(i.Tabs)}}function w(e,t){if(e&1&&(a(0,"li",4)(1,"a",5),d(2),s()()),e&2){let i=t.$implicit;n(),o("routerLink",i.Url)("title",i.Description?i.Description:""),n(),v(" ",i.Title," ")}}function U(e,t){if(e&1&&p(0,w,3,3,"li",4,l),e&2){let i=m();f(i.Tabs)}}var J=(()=>{let t=class t{constructor(){this.usePermissions=!1}};t.\u0275fac=function(r){return new(r||t)},t.\u0275cmp=T({type:t,selectors:[["nav-tab"]],inputs:{Tabs:"Tabs",usePermissions:"usePermissions"},standalone:!1,decls:4,vars:2,consts:[["NOT_USE_PERMISSIONS",""],[1,"nav","navbar-nav","navbar-left","nav-tab-arrow"],[4,"ngIf","ngIfElse"],[4,"ngxPermissionsOnly"],["routerLinkActive","active",1,"nav-item","me-6"],[1,"nav-link","nav-link-arrow","mb-0",3,"routerLink","title"]],template:function(r,h){if(r&1&&(a(0,"ul",1),c(1,F,3,0,"ng-container",2)(2,U,2,0,"ng-template",null,0,I),s()),r&2){let L=b(3);n(),o("ngIf",h.usePermissions)("ngIfElse",L)}},dependencies:[y,E,N,k],encapsulation:2});let e=t;return e})(),K=(()=>{let t=class t{};t.\u0275fac=function(r){return new(r||t)},t.\u0275mod=C({type:t}),t.\u0275inj=g({imports:[S,P,D,M]});let e=t;return e})();export{J as a,K as b};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as y}from"./chunk-4VNQYYVV.js";import{h}from"./chunk-5O33CV4F.js";import{b as C,d as M,i as v,j as x,k as S}from"./chunk-UI5ITL7Z.js";import{F as u,m as g}from"./chunk-LNJUGHOX.js";import{Gb as d,Mc as t,gc as f,hc as n,ic as r,jc as c,ma as m,ra as o,vc as p}from"./chunk-ZYJ6LAJ3.js";var R=(()=>{let e=class e{constructor(){this.dialogRef=o(C),this.route=o(u),this.modalConfig=new x,this.modalConfig.title="Switch to modern authorization",this.modalConfig.customWidth="450px",this.modalConfig.hideCancel=!0,this.modalConfig.headerType=v.Warning,this.modalConfig.okText="Setup"}onClose(){this.dialogRef.close()}onOk(){this.dialogRef.close(),this.route.navigate(["/menu/users"])}};e.\u0275fac=function(a){return new(a||e)},e.\u0275cmp=d({type:e,selectors:[["app-modal-user-migration-confirmation"]],decls:19,vars:1,consts:[[3,"onOk","onCancel","config"],["content",""],[1,"d-flex","align-items-center","justify-content-between","gap-6"],[1,"text-center",2,"width","300px"],[1,"fa-solid","fa-users-gear","fa-6x"],[1,"lh-base"],["href","https://support.dealpos.com/en/articles/12636364-how-to-migrate-user-in-dealpos-omnichannel","target","_blank"]],template:function(a,s){a&1&&(n(0,"modal-material",0),p("onOk",function(){return s.onOk()})("onCancel",function(){return s.onClose()}),n(1,"div",1)(2,"div",2)(3,"div",3),c(4,"i",4),r(),n(5,"div",5)(6,"p"),t(7," We have introduced a new Modern Authorization, Please switch from "),n(8,"b"),t(9,"legacy"),r(),t(10," to "),n(11,"b"),t(12,"modern"),r(),t(13," authorization by inviting your users. "),r(),n(14,"div"),t(15," Please refer to this "),n(16,"a",6),t(17,"article"),r(),t(18," for more information "),r()()()()()),a&2&&f("config",s.modalConfig)},dependencies:[g,S],encapsulation:2});let i=e;return i})();var k=(()=>{let e=class e{constructor(){this.dialog=o(M),this.tokenService=o(h),this.dialogRef=null}openDialogMigrationConfirmation(){this.tokenService.getUser()?.AuthorizationMode===y.Legacy&&!this.dialogRef&&(this.dialogRef=this.dialog.open(R),this.dialogRef.afterClosed().subscribe(()=>{this.dialogRef=null}))}resetDialogState(){this.dialogRef&&(this.dialogRef.close(),this.dialogRef=null)}};e.\u0275fac=function(a){return new(a||e)},e.\u0275prov=m({token:e,factory:e.\u0275fac,providedIn:"root"});let i=e;return i})();var K=(i,e)=>(o(k).openDialogMigrationConfirmation(),!0);export{K as a};
|