dealpos 25.49.4 → 25.49.5

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 (88) hide show
  1. package/browser/{chunk-WZWXE6GT.js → chunk-234VD4PN.js} +1 -1
  2. package/browser/{chunk-CLO7U3RB.js → chunk-2M6MJMM7.js} +1 -1
  3. package/browser/{chunk-UJ63ZNAO.js → chunk-3SIDOYEU.js} +1 -1
  4. package/browser/{chunk-XTU3LHA6.js → chunk-3ZZJHIUG.js} +1 -1
  5. package/browser/{chunk-KWFL5YOV.js → chunk-55DB5BOP.js} +1 -1
  6. package/browser/{chunk-7V2CY4DW.js → chunk-5QMBTXFS.js} +1 -1
  7. package/browser/{chunk-LX26RD3F.js → chunk-5YHDDJI4.js} +1 -1
  8. package/browser/{chunk-ASHEF37H.js → chunk-63B7VXCP.js} +1 -1
  9. package/browser/{chunk-IFKUMLMD.js → chunk-6ESMI6WH.js} +1 -1
  10. package/browser/{chunk-WP2FVSCM.js → chunk-6G74X2UP.js} +1 -1
  11. package/browser/chunk-6UC76HYF.js +4 -0
  12. package/browser/{chunk-34X4ZZD5.js → chunk-72YVHXTD.js} +1 -1
  13. package/browser/{chunk-TLLI6Z5X.js → chunk-7MMDSCS7.js} +1 -1
  14. package/browser/{chunk-5DNDULL7.js → chunk-7PVAZYM4.js} +1 -1
  15. package/browser/{chunk-GNIF2YD2.js → chunk-7SAEXKAX.js} +1 -1
  16. package/browser/{chunk-3RQ35Y7Q.js → chunk-A4Y2ZLGW.js} +1 -1
  17. package/browser/{chunk-RULBTV6L.js → chunk-AGJ3GOR7.js} +1 -1
  18. package/browser/{chunk-3Y2TKGP4.js → chunk-BCGIIVLI.js} +1 -1
  19. package/browser/{chunk-C777CYT4.js → chunk-BEIHC6NO.js} +1 -1
  20. package/browser/{chunk-52ONOTHS.js → chunk-BGT22RIZ.js} +1 -1
  21. package/browser/{chunk-FQVYXDHS.js → chunk-CEVAKZDN.js} +2 -2
  22. package/browser/{chunk-IQ5KAZ7I.js → chunk-CIJROL7R.js} +1 -1
  23. package/browser/{chunk-3PJCCDIY.js → chunk-CLWGVNBY.js} +2 -2
  24. package/browser/{chunk-3YFVIHNY.js → chunk-CNHLZU3Z.js} +2 -2
  25. package/browser/chunk-D3KDSFJU.js +1 -0
  26. package/browser/{chunk-WYRHUSXS.js → chunk-D3QY3EBZ.js} +1 -1
  27. package/browser/{chunk-ZEI66KM2.js → chunk-DG6Y623Z.js} +1 -1
  28. package/browser/{chunk-6LSNTX2C.js → chunk-DHKZDGY6.js} +1 -1
  29. package/browser/{chunk-TBBZ7RAN.js → chunk-DYI547BZ.js} +1 -1
  30. package/browser/{chunk-RGO36X34.js → chunk-EV422BEJ.js} +1 -1
  31. package/browser/{chunk-APHRANVH.js → chunk-FBHH3WPM.js} +1 -1
  32. package/browser/{chunk-YTXYAEFO.js → chunk-FBN34CVL.js} +1 -1
  33. package/browser/{chunk-FTZZHFXM.js → chunk-FHL5KFJX.js} +1 -1
  34. package/browser/{chunk-INWLOCX3.js → chunk-FQNL3TLZ.js} +1 -1
  35. package/browser/{chunk-JZFX4FNK.js → chunk-FXPNLU4X.js} +1 -1
  36. package/browser/{chunk-Y4XWHUVX.js → chunk-G5NXVDID.js} +1 -1
  37. package/browser/{chunk-XBRNDXDZ.js → chunk-G6PEAZWA.js} +1 -1
  38. package/browser/{chunk-QOCGWG6L.js → chunk-GIPUEMTC.js} +1 -1
  39. package/browser/{chunk-OWK34F6X.js → chunk-GLOUVXOJ.js} +1 -1
  40. package/browser/{chunk-NTCQH6TH.js → chunk-H6UWRJHQ.js} +1 -1
  41. package/browser/{chunk-WFSJDUCV.js → chunk-IDZHSRCH.js} +2 -2
  42. package/browser/{chunk-D2OMTDKS.js → chunk-IK4DEQSO.js} +1 -1
  43. package/browser/{chunk-H4U5GDQZ.js → chunk-IRQYLVRP.js} +1 -1
  44. package/browser/{chunk-V3KYBOFM.js → chunk-LC7GFFEX.js} +1 -1
  45. package/browser/{chunk-XFJYJSZU.js → chunk-LJJMNCST.js} +1 -1
  46. package/browser/{chunk-GT5IX3D6.js → chunk-LSC2CYCL.js} +1 -1
  47. package/browser/{chunk-P2R2O6GD.js → chunk-MFNPIWGR.js} +2 -2
  48. package/browser/{chunk-BSV3Y4MG.js → chunk-MOXEW4DH.js} +1 -1
  49. package/browser/{chunk-KJ5BS7KR.js → chunk-MVJSAD2O.js} +1 -1
  50. package/browser/{chunk-HCMW3RC5.js → chunk-N5IOOG55.js} +1 -1
  51. package/browser/{chunk-TAVEJBKL.js → chunk-NENPGICH.js} +1 -1
  52. package/browser/{chunk-FD7ICK7T.js → chunk-NKQHQCUV.js} +1 -1
  53. package/browser/{chunk-SY463GX6.js → chunk-NPQFE4EO.js} +1 -1
  54. package/browser/{chunk-R2Y4JAXW.js → chunk-OOKDKXRB.js} +1 -1
  55. package/browser/{chunk-N7M4OSQZ.js → chunk-OUOI5WK2.js} +1 -1
  56. package/browser/{chunk-OYEU5L3I.js → chunk-OZLXHOG4.js} +1 -1
  57. package/browser/{chunk-46D5QBZT.js → chunk-P6DRDJVZ.js} +1 -1
  58. package/browser/{chunk-OETRAGYY.js → chunk-P75DFAMB.js} +1 -1
  59. package/browser/{chunk-QE5OFO56.js → chunk-PFF34SZG.js} +1 -1
  60. package/browser/{chunk-F3YWM4BJ.js → chunk-PXFCSUBN.js} +1 -1
  61. package/browser/{chunk-BVMFVFGN.js → chunk-Q3FMCFAP.js} +1 -1
  62. package/browser/{chunk-V45WTUQ2.js → chunk-QHP7VC2R.js} +1 -1
  63. package/browser/{chunk-K3V25WUQ.js → chunk-QLMHWHUW.js} +1 -1
  64. package/browser/{chunk-ROVDZJVT.js → chunk-R546P6WC.js} +1 -1
  65. package/browser/{chunk-QVI22QDX.js → chunk-RJNG3PZF.js} +1 -1
  66. package/browser/{chunk-N6JQHXKN.js → chunk-RXPEUS2G.js} +1 -1
  67. package/browser/{chunk-QS32TZGB.js → chunk-SMDHPNT7.js} +1 -1
  68. package/browser/{chunk-SFXDXOSB.js → chunk-SRAJGU6Y.js} +1 -1
  69. package/browser/{chunk-LI6G74I7.js → chunk-T6SZ4L7O.js} +1 -1
  70. package/browser/{chunk-7V6NCJRQ.js → chunk-TXPKRCHR.js} +1 -1
  71. package/browser/{chunk-YZY45SFB.js → chunk-U57PBUPN.js} +1 -1
  72. package/browser/{chunk-HOZ6XJ4Z.js → chunk-UNZLSKV5.js} +1 -1
  73. package/browser/{chunk-KJF3M7DY.js → chunk-V3FPQMVB.js} +1 -1
  74. package/browser/{chunk-6H5XBM35.js → chunk-VFQES62Q.js} +1 -1
  75. package/browser/{chunk-ADQOH7YA.js → chunk-WVMPGK5K.js} +1 -1
  76. package/browser/{chunk-XOQUXJ6S.js → chunk-WW4UBOYF.js} +1 -1
  77. package/browser/{chunk-NZBKYR7R.js → chunk-WXEEGAH5.js} +1 -1
  78. package/browser/{chunk-NFODKKJI.js → chunk-Y67EVUWI.js} +2 -2
  79. package/browser/{chunk-743523SK.js → chunk-Y7D34HYN.js} +1 -1
  80. package/browser/{chunk-XWXXETJY.js → chunk-Y7KMZ7BT.js} +1 -1
  81. package/browser/{chunk-LNZY3GKF.js → chunk-YVO66RJF.js} +1 -1
  82. package/browser/{chunk-T4E5A3KH.js → chunk-YZCJFJZL.js} +2 -2
  83. package/browser/{chunk-OXMLRZZ4.js → chunk-Z3UTJURO.js} +1 -1
  84. package/browser/index.html +2 -2
  85. package/browser/{main-DAVMX2B6.js → main-FS6A5G45.js} +2 -2
  86. package/package.json +1 -1
  87. package/browser/chunk-CD6ZWSFG.js +0 -1
  88. package/browser/chunk-SO3RL6QR.js +0 -4
