marketplacepos 5.41.0 → 5.41.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 +123 -123
- package/Marketplace/{chunk-5MRT2EFE.js → chunk-25OT4I3W.js} +1 -1
- package/Marketplace/chunk-2BUABOHG.js +1 -0
- package/Marketplace/chunk-2SXRC4IG.js +1 -0
- package/Marketplace/{chunk-KXZCGKQW.js → chunk-2TZBEYNY.js} +1 -1
- package/Marketplace/chunk-2ZTDLZVZ.js +1 -0
- package/Marketplace/chunk-33IXC6UG.js +1 -0
- package/Marketplace/{chunk-7477X7LJ.js → chunk-4CTORK4F.js} +1 -1
- package/Marketplace/{chunk-IRKRLYXS.js → chunk-4DV4IT7R.js} +1 -1
- package/Marketplace/chunk-4HZR3O3W.js +1 -0
- package/Marketplace/chunk-4JG3ZRYP.js +5 -0
- package/Marketplace/{chunk-BUFEIJAI.js → chunk-4M63ID5T.js} +1 -1
- package/Marketplace/chunk-4PZ5Q3HI.js +1 -0
- package/Marketplace/chunk-4YOHPIVG.js +1 -0
- package/Marketplace/{chunk-RVYGL22E.js → chunk-55OI2SUF.js} +1 -1
- package/Marketplace/chunk-5B4KSPFM.js +1 -0
- package/Marketplace/chunk-5DIRXS7I.js +1 -0
- package/Marketplace/chunk-5EQNOCXP.js +1 -0
- package/Marketplace/chunk-5JYR3YJW.js +1 -0
- package/Marketplace/chunk-5QAURMZF.js +222 -0
- package/Marketplace/{chunk-V2OJQHE3.js → chunk-5XI7HWS5.js} +2 -2
- package/Marketplace/chunk-5ZX2OVBB.js +1 -0
- package/Marketplace/chunk-66YHNWRR.js +1 -0
- package/Marketplace/chunk-6IFZ2TO6.js +1 -0
- package/Marketplace/{chunk-Q72ZXPDP.js → chunk-6LH7FSOW.js} +1 -1
- package/Marketplace/{chunk-OLSC6KHB.js → chunk-6MPSYC77.js} +1 -1
- package/Marketplace/chunk-6RSAOZUV.js +1 -0
- package/Marketplace/chunk-6SBCWEJJ.js +1 -0
- package/Marketplace/chunk-6UEHSA6E.js +1 -0
- package/Marketplace/{chunk-BIQHA7UA.js → chunk-6X2OBNJQ.js} +4 -4
- package/Marketplace/chunk-7H5ILTTK.js +1 -0
- package/Marketplace/{chunk-IYYVZ6B6.js → chunk-A2YNWIX6.js} +1 -1
- package/Marketplace/chunk-A4F37V57.js +1 -0
- package/Marketplace/{chunk-77IUCPIQ.js → chunk-ACIMXBIC.js} +1 -1
- package/Marketplace/chunk-AGRVVEIR.js +397 -0
- package/Marketplace/chunk-ALKC77XL.js +78 -0
- package/Marketplace/chunk-AVEGIEYT.js +193 -0
- package/Marketplace/chunk-BBVWQJ7M.js +1 -0
- package/Marketplace/chunk-BM4KX73T.js +1 -0
- package/Marketplace/chunk-BQTUAYGY.js +1 -0
- package/Marketplace/chunk-C7QA2BEN.js +3 -0
- package/Marketplace/chunk-CEQA4PTY.js +1 -0
- package/Marketplace/chunk-CMZW5QAE.js +1 -0
- package/Marketplace/chunk-CSSG7NAJ.js +1 -0
- package/Marketplace/chunk-DG32XLYI.js +1 -0
- package/Marketplace/chunk-DJILLV4M.js +1 -0
- package/Marketplace/chunk-DS4AAABV.js +1 -0
- package/Marketplace/{chunk-ZD5LURJS.js → chunk-E2CS7ZMC.js} +1 -1
- package/Marketplace/chunk-EL2JACEW.js +1 -0
- package/Marketplace/chunk-EU2KAMEK.js +1 -0
- package/Marketplace/chunk-EVLYO3HX.js +1 -0
- package/Marketplace/chunk-F4GMWHYJ.js +33 -0
- package/Marketplace/{chunk-RGR34QZ3.js → chunk-FBZW4Y3J.js} +1 -1
- package/Marketplace/chunk-FFAZ3Q3F.js +1 -0
- package/Marketplace/chunk-FUWROOE4.js +265 -0
- package/Marketplace/{chunk-6NNAICJE.js → chunk-FWG4H3QG.js} +1 -1
- package/Marketplace/chunk-GCECFUOP.js +1 -0
- package/Marketplace/{chunk-UBMI3NQH.js → chunk-GHBGGQNM.js} +1 -1
- package/Marketplace/chunk-GOS4RIF2.js +1 -0
- package/Marketplace/{chunk-IEYFOHME.js → chunk-GPC4DECX.js} +1 -1
- package/Marketplace/chunk-GZXQUJKX.js +1 -0
- package/Marketplace/chunk-H4PA2O6O.js +1 -0
- package/Marketplace/chunk-H6WIS2HR.js +2 -0
- package/Marketplace/{chunk-TMFFA26Y.js → chunk-HFKKITEW.js} +1 -1
- package/Marketplace/chunk-HPGFBOM4.js +1 -0
- package/Marketplace/{chunk-KHWTOD6H.js → chunk-HPYTL6TX.js} +1 -1
- package/Marketplace/chunk-HTQJCQ32.js +1 -0
- package/Marketplace/chunk-IARG7PLL.js +1 -0
- package/Marketplace/chunk-IIMHYIRJ.js +1 -0
- package/Marketplace/{chunk-GBABJLPQ.js → chunk-IKPRRD5D.js} +1 -1
- package/Marketplace/{chunk-EGTYAIU5.js → chunk-JOBWFOGC.js} +1 -1
- package/Marketplace/{chunk-PPDHTO44.js → chunk-JRWFZQ5K.js} +1 -1
- package/Marketplace/chunk-JS55A2RS.js +7 -0
- package/Marketplace/chunk-JV4MMNGD.js +79 -0
- package/Marketplace/chunk-K6YEZYU4.js +5 -0
- package/Marketplace/{chunk-KQOYVGBL.js → chunk-KJHSB4A2.js} +1 -1
- package/Marketplace/chunk-KOKHDU4I.js +1 -0
- package/Marketplace/{chunk-GBXNTL4E.js → chunk-KQQCKHF3.js} +1 -1
- package/Marketplace/chunk-KTIKLSOU.js +1 -0
- package/Marketplace/chunk-KTXS7IPU.js +1 -0
- package/Marketplace/chunk-KWQS4KX7.js +1 -0
- package/Marketplace/{chunk-COBHWPGI.js → chunk-KX5AWR75.js} +1 -1
- package/Marketplace/chunk-KXS76PRS.js +70 -0
- package/Marketplace/chunk-KYIY3VQ6.js +141 -0
- package/Marketplace/{chunk-J7AGLBPL.js → chunk-LHD7CYML.js} +1 -1
- package/Marketplace/chunk-LOPJ3O56.js +1 -0
- package/Marketplace/chunk-LR4UZ2OS.js +30 -0
- package/Marketplace/{chunk-M3SJUKTG.js → chunk-LSXUXG54.js} +1 -1
- package/Marketplace/chunk-LWSRD5LF.js +1 -0
- package/Marketplace/{chunk-Q2OEJFVT.js → chunk-M5IQRAHV.js} +1 -1
- package/Marketplace/{chunk-3BGJ2T6Y.js → chunk-MCJRJUAO.js} +1 -1
- package/Marketplace/chunk-MGVYUYPC.js +15 -0
- package/Marketplace/chunk-MP43HA4R.js +1 -0
- package/Marketplace/{chunk-RIHLYYZU.js → chunk-MQXPOHBV.js} +1 -1
- package/Marketplace/chunk-MTUIRWOB.js +2 -0
- package/Marketplace/chunk-MZI5AYCE.js +1 -0
- package/Marketplace/{chunk-JBKHY4HH.js → chunk-NRCXYGO3.js} +5 -5
- package/Marketplace/chunk-NTW6FBP5.js +1 -0
- package/Marketplace/chunk-NZA4BEER.js +102 -0
- package/Marketplace/chunk-O55KM5KY.js +1 -0
- package/Marketplace/{chunk-G6EG5QJS.js → chunk-OKAPL3YZ.js} +1 -1
- package/Marketplace/{chunk-WAW37FIG.js → chunk-OZ77CAJD.js} +1 -1
- package/Marketplace/chunk-OZ7LWNOK.js +15 -0
- package/Marketplace/chunk-P5FCWMYK.js +1 -0
- package/Marketplace/{chunk-NR7IH2JG.js → chunk-PBGDP6XV.js} +1 -1
- package/Marketplace/chunk-PE5AFID4.js +1 -0
- package/Marketplace/chunk-PEA6KVUS.js +252 -0
- package/Marketplace/{chunk-7TWBIV3T.js → chunk-PO7JVKK3.js} +1 -1
- package/Marketplace/chunk-PW42BQIY.js +1 -0
- package/Marketplace/chunk-Q6V3IOGL.js +1 -0
- package/Marketplace/{chunk-AQMHZFKJ.js → chunk-R5TTZPDX.js} +11 -11
- package/Marketplace/{chunk-75BDXSG3.js → chunk-R76V3PTN.js} +10 -10
- package/Marketplace/chunk-REL734JM.js +1 -0
- package/Marketplace/chunk-RHRJXX4W.js +1 -0
- package/Marketplace/chunk-S3YMF63V.js +1 -0
- package/Marketplace/chunk-SD7M7HOB.js +1 -0
- package/Marketplace/{chunk-VGXQU74M.js → chunk-SH7KN2AS.js} +1 -1
- package/Marketplace/{chunk-CH2MLZU7.js → chunk-SIYMMMKQ.js} +1 -1
- package/Marketplace/chunk-SLQA5QBT.js +1 -0
- package/Marketplace/chunk-SRJREA2O.js +5 -0
- package/Marketplace/{chunk-QCZIDOKW.js → chunk-SXLKJLAE.js} +1 -1
- package/Marketplace/{chunk-6IAGGRZN.js → chunk-SYENQYR7.js} +1 -1
- package/Marketplace/chunk-T4K3CJ2R.js +1 -0
- package/Marketplace/{chunk-V5WYSCVT.js → chunk-TGMCGROM.js} +1 -1
- package/Marketplace/{chunk-OE2JYQHN.js → chunk-TNKPTRB3.js} +1 -1
- package/Marketplace/chunk-TQ4ZLZ7C.js +1 -0
- package/Marketplace/chunk-TQIIWFRF.js +1 -0
- package/Marketplace/chunk-UDQBFSOV.js +1 -0
- package/Marketplace/chunk-UF4FKEE7.js +93 -0
- package/Marketplace/chunk-UJYSVGLV.js +1 -0
- package/Marketplace/{chunk-5GX2GLRY.js → chunk-UMY6NG57.js} +1 -1
- package/Marketplace/{chunk-YXFTLQ5M.js → chunk-UPYS4A4M.js} +1 -1
- package/Marketplace/chunk-UYW53K3I.js +1 -0
- package/Marketplace/chunk-VRI3CYGG.js +1 -0
- package/Marketplace/{chunk-6XFYITUD.js → chunk-WGXUKTYP.js} +1 -1
- package/Marketplace/{chunk-ZZVNB72Q.js → chunk-WHZ44BAL.js} +1 -1
- package/Marketplace/chunk-WTAJSWM2.js +4 -0
- package/Marketplace/chunk-WX5S3HCU.js +1 -0
- package/Marketplace/{chunk-MNFHFW3E.js → chunk-XEMNZHW6.js} +1 -1
- package/Marketplace/chunk-XGYBJAFE.js +1 -0
- package/Marketplace/{chunk-J3P46Z53.js → chunk-XQGRC7V2.js} +1 -1
- package/Marketplace/chunk-YP2IPJ2O.js +1 -0
- package/Marketplace/{chunk-YR2WEZDG.js → chunk-YPVYJUXS.js} +1 -1
- package/Marketplace/chunk-Z3ITXK3D.js +1 -0
- package/Marketplace/chunk-Z3KD73SP.js +2 -0
- package/Marketplace/chunk-ZAVDOMSW.js +1 -0
- package/Marketplace/chunk-ZGZ74AJR.js +1 -0
- package/Marketplace/{chunk-GHQH62TZ.js → chunk-ZIOAOUAM.js} +1 -1
- package/Marketplace/{chunk-2G6NLWKN.js → chunk-ZIUDNFYT.js} +1 -1
- package/Marketplace/chunk-ZLNGASME.js +1 -0
- package/Marketplace/chunk-ZNDU44GH.js +51 -0
- package/Marketplace/{chunk-7FUVW73P.js → chunk-ZR5IXNXB.js} +1 -1
- package/Marketplace/index.html +3 -3
- package/Marketplace/main-SPNULRF2.js +1 -0
- package/Marketplace/{styles-NJFTKO3E.css → styles-X3FXEB7T.css} +1 -1
- package/package.json +1 -1
- package/Marketplace/chunk-2BBMPSAE.js +0 -93
- package/Marketplace/chunk-2Q5YW6MY.js +0 -2
- package/Marketplace/chunk-2SUNUZ5Y.js +0 -3
- package/Marketplace/chunk-3HTZTPHD.js +0 -1
- package/Marketplace/chunk-3ZWNYMH7.js +0 -1
- package/Marketplace/chunk-4ASUM4N5.js +0 -1
- package/Marketplace/chunk-4G3QN54S.js +0 -193
- package/Marketplace/chunk-56YK4SLT.js +0 -1
- package/Marketplace/chunk-5FBFUPHZ.js +0 -1
- package/Marketplace/chunk-62PFQNHJ.js +0 -1
- package/Marketplace/chunk-6ALHX2I4.js +0 -1
- package/Marketplace/chunk-6EV6VQBQ.js +0 -1
- package/Marketplace/chunk-7GQIIDFF.js +0 -4
- package/Marketplace/chunk-AMXLXRQK.js +0 -1
- package/Marketplace/chunk-BGEYIOMP.js +0 -1
- package/Marketplace/chunk-D54NUPYF.js +0 -153
- package/Marketplace/chunk-DI4V7KMK.js +0 -1
- package/Marketplace/chunk-DPLEMBB4.js +0 -1
- package/Marketplace/chunk-DZ2EE5MV.js +0 -1
- package/Marketplace/chunk-E3HMIPER.js +0 -2
- package/Marketplace/chunk-EDG73HHT.js +0 -4
- package/Marketplace/chunk-EIGDGRRL.js +0 -1
- package/Marketplace/chunk-G5MO6R5Z.js +0 -1
- package/Marketplace/chunk-GPEVUTDI.js +0 -2
- package/Marketplace/chunk-HKYVBAMV.js +0 -1
- package/Marketplace/chunk-I6JDDQC2.js +0 -5
- package/Marketplace/chunk-IIJMZKPL.js +0 -1
- package/Marketplace/chunk-K2H6WANG.js +0 -1
- package/Marketplace/chunk-K64THYES.js +0 -1
- package/Marketplace/chunk-KP4WSF75.js +0 -1
- package/Marketplace/chunk-KQ546ATX.js +0 -1
- package/Marketplace/chunk-KQAQTVXQ.js +0 -1
- package/Marketplace/chunk-KVP6OL4J.js +0 -2
- package/Marketplace/chunk-L4NLJBLA.js +0 -1
- package/Marketplace/chunk-LPXBSHUI.js +0 -180
- package/Marketplace/chunk-MATSRG2L.js +0 -447
- package/Marketplace/chunk-MNQZPU5N.js +0 -1
- package/Marketplace/chunk-NEIZYQV3.js +0 -1
- package/Marketplace/chunk-PXB4YEY3.js +0 -1
- package/Marketplace/chunk-QNT7YFQS.js +0 -1
- package/Marketplace/chunk-RLLHX27L.js +0 -1
- package/Marketplace/chunk-RNM3GVNZ.js +0 -1
- package/Marketplace/chunk-SE2DPPGP.js +0 -1
- package/Marketplace/chunk-SMZ7F54P.js +0 -5
- package/Marketplace/chunk-SXW52HYQ.js +0 -1
- package/Marketplace/chunk-T5ONJF63.js +0 -7
- package/Marketplace/chunk-T6QOFDEE.js +0 -1
- package/Marketplace/chunk-TAO67VCP.js +0 -1
- package/Marketplace/chunk-TQ2P22BQ.js +0 -1
- package/Marketplace/chunk-TRHB4HA4.js +0 -1
- package/Marketplace/chunk-V6IVDZR7.js +0 -2
- package/Marketplace/chunk-VETHPEVU.js +0 -1
- package/Marketplace/chunk-VSEWXNVC.js +0 -291
- package/Marketplace/chunk-XITXJ764.js +0 -15
- package/Marketplace/chunk-XM6GN4VF.js +0 -1
- package/Marketplace/chunk-XYIY2TDE.js +0 -1
- package/Marketplace/chunk-Y3U6BFV5.js +0 -1
- package/Marketplace/chunk-YIUQQGOQ.js +0 -1
- package/Marketplace/main-DNC2TBQ6.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as b}from"./chunk-GHBGGQNM.js";import{a as h}from"./chunk-XQGRC7V2.js";import{a as m}from"./chunk-WX5S3HCU.js";import"./chunk-PE5AFID4.js";import{b as O}from"./chunk-ZR5IXNXB.js";import"./chunk-LSXUXG54.js";import{a as C}from"./chunk-5EQNOCXP.js";import{a as P}from"./chunk-O55KM5KY.js";import"./chunk-6LH7FSOW.js";import"./chunk-XEMNZHW6.js";import{c as M}from"./chunk-ZIOAOUAM.js";import"./chunk-SIYMMMKQ.js";import"./chunk-WHZ44BAL.js";import"./chunk-SH7KN2AS.js";import"./chunk-OKAPL3YZ.js";import"./chunk-SDUUFQUI.js";import"./chunk-MQXPOHBV.js";import"./chunk-M5IQRAHV.js";import"./chunk-5DIRXS7I.js";import{e as g}from"./chunk-SYENQYR7.js";import{a}from"./chunk-5JYR3YJW.js";import"./chunk-2ZTDLZVZ.js";import"./chunk-2TZBEYNY.js";import"./chunk-SXLKJLAE.js";import"./chunk-C7QA2BEN.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import"./chunk-CMZW5QAE.js";import"./chunk-4M63ID5T.js";import"./chunk-K5XRGNWG.js";import"./chunk-HPYTL6TX.js";import"./chunk-PW42BQIY.js";import{n as f}from"./chunk-6X2OBNJQ.js";import{z as u}from"./chunk-CSSG7NAJ.js";import"./chunk-MZI5AYCE.js";import"./chunk-UJYSVGLV.js";import{s}from"./chunk-HFKKITEW.js";import"./chunk-OZ77CAJD.js";import{F as l,J as i,n as r}from"./chunk-MTUIRWOB.js";import{Gb as d,Hb as e,ka as n,kc as c}from"./chunk-JS55A2RS.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";var _=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=d({type:t,selectors:[["app-products"]],standalone:!1,decls:1,vars:0,template:function(o,v){o&1&&c(0,"router-outlet")},dependencies:[l],styles:[".badge-pill[_ngcontent-%COMP%]{padding-bottom:16px!important}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background:#dfeffc;border:1px solid #dfeffc}.rad-btn[_ngcontent-%COMP%] input[type=radio][_ngcontent-%COMP%]{visibility:hidden;position:absolute;left:0;top:0}.rad-btn[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{border:1px solid #ddd;border-radius:3px;margin-right:10px;cursor:pointer;padding:10px;margin-bottom:10px;color:#000;width:80px;text-align:center}.modal-dialog[_ngcontent-%COMP%]{max-width:30%!important}.product[_ngcontent-%COMP%]{height:100%!important}.row[_ngcontent-%COMP%]{margin-left:0;margin-right:0}ul[_ngcontent-%COMP%]{list-style-type:none}.link[_ngcontent-%COMP%]{color:#0202ab;cursor:pointer}.px-1[_ngcontent-%COMP%]{padding-left:5px!important}.sku[_ngcontent-%COMP%]{color:#696969;font-style:italic}.badge-pill[_ngcontent-%COMP%]{height:16px}.itemTitle[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.no-title[_ngcontent-%COMP%]{margin-top:.33em;margin-bottom:.33rem}.mb-upload[_ngcontent-%COMP%]{padding-bottom:.625rem}.my-1rem[_ngcontent-%COMP%]{margin-bottom:1rem!important;margin-top:1rem!important}.pr-rem[_ngcontent-%COMP%]{padding-right:.6rem}.text-larger[_ngcontent-%COMP%]{font-size:larger}.bg-lightpink[_ngcontent-%COMP%]{background-color:#f9dede}.bottom-buttons[_ngcontent-%COMP%]{margin-left:97px}@media (min-width: 1200px){.max-w-xl[_ngcontent-%COMP%]{max-width:205px}}.navbar-toggler[_ngcontent-%COMP%]:focus{box-shadow:none!important}"]})}}return t})();var y=[{path:"",component:_,children:[{path:"",redirectTo:"status",pathMatch:"full"},{path:"status",loadChildren:()=>import("./chunk-LOPJ3O56.js").then(t=>t.StatusModule),canActivate:[a,m]},{path:"download",loadChildren:()=>import("./chunk-SRJREA2O.js").then(t=>t.DownloadModule),canActivate:[a,m]},{path:"upload",loadComponent:()=>import("./chunk-6SBCWEJJ.js").then(t=>t.ProductUploadComponent),data:{title:"Upload Product"},canActivate:[a,m]}]}],w=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275mod=e({type:t})}static{this.\u0275inj=n({imports:[r,i.forChild(y)]})}}return t})();var X=(()=>{class t{static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275mod=e({type:t})}static{this.\u0275inj=n({imports:[r,u,i,w,s,f,g,O,C,M,P,h,b]})}}return t})();export{X as ProductModule};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Gb as a,Gc as p,Yb as r,ic as n,jc as s,kc as m,pb as o,rb as i}from"./chunk-JS55A2RS.js";var y=(()=>{class t{constructor(){this.emptyStateImg="https://res.cloudinary.com/pos/image/upload/v1683772105/icons/marketplace_icons/emptyrecord.svg"}ngOnInit(){}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275cmp=a({type:t,selectors:[["app-empty-state"]],decls:4,vars:1,consts:[["alt","",2,"width","225px",3,"src"],[1,"text-center","fs-2","text-secondary","mt-4"]],template:function(e,d){e&1&&(n(0,"div"),m(1,"img",0),n(2,"div",1),p(3," No records found "),s()()),e&2&&(i(),r("src",d.emptyStateImg,o))},encapsulation:2})}}return t})();export{y as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as H}from"./chunk-MCJRJUAO.js";import"./chunk-SYENQYR7.js";import"./chunk-C7QA2BEN.js";import"./chunk-Z3ITXK3D.js";import"./chunk-ACIMXBIC.js";import"./chunk-TGMCGROM.js";import{a as j}from"./chunk-CMZW5QAE.js";import{e as N}from"./chunk-4M63ID5T.js";import"./chunk-K5XRGNWG.js";import"./chunk-PW42BQIY.js";import{m as I,n as F}from"./chunk-6X2OBNJQ.js";import{c as O,h as R,m as U,z as K}from"./chunk-CSSG7NAJ.js";import"./chunk-MZI5AYCE.js";import"./chunk-UJYSVGLV.js";import"./chunk-HFKKITEW.js";import"./chunk-OZ77CAJD.js";import{j as D,l as B,n as W}from"./chunk-MTUIRWOB.js";import{$c as v,Gb as b,Gc as i,Hc as T,Kc as C,Lc as g,Mb as x,Mc as _,Nc as k,Oc as V,Pc as S,Ra as u,Yb as h,Z as y,ad as w,dc as M,ic as e,jc as t,kc as A,oc as L,pa as P,rb as a,tc as f,uc as E,ya as c,za as s}from"./chunk-JS55A2RS.js";import"./chunk-EU2KAMEK.js";import"./chunk-66YHNWRR.js";function G(n,J){if(n&1&&(e(0,"pre",21),i(1),v(2,"json"),t()),n&2){E();let l=S(25);a(),T(w(2,1,l))}}function Y(n,J){n&1&&(e(0,"p",22),i(1," Your data will be shown here once it's available "),t())}var ae=(()=>{class n{constructor(){this.httpService=P(N),this.selectedChannel=u(null),this.sku=u(null)}initProductLog(){this.productLog$=this.httpService.post(j.GetProductApiLog,{ChannelID:this.selectedChannel(),SKU:this.sku()}).pipe(y(1))}copyToClipboard(l){if(!l)return;let p=typeof l=="string"?l:JSON.stringify(l,null,2);navigator.clipboard.writeText(p),alert("Copied to clipboard!")}static{this.\u0275fac=function(p){return new(p||n)}}static{this.\u0275cmp=b({type:n,selectors:[["app-product-api"]],decls:40,vars:9,consts:[["headerTitle","Origin Product Api",3,"hideSearchBox","hideSearchDropdown"],[1,"btn","btn-success","btn-fill","me-3",3,"click"],[1,"fa","fa-search"],[1,"container-fluid","mt-8","px-10"],[1,"row"],[1,"col-7"],[1,"d-flex","align-items-center"],[1,"w-75"],[1,"mb-0","text-muted","fst-italic"],[1,"w-100"],[3,"ngModelChange","ngModel"],[1,"d-flex","align-items-center","mt-3"],["type","text","placeholder","Product Code / SKU",1,"form-control",3,"ngModelChange","ngModel"],[1,"row","mt-6"],[1,"col-12"],[1,"card"],[1,"card-header","d-flex","justify-content-between","align-items-center"],["type","button",1,"btn","btn-sm","btn-outline-primary",3,"click","disabled"],[1,"card-body"],[1,"col-sm-12"],[1,"form-group","position-relative"],["id","productLogText"],[1,"text-center","my-12","text-muted"]],template:function(p,o){if(p&1){let d=L();e(0,"mainpanel",0)(1,"actions")(2,"button",1),f("click",function(){return c(d),s(o.initProductLog())}),A(3,"i",2),i(4," Search "),t()(),e(5,"content")(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"div",7)(11,"h6"),i(12,"Channel"),t(),e(13,"p",8),i(14," View logs related to Product API Detail "),t()(),e(15,"div",9)(16,"channel-select-options",10),_("ngModelChange",function(r){return c(d),g(o.selectedChannel,r)||(o.selectedChannel=r),s(r)}),t()()(),e(17,"div",11)(18,"div",7)(19,"h6"),i(20,"Product Code / SKU"),t(),e(21,"p",8),i(22," Product SKU or Code from Channel Product "),t()(),e(23,"div",9)(24,"input",12),_("ngModelChange",function(r){return c(d),g(o.sku,r)||(o.sku=r),s(r)}),t()()()()(),k(25),v(26,"async"),e(27,"div",13)(28,"div",14)(29,"div",15)(30,"div",16)(31,"h5"),i(32,"Response"),t(),e(33,"button",17),f("click",function(){c(d);let r=S(25);return s(o.copyToClipboard(r))}),i(34," Copy "),t()(),e(35,"div",18)(36,"div",19)(37,"div",20),x(38,G,3,3,"pre",21)(39,Y,2,0,"p",22),t()()()()()()()()()}if(p&2){h("hideSearchBox",!0)("hideSearchDropdown",!0),a(16),C("ngModel",o.selectedChannel),a(8),C("ngModel",o.sku),a();let d=V(w(26,6,o.productLog$));a(8),h("disabled",!d),a(5),M(d?38:39)}},dependencies:[W,D,B,K,O,R,U,F,I,H],encapsulation:2})}}return n})();export{ae as ProductApiComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function v(e,a){var o={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&a.indexOf(t)<0&&(o[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,t=Object.getOwnPropertySymbols(e);i<t.length;i++)a.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(e,t[i])&&(o[t[i]]=e[t[i]]);return o}function g(e,a,o,t){function i(n){return n instanceof o?n:new o(function(c){c(n)})}return new(o||(o=Promise))(function(n,c){function u(s){try{p(t.next(s))}catch(y){c(y)}}function f(s){try{p(t.throw(s))}catch(y){c(y)}}function p(s){s.done?n(s.value):i(s.value).then(u,f)}p((t=t.apply(e,a||[])).next())})}function w(e){var a=typeof Symbol=="function"&&Symbol.iterator,o=a&&e[a],t=0;if(o)return o.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")}function d(e){return this instanceof d?(this.v=e,this):new d(e)}function O(e,a,o){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=o.apply(e,a||[]),i,n=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",c),i[Symbol.asyncIterator]=function(){return this},i;function c(r){return function(l){return Promise.resolve(l).then(r,y)}}function u(r,l){t[r]&&(i[r]=function(h){return new Promise(function(_,m){n.push([r,h,_,m])>1||f(r,h)})},l&&(i[r]=l(i[r])))}function f(r,l){try{p(t[r](l))}catch(h){b(n[0][3],h)}}function p(r){r.value instanceof d?Promise.resolve(r.value.v).then(s,y):b(n[0][2],r)}function s(r){f("next",r)}function y(r){f("throw",r)}function b(r,l){r(l),n.shift(),n.length&&f(n[0][0],n[0][1])}}function j(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=e[Symbol.asyncIterator],o;return a?a.call(e):(e=typeof w=="function"?w(e):e[Symbol.iterator](),o={},t("next"),t("throw"),t("return"),o[Symbol.asyncIterator]=function(){return this},o);function t(n){o[n]=e[n]&&function(c){return new Promise(function(u,f){c=e[n](c),i(u,f,c.done,c.value)})}}function i(n,c,u,f){Promise.resolve(f).then(function(p){n({value:p,done:u})},c)}}export{v as a,g as b,d as c,O as d,j as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as Te,b as be}from"./chunk-GOS4RIF2.js";import{a as Ce,b as fe}from"./chunk-UPYS4A4M.js";import{b as xe}from"./chunk-LHD7CYML.js";import{a as he}from"./chunk-SH7KN2AS.js";import{a as ue}from"./chunk-MQXPOHBV.js";import{a as F}from"./chunk-5DIRXS7I.js";import{i as pe}from"./chunk-C7QA2BEN.js";import{c as ae}from"./chunk-PW42BQIY.js";import{d as de,h as ge}from"./chunk-6X2OBNJQ.js";import{b as ne,h as ie,m as oe,z as re}from"./chunk-CSSG7NAJ.js";import{a as le,b as ce,c as _e}from"./chunk-UJYSVGLV.js";import{r as se,s as me}from"./chunk-HFKKITEW.js";import{d as Y,f as G,g as J,i as Q,m as ee,n as te}from"./chunk-MTUIRWOB.js";import{$c as $,Fc as b,Gb as Z,Gc as m,Hc as O,Ic as y,Ka as R,Kc as k,Lc as D,Mb as s,Mc as N,Oa as j,Ra as B,Sc as T,Tc as K,Yb as p,ad as W,bd as X,ca as A,cd as w,dc as S,ec as E,f as z,gc as M,hc as V,ic as c,jc as _,kc as I,lc as x,mc as h,nc as L,oc as C,pa as H,pb as v,rb as a,tc as f,uc as o,xb as P,xc as q,ya as d,za as g}from"./chunk-JS55A2RS.js";var U=t=>[t],ve=t=>({"text-decoration-line-through":t}),Se=t=>({"text-danger":t}),Ie=(t,l)=>({"bg-gradient-warning":t,"cell-hover pointer":l});function we(t,l){if(t&1){let e=C();c(0,"mat-slide-toggle",13),f("toggleChange",function(){d(e);let n=o();return n.toggleStatus=!n.toggleStatus,g(n.onToggle())}),c(1,"small",14),m(2),_()()}if(t&2){let e=o();a(2),y(" ",e.productToggleTitle?e.productToggleTitle:"FILTER DIFFERENT INVENTORY"," ")}}function Fe(t,l){if(t&1){let e=C();c(0,"th")(1,"input",16),N("ngModelChange",function(n){d(e);let r=o(2);return D(r.checkboxState,n)||(r.checkboxState=n),g(n)}),f("ngModelChange",function(){d(e);let n=o(2);return g(n.onCheckboxStateChange())}),_()()}if(t&2){let e=o(2);a(),k("ngModel",e.checkboxState)}}function Pe(t,l){if(t&1&&(s(0,Fe,2,1,"ng-template",15),c(1,"th",11),m(2,"POS"),_()),t&2){let e=o();p("ngxPermissionsOnly",T(1,U,e.rolePriceEdit))}}function Ee(t,l){if(t&1&&(x(0),c(1,"th",17)(2,"div",18)(3,"div",19),I(4,"img",20),c(5,"div",21),m(6),$(7,"stringLimit"),_()()()(),h()),t&2){let e=l.$implicit;a(3),p("matTooltip",(e.Name==null?null:e.Name.length)>20?e.Name:""),a(),p("src",e==null?null:e.Img,v),a(2),y(" ",X(7,3,e.Name,20)," ")}}function Me(t,l){t&1&&L(0)}function Ve(t,l){if(t&1&&s(0,Me,1,0,"ng-container",33),t&2){o(2);let e=b(7);p("ngTemplateOutlet",e)}}function Oe(t,l){if(t&1&&(x(0),s(1,Ve,1,1,"ng-template",15),h()),t&2){let e=o(4);a(),p("ngxPermissionsOnly",T(1,U,e.roleInventoryUpdate))}}function ke(t,l){t&1&&L(0)}function De(t,l){if(t&1&&s(0,ke,1,0,"ng-container",33),t&2){o(2);let e=b(7);p("ngTemplateOutlet",e)}}function Ne(t,l){if(t&1&&s(0,De,1,1,"ng-template",15),t&2){let e=o(4);p("ngxPermissionsOnly",T(1,U,e.rolePriceEdit))}}function $e(t,l){if(t&1){let e=C();x(0),c(1,"div")(2,"input",34),N("ngModelChange",function(n){d(e);let r=o(4).$implicit;return D(r.selected,n)||(r.selected=n),g(n)}),f("ngModelChange",function(){d(e);let n=o(4).$implicit,r=o();return g(r.onCheckboxStateProduct(n.ID))}),_()(),h()}if(t&2){let e=o(4).$implicit;a(2),k("ngModel",e.selected),p("disabled",!(e!=null&&e.Category))}}function Ue(t,l){if(t&1&&s(0,$e,3,2,"ng-container",22),t&2){let e=o(3).$implicit;p("ngIf",(e==null||e.Variants==null?null:e.Variants.length)>1)}}function Re(t,l){if(t&1){let e=C();x(0),c(1,"img",35),f("click",function(n){d(e);let r=o(3).$implicit,u=o();return g(u.onZoomImage(n,r==null?null:r.ImageUrl))}),_(),h()}if(t&2){let e=o(3).$implicit;a(),q("src",e==null?null:e.ThumbnailUrl,v)}}function je(t,l){t&1&&I(0,"img",36)}function Be(t,l){if(t&1&&(x(0),c(1,"td",28)(2,"div",29),s(3,Oe,2,3,"ng-container",30)(4,Ne,1,3,"ng-template",null,0,w)(6,Ue,1,1,"ng-template",null,1,w),c(8,"div"),s(9,Re,2,1,"ng-container",30)(10,je,1,0,"ng-template",null,2,w),_()()(),c(12,"td",31)(13,"div"),m(14),_(),c(15,"small",32),m(16),_()(),h()),t&2){let e=b(5),i=b(11),n=o(2).$implicit,r=o();a(),p("rowSpan",n==null?null:n.Variants.length),a(2),p("ngIf",r.table=="inventory")("ngIfElse",e),a(6),p("ngIf",n==null?null:n.ThumbnailUrl)("ngIfElse",i),a(3),p("rowSpan",n==null?null:n.Variants.length),a(2),O(n==null?null:n.Name),a(),p("ngClass",T(9,Se,!(n!=null&&n.Category))),a(),y("(",n!=null&&n.Category?n==null?null:n.Category:"Not Found In POS",")")}}function Le(t,l){if(t&1&&(c(0,"a",27),I(1,"i",37),_()),t&2){let e=o().$implicit,i=o(2);p("href",i.hostName+"/menu/Products/Catalog/Variants/Info?ID="+(e==null?null:e.ID),v)}}function We(t,l){if(t&1){let e=C();c(0,"input",40),N("ngModelChange",function(n){d(e);let r=o(3).$implicit;return D(r.selected,n)||(r.selected=n),g(n)}),_()}if(t&2){let e=o(3).$implicit,i=o().$implicit;k("ngModel",e.selected),p("disabled",!(i!=null&&i.Category))}}function ze(t,l){if(t&1&&(c(0,"td",38),s(1,We,1,2,"input",39),_()),t&2){let e=o(2).$implicit,i=o(2);a(),p("ngIf",i.printPOS(e)>=0||i.table=="price")}}function Ae(t,l){if(t&1&&(s(0,ze,2,1,"ng-template",15),c(1,"td",24),m(2),$(3,"number"),_()),t&2){let e=o().$implicit,i=o(2);p("ngxPermissionsOnly",T(4,U,i.rolePriceEdit)),a(2),O(W(3,2,i.printPOS(e)))}}function He(t,l){if(t&1){let e=C();x(0),c(1,"td",41),f("click",function(){d(e);let n=o().$implicit,r=o().$implicit,u=o().$implicit,ye=o();return g(ye.onUpdateData(u.Name,r,n.ID,u.ChannelItemID))}),c(2,"div",42)(3,"div",43),m(4),$(5,"number"),_(),c(6,"a",44),f("click",function(n){return d(e),g(n==null?null:n.stopPropagation())}),I(7,"i",37),_()()(),h()}if(t&2){let e=l.$implicit,i=o(2).$implicit,n=o(2);a(),p("ngClass",K(5,Ie,n.printPOS(i)!=n.printItem(e)&&n.hiddenIPOSInventory()==!1,n.hasPriceEdit()&&n.table=="price"||n.hasInventoryEdit()&&n.table=="inventory")),a(3),y(" ",W(5,3,n.printItem(e))," "),a(2),p("href",e.Url,v)}}function Ze(t,l){t&1&&(c(0,"td",45)(1,"div",42)(2,"span"),m(3,"X"),_()()())}function qe(t,l){if(t&1&&s(0,He,8,8,"ng-container",30)(1,Ze,4,0,"ng-template",null,3,w),t&2){let e=l.$implicit,i=b(2),n=o().$implicit,r=o(2);p("ngIf",r.getItemFromChannel(n,e))("ngIfElse",i)}}function Ke(t,l){if(t&1&&(c(0,"tr"),s(1,Be,17,11,"ng-container",22),c(2,"td",23),m(3),_(),c(4,"td",24)(5,"div",25)(6,"div",26),m(7),_(),c(8,"div",21),s(9,Le,2,1,"a",27),_()()(),s(10,Ae,4,6),M(11,qe,3,2,null,null,E),_()),t&2){let e=l.$implicit,i=l.$index,n=o().$implicit,r=o();a(),p("ngIf",i==0),a(2),O(e==null?null:e.Model),a(2),p("matTooltip",e.Discontinued?r.discontinuedVariantMsg:""),a(),p("ngClass",T(7,ve,e.Discontinued)),a(),y(" ",e.Code," "),a(2),S(n.Category?9:-1),a(),S(r.hiddenIPOSInventory()==!1?10:-1),a(),V(r.channel)}}function Xe(t,l){if(t&1&&(c(0,"tbody"),M(1,Ke,13,9,"tr",null,E),_()),t&2){let e=l.$implicit;a(),V(e.Variants)}}var yt=(()=>{class t{constructor(e,i,n){this.dialog=e,this.biggerPictureService=i,this.authService=n,this.permissionsService=H(le),this.showProductToggle=!1,this.multiwarehouse=j(!1),this.hiddenIPOSInventory=j(!1),this.toggleStatus=!1,this.checkboxState=!1,this.rolePriceEdit=F.PriceUpdate,this.roleInventoryUpdate=F.InventoryUpdate,this.hasPriceEdit=B(!1),this.hasInventoryEdit=B(!1),this.discontinuedVariantMsg="This Variant is discontinued from POS, you must Non Active manually at the seller center so that it is not sold again on the channel.",this.onSubmit=new R,this.destroy$=new z,this.toggle=new R,this.hostName=this.authService.getDomain()}ngOnInit(){this.initRoles(),this.table=="inventory"?this.stockHeader="Stock":this.table=="price"&&(this.stockHeader="Price")}initRoles(){this.permissionsService.hasPermission(F.InventoryUpdate).then(e=>this.hasInventoryEdit.set(e)),this.permissionsService.hasPermission(F.PriceUpdate).then(e=>this.hasPriceEdit.set(e))}onCheckboxStateProduct(e){let i=this.data.filter(n=>n.ID==e);i.length>0&&(i=i.map(n=>(n.Variants=n.Variants.map(r=>(r.selected=n.selected,r)),n)))}onCheckboxStateChange(){this.data=this.data.map(e=>(e.Variants=e.Variants.map(i=>(i.selected=this.checkboxState,i)),e))}getItemFromChannel(e,i){return e.Channel.find(r=>ae.IsNotEmpty(i.LocationID)?r.LocationID==i.LocationID:r.ChannelID==i.ID)}printItem(e){if(this.table=="inventory")return e.Inventory;if(this.table=="price")return e.Price}onUpdateData(e,i,n,r){this.hasPriceEdit()&&this.table=="price"&&this.onOpenDialogUpdate(e,i,n,r),this.hasInventoryEdit()&&this.table=="inventory"&&this.onOpenDialogUpdate(e,i,n,r)}onOpenDialogUpdate(e,i,n,r){this.dialog.open(Te,{data:{Name:e,Variant:i,ChannelID:n,Table:this.table,ChannelItemID:r}}).afterClosed().pipe(A(this.destroy$)).subscribe(u=>{u!=null&&this.onSubmit.emit(u)})}printPOS(e){return this.table=="inventory"?e.Inventory?e.Inventory:0:this.table=="price"?e.UnitPrice:null}onToggle(){this.toggle.emit(this.toggleStatus)}onZoomImage(e,i){this.biggerPictureService.openBiggerPicture(e,i)}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static{this.\u0275fac=function(i){return new(i||t)(P(de),P(he),P(pe))}}static{this.\u0275cmp=Z({type:t,selectors:[["app-table"]],inputs:{data:"data",table:"table",channel:"channel",showProductToggle:"showProductToggle",productToggleTitle:"productToggleTitle",multiwarehouse:[1,"multiwarehouse"],hiddenIPOSInventory:[1,"hiddenIPOSInventory"]},outputs:{onSubmit:"onSubmit",toggle:"onToggle"},decls:17,vars:3,consts:[["PRICE",""],["checkbox_update",""],["elsePic",""],["elseCol",""],[1,"table-responsive"],[1,"table"],[1,"thead-light","sticky-top-thead"],["scope","col","colspan","2",1,"text-center","w-25"],[1,"w-100"],[2,"width","200px"],["scope","col",1,"text-start","w-20"],["scope","col",1,"text-end","w-10"],[4,"ngFor","ngForOf"],[2,"width","200px",3,"toggleChange"],[1,"fw-bold"],[3,"ngxPermissionsOnly"],["type","checkbox",3,"ngModelChange","ngModel"],["scope","col"],[1,"w-100","d-flex","align-items-center","justify-content-center"],["matTooltipPosition","above",1,"d-flex","align-items-center","justify-content-center",2,"width","180px",3,"matTooltip"],[2,"width","16px","height","16px",3,"src"],[1,"ms-2"],[4,"ngIf"],[1,"text-start"],[1,"text-end"],["matTooltipPosition","above",1,"d-flex","align-items-center","justify-content-end",3,"matTooltip"],[3,"ngClass"],["target","_blank",3,"href"],[1,"text-center",3,"rowSpan"],[1,"d-flex","align-items-center","justify-content-end"],[4,"ngIf","ngIfElse"],[1,"text-start",2,"padding-left","0px",3,"rowSpan"],[1,"mt-1",3,"ngClass"],[4,"ngTemplateOutlet"],["type","checkbox",1,"me-3",3,"ngModelChange","ngModel","disabled"],[1,"border","rounded","w-img","cursor-pointer",3,"click","src"],["src","//res.cloudinary.com/pos/image/upload/w_40/POS/Images/Icon/products_thumb.png",1,"border","rounded","w-img"],[1,"fas","fa-solid","fa-arrow-up-right-from-square","external-link-custom"],[1,"align-middle"],["type","checkbox",3,"ngModel","disabled","ngModelChange",4,"ngIf"],["type","checkbox",3,"ngModelChange","ngModel","disabled"],[1,"p-0",3,"click","ngClass"],[1,"d-flex","align-items-center","justify-content-center"],[1,"me-2","mt-1"],["target","_blank",3,"click","href"],[1,"table-white","text-center",2,"color","red"]],template:function(i,n){i&1&&(c(0,"div",4)(1,"table",5)(2,"thead",6)(3,"tr")(4,"th",7)(5,"div",8)(6,"div"),m(7,"Product"),_(),s(8,we,3,1,"mat-slide-toggle",9),_()(),c(9,"th",10),m(10,"Variant"),_(),c(11,"th",11),m(12,"SKU"),_(),s(13,Pe,3,3)(14,Ee,8,6,"ng-container",12),_()(),M(15,Xe,3,0,"tbody",null,E),_()()),i&2&&(a(8),S(n.showProductToggle?8:-1),a(5),S(n.hiddenIPOSInventory()==!1?13:-1),a(),p("ngForOf",n.channel),a(),V(n.data))},dependencies:[te,Y,G,J,Q,ee,re,ne,ie,oe,fe,Ce,ge,ue,xe,_e,ce,me,se,be],styles:[".w-10[_ngcontent-%COMP%]{width:10%}.w-20[_ngcontent-%COMP%]{width:20%}.w-img[_ngcontent-%COMP%]{width:40px;height:40px}.item-name[_ngcontent-%COMP%]{margin-bottom:-14px!important;font-size:larger}.cell-hover[_ngcontent-%COMP%]:hover{background-color:#c9c9c9!important}.text-wrapping[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:88px}.cell-hover[_ngcontent-%COMP%]{width:400px!important}"]})}}return t})();export{yt as a};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import{a as u}from"./chunk-VRI3CYGG.js";import{M as d,ba as m}from"./chunk-AVEGIEYT.js";import{Ca as o,Gb as s,Kb as r,Qc as p,ja as a,od as f,vc as c,wc as l}from"./chunk-JS55A2RS.js";var g=["*"],b=`
|
|
2
|
+
.p-icon {
|
|
3
|
+
display: inline-block;
|
|
4
|
+
vertical-align: baseline;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.p-icon-spin {
|
|
8
|
+
-webkit-animation: p-icon-spin 2s infinite linear;
|
|
9
|
+
animation: p-icon-spin 2s infinite linear;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@-webkit-keyframes p-icon-spin {
|
|
13
|
+
0% {
|
|
14
|
+
-webkit-transform: rotate(0deg);
|
|
15
|
+
transform: rotate(0deg);
|
|
16
|
+
}
|
|
17
|
+
100% {
|
|
18
|
+
-webkit-transform: rotate(359deg);
|
|
19
|
+
transform: rotate(359deg);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
@keyframes p-icon-spin {
|
|
24
|
+
0% {
|
|
25
|
+
-webkit-transform: rotate(0deg);
|
|
26
|
+
transform: rotate(0deg);
|
|
27
|
+
}
|
|
28
|
+
100% {
|
|
29
|
+
-webkit-transform: rotate(359deg);
|
|
30
|
+
transform: rotate(359deg);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
`,y=(()=>{class e extends m{name="baseicon";inlineStyles=b;static \u0275fac=(()=>{let t;return function(n){return(t||(t=o(e)))(n||e)}})();static \u0275prov=a({token:e,factory:e.\u0275fac})}return e})();var x=(()=>{class e extends u{label;spin=!1;styleClass;role;ariaLabel;ariaHidden;ngOnInit(){super.ngOnInit(),this.getAttributes()}getAttributes(){let t=d(this.label);this.role=t?void 0:"img",this.ariaLabel=t?void 0:this.label,this.ariaHidden=t}getClassNames(){return`p-icon ${this.styleClass?this.styleClass+" ":""}${this.spin?"p-icon-spin":""}`}static \u0275fac=(()=>{let t;return function(n){return(t||(t=o(e)))(n||e)}})();static \u0275cmp=s({type:e,selectors:[["ng-component"]],hostAttrs:[1,"p-component","p-iconwrapper"],inputs:{label:"label",spin:[2,"spin","spin",f],styleClass:"styleClass"},features:[p([y]),r],ngContentSelectors:g,decls:1,vars:0,template:function(i,n){i&1&&(c(),l(0))},encapsulation:2,changeDetection:0})}return e})();export{x as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as V}from"./chunk-
|
|
1
|
+
import{a as V}from"./chunk-HPYTL6TX.js";import{B as F,M as L,k as B,m as j}from"./chunk-OZ77CAJD.js";import{Aa as D,F as u,Gb as I,Hb as x,Ib as H,Ka as w,Mb as R,Pa as C,Ra as M,Xa as A,Xb as m,_b as p,dc as T,f as l,h as f,ic as n,ja as y,jc as d,jd as N,ka as _,kc as P,ma as g,od as a,pa as o,qa as b,ra as v,rb as E,tc as k,vc as Y,wc as z,xa as S,xb as O}from"./chunk-JS55A2RS.js";var K=["mat-sort-header",""],W=["*"];function Z(e,h){e&1&&(n(0,"div",2),D(),n(1,"svg",3),P(2,"path",4),d()())}var U=new g("MAT_SORT_DEFAULT_OPTIONS"),$=(()=>{class e{_defaultOptions;_initializedStream=new f(1);sortables=new Map;_stateChanges=new l;active;start="asc";get direction(){return this._direction}set direction(t){this._direction=t}_direction="";disableClear;disabled=!1;sortChange=new w;initialized=this._initializedStream;constructor(t){this._defaultOptions=t}register(t){this.sortables.set(t.id,t)}deregister(t){this.sortables.delete(t.id)}sort(t){this.active!=t.id?(this.active=t.id,this.direction=t.start?t.start:this.start):this.direction=this.getNextSortDirection(t),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(t){if(!t)return"";let i=t?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,r=G(t.start||this.start,i),s=r.indexOf(this.direction)+1;return s>=r.length&&(s=0),r[s]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static \u0275fac=function(i){return new(i||e)(O(U,8))};static \u0275dir=H({type:e,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",a],disabled:[2,"matSortDisabled","disabled",a]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[S]})}return e})();function G(e,h){let t=["asc","desc"];return e=="desc"&&t.reverse(),h||t.push(""),t}var c=(()=>{class e{changes=new l;static \u0275fac=function(i){return new(i||e)};static \u0275prov=y({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function J(e){return e||new c}var Q={provide:c,deps:[[new b,new v,c]],useFactory:J},_t=(()=>{class e{_intl=o(c);_sort=o($,{optional:!0});_columnDef=o("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});_changeDetectorRef=o(N);_focusMonitor=o(B);_elementRef=o(C);_ariaDescriber=o(F,{optional:!0});_renderChanges;_animationModule=o(A,{optional:!0});_recentlyCleared=M(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(t){this._updateSortActionDescription(t)}_sortActionDescription="Sort";disableClear;constructor(){o(j).load(V);let t=o(U,{optional:!0});this._sort,t?.arrowPosition&&(this.arrowPosition=t?.arrowPosition)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=u(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>this._recentlyCleared.set(null))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_toggleOnInteraction(){if(!this._isDisabled()){let t=this._isSorted(),i=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(t&&!this._isSorted()?i:null)}}_handleKeydown(t){(t.keyCode===32||t.keyCode===13)&&(t.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(t){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,t)),this._sortActionDescription=t}static \u0275fac=function(i){return new(i||e)};static \u0275cmp=I({type:e,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(i,r){i&1&&k("click",function(){return r._toggleOnInteraction()})("keydown",function(q){return r._handleKeydown(q)})("mouseleave",function(){return r._recentlyCleared.set(null)}),i&2&&(m("aria-sort",r._getAriaSortAttribute()),p("mat-sort-header-disabled",r._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",a],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",a]},exportAs:["matSortHeader"],attrs:K,ngContentSelectors:W,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(i,r){i&1&&(Y(),n(0,"div",0)(1,"div",1),z(2),d(),R(3,Z,3,0,"div",2),d()),i&2&&(p("mat-sort-header-sorted",r._isSorted())("mat-sort-header-position-before",r.arrowPosition==="before")("mat-sort-header-descending",r._sort.direction==="desc")("mat-sort-header-ascending",r._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",r._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",r._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",r._animationModule==="NoopAnimations"),m("tabindex",r._isDisabled()?null:0)("role",r._isDisabled()?null:"button"),E(3),T(r._renderArrow()?3:-1))},styles:[`.mat-sort-header{cursor:pointer}.mat-sort-header-disabled{cursor:default}.mat-sort-header-container{display:flex;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}@keyframes _mat-sort-header-recently-cleared-ascending{from{transform:translateY(0);opacity:1}to{transform:translateY(-25%);opacity:0}}@keyframes _mat-sort-header-recently-cleared-descending{from{transform:translateY(0) rotate(180deg);opacity:1}to{transform:translateY(25%) rotate(180deg);opacity:0}}.mat-sort-header-arrow{height:12px;width:12px;position:relative;transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1),opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;overflow:visible;color:var(--mat-sort-arrow-color, var(--mat-sys-on-surface))}.mat-sort-header.cdk-keyboard-focused .mat-sort-header-arrow,.mat-sort-header.cdk-program-focused .mat-sort-header-arrow,.mat-sort-header:hover .mat-sort-header-arrow{opacity:.54}.mat-sort-header .mat-sort-header-sorted .mat-sort-header-arrow{opacity:1}.mat-sort-header-descending .mat-sort-header-arrow{transform:rotate(180deg)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transform:translateY(-25%)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-ascending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-recently-cleared-descending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-descending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-animations-disabled .mat-sort-header-arrow{transition-duration:0ms;animation-duration:0ms}.mat-sort-header-arrow svg{width:24px;height:24px;fill:currentColor;position:absolute;top:50%;left:50%;margin:-12px 0 0 -12px;transform:translateZ(0)}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}
|
|
2
2
|
`],encapsulation:2,changeDetection:0})}return e})(),gt=(()=>{class e{static \u0275fac=function(i){return new(i||e)};static \u0275mod=x({type:e});static \u0275inj=_({providers:[Q],imports:[L]})}return e})();export{$ as a,_t as b,gt as c};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as ne,b as ae,c as pe,d as se,e as ce,f as le}from"./chunk-KYIY3VQ6.js";import{a as F}from"./chunk-KOKHDU4I.js";import"./chunk-2SXRC4IG.js";import{b as ie,c as re}from"./chunk-5XI7HWS5.js";import"./chunk-WGXUKTYP.js";import"./chunk-GZXQUJKX.js";import"./chunk-LR4UZ2OS.js";import"./chunk-F4GMWHYJ.js";import{a as te,b as oe}from"./chunk-KXS76PRS.js";import"./chunk-OZ7LWNOK.js";import"./chunk-VRI3CYGG.js";import"./chunk-AVEGIEYT.js";import"./chunk-CMZW5QAE.js";import{b as Y}from"./chunk-4M63ID5T.js";import"./chunk-K5XRGNWG.js";import{m as Z,n as ee}from"./chunk-6X2OBNJQ.js";import{c as K,h as Q,m as U,z as X}from"./chunk-CSSG7NAJ.js";import"./chunk-MZI5AYCE.js";import"./chunk-HFKKITEW.js";import"./chunk-OZ77CAJD.js";import{E as $,G as q,H,J,j,n as z}from"./chunk-MTUIRWOB.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-JS55A2RS.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};
|