marketplacepos 5.48.2 → 5.48.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.
Files changed (56) hide show
  1. package/Marketplace/{chunk-B6F5PDL5.js → chunk-222XXOAY.js} +1 -1
  2. package/Marketplace/{chunk-H7GV5SNI.js → chunk-27DJ3M5I.js} +1 -1
  3. package/Marketplace/{chunk-IDH7MCR3.js → chunk-2C2HFRNV.js} +1 -1
  4. package/Marketplace/{chunk-7DT7FQ2T.js → chunk-2NVWRVFF.js} +1 -1
  5. package/Marketplace/{chunk-J6BQDYXO.js → chunk-2VA22SO6.js} +1 -1
  6. package/Marketplace/{chunk-PLLHTY6O.js → chunk-4M33AWDZ.js} +1 -1
  7. package/Marketplace/{chunk-LABF6W37.js → chunk-4ZJFRWQN.js} +1 -1
  8. package/Marketplace/{chunk-DH5CXAEM.js → chunk-5AODAALH.js} +1 -1
  9. package/Marketplace/{chunk-2IASUYTM.js → chunk-6QQYEBL5.js} +1 -1
  10. package/Marketplace/{chunk-Y77WYZ6Y.js → chunk-7SLU6C27.js} +1 -1
  11. package/Marketplace/{chunk-7SB4C4PT.js → chunk-B2AJZWCR.js} +1 -1
  12. package/Marketplace/chunk-B3OCJYGA.js +1 -0
  13. package/Marketplace/chunk-C3PHFX5T.js +1 -0
  14. package/Marketplace/{chunk-CAZ7U2IL.js → chunk-CBG4WEYF.js} +1 -1
  15. package/Marketplace/{chunk-ALPG22RQ.js → chunk-CPZLAKWT.js} +1 -1
  16. package/Marketplace/{chunk-I723PUUO.js → chunk-CS6LKY4V.js} +1 -1
  17. package/Marketplace/{chunk-SZVL42NR.js → chunk-CY6E3XTP.js} +1 -1
  18. package/Marketplace/{chunk-UCEZJNIL.js → chunk-DZPJWQHG.js} +1 -1
  19. package/Marketplace/{chunk-AEVLZ7NS.js → chunk-FH4WODGS.js} +1 -1
  20. package/Marketplace/{chunk-CBU473N2.js → chunk-G2BBO6GM.js} +1 -1
  21. package/Marketplace/{chunk-TIIGDXIJ.js → chunk-GRC7HDKP.js} +2 -2
  22. package/Marketplace/{chunk-ZUL6ZHSW.js → chunk-GUL2XBWQ.js} +1 -1
  23. package/Marketplace/chunk-HK4GOJ73.js +1 -0
  24. package/Marketplace/{chunk-M65Z55OS.js → chunk-HSA2EDQG.js} +1 -1
  25. package/Marketplace/chunk-IDBG7TAK.js +1 -0
  26. package/Marketplace/{chunk-RCBY7EIY.js → chunk-IWHLLPRU.js} +1 -1
  27. package/Marketplace/{chunk-5CHTDUME.js → chunk-JPSDIHQS.js} +1 -1
  28. package/Marketplace/{chunk-5KYN6Y7M.js → chunk-K7L2HJWH.js} +1 -1
  29. package/Marketplace/{chunk-3JYZF65T.js → chunk-LKOXNIF6.js} +1 -1
  30. package/Marketplace/{chunk-GVI6GJHY.js → chunk-LO7NU25H.js} +1 -1
  31. package/Marketplace/{chunk-ADKAX3OO.js → chunk-M5M7T3E4.js} +1 -1
  32. package/Marketplace/{chunk-UBTALPOC.js → chunk-NMN7TOB5.js} +1 -1
  33. package/Marketplace/{chunk-CLQGGKN6.js → chunk-NRMQVYZ5.js} +1 -1
  34. package/Marketplace/{chunk-KZSTYKIP.js → chunk-NVVJMZYV.js} +1 -1
  35. package/Marketplace/{chunk-QCV5XC3U.js → chunk-OMYXR4JG.js} +2 -2
  36. package/Marketplace/{chunk-PZKN5FIT.js → chunk-PCKX55VF.js} +1 -1
  37. package/Marketplace/{chunk-HKHNRMPT.js → chunk-PMJQCWXG.js} +1 -1
  38. package/Marketplace/{chunk-KSVJCX2D.js → chunk-QHN4ATYC.js} +1 -1
  39. package/Marketplace/{chunk-FCFCTT5A.js → chunk-QHWVLA6O.js} +1 -1
  40. package/Marketplace/{chunk-FRZCC6KZ.js → chunk-QINDZ3K2.js} +1 -1
  41. package/Marketplace/chunk-QJU4F5AN.js +1 -0
  42. package/Marketplace/{chunk-3K2EKA5O.js → chunk-RLSTZSKZ.js} +1 -1
  43. package/Marketplace/{chunk-XK4RP5MQ.js → chunk-RPI2RGAE.js} +1 -1
  44. package/Marketplace/{chunk-6OIMOM7S.js → chunk-UDM6UTHY.js} +1 -1
  45. package/Marketplace/{chunk-MKADKY44.js → chunk-UXCV6LVT.js} +1 -1
  46. package/Marketplace/{chunk-C6JHPCLF.js → chunk-VEX4VY2R.js} +1 -1
  47. package/Marketplace/{chunk-T7HRAMHR.js → chunk-VX75I7HA.js} +1 -1
  48. package/Marketplace/{chunk-GX6JPDQ5.js → chunk-X3VCSYP4.js} +1 -1
  49. package/Marketplace/index.html +2 -2
  50. package/Marketplace/{main-YJKBQ3LW.js → main-FO3SINLF.js} +1 -1
  51. package/package.json +1 -1
  52. package/Marketplace/chunk-5X2L45XK.js +0 -1
  53. package/Marketplace/chunk-VYQD3A3M.js +0 -1
  54. package/Marketplace/chunk-WRK3ZHRX.js +0 -1
  55. package/Marketplace/chunk-X6COQADC.js +0 -1
  56. package/Marketplace/chunk-XDBH7EGC.js +0 -1
