dealpos 25.46.1 → 25.46.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (114) hide show
  1. package/browser/{chunk-4JAEMXSQ.js → chunk-2E4N3RZU.js} +1 -1
  2. package/browser/{chunk-PGCDKIOX.js → chunk-374PEHK3.js} +1 -1
  3. package/browser/{chunk-V77HSR6D.js → chunk-3BRM3TED.js} +1 -1
  4. package/browser/chunk-3GPGJFQV.js +1 -0
  5. package/browser/{chunk-UF4JB7JY.js → chunk-3JKK7ROI.js} +1 -1
  6. package/browser/{chunk-IR7BRACV.js → chunk-475JSTPA.js} +1 -1
  7. package/browser/{chunk-LKMXVSXC.js → chunk-4ZWIQZYV.js} +8 -8
  8. package/browser/{chunk-2BOU7MZT.js → chunk-56D7QEFP.js} +1 -1
  9. package/browser/chunk-5TOXPQJI.js +16 -0
  10. package/browser/chunk-66MCBKC7.js +1 -0
  11. package/browser/{chunk-ZOP4QRJ5.js → chunk-6FM7DAHK.js} +1 -1
  12. package/browser/chunk-7QGORD2Z.js +2 -0
  13. package/browser/{chunk-5NDXC2Q2.js → chunk-B3JWFPWO.js} +1 -1
  14. package/browser/{chunk-YII66PEK.js → chunk-BLG3XERH.js} +1 -1
  15. package/browser/{chunk-JO2HRK4G.js → chunk-BR3Y2C2F.js} +1 -1
  16. package/browser/{chunk-HC2WTBU3.js → chunk-C56YPV2G.js} +2 -2
  17. package/browser/{chunk-PCBQ5MJX.js → chunk-CGISR53W.js} +1 -1
  18. package/browser/chunk-CLJWABT2.js +4 -0
  19. package/browser/{chunk-SUIJKKNU.js → chunk-CM7Z6YFA.js} +1 -1
  20. package/browser/{chunk-4PALKQ75.js → chunk-DGXQDOCM.js} +1 -1
  21. package/browser/{chunk-H6OK7AN4.js → chunk-DJAISUEF.js} +1 -1
  22. package/browser/chunk-DLNZDHGS.js +1 -0
  23. package/browser/{chunk-5KZDUBOJ.js → chunk-ED4WZKA6.js} +1 -1
  24. package/browser/{chunk-NCBSJKWK.js → chunk-EMJ7V5XH.js} +2 -2
  25. package/browser/{chunk-ZNSETEMV.js → chunk-F53OD5V2.js} +1 -1
  26. package/browser/{chunk-NORSMLUM.js → chunk-FNQCKGUC.js} +1 -1
  27. package/browser/{chunk-R4H3DENZ.js → chunk-FX72NG5O.js} +1 -1
  28. package/browser/{chunk-DX24F37F.js → chunk-GM6P3WGI.js} +1 -1
  29. package/browser/{chunk-QQS5ITUF.js → chunk-GMPJ72LI.js} +1 -1
  30. package/browser/{chunk-34YS4QAG.js → chunk-GNODCFOP.js} +1 -1
  31. package/browser/chunk-GSFXKVGZ.js +1 -0
  32. package/browser/{chunk-EWDEAX6M.js → chunk-HIOIFMAE.js} +1 -1
  33. package/browser/{chunk-6SFTCH6L.js → chunk-HLNB2PE4.js} +1 -1
  34. package/browser/{chunk-HZQHCXRX.js → chunk-HOBU2OAG.js} +1 -1
  35. package/browser/{chunk-FV5QAPSD.js → chunk-HYCJCA6A.js} +1 -1
  36. package/browser/{chunk-QCWVOQ4U.js → chunk-HYCSLDMX.js} +1 -1
  37. package/browser/chunk-IFOBYW26.js +1 -0
  38. package/browser/chunk-IGKZJP6R.js +1 -0
  39. package/browser/{chunk-JGVE3GME.js → chunk-IKA5TDNG.js} +1 -1
  40. package/browser/{chunk-MJMWJ6KM.js → chunk-ILIZ5NZH.js} +3 -3
  41. package/browser/{chunk-4UXONUIZ.js → chunk-IMST27WS.js} +1 -1
  42. package/browser/{chunk-DMQGQTA7.js → chunk-IRDKCXB2.js} +1 -1
  43. package/browser/{chunk-LKBRVKIZ.js → chunk-JT3HOWQH.js} +10 -10
  44. package/browser/{chunk-U5KSGGL5.js → chunk-JVFZL3LP.js} +1 -1
  45. package/browser/{chunk-QIHNG7HJ.js → chunk-KA4G654J.js} +1 -1
  46. package/browser/{chunk-FHI2YRID.js → chunk-KJLTTTEY.js} +1 -1
  47. package/browser/{chunk-3KHAUY4Q.js → chunk-KP7OGAMJ.js} +1 -1
  48. package/browser/{chunk-XNJI57TR.js → chunk-KPVGNOMG.js} +1 -1
  49. package/browser/{chunk-56HGOK5G.js → chunk-L424UWKA.js} +2 -2
  50. package/browser/{chunk-IMSP4CUG.js → chunk-L5GSB3ZX.js} +1 -1
  51. package/browser/{chunk-L75QJKLP.js → chunk-L5ZIS7CJ.js} +1 -1
  52. package/browser/{chunk-PTLVRO2T.js → chunk-LBXJVRAT.js} +1 -1
  53. package/browser/{chunk-7JXTBPO6.js → chunk-LK7UQBXO.js} +1 -1
  54. package/browser/{chunk-Q45XVCPE.js → chunk-LUWTRLMM.js} +1 -1
  55. package/browser/{chunk-EOQ6TLK6.js → chunk-MD6WWBSZ.js} +1 -1
  56. package/browser/{chunk-B4CTAXRS.js → chunk-MFBHQLLO.js} +1 -1
  57. package/browser/{chunk-Q3MH2WHW.js → chunk-MIENCGCQ.js} +1 -1
  58. package/browser/{chunk-T6SKNBS4.js → chunk-MJIPNN7A.js} +1 -1
  59. package/browser/{chunk-5UZJWGXF.js → chunk-N6ZNENQU.js} +2 -2
  60. package/browser/{chunk-F464PNNI.js → chunk-NFFC4KSY.js} +1 -1
  61. package/browser/{chunk-HUQCWL5X.js → chunk-NMOQIXVY.js} +1 -1
  62. package/browser/{chunk-MRLNJIME.js → chunk-NQ3LNNVL.js} +1 -1
  63. package/browser/{chunk-GJZAWVWD.js → chunk-O2K56L4P.js} +1 -1
  64. package/browser/{chunk-T475ZPAG.js → chunk-O4AM5O5P.js} +16 -16
  65. package/browser/chunk-ON47ICI3.js +1 -0
  66. package/browser/{chunk-F7J5TUAB.js → chunk-OQI66KFN.js} +2 -2
  67. package/browser/{chunk-TXTD756I.js → chunk-OR7B4MQC.js} +1 -1
  68. package/browser/chunk-P5CBDXUP.js +1 -0
  69. package/browser/{chunk-K4BVYUUE.js → chunk-PKIK7U7Z.js} +1 -1
  70. package/browser/{chunk-FDKCQIES.js → chunk-PO6OVC5B.js} +1 -1
  71. package/browser/chunk-QAQYVKMI.js +24 -0
  72. package/browser/{chunk-YGE2LJY6.js → chunk-QPN54ILN.js} +1 -1
  73. package/browser/{chunk-CB4INKRH.js → chunk-QZK5TM5O.js} +1 -1
  74. package/browser/{chunk-RNEHGC5X.js → chunk-S7N22G4D.js} +1 -1
  75. package/browser/{chunk-TCCZCKU3.js → chunk-SFQX5FUP.js} +1 -1
  76. package/browser/chunk-SVAXS2TA.js +1 -0
  77. package/browser/chunk-TDZ2L7GX.js +1 -0
  78. package/browser/{chunk-GEGFHXYS.js → chunk-TH6BQXNM.js} +1 -1
  79. package/browser/{chunk-6CFANTH2.js → chunk-TVWGXKBN.js} +1 -1
  80. package/browser/{chunk-25YHVZV6.js → chunk-TVZ622KQ.js} +1 -1
  81. package/browser/{chunk-JBA2HEME.js → chunk-U3B2DTPX.js} +1 -1
  82. package/browser/{chunk-X4NTI6VE.js → chunk-UDWVWF7E.js} +1 -1
  83. package/browser/chunk-UPV6MUOR.js +1 -0
  84. package/browser/chunk-UWWB4ON7.js +1 -0
  85. package/browser/chunk-VWOX66SZ.js +3 -0
  86. package/browser/{chunk-2YRHUGAG.js → chunk-WOAUMRNS.js} +2 -2
  87. package/browser/{chunk-IDKR4Z5E.js → chunk-WRVMZNGD.js} +1 -1
  88. package/browser/chunk-YEV6AJC2.js +1 -0
  89. package/browser/chunk-YV6MAUKK.js +1 -0
  90. package/browser/{chunk-U35DBD6P.js → chunk-ZK32OWP6.js} +1 -1
  91. package/browser/{chunk-SCBXIGUC.js → chunk-ZVBZGOUU.js} +1 -1
  92. package/browser/index.html +2 -2
  93. package/browser/main-ICSDESMZ.js +3 -0
  94. package/package.json +1 -1
  95. package/browser/chunk-2WXO2CVP.js +0 -1
  96. package/browser/chunk-3EJP6UEJ.js +0 -3
  97. package/browser/chunk-7GUNPVLF.js +0 -1
  98. package/browser/chunk-AKU4AVU5.js +0 -16
  99. package/browser/chunk-BNFYSCGM.js +0 -1
  100. package/browser/chunk-FR3YFIOJ.js +0 -1
  101. package/browser/chunk-GVPC56QQ.js +0 -4
  102. package/browser/chunk-J4TPORWI.js +0 -1
  103. package/browser/chunk-K6ZANPDY.js +0 -1
  104. package/browser/chunk-LDALTRKQ.js +0 -2
  105. package/browser/chunk-LEGL2HWF.js +0 -1
  106. package/browser/chunk-LR6FISWP.js +0 -1
  107. package/browser/chunk-NA5O2ACR.js +0 -24
  108. package/browser/chunk-QBUTQU3U.js +0 -1
  109. package/browser/chunk-TCKWGMV7.js +0 -1
  110. package/browser/chunk-VV564BYL.js +0 -1
  111. package/browser/chunk-VVRBBTBO.js +0 -1
  112. package/browser/chunk-XVDRWDA2.js +0 -1
  113. package/browser/chunk-YFKW562E.js +0 -1
  114. package/browser/main-VEM3F6IE.js +0 -3
