dealpos 25.51.0 → 25.51.1

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 (87) hide show
  1. package/browser/{chunk-OURNAI65.js → chunk-243EB36Y.js} +2 -2
  2. package/browser/{chunk-5HIJCKLY.js → chunk-3K2A4Z67.js} +1 -1
  3. package/browser/{chunk-43G72GH2.js → chunk-4OP4E5Q4.js} +1 -1
  4. package/browser/{chunk-V6NXOOJA.js → chunk-4PDGY62B.js} +1 -1
  5. package/browser/{chunk-WR54IKY6.js → chunk-54SK3PVO.js} +1 -1
  6. package/browser/{chunk-VQKO557Q.js → chunk-55Z32OLJ.js} +1 -1
  7. package/browser/{chunk-SVUFU2AS.js → chunk-5XTMPVSF.js} +1 -1
  8. package/browser/{chunk-67UFIJ2O.js → chunk-6OULAYGH.js} +1 -1
  9. package/browser/{chunk-HIA4J5DB.js → chunk-6VYP636I.js} +1 -1
  10. package/browser/{chunk-PV27CMZ2.js → chunk-7264OPXA.js} +1 -1
  11. package/browser/{chunk-XWV7AI2C.js → chunk-7OQXKVTC.js} +1 -1
  12. package/browser/{chunk-6UY42XOC.js → chunk-AB7O2ERM.js} +1 -1
  13. package/browser/{chunk-T5IJP474.js → chunk-ABOSNV75.js} +1 -1
  14. package/browser/{chunk-HHCNN3XR.js → chunk-BCGNQKO5.js} +1 -1
  15. package/browser/{chunk-RU3GD3GY.js → chunk-BRQVQGLJ.js} +1 -1
  16. package/browser/{chunk-2EHLYOAD.js → chunk-BWVEZ3MZ.js} +1 -1
  17. package/browser/{chunk-RHDU4PR2.js → chunk-CAGFIP4G.js} +1 -1
  18. package/browser/{chunk-4MWVPOV6.js → chunk-CJ4ET4PG.js} +1 -1
  19. package/browser/{chunk-CRKJEU3Z.js → chunk-CR5CHTI7.js} +1 -1
  20. package/browser/{chunk-4CYACZL5.js → chunk-DAH4EEQV.js} +1 -1
  21. package/browser/{chunk-SCHTN7VQ.js → chunk-DBRZ7F2Z.js} +1 -1
  22. package/browser/{chunk-VA6MHJ5E.js → chunk-DNY4JYTC.js} +1 -1
  23. package/browser/{chunk-IM3B5EF2.js → chunk-E5TUY2II.js} +1 -1
  24. package/browser/chunk-EFDMYOLZ.js +4 -0
  25. package/browser/{chunk-NRTKHF45.js → chunk-EMHEIQNS.js} +1 -1
  26. package/browser/{chunk-QS2AUXB7.js → chunk-FEHMPX43.js} +1 -1
  27. package/browser/{chunk-WQMYMJLR.js → chunk-FVFTYYCC.js} +1 -1
  28. package/browser/{chunk-BVOUQJCA.js → chunk-GE5I6JYL.js} +1 -1
  29. package/browser/{chunk-ZNPC63ZV.js → chunk-GZ6OVEDL.js} +1 -1
  30. package/browser/{chunk-NQQB5U5S.js → chunk-H6RHVRGW.js} +1 -1
  31. package/browser/{chunk-6LZENMYE.js → chunk-HLCZLXPS.js} +1 -1
  32. package/browser/{chunk-N6EBK52R.js → chunk-IF6EZMOM.js} +2 -2
  33. package/browser/{chunk-OTLU2WY3.js → chunk-ISZRZRCT.js} +2 -2
  34. package/browser/{chunk-I7AQHKKG.js → chunk-JHBK7LOJ.js} +1 -1
  35. package/browser/{chunk-PQSGJR4P.js → chunk-KDISSQKT.js} +1 -1
  36. package/browser/{chunk-5ZPO7V26.js → chunk-KFC3V2GW.js} +1 -1
  37. package/browser/{chunk-KEILLJ6G.js → chunk-KHB5Q7IN.js} +1 -1
  38. package/browser/{chunk-P5XKSQ34.js → chunk-KIYO2YC2.js} +1 -1
  39. package/browser/{chunk-HVFYCXLX.js → chunk-KKM7I2BT.js} +1 -1
  40. package/browser/{chunk-DX56EYRS.js → chunk-LHTHIOAY.js} +1 -1
  41. package/browser/{chunk-A5LIALQE.js → chunk-M4FNFZNJ.js} +1 -1
  42. package/browser/{chunk-TOJPS7BJ.js → chunk-MEL6Z4NI.js} +1 -1
  43. package/browser/{chunk-XVTXHAKW.js → chunk-MHPLYS7O.js} +1 -1
  44. package/browser/{chunk-ZO3XZXWW.js → chunk-MJCLLJBB.js} +1 -1
  45. package/browser/{chunk-2GIDUMXS.js → chunk-MZDVGN2B.js} +1 -1
  46. package/browser/{chunk-SUCJCOST.js → chunk-NYMHQHNP.js} +1 -1
  47. package/browser/{chunk-6AHKVKAZ.js → chunk-O7SYLGUB.js} +2 -2
  48. package/browser/{chunk-OZ2R2K2V.js → chunk-OF3BZHBQ.js} +1 -1
  49. package/browser/{chunk-H2RXYP7A.js → chunk-OFWJY5WB.js} +1 -1
  50. package/browser/{chunk-3HDEMBWS.js → chunk-ORTAUDOX.js} +1 -1
  51. package/browser/{chunk-4OTZNFYS.js → chunk-PSLGWGNP.js} +1 -1
  52. package/browser/{chunk-MUWJSYXR.js → chunk-Q22HR52N.js} +1 -1
  53. package/browser/{chunk-ZNJ4JTTS.js → chunk-QEL7CGCP.js} +1 -1
  54. package/browser/{chunk-57WKDIDF.js → chunk-QHGZQ2IG.js} +1 -1
  55. package/browser/{chunk-6F45DEGR.js → chunk-R6DRKF4V.js} +8 -8
  56. package/browser/{chunk-HHM4L75O.js → chunk-RDASAJA5.js} +1 -1
  57. package/browser/{chunk-HSLDD424.js → chunk-RPBIQ4ME.js} +1 -1
  58. package/browser/{chunk-DJUOMCAV.js → chunk-RT7OZJYZ.js} +1 -1
  59. package/browser/{chunk-3PKJLXTC.js → chunk-RWW55Z7V.js} +1 -1
  60. package/browser/{chunk-V36Z6WRV.js → chunk-RWZGTR3S.js} +1 -1
  61. package/browser/{chunk-YXRJV3RQ.js → chunk-SQAFHZEO.js} +1 -1
  62. package/browser/{chunk-RF5FWMSR.js → chunk-T43ISYOP.js} +1 -1
  63. package/browser/{chunk-6O6OE4KQ.js → chunk-TKHSLAZH.js} +13 -13
  64. package/browser/{chunk-OAVGNXY4.js → chunk-TYVVSM36.js} +1 -1
  65. package/browser/{chunk-D7YMUC3H.js → chunk-U6FO6TSU.js} +1 -1
  66. package/browser/{chunk-XPN6EISF.js → chunk-UFVN6MTY.js} +1 -1
  67. package/browser/{chunk-VOY3BJZP.js → chunk-UI6U53UY.js} +1 -1
  68. package/browser/{chunk-B6TCVVAN.js → chunk-UPV6ZIB5.js} +1 -1
  69. package/browser/{chunk-6GCAXVFO.js → chunk-VG3B7TDX.js} +1 -1
  70. package/browser/{chunk-OR4H5IKL.js → chunk-VS6CGXUJ.js} +1 -1
  71. package/browser/{chunk-T6GXIGYG.js → chunk-WDUPZI6X.js} +1 -1
  72. package/browser/{chunk-TCW7SVU5.js → chunk-WTIIZBRC.js} +1 -1
  73. package/browser/{chunk-HQGZC4Y3.js → chunk-XCSDEGWL.js} +1 -1
  74. package/browser/{chunk-WFTIOB7Q.js → chunk-XDFUPYND.js} +1 -1
  75. package/browser/{chunk-3XDE3GJ3.js → chunk-XFU3EMCG.js} +1 -1
  76. package/browser/{chunk-7JBFR3T4.js → chunk-XGXXFTMA.js} +1 -1
  77. package/browser/{chunk-DCONKX6G.js → chunk-XMPWQ5UV.js} +1 -1
  78. package/browser/{chunk-ECW7GAZQ.js → chunk-XPM7J5AN.js} +1 -1
  79. package/browser/{chunk-HZP6OUOI.js → chunk-XW7VJLDW.js} +1 -1
  80. package/browser/{chunk-MTUBVUM5.js → chunk-Y6SAXN2J.js} +1 -1
  81. package/browser/{chunk-A2EDYIYP.js → chunk-YLXBICIW.js} +1 -1
  82. package/browser/{chunk-IHIJW73V.js → chunk-Z5HEFUTD.js} +1 -1
  83. package/browser/{chunk-YC2LQSY3.js → chunk-ZRJU5XBX.js} +1 -1
  84. package/browser/index.html +2 -2
  85. package/browser/{main-PHIUFC5R.js → main-6NLSRECT.js} +2 -2
  86. package/package.json +1 -1
  87. package/browser/chunk-QERITLZK.js +0 -4
