dealposbooks 5.49.3 → 5.50.0

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 (168) hide show
  1. package/3rdpartylicenses.txt +26 -26
  2. package/assets/scss/style.scss +2 -4
  3. package/chunk-27SC6O47.js +1 -0
  4. package/{chunk-ELMSU4U7.js → chunk-2ABEICLB.js} +1 -1
  5. package/{chunk-KJCHFIF4.js → chunk-2JFOEOZ2.js} +1 -1
  6. package/{chunk-DTAREQVV.js → chunk-3ALAWCRA.js} +1 -1
  7. package/chunk-3GYSEQ25.js +1 -0
  8. package/{chunk-2XW2ZOT4.js → chunk-43JH7CKX.js} +1 -1
  9. package/chunk-47G2N7SA.js +1 -0
  10. package/{chunk-FWAGEKIF.js → chunk-4AGTFPOU.js} +1 -1
  11. package/{chunk-ME4V3YFW.js → chunk-4IMFKRR6.js} +1 -1
  12. package/chunk-4RBG4SFN.js +1 -0
  13. package/chunk-56CZGYL5.js +1 -0
  14. package/chunk-5N5QHECN.js +1 -0
  15. package/{chunk-DJXQKSLT.js → chunk-5U7KZJ3H.js} +1 -1
  16. package/{chunk-B4C3ZPN6.js → chunk-5VKDAA74.js} +1 -1
  17. package/chunk-65V5R4TS.js +1 -0
  18. package/{chunk-HCJK6VTO.js → chunk-6GILMLXA.js} +1 -1
  19. package/chunk-6GO647AV.js +1 -0
  20. package/chunk-7DBOORB2.js +1 -0
  21. package/{chunk-UPSNJEHO.js → chunk-7L5IAWG2.js} +1 -1
  22. package/chunk-A6T2KR7U.js +1 -0
  23. package/chunk-AF6G72MJ.js +1 -0
  24. package/chunk-ALLR2NXQ.js +1 -0
  25. package/chunk-BB2CNXSH.js +1 -0
  26. package/chunk-BFEM6LX7.js +2 -0
  27. package/{chunk-EBEY2MBR.js → chunk-BME4Z6DH.js} +1 -1
  28. package/chunk-BOQI2TMP.js +8 -0
  29. package/{chunk-DGACZ747.js → chunk-BTFX33U6.js} +1 -1
  30. package/{chunk-E7QWESN4.js → chunk-CN6AT4LE.js} +1 -1
  31. package/chunk-COSMZ2AH.js +1 -0
  32. package/chunk-DAFEIZYQ.js +1 -0
  33. package/{chunk-NMU2YBAB.js → chunk-DAM2WKDY.js} +1 -1
  34. package/chunk-DM2JLWKE.js +1 -0
  35. package/chunk-DM45YT57.js +1 -0
  36. package/chunk-DZCJWJUG.js +1 -0
  37. package/{chunk-WXIG4CXY.js → chunk-FHJOSHI3.js} +1 -1
  38. package/chunk-FHXTQXB7.js +160 -0
  39. package/{chunk-WMZF4DQK.js → chunk-FMAG3RQL.js} +1 -1
  40. package/{chunk-BKTBVFNX.js → chunk-FNGX2XFA.js} +1 -1
  41. package/{chunk-3DBSHDAQ.js → chunk-FTBQKOYS.js} +1 -1
  42. package/chunk-GAXDMEOS.js +1 -0
  43. package/chunk-GGQ7LRWG.js +0 -0
  44. package/{chunk-E6SW7I4D.js → chunk-GIRWHO6Q.js} +1 -1
  45. package/{chunk-BJMEZV24.js → chunk-GU4FXUJC.js} +1 -1
  46. package/{chunk-2VZ7JZIO.js → chunk-HMZX6SME.js} +1 -1
  47. package/chunk-HQHEWKLC.js +1 -0
  48. package/chunk-HU4J3ABZ.js +1 -0
  49. package/chunk-I2OULINE.js +1 -0
  50. package/{chunk-PPXXWO4E.js → chunk-II7KELI4.js} +1 -1
  51. package/{chunk-E3SH454T.js → chunk-IMPGOCFC.js} +1 -1
  52. package/{chunk-AD247LWQ.js → chunk-ISIYG4D5.js} +1 -1
  53. package/chunk-J3HFAWXU.js +229 -0
  54. package/chunk-JERRSTLA.js +1 -0
  55. package/chunk-JRBGNG24.js +1 -0
  56. package/{chunk-URH77XNK.js → chunk-JWNGZMSE.js} +1 -1
  57. package/{chunk-PGOSR3RI.js → chunk-KARG227P.js} +1 -1
  58. package/chunk-KL3TPLRB.js +2 -0
  59. package/{chunk-QPPFPDWZ.js → chunk-KONCSTVQ.js} +1 -1
  60. package/{chunk-2LNMV22E.js → chunk-KORGIX2B.js} +1 -1
  61. package/{chunk-VDXZGF3M.js → chunk-KQZMRRMA.js} +1 -1
  62. package/chunk-KXW5NWRO.js +1 -0
  63. package/{chunk-JD3HX7VY.js → chunk-KZU3VXLG.js} +1 -1
  64. package/{chunk-M4SSELXT.js → chunk-L4ENW4RK.js} +1 -1
  65. package/{chunk-IHKBTP2Y.js → chunk-LBXNL7E4.js} +1 -1
  66. package/{chunk-UVSR4LPB.js → chunk-LO4HJ77Y.js} +1 -1
  67. package/chunk-MGIEURA2.js +193 -0
  68. package/{chunk-VKNINE5Q.js → chunk-MJGBBYIO.js} +1 -1
  69. package/chunk-NHW7GVHK.js +1 -0
  70. package/{chunk-ME4ALIS7.js → chunk-O44DI62I.js} +1 -1
  71. package/{chunk-PKO36DGM.js → chunk-ON7PMYMV.js} +1 -1
  72. package/chunk-OOCCZG53.js +129 -0
  73. package/{chunk-AN4SAUSA.js → chunk-OW2ND5HU.js} +1 -1
  74. package/chunk-PB2MFYIM.js +1 -0
  75. package/chunk-Q4XWXOWE.js +1 -0
  76. package/chunk-RBNXJUFM.js +252 -0
  77. package/{chunk-F7XGJYCZ.js → chunk-RMHKEGL5.js} +1 -1
  78. package/{chunk-KGNH5JRZ.js → chunk-RVUOVLL5.js} +1 -1
  79. package/chunk-SASRJPT7.js +1 -0
  80. package/chunk-SJOOTBQ5.js +1 -0
  81. package/{chunk-3UAQHNUY.js → chunk-SLD7RSX6.js} +1 -1
  82. package/{chunk-CAS5GLLU.js → chunk-SOYJAYJK.js} +1 -1
  83. package/{chunk-KZHI6PGZ.js → chunk-SVGPDGYN.js} +1 -1
  84. package/chunk-SX4XIR77.js +1 -0
  85. package/{chunk-OBT3IJJQ.js → chunk-SXNOZOOP.js} +5 -5
  86. package/{chunk-RM5HLXNW.js → chunk-TAN6GLIH.js} +1 -1
  87. package/{chunk-5DRALZZF.js → chunk-TOR7QRRB.js} +1 -1
  88. package/{chunk-D6IS6PE6.js → chunk-U4AN6IWJ.js} +1 -1
  89. package/chunk-URGN4QVD.js +1 -0
  90. package/chunk-UTOLWW4T.js +1 -0
  91. package/chunk-VJROOSEO.js +7 -0
  92. package/chunk-VKUW7E75.js +1 -0
  93. package/{chunk-S27Z7D3D.js → chunk-VM56C6ZV.js} +1 -1
  94. package/chunk-VNZUZ5UI.js +1 -0
  95. package/{chunk-AMGBUOC4.js → chunk-VSDW2RJ5.js} +1 -1
  96. package/{chunk-U2VDC52W.js → chunk-WL6ZZCYW.js} +1 -1
  97. package/chunk-WYLIU52Q.js +1 -0
  98. package/{chunk-5B5AMMR3.js → chunk-X6KL7VKV.js} +1 -1
  99. package/chunk-XGU6GBEK.js +1 -0
  100. package/chunk-XN4CDKDI.js +1 -0
  101. package/chunk-XULSWUMO.js +1 -0
  102. package/chunk-YHLRDTIS.js +1 -0
  103. package/chunk-YQYRAH7V.js +1 -0
  104. package/{chunk-ENH6HA3V.js → chunk-YR5KRTHR.js} +1 -1
  105. package/{chunk-UD23HDLE.js → chunk-YU4Q7ASX.js} +1 -1
  106. package/chunk-Z3ZKNQZS.js +1 -0
  107. package/chunk-Z4XRTHAH.js +1 -0
  108. package/chunk-ZAMQ4RCL.js +1 -0
  109. package/chunk-ZC2ADHDH.js +130 -0
  110. package/{chunk-MHRSQRHT.js → chunk-ZC7ZENN7.js} +1 -1
  111. package/chunk-ZWNKUBMG.js +202 -0
  112. package/index.html +2 -2
  113. package/main-UCTZ3G6L.js +1 -0
  114. package/package.json +1 -1
  115. package/{styles-FYY2LVCE.css → styles-T5RGO2FA.css} +1 -1
  116. package/chunk-26LXGKDF.js +0 -1
  117. package/chunk-2BI7WNJP.js +0 -1
  118. package/chunk-3KEAMVYI.js +0 -202
  119. package/chunk-4G57L7HS.js +0 -1
  120. package/chunk-4OZIHMKI.js +0 -1
  121. package/chunk-4UVBCZJG.js +0 -1
  122. package/chunk-5LGAO5J4.js +0 -1
  123. package/chunk-6WWXJJID.js +0 -1
  124. package/chunk-A3P24MDP.js +0 -129
  125. package/chunk-A7OYELWP.js +0 -1
  126. package/chunk-ATFRJZK3.js +0 -1
  127. package/chunk-C5EDHVD7.js +0 -1
  128. package/chunk-C7ZPOAWO.js +0 -1
  129. package/chunk-CTINUVLP.js +0 -1
  130. package/chunk-D2CH2T3I.js +0 -229
  131. package/chunk-DJTQ4KQ7.js +0 -1
  132. package/chunk-ES2YST7G.js +0 -1
  133. package/chunk-F7PVAVLQ.js +0 -1
  134. package/chunk-FQRRGJBE.js +0 -1
  135. package/chunk-G4XX7EU2.js +0 -1
  136. package/chunk-I2IEFBTX.js +0 -1
  137. package/chunk-IQ4SHFOC.js +0 -252
  138. package/chunk-L3CQJPFS.js +0 -1
  139. package/chunk-LG5TMEPP.js +0 -1
  140. package/chunk-LNFCBMAA.js +0 -1
  141. package/chunk-LOMHQKQX.js +0 -1
  142. package/chunk-LUS3QGR4.js +0 -1
  143. package/chunk-N6LQW4C4.js +0 -1
  144. package/chunk-NXJQMUGV.js +0 -1
  145. package/chunk-OFI2JX7N.js +0 -1
  146. package/chunk-OFLGX5N4.js +0 -160
  147. package/chunk-OJTHBHGK.js +0 -1
  148. package/chunk-PW4Y2UWU.js +0 -1
  149. package/chunk-PZZCPZ6Q.js +0 -1
  150. package/chunk-Q4KG7LH6.js +0 -1
  151. package/chunk-QFFI46W6.js +0 -130
  152. package/chunk-QJ5XIVKM.js +0 -1
  153. package/chunk-RX37I2ZC.js +0 -1
  154. package/chunk-S6S265JY.js +0 -7
  155. package/chunk-SUWUVFH4.js +0 -1
  156. package/chunk-UK5OOIPU.js +0 -1
  157. package/chunk-V2P3PRZY.js +0 -1
  158. package/chunk-V65ONV6D.js +0 -1
  159. package/chunk-VMI3QWC6.js +0 -193
  160. package/chunk-VMI7LQOW.js +0 -1
  161. package/chunk-WRTIQGAC.js +0 -8
  162. package/chunk-XJFNZBHG.js +0 -1
  163. package/chunk-XWXTYJHR.js +0 -1
  164. package/chunk-YIEUIWT7.js +0 -1
  165. package/chunk-ZFNIPERQ.js +0 -2
  166. package/chunk-ZK43JB4A.js +0 -2
  167. package/chunk-ZZEOPBUT.js +0 -1
  168. package/main-WMHNA6IG.js +0 -1
