dealpos 25.48.0 → 25.48.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 (90) hide show
  1. package/browser/{chunk-55K6ABR7.js → chunk-22Q4GFCS.js} +1 -1
  2. package/browser/{chunk-BTJPSMLV.js → chunk-2YJP5PQJ.js} +1 -1
  3. package/browser/{chunk-Q6KWA7ML.js → chunk-327LILIU.js} +1 -1
  4. package/browser/{chunk-H44MWYXB.js → chunk-33ZBZA3U.js} +4 -4
  5. package/browser/{chunk-2LYXOQ5N.js → chunk-37E4SNZ3.js} +1 -1
  6. package/browser/{chunk-QPMF6WP7.js → chunk-3ALHEPKV.js} +1 -1
  7. package/browser/{chunk-5WZX5UDC.js → chunk-3DZLNGPO.js} +1 -1
  8. package/browser/{chunk-FUS5ABYT.js → chunk-3N7EBSCG.js} +1 -1
  9. package/browser/{chunk-OBXCVFDY.js → chunk-3VKLSTEH.js} +1 -1
  10. package/browser/{chunk-LPWVUN75.js → chunk-4F6J35GL.js} +1 -1
  11. package/browser/{chunk-YOIV5LCG.js → chunk-4KLLS7S5.js} +1 -1
  12. package/browser/{chunk-MNZTXNPB.js → chunk-4OD3JW2M.js} +1 -1
  13. package/browser/chunk-4RYYICV5.js +3 -0
  14. package/browser/{chunk-KY577SRX.js → chunk-5U73W2IZ.js} +1 -1
  15. package/browser/{chunk-NCLOGMP4.js → chunk-62V34GYI.js} +1 -1
  16. package/browser/{chunk-3THWKHRL.js → chunk-6F4WKG7M.js} +1 -1
  17. package/browser/{chunk-4AKG7BSF.js → chunk-6QBYWFJ4.js} +1 -1
  18. package/browser/{chunk-5S5ZFAPJ.js → chunk-7DCWSNUN.js} +1 -1
  19. package/browser/{chunk-4RKRHCPA.js → chunk-7T6YO3VY.js} +1 -1
  20. package/browser/{chunk-MNVLPMSI.js → chunk-A4TTSCQT.js} +1 -1
  21. package/browser/{chunk-RKBLZASG.js → chunk-A5WQMHVO.js} +1 -1
  22. package/browser/{chunk-HEPRCWZT.js → chunk-BWEEC6HM.js} +1 -1
  23. package/browser/{chunk-VC7J7CSQ.js → chunk-BXOQMC5N.js} +1 -1
  24. package/browser/{chunk-LB7NU42O.js → chunk-CDFNRJAQ.js} +1 -1
  25. package/browser/{chunk-VXHN6MWB.js → chunk-CSURZQS6.js} +1 -1
  26. package/browser/{chunk-ZEIM63JO.js → chunk-CUU2G2CM.js} +1 -1
  27. package/browser/{chunk-KWKY5NGW.js → chunk-CZYGX5TM.js} +1 -1
  28. package/browser/{chunk-UJTEC3AC.js → chunk-D2JKYGM3.js} +1 -1
  29. package/browser/{chunk-NFAOMT2P.js → chunk-DEOVGQZC.js} +2 -2
  30. package/browser/{chunk-HYURPMUC.js → chunk-DZ6FWYAF.js} +1 -1
  31. package/browser/{chunk-MYKOQWDM.js → chunk-E7ISSVA3.js} +1 -1
  32. package/browser/{chunk-QHNGMJWX.js → chunk-EHJXCRPX.js} +1 -1
  33. package/browser/{chunk-IMVZUGYH.js → chunk-ETLWM6MW.js} +1 -1
  34. package/browser/{chunk-V4KJNBS7.js → chunk-EX6JLLRB.js} +1 -1
  35. package/browser/{chunk-WWQSFAIE.js → chunk-FY3CQQFL.js} +1 -1
  36. package/browser/{chunk-ND6K5DYL.js → chunk-FYMATMVS.js} +1 -1
  37. package/browser/{chunk-YWDEOTPR.js → chunk-GEMHTJVB.js} +1 -1
  38. package/browser/{chunk-P43N5BDV.js → chunk-GHBBRGW2.js} +1 -1
  39. package/browser/{chunk-CWFUNJQI.js → chunk-GTJDUG56.js} +1 -1
  40. package/browser/{chunk-CJII6RPH.js → chunk-GZ7UUU3F.js} +1 -1
  41. package/browser/{chunk-WCCWWFYE.js → chunk-HIQKF5X3.js} +1 -1
  42. package/browser/{chunk-K5L5HMWR.js → chunk-HNK3XQEI.js} +1 -1
  43. package/browser/{chunk-A4H6IBC3.js → chunk-HS44M5L3.js} +1 -1
  44. package/browser/{chunk-S5HK3JOC.js → chunk-HUYWGTVQ.js} +1 -1
  45. package/browser/{chunk-ECEHKAWW.js → chunk-HVFAKTAO.js} +1 -1
  46. package/browser/{chunk-32RSQ3UU.js → chunk-IMM4P55U.js} +1 -1
  47. package/browser/{chunk-Z2CO5BFP.js → chunk-IMSDBLRH.js} +1 -1
  48. package/browser/{chunk-56J3O2YI.js → chunk-KQYNW4DG.js} +3 -3
  49. package/browser/chunk-KR2YGW5S.js +5 -0
  50. package/browser/chunk-L5KVMIM3.js +24 -0
  51. package/browser/{chunk-YFRQWQ66.js → chunk-LVC4ZU2C.js} +1 -1
  52. package/browser/{chunk-ZNIIYEEO.js → chunk-M3CGB5RK.js} +2 -2
  53. package/browser/{chunk-3KNGE65M.js → chunk-M4HEF65P.js} +1 -1
  54. package/browser/{chunk-OK5EBIMF.js → chunk-MP4RQSWT.js} +2 -2
  55. package/browser/{chunk-4XGRIAZ2.js → chunk-N5SEZOII.js} +1 -1
  56. package/browser/{chunk-RFCZ4NNF.js → chunk-N7SUEV3C.js} +1 -1
  57. package/browser/{chunk-2IIAMAC2.js → chunk-NDSWUR7R.js} +1 -1
  58. package/browser/{chunk-YYGLCUQ6.js → chunk-NETNL55X.js} +1 -1
  59. package/browser/{chunk-AE6CDP2N.js → chunk-NHWTJY64.js} +1 -1
  60. package/browser/{chunk-63AFDUIT.js → chunk-O5CTER4C.js} +12 -12
  61. package/browser/{chunk-QQXPISMR.js → chunk-OU7YY2CV.js} +1 -1
  62. package/browser/{chunk-7XC4XIHR.js → chunk-P32JEM3L.js} +1 -1
  63. package/browser/{chunk-7TWRUF3H.js → chunk-P6LF5RPW.js} +1 -1
  64. package/browser/chunk-PD5SVXID.js +1 -0
  65. package/browser/{chunk-YJFCUHVH.js → chunk-QA67WF7E.js} +1 -1
  66. package/browser/{chunk-MZIYTJ6Z.js → chunk-QFWPOP7L.js} +1 -1
  67. package/browser/{chunk-DFUQ53YY.js → chunk-RDAIK2LU.js} +1 -1
  68. package/browser/{chunk-R3BLOGD6.js → chunk-REBD6XHD.js} +1 -1
  69. package/browser/{chunk-3L267ZNV.js → chunk-S3K63CGI.js} +1 -1
  70. package/browser/{chunk-722XQJ5H.js → chunk-SVECNUUA.js} +1 -1
  71. package/browser/{chunk-BNYVOYYX.js → chunk-T2ECIFZW.js} +1 -1
  72. package/browser/{chunk-HQMGZB3H.js → chunk-T2IWW7SS.js} +1 -1
  73. package/browser/{chunk-QQDH2U6C.js → chunk-THUJIHI7.js} +1 -1
  74. package/browser/{chunk-54W52P5V.js → chunk-UAIR26OK.js} +1 -1
  75. package/browser/{chunk-SDRB6Y54.js → chunk-UHVNH2XA.js} +1 -1
  76. package/browser/{chunk-KVE6HTDK.js → chunk-UILJOKEL.js} +1 -1
  77. package/browser/{chunk-BMSRWGKX.js → chunk-VAVKHKIO.js} +1 -1
  78. package/browser/{chunk-6BKNXERF.js → chunk-W4ZCLNTU.js} +1 -1
  79. package/browser/{chunk-L7CBHHVQ.js → chunk-W7CJ25G5.js} +1 -1
  80. package/browser/{chunk-4IQRI3GN.js → chunk-X2JCAGKP.js} +1 -1
  81. package/browser/{chunk-4KMRZ2TB.js → chunk-YLLLGS4S.js} +1 -1
  82. package/browser/{chunk-NS7V266J.js → chunk-YU4JSVLL.js} +1 -1
  83. package/browser/{chunk-DSF34FWR.js → chunk-ZQGXWDT6.js} +1 -1
  84. package/browser/index.html +2 -2
  85. package/browser/{main-7GOIEWD6.js → main-NN7FZ4DK.js} +2 -2
  86. package/package.json +1 -1
  87. package/browser/chunk-47T7IWRR.js +0 -5
  88. package/browser/chunk-AKFNDMFE.js +0 -3
  89. package/browser/chunk-NVYVELCF.js +0 -24
  90. package/browser/chunk-YUTT2QKH.js +0 -1
