dealposbooks 1.1.0 → 1.9.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 (128) hide show
  1. package/3rdpartylicenses.txt +127 -127
  2. package/assets/images/background/timeout.svg +2614 -0
  3. package/assets/scss/components/_forms.scss +5 -3
  4. package/assets/scss/layouts/_layout.scss +1 -1
  5. package/assets/scss/style.scss +17 -20
  6. package/assets/scss/variables/_variables.scss +45 -11
  7. package/chunk-26X2X35R.js +1 -0
  8. package/{chunk-B6N6C3RA.js → chunk-2ACAW72E.js} +1 -1
  9. package/chunk-2VF35PRV.js +7 -0
  10. package/chunk-35EULUGT.js +193 -0
  11. package/{chunk-RIALPB2D.js → chunk-66DZK3FQ.js} +1 -1
  12. package/chunk-6VN6A5B5.js +520 -0
  13. package/chunk-7T6O4KFO.js +2 -0
  14. package/chunk-ABZUNDNB.js +1 -0
  15. package/chunk-AER6WLW5.js +1 -0
  16. package/{chunk-R2KG54OT.js → chunk-AKZM2DMY.js} +2 -2
  17. package/{chunk-JR4EQTPJ.js → chunk-AVL6C3VX.js} +1 -1
  18. package/chunk-BLOB7I4P.js +210 -0
  19. package/chunk-BPFNN32N.js +1 -0
  20. package/chunk-C375SLTS.js +246 -0
  21. package/chunk-C4HBNN2L.js +1 -0
  22. package/{chunk-223MMYH7.js → chunk-CEMQLY34.js} +1 -1
  23. package/chunk-CEUNPX5D.js +1 -0
  24. package/chunk-CMHZLZ4E.js +1 -0
  25. package/chunk-DO2YIWC5.js +1 -0
  26. package/{chunk-ZL4DDXH7.js → chunk-DWTUKOMR.js} +4 -4
  27. package/chunk-E2RBYY7Q.js +1 -0
  28. package/{chunk-FOUHOMEE.js → chunk-EFOOUCV3.js} +5 -5
  29. package/chunk-EHULZLLD.js +300 -0
  30. package/{chunk-V7Y6Z4AQ.js → chunk-EKJXB6MV.js} +2 -2
  31. package/{chunk-S35HUXPS.js → chunk-F2X3VGZZ.js} +1 -1
  32. package/chunk-F6SXKAYF.js +67 -0
  33. package/{chunk-UGKSIDKE.js → chunk-FNOMC2TM.js} +1 -1
  34. package/{chunk-5GQEUX4M.js → chunk-G7MS6UI4.js} +1 -1
  35. package/{chunk-TUL6Y2HH.js → chunk-GFHANKXL.js} +1 -1
  36. package/{chunk-ZZPBK2XT.js → chunk-GHZLR44M.js} +1 -1
  37. package/chunk-GLLO2YQR.js +1 -0
  38. package/{chunk-ZU7I7MCL.js → chunk-GLURPAU2.js} +1 -1
  39. package/chunk-HZ6QN5ZG.js +7 -0
  40. package/{chunk-O65HPMSJ.js → chunk-HZ7WPLLK.js} +1 -1
  41. package/{chunk-CINZRZMB.js → chunk-HZLUYZB3.js} +1 -1
  42. package/chunk-I2MAIV44.js +1 -0
  43. package/chunk-I7T4W6G2.js +47 -0
  44. package/{chunk-EMVZ65TI.js → chunk-IF72X7RS.js} +1 -1
  45. package/chunk-JXI4NDYT.js +1 -0
  46. package/chunk-KHZ5L5UR.js +1 -0
  47. package/chunk-LAZCPZXL.js +1 -0
  48. package/chunk-MEKP6D5H.js +1 -0
  49. package/{chunk-H4HFCRFZ.js → chunk-MS3UTNX6.js} +14 -14
  50. package/chunk-NASSFXXN.js +1 -0
  51. package/chunk-NGKRNFZC.js +1 -0
  52. package/chunk-NNH4DORM.js +1 -0
  53. package/chunk-NTJQFRIB.js +180 -0
  54. package/chunk-OCYR2RTP.js +1 -0
  55. package/chunk-ON4N4CPO.js +51 -0
  56. package/chunk-OVJSBJBH.js +197 -0
  57. package/chunk-P63Q5GYL.js +1 -0
  58. package/{chunk-REHXXPZY.js → chunk-PATWAZNE.js} +1 -1
  59. package/chunk-PGIXMWYT.js +1 -0
  60. package/chunk-PUEKZGWI.js +1 -0
  61. package/{chunk-X2NM4CIV.js → chunk-Q4Y2IGA6.js} +2 -2
  62. package/chunk-QBJKUIXK.js +627 -0
  63. package/chunk-R3FUAON5.js +1 -0
  64. package/chunk-R6MI2SDH.js +1 -0
  65. package/chunk-RA2IZVJ4.js +1 -0
  66. package/{chunk-AYVR3RIS.js → chunk-ROX6NFMK.js} +2 -2
  67. package/{chunk-ERX7ND7E.js → chunk-S64TQVWK.js} +1 -1
  68. package/chunk-S6CFVRO6.js +1 -0
  69. package/chunk-SJTXIIX5.js +1 -0
  70. package/{chunk-DJ5UHXOJ.js → chunk-TBHL2OSG.js} +1 -1
  71. package/{chunk-YKYI4A3V.js → chunk-TL6UHPBU.js} +1 -1
  72. package/chunk-UNNEEFI2.js +1 -0
  73. package/chunk-USCTAGKM.js +1 -0
  74. package/{chunk-UTL7D6E7.js → chunk-USO7UKRV.js} +4 -4
  75. package/chunk-UZOBSLZX.js +1 -0
  76. package/chunk-VVC3QQUI.js +1 -0
  77. package/{chunk-SS3CMCAX.js → chunk-VYTUB2DV.js} +2 -2
  78. package/chunk-XCWBG4PB.js +1 -0
  79. package/{chunk-PNQSQQIT.js → chunk-YT7EC5LI.js} +1 -1
  80. package/chunk-ZBTGGL5M.js +5 -0
  81. package/index.html +3 -3
  82. package/main-TCYAGQCN.js +1 -0
  83. package/package.json +1 -1
  84. package/polyfills-OYTHSGNX.js +2 -0
  85. package/styles-H3D5FBL2.css +1 -0
  86. package/chunk-33KLXB2L.js +0 -180
  87. package/chunk-4Y3NYY52.js +0 -67
  88. package/chunk-5RRUIJ5U.js +0 -1
  89. package/chunk-6BFODHTZ.js +0 -2
  90. package/chunk-AXJA6OO7.js +0 -246
  91. package/chunk-DBRLQ7BX.js +0 -397
  92. package/chunk-DUOJKP2G.js +0 -300
  93. package/chunk-E4ZVZRLO.js +0 -210
  94. package/chunk-EBOJJWD5.js +0 -1
  95. package/chunk-ENPYMVZG.js +0 -1
  96. package/chunk-EOLHIQHQ.js +0 -1
  97. package/chunk-FKTEL4CU.js +0 -524
  98. package/chunk-G4XX7EU2.js +0 -1
  99. package/chunk-J53TOHZH.js +0 -1
  100. package/chunk-JC7YOUAM.js +0 -1
  101. package/chunk-JSAAKZBO.js +0 -1
  102. package/chunk-KZ2KGWUY.js +0 -1
  103. package/chunk-LON3T466.js +0 -1
  104. package/chunk-LYEN4UBW.js +0 -1
  105. package/chunk-MG3SLH6O.js +0 -1
  106. package/chunk-NQ3CKBYP.js +0 -1
  107. package/chunk-NS7JH3QF.js +0 -47
  108. package/chunk-OCLABZZW.js +0 -1
  109. package/chunk-OH2CJBFF.js +0 -1
  110. package/chunk-OSV7AMB2.js +0 -1
  111. package/chunk-OWI3BWEZ.js +0 -197
  112. package/chunk-OYYYX3IP.js +0 -1
  113. package/chunk-Q5PJ63MA.js +0 -1
  114. package/chunk-RJYO2KKV.js +0 -1
  115. package/chunk-ROKYJX6Q.js +0 -193
  116. package/chunk-RUGQ4OJG.js +0 -1
  117. package/chunk-RUP2SWYB.js +0 -231
  118. package/chunk-RUVT4SCE.js +0 -1
  119. package/chunk-TMY4NWZ6.js +0 -1
  120. package/chunk-TOJAZ32N.js +0 -1
  121. package/chunk-VY4Z33EE.js +0 -7
  122. package/chunk-VYKJK5YU.js +0 -7
  123. package/chunk-WG7APCJU.js +0 -51
  124. package/chunk-XWVLTTMV.js +0 -1
  125. package/chunk-Y6MJGNH2.js +0 -1
  126. package/main-MCP7AVEU.js +0 -1
  127. package/polyfills-EQXJKH7W.js +0 -2
  128. package/styles-IAH7RNKW.css +0 -1
