dealpos 25.50.0 → 25.50.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 (89) hide show
  1. package/browser/{chunk-WXYXGYFH.js → chunk-2KS45FOG.js} +1 -1
  2. package/browser/{chunk-PV4YHZX5.js → chunk-2YCKWFSX.js} +1 -1
  3. package/browser/{chunk-GRLVYPPM.js → chunk-3CI72KQ3.js} +1 -1
  4. package/browser/{chunk-S65MPEJS.js → chunk-3FIHANXM.js} +1 -1
  5. package/browser/{chunk-XSZJISVJ.js → chunk-3IAS5WE6.js} +1 -1
  6. package/browser/{chunk-5SIEW7SH.js → chunk-4VHFIFH3.js} +1 -1
  7. package/browser/{chunk-COL56R4A.js → chunk-4WGA2OTP.js} +1 -1
  8. package/browser/{chunk-OZ3MKU4C.js → chunk-4XR5RPFW.js} +1 -1
  9. package/browser/{chunk-A6Z5ZHVO.js → chunk-522M5UUJ.js} +1 -1
  10. package/browser/{chunk-FMKY4THI.js → chunk-5I57WLXV.js} +1 -1
  11. package/browser/{chunk-SOW7VMSU.js → chunk-5JPSSGYG.js} +1 -1
  12. package/browser/{chunk-RE6SQEP6.js → chunk-5TRWYRN5.js} +1 -1
  13. package/browser/{chunk-FSOHJLXB.js → chunk-6K2PABLT.js} +1 -1
  14. package/browser/{chunk-SK6Y77W4.js → chunk-72M34LBD.js} +1 -1
  15. package/browser/{chunk-YLEKN2EU.js → chunk-76NP7MDH.js} +1 -1
  16. package/browser/{chunk-GDQGP7DV.js → chunk-7KRURW6N.js} +1 -1
  17. package/browser/{chunk-CB6QEEJX.js → chunk-7T4IG74V.js} +1 -1
  18. package/browser/{chunk-LIX7XJ55.js → chunk-7YINKSK5.js} +1 -1
  19. package/browser/{chunk-2KI73XNT.js → chunk-A6LKXUGJ.js} +1 -1
  20. package/browser/{chunk-2ITJBRJU.js → chunk-ABAK5BOR.js} +1 -1
  21. package/browser/{chunk-BQ7QT5RB.js → chunk-CAHMSC7J.js} +1 -1
  22. package/browser/{chunk-YBUERVXV.js → chunk-CMZCCWKE.js} +1 -1
  23. package/browser/{chunk-KUF3JPB2.js → chunk-CN2J3E2G.js} +1 -1
  24. package/browser/{chunk-PIAQ4TBN.js → chunk-D3NB2D5J.js} +1 -1
  25. package/browser/{chunk-CZHWPDAM.js → chunk-DVEFT7GI.js} +1 -1
  26. package/browser/{chunk-TTCSYFRX.js → chunk-DXZJ5B2W.js} +1 -1
  27. package/browser/{chunk-HFZ437GH.js → chunk-E7I3NPA7.js} +1 -1
  28. package/browser/{chunk-JCLYKROE.js → chunk-E7RGLETU.js} +1 -1
  29. package/browser/{chunk-BLEJLNEO.js → chunk-EKL4DD7N.js} +1 -1
  30. package/browser/{chunk-DYBRYTEM.js → chunk-EQ5MSD2S.js} +1 -1
  31. package/browser/{chunk-2ENLMKGR.js → chunk-EXV4D73Z.js} +1 -1
  32. package/browser/{chunk-7MJWZXSK.js → chunk-F7YYCFKH.js} +2 -2
  33. package/browser/chunk-FCDFHL3X.js +1 -0
  34. package/browser/{chunk-LIXEWT4U.js → chunk-FR2QCVXS.js} +1 -1
  35. package/browser/{chunk-ISN5K6K2.js → chunk-FYZR4T4Z.js} +1 -1
  36. package/browser/{chunk-3ZWJMFYL.js → chunk-GDASNIZL.js} +1 -1
  37. package/browser/{chunk-G3DZI5XK.js → chunk-GJCPLFMU.js} +1 -1
  38. package/browser/{chunk-KZBVWICA.js → chunk-GUN3GLFK.js} +1 -1
  39. package/browser/{chunk-ISQHQTAS.js → chunk-I5PFTS7W.js} +1 -1
  40. package/browser/{chunk-QWB3USYP.js → chunk-IB5IYQYR.js} +2 -2
  41. package/browser/{chunk-HFOJZ3B5.js → chunk-IRGMPCNS.js} +1 -1
  42. package/browser/{chunk-YUILNWDI.js → chunk-IX6SAYD6.js} +1 -1
  43. package/browser/{chunk-HFDJ5XSI.js → chunk-J4JATC4H.js} +1 -1
  44. package/browser/{chunk-CCJ6SHBL.js → chunk-JIYQX2TI.js} +1 -1
  45. package/browser/{chunk-SBTTKQ4L.js → chunk-KJ6Y5C2X.js} +1 -1
  46. package/browser/{chunk-PVBS6SYW.js → chunk-L2E3ETBG.js} +1 -1
  47. package/browser/{chunk-Q3DS2RLM.js → chunk-LJCEFLIZ.js} +1 -1
  48. package/browser/{chunk-G5JGQBAG.js → chunk-LKBQF2DU.js} +1 -1
  49. package/browser/{chunk-MFJH22SW.js → chunk-LNFN2XQO.js} +1 -1
  50. package/browser/{chunk-XFAV2VZL.js → chunk-MNQNS2XG.js} +1 -1
  51. package/browser/{chunk-IPPIH4F4.js → chunk-MW6VWMF2.js} +1 -1
  52. package/browser/{chunk-2FJNMKCN.js → chunk-N5HYVJLW.js} +1 -1
  53. package/browser/{chunk-BZ3GMUQ7.js → chunk-NRXQVTHC.js} +2 -2
  54. package/browser/{chunk-UZN4OKOJ.js → chunk-NX6SWHK4.js} +2 -2
  55. package/browser/{chunk-X2GHGFH2.js → chunk-O7AYJCX3.js} +1 -1
  56. package/browser/{chunk-QZRMHLML.js → chunk-OPACCKVN.js} +1 -1
  57. package/browser/{chunk-FV4MYFQI.js → chunk-OXGGKWTO.js} +1 -1
  58. package/browser/{chunk-Y7KCHRMM.js → chunk-PCAJ3T4Y.js} +1 -1
  59. package/browser/{chunk-4KYROBKJ.js → chunk-PE5RSFD4.js} +1 -1
  60. package/browser/{chunk-GESNWWTD.js → chunk-PG76XRHN.js} +1 -1
  61. package/browser/{chunk-T7PBUS2H.js → chunk-Q3HXBKNL.js} +1 -1
  62. package/browser/{chunk-PXIMA665.js → chunk-QM5JUHAR.js} +3 -3
  63. package/browser/{chunk-O3ENARQZ.js → chunk-QO5SWGKB.js} +1 -1
  64. package/browser/{chunk-T3ZHKT2K.js → chunk-R66UUSM7.js} +1 -1
  65. package/browser/{chunk-7L5VMLEF.js → chunk-R7X75CAN.js} +1 -1
  66. package/browser/{chunk-CXWICNFP.js → chunk-RJFWUHOP.js} +1 -1
  67. package/browser/{chunk-M2HEFQUY.js → chunk-S2XP3WT2.js} +1 -1
  68. package/browser/{chunk-A5CTHLE4.js → chunk-SXFDWJS4.js} +1 -1
  69. package/browser/{chunk-GBSRXCWH.js → chunk-TFJ6RC7Q.js} +1 -1
  70. package/browser/{chunk-PLR55YR2.js → chunk-TM4BVRKQ.js} +1 -1
  71. package/browser/{chunk-F765TCAS.js → chunk-TSYTV425.js} +1 -1
  72. package/browser/{chunk-4MQZXTMM.js → chunk-TXFCAVU2.js} +1 -1
  73. package/browser/chunk-UXISTLRF.js +1 -0
  74. package/browser/{chunk-S4D5UGSM.js → chunk-VD3VXMZE.js} +1 -1
  75. package/browser/{chunk-BFNGPKGX.js → chunk-VL552ANV.js} +1 -1
  76. package/browser/{chunk-3CUT73ZP.js → chunk-VLALB254.js} +1 -1
  77. package/browser/chunk-WMLA5VC3.js +4 -0
  78. package/browser/{chunk-Y5DX5U5Q.js → chunk-YAZTTW7K.js} +1 -1
  79. package/browser/{chunk-4YZVDERU.js → chunk-YDSGRKII.js} +1 -1
  80. package/browser/{chunk-3AZAILT2.js → chunk-Z6DKCJUZ.js} +1 -1
  81. package/browser/{chunk-2SZZVWQD.js → chunk-ZNKZYBB6.js} +2 -2
  82. package/browser/{chunk-MZSJCSUV.js → chunk-ZUH63VNR.js} +2 -2
  83. package/browser/{chunk-B7BVEOOI.js → chunk-ZVJGTPQY.js} +1 -1
  84. package/browser/index.html +2 -2
  85. package/browser/{main-4PHVOJ3C.js → main-OHWGY2LM.js} +2 -2
  86. package/package.json +1 -1
  87. package/browser/chunk-EAEOJMTA.js +0 -4
  88. package/browser/chunk-PHYDJ3P5.js +0 -1
  89. package/browser/chunk-PMDFKXZY.js +0 -1