@@ -0,0 +1 @@
1
+ import{a as y}from"./chunk-ON7PMYMV.js";import{m as K}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as H,b as I}from"./chunk-3VQUNDVT.js";import{d as ee,i as te,j as ne,k as ie}from"./chunk-BTFX33U6.js";import"./chunk-BME4Z6DH.js";import"./chunk-VSDW2RJ5.js";import"./chunk-7L5IAWG2.js";import"./chunk-MJGBBYIO.js";import"./chunk-CN6AT4LE.js";import"./chunk-OW2ND5HU.js";import"./chunk-JWNGZMSE.js";import"./chunk-II7KELI4.js";import"./chunk-FTBQKOYS.js";import"./chunk-L4ENW4RK.js";import"./chunk-KONCSTVQ.js";import"./chunk-FMAG3RQL.js";import{i as Z}from"./chunk-J3HFAWXU.js";import"./chunk-VM56C6ZV.js";import"./chunk-ALLR2NXQ.js";import{b as f,c as G,d as J,e as Q,f as W,g as X,h as Y}from"./chunk-FNGX2XFA.js";import"./chunk-BFEM6LX7.js";import{w as O,x as q}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import"./chunk-MGIEURA2.js";import{e as $}from"./chunk-DZCJWJUG.js";import"./chunk-TOR7QRRB.js";import"./chunk-YQYRAH7V.js";import"./chunk-KL3TPLRB.js";import"./chunk-RVUOVLL5.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import{m as F,r as A,u as L}from"./chunk-DM2JLWKE.js";import{Dc as j,Eb as _,Mb as S,Oc as M,Qc as D,Rb as w,Sc as u,Wb as o,Xb as l,Y as T,Yb as P,_ as U,ac as R,bd as E,c as v,fc as k,gc as p,ia as C,ib as g,qa as x,ra as h,s as N,sc as m,tc as b,wc as B,yb as z}from"./chunk-6QJHEOXN.js";import{a as s,b as c}from"./chunk-YQFG5XE2.js";var oe={data:[],count:0,filter:{PageSize:20,PageNumber:1}},V=G(X(oe),Y("Closing Entries Store"),J(e=>({first:E(()=>(e.filter().PageNumber-1)*e.filter().PageSize+1),end:E(()=>Math.min(e.filter().PageNumber*e.filter().PageSize,e.count())),hasCheckedRows:E(()=>e.data().some(r=>r.checked)),selectedItems:E(()=>e.data().filter(r=>r.checked))})),W(e=>{let r=C(y),t={updateFilter:n=>{f(e,i=>c(s({},i),{filter:s(s({},i.filter),n)}))},onRowSelect(n){f(e,i=>{let a=i.data.map(d=>d.id===n.id?c(s({},d),{checked:!0}):d);return c(s({},i),{data:a})})},onRowUnselect(n){f(e,i=>{let a=i.data.map(d=>d.id===n.id?c(s({},d),{checked:!1}):d);return c(s({},i),{data:a})})},onHeaderCheckboxToggle(n){f(e,i=>{let a=i.data.map(d=>c(s({},d),{checked:n}));return c(s({},i),{data:a})})},getClosingEntries:H(v(T(n=>r.getClosingEntries(n).pipe(N(i=>i.map(a=>c(s({},a),{checked:!1}))),I({next:i=>{f(e,a=>c(s({},a),{data:i})),t.getClosingEntryCount()},error:i=>{console.error("Error fetching closing entries:",i)}}))))),getClosingEntryCount:H(v(T(()=>r.getClosingEntryCount().pipe(I({next:({count:n})=>{f(e,i=>c(s({},i),{count:n}))},error:n=>{console.error("Error fetching closing entry count:",n)}})))))};return t}),Q(e=>({onInit:()=>{e.getClosingEntries(e.filter)}})));function re(e,r){if(e&1){let t=R();o(0,"p-button",11),k("onClick",function(){x(t);let i=p(3);return h(i.onDeleteClosingEntries())}),l()}}function ae(e,r){if(e&1&&_(0,re,1,0,"p-button",10),e&2){let t=p(2);S("ngIf",t.store.hasCheckedRows())}}function le(e,r){e&1&&(o(0,"a",9),P(1,"i",12),m(2," Add"),l())}function se(e,r){if(e&1&&(o(0,"div",7),_(1,ae,1,1,"p-button",8)(2,le,3,0,"a",9),l()),e&2){let t=p();g(),w(t.roleService.permissions().accountingSetup.delete?1:-1),g(),w(t.roleService.permissions().accountingSetup.create?2:-1)}}function ce(e,r){e&1&&(o(0,"th",14),P(1,"p-tableHeaderCheckbox"),l())}function pe(e,r){if(e&1&&(o(0,"tr"),_(1,ce,2,0,"th",14),o(2,"th"),m(3,"Period"),l(),o(4,"th"),m(5,"Note"),l(),o(6,"th"),m(7,"Created"),l(),o(8,"th"),m(9,"CreatedBy"),l()()),e&2){let t=p(2);g(),w(t.roleService.permissions().accountingSetup.delete?1:-1)}}function me(e,r){if(e&1&&(o(0,"td"),P(1,"p-tableCheckbox",15),l()),e&2){let t=p().$implicit;g(),S("value",t)}}function ge(e,r){if(e&1&&(o(0,"tr"),_(1,me,2,1,"td"),o(2,"td"),m(3),M(4,"date"),l(),o(5,"td"),m(6),l(),o(7,"td"),m(8),M(9,"date"),l(),o(10,"td"),m(11),l()()),e&2){let t=r.$implicit,n=p(2);g(),w(n.roleService.permissions().accountingSetup.delete?1:-1),g(2),b(D(4,5,t.period,"d MMM y")),g(3),b(t.note),g(2),b(D(9,8,t.created,"d MMM y")),g(3),b(t.creatorName)}}function de(e,r){if(e&1&&m(0),e&2){let t=p(2);B(" Showing ",t.store.first()," to ",t.store.end()," of ",t.store.count()," entries ")}}function _e(e,r){e&1&&(o(0,"tr")(1,"td",16)(2,"span"),m(3," No journal entries found. "),l()()())}function ue(e,r){if(e&1){let t=R();o(0,"p-table",13),k("onPage",function(i){x(t);let a=p();return h(a.onPageChange(i))})("onRowSelect",function(i){x(t);let a=p();return h(a.onRowSelect(i))})("onRowUnselect",function(i){x(t);let a=p();return h(a.onRowUnselect(i))})("onHeaderCheckboxToggle",function(i){x(t);let a=p();return h(a.onHeaderCheckboxToggle(i))}),_(1,pe,10,1,"ng-template",null,2,u)(3,ge,12,11,"ng-template",null,3,u)(5,de,1,3,"ng-template",null,4,u)(7,_e,4,0,"ng-template",null,5,u),l()}if(e&2){let t=p();S("value",t.store.data())("paginator",!0)("totalRecords",t.store.count())("lazy",!0)("rows",t.store.filter().PageSize)("scrollHeight","calc(100vh - 142px)")}}var Ae=(()=>{class e{constructor(){this.store=C(V),this.closingEntryService=C(y),this.roleService=C(K)}onPageChange(t){let n=t.first/t.rows+1;this.store.updateFilter(c(s({},this.store.filter()),{PageSize:n}))}onRowSelect(t){this.store.onRowSelect(t.data)}onRowUnselect(t){if(Array.isArray(t.data)){t.data.forEach(n=>{this.store.onRowUnselect(n)});return}else this.store.onRowUnselect(t.data)}onHeaderCheckboxToggle(t){this.store.onHeaderCheckboxToggle(t.checked)}onDeleteClosingEntries(){let t=this.store.selectedItems().map(n=>n.id).join(",");console.log("Deleting closing entries with IDs:",t),this.closingEntryService.deleteClosingEntry(t).pipe(U(()=>{this.store.updateFilter(s({},this.store.filter()))})).subscribe()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=z({type:e,selectors:[["app-closing-page"]],features:[j([V])],decls:5,vars:1,consts:[["actionButton",""],["content",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Closing Entries List",3,"scrollable"],[1,"d-flex","gap-2"],["label","Delete","severity","danger","icon","fa-solid fa-trash"],["routerLink","create",1,"p-button"],["label","Delete","severity","danger","icon","fa-solid fa-trash",3,"onClick",4,"ngIf"],["label","Delete","severity","danger","icon","fa-solid fa-trash",3,"onClick"],[1,"fa-solid","fa-plus"],["dataKey","id","styleClass","d-flex flex-column justify-content-between h-100",3,"onPage","onRowSelect","onRowUnselect","onHeaderCheckboxToggle","value","paginator","totalRecords","lazy","rows","scrollHeight"],[2,"width","1rem"],[3,"value"],["colspan","5"]],template:function(n,i){n&1&&(o(0,"app-main-panel",6),_(1,se,3,2,"ng-template",null,0,u)(3,ue,9,6,"ng-template",null,1,u),l()),n&2&&S("scrollable",!0)},dependencies:[Z,L,F,A,ie,ee,te,ne,$,q,O],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return e})();export{Ae as ClosingPageComponent};
@@ -0,0 +1 @@
1
+ import{a as F}from"./chunk-ZAMQ4RCL.js";import{a as q}from"./chunk-HMZX6SME.js";import{a as R}from"./chunk-BT7Y4ADP.js";import{i as w}from"./chunk-J3HFAWXU.js";import"./chunk-VM56C6ZV.js";import{a as k}from"./chunk-ISIYG4D5.js";import"./chunk-ALLR2NXQ.js";import"./chunk-FNGX2XFA.js";import"./chunk-BFEM6LX7.js";import{w as P}from"./chunk-O44DI62I.js";import{b as M}from"./chunk-DTYVTTET.js";import"./chunk-MGIEURA2.js";import{b as I,d as E,e as D}from"./chunk-DZCJWJUG.js";import"./chunk-TOR7QRRB.js";import"./chunk-YQYRAH7V.js";import"./chunk-KL3TPLRB.js";import"./chunk-RVUOVLL5.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-DM2JLWKE.js";import{D as f,Eb as u,Ec as J,Fc as b,Mb as m,Rb as h,Sc as s,Wb as n,Xb as o,Y as _,Yb as j,_ as x,ac as y,fc as S,gc as a,ia as l,ib as p,qa as T,ra as v,sc as r,tc as c,yb as C}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";var V=()=>["/pages/accounting-setup/journal-tag/form"],B=t=>({id:t});function L(t,d){if(t&1){let e=y();n(0,"div",3)(1,"p-button-group"),j(2,"p-button",4),n(3,"p-button",5),S("onClick",function(){T(e);let g=a();return v(g.onJournalTagDelete())}),o()()()}if(t&2){let e=a();p(2),m("routerLink",J(2,V))("queryParams",b(3,B,e.journalTag().id))}}function W(t,d){if(t&1&&(n(0,"div",6)(1,"div",7)(2,"p-panel",8)(3,"div",9)(4,"div",6)(5,"div",10),r(6,"Name"),o(),n(7,"div",10),r(8),o()(),n(9,"div",6)(10,"div",10),r(11,"Description"),o(),n(12,"div",10),r(13),o()()()()()()),t&2){let e=a(2);p(8),c(e.journalTag().name),p(5),c(e.journalTag().description)}}function A(t,d){if(t&1&&u(0,W,14,2,"div",6),t&2){let e=a();h(e.journalTag()?0:-1)}}var tt=(()=>{class t{constructor(){this.journalTagService=l(F),this.route=l(I),this.router=l(E),this.journalTag=M(this.route.queryParamMap.pipe(f(e=>e.has("id")),_(e=>this.journalTagService.journalTagInfo(e.get("id"))),R("Journal Tag Info ")),{initialValue:null})}onJournalTagDelete(){this.journalTagService.journalTagDelete(this.journalTag().id).pipe(x(()=>this.router.navigate(["/pages/accounting-setup/journal-tag"]))).subscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=C({type:t,selectors:[["app-journal-tag-info"]],decls:5,vars:1,consts:[["actionButton",""],["content",""],["pageTitle","Journal Tag Form",3,"hasMainWrapperPadding"],[1,"d-flex","gap-2"],["severity","secondary","outlined","","label","Edit","icon","fa-solid fa-pen-to-square",3,"routerLink","queryParams"],["severity","secondary","outlined","","label","Delete","icon","fa-solid fa-trash",3,"onClick"],[1,"row"],[1,"col-6"],["styleClass","rounded-2"],[1,"d-flex","flex-column","gap-2"],[1,"col"]],template:function(i,g){i&1&&(n(0,"app-main-panel",2),u(1,L,4,5,"ng-template",null,0,s)(3,A,1,1,"ng-template",null,1,s),o()),i&2&&m("hasMainWrapperPadding",!0)},dependencies:[w,k,q,P,D],encapsulation:2})}}return t})();export{tt as JournalTagInfoComponent};
@@ -1,4 +1,4 @@
1
- import{a as Ie}from"./chunk-MHRSQRHT.js";import{a as Te}from"./chunk-M4SSELXT.js";import{a as xe}from"./chunk-S27Z7D3D.js";import{a as S,f as j,h as N}from"./chunk-ME4ALIS7.js";import{Da as I,Ha as ve,La as we,Ma as b,Ua as Q,ma as Ce,na as ye}from"./chunk-VMI3QWC6.js";import{h as U,j as ue,k as de,l as fe,m as he,s as M}from"./chunk-ZK43JB4A.js";import{c as J,d as K,f as L,g as ge,h as P,j as be,l as _e}from"./chunk-F2X3VGZZ.js";import{$b as q,$c as O,Aa as H,Ba as ee,Cb as h,Dc as k,Eb as g,Fc as X,Gc as pe,Ic as me,Lb as l,Mb as s,Ob as oe,Pb as ae,Qb as v,Rb as $,Wb as p,Xb as m,Yb as u,Zb as ie,_b as ne,_c as B,ac as A,ca as D,da as E,fc as Z,gc as c,hc as se,ia as w,ib as r,ic as re,lc as z,mc as R,nc as T,ob as te,oc as x,qa as C,ra as y,sa as F,sc as G,tc as le,ua as d,uc as ce,yb as f,zb as V}from"./chunk-6QJHEOXN.js";var Se=["*"],De=({dt:e})=>`
1
+ import{a as Ie}from"./chunk-ZC7ZENN7.js";import{a as Te}from"./chunk-L4ENW4RK.js";import{a as xe}from"./chunk-VM56C6ZV.js";import{a as S,f as j,h as N}from"./chunk-O44DI62I.js";import{Ea as I,Ia as ve,Ma as we,Na as b,Va as Q,na as Ce,oa as ye}from"./chunk-MGIEURA2.js";import{c as J,d as K,f as L,g as ge,h as P,j as be,l as _e}from"./chunk-F2X3VGZZ.js";import{j as U,l as ue,m as de,n as fe,o as he,u as M}from"./chunk-DM2JLWKE.js";import{$b as q,$c as O,Aa as H,Ba as ee,Cb as h,Dc as k,Eb as g,Fc as X,Gc as pe,Ic as me,Lb as l,Mb as s,Ob as oe,Pb as ae,Qb as v,Rb as $,Wb as p,Xb as m,Yb as u,Zb as ie,_b as ne,_c as B,ac as A,ca as D,da as E,fc as Z,gc as c,hc as se,ia as w,ib as r,ic as re,lc as z,mc as R,nc as T,ob as te,oc as x,qa as C,ra as y,sa as F,sc as G,tc as le,ua as d,uc as ce,yb as f,zb as V}from"./chunk-6QJHEOXN.js";var Se=["*"],De=({dt:e})=>`
2
2
  .p-floatlabel {
3
3
  display: block;
4
4
  position: relative;
@@ -1 +1 @@
1
- import{a}from"./chunk-5DRALZZF.js";import{ca as c,i as o,ia as n}from"./chunk-6QJHEOXN.js";import{a as i}from"./chunk-YQFG5XE2.js";var d=(()=>{class r{constructor(){this.httpService=n(a),this.categoryOptionsCache$=new o(1),this.isInitialized=!1}getChartOfAccountLoader(){return this.httpService.get("","api/ChartOfAccountLoader/GetPaginatedList")}getPaginatedChartAccounts(t){let e=i({},t);return this.httpService.post("","api/ChartOfAccount/GetPaginatedList",e,{observe:"body"})}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.isInitialized||(this.isInitialized=!0,this.fetchCategoryOptions().subscribe({next:t=>this.categoryOptionsCache$.next(t),error:t=>this.categoryOptionsCache$.error(t)})),this.categoryOptionsCache$.asObservable()}exportChartOfAccounts(t){return this.httpService.post(void 0,"api/ChartOfAccountExport/export",t,{observe:"response",responseType:"blob"})}importPreviewChartOfAccounts(t){return this.httpService.post(void 0,"api/chartofaccount/importpreview",t)}importConfirmChartOfAccounts(t){return this.httpService.post(void 0,"api/chartofaccount/importconfirm",t)}discountedChartAccounts(t,e){return this.httpService.put(void 0,`/api/ChartOfAccount/${t}/discontinued`,e)}static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275prov=c({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();export{d as a};
1
+ import{a}from"./chunk-TOR7QRRB.js";import{ca as c,i as o,ia as n}from"./chunk-6QJHEOXN.js";import{a as i}from"./chunk-YQFG5XE2.js";var d=(()=>{class r{constructor(){this.httpService=n(a),this.categoryOptionsCache$=new o(1),this.isInitialized=!1}getChartOfAccountLoader(){return this.httpService.get("","api/ChartOfAccountLoader/GetPaginatedList")}getPaginatedChartAccounts(t){let e=i({},t);return this.httpService.post("","api/ChartOfAccount/GetPaginatedList",e,{observe:"body"})}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.isInitialized||(this.isInitialized=!0,this.fetchCategoryOptions().subscribe({next:t=>this.categoryOptionsCache$.next(t),error:t=>this.categoryOptionsCache$.error(t)})),this.categoryOptionsCache$.asObservable()}exportChartOfAccounts(t){return this.httpService.post(void 0,"api/ChartOfAccountExport/export",t,{observe:"response",responseType:"blob"})}importPreviewChartOfAccounts(t){return this.httpService.post(void 0,"api/chartofaccount/importpreview",t)}importConfirmChartOfAccounts(t){return this.httpService.post(void 0,"api/chartofaccount/importconfirm",t)}discountedChartAccounts(t,e){return this.httpService.put(void 0,`/api/ChartOfAccount/${t}/discontinued`,e)}static{this.\u0275fac=function(e){return new(e||r)}}static{this.\u0275prov=c({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();export{d as a};
@@ -1,4 +1,4 @@
1
- import{a as ee}from"./chunk-VMI3QWC6.js";import{Ab as q,Dc as Q,Fa as z,ba as J,ia as X}from"./chunk-6QJHEOXN.js";import{a as m,b as E,c as x}from"./chunk-YQFG5XE2.js";var _={mask:/^.*$/,preprocessors:[],postprocessors:[],plugins:[],overwriteMode:"shift"},U=class{constructor(){this.now=null,this.past=[],this.future=[]}undo(){let e=this.past.pop();e&&this.now&&(this.future.push(this.now),this.updateElement(e,"historyUndo"))}redo(){let e=this.future.pop();e&&this.now&&(this.past.push(this.now),this.updateElement(e,"historyRedo"))}updateHistory(e){if(!this.now){this.now=e;return}let s=this.now.value!==e.value,t=this.now.selection.some((r,i)=>r!==e.selection[i]);!s&&!t||(s&&(this.past.push(this.now),this.future=[]),this.now=e)}updateElement(e,s){this.now=e,this.updateElementState(e,{inputType:s,data:null})}};function pe(n,...e){return e.every(({value:s})=>s===n.value)}function j(n,...e){return e.every(({value:s,selection:t})=>s===n.value&&t[0]===n.selection[0]&&t[1]===n.selection[1])}function te({value:n,selection:e},s,t){let[r,i]=e,o=typeof t=="function"?t({value:n,selection:e}):t;return{value:n,selection:o==="replace"?[r,Math.max(r+s.length,i)]:[r,i]}}function F(n){return typeof n=="string"}function ne(n,e,s,t){let r="";for(let i=e.length;i<n.length;i++){let o=n[i]||"",a=t?.value[i]===o;if(!F(o)||o===s&&!a)return r;r+=o}return r}function ie(n,e){return Array.isArray(e)?n.length===e.length&&Array.from(n).every((s,t)=>{let r=e[t]||"";return F(r)?s===r:s.match(r)}):e.test(n)}function me(n,e,s){let t=null,r=null,i=Array.from(n.value).reduce((a,c,u)=>{let l=ne(e,a,c,s),d=a+l,h=e[d.length]||"";return t===null&&u>=n.selection[0]&&(t=d.length),r===null&&u>=n.selection[1]&&(r=d.length),F(h)?d+h:c.match(h)?d+c:l.startsWith(c)?d:a},""),o=ne(e,i,"",s);return{value:ie(i+o,e)?i+o:i,selection:[t??i.length,r??i.length]}}function Ee({value:n,selection:e},s){let[t,r]=e,i=t,o=r,a=Array.from(n).reduce((c,u,l)=>{let d=c+u;return t===l&&(i=c.length),r===l&&(o=c.length),d.match(s)?d:c},"");return{value:a,selection:[Math.min(i,a.length),Math.min(o,a.length)]}}function I(n,e,s=null){if(ie(n.value,e))return n;let{value:t,selection:r}=Array.isArray(e)?me(n,e,s):Ee(n,e);return{selection:r,value:Array.isArray(e)?t.slice(0,e.length):t}}function se(n,e){if(!Array.isArray(e))return n;let[s,t]=n.selection,r=[],i=Array.from(n.value).reduce((o,a,c)=>{let u=e[c]||"";return c===s&&r.push(o.length),c===t&&r.push(o.length),F(u)&&u===a?o:o+a},"");return r.length<2&&r.push(...new Array(2-r.length).fill(i.length)),{value:i,selection:[r[0],r[1]]}}var L=class{constructor(e,s){this.maskOptions=s,this.unmaskInitialState={value:"",selection:[0,0]},this.value="",this.selection=[0,0];let t=this.getMaskExpression(e),{value:r,selection:i}=I(e,t);this.unmaskInitialState=se({value:r,selection:i},t),this.value=r,this.selection=i}addCharacters(e){let{value:s,selection:t,maskOptions:r}=this,i={value:s,selection:t},{selection:[o,a]}=te(i,e,r.overwriteMode),c=this.getMaskExpression({value:s.slice(0,o)+e+s.slice(a),selection:[o+e.length,o+e.length]}),[u,l]=te(this.unmaskInitialState,e,r.overwriteMode).selection,d=this.unmaskInitialState.value.slice(0,u)+e,h=d.length,g=I({value:d+this.unmaskInitialState.value.slice(l),selection:[h,h]},c,i),p=s.slice(0,o),f=I({value:d,selection:[h,h]},c,i);if(f.value===p||f.value.length<p.length&&se(f,c).value===this.unmaskInitialState.value.slice(0,u)||j(this,g))throw new Error("Invalid mask value");this.value=g.value,this.selection=g.selection}deleteCharacters(){let[e,s]=this.selection;if(e===s||!s)return;let{value:t}=this,r=this.getMaskExpression({value:t.slice(0,e)+t.slice(s),selection:[e,e]}),i={value:t},[o,a]=this.unmaskInitialState.selection,c=this.unmaskInitialState.value.slice(0,o)+this.unmaskInitialState.value.slice(a),u=I({value:c,selection:[o,o]},r,i);this.value=u.value,this.selection=u.selection}getMaskExpression(e){let{mask:s}=this.maskOptions;return typeof s=="function"?s(e):s}},T=class{constructor(e){this.element=e,this.listeners=[]}listen(e,s,t){let r=s;this.element.addEventListener(e,r,t),this.listeners.push(()=>this.element.removeEventListener(e,r,t))}destroy(){this.listeners.forEach(e=>e())}},w={CTRL:1,ALT:2,SHIFT:4,META:8},N={Y:89,Z:90};function C(n,e,s){return n.ctrlKey===!!(e&w.CTRL)&&n.altKey===!!(e&w.ALT)&&n.shiftKey===!!(e&w.SHIFT)&&n.metaKey===!!(e&w.META)&&n.keyCode===s}function Se(n){return C(n,w.CTRL,N.Y)||C(n,w.CTRL|w.SHIFT,N.Z)||C(n,w.META|w.SHIFT,N.Z)}function ve(n){return C(n,w.CTRL,N.Z)||C(n,w.META,N.Z)}function y(n,e){let s=n.value;if(typeof e=="string")n.value=e;else{let[t,r]=e.selection;n.value=e.value,n.matches(":focus")&&n.setSelectionRange?.(t,r)}n.value!==s&&n.dispatchEvent(new Event("input",{bubbles:!0}))}function De({value:n,selection:e},s){let[t,r]=e;if(t!==r)return[t,r];let i=s?n.slice(t).indexOf(`
1
+ import{a as ee}from"./chunk-MGIEURA2.js";import{Ab as q,Dc as Q,Fa as z,ba as J,ia as X}from"./chunk-6QJHEOXN.js";import{a as m,b as E,c as x}from"./chunk-YQFG5XE2.js";var _={mask:/^.*$/,preprocessors:[],postprocessors:[],plugins:[],overwriteMode:"shift"},U=class{constructor(){this.now=null,this.past=[],this.future=[]}undo(){let e=this.past.pop();e&&this.now&&(this.future.push(this.now),this.updateElement(e,"historyUndo"))}redo(){let e=this.future.pop();e&&this.now&&(this.past.push(this.now),this.updateElement(e,"historyRedo"))}updateHistory(e){if(!this.now){this.now=e;return}let s=this.now.value!==e.value,t=this.now.selection.some((r,i)=>r!==e.selection[i]);!s&&!t||(s&&(this.past.push(this.now),this.future=[]),this.now=e)}updateElement(e,s){this.now=e,this.updateElementState(e,{inputType:s,data:null})}};function pe(n,...e){return e.every(({value:s})=>s===n.value)}function j(n,...e){return e.every(({value:s,selection:t})=>s===n.value&&t[0]===n.selection[0]&&t[1]===n.selection[1])}function te({value:n,selection:e},s,t){let[r,i]=e,o=typeof t=="function"?t({value:n,selection:e}):t;return{value:n,selection:o==="replace"?[r,Math.max(r+s.length,i)]:[r,i]}}function F(n){return typeof n=="string"}function ne(n,e,s,t){let r="";for(let i=e.length;i<n.length;i++){let o=n[i]||"",a=t?.value[i]===o;if(!F(o)||o===s&&!a)return r;r+=o}return r}function ie(n,e){return Array.isArray(e)?n.length===e.length&&Array.from(n).every((s,t)=>{let r=e[t]||"";return F(r)?s===r:s.match(r)}):e.test(n)}function me(n,e,s){let t=null,r=null,i=Array.from(n.value).reduce((a,c,u)=>{let l=ne(e,a,c,s),d=a+l,h=e[d.length]||"";return t===null&&u>=n.selection[0]&&(t=d.length),r===null&&u>=n.selection[1]&&(r=d.length),F(h)?d+h:c.match(h)?d+c:l.startsWith(c)?d:a},""),o=ne(e,i,"",s);return{value:ie(i+o,e)?i+o:i,selection:[t??i.length,r??i.length]}}function Ee({value:n,selection:e},s){let[t,r]=e,i=t,o=r,a=Array.from(n).reduce((c,u,l)=>{let d=c+u;return t===l&&(i=c.length),r===l&&(o=c.length),d.match(s)?d:c},"");return{value:a,selection:[Math.min(i,a.length),Math.min(o,a.length)]}}function I(n,e,s=null){if(ie(n.value,e))return n;let{value:t,selection:r}=Array.isArray(e)?me(n,e,s):Ee(n,e);return{selection:r,value:Array.isArray(e)?t.slice(0,e.length):t}}function se(n,e){if(!Array.isArray(e))return n;let[s,t]=n.selection,r=[],i=Array.from(n.value).reduce((o,a,c)=>{let u=e[c]||"";return c===s&&r.push(o.length),c===t&&r.push(o.length),F(u)&&u===a?o:o+a},"");return r.length<2&&r.push(...new Array(2-r.length).fill(i.length)),{value:i,selection:[r[0],r[1]]}}var L=class{constructor(e,s){this.maskOptions=s,this.unmaskInitialState={value:"",selection:[0,0]},this.value="",this.selection=[0,0];let t=this.getMaskExpression(e),{value:r,selection:i}=I(e,t);this.unmaskInitialState=se({value:r,selection:i},t),this.value=r,this.selection=i}addCharacters(e){let{value:s,selection:t,maskOptions:r}=this,i={value:s,selection:t},{selection:[o,a]}=te(i,e,r.overwriteMode),c=this.getMaskExpression({value:s.slice(0,o)+e+s.slice(a),selection:[o+e.length,o+e.length]}),[u,l]=te(this.unmaskInitialState,e,r.overwriteMode).selection,d=this.unmaskInitialState.value.slice(0,u)+e,h=d.length,g=I({value:d+this.unmaskInitialState.value.slice(l),selection:[h,h]},c,i),p=s.slice(0,o),f=I({value:d,selection:[h,h]},c,i);if(f.value===p||f.value.length<p.length&&se(f,c).value===this.unmaskInitialState.value.slice(0,u)||j(this,g))throw new Error("Invalid mask value");this.value=g.value,this.selection=g.selection}deleteCharacters(){let[e,s]=this.selection;if(e===s||!s)return;let{value:t}=this,r=this.getMaskExpression({value:t.slice(0,e)+t.slice(s),selection:[e,e]}),i={value:t},[o,a]=this.unmaskInitialState.selection,c=this.unmaskInitialState.value.slice(0,o)+this.unmaskInitialState.value.slice(a),u=I({value:c,selection:[o,o]},r,i);this.value=u.value,this.selection=u.selection}getMaskExpression(e){let{mask:s}=this.maskOptions;return typeof s=="function"?s(e):s}},T=class{constructor(e){this.element=e,this.listeners=[]}listen(e,s,t){let r=s;this.element.addEventListener(e,r,t),this.listeners.push(()=>this.element.removeEventListener(e,r,t))}destroy(){this.listeners.forEach(e=>e())}},w={CTRL:1,ALT:2,SHIFT:4,META:8},N={Y:89,Z:90};function C(n,e,s){return n.ctrlKey===!!(e&w.CTRL)&&n.altKey===!!(e&w.ALT)&&n.shiftKey===!!(e&w.SHIFT)&&n.metaKey===!!(e&w.META)&&n.keyCode===s}function Se(n){return C(n,w.CTRL,N.Y)||C(n,w.CTRL|w.SHIFT,N.Z)||C(n,w.META|w.SHIFT,N.Z)}function ve(n){return C(n,w.CTRL,N.Z)||C(n,w.META,N.Z)}function y(n,e){let s=n.value;if(typeof e=="string")n.value=e;else{let[t,r]=e.selection;n.value=e.value,n.matches(":focus")&&n.setSelectionRange?.(t,r)}n.value!==s&&n.dispatchEvent(new Event("input",{bubbles:!0}))}function De({value:n,selection:e},s){let[t,r]=e;if(t!==r)return[t,r];let i=s?n.slice(t).indexOf(`
2
2
  `)+1||n.length:n.slice(0,r).lastIndexOf(`
3
3
  `)+1;return[s?t:i,s?i:r]}function Ae({value:n,selection:e},s){let[t,r]=e;return t!==r?[t,r]:(s?[t,r+1]:[t-1,r]).map(o=>Math.min(Math.max(o,0),n.length))}var xe=/\s+$/g,we=/^\s+/g,re=/\s/;function Pe({value:n,selection:e},s){let[t,r]=e;if(t!==r)return[t,r];if(s){let c=n.slice(t),[u]=c.match(we)||[""],l=c.trimStart().search(re);return[t,l!==-1?t+u.length+l:n.length]}let i=n.slice(0,r),[o]=i.match(xe)||[""],a=i.trimEnd().split("").reverse().findIndex(c=>re.exec(c));return[a!==-1?r-o.length-a:0,r]}function $(n=[]){return(e,...s)=>n.reduce((t,r)=>m(m({},t),r(t,...s)),e)}function O(n,e){let s=m(m({},_),e),t=$(s.preprocessors),r=$(s.postprocessors),i=typeof n=="string"?{value:n,selection:[0,0]}:n,{elementState:o}=t({elementState:i,data:""},"validation"),a=new L(o,s),{value:c,selection:u}=r(a,i);return typeof n=="string"?c:{value:c,selection:u}}function Me(){return n=>{let e=new T(n),s=!1,t,r=n.value;return e.listen("keydown",({key:i})=>{s=i==="Unidentified"}),e.listen("beforeinput",i=>{t=i,r=n.value}),e.listen("input",i=>{s&&t.defaultPrevented&&t.inputType==="deleteContentBackward"&&i.inputType==="deleteContentBackward"&&(n.value=r)},{capture:!0}),()=>e.destroy()}}var H=" ";function be(){let n="",e=0,s=null,t=!1;return r=>{let i=new T(r);return i.listen("beforeinput",o=>{let{value:a,selectionStart:c,selectionEnd:u}=r,l=s?.inputType==="insertText"&&s?.data===H&&!a.slice(0,Number(u)).endsWith(H);o.inputType==="insertText"&&o.data===`.${H}`&&(s?.inputType==="deleteContentBackward"&&t?(r.value=n,r.setSelectionRange?.(e,e)):l&&r.setSelectionRange?.(c,c)),t=l,s=o,n=a,e=Number((l?e:u)===a.length?u:c)}),()=>i.destroy()}}var ye=[be(),Me()],k=class extends U{constructor(e,s){super(),this.element=e,this.maskitoOptions=s,this.isTextArea=this.element.nodeName==="TEXTAREA",this.eventListener=new T(this.element),this.options=m(m({},_),this.maskitoOptions),this.upcomingElementState=null,this.preprocessor=$(this.options.preprocessors),this.postprocessor=$(this.options.postprocessors),this.teardowns=this.options.plugins.concat(ye).map(t=>t(this.element,this.options)),this.updateHistory(this.elementState),this.eventListener.listen("keydown",t=>{if(Se(t))return t.preventDefault(),this.redo();if(ve(t))return t.preventDefault(),this.undo()}),this.eventListener.listen("beforeinput",t=>{let r=t.inputType.includes("Forward");switch(this.updateHistory(this.elementState),t.inputType){case"deleteByCut":case"deleteContentBackward":case"deleteContentForward":return this.handleDelete({event:t,isForward:r,selection:Ae(this.elementState,r)});case"deleteHardLineBackward":case"deleteHardLineForward":case"deleteSoftLineBackward":case"deleteSoftLineForward":return this.handleDelete({event:t,isForward:r,selection:De(this.elementState,r),force:!0});case"deleteWordBackward":case"deleteWordForward":return this.handleDelete({event:t,isForward:r,selection:Pe(this.elementState,r)});case"historyRedo":return t.preventDefault(),this.redo();case"historyUndo":return t.preventDefault(),this.undo();case"insertCompositionText":return;case"insertLineBreak":case"insertParagraph":return this.handleEnter(t);case"insertReplacementText":return;case"insertFromDrop":case"insertFromPaste":case"insertText":default:return this.handleInsert(t,t.data??t.dataTransfer?.getData("text/plain")??"")}}),this.eventListener.listen("input",()=>{this.upcomingElementState&&!j(this.upcomingElementState,this.elementState)&&this.updateElementState(this.upcomingElementState),this.upcomingElementState=null},{capture:!0}),this.eventListener.listen("input",({inputType:t})=>{t!=="insertCompositionText"&&(this.ensureValueFitsMask(),this.updateHistory(this.elementState))}),this.eventListener.listen("compositionend",()=>{this.ensureValueFitsMask(),this.updateHistory(this.elementState)})}destroy(){this.eventListener.destroy(),this.teardowns.forEach(e=>e?.())}updateElementState({value:e,selection:s},t){let r=this.elementState.value;this.updateValue(e),this.updateSelectionRange(s),t&&r!==e&&this.dispatchInputEvent(t)}get elementState(){let{value:e,selectionStart:s,selectionEnd:t}=this.element;return{value:e,selection:[s??0,t??0]}}get maxLength(){let{maxLength:e}=this.element;return e===-1?1/0:e}updateSelectionRange([e,s]){let{element:t}=this;t.matches(":focus")&&(t.selectionStart!==e||t.selectionEnd!==s)&&t.setSelectionRange?.(e,s)}updateValue(e){(this.element.value!==e||this.element.isContentEditable)&&(this.element.value=e)}ensureValueFitsMask(){this.updateElementState(O(this.elementState,this.options),{inputType:"insertText",data:null})}dispatchInputEvent(e={inputType:"insertText",data:null}){globalThis.InputEvent&&this.element.dispatchEvent(new InputEvent("input",E(m({},e),{bubbles:!0,cancelable:!1})))}handleDelete({event:e,selection:s,isForward:t}){let r={value:this.elementState.value,selection:s},{elementState:i}=this.preprocessor({elementState:r,data:""},t?"deleteForward":"deleteBackward"),o=new L(i,this.options);o.deleteCharacters();let a=this.postprocessor(o,r);if(pe(r,i,o,a)){let[c,u]=i.selection;return e.preventDefault(),this.updateSelectionRange(t?[u,u]:[c,c])}this.upcomingElementState=a}handleInsert(e,s){let{options:t,maxLength:r,elementState:i}=this,[o,a]=i.selection,{elementState:c,data:u=s}=this.preprocessor({data:s,elementState:i},"insert"),l=new L(c,t);try{l.addCharacters(u)}catch{return e.preventDefault()}this.upcomingElementState=this.clampState(this.postprocessor(l,i)),i.value.length>=r&&o===a&&(t.overwriteMode==="replace"&&!j(this.upcomingElementState,i)?this.dispatchInputEvent({inputType:"insertText",data:s}):this.upcomingElementState=null)}handleEnter(e){(this.isTextArea||this.element.isContentEditable)&&this.handleInsert(e,`
4
4
  `)}clampState({value:e,selection:s}){let[t,r]=s,i=this.maxLength;return{value:e.slice(0,i),selection:[Math.min(t,i),Math.min(r,i)]}}};function B(n,e,s){let t=Math.min(Number(s),Math.max(Number(e),Number(n)));return n instanceof Date?new Date(t):t}var Re=[".",",","\u0431","\u044E"];var G="\xA0",Ne="\u200B",Ce="\u2013",Le="\u2014",W="-",ue="\u2212",Te="\u30FC";var de=[W,Ce,Le,Te,ue];var lt=new RegExp(`[${G}APM]+$`,"g"),ut=new RegExp(`${G}[AP]M$`,"g"),Ie=[":","."];function R(n){return n}function $e(){}var he=/[\\^$.*+?()[\]{}|]/g,ke=new RegExp(he.source);function S(n){return n&&ke.test(n)?n.replaceAll(he,String.raw`\$&`):n}function _e(n,e){let s="";for(let t=0;t<n.length;t++){if(n[t]!==e[t])return s;s+=n[t]}return s}function oe(n){return n.replaceAll(/[0-9]/g,e=>String.fromCharCode(e.charCodeAt(0)-65248))}function Fe(){return({elementState:n,data:e})=>{let{value:s,selection:t}=n;return{elementState:{selection:t,value:oe(s)},data:oe(e)}}}var dt=new RegExp(`[${Ie.map(S).join("")}]$`);function Oe(n){let e=new RegExp(`${S(n)}$`),s=new RegExp(n&&`(${n.split("").map(S).reduce((t,r,i,o)=>`${t}|${o.slice(0,i+1).join("")}`)})$`);return n?({value:t,selection:r},i)=>{if(!t&&!i.value.endsWith(n))return{value:t,selection:r};if(!t.match(s)&&!i.value.endsWith(n))return{selection:r,value:t+n};let o=i.value.replace(e,""),a=i.selection[1]>o.length,c=_e(o,t);return{selection:r,value:Array.from(n).reverse().reduce((u,l,d)=>{let h=u.length-1-d,g=c[h]===l&&a;return u[h]!==l||g?u.slice(0,h+1)+l+u.slice(h+1):u},t)}}:R}function Ve(n){return n?({value:e,selection:s},t)=>{if(e.startsWith(n)||!e&&!t.value.startsWith(n))return{value:e,selection:s};let[r,i]=s,o=Array.from(n).reduce((c,u,l)=>c[l]===u?c:c.slice(0,l)+u+c.slice(l),e),a=o.length-e.length;return{selection:[r+a,i+a],value:o}}:R}function Z(n,e,s){return(t,r)=>{let i=()=>e(t,r);return t.addEventListener(n,i,s),()=>t.removeEventListener(n,i,s)}}var ht=Intl.DateTimeFormat("en-US",{month:"2-digit",day:"2-digit",year:"numeric"});function He(n,{prefix:e,postfix:s,decimalSeparator:t,decimalPseudoSeparators:r,minusSign:i,minusPseudoSigns:o,maximumFractionDigits:a}){let c=[...r,t].map(M=>`\\${M}`).join(""),u=[...o,i].map(M=>`\\${M}`).join(""),l=e&&new RegExp(`^([${u}])?(${e.split("").map(S).join("?")}?)`),d=s&&new RegExp(`${s.split("").map(S).join("?")}?$`),[,,h=""]=n.match(l)??[],[g=""]=n.match(d)??[],p=n.replace(l,e&&"$1").replace(d,""),f=new RegExp(t&&a>0?`^[${c}]`:""),P=new RegExp(n.endsWith(s)?"":String.raw`^\d+`),A=new RegExp(t&&a>0?`[${c}]$`:""),b=new RegExp(n.startsWith(e)?"":String.raw`\d+$`);return{extractedPrefix:h.replace(A,"").replace(b,""),extractedPostfix:g.replace(f,"").replace(P,""),cleanValue:(b.exec(h)?.[0]??"")+(A.exec(h)?.[0]??"")+p+(P.exec(g)?.[0]??"")+(f.exec(g)?.[0]??"")}}function ge({decimalPseudoSeparators:n,decimalSeparator:e,maximumFractionDigits:s,min:t,minusSign:r,minusPseudoSigns:i,postfix:o,prefix:a,thousandSeparator:c}){let u=t<0&&[r,...i].includes(a)?"":ce(a),l=String.raw`\d`,d=t<0?`[${r}${i.map(A=>`\\${A}`).join("")}]?`:"",h=c?`[${l}${S(c).replaceAll(/\s/g,String.raw`\s`)}]*`:`[${l}]*`,g=Number.isFinite(s)?s:"",p=s>0?`([${S(e)}${n.map(S).join("")}]${l}{0,${g}})?`:"",f=ce(o),P=`(${d+u}|${u+d})`;return new RegExp(`^${P}${h}${p}${f}$`)}function ce(n){return n?`${n.split("").map(e=>`${S(e)}?`).join("")}`:""}function v(n,e){let{extractedPrefix:s,cleanValue:t,extractedPostfix:r}=He(n,e),{decimalSeparator:i,minusSign:o,minusPseudoSigns:a,decimalPseudoSeparators:c,maximumFractionDigits:u}=e,[l="",d=""]=i?t.split(i):[t],h=[o,...a].map(f=>`\\${f}`).join(""),[,g="",p=""]=new RegExp(`^([${h}])?(.*)`).exec(l)||[];return{prefix:s,minus:g,integerPart:p,decimalPart:d,decimalSeparator:i&&u>0?new RegExp(`[${[i,...c].map(S).join("")}]`,"i").exec(t)?.[0]??"":"",postfix:r}}function D({minus:n="",integerPart:e="",decimalPart:s="",prefix:t="",postfix:r="",decimalSeparator:i=""},o){let a=s?o.decimalSeparator:i;return`${o.negativePattern==="minusFirst"?n+t:t+n}${e}${a}${s}${r}`}function Y(n,{decimalSeparator:e=".",minusSign:s="",minusPseudoSigns:t=de}={}){let r=!!new RegExp(`^\\D*[${S(s)}\\${t.join("\\")}]`).exec(n),i=S(e),o=n.replaceAll(new RegExp(`${i}(?!\\d)`,"g"),"").replaceAll(new RegExp(`[^\\d${i}]`,"g"),"").replace(e,e&&".");return o?+`${r?W:""}${o}`:NaN}function Ue(n){let e=String(n),[s="",t]=e.split("e-"),r=e;if(t){let[,i]=s.split("."),o=Number(t)+(i?.length??0);r=n.toFixed(o)}return r}function je({decimalSeparator:n,thousandSeparator:e,decimalPseudoSeparators:s=Re}){return s.filter(t=>t!==e&&t!==n)}function Be(n){return({elementState:e,data:s})=>{let{value:t}=e,a=v(s,n),{prefix:r,postfix:i}=a,o=x(a,["prefix","postfix"]);return{elementState:e,data:D(E(m({},o),{prefix:t.startsWith(r)?"":r,postfix:t.endsWith(i)?"":i}),n)}}}function Ge(n){let{minimumFractionDigits:e}=n;return e?({value:s,selection:t})=>{if(Number.isNaN(Y(s,n)))return{value:s,selection:t};let o=v(s,n),{decimalPart:r}=o,i=x(o,["decimalPart"]);return{value:D(E(m({},i),{decimalPart:r.padEnd(e,"0")}),n),selection:t}}:R}function We(n){return({value:e,selection:s})=>{let[t]=s,{prefix:r,minus:i,integerPart:o,decimalSeparator:a,decimalPart:c,postfix:u}=v(e,n),l=!o&&!c&&a;return!o&&!Number(c)&&t===(i+r).length||l?{selection:s,value:D({prefix:r,minus:i,postfix:u},n)}:{value:e,selection:s}}}function Ze(n){let e=!0,s=ge(E(m({},n),{prefix:"",postfix:"",thousandSeparator:"",maximumFractionDigits:1/0,min:Number.MIN_SAFE_INTEGER}));return({elementState:t,data:r})=>{if(!e)return{elementState:t,data:r};e=!1;let{value:i,selection:o}=t,[a,c]=o,f=v(i,n),{prefix:u,postfix:l}=f,d=x(f,["prefix","postfix"]),h=D(d,n),g=O({selection:[Math.max(a-u.length,0),Math.max(c-u.length,0)],value:h},{mask:s}),p=h.slice(0,Math.max(c-u.length,0)).length-g.value.slice(0,g.selection[1]).length;return{elementState:{selection:[Math.max(a-p,0),Math.max(c-p,0)],value:D(E(m({},v(g.value,n)),{prefix:u,postfix:l}),n)},data:r}}}function Ye(n){return({elementState:e},s)=>{let{value:t,selection:r}=e,[i,o]=r,{prefix:a,minusSign:c,negativePattern:u}=n,l=u==="prefixFirst"?a:c+a,d=D(E(m({},v(t,n)),{minus:""}),n),h=t.length-d.length;return{elementState:s.includes("delete")&&t.includes(c)&&i<l.length?{value:d,selection:[Math.max(i-h,l.length-1),Math.max(o-h,l.length-1)]}:e}}}function Ke(n){let{thousandSeparator:e}=n,s=r=>{let i=S(e);return r.replace(new RegExp(`^(\\D+)?[0${i}]+(?=0)`),"$1").replace(new RegExp(`^(\\D+)?[0${i}]+(?=[1-9])`),"$1")},t=(r,i)=>{let o=r.slice(0,i),a=r.slice(i).startsWith("0");return o.length-s(o).length+(a?1:0)};return({value:r,selection:i})=>{let[o,a]=i,g=v(r,n),{integerPart:c}=g,u=x(g,["integerPart"]),l=s(c);if(c===l)return{value:r,selection:i};let d=o-t(r,o),h=a-t(r,a);return{value:D(E(m({},u),{integerPart:l}),n),selection:[Math.max(d,0),Math.max(h,0)]}}}function Je({min:n,max:e,decimalSeparator:s,minusSign:t}){return({value:r,selection:i})=>{let o=Y(r,{decimalSeparator:s,minusSign:t}),a=o>0?Math.min(o,e):Math.max(o,n);if(o&&a!==o){let c=`${a}`.replace(".",s).replace(W,t);return{value:c,selection:[c.length,c.length]}}return{value:r,selection:i}}}function Xe({decimalSeparator:n,thousandSeparator:e,minimumFractionDigits:s}){return({elementState:t,data:r},i)=>{let{value:o,selection:a}=t,[c,u]=a,l=o.slice(c,u),d=s?[n,e]:[e],h=!!s&&c>o.indexOf(n)&&!!l.match(/^0+$/gi);return i!=="deleteBackward"&&i!=="deleteForward"||!d.includes(l)&&!h?{elementState:t,data:r}:{elementState:{value:o,selection:i==="deleteForward"?[u,u]:[c,c]},data:r}}}function ze(n){let{maximumFractionDigits:e,decimalSeparator:s}=n,t=new RegExp(`^\\D*${S(s)}`);return({elementState:r,data:i})=>{let{value:o,selection:a}=r,A=v(o,n),{prefix:c,postfix:u}=A,l=x(A,["prefix","postfix"]),d=D(l,n),[h,g]=a,p=B(h-c.length,0,d.length),f=B(g-c.length,0,d.length);if(e<=0||d.slice(0,p).includes(s)||d.slice(f).includes(s)||!i.match(t))return{elementState:r,data:i};let P=/\d+/.exec(d.slice(0,p));return{elementState:r,data:P?i:`0${i}`}}}function qe({prefix:n,minusSign:e,negativePattern:s}){return({value:t,selection:r},i)=>Ve(t.includes(e)&&s==="minusFirst"?e+n:n)({value:t,selection:r},i)}function ae(t){var r=t,{validCharacter:n,pseudoCharacters:e}=r,s=x(r,["validCharacter","pseudoCharacters"]);let i=new RegExp(`[${e.join("")}]`,"gi");return({elementState:o,data:a})=>{let{value:c,selection:u}=o,p=v(c,s),{prefix:l,postfix:d}=p,h=x(p,["prefix","postfix"]),g=D(h,s).replace(i,n);return{elementState:{selection:u,value:D(E(m({},v(g,s)),{prefix:l,postfix:d}),s)},data:a.replace(i,n)}}}function Qe(n){let{decimalSeparator:e}=n;return e?({elementState:s,data:t})=>{let{value:r,selection:i}=s,[o,a]=i;return{elementState:s,data:!v(r,n).decimalSeparator||r.slice(o,a+1).includes(e)?t:t.replaceAll(new RegExp(S(e),"gi"),"")}}:R}function et(n){let{thousandSeparator:e}=n;if(!e)return R;let s=(...t)=>t.every(r=>/\s/.test(r));return({value:t,selection:r})=>{let[i,o]=r,[a,c]=r,{prefix:u,minus:l,integerPart:d,decimalSeparator:h,decimalPart:g,postfix:p}=v(t,n),f=D({minus:l,integerPart:d,decimalSeparator:h,decimalPart:g},n).length-(l+d+(h?h+g:"")).length;f>0&&i&&i<=f&&(a-=f),f>0&&o&&o<=f&&(c-=f);let P=Array.from(d).reduceRight((A,b,M)=>{let V=!(!M&&b===e)&&!!A.length&&(A.length+1)%4===0,K=b===e||s(b,e);return V&&K?e+A:!V&&K?(a&&M<=i&&a--,c&&M<=o&&c--,A):V?(M<i&&a++,M<o&&c++,b+e+A):b+A},"");return{value:D({prefix:u,minus:l,integerPart:P,decimalSeparator:h,decimalPart:g,postfix:p},n),selection:[a,c]}}}function tt(n){let{maximumFractionDigits:e,decimalSeparator:s}=n;if(e>0||!s)return R;let t=new RegExp(`${S(s)}.*$`,"g");return({elementState:r,data:i})=>{let{value:o,selection:a}=r,f=v(o,n),{prefix:c,postfix:u}=f,l=x(f,["prefix","postfix"]),[d,h]=a,g=D(l,n).replace(t,""),p=D(E(m({},v(g,n)),{prefix:c,postfix:u}),n);return{elementState:{selection:[Math.min(d,p.length),Math.min(h,p.length)],value:p},data:i.replace(t,"")}}}var le=[0,0];function nt(n){let e=Ke(n);return Z("blur",s=>{let t=e({value:s.value,selection:le},{value:"",selection:le}).value;y(s,t)},{capture:!0})}function st({min:n,max:e,decimalSeparator:s,minusSign:t}){return Z("blur",(r,i)=>{let o=Y(r.value,{decimalSeparator:s,minusSign:t}),a=B(o,n,e);!Number.isNaN(o)&&o!==a&&y(r,O(Ue(a),i))},{capture:!0})}function rt(n){let{decimalSeparator:e}=n;return e?Z("blur",s=>{let c=v(s.value,n),{prefix:t,postfix:r}=c,i=x(c,["prefix","postfix"]),o=D(i,n).replace(new RegExp(`^(\\D+)?${S(e)}`),`$10${e}`),a=D(E(m({},v(o,n)),{prefix:t,postfix:r}),n);y(s,a)},{capture:!0}):$e}function fe({max:n=Number.MAX_SAFE_INTEGER,min:e=Number.MIN_SAFE_INTEGER,thousandSeparator:s=G,decimalSeparator:t=".",decimalPseudoSeparators:r,prefix:i="",postfix:o="",minusSign:a=ue,minusPseudoSigns:c=de.filter(h=>h!==s&&h!==t&&h!==a),maximumFractionDigits:u=0,minimumFractionDigits:l=0,negativePattern:d="prefixFirst"}={}){let h=je({decimalSeparator:t,thousandSeparator:s,decimalPseudoSeparators:r}),g={max:n,min:e,thousandSeparator:s,postfix:o,minusSign:a,minusPseudoSigns:c,maximumFractionDigits:u,decimalPseudoSeparators:h,negativePattern:d,decimalSeparator:u<=0&&t===s?"":t,prefix:i.endsWith(t)&&u>0?`${i}${Ne}`:i,minimumFractionDigits:Math.min(l,u)};return E(m({},_),{mask:ge(g),preprocessors:[Fe(),Ze(g),Be(g),ae(E(m({},g),{validCharacter:a,pseudoCharacters:c})),ae(E(m({},g),{validCharacter:t,pseudoCharacters:h})),ze(g),Xe(g),tt(g),Qe(g),Ye(g)],postprocessors:[Je(g),qe(g),Oe(o),et(g),Ge(g),We(g)],plugins:[nt(g),rt(g),st(g)],overwriteMode:l>0?({value:p,selection:[f]})=>f<=p.indexOf(t)?"shift":"replace":"shift"})}var xt=(()=>{class n{constructor(){this.el=X(z),this.min=-999999999999,this.max=999999999999,this.precision=2,this.writing=!1,this.onChange=s=>{},this.onTouched=()=>{}}ngOnInit(){let s=this.el.nativeElement,u=fe({min:this.min,max:this.max,thousandSeparator:",",decimalSeparator:".",minimumFractionDigits:0,maximumFractionDigits:this.precision,minusSign:"-"}),{plugins:t}=u,r=x(u,["plugins"]),i=l=>{let d=()=>{setTimeout(()=>{let h=l.value;l.setSelectionRange(0,h.length)})};return l.addEventListener("focus",d),()=>l.removeEventListener("focus",d)},o=l=>{let d=()=>{if(this.writing)return;let h=l.value.replace(/,/g,""),g=h===""?null:Number(h);this.onChange(Number.isNaN(g)?null:g)};return l.addEventListener("input",d),()=>l.removeEventListener("input",d)},a=l=>{let d=()=>{this.onTouched(),l.value.replace(/,/g,"").trim()||(this.writeValue(0),this.onChange(0))};return l.addEventListener("blur",d),()=>l.removeEventListener("blur",d)},c=E(m({},r),{plugins:[...t,i,o,a]});this.destroyMask=new k(s,c)}writeValue(s){this.writing=!0;let t="0";s!=null&&s!==""&&(t=Number(s).toLocaleString("en-US",{minimumFractionDigits:0,maximumFractionDigits:this.precision})),y(this.el.nativeElement,t),this.writing=!1}registerOnChange(s){this.onChange=s}registerOnTouched(s){this.onTouched=s}setDisabledState(s){this.el.nativeElement.disabled=s}ngOnDestroy(){this.destroyMask?.destroy()}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275dir=q({type:n,selectors:[["","appMaskNumber",""]],inputs:{min:"min",max:"max",precision:"precision"},features:[Q([{provide:ee,useExisting:J(()=>n),multi:!0}])]})}}return n})();export{xt as a};
@@ -0,0 +1 @@
1
+ import{a as y,b as z}from"./chunk-VKUW7E75.js";import"./chunk-LBXNL7E4.js";import{m as V}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as j,b as R}from"./chunk-5U7KZJ3H.js";import"./chunk-FHJOSHI3.js";import{i as q}from"./chunk-J3HFAWXU.js";import"./chunk-VM56C6ZV.js";import{a as N,b as G}from"./chunk-ISIYG4D5.js";import"./chunk-ALLR2NXQ.js";import"./chunk-FNGX2XFA.js";import"./chunk-BFEM6LX7.js";import{w as O,x as D,y as H,z as L}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import"./chunk-MGIEURA2.js";import"./chunk-TOR7QRRB.js";import{a as I}from"./chunk-YQYRAH7V.js";import"./chunk-KL3TPLRB.js";import"./chunk-RVUOVLL5.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import{p as $,u as F}from"./chunk-DM2JLWKE.js";import{Dc as P,Eb as x,Ec as b,Mb as s,Oc as c,Pb as C,Pc as l,Rb as h,Sc as S,W as M,Wb as n,Xb as o,Y as k,Yb as u,ac as v,fc as T,gc as a,h as E,ia as m,ib as r,qa as g,ra as _,s as f,sa as w,ta as A,yb as B}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";var J=()=>({height:"calc(100vh - 100px)"});function K(t,d){if(t&1){let e=v();n(0,"p-button",6),T("onClick",function(){g(e);let p=a(2);return _(p.onFormat())}),o()}}function Q(t,d){if(t&1){let e=v();n(0,"p-button",7),c(1,"async"),c(2,"async"),T("onClick",function(){g(e);let p=a(2);return _(p.onMigrate())}),o()}if(t&2){let e=a(2);s("disabled",l(1,2,e.countInBooks$)!==0)("pTooltip",l(2,4,e.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function U(t,d){if(t&1&&(n(0,"div",3),x(1,K,1,0,"p-button",4)(2,Q,3,6,"p-button",5),o()),t&2){let e=a();r(),h(e.roleService.permissions().migrate.delete?1:-1),r(),h(e.roleService.permissions().migrate.create?2:-1)}}function W(t,d){if(t&1&&(n(0,"p-scroll-panel")(1,"p-panel")(2,"div",8),u(3,"app-migration-cards",9),c(4,"async"),w(),n(5,"svg",10),u(6,"path",11),o(),A(),u(7,"app-migration-cards",12),c(8,"async"),o()()()),t&2){let e=a();C(b(12,J)),r(),C(b(13,J)),r(2),s("migrationCount",l(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),r(4),s("migrationCount",l(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var _e=(()=>{class t{constructor(){this.migrateService=m(y),this.toastr=m(I),this.refresh$=new E(void 0),this.pageTitle="Expense Account",this.roleService=m(V)}ngOnInit(){let e=this.refresh$.pipe(k(()=>this.migrateService.getExpenseAccountCount()),M(1));this.countInPOS$=e.pipe(f(i=>Number(i.pos))),this.countInBooks$=e.pipe(f(i=>Number(i.books)))}onMigrate(){this.migrateService.migrateExpenseAccount().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Migration Successful")})}onFormat(){window.confirm("Are you sure you want to format this data? This action cannot be undone.")&&this.migrateService.formatExpenseAccount().subscribe(i=>{this.refresh$.next(),this.toastr.success(i.message,"Format Successful")})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=B({type:t,selectors:[["app-expense-account"]],features:[P([y])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger"],["label","Create","tooltipPosition","left",3,"disabled","pTooltip"],["label","Format","severity","danger",3,"onClick"],["label","Create","tooltipPosition","left",3,"onClick","disabled","pTooltip"],[1,"flex","gap-30","flex-wrap",2,"display","flex","justify-content","center","align-items","center","gap","1rem","margin-top","40px"],["migrationPlace","Accounting",3,"migrationCount","migrationTitle"],["width","40","height","40","viewBox","0 0 24 24","fill","none"],["d","M8 5l8 7-8 7","stroke","#007bff","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["migrationPlace","Books",3,"migrationCount","migrationTitle"]],template:function(i,p){i&1&&(n(0,"app-main-panel",2),x(1,U,3,2,"ng-template",null,0,S)(3,W,9,14,"ng-template",null,1,S),o()),i&2&&s("pageTitle",p.pageTitle)},dependencies:[q,F,$,R,j,G,N,L,H,z,D,O],encapsulation:2})}}return t})();export{_e as ExpenseAccountComponent};