@@ -1 +1 @@
1
- import{a as ce,b as de,c as _e,d as se,e as ge,f as ue}from"./chunk-XOQUXJ6S.js";import"./chunk-PHH2AA3W.js";import"./chunk-GNIF2YD2.js";import"./chunk-DTVCBHPA.js";import"./chunk-5USF4MRW.js";import{a as te}from"./chunk-363IDTE3.js";import{a as ee}from"./chunk-QZZ2NRA3.js";import"./chunk-FAED643P.js";import{e as me}from"./chunk-WMZLH4YK.js";import"./chunk-72RZBOHX.js";import"./chunk-3RK6DDJD.js";import"./chunk-M3DKYPGC.js";import"./chunk-6WATOQG3.js";import"./chunk-VM4K4MNV.js";import"./chunk-XTCEZONP.js";import"./chunk-LNDHYAFW.js";import{d as re,e as le}from"./chunk-5ZD6KTDH.js";import"./chunk-ZZBF7AOW.js";import{c as pe}from"./chunk-SFXDXOSB.js";import{b as $}from"./chunk-VXPORXGI.js";import{a as Y}from"./chunk-R2Y4JAXW.js";import"./chunk-NTCQH6TH.js";import"./chunk-L6PKNRWO.js";import"./chunk-SIQZO2WM.js";import{a as ie}from"./chunk-J6M7UWVR.js";import{e as oe,f as ae}from"./chunk-LNZY3GKF.js";import"./chunk-7V2CY4DW.js";import"./chunk-7YUPYNWQ.js";import"./chunk-2CL5FM3P.js";import"./chunk-LGINK7BD.js";import"./chunk-IKKPP4JS.js";import"./chunk-QPAUI5EG.js";import"./chunk-45E6XCHN.js";import"./chunk-SIDUUVNA.js";import"./chunk-KZFNI67M.js";import"./chunk-4BXCIT62.js";import"./chunk-D4FCXEV4.js";import"./chunk-6P2ASCNY.js";import"./chunk-QE5OFO56.js";import{b as ne}from"./chunk-KJF3M7DY.js";import"./chunk-R2GUMKAU.js";import"./chunk-BT7NN7PT.js";import"./chunk-26YFRPR2.js";import{b as U,c as X}from"./chunk-JBS5UYZC.js";import"./chunk-TEGIL5RZ.js";import"./chunk-B7AC4RMR.js";import"./chunk-EQLHPWVB.js";import"./chunk-THT6CY5E.js";import{g as Z}from"./chunk-ZTD4APMR.js";import"./chunk-7P3L3ODB.js";import"./chunk-S7FOJJP2.js";import"./chunk-FU2ZGMX4.js";import"./chunk-2FWFPV5I.js";import{oa as K}from"./chunk-SLX34TWD.js";import{F as G,c as k,h as Q,o as j,q}from"./chunk-DWZ5JTI2.js";import"./chunk-743523SK.js";import"./chunk-46D5QBZT.js";import"./chunk-36GWLMZX.js";import{b as J}from"./chunk-WFQIMZGL.js";import"./chunk-WUV22SZ4.js";import"./chunk-SO3RL6QR.js";import{s as z}from"./chunk-LGOSIAUC.js";import{Ab as E,Fb as p,Fc as _,Gb as o,Gc as s,Hb as i,Hc as D,Ib as f,Jd as W,Lc as O,Pb as I,Qd as A,Sb as h,Sd as N,Ub as m,Xa as a,eb as C,hc as l,ib as B,ic as M,jc as g,jd as L,mb as F,mc as v,nc as S,ob as x,oc as b,sc as V,sd as R,ta as u,ua as y,vd as H,xc as T,yb as P,yc as w}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var Ce=()=>({"min-width":"50rem","font-family":"Roboto, sans-serif"}),xe=()=>["/menu/Products/Catalog/Products"],ye=t=>({CategoryID:t}),ve=()=>["/menu/Inventory/Quantity/Valuation"];function Se(t,c){if(t&1){let e=I();o(0,"button",10),h("click",function(){u(e);let n=m(2);return y(n.openExportModal())}),f(1,"i",11),l(2," Export "),i()}}function be(t,c){if(t&1){let e=I();o(0,"div",12)(1,"h6"),l(2,"Outlet"),i(),o(3,"outlet-selector",13),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.ListIDs,n)||(d.pageData.Filter.ListIDs=n),y(n)}),i(),o(4,"h6"),l(5,"Quantity From - To"),i(),o(6,"div",14)(7,"input",15),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.QuantityFrom,n)||(d.pageData.Filter.QuantityFrom=n),y(n)}),i(),o(8,"span",16),l(9,"-"),i(),o(10,"input",17),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.QuantityTo,n)||(d.pageData.Filter.QuantityTo=n),y(n)}),i()(),o(11,"h6"),l(12,"Discontinued"),i(),o(13,"radio-options",18),b("modelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.Discontinued,n)||(d.pageData.Filter.Discontinued=n),y(n)}),i()()}if(t&2){let e=m(2);a(3),p("multiple",!0)("accessType",2),v("ngModel",e.pageData.Filter.ListIDs),a(4),v("ngModel",e.pageData.Filter.QuantityFrom),a(3),v("ngModel",e.pageData.Filter.QuantityTo),a(3),v("model",e.pageData.Filter.Discontinued),p("options",e.pageData.Options.Discontinued)}}function Ie(t,c){t&1&&(o(0,"th",27),l(1," Cost "),f(2,"p-treeTableSortIcon",28),i())}function Te(t,c){t&1&&(o(0,"th",29),l(1," Price "),f(2,"p-treeTableSortIcon",30),i())}function De(t,c){t&1&&(o(0,"th",31),l(1," % "),f(2,"p-treeTableSortIcon",32),i())}function he(t,c){if(t&1&&(o(0,"tr",19)(1,"th",20),l(2," Category "),f(3,"p-treeTableSortIcon",21),i(),o(4,"th",22),l(5," On Hand "),f(6,"p-treeTableSortIcon",23),i(),x(7,Ie,3,0,"th",24)(8,Te,3,0,"th",25)(9,De,3,0,"th",26),i()),t&2){let e=m(2);a(7),p("ngIf",e.roleService.product.Cost),a(),p("ngIf",e.roleService.product.Price),a(),p("ngIf",e.roleService.product.Cost&&e.roleService.product.Price)}}function we(t,c){if(t&1&&(o(0,"td"),l(1),_(2,"amountFraction"),i()),t&2){let e=m().rowData;a(),g(" ",s(2,1,e.DisplayedCost)," ")}}function Be(t,c){if(t&1&&(o(0,"td"),l(1),_(2,"amountFraction"),i()),t&2){let e=m().rowData;a(),g(" ",s(2,1,e.DisplayedPrice)," ")}}function Fe(t,c){if(t&1&&(o(0,"td")(1,"span",38),_(2,"number"),l(3),_(4,"number"),i()()),t&2){let e=m().rowData;a(),p("matTooltip",D(2,2,e.DisplayedPercentage,"1.0-5")+"%"),a(2),g(" ",D(4,5,e.DisplayedPercentage,"1.0-0"),"% ")}}function Pe(t,c){if(t&1&&(o(0,"tr",33)(1,"td"),f(2,"p-treeTableToggler",34),o(3,"a",35),l(4),i()(),o(5,"td")(6,"a",36),_(7,"number"),_(8,"number"),_(9,"number"),l(10),_(11,"quantityFraction"),i()(),x(12,we,3,3,"td",37)(13,Be,3,3,"td",37)(14,Fe,5,8,"td",37),i()),t&2){let e=c.$implicit,r=c.rowData,n=m(2);p("ttRow",e),a(2),p("rowNode",e),a(),p("routerLink",T(21,xe))("queryParams",w(22,ye,r.ID)),a(),M(r.Name),a(2),p("matTooltip",V(r.OnHandIndirect&&r.OnHand?"Direct ("+s(7,13,r.OnHand)+") Indirect ("+s(8,15,r.OnHandIndirect)+")":r.OnHandIndirect?"Indirect ("+s(9,17,r.OnHandIndirect)+")":""))("routerLink",T(24,ve))("queryParams",w(25,ye,r.ID)),a(4),g("",s(11,19,r.DisplayedOnHand)," "),a(2),p("ngIf",n.roleService.product.Cost),a(),p("ngIf",n.roleService.product.Price),a(),p("ngIf",n.roleService.product.Cost&&n.roleService.product.Price)}}function Ee(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"amountFraction"),i()),t&2){let e=m(3);a(),g(" ",s(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalCost)," ")}}function Me(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"amountFraction"),i()),t&2){let e=m(3);a(),g(" ",s(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalPrice)," ")}}function Ve(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"number"),i()),t&2){let e=m(3);a(),g(" ",D(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalPercentage,"1.0-0"),"% ")}}function Oe(t,c){if(t&1&&(o(0,"tr",39)(1,"td",40),l(2,"Total:"),i(),o(3,"td",40),l(4),_(5,"quantityFraction"),i(),x(6,Ee,3,3,"td",41)(7,Me,3,3,"td",41)(8,Ve,3,4,"td",41),i()),t&2){let e=m(2);a(4),g(" ",s(5,4,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalOnHand)," "),a(2),p("ngIf",e.roleService.product.Cost),a(),p("ngIf",e.roleService.product.Price),a(),p("ngIf",e.roleService.product.Cost&&e.roleService.product.Price)}}function Le(t,c){if(t&1){let e=I();o(0,"mainpanel-cmp",2),h("onSubmit",function(){u(e);let n=m();return y(n.searchFromPageOne())}),b("filterChange",function(n){u(e);let d=m();return S(d.pageData.Filter,n)||(d.pageData.Filter=n),y(n)}),o(1,"actions"),P(2,Se,3,0,"button",3),i(),o(3,"div",4),x(4,be,14,7,"ng-template",null,0,O),i(),o(6,"content")(7,"div",5)(8,"p-treeTable",6),x(9,he,10,3,"ng-template",7)(10,Pe,15,27,"ng-template",8)(11,Oe,9,6,"ng-template",9),i()()()()}if(t&2){let e=m();p("pageData",e.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),v("filter",e.pageData.Filter),a(2),E(e.roleService.global.Export?2:-1),a(6),p("value",e.data.data)("scrollable",!0)("scrollable",!0)("tableStyle",T(9,Ce))}}var fe=class t extends Y{constructor(e,r,n,d,Re,He){super(e,r,"Inventory/GetByCategory","InventoryLoader/GetByCategory");this.httpService=r;this.csvConverter=n;this.pageTitle=d;this.roleService=Re;this.dialog=He}openExportModal(){this.dialog.open($,{data:{title:"Inventory By Category",exportTypes:[{ID:"inventoryexport/GetExportInventoryByCategory",Value:"Default",FileName:"Inventory By Category"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!1}})}static \u0275fac=function(r){return new(r||t)(C(ne),C(z),C(ie),C(W),C(J),C(Z))};static \u0275cmp=B({type:t,selectors:[["app-inventory-by-category"]],features:[F],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","hideSearchBox","isFilterOnDropdown","filter","onSubmit","filterChange",4,"ngIf"],[3,"onSubmit","filterChange","pageData","hideSearchBox","isFilterOnDropdown","filter"],[1,"btn","btn-outline-secondary","me-3"],["filters",""],[1,"container-fluid","mt-3"],[3,"value","scrollable","tableStyle"],["pTemplate","header"],["pTemplate","body"],["pTemplate","footer"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["placeholder","Choose Outlet",1,"ng-select-multiple",3,"ngModelChange","multiple","accessType","ngModel"],[1,"d-flex","align-items-center"],["type","number","placeholder","From",1,"form-control",3,"ngModelChange","ngModel"],[1,"mx-3"],["type","number","placeholder","To",1,"form-control",3,"ngModelChange","ngModel"],[3,"modelChange","model","options"],[1,"custom-header"],["ttSortableColumn","Name",1,"text-uppercase"],["field","Name"],["ttSortableColumn","DisplayedOnHand",1,"text-uppercase"],["field","DisplayedOnHand"],["class","text-uppercase","ttSortableColumn","DisplayedCost",4,"ngIf"],["class","text-uppercase","ttSortableColumn","DisplayedPrice",4,"ngIf"],["class","text-uppercase","ttSortableColumn","DisplayedPercentage",4,"ngIf"],["ttSortableColumn","DisplayedCost",1,"text-uppercase"],["field","DisplayedCost"],["ttSortableColumn","DisplayedPrice",1,"text-uppercase"],["field","DisplayedPrice"],["ttSortableColumn","DisplayedPercentage",1,"text-uppercase"],["field","DisplayedPercentage"],[3,"ttRow"],[3,"rowNode"],["target","_blank",3,"routerLink","queryParams"],["matTooltipPosition","above",3,"routerLink","queryParams","matTooltip"],[4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],[1,"table-footer"],[1,"text-end"],["class","text-end",4,"ngIf"]],template:function(r,n){r&1&&x(0,Le,12,10,"mainpanel-cmp",1),r&2&&p("ngIf",n.data)},dependencies:[H,L,ae,oe,N,A,ue,ce,K,ge,de,_e,se,pe,me,le,re,G,k,q,Q,j,X,U,R,ee,te],styles:[".p-treetable-scrollable-header-box{padding-right:0!important} .p-treetable .p-treetable-thead>tr>th:not(:first-child){text-align:right!important} .p-treetable .p-treetable-tbody>tr>td:not(:first-child){text-align:right!important} .p-treetable-scrollable-footer-box{padding-right:0!important} .table-header-styles, .p-treetable-tfoot td, .p-treetable-thead th{background:#f6f6f6!important;color:#3b3b3b!important;text-transform:uppercase!important;font-weight:700!important;line-height:25px!important;font-size:12px!important;font-family:Roboto,sans-serif!important} .p-component.p-iconwrapper>svg{height:11px!important} .p-treetable .p-treetable-tbody>tr>td{border-bottom-width:1px;border-color:#dee2e6}"]})};export{fe as InventoryByCategoryComponent};
1
+ import{a as ce,b as de,c as _e,d as se,e as ge,f as ue}from"./chunk-WW4UBOYF.js";import"./chunk-PHH2AA3W.js";import"./chunk-7SAEXKAX.js";import"./chunk-DTVCBHPA.js";import"./chunk-5USF4MRW.js";import{a as te}from"./chunk-363IDTE3.js";import{a as ee}from"./chunk-QZZ2NRA3.js";import"./chunk-FAED643P.js";import{e as me}from"./chunk-WMZLH4YK.js";import"./chunk-72RZBOHX.js";import"./chunk-3RK6DDJD.js";import"./chunk-M3DKYPGC.js";import"./chunk-6WATOQG3.js";import"./chunk-VM4K4MNV.js";import"./chunk-XTCEZONP.js";import"./chunk-LNDHYAFW.js";import{d as re,e as le}from"./chunk-5ZD6KTDH.js";import"./chunk-ZZBF7AOW.js";import{c as pe}from"./chunk-SRAJGU6Y.js";import{b as $}from"./chunk-VXPORXGI.js";import{a as Y}from"./chunk-OOKDKXRB.js";import"./chunk-H6UWRJHQ.js";import"./chunk-L6PKNRWO.js";import"./chunk-SIQZO2WM.js";import{a as ie}from"./chunk-J6M7UWVR.js";import{e as oe,f as ae}from"./chunk-YVO66RJF.js";import"./chunk-5QMBTXFS.js";import"./chunk-7YUPYNWQ.js";import"./chunk-2CL5FM3P.js";import"./chunk-LGINK7BD.js";import"./chunk-IKKPP4JS.js";import"./chunk-QPAUI5EG.js";import"./chunk-45E6XCHN.js";import"./chunk-SIDUUVNA.js";import"./chunk-KZFNI67M.js";import"./chunk-4BXCIT62.js";import"./chunk-D4FCXEV4.js";import"./chunk-6P2ASCNY.js";import"./chunk-PFF34SZG.js";import{b as ne}from"./chunk-V3FPQMVB.js";import"./chunk-R2GUMKAU.js";import"./chunk-BT7NN7PT.js";import"./chunk-26YFRPR2.js";import{b as U,c as X}from"./chunk-JBS5UYZC.js";import"./chunk-TEGIL5RZ.js";import"./chunk-B7AC4RMR.js";import"./chunk-EQLHPWVB.js";import"./chunk-THT6CY5E.js";import{g as Z}from"./chunk-ZTD4APMR.js";import"./chunk-7P3L3ODB.js";import"./chunk-S7FOJJP2.js";import"./chunk-FU2ZGMX4.js";import"./chunk-2FWFPV5I.js";import{oa as K}from"./chunk-SLX34TWD.js";import{F as G,c as k,h as Q,o as j,q}from"./chunk-DWZ5JTI2.js";import"./chunk-Y7D34HYN.js";import"./chunk-P6DRDJVZ.js";import"./chunk-36GWLMZX.js";import{b as J}from"./chunk-WFQIMZGL.js";import"./chunk-WUV22SZ4.js";import"./chunk-6UC76HYF.js";import{s as z}from"./chunk-LGOSIAUC.js";import{Ab as E,Fb as p,Fc as _,Gb as o,Gc as s,Hb as i,Hc as D,Ib as f,Jd as W,Lc as O,Pb as I,Qd as A,Sb as h,Sd as N,Ub as m,Xa as a,eb as C,hc as l,ib as B,ic as M,jc as g,jd as L,mb as F,mc as v,nc as S,ob as x,oc as b,sc as V,sd as R,ta as u,ua as y,vd as H,xc as T,yb as P,yc as w}from"./chunk-IEVGW2RT.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var Ce=()=>({"min-width":"50rem","font-family":"Roboto, sans-serif"}),xe=()=>["/menu/Products/Catalog/Products"],ye=t=>({CategoryID:t}),ve=()=>["/menu/Inventory/Quantity/Valuation"];function Se(t,c){if(t&1){let e=I();o(0,"button",10),h("click",function(){u(e);let n=m(2);return y(n.openExportModal())}),f(1,"i",11),l(2," Export "),i()}}function be(t,c){if(t&1){let e=I();o(0,"div",12)(1,"h6"),l(2,"Outlet"),i(),o(3,"outlet-selector",13),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.ListIDs,n)||(d.pageData.Filter.ListIDs=n),y(n)}),i(),o(4,"h6"),l(5,"Quantity From - To"),i(),o(6,"div",14)(7,"input",15),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.QuantityFrom,n)||(d.pageData.Filter.QuantityFrom=n),y(n)}),i(),o(8,"span",16),l(9,"-"),i(),o(10,"input",17),b("ngModelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.QuantityTo,n)||(d.pageData.Filter.QuantityTo=n),y(n)}),i()(),o(11,"h6"),l(12,"Discontinued"),i(),o(13,"radio-options",18),b("modelChange",function(n){u(e);let d=m(2);return S(d.pageData.Filter.Discontinued,n)||(d.pageData.Filter.Discontinued=n),y(n)}),i()()}if(t&2){let e=m(2);a(3),p("multiple",!0)("accessType",2),v("ngModel",e.pageData.Filter.ListIDs),a(4),v("ngModel",e.pageData.Filter.QuantityFrom),a(3),v("ngModel",e.pageData.Filter.QuantityTo),a(3),v("model",e.pageData.Filter.Discontinued),p("options",e.pageData.Options.Discontinued)}}function Ie(t,c){t&1&&(o(0,"th",27),l(1," Cost "),f(2,"p-treeTableSortIcon",28),i())}function Te(t,c){t&1&&(o(0,"th",29),l(1," Price "),f(2,"p-treeTableSortIcon",30),i())}function De(t,c){t&1&&(o(0,"th",31),l(1," % "),f(2,"p-treeTableSortIcon",32),i())}function he(t,c){if(t&1&&(o(0,"tr",19)(1,"th",20),l(2," Category "),f(3,"p-treeTableSortIcon",21),i(),o(4,"th",22),l(5," On Hand "),f(6,"p-treeTableSortIcon",23),i(),x(7,Ie,3,0,"th",24)(8,Te,3,0,"th",25)(9,De,3,0,"th",26),i()),t&2){let e=m(2);a(7),p("ngIf",e.roleService.product.Cost),a(),p("ngIf",e.roleService.product.Price),a(),p("ngIf",e.roleService.product.Cost&&e.roleService.product.Price)}}function we(t,c){if(t&1&&(o(0,"td"),l(1),_(2,"amountFraction"),i()),t&2){let e=m().rowData;a(),g(" ",s(2,1,e.DisplayedCost)," ")}}function Be(t,c){if(t&1&&(o(0,"td"),l(1),_(2,"amountFraction"),i()),t&2){let e=m().rowData;a(),g(" ",s(2,1,e.DisplayedPrice)," ")}}function Fe(t,c){if(t&1&&(o(0,"td")(1,"span",38),_(2,"number"),l(3),_(4,"number"),i()()),t&2){let e=m().rowData;a(),p("matTooltip",D(2,2,e.DisplayedPercentage,"1.0-5")+"%"),a(2),g(" ",D(4,5,e.DisplayedPercentage,"1.0-0"),"% ")}}function Pe(t,c){if(t&1&&(o(0,"tr",33)(1,"td"),f(2,"p-treeTableToggler",34),o(3,"a",35),l(4),i()(),o(5,"td")(6,"a",36),_(7,"number"),_(8,"number"),_(9,"number"),l(10),_(11,"quantityFraction"),i()(),x(12,we,3,3,"td",37)(13,Be,3,3,"td",37)(14,Fe,5,8,"td",37),i()),t&2){let e=c.$implicit,r=c.rowData,n=m(2);p("ttRow",e),a(2),p("rowNode",e),a(),p("routerLink",T(21,xe))("queryParams",w(22,ye,r.ID)),a(),M(r.Name),a(2),p("matTooltip",V(r.OnHandIndirect&&r.OnHand?"Direct ("+s(7,13,r.OnHand)+") Indirect ("+s(8,15,r.OnHandIndirect)+")":r.OnHandIndirect?"Indirect ("+s(9,17,r.OnHandIndirect)+")":""))("routerLink",T(24,ve))("queryParams",w(25,ye,r.ID)),a(4),g("",s(11,19,r.DisplayedOnHand)," "),a(2),p("ngIf",n.roleService.product.Cost),a(),p("ngIf",n.roleService.product.Price),a(),p("ngIf",n.roleService.product.Cost&&n.roleService.product.Price)}}function Ee(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"amountFraction"),i()),t&2){let e=m(3);a(),g(" ",s(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalCost)," ")}}function Me(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"amountFraction"),i()),t&2){let e=m(3);a(),g(" ",s(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalPrice)," ")}}function Ve(t,c){if(t&1&&(o(0,"td",40),l(1),_(2,"number"),i()),t&2){let e=m(3);a(),g(" ",D(2,1,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalPercentage,"1.0-0"),"% ")}}function Oe(t,c){if(t&1&&(o(0,"tr",39)(1,"td",40),l(2,"Total:"),i(),o(3,"td",40),l(4),_(5,"quantityFraction"),i(),x(6,Ee,3,3,"td",41)(7,Me,3,3,"td",41)(8,Ve,3,4,"td",41),i()),t&2){let e=m(2);a(4),g(" ",s(5,4,e.data==null||e.data.Aggregate==null?null:e.data.Aggregate.TotalOnHand)," "),a(2),p("ngIf",e.roleService.product.Cost),a(),p("ngIf",e.roleService.product.Price),a(),p("ngIf",e.roleService.product.Cost&&e.roleService.product.Price)}}function Le(t,c){if(t&1){let e=I();o(0,"mainpanel-cmp",2),h("onSubmit",function(){u(e);let n=m();return y(n.searchFromPageOne())}),b("filterChange",function(n){u(e);let d=m();return S(d.pageData.Filter,n)||(d.pageData.Filter=n),y(n)}),o(1,"actions"),P(2,Se,3,0,"button",3),i(),o(3,"div",4),x(4,be,14,7,"ng-template",null,0,O),i(),o(6,"content")(7,"div",5)(8,"p-treeTable",6),x(9,he,10,3,"ng-template",7)(10,Pe,15,27,"ng-template",8)(11,Oe,9,6,"ng-template",9),i()()()()}if(t&2){let e=m();p("pageData",e.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),v("filter",e.pageData.Filter),a(2),E(e.roleService.global.Export?2:-1),a(6),p("value",e.data.data)("scrollable",!0)("scrollable",!0)("tableStyle",T(9,Ce))}}var fe=class t extends Y{constructor(e,r,n,d,Re,He){super(e,r,"Inventory/GetByCategory","InventoryLoader/GetByCategory");this.httpService=r;this.csvConverter=n;this.pageTitle=d;this.roleService=Re;this.dialog=He}openExportModal(){this.dialog.open($,{data:{title:"Inventory By Category",exportTypes:[{ID:"inventoryexport/GetExportInventoryByCategory",Value:"Default",FileName:"Inventory By Category"}],filterExport:this.pageData.Filter,getAllDataLengthAPI:"",pagination:!1}})}static \u0275fac=function(r){return new(r||t)(C(ne),C(z),C(ie),C(W),C(J),C(Z))};static \u0275cmp=B({type:t,selectors:[["app-inventory-by-category"]],features:[F],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","hideSearchBox","isFilterOnDropdown","filter","onSubmit","filterChange",4,"ngIf"],[3,"onSubmit","filterChange","pageData","hideSearchBox","isFilterOnDropdown","filter"],[1,"btn","btn-outline-secondary","me-3"],["filters",""],[1,"container-fluid","mt-3"],[3,"value","scrollable","tableStyle"],["pTemplate","header"],["pTemplate","body"],["pTemplate","footer"],[1,"btn","btn-outline-secondary","me-3",3,"click"],["aria-hidden","true",1,"fa-solid","fa-upload"],[1,"dialog-filter"],["placeholder","Choose Outlet",1,"ng-select-multiple",3,"ngModelChange","multiple","accessType","ngModel"],[1,"d-flex","align-items-center"],["type","number","placeholder","From",1,"form-control",3,"ngModelChange","ngModel"],[1,"mx-3"],["type","number","placeholder","To",1,"form-control",3,"ngModelChange","ngModel"],[3,"modelChange","model","options"],[1,"custom-header"],["ttSortableColumn","Name",1,"text-uppercase"],["field","Name"],["ttSortableColumn","DisplayedOnHand",1,"text-uppercase"],["field","DisplayedOnHand"],["class","text-uppercase","ttSortableColumn","DisplayedCost",4,"ngIf"],["class","text-uppercase","ttSortableColumn","DisplayedPrice",4,"ngIf"],["class","text-uppercase","ttSortableColumn","DisplayedPercentage",4,"ngIf"],["ttSortableColumn","DisplayedCost",1,"text-uppercase"],["field","DisplayedCost"],["ttSortableColumn","DisplayedPrice",1,"text-uppercase"],["field","DisplayedPrice"],["ttSortableColumn","DisplayedPercentage",1,"text-uppercase"],["field","DisplayedPercentage"],[3,"ttRow"],[3,"rowNode"],["target","_blank",3,"routerLink","queryParams"],["matTooltipPosition","above",3,"routerLink","queryParams","matTooltip"],[4,"ngIf"],["matTooltipPosition","above",3,"matTooltip"],[1,"table-footer"],[1,"text-end"],["class","text-end",4,"ngIf"]],template:function(r,n){r&1&&x(0,Le,12,10,"mainpanel-cmp",1),r&2&&p("ngIf",n.data)},dependencies:[H,L,ae,oe,N,A,ue,ce,K,ge,de,_e,se,pe,me,le,re,G,k,q,Q,j,X,U,R,ee,te],styles:[".p-treetable-scrollable-header-box{padding-right:0!important} .p-treetable .p-treetable-thead>tr>th:not(:first-child){text-align:right!important} .p-treetable .p-treetable-tbody>tr>td:not(:first-child){text-align:right!important} .p-treetable-scrollable-footer-box{padding-right:0!important} .table-header-styles, .p-treetable-tfoot td, .p-treetable-thead th{background:#f6f6f6!important;color:#3b3b3b!important;text-transform:uppercase!important;font-weight:700!important;line-height:25px!important;font-size:12px!important;font-family:Roboto,sans-serif!important} .p-component.p-iconwrapper>svg{height:11px!important} .p-treetable .p-treetable-tbody>tr>td{border-bottom-width:1px;border-color:#dee2e6}"]})};export{fe as InventoryByCategoryComponent};
@@ -1 +1 @@
1
- import{a as $}from"./chunk-XWXXETJY.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-LNZY3GKF.js";import{a as Q,c as U}from"./chunk-D4FCXEV4.js";import{b as X}from"./chunk-KJF3M7DY.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-Y7KMZ7BT.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-YVO66RJF.js";import{a as Q,c as U}from"./chunk-D4FCXEV4.js";import{b as X}from"./chunk-V3FPQMVB.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};