@@ -0,0 +1 @@
1
+ import{a as at}from"./chunk-23PKMU5D.js";import{c as nt,d as st,e as ot}from"./chunk-INHUUGSI.js";import{a as fe}from"./chunk-UTAQ3FRE.js";import{c as it}from"./chunk-C4WJKF7R.js";import{N as rt}from"./chunk-NZYZO47Z.js";import{$ as pe,A as le,C as $e,G as N,O as Xe,V as Je,W as de,Z as me,aa as et,da as he,f as h,ha as tt,k as ce,n as ue,o as Ze}from"./chunk-NWSIPELM.js";import{a as Ge}from"./chunk-RNLSEEMX.js";import{$ as w,$d as We,Ab as j,Bb as z,Bc as K,Ca as Pe,Cb as v,D as q,Db as u,Ea as Z,Eb as d,Ec as B,F as xe,Fa as $,Fb as E,Ga as X,Gb as ee,Ha as Re,Hb as te,Ia as Ae,Ib as qe,Ja as H,Ka as Ke,Kc as Ue,M as Te,Mb as R,Nb as ie,O as Se,Ob as p,Q as De,Qb as l,Sa as J,Tb as He,Vb as Qe,Vc as re,Wb as Le,Xa as c,Xc as ae,Ya as b,Z as Ee,Za as Q,Zd as Ye,_ as we,aa as Oe,ac as ne,cb as L,cc as Ve,d as _,da as m,dc as f,ec as A,fb as Be,fc as Y,hb as V,ib as Ne,jb as k,la as G,lb as P,ma as Fe,na as T,pa as o,qd as je,rd as ze,sc as I,ta as O,tb as D,tc as se,ua as F,uc as oe,v as ve,vb as M,w as Ie,xa as S,xb as C,zb as U}from"./chunk-JYZTRN6N.js";import{a as x,b as Ce}from"./chunk-SNAKHGZS.js";var lt=()=>["/menu/Outlets/Master/Quick_Key_Templates/Form"],bt=t=>({ID:t}),Mt=t=>({OutletID:t});function Ct(t,s){if(t&1&&E(0,"img",16),t&2){let e=l(2).$implicit;v("src",e.ImageURLClient,J)}}function vt(t,s){if(t&1&&(u(0,"div",14)(1,"div",15),M(2,Ct,1,1,"img",16),d()()),t&2){let e=l().$implicit;c(2),C(e.ImageURLClient?2:-1)}}function It(t,s){if(t&1&&(u(0,"div",15)(1,"p",17)(2,"span"),f(3),K(4,"slice"),d()()()),t&2){let e=l().$implicit;c(3),A(B(4,1,e.Display,0,3))}}function xt(t,s){if(t&1){let e=R();u(0,"div",9)(1,"a",13),p("click",function(){let n=O(e).$implicit,r=l(4);return F(r.onSelectQuickKeyItem(n))}),M(2,vt,3,1,"div",14)(3,It,5,5,"div",15),u(4,"small"),f(5),K(6,"slice"),d()()()}if(t&2){let e=s.$implicit;c(2),C(e.ImageURLClient?2:3),c(3),A(B(6,2,e.Display,0,36))}}function Tt(t,s){if(t&1&&(u(0,"mat-tab",6)(1,"div",7)(2,"div",8),j(3,xt,7,6,"div",9,U),u(5,"div",10)(6,"a",11),E(7,"i",12),d()()()()()),t&2){let e=s.$implicit,i=l(3);v("label",e.Name),c(3),z(e==null?null:e.Items),c(3),v("routerLink",se(3,lt))("queryParams",oe(4,bt,i.quickKey.ID))}}function St(t,s){if(t&1){let e=R();u(0,"mat-tab-group",5),p("selectedIndexChange",function(n){O(e);let r=l(2);return F(r.onChangeTab(n))}),j(1,Tt,8,6,"mat-tab",6,U),d()}if(t&2){let e=l(2);v("disableRipple",!0)("selectedIndex",e.selectedTabIndex),c(),z(e.quickKey==null?null:e.quickKey.Groups)}}function Dt(t,s){if(t&1&&E(0,"img",16),t&2){let e=l(2).$implicit;v("src",e.ImageURLClient,J)}}function Et(t,s){if(t&1&&(u(0,"div",14)(1,"div",15),M(2,Dt,1,1,"img",16),d()()),t&2){let e=l().$implicit;c(2),C(e.ImageURLClient?2:-1)}}function wt(t,s){if(t&1&&(u(0,"div",15)(1,"p",17)(2,"span"),f(3),K(4,"slice"),d()()()),t&2){let e=l().$implicit;c(3),A(B(4,1,e.Model,0,3))}}function Ot(t,s){if(t&1){let e=R();u(0,"div",9)(1,"a",13),p("click",function(){let n=O(e).$implicit,r=l(3);return F(r.onSelectVariant(n.ID))}),M(2,Et,3,1,"div",14)(3,wt,5,5,"div",15),u(4,"small"),f(5),K(6,"slice"),d()()()}if(t&2){let e=s.$implicit;c(2),C(e.ImageURLClient?2:3),c(3),A(B(6,2,e.Model,0,30))}}function Ft(t,s){if(t&1){let e=R();u(0,"div",18)(1,"div",19),p("click",function(){O(e);let n=l(2);return F(n.quickKeyState="QUICKKEY")}),E(2,"i",20),d(),u(3,"div",21)(4,"b"),f(5),d()()(),u(6,"div",7)(7,"div",8),j(8,Ot,7,6,"div",9,U),d()()}if(t&2){let e=l(2);c(5),Y(" ",e.subQuickKeyPack.Display),c(3),z(e.subQuickKeyPack==null?null:e.subQuickKeyPack.Children)}}function Pt(t,s){if(t&1&&M(0,St,3,2,"mat-tab-group",4)(1,Ft,10,1),t&2){let e=l();C(e.quickKeyState=="QUICKKEY"?0:1)}}function Rt(t,s){if(t&1&&(u(0,"div",3)(1,"a",22)(2,"strong"),f(3,"QUICK KEYS UNCONFIGURED"),d(),E(4,"i",23),u(5,"span"),f(6,"Click here to setup your Quick keys"),d()()()),t&2){let e=l();c(),v("routerLink",se(2,lt))("queryParams",oe(3,Mt,e.outletID))}}var ct=class t{sf=o(at);quickKey;get outletID(){return this._outletID}set outletID(s){this._outletID=s,this._outletID&&(this.quickKeyState="QUICKKEY")}_outletID="";_onSelectVariant=new b;quickKeyState="QUICKKEY";subQuickKeyPack;selectedTabIndex=0;disabled=!1;onChange=s=>{};onTouched=()=>{};writeValue(s){}registerOnChange(s){this.onChange=s}registerOnTouched(s){this.onTouched=s}setDisabledState(s){this.disabled=s}onSelectQuickKeyItem(s){s.Children?s.Children.length==1?this.onSelectVariant(s.Children[0].ID):(this.quickKeyState="SUBQUICKKEY",this.subQuickKeyPack={Children:s.Children,Display:s.Display}):this.onSelectVariant(s.ItemID)}onSelectVariant(s){this.quickKeyState="QUICKKEY",this._onSelectVariant.emit(s),this.onChange(s),this.sf.searchFilterNativeEl?.focus()}onChangeTab(s){this.selectedTabIndex=s}static \u0275fac=function(e){return new(e||t)};static \u0275cmp=V({type:t,selectors:[["POS-quick-key"]],inputs:{quickKey:"quickKey",outletID:"outletID"},outputs:{_onSelectVariant:"onSelectVariant"},features:[I([{provide:Ge,multi:!0,useExisting:t}])],decls:5,vars:1,consts:[[1,"row","h-100"],[1,"col-12"],[1,"quick-key-tab","h-100","pt-4"],[1,"no-quick-key"],[1,"h-100","bgQuickkeyIllustration","landscape",3,"disableRipple","selectedIndex"],[1,"h-100","bgQuickkeyIllustration","landscape",3,"selectedIndexChange","disableRipple","selectedIndex"],[3,"label"],[1,"container","tabItems"],[1,"row","g-0"],[1,"col-3","column","px-6"],[1,"col-3","column","px-8","add","pt-8"],[3,"routerLink","queryParams"],["aria-hidden","true",1,"fa","fa-plus-circle","fa-5x","d-flex","align-items-center","justify-content-center","bg-white","h-100","text-primary"],[3,"click"],[1,"img-box","d-flex","align-items-center"],[1,"ratio","ratio-1x1"],[1,"full-screen-image",3,"src"],[1,"fw-normal","fs-1","d-flex","align-items-center","justify-content-center"],[1,"row","g-0","border","align-items-center","subquicKey"],[1,"col-auto","border-end","py-5","px-7","cursor-pointer",3,"click"],["aria-hidden","true",1,"fa","fa-arrow-left"],[1,"col","text-center","fw-bold","text-uppercase","fs-5"],["id","LinkConfigureQuickkey","target","_blank",3,"routerLink","queryParams"],["aria-hidden","true",1,"fa-regular","fa-hand-pointer"]],template:function(e,i){e&1&&(u(0,"div",0)(1,"div",1)(2,"section",2),M(3,Pt,2,1)(4,Rt,7,5,"div",3),d()()()),e&2&&(c(3),C(i.quickKey&&i.quickKey.Groups?3:4))},dependencies:[ze,We,Ye,rt,ot,nt,st,je],styles:[".quick-key-tab{width:100%;position:relative;height:100%;max-height:calc(100vh - 70px)} .quick-key-tab .mat-mdc-tab-header-pagination{display:none!important} .quick-key-tab .mat-mdc-tab-header{border:none} .quick-key-tab .mdc-tab-indicator{display:none!important} .quick-key-tab .mat-mdc-tab-body-wrapper{width:102%} .quick-key-tab .mat-mdc-tab-labels{border-bottom:0px;display:flex;flex-wrap:wrap;border-radius:6px} .quick-key-tab .mat-mdc-tab-labels .mat-mdc-tab{color:#151515;opacity:1;height:38px;max-height:40px;white-space:normal!important;overflow:hidden;padding:0!important;min-width:25%!important;flex-basis:0;font-size:12px;font-weight:700;outline:none;text-transform:uppercase;background:#fff;display:flex} .quick-key-tab .mat-mdc-tab-labels .mat-mdc-tab .mdc-tab__content{white-space:normal!important;align-self:center;font-size:.875rem!important} .quick-key-tab .mat-mdc-tab-labels .mdc-tab--active{background:linear-gradient(to bottom,#fff,#eee);border-radius:6px;border:.5px solid #dadada} .quick-key-tab .mat-mdc-tab-labels .mdc-tab--active .mdc-tab__text-label{color:gray!important;font-weight:700} .quick-key-tab .mat-mdc-tab-labels .mat-mdc-tab:nth-child(n+5){flex-grow:0!important} .quick-key-tab .tabItems{padding:0} .quick-key-tab .tabItems .column{margin-top:15px;margin-bottom:10px;word-break:break-all} .quick-key-tab .tabItems .column>div{border:solid 1px #cfcfcf} .quick-key-tab .tabItems .column>a{text-align:center;display:block;cursor:pointer} .quick-key-tab .tabItems .column>a div.img-box{display:block;margin:0 auto;border-top-left-radius:5px;border-bottom-right-radius:5px;border:solid 1px #dddddd} .quick-key-tab .tabItems .column>a .full-screen-image{position:absolute;object-fit:scale-down} .quick-key-tab .tabItems .column>a p{display:block;margin:0 auto;background-color:#a6a6a6;border:solid 1px #999999;border-top-left-radius:5px;border-bottom-right-radius:5px;color:#fff} .quick-key-tab .tabItems .column>a small{font-size:11px;display:block;margin:5px 0 0} .quick-key-tab .tabItems .column .ion-icon{font-size:75px;margin:10px} .quick-key-tab .col-md-3.column.add{cursor:pointer} .quick-key-tab .col-md-3.column.add i{margin-top:10px} .quick-key-tab ::-webkit-scrollbar{width:3px} .quick-key-tab ::-webkit-scrollbar-track{box-shadow:inset 0 0 5px #bfd2da} .quick-key-tab ::-webkit-scrollbar-thumb{background:#c4c4c4;border-radius:10px} .quick-key-tab .subquicKey{background:linear-gradient(to bottom,#fff,#eee);color:gray;border-radius:6px} .quick-key-tab .no-quick-key{background-image:url(https://cdn.dealpos.xyz/web-image/no-quick-key.png)!important;background-repeat:no-repeat;height:calc(100vh - 70px);background-size:contain}a#LinkConfigureQuickkey[_ngcontent-%COMP%]{background-color:#479ccf;padding:15px 25px;color:#fff;text-decoration:none;width:240px;display:block;opacity:.85;border-radius:6px}a#LinkConfigureQuickkey[_ngcontent-%COMP%]{position:absolute;top:200px;left:calc(50% - 120px)}a#LinkConfigureQuickkey[_ngcontent-%COMP%]:hover{opacity:.95}a#LinkConfigureQuickkey[_ngcontent-%COMP%] Strong[_ngcontent-%COMP%]{border-bottom:1px solid white;font-size:14px;margin:0 0 10px;padding:0 0 3px;display:block}a#LinkConfigureQuickkey[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{display:inline-block;height:35px;margin:0 10px 0 0;font-size:28px}a#LinkConfigureQuickkey[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;font-size:14px;width:135px;vertical-align:top}"]})};var pt=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275dir=k({type:t,selectors:[["","cdkMenuGroup",""]],hostAttrs:["role","group",1,"cdk-menu-group"],exportAs:["cdkMenuGroup"],features:[I([{provide:fe,useClass:fe}])]})}return t})(),ye=new T("cdk-menu"),y=(function(t){return t[t.nextItem=0]="nextItem",t[t.previousItem=1]="previousItem",t[t.currentItem=2]="currentItem",t})(y||{}),g=new T("cdk-menu-stack"),Kt={provide:g,deps:[[new $,new X,new Z(g)]],useFactory:t=>t||new be},Bt=t=>({provide:g,deps:[[new $,new X,new Z(g)]],useFactory:s=>s||be.inline(t)}),be=(()=>{class t{id=o(le).getId("cdk-menu-stack-");_elements=[];_close=new _;_empty=new _;_hasFocus=new _;closed=this._close;hasFocus=this._hasFocus.pipe(w(!1),Te(0),De());emptied=this._empty;_inlineMenuOrientation=null;static inline(e){let i=new t;return i._inlineMenuOrientation=e,i}push(e){this._elements.push(e)}close(e,i){let{focusNextOnEmpty:n,focusParentTrigger:r}=x({},i);if(this._elements.indexOf(e)>=0){let a;do a=this._elements.pop(),this._close.next({item:a,focusParentTrigger:r});while(a!==e);this.isEmpty()&&this._empty.next(n)}}closeSubMenuOf(e){let i=!1;if(this._elements.indexOf(e)>=0)for(i=this.peek()!==e;this.peek()!==e;)this._close.next({item:this._elements.pop()});return i}closeAll(e){let{focusNextOnEmpty:i,focusParentTrigger:n}=x({},e);if(!this.isEmpty()){for(;!this.isEmpty();){let r=this._elements.pop();r&&this._close.next({item:r,focusParentTrigger:n})}this._empty.next(i)}}isEmpty(){return!this._elements.length}length(){return this._elements.length}peek(){return this._elements[this._elements.length-1]}hasInlineMenu(){return this._inlineMenuOrientation!=null}inlineMenuOrientation(){return this._inlineMenuOrientation}setHasFocus(e){this._hasFocus.next(e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=G({token:t,factory:t.\u0275fac})}return t})(),W=new T("cdk-menu-trigger"),Nt=new T("cdk-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=o(S);return()=>Je(t)}}),ht=(()=>{class t{static _openMenuTrigger;update(e){t._openMenuTrigger!==e&&(t._openMenuTrigger?.close(),t._openMenuTrigger=e)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=G({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ft=(()=>{class t{injector=o(S);viewContainerRef=o(Be);menuStack=o(g);menuScrollStrategy=o(Nt);menuPosition;opened=new b;closed=new b;menuTemplateRef;menuData;overlayRef=null;destroyed=new _;stopOutsideClicksListener=q(this.closed,this.destroyed);childMenu;_menuPortal;_childMenuInjector;ngOnDestroy(){this._destroyOverlay(),this.destroyed.next(),this.destroyed.complete()}isOpen(){return!!this.overlayRef?.hasAttached()}registerChildMenu(e){this.childMenu=e}getMenuContentPortal(){let e=this.menuTemplateRef!==this._menuPortal?.templateRef;return this.menuTemplateRef&&(!this._menuPortal||e)&&(this._menuPortal=new Xe(this.menuTemplateRef,this.viewContainerRef,this.menuData,this._getChildMenuInjector())),this._menuPortal}isElementInsideMenuStack(e){for(let i=e;i;i=i?.parentElement??null)if(i.getAttribute("data-cdk-menu-stack-id")===this.menuStack.id)return!0;return!1}_destroyOverlay(){this.overlayRef&&(this.overlayRef.dispose(),this.overlayRef=null)}_getChildMenuInjector(){return this._childMenuInjector=this._childMenuInjector||S.create({providers:[{provide:W,useValue:this},{provide:g,useValue:this.menuStack}],parent:this.injector}),this._childMenuInjector}static \u0275fac=function(i){return new(i||t)};static \u0275dir=k({type:t,hostVars:2,hostBindings:function(i,n){i&2&&D("aria-controls",n.childMenu==null?null:n.childMenu.id)("data-cdk-menu-stack-id",n.menuStack.id)}})}return t})();var Me=new T("cdk-menu-aim");function _t(t,s){if(!s.isTrusted)return!1;let e=t.nativeElement,i=s.keyCode;return e.nodeName==="BUTTON"&&!e.disabled?i===13||i===32:e.nodeName==="A"?i===13:!1}var qt=(()=>{class t extends ft{_elementRef=o(H);_ngZone=o(Q);_changeDetectorRef=o(re);_inputModalityDetector=o(ue);_directionality=o(N,{optional:!0});_renderer=o(L);_injector=o(S);_cleanupMouseenter;_menuTracker=o(ht);_parentMenu=o(ye,{optional:!0});_menuAim=o(Me,{optional:!0});constructor(){super(),this._setRole(),this._registerCloseHandler(),this._subscribeToMenuStackClosed(),this._subscribeToMouseEnter(),this._subscribeToMenuStackHasFocus(),this._setType()}toggle(){this.isOpen()?this.close():this.open()}open(){this._parentMenu||this._menuTracker.update(this),!this.isOpen()&&this.menuTemplateRef!=null&&(this.opened.next(),this.overlayRef=this.overlayRef||he(this._injector,this._getOverlayConfig()),this.overlayRef.attach(this.getMenuContentPortal()),this._changeDetectorRef.markForCheck(),this._subscribeToOutsideClicks())}close(){this.isOpen()&&(this.closed.next(),this.overlayRef.detach(),this._changeDetectorRef.markForCheck()),this._closeSiblingTriggers()}getMenu(){return this.childMenu}ngOnChanges(e){e.menuPosition&&this.overlayRef&&this.overlayRef.updatePositionStrategy(this._getOverlayPositionStrategy())}ngOnDestroy(){this._cleanupMouseenter(),super.ngOnDestroy()}_toggleOnKeydown(e){let i=this._parentMenu?.orientation==="vertical";switch(e.keyCode){case 32:case 13:!h(e)&&!_t(this._elementRef,e)&&(this.toggle(),this.childMenu?.focusFirstItem("keyboard"));break;case 39:h(e)||this._parentMenu&&i&&this._directionality?.value!=="rtl"&&(e.preventDefault(),this.open(),this.childMenu?.focusFirstItem("keyboard"));break;case 37:h(e)||this._parentMenu&&i&&this._directionality?.value==="rtl"&&(e.preventDefault(),this.open(),this.childMenu?.focusFirstItem("keyboard"));break;case 40:case 38:h(e)||i||(e.preventDefault(),this.open(),e.keyCode===40?this.childMenu?.focusFirstItem("keyboard"):this.childMenu?.focusLastItem("keyboard"));break}}_handleClick(){this.toggle(),this.childMenu?.focusFirstItem("mouse")}_setHasFocus(e){this._parentMenu||this.menuStack.setHasFocus(e)}_subscribeToMouseEnter(){this._cleanupMouseenter=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mouseenter",()=>{if(this._inputModalityDetector.mostRecentModality!=="touch"&&!this.menuStack.isEmpty()&&!this.isOpen()){let e=()=>this._ngZone.run(()=>{this._closeSiblingTriggers(),this.open()});this._menuAim?this._menuAim.toggle(e):e()}}))}_closeSiblingTriggers(){this._parentMenu?!this.menuStack.closeSubMenuOf(this._parentMenu)&&this.menuStack.peek()!==this._parentMenu&&this.menuStack.closeAll():this.menuStack.closeAll()}_getOverlayConfig(){return new de({positionStrategy:this._getOverlayPositionStrategy(),scrollStrategy:this.menuScrollStrategy(),direction:this._directionality||void 0})}_getOverlayPositionStrategy(){return me(this._injector,this._elementRef).withLockedPosition().withFlexibleDimensions(!1).withPositions(this._getOverlayPositions())}_getOverlayPositions(){return this.menuPosition??(!this._parentMenu||this._parentMenu.orientation==="horizontal"?pe:et)}_registerCloseHandler(){this._parentMenu||this.menuStack.closed.pipe(m(this.destroyed)).subscribe(({item:e})=>{e===this.childMenu&&this.close()})}_subscribeToOutsideClicks(){this.overlayRef&&this.overlayRef.outsidePointerEvents().pipe(m(this.stopOutsideClicksListener)).subscribe(e=>{let i=ce(e),n=this._elementRef.nativeElement;i!==n&&!n.contains(i)&&(this.isElementInsideMenuStack(i)?this._closeSiblingTriggers():this.menuStack.closeAll())})}_subscribeToMenuStackHasFocus(){this._parentMenu||this.menuStack.hasFocus.pipe(m(this.destroyed)).subscribe(e=>{e||this.menuStack.closeAll()})}_subscribeToMenuStackClosed(){this._parentMenu||this.menuStack.closed.subscribe(({focusParentTrigger:e})=>{e&&!this.menuStack.length()&&this._elementRef.nativeElement.focus()})}_setRole(){this._parentMenu||this._elementRef.nativeElement.setAttribute("role","button")}_setType(){let e=this._elementRef.nativeElement;e.nodeName==="BUTTON"&&!e.getAttribute("type")&&e.setAttribute("type","button")}static \u0275fac=function(i){return new(i||t)};static \u0275dir=k({type:t,selectors:[["","cdkMenuTriggerFor",""]],hostAttrs:[1,"cdk-menu-trigger"],hostVars:2,hostBindings:function(i,n){i&1&&p("focusin",function(){return n._setHasFocus(!0)})("focusout",function(){return n._setHasFocus(!1)})("keydown",function(a){return n._toggleOnKeydown(a)})("click",function(){return n._handleClick()}),i&2&&D("aria-haspopup",n.menuTemplateRef?"menu":null)("aria-expanded",n.menuTemplateRef==null?null:n.isOpen())},inputs:{menuTemplateRef:[0,"cdkMenuTriggerFor","menuTemplateRef"],menuPosition:[0,"cdkMenuPosition","menuPosition"],menuData:[0,"cdkMenuTriggerData","menuData"]},outputs:{opened:"cdkMenuOpened",closed:"cdkMenuClosed"},exportAs:["cdkMenuTriggerFor"],features:[I([{provide:W,useExisting:t},Kt]),P,Re]})}return t})(),Ht=(()=>{class t{_dir=o(N,{optional:!0});_elementRef=o(H);_ngZone=o(Q);_inputModalityDetector=o(ue);_renderer=o(L);_cleanupMouseEnter;_menuAim=o(Me,{optional:!0});_menuStack=o(g);_parentMenu=o(ye,{optional:!0});_menuTrigger=o(qt,{optional:!0,self:!0});disabled=!1;typeaheadLabel;triggered=new b;get hasMenu(){return this._menuTrigger?.menuTemplateRef!=null}_tabindex=-1;closeOnSpacebarTrigger=!0;destroyed=new _;constructor(){this._setupMouseEnter(),this._setType(),this._isStandaloneItem()&&(this._tabindex=0)}ngOnDestroy(){this._cleanupMouseEnter?.(),this.destroyed.next(),this.destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}trigger(e){let{keepOpen:i}=x({},e);!this.disabled&&!this.hasMenu&&(this.triggered.next(),i||this._menuStack.closeAll({focusParentTrigger:!0}))}isMenuOpen(){return!!this._menuTrigger?.isOpen()}getMenu(){return this._menuTrigger?.getMenu()}getMenuTrigger(){return this._menuTrigger}getLabel(){return this.typeaheadLabel||this._elementRef.nativeElement.textContent?.trim()||""}_resetTabIndex(){this._isStandaloneItem()||(this._tabindex=-1)}_setTabIndex(e){this.disabled||(!e||!this._menuStack.isEmpty())&&(this._tabindex=0)}_handleClick(e){this.disabled?(e.preventDefault(),e.stopPropagation()):this.trigger()}_onKeydown(e){switch(e.keyCode){case 32:case 13:if(!h(e)&&!_t(this._elementRef,e)){let i=this._elementRef.nativeElement.nodeName;i!=="A"&&i!=="BUTTON"&&e.preventDefault(),this.trigger({keepOpen:e.keyCode===32&&!this.closeOnSpacebarTrigger})}break;case 39:h(e)||this._parentMenu&&this._isParentVertical()&&(this._dir?.value!=="rtl"?this._forwardArrowPressed(e):this._backArrowPressed(e));break;case 37:h(e)||this._parentMenu&&this._isParentVertical()&&(this._dir?.value!=="rtl"?this._backArrowPressed(e):this._forwardArrowPressed(e));break}}_isStandaloneItem(){return!this._parentMenu}_backArrowPressed(e){let i=this._parentMenu;(this._menuStack.hasInlineMenu()||this._menuStack.length()>1)&&(e.preventDefault(),this._menuStack.close(i,{focusNextOnEmpty:this._menuStack.inlineMenuOrientation()==="horizontal"?y.previousItem:y.currentItem,focusParentTrigger:!0}))}_forwardArrowPressed(e){!this.hasMenu&&this._menuStack.inlineMenuOrientation()==="horizontal"&&(e.preventDefault(),this._menuStack.closeAll({focusNextOnEmpty:y.nextItem,focusParentTrigger:!0}))}_setupMouseEnter(){if(!this._isStandaloneItem()){let e=()=>this._ngZone.run(()=>this._menuStack.closeSubMenuOf(this._parentMenu));this._cleanupMouseEnter=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"mouseenter",()=>{this._inputModalityDetector.mostRecentModality!=="touch"&&!this._menuStack.isEmpty()&&!this.hasMenu&&(this._menuAim?this._menuAim.toggle(e):e())}))}}_isParentVertical(){return this._parentMenu?.orientation==="vertical"}_setType(){let e=this._elementRef.nativeElement;e.nodeName==="BUTTON"&&!e.getAttribute("type")&&e.setAttribute("type","button")}static \u0275fac=function(i){return new(i||t)};static \u0275dir=k({type:t,selectors:[["","cdkMenuItem",""]],hostAttrs:["role","menuitem",1,"cdk-menu-item"],hostVars:4,hostBindings:function(i,n){i&1&&p("blur",function(){return n._resetTabIndex()})("focus",function(){return n._setTabIndex()})("click",function(a){return n._handleClick(a)})("keydown",function(a){return n._onKeydown(a)}),i&2&&(ie("tabIndex",n._tabindex),D("aria-disabled",n.disabled||null),ne("cdk-menu-item-disabled",n.disabled))},inputs:{disabled:[2,"cdkMenuItemDisabled","disabled",ae],typeaheadLabel:[0,"cdkMenuitemTypeaheadLabel","typeaheadLabel"]},outputs:{triggered:"cdkMenuItemTriggered"},exportAs:["cdkMenuItem"]})}return t})(),ke=class{_renderer;_items;_eventCleanups;_itemsSubscription;entered=new _;exited=new _;activeElement;previousElement;constructor(s,e){this._renderer=s,this._items=e,this._bindEvents(),this.entered.subscribe(i=>this.activeElement=i),this.exited.subscribe(()=>{this.previousElement=this.activeElement,this.activeElement=void 0})}destroy(){this._cleanupEvents(),this._itemsSubscription?.unsubscribe()}_bindEvents(){this._itemsSubscription=this._items.changes.pipe(w(this._items)).subscribe(()=>{this._cleanupEvents(),this._eventCleanups=[],this._items.forEach(s=>{let e=s._elementRef.nativeElement;this._eventCleanups.push(this._renderer.listen(e,"mouseenter",()=>{this.entered.next(s)}),this._renderer.listen(e,"mouseout",()=>{this.exited.next(s)}))})})}_cleanupEvents(){this._eventCleanups?.forEach(s=>s()),this._eventCleanups=void 0}},Qt=(()=>{class t extends pt{_focusMonitor=o(Ze);ngZone=o(Q);_renderer=o(L);nativeElement=o(H).nativeElement;menuStack=o(g);menuAim=o(Me,{optional:!0,self:!0});dir=o(N,{optional:!0});_allItems;id=o(le).getId("cdk-menu-");items=new Ke;orientation="vertical";isInline=!1;keyManager;destroyed=new _;triggerItem;pointerTracker;_menuStackHasFocus=Pe(!1);_tabIndexSignal=Ue(()=>{let e=this._menuStackHasFocus()?-1:0;return this.isInline?e:null});ngAfterContentInit(){this.isInline||this.menuStack.push(this),this._setItems(),this._setKeyManager(),this._handleFocus(),this._subscribeToMenuStackHasFocus(),this._subscribeToMenuOpen(),this._subscribeToMenuStackClosed(),this._setUpPointerTracker()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this.nativeElement),this.keyManager?.destroy(),this.destroyed.next(),this.destroyed.complete(),this.pointerTracker?.destroy()}focusFirstItem(e="program"){this.keyManager.setFocusOrigin(e),this.keyManager.setFirstItemActive()}focusLastItem(e="program"){this.keyManager.setFocusOrigin(e),this.keyManager.setLastItemActive()}setActiveMenuItem(e){this.keyManager?.setActiveItem(e)}_getTabIndex(){return this._tabIndexSignal()}closeOpenMenu(e,i){let{focusParentTrigger:n}=x({},i),r=this.keyManager,a=this.triggerItem;e===a?.getMenuTrigger()?.getMenu()&&(a?.getMenuTrigger()?.close(),n&&(a?r.setActiveItem(a):r.setFirstItemActive()))}_setItems(){this._allItems.changes.pipe(w(this._allItems),m(this.destroyed)).subscribe(e=>{this.items.reset(e.filter(i=>i._parentMenu===this)),this.items.notifyOnChanges()})}_setKeyManager(){this.keyManager=new $e(this.items).withWrap().withTypeAhead().withHomeAndEnd().skipPredicate(()=>!1),this.orientation==="horizontal"?this.keyManager.withHorizontalOrientation(this.dir?.value||"ltr"):this.keyManager.withVerticalOrientation()}_subscribeToMenuOpen(){let e=q(this.items.changes,this.destroyed);this.items.changes.pipe(w(this.items),ve(i=>i.filter(n=>n.hasMenu).map(n=>n.getMenuTrigger().opened.pipe(Se(n),m(e)))),Ie(),Oe(i=>(this.triggerItem=i,i.getMenuTrigger().closed)),m(this.destroyed)).subscribe(()=>this.triggerItem=void 0)}_subscribeToMenuStackClosed(){this.menuStack.closed.pipe(m(this.destroyed)).subscribe(({item:e,focusParentTrigger:i})=>this.closeOpenMenu(e,{focusParentTrigger:i}))}_subscribeToMenuStackHasFocus(){this.isInline&&this.menuStack.hasFocus.pipe(m(this.destroyed)).subscribe(e=>{this._menuStackHasFocus.set(e)})}_setUpPointerTracker(){this.menuAim&&(this.ngZone.runOutsideAngular(()=>{this.pointerTracker=new ke(this._renderer,this.items)}),this.menuAim.initialize(this,this.pointerTracker))}_handleFocus(){this._focusMonitor.monitor(this.nativeElement,!1).pipe(m(this.destroyed)).subscribe(e=>{e!==null&&e!=="mouse"&&this.focusFirstItem(e)})}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ae(t)))(n||t)}})();static \u0275dir=k({type:t,contentQueries:function(i,n,r){if(i&1&&He(r,Ht,5),i&2){let a;Qe(a=Le())&&(n._allItems=a)}},hostAttrs:["role","menu"],hostVars:4,hostBindings:function(i,n){i&1&&p("focusin",function(){return n.menuStack.setHasFocus(!0)})("focusout",function(){return n.menuStack.setHasFocus(!1)}),i&2&&(ie("tabIndex",n._getTabIndex())("id",n.id),D("aria-orientation",n.orientation)("data-cdk-menu-stack-id",n.menuStack.id))},inputs:{id:"id"},features:[P]})}return t})(),Ti=(()=>{class t extends Qt{_parentTrigger=o(W,{optional:!0});closed=new b;orientation="vertical";isInline=!this._parentTrigger;constructor(){super(),this.destroyed.subscribe(this.closed),this._parentTrigger?.registerChildMenu(this)}ngAfterContentInit(){super.ngAfterContentInit(),this._subscribeToMenuStackEmptied()}ngOnDestroy(){super.ngOnDestroy(),this.closed.complete()}_handleKeyEvent(e){let i=this.keyManager;switch(e.keyCode){case 37:case 39:h(e)||(e.preventDefault(),i.setFocusOrigin("keyboard"),i.onKeydown(e));break;case 27:h(e)||(e.preventDefault(),this.menuStack.close(this,{focusNextOnEmpty:y.currentItem,focusParentTrigger:!0}));break;case 9:h(e,"altKey","metaKey","ctrlKey")||this.menuStack.closeAll({focusParentTrigger:!0});break;default:i.onKeydown(e)}}_toggleMenuFocus(e){let i=this.keyManager;switch(e){case y.nextItem:i.setFocusOrigin("keyboard"),i.setNextItemActive();break;case y.previousItem:i.setFocusOrigin("keyboard"),i.setPreviousItemActive();break;case y.currentItem:i.activeItem&&(i.setFocusOrigin("keyboard"),i.setActiveItem(i.activeItem));break}}_subscribeToMenuStackEmptied(){this.menuStack.emptied.pipe(m(this.destroyed)).subscribe(e=>this._toggleMenuFocus(e))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=k({type:t,selectors:[["","cdkMenu",""]],hostAttrs:["role","menu",1,"cdk-menu"],hostVars:2,hostBindings:function(i,n){i&1&&p("keydown",function(a){return n._handleKeyEvent(a)}),i&2&&ne("cdk-menu-inline",n.isInline)},outputs:{closed:"closed"},exportAs:["cdkMenu"],features:[I([{provide:pt,useExisting:t},{provide:ye,useExisting:t},Bt("vertical")]),P]})}return t})();var Lt=pe.map(t=>{let s=t.overlayX==="start"?2:-2,e=t.overlayY==="top"?2:-2;return Ce(x({},t),{offsetX:s,offsetY:e})}),Si=(()=>{class t extends ft{_injector=o(S);_directionality=o(N,{optional:!0});_menuTracker=o(ht);_changeDetectorRef=o(re);disabled=!1;constructor(){super(),this._setMenuStackCloseListener()}open(e){this._open(null,e),this._changeDetectorRef.markForCheck()}close(){this.menuStack.closeAll()}_openOnContextMenu(e){this.disabled||(e.preventDefault(),e.stopPropagation(),this._menuTracker.update(this),this._open(e,{x:e.clientX,y:e.clientY}),e.button===2?this.childMenu?.focusFirstItem("mouse"):e.button===0?this.childMenu?.focusFirstItem("keyboard"):this.childMenu?.focusFirstItem("program"))}_getOverlayConfig(e){return new de({positionStrategy:this._getOverlayPositionStrategy(e),scrollStrategy:this.menuScrollStrategy(),direction:this._directionality||void 0})}_getOverlayPositionStrategy(e){return me(this._injector,e).withLockedPosition().withGrowAfterOpen().withPositions(this.menuPosition??Lt)}_setMenuStackCloseListener(){this.menuStack.closed.pipe(m(this.destroyed)).subscribe(({item:e})=>{e===this.childMenu&&this.isOpen()&&(this.closed.next(),this.overlayRef.detach(),this.childMenu=void 0,this._changeDetectorRef.markForCheck())})}_subscribeToOutsideClicks(e){if(this.overlayRef){let i=this.overlayRef.outsidePointerEvents();if(e){let[n,r]=xe(i,({type:a})=>a==="auxclick");i=q(r.pipe(we((a,kt)=>e.ctrlKey&&kt===0&&a.ctrlKey)),n.pipe(Ee(1)))}i.pipe(m(this.stopOutsideClicksListener)).subscribe(n=>{this.isElementInsideMenuStack(ce(n))||this.menuStack.closeAll()})}}_open(e,i){this.disabled||(this.isOpen()?(this.menuStack.closeSubMenuOf(this.childMenu),this.overlayRef.getConfig().positionStrategy.setOrigin(i),this.overlayRef.updatePosition()):(this.opened.next(),this.overlayRef?(this.overlayRef.getConfig().positionStrategy.setOrigin(i),this.overlayRef.updatePosition()):this.overlayRef=he(this._injector,this._getOverlayConfig(i)),this.overlayRef.attach(this.getMenuContentPortal()),this._subscribeToOutsideClicks(e)))}static \u0275fac=function(i){return new(i||t)};static \u0275dir=k({type:t,selectors:[["","cdkContextMenuTriggerFor",""]],hostVars:1,hostBindings:function(i,n){i&1&&p("contextmenu",function(a){return n._openOnContextMenu(a)}),i&2&&D("data-cdk-menu-stack-id",null)},inputs:{menuTemplateRef:[0,"cdkContextMenuTriggerFor","menuTemplateRef"],menuPosition:[0,"cdkContextMenuPosition","menuPosition"],menuData:[0,"cdkContextMenuTriggerData","menuData"],disabled:[2,"cdkContextMenuDisabled","disabled",ae]},outputs:{opened:"cdkContextMenuOpened",closed:"cdkContextMenuClosed"},exportAs:["cdkContextMenuTriggerFor"],features:[I([{provide:W,useExisting:t},{provide:g,useClass:be}]),P]})}return t})();var Di=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Ne({type:t});static \u0275inj=Fe({imports:[tt]})}return t})();var gt=class t{icon="";label="";truncate=!1;static \u0275fac=function(e){return new(e||t)};static \u0275cmp=V({type:t,selectors:[["POS-dropdown-item-more-action"]],inputs:{icon:"icon",label:"label",truncate:"truncate"},decls:6,vars:3,consts:[[1,"dropdown-item","px-1"],[1,"row","g-0","d-flex","align-items-center"],[1,"col-2","px-0"],["aria-hidden","true",1,"fs-3"],[1,"col-10","pe-0","ps-4","fs-6"]],template:function(e,i){e&1&&(ee(0,"div",0)(1,"div",1)(2,"div",2),qe(3,"i",3),te(),ee(4,"div",4),f(5),te()()()),e&2&&(c(3),Ve(i.icon),c(2),Y(" ",i.label," "))},dependencies:[it],encapsulation:2})};export{ct as a,Ht as b,Ti as c,Si as d,Di as e,gt as f};
@@ -1,4 +1,4 @@
1
- import{a as Mt,d as kt}from"./chunk-6SGN7MNX.js";import{c as Et,j as It,k as F,l as St}from"./chunk-L76WVZW6.js";import{a as P}from"./chunk-2FWFPV5I.js";import{oa as Tt,pa as k,xa as Ot}from"./chunk-O5SLP4JK.js";import{F as bt,G as vt,a as ft,c as _t,h as ht,i as wt,k as Ct,o as xt,p as yt}from"./chunk-RNLSEEMX.js";import{a as mt}from"./chunk-GVPC56QQ.js";import{Cb as m,Db as o,Eb as s,Fb as M,Ia as A,Jb as I,Kb as S,Kc as ot,Lb as Z,Lc as rt,Mb as h,Ob as g,Pc as j,Qb as r,Qc as at,Tb as N,Vb as D,Wb as B,Xa as l,Xc as L,Ya as T,Yb as J,Yd as ct,Zb as X,be as gt,cc as x,cd as st,db as Q,dc as c,ec as tt,ed as pt,ee as Pt,fc as et,fd as lt,hb as O,ib as K,ic as y,jc as b,jd as dt,ka as W,kc as v,la as z,lb as Y,ma as U,mb as $,na as q,nb as E,pa as w,pc as H,rd as ut,sc as nt,ta as d,tb as G,ua as u,vb as f,vc as R,wc as it,xb as _}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var Ft=`
1
+ import{a as Mt,d as kt}from"./chunk-6SGN7MNX.js";import{c as Et,j as It,k as F,l as St}from"./chunk-L76WVZW6.js";import{a as P}from"./chunk-2FWFPV5I.js";import{oa as Tt,pa as k,xa as Ot}from"./chunk-O5SLP4JK.js";import{F as bt,G as vt,a as ft,c as _t,h as ht,i as wt,k as Ct,o as xt,p as yt}from"./chunk-RNLSEEMX.js";import{a as mt}from"./chunk-CLJWABT2.js";import{Cb as m,Db as o,Eb as s,Fb as M,Ia as A,Jb as I,Kb as S,Kc as ot,Lb as Z,Lc as rt,Mb as h,Ob as g,Pc as j,Qb as r,Qc as at,Tb as N,Vb as D,Wb as B,Xa as l,Xc as L,Ya as T,Yb as J,Yd as ct,Zb as X,be as gt,cc as x,cd as st,db as Q,dc as c,ec as tt,ed as pt,ee as Pt,fc as et,fd as lt,hb as O,ib as K,ic as y,jc as b,jd as dt,ka as W,kc as v,la as z,lb as Y,ma as U,mb as $,na as q,nb as E,pa as w,pc as H,rd as ut,sc as nt,ta as d,tb as G,ua as u,vb as f,vc as R,wc as it,xb as _}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var Ft=`
2
2
  .p-inputotp {
3
3
  display: flex;
4
4
  align-items: center;
@@ -19,4 +19,4 @@ import{a as Mt,d as kt}from"./chunk-6SGN7MNX.js";import{c as Et,j as It,k as F,l
19
19
  text-align: center;
20
20
  width: dt('inputotp.input.lg.width');
21
21
  }
22
- `;var Rt=["input"],jt=(i,a,t)=>({$implicit:i,events:a,index:t});function Lt(i,a){if(i&1){let t=h();I(0),o(1,"input",2),g("input",function(n){d(t);let p=r().$implicit,C=r();return u(C.onInput(n,p-1))})("focus",function(n){d(t);let p=r(2);return u(p.onInputFocus(n))})("blur",function(n){d(t);let p=r(2);return u(p.onInputBlur(n))})("paste",function(n){d(t);let p=r(2);return u(p.onPaste(n))})("keydown",function(n){d(t);let p=r(2);return u(p.onKeyDown(n))}),s(),S()}if(i&2){let t=r().$implicit,e=r();l(),x(e.cn(e.cx("pcInputText"),e.styleClass)),m("value",e.getModelValue(t))("pSize",e.size())("variant",e.$variant())("invalid",e.invalid())("pAutoFocus",e.getAutofocus(t))("pt",e.ptm("pcInputText")),G("maxlength",t===1?e.length:1)("type",e.inputType)("name",e.name())("tabindex",e.tabindex)("required",e.required()?"":void 0)("readonly",e.readonly?"":void 0)("disabled",e.$disabled()?"":void 0)}}function Wt(i,a){i&1&&Z(0)}function zt(i,a){if(i&1&&(I(0),E(1,Wt,1,0,"ng-container",3),S()),i&2){let t=r().$implicit,e=r();l(),m("ngTemplateOutlet",e.inputTemplate||e._inputTemplate)("ngTemplateOutletContext",it(2,jt,e.getToken(t-1),e.getTemplateEvents(t-1),t))}}function Ut(i,a){if(i&1&&(I(0),E(1,Lt,2,15,"ng-container",1)(2,zt,2,6,"ng-container",1),S()),i&2){let t=r();l(),m("ngIf",!t.inputTemplate&&!t._inputTemplate),l(),m("ngIf",t.inputTemplate||t._inputTemplate)}}var qt={root:"p-inputotp p-component",pcInputText:"p-inputotp-input"},Vt=(()=>{class i extends Ot{name="inputotp";style=Ft;classes=qt;static \u0275fac=(()=>{let t;return function(n){return(t||(t=A(i)))(n||i)}})();static \u0275prov=z({token:i,factory:i.\u0275fac})}return i})();var At=new q("INPUTOTP_INSTANCE"),Qt={provide:ft,useExisting:W(()=>V),multi:!0},V=(()=>{class i extends It{_componentStyle=w(Vt);$pcInputOtp=w(At,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=w(F,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}readonly;tabindex=null;length=4;styleClass;mask=!1;integerOnly=!1;autofocus;variant=j();size=j();onChange=new T;onFocus=new T;onBlur=new T;inputTemplate;templates;_inputTemplate;tokens=[];value;$variant=ot(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());get inputMode(){return this.integerOnly?"numeric":"text"}get inputType(){return this.mask?"password":"text"}onAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"input":this._inputTemplate=t.template;break;default:this._inputTemplate=t.template;break}})}getToken(t){return this.tokens[t]}getTemplateEvents(t){return{input:e=>this.onInput(e,t),keydown:e=>this.onKeyDown(e),focus:e=>this.onFocus.emit(e),blur:e=>this.onBlur.emit(e),paste:e=>this.onPaste(e)}}onInput(t,e){let n=t.target.value;if(e===0&&n.length>1){this.handleOnPaste(n,t),t.stopPropagation();return}this.tokens[e]=n,this.updateModel(t),t.inputType==="deleteContentBackward"?this.moveToPrev(t):(t.inputType==="insertText"||t.inputType==="deleteContentForward")&&this.moveToNext(t)}updateModel(t){let e=this.tokens.join("");this.writeModelValue(e),this.onModelChange(e),this.onChange.emit({originalEvent:t,value:e})}updateTokens(){this.value!==null&&this.value!==void 0?Array.isArray(this.value)?this.tokens=[...this.value]:this.tokens=this.value.toString().split(""):this.tokens=[]}getModelValue(t){return this.tokens[t-1]||""}getAutofocus(t){return t===1&&this.autofocus||!1}moveToPrev(t){let e=this.findPrevInput(t.target);e&&(e.focus(),e.select())}moveToNext(t){let e=this.findNextInput(t.target);e&&(e.focus(),e.select())}findNextInput(t){let e=t.nextElementSibling;if(e)return e.nodeName==="INPUT"?e:this.findNextInput(e)}findPrevInput(t){let e=t.previousElementSibling;if(e)return e.nodeName==="INPUT"?e:this.findPrevInput(e)}onInputFocus(t){t.target.select(),this.onFocus.emit(t)}onInputBlur(t){this.onBlur.emit(t)}onKeyDown(t){if(!(t.altKey||t.ctrlKey||t.metaKey))switch(t.code){case"ArrowLeft":this.moveToPrev(t),t.preventDefault();break;case"ArrowUp":case"ArrowDown":t.preventDefault();break;case"Backspace":t.target.value.length===0&&(this.moveToPrev(t),t.preventDefault());break;case"ArrowRight":this.moveToNext(t),t.preventDefault();break;default:(this.integerOnly&&!(Number(t.key)>=0&&Number(t.key)<=9)||this.tokens.join("").length>=this.length&&t.code!=="Delete")&&t.preventDefault();break}}onPaste(t){if(!this.$disabled()&&!this.readonly){let e=t.clipboardData.getData("text");e.length&&this.handleOnPaste(e,t),t.preventDefault()}}handleOnPaste(t,e){let n=t.substring(0,this.length+1);(!this.integerOnly||!isNaN(n))&&(this.tokens=n.split(""),this.updateModel(e))}getRange(t){return Array.from({length:t},(e,n)=>n+1)}trackByFn(t){return t}writeControlValue(t,e){t?Array.isArray(t)&&t.length>0?this.value=t.slice(0,this.length):this.value=t.toString().split("").slice(0,this.length):this.value=t,e(this.value),this.updateTokens(),this.cd.markForCheck()}static \u0275fac=(()=>{let t;return function(n){return(t||(t=A(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["p-inputOtp"],["p-inputotp"],["p-input-otp"]],contentQueries:function(e,n,p){if(e&1&&(N(p,Rt,4),N(p,Tt,4)),e&2){let C;D(C=B())&&(n.inputTemplate=C.first),D(C=B())&&(n.templates=C)}},hostVars:2,hostBindings:function(e,n){e&2&&x(n.cx("root"))},inputs:{readonly:[2,"readonly","readonly",L],tabindex:"tabindex",length:"length",styleClass:"styleClass",mask:"mask",integerOnly:"integerOnly",autofocus:[2,"autofocus","autofocus",L],variant:[1,"variant"],size:[1,"size"]},outputs:{onChange:"onChange",onFocus:"onFocus",onBlur:"onBlur"},features:[nt([Qt,Vt,{provide:At,useExisting:i},{provide:Et,useExisting:i}]),$([F]),Y],decls:1,vars:2,consts:[[4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],["type","text","pInputText","",3,"input","focus","blur","paste","keydown","value","pSize","variant","invalid","pAutoFocus","pt"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,n){e&1&&E(0,Ut,3,2,"ng-container",0),e&2&&m("ngForOf",n.getRange(n.length))("ngForTrackBy",n.trackByFn)},dependencies:[ut,pt,lt,dt,kt,Mt,k,St],encapsulation:2,changeDetection:0})}return i})(),Nt=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=K({type:i});static \u0275inj=U({imports:[V,k,k]})}return i})();var Yt=["otpInput"],Dt=(i,a)=>({"rounded-end":i,"border-end-0":a});function $t(i,a){if(i&1){let t=h();o(0,"form",11),g("submit",function(){d(t);let n=r();return u(n.requestOtp(n.Email))}),o(1,"h1",12),c(2,"Forgot Password"),s(),o(3,"h6",13),c(4,"Enter the username or email address to reset password"),s(),o(5,"div",14)(6,"div",15)(7,"span"),M(8,"i",16),s()(),o(9,"input",17),v("ngModelChange",function(n){d(t);let p=r();return b(p.Email,n)||(p.Email=n),u(n)}),s()(),o(10,"div",18)(11,"button",19),c(12,"Reset Password"),s()(),o(13,"a",20),c(14,"Return to log in"),s()()}if(i&2){let t=r();l(9),y("ngModel",t.Email),l(2),m("disabled",!t.Email)}}function Gt(i,a){if(i&1){let t=h();o(0,"form",11),g("submit",function(){d(t);let n=r();return u(n.verifyOtp(n.otpEmail,n.otp))}),o(1,"h1",21),c(2,"OTP Code Verification"),s(),o(3,"h6",13),c(4,"Please enter the 6 digit code sent to "),o(5,"span",22),c(6),s()(),o(7,"div",23)(8,"p-inputOtp",24,0),v("ngModelChange",function(n){d(t);let p=r();return b(p.otp,n)||(p.otp=n),u(n)}),g("ngModelChange",function(){d(t);let n=r();return u(n.onInputOtp())}),s()(),o(10,"h6",25),c(11,"Didn't get a code? "),o(12,"span",26),g("click",function(){d(t);let n=r();return u(n.requestOtp(n.otpEmail))}),c(13,"Click to resend"),s()(),o(14,"div",18)(15,"button",19),c(16,"Verify"),s()()()}if(i&2){let t=r();l(6),tt(t.otpEmail),l(2),m("integerOnly",!0),y("ngModel",t.otp),m("autofocus",!0),l(7),m("disabled",!t.otp)}}function Zt(i,a){if(i&1){let t=h();o(0,"i",33),g("click",function(){d(t);let n=r(3);return u(n.showPassword())}),s()}if(i&2){let t=r(3);x(H("",t.showHideClass," fas"))}}function Jt(i,a){if(i&1&&(o(0,"span",30),f(1,Zt,1,3,"i",32),s()),i&2){let t=r(2);l(),_(t.password?1:-1)}}function Xt(i,a){if(i&1){let t=h();o(0,"i",33),g("click",function(){d(t);let n=r(3);return u(n.showPassword())}),s()}if(i&2){let t=r(3);x(H("",t.showHideClassConfirm," fas"))}}function te(i,a){if(i&1&&(o(0,"span",30),f(1,Xt,1,3,"i",32),s()),i&2){let t=r(2);l(),_(t.password?1:-1)}}function ee(i,a){if(i&1){let t=h();o(0,"form",11),g("submit",function(){d(t);let n=r();return u(n.changePassword(n.otpEmail,n.otp,n.password))}),o(1,"h1",21),c(2,"Create New Password"),s(),o(3,"h6",13),c(4,"Create a strong password to keep your account safe"),s(),o(5,"div",27)(6,"div",28)(7,"input",29),v("ngModelChange",function(n){d(t);let p=r();return b(p.password,n)||(p.password=n),u(n)}),s(),f(8,Jt,2,1,"span",30),s(),o(9,"div",28)(10,"input",31),v("ngModelChange",function(n){d(t);let p=r();return b(p.confirmPassword,n)||(p.confirmPassword=n),u(n)}),s(),f(11,te,2,1,"span",30),s()(),o(12,"div",18)(13,"button",19),c(14,"Change Password"),s()()()}if(i&2){let t=r();l(7),m("type",t.inputType)("ngClass",R(9,Dt,t.browserType=="edge",t.browserType!="edge")),y("ngModel",t.password),l(),_(t.browserType!="edge"?8:-1),l(2),m("type",t.inputConfirm)("ngClass",R(12,Dt,t.browserType=="edge",t.browserType!="edge")),y("ngModel",t.confirmPassword),l(),_(t.browserType!="edge"?11:-1),l(2),m("disabled",(!t.password||!t.confirmPassword)&&t.password!=t.confirmPassword)}}var Bt=class i{constructor(a){this.httpService=a;document.title="Outlet | Forgot Password Form",this.alert={Visible:!1,Message:null,Success:!1},this.showHideClass="fas fa-eye fas",this.showHideClassConfirm="fas fa-eye fas",this.browserType=this.findname_browser(),rt(()=>{let t=e=>{e.key==="Enter"&&(e.preventDefault(),this.verifyOtp(this.otpEmail,this.otp))};this.otpInputEl()?document.querySelector(".otp-input input:last-child").addEventListener("keyup",t):document.removeEventListener("keyup",t)})}otpInputEl=at("otpInput");appVersion=mt.version;showHideClass;showHideClassConfirm;inputType="password";inputConfirm="password";password;confirmPassword;browserType;Email;alert;toastr=w(gt);state="Email";otp="";otpEmail="";router=w(ct);findname_browser(){var a=window.navigator.userAgent;if(a.indexOf("Edg/")>-1)return"edge";var t={chrome:/chrome/i,safari:/safari/i,firefox:/firefox/i,ie:/internet explorer/i,edge:/edg/i};for(var e in t)if(t[e].test(a))return e;return"unknown"}ngOnInit(){document.body.classList.add("login-body")}ngOnDestroy(){document.body.classList.remove("login-body")}showPassword(){this.showHideClass=this.showHideClass=="fas fa-eye fas"?"fas fas fa-eye-slash":"fas fa-eye fas",this.inputType=this.showHideClass=="fas fa-eye fas"?"password":"text",this.showHideClassConfirm=this.showHideClassConfirm=="fas fa-eye fas"?"fas fas fa-eye-slash":"fas fa-eye fas",this.inputConfirm=this.showHideClassConfirm=="fas fa-eye fas"?"password":"text"}Submit(){let a={Email:this.Email};this.httpService.post("/api/login/SubmitForgotPassword",a).subscribe({next:t=>{this.alert.Visible=!0,this.alert.Success=!0,this.alert.Message=t.Message},error:t=>{this.alert.Visible=!0,this.alert.Message=t?.error?.Message?t?.error?.Message:t?.error}})}requestOtp(a){this.httpService.post("/api/password/requestotp",{email:a}).subscribe(t=>{this.toastr.info(`OTP sent to ${t.otpEmailTarget}`,P.Info),this.otpEmail=t.otpEmailTarget,this.state="OTP"})}onInputOtp(){this.otp.length==6&&this.verifyOtp(this.otpEmail,this.otp)}verifyOtp(a,t){this.httpService.post("/api/password/verifyotp",{email:a,otp:t}).subscribe(e=>{e.success?(this.toastr.info("You can update your password",P.Info),this.state="Password"):this.toastr.info("You input the wrong OTP",P.Error)})}changePassword(a,t,e){this.httpService.post("/api/password/change",{email:a,otp:t,newPassword:e}).subscribe(()=>{this.toastr.info("Your password has been changed",P.Info),this.router.navigate(["/"])})}static \u0275fac=function(t){return new(t||i)(Q(Pt))};static \u0275cmp=O({type:i,selectors:[["POS-auth-forgot-password"]],viewQuery:function(t,e){t&1&&J(e.otpInputEl,Yt,5),t&2&&X()},decls:15,vars:4,consts:[["otpInput",""],[1,"container-fluid"],[1,"d-flex","justify-content-center","align-items-center","vh-100"],[1,"card",2,"width","30rem"],[1,"card-body","p-12"],[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","href","https://changelog.dealpos.com/?categories=cat_gAZdRhBYU7QVl&view=complete&v",1,"text-dark","fst-italic"],[1,"fa-solid","fa-circle-exclamation","ms-2",2,"font-size","16px"],[3,"submit"],[1,"mt-8","fw-normal",2,"margin-bottom","1.3rem"],[1,"fw-normal","text-start",2,"font-size","0.8rem"],[1,"input-group","input-group-lg","mb-3","my-5"],[1,"input-group-text","input-group-text","rounded-start"],[1,"fas","fa-user","fa-lg"],["type","text","data-cy","username","placeholder","Username / Email","aria-label","Username","name","email","aria-describedby","basic-addon1",1,"form-control","form-control-lg","rounded-end","ps-2","border-start-0",2,"height","50px",3,"ngModelChange","ngModel"],[1,"my-6"],["type","submit",1,"btn","btn-primary","w-100",3,"disabled"],["href","/",1,"mt-6"],[1,"mt-8","fw-normal",2,"margin-bottom","3rem"],[1,"fw-bold"],[1,"mb-3","my-5","d-flex","justify-content-center"],["length","6","name","otp",1,"otp-input",3,"ngModelChange","integerOnly","ngModel","autofocus"],[1,"fw-normal","text-start"],[1,"text-primary","pointer",3,"click"],[1,"mb-3","my-5"],[1,"input-group","input-group-lg","mt-8"],["id","txtPassword","data-cy","password","placeholder","New Password","aria-label","Password","aria-describedby","basic-addon1","autofocus","","name","password",1,"form-control","form-control-lg","rounded-end","ps-5",2,"height","50px",3,"ngModelChange","type","ngClass","ngModel"],[1,"input-group-text","border-start-0","rounded-end"],["id","txtPassword","data-cy","password","placeholder","Confirm New Password","aria-label","Password","aria-describedby","basic-addon1","autofocus","","name","password",1,"form-control","form-control-lg","rounded-end","ps-5",2,"height","50px",3,"ngModelChange","type","ngClass","ngModel"],[3,"class"],[3,"click"]],template:function(t,e){t&1&&(o(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4),f(4,$t,15,2,"form"),f(5,Gt,17,5,"form"),f(6,ee,15,15,"form"),s()()(),o(7,"div",5)(8,"span",6),c(9,"powered by :"),s(),M(10,"a",7),s(),o(11,"div",8)(12,"a",9),c(13),M(14,"i",10),s()()()),t&2&&(l(4),_(e.state=="Email"?4:-1),l(),_(e.state=="OTP"?5:-1),l(),_(e.state=="Password"?6:-1),l(7),et("version ",e.appVersion))},dependencies:[st,vt,yt,_t,ht,wt,bt,xt,Ct,Nt,V],styles:["input[type=submit][_ngcontent-%COMP%]{font-size:1.125rem;width:11.25rem;font-family:Roboto Slab,serif}@media screen and (max-width: 768px){.footer-mobile[_ngcontent-%COMP%]{display:flex!important;justify-content:center!important}div.vh-100[_ngcontent-%COMP%]{height:40vh!important}.fixed-bottom[_ngcontent-%COMP%]{position:static!important}input[type=submit][_ngcontent-%COMP%]{width:98%}.card[_ngcontent-%COMP%]{border:none}} p-inputOtp{width:100%} p-inputOtp input{flex-grow:1;height:42px}.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}}.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}"]})};export{Bt as AuthForgotPasswordComponent};
22
+ `;var Rt=["input"],jt=(i,a,t)=>({$implicit:i,events:a,index:t});function Lt(i,a){if(i&1){let t=h();I(0),o(1,"input",2),g("input",function(n){d(t);let p=r().$implicit,C=r();return u(C.onInput(n,p-1))})("focus",function(n){d(t);let p=r(2);return u(p.onInputFocus(n))})("blur",function(n){d(t);let p=r(2);return u(p.onInputBlur(n))})("paste",function(n){d(t);let p=r(2);return u(p.onPaste(n))})("keydown",function(n){d(t);let p=r(2);return u(p.onKeyDown(n))}),s(),S()}if(i&2){let t=r().$implicit,e=r();l(),x(e.cn(e.cx("pcInputText"),e.styleClass)),m("value",e.getModelValue(t))("pSize",e.size())("variant",e.$variant())("invalid",e.invalid())("pAutoFocus",e.getAutofocus(t))("pt",e.ptm("pcInputText")),G("maxlength",t===1?e.length:1)("type",e.inputType)("name",e.name())("tabindex",e.tabindex)("required",e.required()?"":void 0)("readonly",e.readonly?"":void 0)("disabled",e.$disabled()?"":void 0)}}function Wt(i,a){i&1&&Z(0)}function zt(i,a){if(i&1&&(I(0),E(1,Wt,1,0,"ng-container",3),S()),i&2){let t=r().$implicit,e=r();l(),m("ngTemplateOutlet",e.inputTemplate||e._inputTemplate)("ngTemplateOutletContext",it(2,jt,e.getToken(t-1),e.getTemplateEvents(t-1),t))}}function Ut(i,a){if(i&1&&(I(0),E(1,Lt,2,15,"ng-container",1)(2,zt,2,6,"ng-container",1),S()),i&2){let t=r();l(),m("ngIf",!t.inputTemplate&&!t._inputTemplate),l(),m("ngIf",t.inputTemplate||t._inputTemplate)}}var qt={root:"p-inputotp p-component",pcInputText:"p-inputotp-input"},Vt=(()=>{class i extends Ot{name="inputotp";style=Ft;classes=qt;static \u0275fac=(()=>{let t;return function(n){return(t||(t=A(i)))(n||i)}})();static \u0275prov=z({token:i,factory:i.\u0275fac})}return i})();var At=new q("INPUTOTP_INSTANCE"),Qt={provide:ft,useExisting:W(()=>V),multi:!0},V=(()=>{class i extends It{_componentStyle=w(Vt);$pcInputOtp=w(At,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=w(F,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}readonly;tabindex=null;length=4;styleClass;mask=!1;integerOnly=!1;autofocus;variant=j();size=j();onChange=new T;onFocus=new T;onBlur=new T;inputTemplate;templates;_inputTemplate;tokens=[];value;$variant=ot(()=>this.variant()||this.config.inputStyle()||this.config.inputVariant());get inputMode(){return this.integerOnly?"numeric":"text"}get inputType(){return this.mask?"password":"text"}onAfterContentInit(){this.templates.forEach(t=>{switch(t.getType()){case"input":this._inputTemplate=t.template;break;default:this._inputTemplate=t.template;break}})}getToken(t){return this.tokens[t]}getTemplateEvents(t){return{input:e=>this.onInput(e,t),keydown:e=>this.onKeyDown(e),focus:e=>this.onFocus.emit(e),blur:e=>this.onBlur.emit(e),paste:e=>this.onPaste(e)}}onInput(t,e){let n=t.target.value;if(e===0&&n.length>1){this.handleOnPaste(n,t),t.stopPropagation();return}this.tokens[e]=n,this.updateModel(t),t.inputType==="deleteContentBackward"?this.moveToPrev(t):(t.inputType==="insertText"||t.inputType==="deleteContentForward")&&this.moveToNext(t)}updateModel(t){let e=this.tokens.join("");this.writeModelValue(e),this.onModelChange(e),this.onChange.emit({originalEvent:t,value:e})}updateTokens(){this.value!==null&&this.value!==void 0?Array.isArray(this.value)?this.tokens=[...this.value]:this.tokens=this.value.toString().split(""):this.tokens=[]}getModelValue(t){return this.tokens[t-1]||""}getAutofocus(t){return t===1&&this.autofocus||!1}moveToPrev(t){let e=this.findPrevInput(t.target);e&&(e.focus(),e.select())}moveToNext(t){let e=this.findNextInput(t.target);e&&(e.focus(),e.select())}findNextInput(t){let e=t.nextElementSibling;if(e)return e.nodeName==="INPUT"?e:this.findNextInput(e)}findPrevInput(t){let e=t.previousElementSibling;if(e)return e.nodeName==="INPUT"?e:this.findPrevInput(e)}onInputFocus(t){t.target.select(),this.onFocus.emit(t)}onInputBlur(t){this.onBlur.emit(t)}onKeyDown(t){if(!(t.altKey||t.ctrlKey||t.metaKey))switch(t.code){case"ArrowLeft":this.moveToPrev(t),t.preventDefault();break;case"ArrowUp":case"ArrowDown":t.preventDefault();break;case"Backspace":t.target.value.length===0&&(this.moveToPrev(t),t.preventDefault());break;case"ArrowRight":this.moveToNext(t),t.preventDefault();break;default:(this.integerOnly&&!(Number(t.key)>=0&&Number(t.key)<=9)||this.tokens.join("").length>=this.length&&t.code!=="Delete")&&t.preventDefault();break}}onPaste(t){if(!this.$disabled()&&!this.readonly){let e=t.clipboardData.getData("text");e.length&&this.handleOnPaste(e,t),t.preventDefault()}}handleOnPaste(t,e){let n=t.substring(0,this.length+1);(!this.integerOnly||!isNaN(n))&&(this.tokens=n.split(""),this.updateModel(e))}getRange(t){return Array.from({length:t},(e,n)=>n+1)}trackByFn(t){return t}writeControlValue(t,e){t?Array.isArray(t)&&t.length>0?this.value=t.slice(0,this.length):this.value=t.toString().split("").slice(0,this.length):this.value=t,e(this.value),this.updateTokens(),this.cd.markForCheck()}static \u0275fac=(()=>{let t;return function(n){return(t||(t=A(i)))(n||i)}})();static \u0275cmp=O({type:i,selectors:[["p-inputOtp"],["p-inputotp"],["p-input-otp"]],contentQueries:function(e,n,p){if(e&1&&(N(p,Rt,4),N(p,Tt,4)),e&2){let C;D(C=B())&&(n.inputTemplate=C.first),D(C=B())&&(n.templates=C)}},hostVars:2,hostBindings:function(e,n){e&2&&x(n.cx("root"))},inputs:{readonly:[2,"readonly","readonly",L],tabindex:"tabindex",length:"length",styleClass:"styleClass",mask:"mask",integerOnly:"integerOnly",autofocus:[2,"autofocus","autofocus",L],variant:[1,"variant"],size:[1,"size"]},outputs:{onChange:"onChange",onFocus:"onFocus",onBlur:"onBlur"},features:[nt([Qt,Vt,{provide:At,useExisting:i},{provide:Et,useExisting:i}]),$([F]),Y],decls:1,vars:2,consts:[[4,"ngFor","ngForOf","ngForTrackBy"],[4,"ngIf"],["type","text","pInputText","",3,"input","focus","blur","paste","keydown","value","pSize","variant","invalid","pAutoFocus","pt"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,n){e&1&&E(0,Ut,3,2,"ng-container",0),e&2&&m("ngForOf",n.getRange(n.length))("ngForTrackBy",n.trackByFn)},dependencies:[ut,pt,lt,dt,kt,Mt,k,St],encapsulation:2,changeDetection:0})}return i})(),Nt=(()=>{class i{static \u0275fac=function(e){return new(e||i)};static \u0275mod=K({type:i});static \u0275inj=U({imports:[V,k,k]})}return i})();var Yt=["otpInput"],Dt=(i,a)=>({"rounded-end":i,"border-end-0":a});function $t(i,a){if(i&1){let t=h();o(0,"form",11),g("submit",function(){d(t);let n=r();return u(n.requestOtp(n.Email))}),o(1,"h1",12),c(2,"Forgot Password"),s(),o(3,"h6",13),c(4,"Enter the username or email address to reset password"),s(),o(5,"div",14)(6,"div",15)(7,"span"),M(8,"i",16),s()(),o(9,"input",17),v("ngModelChange",function(n){d(t);let p=r();return b(p.Email,n)||(p.Email=n),u(n)}),s()(),o(10,"div",18)(11,"button",19),c(12,"Reset Password"),s()(),o(13,"a",20),c(14,"Return to log in"),s()()}if(i&2){let t=r();l(9),y("ngModel",t.Email),l(2),m("disabled",!t.Email)}}function Gt(i,a){if(i&1){let t=h();o(0,"form",11),g("submit",function(){d(t);let n=r();return u(n.verifyOtp(n.otpEmail,n.otp))}),o(1,"h1",21),c(2,"OTP Code Verification"),s(),o(3,"h6",13),c(4,"Please enter the 6 digit code sent to "),o(5,"span",22),c(6),s()(),o(7,"div",23)(8,"p-inputOtp",24,0),v("ngModelChange",function(n){d(t);let p=r();return b(p.otp,n)||(p.otp=n),u(n)}),g("ngModelChange",function(){d(t);let n=r();return u(n.onInputOtp())}),s()(),o(10,"h6",25),c(11,"Didn't get a code? "),o(12,"span",26),g("click",function(){d(t);let n=r();return u(n.requestOtp(n.otpEmail))}),c(13,"Click to resend"),s()(),o(14,"div",18)(15,"button",19),c(16,"Verify"),s()()()}if(i&2){let t=r();l(6),tt(t.otpEmail),l(2),m("integerOnly",!0),y("ngModel",t.otp),m("autofocus",!0),l(7),m("disabled",!t.otp)}}function Zt(i,a){if(i&1){let t=h();o(0,"i",33),g("click",function(){d(t);let n=r(3);return u(n.showPassword())}),s()}if(i&2){let t=r(3);x(H("",t.showHideClass," fas"))}}function Jt(i,a){if(i&1&&(o(0,"span",30),f(1,Zt,1,3,"i",32),s()),i&2){let t=r(2);l(),_(t.password?1:-1)}}function Xt(i,a){if(i&1){let t=h();o(0,"i",33),g("click",function(){d(t);let n=r(3);return u(n.showPassword())}),s()}if(i&2){let t=r(3);x(H("",t.showHideClassConfirm," fas"))}}function te(i,a){if(i&1&&(o(0,"span",30),f(1,Xt,1,3,"i",32),s()),i&2){let t=r(2);l(),_(t.password?1:-1)}}function ee(i,a){if(i&1){let t=h();o(0,"form",11),g("submit",function(){d(t);let n=r();return u(n.changePassword(n.otpEmail,n.otp,n.password))}),o(1,"h1",21),c(2,"Create New Password"),s(),o(3,"h6",13),c(4,"Create a strong password to keep your account safe"),s(),o(5,"div",27)(6,"div",28)(7,"input",29),v("ngModelChange",function(n){d(t);let p=r();return b(p.password,n)||(p.password=n),u(n)}),s(),f(8,Jt,2,1,"span",30),s(),o(9,"div",28)(10,"input",31),v("ngModelChange",function(n){d(t);let p=r();return b(p.confirmPassword,n)||(p.confirmPassword=n),u(n)}),s(),f(11,te,2,1,"span",30),s()(),o(12,"div",18)(13,"button",19),c(14,"Change Password"),s()()()}if(i&2){let t=r();l(7),m("type",t.inputType)("ngClass",R(9,Dt,t.browserType=="edge",t.browserType!="edge")),y("ngModel",t.password),l(),_(t.browserType!="edge"?8:-1),l(2),m("type",t.inputConfirm)("ngClass",R(12,Dt,t.browserType=="edge",t.browserType!="edge")),y("ngModel",t.confirmPassword),l(),_(t.browserType!="edge"?11:-1),l(2),m("disabled",(!t.password||!t.confirmPassword)&&t.password!=t.confirmPassword)}}var Bt=class i{constructor(a){this.httpService=a;document.title="Outlet | Forgot Password Form",this.alert={Visible:!1,Message:null,Success:!1},this.showHideClass="fas fa-eye fas",this.showHideClassConfirm="fas fa-eye fas",this.browserType=this.findname_browser(),rt(()=>{let t=e=>{e.key==="Enter"&&(e.preventDefault(),this.verifyOtp(this.otpEmail,this.otp))};this.otpInputEl()?document.querySelector(".otp-input input:last-child").addEventListener("keyup",t):document.removeEventListener("keyup",t)})}otpInputEl=at("otpInput");appVersion=mt.version;showHideClass;showHideClassConfirm;inputType="password";inputConfirm="password";password;confirmPassword;browserType;Email;alert;toastr=w(gt);state="Email";otp="";otpEmail="";router=w(ct);findname_browser(){var a=window.navigator.userAgent;if(a.indexOf("Edg/")>-1)return"edge";var t={chrome:/chrome/i,safari:/safari/i,firefox:/firefox/i,ie:/internet explorer/i,edge:/edg/i};for(var e in t)if(t[e].test(a))return e;return"unknown"}ngOnInit(){document.body.classList.add("login-body")}ngOnDestroy(){document.body.classList.remove("login-body")}showPassword(){this.showHideClass=this.showHideClass=="fas fa-eye fas"?"fas fas fa-eye-slash":"fas fa-eye fas",this.inputType=this.showHideClass=="fas fa-eye fas"?"password":"text",this.showHideClassConfirm=this.showHideClassConfirm=="fas fa-eye fas"?"fas fas fa-eye-slash":"fas fa-eye fas",this.inputConfirm=this.showHideClassConfirm=="fas fa-eye fas"?"password":"text"}Submit(){let a={Email:this.Email};this.httpService.post("/api/login/SubmitForgotPassword",a).subscribe({next:t=>{this.alert.Visible=!0,this.alert.Success=!0,this.alert.Message=t.Message},error:t=>{this.alert.Visible=!0,this.alert.Message=t?.error?.Message?t?.error?.Message:t?.error}})}requestOtp(a){this.httpService.post("/api/password/requestotp",{email:a}).subscribe(t=>{this.toastr.info(`OTP sent to ${t.otpEmailTarget}`,P.Info),this.otpEmail=t.otpEmailTarget,this.state="OTP"})}onInputOtp(){this.otp.length==6&&this.verifyOtp(this.otpEmail,this.otp)}verifyOtp(a,t){this.httpService.post("/api/password/verifyotp",{email:a,otp:t}).subscribe(e=>{e.success?(this.toastr.info("You can update your password",P.Info),this.state="Password"):this.toastr.info("You input the wrong OTP",P.Error)})}changePassword(a,t,e){this.httpService.post("/api/password/change",{email:a,otp:t,newPassword:e}).subscribe(()=>{this.toastr.info("Your password has been changed",P.Info),this.router.navigate(["/"])})}static \u0275fac=function(t){return new(t||i)(Q(Pt))};static \u0275cmp=O({type:i,selectors:[["POS-auth-forgot-password"]],viewQuery:function(t,e){t&1&&J(e.otpInputEl,Yt,5),t&2&&X()},decls:15,vars:4,consts:[["otpInput",""],[1,"container-fluid"],[1,"d-flex","justify-content-center","align-items-center","vh-100"],[1,"card",2,"width","30rem"],[1,"card-body","p-12"],[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","href","https://changelog.dealpos.com/?categories=cat_gAZdRhBYU7QVl&view=complete&v",1,"text-dark","fst-italic"],[1,"fa-solid","fa-circle-exclamation","ms-2",2,"font-size","16px"],[3,"submit"],[1,"mt-8","fw-normal",2,"margin-bottom","1.3rem"],[1,"fw-normal","text-start",2,"font-size","0.8rem"],[1,"input-group","input-group-lg","mb-3","my-5"],[1,"input-group-text","input-group-text","rounded-start"],[1,"fas","fa-user","fa-lg"],["type","text","data-cy","username","placeholder","Username / Email","aria-label","Username","name","email","aria-describedby","basic-addon1",1,"form-control","form-control-lg","rounded-end","ps-2","border-start-0",2,"height","50px",3,"ngModelChange","ngModel"],[1,"my-6"],["type","submit",1,"btn","btn-primary","w-100",3,"disabled"],["href","/",1,"mt-6"],[1,"mt-8","fw-normal",2,"margin-bottom","3rem"],[1,"fw-bold"],[1,"mb-3","my-5","d-flex","justify-content-center"],["length","6","name","otp",1,"otp-input",3,"ngModelChange","integerOnly","ngModel","autofocus"],[1,"fw-normal","text-start"],[1,"text-primary","pointer",3,"click"],[1,"mb-3","my-5"],[1,"input-group","input-group-lg","mt-8"],["id","txtPassword","data-cy","password","placeholder","New Password","aria-label","Password","aria-describedby","basic-addon1","autofocus","","name","password",1,"form-control","form-control-lg","rounded-end","ps-5",2,"height","50px",3,"ngModelChange","type","ngClass","ngModel"],[1,"input-group-text","border-start-0","rounded-end"],["id","txtPassword","data-cy","password","placeholder","Confirm New Password","aria-label","Password","aria-describedby","basic-addon1","autofocus","","name","password",1,"form-control","form-control-lg","rounded-end","ps-5",2,"height","50px",3,"ngModelChange","type","ngClass","ngModel"],[3,"class"],[3,"click"]],template:function(t,e){t&1&&(o(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4),f(4,$t,15,2,"form"),f(5,Gt,17,5,"form"),f(6,ee,15,15,"form"),s()()(),o(7,"div",5)(8,"span",6),c(9,"powered by :"),s(),M(10,"a",7),s(),o(11,"div",8)(12,"a",9),c(13),M(14,"i",10),s()()()),t&2&&(l(4),_(e.state=="Email"?4:-1),l(),_(e.state=="OTP"?5:-1),l(),_(e.state=="Password"?6:-1),l(7),et("version ",e.appVersion))},dependencies:[st,vt,yt,_t,ht,wt,bt,xt,Ct,Nt,V],styles:["input[type=submit][_ngcontent-%COMP%]{font-size:1.125rem;width:11.25rem;font-family:Roboto Slab,serif}@media screen and (max-width: 768px){.footer-mobile[_ngcontent-%COMP%]{display:flex!important;justify-content:center!important}div.vh-100[_ngcontent-%COMP%]{height:40vh!important}.fixed-bottom[_ngcontent-%COMP%]{position:static!important}input[type=submit][_ngcontent-%COMP%]{width:98%}.card[_ngcontent-%COMP%]{border:none}} p-inputOtp{width:100%} p-inputOtp input{flex-grow:1;height:42px}.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(https://cdn.dealpos.app/public/logo/dealpos_130.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}}.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}"]})};export{Bt as AuthForgotPasswordComponent};
@@ -1,4 +1,4 @@
1
- import{a as We}from"./chunk-5ZMTBZT3.js";import{a as Ct,b as vn}from"./chunk-ZXSVZL53.js";import{a as Ne}from"./chunk-QBUTQU3U.js";import{a as gn}from"./chunk-UFBRV4CF.js";import{a as _n}from"./chunk-5L54U63F.js";import{a as bn}from"./chunk-R4H3DENZ.js";import{a as dn}from"./chunk-3PC6CTVP.js";import{a as ee,b as te}from"./chunk-BY57IAJ7.js";import{b as fn}from"./chunk-GI7KMXBX.js";import{a as X}from"./chunk-YFKW562E.js";import"./chunk-BYXBJQAS.js";import{a as pn}from"./chunk-QEOGHVXA.js";import{b as Xt,c as en,d as tn,e as nn}from"./chunk-INHUUGSI.js";import{e as sn,f as un}from"./chunk-PCBQ5MJX.js";import{a as cn}from"./chunk-IDQUQBKL.js";import{a as vt,b as mn}from"./chunk-TGEQUV6Z.js";import"./chunk-ZOP4QRJ5.js";import{b as an}from"./chunk-4PALKQ75.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import{C as Ke}from"./chunk-QZMZBCE7.js";import{b as Z,c as J}from"./chunk-C4WJKF7R.js";import{G as Qe,N as fe,O as rn,o as ln}from"./chunk-NZYZO47Z.js";import{g as on}from"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import{b as Zt,c as Ve,d as Fe,k as H,l as de}from"./chunk-L76WVZW6.js";import{a as we}from"./chunk-2FWFPV5I.js";import{G as bt,J as Re,X as gt,j as ft,m as Kt,oa as Jt,pa as _t,w as Wt,x as Yt,xa as ke,y as Ae}from"./chunk-O5SLP4JK.js";import{F as Qt}from"./chunk-RNLSEEMX.js";import"./chunk-U5KSGGL5.js";import"./chunk-25YHVZV6.js";import{a as Oe,d as A}from"./chunk-USJ6ILEE.js";import"./chunk-GVPC56QQ.js";import{$d as j,Ab as ue,Bb as pe,Bc as h,Ca as ge,Cb as s,Cc as T,Db as i,Dc as G,Eb as a,Ed as qt,Fb as u,Hc as D,Ia as Q,Ja as Pt,Kc as B,Lb as P,Lc as qe,Mb as q,Nb as Vt,Ob as N,Pc as _,Qb as m,Rb as Ee,Rc as Ht,Sa as Mt,Sb as De,Tb as je,Tc as ze,Ub as Pe,Vb as oe,Wb as ae,Wd as zt,Xa as l,Xb as Ft,Xc as ve,Y as It,Ya as Ue,Yc as Ut,Yd as Gt,Zb as Nt,Zd as U,_b as I,aa as mt,ac as Bt,be as $t,cc as z,cd as W,db as re,dc as p,ec as x,ee as $e,fa as Et,fc as k,gc as Ot,hb as C,ib as wt,ic as At,jc as Rt,jd as O,ka as Be,kc as Lt,kd as jt,la as xe,lb as se,ma as Dt,mb as Se,md as me,na as Te,nb as v,od as Y,pa as g,rd as y,sc as ce,sd as Ge,t as ct,ta as V,tb as _e,tc as E,ua as F,uc as M,va as dt,vb as d,vc as K,wc as Me,xb as f,yb as Ie,zb as kt}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import{a as xt,b as Tt,k as St}from"./chunk-SNAKHGZS.js";var Cn=`
1
+ import{a as We}from"./chunk-5ZMTBZT3.js";import{a as Ct,b as vn}from"./chunk-ZXSVZL53.js";import{a as Ne}from"./chunk-66MCBKC7.js";import{a as gn}from"./chunk-UFBRV4CF.js";import{a as _n}from"./chunk-5L54U63F.js";import{a as bn}from"./chunk-FX72NG5O.js";import{a as dn}from"./chunk-3PC6CTVP.js";import{a as ee,b as te}from"./chunk-BY57IAJ7.js";import{b as fn}from"./chunk-GI7KMXBX.js";import{a as X}from"./chunk-3GPGJFQV.js";import"./chunk-BYXBJQAS.js";import{a as pn}from"./chunk-QEOGHVXA.js";import{b as Xt,c as en,d as tn,e as nn}from"./chunk-INHUUGSI.js";import{e as sn,f as un}from"./chunk-CGISR53W.js";import{a as cn}from"./chunk-IDQUQBKL.js";import{a as vt,b as mn}from"./chunk-TGEQUV6Z.js";import"./chunk-6FM7DAHK.js";import{b as an}from"./chunk-DGXQDOCM.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import{C as Ke}from"./chunk-QZMZBCE7.js";import{b as Z,c as J}from"./chunk-C4WJKF7R.js";import{G as Qe,N as fe,O as rn,o as ln}from"./chunk-NZYZO47Z.js";import{g as on}from"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import{b as Zt,c as Ve,d as Fe,k as H,l as de}from"./chunk-L76WVZW6.js";import{a as we}from"./chunk-2FWFPV5I.js";import{G as bt,J as Re,X as gt,j as ft,m as Kt,oa as Jt,pa as _t,w as Wt,x as Yt,xa as ke,y as Ae}from"./chunk-O5SLP4JK.js";import{F as Qt}from"./chunk-RNLSEEMX.js";import"./chunk-JVFZL3LP.js";import"./chunk-TVZ622KQ.js";import{a as Oe,d as A}from"./chunk-USJ6ILEE.js";import"./chunk-CLJWABT2.js";import{$d as j,Ab as ue,Bb as pe,Bc as h,Ca as ge,Cb as s,Cc as T,Db as i,Dc as G,Eb as a,Ed as qt,Fb as u,Hc as D,Ia as Q,Ja as Pt,Kc as B,Lb as P,Lc as qe,Mb as q,Nb as Vt,Ob as N,Pc as _,Qb as m,Rb as Ee,Rc as Ht,Sa as Mt,Sb as De,Tb as je,Tc as ze,Ub as Pe,Vb as oe,Wb as ae,Wd as zt,Xa as l,Xb as Ft,Xc as ve,Y as It,Ya as Ue,Yc as Ut,Yd as Gt,Zb as Nt,Zd as U,_b as I,aa as mt,ac as Bt,be as $t,cc as z,cd as W,db as re,dc as p,ec as x,ee as $e,fa as Et,fc as k,gc as Ot,hb as C,ib as wt,ic as At,jc as Rt,jd as O,ka as Be,kc as Lt,kd as jt,la as xe,lb as se,ma as Dt,mb as Se,md as me,na as Te,nb as v,od as Y,pa as g,rd as y,sc as ce,sd as Ge,t as ct,ta as V,tb as _e,tc as E,ua as F,uc as M,va as dt,vb as d,vc as K,wc as Me,xb as f,yb as Ie,zb as kt}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import{a as xt,b as Tt,k as St}from"./chunk-SNAKHGZS.js";var Cn=`
2
2
  .p-tabs {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -0,0 +1 @@
1
+ import{a as Pe}from"./chunk-ZVBZGOUU.js";import{a as Ce}from"./chunk-AFBBEIKR.js";import{a as _e}from"./chunk-BR3Y2C2F.js";import{a as be}from"./chunk-JUS6LLVX.js";import{b as Se,c as Me}from"./chunk-C4WJKF7R.js";import{a as de}from"./chunk-RLQLFW36.js";import"./chunk-EQLHPWVB.js";import"./chunk-NWSIPELM.js";import{F as ge,b as me,h as fe,o as he}from"./chunk-RNLSEEMX.js";import{a as T,c as f}from"./chunk-JVFZL3LP.js";import{a as ve}from"./chunk-TVZ622KQ.js";import{a as M,d as I}from"./chunk-USJ6ILEE.js";import{a as pe}from"./chunk-CLJWABT2.js";import{$ as q,$d as G,Ab as F,Bb as V,Bc as ie,Cb as h,Db as o,Dc as ne,E,Eb as s,Fb as p,Ob as C,Qb as Z,Sa as Y,Vd as ae,Xa as c,Xd as se,Yd as b,Zd as le,_d as ce,ac as K,be as ue,cc as $,cd as re,d as J,da as D,db as v,dc as m,ec as B,fc as z,hb as W,ib as x,la as d,ma as y,oa as _,pa as l,pc as X,rd as oe,tb as Q,uc as ee,vc as te,zb as j}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var r=class e{constructor(i,t){this.authService=i;this.router=t}canLoad(i,t){return this.authService.isTokenExpired()?(this.authService.returnUrl=this.getUrlRedirect(t),this.router.navigate(["/"]),!1):!0}getUrlRedirect(i){let t="/menu";i.forEach(a=>t+=`/${a.path}`);let n=this.router.currentNavigation().extractedUrl.queryParams;return Object.keys(n).forEach((a,g)=>{g==0?t=`${t}?${a}=${n[a]}`:t=`${t}&${a}=${n[a]}`}),t}static \u0275fac=function(t){return new(t||e)(_(f),_(b))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var w=class e{constructor(i){this.toastrService=i;this.initPermissionToastr=!1}isPermissionGranted;initPermissionToastr;initPermission(){try{this.initPermissionToastr||Notification.requestPermission().then(t=>{this.isPermissionGranted=!1,t=="granted"&&(this.isPermissionGranted=!0),this.initPermissionToastr=!0})}catch(i){console.error(i)}}showAlert(i,t,n,u){let a=6e4;if(this.isPermissionGranted)try{let g=new Notification(t,{body:i,icon:u});g.onerror=(N=>{this.toastrService.info(this.setBody(i,n),t,{timeOut:a,enableHtml:this.hasUrl(n)})})}catch(g){console.error(g)}else this.toastrService.info(this.setBody(i,n),t,{timeOut:a,enableHtml:this.hasUrl(n)})}setBody(i,t){return this.hasUrl(t)&&(i=`<a href="${t}" target="_blank" class="ps-0">${i}</a>`),i}hasUrl(i){return!!(i&&i.length!==0)}static \u0275fac=function(t){return new(t||e)(_(ue))};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Oe=[{T:"Dashboard",U:"/menu/Dashboard",I:"fa-solid fa-chart-pie"},{T:"Products",U:"/menu/Products",I:"fa-solid fa-tag"},{T:"Estimate",U:"/menu/Estimate",I:"fa-solid fa-clipboard"},{T:"Sell",U:"/menu/Sell",I:"fa-solid fa-cart-shopping"},{T:"Shift",U:"/menu/Shift/",I:"fa-solid fa-user-clock"},{T:"Reports",U:"/menu/Reports",I:"fa-solid fa-chart-area"},{T:"Contacts",U:"/menu/Contacts",I:"fas fa-address-book"},{T:"Orders",U:"/menu/Orders",I:"fas fa-file-invoice"},{T:"Payment",U:"/menu/Payment",I:"fas fa-money-bill-alt"},{T:"Debt",U:"/menu/Debt",I:"fas fa-dollar-sign"},{T:"Inventory",U:"/menu/Inventory",I:"fas fa-archive"},{T:"Adjustment",U:"/menu/Adjustment",I:"fas fa-scanner-gun"},{T:"Buy",U:"/menu/Buy",I:"fa-solid fa-cart-arrow-down"},{T:"Logistics",U:"/menu/Logistics",I:"fas fa-truck"},{T:"Fulfillment",U:"/menu/Fulfillment",I:"fas fa-dolly"},{T:"Manufacture",U:"/menu/Manufacture",I:"fas fa-industry"},{T:"Prepaid Package",U:"/menu/Prepaid_Package",I:"fa-solid fa-id-card"},{T:"Promotion",U:"/menu/Promotion",I:"fas fa-bullhorn"},{T:"Users",U:"/menu/Users",I:"fas fa-user"},{T:"Outlets",U:"/menu/Outlets",I:"fas fa-map-marker-alt"},{T:"Setup",U:"/menu/Setup",I:"fas fa-gear"},{T:"Developer",U:"/menu/Developer",I:"fas fa-code"}];var k=class e{role=l(I);authService=l(f);menu=Oe;filteredMenu=[];initFilteredMenu(){this.filteredMenu=this.menu.filter(i=>i.T==="Dashboard"?this.role.dashboard.View:i.T==="Products"?this.role.product.View:i.T==="Estimate"?this.role.estimate.Create:i.T==="Sell"?this.role.sell.Create:i.T==="Shift"?this.role.sell.Create:i.T==="Reports"?this.role.report.View:i.T==="Contacts"?this.role.contact.View:i.T==="Orders"?this.role.order.View:i.T==="Payment"?this.role.payment.View:i.T==="Debt"?this.role.debt.View:i.T==="Inventory"?this.role.inventory.View:i.T==="Adjustment"?this.role.adjustment.View:i.T==="Buy"?this.role.buy.Create:i.T==="Logistics"?this.role.logistic.View:i.T==="Manufacture"?this.role.manufacture.View:i.T==="Fulfillment"?this.role.fulfillment.View:i.T==="Prepaid Package"?this.role.prepaidPackage.View:i.T==="Promotion"?this.role.promotion.View:i.T==="Users"?this.role.users.View:i.T==="Outlets"?this.role.outlets.View:i.T==="Setup"?this.role.setup.View:i.T==="Developer"?this.role.developer.View:!0),this.filterBySubscriptionStatus()}filterBySubscriptionStatus(){let i=this.authService.getSubscriptionStatus();this.filteredMenu=this.filteredMenu.filter(t=>{switch(i){case 2:return t.T=="Sell"||t.T=="Shift";case 3:return!1;default:return!0}})}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var ye=[{T:"My Profile",U:"Profile/Main/My_Profile",I:"fas fa-user"},{T:"My Subscription",U:"Profile/Main/My_Subscription",I:"fa-solid fa-credit-card"},{T:"Notification",U:"Profile/Notification/Push",I:"fas fa-bell"},{T:"My Sales",U:"Profile/Main/My_Sales",I:"fas fa-history"}];var A=class e{role=l(I);authService=l(f);filteredMenu=[];initFilteredMenu(){let i=this.authService.getSubscriptionStatus();this.filteredMenu=ye.filter(t=>t.T=="My Profile"?this.role.profile.View:t.T=="My Subscription"?this.role.profile.Subscription:t.T=="Notification"?this.role.profile.Notification&&i!=2&&i!=3:t.T=="My Sales"?i!=2&&i!=3:!0)}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Le=(e,i)=>({"full-container":e,"subscription-bar-visible":i}),Re=e=>[e];function Ne(e,i){if(e&1&&(o(0,"a",11),p(1,"i",35),o(2,"span"),m(3),s()()),e&2){let t=i.$implicit;h("routerLink",t==null?null:t.U),c(),$((t==null?null:t.I)+" me-2"),c(2),B(t==null?null:t.T)}}function Ee(e,i){if(e&1&&(o(0,"li",33,0)(2,"a",36),p(3,"i"),o(4,"p"),m(5),s()()()),e&2){let t=i.$implicit,n=Z();h("routerLinkActiveOptions",n.isActiveMatchOptions),Q("data-cy",t==null?null:t.T),c(2),h("matTooltip",n.toggleSideMenu?t==null?null:t.T:"")("routerLink",ee(7,Re,t==null?null:t.U)),c(),$(t==null?null:t.I),c(2),B(t==null?null:t.T)}}var P=class e{constructor(i,t,n,u,a,g,N,H){this.toggleSidebar=i;this.signalRClientService=t;this.notificationAlertService=n;this.router=u;this.authService=a;this.intercomService=g;N.initFilteredMenu(),H.initFilteredMenu(),this.leftSidebarMenu=N.filteredMenu,this.topMenu=H.filteredMenu,this.accountInfo=JSON.parse(localStorage.getItem("AccountInfo")),this.toggleSidebar.toggleState$.subscribe(Te=>this.isNavOpen=Te),this.destroy$=new J,this.initNotificationPermission()}isActiveMatchOptions={matrixParams:"subset",queryParams:"subset",paths:"subset",fragment:"exact"};toggleSideMenu=!1;isNavOpen;destroy$;activeMenu;appVersion=pe.version;currentSubStatus;subsStatusEnum=T;isFullContainer=!1;isHideIntercomLauncher;leftSidebarMenu;topMenu;accountInfo;ngOnInit(){this.subscribeToPushNotification(),this.getCurrentSubscriptionStatus(),this.initFullContainer()}initFullContainer(){this.router.events.pipe(E(i=>i instanceof ae),q(null),D(this.destroy$)).subscribe(i=>{this.isFullContainer=!1,(this.router.url.includes("Sell")&&!this.router.url.includes("v2")&&!this.router.url.includes("Offline")||this.router.url.includes("Buy")||this.router.url.includes("menu/Estimate")||this.router.url.includes("Transfer_Order/Form")||this.router.url.includes("Adjustment/Archive/Form")||this.router.url.includes("Job_Order/Archive/Form")||this.router.url.includes("/menu/Debt/Debt/Join_Invoice/Form")||this.router.url.includes("/menu/Debt/Debt/Join_Bill/New_Join_Bill"))&&(this.isFullContainer=!0)})}initNotificationPermission(){this.notificationAlertService.initPermission()}getCurrentSubscriptionStatus(){this.currentSubStatus=this.authService.getSubscriptionStatus()}subscribeToPushNotification(){let i=localStorage.getItem("NotificationOutletID");M.IsNotEmpty(i)&&M.isGuid(i)?this.signalRClientService.SubscribeGroup(i):this.signalRClientService.startConnection(),this.signalRClientService.OnReceivePushNotification.pipe(D(this.destroy$),E(t=>M.IsNotEmpty(t))).subscribe(t=>{if(M.IsNotEmpty(t)){let n=JSON.parse(t),u="https://cdn.dealpos.xyz/web-image/info-new.png";M.IsNotEmpty(n.Icon)&&(u=n.Icon),this.notificationAlertService.showAlert(n.Body,n.Header,n.URL,u)}})}ngAfterViewInit(){this.intercomService.inititalizeIntercom()}toggleMenu(){this.toggleSideMenu=!this.toggleSideMenu}logout(){this.authService.logout()}isNotEmpty(i){return M.IsNotEmpty(i)}onShowDropdown(){this.isHideIntercomLauncher=this.intercomService.isHideLauncher()}chatToggleChange(){this.isHideIntercomLauncher==!1?this.intercomService.hideLauncher():this.intercomService.showLauncher(),this.onShowDropdown()}ngOnDestroy(){this.destroy$.next(!0),this.destroy$.complete()}static \u0275fac=function(t){return new(t||e)(v(be),v(de),v(w),v(b),v(f),v(ve),v(k),v(A))};static \u0275cmp=W({type:e,selectors:[["POS-menu-master"]],standalone:!1,decls:54,vars:17,consts:[["rla","routerLinkActive"],[1,"wrapper"],["data-color","blue",1,"sidebar",3,"ngClass"],[1,"btn-minimize","d-lg-block","d-none","p-0","border-0","bg-white",3,"click"],[1,"fa-solid",3,"ngClass"],[1,"logo"],[1,"navbar","dropdown","bg-transparent","border-0"],["data-cy","companyName","data-bs-toggle","dropdown","aria-expanded","false","matTooltipPosition","above",1,"simple-text","text-start","dropdown-toggle","d-flex","align-items-center","justify-content-center",2,"cursor","pointer",3,"click","matTooltip"],[1,"dropdown-menu"],[1,"dropdown-header","text-dark","border-bottom"],[1,"divider","m-0"],[1,"dropdown-item","h5",3,"routerLink"],[1,"dropdown-item","h5",2,"cursor","pointer"],[1,"d-flex","align-items-center","justify-content-between"],[1,"fa-solid","fa-comment-dots","me-2"],[1,"checkbox_toggle","ms-3",3,"click"],["type","checkbox","id","chatToggle","name","ChatToggle",3,"ngModelChange","ngModel"],["for","chatToggle",1,"position-relative","rounded-pill","pointer"],[1,"dropdown-item","h5",2,"cursor","pointer",3,"click"],["aria-hidden","true",1,"fa-solid","fa-sign-out-alt","me-2"],[1,"divider"],[1,"dropdown-header","border-top"],["target","_blank",1,"dropdown-item","h5","changelog",3,"href"],["aria-hidden","true",1,"fa-solid","fa-sparkles","me-2"],[1,"fa-solid","fa-circle-exclamation","ms-2",2,"font-size","16px"],["target","_blank","href","http://support.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-book","me-2"],["target","_blank","href","https://www.dealpos.app/",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-solid","fa-table-cells-large","me-2"],["target","_blank","href","http://blog.dealpos.com",1,"dropdown-item","h5"],["aria-hidden","true",1,"fa-brands","fa-blogger","me-2"],[1,"sidebar-wrapper"],[1,"nav"],["routerLinkActive","active",3,"routerLinkActiveOptions"],["id","full-container",1,"main-panel",3,"ngClass"],["aria-hidden","true"],["matTooltipPosition","above",1,"nav-link","position-relative","d-block",3,"matTooltip","routerLink"]],template:function(t,n){t&1&&(o(0,"div",1)(1,"div",2)(2,"button",3),C("click",function(){return n.toggleMenu()}),p(3,"i",4),s(),o(4,"div",5)(5,"div",6)(6,"a",7),C("click",function(){return n.onShowDropdown()}),m(7),ie(8,"limitText"),s(),o(9,"div",8)(10,"div",9),m(11),s(),p(12,"div",10),F(13,Ne,4,4,"a",11,j),o(15,"a",12)(16,"div",13)(17,"div"),p(18,"i",14),o(19,"span"),m(20,"Chat Support"),s()(),o(21,"div",15),C("click",function(a){return a.stopPropagation()}),o(22,"input",16),C("ngModelChange",function(){return n.chatToggleChange()}),s(),p(23,"label",17),s()()(),o(24,"a",18),C("click",function(){return n.logout()}),p(25,"i",19),o(26,"span"),m(27,"Log Out"),s()(),p(28,"div",20),o(29,"div",21),m(30," Links "),s(),o(31,"a",22),p(32,"i",23),o(33,"span"),m(34,"What's New"),p(35,"i",24),s()(),o(36,"a",25),p(37,"i",26),o(38,"span"),m(39,"Help Center"),s()(),o(40,"a",27),p(41,"i",28),o(42,"span"),m(43,"App Store"),s()(),o(44,"a",29),p(45,"i",30),o(46,"span"),m(47,"Company Blog"),s()()()()(),o(48,"div",31)(49,"ul",32),F(50,Ee,6,9,"li",33,j),s()()(),o(52,"div",34),p(53,"router-outlet"),s()()),t&2&&(K("nav-open",n.isNavOpen),c(),h("ngClass",n.toggleSideMenu?"collapses":""),c(2),h("ngClass",n.toggleSideMenu?"fa-angle-left cursor":"fa-angle-right cursor"),c(3),h("matTooltip",n.accountInfo==null?null:n.accountInfo.BrandName),c(),z(" ",ne(8,11,n.accountInfo==null?null:n.accountInfo.BrandName,12)," "),c(4),z("",n.accountInfo==null?null:n.accountInfo.UserName," "),c(2),V(n.topMenu),c(9),h("ngModel",!n.isHideIntercomLauncher),c(9),h("href",X("https://changelog.dealpos.com/?categories=cat_gAZdRhBYU7QVl&view=complete&v=",n.appVersion),Y),c(19),V(n.leftSidebarMenu),c(2),h("ngClass",te(14,Le,n.isFullContainer,n.isNotEmpty(n.currentSubStatus)&&n.currentSubStatus!==n.subsStatusEnum.PAID)))},dependencies:[Se,se,le,ce,me,fe,he,re,Ce],styles:['.sidebar[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%], body[_ngcontent-%COMP%] > .navbar-collapse[_ngcontent-%COMP%] .nav[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .nav-link[_ngcontent-%COMP%]{padding:10px 0 10px 10px!important}.sidebar-wrapper[_ngcontent-%COMP%]{max-height:calc(100% - 61px)!important;min-height:calc(100% - 61px)!important}@media (max-width: 991px){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@media (pointer: coarse){.sidebar-wrapper[_ngcontent-%COMP%]{overflow-y:scroll!important}}@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}.changelog[_ngcontent-%COMP%]{color:#0006b1!important}.changelog[_ngcontent-%COMP%]:visited{color:#2e2e2e!important}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{position:relative}.changelog[_ngcontent-%COMP%] span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fe3a00!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#fff!important;position:absolute;top:-4px;right:-18px}.changelog[_ngcontent-%COMP%]:visited:hover span[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#e9ecef!important;position:absolute;top:-4px;right:-18px}.subscription-bar-visible[_ngcontent-%COMP%]{padding-top:98px}.checkbox_toggle[_ngcontent-%COMP%]{position:relative}.checkbox_toggle[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#868686;display:inline-block;padding-right:38px}.checkbox_toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{width:23px;height:14px;background-color:#ccc;top:2.2px;right:0}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{display:none}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]{background-color:#1f77d0}.checkbox_toggle[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:after{left:10px}.checkbox_toggle[_ngcontent-%COMP%] label[_ngcontent-%COMP%]:after{content:"";width:12px;height:12px;border-radius:50%;position:absolute;top:.8px;left:1px;transition:all .1s;background-color:#fff}']})};function De(e){let i=l(b),t="/menu";e.forEach(a=>t+=`/${a.path}`);let n=i.currentNavigation().extractedUrl.queryParams;return Object.keys(n).forEach((a,g)=>{g==0?t=`${t}?${a}=${n[a]}`:t=`${t}&${a}=${n[a]}`}),t}var O=(e,i)=>{let t=l(f),n=t.isTokenExpired(),u=l(b);return n?(t.returnUrl=De(i),u.navigate(["/"]),!1):e.path=="Dashboard"?je():!0};function je(){let e=l(b),i=l(f),t=!1,n=i.getRedirectUrl();return t=n.includes("Dashboard"),t==!1&&e.navigate([n]),t}var U=class e{paymentStorageService=l(Pe);canActivate(i,t){return this.paymentStorageService.clear(),!0}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var L=class e{reportService=l(_e);canActivate(i,t){return this.reportService.resetFilter(),!0}static \u0275fac=function(t){return new(t||e)};static \u0275prov=d({token:e,factory:e.\u0275fac,providedIn:"root"})};var Fe=[{path:"",component:P,children:[{path:"Inventory",loadChildren:()=>import("./chunk-374PEHK3.js").then(e=>e.InventoryModule),canLoad:[r]},{path:"Reports",loadChildren:()=>import("./chunk-S7N22G4D.js").then(e=>e.ReportsModule),canLoad:[r],canActivate:[L]},{path:"Sell",loadChildren:()=>import("./chunk-O4AM5O5P.js").then(e=>e.routes),canLoad:[r]},{path:"Print",loadChildren:()=>import("./chunk-MMP7HKXF.js").then(e=>e.PrintModule),canLoad:[r]},{path:"Buy",loadComponent:()=>import("./chunk-QAQYVKMI.js").then(e=>e.BuyV2Component),canMatch:[O]},{path:"Sell/V2",loadComponent:()=>import("./chunk-N6ZNENQU.js").then(e=>e.SellV2Component),canMatch:[O]},{path:"Dashboard",loadComponent:()=>import("./chunk-C56YPV2G.js").then(e=>e.DashboardV2Component),canMatch:[O]},{path:"Products",loadChildren:()=>import("./chunk-4ZWIQZYV.js").then(e=>e.ProductModule),canLoad:[r]},{path:"Shift",loadChildren:()=>import("./chunk-UPV6MUOR.js").then(e=>e.ShiftModule),canLoad:[r]},{path:"Debt",loadChildren:()=>import("./chunk-HLNB2PE4.js").then(e=>e.DebtModule),canLoad:[r]},{path:"Logistics",loadChildren:()=>import("./chunk-VWOX66SZ.js").then(e=>e.DeliveryModule),canLoad:[r]},{path:"Users",loadChildren:()=>import("./chunk-EMJ7V5XH.js").then(e=>e.UsersModule),canLoad:[r]},{path:"Setup",loadChildren:()=>import("./chunk-ILIZ5NZH.js").then(e=>e.SetupModule),canLoad:[r]},{path:"Developer",loadChildren:()=>import("./chunk-MD6WWBSZ.js").then(e=>e.DeveloperModule),canLoad:[r]},{path:"Contacts",loadChildren:()=>import("./chunk-TDZ2L7GX.js").then(e=>e.ContactsModule),canLoad:[r]},{path:"Outlets",loadChildren:()=>import("./chunk-WOAUMRNS.js").then(e=>e.OutletsModule),canLoad:[r]},{path:"Orders",loadChildren:()=>import("./chunk-JT3HOWQH.js").then(e=>e.OrdersModule),canLoad:[r]},{path:"Profile",loadChildren:()=>import("./chunk-L5GSB3ZX.js").then(e=>e.ProfileModule),canLoad:[r]},{path:"Estimate",loadComponent:()=>import("./chunk-475JSTPA.js").then(e=>e.EstimateV2Component),canMatch:[O]},{path:"Adjustment",loadChildren:()=>import("./chunk-L424UWKA.js").then(e=>e.AdjustmentModule),canLoad:[r]},{path:"Payment",loadChildren:()=>import("./chunk-UWWB4ON7.js").then(e=>e.PaymentModule),canLoad:[r],canActivate:[U]},{path:"Promotion",loadChildren:()=>import("./chunk-7QGORD2Z.js").then(e=>e.PromotionModule),canLoad:[r]},{path:"Manufacture",loadChildren:()=>import("./chunk-KA4G654J.js").then(e=>e.ManufactureModule),canLoad:[r]},{path:"Prepaid_Package",loadChildren:()=>import("./chunk-PO6OVC5B.js").then(e=>e.PrepaidPackageModule),canLoad:[r]},{path:"Fulfillment",loadChildren:()=>import("./chunk-IRDKCXB2.js").then(e=>e.FulfillmentModule),canLoad:[r]},{path:"Unauthorized",loadChildren:()=>import("./chunk-SVAXS2TA.js").then(e=>e.UnauthorizedModule),canLoad:[r]},{path:"Not_Found",loadChildren:()=>import("./chunk-GSFXKVGZ.js").then(e=>e.NotFoundModule),canLoad:[r]},{path:"",redirectTo:"/menu/Dashboard",pathMatch:"full"},{path:"**",redirectTo:"Not_Found"}]}],R=class e{static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e});static \u0275inj=y({imports:[G.forChild(Fe),G]})};var xe=class e{constructor(){}static \u0275fac=function(t){return new(t||e)};static \u0275mod=x({type:e,bootstrap:[P]});static \u0275inj=y({imports:[Me,R,ge,oe]})};export{xe as MenuMasterModule};
@@ -1 +1 @@
1
- import{b as z}from"./chunk-KEAT6AT3.js";import"./chunk-WH2BY5K4.js";import{d as me,e as ce}from"./chunk-SO4GMA3Y.js";import"./chunk-PECGNYTX.js";import"./chunk-3RK6DDJD.js";import"./chunk-SARJJ3AZ.js";import"./chunk-DC426G2P.js";import"./chunk-3KSZCJ6T.js";import"./chunk-BYO7FJ4O.js";import"./chunk-CBSYYTXQ.js";import"./chunk-G4IW5GPY.js";import{a as pe,b as le}from"./chunk-I3ABVEQL.js";import{b as ee}from"./chunk-KD7WBOUR.js";import{a as Q}from"./chunk-7JXTBPO6.js";import"./chunk-JO2HRK4G.js";import{a as ie}from"./chunk-4QM23MMO.js";import{e as oe,f as re}from"./chunk-PCBQ5MJX.js";import"./chunk-YRGHPSPV.js";import"./chunk-VYQEM4T2.js";import"./chunk-UTAQ3FRE.js";import"./chunk-M43HNBJQ.js";import"./chunk-KKLNFVVN.js";import"./chunk-ZOP4QRJ5.js";import{b as te}from"./chunk-4PALKQ75.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import"./chunk-QZMZBCE7.js";import"./chunk-C4WJKF7R.js";import{G as ne,N as ae}from"./chunk-NZYZO47Z.js";import{d as Z,e as $}from"./chunk-7TBS7SPQ.js";import{g as X}from"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import"./chunk-L76WVZW6.js";import"./chunk-2FWFPV5I.js";import"./chunk-O5SLP4JK.js";import{F as K,h as J,o as q}from"./chunk-RNLSEEMX.js";import"./chunk-U5KSGGL5.js";import"./chunk-25YHVZV6.js";import{d as Y}from"./chunk-USJ6ILEE.js";import"./chunk-GVPC56QQ.js";import{$d as R,Ab as L,Bb as A,Bc as b,Cb as c,Db as n,Dc as v,Eb as i,Ed as N,Fb as F,Hc as j,Jb as y,Kb as h,Mb as D,Ob as I,Qb as m,Vc as B,Xa as p,Zd as G,be as H,db as C,dc as l,ec as f,ee as U,fc as W,hb as M,ic as _,jc as d,kc as S,lb as P,nb as x,pa as w,ta as s,tc as k,ua as g,uc as O,yb as V}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import{a as T,b as E}from"./chunk-SNAKHGZS.js";var _e=()=>["/menu/Contacts/Contact/Customers/Info"],de=o=>({ID:o});function Se(o,u){if(o&1){let e=D();n(0,"button",9),I("click",function(){s(e);let t=m(2);return g(t.openExportModal())}),F(1,"i",10),l(2," Export "),i()}}function ue(o,u){if(o&1){let e=D();n(0,"div")(1,"div",11)(2,"h6"),l(3,"Status"),i(),n(4,"ng-select",12),S("ngModelChange",function(t){s(e);let a=m(2);return d(a.contactState,t)||(a.contactState=t),g(t)}),i(),n(5,"h6"),l(6,"Outlet Sign Up"),i(),n(7,"ng-select",13),S("ngModelChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.CreatorEntityID,t)||(a.pageData.Filter.CreatorEntityID=t),g(t)}),i(),n(8,"h6"),l(9,"Group"),i(),n(10,"ng-select",14),S("ngModelChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.GroupID,t)||(a.pageData.Filter.GroupID=t),g(t)}),i(),n(11,"h6"),l(12,"Join Date Range"),i(),n(13,"div")(14,"datepicker",15),S("dateChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.From,t)||(a.pageData.Filter.From=t),g(t)}),i()(),n(15,"div",16)(16,"datepicker",17),S("dateChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.To,t)||(a.pageData.Filter.To=t),g(t)}),i()(),n(17,"h6"),l(18,"Sign In Date Range"),i(),n(19,"div")(20,"datepicker",15),S("dateChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.SignFrom,t)||(a.pageData.Filter.SignFrom=t),g(t)}),i()(),n(21,"div",16)(22,"datepicker",17),S("dateChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.SignTo,t)||(a.pageData.Filter.SignTo=t),g(t)}),i()()()()}if(o&2){let e=m(2);p(4),_("ngModel",e.contactState),c("items",e.pageData.Options.ContactStates)("clearable",!1),p(3),_("ngModel",e.pageData.Filter.CreatorEntityID),c("items",e.pageData.Options.Entities),p(3),_("ngModel",e.pageData.Filter.GroupID),c("items",e.pageData.Options.Groups),p(4),c("isFloatingLabel",!1),_("date",e.pageData.Filter.From),p(2),c("isFloatingLabel",!1),_("date",e.pageData.Filter.To),p(4),c("isFloatingLabel",!1),_("date",e.pageData.Filter.SignFrom),p(2),c("isFloatingLabel",!1),_("date",e.pageData.Filter.SignTo)}}function Ce(o,u){if(o&1&&(n(0,"tr")(1,"th")(2,"a",28),l(3),i()(),n(4,"td"),l(5),i(),n(6,"td"),l(7),i(),n(8,"td"),l(9),i(),n(10,"td"),l(11),b(12,"IsMinDate"),i(),n(13,"td"),l(14),b(15,"IsMinDate"),i()()),o&2){let e=u.$implicit;p(2),c("routerLink",k(14,_e))("queryParams",O(15,de,e.ID)),p(),f(e.Name),p(2),f(e.Code),p(2),f(e.Mobile),p(2),f(e.Email),p(2),f(v(12,8,e.JoinDate,"dd MMM yyyy")),p(3),W(" ",v(15,11,e.AppLastSignIn,"dd MMM yyyy HH:mm")," ")}}function xe(o,u){if(o&1){let e=D();n(0,"div",29)(1,"POS-complex-pagination",30),I("jumpToPage",function(){s(e);let t=m(3);return g(t.getListData())})("previousPage",function(){s(e);let t=m(3);return g(t.getListData())})("nextPage",function(){s(e);let t=m(3);return g(t.getListData())}),i()()}if(o&2){let e=m(3);p(),c("total",e.data.Data.length)("pageData",e.pageData)}}function fe(o,u){if(o&1&&(y(0,18),n(1,"div",19)(2,"div",20)(3,"table",21)(4,"thead",22)(5,"tr",23)(6,"th"),l(7,"Name"),i(),n(8,"th",24),l(9,"Code"),i(),n(10,"th",24),l(11,"Mobile"),i(),n(12,"th",25),l(13,"Email"),i(),n(14,"th",26),l(15,"Join Date"),i(),n(16,"th",24),l(17,"Last Sign In"),i()()(),n(18,"tbody"),L(19,Ce,16,17,"tr",null,V),i()()(),x(21,xe,2,2,"div",27),i(),h()),o&2){let e=m(2);p(19),A(e.data.Data),p(2),c("ngIf",e.pageData.Filter)}}function De(o,u){if(o&1){let e=D();n(0,"mainpanel-cmp",2),S("textChange",function(t){s(e);let a=m();return d(a.pageData.Filter.Text,t)||(a.pageData.Filter.Text=t),g(t)}),I("onSubmit",function(){s(e);let t=m();return g(t.searchFromPageOne())}),S("filterChange",function(t){s(e);let a=m();return d(a.pageData.Filter,t)||(a.pageData.Filter=t),g(t)}),y(1,3),n(2,"a",4),F(3,"i",5),l(4,"Get Your Brand Loyalty App "),i(),x(5,Se,3,0,"button",6),h(),y(6,7),x(7,ue,23,15,"ng-template",null,0,j),h(),x(9,fe,22,1,"ng-container",8),i()}if(o&2){let e=m();c("pageData",e.menuData),_("text",e.pageData.Filter.Text),c("isFilterOnDropdown",!1),_("filter",e.pageData.Filter),p(5),c("ngIf",e.role.global.Export),p(4),c("ngIf",e.data&&e.data.Data)}}var se=class o extends Q{constructor(e,r,t,a,ge,ye){super(e,r,"Contact/CustomerAppSignInList","ContactLoader/CustomerList",ge);this.httpService=r;this.csvConverter=t;this.matDialog=a;this.role=ye}cdr=w(B);title=w(N);contactState;ngOnInit(){let e=JSON.parse(localStorage.getItem("AccountInfo"));this.title.setTitle(e.BrandName+" POS | App Sign In")}postInit(e){this.menuData.H="App Sign In",this.cdr.markForCheck()}preInitList(){this.contactState=this.pageData.Filter.ContactStateID,this.pageData.Options.ContactStates=[{Key:0,Value:"All"},...this.pageData.Options.ContactStates],this.pageData.Filter=E(T({},this.pageData.Filter),{SignFrom:this.pageData.Filter.SignFrom?this.pageData.Filter.SignFrom:"0001-01-01T00:00:00",SignTo:this.pageData.Filter.SignTo?this.pageData.Filter.SignTo:"0001-01-01T00:00:00"})}openExportModal(){this.matDialog.open(ee,{data:{title:"Loyalty App Last Sign In",exportTypes:[{ID:"ContactExport/LoyaltyLastSignIn",Value:"Default",FileName:"LoyaltyAppLastSignIn"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!1}})}preGetList(){this.pageData.Filter.ContactStateID=this.contactState==0?null:this.contactState}static \u0275fac=function(r){return new(r||o)(C(te),C(U),C(ie),C(X),C(H),C(Y))};static \u0275cmp=M({type:o,selectors:[["pos-app-sign-in"]],features:[P],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","text","isFilterOnDropdown","filter","textChange","onSubmit","filterChange",4,"ngIf"],[3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter"],["ngProjectAs","actions",5,["actions"]],["target","_blank","href","https://www.dealpos.co.id/tour/customer-loyalty-program",1,"btn","btn-outline-secondary"],[1,"fa-solid","fa-mobile","me-1"],["class","btn btn-outline-secondary",3,"click",4,"ngIf"],["ngProjectAs","filters",5,["filters"]],["ngProjectAs","content",5,["content"],4,"ngIf"],[1,"btn","btn-outline-secondary",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["bindLabel","Value","bindValue","Key","placeholder","Choose Status",3,"ngModelChange","ngModel","items","clearable"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose an Outlet...",3,"ngModelChange","ngModel","items"],["bindLabel","Name","bindValue","ID","placeholder","Choose a Group...",3,"ngModelChange","ngModel","items"],["placeholder","From","appearance","outline","name","From",3,"dateChange","isFloatingLabel","date"],[1,"mt-4"],["placeholder","To","appearance","outline","name","To",3,"dateChange","isFloatingLabel","date"],["ngProjectAs","content",5,["content"]],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[1,"header"],[2,"width","150px"],[2,"width","200px"],[2,"width","100px"],["class","mt-2",4,"ngIf"],[1,"fw-normal",3,"routerLink","queryParams"],[1,"mt-2"],["api","Contact/CustomerAppSignInCount",3,"jumpToPage","previousPage","nextPage","total","pageData"]],template:function(r,t){r&1&&x(0,De,10,6,"mainpanel-cmp",1),r&2&&c("ngIf",t.pageData.Filter)},dependencies:[re,oe,ce,me,K,J,q,R,G,z,$,Z,le,pe,ae,ne],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{se as AppSignInComponent};
1
+ import{b as z}from"./chunk-KEAT6AT3.js";import"./chunk-WH2BY5K4.js";import{d as me,e as ce}from"./chunk-SO4GMA3Y.js";import"./chunk-PECGNYTX.js";import"./chunk-3RK6DDJD.js";import"./chunk-SARJJ3AZ.js";import"./chunk-DC426G2P.js";import"./chunk-3KSZCJ6T.js";import"./chunk-BYO7FJ4O.js";import"./chunk-CBSYYTXQ.js";import"./chunk-G4IW5GPY.js";import{a as pe,b as le}from"./chunk-I3ABVEQL.js";import{b as ee}from"./chunk-KD7WBOUR.js";import{a as Q}from"./chunk-LK7UQBXO.js";import"./chunk-BR3Y2C2F.js";import{a as ie}from"./chunk-4QM23MMO.js";import{e as oe,f as re}from"./chunk-CGISR53W.js";import"./chunk-YRGHPSPV.js";import"./chunk-VYQEM4T2.js";import"./chunk-UTAQ3FRE.js";import"./chunk-M43HNBJQ.js";import"./chunk-KKLNFVVN.js";import"./chunk-6FM7DAHK.js";import{b as te}from"./chunk-DGXQDOCM.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import"./chunk-QZMZBCE7.js";import"./chunk-C4WJKF7R.js";import{G as ne,N as ae}from"./chunk-NZYZO47Z.js";import{d as Z,e as $}from"./chunk-7TBS7SPQ.js";import{g as X}from"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import"./chunk-L76WVZW6.js";import"./chunk-2FWFPV5I.js";import"./chunk-O5SLP4JK.js";import{F as K,h as J,o as q}from"./chunk-RNLSEEMX.js";import"./chunk-JVFZL3LP.js";import"./chunk-TVZ622KQ.js";import{d as Y}from"./chunk-USJ6ILEE.js";import"./chunk-CLJWABT2.js";import{$d as R,Ab as L,Bb as A,Bc as b,Cb as c,Db as n,Dc as v,Eb as i,Ed as N,Fb as F,Hc as j,Jb as y,Kb as h,Mb as D,Ob as I,Qb as m,Vc as B,Xa as p,Zd as G,be as H,db as C,dc as l,ec as f,ee as U,fc as W,hb as M,ic as _,jc as d,kc as S,lb as P,nb as x,pa as w,ta as s,tc as k,ua as g,uc as O,yb as V}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import{a as T,b as E}from"./chunk-SNAKHGZS.js";var _e=()=>["/menu/Contacts/Contact/Customers/Info"],de=o=>({ID:o});function Se(o,u){if(o&1){let e=D();n(0,"button",9),I("click",function(){s(e);let t=m(2);return g(t.openExportModal())}),F(1,"i",10),l(2," Export "),i()}}function ue(o,u){if(o&1){let e=D();n(0,"div")(1,"div",11)(2,"h6"),l(3,"Status"),i(),n(4,"ng-select",12),S("ngModelChange",function(t){s(e);let a=m(2);return d(a.contactState,t)||(a.contactState=t),g(t)}),i(),n(5,"h6"),l(6,"Outlet Sign Up"),i(),n(7,"ng-select",13),S("ngModelChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.CreatorEntityID,t)||(a.pageData.Filter.CreatorEntityID=t),g(t)}),i(),n(8,"h6"),l(9,"Group"),i(),n(10,"ng-select",14),S("ngModelChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.GroupID,t)||(a.pageData.Filter.GroupID=t),g(t)}),i(),n(11,"h6"),l(12,"Join Date Range"),i(),n(13,"div")(14,"datepicker",15),S("dateChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.From,t)||(a.pageData.Filter.From=t),g(t)}),i()(),n(15,"div",16)(16,"datepicker",17),S("dateChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.To,t)||(a.pageData.Filter.To=t),g(t)}),i()(),n(17,"h6"),l(18,"Sign In Date Range"),i(),n(19,"div")(20,"datepicker",15),S("dateChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.SignFrom,t)||(a.pageData.Filter.SignFrom=t),g(t)}),i()(),n(21,"div",16)(22,"datepicker",17),S("dateChange",function(t){s(e);let a=m(2);return d(a.pageData.Filter.SignTo,t)||(a.pageData.Filter.SignTo=t),g(t)}),i()()()()}if(o&2){let e=m(2);p(4),_("ngModel",e.contactState),c("items",e.pageData.Options.ContactStates)("clearable",!1),p(3),_("ngModel",e.pageData.Filter.CreatorEntityID),c("items",e.pageData.Options.Entities),p(3),_("ngModel",e.pageData.Filter.GroupID),c("items",e.pageData.Options.Groups),p(4),c("isFloatingLabel",!1),_("date",e.pageData.Filter.From),p(2),c("isFloatingLabel",!1),_("date",e.pageData.Filter.To),p(4),c("isFloatingLabel",!1),_("date",e.pageData.Filter.SignFrom),p(2),c("isFloatingLabel",!1),_("date",e.pageData.Filter.SignTo)}}function Ce(o,u){if(o&1&&(n(0,"tr")(1,"th")(2,"a",28),l(3),i()(),n(4,"td"),l(5),i(),n(6,"td"),l(7),i(),n(8,"td"),l(9),i(),n(10,"td"),l(11),b(12,"IsMinDate"),i(),n(13,"td"),l(14),b(15,"IsMinDate"),i()()),o&2){let e=u.$implicit;p(2),c("routerLink",k(14,_e))("queryParams",O(15,de,e.ID)),p(),f(e.Name),p(2),f(e.Code),p(2),f(e.Mobile),p(2),f(e.Email),p(2),f(v(12,8,e.JoinDate,"dd MMM yyyy")),p(3),W(" ",v(15,11,e.AppLastSignIn,"dd MMM yyyy HH:mm")," ")}}function xe(o,u){if(o&1){let e=D();n(0,"div",29)(1,"POS-complex-pagination",30),I("jumpToPage",function(){s(e);let t=m(3);return g(t.getListData())})("previousPage",function(){s(e);let t=m(3);return g(t.getListData())})("nextPage",function(){s(e);let t=m(3);return g(t.getListData())}),i()()}if(o&2){let e=m(3);p(),c("total",e.data.Data.length)("pageData",e.pageData)}}function fe(o,u){if(o&1&&(y(0,18),n(1,"div",19)(2,"div",20)(3,"table",21)(4,"thead",22)(5,"tr",23)(6,"th"),l(7,"Name"),i(),n(8,"th",24),l(9,"Code"),i(),n(10,"th",24),l(11,"Mobile"),i(),n(12,"th",25),l(13,"Email"),i(),n(14,"th",26),l(15,"Join Date"),i(),n(16,"th",24),l(17,"Last Sign In"),i()()(),n(18,"tbody"),L(19,Ce,16,17,"tr",null,V),i()()(),x(21,xe,2,2,"div",27),i(),h()),o&2){let e=m(2);p(19),A(e.data.Data),p(2),c("ngIf",e.pageData.Filter)}}function De(o,u){if(o&1){let e=D();n(0,"mainpanel-cmp",2),S("textChange",function(t){s(e);let a=m();return d(a.pageData.Filter.Text,t)||(a.pageData.Filter.Text=t),g(t)}),I("onSubmit",function(){s(e);let t=m();return g(t.searchFromPageOne())}),S("filterChange",function(t){s(e);let a=m();return d(a.pageData.Filter,t)||(a.pageData.Filter=t),g(t)}),y(1,3),n(2,"a",4),F(3,"i",5),l(4,"Get Your Brand Loyalty App "),i(),x(5,Se,3,0,"button",6),h(),y(6,7),x(7,ue,23,15,"ng-template",null,0,j),h(),x(9,fe,22,1,"ng-container",8),i()}if(o&2){let e=m();c("pageData",e.menuData),_("text",e.pageData.Filter.Text),c("isFilterOnDropdown",!1),_("filter",e.pageData.Filter),p(5),c("ngIf",e.role.global.Export),p(4),c("ngIf",e.data&&e.data.Data)}}var se=class o extends Q{constructor(e,r,t,a,ge,ye){super(e,r,"Contact/CustomerAppSignInList","ContactLoader/CustomerList",ge);this.httpService=r;this.csvConverter=t;this.matDialog=a;this.role=ye}cdr=w(B);title=w(N);contactState;ngOnInit(){let e=JSON.parse(localStorage.getItem("AccountInfo"));this.title.setTitle(e.BrandName+" POS | App Sign In")}postInit(e){this.menuData.H="App Sign In",this.cdr.markForCheck()}preInitList(){this.contactState=this.pageData.Filter.ContactStateID,this.pageData.Options.ContactStates=[{Key:0,Value:"All"},...this.pageData.Options.ContactStates],this.pageData.Filter=E(T({},this.pageData.Filter),{SignFrom:this.pageData.Filter.SignFrom?this.pageData.Filter.SignFrom:"0001-01-01T00:00:00",SignTo:this.pageData.Filter.SignTo?this.pageData.Filter.SignTo:"0001-01-01T00:00:00"})}openExportModal(){this.matDialog.open(ee,{data:{title:"Loyalty App Last Sign In",exportTypes:[{ID:"ContactExport/LoyaltyLastSignIn",Value:"Default",FileName:"LoyaltyAppLastSignIn"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!1}})}preGetList(){this.pageData.Filter.ContactStateID=this.contactState==0?null:this.contactState}static \u0275fac=function(r){return new(r||o)(C(te),C(U),C(ie),C(X),C(H),C(Y))};static \u0275cmp=M({type:o,selectors:[["pos-app-sign-in"]],features:[P],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","text","isFilterOnDropdown","filter","textChange","onSubmit","filterChange",4,"ngIf"],[3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter"],["ngProjectAs","actions",5,["actions"]],["target","_blank","href","https://www.dealpos.co.id/tour/customer-loyalty-program",1,"btn","btn-outline-secondary"],[1,"fa-solid","fa-mobile","me-1"],["class","btn btn-outline-secondary",3,"click",4,"ngIf"],["ngProjectAs","filters",5,["filters"]],["ngProjectAs","content",5,["content"],4,"ngIf"],[1,"btn","btn-outline-secondary",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["bindLabel","Value","bindValue","Key","placeholder","Choose Status",3,"ngModelChange","ngModel","items","clearable"],["appendTo","body","bindLabel","Name","bindValue","ID","placeholder","Choose an Outlet...",3,"ngModelChange","ngModel","items"],["bindLabel","Name","bindValue","ID","placeholder","Choose a Group...",3,"ngModelChange","ngModel","items"],["placeholder","From","appearance","outline","name","From",3,"dateChange","isFloatingLabel","date"],[1,"mt-4"],["placeholder","To","appearance","outline","name","To",3,"dateChange","isFloatingLabel","date"],["ngProjectAs","content",5,["content"]],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table","border-bottom"],[1,"thead-light","sticky-top-thead"],[1,"header"],[2,"width","150px"],[2,"width","200px"],[2,"width","100px"],["class","mt-2",4,"ngIf"],[1,"fw-normal",3,"routerLink","queryParams"],[1,"mt-2"],["api","Contact/CustomerAppSignInCount",3,"jumpToPage","previousPage","nextPage","total","pageData"]],template:function(r,t){r&1&&x(0,De,10,6,"mainpanel-cmp",1),r&2&&c("ngIf",t.pageData.Filter)},dependencies:[re,oe,ce,me,K,J,q,R,G,z,$,Z,le,pe,ae,ne],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{se as AppSignInComponent};