@@ -1 +1 @@
1
- import{a as $}from"./chunk-RE6SQEP6.js";import{a as J,b as K}from"./chunk-32QBWLTN.js";import{a as G}from"./chunk-M3DKYPGC.js";import{e as Y,f as Z}from"./chunk-BFNGPKGX.js";import{a as Q,c as U}from"./chunk-D4FCXEV4.js";import{b as X}from"./chunk-JCLYKROE.js";import{h as H,m as q,q as z}from"./chunk-26YFRPR2.js";import{b as R,c as j}from"./chunk-JBS5UYZC.js";import{a as V}from"./chunk-2FWFPV5I.js";import{F as k,c as A,h as v,o as b}from"./chunk-DWZ5JTI2.js";import{p as L,s as B}from"./chunk-LGOSIAUC.js";import{Ab as O,Bb as y,Db as P,Eb as w,Fb as p,Gb as o,Hb as a,Nd as W,Pb as I,Sb as c,Tc as g,Ub as d,Xa as m,Ya as C,eb as h,hc as r,ib as M,ic as F,mb as D,mc as T,nc as S,oc as E,ta as u,ua as f,yb as N}from"./chunk-IEVGW2RT.js";var x=class s{stringPrefixMask=g();stringSuffixMask=g();stringPrefixMaskChange=new C;stringSuffixMaskChange=new C;onStringPrefixMaskChange(l){this.stringPrefixMaskChange.emit(l)}onStringSuffixMaskChange(l){this.stringSuffixMaskChange.emit(l)}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=M({type:s,selectors:[["masking-config"]],inputs:{stringPrefixMask:[1,"stringPrefixMask"],stringSuffixMask:[1,"stringSuffixMask"]},outputs:{stringPrefixMaskChange:"stringPrefixMaskChange",stringSuffixMaskChange:"stringSuffixMaskChange"},decls:18,vars:2,consts:[[1,"row","my-10","ms-2"],[1,"col-md-2"],[1,"notes","text-muted"],[1,"col-md-10"],[1,"row"],[1,"col-6"],["matTooltipPosition","above","matTooltip","Sets the number of characters at the beginning of the sensitive field that remain visible",1,"form-floating-outline"],["type","text","id","name","placeholder","Max Visible Prefix","autoNum","",1,"form-control",3,"ngModelChange","ngModel"],["matTooltipPosition","above","matTooltip","Sets the number of characters at the end of the sensitive field that remain visible",1,"form-floating-outline"],["type","text","id","name","placeholder","Max Visible Suffix","autoNum","",1,"form-control",3,"ngModelChange","ngModel"]],template:function(e,i){e&1&&(o(0,"div",0)(1,"div",1)(2,"h5"),r(3,"Visible Masking Settings"),a(),o(4,"i",2),r(5," Configure how many characters at the beginning and end of sensitive fields remain visible. "),a()(),o(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"input",7),c("ngModelChange",function(n){return i.onStringPrefixMaskChange(n)}),a(),o(11,"label"),r(12,"Max Visible Prefix"),a()()(),o(13,"div",5)(14,"div",8)(15,"input",9),c("ngModelChange",function(n){return i.onStringSuffixMaskChange(n)}),a(),o(16,"label"),r(17,"Max Visible Suffix"),a()()()()()()),e&2&&(m(10),p("ngModel",i.stringPrefixMask()),m(5),p("ngModel",i.stringSuffixMask()))},dependencies:[k,A,v,b,Q,U,j,R],encapsulation:2})};function oe(s,l){if(s&1&&(o(0,"mat-option",10),r(1),a()),s&2){let e=l.$implicit;p("value",e),m(),F(e)}}function ae(s,l){if(s&1&&(o(0,"mat-option",10),r(1),a()),s&2){let e=l.$implicit;p("value",e),m(),F(e)}}var _=class s{options=g();contacts=g([]);products=g([]);contactsChange=new C;productsChange=new C;onContactsChange(l){this.contactsChange.emit(l)}onProductsChange(l){this.productsChange.emit(l)}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=M({type:s,selectors:[["masking-options"]],inputs:{options:[1,"options"],contacts:[1,"contacts"],products:[1,"products"]},outputs:{contactsChange:"contactsChange",productsChange:"productsChange"},decls:27,vars:2,consts:[[1,"row","my-10","ms-2"],[1,"col-md-2"],[1,"notes","text-muted"],["href","https://support.dealpos.com/en/articles/8278008-sensitive-field-roles-configuration-for-contacts","target","_blank"],[1,"col-md-10"],[1,"row"],[1,"col-6"],["appearance","outline",1,"w-100"],[1,"fs-4"],["placeholder","Product","multiple","",3,"ngModelChange","ngModel"],[3,"value"],["placeholder","Contact","multiple","",3,"ngModelChange","ngModel"]],template:function(e,i){if(e&1&&(o(0,"div",0)(1,"div",1)(2,"h5"),r(3,"Sensitive Field"),a(),o(4,"i",2),r(5,"When you mark a property as sensitive, the property value cannot be viewed to users without 'sensitive field' role. Please refer this "),o(6,"a",3),r(7,"Article"),a(),r(8," for more information"),a()(),o(9,"div",4)(10,"div",5)(11,"div",6)(12,"mat-form-field",7)(13,"mat-label")(14,"span",8),r(15,"Product"),a()(),o(16,"mat-select",9),c("ngModelChange",function(n){return i.onProductsChange(n)}),P(17,oe,2,2,"mat-option",10,y),a()()(),o(19,"div",6)(20,"mat-form-field",7)(21,"mat-label")(22,"span",8),r(23,"Contact"),a()(),o(24,"mat-select",11),c("ngModelChange",function(n){return i.onContactsChange(n)}),P(25,ae,2,2,"mat-option",10,y),a()()()()()()),e&2){let t,n;m(16),p("ngModel",i.products()),m(),w((t=i.options())==null?null:t.Product),m(7),p("ngModel",i.contacts()),m(),w((n=i.options())==null?null:n.Customer)}},dependencies:[K,q,H,J,z,G,k,v,b],encapsulation:2})};function re(s,l){if(s&1){let e=I();o(0,"mainpanel-cmp",0)(1,"actions")(2,"button",1),c("click",function(){u(e);let t=d();return f(t.onSubmit("Setup/Configuration/SubmitSensitiveFieldConfigurationV2"))}),r(3," Save "),a()(),o(4,"content")(5,"div",2)(6,"ul",3)(7,"li",4)(8,"button",5),r(9," Objects "),a()(),o(10,"li",4)(11,"button",6),r(12," Masking "),a()()(),o(13,"div",7)(14,"div",8)(15,"masking-options",9),E("productsChange",function(t){u(e);let n=d();return S(n.data.Form.Product,t)||(n.data.Form.Product=t),f(t)})("contactsChange",function(t){u(e);let n=d();return S(n.data.Form.Customer,t)||(n.data.Form.Customer=t),f(t)}),a()(),o(16,"div",10)(17,"masking-config",11),E("stringPrefixMaskChange",function(t){u(e);let n=d();return S(n.data.Form.Masking.StringPrefixMaskVisibleCharacterLength,t)||(n.data.Form.Masking.StringPrefixMaskVisibleCharacterLength=t),f(t)})("stringSuffixMaskChange",function(t){u(e);let n=d();return S(n.data.Form.Masking.StringSuffixMaskVisibleCharacterLength,t)||(n.data.Form.Masking.StringSuffixMaskVisibleCharacterLength=t),f(t)}),a()()()()()()}if(s&2){let e=d();p("pageData",e.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),m(15),p("options",e.data.Options),T("products",e.data.Form.Product)("contacts",e.data.Form.Customer),m(2),T("stringPrefixMask",e.data.Form.Masking.StringPrefixMaskVisibleCharacterLength)("stringSuffixMask",e.data.Form.Masking.StringSuffixMaskVisibleCharacterLength)}}var ie=class s extends ${constructor(e,i,t,n){super(e,i,"Setup/ConfigurationLoader/SensitiveFieldConfigurationV2",t);this.httpService=i;this.activatedRoute=t;this.toaster=n}onSubmitSuccess(e){e?.MessageWarning?this.toaster.warning(e.MessageWarning,V.Warning):this.toaster.success("Config has been updated succesfully!",V.Success)}static \u0275fac=function(i){return new(i||s)(h(X),h(B),h(W),h(L))};static \u0275cmp=M({type:s,selectors:[["app-sensitive-field"]],features:[D],decls:1,vars:1,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox"],["type","button","role","button",1,"btn","btn-success",3,"click"],[1,"container-fluid","py-5","bg-light-white"],["id","myTab","role","tablist",1,"nav","nav-tabs"],[1,"nav-item"],["id","masking-options-tab","data-bs-toggle","tab","data-bs-target","#masking-options","role","tab","aria-controls","masking-options","aria-selected","true",1,"nav-link","active"],["id","masking-tab","data-bs-toggle","tab","data-bs-target","#masking","role","tab","aria-controls","masking","aria-selected","false",1,"nav-link"],["id","myTabContent",1,"tab-content","border-top-0","bg-white"],["id","masking-options","aria-labelledby","masking-options-tab","role","tabpanel",1,"tab-pane","fade","mt-0","p-7","show","active"],[3,"productsChange","contactsChange","options","products","contacts"],["id","masking","aria-labelledby","masking-tab","role","tabpanel",1,"tab-pane","fade","mt-0","p-7"],[3,"stringPrefixMaskChange","stringSuffixMaskChange","stringPrefixMask","stringSuffixMask"]],template:function(i,t){i&1&&N(0,re,18,8,"mainpanel-cmp",0),i&2&&O(t.formData?0:-1)},dependencies:[Z,Y,x,_],encapsulation:2})};export{ie as a};
1
+ import{a as $}from"./chunk-5TRWYRN5.js";import{a as J,b as K}from"./chunk-32QBWLTN.js";import{a as G}from"./chunk-M3DKYPGC.js";import{e as Y,f as Z}from"./chunk-VL552ANV.js";import{a as Q,c as U}from"./chunk-D4FCXEV4.js";import{b as X}from"./chunk-E7RGLETU.js";import{h as H,m as q,q as z}from"./chunk-26YFRPR2.js";import{b as R,c as j}from"./chunk-JBS5UYZC.js";import{a as V}from"./chunk-2FWFPV5I.js";import{F as k,c as A,h as v,o as b}from"./chunk-DWZ5JTI2.js";import{p as L,s as B}from"./chunk-LGOSIAUC.js";import{Ab as O,Bb as y,Db as P,Eb as w,Fb as p,Gb as o,Hb as a,Nd as W,Pb as I,Sb as c,Tc as g,Ub as d,Xa as m,Ya as C,eb as h,hc as r,ib as M,ic as F,mb as D,mc as T,nc as S,oc as E,ta as u,ua as f,yb as N}from"./chunk-IEVGW2RT.js";var x=class s{stringPrefixMask=g();stringSuffixMask=g();stringPrefixMaskChange=new C;stringSuffixMaskChange=new C;onStringPrefixMaskChange(l){this.stringPrefixMaskChange.emit(l)}onStringSuffixMaskChange(l){this.stringSuffixMaskChange.emit(l)}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=M({type:s,selectors:[["masking-config"]],inputs:{stringPrefixMask:[1,"stringPrefixMask"],stringSuffixMask:[1,"stringSuffixMask"]},outputs:{stringPrefixMaskChange:"stringPrefixMaskChange",stringSuffixMaskChange:"stringSuffixMaskChange"},decls:18,vars:2,consts:[[1,"row","my-10","ms-2"],[1,"col-md-2"],[1,"notes","text-muted"],[1,"col-md-10"],[1,"row"],[1,"col-6"],["matTooltipPosition","above","matTooltip","Sets the number of characters at the beginning of the sensitive field that remain visible",1,"form-floating-outline"],["type","text","id","name","placeholder","Max Visible Prefix","autoNum","",1,"form-control",3,"ngModelChange","ngModel"],["matTooltipPosition","above","matTooltip","Sets the number of characters at the end of the sensitive field that remain visible",1,"form-floating-outline"],["type","text","id","name","placeholder","Max Visible Suffix","autoNum","",1,"form-control",3,"ngModelChange","ngModel"]],template:function(e,i){e&1&&(o(0,"div",0)(1,"div",1)(2,"h5"),r(3,"Visible Masking Settings"),a(),o(4,"i",2),r(5," Configure how many characters at the beginning and end of sensitive fields remain visible. "),a()(),o(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"input",7),c("ngModelChange",function(n){return i.onStringPrefixMaskChange(n)}),a(),o(11,"label"),r(12,"Max Visible Prefix"),a()()(),o(13,"div",5)(14,"div",8)(15,"input",9),c("ngModelChange",function(n){return i.onStringSuffixMaskChange(n)}),a(),o(16,"label"),r(17,"Max Visible Suffix"),a()()()()()()),e&2&&(m(10),p("ngModel",i.stringPrefixMask()),m(5),p("ngModel",i.stringSuffixMask()))},dependencies:[k,A,v,b,Q,U,j,R],encapsulation:2})};function oe(s,l){if(s&1&&(o(0,"mat-option",10),r(1),a()),s&2){let e=l.$implicit;p("value",e),m(),F(e)}}function ae(s,l){if(s&1&&(o(0,"mat-option",10),r(1),a()),s&2){let e=l.$implicit;p("value",e),m(),F(e)}}var _=class s{options=g();contacts=g([]);products=g([]);contactsChange=new C;productsChange=new C;onContactsChange(l){this.contactsChange.emit(l)}onProductsChange(l){this.productsChange.emit(l)}static \u0275fac=function(e){return new(e||s)};static \u0275cmp=M({type:s,selectors:[["masking-options"]],inputs:{options:[1,"options"],contacts:[1,"contacts"],products:[1,"products"]},outputs:{contactsChange:"contactsChange",productsChange:"productsChange"},decls:27,vars:2,consts:[[1,"row","my-10","ms-2"],[1,"col-md-2"],[1,"notes","text-muted"],["href","https://support.dealpos.com/en/articles/8278008-sensitive-field-roles-configuration-for-contacts","target","_blank"],[1,"col-md-10"],[1,"row"],[1,"col-6"],["appearance","outline",1,"w-100"],[1,"fs-4"],["placeholder","Product","multiple","",3,"ngModelChange","ngModel"],[3,"value"],["placeholder","Contact","multiple","",3,"ngModelChange","ngModel"]],template:function(e,i){if(e&1&&(o(0,"div",0)(1,"div",1)(2,"h5"),r(3,"Sensitive Field"),a(),o(4,"i",2),r(5,"When you mark a property as sensitive, the property value cannot be viewed to users without 'sensitive field' role. Please refer this "),o(6,"a",3),r(7,"Article"),a(),r(8," for more information"),a()(),o(9,"div",4)(10,"div",5)(11,"div",6)(12,"mat-form-field",7)(13,"mat-label")(14,"span",8),r(15,"Product"),a()(),o(16,"mat-select",9),c("ngModelChange",function(n){return i.onProductsChange(n)}),P(17,oe,2,2,"mat-option",10,y),a()()(),o(19,"div",6)(20,"mat-form-field",7)(21,"mat-label")(22,"span",8),r(23,"Contact"),a()(),o(24,"mat-select",11),c("ngModelChange",function(n){return i.onContactsChange(n)}),P(25,ae,2,2,"mat-option",10,y),a()()()()()()),e&2){let t,n;m(16),p("ngModel",i.products()),m(),w((t=i.options())==null?null:t.Product),m(7),p("ngModel",i.contacts()),m(),w((n=i.options())==null?null:n.Customer)}},dependencies:[K,q,H,J,z,G,k,v,b],encapsulation:2})};function re(s,l){if(s&1){let e=I();o(0,"mainpanel-cmp",0)(1,"actions")(2,"button",1),c("click",function(){u(e);let t=d();return f(t.onSubmit("Setup/Configuration/SubmitSensitiveFieldConfigurationV2"))}),r(3," Save "),a()(),o(4,"content")(5,"div",2)(6,"ul",3)(7,"li",4)(8,"button",5),r(9," Objects "),a()(),o(10,"li",4)(11,"button",6),r(12," Masking "),a()()(),o(13,"div",7)(14,"div",8)(15,"masking-options",9),E("productsChange",function(t){u(e);let n=d();return S(n.data.Form.Product,t)||(n.data.Form.Product=t),f(t)})("contactsChange",function(t){u(e);let n=d();return S(n.data.Form.Customer,t)||(n.data.Form.Customer=t),f(t)}),a()(),o(16,"div",10)(17,"masking-config",11),E("stringPrefixMaskChange",function(t){u(e);let n=d();return S(n.data.Form.Masking.StringPrefixMaskVisibleCharacterLength,t)||(n.data.Form.Masking.StringPrefixMaskVisibleCharacterLength=t),f(t)})("stringSuffixMaskChange",function(t){u(e);let n=d();return S(n.data.Form.Masking.StringSuffixMaskVisibleCharacterLength,t)||(n.data.Form.Masking.StringSuffixMaskVisibleCharacterLength=t),f(t)}),a()()()()()()}if(s&2){let e=d();p("pageData",e.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),m(15),p("options",e.data.Options),T("products",e.data.Form.Product)("contacts",e.data.Form.Customer),m(2),T("stringPrefixMask",e.data.Form.Masking.StringPrefixMaskVisibleCharacterLength)("stringSuffixMask",e.data.Form.Masking.StringSuffixMaskVisibleCharacterLength)}}var ie=class s extends ${constructor(e,i,t,n){super(e,i,"Setup/ConfigurationLoader/SensitiveFieldConfigurationV2",t);this.httpService=i;this.activatedRoute=t;this.toaster=n}onSubmitSuccess(e){e?.MessageWarning?this.toaster.warning(e.MessageWarning,V.Warning):this.toaster.success("Config has been updated succesfully!",V.Success)}static \u0275fac=function(i){return new(i||s)(h(X),h(B),h(W),h(L))};static \u0275cmp=M({type:s,selectors:[["app-sensitive-field"]],features:[D],decls:1,vars:1,consts:[[3,"pageData","hideSearchDropdown","hideSearchBox"],["type","button","role","button",1,"btn","btn-success",3,"click"],[1,"container-fluid","py-5","bg-light-white"],["id","myTab","role","tablist",1,"nav","nav-tabs"],[1,"nav-item"],["id","masking-options-tab","data-bs-toggle","tab","data-bs-target","#masking-options","role","tab","aria-controls","masking-options","aria-selected","true",1,"nav-link","active"],["id","masking-tab","data-bs-toggle","tab","data-bs-target","#masking","role","tab","aria-controls","masking","aria-selected","false",1,"nav-link"],["id","myTabContent",1,"tab-content","border-top-0","bg-white"],["id","masking-options","aria-labelledby","masking-options-tab","role","tabpanel",1,"tab-pane","fade","mt-0","p-7","show","active"],[3,"productsChange","contactsChange","options","products","contacts"],["id","masking","aria-labelledby","masking-tab","role","tabpanel",1,"tab-pane","fade","mt-0","p-7"],[3,"stringPrefixMaskChange","stringSuffixMaskChange","stringPrefixMask","stringSuffixMask"]],template:function(i,t){i&1&&N(0,re,18,8,"mainpanel-cmp",0),i&2&&O(t.formData?0:-1)},dependencies:[Z,Y,x,_],encapsulation:2})};export{ie as a};
@@ -1,4 +1,4 @@
1
- import{a as ne,c as Ft,d as It}from"./chunk-OZ3MKU4C.js";import{d as ie}from"./chunk-R2GUMKAU.js";import{a as bt}from"./chunk-BT7NN7PT.js";import{F as Pt,G as Et,u as Vt,v as Tt,w as kt}from"./chunk-26YFRPR2.js";import{b as vt,c as yt}from"./chunk-JBS5UYZC.js";import{N as Dt,n as Mt}from"./chunk-TEGIL5RZ.js";import{a as ot,e as xt,f as wt,g as St}from"./chunk-ZTD4APMR.js";import{s as Ct}from"./chunk-7P3L3ODB.js";import{c as gt,d as _t,h as ht,k as j}from"./chunk-FU2ZGMX4.js";import{G as Ce,M as ct,N as dt,b as at,k as rt,la as pt,oa as ut,p as lt,pa as te,ua as mt,w as st,xa as ft}from"./chunk-SLX34TWD.js";import{F as tt,c as $e,h as Ye,i as Ge,k as Xe,o as Je,p as et}from"./chunk-DWZ5JTI2.js";import{a as qe,c as it}from"./chunk-KZBVWICA.js";import{a as nt}from"./chunk-SBTTKQ4L.js";import{a as N}from"./chunk-WUV22SZ4.js";import{c as We,d as he,f as J,g as ee,i as be,p as Ze}from"./chunk-LGOSIAUC.js";import{$c as Y,Ab as f,Cb as S,Db as V,Eb as T,Fb as u,Fc as Z,Gb as a,Gc as fe,Hb as l,Hc as Oe,Ia as de,Ib as _,N as Ve,Ob as Be,Pb as b,Pc as ge,Qd as Qe,Rd as ze,Sb as g,Sd as Ue,Tc as _e,Ub as c,Uc as $,Vb as z,Wa as Me,Wb as k,Xa as s,Xb as E,Ya as y,Za as De,Zb as F,_b as I,_c as Le,aa as Te,ac as U,ad as Re,bc as Ke,d as we,eb as v,ec as pe,gc as ue,gd as Ne,hc as h,ib as B,ic as A,jb as Q,jc as O,jd as je,la as H,lb as Pe,ma as W,mb as Ee,mc as M,md as He,na as ke,nb as Fe,nc as D,nd as G,ob as K,oc as P,pa as w,sc as L,t as Se,ta as d,ua as p,vd as R,wb as Ie,wc as Ae,wd as X,xc as q,yb as m,yc as x,zc as me}from"./chunk-IEVGW2RT.js";import{a as ce,b as xe}from"./chunk-SNAKHGZS.js";var oe=class t{_openDialog=new we;openDialog$=this._openDialog.asObservable();openDialog(){this._openDialog.next()}static \u0275fac=function(e){return new(e||t)};static \u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"})};var Ht=["content"],Wt=["*"],Qt=(t,o)=>({showTransitionParams:t,hideTransitionParams:o}),zt=(t,o)=>({value:t,params:o}),Ut=t=>({closeCallback:t});function qt(t,o){}function Zt(t,o){t&1&&K(0,qt,0,0,"ng-template")}function $t(t,o){if(t&1){let e=b();a(0,"div",1),g("click",function(i){d(e);let r=c();return p(r.onOverlayClick(i))})("@animation.start",function(i){d(e);let r=c();return p(r.onAnimationStart(i))})("@animation.done",function(i){d(e);let r=c();return p(r.onAnimationEnd(i))}),a(1,"div",2),g("click",function(i){d(e);let r=c();return p(r.onContentClick(i))})("mousedown",function(i){d(e);let r=c();return p(r.onContentClick(i))}),k(2),K(3,Zt,1,0,null,3),l()()}if(t&2){let e=c();ue(e.cn(e.cx("root"),e.styleClass)),u("pBind",e.ptm("root"))("ngStyle",e.style)("@animation",me(16,zt,e.overlayVisible?"open":"close",me(13,Qt,e.showTransitionOptions,e.hideTransitionOptions))),Ie("aria-modal",e.overlayVisible)("aria-label",e.ariaLabel)("aria-labelledBy",e.ariaLabelledBy),s(),ue(e.cx("content")),u("pBind",e.ptm("content")),s(2),u("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",x(19,Ut,e.onCloseClick.bind(e)))}}var Yt=`
1
+ import{a as ne,c as Ft,d as It}from"./chunk-4XR5RPFW.js";import{d as ie}from"./chunk-R2GUMKAU.js";import{a as bt}from"./chunk-BT7NN7PT.js";import{F as Pt,G as Et,u as Vt,v as Tt,w as kt}from"./chunk-26YFRPR2.js";import{b as vt,c as yt}from"./chunk-JBS5UYZC.js";import{N as Dt,n as Mt}from"./chunk-TEGIL5RZ.js";import{a as ot,e as xt,f as wt,g as St}from"./chunk-ZTD4APMR.js";import{s as Ct}from"./chunk-7P3L3ODB.js";import{c as gt,d as _t,h as ht,k as j}from"./chunk-FU2ZGMX4.js";import{G as Ce,M as ct,N as dt,b as at,k as rt,la as pt,oa as ut,p as lt,pa as te,ua as mt,w as st,xa as ft}from"./chunk-SLX34TWD.js";import{F as tt,c as $e,h as Ye,i as Ge,k as Xe,o as Je,p as et}from"./chunk-DWZ5JTI2.js";import{a as qe,c as it}from"./chunk-GUN3GLFK.js";import{a as nt}from"./chunk-KJ6Y5C2X.js";import{a as N}from"./chunk-WUV22SZ4.js";import{c as We,d as he,f as J,g as ee,i as be,p as Ze}from"./chunk-LGOSIAUC.js";import{$c as Y,Ab as f,Cb as S,Db as V,Eb as T,Fb as u,Fc as Z,Gb as a,Gc as fe,Hb as l,Hc as Oe,Ia as de,Ib as _,N as Ve,Ob as Be,Pb as b,Pc as ge,Qd as Qe,Rd as ze,Sb as g,Sd as Ue,Tc as _e,Ub as c,Uc as $,Vb as z,Wa as Me,Wb as k,Xa as s,Xb as E,Ya as y,Za as De,Zb as F,_b as I,_c as Le,aa as Te,ac as U,ad as Re,bc as Ke,d as we,eb as v,ec as pe,gc as ue,gd as Ne,hc as h,ib as B,ic as A,jb as Q,jc as O,jd as je,la as H,lb as Pe,ma as W,mb as Ee,mc as M,md as He,na as ke,nb as Fe,nc as D,nd as G,ob as K,oc as P,pa as w,sc as L,t as Se,ta as d,ua as p,vd as R,wb as Ie,wc as Ae,wd as X,xc as q,yb as m,yc as x,zc as me}from"./chunk-IEVGW2RT.js";import{a as ce,b as xe}from"./chunk-SNAKHGZS.js";var oe=class t{_openDialog=new we;openDialog$=this._openDialog.asObservable();openDialog(){this._openDialog.next()}static \u0275fac=function(e){return new(e||t)};static \u0275prov=H({token:t,factory:t.\u0275fac,providedIn:"root"})};var Ht=["content"],Wt=["*"],Qt=(t,o)=>({showTransitionParams:t,hideTransitionParams:o}),zt=(t,o)=>({value:t,params:o}),Ut=t=>({closeCallback:t});function qt(t,o){}function Zt(t,o){t&1&&K(0,qt,0,0,"ng-template")}function $t(t,o){if(t&1){let e=b();a(0,"div",1),g("click",function(i){d(e);let r=c();return p(r.onOverlayClick(i))})("@animation.start",function(i){d(e);let r=c();return p(r.onAnimationStart(i))})("@animation.done",function(i){d(e);let r=c();return p(r.onAnimationEnd(i))}),a(1,"div",2),g("click",function(i){d(e);let r=c();return p(r.onContentClick(i))})("mousedown",function(i){d(e);let r=c();return p(r.onContentClick(i))}),k(2),K(3,Zt,1,0,null,3),l()()}if(t&2){let e=c();ue(e.cn(e.cx("root"),e.styleClass)),u("pBind",e.ptm("root"))("ngStyle",e.style)("@animation",me(16,zt,e.overlayVisible?"open":"close",me(13,Qt,e.showTransitionOptions,e.hideTransitionOptions))),Ie("aria-modal",e.overlayVisible)("aria-label",e.ariaLabel)("aria-labelledBy",e.ariaLabelledBy),s(),ue(e.cx("content")),u("pBind",e.ptm("content")),s(2),u("ngTemplateOutlet",e.contentTemplate||e._contentTemplate)("ngTemplateOutletContext",x(19,Ut,e.onCloseClick.bind(e)))}}var Yt=`
2
2
  .p-popover {
3
3
  margin-top: dt('popover.gutter');
4
4
  background: dt('popover.background');
@@ -1 +1 @@
1
- import{a as L}from"./chunk-7L5VMLEF.js";import{C as N,F as j,G as D,c as P,h as A,i as V,k as I,o as R,p as U}from"./chunk-DWZ5JTI2.js";import{c as k}from"./chunk-KZBVWICA.js";import"./chunk-SBTTKQ4L.js";import"./chunk-36GWLMZX.js";import"./chunk-WFQIMZGL.js";import{a as m}from"./chunk-WUV22SZ4.js";import"./chunk-EAEOJMTA.js";import{p as E}from"./chunk-LGOSIAUC.js";import{Gb as i,Hb as n,Ib as u,Pb as y,Pd as M,Sb as h,Xa as b,Yb as _,Zb as S,_b as x,d as f,da as v,eb as d,hc as s,ib as C,mc as w,nc as O,oc as T,ta as l,ua as p}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var F=["totpCode"],z=class g{constructor(e,t,o,r){this.authenticatorService=e;this.router=t;this.authService=o;this.toastrService=r;this.redirectUrl=this.authService.returnUrl,this.destroy$=new f,this.checkOnRefreshPage()}validationCodeEl;validationCode;redirectUrl;destroy$;ngOnInit(){document.body.classList.add("login-body")}ngAfterViewInit(){this.validationCodeEl.nativeElement.focus()}ngOnDestroy(){document.body.classList.remove("login-body"),this.destroy$.next(!0),this.destroy$.complete()}checkOnRefreshPage(){m.IsEmpty(this.authService.loginResponse)&&this.router.navigate(["/"])}onSubmit(){this.validateOnVerfiyCode()&&this.authenticatorService.validateCode(this.validationCode,this.authService.loginResponse.UserID).pipe(v(this.destroy$)).subscribe({next:e=>{if(this.authService.saveLoginConfigToStorage(e),m.IsNotEmpty(this.redirectUrl))this.router.navigateByUrl(this.redirectUrl),this.authService.returnUrl=null;else{let t=this.authService.getRedirectUrl();this.router.navigate([t])}}})}validateOnVerfiyCode(){let e=!0;return m.IsEmpty(this.validationCode)?(e=!1,this.toastrService.warning("You must enter a authentication code.","Warning")):(this.validationCode.length<6||this.validationCode.length>6)&&(e=!1,this.toastrService.warning("The authentication code must be six digits long.","Warning")),e}numberOnly(e){return m.numberOnly(e)}submitOnFullOTP(e){e.length==6&&this.onSubmit()}static \u0275fac=function(t){return new(t||g)(d(L),d(M),d(k),d(E))};static \u0275cmp=C({type:g,selectors:[["POS-auth-totp"]],viewQuery:function(t,o){if(t&1&&_(F,5),t&2){let r;S(r=x())&&(o.validationCodeEl=r.first)}},decls:28,vars:1,consts:[["totpCode",""],[1,"container-fluid"],[1,"row","bg-white","mx-auto","totp-pane"],[1,"col-md-7","order-md-first","order-first","form-pane"],[1,"text-start"],[1,"mt-6","text-start"],[3,"submit"],[1,"row","mt-3"],[1,"col-12","text-start","otp-container","position-relative"],["for","totpCode",1,"form-label"],["type","text","maxlength","6","data-cy","totp-code","aria-label","Username","name","totp-code","id","totpCode",1,"border-0",3,"ngModelChange","keypress","ngModel"],[1,"stripe"],["type","submit",1,"btn","btn-lg","btn-primary","rounded-1","fw-normal","rounded-0"],[1,"col-md-5","order-md-last","order-last","border-start","border-secondary","d-flex","align-items-center","justify-content-center","img-pane"],[1,"d-flex","align-items-center","justify-content-center","mb-6"],["src","https://cdn.dealpos.xyz/web-image/TOTP.png",1,"border-0",2,"width","50%"],[1,"fixed-bottom"],[1,"d-flex","justify-content-start","mb-11","mx-11","footer-mobile"],["target","_blank","href","http://www.dealpos.com"],["src","https://cdn.dealpos.app/public/logo/dealpos_130.png",1,"ms-3","border-0"]],template:function(t,o){if(t&1){let r=y();i(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3",4),s(4,"Enter time-based OTP"),n(),i(5,"p",5),s(6,"Enter the OTP generated on your authenticator app"),n(),i(7,"form",6),h("submit",function(){return l(r),p(o.onSubmit())}),i(8,"div",7)(9,"div",8)(10,"label",9),s(11,"AUTHENTICATION CODE"),n(),i(12,"input",10,0),T("ngModelChange",function(a){return l(r),O(o.validationCode,a)||(o.validationCode=a),p(a)}),h("keypress",function(a){return l(r),p(o.numberOnly(a))})("ngModelChange",function(a){return l(r),p(o.submitOnFullOTP(a))}),n(),i(14,"span",11),s(15,"______"),n(),i(16,"button",12),s(17," Verify "),n()()()()(),i(18,"div",13)(19,"div",14),u(20,"img",15),n()()(),i(21,"div",16)(22,"div",17)(23,"div")(24,"span"),s(25,"powered by :"),n(),u(26,"a",18)(27,"img",19),n()()()()}t&2&&(b(12),w("ngModel",o.validationCode))},dependencies:[D,U,P,A,V,N,j,R,I],styles:["input[type=submit][_ngcontent-%COMP%]{font-size:1.125rem;width:11.25rem;font-family:Roboto Slab,serif}.totp-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:140px}@media (max-width: 768px){.totp-pane[_ngcontent-%COMP%]{margin-top:0}}.form-pane[_ngcontent-%COMP%]{padding:3rem}@media (max-width: 768px){.form-pane[_ngcontent-%COMP%]{padding:50px 24px 30px}}@media (max-width: 768px){.img-pane[_ngcontent-%COMP%]{border:0px!important}}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;width:325px;font-family:monospace;background:transparent;z-index:1;position:relative}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none!important}.otp-container[_ngcontent-%COMP%] .stripe[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;font-family:monospace;position:absolute;padding-top:6px;z-index:0;bottom:0;left:14px}"]})};export{z as AuthTotpComponent};
1
+ import{a as L}from"./chunk-R7X75CAN.js";import{C as N,F as j,G as D,c as P,h as A,i as V,k as I,o as R,p as U}from"./chunk-DWZ5JTI2.js";import{c as k}from"./chunk-GUN3GLFK.js";import"./chunk-KJ6Y5C2X.js";import"./chunk-36GWLMZX.js";import"./chunk-WFQIMZGL.js";import{a as m}from"./chunk-WUV22SZ4.js";import"./chunk-WMLA5VC3.js";import{p as E}from"./chunk-LGOSIAUC.js";import{Gb as i,Hb as n,Ib as u,Pb as y,Pd as M,Sb as h,Xa as b,Yb as _,Zb as S,_b as x,d as f,da as v,eb as d,hc as s,ib as C,mc as w,nc as O,oc as T,ta as l,ua as p}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var F=["totpCode"],z=class g{constructor(e,t,o,r){this.authenticatorService=e;this.router=t;this.authService=o;this.toastrService=r;this.redirectUrl=this.authService.returnUrl,this.destroy$=new f,this.checkOnRefreshPage()}validationCodeEl;validationCode;redirectUrl;destroy$;ngOnInit(){document.body.classList.add("login-body")}ngAfterViewInit(){this.validationCodeEl.nativeElement.focus()}ngOnDestroy(){document.body.classList.remove("login-body"),this.destroy$.next(!0),this.destroy$.complete()}checkOnRefreshPage(){m.IsEmpty(this.authService.loginResponse)&&this.router.navigate(["/"])}onSubmit(){this.validateOnVerfiyCode()&&this.authenticatorService.validateCode(this.validationCode,this.authService.loginResponse.UserID).pipe(v(this.destroy$)).subscribe({next:e=>{if(this.authService.saveLoginConfigToStorage(e),m.IsNotEmpty(this.redirectUrl))this.router.navigateByUrl(this.redirectUrl),this.authService.returnUrl=null;else{let t=this.authService.getRedirectUrl();this.router.navigate([t])}}})}validateOnVerfiyCode(){let e=!0;return m.IsEmpty(this.validationCode)?(e=!1,this.toastrService.warning("You must enter a authentication code.","Warning")):(this.validationCode.length<6||this.validationCode.length>6)&&(e=!1,this.toastrService.warning("The authentication code must be six digits long.","Warning")),e}numberOnly(e){return m.numberOnly(e)}submitOnFullOTP(e){e.length==6&&this.onSubmit()}static \u0275fac=function(t){return new(t||g)(d(L),d(M),d(k),d(E))};static \u0275cmp=C({type:g,selectors:[["POS-auth-totp"]],viewQuery:function(t,o){if(t&1&&_(F,5),t&2){let r;S(r=x())&&(o.validationCodeEl=r.first)}},decls:28,vars:1,consts:[["totpCode",""],[1,"container-fluid"],[1,"row","bg-white","mx-auto","totp-pane"],[1,"col-md-7","order-md-first","order-first","form-pane"],[1,"text-start"],[1,"mt-6","text-start"],[3,"submit"],[1,"row","mt-3"],[1,"col-12","text-start","otp-container","position-relative"],["for","totpCode",1,"form-label"],["type","text","maxlength","6","data-cy","totp-code","aria-label","Username","name","totp-code","id","totpCode",1,"border-0",3,"ngModelChange","keypress","ngModel"],[1,"stripe"],["type","submit",1,"btn","btn-lg","btn-primary","rounded-1","fw-normal","rounded-0"],[1,"col-md-5","order-md-last","order-last","border-start","border-secondary","d-flex","align-items-center","justify-content-center","img-pane"],[1,"d-flex","align-items-center","justify-content-center","mb-6"],["src","https://cdn.dealpos.xyz/web-image/TOTP.png",1,"border-0",2,"width","50%"],[1,"fixed-bottom"],[1,"d-flex","justify-content-start","mb-11","mx-11","footer-mobile"],["target","_blank","href","http://www.dealpos.com"],["src","https://cdn.dealpos.app/public/logo/dealpos_130.png",1,"ms-3","border-0"]],template:function(t,o){if(t&1){let r=y();i(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3",4),s(4,"Enter time-based OTP"),n(),i(5,"p",5),s(6,"Enter the OTP generated on your authenticator app"),n(),i(7,"form",6),h("submit",function(){return l(r),p(o.onSubmit())}),i(8,"div",7)(9,"div",8)(10,"label",9),s(11,"AUTHENTICATION CODE"),n(),i(12,"input",10,0),T("ngModelChange",function(a){return l(r),O(o.validationCode,a)||(o.validationCode=a),p(a)}),h("keypress",function(a){return l(r),p(o.numberOnly(a))})("ngModelChange",function(a){return l(r),p(o.submitOnFullOTP(a))}),n(),i(14,"span",11),s(15,"______"),n(),i(16,"button",12),s(17," Verify "),n()()()()(),i(18,"div",13)(19,"div",14),u(20,"img",15),n()()(),i(21,"div",16)(22,"div",17)(23,"div")(24,"span"),s(25,"powered by :"),n(),u(26,"a",18)(27,"img",19),n()()()()}t&2&&(b(12),w("ngModel",o.validationCode))},dependencies:[D,U,P,A,V,N,j,R,I],styles:["input[type=submit][_ngcontent-%COMP%]{font-size:1.125rem;width:11.25rem;font-family:Roboto Slab,serif}.totp-pane[_ngcontent-%COMP%]{max-width:57rem;height:max-content;margin-top:140px}@media (max-width: 768px){.totp-pane[_ngcontent-%COMP%]{margin-top:0}}.form-pane[_ngcontent-%COMP%]{padding:3rem}@media (max-width: 768px){.form-pane[_ngcontent-%COMP%]{padding:50px 24px 30px}}@media (max-width: 768px){.img-pane[_ngcontent-%COMP%]{border:0px!important}}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;width:325px;font-family:monospace;background:transparent;z-index:1;position:relative}.otp-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none!important}.otp-container[_ngcontent-%COMP%] .stripe[_ngcontent-%COMP%]{font-size:32px;letter-spacing:32px;font-family:monospace;position:absolute;padding-top:6px;z-index:0;bottom:0;left:14px}"]})};export{z as AuthTotpComponent};
@@ -0,0 +1,4 @@
1
+ var e={production:!0,firebaseConfig:{apiKey:"AIzaSyDnnitFXpM8TglWKNpzu4ChgF98n25Rgvw",authDomain:"auth.dealpos.com",projectId:"devops-signin",storageBucket:"devops-signin.appspot.com",messagingSenderId:"412465165194",appId:"1:412465165194:web:03d806f6b6ab6f8b460e73",measurementId:"G-MNDBRJ5XZD"},pos:{indexedDBVersion:3,submitOrderTimeout:2e4,fileSizeLimit:9e5},version:"25502",outletMaximumSubscription:10,midtransClientKey:"Mid-client-rdi5ridKhHfeIvTj",ngHttpLoaderDebounceDelay:175,news:"https://changelog.dealpos.app/umbraco/delivery/api/v2/content?fetch=children:web&sort=sortOrder:asc",changelog:[],uppy:{invoicePayment:25e5,receiptTemplate:25e5},intercom:{appId:"xv1oomgl"},whatsappTemplateMessage:`Thank you for shopping at {Brand}
2
+ Here is the receipt for your purchase {Number} - {Currency} {Amount}
3
+ {ReceiptLink}
4
+ Please let us know about your shopping experience using the receipt link.`,FALLBACK_PRODUCT_IMAGE_URL:"https://cdn.dealpos.app/template/products_thumb.png",files:{csv:{sales_person_import:"https://cdn.dealpos.xyz/web-import-template/SalesPerson_DealPOS.csv",supplier_import:"https://cdn.dealpos.xyz/web-import-template/Import_Supplier_DealPOS.csv",customer_import:"https://cdn.dealpos.xyz/web-import-template/Customer_Import_TemplateV2.csv",courier_import:"https://cdn.dealpos.xyz/web-import-template/Courier-Import-Template.csv",customer_invoice_import:"https://cdn.dealpos.xyz/web-import-template/Import-Invoice-Template.csv",estimate_import:"https://cdn.dealpos.xyz/web-import-template/Estimate_DealPOS_New.csv",supplier_bill_import:"https://cdn.dealpos.xyz/web-import-template/SupplierBill_Import_TemplateV2.csv",outlet_import:"https://cdn.dealpos.xyz/web-import-template/Outlet_Import_Template.csv",payment_import:"https://cdn.dealpos.xyz/web-import-template/Import-Payment.csv",product_import:"https://cdn.dealpos.xyz/web-import-template/Product_Import_TemplateV2.csv",pricebook_import:"https://res.cloudinary.com/pos/raw/upload/v1647931293/POS/CSV/Pricebook.csv",promotion_coupon_import:"https://cdn.dealpos.xyz/web-import-template/Promotion-Coupon-Import-TemplateV3.csv",adjustment_item_import:"https://cdn.dealpos.xyz/web-import-template/ImportItem_Adjustment_TemplateV2.csv",transfer_order_import:"https://res.cloudinary.com/pos/raw/upload/v1699867624/POS/CSV/ImportTransferOrder_DealPOS_New.csv",buy_import:"https://cdn.dealpos.xyz/web-import-template/ImportBuyV2_DealPOS_New.csv",sell_import:"https://res.cloudinary.com/pos/raw/upload/v1699867624/POS/CSV/ImportSell_DealPOS_New.csv",promotion_event_import:"https://cdn.dealpos.xyz/web-import-template/PromotionEvent_Import_TemplateV2.csv",promotion_event_item_requirement_import:"https://cdn.dealpos.xyz/web-import-template/PromotionEvent_ItemRequirement_Import_TemplateV2.csv",promotion_coupon_item_requirement_import:"https://cdn.dealpos.xyz/web-import-template/PromotionCoupon_ItemRequirement_Import_TemplateV2.csv"}}};export{e as a};
@@ -1 +1 @@
1
- import{c as W,d as X}from"./chunk-GBSRXCWH.js";import{a as Y,b as Z}from"./chunk-L6PKNRWO.js";import{b as Q,c as U}from"./chunk-JBS5UYZC.js";import{a as B}from"./chunk-B7AC4RMR.js";import{oa as K}from"./chunk-SLX34TWD.js";import{F as J,h as q,o as G}from"./chunk-DWZ5JTI2.js";import{a as d}from"./chunk-WUV22SZ4.js";import{s as C}from"./chunk-LGOSIAUC.js";import{Ab as V,Fb as l,Fc as k,Gb as c,Gc as F,Hb as m,Lc as N,Ob as L,Pb as j,Sb as E,Ub as n,Xa as _,Y as f,Ya as M,ca as S,cc as I,d as x,eb as b,fa as T,ga as u,hc as v,ib as $,jc as R,la as w,nd as P,o as h,oa as O,ob as a,od as z,pa as D,ta as p,ua as g,vd as A,yb as H}from"./chunk-IEVGW2RT.js";var y=class o{signalRClient=D(B);continuedCategories$;allCategories$;_onOpenTreeSelector=new x;onOpenTreeSelector$=this._onOpenTreeSelector.asObservable();constructor(t){this.continuedCategories$=this.onOpenTreeSelector$.pipe(u(this.signalRClient.recacheCategory$),S((e,[i,r])=>r||!e.length?(this.signalRClient.resetCategoryCache(),t.post("/api/catalog/product/GetProductStorageOptions")):h(e),[]),f(1)),this.allCategories$=this.onOpenTreeSelector$.pipe(u(this.signalRClient.recacheCategory$),S((e,[i,r])=>r||!e.length?t.get("/API/catalog/category/SelectOptions"):h(e),[]),f(1))}onOpenTreeSelector(){this._onOpenTreeSelector.next(!0)}forceLoadCategories(){this._onOpenTreeSelector.next(!0)}static \u0275fac=function(e){return new(e||o)(O(C))};static \u0275prov=w({token:o,factory:o.\u0275fac,providedIn:"root"})};function re(o,t){o&1&&L(0)}function ne(o,t){if(o&1&&(c(0,"p-floatLabel",1),a(1,re,1,0,"ng-container",2),c(2,"label",3),v(3,"Category"),m()()),o&2){n();let e=I(3);_(),l("ngTemplateOutlet",e)}}function ae(o,t){o&1&&L(0)}function le(o,t){if(o&1&&a(0,ae,1,0,"ng-container",2),o&2){n();let e=I(3);l("ngTemplateOutlet",e)}}function ce(o,t){if(o&1&&(c(0,"div",6),v(1),m()),o&2){let e=n(2);l("matTooltip",e.selectedCategoryLabel),_(),R(" ",e.selectedCategoryLabel," ")}}function se(o,t){if(o&1){let e=j();c(0,"p-treeSelect",4),k(1,"async"),E("click",function(){p(e);let r=n();return g(r.loadCategories())})("ngModelChange",function(r){p(e);let s=n();return g(s.onSelectCategory(r))})("onClear",function(){p(e);let r=n();return g(r.onClear())}),a(2,ce,2,2,"ng-template",5),m()}if(o&2){let e=n();l("options",F(1,4,e.categories$))("ngModel",e.selectedCategory)("showClear",e.showClear)("placeholder",e.placeholder)}}var ee=class o{constructor(t,e){this.http=t;this.treeSelector=e}continuedCategoriesOnly=!0;categories=[];showClear=!1;showLabel=!1;isInitializedCategoryLabel=!1;placeholder="Select Storage Location";selectedCategory;selectedCategoryID;selectedCategoryIDChange=new M;selectedCategoryLabel;top=0;isLoadCategories=!1;categories$;ngAfterViewInit(){let t=document.querySelector("body");this.top=t.getBoundingClientRect().top*-1}ngOnInit(){this.isInitializedCategoryLabel&&(d.IsEmpty(this.selectedCategoryID)&&d.IsNotEmpty(this.categories)&&(this.selectedCategoryID=this.categories[0]?.key),this.selectedCategory=this.findSelectedCategory(this.categories,this.selectedCategoryID),this.generateLabelSelectedCategory(this.selectedCategory)),this.categories$=this.continuedCategoriesOnly?this.treeSelector.continuedCategories$:this.treeSelector.allCategories$,this.categories$=this.categories$.pipe(T(t=>{this.selectedCategory=this.findSelectedCategory(t,this.selectedCategoryID),this.generateLabelSelectedCategory(this.selectedCategory)}))}onSelectCategory(t){this.selectedCategory=t,this.generateLabelSelectedCategory(this.selectedCategory),this.selectedCategoryID=t?.key,this.selectedCategoryIDChange.emit(this.selectedCategoryID)}generateLabelSelectedCategory(t){if(t){let e=[];this.selectedCategoryLabel="";do e=[...e,t.label],t=t.parent;while(t!==void 0);this.selectedCategoryLabel=e.reverse().join("/")}else this.selectedCategoryLabel=this.placeholder}findSelectedCategory(t,e){if(d.IsNotEmpty(e))for(let i of t){if(i.key===e)return i;{i.children=i.children?i.children:[],i.children=i.children.map(s=>(s.parent=i,s));let r=this.findSelectedCategory(i.children,e);if(r)return r}}else return null}loadCategories(){this.treeSelector.onOpenTreeSelector()}onClear(){this.selectedCategoryID=null,this.selectedCategoryIDChange.emit(this.selectedCategoryID)}static \u0275fac=function(e){return new(e||o)(b(C),b(y))};static \u0275cmp=$({type:o,selectors:[["POS-storage-location-select"]],inputs:{continuedCategoriesOnly:"continuedCategoriesOnly",categories:"categories",showClear:"showClear",showLabel:"showLabel",isInitializedCategoryLabel:"isInitializedCategoryLabel",placeholder:"placeholder",selectedCategoryID:"selectedCategoryID"},outputs:{selectedCategoryIDChange:"selectedCategoryIDChange"},decls:4,vars:1,consts:[["categorySelectTemplate",""],["variant","on",1,"w-100"],[4,"ngTemplateOutlet"],["for","selectCategory",1,"tree-category-label"],["appendTo","body","selectionMode","single","filter","true","filterInputAutoFocus","true","scrollHeight","250px","inputId","selectCategory",3,"click","ngModelChange","onClear","options","ngModel","showClear","placeholder"],["pTemplate","value"],["matTooltipPosition","above",3,"matTooltip"]],template:function(e,i){e&1&&(H(0,ne,4,1,"p-floatLabel",1)(1,le,1,1,"ng-container"),a(2,se,3,6,"ng-template",null,0,N)),e&2&&V(i.showLabel?0:1)},dependencies:[A,P,U,Q,X,W,K,J,q,G,Z,Y,z],styles:[".p-popover.p-component{z-index:10000000000000000000000!important} .p-treeselect-panel .p-treeselect-items-wrapper .p-tree{padding-left:4px!important} .p-float-label .p-inputwrapper-filled~label.tree-category-label{left:.5rem!important}"]})};export{ee as a};
1
+ import{c as W,d as X}from"./chunk-TFJ6RC7Q.js";import{a as Y,b as Z}from"./chunk-L6PKNRWO.js";import{b as Q,c as U}from"./chunk-JBS5UYZC.js";import{a as B}from"./chunk-B7AC4RMR.js";import{oa as K}from"./chunk-SLX34TWD.js";import{F as J,h as q,o as G}from"./chunk-DWZ5JTI2.js";import{a as d}from"./chunk-WUV22SZ4.js";import{s as C}from"./chunk-LGOSIAUC.js";import{Ab as V,Fb as l,Fc as k,Gb as c,Gc as F,Hb as m,Lc as N,Ob as L,Pb as j,Sb as E,Ub as n,Xa as _,Y as f,Ya as M,ca as S,cc as I,d as x,eb as b,fa as T,ga as u,hc as v,ib as $,jc as R,la as w,nd as P,o as h,oa as O,ob as a,od as z,pa as D,ta as p,ua as g,vd as A,yb as H}from"./chunk-IEVGW2RT.js";var y=class o{signalRClient=D(B);continuedCategories$;allCategories$;_onOpenTreeSelector=new x;onOpenTreeSelector$=this._onOpenTreeSelector.asObservable();constructor(t){this.continuedCategories$=this.onOpenTreeSelector$.pipe(u(this.signalRClient.recacheCategory$),S((e,[i,r])=>r||!e.length?(this.signalRClient.resetCategoryCache(),t.post("/api/catalog/product/GetProductStorageOptions")):h(e),[]),f(1)),this.allCategories$=this.onOpenTreeSelector$.pipe(u(this.signalRClient.recacheCategory$),S((e,[i,r])=>r||!e.length?t.get("/API/catalog/category/SelectOptions"):h(e),[]),f(1))}onOpenTreeSelector(){this._onOpenTreeSelector.next(!0)}forceLoadCategories(){this._onOpenTreeSelector.next(!0)}static \u0275fac=function(e){return new(e||o)(O(C))};static \u0275prov=w({token:o,factory:o.\u0275fac,providedIn:"root"})};function re(o,t){o&1&&L(0)}function ne(o,t){if(o&1&&(c(0,"p-floatLabel",1),a(1,re,1,0,"ng-container",2),c(2,"label",3),v(3,"Category"),m()()),o&2){n();let e=I(3);_(),l("ngTemplateOutlet",e)}}function ae(o,t){o&1&&L(0)}function le(o,t){if(o&1&&a(0,ae,1,0,"ng-container",2),o&2){n();let e=I(3);l("ngTemplateOutlet",e)}}function ce(o,t){if(o&1&&(c(0,"div",6),v(1),m()),o&2){let e=n(2);l("matTooltip",e.selectedCategoryLabel),_(),R(" ",e.selectedCategoryLabel," ")}}function se(o,t){if(o&1){let e=j();c(0,"p-treeSelect",4),k(1,"async"),E("click",function(){p(e);let r=n();return g(r.loadCategories())})("ngModelChange",function(r){p(e);let s=n();return g(s.onSelectCategory(r))})("onClear",function(){p(e);let r=n();return g(r.onClear())}),a(2,ce,2,2,"ng-template",5),m()}if(o&2){let e=n();l("options",F(1,4,e.categories$))("ngModel",e.selectedCategory)("showClear",e.showClear)("placeholder",e.placeholder)}}var ee=class o{constructor(t,e){this.http=t;this.treeSelector=e}continuedCategoriesOnly=!0;categories=[];showClear=!1;showLabel=!1;isInitializedCategoryLabel=!1;placeholder="Select Storage Location";selectedCategory;selectedCategoryID;selectedCategoryIDChange=new M;selectedCategoryLabel;top=0;isLoadCategories=!1;categories$;ngAfterViewInit(){let t=document.querySelector("body");this.top=t.getBoundingClientRect().top*-1}ngOnInit(){this.isInitializedCategoryLabel&&(d.IsEmpty(this.selectedCategoryID)&&d.IsNotEmpty(this.categories)&&(this.selectedCategoryID=this.categories[0]?.key),this.selectedCategory=this.findSelectedCategory(this.categories,this.selectedCategoryID),this.generateLabelSelectedCategory(this.selectedCategory)),this.categories$=this.continuedCategoriesOnly?this.treeSelector.continuedCategories$:this.treeSelector.allCategories$,this.categories$=this.categories$.pipe(T(t=>{this.selectedCategory=this.findSelectedCategory(t,this.selectedCategoryID),this.generateLabelSelectedCategory(this.selectedCategory)}))}onSelectCategory(t){this.selectedCategory=t,this.generateLabelSelectedCategory(this.selectedCategory),this.selectedCategoryID=t?.key,this.selectedCategoryIDChange.emit(this.selectedCategoryID)}generateLabelSelectedCategory(t){if(t){let e=[];this.selectedCategoryLabel="";do e=[...e,t.label],t=t.parent;while(t!==void 0);this.selectedCategoryLabel=e.reverse().join("/")}else this.selectedCategoryLabel=this.placeholder}findSelectedCategory(t,e){if(d.IsNotEmpty(e))for(let i of t){if(i.key===e)return i;{i.children=i.children?i.children:[],i.children=i.children.map(s=>(s.parent=i,s));let r=this.findSelectedCategory(i.children,e);if(r)return r}}else return null}loadCategories(){this.treeSelector.onOpenTreeSelector()}onClear(){this.selectedCategoryID=null,this.selectedCategoryIDChange.emit(this.selectedCategoryID)}static \u0275fac=function(e){return new(e||o)(b(C),b(y))};static \u0275cmp=$({type:o,selectors:[["POS-storage-location-select"]],inputs:{continuedCategoriesOnly:"continuedCategoriesOnly",categories:"categories",showClear:"showClear",showLabel:"showLabel",isInitializedCategoryLabel:"isInitializedCategoryLabel",placeholder:"placeholder",selectedCategoryID:"selectedCategoryID"},outputs:{selectedCategoryIDChange:"selectedCategoryIDChange"},decls:4,vars:1,consts:[["categorySelectTemplate",""],["variant","on",1,"w-100"],[4,"ngTemplateOutlet"],["for","selectCategory",1,"tree-category-label"],["appendTo","body","selectionMode","single","filter","true","filterInputAutoFocus","true","scrollHeight","250px","inputId","selectCategory",3,"click","ngModelChange","onClear","options","ngModel","showClear","placeholder"],["pTemplate","value"],["matTooltipPosition","above",3,"matTooltip"]],template:function(e,i){e&1&&(H(0,ne,4,1,"p-floatLabel",1)(1,le,1,1,"ng-container"),a(2,se,3,6,"ng-template",null,0,N)),e&2&&V(i.showLabel?0:1)},dependencies:[A,P,U,Q,X,W,K,J,q,G,Z,Y,z],styles:[".p-popover.p-component{z-index:10000000000000000000000!important} .p-treeselect-panel .p-treeselect-items-wrapper .p-tree{padding-left:4px!important} .p-float-label .p-inputwrapper-filled~label.tree-category-label{left:.5rem!important}"]})};export{ee as a};