dealpos 25.44.2 → 25.44.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (86) hide show
  1. package/browser/{chunk-J2QBKYVZ.js → chunk-2CXL6IDS.js} +1 -1
  2. package/browser/{chunk-J7JOV2UE.js → chunk-2GALXGGK.js} +1 -1
  3. package/browser/{chunk-CLIFAF7L.js → chunk-2HLP4RJY.js} +2 -2
  4. package/browser/{chunk-XMABGEYA.js → chunk-42NBSIMT.js} +1 -1
  5. package/browser/{chunk-AXITAME4.js → chunk-4XV2ANDU.js} +1 -1
  6. package/browser/{chunk-OGM6TARA.js → chunk-57UEET7E.js} +2 -2
  7. package/browser/{chunk-PW7JCR65.js → chunk-5FSR4IZJ.js} +1 -1
  8. package/browser/{chunk-JXNDVG64.js → chunk-6XO6NT6E.js} +1 -1
  9. package/browser/{chunk-W5EJQZB4.js → chunk-7LEIOTZN.js} +1 -1
  10. package/browser/{chunk-CW2D4XVM.js → chunk-7QZ26SB7.js} +1 -1
  11. package/browser/{chunk-7M35JNER.js → chunk-A3JFNOMC.js} +1 -1
  12. package/browser/{chunk-DHQWJAOX.js → chunk-ABOGLWVN.js} +1 -1
  13. package/browser/{chunk-KAJ5NYU6.js → chunk-AJM4N35T.js} +1 -1
  14. package/browser/{chunk-MS67N3VC.js → chunk-BKK7PT4Q.js} +1 -1
  15. package/browser/{chunk-BA64MIHJ.js → chunk-BLSJR63P.js} +1 -1
  16. package/browser/{chunk-T6TPCDSC.js → chunk-BXSCBMI2.js} +1 -1
  17. package/browser/{chunk-7QOZKOAW.js → chunk-CDCIW4H7.js} +1 -1
  18. package/browser/{chunk-4WAY7P2M.js → chunk-CXKH3Y7Q.js} +1 -1
  19. package/browser/{chunk-APFUVBFJ.js → chunk-DDJ6XGOR.js} +1 -1
  20. package/browser/{chunk-QPS677LS.js → chunk-DK2SUVKT.js} +1 -1
  21. package/browser/{chunk-5E64BHHD.js → chunk-DOYS2PZE.js} +1 -1
  22. package/browser/{chunk-RUFSPHPN.js → chunk-DTFMCXRP.js} +1 -1
  23. package/browser/{chunk-Y3YIK27D.js → chunk-DWZ6HNBA.js} +1 -1
  24. package/browser/{chunk-ZIUOCAE2.js → chunk-EGRFS63E.js} +1 -1
  25. package/browser/{chunk-PJTFJKGS.js → chunk-EIYVPVSH.js} +1 -1
  26. package/browser/{chunk-PMEWJS46.js → chunk-EKX3MMTJ.js} +1 -1
  27. package/browser/{chunk-3FD5W6K2.js → chunk-ESMCBLSB.js} +2 -2
  28. package/browser/{chunk-YH3UWFOD.js → chunk-EUY2EQVP.js} +1 -1
  29. package/browser/{chunk-SPTLCHEU.js → chunk-EY2BEKKH.js} +1 -1
  30. package/browser/{chunk-CT7VQIZ7.js → chunk-FDFNWO3I.js} +1 -1
  31. package/browser/{chunk-YR223T2R.js → chunk-FEHHVG4G.js} +2 -2
  32. package/browser/{chunk-QMBZSWSZ.js → chunk-FEW55RO5.js} +1 -1
  33. package/browser/{chunk-2X7JXLPO.js → chunk-FTRVMNGV.js} +1 -1
  34. package/browser/{chunk-CFDWM2SO.js → chunk-GGOZMZWR.js} +1 -1
  35. package/browser/{chunk-PKT3SIRZ.js → chunk-GKFPNF3O.js} +1 -1
  36. package/browser/{chunk-BO6JXHTU.js → chunk-GN6RJLLA.js} +1 -1
  37. package/browser/{chunk-ODOX327P.js → chunk-GQO3Q75J.js} +1 -1
  38. package/browser/{chunk-NHKASBAN.js → chunk-GUURROIV.js} +1 -1
  39. package/browser/{chunk-DTWCNQ4N.js → chunk-HRDXDHQN.js} +2 -2
  40. package/browser/{chunk-M57BBETM.js → chunk-IYV6WHO4.js} +1 -1
  41. package/browser/{chunk-XFP34FRB.js → chunk-J4HLBSTR.js} +1 -1
  42. package/browser/{chunk-XMABJJGK.js → chunk-JMQDEPZK.js} +1 -1
  43. package/browser/{chunk-3UXPJWJQ.js → chunk-JUYFABKK.js} +1 -1
  44. package/browser/{chunk-655R7PDY.js → chunk-K7BQAEUZ.js} +1 -1
  45. package/browser/{chunk-WM2ISZEL.js → chunk-KH3Y6E5S.js} +1 -1
  46. package/browser/{chunk-AAX2TBEM.js → chunk-LAJ6WFQN.js} +1 -1
  47. package/browser/{chunk-QR4VV4GM.js → chunk-LED2YGBL.js} +1 -1
  48. package/browser/{chunk-UKFG66EY.js → chunk-LKII7K7T.js} +1 -1
  49. package/browser/{chunk-J2HRW2OD.js → chunk-LKXAGCSU.js} +1 -1
  50. package/browser/{chunk-2RZHUSQU.js → chunk-LQ63SW7R.js} +1 -1
  51. package/browser/{chunk-5XINUUVX.js → chunk-MB5ABPXA.js} +2 -2
  52. package/browser/{chunk-PLZ3ODXT.js → chunk-MBJ5EVQM.js} +1 -1
  53. package/browser/{chunk-2ZDXMF6S.js → chunk-MBRMFZQD.js} +1 -1
  54. package/browser/{chunk-CMAE52E3.js → chunk-MJYYXEWE.js} +1 -1
  55. package/browser/{chunk-D4G24QCQ.js → chunk-ML4F7QSG.js} +1 -1
  56. package/browser/{chunk-3Q3FUJ44.js → chunk-MO4GVGHJ.js} +1 -1
  57. package/browser/{chunk-IJVIVNVH.js → chunk-MPCAKU6Y.js} +1 -1
  58. package/browser/{chunk-OZG5SOW6.js → chunk-NMBTXI33.js} +1 -1
  59. package/browser/{chunk-O35SSVC5.js → chunk-PDDA2XEV.js} +1 -1
  60. package/browser/{chunk-V77ELRLY.js → chunk-PKRB5QHY.js} +1 -1
  61. package/browser/{chunk-P63I2MBK.js → chunk-PMFQUQRF.js} +1 -1
  62. package/browser/{chunk-YCTTD62Z.js → chunk-QO6OCZ2F.js} +2 -2
  63. package/browser/{chunk-53I2NSFZ.js → chunk-RDMLIBMG.js} +1 -1
  64. package/browser/{chunk-6PSJSHPW.js → chunk-RJEOTZXL.js} +1 -1
  65. package/browser/{chunk-BC4RWXWV.js → chunk-S5QHJZP7.js} +1 -1
  66. package/browser/{chunk-SAAWSHJS.js → chunk-SJIRHP7T.js} +1 -1
  67. package/browser/{chunk-EPUDCYJW.js → chunk-SXKMJUZG.js} +1 -1
  68. package/browser/{chunk-CKNSQS62.js → chunk-T4LU2Z4H.js} +1 -1
  69. package/browser/chunk-UGRZNVJI.js +1 -0
  70. package/browser/{chunk-SZ7M2HSN.js → chunk-UTP22HZJ.js} +1 -1
  71. package/browser/{chunk-ZJHWFDGD.js → chunk-V3Y7QS6E.js} +1 -1
  72. package/browser/{chunk-SCB5WW4J.js → chunk-VHLIFXL2.js} +1 -1
  73. package/browser/{chunk-BSFKTGRH.js → chunk-VK6JMOTL.js} +1 -1
  74. package/browser/{chunk-34KJ7YHX.js → chunk-VPQTKMSG.js} +1 -1
  75. package/browser/{chunk-FOF7BQHC.js → chunk-VTUDAX3L.js} +1 -1
  76. package/browser/{chunk-AUTKQFDZ.js → chunk-WEZJHAOW.js} +1 -1
  77. package/browser/{chunk-RW5SHW7P.js → chunk-WOQG2RJS.js} +1 -1
  78. package/browser/{chunk-ZIT77RS6.js → chunk-WTXHMI64.js} +2 -2
  79. package/browser/{chunk-VFEOT7L6.js → chunk-XM2Q4S3I.js} +1 -1
  80. package/browser/{chunk-YV6PGG6H.js → chunk-YPHODEQB.js} +1 -1
  81. package/browser/{chunk-RKZPHRAC.js → chunk-YTS3IROV.js} +1 -1
  82. package/browser/{chunk-47RLR2PC.js → chunk-ZB4A4IBA.js} +1 -1
  83. package/browser/index.html +2 -2
  84. package/browser/{main-4NFW4OXW.js → main-CNAQ374V.js} +2 -2
  85. package/package.json +1 -1
  86. package/browser/chunk-OTEI4GZK.js +0 -1