@@ -1 +1 @@
1
- import{a as z}from"./chunk-HL3ONSX6.js";import{d as $,e as tt}from"./chunk-GN3HVOCN.js";import"./chunk-G4IW5GPY.js";import{a as k,b as G,c as A}from"./chunk-AEXXXOEQ.js";import{a as ot,b as nt}from"./chunk-I3ABVEQL.js";import{f as et}from"./chunk-YOIV5LCG.js";import{c as it}from"./chunk-QHNGMJWX.js";import{b as Q}from"./chunk-T2H2XAEJ.js";import{a as q}from"./chunk-YFRQWQ66.js";import"./chunk-5S5ZFAPJ.js";import"./chunk-QFON23YX.js";import"./chunk-FIUZN6JU.js";import{e as Y,f as Z}from"./chunk-4KMRZ2TB.js";import"./chunk-3L267ZNV.js";import"./chunk-JEL3OND6.js";import"./chunk-IDQUQBKL.js";import"./chunk-VX5HH3BW.js";import"./chunk-VYQEM4T2.js";import"./chunk-UTAQ3FRE.js";import"./chunk-M43HNBJQ.js";import"./chunk-KKLNFVVN.js";import"./chunk-X57HWGVJ.js";import"./chunk-5SFUSWFY.js";import"./chunk-534MIVWD.js";import"./chunk-TGEQUV6Z.js";import"./chunk-OBXCVFDY.js";import{b as K}from"./chunk-WCCWWFYE.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import"./chunk-BA3BDB5Y.js";import"./chunk-C4WJKF7R.js";import{N as X,g as U}from"./chunk-T25N3EEG.js";import"./chunk-7TBS7SPQ.js";import"./chunk-RLQLFW36.js";import"./chunk-EQLHPWVB.js";import{g as J}from"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import"./chunk-6SGN7MNX.js";import"./chunk-L76WVZW6.js";import"./chunk-2FWFPV5I.js";import"./chunk-O5SLP4JK.js";import{F as W,h as B,o as R}from"./chunk-RNLSEEMX.js";import"./chunk-MYKOQWDM.js";import"./chunk-ECEHKAWW.js";import{d as H}from"./chunk-USJ6ILEE.js";import"./chunk-YYGLCUQ6.js";import{Ab as T,Bb as V,Bc as y,Cb as s,Cc as L,Db as i,Dc as F,Eb as o,Fb as v,Hc as N,Mb as _,Ob as S,Qb as m,Xa as p,db as u,dc as l,ec as w,ee as j,fc as P,hb as b,ic as C,jc as x,kc as f,lb as I,nb as M,ta as c,ua as d,vb as D,xb as h,yb as O}from"./chunk-JYZTRN6N.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-HL3ONSX6.js";import{d as $,e as tt}from"./chunk-GN3HVOCN.js";import"./chunk-G4IW5GPY.js";import{a as k,b as G,c as A}from"./chunk-AEXXXOEQ.js";import{a as ot,b as nt}from"./chunk-I3ABVEQL.js";import{f as et}from"./chunk-4KLLS7S5.js";import{c as it}from"./chunk-EHJXCRPX.js";import{b as Q}from"./chunk-T2H2XAEJ.js";import{a as q}from"./chunk-LVC4ZU2C.js";import"./chunk-7DCWSNUN.js";import"./chunk-QFON23YX.js";import"./chunk-FIUZN6JU.js";import{e as Y,f as Z}from"./chunk-YLLLGS4S.js";import"./chunk-S3K63CGI.js";import"./chunk-JEL3OND6.js";import"./chunk-IDQUQBKL.js";import"./chunk-VX5HH3BW.js";import"./chunk-VYQEM4T2.js";import"./chunk-UTAQ3FRE.js";import"./chunk-M43HNBJQ.js";import"./chunk-KKLNFVVN.js";import"./chunk-X57HWGVJ.js";import"./chunk-5SFUSWFY.js";import"./chunk-534MIVWD.js";import"./chunk-TGEQUV6Z.js";import"./chunk-3VKLSTEH.js";import{b as K}from"./chunk-HIQKF5X3.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import"./chunk-BA3BDB5Y.js";import"./chunk-C4WJKF7R.js";import{N as X,g as U}from"./chunk-T25N3EEG.js";import"./chunk-7TBS7SPQ.js";import"./chunk-RLQLFW36.js";import"./chunk-EQLHPWVB.js";import{g as J}from"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import"./chunk-6SGN7MNX.js";import"./chunk-L76WVZW6.js";import"./chunk-2FWFPV5I.js";import"./chunk-O5SLP4JK.js";import{F as W,h as B,o as R}from"./chunk-RNLSEEMX.js";import"./chunk-E7ISSVA3.js";import"./chunk-HVFAKTAO.js";import{d as H}from"./chunk-USJ6ILEE.js";import"./chunk-NETNL55X.js";import{Ab as T,Bb as V,Bc as y,Cb as s,Cc as L,Db as i,Dc as F,Eb as o,Fb as v,Hc as N,Mb as _,Ob as S,Qb as m,Xa as p,db as u,dc as l,ec as w,ee as j,fc as P,hb as b,ic as C,jc as x,kc as f,lb as I,nb as M,ta as c,ua as d,vb as D,xb as h,yb as O}from"./chunk-JYZTRN6N.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{a as Q,b as U}from"./chunk-I5W4NCFM.js";import{d as te,e as ie}from"./chunk-QPOOLLKY.js";import{a as X}from"./chunk-YFRQWQ66.js";import{e as $,f as ee}from"./chunk-4KMRZ2TB.js";import{b as Z}from"./chunk-WCCWWFYE.js";import{d as Y}from"./chunk-7TBS7SPQ.js";import{F as A,c as H,h as z,o as q}from"./chunk-RNLSEEMX.js";import{d as K}from"./chunk-USJ6ILEE.js";import{$d as j,Ab as W,Bb as M,Bc as y,Cb as s,Db as i,Dc as v,Eb as o,Hc as P,Mb as h,Ob as D,Qb as m,Xa as l,Zd as R,be as O,cd as J,db as _,dc as p,ee as G,fc as S,hb as w,ic as u,jc as C,kc as b,lb as F,md as V,nb as k,od as B,rd as N,ta as c,tc as T,ua as g,uc as E,vb as f,vc as I,xb as x,zb as L}from"./chunk-JYZTRN6N.js";var ne=()=>["/menu/Developer/Webhook/Job_Logs/Detail"],ae=n=>({ID:n}),re=(n,d)=>({"text-success":n,"text-danger":d});function le(n,d){if(n&1){let e=h();i(0,"div",12)(1,"h6"),p(2,"Status"),o(),i(3,"ng-select",13),b("ngModelChange",function(t){c(e);let r=m(2);return C(r.pageData.Filter.Status,t)||(r.pageData.Filter.Status=t),g(t)}),o(),i(4,"h6"),p(5,"Job ID"),o(),i(6,"input",14),b("ngModelChange",function(t){c(e);let r=m(2);return C(r.pageData.Filter.JobID,t)||(r.pageData.Filter.JobID=t),g(t)}),o(),i(7,"h6"),p(8,"From"),o(),i(9,"datepicker",15),b("dateChange",function(t){c(e);let r=m(2);return C(r.pageData.Filter.From,t)||(r.pageData.Filter.From=t),g(t)}),o(),i(10,"h6"),p(11,"To"),o(),i(12,"datepicker",16),b("dateChange",function(t){c(e);let r=m(2);return C(r.pageData.Filter.To,t)||(r.pageData.Filter.To=t),g(t)}),o()()}if(n&2){let e=m(2);l(3),s("disabled",!e.role.developer.Edit)("items",e.pageData.Options.Status),u("ngModel",e.pageData.Filter.Status),l(3),u("ngModel",e.pageData.Filter.JobID),l(3),s("isFloatingLabel",!1),u("date",e.pageData.Filter.From),l(3),s("isFloatingLabel",!1),u("date",e.pageData.Filter.To)}}function pe(n,d){if(n&1&&(i(0,"tr",9)(1,"td")(2,"a",17),p(3),y(4,"date"),o()(),i(5,"td"),p(6),y(7,"number"),o(),i(8,"td",18),p(9),o()()),n&2){let e=d.$implicit;l(2),s("routerLink",T(12,ne))("queryParams",E(13,ae,e._id)),l(),S(" ",v(4,6,e._source["@timestamp_received"],"dd MMM yyyy HH:mm")," "),l(3),S("",v(7,9,e.DurationInSecond,"1.1-1")," s"),l(2),s("ngClass",I(15,re,e._source.log.respCode==200,e._source.log.respCode!=200)),l(),S(" ",e._source.log.respCode," ")}}function me(n,d){if(n&1){let e=h();i(0,"mat-paginator",19),D("page",function(t){c(e);let r=m(2);return g(r.onPaginationChange(t))}),o()}if(n&2){let e=m(2);s("length",e.pagination.listTotal)("pageSize",e.pagination.pageSize)("pageIndex",e.pageData.Filter.PageNumber==0?0:e.pageData.Filter.PageNumber-1)}}function se(n,d){if(n&1){let e=h();i(0,"mainpanel-cmp",2),D("onSubmit",function(){c(e);let t=m();return g(t.searchFromPageOne())}),i(1,"filters"),k(2,le,13,8,"ng-template",null,0,P),o(),i(4,"content")(5,"div",3)(6,"div",4)(7,"table",5)(8,"thead",6)(9,"tr",7)(10,"th",8),p(11,"Created"),o(),i(12,"th",8),p(13,"Duration"),o(),i(14,"th",8),p(15,"Status"),o()()(),i(16,"tbody"),W(17,pe,10,18,"tr",9,L),o()()(),i(19,"div",10),f(20,me,1,3,"mat-paginator",11),o()()()()}if(n&2){let e=m();s("pageData",e.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),l(17),M(e.data.hits),l(3),x(e.pagination.listTotal>0?20:-1)}}var oe=class n extends X{constructor(e,a,t,r){super(e,a,"Developer/DeveloperSpace/Webhook/JobLogs","Developer/DeveloperSpace/WebhookLoader/GetLogs",t);this.httpService=a;this.role=r}postInit(e){this.data.hits=this.data?.hits.map(a=>(a.DurationInSecond=parseInt(a._source?.Duration)/1e3,a)),this.data.ListTotal=e?.total?.value}static \u0275fac=function(a){return new(a||n)(_(Z),_(G),_(O),_(K))};static \u0275cmp=w({type:n,selectors:[["app-webhook-job-logs"]],features:[F],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","hideSearchBox","isFilterOnDropdown"],[3,"onSubmit","pageData","hideSearchBox","isFilterOnDropdown"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-top-thead"],[1,"header"],[2,"width","50px"],[1,"border-bottom"],[1,"mt-2"],[3,"length","pageSize","pageIndex"],[1,"dialog-filter"],["bindLabel","Value","bindValue","Key","placeholder","Choose a status","appendTo","body",3,"ngModelChange","disabled","items","ngModel"],["type","text",1,"form-control",3,"ngModelChange","ngModel"],["placeholder","From","appearance","outline",3,"dateChange","isFloatingLabel","date"],["placeholder","To","appearance","outline",3,"dateChange","isFloatingLabel","date"],[3,"routerLink","queryParams"],[3,"ngClass"],[3,"page","length","pageSize","pageIndex"]],template:function(a,t){a&1&&f(0,se,21,4,"mainpanel-cmp",1),a&2&&x(t.data?0:-1)},dependencies:[N,J,ee,$,ie,te,U,Q,Y,A,H,z,q,j,R,B,V],encapsulation:2})};export{oe as a};
1
+ import{a as Q,b as U}from"./chunk-I5W4NCFM.js";import{d as te,e as ie}from"./chunk-QPOOLLKY.js";import{a as X}from"./chunk-LVC4ZU2C.js";import{e as $,f as ee}from"./chunk-YLLLGS4S.js";import{b as Z}from"./chunk-HIQKF5X3.js";import{d as Y}from"./chunk-7TBS7SPQ.js";import{F as A,c as H,h as z,o as q}from"./chunk-RNLSEEMX.js";import{d as K}from"./chunk-USJ6ILEE.js";import{$d as j,Ab as W,Bb as M,Bc as y,Cb as s,Db as i,Dc as v,Eb as o,Hc as P,Mb as h,Ob as D,Qb as m,Xa as l,Zd as R,be as O,cd as J,db as _,dc as p,ee as G,fc as S,hb as w,ic as u,jc as C,kc as b,lb as F,md as V,nb as k,od as B,rd as N,ta as c,tc as T,ua as g,uc as E,vb as f,vc as I,xb as x,zb as L}from"./chunk-JYZTRN6N.js";var ne=()=>["/menu/Developer/Webhook/Job_Logs/Detail"],ae=n=>({ID:n}),re=(n,d)=>({"text-success":n,"text-danger":d});function le(n,d){if(n&1){let e=h();i(0,"div",12)(1,"h6"),p(2,"Status"),o(),i(3,"ng-select",13),b("ngModelChange",function(t){c(e);let r=m(2);return C(r.pageData.Filter.Status,t)||(r.pageData.Filter.Status=t),g(t)}),o(),i(4,"h6"),p(5,"Job ID"),o(),i(6,"input",14),b("ngModelChange",function(t){c(e);let r=m(2);return C(r.pageData.Filter.JobID,t)||(r.pageData.Filter.JobID=t),g(t)}),o(),i(7,"h6"),p(8,"From"),o(),i(9,"datepicker",15),b("dateChange",function(t){c(e);let r=m(2);return C(r.pageData.Filter.From,t)||(r.pageData.Filter.From=t),g(t)}),o(),i(10,"h6"),p(11,"To"),o(),i(12,"datepicker",16),b("dateChange",function(t){c(e);let r=m(2);return C(r.pageData.Filter.To,t)||(r.pageData.Filter.To=t),g(t)}),o()()}if(n&2){let e=m(2);l(3),s("disabled",!e.role.developer.Edit)("items",e.pageData.Options.Status),u("ngModel",e.pageData.Filter.Status),l(3),u("ngModel",e.pageData.Filter.JobID),l(3),s("isFloatingLabel",!1),u("date",e.pageData.Filter.From),l(3),s("isFloatingLabel",!1),u("date",e.pageData.Filter.To)}}function pe(n,d){if(n&1&&(i(0,"tr",9)(1,"td")(2,"a",17),p(3),y(4,"date"),o()(),i(5,"td"),p(6),y(7,"number"),o(),i(8,"td",18),p(9),o()()),n&2){let e=d.$implicit;l(2),s("routerLink",T(12,ne))("queryParams",E(13,ae,e._id)),l(),S(" ",v(4,6,e._source["@timestamp_received"],"dd MMM yyyy HH:mm")," "),l(3),S("",v(7,9,e.DurationInSecond,"1.1-1")," s"),l(2),s("ngClass",I(15,re,e._source.log.respCode==200,e._source.log.respCode!=200)),l(),S(" ",e._source.log.respCode," ")}}function me(n,d){if(n&1){let e=h();i(0,"mat-paginator",19),D("page",function(t){c(e);let r=m(2);return g(r.onPaginationChange(t))}),o()}if(n&2){let e=m(2);s("length",e.pagination.listTotal)("pageSize",e.pagination.pageSize)("pageIndex",e.pageData.Filter.PageNumber==0?0:e.pageData.Filter.PageNumber-1)}}function se(n,d){if(n&1){let e=h();i(0,"mainpanel-cmp",2),D("onSubmit",function(){c(e);let t=m();return g(t.searchFromPageOne())}),i(1,"filters"),k(2,le,13,8,"ng-template",null,0,P),o(),i(4,"content")(5,"div",3)(6,"div",4)(7,"table",5)(8,"thead",6)(9,"tr",7)(10,"th",8),p(11,"Created"),o(),i(12,"th",8),p(13,"Duration"),o(),i(14,"th",8),p(15,"Status"),o()()(),i(16,"tbody"),W(17,pe,10,18,"tr",9,L),o()()(),i(19,"div",10),f(20,me,1,3,"mat-paginator",11),o()()()()}if(n&2){let e=m();s("pageData",e.menuData)("hideSearchBox",!0)("isFilterOnDropdown",!1),l(17),M(e.data.hits),l(3),x(e.pagination.listTotal>0?20:-1)}}var oe=class n extends X{constructor(e,a,t,r){super(e,a,"Developer/DeveloperSpace/Webhook/JobLogs","Developer/DeveloperSpace/WebhookLoader/GetLogs",t);this.httpService=a;this.role=r}postInit(e){this.data.hits=this.data?.hits.map(a=>(a.DurationInSecond=parseInt(a._source?.Duration)/1e3,a)),this.data.ListTotal=e?.total?.value}static \u0275fac=function(a){return new(a||n)(_(Z),_(G),_(O),_(K))};static \u0275cmp=w({type:n,selectors:[["app-webhook-job-logs"]],features:[F],decls:1,vars:1,consts:[["pageFilterTemplate",""],[3,"pageData","hideSearchBox","isFilterOnDropdown"],[3,"onSubmit","pageData","hideSearchBox","isFilterOnDropdown"],[1,"container-fluid","mt-5"],[1,"table-responsive"],["id","tableGrid",1,"table"],[1,"thead-light","sticky-top-thead"],[1,"header"],[2,"width","50px"],[1,"border-bottom"],[1,"mt-2"],[3,"length","pageSize","pageIndex"],[1,"dialog-filter"],["bindLabel","Value","bindValue","Key","placeholder","Choose a status","appendTo","body",3,"ngModelChange","disabled","items","ngModel"],["type","text",1,"form-control",3,"ngModelChange","ngModel"],["placeholder","From","appearance","outline",3,"dateChange","isFloatingLabel","date"],["placeholder","To","appearance","outline",3,"dateChange","isFloatingLabel","date"],[3,"routerLink","queryParams"],[3,"ngClass"],[3,"page","length","pageSize","pageIndex"]],template:function(a,t){a&1&&f(0,se,21,4,"mainpanel-cmp",1),a&2&&x(t.data?0:-1)},dependencies:[N,J,ee,$,ie,te,U,Q,Y,A,H,z,q,j,R,B,V],encapsulation:2})};export{oe as a};
@@ -1,4 +1,4 @@
1
- import{a as Ye}from"./chunk-IPKXGQTW.js";import{a as Ct,b as vn}from"./chunk-FNH6K4S4.js";import{a as Ne}from"./chunk-66MCBKC7.js";import{a as gn}from"./chunk-UFBRV4CF.js";import{a as _n}from"./chunk-W4W2KCYV.js";import{a as bn}from"./chunk-MZIYTJ6Z.js";import{a as dn}from"./chunk-3PC6CTVP.js";import{a as ee,b as te}from"./chunk-HD2QU6GJ.js";import{c as fn}from"./chunk-CA6YBQT3.js";import{a as X}from"./chunk-3GPGJFQV.js";import"./chunk-BYXBJQAS.js";import{a as pn}from"./chunk-QEOGHVXA.js";import{b as Xt,c as en,d as tn,e as nn}from"./chunk-AUBQH6JY.js";import{e as sn,f as un}from"./chunk-4KMRZ2TB.js";import{a as cn}from"./chunk-IDQUQBKL.js";import{a as vt,b as mn}from"./chunk-TGEQUV6Z.js";import"./chunk-OBXCVFDY.js";import{b as an}from"./chunk-WCCWWFYE.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import{C as Ke}from"./chunk-BA3BDB5Y.js";import{b as Z,c as J}from"./chunk-C4WJKF7R.js";import{G as Qe,N as fe,O as rn,o as ln}from"./chunk-T25N3EEG.js";import{g as on}from"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import{b as Zt,c as Ve,d as Fe,k as H,l as de}from"./chunk-L76WVZW6.js";import{a as we}from"./chunk-2FWFPV5I.js";import{G as bt,J as Re,X as gt,j as ft,m as Kt,oa as Jt,pa as _t,w as Yt,x as Wt,xa as ke,y as Oe}from"./chunk-O5SLP4JK.js";import{F as Qt}from"./chunk-RNLSEEMX.js";import"./chunk-MYKOQWDM.js";import"./chunk-ECEHKAWW.js";import{a as Ae,d as O}from"./chunk-USJ6ILEE.js";import"./chunk-YYGLCUQ6.js";import{$d as j,Ab as ue,Bb as pe,Bc as h,Ca as ge,Cb as s,Cc as T,Db as i,Dc as G,Eb as a,Ed as qt,Fb as u,Hc as P,Ia as Q,Ja as Dt,Kc as B,Lb as D,Lc as qe,Mb as q,Nb as Vt,Ob as N,Pc as _,Qb as m,Rb as Ee,Rc as Ht,Sa as Mt,Sb as Pe,Tb as je,Tc as ze,Ub as De,Vb as oe,Wb as ae,Wd as zt,Xa as l,Xb as Ft,Xc as ve,Y as It,Ya as Ue,Yc as Ut,Yd as Gt,Zb as Nt,Zd as U,_b as I,aa as mt,ac as Bt,be as $t,cc as z,cd as Y,db as re,dc as p,ec as x,ee as $e,fa as Et,fc as k,gc as At,hb as C,ib as wt,ic as Ot,jc as Rt,jd as A,ka as Be,kc as Lt,kd as jt,la as xe,lb as se,ma as Pt,mb as Se,md as me,na as Te,nb as v,od as W,pa as g,rd as y,sc as ce,sd as Ge,t as ct,ta as V,tb as _e,tc as E,ua as F,uc as M,va as dt,vb as d,vc as K,wc as Me,xb as f,yb as Ie,zb as kt}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import{a as xt,b as Tt,k as St}from"./chunk-SNAKHGZS.js";var Cn=`
1
+ import{a as Ye}from"./chunk-IPKXGQTW.js";import{a as Ct,b as vn}from"./chunk-FNH6K4S4.js";import{a as Ne}from"./chunk-66MCBKC7.js";import{a as gn}from"./chunk-UFBRV4CF.js";import{a as _n}from"./chunk-W4W2KCYV.js";import{a as bn}from"./chunk-QFWPOP7L.js";import{a as dn}from"./chunk-3PC6CTVP.js";import{a as ee,b as te}from"./chunk-HD2QU6GJ.js";import{c as fn}from"./chunk-CA6YBQT3.js";import{a as X}from"./chunk-3GPGJFQV.js";import"./chunk-BYXBJQAS.js";import{a as pn}from"./chunk-QEOGHVXA.js";import{b as Xt,c as en,d as tn,e as nn}from"./chunk-AUBQH6JY.js";import{e as sn,f as un}from"./chunk-YLLLGS4S.js";import{a as cn}from"./chunk-IDQUQBKL.js";import{a as vt,b as mn}from"./chunk-TGEQUV6Z.js";import"./chunk-3VKLSTEH.js";import{b as an}from"./chunk-HIQKF5X3.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import{C as Ke}from"./chunk-BA3BDB5Y.js";import{b as Z,c as J}from"./chunk-C4WJKF7R.js";import{G as Qe,N as fe,O as rn,o as ln}from"./chunk-T25N3EEG.js";import{g as on}from"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import{b as Zt,c as Ve,d as Fe,k as H,l as de}from"./chunk-L76WVZW6.js";import{a as we}from"./chunk-2FWFPV5I.js";import{G as bt,J as Re,X as gt,j as ft,m as Kt,oa as Jt,pa as _t,w as Yt,x as Wt,xa as ke,y as Oe}from"./chunk-O5SLP4JK.js";import{F as Qt}from"./chunk-RNLSEEMX.js";import"./chunk-E7ISSVA3.js";import"./chunk-HVFAKTAO.js";import{a as Ae,d as O}from"./chunk-USJ6ILEE.js";import"./chunk-NETNL55X.js";import{$d as j,Ab as ue,Bb as pe,Bc as h,Ca as ge,Cb as s,Cc as T,Db as i,Dc as G,Eb as a,Ed as qt,Fb as u,Hc as P,Ia as Q,Ja as Dt,Kc as B,Lb as D,Lc as qe,Mb as q,Nb as Vt,Ob as N,Pc as _,Qb as m,Rb as Ee,Rc as Ht,Sa as Mt,Sb as Pe,Tb as je,Tc as ze,Ub as De,Vb as oe,Wb as ae,Wd as zt,Xa as l,Xb as Ft,Xc as ve,Y as It,Ya as Ue,Yc as Ut,Yd as Gt,Zb as Nt,Zd as U,_b as I,aa as mt,ac as Bt,be as $t,cc as z,cd as Y,db as re,dc as p,ec as x,ee as $e,fa as Et,fc as k,gc as At,hb as C,ib as wt,ic as Ot,jc as Rt,jd as A,ka as Be,kc as Lt,kd as jt,la as xe,lb as se,ma as Pt,mb as Se,md as me,na as Te,nb as v,od as W,pa as g,rd as y,sc as ce,sd as Ge,t as ct,ta as V,tb as _e,tc as E,ua as F,uc as M,va as dt,vb as d,vc as K,wc as Me,xb as f,yb as Ie,zb as kt}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import{a as xt,b as Tt,k as St}from"./chunk-SNAKHGZS.js";var Cn=`
2
2
  .p-tabs {
3
3
  display: flex;
4
4
  flex-direction: column;
@@ -1 +1 @@
1
- import{a as O}from"./chunk-MZIYTJ6Z.js";import{e as Q,f as z}from"./chunk-4KMRZ2TB.js";import"./chunk-OBXCVFDY.js";import{b as H}from"./chunk-WCCWWFYE.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import"./chunk-BA3BDB5Y.js";import{b as j,c as q}from"./chunk-C4WJKF7R.js";import"./chunk-T25N3EEG.js";import"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import"./chunk-L76WVZW6.js";import{a as T}from"./chunk-2FWFPV5I.js";import"./chunk-O5SLP4JK.js";import{F as N,c as k,h as L,o as F}from"./chunk-RNLSEEMX.js";import"./chunk-MYKOQWDM.js";import"./chunk-ECEHKAWW.js";import"./chunk-USJ6ILEE.js";import"./chunk-YYGLCUQ6.js";import{Ca as _,Cb as x,Db as n,Eb as o,Mb as y,Ob as S,Qb as l,Ub as D,Vb as b,Wb as M,Wd as P,Xa as s,_b as R,be as V,cd as A,db as f,dc as r,ee as B,hb as W,ic as d,jc as u,kc as h,lb as w,rd as E,ta as c,ua as m,uc as I,vb as g,xb as C}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var Y=["textReceiptCtrl"],G=p=>({"is-invalid":p});function J(p,v){p&1&&(n(0,"small"),r(1,"The text you entered exceeds the maximum allowed size when encoded for WhatsApp."),o())}function K(p,v){if(p&1&&(n(0,"div",23),g(1,J,2,0,"small"),o()),p&2){let t=l(2);s(),C(t.textReceiptInvalidState()?1:-1)}}function X(p,v){if(p&1){let t=y();n(0,"mainpanel-cmp",1)(1,"actions")(2,"button",2),S("click",function(){c(t);let e=l();return m(e.onSubmit("Setup/Configuration/WhatsappConfigurationV2"))}),r(3," Save "),o()(),n(4,"content")(5,"div",3)(6,"div",4)(7,"div",5)(8,"h5"),r(9,"WhatsApp Invoice Settings"),o(),n(10,"i"),r(11," Configure the Twilio settings required to send invoices to customers via WhatsApp. "),o()(),n(12,"div",6)(13,"div",7)(14,"div",8)(15,"div",9)(16,"input",10),h("ngModelChange",function(e){c(t);let a=l();return u(a.formData.WhatsappConfig.AccountSID,e)||(a.formData.WhatsappConfig.AccountSID=e),m(e)}),o(),n(17,"label"),r(18,"Account SID"),o()()(),n(19,"div",8)(20,"div",11)(21,"input",12),h("ngModelChange",function(e){c(t);let a=l();return u(a.formData.WhatsappConfig.AuthToken,e)||(a.formData.WhatsappConfig.AuthToken=e),m(e)}),o(),n(22,"label"),r(23,"Auth Token"),o()()()(),n(24,"div",7)(25,"div",8)(26,"div",13)(27,"input",14),h("ngModelChange",function(e){c(t);let a=l();return u(a.formData.WhatsappConfig.ContentTemplateSID,e)||(a.formData.WhatsappConfig.ContentTemplateSID=e),m(e)}),o(),n(28,"label"),r(29,"Content Template SID"),o()()(),n(30,"div",8)(31,"div",15)(32,"input",16),h("ngModelChange",function(e){c(t);let a=l();return u(a.formData.WhatsappConfig.From,e)||(a.formData.WhatsappConfig.From=e),m(e)}),o(),n(33,"label"),r(34,"From"),o()()()()()(),n(35,"div",4)(36,"div",5)(37,"h5"),r(38,"Whatsapp Receipt Settings"),o(),n(39,"i"),r(40," You can use variables like Number, Currency, Amount, ReceiptLink, and Brand. Please refer this "),n(41,"a",17),r(42,"Article"),o(),r(43," for more information. "),o()(),n(44,"div",6)(45,"div",7)(46,"div",18)(47,"div",19)(48,"textarea",20,0),h("ngModelChange",function(e){c(t);let a=l();return u(a.formData.WhatsappConfig.TextReceipt,e)||(a.formData.WhatsappConfig.TextReceipt=e),m(e)}),S("ngModelChange",function(){c(t);let e=l();return m(e.onTextReceiptChange())}),o(),n(50,"label",21),r(51,"Customize E-Receipt Template"),o(),n(52,"div",22),g(53,K,2,1,"div",23),o()()()()()()()()()}if(p&2){let t=R(49),i=l();x("pageData",i.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),s(2),x("disabled",i.textReceiptInvalidState()),s(14),d("ngModel",i.formData.WhatsappConfig.AccountSID),s(5),d("ngModel",i.formData.WhatsappConfig.AuthToken),s(6),d("ngModel",i.formData.WhatsappConfig.ContentTemplateSID),s(5),d("ngModel",i.formData.WhatsappConfig.From),s(16),d("ngModel",i.formData.WhatsappConfig.TextReceipt),x("ngClass",I(11,G,(i.textReceiptInvalidState()||t.invalid)&&(t.dirty||t.touched))),s(5),C((i.textReceiptInvalidState()||t.invalid)&&(t.dirty||t.touched)?53:-1)}}var U=class p extends O{constructor(t,i,e,a){super(t,i,"Setup/ConfigurationLoader/WhatsappConfigurationV2",e);this.httpService=i;this.activatedRoute=e;this.toaster=a}textReceiptCtrl;maxTextLength=1920;textReceiptInvalidState=_(!1);encodeLength=_(0);postBindForm(t){this.validateTextReceipt(),this.initReceiptTemplateCtrl()}initReceiptTemplateCtrl(){setTimeout(()=>{this.textReceiptCtrl.control.markAllAsTouched()})}validateTextReceipt(){if(!this.formData?.WhatsappConfig?.TextReceipt){this.textReceiptInvalidState.set(!1);return}let t=this.formData.WhatsappConfig?.TextReceipt,i=encodeURIComponent(t)?.length;this.encodeLength.set(i);let e=i>this.maxTextLength;this.textReceiptInvalidState.set(e)}onTextReceiptChange(){if(this.validateTextReceipt(),this.textReceiptCtrl){let t=this.textReceiptInvalidState()||this.textReceiptCtrl.invalid;this.textReceiptInvalidState.set(t)}}onSubmitSuccess(t){t?.MessageWarning?this.toaster.warning(t.MessageWarning,T.Warning):this.toaster.success("Config has been updated succesfully!",T.Success)}static \u0275fac=function(i){return new(i||p)(f(H),f(B),f(P),f(V))};static \u0275cmp=W({type:p,selectors:[["app-whatsapp"]],viewQuery:function(i,e){if(i&1&&D(Y,5),i&2){let a;b(a=M())&&(e.textReceiptCtrl=a.first)}},features:[w],decls:1,vars:1,consts:[["textReceiptCtrl","ngModel"],[3,"pageData","hideSearchDropdown","hideSearchBox"],["type","button","role","button",1,"btn","btn-success",3,"click","disabled"],[1,"container-fluid","py-5","bg-light-white"],[1,"row","border-bottom","mt-12","ms-2"],[1,"col-md-2"],[1,"col-md-10","mb-5"],[1,"row"],[1,"col-6"],["matTooltip","The unique identifier for your Twilio account, used for authenticating API requests.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","id","AccountSID","name","AccountSID","placeholder","Account SID",1,"form-control",3,"ngModelChange","ngModel"],["matTooltip","The authentication token for secure access to the Twilio API.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","name","AuthToken","placeholder","Auth Token",1,"form-control",3,"ngModelChange","ngModel"],["matTooltip","The unique identifier for the WhatsApp message template to format your invoice content.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","id","ContentTemplateSID","name","ContentTemplateSID","placeholder","Content Template SID",1,"form-control",3,"ngModelChange","ngModel"],["matTooltip","The Twilio-approved WhatsApp number from which invoices will be sent to customers.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","name","From","placeholder","From",1,"form-control",3,"ngModelChange","ngModel"],["href","https://support.dealpos.com/en/articles/10574504-send-customer-invoice-via-whatsapp-receipt-by-whatsapp","target","_blank"],[1,"col-md-12"],[1,"form-floating-outline"],["name","ProductDescription","rows","15","id","ProductDescription","placeholder","Template","matTooltipPosition","above","matTooltip","Customize the e-receipt message sent to the customer's WhatsApp (validation based on encoded byte length)",1,"form-control",3,"ngModelChange","ngModel","ngClass"],["for","ProductDescription"],[1,"d-flex","justify-content-between","mt-1"],[1,"text-danger"]],template:function(i,e){i&1&&g(0,X,54,13,"mainpanel-cmp",1),i&2&&C(e.formData?0:-1)},dependencies:[E,A,z,Q,N,k,L,F,q,j],encapsulation:2})};export{U as WhatsappComponent};
1
+ import{a as O}from"./chunk-QFWPOP7L.js";import{e as Q,f as z}from"./chunk-YLLLGS4S.js";import"./chunk-3VKLSTEH.js";import{b as H}from"./chunk-HIQKF5X3.js";import"./chunk-CS6HBROS.js";import"./chunk-JUS6LLVX.js";import"./chunk-BA3BDB5Y.js";import{b as j,c as q}from"./chunk-C4WJKF7R.js";import"./chunk-T25N3EEG.js";import"./chunk-A45GTZVV.js";import"./chunk-NWSIPELM.js";import"./chunk-L76WVZW6.js";import{a as T}from"./chunk-2FWFPV5I.js";import"./chunk-O5SLP4JK.js";import{F as N,c as k,h as L,o as F}from"./chunk-RNLSEEMX.js";import"./chunk-E7ISSVA3.js";import"./chunk-HVFAKTAO.js";import"./chunk-USJ6ILEE.js";import"./chunk-NETNL55X.js";import{Ca as _,Cb as x,Db as n,Eb as o,Mb as y,Ob as S,Qb as l,Ub as D,Vb as b,Wb as M,Wd as P,Xa as s,_b as R,be as V,cd as A,db as f,dc as r,ee as B,hb as W,ic as d,jc as u,kc as h,lb as w,rd as E,ta as c,ua as m,uc as I,vb as g,xb as C}from"./chunk-JYZTRN6N.js";import"./chunk-WFMAM73Y.js";import"./chunk-SNAKHGZS.js";var Y=["textReceiptCtrl"],G=p=>({"is-invalid":p});function J(p,v){p&1&&(n(0,"small"),r(1,"The text you entered exceeds the maximum allowed size when encoded for WhatsApp."),o())}function K(p,v){if(p&1&&(n(0,"div",23),g(1,J,2,0,"small"),o()),p&2){let t=l(2);s(),C(t.textReceiptInvalidState()?1:-1)}}function X(p,v){if(p&1){let t=y();n(0,"mainpanel-cmp",1)(1,"actions")(2,"button",2),S("click",function(){c(t);let e=l();return m(e.onSubmit("Setup/Configuration/WhatsappConfigurationV2"))}),r(3," Save "),o()(),n(4,"content")(5,"div",3)(6,"div",4)(7,"div",5)(8,"h5"),r(9,"WhatsApp Invoice Settings"),o(),n(10,"i"),r(11," Configure the Twilio settings required to send invoices to customers via WhatsApp. "),o()(),n(12,"div",6)(13,"div",7)(14,"div",8)(15,"div",9)(16,"input",10),h("ngModelChange",function(e){c(t);let a=l();return u(a.formData.WhatsappConfig.AccountSID,e)||(a.formData.WhatsappConfig.AccountSID=e),m(e)}),o(),n(17,"label"),r(18,"Account SID"),o()()(),n(19,"div",8)(20,"div",11)(21,"input",12),h("ngModelChange",function(e){c(t);let a=l();return u(a.formData.WhatsappConfig.AuthToken,e)||(a.formData.WhatsappConfig.AuthToken=e),m(e)}),o(),n(22,"label"),r(23,"Auth Token"),o()()()(),n(24,"div",7)(25,"div",8)(26,"div",13)(27,"input",14),h("ngModelChange",function(e){c(t);let a=l();return u(a.formData.WhatsappConfig.ContentTemplateSID,e)||(a.formData.WhatsappConfig.ContentTemplateSID=e),m(e)}),o(),n(28,"label"),r(29,"Content Template SID"),o()()(),n(30,"div",8)(31,"div",15)(32,"input",16),h("ngModelChange",function(e){c(t);let a=l();return u(a.formData.WhatsappConfig.From,e)||(a.formData.WhatsappConfig.From=e),m(e)}),o(),n(33,"label"),r(34,"From"),o()()()()()(),n(35,"div",4)(36,"div",5)(37,"h5"),r(38,"Whatsapp Receipt Settings"),o(),n(39,"i"),r(40," You can use variables like Number, Currency, Amount, ReceiptLink, and Brand. Please refer this "),n(41,"a",17),r(42,"Article"),o(),r(43," for more information. "),o()(),n(44,"div",6)(45,"div",7)(46,"div",18)(47,"div",19)(48,"textarea",20,0),h("ngModelChange",function(e){c(t);let a=l();return u(a.formData.WhatsappConfig.TextReceipt,e)||(a.formData.WhatsappConfig.TextReceipt=e),m(e)}),S("ngModelChange",function(){c(t);let e=l();return m(e.onTextReceiptChange())}),o(),n(50,"label",21),r(51,"Customize E-Receipt Template"),o(),n(52,"div",22),g(53,K,2,1,"div",23),o()()()()()()()()()}if(p&2){let t=R(49),i=l();x("pageData",i.menuData)("hideSearchDropdown",!0)("hideSearchBox",!0),s(2),x("disabled",i.textReceiptInvalidState()),s(14),d("ngModel",i.formData.WhatsappConfig.AccountSID),s(5),d("ngModel",i.formData.WhatsappConfig.AuthToken),s(6),d("ngModel",i.formData.WhatsappConfig.ContentTemplateSID),s(5),d("ngModel",i.formData.WhatsappConfig.From),s(16),d("ngModel",i.formData.WhatsappConfig.TextReceipt),x("ngClass",I(11,G,(i.textReceiptInvalidState()||t.invalid)&&(t.dirty||t.touched))),s(5),C((i.textReceiptInvalidState()||t.invalid)&&(t.dirty||t.touched)?53:-1)}}var U=class p extends O{constructor(t,i,e,a){super(t,i,"Setup/ConfigurationLoader/WhatsappConfigurationV2",e);this.httpService=i;this.activatedRoute=e;this.toaster=a}textReceiptCtrl;maxTextLength=1920;textReceiptInvalidState=_(!1);encodeLength=_(0);postBindForm(t){this.validateTextReceipt(),this.initReceiptTemplateCtrl()}initReceiptTemplateCtrl(){setTimeout(()=>{this.textReceiptCtrl.control.markAllAsTouched()})}validateTextReceipt(){if(!this.formData?.WhatsappConfig?.TextReceipt){this.textReceiptInvalidState.set(!1);return}let t=this.formData.WhatsappConfig?.TextReceipt,i=encodeURIComponent(t)?.length;this.encodeLength.set(i);let e=i>this.maxTextLength;this.textReceiptInvalidState.set(e)}onTextReceiptChange(){if(this.validateTextReceipt(),this.textReceiptCtrl){let t=this.textReceiptInvalidState()||this.textReceiptCtrl.invalid;this.textReceiptInvalidState.set(t)}}onSubmitSuccess(t){t?.MessageWarning?this.toaster.warning(t.MessageWarning,T.Warning):this.toaster.success("Config has been updated succesfully!",T.Success)}static \u0275fac=function(i){return new(i||p)(f(H),f(B),f(P),f(V))};static \u0275cmp=W({type:p,selectors:[["app-whatsapp"]],viewQuery:function(i,e){if(i&1&&D(Y,5),i&2){let a;b(a=M())&&(e.textReceiptCtrl=a.first)}},features:[w],decls:1,vars:1,consts:[["textReceiptCtrl","ngModel"],[3,"pageData","hideSearchDropdown","hideSearchBox"],["type","button","role","button",1,"btn","btn-success",3,"click","disabled"],[1,"container-fluid","py-5","bg-light-white"],[1,"row","border-bottom","mt-12","ms-2"],[1,"col-md-2"],[1,"col-md-10","mb-5"],[1,"row"],[1,"col-6"],["matTooltip","The unique identifier for your Twilio account, used for authenticating API requests.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","id","AccountSID","name","AccountSID","placeholder","Account SID",1,"form-control",3,"ngModelChange","ngModel"],["matTooltip","The authentication token for secure access to the Twilio API.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","name","AuthToken","placeholder","Auth Token",1,"form-control",3,"ngModelChange","ngModel"],["matTooltip","The unique identifier for the WhatsApp message template to format your invoice content.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","id","ContentTemplateSID","name","ContentTemplateSID","placeholder","Content Template SID",1,"form-control",3,"ngModelChange","ngModel"],["matTooltip","The Twilio-approved WhatsApp number from which invoices will be sent to customers.","matTooltipPosition","above",1,"form-floating-outline"],["type","text","name","From","placeholder","From",1,"form-control",3,"ngModelChange","ngModel"],["href","https://support.dealpos.com/en/articles/10574504-send-customer-invoice-via-whatsapp-receipt-by-whatsapp","target","_blank"],[1,"col-md-12"],[1,"form-floating-outline"],["name","ProductDescription","rows","15","id","ProductDescription","placeholder","Template","matTooltipPosition","above","matTooltip","Customize the e-receipt message sent to the customer's WhatsApp (validation based on encoded byte length)",1,"form-control",3,"ngModelChange","ngModel","ngClass"],["for","ProductDescription"],[1,"d-flex","justify-content-between","mt-1"],[1,"text-danger"]],template:function(i,e){i&1&&g(0,X,54,13,"mainpanel-cmp",1),i&2&&C(e.formData?0:-1)},dependencies:[E,A,z,Q,N,k,L,F,q,j],encapsulation:2})};export{U as WhatsappComponent};