@@ -1 +1 @@
1
- import{a as $}from"./chunk-RHDU4PR2.js";import{a as J,b as K}from"./chunk-U4MC22BG.js";import{a as G}from"./chunk-SMEVWRVE.js";import{e as Y,f as Z}from"./chunk-2GIDUMXS.js";import{a as Q,c as U}from"./chunk-FM7BHGBW.js";import{b as X}from"./chunk-ECW7GAZQ.js";import{h as H,m as q,q as z}from"./chunk-3ZH3XK5V.js";import{b as R,c as j}from"./chunk-V6D6TV7B.js";import{a as V}from"./chunk-2FWFPV5I.js";import{F as k,c as A,h as v,o as b}from"./chunk-7MRUPBXU.js";import{p as L,s as B}from"./chunk-TANYEHMZ.js";import{Ab as N,Cb as O,Db as y,Fb as P,Gb as w,Hb as p,Ib as o,Jb as a,Pd as W,Rb as I,Ub as c,Vc as g,Wb as d,Xa as m,Ya as C,eb as h,ib as M,jc as r,kc as F,mb as D,oc as T,pc as S,qc as E,ta as u,ua as f}from"./chunk-L3U6V3BF.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-CAGFIP4G.js";import{a as J,b as K}from"./chunk-U4MC22BG.js";import{a as G}from"./chunk-SMEVWRVE.js";import{e as Y,f as Z}from"./chunk-MZDVGN2B.js";import{a as Q,c as U}from"./chunk-FM7BHGBW.js";import{b as X}from"./chunk-XPM7J5AN.js";import{h as H,m as q,q as z}from"./chunk-3ZH3XK5V.js";import{b as R,c as j}from"./chunk-V6D6TV7B.js";import{a as V}from"./chunk-2FWFPV5I.js";import{F as k,c as A,h as v,o as b}from"./chunk-7MRUPBXU.js";import{p as L,s as B}from"./chunk-TANYEHMZ.js";import{Ab as N,Cb as O,Db as y,Fb as P,Gb as w,Hb as p,Ib as o,Jb as a,Pd as W,Rb as I,Ub as c,Vc as g,Wb as d,Xa as m,Ya as C,eb as h,ib as M,jc as r,kc as F,mb as D,oc as T,pc as S,qc as E,ta as u,ua as f}from"./chunk-L3U6V3BF.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 +1 @@
1
- import{a as z}from"./chunk-Y7ZKGM5U.js";import{d as $,e as tt}from"./chunk-ODYEJFNJ.js";import"./chunk-WSWTWRKJ.js";import{a as k,b as G,c as A}from"./chunk-ACXQ2FOW.js";import{a as ot,b as nt}from"./chunk-XWYCNPUZ.js";import{f as et}from"./chunk-ZNPC63ZV.js";import{c as it}from"./chunk-6UY42XOC.js";import{b as Q}from"./chunk-YQ5PAXUW.js";import{a as q}from"./chunk-HQGZC4Y3.js";import"./chunk-VQKO557Q.js";import"./chunk-TRK4LJDS.js";import"./chunk-B4TZQBTN.js";import{e as Y,f as Z}from"./chunk-2GIDUMXS.js";import"./chunk-ZO3XZXWW.js";import"./chunk-OB6KFXD6.js";import"./chunk-QJ3CWKQT.js";import"./chunk-ZOYWCF3Q.js";import"./chunk-SWF6XISV.js";import"./chunk-GXAF3JUO.js";import"./chunk-LB5UXGDG.js";import"./chunk-YDL2MTWE.js";import"./chunk-7YYWBCWJ.js";import"./chunk-CCIHCGP5.js";import"./chunk-FM7BHGBW.js";import"./chunk-TP6ZUC53.js";import"./chunk-3PKJLXTC.js";import{b as K}from"./chunk-ECW7GAZQ.js";import"./chunk-E634BI4W.js";import"./chunk-BAXZ74LK.js";import"./chunk-3ZH3XK5V.js";import"./chunk-V6D6TV7B.js";import{N as X,g as U}from"./chunk-QWLNF7VL.js";import"./chunk-UIVJ2JQT.js";import"./chunk-EQLHPWVB.js";import"./chunk-SCGKVOSE.js";import{g as J}from"./chunk-N5RDRDT7.js";import"./chunk-N7OS7SFI.js";import"./chunk-4HLKKTIV.js";import"./chunk-RIZ4YVMH.js";import"./chunk-2FWFPV5I.js";import"./chunk-Z76C52NM.js";import{F as W,h as B,o as R}from"./chunk-7MRUPBXU.js";import"./chunk-T5IJP474.js";import"./chunk-DJUOMCAV.js";import"./chunk-5RYL4EJ2.js";import{b as H}from"./chunk-KBLVOO4J.js";import"./chunk-WUV22SZ4.js";import"./chunk-NQQB5U5S.js";import{s as j}from"./chunk-TANYEHMZ.js";import{Ab as D,Cb as h,Db as O,Fb as T,Gb as V,Hb as s,Hc as y,Ib as i,Ic as L,Jb as o,Jc as F,Kb as v,Nc as N,Rb as _,Ub as S,Wb as m,Xa as p,eb as u,ib as b,jc as l,kc as w,lc as P,mb as I,ob as M,oc as C,pc as x,qc as f,ta as c,ua as d}from"./chunk-L3U6V3BF.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";function rt(r,g){if(r&1){let t=_();i(0,"button",5),S("click",function(){c(t);let e=m();return d(e.openExportModal())}),v(1,"i",6),l(2," Export "),o()}}function lt(r,g){if(r&1){let t=_();i(0,"h6"),l(1,"Outlet"),o(),i(2,"outlet-selector",7),f("ngModelChange",function(e){c(t);let a=m();return x(a.pageData.Filter.Outlet,e)||(a.pageData.Filter.Outlet=e),d(e)}),o(),i(3,"h6"),l(4,"Category"),o(),i(5,"POS-product-category-select",8),f("selectedCategoryIDChange",function(e){c(t);let a=m();return x(a.pageData.Filter.Category,e)||(a.pageData.Filter.Category=e),d(e)}),o(),i(6,"h6"),l(7,"Discontinued"),o(),i(8,"radio-options",9),f("modelChange",function(e){c(t);let a=m();return x(a.pageData.Filter.Discontinued,e)||(a.pageData.Filter.Discontinued=e),d(e)}),o()}if(r&2){let t=m();p(2),s("accessType",2),C("ngModel",t.pageData.Filter.Outlet),p(3),C("selectedCategoryID",t.pageData.Filter.Category),s("showClear",!0),p(3),s("options",t.pageData==null||t.pageData.Options==null?null:t.pageData.Options.Discontinued),C("model",t.pageData.Filter.Discontinued)}}function pt(r,g){if(r&1&&(i(0,"tr")(1,"td"),l(2),o(),i(3,"td"),l(4),o(),i(5,"td",19),l(6),y(7,"quantityFraction"),o()()),r&2){let t=g.$implicit;p(2),w(t.EntityName),p(2),w(t.Name),p(2),P(" ",L(7,3,t.Inventory)," ")}}function mt(r,g){if(r&1){let t=_();i(0,"div",4)(1,"div",10)(2,"table",11),S("matSortChange",function(e){c(t);let a=m();return d(a.onSortData(e))}),i(3,"thead",12)(4,"tr",13)(5,"th",14),l(6,"Outlet"),o(),i(7,"th",15),l(8,"Storage Location"),o(),i(9,"th",16),l(10," On Hand "),o()()(),i(11,"tbody"),T(12,pt,8,5,"tr",null,O),o(),i(14,"tfoot")(15,"tr",17),v(16,"td",18),i(17,"td",18),l(18,"Total :"),o(),i(19,"td",19),l(20),y(21,"sum"),y(22,"quantityFraction"),o()()()(),i(23,"POS-complex-pagination",20),S("jumpToPage",function(){c(t);let e=m();return d(e.getListData())})("previousPage",function(){c(t);let e=m();return d(e.getListData())})("nextPage",function(){c(t);let e=m();return d(e.getListData())}),o()()()}if(r&2){let t=m();p(12),V(t.data.Data),p(8),P(" ",L(22,6,F(21,3,t.data.Data,"Inventory"))," "),p(3),s("total",t.data.Data==null?null:t.data.Data.length)("pageData",t.pageData)}}var at=class r extends q{constructor(t,n,e,a){super(t,n,"Inventory/GetProductStorageLocation","InventoryLoader/InventoryReport");this.httpService=n;this.dialog=e;this.roleService=a}datasource;postInit(t){this.datasource=JSON.parse(JSON.stringify(t.Data))}openExportModal(){this.dialog.open(Q,{data:{title:"Storage Location",exportTypes:[{ID:"Inventory/GetProductStorageLocation",Value:"Default",FileName:"Storage Location"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"inventory/GetCountProductStorageLocation",pagination:!0}})}onSortData(t){let n=this.data.Data?.slice();if(!t.active||t.direction===""){this.data.Data=this.datasource;return}let e=t.direction==="asc";this.data.Data=n.sort((a,E)=>this.compare(a[t.active],E[t.active],e))}static \u0275fac=function(n){return new(n||r)(u(K),u(j),u(J),u(H))};static \u0275cmp=b({type:r,selectors:[["app-storage-location"]],features:[I],decls:9,vars:5,consts:[["pageFilterTemplate",""],[3,"onSubmit","pageData","hideSearchBox","isFilterOnDropdown"],[1,"d-flex"],[1,"btn","btn-outline-secondary","me-3"],[1,"container-fluid","mt-3"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],["placeholder","Choose an outlet","appendTo","body",3,"ngModelChange","accessType","ngModel"],[1,"tree-select-as-filter",3,"selectedCategoryIDChange","selectedCategoryID","showClear"],["name","Discontinued",3,"modelChange","options","model"],[1,"table-responsive"],["id","tableGrid","matSort","",1,"table",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],[1,"header"],["mat-sort-header","EntityName",2,"width","450px"],["mat-sort-header","Brand"],["mat-sort-header","Inventory","arrowPosition","before",1,"text-end",2,"padding-right","100px","width","190px"],[1,"table-footer","fw-bold"],[1,"empty-column"],[1,"text-end",2,"padding-right","100px"],["api","inventory/GetCountProductStorageLocation",3,"jumpToPage","previousPage","nextPage","total","pageData"]],template:function(n,e){if(n&1){let a=_();i(0,"mainpanel-cmp",1),S("onSubmit",function(){return c(a),d(e.searchFromPageOne())}),i(1,"actions")(2,"div",2),D(3,rt,3,0,"button",3),o()(),i(4,"filters"),M(5,lt,9,6,"ng-template",null,0,N),o(),i(7,"content"),D(8,mt,24,8,"div",4),o()()}n&2&&(s("pageData",e.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),p(3),h(e.roleService.global.Export?3:-1),p(5),h(e.data?8:-1))},dependencies:[Z,Y,X,tt,$,et,it,W,B,R,nt,ot,A,k,G,z,U],encapsulation:2})};export{at as StorageLocationComponent};
1
+ import{a as z}from"./chunk-Y7ZKGM5U.js";import{d as $,e as tt}from"./chunk-ODYEJFNJ.js";import"./chunk-WSWTWRKJ.js";import{a as k,b as G,c as A}from"./chunk-ACXQ2FOW.js";import{a as ot,b as nt}from"./chunk-XWYCNPUZ.js";import{f as et}from"./chunk-GZ6OVEDL.js";import{c as it}from"./chunk-AB7O2ERM.js";import{b as Q}from"./chunk-YQ5PAXUW.js";import{a as q}from"./chunk-XCSDEGWL.js";import"./chunk-55Z32OLJ.js";import"./chunk-TRK4LJDS.js";import"./chunk-B4TZQBTN.js";import{e as Y,f as Z}from"./chunk-MZDVGN2B.js";import"./chunk-MJCLLJBB.js";import"./chunk-OB6KFXD6.js";import"./chunk-QJ3CWKQT.js";import"./chunk-ZOYWCF3Q.js";import"./chunk-SWF6XISV.js";import"./chunk-GXAF3JUO.js";import"./chunk-LB5UXGDG.js";import"./chunk-YDL2MTWE.js";import"./chunk-7YYWBCWJ.js";import"./chunk-CCIHCGP5.js";import"./chunk-FM7BHGBW.js";import"./chunk-TP6ZUC53.js";import"./chunk-RWW55Z7V.js";import{b as K}from"./chunk-XPM7J5AN.js";import"./chunk-E634BI4W.js";import"./chunk-BAXZ74LK.js";import"./chunk-3ZH3XK5V.js";import"./chunk-V6D6TV7B.js";import{N as X,g as U}from"./chunk-QWLNF7VL.js";import"./chunk-UIVJ2JQT.js";import"./chunk-EQLHPWVB.js";import"./chunk-SCGKVOSE.js";import{g as J}from"./chunk-N5RDRDT7.js";import"./chunk-N7OS7SFI.js";import"./chunk-4HLKKTIV.js";import"./chunk-RIZ4YVMH.js";import"./chunk-2FWFPV5I.js";import"./chunk-Z76C52NM.js";import{F as W,h as B,o as R}from"./chunk-7MRUPBXU.js";import"./chunk-ABOSNV75.js";import"./chunk-RT7OZJYZ.js";import"./chunk-5RYL4EJ2.js";import{b as H}from"./chunk-KBLVOO4J.js";import"./chunk-WUV22SZ4.js";import"./chunk-H6RHVRGW.js";import{s as j}from"./chunk-TANYEHMZ.js";import{Ab as D,Cb as h,Db as O,Fb as T,Gb as V,Hb as s,Hc as y,Ib as i,Ic as L,Jb as o,Jc as F,Kb as v,Nc as N,Rb as _,Ub as S,Wb as m,Xa as p,eb as u,ib as b,jc as l,kc as w,lc as P,mb as I,ob as M,oc as C,pc as x,qc as f,ta as c,ua as d}from"./chunk-L3U6V3BF.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";function rt(r,g){if(r&1){let t=_();i(0,"button",5),S("click",function(){c(t);let e=m();return d(e.openExportModal())}),v(1,"i",6),l(2," Export "),o()}}function lt(r,g){if(r&1){let t=_();i(0,"h6"),l(1,"Outlet"),o(),i(2,"outlet-selector",7),f("ngModelChange",function(e){c(t);let a=m();return x(a.pageData.Filter.Outlet,e)||(a.pageData.Filter.Outlet=e),d(e)}),o(),i(3,"h6"),l(4,"Category"),o(),i(5,"POS-product-category-select",8),f("selectedCategoryIDChange",function(e){c(t);let a=m();return x(a.pageData.Filter.Category,e)||(a.pageData.Filter.Category=e),d(e)}),o(),i(6,"h6"),l(7,"Discontinued"),o(),i(8,"radio-options",9),f("modelChange",function(e){c(t);let a=m();return x(a.pageData.Filter.Discontinued,e)||(a.pageData.Filter.Discontinued=e),d(e)}),o()}if(r&2){let t=m();p(2),s("accessType",2),C("ngModel",t.pageData.Filter.Outlet),p(3),C("selectedCategoryID",t.pageData.Filter.Category),s("showClear",!0),p(3),s("options",t.pageData==null||t.pageData.Options==null?null:t.pageData.Options.Discontinued),C("model",t.pageData.Filter.Discontinued)}}function pt(r,g){if(r&1&&(i(0,"tr")(1,"td"),l(2),o(),i(3,"td"),l(4),o(),i(5,"td",19),l(6),y(7,"quantityFraction"),o()()),r&2){let t=g.$implicit;p(2),w(t.EntityName),p(2),w(t.Name),p(2),P(" ",L(7,3,t.Inventory)," ")}}function mt(r,g){if(r&1){let t=_();i(0,"div",4)(1,"div",10)(2,"table",11),S("matSortChange",function(e){c(t);let a=m();return d(a.onSortData(e))}),i(3,"thead",12)(4,"tr",13)(5,"th",14),l(6,"Outlet"),o(),i(7,"th",15),l(8,"Storage Location"),o(),i(9,"th",16),l(10," On Hand "),o()()(),i(11,"tbody"),T(12,pt,8,5,"tr",null,O),o(),i(14,"tfoot")(15,"tr",17),v(16,"td",18),i(17,"td",18),l(18,"Total :"),o(),i(19,"td",19),l(20),y(21,"sum"),y(22,"quantityFraction"),o()()()(),i(23,"POS-complex-pagination",20),S("jumpToPage",function(){c(t);let e=m();return d(e.getListData())})("previousPage",function(){c(t);let e=m();return d(e.getListData())})("nextPage",function(){c(t);let e=m();return d(e.getListData())}),o()()()}if(r&2){let t=m();p(12),V(t.data.Data),p(8),P(" ",L(22,6,F(21,3,t.data.Data,"Inventory"))," "),p(3),s("total",t.data.Data==null?null:t.data.Data.length)("pageData",t.pageData)}}var at=class r extends q{constructor(t,n,e,a){super(t,n,"Inventory/GetProductStorageLocation","InventoryLoader/InventoryReport");this.httpService=n;this.dialog=e;this.roleService=a}datasource;postInit(t){this.datasource=JSON.parse(JSON.stringify(t.Data))}openExportModal(){this.dialog.open(Q,{data:{title:"Storage Location",exportTypes:[{ID:"Inventory/GetProductStorageLocation",Value:"Default",FileName:"Storage Location"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"inventory/GetCountProductStorageLocation",pagination:!0}})}onSortData(t){let n=this.data.Data?.slice();if(!t.active||t.direction===""){this.data.Data=this.datasource;return}let e=t.direction==="asc";this.data.Data=n.sort((a,E)=>this.compare(a[t.active],E[t.active],e))}static \u0275fac=function(n){return new(n||r)(u(K),u(j),u(J),u(H))};static \u0275cmp=b({type:r,selectors:[["app-storage-location"]],features:[I],decls:9,vars:5,consts:[["pageFilterTemplate",""],[3,"onSubmit","pageData","hideSearchBox","isFilterOnDropdown"],[1,"d-flex"],[1,"btn","btn-outline-secondary","me-3"],[1,"container-fluid","mt-3"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],["placeholder","Choose an outlet","appendTo","body",3,"ngModelChange","accessType","ngModel"],[1,"tree-select-as-filter",3,"selectedCategoryIDChange","selectedCategoryID","showClear"],["name","Discontinued",3,"modelChange","options","model"],[1,"table-responsive"],["id","tableGrid","matSort","",1,"table",3,"matSortChange"],[1,"thead-light","sticky-top-thead"],[1,"header"],["mat-sort-header","EntityName",2,"width","450px"],["mat-sort-header","Brand"],["mat-sort-header","Inventory","arrowPosition","before",1,"text-end",2,"padding-right","100px","width","190px"],[1,"table-footer","fw-bold"],[1,"empty-column"],[1,"text-end",2,"padding-right","100px"],["api","inventory/GetCountProductStorageLocation",3,"jumpToPage","previousPage","nextPage","total","pageData"]],template:function(n,e){if(n&1){let a=_();i(0,"mainpanel-cmp",1),S("onSubmit",function(){return c(a),d(e.searchFromPageOne())}),i(1,"actions")(2,"div",2),D(3,rt,3,0,"button",3),o()(),i(4,"filters"),M(5,lt,9,6,"ng-template",null,0,N),o(),i(7,"content"),D(8,mt,24,8,"div",4),o()()}n&2&&(s("pageData",e.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),p(3),h(e.roleService.global.Export?3:-1),p(5),h(e.data?8:-1))},dependencies:[Z,Y,X,tt,$,et,it,W,B,R,nt,ot,A,k,G,z,U],encapsulation:2})};export{at as StorageLocationComponent};
@@ -1 +1 @@
1
- import{c as Z}from"./chunk-T5IJP474.js";import"./chunk-DJUOMCAV.js";import"./chunk-5RYL4EJ2.js";import"./chunk-KBLVOO4J.js";import{a as D}from"./chunk-WUV22SZ4.js";import"./chunk-NQQB5U5S.js";import{s as j}from"./chunk-TANYEHMZ.js";import{$ as _,Ab as g,Cb as u,Hc as k,Ic as A,Lb as o,Mb as e,N as b,Nb as f,Rb as w,Rd as G,Sb as M,Vb as S,Wb as x,Xa as l,Y as p,Za as O,aa as m,c as s,eb as c,fa as C,hc as L,ib as P,jc as a,kc as h,n as v,qd as I,ta as E,ua as y,xd as R}from"./chunk-L3U6V3BF.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";function N(r,n){r&1&&(o(0,"div",13)(1,"span",20),a(2,"Latitude and Longitude is empty, please allow your browser location permission!"),e(),o(3,"a",21),a(4,"Click here to learn how to manually activate the location permission"),e()())}function T(r,n){if(r&1){let t=w();o(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),a(4,"Geo Fencing"),e(),o(5,"p",4),a(6,"You are about to sign-in from this location"),e(),o(7,"div",5)(8,"div",6)(9,"div",7)(10,"span",8),a(11,"LAT"),e(),o(12,"span",9),a(13),e()(),o(14,"div",7)(15,"span",10),a(16,"LONG"),e(),o(17,"span",11),a(18),e()()(),o(19,"button",12),S("click",function(){E(t);let d=x();return y(d.proceed())}),a(20,"Proceed"),e()(),g(21,N,5,0,"div",13),e(),o(22,"div",14),f(23,"img",15),e()(),o(24,"div",16)(25,"div",17)(26,"div")(27,"span"),a(28,"powered by :"),e(),f(29,"a",18)(30,"img",19),e()()()()}if(r&2){let t=n,i=x();l(2),L(t.latitude&&t.longitude?i.centerGeoPanelStyle:""),l(11),h(t.latitude),l(5),h(t.longitude),l(),M("disabled",!(t.latitude&&t.longitude)),l(2),u(t.latitude&&t.longitude?-1:21)}}var z=class r{constructor(n,t,i,d){this.ngZone=n;this.auth=t;this.http=i;this.router=d}centerGeoPanelStyle="display: flex; flex-direction: column; justify-content: center;";latLong$;ngOnInit(){this.checkOnRefreshPage(),document.body.classList.add("login-body");let n=v(navigator.permissions.query({name:"geolocation"})).pipe(m(t=>new s(i=>{i.next(t.state),t.onchange=()=>this.ngZone.run(()=>i.next(t.state))})),p(1));this.latLong$=n.pipe(m(()=>new s(t=>{navigator.geolocation.getCurrentPosition(i=>this.ngZone.run(()=>{t.next({latitude:i.coords.latitude.toString(),longitude:i.coords.longitude.toString()}),t.complete()}),()=>this.ngZone.run(()=>{t.next({latitude:"",longitude:""}),t.complete()}),{enableHighAccuracy:!0,maximumAge:0,timeout:8e3})})),_({latitude:"",longitude:""}),p(1))}ngOnDestroy(){document.body.classList.remove("login-body")}checkOnRefreshPage(){D.IsEmpty(this.auth.loginResponse)&&this.router.navigate(["/"])}proceed(){this.latLong$.pipe(m(n=>this.http.post("/api/Authentication/LoginGeoRestriction",{UserID:this.auth.loginResponse.UserID,Latitude:n.latitude,Longitude:n.longitude})),C(n=>this.auth.saveLoginConfigToStorage(n)),m(()=>this.router.navigate([this.auth.getRedirectUrl()])),b(1)).subscribe()}static \u0275fac=function(t){return new(t||r)(c(O),c(Z),c(j),c(G))};static \u0275cmp=P({type:r,selectors:[["POS-auth-geolocation"]],decls:2,vars:3,consts:[[1,"container-fluid"],[1,"row","bg-white","mx-auto","totp-pane"],[1,"col-md-7","order-md-first","order-last","form-pane"],[1,"text-start"],[1,"text-start","mb-7"],[1,"d-flex","flex-column","flex-md-row",2,"column-gap","10px"],[1,"latlong-container","d-flex","flex-grow-1"],[1,"flex-grow-1","text-start","d-flex"],[1,"lat-label","fw-bold"],[1,"ps-5","lat-value","flex-grow-1","d-flex","align-items-center"],[1,"long-label","fw-bold"],[1,"ps-5","long-value","flex-grow-1","d-flex","align-items-center"],[1,"btn","btn-success","mt-5","mx-auto","mx-md-0","mt-md-0","w-25","w-md-100",3,"click","disabled"],[1,"text-start","mt-7"],[1,"col-md-5","order-md-last","order-first","border-start","border-secondary","d-flex","align-items-center","justify-content-center","img-pane","py-6"],["src","https://cdn.dealpos.xyz/web-image/geolocation-map.png",1,"border-0","w-100"],[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"],[1,"text-danger"],["href","https://support.dealpos.com/en/articles/7963864-enable-location-services-for-several-browser","target","_blank",1,"d-block"]],template:function(t,i){if(t&1&&(g(0,T,31,6,"div",0),k(1,"async")),t&2){let d;u((d=A(1,1,i.latLong$))?0:-1,d)}},dependencies:[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:2rem}@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}.latlong-container[_ngcontent-%COMP%]{background:#fff;border:1px solid #000000;border-radius:5px}.latlong-container[_ngcontent-%COMP%] .lat-label[_ngcontent-%COMP%], .latlong-container[_ngcontent-%COMP%] .long-label[_ngcontent-%COMP%]{display:inline-block;padding:12px;border-right:1px solid #000000}.latlong-container[_ngcontent-%COMP%] .long-label[_ngcontent-%COMP%]{border-left:1px solid #000000}.latlong-container[_ngcontent-%COMP%] .lat-value[_ngcontent-%COMP%], .latlong-container[_ngcontent-%COMP%] .long-value[_ngcontent-%COMP%]{background:#d9d9d94d}"]})};export{z as AuthGeolocationComponent};
1
+ import{c as Z}from"./chunk-ABOSNV75.js";import"./chunk-RT7OZJYZ.js";import"./chunk-5RYL4EJ2.js";import"./chunk-KBLVOO4J.js";import{a as D}from"./chunk-WUV22SZ4.js";import"./chunk-H6RHVRGW.js";import{s as j}from"./chunk-TANYEHMZ.js";import{$ as _,Ab as g,Cb as u,Hc as k,Ic as A,Lb as o,Mb as e,N as b,Nb as f,Rb as w,Rd as G,Sb as M,Vb as S,Wb as x,Xa as l,Y as p,Za as O,aa as m,c as s,eb as c,fa as C,hc as L,ib as P,jc as a,kc as h,n as v,qd as I,ta as E,ua as y,xd as R}from"./chunk-L3U6V3BF.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";function N(r,n){r&1&&(o(0,"div",13)(1,"span",20),a(2,"Latitude and Longitude is empty, please allow your browser location permission!"),e(),o(3,"a",21),a(4,"Click here to learn how to manually activate the location permission"),e()())}function T(r,n){if(r&1){let t=w();o(0,"div",0)(1,"div",1)(2,"div",2)(3,"h3",3),a(4,"Geo Fencing"),e(),o(5,"p",4),a(6,"You are about to sign-in from this location"),e(),o(7,"div",5)(8,"div",6)(9,"div",7)(10,"span",8),a(11,"LAT"),e(),o(12,"span",9),a(13),e()(),o(14,"div",7)(15,"span",10),a(16,"LONG"),e(),o(17,"span",11),a(18),e()()(),o(19,"button",12),S("click",function(){E(t);let d=x();return y(d.proceed())}),a(20,"Proceed"),e()(),g(21,N,5,0,"div",13),e(),o(22,"div",14),f(23,"img",15),e()(),o(24,"div",16)(25,"div",17)(26,"div")(27,"span"),a(28,"powered by :"),e(),f(29,"a",18)(30,"img",19),e()()()()}if(r&2){let t=n,i=x();l(2),L(t.latitude&&t.longitude?i.centerGeoPanelStyle:""),l(11),h(t.latitude),l(5),h(t.longitude),l(),M("disabled",!(t.latitude&&t.longitude)),l(2),u(t.latitude&&t.longitude?-1:21)}}var z=class r{constructor(n,t,i,d){this.ngZone=n;this.auth=t;this.http=i;this.router=d}centerGeoPanelStyle="display: flex; flex-direction: column; justify-content: center;";latLong$;ngOnInit(){this.checkOnRefreshPage(),document.body.classList.add("login-body");let n=v(navigator.permissions.query({name:"geolocation"})).pipe(m(t=>new s(i=>{i.next(t.state),t.onchange=()=>this.ngZone.run(()=>i.next(t.state))})),p(1));this.latLong$=n.pipe(m(()=>new s(t=>{navigator.geolocation.getCurrentPosition(i=>this.ngZone.run(()=>{t.next({latitude:i.coords.latitude.toString(),longitude:i.coords.longitude.toString()}),t.complete()}),()=>this.ngZone.run(()=>{t.next({latitude:"",longitude:""}),t.complete()}),{enableHighAccuracy:!0,maximumAge:0,timeout:8e3})})),_({latitude:"",longitude:""}),p(1))}ngOnDestroy(){document.body.classList.remove("login-body")}checkOnRefreshPage(){D.IsEmpty(this.auth.loginResponse)&&this.router.navigate(["/"])}proceed(){this.latLong$.pipe(m(n=>this.http.post("/api/Authentication/LoginGeoRestriction",{UserID:this.auth.loginResponse.UserID,Latitude:n.latitude,Longitude:n.longitude})),C(n=>this.auth.saveLoginConfigToStorage(n)),m(()=>this.router.navigate([this.auth.getRedirectUrl()])),b(1)).subscribe()}static \u0275fac=function(t){return new(t||r)(c(O),c(Z),c(j),c(G))};static \u0275cmp=P({type:r,selectors:[["POS-auth-geolocation"]],decls:2,vars:3,consts:[[1,"container-fluid"],[1,"row","bg-white","mx-auto","totp-pane"],[1,"col-md-7","order-md-first","order-last","form-pane"],[1,"text-start"],[1,"text-start","mb-7"],[1,"d-flex","flex-column","flex-md-row",2,"column-gap","10px"],[1,"latlong-container","d-flex","flex-grow-1"],[1,"flex-grow-1","text-start","d-flex"],[1,"lat-label","fw-bold"],[1,"ps-5","lat-value","flex-grow-1","d-flex","align-items-center"],[1,"long-label","fw-bold"],[1,"ps-5","long-value","flex-grow-1","d-flex","align-items-center"],[1,"btn","btn-success","mt-5","mx-auto","mx-md-0","mt-md-0","w-25","w-md-100",3,"click","disabled"],[1,"text-start","mt-7"],[1,"col-md-5","order-md-last","order-first","border-start","border-secondary","d-flex","align-items-center","justify-content-center","img-pane","py-6"],["src","https://cdn.dealpos.xyz/web-image/geolocation-map.png",1,"border-0","w-100"],[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"],[1,"text-danger"],["href","https://support.dealpos.com/en/articles/7963864-enable-location-services-for-several-browser","target","_blank",1,"d-block"]],template:function(t,i){if(t&1&&(g(0,T,31,6,"div",0),k(1,"async")),t&2){let d;u((d=A(1,1,i.latLong$))?0:-1,d)}},dependencies:[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:2rem}@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}.latlong-container[_ngcontent-%COMP%]{background:#fff;border:1px solid #000000;border-radius:5px}.latlong-container[_ngcontent-%COMP%] .lat-label[_ngcontent-%COMP%], .latlong-container[_ngcontent-%COMP%] .long-label[_ngcontent-%COMP%]{display:inline-block;padding:12px;border-right:1px solid #000000}.latlong-container[_ngcontent-%COMP%] .long-label[_ngcontent-%COMP%]{border-left:1px solid #000000}.latlong-container[_ngcontent-%COMP%] .lat-value[_ngcontent-%COMP%], .latlong-container[_ngcontent-%COMP%] .long-value[_ngcontent-%COMP%]{background:#d9d9d94d}"]})};export{z as AuthGeolocationComponent};
@@ -1 +1 @@
1
- import{b as c}from"./chunk-T5IJP474.js";import{la as r,pa as s}from"./chunk-L3U6V3BF.js";var i=class{to;from;constructor(){this.to=new Date,this.from=new Date}};var n=class o{cookiesService=s(c);_cookiesName="PaymentDate";dateFilter={from:new Date,to:new Date};set(e){this.saveFilterToCookie(e),this.dateFilter=e}initFilterDate(e){let t;if(this.checkCookieExists())t=this.get();else{let a=e.From||new Date,m=e.To||new Date;t={from:a,to:m}}return e.From=t.from,e.To=t.to,e}get(){return this.checkCookieExists()?this.dateFilter=JSON.parse(this.cookiesService.get(this._cookiesName)):this.dateFilter=new i,this.dateFilter}checkCookieExists(){return this.cookiesService.check(this._cookiesName)}saveFilterToCookie(e){this.cookiesService.set(this._cookiesName,JSON.stringify(e),this.getExpiredDate(),"/")}clear(){this.cookiesService.delete(this._cookiesName,"/"),this.dateFilter=new i}getExpiredDate(){let e=new Date,a=1*60*60*1e3;return e.setTime(e.getTime()+a),e}static \u0275fac=function(t){return new(t||o)};static \u0275prov=r({token:o,factory:o.\u0275fac,providedIn:"root"})};export{n as a};
1
+ import{b as c}from"./chunk-ABOSNV75.js";import{la as r,pa as s}from"./chunk-L3U6V3BF.js";var i=class{to;from;constructor(){this.to=new Date,this.from=new Date}};var n=class o{cookiesService=s(c);_cookiesName="PaymentDate";dateFilter={from:new Date,to:new Date};set(e){this.saveFilterToCookie(e),this.dateFilter=e}initFilterDate(e){let t;if(this.checkCookieExists())t=this.get();else{let a=e.From||new Date,m=e.To||new Date;t={from:a,to:m}}return e.From=t.from,e.To=t.to,e}get(){return this.checkCookieExists()?this.dateFilter=JSON.parse(this.cookiesService.get(this._cookiesName)):this.dateFilter=new i,this.dateFilter}checkCookieExists(){return this.cookiesService.check(this._cookiesName)}saveFilterToCookie(e){this.cookiesService.set(this._cookiesName,JSON.stringify(e),this.getExpiredDate(),"/")}clear(){this.cookiesService.delete(this._cookiesName,"/"),this.dateFilter=new i}getExpiredDate(){let e=new Date,a=1*60*60*1e3;return e.setTime(e.getTime()+a),e}static \u0275fac=function(t){return new(t||o)};static \u0275prov=r({token:o,factory:o.\u0275fac,providedIn:"root"})};export{n as a};
@@ -1 +1 @@
1
- import{a as ce}from"./chunk-4467AQLM.js";import{d as de,e as me}from"./chunk-AHTR7XKG.js";import"./chunk-NS6IC2PT.js";import"./chunk-3RK6DDJD.js";import"./chunk-SMEVWRVE.js";import"./chunk-JQDS4BXR.js";import"./chunk-F3HDP5CA.js";import"./chunk-AJAUI7BA.js";import"./chunk-MWGICBEB.js";import{e as le}from"./chunk-ODYEJFNJ.js";import"./chunk-WSWTWRKJ.js";import{a as X}from"./chunk-BVOUQJCA.js";import{f as pe}from"./chunk-ZNPC63ZV.js";import{b as ee}from"./chunk-YQ5PAXUW.js";import"./chunk-HQGZC4Y3.js";import"./chunk-VQKO557Q.js";import"./chunk-TRK4LJDS.js";import"./chunk-B4TZQBTN.js";import{a as ie}from"./chunk-JT4M6AIA.js";import{e as oe,f as ne}from"./chunk-2GIDUMXS.js";import"./chunk-OB6KFXD6.js";import"./chunk-ZOYWCF3Q.js";import"./chunk-SWF6XISV.js";import"./chunk-GXAF3JUO.js";import"./chunk-LB5UXGDG.js";import"./chunk-YDL2MTWE.js";import"./chunk-7YYWBCWJ.js";import"./chunk-CCIHCGP5.js";import"./chunk-FM7BHGBW.js";import"./chunk-TP6ZUC53.js";import"./chunk-3PKJLXTC.js";import{b as te}from"./chunk-ECW7GAZQ.js";import"./chunk-E634BI4W.js";import"./chunk-BAXZ74LK.js";import{F as ae,G as re}from"./chunk-3ZH3XK5V.js";import"./chunk-V6D6TV7B.js";import"./chunk-QWLNF7VL.js";import"./chunk-UIVJ2JQT.js";import"./chunk-EQLHPWVB.js";import{d as Z,e as $}from"./chunk-SCGKVOSE.js";import{g as Y}from"./chunk-N5RDRDT7.js";import"./chunk-N7OS7SFI.js";import"./chunk-4HLKKTIV.js";import"./chunk-RIZ4YVMH.js";import"./chunk-2FWFPV5I.js";import"./chunk-Z76C52NM.js";import{F as K,h as q,o as z}from"./chunk-7MRUPBXU.js";import"./chunk-T5IJP474.js";import"./chunk-DJUOMCAV.js";import"./chunk-5RYL4EJ2.js";import{b as Q}from"./chunk-KBLVOO4J.js";import"./chunk-WUV22SZ4.js";import"./chunk-NQQB5U5S.js";import{p as G,s as J}from"./chunk-TANYEHMZ.js";import{$c as A,Ac as b,Db as v,Fb as E,Gb as H,Hb as c,Hc as U,Ib as a,Jb as r,Jc as W,Kb as M,Nc as L,Ob as P,Pb as h,Pd as N,Qa as T,Rb as w,Sd as O,Ub as x,Ud as j,Wb as s,Xa as o,eb as C,ib as F,jc as n,kc as D,ld as R,mb as V,ob as I,oc as g,pc as u,qc as _,sd as k,ta as l,ua as p,xd as B}from"./chunk-L3U6V3BF.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var _e=m=>({ID:m});function Ce(m,S){if(m&1){let t=w();a(0,"a",11),x("click",function(){l(t);let e=s();return p(e.openExportModal())}),M(1,"i",12),n(2," Export "),r()}}function fe(m,S){if(m&1){let t=w();a(0,"div",13)(1,"h6"),n(2,"Category"),r(),a(3,"POS-product-category-select",14),_("selectedCategoryIDChange",function(e){l(t);let i=s();return u(i.pageData.Filter.CategoryID,e)||(i.pageData.Filter.CategoryID=e),p(e)}),r(),a(4,"h6"),n(5,"Brand"),r(),a(6,"ng-select",15),_("ngModelChange",function(e){l(t);let i=s();return u(i.pageData.Filter.BrandID,e)||(i.pageData.Filter.BrandID=e),p(e)}),r(),a(7,"h6"),n(8,"Tags"),r(),a(9,"ng-select",16),_("ngModelChange",function(e){l(t);let i=s();return u(i.pageData.Filter.TagsID,e)||(i.pageData.Filter.TagsID=e),p(e)}),r(),a(10,"h6"),n(11,"Supplier"),r(),a(12,"autocompleteV2",17),_("ngModelChange",function(e){l(t);let i=s();return u(i.pageData.Filter.SupplierID,e)||(i.pageData.Filter.SupplierID=e),p(e)}),r(),a(13,"h6"),n(14,"From - To"),r(),a(15,"div")(16,"datepicker",18),_("dateChange",function(e){l(t);let i=s();return u(i.pageData.Filter.From,e)||(i.pageData.Filter.From=e),p(e)}),r()(),a(17,"div",19)(18,"datepicker",20),_("dateChange",function(e){l(t);let i=s();return u(i.pageData.Filter.To,e)||(i.pageData.Filter.To=e),p(e)}),r()(),a(19,"h6"),n(20,"Product"),r(),a(21,"autocompleteV2",21),_("ngModelChange",function(e){l(t);let i=s();return u(i.pageData.Filter.ProductID,e)||(i.pageData.Filter.ProductID=e),p(e)}),r()()}if(m&2){let t=s();o(3),g("selectedCategoryID",t.pageData.Filter.CategoryID),c("showClear",!0)("continuedCategoriesOnly",!0),o(3),c("items",t.pageData.Options==null?null:t.pageData.Options.Brands),g("ngModel",t.pageData.Filter.BrandID),o(3),c("items",t.pageData.Options==null?null:t.pageData.Options.Tags),g("ngModel",t.pageData.Filter.TagsID),o(3),g("ngModel",t.pageData.Filter.SupplierID),o(4),g("date",t.pageData.Filter.From),o(2),g("date",t.pageData.Filter.To),o(3),g("ngModel",t.pageData.Filter.ProductID)}}function ye(m,S){if(m&1&&(a(0,"tr")(1,"td")(2,"a",22),n(3),r()(),a(4,"td"),n(5),r(),a(6,"td"),n(7),r(),a(8,"td"),n(9),U(10,"date"),r(),a(11,"td"),M(12,"div",23),r()()),m&2){let t=S.$implicit;o(2),c("queryParams",b(9,_e,t.ProductID)),o(),D(t.ProductName),o(2),D(t.ProductCode),o(2),D(t.Modifier),o(2),D(W(10,6,t.Modified,"dd MMM yyyy HH:mm")),o(3),c("innerHTML",t.Note,T)}}var se=class m extends X{constructor(t,d,e,i,y,f,ge,ue){super(t,d,"catalog/Product/GetProductUpdateHistories","catalog/ProductLoader/GetProductUpdateHistories",e,ge,!1,ue);this.httpService=d;this.csvConverter=i;this.matDialog=y;this.roleService=f}openExportModal(){this.matDialog.open(ee,{data:{title:"Product Import Log",exportTypes:[{ID:"productExport/GetExportProductUpdateHistories",Value:"Default"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"catalog/Product/GetCountProductUpdateHistories",pagination:!0}})}static \u0275fac=function(d){return new(d||m)(C(te),C(J),C(G),C(ie),C(Y),C(Q),C(N),C(A))};static \u0275cmp=F({type:m,selectors:[["pos-product-update-history"]],features:[V],decls:26,vars:11,consts:[["pageFilterTemplate",""],[3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter"],["ngProjectAs","actions",5,["actions"]],["class","btn btn-outline-secondary",3,"click",4,"ngIf"],["ngProjectAs","filters",5,["filters"]],["ngProjectAs","content",5,["content"]],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-header","account-receivable-header"],[3,"nextPage","fetchTotalData","concatAllData","totalData","totalCurrentRow","pageNumber","nextPageDisabled","isFetchTotalData","goToLast"],[1,"btn","btn-outline-secondary",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],[1,"tree-select-as-filter",3,"selectedCategoryIDChange","selectedCategoryID","showClear","continuedCategoriesOnly"],["bindLabel","Value","bindValue","Key","placeholder","Choose...",3,"ngModelChange","items","ngModel"],["bindLabel","Name","bindValue","ID","placeholder","Choose...",3,"ngModelChange","items","ngModel"],["requestUrl","/API/AC/GetSupplierSuggestion",1,"w-100","ac-filter",3,"ngModelChange","ngModel"],["name","From",3,"dateChange","date"],[1,"mt-4"],["name","To",3,"dateChange","date"],["requestUrl","api/ac/GetProductSuggestionByCodeNName",1,"w-100","ac-filter",3,"ngModelChange","ngModel"],["target","_blank","routerLink","/menu/Products/Catalog/Products/Info",1,"link","link-primary",3,"queryParams"],[3,"innerHTML"]],template:function(d,e){if(d&1){let i=w();a(0,"mainpanel-cmp",1),_("textChange",function(f){return l(i),u(e.pageData.Filter.SearchText,f)||(e.pageData.Filter.SearchText=f),p(f)}),x("onSubmit",function(){return l(i),p(e.searchFromPageOne())}),_("filterChange",function(f){return l(i),u(e.pageData.Filter,f)||(e.pageData.Filter=f),p(f)}),P(1,2),I(2,Ce,3,0,"a",3),h(),P(3,4),I(4,fe,22,11,"ng-template",null,0,L),h(),P(6,5),a(7,"div",6)(8,"div",7)(9,"table",8)(10,"thead",9)(11,"tr")(12,"th"),n(13,"Product"),r(),a(14,"th"),n(15,"Code"),r(),a(16,"th"),n(17,"Modified By"),r(),a(18,"th"),n(19,"Modified"),r(),a(20,"th"),n(21,"Note"),r()()(),a(22,"tbody"),E(23,ye,13,11,"tr",null,v),r()()(),a(25,"infinite-pagination",10),x("nextPage",function(){return l(i),p(e.NextPage(!0))})("fetchTotalData",function(){return l(i),p(e.StoreRowsCountAPIResult("catalog/Product/GetCountProductUpdateHistories"))})("concatAllData",function(){return l(i),p(e.StoreRowsCountAPIResult("catalog/Product/GetCountProductUpdateHistories",!0))}),r()(),h(),r()}d&2&&(c("pageData",e.menuData),g("text",e.pageData.Filter.SearchText),c("isFilterOnDropdown",!1),g("filter",e.pageData.Filter),o(2),c("ngIf",e.roleService.global.Export),o(21),H(e.infiniteList),o(2),c("totalData",e.listTotal)("totalCurrentRow",e.infiniteList==null?null:e.infiniteList.length)("pageNumber",e.pageData.Filter.PageNumber)("nextPageDisabled",e.nextPageDisabled)("isFetchTotalData",e.pageData.HideStoreApiCount)("goToLast",e.goToLast))},dependencies:[ne,oe,K,q,z,B,R,ce,pe,$,Z,le,me,de,re,ae,j,O,k],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{se as ProductUpdateHistoryComponent};
1
+ import{a as ce}from"./chunk-4467AQLM.js";import{d as de,e as me}from"./chunk-AHTR7XKG.js";import"./chunk-NS6IC2PT.js";import"./chunk-3RK6DDJD.js";import"./chunk-SMEVWRVE.js";import"./chunk-JQDS4BXR.js";import"./chunk-F3HDP5CA.js";import"./chunk-AJAUI7BA.js";import"./chunk-MWGICBEB.js";import{e as le}from"./chunk-ODYEJFNJ.js";import"./chunk-WSWTWRKJ.js";import{a as X}from"./chunk-GE5I6JYL.js";import{f as pe}from"./chunk-GZ6OVEDL.js";import{b as ee}from"./chunk-YQ5PAXUW.js";import"./chunk-XCSDEGWL.js";import"./chunk-55Z32OLJ.js";import"./chunk-TRK4LJDS.js";import"./chunk-B4TZQBTN.js";import{a as ie}from"./chunk-JT4M6AIA.js";import{e as oe,f as ne}from"./chunk-MZDVGN2B.js";import"./chunk-OB6KFXD6.js";import"./chunk-ZOYWCF3Q.js";import"./chunk-SWF6XISV.js";import"./chunk-GXAF3JUO.js";import"./chunk-LB5UXGDG.js";import"./chunk-YDL2MTWE.js";import"./chunk-7YYWBCWJ.js";import"./chunk-CCIHCGP5.js";import"./chunk-FM7BHGBW.js";import"./chunk-TP6ZUC53.js";import"./chunk-RWW55Z7V.js";import{b as te}from"./chunk-XPM7J5AN.js";import"./chunk-E634BI4W.js";import"./chunk-BAXZ74LK.js";import{F as ae,G as re}from"./chunk-3ZH3XK5V.js";import"./chunk-V6D6TV7B.js";import"./chunk-QWLNF7VL.js";import"./chunk-UIVJ2JQT.js";import"./chunk-EQLHPWVB.js";import{d as Z,e as $}from"./chunk-SCGKVOSE.js";import{g as Y}from"./chunk-N5RDRDT7.js";import"./chunk-N7OS7SFI.js";import"./chunk-4HLKKTIV.js";import"./chunk-RIZ4YVMH.js";import"./chunk-2FWFPV5I.js";import"./chunk-Z76C52NM.js";import{F as K,h as q,o as z}from"./chunk-7MRUPBXU.js";import"./chunk-ABOSNV75.js";import"./chunk-RT7OZJYZ.js";import"./chunk-5RYL4EJ2.js";import{b as Q}from"./chunk-KBLVOO4J.js";import"./chunk-WUV22SZ4.js";import"./chunk-H6RHVRGW.js";import{p as G,s as J}from"./chunk-TANYEHMZ.js";import{$c as A,Ac as b,Db as v,Fb as E,Gb as H,Hb as c,Hc as U,Ib as a,Jb as r,Jc as W,Kb as M,Nc as L,Ob as P,Pb as h,Pd as N,Qa as T,Rb as w,Sd as O,Ub as x,Ud as j,Wb as s,Xa as o,eb as C,ib as F,jc as n,kc as D,ld as R,mb as V,ob as I,oc as g,pc as u,qc as _,sd as k,ta as l,ua as p,xd as B}from"./chunk-L3U6V3BF.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var _e=m=>({ID:m});function Ce(m,S){if(m&1){let t=w();a(0,"a",11),x("click",function(){l(t);let e=s();return p(e.openExportModal())}),M(1,"i",12),n(2," Export "),r()}}function fe(m,S){if(m&1){let t=w();a(0,"div",13)(1,"h6"),n(2,"Category"),r(),a(3,"POS-product-category-select",14),_("selectedCategoryIDChange",function(e){l(t);let i=s();return u(i.pageData.Filter.CategoryID,e)||(i.pageData.Filter.CategoryID=e),p(e)}),r(),a(4,"h6"),n(5,"Brand"),r(),a(6,"ng-select",15),_("ngModelChange",function(e){l(t);let i=s();return u(i.pageData.Filter.BrandID,e)||(i.pageData.Filter.BrandID=e),p(e)}),r(),a(7,"h6"),n(8,"Tags"),r(),a(9,"ng-select",16),_("ngModelChange",function(e){l(t);let i=s();return u(i.pageData.Filter.TagsID,e)||(i.pageData.Filter.TagsID=e),p(e)}),r(),a(10,"h6"),n(11,"Supplier"),r(),a(12,"autocompleteV2",17),_("ngModelChange",function(e){l(t);let i=s();return u(i.pageData.Filter.SupplierID,e)||(i.pageData.Filter.SupplierID=e),p(e)}),r(),a(13,"h6"),n(14,"From - To"),r(),a(15,"div")(16,"datepicker",18),_("dateChange",function(e){l(t);let i=s();return u(i.pageData.Filter.From,e)||(i.pageData.Filter.From=e),p(e)}),r()(),a(17,"div",19)(18,"datepicker",20),_("dateChange",function(e){l(t);let i=s();return u(i.pageData.Filter.To,e)||(i.pageData.Filter.To=e),p(e)}),r()(),a(19,"h6"),n(20,"Product"),r(),a(21,"autocompleteV2",21),_("ngModelChange",function(e){l(t);let i=s();return u(i.pageData.Filter.ProductID,e)||(i.pageData.Filter.ProductID=e),p(e)}),r()()}if(m&2){let t=s();o(3),g("selectedCategoryID",t.pageData.Filter.CategoryID),c("showClear",!0)("continuedCategoriesOnly",!0),o(3),c("items",t.pageData.Options==null?null:t.pageData.Options.Brands),g("ngModel",t.pageData.Filter.BrandID),o(3),c("items",t.pageData.Options==null?null:t.pageData.Options.Tags),g("ngModel",t.pageData.Filter.TagsID),o(3),g("ngModel",t.pageData.Filter.SupplierID),o(4),g("date",t.pageData.Filter.From),o(2),g("date",t.pageData.Filter.To),o(3),g("ngModel",t.pageData.Filter.ProductID)}}function ye(m,S){if(m&1&&(a(0,"tr")(1,"td")(2,"a",22),n(3),r()(),a(4,"td"),n(5),r(),a(6,"td"),n(7),r(),a(8,"td"),n(9),U(10,"date"),r(),a(11,"td"),M(12,"div",23),r()()),m&2){let t=S.$implicit;o(2),c("queryParams",b(9,_e,t.ProductID)),o(),D(t.ProductName),o(2),D(t.ProductCode),o(2),D(t.Modifier),o(2),D(W(10,6,t.Modified,"dd MMM yyyy HH:mm")),o(3),c("innerHTML",t.Note,T)}}var se=class m extends X{constructor(t,d,e,i,y,f,ge,ue){super(t,d,"catalog/Product/GetProductUpdateHistories","catalog/ProductLoader/GetProductUpdateHistories",e,ge,!1,ue);this.httpService=d;this.csvConverter=i;this.matDialog=y;this.roleService=f}openExportModal(){this.matDialog.open(ee,{data:{title:"Product Import Log",exportTypes:[{ID:"productExport/GetExportProductUpdateHistories",Value:"Default"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"catalog/Product/GetCountProductUpdateHistories",pagination:!0}})}static \u0275fac=function(d){return new(d||m)(C(te),C(J),C(G),C(ie),C(Y),C(Q),C(N),C(A))};static \u0275cmp=F({type:m,selectors:[["pos-product-update-history"]],features:[V],decls:26,vars:11,consts:[["pageFilterTemplate",""],[3,"textChange","onSubmit","filterChange","pageData","text","isFilterOnDropdown","filter"],["ngProjectAs","actions",5,["actions"]],["class","btn btn-outline-secondary",3,"click",4,"ngIf"],["ngProjectAs","filters",5,["filters"]],["ngProjectAs","content",5,["content"]],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-header","account-receivable-header"],[3,"nextPage","fetchTotalData","concatAllData","totalData","totalCurrentRow","pageNumber","nextPageDisabled","isFetchTotalData","goToLast"],[1,"btn","btn-outline-secondary",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],[1,"tree-select-as-filter",3,"selectedCategoryIDChange","selectedCategoryID","showClear","continuedCategoriesOnly"],["bindLabel","Value","bindValue","Key","placeholder","Choose...",3,"ngModelChange","items","ngModel"],["bindLabel","Name","bindValue","ID","placeholder","Choose...",3,"ngModelChange","items","ngModel"],["requestUrl","/API/AC/GetSupplierSuggestion",1,"w-100","ac-filter",3,"ngModelChange","ngModel"],["name","From",3,"dateChange","date"],[1,"mt-4"],["name","To",3,"dateChange","date"],["requestUrl","api/ac/GetProductSuggestionByCodeNName",1,"w-100","ac-filter",3,"ngModelChange","ngModel"],["target","_blank","routerLink","/menu/Products/Catalog/Products/Info",1,"link","link-primary",3,"queryParams"],[3,"innerHTML"]],template:function(d,e){if(d&1){let i=w();a(0,"mainpanel-cmp",1),_("textChange",function(f){return l(i),u(e.pageData.Filter.SearchText,f)||(e.pageData.Filter.SearchText=f),p(f)}),x("onSubmit",function(){return l(i),p(e.searchFromPageOne())}),_("filterChange",function(f){return l(i),u(e.pageData.Filter,f)||(e.pageData.Filter=f),p(f)}),P(1,2),I(2,Ce,3,0,"a",3),h(),P(3,4),I(4,fe,22,11,"ng-template",null,0,L),h(),P(6,5),a(7,"div",6)(8,"div",7)(9,"table",8)(10,"thead",9)(11,"tr")(12,"th"),n(13,"Product"),r(),a(14,"th"),n(15,"Code"),r(),a(16,"th"),n(17,"Modified By"),r(),a(18,"th"),n(19,"Modified"),r(),a(20,"th"),n(21,"Note"),r()()(),a(22,"tbody"),E(23,ye,13,11,"tr",null,v),r()()(),a(25,"infinite-pagination",10),x("nextPage",function(){return l(i),p(e.NextPage(!0))})("fetchTotalData",function(){return l(i),p(e.StoreRowsCountAPIResult("catalog/Product/GetCountProductUpdateHistories"))})("concatAllData",function(){return l(i),p(e.StoreRowsCountAPIResult("catalog/Product/GetCountProductUpdateHistories",!0))}),r()(),h(),r()}d&2&&(c("pageData",e.menuData),g("text",e.pageData.Filter.SearchText),c("isFilterOnDropdown",!1),g("filter",e.pageData.Filter),o(2),c("ngIf",e.roleService.global.Export),o(21),H(e.infiniteList),o(2),c("totalData",e.listTotal)("totalCurrentRow",e.infiniteList==null?null:e.infiniteList.length)("pageNumber",e.pageData.Filter.PageNumber)("nextPageDisabled",e.nextPageDisabled)("isFetchTotalData",e.pageData.HideStoreApiCount)("goToLast",e.goToLast))},dependencies:[ne,oe,K,q,z,B,R,ce,pe,$,Z,le,me,de,re,ae,j,O,k],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})};export{se as ProductUpdateHistoryComponent};