@@ -0,0 +1 @@
1
+ import{a as T}from"./chunk-FNOMC2TM.js";import{a as re,b as ie}from"./chunk-ON4N4CPO.js";import"./chunk-GHZLR44M.js";import{a as ce}from"./chunk-MEKP6D5H.js";import{a as Q,b as W}from"./chunk-UNNEEFI2.js";import{a as te,b as ne}from"./chunk-I7T4W6G2.js";import{h as X,j as Y,k as Z,l as ee}from"./chunk-MS3UTNX6.js";import"./chunk-EHULZLLD.js";import"./chunk-AKZM2DMY.js";import"./chunk-AVL6C3VX.js";import{g as L}from"./chunk-NTJQFRIB.js";import{f as $,g as q}from"./chunk-USO7UKRV.js";import{a as x,b as F,c as j,d as A,e as O,f as K}from"./chunk-CMHZLZ4E.js";import"./chunk-OVJSBJBH.js";import"./chunk-E2RBYY7Q.js";import"./chunk-26X2X35R.js";import"./chunk-35EULUGT.js";import"./chunk-CEUNPX5D.js";import"./chunk-F2X3VGZZ.js";import"./chunk-7T6O4KFO.js";import{m as D,q as U,r as G,s as z}from"./chunk-SJTXIIX5.js";import{Fc as b,Gc as y,Hc as J,Ic as g,Jb as f,Mb as V,Tb as o,Ub as r,Uc as S,Vb as w,X as P,Zb as k,c as I,cc as R,dc as s,fb as d,ha as C,mc as p,nc as u,pa as _,qa as h,qc as B,s as me,tb as M,uc as H,vc as N,zb as E}from"./chunk-2VF35PRV.js";import{a as l,b as m}from"./chunk-EQDQRRRY.js";var Ce={data:{data:[],totalCount:0},filter:{PageNumber:1,PageSize:20,Number:""}},ae=F(K(Ce),j(t=>({first:S(()=>(t.filter().PageNumber-1)*t.filter().PageSize+1),end:S(()=>Math.min(t.filter().PageNumber*t.filter().PageSize,t.data().totalCount)),hasCheckedRows:S(()=>t.data().data.some(c=>c.checked)),checkedInvoice:S(()=>t.data().data.filter(c=>c.checked).map(c=>c.id))})),O(t=>{let c=C(T);return{updateFilter(n){x(t,i=>m(l({},i),{filter:l(l({},i.filter),n)}))},onRowSelect(n){x(t,i=>{let a=i.data.data.map(v=>v.id===n.id?m(l({},v),{checked:!0}):v);return m(l({},i),{data:m(l({},i.data),{data:a})})})},onRowUnselect(n){x(t,i=>{let a=i.data.data.map(v=>v.id===n.id?m(l({},v),{checked:!1}):v);return m(l({},i),{data:m(l({},i.data),{data:a})})})},onHeaderCheckboxToggle(n){x(t,i=>{let a=i.data.data.map(v=>m(l({},v),{checked:n}));return m(l({},i),{data:m(l({},i.data),{data:a})})})},getCustomerInvoice:Q(I(P(n=>c.getJournalInvoice(n).pipe(me(i=>m(l({},i),{data:i.data.map(a=>m(l({},a),{checked:!1}))})),W({next:i=>{x(t,a=>m(l({},a),{data:i}))},error:i=>{console.error("Error fetching customer invoice:",i)}})))))}}),A(t=>({onInit:()=>{t.getCustomerInvoice(t.filter)}})));var be=()=>({height:"calc(100vh - 70px)"});function we(t,c){if(t&1){let e=k();o(0,"p-button",7),R("onClick",function(){_(e);let i=s(2);return h(i.onGenerateJournal())}),r()}}function ve(t,c){if(t&1&&E(0,we,1,0,"p-button",6),t&2){let e=s();f("ngIf",e.store.hasCheckedRows())}}function Ee(t,c){t&1&&(o(0,"tr")(1,"th",9),w(2,"p-tableHeaderCheckbox"),r(),o(3,"th"),p(4,"Outlet"),r(),o(5,"th"),p(6,"Number"),r(),o(7,"th"),p(8,"Customer"),r(),o(9,"th"),p(10,"Date"),r(),o(11,"th"),p(12,"Due"),r(),o(13,"th"),p(14,"Amount"),r(),o(15,"th"),p(16,"Payment"),r(),o(17,"th"),p(18,"Delivery"),r()())}function ke(t,c){if(t&1&&(o(0,"tr")(1,"td"),w(2,"p-tableCheckbox",10),r(),o(3,"td"),p(4),r(),o(5,"td"),p(6),r(),o(7,"td"),p(8),r(),o(9,"td"),p(10),b(11,"date"),r(),o(12,"td"),p(13),b(14,"date"),r(),o(15,"td"),p(16),b(17,"number"),r(),o(18,"td"),w(19,"p-chip",11),r(),o(20,"td"),w(21,"p-chip",11),r()()),t&2){let e=c.$implicit;d(2),f("value",e),d(2),u(e.outlet),d(2),u(e.number),d(2),u(e.customer),d(2),u(J(11,9,e.date,"d MMM y hh:mm")),d(3),u(J(14,12,e.due,"d MMM y")),d(3),u(y(17,15,e.amount)),d(3),f("label",e.payment),d(2),f("label",e.delivery)}}function Re(t,c){if(t&1&&p(0),t&2){let e=s(2);B(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.data().totalCount," entries ")}}function Te(t,c){if(t&1){let e=k();o(0,"p-panel")(1,"p-table",8),R("onPage",function(i){_(e);let a=s();return h(a.onPageChange(i))})("onRowSelect",function(i){_(e);let a=s();return h(a.onRowSelect(i))})("onRowUnselect",function(i){_(e);let a=s();return h(a.onRowUnselect(i))})("onHeaderCheckboxToggle",function(i){_(e);let a=s();return h(a.onHeaderCheckboxToggle(i))}),E(2,Ee,19,0,"ng-template",null,2,g)(4,ke,22,17,"ng-template",null,3,g)(6,Re,1,3,"ng-template",null,4,g),r()()}if(t&2){let e=s();V(N(9,be)),d(),f("scrollable",!0)("scrollHeight","calc(100vh - 150px)")("lazy",!0)("paginator",!0)("rows",e.store.filter().PageSize)("totalRecords",e.store.data().totalCount)("value",e.store.data().data)}}var fe=(()=>{class t{constructor(){this.store=C(ae),this.generateJournalService=C(T)}onSearch(e){this.store.updateFilter(m(l({},this.store.filter()),{Number:e}))}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){if(Array.isArray(e.data)){e.data.forEach(n=>{this.store.onRowUnselect(n)});return}else this.store.onRowUnselect(e.data)}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}onPageChange(e){let n=e.first/e.rows;this.store.updateFilter(m(l({},this.store.filter()),{PageNumber:n+1}))}onGenerateJournal(){this.generateJournalService.generateJournalInvoice(this.store.checkedInvoice()).pipe(ce("Generate Journal Invoice")).subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=M({type:t,selectors:[["app-customer-invoice"]],features:[H([ae])],decls:5,vars:1,consts:[["actionButton",""],["content",""],["header",""],["body",""],["paginatorleft",""],["pageTitle","Customer Invoice",3,"search","isSearchableInput"],["label","Generate Journal",3,"onClick",4,"ngIf"],["label","Generate Journal",3,"onClick"],["dataKey","id",3,"onPage","onRowSelect","onRowUnselect","onHeaderCheckboxToggle","scrollable","scrollHeight","lazy","paginator","rows","totalRecords","value"],[2,"width","4rem"],[3,"value"],[3,"label"]],template:function(n,i){if(n&1){let a=k();o(0,"app-main-panel",5),R("search",function(oe){return _(a),h(i.onSearch(oe))}),E(1,ve,1,1,"ng-template",null,0,g)(3,Te,8,10,"ng-template",null,1,g),r()}n&2&&f("isSearchableInput",!0)},dependencies:[L,ee,X,Y,Z,z,D,G,U,ie,re,ne,te,q,$],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Je={data:{data:[],totalCount:0},filter:{PageNumber:1,PageSize:20,Number:""}},le=F(K(Je),j(t=>({first:S(()=>(t.filter().PageNumber-1)*t.filter().PageSize+1),end:S(()=>Math.min(t.filter().PageNumber*t.filter().PageSize,t.data().totalCount)),hasCheckedRows:S(()=>t.data().data.some(c=>c.checked)),checkedSupplierBill:S(()=>t.data().data.filter(c=>c.checked).map(c=>c.id))})),O(t=>{let c=C(T);return{updateFilter(e){x(t,n=>m(l({},n),{filter:l(l({},n.filter),e)}))},onRowSelect(e){x(t,n=>{let i=n.data.data.map(a=>a.id===e.id?m(l({},a),{checked:!0}):a);return m(l({},n),{data:m(l({},n.data),{data:i})})})},onRowUnselect(e){x(t,n=>{let i=n.data.data.map(a=>a.id===e.id?m(l({},a),{checked:!1}):a);return m(l({},n),{data:m(l({},n.data),{data:i})})})},onHeaderCheckboxToggle(e){x(t,n=>{let i=n.data.data.map(a=>m(l({},a),{checked:e}));return m(l({},n),{data:m(l({},n.data),{data:i})})})},getJournalSupplierBill:Q(I(P(e=>c.getJournalSupplierBill(e).pipe(W({next:n=>{x(t,i=>m(l({},i),{data:n}))},error:n=>{console.error("Error fetching journal supplier bill:",n)}})))))}}),A(t=>({onInit:()=>{t.getJournalSupplierBill(t.filter)}})));var ye=()=>({height:"calc(100vh - 70px)"});function Ie(t,c){if(t&1){let e=k();o(0,"p-button",7),R("onClick",function(){_(e);let i=s(2);return h(i.onGenerateJournal())}),r()}}function Pe(t,c){if(t&1&&E(0,Ie,1,0,"p-button",6),t&2){let e=s();f("ngIf",e.store.hasCheckedRows())}}function Me(t,c){t&1&&(o(0,"tr")(1,"th",9),w(2,"p-tableHeaderCheckbox"),r(),o(3,"th"),p(4,"Outlet"),r(),o(5,"th"),p(6,"Number"),r(),o(7,"th"),p(8,"Customer"),r(),o(9,"th"),p(10,"Date"),r(),o(11,"th"),p(12,"Due"),r(),o(13,"th"),p(14,"Amount"),r(),o(15,"th"),p(16,"Payment"),r(),o(17,"th"),p(18,"Delivery"),r()())}function Ve(t,c){if(t&1&&(o(0,"tr")(1,"td"),w(2,"p-tableCheckbox",10),r(),o(3,"td"),p(4),r(),o(5,"td"),p(6),r(),o(7,"td"),p(8),r(),o(9,"td"),p(10),b(11,"date"),r(),o(12,"td"),p(13),b(14,"date"),r(),o(15,"td"),p(16),b(17,"number"),r(),o(18,"td"),w(19,"p-chip",11),r(),o(20,"td"),w(21,"p-chip",11),r()()),t&2){let e=c.$implicit;d(2),f("value",e),d(2),u(e.outlet),d(2),u(e.number),d(2),u(e.customer),d(2),u(J(11,9,e.date,"d MMM y hh:mm")),d(3),u(J(14,12,e.due,"d MMM y")),d(3),u(y(17,15,e.amount)),d(3),f("label",e.payment),d(2),f("label",e.delivery)}}function Be(t,c){if(t&1&&p(0),t&2){let e=s(2);B(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.data().totalCount," entries ")}}function He(t,c){if(t&1){let e=k();o(0,"p-panel")(1,"p-table",8),R("onPage",function(i){_(e);let a=s();return h(a.onPageChange(i))})("onRowSelect",function(i){_(e);let a=s();return h(a.onRowSelect(i))})("onRowUnselect",function(i){_(e);let a=s();return h(a.onRowUnselect(i))})("onHeaderCheckboxToggle",function(i){_(e);let a=s();return h(a.onHeaderCheckboxToggle(i))}),E(2,Me,19,0,"ng-template",null,2,g)(4,Ve,22,17,"ng-template",null,3,g)(6,Be,1,3,"ng-template",null,4,g),r()()}if(t&2){let e=s();V(N(9,ye)),d(),f("scrollHeight","calc(100vh - 150px)")("value",e.store.data().data)("scrollable",!0)("paginator",!0)("rows",e.store.filter().PageSize)("totalRecords",e.store.data().totalCount)("lazy",!0)}}var ge=(()=>{class t{constructor(){this.generateJournalService=C(T),this.store=C(le)}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){if(Array.isArray(e.data)){e.data.forEach(n=>{this.store.onRowUnselect(n)});return}else this.store.onRowUnselect(e.data)}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}onGenerateJournal(){this.generateJournalService.generateJournalSupplierBill(this.store.checkedSupplierBill()).subscribe()}onSearch(e){this.store.updateFilter(m(l({},this.store.filter()),{Number:e}))}onPageChange(e){this.store.updateFilter(m(l({},this.store.filter()),{PageNumber:e.first/e.rows+1}))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=M({type:t,selectors:[["app-journal-supplier-bill"]],features:[H([le])],decls:5,vars:1,consts:[["actionButton",""],["content",""],["header",""],["body",""],["paginatorleft",""],["pageTitle","Supplier Bill",3,"search","isSearchableInput"],["label","Generate Journal",3,"onClick",4,"ngIf"],["label","Generate Journal",3,"onClick"],["dataKey","id",3,"onPage","onRowSelect","onRowUnselect","onHeaderCheckboxToggle","scrollHeight","value","scrollable","paginator","rows","totalRecords","lazy"],[2,"width","4rem"],[3,"value"],[3,"label"]],template:function(n,i){if(n&1){let a=k();o(0,"app-main-panel",5),R("search",function(oe){return _(a),h(i.onSearch(oe))}),E(1,Pe,1,1,"ng-template",null,0,g)(3,He,8,10,"ng-template",null,1,g),r()}n&2&&f("isSearchableInput",!0)},dependencies:[L,ee,X,Y,Z,z,D,G,U,ie,re,ne,te,q,$],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var Ne={data:{data:[],totalCount:0},filter:{PageNumber:1,PageSize:20,Number:""}},pe=F(K(Ne),j(t=>({first:S(()=>(t.filter().PageNumber-1)*t.filter().PageSize+1),end:S(()=>Math.min(t.filter().PageNumber*t.filter().PageSize,t.data().totalCount)),hasCheckedRows:S(()=>t.data().data.some(c=>c.checked)),checkedShift:S(()=>t.data().data.filter(c=>c.checked).map(c=>c.id))})),O(t=>{let c=C(T);return{updateFilter(e){x(t,n=>m(l({},n),{filter:l(l({},n.filter),e)}))},onRowSelect(e){x(t,n=>{let i=n.data.data.map(a=>a.id===e.id?m(l({},a),{checked:!0}):a);return m(l({},n),{data:m(l({},n.data),{data:i})})})},onRowUnselect(e){x(t,n=>{let i=n.data.data.map(a=>a.id===e.id?m(l({},a),{checked:!1}):a);return m(l({},n),{data:m(l({},n.data),{data:i})})})},onHeaderCheckboxToggle(e){x(t,n=>{let i=n.data.data.map(a=>m(l({},a),{checked:e}));return m(l({},n),{data:m(l({},n.data),{data:i})})})},getJournalShift:Q(I(P(e=>c.getJournalShift(e).pipe(W(n=>x(t,i=>m(l({},i),{data:n})),n=>console.error("Error fetching journal shift:",n))))))}}),A(t=>({onInit:()=>{t.getJournalShift(t.filter)}})));var De=()=>({height:"calc(100vh - 70px)"});function Ue(t,c){if(t&1){let e=k();o(0,"p-button",7),R("onClick",function(){_(e);let i=s(2);return h(i.onGenerateJournal())}),r()}}function Ge(t,c){if(t&1&&E(0,Ue,1,0,"p-button",6),t&2){let e=s();f("ngIf",e.store.hasCheckedRows())}}function ze(t,c){t&1&&(o(0,"tr")(1,"th",9),w(2,"p-tableHeaderCheckbox"),r(),o(3,"th"),p(4,"Number"),r(),o(5,"th"),p(6,"Open"),r(),o(7,"th"),p(8,"Close"),r(),o(9,"th"),p(10,"Cashier"),r(),o(11,"th"),p(12,"Sales + Tax"),r(),o(13,"th"),p(14,"Invoices"),r(),o(15,"th"),p(16,"Outlet"),r(),o(17,"th"),p(18,"Register"),r(),o(19,"th"),p(20,"Visitors"),r()())}function Fe(t,c){if(t&1&&(o(0,"tr")(1,"td"),w(2,"p-tableCheckbox",10),r(),o(3,"td"),p(4),r(),o(5,"td"),p(6),b(7,"date"),r(),o(8,"td"),p(9),b(10,"date"),r(),o(11,"td"),p(12),r(),o(13,"td"),p(14),b(15,"number"),r(),o(16,"td"),p(17),b(18,"number"),r(),o(19,"td"),p(20),r(),o(21,"td"),p(22),r(),o(23,"td"),p(24),b(25,"number"),r()()),t&2){let e=c.$implicit;d(2),f("value",e),d(2),u(e.number),d(2),u(J(7,10,e.open,"dd MMM y hh:mm")),d(3),u(J(10,13,e.close,"dd MMM y hh:mm")),d(3),u(e.cashier),d(2),u(y(15,16,e.salesNTax)),d(3),u(y(18,18,e.totalInvoice)),d(3),u(e.outlet),d(2),u(e.register),d(2),u(y(25,20,e.visitors))}}function je(t,c){if(t&1&&p(0),t&2){let e=s(2);B(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.data().totalCount," entries ")}}function Ae(t,c){if(t&1){let e=k();o(0,"p-panel")(1,"p-table",8),R("onPage",function(i){_(e);let a=s();return h(a.onPageChange(i))})("onRowSelect",function(i){_(e);let a=s();return h(a.onRowSelect(i))})("onRowUnselect",function(i){_(e);let a=s();return h(a.onRowUnselect(i))})("onHeaderCheckboxToggle",function(i){_(e);let a=s();return h(a.onHeaderCheckboxToggle(i))}),E(2,ze,21,0,"ng-template",null,2,g)(4,Fe,26,22,"ng-template",null,3,g)(6,je,1,3,"ng-template",null,4,g),r()()}if(t&2){let e=s();V(N(9,De)),d(),f("scrollHeight","calc(100vh - 150px)")("scrollable",!0)("paginator",!0)("lazy",!0)("rows",e.store.filter().PageSize)("totalRecords",e.store.data().totalCount)("value",e.store.data().data)}}var xe=(()=>{class t{constructor(){this.generateJournalService=C(T),this.store=C(pe)}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){if(Array.isArray(e.data)){e.data.forEach(n=>{this.store.onRowUnselect(n)});return}else this.store.onRowUnselect(e.data)}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}onGenerateJournal(){this.generateJournalService.generateJournalSupplierBill(this.store.checkedShift()).subscribe()}onSearch(e){this.store.updateFilter(m(l({},this.store.filter()),{Number:e}))}onPageChange(e){let n=e.first/e.rows;this.store.updateFilter(m(l({},this.store.filter()),{PageNumber:n+1}))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=M({type:t,selectors:[["app-journal-shift"]],features:[H([pe])],decls:5,vars:1,consts:[["actionButton",""],["content",""],["header",""],["body",""],["paginatorleft",""],["pageTitle","Shift Journal",3,"search","isSearchableInput"],["label","Generate Journal",3,"onClick",4,"ngIf"],["label","Generate Journal",3,"onClick"],["dataKey","id",3,"onPage","onRowSelect","onRowUnselect","onHeaderCheckboxToggle","scrollHeight","scrollable","paginator","lazy","rows","totalRecords","value"],[2,"width","4rem"],[3,"value"]],template:function(n,i){if(n&1){let a=k();o(0,"app-main-panel",5),R("search",function(oe){return _(a),h(i.onSearch(oe))}),E(1,Ge,1,1,"ng-template",null,0,g)(3,Ae,8,10,"ng-template",null,1,g),r()}n&2&&f("isSearchableInput",!0)},dependencies:[L,ee,X,Y,Z,z,D,G,U,ie,ne,te,q,$],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return t})();var on=[{path:"invoice",component:fe},{path:"supplier-bill",component:ge},{path:"shift",component:xe},{path:"ar-collection",loadComponent:()=>import("./chunk-BPFNN32N.js").then(t=>t.ARJournalComponent)},{path:"ap-collection",loadComponent:()=>import("./chunk-P63Q5GYL.js").then(t=>t.ApJournalComponent)},{path:"adjustment",loadComponent:()=>import("./chunk-GLLO2YQR.js").then(t=>t.AdjustmentJournalComponent)}];export{on as generateJournalRoutes};
@@ -0,0 +1 @@
1
+ import{a as m}from"./chunk-I2MAIV44.js";import{g as h}from"./chunk-NTJQFRIB.js";import{g as x}from"./chunk-USO7UKRV.js";import"./chunk-CMHZLZ4E.js";import"./chunk-OVJSBJBH.js";import"./chunk-E2RBYY7Q.js";import"./chunk-26X2X35R.js";import"./chunk-35EULUGT.js";import{a as v}from"./chunk-CEUNPX5D.js";import"./chunk-F2X3VGZZ.js";import"./chunk-7T6O4KFO.js";import{s as y}from"./chunk-SJTXIIX5.js";import{Ic as c,Tb as o,Ub as i,Zb as u,cc as C,dc as d,ha as r,mc as a,pa as l,qa as p,tb as g,uc as _,zb as f}from"./chunk-2VF35PRV.js";import"./chunk-EQDQRRRY.js";function S(e,M){if(e&1){let t=u();o(0,"div",3)(1,"button",4),C("click",function(){l(t);let s=d();return p(s.onMigrateCoaCategory())}),a(2," Migrate "),i()()}}function b(e,M){e&1&&(o(0,"div",5),a(1," reserved for future User Interface (UI) enhancements "),i())}var F=(()=>{class e{constructor(){this.migrateService=r(m),this.toastr=r(v)}onMigrateCoaCategory(){this.migrateService.migrateCoaCategory().subscribe(t=>{this.toastr.success(t.message,"Migration Successful")})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=g({type:e,selectors:[["app-coa-configuration"]],features:[_([m])],decls:5,vars:0,consts:[["actionButton",""],["content",""],["pageTitle","Chart Of Accounts Category Migration"],[1,"d-flex","gap-2"],[1,"btn","btn-primary",3,"click"],[1,"container","d-flex","justify-content-center","align-items-center",2,"height","100vh"]],template:function(n,s){n&1&&(o(0,"app-main-panel",2),f(1,S,3,0,"ng-template",null,0,c)(3,b,2,0,"ng-template",null,1,c),i())},dependencies:[h,y,x],encapsulation:2})}}return e})();export{F as CoaCategoryComponent};
@@ -0,0 +1 @@
1
+ import{d as n}from"./chunk-CEUNPX5D.js";import{V as i,ba as o,ha as a}from"./chunk-2VF35PRV.js";import{a as c}from"./chunk-EQDQRRRY.js";var C=(()=>{class r{constructor(){this.httpService=a(n)}getChartOfAccountLoader(){return this.httpService.get("","api/ChartOfAccountLoader")}getPaginatedChartAccounts(t){let e=c({},t);return this.httpService.post("","api/ChartOfAccount/GetPaginatedList",e)}getChartAccountForm(){return this.httpService.get("","api/ChartOfAccount/Form")}getChartAccountById(t){return this.httpService.get("",`api/ChartOfAccount/Info/${t}`)}getChartAccountFormById(t){return this.httpService.get("",`api/ChartOfAccount/Form/${t}`)}submitChartAccount(t,e={}){return this.httpService.post("","api/ChartOfAccount/Submit",t,e)}deleteChartAccount(t){if(t.length>1){let e={body:t};return this.httpService.delete("","api/ChartOfAccount/Batch",e)}else return this.httpService.delete("",`api/ChartOfAccount/${t[0]}`)}fetchCategoryOptions(){return this.httpService.get("","api/ChartOfAccount/CategoryOptions")}getCachedCategoriesOptions(){return this.categoryOptionsCache$||(this.categoryOptionsCache$=this.fetchCategoryOptions().pipe(i(1))),this.categoryOptionsCache$}static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275prov=o({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();export{C as a};
@@ -0,0 +1,180 @@
1
+ import{a as mt,f as ue,g as xt,h as yt,i as vt}from"./chunk-USO7UKRV.js";import{h as Ct}from"./chunk-CMHZLZ4E.js";import{a as et,b as tt,i as ct,m as Fe,n as ge,p as _t,q as gt,r as ut,s as ht,t as ft,u as bt}from"./chunk-OVJSBJBH.js";import{b as qe,e as Ge,i as Ke,t as Ue}from"./chunk-E2RBYY7Q.js";import{a as _e}from"./chunk-26X2X35R.js";import{A as lt,C as ce,P as st,a as $,b as pe,c as Me,ca as L,d as de,e as Ee,f as De,k as Se,ka as rt,la as me,m as nt,ma as pt,o as ot,s as Ve,ta as dt,v as at}from"./chunk-35EULUGT.js";import{c as it,d as Te,f as we,h as Ie,i as ke,k as ze}from"./chunk-F2X3VGZZ.js";import{o as Je}from"./chunk-7T6O4KFO.js";import{a as Ze,j as ae,m as le,n as $e,o as se,s as re,v as Z}from"./chunk-SJTXIIX5.js";import{Ba as Ce,Ca as O,Fa as Be,Ib as T,Ic as R,Ja as Re,Jb as o,Mb as W,Nb as V,Ob as A,Rc as f,Sc as oe,Tb as p,Ub as d,Uc as Ye,Vb as y,Vc as je,Wb as H,Xb as B,Yb as w,Zb as b,ba as Le,ca as be,cc as u,db as Qe,dc as r,ec as K,fb as l,fc as N,ha as I,hc as v,ic as U,jc as C,kc as x,lc as J,mc as X,nc as Ae,oa as Oe,ob as xe,oc as ve,pa as _,qa as g,ra as G,rc as ee,sa as k,sc as te,tb as D,tc as ie,ub as ye,uc as ne,vb as We,vc as Y,wc as j,xb as S,xc as Ne,ya as E,yc as Xe,za as He,zb as m}from"./chunk-2VF35PRV.js";import{a as fe}from"./chunk-EQDQRRRY.js";var Tt=(()=>{class t extends ge{pathId;ngOnInit(){this.pathId="url(#"+L()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=k(t)))(i||t)}})();static \u0275cmp=D({type:t,selectors:[["WindowMaximizeIcon"]],features:[S],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,i){n&1&&(G(),p(0,"svg",0)(1,"g"),y(2,"path",1),d(),p(3,"defs")(4,"clipPath",2),y(5,"rect",3),d()()()),n&2&&(V(i.getClassNames()),T("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),l(),T("clip-path",i.pathId),l(3),o("id",i.pathId))},encapsulation:2})}return t})();var wt=(()=>{class t extends ge{pathId;ngOnInit(){this.pathId="url(#"+L()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=k(t)))(i||t)}})();static \u0275cmp=D({type:t,selectors:[["WindowMinimizeIcon"]],features:[S],decls:6,vars:7,consts:[["width","14","height","14","viewBox","0 0 14 14","fill","none","xmlns","http://www.w3.org/2000/svg"],["fill-rule","evenodd","clip-rule","evenodd","d","M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z","fill","currentColor"],[3,"id"],["width","14","height","14","fill","white"]],template:function(n,i){n&1&&(G(),p(0,"svg",0)(1,"g"),y(2,"path",1),d(),p(3,"defs")(4,"clipPath",2),y(5,"rect",3),d()()()),n&2&&(V(i.getClassNames()),T("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),l(),T("clip-path",i.pathId),l(3),o("id",i.pathId))},encapsulation:2})}return t})();var It=(()=>{class t extends _e{pFocusTrapDisabled=!1;platformId=I(Re);document=I(Ze);firstHiddenFocusableElement;lastHiddenFocusableElement;ngOnInit(){super.ngOnInit(),Z(this.platformId)&&!this.pFocusTrapDisabled&&!this.firstHiddenFocusableElement&&!this.lastHiddenFocusableElement&&this.createHiddenFocusableElements()}ngOnChanges(e){super.ngOnChanges(e),e.pFocusTrapDisabled&&Z(this.platformId)&&(e.pFocusTrapDisabled.currentValue?this.removeHiddenFocusableElements():this.createHiddenFocusableElements())}removeHiddenFocusableElements(){this.firstHiddenFocusableElement&&this.firstHiddenFocusableElement.parentNode&&this.firstHiddenFocusableElement.parentNode.removeChild(this.firstHiddenFocusableElement),this.lastHiddenFocusableElement&&this.lastHiddenFocusableElement.parentNode&&this.lastHiddenFocusableElement.parentNode.removeChild(this.lastHiddenFocusableElement)}getComputedSelector(e){return`:not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])${e??""}`}createHiddenFocusableElements(){let e="0",n=i=>ot("span",{class:"p-hidden-accessible p-hidden-focusable",tabindex:e,role:"presentation","aria-hidden":!0,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:i?.bind(this)});this.firstHiddenFocusableElement=n(this.onFirstHiddenElementFocus),this.lastHiddenFocusableElement=n(this.onLastHiddenElementFocus),this.firstHiddenFocusableElement.setAttribute("data-pc-section","firstfocusableelement"),this.lastHiddenFocusableElement.setAttribute("data-pc-section","lastfocusableelement"),this.el.nativeElement.prepend(this.firstHiddenFocusableElement),this.el.nativeElement.append(this.lastHiddenFocusableElement)}onFirstHiddenElementFocus(e){let{currentTarget:n,relatedTarget:i}=e,a=i===this.lastHiddenFocusableElement||!this.el.nativeElement?.contains(i)?at(n.parentElement,":not(.p-hidden-focusable)"):this.lastHiddenFocusableElement;Ve(a)}onLastHiddenElementFocus(e){let{currentTarget:n,relatedTarget:i}=e,a=i===this.firstHiddenFocusableElement||!this.el.nativeElement?.contains(i)?lt(n.parentElement,":not(.p-hidden-focusable)"):this.firstHiddenFocusableElement;Ve(a)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=k(t)))(i||t)}})();static \u0275dir=We({type:t,selectors:[["","pFocusTrap",""]],inputs:{pFocusTrapDisabled:[2,"pFocusTrapDisabled","pFocusTrapDisabled",f]},features:[S,Oe]})}return t})();var St=["header"],kt=["content"],zt=["footer"],Vt=["closeicon"],Ft=["maximizeicon"],Pt=["minimizeicon"],Lt=["headless"],Ot=["titlebar"],Ht=["*",[["p-footer"]]],Bt=["*","p-footer"],Rt=(t,s,e)=>({position:"fixed",height:"100%",width:"100%",left:0,top:0,display:"flex","justify-content":t,"align-items":s,"pointer-events":e}),Qt=t=>({"p-dialog p-component":!0,"p-dialog-maximized":t}),Wt=()=>({display:"flex","flex-direction":"column","pointer-events":"auto"}),At=(t,s)=>({transform:t,transition:s}),Nt=t=>({value:"visible",params:t});function Xt(t,s){t&1&&w(0)}function Yt(t,s){if(t&1&&(H(0),m(1,Xt,1,0,"ng-container",11),B()),t&2){let e=r(3);l(),o("ngTemplateOutlet",e._headlessTemplate||e.headlessTemplate||e.headlessT)}}function jt(t,s){if(t&1){let e=b();p(0,"div",15),u("mousedown",function(i){_(e);let a=r(4);return g(a.initResize(i))}),d()}if(t&2){let e=r(4);o("ngClass",e.cx("resizeHandle"))}}function Zt(t,s){if(t&1&&(p(0,"span",21),X(1),d()),t&2){let e=r(5);o("id",e.ariaLabelledBy)("ngClass",e.cx("title")),l(),Ae(e.header)}}function $t(t,s){t&1&&w(0)}function qt(t,s){if(t&1&&y(0,"span",18),t&2){let e=r(6);o("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}function Gt(t,s){t&1&&y(0,"WindowMaximizeIcon")}function Kt(t,s){t&1&&y(0,"WindowMinimizeIcon")}function Ut(t,s){if(t&1&&(H(0),m(1,Gt,1,0,"WindowMaximizeIcon",23)(2,Kt,1,0,"WindowMinimizeIcon",23),B()),t&2){let e=r(6);l(),o("ngIf",!e.maximized&&!e._maximizeiconTemplate&&!e.maximizeIconTemplate&&!e.maximizeIconT),l(),o("ngIf",e.maximized&&!e._minimizeiconTemplate&&!e.minimizeIconTemplate&&!e.minimizeIconT)}}function Jt(t,s){}function ei(t,s){t&1&&m(0,Jt,0,0,"ng-template")}function ti(t,s){if(t&1&&(H(0),m(1,ei,1,0,null,11),B()),t&2){let e=r(6);l(),o("ngTemplateOutlet",e._maximizeiconTemplate||e.maximizeIconTemplate||e.maximizeIconT)}}function ii(t,s){}function ni(t,s){t&1&&m(0,ii,0,0,"ng-template")}function oi(t,s){if(t&1&&(H(0),m(1,ni,1,0,null,11),B()),t&2){let e=r(6);l(),o("ngTemplateOutlet",e._minimizeiconTemplate||e.minimizeIconTemplate||e.minimizeIconT)}}function ai(t,s){if(t&1){let e=b();p(0,"p-button",22),u("onClick",function(){_(e);let i=r(5);return g(i.maximize())})("keydown.enter",function(){_(e);let i=r(5);return g(i.maximize())}),m(1,qt,1,1,"span",14)(2,Ut,3,2,"ng-container",23)(3,ti,2,1,"ng-container",23)(4,oi,2,1,"ng-container",23),d()}if(t&2){let e=r(5);o("styleClass",e.cx("pcMaximizeButton"))("tabindex",e.maximizable?"0":"-1")("ariaLabel",e.maximizeLabel)("buttonProps",e.maximizeButtonProps),l(),o("ngIf",e.maximizeIcon&&!e._maximizeiconTemplate&&!e._minimizeiconTemplate),l(),o("ngIf",!e.maximizeIcon&&!(e.maximizeButtonProps!=null&&e.maximizeButtonProps.icon)),l(),o("ngIf",!e.maximized),l(),o("ngIf",e.maximized)}}function li(t,s){if(t&1&&y(0,"span",18),t&2){let e=r(8);o("ngClass",e.closeIcon)}}function si(t,s){t&1&&y(0,"TimesIcon")}function ri(t,s){if(t&1&&(H(0),m(1,li,1,1,"span",14)(2,si,1,0,"TimesIcon",23),B()),t&2){let e=r(7);l(),o("ngIf",e.closeIcon),l(),o("ngIf",!e.closeIcon)}}function pi(t,s){}function di(t,s){t&1&&m(0,pi,0,0,"ng-template")}function ci(t,s){if(t&1&&(p(0,"span"),m(1,di,1,0,null,11),d()),t&2){let e=r(7);l(),o("ngTemplateOutlet",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function mi(t,s){if(t&1&&m(0,ri,3,2,"ng-container",23)(1,ci,2,1,"span",23),t&2){let e=r(6);o("ngIf",!e._closeiconTemplate&&!e.closeIconTemplate&&!e.closeIconT&&!(e.closeButtonProps!=null&&e.closeButtonProps.icon)),l(),o("ngIf",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function _i(t,s){if(t&1){let e=b();p(0,"p-button",24),u("onClick",function(i){_(e);let a=r(5);return g(a.close(i))})("keydown.enter",function(i){_(e);let a=r(5);return g(a.close(i))}),m(1,mi,2,2,"ng-template",null,4,R),d()}if(t&2){let e=r(5);o("styleClass",e.cx("pcCloseButton"))("ariaLabel",e.closeAriaLabel)("tabindex",e.closeTabindex)("buttonProps",e.closeButtonProps)}}function gi(t,s){if(t&1){let e=b();p(0,"div",16,3),u("mousedown",function(i){_(e);let a=r(4);return g(a.initDrag(i))}),m(2,Zt,2,3,"span",17)(3,$t,1,0,"ng-container",11),p(4,"div",18),m(5,ai,5,8,"p-button",19)(6,_i,3,4,"p-button",20),d()()}if(t&2){let e=r(4);o("ngClass",e.cx("header")),l(2),o("ngIf",!e._headerTemplate&&!e.headerTemplate&&!e.headerT),l(),o("ngTemplateOutlet",e._headerTemplate||e.headerTemplate||e.headerT),l(),o("ngClass",e.cx("headerActions")),l(),o("ngIf",e.maximizable),l(),o("ngIf",e.closable)}}function ui(t,s){t&1&&w(0)}function hi(t,s){t&1&&w(0)}function fi(t,s){if(t&1&&(p(0,"div",18,5),N(2,1),m(3,hi,1,0,"ng-container",11),d()),t&2){let e=r(4);o("ngClass",e.cx("footer")),l(3),o("ngTemplateOutlet",e._footerTemplate||e.footerTemplate||e.footerT)}}function bi(t,s){if(t&1&&(m(0,jt,1,1,"div",12)(1,gi,7,6,"div",13),p(2,"div",7,2),N(4),m(5,ui,1,0,"ng-container",11),d(),m(6,fi,4,2,"div",14)),t&2){let e=r(3);o("ngIf",e.resizable),l(),o("ngIf",e.showHeader),l(),V(e.contentStyleClass),o("ngClass",e.cx("content"))("ngStyle",e.contentStyle),T("data-pc-section","content"),l(3),o("ngTemplateOutlet",e._contentTemplate||e.contentTemplate||e.contentT),l(),o("ngIf",e._footerTemplate||e.footerTemplate||e.footerT)}}function Ci(t,s){if(t&1){let e=b();p(0,"div",9,0),u("@animation.start",function(i){_(e);let a=r(2);return g(a.onAnimationStart(i))})("@animation.done",function(i){_(e);let a=r(2);return g(a.onAnimationEnd(i))}),m(2,Yt,2,1,"ng-container",10)(3,bi,7,9,"ng-template",null,1,R),d()}if(t&2){let e=J(4),n=r(2);W(n.style),V(n.styleClass),o("ngClass",j(13,Qt,n.maximizable&&n.maximized))("ngStyle",Y(15,Wt))("pFocusTrapDisabled",n.focusTrap===!1)("@animation",j(19,Nt,Ne(16,At,n.transformOptions,n.transitionOptions))),T("role",n.role)("aria-labelledby",n.ariaLabelledBy)("aria-modal",!0),l(2),o("ngIf",n._headlessTemplate||n.headlessTemplate||n.headlessT)("ngIfElse",e)}}function xi(t,s){if(t&1&&(p(0,"div",7),m(1,Ci,5,21,"div",8),d()),t&2){let e=r();W(e.maskStyle),V(e.maskStyleClass),o("ngClass",e.maskClass)("ngStyle",Xe(7,Rt,e.position==="left"||e.position==="topleft"||e.position==="bottomleft"?"flex-start":e.position==="right"||e.position==="topright"||e.position==="bottomright"?"flex-end":"center",e.position==="top"||e.position==="topleft"||e.position==="topright"?"flex-start":e.position==="bottom"||e.position==="bottomleft"||e.position==="bottomright"?"flex-end":"center",e.modal?"auto":"none")),l(),o("ngIf",e.visible)}}var yi=({dt:t})=>`
2
+ .p-dialog {
3
+ max-height: 90%;
4
+ transform: scale(1);
5
+ border-radius: ${t("dialog.border.radius")};
6
+ box-shadow: ${t("dialog.shadow")};
7
+ background: ${t("dialog.background")};
8
+ border: 1px solid ${t("dialog.border.color")};
9
+ color: ${t("dialog.color")};
10
+ display: flex;
11
+ flex-direction: column;
12
+ pointer-events: auto
13
+ }
14
+
15
+ .p-dialog-content {
16
+ overflow-y: auto;
17
+ padding: ${t("dialog.content.padding")};
18
+ flex-grow: 1;
19
+ }
20
+
21
+ .p-dialog-header {
22
+ display: flex;
23
+ align-items: center;
24
+ justify-content: space-between;
25
+ flex-shrink: 0;
26
+ padding: ${t("dialog.header.padding")};
27
+ }
28
+
29
+ .p-dialog-title {
30
+ font-weight: ${t("dialog.title.font.weight")};
31
+ font-size: ${t("dialog.title.font.size")};
32
+ }
33
+
34
+ .p-dialog-footer {
35
+ flex-shrink: 0;
36
+ padding: ${t("dialog.footer.padding")};
37
+ display: flex;
38
+ justify-content: flex-end;
39
+ gap: ${t("dialog.footer.gap")};
40
+ }
41
+
42
+ .p-dialog-header-actions {
43
+ display: flex;
44
+ align-items: center;
45
+ gap: ${t("dialog.header.gap")};
46
+ }
47
+
48
+ .p-dialog-enter-active {
49
+ transition: all 150ms cubic-bezier(0, 0, 0.2, 1);
50
+ }
51
+
52
+ .p-dialog-leave-active {
53
+ transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
54
+ }
55
+
56
+ .p-dialog-enter-from,
57
+ .p-dialog-leave-to {
58
+ opacity: 0;
59
+ transform: scale(0.7);
60
+ }
61
+
62
+ .p-dialog-top .p-dialog,
63
+ .p-dialog-bottom .p-dialog,
64
+ .p-dialog-left .p-dialog,
65
+ .p-dialog-right .p-dialog,
66
+ .p-dialog-topleft .p-dialog,
67
+ .p-dialog-topright .p-dialog,
68
+ .p-dialog-bottomleft .p-dialog,
69
+ .p-dialog-bottomright .p-dialog {
70
+ margin: 0.75rem;
71
+ transform: translate3d(0px, 0px, 0px);
72
+ }
73
+
74
+ .p-dialog-top .p-dialog-enter-active,
75
+ .p-dialog-top .p-dialog-leave-active,
76
+ .p-dialog-bottom .p-dialog-enter-active,
77
+ .p-dialog-bottom .p-dialog-leave-active,
78
+ .p-dialog-left .p-dialog-enter-active,
79
+ .p-dialog-left .p-dialog-leave-active,
80
+ .p-dialog-right .p-dialog-enter-active,
81
+ .p-dialog-right .p-dialog-leave-active,
82
+ .p-dialog-topleft .p-dialog-enter-active,
83
+ .p-dialog-topleft .p-dialog-leave-active,
84
+ .p-dialog-topright .p-dialog-enter-active,
85
+ .p-dialog-topright .p-dialog-leave-active,
86
+ .p-dialog-bottomleft .p-dialog-enter-active,
87
+ .p-dialog-bottomleft .p-dialog-leave-active,
88
+ .p-dialog-bottomright .p-dialog-enter-active,
89
+ .p-dialog-bottomright .p-dialog-leave-active {
90
+ transition: all 0.3s ease-out;
91
+ }
92
+
93
+ .p-dialog-top .p-dialog-enter-from,
94
+ .p-dialog-top .p-dialog-leave-to {
95
+ transform: translate3d(0px, -100%, 0px);
96
+ }
97
+
98
+ .p-dialog-bottom .p-dialog-enter-from,
99
+ .p-dialog-bottom .p-dialog-leave-to {
100
+ transform: translate3d(0px, 100%, 0px);
101
+ }
102
+
103
+ .p-dialog-left .p-dialog-enter-from,
104
+ .p-dialog-left .p-dialog-leave-to,
105
+ .p-dialog-topleft .p-dialog-enter-from,
106
+ .p-dialog-topleft .p-dialog-leave-to,
107
+ .p-dialog-bottomleft .p-dialog-enter-from,
108
+ .p-dialog-bottomleft .p-dialog-leave-to {
109
+ transform: translate3d(-100%, 0px, 0px);
110
+ }
111
+
112
+ .p-dialog-right .p-dialog-enter-from,
113
+ .p-dialog-right .p-dialog-leave-to,
114
+ .p-dialog-topright .p-dialog-enter-from,
115
+ .p-dialog-topright .p-dialog-leave-to,
116
+ .p-dialog-bottomright .p-dialog-enter-from,
117
+ .p-dialog-bottomright .p-dialog-leave-to {
118
+ transform: translate3d(100%, 0px, 0px);
119
+ }
120
+
121
+ .p-dialog-left:dir(rtl) .p-dialog-enter-from,
122
+ .p-dialog-left:dir(rtl) .p-dialog-leave-to,
123
+ .p-dialog-topleft:dir(rtl) .p-dialog-enter-from,
124
+ .p-dialog-topleft:dir(rtl) .p-dialog-leave-to,
125
+ .p-dialog-bottomleft:dir(rtl) .p-dialog-enter-from,
126
+ .p-dialog-bottomleft:dir(rtl) .p-dialog-leave-to {
127
+ transform: translate3d(100%, 0px, 0px);
128
+ }
129
+
130
+ .p-dialog-right:dir(rtl) .p-dialog-enter-from,
131
+ .p-dialog-right:dir(rtl) .p-dialog-leave-to,
132
+ .p-dialog-topright:dir(rtl) .p-dialog-enter-from,
133
+ .p-dialog-topright:dir(rtl) .p-dialog-leave-to,
134
+ .p-dialog-bottomright:dir(rtl) .p-dialog-enter-from,
135
+ .p-dialog-bottomright:dir(rtl) .p-dialog-leave-to {
136
+ transform: translate3d(-100%, 0px, 0px);
137
+ }
138
+
139
+ .p-dialog-maximized {
140
+ width: 100vw !important;
141
+ height: 100vh !important;
142
+ top: 0px !important;
143
+ left: 0px !important;
144
+ max-height: 100%;
145
+ height: 100%;
146
+ border-radius: 0;
147
+ }
148
+
149
+ .p-dialog-maximized .p-dialog-content {
150
+ flex-grow: 1;
151
+ }
152
+
153
+ .p-overlay-mask:dir(rtl) {
154
+ flex-direction: row-reverse;
155
+ }
156
+
157
+ /* For PrimeNG */
158
+
159
+ .p-dialog .p-resizable-handle {
160
+ position: absolute;
161
+ font-size: 0.1px;
162
+ display: block;
163
+ cursor: se-resize;
164
+ width: 12px;
165
+ height: 12px;
166
+ right: 1px;
167
+ bottom: 1px;
168
+ }
169
+
170
+ .p-confirm-dialog .p-dialog-content {
171
+ display: flex;
172
+ align-items: center;
173
+ }
174
+ `,vi={mask:({instance:t})=>({position:"fixed",height:"100%",width:"100%",left:0,top:0,display:"flex",justifyContent:t.position==="left"||t.position==="topleft"||t.position==="bottomleft"?"flex-start":t.position==="right"||t.position==="topright"||t.position==="bottomright"?"flex-end":"center",alignItems:t.position==="top"||t.position==="topleft"||t.position==="topright"?"flex-start":t.position==="bottom"||t.position==="bottomleft"||t.position==="bottomright"?"flex-end":"center",pointerEvents:t.modal?"auto":"none"}),root:{display:"flex",flexDirection:"column",pointerEvents:"auto"}},Ti={mask:({instance:t})=>{let e=["left","right","top","topleft","topright","bottom","bottomleft","bottomright"].find(n=>n===t.position);return{"p-dialog-mask":!0,"p-overlay-mask p-overlay-mask-enter":t.modal,[`p-dialog-${e}`]:e}},root:({instance:t})=>({"p-dialog p-component":!0,"p-dialog-maximized":t.maximizable&&t.maximized}),header:"p-dialog-header",title:"p-dialog-title",resizeHandle:"p-resizable-handle",headerActions:"p-dialog-header-actions",pcMaximizeButton:"p-dialog-maximize-button",pcCloseButton:"p-dialog-close-button",content:"p-dialog-content",footer:"p-dialog-footer"},Mt=(()=>{class t extends dt{name="dialog";theme=yi;classes=Ti;inlineStyles=vi;static \u0275fac=(()=>{let e;return function(i){return(e||(e=k(t)))(i||t)}})();static \u0275prov=Le({token:t,factory:t.\u0275fac})}return t})();var wi=ke([we({transform:"{{transform}}",opacity:0}),Te("{{transition}}")]),Ii=ke([Te("{{transition}}",we({transform:"{{transform}}",opacity:0}))]),Pe=(()=>{class t extends _e{header;draggable=!0;resizable=!0;get positionLeft(){return 0}set positionLeft(e){console.log("positionLeft property is deprecated.")}get positionTop(){return 0}set positionTop(e){console.log("positionTop property is deprecated.")}contentStyle;contentStyleClass;modal=!1;closeOnEscape=!0;dismissableMask=!1;rtl=!1;closable=!0;get responsive(){return!1}set responsive(e){console.log("Responsive property is deprecated.")}appendTo;breakpoints;styleClass;maskStyleClass;maskStyle;showHeader=!0;get breakpoint(){return 649}set breakpoint(e){console.log("Breakpoint property is not utilized and deprecated, use breakpoints or CSS media queries instead.")}blockScroll=!1;autoZIndex=!0;baseZIndex=0;minX=0;minY=0;focusOnShow=!0;maximizable=!1;keepInViewport=!0;focusTrap=!0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";closeIcon;closeAriaLabel;closeTabindex="0";minimizeIcon;maximizeIcon;closeButtonProps={severity:"secondary",text:!0,rounded:!0};maximizeButtonProps={severity:"secondary",text:!0,rounded:!0};get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.maskVisible&&(this.maskVisible=!0)}get style(){return this._style}set style(e){e&&(this._style=fe({},e),this.originalStyle=e)}get position(){return this._position}set position(e){switch(this._position=e,e){case"topleft":case"bottomleft":case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"topright":case"bottomright":case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break;default:this.transformOptions="scale(0.7)";break}}role="dialog";onShow=new E;onHide=new E;visibleChange=new E;onResizeInit=new E;onResizeEnd=new E;onDragEnd=new E;onMaximize=new E;headerViewChild;contentViewChild;footerViewChild;headerTemplate;contentTemplate;footerTemplate;closeIconTemplate;maximizeIconTemplate;minimizeIconTemplate;headlessTemplate;_headerTemplate;_contentTemplate;_footerTemplate;_closeiconTemplate;_maximizeiconTemplate;_minimizeiconTemplate;_headlessTemplate;_visible=!1;maskVisible;container;wrapper;dragging;ariaLabelledBy=this.getAriaLabelledBy();documentDragListener;documentDragEndListener;resizing;documentResizeListener;documentResizeEndListener;documentEscapeListener;maskClickListener;lastPageX;lastPageY;preventVisibleChangePropagation;maximized;preMaximizeContentHeight;preMaximizeContainerWidth;preMaximizeContainerHeight;preMaximizePageX;preMaximizePageY;id=L("pn_id_");_style={};_position="center";originalStyle;transformOptions="scale(0.7)";styleElement;window;_componentStyle=I(Mt);headerT;contentT;footerT;closeIconT;maximizeIconT;minimizeIconT;headlessT;get maximizeLabel(){return this.config.getTranslation(pt.ARIA).maximizeLabel}zone=I(He);get maskClass(){let n=["left","right","top","topleft","topright","bottom","bottomleft","bottomright"].find(i=>i===this.position);return{"p-dialog-mask":!0,"p-overlay-mask p-overlay-mask-enter":this.modal||this.dismissableMask,[`p-dialog-${n}`]:n}}ngOnInit(){super.ngOnInit(),this.breakpoints&&this.createStyle()}templates;ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"header":this.headerT=e.template;break;case"content":this.contentT=e.template;break;case"footer":this.footerT=e.template;break;case"closeicon":this.closeIconT=e.template;break;case"maximizeicon":this.maximizeIconT=e.template;break;case"minimizeicon":this.minimizeIconT=e.template;break;case"headless":this.headlessT=e.template;break;default:this.contentT=e.template;break}})}getAriaLabelledBy(){return this.header!==null?L("pn_id_")+"_header":null}parseDurationToMilliseconds(e){let n=/([\d\.]+)(ms|s)\b/g,i=0,a;for(;(a=n.exec(e))!==null;){let c=parseFloat(a[1]),h=a[2];h==="ms"?i+=c:h==="s"&&(i+=c*1e3)}if(i!==0)return i}_focus(e){if(e){let n=this.parseDurationToMilliseconds(this.transitionOptions),i=ct.getFocusableElements(e);if(i&&i.length>0)return this.zone.runOutsideAngular(()=>{setTimeout(()=>i[0].focus(),n||5)}),!0}return!1}focus(e){let n=this._focus(e);n||(n=this._focus(this.footerViewChild?.nativeElement),n||(n=this._focus(this.headerViewChild?.nativeElement),n||this._focus(this.contentViewChild?.nativeElement)))}close(e){this.visibleChange.emit(!1),e.preventDefault()}enableModality(){this.closable&&this.dismissableMask&&(this.maskClickListener=this.renderer.listen(this.wrapper,"mousedown",e=>{this.wrapper&&this.wrapper.isSameNode(e.target)&&this.close(e)})),this.modal&&Me()}disableModality(){if(this.wrapper){this.dismissableMask&&this.unbindMaskClickListener();let e=document.querySelectorAll(".p-dialog-mask-scrollblocker");this.modal&&e&&e.length==1&&Ee(),this.cd.destroyed||this.cd.detectChanges()}}maximize(){this.maximized=!this.maximized,!this.modal&&!this.blockScroll&&(this.maximized?Me():Ee()),this.onMaximize.emit({maximized:this.maximized})}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}moveOnTop(){this.autoZIndex&&(Fe.set("modal",this.container,this.baseZIndex+this.config.zIndex.modal),this.wrapper.style.zIndex=String(parseInt(this.container.style.zIndex,10)-1))}createStyle(){if(Z(this.platformId)&&!this.styleElement){this.styleElement=this.renderer.createElement("style"),this.styleElement.type="text/css",this.renderer.appendChild(this.document.head,this.styleElement);let e="";for(let n in this.breakpoints)e+=`
175
+ @media screen and (max-width: ${n}) {
176
+ .p-dialog[${this.id}]:not(.p-dialog-maximized) {
177
+ width: ${this.breakpoints[n]} !important;
178
+ }
179
+ }
180
+ `;this.renderer.setProperty(this.styleElement,"innerHTML",e),st(this.styleElement,"nonce",this.config?.csp()?.nonce)}}initDrag(e){$(e.target,"p-dialog-maximize-icon")||$(e.target,"p-dialog-header-close-icon")||$(e.target.parentElement,"p-dialog-header-icon")||this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin="0",pe(this.document.body,"p-unselectable-text"))}onDrag(e){if(this.dragging){let n=Se(this.container),i=ce(this.container),a=e.pageX-this.lastPageX,c=e.pageY-this.lastPageY,h=this.container.getBoundingClientRect(),F=getComputedStyle(this.container),P=parseFloat(F.marginLeft),q=parseFloat(F.marginTop),z=h.left+a-P,M=h.top+c-q,Q=De();this.container.style.position="fixed",this.keepInViewport?(z>=this.minX&&z+n<Q.width&&(this._style.left=`${z}px`,this.lastPageX=e.pageX,this.container.style.left=`${z}px`),M>=this.minY&&M+i<Q.height&&(this._style.top=`${M}px`,this.lastPageY=e.pageY,this.container.style.top=`${M}px`)):(this.lastPageX=e.pageX,this.container.style.left=`${z}px`,this.lastPageY=e.pageY,this.container.style.top=`${M}px`)}}endDrag(e){this.dragging&&(this.dragging=!1,de(this.document.body,"p-unselectable-text"),this.cd.detectChanges(),this.onDragEnd.emit(e))}resetPosition(){this.container.style.position="",this.container.style.left="",this.container.style.top="",this.container.style.margin=""}center(){this.resetPosition()}initResize(e){this.resizable&&(this.resizing=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,pe(this.document.body,"p-unselectable-text"),this.onResizeInit.emit(e))}onResize(e){if(this.resizing){let n=e.pageX-this.lastPageX,i=e.pageY-this.lastPageY,a=Se(this.container),c=ce(this.container),h=ce(this.contentViewChild?.nativeElement),F=a+n,P=c+i,q=this.container.style.minWidth,z=this.container.style.minHeight,M=this.container.getBoundingClientRect(),Q=De();(!parseInt(this.container.style.top)||!parseInt(this.container.style.left))&&(F+=n,P+=i),(!q||F>parseInt(q))&&M.left+F<Q.width&&(this._style.width=F+"px",this.container.style.width=this._style.width),(!z||P>parseInt(z))&&M.top+P<Q.height&&(this.contentViewChild.nativeElement.style.height=h+P-c+"px",this._style.height&&(this._style.height=P+"px",this.container.style.height=this._style.height)),this.lastPageX=e.pageX,this.lastPageY=e.pageY}}resizeEnd(e){this.resizing&&(this.resizing=!1,de(this.document.body,"p-unselectable-text"),this.onResizeEnd.emit(e))}bindGlobalListeners(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.resizable&&this.bindDocumentResizeListeners(),this.closeOnEscape&&this.closable&&this.bindDocumentEscapeListener()}unbindGlobalListeners(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentResizeListeners(),this.unbindDocumentEscapeListener()}bindDocumentDragListener(){this.documentDragListener||this.zone.runOutsideAngular(()=>{this.documentDragListener=this.renderer.listen(this.document.defaultView,"mousemove",this.onDrag.bind(this))})}unbindDocumentDragListener(){this.documentDragListener&&(this.documentDragListener(),this.documentDragListener=null)}bindDocumentDragEndListener(){this.documentDragEndListener||this.zone.runOutsideAngular(()=>{this.documentDragEndListener=this.renderer.listen(this.document.defaultView,"mouseup",this.endDrag.bind(this))})}unbindDocumentDragEndListener(){this.documentDragEndListener&&(this.documentDragEndListener(),this.documentDragEndListener=null)}bindDocumentResizeListeners(){!this.documentResizeListener&&!this.documentResizeEndListener&&this.zone.runOutsideAngular(()=>{this.documentResizeListener=this.renderer.listen(this.document.defaultView,"mousemove",this.onResize.bind(this)),this.documentResizeEndListener=this.renderer.listen(this.document.defaultView,"mouseup",this.resizeEnd.bind(this))})}unbindDocumentResizeListeners(){this.documentResizeListener&&this.documentResizeEndListener&&(this.documentResizeListener(),this.documentResizeEndListener(),this.documentResizeListener=null,this.documentResizeEndListener=null)}bindDocumentEscapeListener(){let e=this.el?this.el.nativeElement.ownerDocument:"document";this.documentEscapeListener=this.renderer.listen(e,"keydown",n=>{n.key=="Escape"&&this.close(n)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}appendContainer(){this.appendTo&&(this.appendTo==="body"?this.renderer.appendChild(this.document.body,this.wrapper):nt(this.appendTo,this.wrapper))}restoreAppend(){this.container&&this.appendTo&&this.renderer.appendChild(this.el.nativeElement,this.wrapper)}onAnimationStart(e){switch(e.toState){case"visible":this.container=e.element,this.wrapper=this.container?.parentElement,this.appendContainer(),this.moveOnTop(),this.bindGlobalListeners(),this.container?.setAttribute(this.id,""),this.modal&&this.enableModality(),this.focusOnShow&&this.focus();break;case"void":this.wrapper&&this.modal&&pe(this.wrapper,"p-overlay-mask-leave");break}}onAnimationEnd(e){switch(e.toState){case"void":this.onContainerDestroy(),this.onHide.emit({}),this.cd.markForCheck(),this.maskVisible!==this.visible&&(this.maskVisible=this.visible);break;case"visible":this.onShow.emit({});break}}onContainerDestroy(){this.unbindGlobalListeners(),this.dragging=!1,this.maskVisible=!1,this.maximized&&(this.document.body.style.removeProperty("--scrollbar;-width"),this.maximized=!1),this.modal&&this.disableModality(),$(this.document.body,"p-overflow-hidden")&&de(this.document.body,"p-overflow-hidden"),this.container&&this.autoZIndex&&Fe.clear(this.container),this.container=null,this.wrapper=null,this._style=this.originalStyle?fe({},this.originalStyle):{}}destroyStyle(){this.styleElement&&(this.renderer.removeChild(this.document.head,this.styleElement),this.styleElement=null)}ngOnDestroy(){this.container&&(this.restoreAppend(),this.onContainerDestroy()),this.destroyStyle(),super.ngOnDestroy()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=k(t)))(i||t)}})();static \u0275cmp=D({type:t,selectors:[["p-dialog"]],contentQueries:function(n,i,a){if(n&1&&(v(a,St,4),v(a,kt,4),v(a,zt,4),v(a,Vt,4),v(a,Ft,4),v(a,Pt,4),v(a,Lt,4),v(a,rt,4)),n&2){let c;C(c=x())&&(i._headerTemplate=c.first),C(c=x())&&(i._contentTemplate=c.first),C(c=x())&&(i._footerTemplate=c.first),C(c=x())&&(i._closeiconTemplate=c.first),C(c=x())&&(i._maximizeiconTemplate=c.first),C(c=x())&&(i._minimizeiconTemplate=c.first),C(c=x())&&(i._headlessTemplate=c.first),C(c=x())&&(i.templates=c)}},viewQuery:function(n,i){if(n&1&&(U(Ot,5),U(kt,5),U(zt,5)),n&2){let a;C(a=x())&&(i.headerViewChild=a.first),C(a=x())&&(i.contentViewChild=a.first),C(a=x())&&(i.footerViewChild=a.first)}},inputs:{header:"header",draggable:[2,"draggable","draggable",f],resizable:[2,"resizable","resizable",f],positionLeft:"positionLeft",positionTop:"positionTop",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",modal:[2,"modal","modal",f],closeOnEscape:[2,"closeOnEscape","closeOnEscape",f],dismissableMask:[2,"dismissableMask","dismissableMask",f],rtl:[2,"rtl","rtl",f],closable:[2,"closable","closable",f],responsive:"responsive",appendTo:"appendTo",breakpoints:"breakpoints",styleClass:"styleClass",maskStyleClass:"maskStyleClass",maskStyle:"maskStyle",showHeader:[2,"showHeader","showHeader",f],breakpoint:"breakpoint",blockScroll:[2,"blockScroll","blockScroll",f],autoZIndex:[2,"autoZIndex","autoZIndex",f],baseZIndex:[2,"baseZIndex","baseZIndex",oe],minX:[2,"minX","minX",oe],minY:[2,"minY","minY",oe],focusOnShow:[2,"focusOnShow","focusOnShow",f],maximizable:[2,"maximizable","maximizable",f],keepInViewport:[2,"keepInViewport","keepInViewport",f],focusTrap:[2,"focusTrap","focusTrap",f],transitionOptions:"transitionOptions",closeIcon:"closeIcon",closeAriaLabel:"closeAriaLabel",closeTabindex:"closeTabindex",minimizeIcon:"minimizeIcon",maximizeIcon:"maximizeIcon",closeButtonProps:"closeButtonProps",maximizeButtonProps:"maximizeButtonProps",visible:"visible",style:"style",position:"position",role:"role",headerTemplate:[0,"content","headerTemplate"],contentTemplate:"contentTemplate",footerTemplate:"footerTemplate",closeIconTemplate:"closeIconTemplate",maximizeIconTemplate:"maximizeIconTemplate",minimizeIconTemplate:"minimizeIconTemplate",headlessTemplate:"headlessTemplate"},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange",onResizeInit:"onResizeInit",onResizeEnd:"onResizeEnd",onDragEnd:"onDragEnd",onMaximize:"onMaximize"},features:[ne([Mt]),S],ngContentSelectors:Bt,decls:1,vars:1,consts:[["container",""],["notHeadless",""],["content",""],["titlebar",""],["icon",""],["footer",""],[3,"ngClass","class","ngStyle","style",4,"ngIf"],[3,"ngClass","ngStyle"],["pFocusTrap","",3,"class","ngClass","ngStyle","style","pFocusTrapDisabled",4,"ngIf"],["pFocusTrap","",3,"ngClass","ngStyle","pFocusTrapDisabled"],[4,"ngIf","ngIfElse"],[4,"ngTemplateOutlet"],["style","z-index: 90;",3,"ngClass","mousedown",4,"ngIf"],[3,"ngClass","mousedown",4,"ngIf"],[3,"ngClass",4,"ngIf"],[2,"z-index","90",3,"mousedown","ngClass"],[3,"mousedown","ngClass"],[3,"id","ngClass",4,"ngIf"],[3,"ngClass"],[3,"styleClass","tabindex","ariaLabel","buttonProps","onClick","keydown.enter",4,"ngIf"],[3,"styleClass","ariaLabel","tabindex","buttonProps","onClick","keydown.enter",4,"ngIf"],[3,"id","ngClass"],[3,"onClick","keydown.enter","styleClass","tabindex","ariaLabel","buttonProps"],[4,"ngIf"],[3,"onClick","keydown.enter","styleClass","ariaLabel","tabindex","buttonProps"]],template:function(n,i){n&1&&(K(Ht),m(0,xi,2,11,"div",6)),n&2&&o("ngIf",i.maskVisible)},dependencies:[re,ae,le,se,$e,ue,It,mt,Tt,wt,me],encapsulation:2,data:{animation:[it("animation",[Ie("void => visible",[ze(wi)]),Ie("visible => void",[ze(Ii)])])]},changeDetection:0})}return t})(),Et=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=ye({type:t});static \u0275inj=be({imports:[Pe,me,me]})}return t})();var zi=["actionButton"],Mi=["filters"],Ei=["content"],Di=[[["tabs"]]],Si=["tabs"],Vi=t=>({"border-bottom":t}),Fi=()=>({width:"30vw"}),Pi=()=>({"1199px":"75vw","575px":"100vw"});function Li(t,s){if(t&1){let e=b();p(0,"p-button",30),u("onClick",function(){_(e);let i=r();return g(i.isSearchbarCollapse=!i.isSearchbarCollapse)}),d()}t&2&&o("text",!0)}function Oi(t,s){if(t&1){let e=b();p(0,"p-button",31),u("click",function(){_(e);let i=r();return g(i.isCollapsed=!i.isCollapsed)}),d()}if(t&2){let e=r();o("text",!0),T("aria-expanded",!e.isCollapsed)}}function Hi(t,s){if(t&1){let e=b();p(0,"p-iconfield",20)(1,"input",32),u("ngModelChange",function(i){_(e);let a=r();return g(a.searchQuery.set(i))})("keyup.enter",function(){_(e);let i=r();return g(i.emitSearch())}),d(),p(2,"p-inputicon",33),u("click",function(){_(e);let i=r();return g(i.emitSearch())}),d()()}if(t&2){let e=r();l(),o("ngModel",e.searchQuery())}}function Bi(t,s){if(t&1){let e=b();p(0,"button",34),u("click",function(){_(e);let i=r();return g(i.onOpenFilterDialog())}),y(1,"i",35),d()}}function Ri(t,s){t&1&&w(0)}function Qi(t,s){if(t&1){let e=b();p(0,"p-iconfield")(1,"input",32),u("ngModelChange",function(i){_(e);let a=r();return g(a.searchQuery.set(i))})("keyup.enter",function(){_(e);let i=r();return g(i.emitSearch())}),d(),p(2,"p-inputicon",33),u("click",function(){_(e);let i=r();return g(i.emitSearch())}),d()()}if(t&2){let e=r();l(),o("ngModel",e.searchQuery())}}function Wi(t,s){if(t&1){let e=b();p(0,"button",34),u("click",function(){_(e);let i=r();return g(i.onOpenFilterDialog())}),y(1,"i",35),d()}}function Ai(t,s){t&1&&w(0)}function Ni(t,s){t&1&&w(0)}function Xi(t,s){t&1&&w(0)}function Yi(t,s){if(t&1){let e=b();p(0,"p-button",36),u("onClick",function(){_(e);let i=r();return g(i.closeFilter())}),d()}t&2&&o("rounded",!0)("text",!0)}function ji(t,s){if(t&1){let e=b();p(0,"p-button",37),u("click",function(){_(e);let i=r();return g(i.cancelFilter())}),d(),p(1,"p-button",38),u("click",function(){_(e);let i=r();return g(i.confirmFilter())}),d()}}var to=(()=>{class t{confirmFilter(){this.filterConfirmed.emit()}cancelFilter(){this.isDialogFilterVisible.update(e=>!e)}closeFilter(){this.isDialogFilterVisible.update(e=>!e)}constructor(){this.router=I(Je),this.isCollapsed=!0,this.isSearchbarCollapse=!0,this.store=I(Ct),this.pageTitle=O(""),this.isSearchableInput=O(!1),this.isFilterable=O(!1),this.hasMainWrapperPadding=O(!1),this.search=Ce(),this.searchQuery=Be(""),this.filterConfirmed=Ce(),this.isDialogFilterVisible=xe(!1),this.isInitDialogFilterVisible=xe(!1),this.pageTitleComputed=Ye(()=>this.pageTitle()?this.pageTitle().length>50?this.pageTitle().slice(0,50)+"...":this.pageTitle():""),this.dialogTitle=O("Filter"),je(()=>{this.isInitDialogFilterVisible()&&this.onOpenFilterDialog()})}onOpenFilterDialog(){this.isDialogFilterVisible.update(e=>!e)}emitSearch(){this.search.emit(this.searchQuery())}handleKeyboardEvent(e){e.key==="F2"&&this.filterConfirmed.emit()}get mainPanelClasses(){return{"p-3":this.hasMainWrapperPadding()}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=D({type:t,selectors:[["app-main-panel"]],contentQueries:function(n,i,a){if(n&1&&(v(a,zi,7),v(a,Mi,7),v(a,Ei,7)),n&2){let c;C(c=x())&&(i.actionButtonTemplate=c.first),C(c=x())&&(i.filterTemplate=c.first),C(c=x())&&(i.contentTemplate=c.first)}},hostBindings:function(n,i){n&1&&u("keydown",function(c){return i.handleKeyboardEvent(c)},!1,Qe)},inputs:{pageTitle:[1,"pageTitle"],isSearchableInput:[1,"isSearchableInput"],isFilterable:[1,"isFilterable"],hasMainWrapperPadding:[1,"hasMainWrapperPadding"],isDialogFilterVisible:[1,"isDialogFilterVisible"],isInitDialogFilterVisible:[1,"isInitDialogFilterVisible"],dialogTitle:[1,"dialogTitle"]},outputs:{search:"search",filterConfirmed:"filterConfirmed",isDialogFilterVisible:"isDialogFilterVisibleChange",isInitDialogFilterVisible:"isInitDialogFilterVisibleChange"},features:[ne([])],ngContentSelectors:Si,decls:46,vars:30,consts:[["collapse","ngbCollapse"],["closeIconTemplate",""],["footer",""],[1,"container-wrapper"],[1,"navbar","navbar-expand-lg","bg-white",3,"ngClass"],[1,"container-fluid","px-3"],[1,"row","w-100","d-block","d-lg-none","mx-0"],[1,"col","d-flex","align-items-center","justify-content-between","flex-wrap"],["icon","fa-solid fa-bars","severity","contrast",1,"text-dark",3,"onClick","text"],[1,"fs-4","m-0","fw-bolder"],["icon","fa-solid fa-magnifying-glass","severity","contrast",3,"text","onClick",4,"ngIf"],["icon","fa-solid fa-ellipsis-vertical","severity","contrast",3,"text","click",4,"ngIf"],[1,"w-100","d-none","d-lg-flex"],[1,"col-6","d-flex"],[1,"row","w-100"],[1,"col-12","d-flex","align-items-center"],[1,"d-flex","align-items-center","justify-content-between","w-100","gap-2"],[1,"flex-shrink-1"],[1,"page-title","fs-6","m-0","fw-semibold","align-middle"],[1,"d-flex","align-items-center","flex-grow-1","gap-2"],[2,"max-width","300px"],["type","button",1,"btn","btn-link"],[1,"col-6","align-self-center","d-flex","gap-2","justify-content-end"],[4,"ngTemplateOutlet"],[3,"ngbCollapseChange","ngbCollapse"],[1,"card"],[1,"card-body"],[1,"d-flex","align-items-center"],[1,"flex-grow-1",3,"ngClass"],["position","center","appendTo","body",3,"visibleChange","header","modal","visible","breakpoints","draggable","closeIconTemplate","dismissableMask"],["icon","fa-solid fa-magnifying-glass","severity","contrast",3,"onClick","text"],["icon","fa-solid fa-ellipsis-vertical","severity","contrast",3,"click","text"],["pTooltip","Search...","tooltipPosition","top","placeholder","Search...","type","text","pInputText","",3,"ngModelChange","keyup.enter","ngModel"],["styleClass","fa-solid fa-magnifying-glass",3,"click"],["type","button",1,"btn","btn-link",3,"click"],[1,"fa-solid","fa-filter"],["severity","secondary","icon","fa-solid fa-xmark",3,"onClick","rounded","text"],["label","Cancel","severity","secondary","variant","outlined",3,"click"],["label","OK (F2)",3,"click"]],template:function(n,i){if(n&1){let a=b();K(Di),p(0,"div",3)(1,"div")(2,"nav",4)(3,"div",5)(4,"div",6)(5,"div",7)(6,"div")(7,"p-button",8),u("onClick",function(){return _(a),g(i.store.updateSidebarType())}),d(),p(8,"h1",9),X(9),d(),m(10,Li,1,1,"p-button",10),d(),m(11,Oi,1,2,"p-button",11),d()(),p(12,"div",12)(13,"div",13)(14,"div",14)(15,"div",15)(16,"div",16)(17,"div",17)(18,"h1",18),X(19),d()(),p(20,"div",19),m(21,Hi,3,1,"p-iconfield",20)(22,Bi,2,0,"button",21),d()()()()(),p(23,"div",22),m(24,Ri,1,0,"ng-container",23),d()()()(),p(25,"div",24,0),ie("ngbCollapseChange",function(h){return _(a),te(i.isSearchbarCollapse,h)||(i.isSearchbarCollapse=h),g(h)}),p(27,"div",25)(28,"div",26)(29,"div",27),m(30,Qi,3,1,"p-iconfield")(31,Wi,2,0,"button",21),d()()()(),p(32,"div",24,0),ie("ngbCollapseChange",function(h){return _(a),te(i.isCollapsed,h)||(i.isCollapsed=h),g(h)}),p(34,"div",25)(35,"div",26),m(36,Ai,1,0,"ng-container",23),d()()(),N(37),d(),p(38,"div",28),m(39,Ni,1,0,"ng-container",23),d()(),p(40,"p-dialog",29),ie("visibleChange",function(h){return _(a),te(i.isDialogFilterVisible,h)||(i.isDialogFilterVisible=h),g(h)}),m(41,Xi,1,0,"ng-container",23)(42,Yi,1,2,"ng-template",null,1,R)(44,ji,2,0,"ng-template",null,2,R),d()}if(n&2){let a=J(43);l(2),o("ngClass",j(26,Vi,i.hasMainWrapperPadding())),l(5),o("text",!0),l(2),ve(" ",i.pageTitleComputed()," "),l(),o("ngIf",i.isSearchableInput()),l(),o("ngIf",i.actionButtonTemplate),l(8),ve(" ",i.pageTitle()," "),l(2),A(i.isSearchableInput()?21:-1),l(),A(i.isFilterable()?22:-1),l(2),o("ngTemplateOutlet",i.actionButtonTemplate),l(),ee("ngbCollapse",i.isSearchbarCollapse),l(5),A(i.isSearchableInput()?30:-1),l(),A(i.isFilterable()?31:-1),l(),ee("ngbCollapse",i.isCollapsed),l(4),o("ngTemplateOutlet",i.actionButtonTemplate),l(2),o("ngClass",i.mainPanelClasses),l(),o("ngTemplateOutlet",i.contentTemplate),l(),W(Y(28,Fi)),o("header",i.dialogTitle())("modal",!0),ee("visible",i.isDialogFilterVisible),o("breakpoints",Y(29,Pi))("draggable",!1)("closeIconTemplate",a)("dismissableMask",!0),l(),o("ngTemplateOutlet",i.filterTemplate)}},dependencies:[tt,et,Ue,qe,Ge,Ke,gt,_t,ht,ut,bt,ft,Et,Pe,xt,ue,re,ae,le,se,vt,yt],styles:["[_nghost-%COMP%]{display:block}.page-title[_ngcontent-%COMP%]{margin-left:5px;color:#202123}.container-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;position:relative;height:100vh}.navbar-collapse.show[_ngcontent-%COMP%]{padding-bottom:auto}.input-group[_ngcontent-%COMP%]{align-items:center}.input-group-text[_ngcontent-%COMP%]{background-color:transparent}input[type=checkbox][_ngcontent-%COMP%]:checked ~ a[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{transform:rotate(90deg);transition:transform .3s ease}label[for=check][_ngcontent-%COMP%]{width:25px;height:25px;border-radius:50%;border:1px solid #000;display:flex;justify-content:center;align-items:center}label[for=check][_ngcontent-%COMP%] a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{transition:.4s cubic-bezier(.68,-.6,.32,1.6);font-size:.6rem}label[for=check][_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{display:none}label[for=check][_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]:checked ~ a[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{transform:rotate(180deg)}@media (max-width: 575px){ .p-dialog{height:100vh!important;max-height:100vh!important;border-radius:0!important} .p-dialog-content{overflow:auto;height:calc(100vh - 4rem)}}"],changeDetection:0})}}return t})();export{Tt as a,wt as b,It as c,Mt as d,Pe as e,Et as f,to as g};
@@ -0,0 +1 @@
1
+ import{a as f}from"./chunk-I2MAIV44.js";import{g as v}from"./chunk-NTJQFRIB.js";import"./chunk-USO7UKRV.js";import"./chunk-CMHZLZ4E.js";import"./chunk-OVJSBJBH.js";import"./chunk-E2RBYY7Q.js";import"./chunk-26X2X35R.js";import"./chunk-35EULUGT.js";import{a as x}from"./chunk-CEUNPX5D.js";import"./chunk-F2X3VGZZ.js";import"./chunk-7T6O4KFO.js";import{s as h}from"./chunk-SJTXIIX5.js";import{Ic as p,Tb as i,Ub as o,Zb as C,cc as l,dc as u,ha as a,mc as c,pa as m,qa as s,tb as _,uc as d,zb as g}from"./chunk-2VF35PRV.js";import"./chunk-EQDQRRRY.js";function b(t,A){if(t&1){let e=C();i(0,"div",3)(1,"button",4),l("click",function(){m(e);let r=u();return s(r.onFormatCOA())}),c(2,"Format"),o(),i(3,"button",5),l("click",function(){m(e);let r=u();return s(r.onMigrateCoaAccount())}),c(4," Migrate "),o()()}}function M(t,A){t&1&&(i(0,"div",6),c(1," reserved for future User Interface (UI) enhancements "),o())}var y=(()=>{class t{constructor(){this.migrateService=a(f),this.toastr=a(x)}onMigrateCoaAccount(){this.migrateService.migrateCoaAccount().subscribe(e=>{this.toastr.success(e.message,"Migration Successful")})}onFormatCOA(){this.migrateService.formatManualCOA().subscribe(e=>{this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=_({type:t,selectors:[["app-chart-of-account"]],features:[d([f])],decls:5,vars:0,consts:[["actionButton",""],["content",""],["pageTitle","Chart of Account Migration"],[1,"d-flex","gap-2"],[1,"btn","btn-danger",3,"click"],[1,"btn","btn-primary",3,"click"],[1,"container","d-flex","justify-content-center","align-items-center",2,"height","100vh"]],template:function(n,r){n&1&&(i(0,"app-main-panel",2),g(1,b,5,0,"ng-template",null,0,p)(3,M,2,0,"ng-template",null,1,p),o())},dependencies:[v,h],encapsulation:2})}}return t})();export{y as ChartOfAccountComponent};
@@ -0,0 +1,51 @@
1
+ import{a as ee}from"./chunk-GHZLR44M.js";import{a as Z}from"./chunk-26X2X35R.js";import{ka as W,la as y,ma as X,ta as Y}from"./chunk-35EULUGT.js";import{j as H,m as U,o as G,s as J}from"./chunk-SJTXIIX5.js";import{Ib as _,Ic as L,Jb as c,Kb as j,Mb as z,Nb as f,Rc as q,Tb as h,Ub as g,Vb as A,Wb as x,Xb as I,Zb as u,ba as $,bb as P,ca as E,cc as d,dc as r,ec as O,fb as p,fc as R,ha as V,hc as w,jc as T,kc as k,lc as B,mc as N,nc as Q,oa as M,pa as s,qa as l,sa as C,tb as S,ub as D,uc as K,xb as F,ya as b,zb as m}from"./chunk-2VF35PRV.js";var ne=["removeicon"],te=["*"];function oe(e,a){if(e&1){let i=u();h(0,"img",4),d("error",function(t){s(i);let o=r();return l(o.imageError(t))}),g()}if(e&2){let i=r();c("src",i.image,P)("alt",i.alt)}}function re(e,a){if(e&1&&A(0,"span",6),e&2){let i=r(2);f(i.icon),c("ngClass","p-chip-icon"),_("data-pc-section","icon")}}function ce(e,a){if(e&1&&m(0,re,1,4,"span",5),e&2){let i=r();c("ngIf",i.icon)}}function ae(e,a){if(e&1&&(h(0,"div",7),N(1),g()),e&2){let i=r();_("data-pc-section","label"),p(),Q(i.label)}}function pe(e,a){if(e&1){let i=u();h(0,"span",11),d("click",function(t){s(i);let o=r(3);return l(o.close(t))})("keydown",function(t){s(i);let o=r(3);return l(o.onKeydown(t))}),g()}if(e&2){let i=r(3);f(i.removeIcon),c("ngClass","p-chip-remove-icon"),_("data-pc-section","removeicon")("aria-label",i.removeAriaLabel)}}function se(e,a){if(e&1){let i=u();h(0,"TimesCircleIcon",12),d("click",function(t){s(i);let o=r(3);return l(o.close(t))})("keydown",function(t){s(i);let o=r(3);return l(o.onKeydown(t))}),g()}if(e&2){let i=r(3);f("p-chip-remove-icon"),_("data-pc-section","removeicon")("aria-label",i.removeAriaLabel)}}function le(e,a){if(e&1&&(x(0),m(1,pe,1,5,"span",9)(2,se,1,4,"TimesCircleIcon",10),I()),e&2){let i=r(2);p(),c("ngIf",i.removeIcon),p(),c("ngIf",!i.removeIcon)}}function me(e,a){}function _e(e,a){e&1&&m(0,me,0,0,"ng-template")}function he(e,a){if(e&1){let i=u();h(0,"span",13),d("click",function(t){s(i);let o=r(2);return l(o.close(t))})("keydown",function(t){s(i);let o=r(2);return l(o.onKeydown(t))}),m(1,_e,1,0,null,14),g()}if(e&2){let i=r(2);_("data-pc-section","removeicon")("aria-label",i.removeAriaLabel),p(),c("ngTemplateOutlet",i.removeIconTemplate||i._removeIconTemplate)}}function ge(e,a){if(e&1&&(x(0),m(1,le,3,2,"ng-container",3)(2,he,2,3,"span",8),I()),e&2){let i=r();p(),c("ngIf",!i.removeIconTemplate&&!i._removeIconTemplate),p(),c("ngIf",i.removeIconTemplate||i._removeIconTemplate)}}var fe=({dt:e})=>`
2
+ .p-chip {
3
+ display: inline-flex;
4
+ align-items: center;
5
+ background: ${e("chip.background")};
6
+ color: ${e("chip.color")};
7
+ border-radius: ${e("chip.border.radius")};
8
+ padding: ${e("chip.padding.y")} ${e("chip.padding.x")};
9
+ gap: ${e("chip.gap")};
10
+ }
11
+
12
+ .p-chip-icon {
13
+ color: ${e("chip.icon.color")};
14
+ font-size: ${e("chip.icon.font.size")};
15
+ width: ${e("chip.icon.size")};
16
+ height: ${e("chip.icon.size")};
17
+ }
18
+
19
+ .p-chip-image {
20
+ border-radius: 50%;
21
+ width: ${e("chip.image.width")};
22
+ height: ${e("chip.image.height")};
23
+ margin-left: calc(-1 * ${e("chip.padding.y")});
24
+ }
25
+
26
+ .p-chip:has(.p-chip-remove-icon) {
27
+ padding-inline-end: ${e("chip.padding.y")};
28
+ }
29
+
30
+ .p-chip:has(.p-chip-image) {
31
+ padding-top: calc(${e("chip.padding.y")} / 2);
32
+ padding-bottom: calc(${e("chip.padding.y")} / 2);
33
+ }
34
+
35
+ .p-chip-remove-icon {
36
+ cursor: pointer;
37
+ font-size: ${e("chip.remove.icon.font.size")};
38
+ width: ${e("chip.remove.icon.size")};
39
+ height: ${e("chip.remove.icon.size")};
40
+ color: ${e("chip.remove.icon.color")};
41
+ border-radius: 50%;
42
+ transition: outline-color ${e("chip.transition.duration")}, box-shadow ${e("chip.transition.duration")};
43
+ outline-color: transparent;
44
+ }
45
+
46
+ .p-chip-remove-icon:focus-visible {
47
+ box-shadow: ${e("chip.remove.icon.focus.ring.shadow")};
48
+ outline: ${e("chip.remove.icon.focus.ring.width")} ${e("chip.remove.icon.focus.ring.style")} ${e("chip.remove.icon.focus.ring.color")};
49
+ outline-offset: ${e("chip.remove.icon.focus.ring.offset")};
50
+ }
51
+ `,ue={root:"p-chip p-component",image:"p-chip-image",icon:"p-chip-icon",label:"p-chip-label",removeIcon:"p-chip-remove-icon"},ie=(()=>{class e extends Y{name="chip";theme=fe;classes=ue;static \u0275fac=(()=>{let i;return function(t){return(i||(i=C(e)))(t||e)}})();static \u0275prov=$({token:e,factory:e.\u0275fac})}return e})();var de=(()=>{class e extends Z{label;icon;image;alt;style;styleClass;removable=!1;removeIcon;onRemove=new b;onImageError=new b;visible=!0;get removeAriaLabel(){return this.config.getTranslation(X.ARIA).removeLabel}get chipProps(){return this._chipProps}set chipProps(i){this._chipProps=i,i&&typeof i=="object"&&Object.entries(i).forEach(([n,t])=>this[`_${n}`]!==t&&(this[`_${n}`]=t))}_chipProps;_componentStyle=V(ie);removeIconTemplate;templates;_removeIconTemplate;ngAfterContentInit(){this.templates.forEach(i=>{switch(i.getType()){case"removeicon":this._removeIconTemplate=i.template;break;default:this._removeIconTemplate=i.template;break}})}ngOnChanges(i){if(super.ngOnChanges(i),i.chipProps&&i.chipProps.currentValue){let{currentValue:n}=i.chipProps;n.label!==void 0&&(this.label=n.label),n.icon!==void 0&&(this.icon=n.icon),n.image!==void 0&&(this.image=n.image),n.alt!==void 0&&(this.alt=n.alt),n.style!==void 0&&(this.style=n.style),n.styleClass!==void 0&&(this.styleClass=n.styleClass),n.removable!==void 0&&(this.removable=n.removable),n.removeIcon!==void 0&&(this.removeIcon=n.removeIcon)}}containerClass(){let i="p-chip p-component";return this.styleClass&&(i+=` ${this.styleClass}`),i}close(i){this.visible=!1,this.onRemove.emit(i)}onKeydown(i){(i.key==="Enter"||i.key==="Backspace")&&this.close(i)}imageError(i){this.onImageError.emit(i)}static \u0275fac=(()=>{let i;return function(t){return(i||(i=C(e)))(t||e)}})();static \u0275cmp=S({type:e,selectors:[["p-chip"]],contentQueries:function(n,t,o){if(n&1&&(w(o,ne,4),w(o,W,4)),n&2){let v;T(v=k())&&(t.removeIconTemplate=v.first),T(v=k())&&(t.templates=v)}},hostVars:9,hostBindings:function(n,t){n&2&&(_("data-pc-name","chip")("aria-label",t.label)("data-pc-section","root"),z(t.style),f(t.containerClass()),j("display",!t.visible&&"none"))},inputs:{label:"label",icon:"icon",image:"image",alt:"alt",style:"style",styleClass:"styleClass",removable:[2,"removable","removable",q],removeIcon:"removeIcon",chipProps:"chipProps"},outputs:{onRemove:"onRemove",onImageError:"onImageError"},features:[K([ie]),F,M],ngContentSelectors:te,decls:6,vars:4,consts:[["iconTemplate",""],["class","p-chip-image",3,"src","alt","error",4,"ngIf","ngIfElse"],["class","p-chip-label",4,"ngIf"],[4,"ngIf"],[1,"p-chip-image",3,"error","src","alt"],[3,"class","ngClass",4,"ngIf"],[3,"ngClass"],[1,"p-chip-label"],["tabindex","0","class","p-chip-remove-icon","role","button",3,"click","keydown",4,"ngIf"],["tabindex","0","role","button",3,"class","ngClass","click","keydown",4,"ngIf"],["tabindex","0","role","button",3,"class","click","keydown",4,"ngIf"],["tabindex","0","role","button",3,"click","keydown","ngClass"],["tabindex","0","role","button",3,"click","keydown"],["tabindex","0","role","button",1,"p-chip-remove-icon",3,"click","keydown"],[4,"ngTemplateOutlet"]],template:function(n,t){if(n&1&&(O(),R(0),m(1,oe,1,2,"img",1)(2,ce,1,1,"ng-template",null,0,L)(4,ae,2,2,"div",2)(5,ge,3,2,"ng-container",3)),n&2){let o=B(3);p(),c("ngIf",t.image)("ngIfElse",o),p(3),c("ngIf",t.label),p(),c("ngIf",t.removable)}},dependencies:[J,H,U,G,ee,y],encapsulation:2,changeDetection:0})}return e})(),je=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=D({type:e});static \u0275inj=E({imports:[de,y,y]})}return e})();export{de as a,je as b};