@@ -1 +1 @@
1
- import{a as me,b as ce,c as de,d as _e,e as se,f as ge}from"./chunk-XMABGEYA.js";import"./chunk-B5SDXVDR.js";import"./chunk-QMBZSWSZ.js";import"./chunk-L7YSVT7G.js";import"./chunk-RX7JS4CO.js";import{e as pe}from"./chunk-GIDGCFLX.js";import"./chunk-XBRBYCWJ.js";import"./chunk-3RK6DDJD.js";import"./chunk-FP4HFB5J.js";import"./chunk-H3OZSV6V.js";import"./chunk-YEDKRNXU.js";import"./chunk-VZEPVRCY.js";import"./chunk-7QWJJPNG.js";import{d as ae,e as re}from"./chunk-6647Y35T.js";import"./chunk-VHAM2DWK.js";import{a as ee}from"./chunk-JPXXXD26.js";import{a as $}from"./chunk-WO3LDDSF.js";import{c as le}from"./chunk-JXNDVG64.js";import{b as Z}from"./chunk-QHBWVJIQ.js";import{a as X}from"./chunk-IJVIVNVH.js";import"./chunk-KAJ5NYU6.js";import"./chunk-6JAL37Y4.js";import"./chunk-4QQTEPQT.js";import{a as ne}from"./chunk-XZR3IMWZ.js";import{e as ie,f as oe}from"./chunk-BA64MIHJ.js";import"./chunk-2RZHUSQU.js";import"./chunk-5JJSLRVS.js";import"./chunk-B6LPY2IZ.js";import"./chunk-CWITQVZH.js";import"./chunk-QHRP323Q.js";import"./chunk-WDQ4UKKY.js";import"./chunk-MFCXEITE.js";import"./chunk-MUJ6277G.js";import"./chunk-LMJVRREP.js";import"./chunk-3LBZDIW2.js";import"./chunk-KTCV3KOE.js";import"./chunk-KZDE63UL.js";import"./chunk-ZJHWFDGD.js";import{b as te}from"./chunk-SPTLCHEU.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import"./chunk-H7F34T25.js";import{b as K,c as U}from"./chunk-JOXTERIM.js";import"./chunk-TSIYPTYI.js";import"./chunk-XYB3YDKL.js";import"./chunk-7VKFVS7K.js";import"./chunk-ZVDY66SR.js";import{g as Y}from"./chunk-3YKVLHZG.js";import"./chunk-ZHY3BUQJ.js";import"./chunk-VFTGIP5A.js";import"./chunk-LE3BKIDY.js";import"./chunk-2FWFPV5I.js";import{la as J}from"./chunk-EEEAUYZ6.js";import{F as q,c as N,h as k,o as Q,q as j}from"./chunk-RVXZOIFQ.js";import"./chunk-PW7JCR65.js";import"./chunk-XMABJJGK.js";import{d as z}from"./chunk-ZZGSAFGO.js";import"./chunk-QPS677LS.js";import{$a as a,Ac as s,Bc as D,Db as P,Fc as V,Ib as o,Jb as i,Kb as C,Ob as I,Qb as h,Rb as m,Rd as W,Td as A,Ub as E,Yd as G,Zc as O,db as x,ec as l,fc as M,gc as g,gd as L,jc as v,jd as R,kb as B,kc as S,lc as b,ob as F,qb as f,qc as T,rc as w,va as u,vb as p,wa as y,wd as H,zc as _}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";var fe=()=>({"min-width":"50rem","font-family":"Roboto, sans-serif"}),Ce=()=>["/menu/Products/Catalog/Products"],ue=t=>({CategoryID:t}),xe=()=>["/menu/Inventory/Quantity/Valuation"];function ve(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())}),C(1,"i",11),l(2," Export "),i()}}function Se(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 be(t,c){t&1&&(o(0,"th",27),l(1," Cost "),C(2,"p-treeTableSortIcon",28),i())}function Ie(t,c){t&1&&(o(0,"th",29),l(1," Price "),C(2,"p-treeTableSortIcon",30),i())}function Te(t,c){t&1&&(o(0,"th",31),l(1," % "),C(2,"p-treeTableSortIcon",32),i())}function De(t,c){if(t&1&&(o(0,"tr",19)(1,"th",20),l(2," Category "),C(3,"p-treeTableSortIcon",21),i(),o(4,"th",22),l(5," On Hand "),C(6,"p-treeTableSortIcon",23),i(),f(7,be,3,0,"th",24)(8,Ie,3,0,"th",25)(9,Te,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 he(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 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.DisplayedPrice)," ")}}function Be(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 Fe(t,c){if(t&1&&(o(0,"tr",33)(1,"td"),C(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()(),f(12,he,3,3,"td",37)(13,we,3,3,"td",37)(14,Be,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(20,Ce))("queryParams",w(21,ue,r.ID)),a(),M(r.Name),a(2),E("matTooltip",r.OnHandIndirect&&r.OnHand?"Direct ("+s(7,12,r.OnHand)+") Indirect ("+s(8,14,r.OnHandIndirect)+")":r.OnHandIndirect?"Indirect ("+s(9,16,r.OnHandIndirect)+")":""),p("routerLink",T(23,xe))("queryParams",w(24,ue,r.ID)),a(4),g("",s(11,18,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 Pe(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 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.TotalPrice)," ")}}function Me(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 Ve(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(),f(6,Pe,3,3,"td",41)(7,Ee,3,3,"td",41)(8,Me,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 Oe(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"),f(2,ve,3,0,"button",3),i(),o(3,"div",4),f(4,Se,14,7,"ng-template",null,0,V),i(),o(6,"content")(7,"div",5)(8,"p-treeTable",6),f(9,De,10,3,"ng-template",7)(10,Fe,15,26,"ng-template",8)(11,Ve,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),P(e.roleService.global.Export?2:-1),a(6),p("value",e.data.data)("scrollable",!0)("scrollable",!0)("tableStyle",T(9,fe))}}var ye=class t extends X{constructor(e,r,n,d,Le,Re){super(e,r,"Inventory/GetByCategory","InventoryLoader/GetByCategory");this.httpService=r;this.csvConverter=n;this.pageTitle=d;this.roleService=Le;this.dialog=Re}openExportModal(){this.dialog.open(Z,{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)(x(te),x(G),x(ne),x(H),x(z),x(Y))};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&&f(0,Oe,12,10,"mainpanel-cmp",1),r&2&&p("ngIf",n.data)},dependencies:[R,O,L,oe,ie,A,W,ge,me,J,se,ce,de,_e,$,ee,le,pe,re,ae,q,N,j,k,Q,U,K],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{ye as InventoryByCategoryComponent};
1
+ import{a as me,b as ce,c as de,d as _e,e as se,f as ge}from"./chunk-42NBSIMT.js";import"./chunk-B5SDXVDR.js";import"./chunk-FEW55RO5.js";import"./chunk-L7YSVT7G.js";import"./chunk-RX7JS4CO.js";import{e as pe}from"./chunk-GIDGCFLX.js";import"./chunk-XBRBYCWJ.js";import"./chunk-3RK6DDJD.js";import"./chunk-FP4HFB5J.js";import"./chunk-H3OZSV6V.js";import"./chunk-YEDKRNXU.js";import"./chunk-VZEPVRCY.js";import"./chunk-7QWJJPNG.js";import{d as ae,e as re}from"./chunk-6647Y35T.js";import"./chunk-VHAM2DWK.js";import{a as ee}from"./chunk-JPXXXD26.js";import{a as $}from"./chunk-WO3LDDSF.js";import{c as le}from"./chunk-6XO6NT6E.js";import{b as Z}from"./chunk-QHBWVJIQ.js";import{a as X}from"./chunk-MPCAKU6Y.js";import"./chunk-AJM4N35T.js";import"./chunk-6JAL37Y4.js";import"./chunk-4QQTEPQT.js";import{a as ne}from"./chunk-XZR3IMWZ.js";import{e as ie,f as oe}from"./chunk-BLSJR63P.js";import"./chunk-LQ63SW7R.js";import"./chunk-5JJSLRVS.js";import"./chunk-B6LPY2IZ.js";import"./chunk-CWITQVZH.js";import"./chunk-QHRP323Q.js";import"./chunk-WDQ4UKKY.js";import"./chunk-MFCXEITE.js";import"./chunk-MUJ6277G.js";import"./chunk-LMJVRREP.js";import"./chunk-3LBZDIW2.js";import"./chunk-KTCV3KOE.js";import"./chunk-KZDE63UL.js";import"./chunk-V3Y7QS6E.js";import{b as te}from"./chunk-EY2BEKKH.js";import"./chunk-3GOO5E5D.js";import"./chunk-XMYLHF4C.js";import"./chunk-H7F34T25.js";import{b as K,c as U}from"./chunk-JOXTERIM.js";import"./chunk-TSIYPTYI.js";import"./chunk-XYB3YDKL.js";import"./chunk-7VKFVS7K.js";import"./chunk-ZVDY66SR.js";import{g as Y}from"./chunk-3YKVLHZG.js";import"./chunk-ZHY3BUQJ.js";import"./chunk-VFTGIP5A.js";import"./chunk-LE3BKIDY.js";import"./chunk-2FWFPV5I.js";import{la as J}from"./chunk-EEEAUYZ6.js";import{F as q,c as N,h as k,o as Q,q as j}from"./chunk-RVXZOIFQ.js";import"./chunk-5FSR4IZJ.js";import"./chunk-JMQDEPZK.js";import{d as z}from"./chunk-ZZGSAFGO.js";import"./chunk-DK2SUVKT.js";import{$a as a,Ac as s,Bc as D,Db as P,Fc as V,Ib as o,Jb as i,Kb as C,Ob as I,Qb as h,Rb as m,Rd as W,Td as A,Ub as E,Yd as G,Zc as O,db as x,ec as l,fc as M,gc as g,gd as L,jc as v,jd as R,kb as B,kc as S,lc as b,ob as F,qb as f,qc as T,rc as w,va as u,vb as p,wa as y,wd as H,zc as _}from"./chunk-UXRO4UFY.js";import"./chunk-7DCB7DB2.js";var fe=()=>({"min-width":"50rem","font-family":"Roboto, sans-serif"}),Ce=()=>["/menu/Products/Catalog/Products"],ue=t=>({CategoryID:t}),xe=()=>["/menu/Inventory/Quantity/Valuation"];function ve(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())}),C(1,"i",11),l(2," Export "),i()}}function Se(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 be(t,c){t&1&&(o(0,"th",27),l(1," Cost "),C(2,"p-treeTableSortIcon",28),i())}function Ie(t,c){t&1&&(o(0,"th",29),l(1," Price "),C(2,"p-treeTableSortIcon",30),i())}function Te(t,c){t&1&&(o(0,"th",31),l(1," % "),C(2,"p-treeTableSortIcon",32),i())}function De(t,c){if(t&1&&(o(0,"tr",19)(1,"th",20),l(2," Category "),C(3,"p-treeTableSortIcon",21),i(),o(4,"th",22),l(5," On Hand "),C(6,"p-treeTableSortIcon",23),i(),f(7,be,3,0,"th",24)(8,Ie,3,0,"th",25)(9,Te,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 he(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 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.DisplayedPrice)," ")}}function Be(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 Fe(t,c){if(t&1&&(o(0,"tr",33)(1,"td"),C(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()(),f(12,he,3,3,"td",37)(13,we,3,3,"td",37)(14,Be,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(20,Ce))("queryParams",w(21,ue,r.ID)),a(),M(r.Name),a(2),E("matTooltip",r.OnHandIndirect&&r.OnHand?"Direct ("+s(7,12,r.OnHand)+") Indirect ("+s(8,14,r.OnHandIndirect)+")":r.OnHandIndirect?"Indirect ("+s(9,16,r.OnHandIndirect)+")":""),p("routerLink",T(23,xe))("queryParams",w(24,ue,r.ID)),a(4),g("",s(11,18,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 Pe(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 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.TotalPrice)," ")}}function Me(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 Ve(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(),f(6,Pe,3,3,"td",41)(7,Ee,3,3,"td",41)(8,Me,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 Oe(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"),f(2,ve,3,0,"button",3),i(),o(3,"div",4),f(4,Se,14,7,"ng-template",null,0,V),i(),o(6,"content")(7,"div",5)(8,"p-treeTable",6),f(9,De,10,3,"ng-template",7)(10,Fe,15,26,"ng-template",8)(11,Ve,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),P(e.roleService.global.Export?2:-1),a(6),p("value",e.data.data)("scrollable",!0)("scrollable",!0)("tableStyle",T(9,fe))}}var ye=class t extends X{constructor(e,r,n,d,Le,Re){super(e,r,"Inventory/GetByCategory","InventoryLoader/GetByCategory");this.httpService=r;this.csvConverter=n;this.pageTitle=d;this.roleService=Le;this.dialog=Re}openExportModal(){this.dialog.open(Z,{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)(x(te),x(G),x(ne),x(H),x(z),x(Y))};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&&f(0,Oe,12,10,"mainpanel-cmp",1),r&2&&p("ngIf",n.data)},dependencies:[R,O,L,oe,ie,A,W,ge,me,J,se,ce,de,_e,$,ee,le,pe,re,ae,q,N,j,k,Q,U,K],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{ye as InventoryByCategoryComponent};