@@ -1,4 +1,4 @@
1
- import{a as Pt,b as _t,d as Ti}from"./chunk-Q2QX5AAJ.js";import"./chunk-AZOCRKXK.js";import{a as di}from"./chunk-EYT2YJGK.js";import{b as bt}from"./chunk-RNWHARPK.js";import{a as _i}from"./chunk-5X2E3W32.js";import{a as ui}from"./chunk-UH5C5HXK.js";import{a as Jt}from"./chunk-ZSUWHVKX.js";import{a as Ci}from"./chunk-5KYN6Y7M.js";import{a as fi,b as bi}from"./chunk-3JRUKSV3.js";import"./chunk-SJ5MC42H.js";import{a as si}from"./chunk-4RLWHMI6.js";import"./chunk-NWB7EVME.js";import{d as ft,e as Bt}from"./chunk-AFDI4TD4.js";import"./chunk-4RG5YR7N.js";import"./chunk-5MV3UFJQ.js";import{a as ci,b as yi,c as wi}from"./chunk-E6AMKEQR.js";import{a as We,b as mi,c as gi}from"./chunk-IGKMJFKP.js";import{a as gt,d as pi,e as hi}from"./chunk-ITGVXYDV.js";import{a as Qe}from"./chunk-HK5FXZE4.js";import{b as Ke}from"./chunk-KJE5GRQ4.js";import{a as K}from"./chunk-4ILDFTIG.js";import"./chunk-A6QXXKPR.js";import{i as ti}from"./chunk-I723PUUO.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-M4ZE35XK.js";import{a as M,e as F,f as li}from"./chunk-L7WZ6U4T.js";import{b as Y,c as pe,d as Ae,e as A,f as ue}from"./chunk-LOWGZOML.js";import{G as oi,U as mt,V as qe,ja as ce,ka as ai,la as Ft,ma as Lt,oa as ri,ra as ie,sa as q}from"./chunk-5PMKN6PM.js";import"./chunk-AGBJEXIM.js";import{b as Zt,e as Xt}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import{c as Dt}from"./chunk-JBEKD57G.js";import{m as ii,n as ni}from"./chunk-EDEZ3JLR.js";import{A as we,a as Ie,b as Wt,g as ht,h as Ne,m as He}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import{b as Yt,c as ei}from"./chunk-ZETUYNFJ.js";import"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{c as Ve,e as pt,f as Le,g as ut,h as be,i as jt,l as qt,m as ne,n as Oe}from"./chunk-LNJUGHOX.js";import{$b as me,$c as G,Ac as v,Ba as tt,Bc as ae,Cc as b,Dc as _,Fd as T,Gb as I,Gd as Z,Ha as it,Hb as le,Hc as lt,Ib as Rt,Ic as Re,K as kt,Kb as E,Kc as ze,Lb as se,Lc as C,Mb as p,Mc as V,Nc as $e,Oa as x,Oc as te,Qc as Me,Rc as De,Sc as Fe,Z as et,Zb as D,Zc as oe,_c as Mt,ad as Se,bc as ge,cc as Ut,cd as st,dd as dt,ea as Ue,ec as at,ed as je,f as Pe,fc as rt,fd as $t,gc as l,hc as h,hd as Te,ic as m,id as ve,jc as B,kc as U,kd as ye,la as xe,lb as nt,lc as $,ma as ee,mc as L,na as re,nb as s,nc as O,oc as N,od as ct,pa as de,pc as k,qc as H,ra as z,rc as X,sb as R,tb as ot,td as fe,v as Gt,vc as P,xa as y,xc as c,ya as w,za as S,zb as ke}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import{a as Be,b as Ge}from"./chunk-66YHNWRR.js";var vi=`
1
+ import{a as Pt,b as _t,d as Ti}from"./chunk-Q2QX5AAJ.js";import"./chunk-AZOCRKXK.js";import{a as di}from"./chunk-EYT2YJGK.js";import{b as bt}from"./chunk-RNWHARPK.js";import{a as _i}from"./chunk-5X2E3W32.js";import{a as ui}from"./chunk-UH5C5HXK.js";import{a as Jt}from"./chunk-ZSUWHVKX.js";import{a as Ci}from"./chunk-K7L2HJWH.js";import{a as fi,b as bi}from"./chunk-3JRUKSV3.js";import"./chunk-SJ5MC42H.js";import{a as si}from"./chunk-4RLWHMI6.js";import"./chunk-NWB7EVME.js";import{d as ft,e as Bt}from"./chunk-AFDI4TD4.js";import"./chunk-4RG5YR7N.js";import"./chunk-5MV3UFJQ.js";import{a as ci,b as yi,c as wi}from"./chunk-E6AMKEQR.js";import{a as We,b as mi,c as gi}from"./chunk-IGKMJFKP.js";import{a as gt,d as pi,e as hi}from"./chunk-ITGVXYDV.js";import{a as Qe}from"./chunk-HK5FXZE4.js";import{b as Ke}from"./chunk-KJE5GRQ4.js";import{a as K}from"./chunk-4ILDFTIG.js";import"./chunk-A6QXXKPR.js";import{i as ti}from"./chunk-CS6LKY4V.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-M4ZE35XK.js";import{a as M,e as F,f as li}from"./chunk-L7WZ6U4T.js";import{b as Y,c as pe,d as Ae,e as A,f as ue}from"./chunk-LOWGZOML.js";import{G as oi,U as mt,V as qe,ja as ce,ka as ai,la as Ft,ma as Lt,oa as ri,ra as ie,sa as q}from"./chunk-5PMKN6PM.js";import"./chunk-AGBJEXIM.js";import{b as Zt,e as Xt}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import{c as Dt}from"./chunk-JBEKD57G.js";import{m as ii,n as ni}from"./chunk-EDEZ3JLR.js";import{A as we,a as Ie,b as Wt,g as ht,h as Ne,m as He}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import{b as Yt,c as ei}from"./chunk-ZETUYNFJ.js";import"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{c as Ve,e as pt,f as Le,g as ut,h as be,i as jt,l as qt,m as ne,n as Oe}from"./chunk-LNJUGHOX.js";import{$b as me,$c as G,Ac as v,Ba as tt,Bc as ae,Cc as b,Dc as _,Fd as T,Gb as I,Gd as Z,Ha as it,Hb as le,Hc as lt,Ib as Rt,Ic as Re,K as kt,Kb as E,Kc as ze,Lb as se,Lc as C,Mb as p,Mc as V,Nc as $e,Oa as x,Oc as te,Qc as Me,Rc as De,Sc as Fe,Z as et,Zb as D,Zc as oe,_c as Mt,ad as Se,bc as ge,cc as Ut,cd as st,dd as dt,ea as Ue,ec as at,ed as je,f as Pe,fc as rt,fd as $t,gc as l,hc as h,hd as Te,ic as m,id as ve,jc as B,kc as U,kd as ye,la as xe,lb as nt,lc as $,ma as ee,mc as L,na as re,nb as s,nc as O,oc as N,od as ct,pa as de,pc as k,qc as H,ra as z,rc as X,sb as R,tb as ot,td as fe,v as Gt,vc as P,xa as y,xc as c,ya as w,za as S,zb as ke}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import{a as Be,b as Ge}from"./chunk-66YHNWRR.js";var vi=`
2
2
  .p-datatable {
3
3
  position: relative;
4
4
  display: block;
@@ -1 +1 @@
1
- import{a as b,b as st}from"./chunk-VWX2IX64.js";import"./chunk-BKR7YPEW.js";import{a as ct}from"./chunk-5KYN6Y7M.js";import"./chunk-3JRUKSV3.js";import"./chunk-SJ5MC42H.js";import"./chunk-4RLWHMI6.js";import"./chunk-NWB7EVME.js";import{a as lt}from"./chunk-PDCVMSLL.js";import"./chunk-AFDI4TD4.js";import"./chunk-4RG5YR7N.js";import"./chunk-5MV3UFJQ.js";import"./chunk-E6AMKEQR.js";import"./chunk-IGKMJFKP.js";import"./chunk-ITGVXYDV.js";import"./chunk-HK5FXZE4.js";import"./chunk-KJE5GRQ4.js";import"./chunk-4ILDFTIG.js";import"./chunk-A6QXXKPR.js";import"./chunk-I723PUUO.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-M4ZE35XK.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import"./chunk-5PMKN6PM.js";import"./chunk-AGBJEXIM.js";import"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import"./chunk-JBEKD57G.js";import{m as at,n as rt}from"./chunk-EDEZ3JLR.js";import{A as ot,h as it,m as nt}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{G as tt,I as et,c as Y,i as G,j as Q,l as X,m as Z}from"./chunk-LNJUGHOX.js";import{$b as f,$c as z,Gb as T,Ha as w,Lc as $,Mc as n,Nc as x,Oc as C,Pc as O,Qc as H,Rc as J,Sc as W,Tc as q,Z as P,Zc as A,_c as j,ad as K,bc as _,bd as U,cc as L,dc as k,ec as I,fc as N,gc as m,hc as e,hd as v,ic as i,id as y,jc as B,jd as D,lb as M,nb as l,qc as R,ra as F,v as E,vc as V,xa as p,xc as S,ya as u}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var dt=(t,o)=>({"bg-gradient-danger":t,"bg-gradient-warning":o}),mt=()=>["/menu/products/status/notificationV2/detailV2"],pt=t=>({ID:t}),ut=(t,o,a)=>({"text-warning":t,"text-success":o,"text-danger":a});function ft(t,o){t&1&&(e(0,"div"),n(1," Scan in progress. You will be notified once it is complete. "),i())}function _t(t,o){if(t&1&&(e(0,"div"),n(1),v(2,"number"),i()),t&2){let a=o.$implicit;l(),O(" ",a.Key,": ",y(2,2,a.Value)," ")}}function St(t,o){if(t&1&&(e(0,"div",19)(1,"div",18),n(2,"Status Product:"),i(),I(3,_t,3,4,"div",null,L),i()),t&2){let a=S(2).$implicit;l(3),N(a.ParsedStatus)}}function Ct(t,o){if(t&1&&(e(0,"div",18),n(1),i(),e(2,"div"),n(3),i(),f(4,St,5,0,"div",19)),t&2){let a=S().$implicit;l(),C(" ",a.ProcessLabel," "),l(2),x(a.ProcessDescription),l(),_(a!=null&&a.ParsedStatus&&(a==null||a.ParsedStatus==null?null:a.ParsedStatus.length)>0?4:-1)}}function vt(t,o){if(t&1&&(n(0),v(1,"number"),e(2,"span"),n(3,"s"),i()),t&2){let a=S().$implicit;C(" ",D(1,1,a.DurationInSecond,"1.1-1")," ")}}function xt(t,o){t&1&&n(0," - ")}function gt(t,o){t&1&&n(0," In Progress ")}function ht(t,o){t&1&&n(0," Completed ")}function It(t,o){t&1&&n(0," Failed ")}function Nt(t,o){if(t&1&&(e(0,"tr",12)(1,"td")(2,"a",15),n(3),i()(),e(4,"td")(5,"div",16),B(6,"img",17),e(7,"span"),n(8),i()()(),e(9,"td"),f(10,ft,2,0,"div")(11,Ct,5,3),i(),e(12,"td"),f(13,vt,4,4)(14,xt,1,0),i(),e(15,"td")(16,"div",18),f(17,gt,1,0)(18,ht,1,0)(19,It,1,0),i()(),e(20,"td",19)(21,"div"),n(22),i(),e(23,"div"),n(24),v(25,"date"),i()()()),t&2){let a,r=o.$implicit,c=S();m("ngClass",K(16,dt,r.Status==1,r.Status==0)),l(2),m("routerLink",j(19,mt))("queryParams",z(20,pt,r.ID)),l(),C(" ",r.ID," "),l(3),m("src",r.Img,M),l(2),x(r.ChannelName),l(2),_(r.StateID==c.scanState.InProgress?10:11),l(3),_(r.DurationInSecond?13:14),l(3),$(U(22,ut,r.StateID==c.scanState.InProgress,r.StateID==c.scanState.Completed,r.StateID==c.scanState.Failed)),l(),_((a=r.StateID)===c.scanState.InProgress?17:a===c.scanState.Completed?18:a===c.scanState.Failed?19:-1),l(5),x(r.LoginID),l(2),C(" ",D(25,13,r.Created,"dd MMM yyyy HH:mm")," ")}}var Jt=(()=>{let o=class o{constructor(){this.notificationService=F(b),this.filter=w({RowCount:20,PageNumber:1,ChannelID:null}),this.scanState=st,this.initNotifications()}initNotifications(){this.notifications$=this.notificationService.getNotificationList(this.filter()).pipe(E(r=>(r.Data=r.Data.map(c=>(c.StatusProduct&&(c.ParsedStatus=JSON.parse(c.StatusProduct)),c)),r)),P(1))}onFilter(){this.initNotifications()}};o.\u0275fac=function(c){return new(c||o)},o.\u0275cmp=T({type:o,selectors:[["app-notificationV2"]],features:[A([b])],decls:37,vars:8,consts:[["headerTitle","Notification",3,"onSubmit","hideSearchBox"],["routerLink","/menu/products/status/notification",1,"btn","btn-outline-secondary","btn-lg"],[1,"fw-bold","mb-2"],[3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"table","table-hover"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","260px"],[3,"ngClass"],[1,"col-12"],[3,"next","previous","filter","totaldata","paginationTotal","hasClicked"],[3,"routerLink","queryParams"],[1,"d-flex","align-items-center","gap-3"],[1,"channelLogo-md",3,"src","alt"],[1,"fw-bold"],[1,"lh-base"]],template:function(c,d){if(c&1){let s=R();q(0),v(1,"async"),e(2,"mainpanel",0),V("onSubmit",function(){return p(s),u(d.onFilter())}),e(3,"actions")(4,"a",1),n(5," Scan Job V1 "),i()(),e(6,"filters")(7,"div")(8,"label",2),n(9,"Channel"),i(),e(10,"app-channel-options-v2",3),W("ngModelChange",function(h){return p(s),J(d.filter().ChannelID,h)||(d.filter().ChannelID=h),u(h)}),i()()(),e(11,"content")(12,"div",4)(13,"div",5)(14,"div",6)(15,"div",7)(16,"table",8)(17,"thead",9)(18,"tr",10)(19,"th",11),n(20,"Job ID"),i(),e(21,"th"),n(22,"Channel"),i(),e(23,"th"),n(24,"Process"),i(),e(25,"th"),n(26,"Duration"),i(),e(27,"th"),n(28,"Status"),i(),e(29,"th"),n(30,"Creator"),i()()(),e(31,"tbody"),I(32,Nt,26,26,"tr",12,k),i()()()()(),e(34,"div",5)(35,"div",13)(36,"app-custom-paginator",14),V("next",function(){return p(s),u(d.initNotifications())})("previous",function(){return p(s),u(d.initNotifications())}),i()()()()()()}if(c&2){let s=y(1,6,d.notifications$);l(2),m("hideSearchBox",!0),l(8),H("ngModel",d.filter().ChannelID),l(22),N(s==null?null:s.Data),l(4),m("filter",d.filter())("totaldata",s==null||s.Data==null?null:s.Data.length)("paginationTotal",s==null?null:s.Count)("hasClicked",!0)}},dependencies:[Z,Y,ot,it,nt,rt,at,lt,et,tt,ct,G,X,Q],encapsulation:2});let t=o;return t})();export{Jt as NotificationV2Component};
1
+ import{a as b,b as st}from"./chunk-VWX2IX64.js";import"./chunk-BKR7YPEW.js";import{a as ct}from"./chunk-K7L2HJWH.js";import"./chunk-3JRUKSV3.js";import"./chunk-SJ5MC42H.js";import"./chunk-4RLWHMI6.js";import"./chunk-NWB7EVME.js";import{a as lt}from"./chunk-PDCVMSLL.js";import"./chunk-AFDI4TD4.js";import"./chunk-4RG5YR7N.js";import"./chunk-5MV3UFJQ.js";import"./chunk-E6AMKEQR.js";import"./chunk-IGKMJFKP.js";import"./chunk-ITGVXYDV.js";import"./chunk-HK5FXZE4.js";import"./chunk-KJE5GRQ4.js";import"./chunk-4ILDFTIG.js";import"./chunk-A6QXXKPR.js";import"./chunk-CS6LKY4V.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-M4ZE35XK.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import"./chunk-5PMKN6PM.js";import"./chunk-AGBJEXIM.js";import"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import"./chunk-JBEKD57G.js";import{m as at,n as rt}from"./chunk-EDEZ3JLR.js";import{A as ot,h as it,m as nt}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{G as tt,I as et,c as Y,i as G,j as Q,l as X,m as Z}from"./chunk-LNJUGHOX.js";import{$b as f,$c as z,Gb as T,Ha as w,Lc as $,Mc as n,Nc as x,Oc as C,Pc as O,Qc as H,Rc as J,Sc as W,Tc as q,Z as P,Zc as A,_c as j,ad as K,bc as _,bd as U,cc as L,dc as k,ec as I,fc as N,gc as m,hc as e,hd as v,ic as i,id as y,jc as B,jd as D,lb as M,nb as l,qc as R,ra as F,v as E,vc as V,xa as p,xc as S,ya as u}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var dt=(t,o)=>({"bg-gradient-danger":t,"bg-gradient-warning":o}),mt=()=>["/menu/products/status/notificationV2/detailV2"],pt=t=>({ID:t}),ut=(t,o,a)=>({"text-warning":t,"text-success":o,"text-danger":a});function ft(t,o){t&1&&(e(0,"div"),n(1," Scan in progress. You will be notified once it is complete. "),i())}function _t(t,o){if(t&1&&(e(0,"div"),n(1),v(2,"number"),i()),t&2){let a=o.$implicit;l(),O(" ",a.Key,": ",y(2,2,a.Value)," ")}}function St(t,o){if(t&1&&(e(0,"div",19)(1,"div",18),n(2,"Status Product:"),i(),I(3,_t,3,4,"div",null,L),i()),t&2){let a=S(2).$implicit;l(3),N(a.ParsedStatus)}}function Ct(t,o){if(t&1&&(e(0,"div",18),n(1),i(),e(2,"div"),n(3),i(),f(4,St,5,0,"div",19)),t&2){let a=S().$implicit;l(),C(" ",a.ProcessLabel," "),l(2),x(a.ProcessDescription),l(),_(a!=null&&a.ParsedStatus&&(a==null||a.ParsedStatus==null?null:a.ParsedStatus.length)>0?4:-1)}}function vt(t,o){if(t&1&&(n(0),v(1,"number"),e(2,"span"),n(3,"s"),i()),t&2){let a=S().$implicit;C(" ",D(1,1,a.DurationInSecond,"1.1-1")," ")}}function xt(t,o){t&1&&n(0," - ")}function gt(t,o){t&1&&n(0," In Progress ")}function ht(t,o){t&1&&n(0," Completed ")}function It(t,o){t&1&&n(0," Failed ")}function Nt(t,o){if(t&1&&(e(0,"tr",12)(1,"td")(2,"a",15),n(3),i()(),e(4,"td")(5,"div",16),B(6,"img",17),e(7,"span"),n(8),i()()(),e(9,"td"),f(10,ft,2,0,"div")(11,Ct,5,3),i(),e(12,"td"),f(13,vt,4,4)(14,xt,1,0),i(),e(15,"td")(16,"div",18),f(17,gt,1,0)(18,ht,1,0)(19,It,1,0),i()(),e(20,"td",19)(21,"div"),n(22),i(),e(23,"div"),n(24),v(25,"date"),i()()()),t&2){let a,r=o.$implicit,c=S();m("ngClass",K(16,dt,r.Status==1,r.Status==0)),l(2),m("routerLink",j(19,mt))("queryParams",z(20,pt,r.ID)),l(),C(" ",r.ID," "),l(3),m("src",r.Img,M),l(2),x(r.ChannelName),l(2),_(r.StateID==c.scanState.InProgress?10:11),l(3),_(r.DurationInSecond?13:14),l(3),$(U(22,ut,r.StateID==c.scanState.InProgress,r.StateID==c.scanState.Completed,r.StateID==c.scanState.Failed)),l(),_((a=r.StateID)===c.scanState.InProgress?17:a===c.scanState.Completed?18:a===c.scanState.Failed?19:-1),l(5),x(r.LoginID),l(2),C(" ",D(25,13,r.Created,"dd MMM yyyy HH:mm")," ")}}var Jt=(()=>{let o=class o{constructor(){this.notificationService=F(b),this.filter=w({RowCount:20,PageNumber:1,ChannelID:null}),this.scanState=st,this.initNotifications()}initNotifications(){this.notifications$=this.notificationService.getNotificationList(this.filter()).pipe(E(r=>(r.Data=r.Data.map(c=>(c.StatusProduct&&(c.ParsedStatus=JSON.parse(c.StatusProduct)),c)),r)),P(1))}onFilter(){this.initNotifications()}};o.\u0275fac=function(c){return new(c||o)},o.\u0275cmp=T({type:o,selectors:[["app-notificationV2"]],features:[A([b])],decls:37,vars:8,consts:[["headerTitle","Notification",3,"onSubmit","hideSearchBox"],["routerLink","/menu/products/status/notification",1,"btn","btn-outline-secondary","btn-lg"],[1,"fw-bold","mb-2"],[3,"ngModelChange","ngModel"],[1,"container-fluid","mt-3"],[1,"row"],[1,"col-md-12"],[1,"table-responsive"],[1,"table","table-hover"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","260px"],[3,"ngClass"],[1,"col-12"],[3,"next","previous","filter","totaldata","paginationTotal","hasClicked"],[3,"routerLink","queryParams"],[1,"d-flex","align-items-center","gap-3"],[1,"channelLogo-md",3,"src","alt"],[1,"fw-bold"],[1,"lh-base"]],template:function(c,d){if(c&1){let s=R();q(0),v(1,"async"),e(2,"mainpanel",0),V("onSubmit",function(){return p(s),u(d.onFilter())}),e(3,"actions")(4,"a",1),n(5," Scan Job V1 "),i()(),e(6,"filters")(7,"div")(8,"label",2),n(9,"Channel"),i(),e(10,"app-channel-options-v2",3),W("ngModelChange",function(h){return p(s),J(d.filter().ChannelID,h)||(d.filter().ChannelID=h),u(h)}),i()()(),e(11,"content")(12,"div",4)(13,"div",5)(14,"div",6)(15,"div",7)(16,"table",8)(17,"thead",9)(18,"tr",10)(19,"th",11),n(20,"Job ID"),i(),e(21,"th"),n(22,"Channel"),i(),e(23,"th"),n(24,"Process"),i(),e(25,"th"),n(26,"Duration"),i(),e(27,"th"),n(28,"Status"),i(),e(29,"th"),n(30,"Creator"),i()()(),e(31,"tbody"),I(32,Nt,26,26,"tr",12,k),i()()()()(),e(34,"div",5)(35,"div",13)(36,"app-custom-paginator",14),V("next",function(){return p(s),u(d.initNotifications())})("previous",function(){return p(s),u(d.initNotifications())}),i()()()()()()}if(c&2){let s=y(1,6,d.notifications$);l(2),m("hideSearchBox",!0),l(8),H("ngModel",d.filter().ChannelID),l(22),N(s==null?null:s.Data),l(4),m("filter",d.filter())("totaldata",s==null||s.Data==null?null:s.Data.length)("paginationTotal",s==null?null:s.Count)("hasClicked",!0)}},dependencies:[Z,Y,ot,it,nt,rt,at,lt,et,tt,ct,G,X,Q],encapsulation:2});let t=o;return t})();export{Jt as NotificationV2Component};
@@ -1,4 +1,4 @@
1
- import{a as x}from"./chunk-QXRG5XYP.js";import{a as Xe,b as ye,c as Ye,d as Qe,e as we,f as et,g as Se,h as tt,i as Q,j as ve,k as R}from"./chunk-RXLMJGUY.js";import{a as ot}from"./chunk-AGBJEXIM.js";import{e as oe}from"./chunk-OXWPYJNB.js";import{b as me,c as F}from"./chunk-JBEKD57G.js";import{b as rt}from"./chunk-YTHY4IFS.js";import{a as nt}from"./chunk-ZETUYNFJ.js";import{F as Ze,n as Ge,o as Je}from"./chunk-LNJUGHOX.js";import{Ca as Ve,F as Le,G as Ue,Ha as ne,Hb as q,La as qe,O as he,S as $e,T as He,Va as z,Z as pe,aa as B,ba as fe,c as m,ea as Y,f as Ne,ga as We,ha as Ke,j as Be,k as Me,ma as T,n as Z,na as K,o as re,p as M,pa as P,q as X,qa as g,ra as O,tb as V,ua as ge,v as j,w as Fe,wa as ze,zd as H}from"./chunk-ZYJ6LAJ3.js";import{b as w}from"./chunk-WFMAM73Y.js";import{a as de,i as k}from"./chunk-66YHNWRR.js";var it={production:!0,version:"5.48.2",firebaseConfig:{apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"},news:"https://changelog.dealpos.app/umbraco/delivery/api/v2/content?fetch=children:omni&sort=sortOrder:asc"};var Ct="firebase",Dt="11.10.0";Q(Ct,Dt,"app");var G=new We("ANGULARFIRE2_VERSION");var st=(r,o)=>{let s=o?[o]:tt(),e=[];return s.forEach(t=>{t.container.getProvider(r).instances.forEach(i=>{e.includes(i)||e.push(i)})}),e},ke=(function(r){return r[r.SILENT=0]="SILENT",r[r.WARN=1]="WARN",r[r.VERBOSE=2]="VERBOSE",r})(ke||{}),Lr=H()&&typeof Zone<"u"?ke.WARN:ke.SILENT;var ie=class{zone;delegate;constructor(o,s=Me){this.zone=o,this.delegate=s}now(){return this.delegate.now()}schedule(o,s,e){let t=this.zone,n=function(i){t?t.runGuarded(()=>{o.apply(this,[i])}):o.apply(this,[i])};return this.delegate.schedule(n,s,e)}},Ae=(()=>{class r{outsideAngular;insideAngular;constructor(){let s=O(V);this.outsideAngular=s.runOutsideAngular(()=>new ie(typeof Zone>"u"?void 0:Zone.current)),this.insideAngular=s.run(()=>new ie(typeof Zone>"u"?void 0:Zone.current,Be))}static \u0275fac=function(e){return new(e||r)};static \u0275prov=T({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var xt=new Map,Rt={activated:!1,tokenObservers:[]},_t={initialized:!1,enabled:!1};function _(r){return xt.get(r)||Object.assign({},Rt)}function ut(){return _t}var jt="https://content-firebaseappcheck.googleapis.com/v1";var Ot="exchangeDebugToken",at={OFFSET_DURATION:300*1e3,RETRIAL_MIN_WAIT:30*1e3,RETRIAL_MAX_WAIT:960*1e3},Zr=1440*60*1e3;var Ie=class{constructor(o,s,e,t,n){if(this.operation=o,this.retryPolicy=s,this.getWaitDuration=e,this.lowerBound=t,this.upperBound=n,this.pending=null,this.nextErrorWaitInterval=t,t>n)throw new Error("Proactive refresh lower bound greater than upper bound!")}start(){this.nextErrorWaitInterval=this.lowerBound,this.process(!0).catch(()=>{})}stop(){this.pending&&(this.pending.reject("cancelled"),this.pending=null)}isRunning(){return!!this.pending}process(o){return k(this,null,function*(){this.stop();try{this.pending=new ye,this.pending.promise.catch(s=>{}),yield Nt(this.getNextRun(o)),this.pending.resolve(),yield this.pending.promise,this.pending=new ye,this.pending.promise.catch(s=>{}),yield this.operation(),this.pending.resolve(),yield this.pending.promise,this.process(!0).catch(()=>{})}catch(s){this.retryPolicy(s)?this.process(!1).catch(()=>{}):this.stop()}})}getNextRun(o){if(o)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{let s=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),s}}};function Nt(r){return new Promise(o=>{setTimeout(o,r)})}var Bt={"already-initialized":"You have already called initializeAppCheck() for FirebaseApp {$appName} with different options. To avoid this error, call initializeAppCheck() with the same options as when it was originally called. This will return the already initialized instance.","use-before-activation":"App Check is being used before initializeAppCheck() is called for FirebaseApp {$appName}. Call initializeAppCheck() before instantiating other Firebase services.","fetch-network-error":"Fetch failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-parse-error":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status-error":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","recaptcha-error":"ReCAPTCHA error.","initial-throttle":"{$httpStatus} error. Attempts allowed again after {$time}",throttled:"Requests throttled due to previous {$httpStatus} error. Attempts allowed again after {$time}"},U=new Qe("appCheck","AppCheck",Bt);function dt(r){if(!_(r).activated)throw U.create("use-before-activation",{appName:r.name})}function ht(e,t){return k(this,arguments,function*({url:r,body:o},s){let n={"Content-Type":"application/json"},i=s.getImmediate({optional:!0});if(i){let h=yield i.getHeartbeatsHeader();h&&(n["X-Firebase-Client"]=h)}let a={method:"POST",body:JSON.stringify(o),headers:n},l;try{l=yield fetch(r,a)}catch(h){throw U.create("fetch-network-error",{originalErrorMessage:h?.message})}if(l.status!==200)throw U.create("fetch-status-error",{httpStatus:l.status});let c;try{c=yield l.json()}catch(h){throw U.create("fetch-parse-error",{originalErrorMessage:h?.message})}let u=c.ttl.match(/^([\d.]+)(s)$/);if(!u||!u[2]||isNaN(Number(u[1])))throw U.create("fetch-parse-error",{originalErrorMessage:`ttl field (timeToLive) is not in standard Protobuf Duration format: ${c.ttl}`});let f=Number(u[1])*1e3,d=Date.now();return{token:c.token,expireTimeMillis:d+f,issuedAtTimeMillis:d}})}function pt(r,o){let{projectId:s,appId:e,apiKey:t}=r.options;return{url:`${jt}/projects/${s}/apps/${e}:${Ot}?key=${t}`,body:{debug_token:o}}}var Mt="firebase-app-check-database",Ft=1,Te="firebase-app-check-store";var se=null;function Lt(){return se||(se=new Promise((r,o)=>{try{let s=indexedDB.open(Mt,Ft);s.onsuccess=e=>{r(e.target.result)},s.onerror=e=>{var t;o(U.create("storage-open",{originalErrorMessage:(t=e.target.error)===null||t===void 0?void 0:t.message}))},s.onupgradeneeded=e=>{let t=e.target.result;switch(e.oldVersion){case 0:t.createObjectStore(Te,{keyPath:"compositeKey"})}}}catch(s){o(U.create("storage-open",{originalErrorMessage:s?.message}))}}),se)}function Ut(r,o){return $t(Ht(r),o)}function $t(r,o){return k(this,null,function*(){let e=(yield Lt()).transaction(Te,"readwrite"),n=e.objectStore(Te).put({compositeKey:r,value:o});return new Promise((i,a)=>{n.onsuccess=l=>{i()},e.onerror=l=>{var c;a(U.create("storage-set",{originalErrorMessage:(c=l.target.error)===null||c===void 0?void 0:c.message}))}})})}function Ht(r){return`${r.options.appId}-${r.name}`}var ee=new et("@firebase/app-check");function be(r,o){return Ye()?Ut(r,o).catch(s=>{ee.warn(`Failed to write token to IndexedDB. Error: ${s}`)}):Promise.resolve()}function ft(){return ut().enabled}function gt(){return k(this,null,function*(){let r=ut();if(r.enabled&&r.token)return r.token.promise;throw Error(`
1
+ import{a as x}from"./chunk-QXRG5XYP.js";import{a as Xe,b as ye,c as Ye,d as Qe,e as we,f as et,g as Se,h as tt,i as Q,j as ve,k as R}from"./chunk-RXLMJGUY.js";import{a as ot}from"./chunk-AGBJEXIM.js";import{e as oe}from"./chunk-OXWPYJNB.js";import{b as me,c as F}from"./chunk-JBEKD57G.js";import{b as rt}from"./chunk-YTHY4IFS.js";import{a as nt}from"./chunk-ZETUYNFJ.js";import{F as Ze,n as Ge,o as Je}from"./chunk-LNJUGHOX.js";import{Ca as Ve,F as Le,G as Ue,Ha as ne,Hb as q,La as qe,O as he,S as $e,T as He,Va as z,Z as pe,aa as B,ba as fe,c as m,ea as Y,f as Ne,ga as We,ha as Ke,j as Be,k as Me,ma as T,n as Z,na as K,o as re,p as M,pa as P,q as X,qa as g,ra as O,tb as V,ua as ge,v as j,w as Fe,wa as ze,zd as H}from"./chunk-ZYJ6LAJ3.js";import{b as w}from"./chunk-WFMAM73Y.js";import{a as de,i as k}from"./chunk-66YHNWRR.js";var it={production:!0,version:"5.48.4",firebaseConfig:{apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"},news:"https://changelog.dealpos.app/umbraco/delivery/api/v2/content?fetch=children:omni&sort=sortOrder:asc"};var Ct="firebase",Dt="11.10.0";Q(Ct,Dt,"app");var G=new We("ANGULARFIRE2_VERSION");var st=(r,o)=>{let s=o?[o]:tt(),e=[];return s.forEach(t=>{t.container.getProvider(r).instances.forEach(i=>{e.includes(i)||e.push(i)})}),e},ke=(function(r){return r[r.SILENT=0]="SILENT",r[r.WARN=1]="WARN",r[r.VERBOSE=2]="VERBOSE",r})(ke||{}),Lr=H()&&typeof Zone<"u"?ke.WARN:ke.SILENT;var ie=class{zone;delegate;constructor(o,s=Me){this.zone=o,this.delegate=s}now(){return this.delegate.now()}schedule(o,s,e){let t=this.zone,n=function(i){t?t.runGuarded(()=>{o.apply(this,[i])}):o.apply(this,[i])};return this.delegate.schedule(n,s,e)}},Ae=(()=>{class r{outsideAngular;insideAngular;constructor(){let s=O(V);this.outsideAngular=s.runOutsideAngular(()=>new ie(typeof Zone>"u"?void 0:Zone.current)),this.insideAngular=s.run(()=>new ie(typeof Zone>"u"?void 0:Zone.current,Be))}static \u0275fac=function(e){return new(e||r)};static \u0275prov=T({token:r,factory:r.\u0275fac,providedIn:"root"})}return r})();var xt=new Map,Rt={activated:!1,tokenObservers:[]},_t={initialized:!1,enabled:!1};function _(r){return xt.get(r)||Object.assign({},Rt)}function ut(){return _t}var jt="https://content-firebaseappcheck.googleapis.com/v1";var Ot="exchangeDebugToken",at={OFFSET_DURATION:300*1e3,RETRIAL_MIN_WAIT:30*1e3,RETRIAL_MAX_WAIT:960*1e3},Zr=1440*60*1e3;var Ie=class{constructor(o,s,e,t,n){if(this.operation=o,this.retryPolicy=s,this.getWaitDuration=e,this.lowerBound=t,this.upperBound=n,this.pending=null,this.nextErrorWaitInterval=t,t>n)throw new Error("Proactive refresh lower bound greater than upper bound!")}start(){this.nextErrorWaitInterval=this.lowerBound,this.process(!0).catch(()=>{})}stop(){this.pending&&(this.pending.reject("cancelled"),this.pending=null)}isRunning(){return!!this.pending}process(o){return k(this,null,function*(){this.stop();try{this.pending=new ye,this.pending.promise.catch(s=>{}),yield Nt(this.getNextRun(o)),this.pending.resolve(),yield this.pending.promise,this.pending=new ye,this.pending.promise.catch(s=>{}),yield this.operation(),this.pending.resolve(),yield this.pending.promise,this.process(!0).catch(()=>{})}catch(s){this.retryPolicy(s)?this.process(!1).catch(()=>{}):this.stop()}})}getNextRun(o){if(o)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{let s=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),s}}};function Nt(r){return new Promise(o=>{setTimeout(o,r)})}var Bt={"already-initialized":"You have already called initializeAppCheck() for FirebaseApp {$appName} with different options. To avoid this error, call initializeAppCheck() with the same options as when it was originally called. This will return the already initialized instance.","use-before-activation":"App Check is being used before initializeAppCheck() is called for FirebaseApp {$appName}. Call initializeAppCheck() before instantiating other Firebase services.","fetch-network-error":"Fetch failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.","fetch-parse-error":"Fetch client could not parse response. Original error: {$originalErrorMessage}.","fetch-status-error":"Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","recaptcha-error":"ReCAPTCHA error.","initial-throttle":"{$httpStatus} error. Attempts allowed again after {$time}",throttled:"Requests throttled due to previous {$httpStatus} error. Attempts allowed again after {$time}"},U=new Qe("appCheck","AppCheck",Bt);function dt(r){if(!_(r).activated)throw U.create("use-before-activation",{appName:r.name})}function ht(e,t){return k(this,arguments,function*({url:r,body:o},s){let n={"Content-Type":"application/json"},i=s.getImmediate({optional:!0});if(i){let h=yield i.getHeartbeatsHeader();h&&(n["X-Firebase-Client"]=h)}let a={method:"POST",body:JSON.stringify(o),headers:n},l;try{l=yield fetch(r,a)}catch(h){throw U.create("fetch-network-error",{originalErrorMessage:h?.message})}if(l.status!==200)throw U.create("fetch-status-error",{httpStatus:l.status});let c;try{c=yield l.json()}catch(h){throw U.create("fetch-parse-error",{originalErrorMessage:h?.message})}let u=c.ttl.match(/^([\d.]+)(s)$/);if(!u||!u[2]||isNaN(Number(u[1])))throw U.create("fetch-parse-error",{originalErrorMessage:`ttl field (timeToLive) is not in standard Protobuf Duration format: ${c.ttl}`});let f=Number(u[1])*1e3,d=Date.now();return{token:c.token,expireTimeMillis:d+f,issuedAtTimeMillis:d}})}function pt(r,o){let{projectId:s,appId:e,apiKey:t}=r.options;return{url:`${jt}/projects/${s}/apps/${e}:${Ot}?key=${t}`,body:{debug_token:o}}}var Mt="firebase-app-check-database",Ft=1,Te="firebase-app-check-store";var se=null;function Lt(){return se||(se=new Promise((r,o)=>{try{let s=indexedDB.open(Mt,Ft);s.onsuccess=e=>{r(e.target.result)},s.onerror=e=>{var t;o(U.create("storage-open",{originalErrorMessage:(t=e.target.error)===null||t===void 0?void 0:t.message}))},s.onupgradeneeded=e=>{let t=e.target.result;switch(e.oldVersion){case 0:t.createObjectStore(Te,{keyPath:"compositeKey"})}}}catch(s){o(U.create("storage-open",{originalErrorMessage:s?.message}))}}),se)}function Ut(r,o){return $t(Ht(r),o)}function $t(r,o){return k(this,null,function*(){let e=(yield Lt()).transaction(Te,"readwrite"),n=e.objectStore(Te).put({compositeKey:r,value:o});return new Promise((i,a)=>{n.onsuccess=l=>{i()},e.onerror=l=>{var c;a(U.create("storage-set",{originalErrorMessage:(c=l.target.error)===null||c===void 0?void 0:c.message}))}})})}function Ht(r){return`${r.options.appId}-${r.name}`}var ee=new et("@firebase/app-check");function be(r,o){return Ye()?Ut(r,o).catch(s=>{ee.warn(`Failed to write token to IndexedDB. Error: ${s}`)}):Promise.resolve()}function ft(){return ut().enabled}function gt(){return k(this,null,function*(){let r=ut();if(r.enabled&&r.token)return r.token.promise;throw Error(`
2
2
  Can't get debug token in production mode.
3
3
  `)})}var Wt={error:"UNKNOWN_ERROR"};function Kt(r){return Xe.encodeString(JSON.stringify(r),!1)}function Ce(r,o=!1,s=!1){return k(this,null,function*(){let e=r.app;dt(e);let t=_(e),n=t.token,i;if(n&&!te(n)&&(t.token=void 0,n=void 0),!n){let c=yield t.cachedTokenPromise;c&&(te(c)?n=c:yield be(e,void 0))}if(!o&&n&&te(n))return{token:n.token};let a=!1;if(ft())try{t.exchangeTokenPromise||(t.exchangeTokenPromise=ht(pt(e,yield gt()),r.heartbeatServiceProvider).finally(()=>{t.exchangeTokenPromise=void 0}),a=!0);let c=yield t.exchangeTokenPromise;return yield be(e,c),t.token=c,{token:c.token}}catch(c){return c.code==="appCheck/throttled"||c.code==="appCheck/initial-throttle"?ee.warn(c.message):s&&ee.error(c),Ee(c)}try{t.exchangeTokenPromise||(t.exchangeTokenPromise=t.provider.getToken().finally(()=>{t.exchangeTokenPromise=void 0}),a=!0),n=yield _(e).exchangeTokenPromise}catch(c){c.code==="appCheck/throttled"||c.code==="appCheck/initial-throttle"?ee.warn(c.message):s&&ee.error(c),i=c}let l;return n?i?te(n)?l={token:n.token,internalError:i}:l=Ee(i):(l={token:n.token},t.token=n,yield be(e,n)):l=Ee(i),a&&Gt(e,l),l})}function zt(r){return k(this,null,function*(){let o=r.app;dt(o);let{provider:s}=_(o);if(ft()){let e=yield gt(),{token:t}=yield ht(pt(o,e),r.heartbeatServiceProvider);return{token:t}}else{let{token:e}=yield s.getToken();return{token:e}}})}function Vt(r,o,s,e){let{app:t}=r,n=_(t),i={next:s,error:e,type:o};if(n.tokenObservers=[...n.tokenObservers,i],n.token&&te(n.token)){let a=n.token;Promise.resolve().then(()=>{s({token:a.token}),ct(r)}).catch(()=>{})}n.cachedTokenPromise.then(()=>ct(r))}function mt(r,o){let s=_(r),e=s.tokenObservers.filter(t=>t.next!==o);e.length===0&&s.tokenRefresher&&s.tokenRefresher.isRunning()&&s.tokenRefresher.stop(),s.tokenObservers=e}function ct(r){let{app:o}=r,s=_(o),e=s.tokenRefresher;e||(e=qt(r),s.tokenRefresher=e),!e.isRunning()&&s.isTokenAutoRefreshEnabled&&e.start()}function qt(r){let{app:o}=r;return new Ie(()=>k(null,null,function*(){let s=_(o),e;if(s.token?e=yield Ce(r,!0):e=yield Ce(r),e.error)throw e.error;if(e.internalError)throw e.internalError}),()=>!0,()=>{let s=_(o);if(s.token){let e=s.token.issuedAtTimeMillis+(s.token.expireTimeMillis-s.token.issuedAtTimeMillis)*.5+3e5,t=s.token.expireTimeMillis-300*1e3;return e=Math.min(e,t),Math.max(0,e-Date.now())}else return 0},at.RETRIAL_MIN_WAIT,at.RETRIAL_MAX_WAIT)}function Gt(r,o){let s=_(r).tokenObservers;for(let e of s)try{e.type==="EXTERNAL"&&o.error!=null?e.error(o.error):e.next(o)}catch{}}function te(r){return r.expireTimeMillis-Date.now()>0}function Ee(r){return{token:Kt(Wt),error:r}}var De=class{constructor(o,s){this.app=o,this.heartbeatServiceProvider=s}_delete(){let{tokenObservers:o}=_(this.app);for(let s of o)mt(this.app,s.next);return Promise.resolve()}};function Jt(r,o){return new De(r,o)}function Zt(r){return{getToken:o=>Ce(r,o),getLimitedUseToken:()=>zt(r),addTokenListener:o=>Vt(r,"INTERNAL",o),removeTokenListener:o=>mt(r.app,o)}}var Xt="@firebase/app-check",Yt="0.10.1";var Qt="app-check",lt="app-check-internal";function er(){Se(new we(Qt,r=>{let o=r.getProvider("app").getImmediate(),s=r.getProvider("heartbeat");return Jt(o,s)},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((r,o,s)=>{r.getProvider(lt).initialize()})),Se(new we(lt,r=>{let o=r.getProvider("app-check").getImmediate();return Zt(o)},"PUBLIC").setInstantiationMode("EXPLICIT")),Q(Xt,Yt)}er();var tr="app-check";var ae=class{constructor(){return st(tr)}};var rr=["localhost","0.0.0.0","127.0.0.1"],hn=typeof window<"u"&&rr.includes(window.location.hostname);var yt=(()=>{let o=class o{constructor(){}getParseToken(){let e=JSON.parse(window.localStorage.getItem("user"));return this.ParseToken(e.Token.access_token)}GetRoles(){let t=this.getParseToken()["http://schemas.microsoft.com/ws/2008/06/identity/claims/role"];return typeof t=="string"&&(t=[t]),t||[]}ParseToken(e){try{let n=e.split(".")[0].replace("-","+").replace("_","/"),i=JSON.parse(window.atob(n)),l=e.split(".")[1].replace("-","+").replace("_","/"),c=JSON.parse(window.atob(l));return c.header=i,c}catch{return!1}}};o.\u0275fac=function(t){return new(t||o)},o.\u0275prov=T({token:o,factory:o.\u0275fac,providedIn:"root"});let r=o;return r})();var ir="firebase",sr="11.10.0";R.registerVersion(ir,sr,"app-compat");var ar=["ngOnDestroy"],St=(r,o,s,e={})=>new Proxy(r,{get:(t,n)=>s.runOutsideAngular(()=>{if(r[n])return e?.spy?.get&&e.spy.get(n,r[n]),r[n];if(ar.indexOf(n)>-1)return()=>{};let i=o.toPromise().then(a=>{let l=a?.[n];return typeof l=="function"?l.bind(a):l?.then?l.then(c=>s.run(()=>c)):s.run(()=>l)});return new Proxy(()=>{},{get:(a,l)=>i[l],apply:(a,l,c)=>i.then(u=>{let f=u?.(...c);return e?.spy?.apply&&e.spy.apply(n,c,f),f})})})});var ce=class{constructor(o){return o}},le=new P("angularfire2.app.options"),ue=new P("angularfire2.app.name");function Pe(r,o,s){let e=typeof s=="string"&&s||"[DEFAULT]",t=typeof s=="object"&&s||{};t.name=t.name||e;let i=R.apps.filter(a=>a&&a.name===t.name)[0]||o.runOutsideAngular(()=>R.initializeApp(r,t));try{if(JSON.stringify(r)!==JSON.stringify(i.options)){let a=!!module.hot;cr("error",`${i.name} Firebase App already initialized with different options${a?", you may need to reload as Firebase is not HMR aware.":"."}`)}}catch{}return new ce(i)}var cr=(r,...o)=>{H()&&typeof console<"u"&&console[r](...o)},lr={provide:ce,useFactory:Pe,deps:[le,V,[new qe,ue]]},ii=(()=>{class r{static initializeApp(s,e){return{ngModule:r,providers:[{provide:le,useValue:s},{provide:ue,useValue:e}]}}constructor(s){R.registerVersion("angularfire",G.full,"core"),R.registerVersion("angularfire",G.full,"app-compat"),R.registerVersion("angular",Ke.full,s.toString())}static \u0275fac=function(e){return new(e||r)(g(z))};static \u0275mod=q({type:r});static \u0275inj=K({providers:[lr]})}return r})();function vt(r,o,s,e,t){let[,n,i]=globalThis.\u0275AngularfireInstanceCache.find(a=>a[0]===r)||[];if(n)return ur(t,i)||(wt("error",`${o} was already initialized on the ${s} Firebase App with different settings.${dr?" You may need to reload as Firebase is not HMR aware.":""}`),wt("warn",{is:t,was:i})),n;{let a=e();return globalThis.\u0275AngularfireInstanceCache.push([r,a,t]),a}}function ur(r,o){try{return r.toString()===o.toString()}catch{return r===o}}var dr=typeof module<"u"&&!!module.hot,wt=(r,...o)=>{H()&&typeof console<"u"&&console[r](...o)};globalThis.\u0275AngularfireInstanceCache||=[];var hr=new P("angularfire2.auth.use-emulator"),pr=new P("angularfire2.auth.settings"),fr=new P("angularfire2.auth.tenant-id"),gr=new P("angularfire2.auth.langugage-code"),mr=new P("angularfire2.auth.use-device-language"),yr=new P("angularfire.auth.persistence"),wr=(r,o,s,e,t,n,i,a)=>vt(`${r.name}.auth`,"AngularFireAuth",r.name,()=>{let l=o.runOutsideAngular(()=>r.auth());if(s&&l.useEmulator(...s),e&&(l.tenantId=e),l.languageCode=t,n&&l.useDeviceLanguage(),i)for(let[c,u]of Object.entries(i))l.settings[c]=u;return a&&l.setPersistence(a),l},[s,e,t,n,i,a]),xe=(()=>{class r{injector=O(ge);authState;idToken;user;idTokenResult;credential;constructor(s,e,t,n,i,a,l,c,u,f,d,h){let p=new Ne,y=X(void 0).pipe(Z(i.outsideAngular),B(()=>n.runOutsideAngular(()=>import("./chunk-XRLXIT7I.js"))),j(()=>Pe(s,n,e)),j(C=>wr(C,n,a,c,u,f,l,d)),pe({bufferSize:1,refCount:!1}));if(Je(t))this.authState=this.user=this.idToken=this.idTokenResult=this.credential=X(null);else{y.pipe(He()).subscribe();let C=y.pipe(B(I=>I.getRedirectResult().then(N=>N,()=>null)),rt(this.injector),pe({bufferSize:1,refCount:!1})),W=y.pipe(B(I=>new m(N=>({unsubscribe:n.runOutsideAngular(()=>I.onAuthStateChanged($=>N.next($),$=>N.error($),()=>N.complete()))})))),J=y.pipe(B(I=>new m(N=>({unsubscribe:n.runOutsideAngular(()=>I.onIdTokenChanged($=>N.next($),$=>N.error($),()=>N.complete()))}))));this.authState=C.pipe(fe(W),re(i.outsideAngular),Z(i.insideAngular)),this.user=C.pipe(fe(J),re(i.outsideAngular),Z(i.insideAngular)),this.idToken=this.user.pipe(B(I=>I?M(I.getIdToken()):X(null))),this.idTokenResult=this.user.pipe(B(I=>I?M(I.getIdTokenResult()):X(null))),this.credential=Le(C,p,this.authState.pipe(Ue(I=>!I))).pipe(j(I=>I?.user?I:null),re(i.outsideAngular),Z(i.insideAngular))}return St(this,y,n,{spy:{apply:(C,W,J)=>{(C.startsWith("signIn")||C.startsWith("createUser"))&&J.then(I=>p.next(I))}}})}static \u0275fac=function(e){return new(e||r)(g(le),g(ue,8),g(z),g(V),g(Ae),g(hr,8),g(pr,8),g(fr,8),g(gr,8),g(mr,8),g(yr,8),g(ae,8))};static \u0275prov=T({token:r,factory:r.\u0275fac,providedIn:"any"})}return r})(),ki=(()=>{class r{constructor(){R.registerVersion("angularfire",G.full,"auth-compat")}static \u0275fac=function(e){return new(e||r)};static \u0275mod=q({type:r});static \u0275inj=K({providers:[xe]})}return r})();var A=(function(r){return r.readonly="readonly",r.readwrite="readwrite",r})(A||{}),kt=new P(null),At=new P("Indexed DB"),vr=new P("Server Indexed DB");function kr(r,o){return r.objectStoreNames.contains(o)}function D(r,o,s){if(!r){s("You need to use the openDatabase function to create a database before you query it!");return}kr(r,o)||s(`objectStore does not exists: ${o}`)}function b(r,o){let s=r.transaction(o.storeName,o.dbMode);return s.onerror=o.error,s.onabort=o.abort,s}function E(r,o,s,e){return{storeName:o,dbMode:r,error:t=>{s(t)},abort:t=>{s(t)}}}var _e=[];function S(r,o,s,e){return new Promise((t,n)=>{r||n("IndexedDB not available");let i=r.open(o,s),a;i.onsuccess=()=>{a=i.result,_e.push(a),t(a)},i.onerror=()=>{n(`IndexedDB error: ${i.error}`)},typeof e=="function"&&(i.onupgradeneeded=l=>{e(l,a)})})}function Re(r,o,s,e,t){return k(this,null,function*(){return new Promise((n,i)=>{if(!r)return;let a=r.open(o,s);a.onupgradeneeded=l=>k(null,null,function*(){let c=l.target.result,u=e.map(d=>k(null,null,function*(){if(!c.objectStoreNames.contains(d.store)){let h=c.createObjectStore(d.store,d.storeConfig);for(let p of d.storeSchema)h.createIndex(p.name,p.keypath,p.options)}}));yield Promise.all(u);let f=t&&t();if(f){let d=Object.keys(f).map(h=>parseInt(h,10)).filter(h=>h>l.oldVersion).sort((h,p)=>h-p);for(let h of d)f[h](c,a.transaction)}c.close(),n()}),a.onsuccess=l=>{l.target.result.close(),n()},a.onerror=l=>{i(l)}})})}function Ar(r,o,s){if(!r||!o||!s)throw Error('Params: "dbName", "version", "storeName" are mandatory.');return new m(e=>{try{let t=o+1,n=indexedDB.open(r,t);n.onupgradeneeded=i=>{let a=i.target.result;a.deleteObjectStore(s),a.close(),console.log("onupgradeneeded"),e.next(),e.complete()},n.onerror=i=>e.error(i)}catch(t){e.error(t)}})}function br(r){return new Promise((o,s)=>{if(!r){s(new Error("No database to close"));return}try{r.close(),o()}catch(e){s(`Error closing database: ${e}`)}})}function v(){return function(r,o,s){let e=s.value;return s.value=function(...t){let n=e.apply(this,t);return n instanceof m?n.pipe($e(()=>k(this,null,function*(){let i=_e.map(a=>k(this,null,function*(){yield br(a)}));yield Promise.all(i),_e.length=0}))):n},s}}var Oe=(()=>{let o=class o{constructor(e,t){this.dbConfigs=e,this.indexedDB=t,this.defaultDatabaseName=null,Object.values(this.dbConfigs).forEach((n,i,a)=>this.instanciateConfig(n,a.length===1))}instanciateConfig(e,t){return k(this,null,function*(){if(!e.name)throw new Error("NgxIndexedDB: Please, provide the dbName in the configuration");if((e.isDefault??!1)&&this.defaultDatabaseName)throw new Error("NgxIndexedDB: Only one database can be set as default");((e.isDefault??!1)&&!this.defaultDatabaseName||t)&&(this.defaultDatabaseName=e.name,this.selectedDb=e.name),yield Re(this.indexedDB,e.name,e.version,e.objectStoresMeta,e.migrationFactory),S(this.indexedDB,e.name).then(n=>{n.version!==e.version&&(H()&&(console.warn(`
4
4
  Your DB Config doesn't match the most recent version of the DB with name ${e.name}, please update it
@@ -1 +1 @@
1
- import{a as U}from"./chunk-5KYN6Y7M.js";import"./chunk-3JRUKSV3.js";import"./chunk-SJ5MC42H.js";import"./chunk-4RLWHMI6.js";import"./chunk-NWB7EVME.js";import"./chunk-AFDI4TD4.js";import"./chunk-4RG5YR7N.js";import"./chunk-5MV3UFJQ.js";import"./chunk-E6AMKEQR.js";import"./chunk-IGKMJFKP.js";import"./chunk-ITGVXYDV.js";import"./chunk-HK5FXZE4.js";import"./chunk-KJE5GRQ4.js";import"./chunk-4ILDFTIG.js";import"./chunk-A6QXXKPR.js";import"./chunk-I723PUUO.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-M4ZE35XK.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import"./chunk-5PMKN6PM.js";import{a as H}from"./chunk-AGBJEXIM.js";import{e as F}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import"./chunk-JBEKD57G.js";import{m as J,n as G}from"./chunk-EDEZ3JLR.js";import{A as j,c as W,h as I,m as R}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{i as P,k,m as B}from"./chunk-LNJUGHOX.js";import{$b as M,Gb as x,Ha as h,Mc as i,Nc as V,Qc as f,Rc as C,Sc as b,Tc as O,Uc as D,Vc as _,Z as S,bc as N,gc as g,hc as e,hd as v,ic as t,id as y,jc as L,nb as d,qc as T,ra as E,vc as w,xa as p,xc as A,ya as m}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function q(r,l){if(r&1&&(e(0,"pre",21),i(1),v(2,"json"),t()),r&2){A();let Y=_(25);d(),V(y(2,1,Y))}}function z(r,l){r&1&&(e(0,"p",22),i(1," Your data will be shown here once it's available "),t())}var ce=(()=>{let l=class l{constructor(){this.httpService=E(F),this.selectedChannel=h(null),this.orderNumber=h(null)}initEscrowLog(){this.escrowLog$=this.httpService.post(H.GetEscrowDetail,{ChannelID:this.selectedChannel(),OrderNumber:this.orderNumber()}).pipe(S(1))}copyToClipboard(c){if(!c)return;let s=typeof c=="string"?c:JSON.stringify(c,null,2);navigator.clipboard.writeText(s),alert("Copied to clipboard!")}};l.\u0275fac=function(s){return new(s||l)},l.\u0275cmp=x({type:l,selectors:[["app-escrow-api"]],decls:40,vars:9,consts:[["headerTitle","Origin Escrow 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","Order Number or Invoice Number",1,"form-control","rounded-1",2,"height","40px",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","escrowLogText"],[1,"text-center","my-12","text-muted"]],template:function(s,n){if(s&1){let a=T();e(0,"mainpanel",0)(1,"actions")(2,"button",1),w("click",function(){return p(a),m(n.initEscrowLog())}),L(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 Escrow API "),t()(),e(15,"div",9)(16,"app-channel-options-v2",10),b("ngModelChange",function(o){return p(a),C(n.selectedChannel,o)||(n.selectedChannel=o),m(o)}),t()()(),e(17,"div",11)(18,"div",7)(19,"h6"),i(20,"Order Number"),t(),e(21,"p",8),i(22," Order or Invoice number from Channel. "),t()(),e(23,"div",9)(24,"input",12),b("ngModelChange",function(o){return p(a),C(n.orderNumber,o)||(n.orderNumber=o),m(o)}),t()()()()(),O(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),w("click",function(){p(a);let o=_(25);return m(n.copyToClipboard(o))}),i(34," Copy "),t()(),e(35,"div",18)(36,"div",19)(37,"div",20),M(38,q,3,3,"pre",21)(39,z,2,0,"p",22),t()()()()()()()()()}if(s&2){g("hideSearchBox",!0)("hideSearchDropdown",!0),d(16),f("ngModel",n.selectedChannel),d(8),f("ngModel",n.orderNumber),d();let a=D(y(26,6,n.escrowLog$));d(8),g("disabled",!a),d(5),N(a?38:39)}},dependencies:[B,j,W,I,R,G,J,U,P,k],styles:[".container-fluid[_ngcontent-%COMP%]{padding-bottom:1rem}#escrowLogText[_ngcontent-%COMP%]{white-space:pre-wrap;word-break:break-word}"]});let r=l;return r})();export{ce as EscrowApiComponent};
1
+ import{a as U}from"./chunk-K7L2HJWH.js";import"./chunk-3JRUKSV3.js";import"./chunk-SJ5MC42H.js";import"./chunk-4RLWHMI6.js";import"./chunk-NWB7EVME.js";import"./chunk-AFDI4TD4.js";import"./chunk-4RG5YR7N.js";import"./chunk-5MV3UFJQ.js";import"./chunk-E6AMKEQR.js";import"./chunk-IGKMJFKP.js";import"./chunk-ITGVXYDV.js";import"./chunk-HK5FXZE4.js";import"./chunk-KJE5GRQ4.js";import"./chunk-4ILDFTIG.js";import"./chunk-A6QXXKPR.js";import"./chunk-CS6LKY4V.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-M4ZE35XK.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import"./chunk-5PMKN6PM.js";import{a as H}from"./chunk-AGBJEXIM.js";import{e as F}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import"./chunk-JBEKD57G.js";import{m as J,n as G}from"./chunk-EDEZ3JLR.js";import{A as j,c as W,h as I,m as R}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{i as P,k,m as B}from"./chunk-LNJUGHOX.js";import{$b as M,Gb as x,Ha as h,Mc as i,Nc as V,Qc as f,Rc as C,Sc as b,Tc as O,Uc as D,Vc as _,Z as S,bc as N,gc as g,hc as e,hd as v,ic as t,id as y,jc as L,nb as d,qc as T,ra as E,vc as w,xa as p,xc as A,ya as m}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function q(r,l){if(r&1&&(e(0,"pre",21),i(1),v(2,"json"),t()),r&2){A();let Y=_(25);d(),V(y(2,1,Y))}}function z(r,l){r&1&&(e(0,"p",22),i(1," Your data will be shown here once it's available "),t())}var ce=(()=>{let l=class l{constructor(){this.httpService=E(F),this.selectedChannel=h(null),this.orderNumber=h(null)}initEscrowLog(){this.escrowLog$=this.httpService.post(H.GetEscrowDetail,{ChannelID:this.selectedChannel(),OrderNumber:this.orderNumber()}).pipe(S(1))}copyToClipboard(c){if(!c)return;let s=typeof c=="string"?c:JSON.stringify(c,null,2);navigator.clipboard.writeText(s),alert("Copied to clipboard!")}};l.\u0275fac=function(s){return new(s||l)},l.\u0275cmp=x({type:l,selectors:[["app-escrow-api"]],decls:40,vars:9,consts:[["headerTitle","Origin Escrow 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","Order Number or Invoice Number",1,"form-control","rounded-1",2,"height","40px",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","escrowLogText"],[1,"text-center","my-12","text-muted"]],template:function(s,n){if(s&1){let a=T();e(0,"mainpanel",0)(1,"actions")(2,"button",1),w("click",function(){return p(a),m(n.initEscrowLog())}),L(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 Escrow API "),t()(),e(15,"div",9)(16,"app-channel-options-v2",10),b("ngModelChange",function(o){return p(a),C(n.selectedChannel,o)||(n.selectedChannel=o),m(o)}),t()()(),e(17,"div",11)(18,"div",7)(19,"h6"),i(20,"Order Number"),t(),e(21,"p",8),i(22," Order or Invoice number from Channel. "),t()(),e(23,"div",9)(24,"input",12),b("ngModelChange",function(o){return p(a),C(n.orderNumber,o)||(n.orderNumber=o),m(o)}),t()()()()(),O(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),w("click",function(){p(a);let o=_(25);return m(n.copyToClipboard(o))}),i(34," Copy "),t()(),e(35,"div",18)(36,"div",19)(37,"div",20),M(38,q,3,3,"pre",21)(39,z,2,0,"p",22),t()()()()()()()()()}if(s&2){g("hideSearchBox",!0)("hideSearchDropdown",!0),d(16),f("ngModel",n.selectedChannel),d(8),f("ngModel",n.orderNumber),d();let a=D(y(26,6,n.escrowLog$));d(8),g("disabled",!a),d(5),N(a?38:39)}},dependencies:[B,j,W,I,R,G,J,U,P,k],styles:[".container-fluid[_ngcontent-%COMP%]{padding-bottom:1rem}#escrowLogText[_ngcontent-%COMP%]{white-space:pre-wrap;word-break:break-word}"]});let r=l;return r})();export{ce as EscrowApiComponent};
@@ -1 +1 @@
1
- import{i as h}from"./chunk-I723PUUO.js";import{b as p}from"./chunk-OXWPYJNB.js";import{a as u}from"./chunk-ZETUYNFJ.js";import{F as l}from"./chunk-LNJUGHOX.js";import{ma as c,qa as t}from"./chunk-ZYJ6LAJ3.js";var g=(()=>{let e=class e{constructor(s,i,r,n){this.toastr=s,this.authService=i,this.router=r,this.permissionService=n}canActivate(s,i){let r=JSON.parse(window.localStorage.getItem("user")),n=new Date,a=!1;if(r!=null){let m=new Date(r?.Token?.expiredAt);n<m?a=!0:(this.authService.logout(),this.onTokenExpired())}else this.router.navigate([""]),this.onTokenExpired();return a}onTokenExpired(){this.toastr.error("Your session has expired. Please login again.","Session Expired")}};e.\u0275fac=function(i){return new(i||e)(t(p),t(h),t(l),t(u))},e.\u0275prov=c({token:e,factory:e.\u0275fac,providedIn:"root"});let o=e;return o})();export{g as a};
1
+ import{i as h}from"./chunk-CS6LKY4V.js";import{b as p}from"./chunk-OXWPYJNB.js";import{a as u}from"./chunk-ZETUYNFJ.js";import{F as l}from"./chunk-LNJUGHOX.js";import{ma as c,qa as t}from"./chunk-ZYJ6LAJ3.js";var g=(()=>{let e=class e{constructor(s,i,r,n){this.toastr=s,this.authService=i,this.router=r,this.permissionService=n}canActivate(s,i){let r=JSON.parse(window.localStorage.getItem("user")),n=new Date,a=!1;if(r!=null){let m=new Date(r?.Token?.expiredAt);n<m?a=!0:(this.authService.logout(),this.onTokenExpired())}else this.router.navigate([""]),this.onTokenExpired();return a}onTokenExpired(){this.toastr.error("Your session has expired. Please login again.","Session Expired")}};e.\u0275fac=function(i){return new(i||e)(t(p),t(h),t(l),t(u))},e.\u0275prov=c({token:e,factory:e.\u0275fac,providedIn:"root"});let o=e;return o})();export{g as a};
@@ -1 +1 @@
1
- import{b as w}from"./chunk-6OIMOM7S.js";import"./chunk-A6QXXKPR.js";import"./chunk-I723PUUO.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-AGBJEXIM.js";import"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import"./chunk-JBEKD57G.js";import{m as k,n as B}from"./chunk-EDEZ3JLR.js";import"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{D as P,G as T,I as R,i as M,j as y,l as I,m as g}from"./chunk-LNJUGHOX.js";import{$b as c,Gb as E,Mc as i,Nc as l,Oc as D,aa as C,bc as p,gc as _,hc as t,hd as v,ic as e,id as b,jd as x,nb as d,ra as u,v as h,xc as f}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function L(a,o){if(a&1&&(t(0,"div",9)(1,"div",12)(2,"div",6)(3,"h5"),i(4,"Perflog"),e()(),t(5,"div",7)(6,"div",13)(7,"div",14)(8,"pre"),i(9),e()()()()()()),a&2){let n=f();d(9),l(n.Perflog)}}function N(a,o){if(a&1&&(t(0,"div",15)(1,"div",12)(2,"div",6)(3,"h5"),i(4,"StackTrace"),e()(),t(5,"div",7)(6,"div",13)(7,"div",14)(8,"pre"),i(9),e()()()()()()),a&2){let n=f();d(9),l(n==null?null:n.StackTrace)}}function A(a,o){if(a&1&&(t(0,"mainpanel",0)(1,"actions")(2,"a",1),i(3,"Back"),e()(),t(4,"content")(5,"div",2)(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"h5"),i(11,"General"),e()(),t(12,"div",7)(13,"div",8)(14,"div",9)(15,"div",10)(16,"label"),i(17,"Created Date"),e(),t(18,"div")(19,"span"),i(20),v(21,"date"),e()()()(),t(22,"div",9)(23,"div",10)(24,"label"),i(25,"Status"),e(),t(26,"div")(27,"span"),i(28),e()()()()(),t(29,"div",11)(30,"div",9)(31,"div",10)(32,"label"),i(33,"Duration"),e(),t(34,"div")(35,"span"),i(36),v(37,"number"),e()()()(),t(38,"div",9)(39,"div",10)(40,"label"),i(41,"Label"),e(),t(42,"div")(43,"span"),i(44),e()()()()()()()()(),t(45,"div",3)(46,"div",9)(47,"div",12)(48,"div",6)(49,"h5"),i(50,"Message"),e()(),t(51,"div",7)(52,"div",13)(53,"div",14)(54,"pre"),i(55),e()()()()()(),c(56,L,10,1,"div",9),c(57,N,10,1,"div",15),e()()()()),a&2){let n=o;_("headerTitle","Notification "+n.Name)("hideSearchBox",!0)("hideSearchDropdown",!0),d(20),l(x(21,10,n.Created,"dd MMM yyyy HH:mm:ss")),d(8),l(n.StatusLabel),d(8),D("",x(37,13,n.DurationInSecond,"1.1-1")," s"),d(8),l(n.Label),d(11),l(n.Message),d(),p(n!=null&&n.Perflog?56:-1),d(),p(n!=null&&n.StackTrace?57:-1)}}var V=(()=>{let o=class o{constructor(){this.activatedRoute=u(P),this.notificationService=u(w)}ngOnInit(){this.notification$=this.activatedRoute.queryParams.pipe(C(s=>{let r=s.ID;return this.notificationService.getNotificationDetail(r).pipe(h(m=>(m.DurationInSecond=parseInt(m.Duration)/1e3,m)))}))}};o.\u0275fac=function(r){return new(r||o)},o.\u0275cmp=E({type:o,selectors:[["app-detail"]],decls:2,vars:3,consts:[[3,"headerTitle","hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/products/status/notification",1,"btn","btn-secondary","btn-fill","btn-lg","me-3"],[1,"container-fluid","mt-8"],[1,"row"],[1,"col-12"],[1,"card","mb-8"],[1,"card-header"],[1,"card-body"],[1,"row","mt-6"],[1,"col-sm-6"],[1,"info-label-group"],[1,"row","mt-4"],[1,"card"],[1,"col-sm-12","mt-2"],[1,"form-group"],[1,"col-sm-12"]],template:function(r,m){if(r&1&&(c(0,A,58,16,"mainpanel",0),v(1,"async")),r&2){let S;p((S=b(1,1,m.notification$))?0:-1,S)}},dependencies:[g,B,k,R,T,M,I,y],encapsulation:2});let a=o;return a})();export{V as DetailComponent};
1
+ import{b as w}from"./chunk-UDM6UTHY.js";import"./chunk-A6QXXKPR.js";import"./chunk-CS6LKY4V.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-AGBJEXIM.js";import"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import"./chunk-JBEKD57G.js";import{m as k,n as B}from"./chunk-EDEZ3JLR.js";import"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{D as P,G as T,I as R,i as M,j as y,l as I,m as g}from"./chunk-LNJUGHOX.js";import{$b as c,Gb as E,Mc as i,Nc as l,Oc as D,aa as C,bc as p,gc as _,hc as t,hd as v,ic as e,id as b,jd as x,nb as d,ra as u,v as h,xc as f}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";function L(a,o){if(a&1&&(t(0,"div",9)(1,"div",12)(2,"div",6)(3,"h5"),i(4,"Perflog"),e()(),t(5,"div",7)(6,"div",13)(7,"div",14)(8,"pre"),i(9),e()()()()()()),a&2){let n=f();d(9),l(n.Perflog)}}function N(a,o){if(a&1&&(t(0,"div",15)(1,"div",12)(2,"div",6)(3,"h5"),i(4,"StackTrace"),e()(),t(5,"div",7)(6,"div",13)(7,"div",14)(8,"pre"),i(9),e()()()()()()),a&2){let n=f();d(9),l(n==null?null:n.StackTrace)}}function A(a,o){if(a&1&&(t(0,"mainpanel",0)(1,"actions")(2,"a",1),i(3,"Back"),e()(),t(4,"content")(5,"div",2)(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"h5"),i(11,"General"),e()(),t(12,"div",7)(13,"div",8)(14,"div",9)(15,"div",10)(16,"label"),i(17,"Created Date"),e(),t(18,"div")(19,"span"),i(20),v(21,"date"),e()()()(),t(22,"div",9)(23,"div",10)(24,"label"),i(25,"Status"),e(),t(26,"div")(27,"span"),i(28),e()()()()(),t(29,"div",11)(30,"div",9)(31,"div",10)(32,"label"),i(33,"Duration"),e(),t(34,"div")(35,"span"),i(36),v(37,"number"),e()()()(),t(38,"div",9)(39,"div",10)(40,"label"),i(41,"Label"),e(),t(42,"div")(43,"span"),i(44),e()()()()()()()()(),t(45,"div",3)(46,"div",9)(47,"div",12)(48,"div",6)(49,"h5"),i(50,"Message"),e()(),t(51,"div",7)(52,"div",13)(53,"div",14)(54,"pre"),i(55),e()()()()()(),c(56,L,10,1,"div",9),c(57,N,10,1,"div",15),e()()()()),a&2){let n=o;_("headerTitle","Notification "+n.Name)("hideSearchBox",!0)("hideSearchDropdown",!0),d(20),l(x(21,10,n.Created,"dd MMM yyyy HH:mm:ss")),d(8),l(n.StatusLabel),d(8),D("",x(37,13,n.DurationInSecond,"1.1-1")," s"),d(8),l(n.Label),d(11),l(n.Message),d(),p(n!=null&&n.Perflog?56:-1),d(),p(n!=null&&n.StackTrace?57:-1)}}var V=(()=>{let o=class o{constructor(){this.activatedRoute=u(P),this.notificationService=u(w)}ngOnInit(){this.notification$=this.activatedRoute.queryParams.pipe(C(s=>{let r=s.ID;return this.notificationService.getNotificationDetail(r).pipe(h(m=>(m.DurationInSecond=parseInt(m.Duration)/1e3,m)))}))}};o.\u0275fac=function(r){return new(r||o)},o.\u0275cmp=E({type:o,selectors:[["app-detail"]],decls:2,vars:3,consts:[[3,"headerTitle","hideSearchBox","hideSearchDropdown"],["role","button","routerLink","/menu/products/status/notification",1,"btn","btn-secondary","btn-fill","btn-lg","me-3"],[1,"container-fluid","mt-8"],[1,"row"],[1,"col-12"],[1,"card","mb-8"],[1,"card-header"],[1,"card-body"],[1,"row","mt-6"],[1,"col-sm-6"],[1,"info-label-group"],[1,"row","mt-4"],[1,"card"],[1,"col-sm-12","mt-2"],[1,"form-group"],[1,"col-sm-12"]],template:function(r,m){if(r&1&&(c(0,A,58,16,"mainpanel",0),v(1,"async")),r&2){let S;p((S=b(1,1,m.notification$))?0:-1,S)}},dependencies:[g,B,k,R,T,M,I,y],encapsulation:2});let a=o;return a})();export{V as DetailComponent};
@@ -1 +1 @@
1
- import{a as pe}from"./chunk-ZSUWHVKX.js";import{e as _e}from"./chunk-6KWG6O5L.js";import{a as ge,i as be}from"./chunk-I723PUUO.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-AGBJEXIM.js";import{b as he,e as S}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import{a as M,c as ue}from"./chunk-JBEKD57G.js";import{A as me,c as te,h as ne,i as ie,k as oe,m as re,n as ae,t as se,u as de,v as ce,w as le}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import{a as fe,c as xe}from"./chunk-ZETUYNFJ.js";import{D as y,F as w,I as V,c as X,i as Z,m as ee}from"./chunk-LNJUGHOX.js";import{$b as C,Bc as W,Cc as B,Dc as q,Gb as f,Hb as A,Hc as k,Lc as H,Mc as a,Nc as x,Oc as Y,Pc as G,Qc as E,Rc as L,Sc as I,Z as R,ad as Q,bc as v,dc as z,ec as N,fc as D,gc as b,hc as i,hd as K,ic as r,id as $,jc as l,lb as O,ma as U,na as T,nb as c,qc as j,td as J,vc as g,xa as u,xc as p,ya as h,zb as m}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var Ce=(()=>{let t=class t{constructor(){}getBrowserName(){let n=window.navigator.userAgent.toLowerCase();switch(!0){case(n.indexOf("edge")>-1||n.indexOf("edg")>-1):return"edge";case n.indexOf("opr")>-1:return"opera";case n.indexOf("chrome")>-1:return"chrome";case n.indexOf("trident")>-1:return"ie";case n.indexOf("firefox")>-1:return"firefox";case n.indexOf("safari")>-1:return"safari";default:return"other"}}};t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();function Le(o,t){if(o&1&&(i(0,"swiper-slide")(1,"div")(2,"a",1),l(3,"img",2),r()(),i(4,"a",3),a(5),r(),i(6,"p",4),a(7),r()()),o&2){let d=t.$implicit;c(2),b("href",d.href,O),c(),b("src",d.imgSrc,O),c(),b("href",d.href,O),c(),x(d.title),c(2),x(d.description)}}var ve=(()=>{let t=class t{constructor(){this.newsList=J([])}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=f({type:t,selectors:[["POS-news-swiper"]],inputs:{newsList:[1,"newsList"]},standalone:!1,decls:3,vars:0,consts:[["pagination","true","pagination-clickable","true","autoplay-delay","5000","autoplay-disable-on-interaction","false",2,"margin-top","30px"],["target","_blank",3,"href"],[1,"border-0","rounded-1","mb-8",2,"width","252px","height","152px",3,"src"],["target","_blank",1,"fw-bold","h5","text-success","header-title","fs-4",3,"href"],[2,"margin-bottom","3rem"]],template:function(e,s){e&1&&(i(0,"swiper-container",0),N(1,Le,8,5,"swiper-slide",null,z),r()),e&2&&(c(),D(s.newsList()))},styles:["swiper-container[_ngcontent-%COMP%]{--swiper-pagination-bullet-inactive-color: #89b03e;--swiper-pagination-color: #89b03e}"]});let o=t;return o})();var Te=["subdomainEl"],Ae=(o,t)=>({"rounded-end":o,"border-end-0":t});function ze(o,t){if(o&1&&(i(0,"div",33),l(1,"img",34),r()),o&2){let d=t.$implicit;c(),b("src",d.img,O)("title",d.title)("alt",d.title)}}function Ne(o,t){if(o&1){let d=j();i(0,"div",15)(1,"h3",16),a(2," DealPOS Omnichannel "),r(),i(3,"small",17),a(4," Multichannel Inventory Management Software "),r()(),i(5,"form",18)(6,"div",19)(7,"div",20)(8,"div",21)(9,"span"),l(10,"i",22),r()(),i(11,"input",23,0),I("ngModelChange",function(e){u(d);let s=p();return L(s.subdomain,e)||(s.subdomain=e),h(e)}),r(),i(13,"div")(14,"select",24),I("ngModelChange",function(e){u(d);let s=p();return L(s.domain,e)||(s.domain=e),h(e)}),i(15,"option",25),a(16,".dealpos.co.id"),r(),i(17,"option",26),a(18,".dealpos.net"),r(),i(19,"option",27),a(20,".dealpos.com"),r(),i(21,"option",28),a(22,".dealpos.app"),r()()()(),i(23,"div",29)(24,"button",30),g("click",function(){u(d);let e=p();return h(e.onNextState())}),a(25," Next "),r()(),i(26,"div",31)(27,"div",32),N(28,ze,2,3,"div",33,z),r()()()()}if(o&2){let d=p();c(11),E("ngModel",d.subdomain),c(3),E("ngModel",d.domain),c(14),D(d.channels)}}function De(o,t){o&1&&(i(0,"p"),a(1," Username is required "),r())}function je(o,t){if(o&1&&(i(0,"div",44),l(1,"div",54),i(2,"div",55),C(3,De,2,0,"p"),r()()),o&2){p();let d=k(14);c(3),v(d.errors.required?3:-1)}}function Ve(o,t){if(o&1){let d=j();i(0,"i",57),g("click",function(){u(d);let e=p(3);return h(e.hideShowPassword())}),r()}if(o&2){let d=p(3);H("fa "+d.passwordIcon)}}function Fe(o,t){if(o&1&&(i(0,"span",47),C(1,Ve,1,2,"i",56),r()),o&2){let d=p(2);c(),v(d.password?1:-1)}}function Re(o,t){o&1&&(i(0,"p"),a(1," Password is required "),r())}function Ue(o,t){if(o&1&&(i(0,"div",44),l(1,"div",54),i(2,"div",55),C(3,Re,2,0,"p"),r()()),o&2){p();let d=k(21);c(3),v(d.errors.required?3:-1)}}function We(o,t){if(o&1){let d=j();i(0,"div",35)(1,"h3",36),a(2,"Sign in"),r(),i(3,"h3",37),a(4," to "),i(5,"h6",38),a(6),r(),i(7,"i",39),g("click",function(){u(d);let e=p();return h(e.onEditDomain())}),r()()(),i(8,"form",40)(9,"div",41)(10,"div",21)(11,"span"),l(12,"i",42),r()(),i(13,"input",43,1),I("ngModelChange",function(e){u(d);let s=p();return L(s.username,e)||(s.username=e),h(e)}),r()(),C(15,je,4,1,"div",44),i(16,"div",20)(17,"div",21)(18,"span"),l(19,"i",45),r()(),i(20,"input",46,2),I("ngModelChange",function(e){u(d);let s=p();return L(s.password,e)||(s.password=e),h(e)}),r(),C(22,Fe,2,1,"span",47),r(),C(23,Ue,4,1,"div",44),i(24,"div",48)(25,"button",49),g("click",function(){u(d);let e=p();return h(e.onLogin())}),a(26," Log in "),r()(),i(27,"div",50),l(28,"hr"),i(29,"span",51),a(30,"or"),r(),l(31,"hr"),r(),i(32,"div")(33,"button",52),g("click",function(e){u(d);let s=p();return h(s.onLoginByGoogle(e))}),l(34,"i",53),a(35," Sign In with Google "),r()()()}if(o&2){let d=k(14),n=k(21),e=p();c(6),G(" (",e.subdomain,"",e.domain,") "),c(7),E("ngModel",e.username),c(2),v(d.invalid&&(d.dirty||d.touched)?15:-1),c(5),b("type",e.passwordType)("ngClass",Q(9,Ae,e.browser=="edge",e.browser!="edge")),E("ngModel",e.password),c(2),v(e.browser!="edge"?22:-1),c(),v(n.invalid&&(n.dirty||n.touched)?23:-1)}}var we=(()=>{let t=class t{constructor(n,e,s,_,ke){this._router=n,this.toastr=e,this.checkBrowser=s,this.authService=_,this.ngxPermission=ke,this.domain=".dealpos.co.id",this.loginState="FORM_DOMAIN",this.passwordType="password",this.passwordIcon="fa-eye",this.channels=[{title:"Shopee",img:M.SHOOPE},{title:"Tokopedia",img:M.TOKOPEDIA},{title:"Tiktok",img:M.TIKTOK},{title:"Woocommerce",img:M.WOOCOMMERCE},{title:"Lazada",img:M.LAZADA},{title:"Shopify",img:M.SHOPIFY},{title:"Plugo",img:M.PLUGONEW}],this.version=ge.version,this.news$=_.getNews().pipe(R(1))}ngOnInit(){this.initLogin(),this.browser=this.checkBrowser.getBrowserName(),document.body.classList.add("login-body"),this.initChangeLogUrl()}initChangeLogUrl(){let n=`https://changelog.dealpos.com/?categories=cat_nILYcoEQzgGWX&view=complete&v=${this.version}`;this.changelogUrl=n}ngAfterViewInit(){this.setAutoFocusDomain()}initLogin(){let n=JSON.parse(localStorage.getItem("Authorization"));if(n){this.username=n?.username,this.subdomain=n?.Host?.split(".")[0];let e=n?.Host?.split("dealpos");this.domain=`.dealpos${e[1]}`,this.authService.isActiveToken()&&this._router.navigate(["menu"])}}onNextState(){if(ue.IsEmpty(this.subdomain)){this.toastr.warning("Account Domain is required","Warning");return}this.parseSubdomain(),this.loginState="FORM_AUTH"}parseSubdomain(){let n=this.subdomain.indexOf(".dealpos");n!=-1&&(this.subdomain=this.subdomain.substring(0,n))}onEditDomain(){this.loginState="FORM_DOMAIN"}onLogin(){let n={Host:`${this.subdomain}${this.domain}`,Username:this.username,Password:this.password};this.authService.login(n).subscribe(e=>{this.onSuccessLogin(e)})}onLoginByGoogle(n){let e=`${this.subdomain}${this.domain}`;this.authService.loginWithGoogle(n,e).subscribe(s=>{this.onSuccessLogin(s)})}onSuccessLogin(n){this.ngxPermission.hasPermission([pe.DashboardView]).then(e=>{e?this._router.navigate(["menu/dashboard"]):n?.TotalChannel<1?this._router.navigate(["menu/channel"]):this._router.navigate(["menu/products"])})}setAutoFocusDomain(){this.subdomainEl.nativeElement.focus()}hideShowPassword(){this.passwordType=this.passwordType==="text"?"password":"text",this.passwordIcon=this.passwordIcon==="fa-eye"?"fa-eye-slash":"fa-eye"}ngOnDestroy(){document.body.classList.remove("login-body")}};t.\u0275fac=function(e){return new(e||t)(m(w),m(he),m(Ce),m(be),m(fe))},t.\u0275cmp=f({type:t,selectors:[["app-login"]],viewQuery:function(e,s){if(e&1&&W(Te,5),e&2){let _;B(_=q())&&(s.subdomainEl=_.first)}},standalone:!1,decls:18,vars:6,consts:[["subdomainEl",""],["usernameCtrl","ngModel"],["passwordCtrl","ngModel"],[1,"container-fluid"],[1,"row","mx-auto","bg-white","login-pane"],[1,"col-md-5","order-md-first","order-last","border-end","features-pane","pt-12","pb-9"],[1,"fw-normal","fs-2","header-title","text-center"],[3,"newsList"],[1,"col-md-7","order-md-last","order-first","py-12","sign-in-pane"],[1,"d-flex","copyright",2,"margin-left","20px"],[1,"align-self-center","me-5"],["target","_blank","href","http://www.dealpos.com"],[1,"version",2,"margin-right","18px"],["target","_blank",1,"text-dark","fst-italic",3,"href"],[1,"fa-solid","fa-circle-exclamation","ms-2",2,"font-size","16px"],[1,"text-md-start","text-center"],[1,"fs-2","header-title","me-2","fw-normal"],[1,"text-secondary-emphasis","fst-italic",2,"font-size","11px"],[2,"margin-top","38px"],[1,"form-block","mt-5"],[1,"input-group","input-group-lg","mt-8"],[1,"input-group-text","rounded-start","border-end-0",2,"width","52px"],[1,"fa-solid","fa-cloud"],["placeholder","Store Address","aria-label","Store Address","aria-describedby","basic-addon1","autofocus","","name","Store Address",1,"form-control","form-control-lg","rounded-end-0","border-start-0","ps-1",2,"height","58px",3,"ngModelChange","ngModel"],["name","domainOption",1,"form-select","form-control","form-control-lg","border-start-0","border-start","rounded-end","rounded-start-0","domain-option",2,"height","58px",3,"ngModelChange","ngModel"],["selected","","value",".dealpos.co.id"],["value",".dealpos.net"],["value",".dealpos.com"],["value",".dealpos.app"],[1,"w-100",2,"margin-top","1.8rem"],["name","next","data-cy","next","type","submit",1,"btn","btn-xl","btn-success","btn-block","font125rem","robotoslab","w-100",3,"click"],[1,"d-flex","align-items-center","justify-content-center",2,"margin-top","2.1rem"],[1,"d-flex","align-items-center","justify-content-between","w-100"],[1,""],[1,"border-0",2,"width","34px","height","34px",3,"src","title","alt"],[1,"d-flex","align-items-center","justify-content-start","mb-2"],[1,"robotoslab","fw-normal"],[1,"ms-2","fw-normal"],[1,"me-2","robotoslab","d-inline-block","text-success"],["title","Edit Store Address",1,"fa-solid","fa-edit","link-success","fs-5","pointer",3,"click"],[2,"margin-top","29px"],[1,"input-group","input-group-lg"],[1,"fas","fa-user","fa-lg"],["id","txtUsername","type","text","data-cy","username","required","","placeholder","Username","aria-label","Username","aria-describedby","basic-addon1","autofocus","","name","username",1,"form-control","form-control-lg","rounded-end","border-start-0","ps-1",2,"height","58px",3,"ngModelChange","ngModel"],[1,"d-flex","justify-content-start","w-50","mb-4",2,"height","16px"],[1,"fas","fa-key","fa-lg"],["id","txtPassword","data-cy","password","placeholder","Password","aria-label","Password","aria-describedby","basic-addon1","autofocus","","name","password","required","",1,"form-control","form-control-lg","rounded-end","border-start-0","ps-1",2,"height","58px",3,"ngModelChange","type","ngClass","ngModel"],[1,"input-group-text","border-start-0","rounded-end"],[1,"w-100","mt-8"],["data-cy","login","type","submit",1,"btn","btn-lg","btn-success","btn-block","font125rem","robotoslab","w-100",3,"click"],[1,"divider","d-flex","align-items-center","justify-content-center"],[1,"mx-4","text-muted"],[1,"btn","btn-social-login","text-success","w-100","fw-bold",3,"click"],[1,"fa-brands","fa-google"],[2,"width","52px"],[1,"text-danger","ps-1"],[3,"class"],[3,"click"]],template:function(e,s){e&1&&(i(0,"div",3)(1,"div",4)(2,"div",5)(3,"h3",6),a(4,"New Features"),r(),l(5,"POS-news-swiper",7),K(6,"async"),r(),i(7,"div",8),C(8,Ne,30,2)(9,We,36,12),r()(),i(10,"div",9)(11,"span",10),a(12,"powered by :"),r(),l(13,"a",11),r(),i(14,"div",12)(15,"a",13),a(16),l(17,"i",14),r()()()),e&2&&(c(5),b("newsList",$(6,4,s.news$)),c(3),v(s.loginState=="FORM_DOMAIN"?8:9),c(7),b("href",s.changelogUrl,O),c(),Y("version ",s.version))},dependencies:[X,ae,de,ce,te,se,ne,ie,le,re,oe,ve,Z],styles:[".login-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:115px}@media (max-width: 768px){.login-pane[_ngcontent-%COMP%]{margin-top:0}}@media only screen and (max-width: 1300px) and (min-width: 1024px){.login-pane[_ngcontent-%COMP%]{margin-top:30px}}.header-title[_ngcontent-%COMP%]{font-family:Roboto Slab}.carousel-inner[_ngcontent-%COMP%]{height:310px}.carousel-inner[_ngcontent-%COMP%] div.carousel-item[_ngcontent-%COMP%]{top:28px}@media (max-width: 820px){.carousel-indicators[_ngcontent-%COMP%]{bottom:-8px}}.carousel-indicators[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#ddd;width:1.25rem;height:.375rem;transition:.3s}.carousel-indicators[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{background-color:var(--bs-success)}.sign-in-pane[_ngcontent-%COMP%]{padding:0 3rem 0 3.5rem}@media (max-width: 768px){.sign-in-pane[_ngcontent-%COMP%]{padding:24px 12px}.sign-in-pane[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:8px!important}}@media (min-width: 1200px){.sign-in-pane[_ngcontent-%COMP%]{border-bottom:1px solid #89b03e;border-right:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:0 10px 10px 0}}.subscription.danger[_ngcontent-%COMP%]{background-color:#f2dede;border-color:#eb415d;color:#a94442}.subscription.warning[_ngcontent-%COMP%]{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}@media (max-width: 768px){.features-pane[_ngcontent-%COMP%]{border-right:0px!important}}@media (min-width: 1200px){.features-pane[_ngcontent-%COMP%]{border-left:1px solid #89b03e;border-bottom:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:10px 0 0 10px}}.copyright[_ngcontent-%COMP%]{position:absolute;bottom:1.25rem;left:1.25rem}.copyright[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:8.125rem;height:2.5rem;background-image:url(//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png);background-position:left top;background-repeat:no-repeat;background-size:contain}.version[_ngcontent-%COMP%]{bottom:1.25rem;right:1.25rem;position:absolute}@media (max-width: 768px){.copyright[_ngcontent-%COMP%], .version[_ngcontent-%COMP%]{position:static;margin-top:10px}.copyright[_ngcontent-%COMP%]{justify-content:center}}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}button.btn-social-login[_ngcontent-%COMP%], .btn-login[_ngcontent-%COMP%]{border:1px solid var(--bs-success)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited i[_ngcontent-%COMP%]{color:#f4f4f4!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{margin-left:-10px}.domain-option[_ngcontent-%COMP%]{padding:.75rem;color:#343434;font-size:.875rem;width:8.5rem}"]});let o=t;return o})();var Oe=(()=>{let t=class t{constructor(n,e,s){this.route=n,this.http=e,this.service=s}ngOnInit(){this.route.queryParams.subscribe(n=>{this.shopID=n.shop_id,this.code=n.code})}addShopee(){let n={ShopID:Number(this.shopID),Code:this.code};this.http.post("/api/ChannelAdd/ShopeeV2",n).subscribe(s=>{this.service.navigate(["/menu/channel"])})}};t.\u0275fac=function(e){return new(e||t)(m(y),m(S),m(w))},t.\u0275cmp=f({type:t,selectors:[["shopee-authorized"]],standalone:!1,decls:20,vars:1,consts:[[1,"container","h-100"],[1,"row","d-flex","justify-content-center","align-items-center","h-100"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","fw-bold"],[1,"card-body","text-center","py-6"],[1,"text-shopee","fw-bold"],["type","button",1,"btn","btn-success","mt-t",3,"click"],[1,"fas","fa-undo"]],template:function(e,s){e&1&&(i(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),l(5,"i",5),i(6,"div",6),a(7,"Success !"),r()(),i(8,"div",7)(9,"div"),a(10,"You have successfully authorized "),r(),i(11,"div"),a(12,"DEALPOS to manage your Shopee"),r(),i(13,"div"),a(14," Your shopID is "),i(15,"span",8),a(16),r()(),i(17,"button",9),g("click",function(){return s.addShopee()}),l(18,"i",10),a(19," Add to my Channel"),r()()()()()()),e&2&&(c(16),x(s.shopID))},styles:[".login-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:115px}@media (max-width: 768px){.login-pane[_ngcontent-%COMP%]{margin-top:0}}@media only screen and (max-width: 1300px) and (min-width: 1024px){.login-pane[_ngcontent-%COMP%]{margin-top:30px}}.header-title[_ngcontent-%COMP%]{font-family:Roboto Slab}.carousel-inner[_ngcontent-%COMP%]{height:310px}.carousel-inner[_ngcontent-%COMP%] div.carousel-item[_ngcontent-%COMP%]{top:28px}@media (max-width: 820px){.carousel-indicators[_ngcontent-%COMP%]{bottom:-8px}}.carousel-indicators[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#ddd;width:1.25rem;height:.375rem;transition:.3s}.carousel-indicators[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{background-color:var(--bs-success)}.sign-in-pane[_ngcontent-%COMP%]{padding:0 3rem 0 3.5rem}@media (max-width: 768px){.sign-in-pane[_ngcontent-%COMP%]{padding:24px 12px}.sign-in-pane[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:8px!important}}@media (min-width: 1200px){.sign-in-pane[_ngcontent-%COMP%]{border-bottom:1px solid #89b03e;border-right:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:0 10px 10px 0}}.subscription.danger[_ngcontent-%COMP%]{background-color:#f2dede;border-color:#eb415d;color:#a94442}.subscription.warning[_ngcontent-%COMP%]{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}@media (max-width: 768px){.features-pane[_ngcontent-%COMP%]{border-right:0px!important}}@media (min-width: 1200px){.features-pane[_ngcontent-%COMP%]{border-left:1px solid #89b03e;border-bottom:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:10px 0 0 10px}}.copyright[_ngcontent-%COMP%]{position:absolute;bottom:1.25rem;left:1.25rem}.copyright[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:8.125rem;height:2.5rem;background-image:url(//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png);background-position:left top;background-repeat:no-repeat;background-size:contain}.version[_ngcontent-%COMP%]{bottom:1.25rem;right:1.25rem;position:absolute}@media (max-width: 768px){.copyright[_ngcontent-%COMP%], .version[_ngcontent-%COMP%]{position:static;margin-top:10px}.copyright[_ngcontent-%COMP%]{justify-content:center}}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}button.btn-social-login[_ngcontent-%COMP%], .btn-login[_ngcontent-%COMP%]{border:1px solid var(--bs-success)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited i[_ngcontent-%COMP%]{color:#f4f4f4!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{margin-left:-10px}.domain-option[_ngcontent-%COMP%]{padding:.75rem;color:#343434;font-size:.875rem;width:8.5rem}.form-signin[_ngcontent-%COMP%]{max-width:600px}.card[_ngcontent-%COMP%]{font:100 14px/25px Roboto,Helvetica Neue,sans-serif;border-radius:13px;box-sizing:border-box}.text-shopee[_ngcontent-%COMP%]{color:#f53d2d}"]});let o=t;return o})();var Pe=(()=>{let t=class t{constructor(n,e,s){this.route=n,this.http=e,this.service=s}ngOnInit(){this.route.queryParams.subscribe(n=>{this.code=n.code,this.state=n.state})}addChannelTiktok(){let n={Code:this.code};this.http.post("/api/ChannelAdd/AddTiktok",n).subscribe(e=>{this.service.navigate(["/menu/channel"])})}};t.\u0275fac=function(e){return new(e||t)(m(y),m(S),m(w))},t.\u0275cmp=f({type:t,selectors:[["app-tiktok"]],standalone:!1,decls:24,vars:2,consts:[[1,"container","h-100"],[1,"row","d-flex","justify-content-center","align-items-center","h-100"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","fw-bold"],[1,"card-body","text-center","py-6"],[1,"text-shopee","fw-bold"],["type","button",1,"btn","btn-success","mt-6",3,"click"],[1,"fas","fa-undo"]],template:function(e,s){e&1&&(i(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),l(5,"i",5),i(6,"div",6),a(7,"Success !"),r()(),i(8,"div",7)(9,"div"),a(10,"You have successfully authorized "),r(),i(11,"div"),a(12,"DEALPOS to manage your Tiktok"),r(),i(13,"div"),a(14," Your Code is "),i(15,"span",8),a(16),r()(),i(17,"div"),a(18," Your State is "),i(19,"span",8),a(20),r()(),i(21,"button",9),g("click",function(){return s.addChannelTiktok()}),l(22,"i",10),a(23," Add to my Channel"),r()()()()()()),e&2&&(c(16),x(s.code),c(4),x(s.state))},styles:[".login-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:115px}@media (max-width: 768px){.login-pane[_ngcontent-%COMP%]{margin-top:0}}@media only screen and (max-width: 1300px) and (min-width: 1024px){.login-pane[_ngcontent-%COMP%]{margin-top:30px}}.header-title[_ngcontent-%COMP%]{font-family:Roboto Slab}.carousel-inner[_ngcontent-%COMP%]{height:310px}.carousel-inner[_ngcontent-%COMP%] div.carousel-item[_ngcontent-%COMP%]{top:28px}@media (max-width: 820px){.carousel-indicators[_ngcontent-%COMP%]{bottom:-8px}}.carousel-indicators[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#ddd;width:1.25rem;height:.375rem;transition:.3s}.carousel-indicators[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{background-color:var(--bs-success)}.sign-in-pane[_ngcontent-%COMP%]{padding:0 3rem 0 3.5rem}@media (max-width: 768px){.sign-in-pane[_ngcontent-%COMP%]{padding:24px 12px}.sign-in-pane[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:8px!important}}@media (min-width: 1200px){.sign-in-pane[_ngcontent-%COMP%]{border-bottom:1px solid #89b03e;border-right:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:0 10px 10px 0}}.subscription.danger[_ngcontent-%COMP%]{background-color:#f2dede;border-color:#eb415d;color:#a94442}.subscription.warning[_ngcontent-%COMP%]{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}@media (max-width: 768px){.features-pane[_ngcontent-%COMP%]{border-right:0px!important}}@media (min-width: 1200px){.features-pane[_ngcontent-%COMP%]{border-left:1px solid #89b03e;border-bottom:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:10px 0 0 10px}}.copyright[_ngcontent-%COMP%]{position:absolute;bottom:1.25rem;left:1.25rem}.copyright[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:8.125rem;height:2.5rem;background-image:url(//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png);background-position:left top;background-repeat:no-repeat;background-size:contain}.version[_ngcontent-%COMP%]{bottom:1.25rem;right:1.25rem;position:absolute}@media (max-width: 768px){.copyright[_ngcontent-%COMP%], .version[_ngcontent-%COMP%]{position:static;margin-top:10px}.copyright[_ngcontent-%COMP%]{justify-content:center}}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}button.btn-social-login[_ngcontent-%COMP%], .btn-login[_ngcontent-%COMP%]{border:1px solid var(--bs-success)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited i[_ngcontent-%COMP%]{color:#f4f4f4!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{margin-left:-10px}.domain-option[_ngcontent-%COMP%]{padding:.75rem;color:#343434;font-size:.875rem;width:8.5rem}.form-signin[_ngcontent-%COMP%]{max-width:600px}.card[_ngcontent-%COMP%]{font:100 14px/25px Roboto,Helvetica Neue,sans-serif;border-radius:13px;box-sizing:border-box}.text-shopee[_ngcontent-%COMP%]{color:#f53d2d}"]});let o=t;return o})();var ye=(()=>{let t=class t{constructor(n,e,s){this.route=n,this.http=e,this.service=s}ngOnInit(){this.route.queryParams.subscribe(n=>{this.code=n.code})}addChannelLazada(){let n={Code:this.code};this.http.post("/api/ChannelAdd/AddLazada",n).subscribe(e=>{this.service.navigate(["/menu/channel"])})}};t.\u0275fac=function(e){return new(e||t)(m(y),m(S),m(w))},t.\u0275cmp=f({type:t,selectors:[["app-lazada"]],standalone:!1,decls:20,vars:1,consts:[[1,"container","h-100"],[1,"row","d-flex","justify-content-center","align-items-center","h-100"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","fw-bold"],[1,"card-body","text-center","py-6"],[1,"text-shopee","fw-bold"],["type","button",1,"btn","btn-success","mt-6",3,"click"],[1,"fas","fa-undo"]],template:function(e,s){e&1&&(i(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),l(5,"i",5),i(6,"div",6),a(7,"Success !"),r()(),i(8,"div",7)(9,"div"),a(10,"You have successfully authorized "),r(),i(11,"div"),a(12,"DEALPOS to manage your Lazada"),r(),i(13,"div"),a(14," Your Code is "),i(15,"span",8),a(16),r()(),i(17,"button",9),g("click",function(){return s.addChannelLazada()}),l(18,"i",10),a(19," Add to my Channel"),r()()()()()()),e&2&&(c(16),x(s.code))},encapsulation:2});let o=t;return o})();var Be=[{path:"",component:we,data:{title:"Dealpos x Marketplace"}},{path:"shopee",component:Oe,data:{title:"Success"}},{path:"tiktok",component:Pe,data:{title:"Success"}},{path:"lazada",component:ye,data:{title:"Success"}}],Se=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=A({type:t}),t.\u0275inj=T({imports:[V.forChild(Be),V]});let o=t;return o})();var kt=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=A({type:t}),t.\u0275inj=T({imports:[ee,me,Se,_e,xe]});let o=t;return o})();export{kt as LoginModule};
1
+ import{a as pe}from"./chunk-ZSUWHVKX.js";import{e as _e}from"./chunk-6KWG6O5L.js";import{a as ge,i as be}from"./chunk-CS6LKY4V.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-AGBJEXIM.js";import{b as he,e as S}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import{a as M,c as ue}from"./chunk-JBEKD57G.js";import{A as me,c as te,h as ne,i as ie,k as oe,m as re,n as ae,t as se,u as de,v as ce,w as le}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import{a as fe,c as xe}from"./chunk-ZETUYNFJ.js";import{D as y,F as w,I as V,c as X,i as Z,m as ee}from"./chunk-LNJUGHOX.js";import{$b as C,Bc as W,Cc as B,Dc as q,Gb as f,Hb as A,Hc as k,Lc as H,Mc as a,Nc as x,Oc as Y,Pc as G,Qc as E,Rc as L,Sc as I,Z as R,ad as Q,bc as v,dc as z,ec as N,fc as D,gc as b,hc as i,hd as K,ic as r,id as $,jc as l,lb as O,ma as U,na as T,nb as c,qc as j,td as J,vc as g,xa as u,xc as p,ya as h,zb as m}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var Ce=(()=>{let t=class t{constructor(){}getBrowserName(){let n=window.navigator.userAgent.toLowerCase();switch(!0){case(n.indexOf("edge")>-1||n.indexOf("edg")>-1):return"edge";case n.indexOf("opr")>-1:return"opera";case n.indexOf("chrome")>-1:return"chrome";case n.indexOf("trident")>-1:return"ie";case n.indexOf("firefox")>-1:return"firefox";case n.indexOf("safari")>-1:return"safari";default:return"other"}}};t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=U({token:t,factory:t.\u0275fac,providedIn:"root"});let o=t;return o})();function Le(o,t){if(o&1&&(i(0,"swiper-slide")(1,"div")(2,"a",1),l(3,"img",2),r()(),i(4,"a",3),a(5),r(),i(6,"p",4),a(7),r()()),o&2){let d=t.$implicit;c(2),b("href",d.href,O),c(),b("src",d.imgSrc,O),c(),b("href",d.href,O),c(),x(d.title),c(2),x(d.description)}}var ve=(()=>{let t=class t{constructor(){this.newsList=J([])}};t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=f({type:t,selectors:[["POS-news-swiper"]],inputs:{newsList:[1,"newsList"]},standalone:!1,decls:3,vars:0,consts:[["pagination","true","pagination-clickable","true","autoplay-delay","5000","autoplay-disable-on-interaction","false",2,"margin-top","30px"],["target","_blank",3,"href"],[1,"border-0","rounded-1","mb-8",2,"width","252px","height","152px",3,"src"],["target","_blank",1,"fw-bold","h5","text-success","header-title","fs-4",3,"href"],[2,"margin-bottom","3rem"]],template:function(e,s){e&1&&(i(0,"swiper-container",0),N(1,Le,8,5,"swiper-slide",null,z),r()),e&2&&(c(),D(s.newsList()))},styles:["swiper-container[_ngcontent-%COMP%]{--swiper-pagination-bullet-inactive-color: #89b03e;--swiper-pagination-color: #89b03e}"]});let o=t;return o})();var Te=["subdomainEl"],Ae=(o,t)=>({"rounded-end":o,"border-end-0":t});function ze(o,t){if(o&1&&(i(0,"div",33),l(1,"img",34),r()),o&2){let d=t.$implicit;c(),b("src",d.img,O)("title",d.title)("alt",d.title)}}function Ne(o,t){if(o&1){let d=j();i(0,"div",15)(1,"h3",16),a(2," DealPOS Omnichannel "),r(),i(3,"small",17),a(4," Multichannel Inventory Management Software "),r()(),i(5,"form",18)(6,"div",19)(7,"div",20)(8,"div",21)(9,"span"),l(10,"i",22),r()(),i(11,"input",23,0),I("ngModelChange",function(e){u(d);let s=p();return L(s.subdomain,e)||(s.subdomain=e),h(e)}),r(),i(13,"div")(14,"select",24),I("ngModelChange",function(e){u(d);let s=p();return L(s.domain,e)||(s.domain=e),h(e)}),i(15,"option",25),a(16,".dealpos.co.id"),r(),i(17,"option",26),a(18,".dealpos.net"),r(),i(19,"option",27),a(20,".dealpos.com"),r(),i(21,"option",28),a(22,".dealpos.app"),r()()()(),i(23,"div",29)(24,"button",30),g("click",function(){u(d);let e=p();return h(e.onNextState())}),a(25," Next "),r()(),i(26,"div",31)(27,"div",32),N(28,ze,2,3,"div",33,z),r()()()()}if(o&2){let d=p();c(11),E("ngModel",d.subdomain),c(3),E("ngModel",d.domain),c(14),D(d.channels)}}function De(o,t){o&1&&(i(0,"p"),a(1," Username is required "),r())}function je(o,t){if(o&1&&(i(0,"div",44),l(1,"div",54),i(2,"div",55),C(3,De,2,0,"p"),r()()),o&2){p();let d=k(14);c(3),v(d.errors.required?3:-1)}}function Ve(o,t){if(o&1){let d=j();i(0,"i",57),g("click",function(){u(d);let e=p(3);return h(e.hideShowPassword())}),r()}if(o&2){let d=p(3);H("fa "+d.passwordIcon)}}function Fe(o,t){if(o&1&&(i(0,"span",47),C(1,Ve,1,2,"i",56),r()),o&2){let d=p(2);c(),v(d.password?1:-1)}}function Re(o,t){o&1&&(i(0,"p"),a(1," Password is required "),r())}function Ue(o,t){if(o&1&&(i(0,"div",44),l(1,"div",54),i(2,"div",55),C(3,Re,2,0,"p"),r()()),o&2){p();let d=k(21);c(3),v(d.errors.required?3:-1)}}function We(o,t){if(o&1){let d=j();i(0,"div",35)(1,"h3",36),a(2,"Sign in"),r(),i(3,"h3",37),a(4," to "),i(5,"h6",38),a(6),r(),i(7,"i",39),g("click",function(){u(d);let e=p();return h(e.onEditDomain())}),r()()(),i(8,"form",40)(9,"div",41)(10,"div",21)(11,"span"),l(12,"i",42),r()(),i(13,"input",43,1),I("ngModelChange",function(e){u(d);let s=p();return L(s.username,e)||(s.username=e),h(e)}),r()(),C(15,je,4,1,"div",44),i(16,"div",20)(17,"div",21)(18,"span"),l(19,"i",45),r()(),i(20,"input",46,2),I("ngModelChange",function(e){u(d);let s=p();return L(s.password,e)||(s.password=e),h(e)}),r(),C(22,Fe,2,1,"span",47),r(),C(23,Ue,4,1,"div",44),i(24,"div",48)(25,"button",49),g("click",function(){u(d);let e=p();return h(e.onLogin())}),a(26," Log in "),r()(),i(27,"div",50),l(28,"hr"),i(29,"span",51),a(30,"or"),r(),l(31,"hr"),r(),i(32,"div")(33,"button",52),g("click",function(e){u(d);let s=p();return h(s.onLoginByGoogle(e))}),l(34,"i",53),a(35," Sign In with Google "),r()()()}if(o&2){let d=k(14),n=k(21),e=p();c(6),G(" (",e.subdomain,"",e.domain,") "),c(7),E("ngModel",e.username),c(2),v(d.invalid&&(d.dirty||d.touched)?15:-1),c(5),b("type",e.passwordType)("ngClass",Q(9,Ae,e.browser=="edge",e.browser!="edge")),E("ngModel",e.password),c(2),v(e.browser!="edge"?22:-1),c(),v(n.invalid&&(n.dirty||n.touched)?23:-1)}}var we=(()=>{let t=class t{constructor(n,e,s,_,ke){this._router=n,this.toastr=e,this.checkBrowser=s,this.authService=_,this.ngxPermission=ke,this.domain=".dealpos.co.id",this.loginState="FORM_DOMAIN",this.passwordType="password",this.passwordIcon="fa-eye",this.channels=[{title:"Shopee",img:M.SHOOPE},{title:"Tokopedia",img:M.TOKOPEDIA},{title:"Tiktok",img:M.TIKTOK},{title:"Woocommerce",img:M.WOOCOMMERCE},{title:"Lazada",img:M.LAZADA},{title:"Shopify",img:M.SHOPIFY},{title:"Plugo",img:M.PLUGONEW}],this.version=ge.version,this.news$=_.getNews().pipe(R(1))}ngOnInit(){this.initLogin(),this.browser=this.checkBrowser.getBrowserName(),document.body.classList.add("login-body"),this.initChangeLogUrl()}initChangeLogUrl(){let n=`https://changelog.dealpos.com/?categories=cat_nILYcoEQzgGWX&view=complete&v=${this.version}`;this.changelogUrl=n}ngAfterViewInit(){this.setAutoFocusDomain()}initLogin(){let n=JSON.parse(localStorage.getItem("Authorization"));if(n){this.username=n?.username,this.subdomain=n?.Host?.split(".")[0];let e=n?.Host?.split("dealpos");this.domain=`.dealpos${e[1]}`,this.authService.isActiveToken()&&this._router.navigate(["menu"])}}onNextState(){if(ue.IsEmpty(this.subdomain)){this.toastr.warning("Account Domain is required","Warning");return}this.parseSubdomain(),this.loginState="FORM_AUTH"}parseSubdomain(){let n=this.subdomain.indexOf(".dealpos");n!=-1&&(this.subdomain=this.subdomain.substring(0,n))}onEditDomain(){this.loginState="FORM_DOMAIN"}onLogin(){let n={Host:`${this.subdomain}${this.domain}`,Username:this.username,Password:this.password};this.authService.login(n).subscribe(e=>{this.onSuccessLogin(e)})}onLoginByGoogle(n){let e=`${this.subdomain}${this.domain}`;this.authService.loginWithGoogle(n,e).subscribe(s=>{this.onSuccessLogin(s)})}onSuccessLogin(n){this.ngxPermission.hasPermission([pe.DashboardView]).then(e=>{e?this._router.navigate(["menu/dashboard"]):n?.TotalChannel<1?this._router.navigate(["menu/channel"]):this._router.navigate(["menu/products"])})}setAutoFocusDomain(){this.subdomainEl.nativeElement.focus()}hideShowPassword(){this.passwordType=this.passwordType==="text"?"password":"text",this.passwordIcon=this.passwordIcon==="fa-eye"?"fa-eye-slash":"fa-eye"}ngOnDestroy(){document.body.classList.remove("login-body")}};t.\u0275fac=function(e){return new(e||t)(m(w),m(he),m(Ce),m(be),m(fe))},t.\u0275cmp=f({type:t,selectors:[["app-login"]],viewQuery:function(e,s){if(e&1&&W(Te,5),e&2){let _;B(_=q())&&(s.subdomainEl=_.first)}},standalone:!1,decls:18,vars:6,consts:[["subdomainEl",""],["usernameCtrl","ngModel"],["passwordCtrl","ngModel"],[1,"container-fluid"],[1,"row","mx-auto","bg-white","login-pane"],[1,"col-md-5","order-md-first","order-last","border-end","features-pane","pt-12","pb-9"],[1,"fw-normal","fs-2","header-title","text-center"],[3,"newsList"],[1,"col-md-7","order-md-last","order-first","py-12","sign-in-pane"],[1,"d-flex","copyright",2,"margin-left","20px"],[1,"align-self-center","me-5"],["target","_blank","href","http://www.dealpos.com"],[1,"version",2,"margin-right","18px"],["target","_blank",1,"text-dark","fst-italic",3,"href"],[1,"fa-solid","fa-circle-exclamation","ms-2",2,"font-size","16px"],[1,"text-md-start","text-center"],[1,"fs-2","header-title","me-2","fw-normal"],[1,"text-secondary-emphasis","fst-italic",2,"font-size","11px"],[2,"margin-top","38px"],[1,"form-block","mt-5"],[1,"input-group","input-group-lg","mt-8"],[1,"input-group-text","rounded-start","border-end-0",2,"width","52px"],[1,"fa-solid","fa-cloud"],["placeholder","Store Address","aria-label","Store Address","aria-describedby","basic-addon1","autofocus","","name","Store Address",1,"form-control","form-control-lg","rounded-end-0","border-start-0","ps-1",2,"height","58px",3,"ngModelChange","ngModel"],["name","domainOption",1,"form-select","form-control","form-control-lg","border-start-0","border-start","rounded-end","rounded-start-0","domain-option",2,"height","58px",3,"ngModelChange","ngModel"],["selected","","value",".dealpos.co.id"],["value",".dealpos.net"],["value",".dealpos.com"],["value",".dealpos.app"],[1,"w-100",2,"margin-top","1.8rem"],["name","next","data-cy","next","type","submit",1,"btn","btn-xl","btn-success","btn-block","font125rem","robotoslab","w-100",3,"click"],[1,"d-flex","align-items-center","justify-content-center",2,"margin-top","2.1rem"],[1,"d-flex","align-items-center","justify-content-between","w-100"],[1,""],[1,"border-0",2,"width","34px","height","34px",3,"src","title","alt"],[1,"d-flex","align-items-center","justify-content-start","mb-2"],[1,"robotoslab","fw-normal"],[1,"ms-2","fw-normal"],[1,"me-2","robotoslab","d-inline-block","text-success"],["title","Edit Store Address",1,"fa-solid","fa-edit","link-success","fs-5","pointer",3,"click"],[2,"margin-top","29px"],[1,"input-group","input-group-lg"],[1,"fas","fa-user","fa-lg"],["id","txtUsername","type","text","data-cy","username","required","","placeholder","Username","aria-label","Username","aria-describedby","basic-addon1","autofocus","","name","username",1,"form-control","form-control-lg","rounded-end","border-start-0","ps-1",2,"height","58px",3,"ngModelChange","ngModel"],[1,"d-flex","justify-content-start","w-50","mb-4",2,"height","16px"],[1,"fas","fa-key","fa-lg"],["id","txtPassword","data-cy","password","placeholder","Password","aria-label","Password","aria-describedby","basic-addon1","autofocus","","name","password","required","",1,"form-control","form-control-lg","rounded-end","border-start-0","ps-1",2,"height","58px",3,"ngModelChange","type","ngClass","ngModel"],[1,"input-group-text","border-start-0","rounded-end"],[1,"w-100","mt-8"],["data-cy","login","type","submit",1,"btn","btn-lg","btn-success","btn-block","font125rem","robotoslab","w-100",3,"click"],[1,"divider","d-flex","align-items-center","justify-content-center"],[1,"mx-4","text-muted"],[1,"btn","btn-social-login","text-success","w-100","fw-bold",3,"click"],[1,"fa-brands","fa-google"],[2,"width","52px"],[1,"text-danger","ps-1"],[3,"class"],[3,"click"]],template:function(e,s){e&1&&(i(0,"div",3)(1,"div",4)(2,"div",5)(3,"h3",6),a(4,"New Features"),r(),l(5,"POS-news-swiper",7),K(6,"async"),r(),i(7,"div",8),C(8,Ne,30,2)(9,We,36,12),r()(),i(10,"div",9)(11,"span",10),a(12,"powered by :"),r(),l(13,"a",11),r(),i(14,"div",12)(15,"a",13),a(16),l(17,"i",14),r()()()),e&2&&(c(5),b("newsList",$(6,4,s.news$)),c(3),v(s.loginState=="FORM_DOMAIN"?8:9),c(7),b("href",s.changelogUrl,O),c(),Y("version ",s.version))},dependencies:[X,ae,de,ce,te,se,ne,ie,le,re,oe,ve,Z],styles:[".login-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:115px}@media (max-width: 768px){.login-pane[_ngcontent-%COMP%]{margin-top:0}}@media only screen and (max-width: 1300px) and (min-width: 1024px){.login-pane[_ngcontent-%COMP%]{margin-top:30px}}.header-title[_ngcontent-%COMP%]{font-family:Roboto Slab}.carousel-inner[_ngcontent-%COMP%]{height:310px}.carousel-inner[_ngcontent-%COMP%] div.carousel-item[_ngcontent-%COMP%]{top:28px}@media (max-width: 820px){.carousel-indicators[_ngcontent-%COMP%]{bottom:-8px}}.carousel-indicators[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#ddd;width:1.25rem;height:.375rem;transition:.3s}.carousel-indicators[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{background-color:var(--bs-success)}.sign-in-pane[_ngcontent-%COMP%]{padding:0 3rem 0 3.5rem}@media (max-width: 768px){.sign-in-pane[_ngcontent-%COMP%]{padding:24px 12px}.sign-in-pane[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:8px!important}}@media (min-width: 1200px){.sign-in-pane[_ngcontent-%COMP%]{border-bottom:1px solid #89b03e;border-right:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:0 10px 10px 0}}.subscription.danger[_ngcontent-%COMP%]{background-color:#f2dede;border-color:#eb415d;color:#a94442}.subscription.warning[_ngcontent-%COMP%]{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}@media (max-width: 768px){.features-pane[_ngcontent-%COMP%]{border-right:0px!important}}@media (min-width: 1200px){.features-pane[_ngcontent-%COMP%]{border-left:1px solid #89b03e;border-bottom:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:10px 0 0 10px}}.copyright[_ngcontent-%COMP%]{position:absolute;bottom:1.25rem;left:1.25rem}.copyright[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:8.125rem;height:2.5rem;background-image:url(//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png);background-position:left top;background-repeat:no-repeat;background-size:contain}.version[_ngcontent-%COMP%]{bottom:1.25rem;right:1.25rem;position:absolute}@media (max-width: 768px){.copyright[_ngcontent-%COMP%], .version[_ngcontent-%COMP%]{position:static;margin-top:10px}.copyright[_ngcontent-%COMP%]{justify-content:center}}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}button.btn-social-login[_ngcontent-%COMP%], .btn-login[_ngcontent-%COMP%]{border:1px solid var(--bs-success)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited i[_ngcontent-%COMP%]{color:#f4f4f4!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{margin-left:-10px}.domain-option[_ngcontent-%COMP%]{padding:.75rem;color:#343434;font-size:.875rem;width:8.5rem}"]});let o=t;return o})();var Oe=(()=>{let t=class t{constructor(n,e,s){this.route=n,this.http=e,this.service=s}ngOnInit(){this.route.queryParams.subscribe(n=>{this.shopID=n.shop_id,this.code=n.code})}addShopee(){let n={ShopID:Number(this.shopID),Code:this.code};this.http.post("/api/ChannelAdd/ShopeeV2",n).subscribe(s=>{this.service.navigate(["/menu/channel"])})}};t.\u0275fac=function(e){return new(e||t)(m(y),m(S),m(w))},t.\u0275cmp=f({type:t,selectors:[["shopee-authorized"]],standalone:!1,decls:20,vars:1,consts:[[1,"container","h-100"],[1,"row","d-flex","justify-content-center","align-items-center","h-100"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","fw-bold"],[1,"card-body","text-center","py-6"],[1,"text-shopee","fw-bold"],["type","button",1,"btn","btn-success","mt-t",3,"click"],[1,"fas","fa-undo"]],template:function(e,s){e&1&&(i(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),l(5,"i",5),i(6,"div",6),a(7,"Success !"),r()(),i(8,"div",7)(9,"div"),a(10,"You have successfully authorized "),r(),i(11,"div"),a(12,"DEALPOS to manage your Shopee"),r(),i(13,"div"),a(14," Your shopID is "),i(15,"span",8),a(16),r()(),i(17,"button",9),g("click",function(){return s.addShopee()}),l(18,"i",10),a(19," Add to my Channel"),r()()()()()()),e&2&&(c(16),x(s.shopID))},styles:[".login-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:115px}@media (max-width: 768px){.login-pane[_ngcontent-%COMP%]{margin-top:0}}@media only screen and (max-width: 1300px) and (min-width: 1024px){.login-pane[_ngcontent-%COMP%]{margin-top:30px}}.header-title[_ngcontent-%COMP%]{font-family:Roboto Slab}.carousel-inner[_ngcontent-%COMP%]{height:310px}.carousel-inner[_ngcontent-%COMP%] div.carousel-item[_ngcontent-%COMP%]{top:28px}@media (max-width: 820px){.carousel-indicators[_ngcontent-%COMP%]{bottom:-8px}}.carousel-indicators[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#ddd;width:1.25rem;height:.375rem;transition:.3s}.carousel-indicators[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{background-color:var(--bs-success)}.sign-in-pane[_ngcontent-%COMP%]{padding:0 3rem 0 3.5rem}@media (max-width: 768px){.sign-in-pane[_ngcontent-%COMP%]{padding:24px 12px}.sign-in-pane[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:8px!important}}@media (min-width: 1200px){.sign-in-pane[_ngcontent-%COMP%]{border-bottom:1px solid #89b03e;border-right:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:0 10px 10px 0}}.subscription.danger[_ngcontent-%COMP%]{background-color:#f2dede;border-color:#eb415d;color:#a94442}.subscription.warning[_ngcontent-%COMP%]{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}@media (max-width: 768px){.features-pane[_ngcontent-%COMP%]{border-right:0px!important}}@media (min-width: 1200px){.features-pane[_ngcontent-%COMP%]{border-left:1px solid #89b03e;border-bottom:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:10px 0 0 10px}}.copyright[_ngcontent-%COMP%]{position:absolute;bottom:1.25rem;left:1.25rem}.copyright[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:8.125rem;height:2.5rem;background-image:url(//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png);background-position:left top;background-repeat:no-repeat;background-size:contain}.version[_ngcontent-%COMP%]{bottom:1.25rem;right:1.25rem;position:absolute}@media (max-width: 768px){.copyright[_ngcontent-%COMP%], .version[_ngcontent-%COMP%]{position:static;margin-top:10px}.copyright[_ngcontent-%COMP%]{justify-content:center}}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}button.btn-social-login[_ngcontent-%COMP%], .btn-login[_ngcontent-%COMP%]{border:1px solid var(--bs-success)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited i[_ngcontent-%COMP%]{color:#f4f4f4!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{margin-left:-10px}.domain-option[_ngcontent-%COMP%]{padding:.75rem;color:#343434;font-size:.875rem;width:8.5rem}.form-signin[_ngcontent-%COMP%]{max-width:600px}.card[_ngcontent-%COMP%]{font:100 14px/25px Roboto,Helvetica Neue,sans-serif;border-radius:13px;box-sizing:border-box}.text-shopee[_ngcontent-%COMP%]{color:#f53d2d}"]});let o=t;return o})();var Pe=(()=>{let t=class t{constructor(n,e,s){this.route=n,this.http=e,this.service=s}ngOnInit(){this.route.queryParams.subscribe(n=>{this.code=n.code,this.state=n.state})}addChannelTiktok(){let n={Code:this.code};this.http.post("/api/ChannelAdd/AddTiktok",n).subscribe(e=>{this.service.navigate(["/menu/channel"])})}};t.\u0275fac=function(e){return new(e||t)(m(y),m(S),m(w))},t.\u0275cmp=f({type:t,selectors:[["app-tiktok"]],standalone:!1,decls:24,vars:2,consts:[[1,"container","h-100"],[1,"row","d-flex","justify-content-center","align-items-center","h-100"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","fw-bold"],[1,"card-body","text-center","py-6"],[1,"text-shopee","fw-bold"],["type","button",1,"btn","btn-success","mt-6",3,"click"],[1,"fas","fa-undo"]],template:function(e,s){e&1&&(i(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),l(5,"i",5),i(6,"div",6),a(7,"Success !"),r()(),i(8,"div",7)(9,"div"),a(10,"You have successfully authorized "),r(),i(11,"div"),a(12,"DEALPOS to manage your Tiktok"),r(),i(13,"div"),a(14," Your Code is "),i(15,"span",8),a(16),r()(),i(17,"div"),a(18," Your State is "),i(19,"span",8),a(20),r()(),i(21,"button",9),g("click",function(){return s.addChannelTiktok()}),l(22,"i",10),a(23," Add to my Channel"),r()()()()()()),e&2&&(c(16),x(s.code),c(4),x(s.state))},styles:[".login-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:115px}@media (max-width: 768px){.login-pane[_ngcontent-%COMP%]{margin-top:0}}@media only screen and (max-width: 1300px) and (min-width: 1024px){.login-pane[_ngcontent-%COMP%]{margin-top:30px}}.header-title[_ngcontent-%COMP%]{font-family:Roboto Slab}.carousel-inner[_ngcontent-%COMP%]{height:310px}.carousel-inner[_ngcontent-%COMP%] div.carousel-item[_ngcontent-%COMP%]{top:28px}@media (max-width: 820px){.carousel-indicators[_ngcontent-%COMP%]{bottom:-8px}}.carousel-indicators[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#ddd;width:1.25rem;height:.375rem;transition:.3s}.carousel-indicators[_ngcontent-%COMP%] button.active[_ngcontent-%COMP%]{background-color:var(--bs-success)}.sign-in-pane[_ngcontent-%COMP%]{padding:0 3rem 0 3.5rem}@media (max-width: 768px){.sign-in-pane[_ngcontent-%COMP%]{padding:24px 12px}.sign-in-pane[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{padding-left:8px!important}}@media (min-width: 1200px){.sign-in-pane[_ngcontent-%COMP%]{border-bottom:1px solid #89b03e;border-right:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:0 10px 10px 0}}.subscription.danger[_ngcontent-%COMP%]{background-color:#f2dede;border-color:#eb415d;color:#a94442}.subscription.warning[_ngcontent-%COMP%]{background-color:#fcf8e3;border-color:#faebcc;color:#8a6d3b}@media (max-width: 768px){.features-pane[_ngcontent-%COMP%]{border-right:0px!important}}@media (min-width: 1200px){.features-pane[_ngcontent-%COMP%]{border-left:1px solid #89b03e;border-bottom:1px solid #89b03e;border-top:1px solid #89b03e;border-radius:10px 0 0 10px}}.copyright[_ngcontent-%COMP%]{position:absolute;bottom:1.25rem;left:1.25rem}.copyright[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:8.125rem;height:2.5rem;background-image:url(//res.cloudinary.com/pos/image/upload/POS/Images/Login/dealpos.png);background-position:left top;background-repeat:no-repeat;background-size:contain}.version[_ngcontent-%COMP%]{bottom:1.25rem;right:1.25rem;position:absolute}@media (max-width: 768px){.copyright[_ngcontent-%COMP%], .version[_ngcontent-%COMP%]{position:static;margin-top:10px}.copyright[_ngcontent-%COMP%]{justify-content:center}}div.divider[_ngcontent-%COMP%] > hr[_ngcontent-%COMP%]{margin-top:1.2rem;margin-bottom:1.2rem;border-top:1px solid rgba(0,0,0,.855);width:20%}button.btn-social-login[_ngcontent-%COMP%], .btn-login[_ngcontent-%COMP%]{border:1px solid var(--bs-success)}.fa-google[_ngcontent-%COMP%]{background:conic-gradient(from -45deg,#ea4335 110deg,#4285f4 90deg 180deg,#34a853 180deg 270deg,#fbbc05 270deg) 73% 55%/150% 150% no-repeat;-webkit-background-clip:text;background-clip:text;color:transparent;-webkit-text-fill-color:transparent}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited i[_ngcontent-%COMP%]{color:#f4f4f4!important}.version[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{margin-left:-10px}.domain-option[_ngcontent-%COMP%]{padding:.75rem;color:#343434;font-size:.875rem;width:8.5rem}.form-signin[_ngcontent-%COMP%]{max-width:600px}.card[_ngcontent-%COMP%]{font:100 14px/25px Roboto,Helvetica Neue,sans-serif;border-radius:13px;box-sizing:border-box}.text-shopee[_ngcontent-%COMP%]{color:#f53d2d}"]});let o=t;return o})();var ye=(()=>{let t=class t{constructor(n,e,s){this.route=n,this.http=e,this.service=s}ngOnInit(){this.route.queryParams.subscribe(n=>{this.code=n.code})}addChannelLazada(){let n={Code:this.code};this.http.post("/api/ChannelAdd/AddLazada",n).subscribe(e=>{this.service.navigate(["/menu/channel"])})}};t.\u0275fac=function(e){return new(e||t)(m(y),m(S),m(w))},t.\u0275cmp=f({type:t,selectors:[["app-lazada"]],standalone:!1,decls:20,vars:1,consts:[[1,"container","h-100"],[1,"row","d-flex","justify-content-center","align-items-center","h-100"],[1,"col-md-4"],[1,"card"],[1,"card-header","text-center"],[1,"far","fa-check-circle","text-success",2,"font-size","115px"],[1,"h3","fw-bold"],[1,"card-body","text-center","py-6"],[1,"text-shopee","fw-bold"],["type","button",1,"btn","btn-success","mt-6",3,"click"],[1,"fas","fa-undo"]],template:function(e,s){e&1&&(i(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),l(5,"i",5),i(6,"div",6),a(7,"Success !"),r()(),i(8,"div",7)(9,"div"),a(10,"You have successfully authorized "),r(),i(11,"div"),a(12,"DEALPOS to manage your Lazada"),r(),i(13,"div"),a(14," Your Code is "),i(15,"span",8),a(16),r()(),i(17,"button",9),g("click",function(){return s.addChannelLazada()}),l(18,"i",10),a(19," Add to my Channel"),r()()()()()()),e&2&&(c(16),x(s.code))},encapsulation:2});let o=t;return o})();var Be=[{path:"",component:we,data:{title:"Dealpos x Marketplace"}},{path:"shopee",component:Oe,data:{title:"Success"}},{path:"tiktok",component:Pe,data:{title:"Success"}},{path:"lazada",component:ye,data:{title:"Success"}}],Se=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=A({type:t}),t.\u0275inj=T({imports:[V.forChild(Be),V]});let o=t;return o})();var kt=(()=>{let t=class t{};t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=A({type:t}),t.\u0275inj=T({imports:[ee,me,Se,_e,xe]});let o=t;return o})();export{kt as LoginModule};
@@ -1,2 +1,2 @@
1
- import"./chunk-E6ZWL77N.js";import"./chunk-O4EO3YBL.js";import{a as je}from"./chunk-ADKAX3OO.js";import"./chunk-4VNQYYVV.js";import{b as qe}from"./chunk-ZKIO2ZQ6.js";import{a as g}from"./chunk-UCEZJNIL.js";import"./chunk-ZTHO6JJM.js";import"./chunk-SHUYFOQI.js";import"./chunk-GG3MDS4C.js";import{b as Qe}from"./chunk-O2YF5VGD.js";import{b as Je}from"./chunk-QFSA7CU4.js";import"./chunk-OPXITNRF.js";import{c as We}from"./chunk-5BSPSA4O.js";import"./chunk-FULVA6QB.js";import"./chunk-HPINZVE4.js";import"./chunk-D2J64VUP.js";import"./chunk-6Q6L5NUD.js";import"./chunk-C7N6EI73.js";import"./chunk-GPHNPV7O.js";import"./chunk-3RK6DDJD.js";import{a as Ge}from"./chunk-4YCSITNV.js";import"./chunk-WHHW4IZT.js";import{a as l}from"./chunk-ZSUWHVKX.js";import"./chunk-N5AE5WMQ.js";import{b as ze}from"./chunk-6OIMOM7S.js";import{a as De,d as Pe,e as A}from"./chunk-6KWG6O5L.js";import{a as Ee}from"./chunk-A6QXXKPR.js";import{b as Se,i as Oe}from"./chunk-I723PUUO.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-AGBJEXIM.js";import"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import"./chunk-JBEKD57G.js";import{a as ke,h as $e,k as q,n as He}from"./chunk-EDEZ3JLR.js";import{A as L,B as xe,h as ye,m as Me}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import{a as we,b as Te,c as Ie}from"./chunk-ZETUYNFJ.js";import{v as Fe,w as N}from"./chunk-STYL7ETF.js";import{D as Ne,E as Ve,J as Re,N as Ue,O as W,v as Be,w as Le,z as Ae}from"./chunk-XLIPGDSC.js";import{E as _e,F as be,G as Ce,H as ve,I as G,c as he,i as fe,j as ue,m as B}from"./chunk-LNJUGHOX.js";import{$b as w,Bc as ce,Ca as X,Cc as me,Dc as pe,Fd as z,G as Q,Gb as v,Hb as b,Ib as ae,Ic as ge,Jc as E,Lc as $,M as Z,Mb as S,Mc as p,Nc as y,Oc as O,Q as K,Qa as ee,ac as oe,bc as T,ca as Y,dc as re,ec as le,f as F,fc as se,gc as f,hc as r,hd as j,ic as s,id as H,jc as C,lb as te,na as _,nb as d,qc as de,ra as c,sb as k,tb as ie,v as P,vc as I,xa as M,xc as m,ya as x,yb as ne}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import{i as U}from"./chunk-66YHNWRR.js";var V=class{constructor(){this.menus=[{Icon:"fa-solid fa-chart-pie",Title:"Dashboard",Url:"/menu/dashboard",Roles:[l.DashboardView]},{Icon:"fas fa-tag",Title:"Products",Url:"/menu/products",Roles:[l.ProductView]},{Icon:"fas fa-archive",Title:"Inventory",Url:"/menu/inventory",Roles:[l.InventoryView]},{Icon:"fas fa-money-bill-alt",Title:"Price",Url:"/menu/price",Roles:[l.PriceView]},{Icon:"fas fa-shopping-cart",Title:"Order",Url:"/menu/order",Roles:[l.OrderView]},{Icon:"fas fa-cog",Title:"Channel",Url:"/menu/channel",Roles:[l.ChannelView]},{Icon:"fa-solid fa-user",Title:"Users",Url:"/menu/users",Roles:[l.UserView]},{Icon:"fas fa-clipboard-list",Title:"Sync Logs",Url:"/menu/sync-log",Roles:[l.Report]},{Icon:"fas fa-dolly",Title:"Logistic",Url:"/menu/Logistic",Roles:[l.LogisticView]},{Icon:"fas fa-file-alt",Title:"Developer",Url:"/menu/log",Roles:[l.DevView]},{Icon:"fa-solid fa-file-brackets-curly",Title:"JSON Api",Url:"/menu/json-api",Roles:[l.JsonApiView]}]}get getMenu(){return this.menus}};var Ze="mat-badge-content",at=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=v({type:e,selectors:[["ng-component"]],decls:0,vars:0,template:function(n,a){},styles:[`.mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-content{position:absolute;text-align:center;display:inline-block;transition:transform 200ms ease-in-out;transform:scale(0.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;pointer-events:none;background-color:var(--mat-badge-background-color, var(--mat-sys-error));color:var(--mat-badge-text-color, var(--mat-sys-on-error));font-family:var(--mat-badge-text-font, var(--mat-sys-label-small-font));font-weight:var(--mat-badge-text-weight, var(--mat-sys-label-small-weight));border-radius:var(--mat-badge-container-shape, var(--mat-sys-corner-full))}.mat-badge-above .mat-badge-content{bottom:100%}.mat-badge-below .mat-badge-content{top:100%}.mat-badge-before .mat-badge-content{right:100%}[dir=rtl] .mat-badge-before .mat-badge-content{right:auto;left:100%}.mat-badge-after .mat-badge-content{left:100%}[dir=rtl] .mat-badge-after .mat-badge-content{left:auto;right:100%}@media(forced-colors: active){.mat-badge-content{outline:solid 1px;border-radius:0}}.mat-badge-disabled .mat-badge-content{background-color:var(--mat-badge-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-error) 38%, transparent));color:var(--mat-badge-disabled-state-text-color, var(--mat-sys-on-error))}.mat-badge-hidden .mat-badge-content{display:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:var(--mat-badge-legacy-small-size-container-size, unset);height:var(--mat-badge-legacy-small-size-container-size, unset);min-width:var(--mat-badge-small-size-container-size, 6px);min-height:var(--mat-badge-small-size-container-size, 6px);line-height:var(--mat-badge-small-size-line-height, 6px);padding:var(--mat-badge-small-size-container-padding, 0);font-size:var(--mat-badge-small-size-text-size, 0);margin:var(--mat-badge-small-size-container-offset, -6px 0)}.mat-badge-small.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-small-size-container-overlap-offset, -6px)}.mat-badge-medium .mat-badge-content{width:var(--mat-badge-legacy-container-size, unset);height:var(--mat-badge-legacy-container-size, unset);min-width:var(--mat-badge-container-size, 16px);min-height:var(--mat-badge-container-size, 16px);line-height:var(--mat-badge-line-height, 16px);padding:var(--mat-badge-container-padding, 0 4px);font-size:var(--mat-badge-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-container-offset, -12px 0)}.mat-badge-medium.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-container-overlap-offset, -12px)}.mat-badge-large .mat-badge-content{width:var(--mat-badge-legacy-large-size-container-size, unset);height:var(--mat-badge-legacy-large-size-container-size, unset);min-width:var(--mat-badge-large-size-container-size, 16px);min-height:var(--mat-badge-large-size-container-size, 16px);line-height:var(--mat-badge-large-size-line-height, 16px);padding:var(--mat-badge-large-size-container-padding, 0 4px);font-size:var(--mat-badge-large-size-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-large-size-container-offset, -12px 0)}.mat-badge-large.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-large-size-container-overlap-offset, -12px)}
2
- `],encapsulation:2,changeDetection:0})}return e})(),Ke=(()=>{class e{_ngZone=c(ie);_elementRef=c(ee);_ariaDescriber=c(Re);_renderer=c(ne);_animationsDisabled=Ue();_idGenerator=c(Ve);get color(){return this._color}set color(i){this._setColor(i),this._color=i}_color="primary";overlap=!0;disabled;position="above after";get content(){return this._content}set content(i){this._updateRenderedContent(i)}_content;get description(){return this._description}set description(i){this._updateDescription(i)}_description;size="medium";hidden;_badgeElement;_inlineBadgeDescription;_isInitialized=!1;_interactivityChecker=c(Ae);_document=c(X);constructor(){let i=c(Be);i.load(at),i.load(Le)}isAbove(){return this.position.indexOf("below")===-1}isAfter(){return this.position.indexOf("before")===-1}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&(this._renderer.destroyNode(this._badgeElement),this._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})}_createBadgeElement(){let i=this._renderer.createElement("span"),n="mat-badge-active";return i.setAttribute("id",this._idGenerator.getId("mat-badge-content-")),i.setAttribute("aria-hidden","true"),i.classList.add(Ze),this._animationsDisabled&&i.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(i),typeof requestAnimationFrame=="function"&&!this._animationsDisabled?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{i.classList.add(n)})}):i.classList.add(n),i}_updateRenderedContent(i){let n=`${i??""}`.trim();this._isInitialized&&n&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=n),this._content=n}_updateDescription(i){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!i||this._isHostInteractive())&&this._removeInlineDescription(),this._description=i,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,i):this._updateInlineDescription()}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden")),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription)}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0}_setColor(i){let n=this._elementRef.nativeElement.classList;n.remove(`mat-badge-${this._color}`),i&&n.add(`mat-badge-${i}`)}_clearExistingBadges(){let i=this._elementRef.nativeElement.querySelectorAll(`:scope > .${Ze}`);for(let n of Array.from(i))n!==this._badgeElement&&n.remove()}static \u0275fac=function(n){return new(n||e)};static \u0275dir=ae({type:e,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(n,a){n&2&&E("mat-badge-overlap",a.overlap)("mat-badge-above",a.isAbove())("mat-badge-below",!a.isAbove())("mat-badge-before",!a.isAfter())("mat-badge-after",a.isAfter())("mat-badge-small",a.size==="small")("mat-badge-medium",a.size==="medium")("mat-badge-large",a.size==="large")("mat-badge-hidden",a.hidden||!a.content)("mat-badge-disabled",a.disabled)},inputs:{color:[0,"matBadgeColor","color"],overlap:[2,"matBadgeOverlap","overlap",z],disabled:[2,"matBadgeDisabled","disabled",z],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",z]}})}return e})(),Ye=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=b({type:e});static \u0275inj=_({imports:[Ne,W,W]})}return e})();function rt(e,t){if(e&1&&(r(0,"p",21),p(1),s()),e&2){let i=m(3).$implicit;d(),O(" ",i.Title," ")}}function lt(e,t){if(e&1&&(r(0,"p"),p(1),s()),e&2){let i=m(3).$implicit;d(),y(i.Title)}}function st(e,t){if(e&1&&(r(0,"a",18),C(1,"i"),w(2,rt,2,1,"p",21)(3,lt,2,1,"p"),s()),e&2){let i=m(2).$implicit;f("href",i.Url,te),d(),$(i.Icon),d(),T(i.Badge?2:3)}}function dt(e,t){if(e&1&&S(0,st,4,4,"a",20),e&2){let i=m().$implicit;f("ngxPermissionsOnly",i.Roles)}}function ct(e,t){if(e&1&&(r(0,"p",21),p(1),s()),e&2){let i=m(4).$implicit;d(),O(" ",i.Title," ")}}function mt(e,t){if(e&1&&(r(0,"p"),p(1),s()),e&2){let i=m(4).$implicit;d(),y(i.Title)}}function pt(e,t){if(e&1&&(w(0,ct,2,1,"p",21),j(1,"async"),oe(2,mt,2,1,"p")),e&2){let i=m(4);T(H(1,1,i.notifications$)!=0?0:2)}}function gt(e,t){if(e&1&&(r(0,"p"),p(1),s()),e&2){let i=m(3).$implicit;d(),y(i.Title)}}function ht(e,t){if(e&1&&(r(0,"a",19),C(1,"i"),w(2,pt,3,3)(3,gt,2,1,"p"),s()),e&2){let i=m(2).$implicit,n=m();f("matTooltip",n.isCollapseSidebar?i.Title:"")("routerLink",i.Url),d(),$(i.Icon),d(),T(i.Badge?2:3)}}function ft(e,t){if(e&1&&S(0,ht,4,5,"a",22),e&2){let i=m().$implicit;f("ngxPermissionsOnly",i.Roles)}}function ut(e,t){if(e&1&&(r(0,"li",16),w(1,dt,1,1,"a",18)(2,ft,1,1,"a",19),s()),e&2){let i=t.$implicit;d(),T(i.ExternalLink?1:2)}}var Xe=(()=>{let t=class t{constructor(){this.toggleSidebarService=c(ke),this.notificationService=c(ze),this.decodeTokenService=c(Se),this.authService=c(Oe),this.Menu={};let n=this.decodeTokenService;this.isCollapseSidebar=!1,this.token=n.getParseToken(),this.storeName=this.token.StoreName,this.Menu=new V().getMenu,this.toggleState$=this.toggleSidebarService.toggleState$}ngOnInit(){this.initNotifications()}initNotifications(){this.notifications$=this.notificationService.getNotification().pipe(P(n=>n.length))}onLogout(){this.authService.logout()}onCallapseSidebar(){this.isCollapseSidebar=!this.isCollapseSidebar,this.storeName=this.token.StoreName,this.isCollapseSidebar&&(this.storeName=this.getInitialTitle(this.token.StoreName))}getInitialTitle(n){if(n){let a,o=n.split(" ");return o.length==1?a=o[0].substring(0,2):a=o.shift().charAt(0)+o.pop().charAt(0),a}}};t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=v({type:t,selectors:[["app-menu"]],standalone:!1,decls:29,vars:8,consts:[[1,"wrapper"],["data-color","green",1,"sidebar",3,"ngClass"],[1,"btn-minimize","d-md-block","d-none","p-0","border-0","bg-white",3,"click"],[1,"fas","cursor",3,"ngClass"],[1,"logo"],[1,"navbar","dropdown","bg-transparent","border-0"],["data-bs-toggle","dropdown","aria-expanded","false",1,"simple-text","text-start","dropdown-toggle","d-flex","align-items-center","justify-content-center","cursor-pointer"],[1,"dropdown-menu"],[1,"dropdown-header","text-dark","border-bottom"],[1,"divider","m-0"],["routerLink","/menu/profile",1,"dropdown-item","h5",2,"cursor","pointer"],["aria-hidden","true",1,"fa-user","fas"],[1,"dropdown-item","h5",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fas","fa-sign-out-alt"],[1,"sidebar-wrapper"],[1,"nav"],["routerLinkActive","active"],[1,"main-panel"],["target","_blank",1,"nav-link","position-relative","d-block","changelog",3,"href"],["matTooltipPosition","right",1,"nav-link","position-relative","d-block",3,"matTooltip","routerLink"],["class","nav-link position-relative d-block changelog","target","_blank",3,"href",4,"ngxPermissionsOnly"],["matBadge","!","matBadgeColor","warn","matBadgeSize","small",1,"shake-animation"],["class","nav-link position-relative d-block","matTooltipPosition","right",3,"matTooltip","routerLink",4,"ngxPermissionsOnly"]],template:function(a,o){a&1&&(r(0,"div",0),j(1,"async"),r(2,"div",1)(3,"button",2),I("click",function(){return o.onCallapseSidebar()}),C(4,"i",3),s(),r(5,"div",4)(6,"div",5)(7,"a",6),p(8),s(),r(9,"div",7)(10,"div",8),p(11),s(),C(12,"div",9),r(13,"a",10),C(14,"i",11),p(15,"\xA0 "),r(16,"span"),p(17,"My Profile"),s()(),r(18,"a",12),I("click",function(){return o.onLogout()}),C(19,"i",13),p(20,"\xA0 "),r(21,"span"),p(22," Log Out"),s()()()()(),r(23,"div",14)(24,"ul",15),le(25,ut,3,1,"li",16,re),s()()(),r(27,"div",17),C(28,"router-outlet"),s()()),a&2&&(E("nav-open",H(1,6,o.toggleState$)),d(2),f("ngClass",o.isCollapseSidebar?"collapses":""),d(2),f("ngClass",o.isCollapseSidebar?"fa-angle-left":"fa-angle-right"),d(4),O(" ",o.storeName," "),d(3),O(" ",o.token==null?null:o.token.LID," "),d(14),se(o.Menu))},dependencies:[he,_e,Ce,ve,Fe,Ke,Te,fe],styles:["@media (max-width: 468px){.navbar[_ngcontent-%COMP%] .navbar-brand[_ngcontent-%COMP%]{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media only screen and (min-width: 992px){.sidebar[_ngcontent-%COMP%]{z-index:1050!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%], .sidebar.collapses[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{width:70px;transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] .simple-text[_ngcontent-%COMP%]{background-color:#ffffff3b;border-radius:20px;height:40px;width:40px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important;height:50px;text-align:center;margin:10px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{padding-left:70px}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{left:70px!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]{position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1;background-color:#fff;position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border:0;border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;padding:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1}.full-container[_ngcontent-%COMP%]{padding-top:0!important}} p.shake-animation.mat-badge>span.mat-badge-content{animation:_ngcontent-%COMP%_shake-animation 4.72s ease infinite;font-size:12px;transform-origin:50% 50%;right:-14px!important}@keyframes _ngcontent-%COMP%_shake-animation{0%{transform:translate(0)}1.78571%{transform:translate(5px)}3.57143%{transform:translate(0)}5.35714%{transform:translate(5px)}7.14286%{transform:translate(0)}8.92857%{transform:translate(5px)}10.71429%{transform:translate(0)}to{transform:translate(0)}} .changelog:visited p.shake-animation.mat-badge>span.mat-badge-content{color:#77c425;background-color:#77c425;z-index:-1}@media print{.main-panel[_ngcontent-%COMP%]{padding:0!important}}"]});let e=t;return e})();var u=(e,t)=>U(null,null,function*(){let i=c(we),n=c(be),a=e.data?.roles||[],o=e.data?.redirectUrl||"/";return a.length===0||(yield _t(i,a))?!0:(n.navigate([o]),!1)});function _t(e,t){return U(this,null,function*(){let i=t.map(a=>e.hasPermission(a));return(yield Promise.all(i)).some(a=>a)})}var bt=[{path:"",component:Xe,children:[{path:"",redirectTo:"dashboard",pathMatch:"full"},{path:"profile",loadChildren:()=>import("./chunk-BXYXVBXP.js").then(e=>e.routes),canActivate:[g],data:{title:"My Profile"}},{path:"dashboard",loadChildren:()=>import("./chunk-7GY4O2UX.js").then(e=>e.DashboardModule),canActivate:[g,u,je],data:{title:"Dashboard",roles:[l.DashboardView],redirectUrl:"/menu/products"}},{path:"products",loadChildren:()=>import("./chunk-IDH7MCR3.js").then(e=>e.ProductModule),canActivate:[g,u],data:{title:"Products",roles:[l.ProductView],redirectUrl:"/menu/inventory"}},{path:"inventory",loadChildren:()=>import("./chunk-J6BQDYXO.js").then(e=>e.InventoryRoutingModule),canActivate:[g,u],data:{title:"Inventory",roles:[l.InventoryView],redirectUrl:"/menu/price"}},{path:"price",loadChildren:()=>import("./chunk-ZUL6ZHSW.js").then(e=>e.PriceRoutingModule),canActivate:[g,u],data:{title:"Price",roles:[l.PriceView],redirectUrl:"/menu/Order"}},{path:"order",loadChildren:()=>import("./chunk-B6F5PDL5.js").then(e=>e.routes),canActivate:[g],data:{title:"Order"}},{path:"sync-log",loadChildren:()=>import("./chunk-7DT7FQ2T.js").then(e=>e.ReportModule),canActivate:[g,u],data:{title:"Report",roles:[l.Report],redirectUrl:"/menu/Logistic"}},{path:"Logistic",loadChildren:()=>import("./chunk-3K2EKA5O.js").then(e=>e.LogisticModule),canActivate:[g,u],data:{title:"Logistic",roles:[l.LogisticView],redirectUrl:"/menu/channel"}},{path:"channel",loadChildren:()=>import("./chunk-PLLHTY6O.js").then(e=>e.ChannelsModule),canActivate:[g,u],data:{title:"Marketplace",roles:[l.ChannelView],redirectUrl:"/menu/log"}},{path:"log",loadChildren:()=>import("./chunk-DH5CXAEM.js").then(e=>e.LogsModule),canActivate:[g,u],data:{title:"Orders",roles:[l.DevView]}},{path:"users",loadChildren:()=>import("./chunk-GURSK3ZV.js").then(e=>e.userRoutes),canActivate:[g,u],data:{title:"Users",roles:[l.UserView],redirectUrl:"/menu/dashboard"}},{path:"json-api",loadChildren:()=>import("./chunk-CLQGGKN6.js").then(e=>e.routes),canActivate:[g],data:{title:"Json API"}}]}],et=(()=>{let t=class t{};t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=b({type:t}),t.\u0275inj=_({imports:[G.forChild(bt),G]});let e=t;return e})();var Ct=["selectId"];function vt(e,t){if(e&1&&(r(0,"span",3),p(1),s()),e&2){let i=t.item,n=m();f("title",i[n.bindLabel]),d(),y(i[n.bindLabel])}}var tt=(()=>{let t=class t{set items(n){this.ngSelectInfiniteScroll.data=n,this.ngSelectInfiniteScroll.initSelectedValue(this.selected,this.bindValue)}get selected(){return this._selected}set selected(n){this._selected=n,this.ngSelectInfiniteScroll.initSelectedValue(this.selected,this.bindValue)}constructor(){this.placeholder="",this.bindValue="",this.bindLabel="",this.width="100%",this.clearable=!0,this.parent="body",this.disabled=!1,this.optionTitle=!1,this._selected="",this.ngSelectInfiniteScroll=new J,this.selectedChange=new k,this.selectedLabel=new k,this.onOpen=new k}onOpenSelect(){this.onOpen.emit()}onSelectChange(n){n?(this.selectedChange.emit(n[this.bindValue]),this.selectedLabel.emit(n[this.bindLabel])):(this.selectedChange.emit(null),this.selectedLabel.emit(null))}};t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=v({type:t,selectors:[["ng-select-infinite"]],viewQuery:function(a,o){if(a&1&&ce(Ct,7),a&2){let h;me(h=pe())&&(o.ngSelectElement=h.first)}},inputs:{placeholder:"placeholder",bindValue:"bindValue",bindLabel:"bindLabel",width:"width",clearable:"clearable",parent:"parent",disabled:"disabled",optionTitle:"optionTitle",items:"items",selected:"selected"},outputs:{selectedChange:"selectedChange",selectedLabel:"selectedLabel",onOpen:"onOpen"},decls:3,vars:12,consts:[["selectId",""],[3,"clear","scrollToEnd","open","change","appendTo","disabled","virtualScroll","typeahead","items","bindLabel","bindValue","placeholder","ngModel","clearable"],["ng-option-tmp",""],[3,"title"]],template:function(a,o){if(a&1){let h=de();r(0,"ng-select",1,0),I("clear",function(){return M(h),x(o.ngSelectInfiniteScroll.onClear())})("scrollToEnd",function(){return M(h),x(o.ngSelectInfiniteScroll.onScrollToEnd())})("open",function(){return M(h),x(o.onOpenSelect())})("change",function(nt){return M(h),x(o.onSelectChange(nt))}),S(2,vt,2,2,"ng-template",2),s()}a&2&&(ge("width",o.width),f("appendTo",o.parent)("disabled",o.disabled)("virtualScroll",!0)("typeahead",o.ngSelectInfiniteScroll.input$)("items",o.ngSelectInfiniteScroll.bufferData)("bindLabel",o.bindLabel)("bindValue",o.bindValue)("placeholder",o.placeholder)("ngModel",o.selected)("clearable",o.clearable))},dependencies:[A,Pe,De,L,ye,Me],encapsulation:2});let e=t;return e})(),J=class{constructor(){this._dataBuffer=[],this._data=[],this._input$=new F,this._destroy$=new F,this._loading=!1,this._bufferSize=50,this.data=[]}onSearch(){this._input$.pipe(Z(200),K(),P(t=>(t&&(t=t.toLowerCase()),this.filterData(t))),Q(t=>t!==void 0),Y(this._destroy$)).subscribe(t=>{this._dataBuffer=t.slice(0,this._bufferSize)})}onClear(){this._dataBuffer=this._data.slice(0,this._bufferSize)}filterData(t){let i=-1,n;return this._data.filter(o=>(n=JSON.stringify(o).toLowerCase(),i=n.indexOf(t),i!==-1||t==null))}get input$(){return this._input$}get bufferData(){return this._dataBuffer}get loading(){return this._loading}set data(t){this._data=t||[],this._dataBuffer=this._data.slice(0,this._bufferSize),this.onSearch()}initSelectedValue(t,i){if(Ee.IsNotEmpty(t)){let n=this._data.filter(a=>a[i].toString().toLowerCase().indexOf(t)!==-1);this._dataBuffer=n.slice(0,this._bufferSize)}}set bufferSize(t){this._bufferSize=t}onScrollToEnd(){this.fetchMore()}fetchMore(){let t=this._dataBuffer.length,i=this._data.slice(t,this._bufferSize+t);this._loading=!0,setTimeout(()=>{this._loading=!1,this._dataBuffer=this._dataBuffer.concat(i)},200)}destroy(){this._destroy$.next(!0),this._destroy$.complete()}};var it=(()=>{let t=class t{};t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=b({type:t}),t.\u0275inj=_({imports:[B,L,$e,We,Je,Ge,qe,Qe,N,q,tt,A,xe]});let e=t;return e})();var bn=(()=>{let t=class t{};t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=b({type:t}),t.\u0275inj=_({providers:[ue],imports:[B,et,He,N,it,Ye,Ie.forChild()]});let e=t;return e})();export{bn as MenuModule};
1
+ import"./chunk-E6ZWL77N.js";import"./chunk-O4EO3YBL.js";import{a as je}from"./chunk-M5M7T3E4.js";import"./chunk-4VNQYYVV.js";import{b as qe}from"./chunk-ZKIO2ZQ6.js";import{a as g}from"./chunk-DZPJWQHG.js";import"./chunk-ZTHO6JJM.js";import"./chunk-SHUYFOQI.js";import"./chunk-GG3MDS4C.js";import{b as Qe}from"./chunk-O2YF5VGD.js";import{b as Je}from"./chunk-QFSA7CU4.js";import"./chunk-OPXITNRF.js";import{c as We}from"./chunk-5BSPSA4O.js";import"./chunk-FULVA6QB.js";import"./chunk-HPINZVE4.js";import"./chunk-D2J64VUP.js";import"./chunk-6Q6L5NUD.js";import"./chunk-C7N6EI73.js";import"./chunk-GPHNPV7O.js";import"./chunk-3RK6DDJD.js";import{a as Ge}from"./chunk-4YCSITNV.js";import"./chunk-WHHW4IZT.js";import{a as l}from"./chunk-ZSUWHVKX.js";import"./chunk-N5AE5WMQ.js";import{b as ze}from"./chunk-UDM6UTHY.js";import{a as De,d as Pe,e as A}from"./chunk-6KWG6O5L.js";import{a as Ee}from"./chunk-A6QXXKPR.js";import{b as Se,i as Oe}from"./chunk-CS6LKY4V.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-AGBJEXIM.js";import"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import"./chunk-JBEKD57G.js";import{a as ke,h as $e,k as q,n as He}from"./chunk-EDEZ3JLR.js";import{A as L,B as xe,h as ye,m as Me}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import{a as we,b as Te,c as Ie}from"./chunk-ZETUYNFJ.js";import{v as Fe,w as N}from"./chunk-STYL7ETF.js";import{D as Ne,E as Ve,J as Re,N as Ue,O as W,v as Be,w as Le,z as Ae}from"./chunk-XLIPGDSC.js";import{E as _e,F as be,G as Ce,H as ve,I as G,c as he,i as fe,j as ue,m as B}from"./chunk-LNJUGHOX.js";import{$b as w,Bc as ce,Ca as X,Cc as me,Dc as pe,Fd as z,G as Q,Gb as v,Hb as b,Ib as ae,Ic as ge,Jc as E,Lc as $,M as Z,Mb as S,Mc as p,Nc as y,Oc as O,Q as K,Qa as ee,ac as oe,bc as T,ca as Y,dc as re,ec as le,f as F,fc as se,gc as f,hc as r,hd as j,ic as s,id as H,jc as C,lb as te,na as _,nb as d,qc as de,ra as c,sb as k,tb as ie,v as P,vc as I,xa as M,xc as m,ya as x,yb as ne}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import{i as U}from"./chunk-66YHNWRR.js";var V=class{constructor(){this.menus=[{Icon:"fa-solid fa-chart-pie",Title:"Dashboard",Url:"/menu/dashboard",Roles:[l.DashboardView]},{Icon:"fas fa-tag",Title:"Products",Url:"/menu/products",Roles:[l.ProductView]},{Icon:"fas fa-archive",Title:"Inventory",Url:"/menu/inventory",Roles:[l.InventoryView]},{Icon:"fas fa-money-bill-alt",Title:"Price",Url:"/menu/price",Roles:[l.PriceView]},{Icon:"fas fa-shopping-cart",Title:"Order",Url:"/menu/order",Roles:[l.OrderView]},{Icon:"fas fa-cog",Title:"Channel",Url:"/menu/channel",Roles:[l.ChannelView]},{Icon:"fa-solid fa-user",Title:"Users",Url:"/menu/users",Roles:[l.UserView]},{Icon:"fas fa-clipboard-list",Title:"Sync Logs",Url:"/menu/sync-log",Roles:[l.Report]},{Icon:"fas fa-dolly",Title:"Logistic",Url:"/menu/Logistic",Roles:[l.LogisticView]},{Icon:"fas fa-file-alt",Title:"Developer",Url:"/menu/log",Roles:[l.DevView]},{Icon:"fa-solid fa-file-brackets-curly",Title:"JSON Api",Url:"/menu/json-api",Roles:[l.JsonApiView]}]}get getMenu(){return this.menus}};var Ze="mat-badge-content",at=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275cmp=v({type:e,selectors:[["ng-component"]],decls:0,vars:0,template:function(n,a){},styles:[`.mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-content{position:absolute;text-align:center;display:inline-block;transition:transform 200ms ease-in-out;transform:scale(0.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;pointer-events:none;background-color:var(--mat-badge-background-color, var(--mat-sys-error));color:var(--mat-badge-text-color, var(--mat-sys-on-error));font-family:var(--mat-badge-text-font, var(--mat-sys-label-small-font));font-weight:var(--mat-badge-text-weight, var(--mat-sys-label-small-weight));border-radius:var(--mat-badge-container-shape, var(--mat-sys-corner-full))}.mat-badge-above .mat-badge-content{bottom:100%}.mat-badge-below .mat-badge-content{top:100%}.mat-badge-before .mat-badge-content{right:100%}[dir=rtl] .mat-badge-before .mat-badge-content{right:auto;left:100%}.mat-badge-after .mat-badge-content{left:100%}[dir=rtl] .mat-badge-after .mat-badge-content{left:auto;right:100%}@media(forced-colors: active){.mat-badge-content{outline:solid 1px;border-radius:0}}.mat-badge-disabled .mat-badge-content{background-color:var(--mat-badge-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-error) 38%, transparent));color:var(--mat-badge-disabled-state-text-color, var(--mat-sys-on-error))}.mat-badge-hidden .mat-badge-content{display:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:var(--mat-badge-legacy-small-size-container-size, unset);height:var(--mat-badge-legacy-small-size-container-size, unset);min-width:var(--mat-badge-small-size-container-size, 6px);min-height:var(--mat-badge-small-size-container-size, 6px);line-height:var(--mat-badge-small-size-line-height, 6px);padding:var(--mat-badge-small-size-container-padding, 0);font-size:var(--mat-badge-small-size-text-size, 0);margin:var(--mat-badge-small-size-container-offset, -6px 0)}.mat-badge-small.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-small-size-container-overlap-offset, -6px)}.mat-badge-medium .mat-badge-content{width:var(--mat-badge-legacy-container-size, unset);height:var(--mat-badge-legacy-container-size, unset);min-width:var(--mat-badge-container-size, 16px);min-height:var(--mat-badge-container-size, 16px);line-height:var(--mat-badge-line-height, 16px);padding:var(--mat-badge-container-padding, 0 4px);font-size:var(--mat-badge-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-container-offset, -12px 0)}.mat-badge-medium.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-container-overlap-offset, -12px)}.mat-badge-large .mat-badge-content{width:var(--mat-badge-legacy-large-size-container-size, unset);height:var(--mat-badge-legacy-large-size-container-size, unset);min-width:var(--mat-badge-large-size-container-size, 16px);min-height:var(--mat-badge-large-size-container-size, 16px);line-height:var(--mat-badge-large-size-line-height, 16px);padding:var(--mat-badge-large-size-container-padding, 0 4px);font-size:var(--mat-badge-large-size-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-large-size-container-offset, -12px 0)}.mat-badge-large.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-large-size-container-overlap-offset, -12px)}
2
+ `],encapsulation:2,changeDetection:0})}return e})(),Ke=(()=>{class e{_ngZone=c(ie);_elementRef=c(ee);_ariaDescriber=c(Re);_renderer=c(ne);_animationsDisabled=Ue();_idGenerator=c(Ve);get color(){return this._color}set color(i){this._setColor(i),this._color=i}_color="primary";overlap=!0;disabled;position="above after";get content(){return this._content}set content(i){this._updateRenderedContent(i)}_content;get description(){return this._description}set description(i){this._updateDescription(i)}_description;size="medium";hidden;_badgeElement;_inlineBadgeDescription;_isInitialized=!1;_interactivityChecker=c(Ae);_document=c(X);constructor(){let i=c(Be);i.load(at),i.load(Le)}isAbove(){return this.position.indexOf("below")===-1}isAfter(){return this.position.indexOf("before")===-1}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&(this._renderer.destroyNode(this._badgeElement),this._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})}_createBadgeElement(){let i=this._renderer.createElement("span"),n="mat-badge-active";return i.setAttribute("id",this._idGenerator.getId("mat-badge-content-")),i.setAttribute("aria-hidden","true"),i.classList.add(Ze),this._animationsDisabled&&i.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(i),typeof requestAnimationFrame=="function"&&!this._animationsDisabled?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{i.classList.add(n)})}):i.classList.add(n),i}_updateRenderedContent(i){let n=`${i??""}`.trim();this._isInitialized&&n&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=n),this._content=n}_updateDescription(i){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!i||this._isHostInteractive())&&this._removeInlineDescription(),this._description=i,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,i):this._updateInlineDescription()}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden")),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription)}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0}_setColor(i){let n=this._elementRef.nativeElement.classList;n.remove(`mat-badge-${this._color}`),i&&n.add(`mat-badge-${i}`)}_clearExistingBadges(){let i=this._elementRef.nativeElement.querySelectorAll(`:scope > .${Ze}`);for(let n of Array.from(i))n!==this._badgeElement&&n.remove()}static \u0275fac=function(n){return new(n||e)};static \u0275dir=ae({type:e,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(n,a){n&2&&E("mat-badge-overlap",a.overlap)("mat-badge-above",a.isAbove())("mat-badge-below",!a.isAbove())("mat-badge-before",!a.isAfter())("mat-badge-after",a.isAfter())("mat-badge-small",a.size==="small")("mat-badge-medium",a.size==="medium")("mat-badge-large",a.size==="large")("mat-badge-hidden",a.hidden||!a.content)("mat-badge-disabled",a.disabled)},inputs:{color:[0,"matBadgeColor","color"],overlap:[2,"matBadgeOverlap","overlap",z],disabled:[2,"matBadgeDisabled","disabled",z],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",z]}})}return e})(),Ye=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=b({type:e});static \u0275inj=_({imports:[Ne,W,W]})}return e})();function rt(e,t){if(e&1&&(r(0,"p",21),p(1),s()),e&2){let i=m(3).$implicit;d(),O(" ",i.Title," ")}}function lt(e,t){if(e&1&&(r(0,"p"),p(1),s()),e&2){let i=m(3).$implicit;d(),y(i.Title)}}function st(e,t){if(e&1&&(r(0,"a",18),C(1,"i"),w(2,rt,2,1,"p",21)(3,lt,2,1,"p"),s()),e&2){let i=m(2).$implicit;f("href",i.Url,te),d(),$(i.Icon),d(),T(i.Badge?2:3)}}function dt(e,t){if(e&1&&S(0,st,4,4,"a",20),e&2){let i=m().$implicit;f("ngxPermissionsOnly",i.Roles)}}function ct(e,t){if(e&1&&(r(0,"p",21),p(1),s()),e&2){let i=m(4).$implicit;d(),O(" ",i.Title," ")}}function mt(e,t){if(e&1&&(r(0,"p"),p(1),s()),e&2){let i=m(4).$implicit;d(),y(i.Title)}}function pt(e,t){if(e&1&&(w(0,ct,2,1,"p",21),j(1,"async"),oe(2,mt,2,1,"p")),e&2){let i=m(4);T(H(1,1,i.notifications$)!=0?0:2)}}function gt(e,t){if(e&1&&(r(0,"p"),p(1),s()),e&2){let i=m(3).$implicit;d(),y(i.Title)}}function ht(e,t){if(e&1&&(r(0,"a",19),C(1,"i"),w(2,pt,3,3)(3,gt,2,1,"p"),s()),e&2){let i=m(2).$implicit,n=m();f("matTooltip",n.isCollapseSidebar?i.Title:"")("routerLink",i.Url),d(),$(i.Icon),d(),T(i.Badge?2:3)}}function ft(e,t){if(e&1&&S(0,ht,4,5,"a",22),e&2){let i=m().$implicit;f("ngxPermissionsOnly",i.Roles)}}function ut(e,t){if(e&1&&(r(0,"li",16),w(1,dt,1,1,"a",18)(2,ft,1,1,"a",19),s()),e&2){let i=t.$implicit;d(),T(i.ExternalLink?1:2)}}var Xe=(()=>{let t=class t{constructor(){this.toggleSidebarService=c(ke),this.notificationService=c(ze),this.decodeTokenService=c(Se),this.authService=c(Oe),this.Menu={};let n=this.decodeTokenService;this.isCollapseSidebar=!1,this.token=n.getParseToken(),this.storeName=this.token.StoreName,this.Menu=new V().getMenu,this.toggleState$=this.toggleSidebarService.toggleState$}ngOnInit(){this.initNotifications()}initNotifications(){this.notifications$=this.notificationService.getNotification().pipe(P(n=>n.length))}onLogout(){this.authService.logout()}onCallapseSidebar(){this.isCollapseSidebar=!this.isCollapseSidebar,this.storeName=this.token.StoreName,this.isCollapseSidebar&&(this.storeName=this.getInitialTitle(this.token.StoreName))}getInitialTitle(n){if(n){let a,o=n.split(" ");return o.length==1?a=o[0].substring(0,2):a=o.shift().charAt(0)+o.pop().charAt(0),a}}};t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=v({type:t,selectors:[["app-menu"]],standalone:!1,decls:29,vars:8,consts:[[1,"wrapper"],["data-color","green",1,"sidebar",3,"ngClass"],[1,"btn-minimize","d-md-block","d-none","p-0","border-0","bg-white",3,"click"],[1,"fas","cursor",3,"ngClass"],[1,"logo"],[1,"navbar","dropdown","bg-transparent","border-0"],["data-bs-toggle","dropdown","aria-expanded","false",1,"simple-text","text-start","dropdown-toggle","d-flex","align-items-center","justify-content-center","cursor-pointer"],[1,"dropdown-menu"],[1,"dropdown-header","text-dark","border-bottom"],[1,"divider","m-0"],["routerLink","/menu/profile",1,"dropdown-item","h5",2,"cursor","pointer"],["aria-hidden","true",1,"fa-user","fas"],[1,"dropdown-item","h5",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fas","fa-sign-out-alt"],[1,"sidebar-wrapper"],[1,"nav"],["routerLinkActive","active"],[1,"main-panel"],["target","_blank",1,"nav-link","position-relative","d-block","changelog",3,"href"],["matTooltipPosition","right",1,"nav-link","position-relative","d-block",3,"matTooltip","routerLink"],["class","nav-link position-relative d-block changelog","target","_blank",3,"href",4,"ngxPermissionsOnly"],["matBadge","!","matBadgeColor","warn","matBadgeSize","small",1,"shake-animation"],["class","nav-link position-relative d-block","matTooltipPosition","right",3,"matTooltip","routerLink",4,"ngxPermissionsOnly"]],template:function(a,o){a&1&&(r(0,"div",0),j(1,"async"),r(2,"div",1)(3,"button",2),I("click",function(){return o.onCallapseSidebar()}),C(4,"i",3),s(),r(5,"div",4)(6,"div",5)(7,"a",6),p(8),s(),r(9,"div",7)(10,"div",8),p(11),s(),C(12,"div",9),r(13,"a",10),C(14,"i",11),p(15,"\xA0 "),r(16,"span"),p(17,"My Profile"),s()(),r(18,"a",12),I("click",function(){return o.onLogout()}),C(19,"i",13),p(20,"\xA0 "),r(21,"span"),p(22," Log Out"),s()()()()(),r(23,"div",14)(24,"ul",15),le(25,ut,3,1,"li",16,re),s()()(),r(27,"div",17),C(28,"router-outlet"),s()()),a&2&&(E("nav-open",H(1,6,o.toggleState$)),d(2),f("ngClass",o.isCollapseSidebar?"collapses":""),d(2),f("ngClass",o.isCollapseSidebar?"fa-angle-left":"fa-angle-right"),d(4),O(" ",o.storeName," "),d(3),O(" ",o.token==null?null:o.token.LID," "),d(14),se(o.Menu))},dependencies:[he,_e,Ce,ve,Fe,Ke,Te,fe],styles:["@media (max-width: 468px){.navbar[_ngcontent-%COMP%] .navbar-brand[_ngcontent-%COMP%]{white-space:nowrap;max-width:7em;overflow:hidden;text-overflow:ellipsis}}@media only screen and (min-width: 992px){.sidebar[_ngcontent-%COMP%]{z-index:1050!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{transition:all .3s}.sidebar[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%], .sidebar.collapses[_ngcontent-%COMP%] .sidebar-wrapper[_ngcontent-%COMP%]{width:70px;transition:all .3s}.sidebar.collapses[_ngcontent-%COMP%] .logo[_ngcontent-%COMP%] .simple-text[_ngcontent-%COMP%]{background-color:#ffffff3b;border-radius:20px;height:40px;width:40px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important;height:50px;text-align:center;margin:10px}.sidebar.collapses[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{display:none}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%]{padding-left:70px}.sidebar.collapses[_ngcontent-%COMP%] + .main-panel[_ngcontent-%COMP%] .navbar.fixed-top[_ngcontent-%COMP%]{left:70px!important;transition:all .3s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]{position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%] .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1;background-color:#fff;position:absolute;top:17px;right:-20px;z-index:7;-webkit-transform:rotate(180deg);-ms-transform:rotate(180deg);transform:rotate(180deg);border:0;border-radius:50%;box-shadow:0 0 0 1px #091e4214,0 2px 4px 1px #091e4214;color:#000;cursor:pointer;height:24px;opacity:0;outline:0;padding:0;width:24px;-webkit-transform-origin:7px;-ms-transform-origin:7px;transform-origin:7px;transition:opacity .5s;-webkit-transition:opacity .5s}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{cursor:pointer}.sidebar[_ngcontent-%COMP%]:hover .btn-minimize[_ngcontent-%COMP%]:hover{color:#2996cc}.sidebar[_ngcontent-%COMP%]:hover:hover .btn-minimize[_ngcontent-%COMP%]{opacity:1}.full-container[_ngcontent-%COMP%]{padding-top:0!important}} p.shake-animation.mat-badge>span.mat-badge-content{animation:_ngcontent-%COMP%_shake-animation 4.72s ease infinite;font-size:12px;transform-origin:50% 50%;right:-14px!important}@keyframes _ngcontent-%COMP%_shake-animation{0%{transform:translate(0)}1.78571%{transform:translate(5px)}3.57143%{transform:translate(0)}5.35714%{transform:translate(5px)}7.14286%{transform:translate(0)}8.92857%{transform:translate(5px)}10.71429%{transform:translate(0)}to{transform:translate(0)}} .changelog:visited p.shake-animation.mat-badge>span.mat-badge-content{color:#77c425;background-color:#77c425;z-index:-1}@media print{.main-panel[_ngcontent-%COMP%]{padding:0!important}}"]});let e=t;return e})();var u=(e,t)=>U(null,null,function*(){let i=c(we),n=c(be),a=e.data?.roles||[],o=e.data?.redirectUrl||"/";return a.length===0||(yield _t(i,a))?!0:(n.navigate([o]),!1)});function _t(e,t){return U(this,null,function*(){let i=t.map(a=>e.hasPermission(a));return(yield Promise.all(i)).some(a=>a)})}var bt=[{path:"",component:Xe,children:[{path:"",redirectTo:"dashboard",pathMatch:"full"},{path:"profile",loadChildren:()=>import("./chunk-BXYXVBXP.js").then(e=>e.routes),canActivate:[g],data:{title:"My Profile"}},{path:"dashboard",loadChildren:()=>import("./chunk-7GY4O2UX.js").then(e=>e.DashboardModule),canActivate:[g,u,je],data:{title:"Dashboard",roles:[l.DashboardView],redirectUrl:"/menu/products"}},{path:"products",loadChildren:()=>import("./chunk-2C2HFRNV.js").then(e=>e.ProductModule),canActivate:[g,u],data:{title:"Products",roles:[l.ProductView],redirectUrl:"/menu/inventory"}},{path:"inventory",loadChildren:()=>import("./chunk-2VA22SO6.js").then(e=>e.InventoryRoutingModule),canActivate:[g,u],data:{title:"Inventory",roles:[l.InventoryView],redirectUrl:"/menu/price"}},{path:"price",loadChildren:()=>import("./chunk-GUL2XBWQ.js").then(e=>e.PriceRoutingModule),canActivate:[g,u],data:{title:"Price",roles:[l.PriceView],redirectUrl:"/menu/Order"}},{path:"order",loadChildren:()=>import("./chunk-222XXOAY.js").then(e=>e.routes),canActivate:[g],data:{title:"Order"}},{path:"sync-log",loadChildren:()=>import("./chunk-2NVWRVFF.js").then(e=>e.ReportModule),canActivate:[g,u],data:{title:"Report",roles:[l.Report],redirectUrl:"/menu/Logistic"}},{path:"Logistic",loadChildren:()=>import("./chunk-RLSTZSKZ.js").then(e=>e.LogisticModule),canActivate:[g,u],data:{title:"Logistic",roles:[l.LogisticView],redirectUrl:"/menu/channel"}},{path:"channel",loadChildren:()=>import("./chunk-4M33AWDZ.js").then(e=>e.ChannelsModule),canActivate:[g,u],data:{title:"Marketplace",roles:[l.ChannelView],redirectUrl:"/menu/log"}},{path:"log",loadChildren:()=>import("./chunk-5AODAALH.js").then(e=>e.LogsModule),canActivate:[g,u],data:{title:"Orders",roles:[l.DevView]}},{path:"users",loadChildren:()=>import("./chunk-GURSK3ZV.js").then(e=>e.userRoutes),canActivate:[g,u],data:{title:"Users",roles:[l.UserView],redirectUrl:"/menu/dashboard"}},{path:"json-api",loadChildren:()=>import("./chunk-NRMQVYZ5.js").then(e=>e.routes),canActivate:[g],data:{title:"Json API"}}]}],et=(()=>{let t=class t{};t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=b({type:t}),t.\u0275inj=_({imports:[G.forChild(bt),G]});let e=t;return e})();var Ct=["selectId"];function vt(e,t){if(e&1&&(r(0,"span",3),p(1),s()),e&2){let i=t.item,n=m();f("title",i[n.bindLabel]),d(),y(i[n.bindLabel])}}var tt=(()=>{let t=class t{set items(n){this.ngSelectInfiniteScroll.data=n,this.ngSelectInfiniteScroll.initSelectedValue(this.selected,this.bindValue)}get selected(){return this._selected}set selected(n){this._selected=n,this.ngSelectInfiniteScroll.initSelectedValue(this.selected,this.bindValue)}constructor(){this.placeholder="",this.bindValue="",this.bindLabel="",this.width="100%",this.clearable=!0,this.parent="body",this.disabled=!1,this.optionTitle=!1,this._selected="",this.ngSelectInfiniteScroll=new J,this.selectedChange=new k,this.selectedLabel=new k,this.onOpen=new k}onOpenSelect(){this.onOpen.emit()}onSelectChange(n){n?(this.selectedChange.emit(n[this.bindValue]),this.selectedLabel.emit(n[this.bindLabel])):(this.selectedChange.emit(null),this.selectedLabel.emit(null))}};t.\u0275fac=function(a){return new(a||t)},t.\u0275cmp=v({type:t,selectors:[["ng-select-infinite"]],viewQuery:function(a,o){if(a&1&&ce(Ct,7),a&2){let h;me(h=pe())&&(o.ngSelectElement=h.first)}},inputs:{placeholder:"placeholder",bindValue:"bindValue",bindLabel:"bindLabel",width:"width",clearable:"clearable",parent:"parent",disabled:"disabled",optionTitle:"optionTitle",items:"items",selected:"selected"},outputs:{selectedChange:"selectedChange",selectedLabel:"selectedLabel",onOpen:"onOpen"},decls:3,vars:12,consts:[["selectId",""],[3,"clear","scrollToEnd","open","change","appendTo","disabled","virtualScroll","typeahead","items","bindLabel","bindValue","placeholder","ngModel","clearable"],["ng-option-tmp",""],[3,"title"]],template:function(a,o){if(a&1){let h=de();r(0,"ng-select",1,0),I("clear",function(){return M(h),x(o.ngSelectInfiniteScroll.onClear())})("scrollToEnd",function(){return M(h),x(o.ngSelectInfiniteScroll.onScrollToEnd())})("open",function(){return M(h),x(o.onOpenSelect())})("change",function(nt){return M(h),x(o.onSelectChange(nt))}),S(2,vt,2,2,"ng-template",2),s()}a&2&&(ge("width",o.width),f("appendTo",o.parent)("disabled",o.disabled)("virtualScroll",!0)("typeahead",o.ngSelectInfiniteScroll.input$)("items",o.ngSelectInfiniteScroll.bufferData)("bindLabel",o.bindLabel)("bindValue",o.bindValue)("placeholder",o.placeholder)("ngModel",o.selected)("clearable",o.clearable))},dependencies:[A,Pe,De,L,ye,Me],encapsulation:2});let e=t;return e})(),J=class{constructor(){this._dataBuffer=[],this._data=[],this._input$=new F,this._destroy$=new F,this._loading=!1,this._bufferSize=50,this.data=[]}onSearch(){this._input$.pipe(Z(200),K(),P(t=>(t&&(t=t.toLowerCase()),this.filterData(t))),Q(t=>t!==void 0),Y(this._destroy$)).subscribe(t=>{this._dataBuffer=t.slice(0,this._bufferSize)})}onClear(){this._dataBuffer=this._data.slice(0,this._bufferSize)}filterData(t){let i=-1,n;return this._data.filter(o=>(n=JSON.stringify(o).toLowerCase(),i=n.indexOf(t),i!==-1||t==null))}get input$(){return this._input$}get bufferData(){return this._dataBuffer}get loading(){return this._loading}set data(t){this._data=t||[],this._dataBuffer=this._data.slice(0,this._bufferSize),this.onSearch()}initSelectedValue(t,i){if(Ee.IsNotEmpty(t)){let n=this._data.filter(a=>a[i].toString().toLowerCase().indexOf(t)!==-1);this._dataBuffer=n.slice(0,this._bufferSize)}}set bufferSize(t){this._bufferSize=t}onScrollToEnd(){this.fetchMore()}fetchMore(){let t=this._dataBuffer.length,i=this._data.slice(t,this._bufferSize+t);this._loading=!0,setTimeout(()=>{this._loading=!1,this._dataBuffer=this._dataBuffer.concat(i)},200)}destroy(){this._destroy$.next(!0),this._destroy$.complete()}};var it=(()=>{let t=class t{};t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=b({type:t}),t.\u0275inj=_({imports:[B,L,$e,We,Je,Ge,qe,Qe,N,q,tt,A,xe]});let e=t;return e})();var bn=(()=>{let t=class t{};t.\u0275fac=function(a){return new(a||t)},t.\u0275mod=b({type:t}),t.\u0275inj=_({providers:[ue],imports:[B,et,He,N,it,Ye,Ie.forChild()]});let e=t;return e})();export{bn as MenuModule};
@@ -1 +1 @@
1
- import{a as r}from"./chunk-UCEZJNIL.js";import{a as C,b as v}from"./chunk-A7PUMY67.js";import"./chunk-I723PUUO.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-AGBJEXIM.js";import"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import"./chunk-JBEKD57G.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{E as h,I as o,m as f}from"./chunk-LNJUGHOX.js";import{Gb as l,Hb as c,gc as s,hc as d,ic as u,jc as i,na as p,nb as m}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var b=(()=>{let e=class e{constructor(){this.priceTabs=[{Title:"Single Channel Comparison",Url:"/menu/price/SingleChannel"},{Title:"Multi Channel Comparison",Url:"/menu/price/pos"}]}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=l({type:e,selectors:[["app-price"]],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(n,g){n&1&&(d(0,"nav",0)(1,"div",1)(2,"div"),i(3,"nav-tab",2),u()()(),i(4,"router-outlet")),n&2&&(m(3),s("Tabs",g.priceTabs))},dependencies:[v,C,o,h],encapsulation:2});let t=e;return t})();var M=[{path:"",component:b,children:[{path:"",redirectTo:"SingleChannel",pathMatch:"full"},{path:"pos",loadComponent(){return import("./chunk-GX6JPDQ5.js").then(t=>t.PricePosChannelComponent)},canActivate:[r],data:{title:"Global Price Comparison"}},{path:"SingleChannel",loadComponent(){return import("./chunk-5CHTDUME.js").then(t=>t.PriceSingleChannelComponent)},canActivate:[r],data:{title:"Price Single Channel Comparison"}}]}],F=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=c({type:e}),e.\u0275inj=p({imports:[f,o.forChild(M)]});let t=e;return t})();export{F as PriceRoutingModule};
1
+ import{a as r}from"./chunk-DZPJWQHG.js";import{a as C,b as v}from"./chunk-A7PUMY67.js";import"./chunk-CS6LKY4V.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-AGBJEXIM.js";import"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import"./chunk-JBEKD57G.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{E as h,I as o,m as f}from"./chunk-LNJUGHOX.js";import{Gb as l,Hb as c,gc as s,hc as d,ic as u,jc as i,na as p,nb as m}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import"./chunk-66YHNWRR.js";var b=(()=>{let e=class e{constructor(){this.priceTabs=[{Title:"Single Channel Comparison",Url:"/menu/price/SingleChannel"},{Title:"Multi Channel Comparison",Url:"/menu/price/pos"}]}};e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=l({type:e,selectors:[["app-price"]],decls:5,vars:1,consts:[[1,"navbar","page-nav","navbar-default","py-0","navbar-expand-lg"],[1,"container-fluid"],[3,"Tabs"]],template:function(n,g){n&1&&(d(0,"nav",0)(1,"div",1)(2,"div"),i(3,"nav-tab",2),u()()(),i(4,"router-outlet")),n&2&&(m(3),s("Tabs",g.priceTabs))},dependencies:[v,C,o,h],encapsulation:2});let t=e;return t})();var M=[{path:"",component:b,children:[{path:"",redirectTo:"SingleChannel",pathMatch:"full"},{path:"pos",loadComponent(){return import("./chunk-X3VCSYP4.js").then(t=>t.PricePosChannelComponent)},canActivate:[r],data:{title:"Global Price Comparison"}},{path:"SingleChannel",loadComponent(){return import("./chunk-JPSDIHQS.js").then(t=>t.PriceSingleChannelComponent)},canActivate:[r],data:{title:"Price Single Channel Comparison"}}]}],F=(()=>{let e=class e{};e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=c({type:e}),e.\u0275inj=p({imports:[f,o.forChild(M)]});let t=e;return t})();export{F as PriceRoutingModule};
@@ -0,0 +1 @@
1
+ import{a as xe,b as Te}from"./chunk-L76NLJD7.js";import{a as Ce,b as Se,c as ye}from"./chunk-ILW6ZFFV.js";import{a as ve}from"./chunk-NVVJMZYV.js";import{a as N}from"./chunk-LO7NU25H.js";import{a as be}from"./chunk-S7CKRTJV.js";import"./chunk-EYT2YJGK.js";import"./chunk-RNWHARPK.js";import{a as fe}from"./chunk-7JQEF4XX.js";import"./chunk-AFIF6VRM.js";import"./chunk-ZW2TMVZP.js";import"./chunk-ZTHO6JJM.js";import"./chunk-SHUYFOQI.js";import"./chunk-FCEXPGTK.js";import"./chunk-QFSA7CU4.js";import"./chunk-OPXITNRF.js";import"./chunk-HPINZVE4.js";import"./chunk-D2J64VUP.js";import"./chunk-6Q6L5NUD.js";import"./chunk-C7N6EI73.js";import"./chunk-GPHNPV7O.js";import"./chunk-3RK6DDJD.js";import"./chunk-4YCSITNV.js";import"./chunk-WHHW4IZT.js";import"./chunk-N5AE5WMQ.js";import"./chunk-6OJQRHIZ.js";import"./chunk-6KWG6O5L.js";import{a as ge}from"./chunk-K7L2HJWH.js";import"./chunk-3JRUKSV3.js";import"./chunk-SJ5MC42H.js";import"./chunk-4RLWHMI6.js";import"./chunk-NWB7EVME.js";import{a as he}from"./chunk-PDCVMSLL.js";import"./chunk-AFDI4TD4.js";import"./chunk-4RG5YR7N.js";import"./chunk-5MV3UFJQ.js";import"./chunk-E6AMKEQR.js";import"./chunk-IGKMJFKP.js";import"./chunk-ITGVXYDV.js";import"./chunk-HK5FXZE4.js";import"./chunk-KJE5GRQ4.js";import"./chunk-4ILDFTIG.js";import"./chunk-A6QXXKPR.js";import"./chunk-CS6LKY4V.js";import"./chunk-QXRG5XYP.js";import"./chunk-RXLMJGUY.js";import"./chunk-M4ZE35XK.js";import"./chunk-L7WZ6U4T.js";import"./chunk-LOWGZOML.js";import"./chunk-5PMKN6PM.js";import"./chunk-AGBJEXIM.js";import{b as me}from"./chunk-OXWPYJNB.js";import"./chunk-XBIHN6D3.js";import{b as de}from"./chunk-JBEKD57G.js";import{m as ue,n as _e}from"./chunk-EDEZ3JLR.js";import{A as se,b as ne,c as oe,h as re,m as le,o as ae}from"./chunk-L3W6SG2T.js";import"./chunk-YTHY4IFS.js";import"./chunk-ZETUYNFJ.js";import{v as pe,w as ce}from"./chunk-STYL7ETF.js";import"./chunk-XLIPGDSC.js";import{i as $,j as ee,l as te,m as ie}from"./chunk-LNJUGHOX.js";import{$b as v,$c as X,Bc as H,Cc as Q,Dc as j,Gb as D,Ha as P,Lc as q,Mc as d,Nc as w,Oc as M,Qc as C,Rc as S,Sc as y,Tc as U,Uc as G,Vc as F,Z as I,Zc as J,_c as K,bc as x,cc as B,ea as k,ec as A,fc as z,gc as f,hc as t,hd as V,ic as n,id as O,jc as h,jd as Y,lb as W,nb as a,od as Z,qc as T,ra as E,vc as g,xa as p,xc as u,ya as c}from"./chunk-ZYJ6LAJ3.js";import"./chunk-WFMAM73Y.js";import{a as R,b as L}from"./chunk-66YHNWRR.js";var we=["contextMenu"],Me=()=>[],Ve=l=>({"td-cell-hover":l});function Re(l,m){if(l&1){let e=T();t(0,"button",20),g("click",function(){p(e);let r=u();return c(r.setMultipleFulfillment())}),d(1," Set Fulfillment "),n()}}function Ee(l,m){if(l&1&&h(0,"variants-dropdown",38),l&2){let e=u().$implicit;f("variants",e==null?null:e.Variants)}}function Oe(l,m){if(l&1&&h(0,"variant-with-image",39),l&2){let e=u().$implicit;f("variant",e==null?null:e.Variants[0])}}function Pe(l,m){if(l&1&&(t(0,"span"),d(1),n()),l&2){let e=u().$implicit;a(),M("(",e.LogisticService==null?null:e.LogisticService.Option,")")}}function Fe(l,m){if(l&1){let e=T();t(0,"div",41)(1,"button",45),g("click",function(){p(e);let r=u().$implicit,o=u(2);return c(o.refreshShippingAndRefNumber(r))}),h(2,"i",46),n()()}}function Ne(l,m){if(l&1){let e=T();t(0,"button",47),g("click",function(){p(e);let r=u().$implicit,o=u(2);return c(o.onSetFulfillment(r))}),d(1," Set Fulfillment "),n()}}function Le(l,m){if(l&1){let e=T();t(0,"tr")(1,"td")(2,"input",30),y("ngModelChange",function(r){let o=p(e).$implicit;return S(o.selected,r)||(o.selected=r),c(r)}),g("ngModelChange",function(){p(e);let r=u(2),o=F(0);return c(r.onSelectOrder(o))}),n()(),t(3,"td")(4,"div",31),h(5,"img",32),V(6,"channelImage"),t(7,"div",33)(8,"div"),d(9),n(),t(10,"small",34)(11,"span"),d(12),n()()()()(),t(13,"td")(14,"div",35)(15,"div"),h(16,"order-link",36),n(),t(17,"small"),d(18),V(19,"date"),n(),h(20,"br"),t(21,"small"),h(22,"i",37),d(23),n()()(),t(24,"td"),v(25,Ee,1,1,"variants-dropdown",38)(26,Oe,1,1,"variant-with-image",39),n(),t(27,"td",40),d(28),V(29,"number"),n(),t(30,"td",41)(31,"div",42)(32,"div",35)(33,"div",43)(34,"span"),d(35),n(),v(36,Pe,2,1,"span"),n(),t(37,"small"),d(38),n()(),v(39,Fe,3,0,"div",41),n()(),t(40,"td",41),v(41,Ne,2,0,"button",44),n()()}if(l&2){let e=m.$implicit,i=u(2);a(2),C("ngModel",e.selected),f("disabled",i.selectedChannelType()!=null&&i.selectedChannelType()!=e.MarketType),a(3),f("src",O(6,18,e==null?null:e.MarketType),W)("alt",e==null||e.Variants[0]==null?null:e.Variants[0].Name),a(4),w(e.Outlet),a(3),w(e.ChannelName),a(4),f("order",e),a(2),M(" ",Y(19,20,e==null?null:e.Created,"dd/MM/yyyy HH:mm:ss")," "),a(5),M(" ",e.Customer," "),a(),q(X(25,Ve,(e.Variants==null?null:e.Variants.length)>1)),a(),x((e.Variants==null?null:e.Variants.length)>1?25:26),a(3),w(O(29,23,e.Amount)),a(7),w(e.LogisticService!=null&&e.LogisticService.Name?e.LogisticService==null?null:e.LogisticService.Name:"-"),a(),x(e.LogisticService!=null&&e.LogisticService.Option&&(e.LogisticService==null?null:e.LogisticService.Option)!="Default"?36:-1),a(2),M(" ",e.ReferenceNumber?e.ReferenceNumber:"-"," "),a(),x(!(e.LogisticService!=null&&e.LogisticService.Name)||!e.ReferenceNumber?39:-1),a(2),x((e==null?null:e.MarketType)!=i.channelType.WooCommerce?41:-1)}}function Ie(l,m){if(l&1){let e=T();t(0,"div",17)(1,"table",21)(2,"thead",22)(3,"tr",23),h(4,"th",24),t(5,"th",25),d(6,"Outlet"),n(),t(7,"th",25),d(8,"Number"),n(),t(9,"th"),d(10,"Items"),n(),t(11,"th",26),d(12,"Amount"),n(),t(13,"th",27),d(14,"Shipping"),n(),h(15,"th",28),n()(),t(16,"tbody"),A(17,Le,42,27,"tr",null,B),n()(),t(19,"app-custom-paginator",29),g("next",function(){p(e);let r=u();return c(r.initReadyToShip())})("previous",function(){p(e);let r=u();return c(r.initReadyToShip())}),n()()}if(l&2){let e=u(),i=F(0);a(17),z(i),a(2),f("filter",e.filter())("totaldata",i==null?null:i.length)}}function ke(l,m){l&1&&(t(0,"div",18),h(1,"app-empty-state"),n())}var mt=(()=>{let m=class m{constructor(){this.toastr=E(me),this.orderService=E(N),this.fulfillmentService=E(xe),this.channelType=de,this.selectedOrders=P([]),this.selectedChannelType=Z(()=>{let i=null;return this.selectedOrders().length>0&&(i=this.selectedOrders()[0].MarketType),i}),this.filter=P({PageNumber:1,PageSize:20,ListChannelID:[],From:null,To:null,Number:null}),this.contextMenuItems=[{id:"refresh",label:"Refresh Shipping",icon:"fa-solid fa-arrows-rotate"}]}ngOnInit(){this.orderService.getOrderDefaultValue().subscribe({next:i=>{this.initFromDate(i)},error:i=>{console.error("Error fetching default date:",i),this.initFromDate(null)}})}initFromDate(i){this.filter.update(r=>L(R({},r),{From:i})),this.initReadyToShip()}initReadyToShip(){this.readyToShip$=this.orderService.getReadyToShipOrders(this.filter()).pipe(k(()=>{this.selectedOrders.set([])}),I(1))}onFilterChange(i){this.filter.update(r=>R(R({},r),i))}onSetFulfillment(i){this.fulfillmentService.setFulfillmentOrder(i).subscribe(()=>{this.toastr.success("Fulfillment set successfully","Success"),this.initReadyToShip()})}refreshShippingAndRefNumber(i){this.orderService.refreshShippingCourier(i.ShopID,i.Number).subscribe(()=>{this.toastr.success("Shipping courier and reference number refreshed","Success"),this.initReadyToShip()})}setMultipleFulfillment(){this.fulfillmentService.setFulfillmentMultipleOrders(this.selectedOrders()).subscribe(()=>{this.toastr.success("Fulfillment set successfully","Success"),this.initReadyToShip()})}onSelectOrder(i){let r=i.filter(o=>o.selected);this.selectedOrders.set(r)}onMouseHover(i,r){(!r.LogisticService?.Name||!r.ReferenceNumber)&&this.contextMenuEl.show(i,r)}onSelectContextItem(i){i.item?.id==="refresh"&&this.refreshShippingAndRefNumber(i.data)}};m.\u0275fac=function(r){return new(r||m)},m.\u0275cmp=D({type:m,selectors:[["app-ready-to-ship"]],viewQuery:function(r,o){if(r&1&&H(we,5),r&2){let _;Q(_=j())&&(o.contextMenuEl=_.first)}},features:[J([N])],decls:37,vars:14,consts:[["contextMenu",""],["headerTitle","To Ship","searchBoxPlaceHolder","Order Number...",3,"onSubmit","textChange","text"],[1,"btn","btn-outline-secondary","shadow","rounded"],["href","https://ods.dealpos.app","target","_blank","matTooltip","Monitor your Order & Fulfillment in real-time from TV!",1,"btn","btn-outline-secondary","shadow","rounded","ms-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"],[3,"onSelectItem","items"],[1,"btn","btn-outline-secondary","shadow","rounded",3,"click"],[1,"table"],[1,"sticky-top-thead"],[1,"table-light"],[2,"width","5px"],[2,"width","200px"],[1,"text-end",2,"width","100px"],[2,"width","80px"],[2,"width","150px"],["rowCountApi","/api/orders/toshipcount",3,"next","previous","filter","totaldata"],["type","checkbox",3,"ngModelChange","ngModel","disabled"],[1,"d-flex","align-items-center","gap-3"],[2,"width","20px","height","20px",3,"src","alt"],[1,"lh-base"],[1,"d-flex","align-items-center","gap-2"],[1,"lh-sm"],[2,"font-size","14px",3,"order"],[1,"fa-solid","fa-user"],[3,"variants"],[3,"variant"],[1,"text-end"],[1,"actions-cell"],[1,"d-flex","align-items-center","gap-6"],[1,"d-flex","align-items-end","gap-2"],[1,"btn","btn-success","btn-sm",2,"--bs-btn-padding-y","0.25rem","--bs-btn-padding-x","0.5rem","--bs-btn-font-size","0.75rem"],["matTooltip","Retrieve shipping courier and reference number",1,"btn","btn-icon-only",3,"click"],[1,"fa-solid","fa-arrows-rotate","fs-6"],[1,"btn","btn-success","btn-sm",2,"--bs-btn-padding-y","0.25rem","--bs-btn-padding-x","0.5rem","--bs-btn-font-size","0.75rem",3,"click"]],template:function(r,o){if(r&1){let _=T();U(0),V(1,"async"),t(2,"mainpanel",1),g("onSubmit",function(){return p(_),c(o.initReadyToShip())}),y("textChange",function(s){return p(_),S(o.filter().Number,s)||(o.filter().Number=s),c(s)}),t(3,"actions"),v(4,Re,2,0,"button",2),t(5,"a",3),h(6,"i",4),t(7,"span"),d(8,"Order Fulfillment Display"),n()()(),t(9,"filters")(10,"div")(11,"label",5),d(12,"Channel"),n(),t(13,"app-channel-options-v2",6),y("ngModelChange",function(s){return p(_),S(o.filter().ListChannelID,s)||(o.filter().ListChannelID=s),c(s)}),n()(),t(14,"div",7)(15,"label",5),d(16,"From/To"),n(),t(17,"div",8)(18,"datepicker",9),y("dateChange",function(s){return p(_),S(o.filter().From,s)||(o.filter().From=s),c(s)}),n()(),t(19,"div")(20,"datepicker",10),y("dateChange",function(s){return p(_),S(o.filter().To,s)||(o.filter().To=s),c(s)}),n()()(),t(21,"div",7)(22,"label",11),d(23,"Page Number"),n(),t(24,"input",12),y("ngModelChange",function(s){return p(_),S(o.filter().PageNumber,s)||(o.filter().PageNumber=s),c(s)}),n()(),t(25,"div",7)(26,"label",11),d(27,"Page Size"),n(),t(28,"input",13),y("ngModelChange",function(s){return p(_),S(o.filter().PageSize,s)||(o.filter().PageSize=s),c(s)}),n()()(),t(29,"content")(30,"div",14)(31,"div",15)(32,"div",16),v(33,Ie,20,2,"div",17)(34,ke,2,0,"div",18),n()()()()(),t(35,"app-context-menu",19,0),g("onSelectItem",function(s){return p(_),c(o.onSelectContextItem(s))}),n()}if(r&2){let _=G(O(1,10,o.readyToShip$)||K(13,Me));a(2),C("text",o.filter().Number),a(2),x(o.selectedOrders().length>0?4:-1),a(9),f("multiple",!0),C("ngModel",o.filter().ListChannelID),a(5),C("date",o.filter().From),a(2),C("date",o.filter().To),a(4),C("ngModel",o.filter().PageNumber),a(4),C("ngModel",o.filter().PageSize),a(5),x(_.length>0?33:34),a(2),f("items",o.contextMenuItems)}},dependencies:[ie,_e,ue,fe,he,se,oe,ae,ne,re,le,Se,ye,be,ve,ce,pe,Te,ge,$,te,ee,Ce],styles:[".actions-cell[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]{opacity:0;visibility:hidden;transition:opacity .12s ease-in-out}tr[_ngcontent-%COMP%]:hover .actions-cell[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%], div[_ngcontent-%COMP%]:hover.actions-cell .btn[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%]:hover .btn[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%]:focus-within .btn[_ngcontent-%COMP%], .actions-cell[_ngcontent-%COMP%] .btn[_ngcontent-%COMP%]:focus{opacity:1;visibility:visible}"]});let l=m;return l})();export{mt as ReadyToShipComponent};