dealposbooks 5.51.2 → 5.51.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/{chunk-3NF5ANCH.js → chunk-2FRTGIZ6.js} +1 -1
  2. package/{chunk-5UVNTB7W.js → chunk-2QKDY6BG.js} +1 -1
  3. package/chunk-3WK5CF3I.js +1 -0
  4. package/{chunk-L5IWZ4Y2.js → chunk-422GGNY4.js} +1 -1
  5. package/{chunk-4EGQ563G.js → chunk-443S7MFR.js} +1 -1
  6. package/{chunk-NGMAZPWL.js → chunk-4PBFVAUM.js} +1 -1
  7. package/{chunk-YAFMVKX5.js → chunk-4R5IT4LQ.js} +1 -1
  8. package/{chunk-ICDJTXVE.js → chunk-4W5VRGTT.js} +1 -1
  9. package/{chunk-IBPU4HMB.js → chunk-5AARCSJ7.js} +1 -1
  10. package/{chunk-CNWZ52LV.js → chunk-5LHNEBNO.js} +1 -1
  11. package/{chunk-IVCIH4GN.js → chunk-5UKRCVJC.js} +1 -1
  12. package/{chunk-YCOTHSE5.js → chunk-5XJMXBRA.js} +1 -1
  13. package/{chunk-NBWU3VSN.js → chunk-6A7P67Y7.js} +1 -1
  14. package/{chunk-Q4WVEWIJ.js → chunk-7RLPVZGA.js} +1 -1
  15. package/{chunk-W6SE4LJW.js → chunk-7YFQNFRU.js} +1 -1
  16. package/{chunk-2P6N6225.js → chunk-AT56NFST.js} +1 -1
  17. package/{chunk-HK6564XM.js → chunk-BFMBEORO.js} +1 -1
  18. package/{chunk-7QQAIIXC.js → chunk-C3J3G32K.js} +1 -1
  19. package/{chunk-LRD5A6EL.js → chunk-CT46UX5A.js} +1 -1
  20. package/{chunk-DJAA5EF6.js → chunk-DEEBJJ5D.js} +1 -1
  21. package/{chunk-RSAW2IGP.js → chunk-EYZAWBZ4.js} +1 -1
  22. package/{chunk-M2RAH7HZ.js → chunk-FWYHFX5X.js} +1 -1
  23. package/{chunk-WZ6BCBDQ.js → chunk-G3TD2OPR.js} +1 -1
  24. package/{chunk-RK23P4VG.js → chunk-G6TU3WFS.js} +1 -1
  25. package/{chunk-UCJ6JQWA.js → chunk-JBVBE4XB.js} +1 -1
  26. package/{chunk-5DAIWPJH.js → chunk-L3DR6OPU.js} +1 -1
  27. package/{chunk-DOPSA7V7.js → chunk-LDI6VAXY.js} +1 -1
  28. package/{chunk-LTIBX74D.js → chunk-LTRMBB6Y.js} +1 -1
  29. package/{chunk-VQM5QCPU.js → chunk-MVTMKWJW.js} +1 -1
  30. package/{chunk-ITGMU5MB.js → chunk-O6C57XTL.js} +1 -1
  31. package/{chunk-UPBPXKNV.js → chunk-O6MCJPDB.js} +1 -1
  32. package/{chunk-Z2KELIGC.js → chunk-PRTGUAP5.js} +1 -1
  33. package/{chunk-CYTZBS64.js → chunk-PYHVA2TA.js} +1 -1
  34. package/{chunk-TRH6BRRC.js → chunk-QMEB2F5I.js} +1 -1
  35. package/{chunk-ZZLTM7V6.js → chunk-QOUTXNRI.js} +1 -1
  36. package/{chunk-ZVDGEDMP.js → chunk-R2LSSQOS.js} +1 -1
  37. package/{chunk-SXKPF3GY.js → chunk-R5Q7KYJQ.js} +1 -1
  38. package/{chunk-HKEKJASB.js → chunk-RFJG6QPG.js} +1 -1
  39. package/{chunk-KR465WRL.js → chunk-RU5NBODX.js} +1 -1
  40. package/{chunk-TZH35FNY.js → chunk-SIAZZV4U.js} +2 -2
  41. package/{chunk-ZRPU3QYR.js → chunk-TODTVPYT.js} +1 -1
  42. package/{chunk-I2SBX2TZ.js → chunk-U4BLEBR7.js} +1 -1
  43. package/{chunk-RBJEQZ2O.js → chunk-UBHQYW5C.js} +1 -1
  44. package/{chunk-BPJERO47.js → chunk-UTIEDQPD.js} +2 -2
  45. package/{chunk-H6JPNVHO.js → chunk-V6RWSUKY.js} +1 -1
  46. package/{chunk-JK2F33M6.js → chunk-VH7TEAZI.js} +2 -2
  47. package/{chunk-HUNIPNEV.js → chunk-WBE4P4SQ.js} +1 -1
  48. package/{chunk-QQYGISGZ.js → chunk-XO3ORY3I.js} +1 -1
  49. package/{chunk-6YXA7GFO.js → chunk-YTM3A7AA.js} +1 -1
  50. package/{chunk-WZ5LBHF5.js → chunk-ZPCFYYML.js} +1 -1
  51. package/{chunk-S36SGADP.js → chunk-ZQDRT5O6.js} +1 -1
  52. package/{chunk-YB424QNC.js → chunk-ZX3AQD2D.js} +1 -1
  53. package/index.html +2 -2
  54. package/{main-6DNI2R4P.js → main-FH5N5SIB.js} +1 -1
  55. package/package.json +1 -1
  56. package/chunk-EZGBB4MD.js +0 -1
@@ -1,4 +1,4 @@
1
- import{a as ft}from"./chunk-VM56C6ZV.js";import{a as Mt,i as zt}from"./chunk-FNGX2XFA.js";import{a as rt,b as st}from"./chunk-BFEM6LX7.js";import{a as q,b as ht,f as Qe,h as Ie,j as bt,k as Ct,l as yt,m as xt,n as vt,o as Tt,w as Me,x as wt,y as kt,z as It}from"./chunk-O44DI62I.js";import{A as ve,B as Le,C as Te,D as Oe,E as He,Ea as W,J as Be,L as pt,Ma as gt,Na as O,O as ct,Oa as ut,S as Re,V as dt,Va as ke,_ as mt,aa as we,b as nt,e as ot,j as at,na as _t,x as lt,z as oe}from"./chunk-MGIEURA2.js";import{c as it}from"./chunk-H6JPNVHO.js";import{c as tt,d as De,f as Ee,h as Fe,i as Ve,k as Pe}from"./chunk-F2X3VGZZ.js";import{a as et,j as Z,m as Ce,n as ye,o as xe,u as $,x as ne}from"./chunk-DM2JLWKE.js";import{$b as D,$c as be,Aa as L,Ab as $e,Ba as Xe,Cb as z,Da as pe,Dc as j,Ea as v,Eb as m,Ec as fe,Fc as Q,Gc as Ge,Ha as je,Hc as Ke,La as Ye,Lb as T,Mb as o,Ob as qe,Oc as te,Pb as A,Pc as ie,Qb as S,Rb as E,Sc as Y,Wb as p,Xb as c,Yb as h,Zb as N,_b as X,_c as C,ac as b,bd as Ue,ca as re,cd as Je,da as K,fc as u,gb as Ze,gc as s,hc as de,ia as I,ib as a,ic as J,lc as w,mc as me,nc as y,oc as x,pa as Ne,qa as _,ra as g,rc as _e,sa as se,sc as R,tb as ce,tc as ee,ua as k,uc as Se,xc as ge,yb as M,yc as ue,zb as U,zc as he}from"./chunk-6QJHEOXN.js";import{a as P,b as ze}from"./chunk-YQFG5XE2.js";var St=(()=>{class t extends Ie{pathId;ngOnInit(){this.pathId="url(#"+W()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=k(t)))(i||t)}})();static \u0275cmp=M({type:t,selectors:[["WindowMaximizeIcon"]],features:[z],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&&(se(),p(0,"svg",0)(1,"g"),h(2,"path",1),c(),p(3,"defs")(4,"clipPath",2),h(5,"rect",3),c()()()),n&2&&(S(i.getClassNames()),T("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),a(),T("clip-path",i.pathId),a(3),o("id",i.pathId))},encapsulation:2})}return t})();var Dt=(()=>{class t extends Ie{pathId;ngOnInit(){this.pathId="url(#"+W()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=k(t)))(i||t)}})();static \u0275cmp=M({type:t,selectors:[["WindowMinimizeIcon"]],features:[z],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&&(se(),p(0,"svg",0)(1,"g"),h(2,"path",1),c(),p(3,"defs")(4,"clipPath",2),h(5,"rect",3),c()()()),n&2&&(S(i.getClassNames()),T("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),a(),T("clip-path",i.pathId),a(3),o("id",i.pathId))},encapsulation:2})}return t})();var Et=(()=>{class t extends q{pFocusTrapDisabled=!1;platformId=I(Ye);document=I(et);firstHiddenFocusableElement;lastHiddenFocusableElement;ngOnInit(){super.ngOnInit(),ne(this.platformId)&&!this.pFocusTrapDisabled&&!this.firstHiddenFocusableElement&&!this.lastHiddenFocusableElement&&this.createHiddenFocusableElements()}ngOnChanges(e){super.ngOnChanges(e),e.pFocusTrapDisabled&&ne(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=>ct("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,l=i===this.lastHiddenFocusableElement||!this.el.nativeElement?.contains(i)?dt(n.parentElement,":not(.p-hidden-focusable)"):this.lastHiddenFocusableElement;Re(l)}onLastHiddenElementFocus(e){let{currentTarget:n,relatedTarget:i}=e,l=i===this.firstHiddenFocusableElement||!this.el.nativeElement?.contains(i)?mt(n.parentElement,":not(.p-hidden-focusable)"):this.firstHiddenFocusableElement;Re(l)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=k(t)))(i||t)}})();static \u0275dir=$e({type:t,selectors:[["","pFocusTrap",""]],inputs:{pFocusTrapDisabled:[2,"pFocusTrapDisabled","pFocusTrapDisabled",C]},features:[z,Ne]})}return t})();var Rt=["header"],Ft=["content"],Vt=["footer"],Qt=["closeicon"],Wt=["maximizeicon"],At=["minimizeicon"],Nt=["headless"],Xt=["titlebar"],jt=["*",[["p-footer"]]],Yt=["*","p-footer"],Zt=(t,r,e)=>({position:"fixed",height:"100%",width:"100%",left:0,top:0,display:"flex","justify-content":t,"align-items":r,"pointer-events":e}),$t=t=>({"p-dialog p-component":!0,"p-dialog-maximized":t}),qt=()=>({display:"flex","flex-direction":"column","pointer-events":"auto"}),Gt=(t,r)=>({transform:t,transition:r}),Kt=t=>({value:"visible",params:t});function Ut(t,r){t&1&&D(0)}function Jt(t,r){if(t&1&&(N(0),m(1,Ut,1,0,"ng-container",11),X()),t&2){let e=s(3);a(),o("ngTemplateOutlet",e._headlessTemplate||e.headlessTemplate||e.headlessT)}}function ei(t,r){if(t&1){let e=b();p(0,"div",15),u("mousedown",function(i){_(e);let l=s(4);return g(l.initResize(i))}),c()}if(t&2){let e=s(4);o("ngClass",e.cx("resizeHandle"))}}function ti(t,r){if(t&1&&(p(0,"span",21),R(1),c()),t&2){let e=s(5);o("id",e.ariaLabelledBy)("ngClass",e.cx("title")),a(),ee(e.header)}}function ii(t,r){t&1&&D(0)}function ni(t,r){if(t&1&&h(0,"span",18),t&2){let e=s(6);o("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}function oi(t,r){t&1&&h(0,"WindowMaximizeIcon")}function ai(t,r){t&1&&h(0,"WindowMinimizeIcon")}function li(t,r){if(t&1&&(N(0),m(1,oi,1,0,"WindowMaximizeIcon",23)(2,ai,1,0,"WindowMinimizeIcon",23),X()),t&2){let e=s(6);a(),o("ngIf",!e.maximized&&!e._maximizeiconTemplate&&!e.maximizeIconTemplate&&!e.maximizeIconT),a(),o("ngIf",e.maximized&&!e._minimizeiconTemplate&&!e.minimizeIconTemplate&&!e.minimizeIconT)}}function ri(t,r){}function si(t,r){t&1&&m(0,ri,0,0,"ng-template")}function pi(t,r){if(t&1&&(N(0),m(1,si,1,0,null,11),X()),t&2){let e=s(6);a(),o("ngTemplateOutlet",e._maximizeiconTemplate||e.maximizeIconTemplate||e.maximizeIconT)}}function ci(t,r){}function di(t,r){t&1&&m(0,ci,0,0,"ng-template")}function mi(t,r){if(t&1&&(N(0),m(1,di,1,0,null,11),X()),t&2){let e=s(6);a(),o("ngTemplateOutlet",e._minimizeiconTemplate||e.minimizeIconTemplate||e.minimizeIconT)}}function _i(t,r){if(t&1){let e=b();p(0,"p-button",22),u("onClick",function(){_(e);let i=s(5);return g(i.maximize())})("keydown.enter",function(){_(e);let i=s(5);return g(i.maximize())}),m(1,ni,1,1,"span",14)(2,li,3,2,"ng-container",23)(3,pi,2,1,"ng-container",23)(4,mi,2,1,"ng-container",23),c()}if(t&2){let e=s(5);o("styleClass",e.cx("pcMaximizeButton"))("tabindex",e.maximizable?"0":"-1")("ariaLabel",e.maximizeLabel)("buttonProps",e.maximizeButtonProps),a(),o("ngIf",e.maximizeIcon&&!e._maximizeiconTemplate&&!e._minimizeiconTemplate),a(),o("ngIf",!e.maximizeIcon&&!(e.maximizeButtonProps!=null&&e.maximizeButtonProps.icon)),a(),o("ngIf",!e.maximized),a(),o("ngIf",e.maximized)}}function gi(t,r){if(t&1&&h(0,"span",18),t&2){let e=s(8);o("ngClass",e.closeIcon)}}function ui(t,r){t&1&&h(0,"TimesIcon")}function hi(t,r){if(t&1&&(N(0),m(1,gi,1,1,"span",14)(2,ui,1,0,"TimesIcon",23),X()),t&2){let e=s(7);a(),o("ngIf",e.closeIcon),a(),o("ngIf",!e.closeIcon)}}function fi(t,r){}function bi(t,r){t&1&&m(0,fi,0,0,"ng-template")}function Ci(t,r){if(t&1&&(p(0,"span"),m(1,bi,1,0,null,11),c()),t&2){let e=s(7);a(),o("ngTemplateOutlet",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function yi(t,r){if(t&1&&m(0,hi,3,2,"ng-container",23)(1,Ci,2,1,"span",23),t&2){let e=s(6);o("ngIf",!e._closeiconTemplate&&!e.closeIconTemplate&&!e.closeIconT&&!(e.closeButtonProps!=null&&e.closeButtonProps.icon)),a(),o("ngIf",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function xi(t,r){if(t&1){let e=b();p(0,"p-button",24),u("onClick",function(i){_(e);let l=s(5);return g(l.close(i))})("keydown.enter",function(i){_(e);let l=s(5);return g(l.close(i))}),m(1,yi,2,2,"ng-template",null,4,Y),c()}if(t&2){let e=s(5);o("styleClass",e.cx("pcCloseButton"))("ariaLabel",e.closeAriaLabel)("tabindex",e.closeTabindex)("buttonProps",e.closeButtonProps)}}function vi(t,r){if(t&1){let e=b();p(0,"div",16,3),u("mousedown",function(i){_(e);let l=s(4);return g(l.initDrag(i))}),m(2,ti,2,3,"span",17)(3,ii,1,0,"ng-container",11),p(4,"div",18),m(5,_i,5,8,"p-button",19)(6,xi,3,4,"p-button",20),c()()}if(t&2){let e=s(4);o("ngClass",e.cx("header")),a(2),o("ngIf",!e._headerTemplate&&!e.headerTemplate&&!e.headerT),a(),o("ngTemplateOutlet",e._headerTemplate||e.headerTemplate||e.headerT),a(),o("ngClass",e.cx("headerActions")),a(),o("ngIf",e.maximizable),a(),o("ngIf",e.closable)}}function Ti(t,r){t&1&&D(0)}function wi(t,r){t&1&&D(0)}function ki(t,r){if(t&1&&(p(0,"div",18,5),J(2,1),m(3,wi,1,0,"ng-container",11),c()),t&2){let e=s(4);o("ngClass",e.cx("footer")),a(3),o("ngTemplateOutlet",e._footerTemplate||e.footerTemplate||e.footerT)}}function Ii(t,r){if(t&1&&(m(0,ei,1,1,"div",12)(1,vi,7,6,"div",13),p(2,"div",7,2),J(4),m(5,Ti,1,0,"ng-container",11),c(),m(6,ki,4,2,"div",14)),t&2){let e=s(3);o("ngIf",e.resizable),a(),o("ngIf",e.showHeader),a(),S(e.contentStyleClass),o("ngClass",e.cx("content"))("ngStyle",e.contentStyle),T("data-pc-section","content"),a(3),o("ngTemplateOutlet",e._contentTemplate||e.contentTemplate||e.contentT),a(),o("ngIf",e._footerTemplate||e.footerTemplate||e.footerT)}}function Mi(t,r){if(t&1){let e=b();p(0,"div",9,0),u("@animation.start",function(i){_(e);let l=s(2);return g(l.onAnimationStart(i))})("@animation.done",function(i){_(e);let l=s(2);return g(l.onAnimationEnd(i))}),m(2,Jt,2,1,"ng-container",10)(3,Ii,7,9,"ng-template",null,1,Y),c()}if(t&2){let e=_e(4),n=s(2);A(n.style),S(n.styleClass),o("ngClass",Q(13,$t,n.maximizable&&n.maximized))("ngStyle",fe(15,qt))("pFocusTrapDisabled",n.focusTrap===!1)("@animation",Q(19,Kt,Ge(16,Gt,n.transformOptions,n.transitionOptions))),T("role",n.role)("aria-labelledby",n.ariaLabelledBy)("aria-modal",!0),a(2),o("ngIf",n._headlessTemplate||n.headlessTemplate||n.headlessT)("ngIfElse",e)}}function zi(t,r){if(t&1&&(p(0,"div",7),m(1,Mi,5,21,"div",8),c()),t&2){let e=s();A(e.maskStyle),S(e.maskStyleClass),o("ngClass",e.maskClass)("ngStyle",Ke(7,Zt,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")),a(),o("ngIf",e.visible)}}var Si=({dt:t})=>`
1
+ import{a as ft}from"./chunk-VM56C6ZV.js";import{a as Mt,i as zt}from"./chunk-FNGX2XFA.js";import{a as rt,b as st}from"./chunk-BFEM6LX7.js";import{a as q,b as ht,f as Qe,h as Ie,j as bt,k as Ct,l as yt,m as xt,n as vt,o as Tt,w as Me,x as wt,y as kt,z as It}from"./chunk-O44DI62I.js";import{A as ve,B as Le,C as Te,D as Oe,E as He,Ea as W,J as Be,L as pt,Ma as gt,Na as O,O as ct,Oa as ut,S as Re,V as dt,Va as ke,_ as mt,aa as we,b as nt,e as ot,j as at,na as _t,x as lt,z as oe}from"./chunk-MGIEURA2.js";import{c as it}from"./chunk-V6RWSUKY.js";import{c as tt,d as De,f as Ee,h as Fe,i as Ve,k as Pe}from"./chunk-F2X3VGZZ.js";import{a as et,j as Z,m as Ce,n as ye,o as xe,u as $,x as ne}from"./chunk-DM2JLWKE.js";import{$b as D,$c as be,Aa as L,Ab as $e,Ba as Xe,Cb as z,Da as pe,Dc as j,Ea as v,Eb as m,Ec as fe,Fc as Q,Gc as Ge,Ha as je,Hc as Ke,La as Ye,Lb as T,Mb as o,Ob as qe,Oc as te,Pb as A,Pc as ie,Qb as S,Rb as E,Sc as Y,Wb as p,Xb as c,Yb as h,Zb as N,_b as X,_c as C,ac as b,bd as Ue,ca as re,cd as Je,da as K,fc as u,gb as Ze,gc as s,hc as de,ia as I,ib as a,ic as J,lc as w,mc as me,nc as y,oc as x,pa as Ne,qa as _,ra as g,rc as _e,sa as se,sc as R,tb as ce,tc as ee,ua as k,uc as Se,xc as ge,yb as M,yc as ue,zb as U,zc as he}from"./chunk-6QJHEOXN.js";import{a as P,b as ze}from"./chunk-YQFG5XE2.js";var St=(()=>{class t extends Ie{pathId;ngOnInit(){this.pathId="url(#"+W()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=k(t)))(i||t)}})();static \u0275cmp=M({type:t,selectors:[["WindowMaximizeIcon"]],features:[z],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&&(se(),p(0,"svg",0)(1,"g"),h(2,"path",1),c(),p(3,"defs")(4,"clipPath",2),h(5,"rect",3),c()()()),n&2&&(S(i.getClassNames()),T("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),a(),T("clip-path",i.pathId),a(3),o("id",i.pathId))},encapsulation:2})}return t})();var Dt=(()=>{class t extends Ie{pathId;ngOnInit(){this.pathId="url(#"+W()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=k(t)))(i||t)}})();static \u0275cmp=M({type:t,selectors:[["WindowMinimizeIcon"]],features:[z],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&&(se(),p(0,"svg",0)(1,"g"),h(2,"path",1),c(),p(3,"defs")(4,"clipPath",2),h(5,"rect",3),c()()()),n&2&&(S(i.getClassNames()),T("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),a(),T("clip-path",i.pathId),a(3),o("id",i.pathId))},encapsulation:2})}return t})();var Et=(()=>{class t extends q{pFocusTrapDisabled=!1;platformId=I(Ye);document=I(et);firstHiddenFocusableElement;lastHiddenFocusableElement;ngOnInit(){super.ngOnInit(),ne(this.platformId)&&!this.pFocusTrapDisabled&&!this.firstHiddenFocusableElement&&!this.lastHiddenFocusableElement&&this.createHiddenFocusableElements()}ngOnChanges(e){super.ngOnChanges(e),e.pFocusTrapDisabled&&ne(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=>ct("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,l=i===this.lastHiddenFocusableElement||!this.el.nativeElement?.contains(i)?dt(n.parentElement,":not(.p-hidden-focusable)"):this.lastHiddenFocusableElement;Re(l)}onLastHiddenElementFocus(e){let{currentTarget:n,relatedTarget:i}=e,l=i===this.firstHiddenFocusableElement||!this.el.nativeElement?.contains(i)?mt(n.parentElement,":not(.p-hidden-focusable)"):this.firstHiddenFocusableElement;Re(l)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=k(t)))(i||t)}})();static \u0275dir=$e({type:t,selectors:[["","pFocusTrap",""]],inputs:{pFocusTrapDisabled:[2,"pFocusTrapDisabled","pFocusTrapDisabled",C]},features:[z,Ne]})}return t})();var Rt=["header"],Ft=["content"],Vt=["footer"],Qt=["closeicon"],Wt=["maximizeicon"],At=["minimizeicon"],Nt=["headless"],Xt=["titlebar"],jt=["*",[["p-footer"]]],Yt=["*","p-footer"],Zt=(t,r,e)=>({position:"fixed",height:"100%",width:"100%",left:0,top:0,display:"flex","justify-content":t,"align-items":r,"pointer-events":e}),$t=t=>({"p-dialog p-component":!0,"p-dialog-maximized":t}),qt=()=>({display:"flex","flex-direction":"column","pointer-events":"auto"}),Gt=(t,r)=>({transform:t,transition:r}),Kt=t=>({value:"visible",params:t});function Ut(t,r){t&1&&D(0)}function Jt(t,r){if(t&1&&(N(0),m(1,Ut,1,0,"ng-container",11),X()),t&2){let e=s(3);a(),o("ngTemplateOutlet",e._headlessTemplate||e.headlessTemplate||e.headlessT)}}function ei(t,r){if(t&1){let e=b();p(0,"div",15),u("mousedown",function(i){_(e);let l=s(4);return g(l.initResize(i))}),c()}if(t&2){let e=s(4);o("ngClass",e.cx("resizeHandle"))}}function ti(t,r){if(t&1&&(p(0,"span",21),R(1),c()),t&2){let e=s(5);o("id",e.ariaLabelledBy)("ngClass",e.cx("title")),a(),ee(e.header)}}function ii(t,r){t&1&&D(0)}function ni(t,r){if(t&1&&h(0,"span",18),t&2){let e=s(6);o("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}function oi(t,r){t&1&&h(0,"WindowMaximizeIcon")}function ai(t,r){t&1&&h(0,"WindowMinimizeIcon")}function li(t,r){if(t&1&&(N(0),m(1,oi,1,0,"WindowMaximizeIcon",23)(2,ai,1,0,"WindowMinimizeIcon",23),X()),t&2){let e=s(6);a(),o("ngIf",!e.maximized&&!e._maximizeiconTemplate&&!e.maximizeIconTemplate&&!e.maximizeIconT),a(),o("ngIf",e.maximized&&!e._minimizeiconTemplate&&!e.minimizeIconTemplate&&!e.minimizeIconT)}}function ri(t,r){}function si(t,r){t&1&&m(0,ri,0,0,"ng-template")}function pi(t,r){if(t&1&&(N(0),m(1,si,1,0,null,11),X()),t&2){let e=s(6);a(),o("ngTemplateOutlet",e._maximizeiconTemplate||e.maximizeIconTemplate||e.maximizeIconT)}}function ci(t,r){}function di(t,r){t&1&&m(0,ci,0,0,"ng-template")}function mi(t,r){if(t&1&&(N(0),m(1,di,1,0,null,11),X()),t&2){let e=s(6);a(),o("ngTemplateOutlet",e._minimizeiconTemplate||e.minimizeIconTemplate||e.minimizeIconT)}}function _i(t,r){if(t&1){let e=b();p(0,"p-button",22),u("onClick",function(){_(e);let i=s(5);return g(i.maximize())})("keydown.enter",function(){_(e);let i=s(5);return g(i.maximize())}),m(1,ni,1,1,"span",14)(2,li,3,2,"ng-container",23)(3,pi,2,1,"ng-container",23)(4,mi,2,1,"ng-container",23),c()}if(t&2){let e=s(5);o("styleClass",e.cx("pcMaximizeButton"))("tabindex",e.maximizable?"0":"-1")("ariaLabel",e.maximizeLabel)("buttonProps",e.maximizeButtonProps),a(),o("ngIf",e.maximizeIcon&&!e._maximizeiconTemplate&&!e._minimizeiconTemplate),a(),o("ngIf",!e.maximizeIcon&&!(e.maximizeButtonProps!=null&&e.maximizeButtonProps.icon)),a(),o("ngIf",!e.maximized),a(),o("ngIf",e.maximized)}}function gi(t,r){if(t&1&&h(0,"span",18),t&2){let e=s(8);o("ngClass",e.closeIcon)}}function ui(t,r){t&1&&h(0,"TimesIcon")}function hi(t,r){if(t&1&&(N(0),m(1,gi,1,1,"span",14)(2,ui,1,0,"TimesIcon",23),X()),t&2){let e=s(7);a(),o("ngIf",e.closeIcon),a(),o("ngIf",!e.closeIcon)}}function fi(t,r){}function bi(t,r){t&1&&m(0,fi,0,0,"ng-template")}function Ci(t,r){if(t&1&&(p(0,"span"),m(1,bi,1,0,null,11),c()),t&2){let e=s(7);a(),o("ngTemplateOutlet",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function yi(t,r){if(t&1&&m(0,hi,3,2,"ng-container",23)(1,Ci,2,1,"span",23),t&2){let e=s(6);o("ngIf",!e._closeiconTemplate&&!e.closeIconTemplate&&!e.closeIconT&&!(e.closeButtonProps!=null&&e.closeButtonProps.icon)),a(),o("ngIf",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function xi(t,r){if(t&1){let e=b();p(0,"p-button",24),u("onClick",function(i){_(e);let l=s(5);return g(l.close(i))})("keydown.enter",function(i){_(e);let l=s(5);return g(l.close(i))}),m(1,yi,2,2,"ng-template",null,4,Y),c()}if(t&2){let e=s(5);o("styleClass",e.cx("pcCloseButton"))("ariaLabel",e.closeAriaLabel)("tabindex",e.closeTabindex)("buttonProps",e.closeButtonProps)}}function vi(t,r){if(t&1){let e=b();p(0,"div",16,3),u("mousedown",function(i){_(e);let l=s(4);return g(l.initDrag(i))}),m(2,ti,2,3,"span",17)(3,ii,1,0,"ng-container",11),p(4,"div",18),m(5,_i,5,8,"p-button",19)(6,xi,3,4,"p-button",20),c()()}if(t&2){let e=s(4);o("ngClass",e.cx("header")),a(2),o("ngIf",!e._headerTemplate&&!e.headerTemplate&&!e.headerT),a(),o("ngTemplateOutlet",e._headerTemplate||e.headerTemplate||e.headerT),a(),o("ngClass",e.cx("headerActions")),a(),o("ngIf",e.maximizable),a(),o("ngIf",e.closable)}}function Ti(t,r){t&1&&D(0)}function wi(t,r){t&1&&D(0)}function ki(t,r){if(t&1&&(p(0,"div",18,5),J(2,1),m(3,wi,1,0,"ng-container",11),c()),t&2){let e=s(4);o("ngClass",e.cx("footer")),a(3),o("ngTemplateOutlet",e._footerTemplate||e.footerTemplate||e.footerT)}}function Ii(t,r){if(t&1&&(m(0,ei,1,1,"div",12)(1,vi,7,6,"div",13),p(2,"div",7,2),J(4),m(5,Ti,1,0,"ng-container",11),c(),m(6,ki,4,2,"div",14)),t&2){let e=s(3);o("ngIf",e.resizable),a(),o("ngIf",e.showHeader),a(),S(e.contentStyleClass),o("ngClass",e.cx("content"))("ngStyle",e.contentStyle),T("data-pc-section","content"),a(3),o("ngTemplateOutlet",e._contentTemplate||e.contentTemplate||e.contentT),a(),o("ngIf",e._footerTemplate||e.footerTemplate||e.footerT)}}function Mi(t,r){if(t&1){let e=b();p(0,"div",9,0),u("@animation.start",function(i){_(e);let l=s(2);return g(l.onAnimationStart(i))})("@animation.done",function(i){_(e);let l=s(2);return g(l.onAnimationEnd(i))}),m(2,Jt,2,1,"ng-container",10)(3,Ii,7,9,"ng-template",null,1,Y),c()}if(t&2){let e=_e(4),n=s(2);A(n.style),S(n.styleClass),o("ngClass",Q(13,$t,n.maximizable&&n.maximized))("ngStyle",fe(15,qt))("pFocusTrapDisabled",n.focusTrap===!1)("@animation",Q(19,Kt,Ge(16,Gt,n.transformOptions,n.transitionOptions))),T("role",n.role)("aria-labelledby",n.ariaLabelledBy)("aria-modal",!0),a(2),o("ngIf",n._headlessTemplate||n.headlessTemplate||n.headlessT)("ngIfElse",e)}}function zi(t,r){if(t&1&&(p(0,"div",7),m(1,Mi,5,21,"div",8),c()),t&2){let e=s();A(e.maskStyle),S(e.maskStyleClass),o("ngClass",e.maskClass)("ngStyle",Ke(7,Zt,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")),a(),o("ngIf",e.visible)}}var Si=({dt:t})=>`
2
2
  .p-dialog {
3
3
  max-height: 90%;
4
4
  transform: scale(1);
@@ -1 +1 @@
1
- import{a as Fe,b as Se}from"./chunk-SOD2BIQR.js";import{a as _e,b as ve,c as be,d as xe,e as Ce,f as ye}from"./chunk-TAN6GLIH.js";import"./chunk-GIRWHO6Q.js";import{a as fe,b as ge}from"./chunk-KARG227P.js";import{a as he}from"./chunk-XKI7WLHE.js";import{m as L}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import"./chunk-7L5IAWG2.js";import{a as re,b as ie}from"./chunk-II7KELI4.js";import"./chunk-L4ENW4RK.js";import"./chunk-KONCSTVQ.js";import{i as ue}from"./chunk-3NF5ANCH.js";import"./chunk-VM56C6ZV.js";import{a as se,b as me}from"./chunk-ISIYG4D5.js";import"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{n as ne,o as ae,w as le,x as pe,y as ce,z as de}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import{b as H,c as J,e as K,f as Q,k as W,m as X,n as Y,o as Z,p as ee,v as te,y as oe}from"./chunk-MGIEURA2.js";import{b as z,d as U}from"./chunk-DZCJWJUG.js";import"./chunk-H6JPNVHO.js";import"./chunk-G3BJCT7T.js";import"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{j as B,l as $,m as j,u as q}from"./chunk-DM2JLWKE.js";import{Cb as P,Eb as f,Ec as v,Fc as b,Ha as A,Mb as a,Pb as _,Qb as y,Sb as F,Sc as T,Ub as S,Vb as k,Wb as i,Wc as V,Xb as n,Y as I,Yb as g,_ as C,ac as O,fc as w,gc as d,ia as c,ib as r,qa as G,ra as E,sc as h,tc as M,ua as N,uc as R,yb as D}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";var Ie=()=>({height:"calc(100vh - 70px)"}),Ge=t=>({"ng-invalid ng-dirty":t}),ke=t=>({"ps-0":t}),Me=()=>({display:"flex"});function Ee(t,l){if(t&1){let e=O();i(0,"p-button",4),w("onClick",function(){G(e);let p=d(2);return E(p.onSubmit())}),n()}}function Ne(t,l){if(t&1&&f(0,Ee,1,0,"p-button",3),t&2){let e=d();a("ngIf",e.roleService.permissions().user.edit||e.roleService.permissions().user.create)}}function Ae(t,l){if(t&1&&(i(0,"div")(1,"span",16),h(2),n()()),t&2){let e=l.$implicit;r(2),M(e)}}function De(t,l){if(t&1&&(i(0,"div"),f(1,Ae,3,1,"div",15),n()),t&2){let e=d(2);r(),a("ngForOf",e.getErrors("name"))}}function Pe(t,l){if(t&1&&(i(0,"div",25)(1,"div",26),g(2,"p-checkbox",27),i(3,"p",28),h(4),n()()()),t&2){let e=l.$implicit,o=l.$index;a("formGroupName",o)("pTooltip",e.get("description").value),r(2),_(v(6,Me)),a("binary",!0),r(2),R(" ",e.get("name").value," ")}}function Oe(t,l){if(t&1&&(i(0,"div",18)(1,"div",19)(2,"div",20)(3,"span",21),h(4),n()(),g(5,"p-checkbox",22),n(),i(6,"div",23)(7,"div",24),S(8,Pe,5,7,"div",25,F),n()()()),t&2){let e=l.$implicit,o=l.$index,p=d(3);a("formGroupName",o),r(4),M(e.get("groupName").value),r(),_(v(5,Me)),a("binary",!0),r(3),k(p.getRolesArray(o).controls)}}function we(t,l){if(t&1&&(i(0,"div",17),S(1,Oe,10,6,"div",18,F),n()),t&2){let e=d(2);r(),k(e.rolesFormArray.controls)}}function Re(t,l){if(t&1&&(i(0,"p-panel")(1,"div",5),g(2,"app-user-tabs"),i(3,"form",6),g(4,"input",7),f(5,De,2,1,"div",8),n(),i(6,"p-tabs",9)(7,"p-tablist")(8,"p-tab",9),h(9,"Permission"),n(),i(10,"p-tab",10),h(11,"Description"),n()(),i(12,"p-tabpanels",11)(13,"p-tabpanel",9)(14,"form",6),f(15,we,3,0,"div",12),n()(),i(16,"p-tabpanel",10)(17,"div",13),g(18,"textarea",14),n()()()()()()),t&2){let e=d();_(v(13,Ie)),r(3),a("formGroup",e.form),r(),a("fluid",!0)("ngClass",b(14,Ge,e.isInvalid("name"))),r(),a("ngIf",e.isInvalid("name")),r(3),y(b(16,ke,e.router.url.includes("forms"))),r(2),y(b(18,ke,e.router.url.includes("forms"))),r(4),a("formGroup",e.form),r(),a("ngIf",e.rolesFormArray.length>0),r(2),a("formGroup",e.form)}}var ut=(()=>{class t extends he{constructor(){super(...arguments),this.service=c(Fe),this.fb=c(te),this.cdr=c(V),this.route=c(z),this.router=c(U),this.roleService=c(L),this.form=this.fb.group({groupID:this.fb.control(""),name:this.fb.control("",[J.required]),description:this.fb.control(""),roles:this.fb.array([])}),this.groupFormMeta=A(null)}ngOnInit(){this.route.queryParamMap.pipe(I(e=>this.service.getGroupFormMeta(e.get("groupID")).pipe(C(o=>{this.groupFormMeta.set(o),this.populateForm(o)})))).subscribe()}populateForm(e){this.form.patchValue({groupID:e.form.groupID,name:e.form.name,description:e.form.description});let o=this.rolesFormArray;o.clear(),e.options.roles.forEach(p=>{let m=this.fb.array(p.roles.map(s=>this.fb.group({id:this.fb.control(s.id),name:this.fb.control(s.name),checked:this.fb.control({value:e.form.rolesID.includes(s.id),disabled:!this.roleService.permissions().user.edit}),description:this.fb.control(s.description||"")}))),u=this.fb.group({groupName:this.fb.control(p.name),groupChecked:this.fb.control(!1),roles:m}),Te=m.controls.every(s=>s.get("checked").value);u.get("groupChecked").setValue(Te,{emitEvent:!1}),this.roleService.permissions().user.edit?u.get("groupChecked").enable():u.get("groupChecked").disable(),u.get("groupChecked").valueChanges.subscribe(s=>{m.controls.forEach(x=>{x.get("checked").setValue(s,{emitEvent:!1})})}),m.valueChanges.subscribe(()=>{let s=m.controls.every(x=>x.get("checked").value);u.get("groupChecked").setValue(s,{emitEvent:!1})}),o.push(u)}),this.cdr.detectChanges()}get rolesFormArray(){return this.form.get("roles")}getRolesArray(e){return this.rolesFormArray.at(e).get("roles")}getSelectedRoleIDs(){let e=[];return this.rolesFormArray.controls.forEach(o=>{o.get("roles").controls.forEach(m=>{m.get("checked").value&&e.push(m.get("id").value)})}),e}onSubmit(){if(this.form.invalid){this.form.markAllAsTouched();return}let e={groupID:this.form.get("groupID").value,name:this.form.get("name").value,rolesID:this.getSelectedRoleIDs(),description:this.form.controls.description.value};this.service.assignGroupRole(e).pipe(C(()=>{this.router.navigate(["/pages/users/groups"])})).subscribe()}static{this.\u0275fac=(()=>{let e;return function(p){return(e||(e=N(t)))(p||t)}})()}static{this.\u0275cmp=D({type:t,selectors:[["app-group-form"]],features:[P],decls:5,vars:1,consts:[["actionButton",""],["content",""],["pageTitle","Group Form",3,"overflowScroll"],["label","Submit",3,"onClick",4,"ngIf"],["label","Submit",3,"onClick"],[1,"d-flex","flex-column","gap-3","py-2"],[1,"d-flex","flex-column","gap-2",3,"formGroup"],["type","text","pInputText","","formControlName","name","placeholder","Group Name",3,"fluid","ngClass"],[4,"ngIf"],["value","0"],["value","1"],[2,"padding-left","0"],["formArrayName","roles","class","container-fluid d-flex flex-column row-gap-3",4,"ngIf"],[3,"formGroup"],["formControlName","description","fluid","","rows","5","cols","30","pTextarea",""],[4,"ngFor","ngForOf"],[1,"text-danger"],["formArrayName","roles",1,"container-fluid","d-flex","flex-column","row-gap-3"],[1,"row","align-items-stretch",3,"formGroupName"],[1,"col-2","py-2","border-top","border-bottom","border-start","d-flex","justify-content-between",2,"background","#f6f6f6"],[1,"d-flex","justify-content-center","w-100"],[1,"text-dark","fw-semibold","fs-2"],["size","small","formControlName","groupChecked",3,"binary"],[1,"col","p-0"],["formArrayName","roles",1,"roles-grid","h-100"],["tooltipPosition","top",1,"role-cell",3,"formGroupName","pTooltip"],[1,"py-2","d-flex","h-100","align-items-center","gap-2","px-2"],["size","small","formControlName","checked",3,"binary"],[1,"fs-2","text-dark","m-0"]],template:function(o,p){o&1&&(i(0,"app-main-panel",2),f(1,Ne,1,1,"ng-template",null,0,T)(3,Re,19,20,"ng-template",null,1,T),n()),o&2&&a("overflowScroll",!0)},dependencies:[ue,ie,re,oe,W,H,K,Q,X,ee,Y,Z,q,B,$,j,ae,ne,ye,Ce,xe,be,_e,ve,ge,fe,pe,le,Se,me,se,de,ce],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .p-checkbox{display:flex!important}[_nghost-%COMP%] .p-tabs .p-tab{padding-left:0!important}[_nghost-%COMP%] .p-panel .p-panel-header{display:none!important}.roles-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr)}.role-cell[_ngcontent-%COMP%]{border:1px solid #ddd;border-top:none;border-left:none;background:#fff}.roles-grid[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:nth-child(-n+4){border-top:1px solid #ddd}.roles-grid[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:nth-child(4n+1){border-left:1px solid #ddd}"],changeDetection:0})}}return t})();export{ut as GroupFormComponent};
1
+ import{a as Fe,b as Se}from"./chunk-SOD2BIQR.js";import{a as _e,b as ve,c as be,d as xe,e as Ce,f as ye}from"./chunk-TAN6GLIH.js";import"./chunk-GIRWHO6Q.js";import{a as fe,b as ge}from"./chunk-KARG227P.js";import{a as he}from"./chunk-XKI7WLHE.js";import{m as L}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import"./chunk-7L5IAWG2.js";import{a as re,b as ie}from"./chunk-II7KELI4.js";import"./chunk-L4ENW4RK.js";import"./chunk-KONCSTVQ.js";import{i as ue}from"./chunk-2FRTGIZ6.js";import"./chunk-VM56C6ZV.js";import{a as se,b as me}from"./chunk-ISIYG4D5.js";import"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{n as ne,o as ae,w as le,x as pe,y as ce,z as de}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import{b as H,c as J,e as K,f as Q,k as W,m as X,n as Y,o as Z,p as ee,v as te,y as oe}from"./chunk-MGIEURA2.js";import{b as z,d as U}from"./chunk-DZCJWJUG.js";import"./chunk-V6RWSUKY.js";import"./chunk-G3BJCT7T.js";import"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{j as B,l as $,m as j,u as q}from"./chunk-DM2JLWKE.js";import{Cb as P,Eb as f,Ec as v,Fc as b,Ha as A,Mb as a,Pb as _,Qb as y,Sb as F,Sc as T,Ub as S,Vb as k,Wb as i,Wc as V,Xb as n,Y as I,Yb as g,_ as C,ac as O,fc as w,gc as d,ia as c,ib as r,qa as G,ra as E,sc as h,tc as M,ua as N,uc as R,yb as D}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";var Ie=()=>({height:"calc(100vh - 70px)"}),Ge=t=>({"ng-invalid ng-dirty":t}),ke=t=>({"ps-0":t}),Me=()=>({display:"flex"});function Ee(t,l){if(t&1){let e=O();i(0,"p-button",4),w("onClick",function(){G(e);let p=d(2);return E(p.onSubmit())}),n()}}function Ne(t,l){if(t&1&&f(0,Ee,1,0,"p-button",3),t&2){let e=d();a("ngIf",e.roleService.permissions().user.edit||e.roleService.permissions().user.create)}}function Ae(t,l){if(t&1&&(i(0,"div")(1,"span",16),h(2),n()()),t&2){let e=l.$implicit;r(2),M(e)}}function De(t,l){if(t&1&&(i(0,"div"),f(1,Ae,3,1,"div",15),n()),t&2){let e=d(2);r(),a("ngForOf",e.getErrors("name"))}}function Pe(t,l){if(t&1&&(i(0,"div",25)(1,"div",26),g(2,"p-checkbox",27),i(3,"p",28),h(4),n()()()),t&2){let e=l.$implicit,o=l.$index;a("formGroupName",o)("pTooltip",e.get("description").value),r(2),_(v(6,Me)),a("binary",!0),r(2),R(" ",e.get("name").value," ")}}function Oe(t,l){if(t&1&&(i(0,"div",18)(1,"div",19)(2,"div",20)(3,"span",21),h(4),n()(),g(5,"p-checkbox",22),n(),i(6,"div",23)(7,"div",24),S(8,Pe,5,7,"div",25,F),n()()()),t&2){let e=l.$implicit,o=l.$index,p=d(3);a("formGroupName",o),r(4),M(e.get("groupName").value),r(),_(v(5,Me)),a("binary",!0),r(3),k(p.getRolesArray(o).controls)}}function we(t,l){if(t&1&&(i(0,"div",17),S(1,Oe,10,6,"div",18,F),n()),t&2){let e=d(2);r(),k(e.rolesFormArray.controls)}}function Re(t,l){if(t&1&&(i(0,"p-panel")(1,"div",5),g(2,"app-user-tabs"),i(3,"form",6),g(4,"input",7),f(5,De,2,1,"div",8),n(),i(6,"p-tabs",9)(7,"p-tablist")(8,"p-tab",9),h(9,"Permission"),n(),i(10,"p-tab",10),h(11,"Description"),n()(),i(12,"p-tabpanels",11)(13,"p-tabpanel",9)(14,"form",6),f(15,we,3,0,"div",12),n()(),i(16,"p-tabpanel",10)(17,"div",13),g(18,"textarea",14),n()()()()()()),t&2){let e=d();_(v(13,Ie)),r(3),a("formGroup",e.form),r(),a("fluid",!0)("ngClass",b(14,Ge,e.isInvalid("name"))),r(),a("ngIf",e.isInvalid("name")),r(3),y(b(16,ke,e.router.url.includes("forms"))),r(2),y(b(18,ke,e.router.url.includes("forms"))),r(4),a("formGroup",e.form),r(),a("ngIf",e.rolesFormArray.length>0),r(2),a("formGroup",e.form)}}var ut=(()=>{class t extends he{constructor(){super(...arguments),this.service=c(Fe),this.fb=c(te),this.cdr=c(V),this.route=c(z),this.router=c(U),this.roleService=c(L),this.form=this.fb.group({groupID:this.fb.control(""),name:this.fb.control("",[J.required]),description:this.fb.control(""),roles:this.fb.array([])}),this.groupFormMeta=A(null)}ngOnInit(){this.route.queryParamMap.pipe(I(e=>this.service.getGroupFormMeta(e.get("groupID")).pipe(C(o=>{this.groupFormMeta.set(o),this.populateForm(o)})))).subscribe()}populateForm(e){this.form.patchValue({groupID:e.form.groupID,name:e.form.name,description:e.form.description});let o=this.rolesFormArray;o.clear(),e.options.roles.forEach(p=>{let m=this.fb.array(p.roles.map(s=>this.fb.group({id:this.fb.control(s.id),name:this.fb.control(s.name),checked:this.fb.control({value:e.form.rolesID.includes(s.id),disabled:!this.roleService.permissions().user.edit}),description:this.fb.control(s.description||"")}))),u=this.fb.group({groupName:this.fb.control(p.name),groupChecked:this.fb.control(!1),roles:m}),Te=m.controls.every(s=>s.get("checked").value);u.get("groupChecked").setValue(Te,{emitEvent:!1}),this.roleService.permissions().user.edit?u.get("groupChecked").enable():u.get("groupChecked").disable(),u.get("groupChecked").valueChanges.subscribe(s=>{m.controls.forEach(x=>{x.get("checked").setValue(s,{emitEvent:!1})})}),m.valueChanges.subscribe(()=>{let s=m.controls.every(x=>x.get("checked").value);u.get("groupChecked").setValue(s,{emitEvent:!1})}),o.push(u)}),this.cdr.detectChanges()}get rolesFormArray(){return this.form.get("roles")}getRolesArray(e){return this.rolesFormArray.at(e).get("roles")}getSelectedRoleIDs(){let e=[];return this.rolesFormArray.controls.forEach(o=>{o.get("roles").controls.forEach(m=>{m.get("checked").value&&e.push(m.get("id").value)})}),e}onSubmit(){if(this.form.invalid){this.form.markAllAsTouched();return}let e={groupID:this.form.get("groupID").value,name:this.form.get("name").value,rolesID:this.getSelectedRoleIDs(),description:this.form.controls.description.value};this.service.assignGroupRole(e).pipe(C(()=>{this.router.navigate(["/pages/users/groups"])})).subscribe()}static{this.\u0275fac=(()=>{let e;return function(p){return(e||(e=N(t)))(p||t)}})()}static{this.\u0275cmp=D({type:t,selectors:[["app-group-form"]],features:[P],decls:5,vars:1,consts:[["actionButton",""],["content",""],["pageTitle","Group Form",3,"overflowScroll"],["label","Submit",3,"onClick",4,"ngIf"],["label","Submit",3,"onClick"],[1,"d-flex","flex-column","gap-3","py-2"],[1,"d-flex","flex-column","gap-2",3,"formGroup"],["type","text","pInputText","","formControlName","name","placeholder","Group Name",3,"fluid","ngClass"],[4,"ngIf"],["value","0"],["value","1"],[2,"padding-left","0"],["formArrayName","roles","class","container-fluid d-flex flex-column row-gap-3",4,"ngIf"],[3,"formGroup"],["formControlName","description","fluid","","rows","5","cols","30","pTextarea",""],[4,"ngFor","ngForOf"],[1,"text-danger"],["formArrayName","roles",1,"container-fluid","d-flex","flex-column","row-gap-3"],[1,"row","align-items-stretch",3,"formGroupName"],[1,"col-2","py-2","border-top","border-bottom","border-start","d-flex","justify-content-between",2,"background","#f6f6f6"],[1,"d-flex","justify-content-center","w-100"],[1,"text-dark","fw-semibold","fs-2"],["size","small","formControlName","groupChecked",3,"binary"],[1,"col","p-0"],["formArrayName","roles",1,"roles-grid","h-100"],["tooltipPosition","top",1,"role-cell",3,"formGroupName","pTooltip"],[1,"py-2","d-flex","h-100","align-items-center","gap-2","px-2"],["size","small","formControlName","checked",3,"binary"],[1,"fs-2","text-dark","m-0"]],template:function(o,p){o&1&&(i(0,"app-main-panel",2),f(1,Ne,1,1,"ng-template",null,0,T)(3,Re,19,20,"ng-template",null,1,T),n()),o&2&&a("overflowScroll",!0)},dependencies:[ue,ie,re,oe,W,H,K,Q,X,ee,Y,Z,q,B,$,j,ae,ne,ye,Ce,xe,be,_e,ve,ge,fe,pe,le,Se,me,se,de,ce],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%] .p-checkbox{display:flex!important}[_nghost-%COMP%] .p-tabs .p-tab{padding-left:0!important}[_nghost-%COMP%] .p-panel .p-panel-header{display:none!important}.roles-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr)}.role-cell[_ngcontent-%COMP%]{border:1px solid #ddd;border-top:none;border-left:none;background:#fff}.roles-grid[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:nth-child(-n+4){border-top:1px solid #ddd}.roles-grid[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:nth-child(4n+1){border-left:1px solid #ddd}"],changeDetection:0})}}return t})();export{ut as GroupFormComponent};
@@ -0,0 +1 @@
1
+ import"./chunk-YQFG5XE2.js";var t=[{path:"",redirectTo:"tax-account",pathMatch:"full"},{path:"tax-account",loadComponent:()=>import("./chunk-O6MCJPDB.js").then(o=>o.TaxAccountComponent)},{path:"chart-of-account",loadComponent:()=>import("./chunk-7YFQNFRU.js").then(o=>o.ChartOfAccountComponent)},{path:"manual-journal",loadComponent:()=>import("./chunk-G6TU3WFS.js").then(o=>o.ManualJournalComponent)},{path:"payment-account",loadComponent:()=>import("./chunk-5LHNEBNO.js").then(o=>o.PaymentAccountComponent)},{path:"writeoff-outlet",loadComponent:()=>import("./chunk-5XJMXBRA.js").then(o=>o.WriteOffOutletComponent)},{path:"expense-account",loadComponent:()=>import("./chunk-O6C57XTL.js").then(o=>o.ExpenseAccountComponent)},{path:"coa-configuration",loadComponent:()=>import("./chunk-QMEB2F5I.js").then(o=>o.CoaConfigurationComponent)},{path:"coa-category",loadComponent:()=>import("./chunk-5UKRCVJC.js").then(o=>o.CoaCategoryComponent)},{path:"outlet-account",loadComponent:()=>import("./chunk-FWYHFX5X.js").then(o=>o.OutletAccountComponent)}];export{t as MIGRATE_ROUTES};
@@ -1,4 +1,4 @@
1
- import{a as ce,b as Et}from"./chunk-SOD2BIQR.js";import{f as kt}from"./chunk-TAN6GLIH.js";import"./chunk-GIRWHO6Q.js";import{b as Vt}from"./chunk-YHLRDTIS.js";import{m as Ke}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as Oe,b as ve}from"./chunk-3VQUNDVT.js";import{b as xt,g as It,h as Tt,i as St}from"./chunk-52EMI2TW.js";import"./chunk-AAKZYXG3.js";import"./chunk-BME4Z6DH.js";import"./chunk-VSDW2RJ5.js";import"./chunk-7L5IAWG2.js";import{a as st}from"./chunk-MJGBBYIO.js";import"./chunk-CN6AT4LE.js";import{a as wt}from"./chunk-OW2ND5HU.js";import{a as Ct}from"./chunk-JWNGZMSE.js";import"./chunk-II7KELI4.js";import"./chunk-FTBQKOYS.js";import"./chunk-L4ENW4RK.js";import"./chunk-KONCSTVQ.js";import{a as lt}from"./chunk-FMAG3RQL.js";import{i as vt}from"./chunk-3NF5ANCH.js";import{a as ct}from"./chunk-VM56C6ZV.js";import{a as ht,b as mt}from"./chunk-ISIYG4D5.js";import{b as A,c as ft,d as gt,e as _t,f as bt,g as yt,h as Ot}from"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{a as ye,p as rt,r as pt,w as dt,x as ut}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import{$ as Ze,Ba as et,E as We,Ea as tt,J as je,Ja as it,Ma as nt,N as Xe,Na as U,Oa as ot,R as Je,S as se,Va as at,Y as Ye,a as Ae,e as Be,f as He,i as ge,l as ze,m as qe,oa as le,ra as w,sa as M,ta as _e,v as Qe,wa as be,x as Ne,y as Ue}from"./chunk-MGIEURA2.js";import{d as De,e as Re}from"./chunk-DZCJWJUG.js";import"./chunk-H6JPNVHO.js";import"./chunk-G3BJCT7T.js";import"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{j as me,l as Ge,m as Q,n as $e,o as fe,u as N}from"./chunk-DM2JLWKE.js";import{$b as Z,$c as he,Aa as x,Cb as ue,Dc as ae,Eb as f,Ec as Me,Fc as q,Gc as Le,Ha as L,Lb as y,Mb as r,Qb as Y,Sc as T,Wb as d,Xb as u,Y as pe,Yb as S,Zb as D,_ as J,_b as R,_c as k,ac as V,ba as Ie,bd as G,c as re,ca as Te,cd as Pe,da as Se,fc as I,gc as p,ia as E,ib as c,lc as F,mc as z,nc as v,ob as de,oc as C,pa as Ve,qa as h,ra as m,rc as ee,s as xe,sc as b,tc as K,ua as ke,uc as te,wc as Fe,xc as ie,yb as H,yc as ne,zb as Ee,zc as oe}from"./chunk-6QJHEOXN.js";import{a as g,b as _}from"./chunk-YQFG5XE2.js";var Lt={data:[],count:0,meta:{filter:{pagination:1,pageSize:10,rolesID:null,text:""},options:{roles:[]}},filter:{pagination:1,pageSize:10,rolesID:null,text:""}},Ce=ft(yt(Lt),Ot("GroupStore"),gt(t=>({first:G(()=>(t.filter().pagination-1)*t.filter().pageSize+1),end:G(()=>Math.min(t.filter().pagination*t.filter().pageSize,t.count())),hasCheckedRows:G(()=>t.data().some(s=>s.checked)),checkedData:G(()=>t.data().filter(s=>s.checked).map(s=>s.id))})),bt(t=>{let s=E(ce),e={setFilter(n){A(t,i=>_(g({},i),{filter:n}))},onRowSelect(n){A(t,i=>{let o=i.data.map(a=>a.id===n.id?_(g({},a),{checked:!0}):a);return _(g({},i),{data:o})})},onRowUnselect(n){A(t,i=>{let o=i.data.map(a=>a.id===n.id?_(g({},a),{checked:!1}):a);return _(g({},i),{data:o})})},onHeaderCheckboxToggle(n){A(t,i=>{let o=i.data.map(a=>_(g({},a),{checked:n}));return _(g({},i),{data:o})})},getGroupList:Oe(re(pe(n=>s.getGroupList(n).pipe(ve(i=>{A(t,o=>_(g({},o),{data:i.data,count:i.count}))},i=>{console.error("Error fetching group list:",i)}))))),getGroupLoader:Oe(re(pe(()=>s.getGroupLoader().pipe(ve({next:n=>{let i=n.options.roles.map(o=>_(g({},o),{id:Vt()}));A(t,o=>_(g({},o),{meta:_(g({},n),{options:_(g({},n.options),{roles:i})}),filter:n.filter})),e.getGroupList(t.filter)},error:n=>{console.error("Error fetching group loader:",n)}})))))};return e}),_t(t=>({onInit:()=>{t.getGroupLoader()}})));var $t=t=>({$implicit:t});function Dt(t,s){t&1&&Z(0)}function Rt(t,s){if(t&1&&(D(0),f(1,Dt,1,0,"ng-container",8),R()),t&2){let e=p().$implicit,n=p();c(),r("ngTemplateOutlet",n.optionTemplate)("ngTemplateOutletContext",q(2,$t,e==null?null:e.option))}}function Kt(t,s){if(t&1&&(d(0,"span",9),b(1),u()),t&2){let e=p().$implicit,n=p();y("data-pc-section","text"),c(),K(n.getOptionLabelToRender(e))}}function At(t,s){t&1&&S(0,"AngleRightIcon")}function Bt(t,s){}function Ht(t,s){t&1&&f(0,Bt,0,0,"ng-template")}function zt(t,s){if(t&1&&(d(0,"span",10),f(1,At,1,0,"AngleRightIcon",11)(2,Ht,1,0,null,12),u()),t&2){let e=p(2);y("data-pc-section","groupIcon"),c(),r("ngIf",!e.groupicon),c(),r("ngTemplateOutlet",e.groupicon)}}function qt(t,s){if(t&1){let e=V();d(0,"p-cascadeselect-sub",13),I("onChange",function(i){h(e);let o=p(2);return m(o.onChange.emit(i))})("onFocusChange",function(i){h(e);let o=p(2);return m(o.onFocusChange.emit(i))})("onFocusEnterChange",function(i){h(e);let o=p(2);return m(o.onFocusEnterChange.emit(i))}),u()}if(t&2){let e=p().$implicit,n=p();r("role","group")("selectId",n.selectId)("focusedOptionId",n.focusedOptionId)("activeOptionPath",n.activeOptionPath)("options",n.getOptionGroupChildren(e))("optionLabel",n.optionLabel)("optionValue",n.optionValue)("level",n.level+1)("optionGroupLabel",n.optionGroupLabel)("optionGroupChildren",n.optionGroupChildren)("dirty",n.dirty)("optionTemplate",n.optionTemplate)}}function Qt(t,s){if(t&1){let e=V();d(0,"li",3)(1,"div",4),I("click",function(i){let o=h(e).$implicit,a=p();return m(a.onOptionClick(i,o))})("mouseenter",function(i){let o=h(e).$implicit,a=p();return m(a.onOptionMouseEnter(i,o))})("mousemove",function(i){let o=h(e).$implicit,a=p();return m(a.onOptionMouseMove(i,o))}),f(2,Rt,2,4,"ng-container",5)(3,Kt,2,2,"ng-template",null,0,T)(5,zt,3,3,"span",6),u(),f(6,qt,1,12,"p-cascadeselect-sub",7),u()}if(t&2){let e=s.$implicit,n=s.index,i=ee(4),o=p();r("ngClass",o.getItemClass(e))("id",o.getOptionId(e)),y("aria-level",o.level+1)("aria-setsize",o.options.length)("data-pc-section","item")("aria-label",o.getOptionLabelToRender(e))("aria-selected",o.isOptionGroup(e)?void 0:o.isOptionSelected(e))("aria-posinset",n+1),c(),y("data-pc-section","content"),c(),r("ngIf",o.optionTemplate)("ngIfElse",i),c(3),r("ngIf",o.isOptionGroup(e)),c(),r("ngIf",o.isOptionGroup(e)&&o.isOptionActive(e))}}var Nt=["value"],Ut=["option"],Wt=["header"],jt=["footer"],Xt=["triggericon"],Jt=["loadingicon"],Yt=["optiongroupicon"],Zt=["clearicon"],ei=["focusInput"],ti=["container"],ii=["panel"],ni=["overlay"],oi=(t,s)=>({$implicit:t,placeholder:s}),ai=t=>({"p-cascadeselect-overlay p-component":!0,"p-cascadeselect-mobile-active":t});function si(t,s){t&1&&Z(0)}function li(t,s){if(t&1&&(D(0),f(1,si,1,0,"ng-container",16),R()),t&2){let e=p();c(),r("ngTemplateOutlet",e.valueTemplate||e._valueTemplate)("ngTemplateOutletContext",Le(2,oi,e.value,e.placeholder))}}function ci(t,s){if(t&1&&b(0),t&2){let e=p();te(" ",e.label()," ")}}function ri(t,s){if(t&1){let e=V();d(0,"TimesIcon",18),I("click",function(i){h(e);let o=p(2);return m(o.clear(i))}),u()}t&2&&y("data-pc-section","clearicon")("aria-hidden",!0)}function pi(t,s){}function di(t,s){t&1&&f(0,pi,0,0,"ng-template")}function ui(t,s){if(t&1){let e=V();d(0,"span",18),I("click",function(i){h(e);let o=p(2);return m(o.clear(i))}),f(1,di,1,0,null,19),u()}if(t&2){let e=p(2);y("data-pc-section","clearicon")("aria-hidden",!0),c(),r("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function hi(t,s){if(t&1&&(D(0),f(1,ri,1,2,"TimesIcon",17)(2,ui,2,3,"span",17),R()),t&2){let e=p();c(),r("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),c(),r("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function mi(t,s){t&1&&Z(0)}function fi(t,s){if(t&1&&(D(0),f(1,mi,1,0,"ng-container",19),R()),t&2){let e=p(2);c(),r("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function gi(t,s){if(t&1&&S(0,"span",22),t&2){let e=p(3);r("ngClass","p-cascadeselect-loading-icon pi-spin "+e.loadingIcon)}}function _i(t,s){t&1&&S(0,"span",23),t&2&&Y("p-cascadeselect-loading-icon pi pi-spinner pi-spin")}function bi(t,s){if(t&1&&(D(0),f(1,gi,1,1,"span",20)(2,_i,1,2,"span",21),R()),t&2){let e=p(2);c(),r("ngIf",e.loadingIcon),c(),r("ngIf",!e.loadingIcon)}}function yi(t,s){if(t&1&&(D(0),f(1,fi,2,1,"ng-container",12)(2,bi,3,2,"ng-container",12),R()),t&2){let e=p();c(),r("ngIf",e.loadingIconTemplate||e._loadingIconTemplate),c(),r("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate)}}function Oi(t,s){t&1&&S(0,"ChevronDownIcon",26),t&2&&r("styleClass","p-cascadeselect-dropdown-icon")}function vi(t,s){}function Ci(t,s){t&1&&f(0,vi,0,0,"ng-template")}function wi(t,s){if(t&1&&(d(0,"span",27),f(1,Ci,1,0,null,19),u()),t&2){let e=p(2);c(),r("ngTemplateOutlet",e.triggerIconTemplate||e._triggerIconTemplate)}}function xi(t,s){if(t&1&&f(0,Oi,1,1,"ChevronDownIcon",24)(1,wi,2,1,"span",25),t&2){let e=p();r("ngIf",!e.triggerIconTemplate&&!e._triggerIconTemplate),c(),r("ngIf",e.triggerIconTemplate||e._triggerIconTemplate)}}function Ii(t,s){}function Ti(t,s){t&1&&f(0,Ii,0,0,"ng-template")}function Si(t,s){}function Vi(t,s){t&1&&f(0,Si,0,0,"ng-template")}function ki(t,s){if(t&1){let e=V();d(0,"div",28,6),f(2,Ti,1,0,null,19),d(3,"div",29)(4,"p-cascadeselect-sub",30),I("onChange",function(i){h(e);let o=p();return m(o.onOptionClick(i))})("onFocusChange",function(i){h(e);let o=p();return m(o.onOptionMouseMove(i))})("onFocusEnterChange",function(i){h(e);let o=p();return m(o.onOptionMouseEnter(i))}),u()(),d(5,"span",14),b(6),u(),f(7,Vi,1,0,null,19),u()}if(t&2){let e=p();Y(e.panelStyleClass),r("ngClass",q(24,ai,e.queryMatches()))("ngStyle",e.panelStyle),y("data-pc-section","panel"),c(2),r("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),c(),y("data-pc-section","wrapper"),c(),r("options",e.processedOptions)("selectId",e.id)("focusedOptionId",e.focused?e.focusedOptionId:void 0)("activeOptionPath",e.activeOptionPath())("optionLabel",e.optionLabel)("optionValue",e.optionValue)("level",0)("optionTemplate",e.optionTemplate||e._optionTemplate)("groupicon",e.groupIconTemplate||e.groupIconTemplate)("optionGroupLabel",e.optionGroupLabel)("optionGroupChildren",e.optionGroupChildren)("optionDisabled",e.optionDisabled)("root",!0)("dirty",e.dirty)("role","tree"),c(2),te(" ",e.selectedMessageText," "),c(),r("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}var Ei=({dt:t})=>`
1
+ import{a as ce,b as Et}from"./chunk-SOD2BIQR.js";import{f as kt}from"./chunk-TAN6GLIH.js";import"./chunk-GIRWHO6Q.js";import{b as Vt}from"./chunk-YHLRDTIS.js";import{m as Ke}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as Oe,b as ve}from"./chunk-3VQUNDVT.js";import{b as xt,g as It,h as Tt,i as St}from"./chunk-52EMI2TW.js";import"./chunk-AAKZYXG3.js";import"./chunk-BME4Z6DH.js";import"./chunk-VSDW2RJ5.js";import"./chunk-7L5IAWG2.js";import{a as st}from"./chunk-MJGBBYIO.js";import"./chunk-CN6AT4LE.js";import{a as wt}from"./chunk-OW2ND5HU.js";import{a as Ct}from"./chunk-JWNGZMSE.js";import"./chunk-II7KELI4.js";import"./chunk-FTBQKOYS.js";import"./chunk-L4ENW4RK.js";import"./chunk-KONCSTVQ.js";import{a as lt}from"./chunk-FMAG3RQL.js";import{i as vt}from"./chunk-2FRTGIZ6.js";import{a as ct}from"./chunk-VM56C6ZV.js";import{a as ht,b as mt}from"./chunk-ISIYG4D5.js";import{b as A,c as ft,d as gt,e as _t,f as bt,g as yt,h as Ot}from"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{a as ye,p as rt,r as pt,w as dt,x as ut}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import{$ as Ze,Ba as et,E as We,Ea as tt,J as je,Ja as it,Ma as nt,N as Xe,Na as U,Oa as ot,R as Je,S as se,Va as at,Y as Ye,a as Ae,e as Be,f as He,i as ge,l as ze,m as qe,oa as le,ra as w,sa as M,ta as _e,v as Qe,wa as be,x as Ne,y as Ue}from"./chunk-MGIEURA2.js";import{d as De,e as Re}from"./chunk-DZCJWJUG.js";import"./chunk-V6RWSUKY.js";import"./chunk-G3BJCT7T.js";import"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{j as me,l as Ge,m as Q,n as $e,o as fe,u as N}from"./chunk-DM2JLWKE.js";import{$b as Z,$c as he,Aa as x,Cb as ue,Dc as ae,Eb as f,Ec as Me,Fc as q,Gc as Le,Ha as L,Lb as y,Mb as r,Qb as Y,Sc as T,Wb as d,Xb as u,Y as pe,Yb as S,Zb as D,_ as J,_b as R,_c as k,ac as V,ba as Ie,bd as G,c as re,ca as Te,cd as Pe,da as Se,fc as I,gc as p,ia as E,ib as c,lc as F,mc as z,nc as v,ob as de,oc as C,pa as Ve,qa as h,ra as m,rc as ee,s as xe,sc as b,tc as K,ua as ke,uc as te,wc as Fe,xc as ie,yb as H,yc as ne,zb as Ee,zc as oe}from"./chunk-6QJHEOXN.js";import{a as g,b as _}from"./chunk-YQFG5XE2.js";var Lt={data:[],count:0,meta:{filter:{pagination:1,pageSize:10,rolesID:null,text:""},options:{roles:[]}},filter:{pagination:1,pageSize:10,rolesID:null,text:""}},Ce=ft(yt(Lt),Ot("GroupStore"),gt(t=>({first:G(()=>(t.filter().pagination-1)*t.filter().pageSize+1),end:G(()=>Math.min(t.filter().pagination*t.filter().pageSize,t.count())),hasCheckedRows:G(()=>t.data().some(s=>s.checked)),checkedData:G(()=>t.data().filter(s=>s.checked).map(s=>s.id))})),bt(t=>{let s=E(ce),e={setFilter(n){A(t,i=>_(g({},i),{filter:n}))},onRowSelect(n){A(t,i=>{let o=i.data.map(a=>a.id===n.id?_(g({},a),{checked:!0}):a);return _(g({},i),{data:o})})},onRowUnselect(n){A(t,i=>{let o=i.data.map(a=>a.id===n.id?_(g({},a),{checked:!1}):a);return _(g({},i),{data:o})})},onHeaderCheckboxToggle(n){A(t,i=>{let o=i.data.map(a=>_(g({},a),{checked:n}));return _(g({},i),{data:o})})},getGroupList:Oe(re(pe(n=>s.getGroupList(n).pipe(ve(i=>{A(t,o=>_(g({},o),{data:i.data,count:i.count}))},i=>{console.error("Error fetching group list:",i)}))))),getGroupLoader:Oe(re(pe(()=>s.getGroupLoader().pipe(ve({next:n=>{let i=n.options.roles.map(o=>_(g({},o),{id:Vt()}));A(t,o=>_(g({},o),{meta:_(g({},n),{options:_(g({},n.options),{roles:i})}),filter:n.filter})),e.getGroupList(t.filter)},error:n=>{console.error("Error fetching group loader:",n)}})))))};return e}),_t(t=>({onInit:()=>{t.getGroupLoader()}})));var $t=t=>({$implicit:t});function Dt(t,s){t&1&&Z(0)}function Rt(t,s){if(t&1&&(D(0),f(1,Dt,1,0,"ng-container",8),R()),t&2){let e=p().$implicit,n=p();c(),r("ngTemplateOutlet",n.optionTemplate)("ngTemplateOutletContext",q(2,$t,e==null?null:e.option))}}function Kt(t,s){if(t&1&&(d(0,"span",9),b(1),u()),t&2){let e=p().$implicit,n=p();y("data-pc-section","text"),c(),K(n.getOptionLabelToRender(e))}}function At(t,s){t&1&&S(0,"AngleRightIcon")}function Bt(t,s){}function Ht(t,s){t&1&&f(0,Bt,0,0,"ng-template")}function zt(t,s){if(t&1&&(d(0,"span",10),f(1,At,1,0,"AngleRightIcon",11)(2,Ht,1,0,null,12),u()),t&2){let e=p(2);y("data-pc-section","groupIcon"),c(),r("ngIf",!e.groupicon),c(),r("ngTemplateOutlet",e.groupicon)}}function qt(t,s){if(t&1){let e=V();d(0,"p-cascadeselect-sub",13),I("onChange",function(i){h(e);let o=p(2);return m(o.onChange.emit(i))})("onFocusChange",function(i){h(e);let o=p(2);return m(o.onFocusChange.emit(i))})("onFocusEnterChange",function(i){h(e);let o=p(2);return m(o.onFocusEnterChange.emit(i))}),u()}if(t&2){let e=p().$implicit,n=p();r("role","group")("selectId",n.selectId)("focusedOptionId",n.focusedOptionId)("activeOptionPath",n.activeOptionPath)("options",n.getOptionGroupChildren(e))("optionLabel",n.optionLabel)("optionValue",n.optionValue)("level",n.level+1)("optionGroupLabel",n.optionGroupLabel)("optionGroupChildren",n.optionGroupChildren)("dirty",n.dirty)("optionTemplate",n.optionTemplate)}}function Qt(t,s){if(t&1){let e=V();d(0,"li",3)(1,"div",4),I("click",function(i){let o=h(e).$implicit,a=p();return m(a.onOptionClick(i,o))})("mouseenter",function(i){let o=h(e).$implicit,a=p();return m(a.onOptionMouseEnter(i,o))})("mousemove",function(i){let o=h(e).$implicit,a=p();return m(a.onOptionMouseMove(i,o))}),f(2,Rt,2,4,"ng-container",5)(3,Kt,2,2,"ng-template",null,0,T)(5,zt,3,3,"span",6),u(),f(6,qt,1,12,"p-cascadeselect-sub",7),u()}if(t&2){let e=s.$implicit,n=s.index,i=ee(4),o=p();r("ngClass",o.getItemClass(e))("id",o.getOptionId(e)),y("aria-level",o.level+1)("aria-setsize",o.options.length)("data-pc-section","item")("aria-label",o.getOptionLabelToRender(e))("aria-selected",o.isOptionGroup(e)?void 0:o.isOptionSelected(e))("aria-posinset",n+1),c(),y("data-pc-section","content"),c(),r("ngIf",o.optionTemplate)("ngIfElse",i),c(3),r("ngIf",o.isOptionGroup(e)),c(),r("ngIf",o.isOptionGroup(e)&&o.isOptionActive(e))}}var Nt=["value"],Ut=["option"],Wt=["header"],jt=["footer"],Xt=["triggericon"],Jt=["loadingicon"],Yt=["optiongroupicon"],Zt=["clearicon"],ei=["focusInput"],ti=["container"],ii=["panel"],ni=["overlay"],oi=(t,s)=>({$implicit:t,placeholder:s}),ai=t=>({"p-cascadeselect-overlay p-component":!0,"p-cascadeselect-mobile-active":t});function si(t,s){t&1&&Z(0)}function li(t,s){if(t&1&&(D(0),f(1,si,1,0,"ng-container",16),R()),t&2){let e=p();c(),r("ngTemplateOutlet",e.valueTemplate||e._valueTemplate)("ngTemplateOutletContext",Le(2,oi,e.value,e.placeholder))}}function ci(t,s){if(t&1&&b(0),t&2){let e=p();te(" ",e.label()," ")}}function ri(t,s){if(t&1){let e=V();d(0,"TimesIcon",18),I("click",function(i){h(e);let o=p(2);return m(o.clear(i))}),u()}t&2&&y("data-pc-section","clearicon")("aria-hidden",!0)}function pi(t,s){}function di(t,s){t&1&&f(0,pi,0,0,"ng-template")}function ui(t,s){if(t&1){let e=V();d(0,"span",18),I("click",function(i){h(e);let o=p(2);return m(o.clear(i))}),f(1,di,1,0,null,19),u()}if(t&2){let e=p(2);y("data-pc-section","clearicon")("aria-hidden",!0),c(),r("ngTemplateOutlet",e.clearIconTemplate||e._clearIconTemplate)}}function hi(t,s){if(t&1&&(D(0),f(1,ri,1,2,"TimesIcon",17)(2,ui,2,3,"span",17),R()),t&2){let e=p();c(),r("ngIf",!e.clearIconTemplate&&!e._clearIconTemplate),c(),r("ngIf",e.clearIconTemplate||e._clearIconTemplate)}}function mi(t,s){t&1&&Z(0)}function fi(t,s){if(t&1&&(D(0),f(1,mi,1,0,"ng-container",19),R()),t&2){let e=p(2);c(),r("ngTemplateOutlet",e.loadingIconTemplate||e._loadingIconTemplate)}}function gi(t,s){if(t&1&&S(0,"span",22),t&2){let e=p(3);r("ngClass","p-cascadeselect-loading-icon pi-spin "+e.loadingIcon)}}function _i(t,s){t&1&&S(0,"span",23),t&2&&Y("p-cascadeselect-loading-icon pi pi-spinner pi-spin")}function bi(t,s){if(t&1&&(D(0),f(1,gi,1,1,"span",20)(2,_i,1,2,"span",21),R()),t&2){let e=p(2);c(),r("ngIf",e.loadingIcon),c(),r("ngIf",!e.loadingIcon)}}function yi(t,s){if(t&1&&(D(0),f(1,fi,2,1,"ng-container",12)(2,bi,3,2,"ng-container",12),R()),t&2){let e=p();c(),r("ngIf",e.loadingIconTemplate||e._loadingIconTemplate),c(),r("ngIf",!e.loadingIconTemplate&&!e._loadingIconTemplate)}}function Oi(t,s){t&1&&S(0,"ChevronDownIcon",26),t&2&&r("styleClass","p-cascadeselect-dropdown-icon")}function vi(t,s){}function Ci(t,s){t&1&&f(0,vi,0,0,"ng-template")}function wi(t,s){if(t&1&&(d(0,"span",27),f(1,Ci,1,0,null,19),u()),t&2){let e=p(2);c(),r("ngTemplateOutlet",e.triggerIconTemplate||e._triggerIconTemplate)}}function xi(t,s){if(t&1&&f(0,Oi,1,1,"ChevronDownIcon",24)(1,wi,2,1,"span",25),t&2){let e=p();r("ngIf",!e.triggerIconTemplate&&!e._triggerIconTemplate),c(),r("ngIf",e.triggerIconTemplate||e._triggerIconTemplate)}}function Ii(t,s){}function Ti(t,s){t&1&&f(0,Ii,0,0,"ng-template")}function Si(t,s){}function Vi(t,s){t&1&&f(0,Si,0,0,"ng-template")}function ki(t,s){if(t&1){let e=V();d(0,"div",28,6),f(2,Ti,1,0,null,19),d(3,"div",29)(4,"p-cascadeselect-sub",30),I("onChange",function(i){h(e);let o=p();return m(o.onOptionClick(i))})("onFocusChange",function(i){h(e);let o=p();return m(o.onOptionMouseMove(i))})("onFocusEnterChange",function(i){h(e);let o=p();return m(o.onOptionMouseEnter(i))}),u()(),d(5,"span",14),b(6),u(),f(7,Vi,1,0,null,19),u()}if(t&2){let e=p();Y(e.panelStyleClass),r("ngClass",q(24,ai,e.queryMatches()))("ngStyle",e.panelStyle),y("data-pc-section","panel"),c(2),r("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),c(),y("data-pc-section","wrapper"),c(),r("options",e.processedOptions)("selectId",e.id)("focusedOptionId",e.focused?e.focusedOptionId:void 0)("activeOptionPath",e.activeOptionPath())("optionLabel",e.optionLabel)("optionValue",e.optionValue)("level",0)("optionTemplate",e.optionTemplate||e._optionTemplate)("groupicon",e.groupIconTemplate||e.groupIconTemplate)("optionGroupLabel",e.optionGroupLabel)("optionGroupChildren",e.optionGroupChildren)("optionDisabled",e.optionDisabled)("root",!0)("dirty",e.dirty)("role","tree"),c(2),te(" ",e.selectedMessageText," "),c(),r("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}var Ei=({dt:t})=>`
2
2
  .p-cascadeselect {
3
3
  display: inline-flex;
4
4
  cursor: pointer;
@@ -1 +1 @@
1
- import{b as E}from"./chunk-ZVDGEDMP.js";import{b as w}from"./chunk-5U7KZJ3H.js";import{a as T,b as j}from"./chunk-FHJOSHI3.js";import{b as P}from"./chunk-ISIYG4D5.js";import{x as b}from"./chunk-O44DI62I.js";import{a as y}from"./chunk-G3BJCT7T.js";import{d as _}from"./chunk-KL3TPLRB.js";import{s as O,u as A}from"./chunk-DM2JLWKE.js";import{Ea as c,Eb as C,Oc as M,Qc as S,Sc as a,Wb as i,Xb as r,Yb as x,ca as s,gc as m,ia as g,ib as u,sc as p,tc as v,uc as l,yb as h}from"./chunk-6QJHEOXN.js";var N=(()=>{class t{constructor(){this.httpService=g(y),this.dayjs=g(E)}migrateTaxAccount(){return this.httpService.post(void 0,"api/Migrate/accounting/tax",{})}getManualJournalCount(){return this.httpService.get(void 0,"api/migrate/accounting/journalheader-count",{})}getCOACount(){return this.httpService.get(void 0,"api/migrate/accounting/chartOfAccountcount",{})}getCOAConfigurationCount(){return this.httpService.get(void 0,"api/migrate/accounting/chartOfAccountConfigcount",{})}getCOACategoryCount(){return this.httpService.get(void 0,"api/migrate/accounting/chartOfAccountCategorycount",{})}getOutletAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/outletaccount-count",{})}getPaymentMethodAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/paymentmethodaccountcount",{})}getWriteOffOutletAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/writeoffoutletaccountCount",{})}getTaxAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/taxcount",{})}getExpenseAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/expenseaccountcount",{})}migrateCoaAccount(){return this.httpService.post(void 0,"api/Migrate/accounting/chartOfAccount",{})}migrateCoaConfig(){return this.httpService.post(void 0,"api/Migrate/accounting/chartOfAccountConfig",{})}migrateCoaCategory(){return this.httpService.post(void 0,"api/Migrate/accounting/chartOfAccountCategory",{})}migrateOutletAccount(){return this.httpService.post(void 0,"api/Migrate/accounting/outletaccount",{})}migrateManualJournal(e){let n={From:e.From?this.dayjs.from(e.From).format():null,To:e.To?this.dayjs.from(e.To).format():null,PageNumber:e.PageNumber||1,PageSize:e.PageSize||50},o=new _;return Object.keys(n).forEach(f=>{o=o.append(f,n[f])}),this.httpService.get(void 0,"api/migrate/accounting/journalheader",{params:o})}formatManualCOA(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-coa",{})}formatExpenseAccount(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-expenseaccount",{})}formatWriteOff(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-writeoff",{})}formatManualCOAConfig(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-coa-config",{})}formatOutletAccount(){return this.httpService.delete(void 0,"api/migrate/accounting/truncate-outlet-account",{})}formatPaymentAccount(){return this.httpService.delete(void 0,"api/migrate/accounting/truncate-paymentmethod",{})}formatTaxAccount(){return this.httpService.delete(void 0,"api/migrate/accounting/truncate-tax",{})}formatManualJournal(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-journal",{})}formatManualCOACategory(){return this.httpService.delete(void 0,"api/migrate/accounting/truncate-coag",{})}migratePaymentMethod(){return this.httpService.post(void 0,"api/Migrate/accounting/paymentmethodaccount",{})}migrateWriteOffOutlet(){return this.httpService.post(void 0,"api/Migrate/accounting/writeoffoutletaccount",{})}migrateExpenseAccount(){return this.httpService.post(void 0,"api/Migrate/accounting/expenseaccount",{})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=s({token:t,factory:t.\u0275fac})}}return t})();function F(t,d){t&1&&(i(0,"div",5)(1,"div",6),x(2,"i",7),r()())}function I(t,d){if(t&1&&(i(0,"div",8),p(1),M(2,"number"),r()),t&2){let e=m();u(),l(" ",S(2,1,e.migrationCount(),"1.0-0")," ")}}function D(t,d){if(t&1&&(i(0,"div",9),p(1),r()),t&2){let e=m();u(),l(" ",e.migrationTitle()," ")}}function R(t,d){if(t&1&&(i(0,"div",10)(1,"div",11),p(2),r()()),t&2){let e=m();u(2),v(e.migrationPlace())}}var q=(()=>{class t{constructor(){this.migrationTitle=c(),this.migrationCount=c(),this.migrationPlace=c()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=h({type:t,selectors:[["app-migration-cards"]],inputs:{migrationTitle:[1,"migrationTitle"],migrationCount:[1,"migrationCount"],migrationPlace:[1,"migrationPlace"]},decls:9,vars:0,consts:[["header",""],["title",""],["subtitle",""],["footer",""],[1,"text-center","flex","flex-column","justify-content-center","align-items-center","card-shadow","responsive-card"],[1,"d-flex","justify-content-center"],[1,"d-flex","justify-content-center","align-items-center","mt-4",2,"width","60px","height","60px","background-color","#e0f0ff","border-radius","50%"],[1,"icon","fa-file-lines","fa-light",2,"font-size","25px","color","#007bff"],[1,"bigscale","fw-bold"],[1,"text-sm","text-secondary"],[1,"flex","mt-5"],[1,"p-6","fs-7","fw-bold"]],template:function(n,o){n&1&&(i(0,"p-card",4),C(1,F,3,0,"ng-template",null,0,a)(3,I,3,4,"ng-template",null,1,a)(5,D,2,1,"ng-template",null,2,a)(7,R,3,1,"ng-template",null,3,a),r())},dependencies:[A,O,j,T,b,w,P],styles:["[_nghost-%COMP%] .p-card .p-card-title .bigscale{font-size:3rem!important;margin-top:2rem!important}[_nghost-%COMP%] .p-card{box-shadow:0 .25rem 1.25rem #0000001a!important;width:21.875rem!important;height:25rem!important}@media (max-width: 85rem){[_nghost-%COMP%] .p-card{width:18.875rem!important;height:21rem!important}[_nghost-%COMP%] .p-card .p-card-title .bigscale{font-size:2rem!important;margin-top:1rem!important}}@media (min-width: 85.001rem) and (max-width: 97.999rem){[_nghost-%COMP%] .p-card{width:21rem!important;height:25rem!important}[_nghost-%COMP%] .p-card .p-card-title .bigscale{font-size:3rem!important;margin-top:2rem!important}}@media (min-width: 98rem){[_nghost-%COMP%] .p-card{width:25rem!important;height:28rem!important}[_nghost-%COMP%] .p-card .p-card-title .bigscale{font-size:5rem!important;margin-top:2rem!important}}"]})}}return t})();export{N as a,q as b};
1
+ import{b as E}from"./chunk-R2LSSQOS.js";import{b as w}from"./chunk-5U7KZJ3H.js";import{a as T,b as j}from"./chunk-FHJOSHI3.js";import{b as P}from"./chunk-ISIYG4D5.js";import{x as b}from"./chunk-O44DI62I.js";import{a as y}from"./chunk-G3BJCT7T.js";import{d as _}from"./chunk-KL3TPLRB.js";import{s as O,u as A}from"./chunk-DM2JLWKE.js";import{Ea as c,Eb as C,Oc as M,Qc as S,Sc as a,Wb as i,Xb as r,Yb as x,ca as s,gc as m,ia as g,ib as u,sc as p,tc as v,uc as l,yb as h}from"./chunk-6QJHEOXN.js";var N=(()=>{class t{constructor(){this.httpService=g(y),this.dayjs=g(E)}migrateTaxAccount(){return this.httpService.post(void 0,"api/Migrate/accounting/tax",{})}getManualJournalCount(){return this.httpService.get(void 0,"api/migrate/accounting/journalheader-count",{})}getCOACount(){return this.httpService.get(void 0,"api/migrate/accounting/chartOfAccountcount",{})}getCOAConfigurationCount(){return this.httpService.get(void 0,"api/migrate/accounting/chartOfAccountConfigcount",{})}getCOACategoryCount(){return this.httpService.get(void 0,"api/migrate/accounting/chartOfAccountCategorycount",{})}getOutletAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/outletaccount-count",{})}getPaymentMethodAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/paymentmethodaccountcount",{})}getWriteOffOutletAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/writeoffoutletaccountCount",{})}getTaxAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/taxcount",{})}getExpenseAccountCount(){return this.httpService.get(void 0,"api/migrate/accounting/expenseaccountcount",{})}migrateCoaAccount(){return this.httpService.post(void 0,"api/Migrate/accounting/chartOfAccount",{})}migrateCoaConfig(){return this.httpService.post(void 0,"api/Migrate/accounting/chartOfAccountConfig",{})}migrateCoaCategory(){return this.httpService.post(void 0,"api/Migrate/accounting/chartOfAccountCategory",{})}migrateOutletAccount(){return this.httpService.post(void 0,"api/Migrate/accounting/outletaccount",{})}migrateManualJournal(e){let n={From:e.From?this.dayjs.from(e.From).format():null,To:e.To?this.dayjs.from(e.To).format():null,PageNumber:e.PageNumber||1,PageSize:e.PageSize||50},o=new _;return Object.keys(n).forEach(f=>{o=o.append(f,n[f])}),this.httpService.get(void 0,"api/migrate/accounting/journalheader",{params:o})}formatManualCOA(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-coa",{})}formatExpenseAccount(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-expenseaccount",{})}formatWriteOff(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-writeoff",{})}formatManualCOAConfig(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-coa-config",{})}formatOutletAccount(){return this.httpService.delete(void 0,"api/migrate/accounting/truncate-outlet-account",{})}formatPaymentAccount(){return this.httpService.delete(void 0,"api/migrate/accounting/truncate-paymentmethod",{})}formatTaxAccount(){return this.httpService.delete(void 0,"api/migrate/accounting/truncate-tax",{})}formatManualJournal(){return this.httpService.delete(void 0,"api/Migrate/accounting/truncate-journal",{})}formatManualCOACategory(){return this.httpService.delete(void 0,"api/migrate/accounting/truncate-coag",{})}migratePaymentMethod(){return this.httpService.post(void 0,"api/Migrate/accounting/paymentmethodaccount",{})}migrateWriteOffOutlet(){return this.httpService.post(void 0,"api/Migrate/accounting/writeoffoutletaccount",{})}migrateExpenseAccount(){return this.httpService.post(void 0,"api/Migrate/accounting/expenseaccount",{})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=s({token:t,factory:t.\u0275fac})}}return t})();function F(t,d){t&1&&(i(0,"div",5)(1,"div",6),x(2,"i",7),r()())}function I(t,d){if(t&1&&(i(0,"div",8),p(1),M(2,"number"),r()),t&2){let e=m();u(),l(" ",S(2,1,e.migrationCount(),"1.0-0")," ")}}function D(t,d){if(t&1&&(i(0,"div",9),p(1),r()),t&2){let e=m();u(),l(" ",e.migrationTitle()," ")}}function R(t,d){if(t&1&&(i(0,"div",10)(1,"div",11),p(2),r()()),t&2){let e=m();u(2),v(e.migrationPlace())}}var q=(()=>{class t{constructor(){this.migrationTitle=c(),this.migrationCount=c(),this.migrationPlace=c()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=h({type:t,selectors:[["app-migration-cards"]],inputs:{migrationTitle:[1,"migrationTitle"],migrationCount:[1,"migrationCount"],migrationPlace:[1,"migrationPlace"]},decls:9,vars:0,consts:[["header",""],["title",""],["subtitle",""],["footer",""],[1,"text-center","flex","flex-column","justify-content-center","align-items-center","card-shadow","responsive-card"],[1,"d-flex","justify-content-center"],[1,"d-flex","justify-content-center","align-items-center","mt-4",2,"width","60px","height","60px","background-color","#e0f0ff","border-radius","50%"],[1,"icon","fa-file-lines","fa-light",2,"font-size","25px","color","#007bff"],[1,"bigscale","fw-bold"],[1,"text-sm","text-secondary"],[1,"flex","mt-5"],[1,"p-6","fs-7","fw-bold"]],template:function(n,o){n&1&&(i(0,"p-card",4),C(1,F,3,0,"ng-template",null,0,a)(3,I,3,4,"ng-template",null,1,a)(5,D,2,1,"ng-template",null,2,a)(7,R,3,1,"ng-template",null,3,a),r())},dependencies:[A,O,j,T,b,w,P],styles:["[_nghost-%COMP%] .p-card .p-card-title .bigscale{font-size:3rem!important;margin-top:2rem!important}[_nghost-%COMP%] .p-card{box-shadow:0 .25rem 1.25rem #0000001a!important;width:21.875rem!important;height:25rem!important}@media (max-width: 85rem){[_nghost-%COMP%] .p-card{width:18.875rem!important;height:21rem!important}[_nghost-%COMP%] .p-card .p-card-title .bigscale{font-size:2rem!important;margin-top:1rem!important}}@media (min-width: 85.001rem) and (max-width: 97.999rem){[_nghost-%COMP%] .p-card{width:21rem!important;height:25rem!important}[_nghost-%COMP%] .p-card .p-card-title .bigscale{font-size:3rem!important;margin-top:2rem!important}}@media (min-width: 98rem){[_nghost-%COMP%] .p-card{width:25rem!important;height:28rem!important}[_nghost-%COMP%] .p-card .p-card-title .bigscale{font-size:5rem!important;margin-top:2rem!important}}"]})}}return t})();export{N as a,q as b};
@@ -1 +1 @@
1
- import"./chunk-YQFG5XE2.js";var t=[{path:"",redirectTo:"users",pathMatch:"full"},{path:"",children:[{path:"users",loadComponent:()=>import("./chunk-HUNIPNEV.js").then(o=>o.UserPageComponent)},{path:"groups",loadComponent:()=>import("./chunk-L5IWZ4Y2.js").then(o=>o.GroupPageComponent)},{path:"groups/forms",loadComponent:()=>import("./chunk-5UVNTB7W.js").then(o=>o.GroupFormComponent)}]}];export{t as USERS_ROUTES};
1
+ import"./chunk-YQFG5XE2.js";var t=[{path:"",redirectTo:"users",pathMatch:"full"},{path:"",children:[{path:"users",loadComponent:()=>import("./chunk-WBE4P4SQ.js").then(o=>o.UserPageComponent)},{path:"groups",loadComponent:()=>import("./chunk-422GGNY4.js").then(o=>o.GroupPageComponent)},{path:"groups/forms",loadComponent:()=>import("./chunk-2QKDY6BG.js").then(o=>o.GroupFormComponent)}]}];export{t as USERS_ROUTES};
@@ -1 +1 @@
1
- import{a as K}from"./chunk-QCGJB7O7.js";import{a as H}from"./chunk-KARG227P.js";import{a as U,b as Y}from"./chunk-AAKZYXG3.js";import{a as Q}from"./chunk-BT7Y4ADP.js";import{i as W}from"./chunk-3NF5ANCH.js";import"./chunk-VM56C6ZV.js";import{a as O}from"./chunk-ISIYG4D5.js";import"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{n as q,w as A}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import{b as J,c as R,e as k,f as z,m as G,p as P,v as V,y as B}from"./chunk-MGIEURA2.js";import{b as M,d as w}from"./chunk-DZCJWJUG.js";import"./chunk-H6JPNVHO.js";import"./chunk-G3BJCT7T.js";import"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{j,m as N}from"./chunk-DM2JLWKE.js";import{D as h,Eb as u,Fc as E,I as b,Mb as r,N as T,Sc as y,Wb as n,Xb as o,Y as v,Yb as m,_ as x,ac as D,fc as F,gc as c,ia as s,ib as a,k as _,qa as C,ra as I,sc as l,yb as S}from"./chunk-6QJHEOXN.js";import{a as f,b as g}from"./chunk-YQFG5XE2.js";var L=t=>({"ng-invalid ng-dirty":t});function X(t,d){if(t&1){let e=D();n(0,"div")(1,"p-button",3),F("onClick",function(){C(e);let p=c();return I(p.onSubmit())}),o()()}}function Z(t,d){t&1&&(n(0,"div",24),l(1," Name is required "),o())}function $(t,d){if(t&1&&(n(0,"div"),u(1,Z,2,0,"div",23),o()),t&2){let e=c(2);a(),r("ngIf",e.form.controls.name.errors.required)}}function ee(t,d){if(t&1&&(n(0,"p-panel",4)(1,"div",5)(2,"div",6)(3,"div",7)(4,"div",8)(5,"div",9)(6,"div",7)(7,"div",10)(8,"label",11),l(9,"Type Id"),o(),n(10,"div",12)(11,"div",13),m(12,"p-radiobutton",14),n(13,"label",15),l(14,"Generic"),o()(),n(15,"div",13),m(16,"p-radiobutton",16),n(17,"label",17),l(18,"Outlet"),o()()()(),m(19,"div",18),o(),n(20,"div",19)(21,"label",11),l(22,"Name"),o(),m(23,"input",20),u(24,$,2,1,"div",21),o()(),n(25,"div",9)(26,"div",19)(27,"label",11),l(28,"Description"),o(),m(29,"textarea",22),o()()()()()()()),t&2){let e=c();a(),r("formGroup",e.form),a(11),r("value",0),a(4),r("value",1),a(7),r("ngClass",E(6,L,e.form.controls.name.invalid&&(e.form.controls.name.dirty||e.form.controls.name.touched))),a(),r("ngIf",e.form.controls.name.invalid&&(e.form.controls.name.dirty||e.form.controls.name.touched)),a(5),r("autoResize",!0)}}var ye=(()=>{class t{constructor(){this.fb=s(V),this.journalTagService=s(K),this.route=s(M),this.router=s(w)}initForm(){console.log("Initializing form"),this.form=this.fb.group({name:this.fb.control("",[R.required]),description:this.fb.control(""),typeID:this.fb.control(!1)})}ngOnInit(){this.initForm(),this.route.queryParamMap.pipe(h(e=>e.has("id")),v(e=>this.journalTagService.journalTagGet(e.get("id"))),Q("Query params"),x(e=>{console.log("Got journal tag:",e),this.form.patchValue({name:e.name,description:e.description})})).subscribe()}onSubmit(){if(this.form.invalid){this.form.markAllAsTouched();return}let e=this.form.getRawValue();this.route.queryParamMap.pipe(T(1),v(i=>{let p=i.get("id");return p?this.journalTagService.journalTagUpdate(g(f({},e),{typeID:Number(e.typeID)}),p):this.journalTagService.journalTagCreate(g(f({},e),{typeID:Number(e.typeID)}))}),x(()=>{console.log("Journal tag saved successfully"),this.router.navigate(["/pages/accounting-setup/journal-tag"])}),b(i=>(console.error("Failed to save journal tag:",i),_))).subscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=S({type:t,selectors:[["app-journal-tag-form"]],decls:5,vars:1,consts:[["actionButton",""],["content",""],["pageTitle","Journal Tag Form",3,"hasMainWrapperPadding"],["label","Submit",3,"onClick"],["styleClass","rounded-2"],[1,"d-flex","flex-column","gap-2",3,"formGroup"],[1,"row"],[1,"col-6"],[1,"row","row-gap-2"],[1,"col-10"],[1,"d-flex","flex-column","h-100"],["for",""],[1,"d-flex","h-100","align-items-center","gap-3"],[1,"d-flex","justify-content-center","gap-2"],["formControlName","typeID","inputId","typeID0","name","typeID",3,"value"],["for","typeID0",1,"m-0"],["formControlName","typeID","inputId","typeID1","name","typeID",3,"value"],["for","typeID1",1,"m-0"],[1,"my-2"],[1,"d-flex","flex-column"],["formControlName","name","pInputText","","size","small","type","text",2,"font-size","14px",3,"ngClass"],[4,"ngIf"],["cols","30","formControlName","description","pSize","large","pTextarea","","rows","2",2,"font-size","14px",3,"autoResize"],["class","invalid-feedback text-danger d-block",4,"ngIf"],[1,"invalid-feedback","text-danger","d-block"]],template:function(i,p){i&1&&(n(0,"app-main-panel",2),u(1,X,2,0,"ng-template",null,0,y)(3,ee,30,8,"ng-template",null,1,y),o()),i&2&&r("hasMainWrapperPadding",!0)},dependencies:[W,q,N,O,B,J,k,z,G,P,H,A,j,Y,U],encapsulation:2})}}return t})();export{ye as JournalTagFormComponent};
1
+ import{a as K}from"./chunk-QCGJB7O7.js";import{a as H}from"./chunk-KARG227P.js";import{a as U,b as Y}from"./chunk-AAKZYXG3.js";import{a as Q}from"./chunk-BT7Y4ADP.js";import{i as W}from"./chunk-2FRTGIZ6.js";import"./chunk-VM56C6ZV.js";import{a as O}from"./chunk-ISIYG4D5.js";import"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{n as q,w as A}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import{b as J,c as R,e as k,f as z,m as G,p as P,v as V,y as B}from"./chunk-MGIEURA2.js";import{b as M,d as w}from"./chunk-DZCJWJUG.js";import"./chunk-V6RWSUKY.js";import"./chunk-G3BJCT7T.js";import"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{j,m as N}from"./chunk-DM2JLWKE.js";import{D as h,Eb as u,Fc as E,I as b,Mb as r,N as T,Sc as y,Wb as n,Xb as o,Y as v,Yb as m,_ as x,ac as D,fc as F,gc as c,ia as s,ib as a,k as _,qa as C,ra as I,sc as l,yb as S}from"./chunk-6QJHEOXN.js";import{a as f,b as g}from"./chunk-YQFG5XE2.js";var L=t=>({"ng-invalid ng-dirty":t});function X(t,d){if(t&1){let e=D();n(0,"div")(1,"p-button",3),F("onClick",function(){C(e);let p=c();return I(p.onSubmit())}),o()()}}function Z(t,d){t&1&&(n(0,"div",24),l(1," Name is required "),o())}function $(t,d){if(t&1&&(n(0,"div"),u(1,Z,2,0,"div",23),o()),t&2){let e=c(2);a(),r("ngIf",e.form.controls.name.errors.required)}}function ee(t,d){if(t&1&&(n(0,"p-panel",4)(1,"div",5)(2,"div",6)(3,"div",7)(4,"div",8)(5,"div",9)(6,"div",7)(7,"div",10)(8,"label",11),l(9,"Type Id"),o(),n(10,"div",12)(11,"div",13),m(12,"p-radiobutton",14),n(13,"label",15),l(14,"Generic"),o()(),n(15,"div",13),m(16,"p-radiobutton",16),n(17,"label",17),l(18,"Outlet"),o()()()(),m(19,"div",18),o(),n(20,"div",19)(21,"label",11),l(22,"Name"),o(),m(23,"input",20),u(24,$,2,1,"div",21),o()(),n(25,"div",9)(26,"div",19)(27,"label",11),l(28,"Description"),o(),m(29,"textarea",22),o()()()()()()()),t&2){let e=c();a(),r("formGroup",e.form),a(11),r("value",0),a(4),r("value",1),a(7),r("ngClass",E(6,L,e.form.controls.name.invalid&&(e.form.controls.name.dirty||e.form.controls.name.touched))),a(),r("ngIf",e.form.controls.name.invalid&&(e.form.controls.name.dirty||e.form.controls.name.touched)),a(5),r("autoResize",!0)}}var ye=(()=>{class t{constructor(){this.fb=s(V),this.journalTagService=s(K),this.route=s(M),this.router=s(w)}initForm(){console.log("Initializing form"),this.form=this.fb.group({name:this.fb.control("",[R.required]),description:this.fb.control(""),typeID:this.fb.control(!1)})}ngOnInit(){this.initForm(),this.route.queryParamMap.pipe(h(e=>e.has("id")),v(e=>this.journalTagService.journalTagGet(e.get("id"))),Q("Query params"),x(e=>{console.log("Got journal tag:",e),this.form.patchValue({name:e.name,description:e.description})})).subscribe()}onSubmit(){if(this.form.invalid){this.form.markAllAsTouched();return}let e=this.form.getRawValue();this.route.queryParamMap.pipe(T(1),v(i=>{let p=i.get("id");return p?this.journalTagService.journalTagUpdate(g(f({},e),{typeID:Number(e.typeID)}),p):this.journalTagService.journalTagCreate(g(f({},e),{typeID:Number(e.typeID)}))}),x(()=>{console.log("Journal tag saved successfully"),this.router.navigate(["/pages/accounting-setup/journal-tag"])}),b(i=>(console.error("Failed to save journal tag:",i),_))).subscribe()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=S({type:t,selectors:[["app-journal-tag-form"]],decls:5,vars:1,consts:[["actionButton",""],["content",""],["pageTitle","Journal Tag Form",3,"hasMainWrapperPadding"],["label","Submit",3,"onClick"],["styleClass","rounded-2"],[1,"d-flex","flex-column","gap-2",3,"formGroup"],[1,"row"],[1,"col-6"],[1,"row","row-gap-2"],[1,"col-10"],[1,"d-flex","flex-column","h-100"],["for",""],[1,"d-flex","h-100","align-items-center","gap-3"],[1,"d-flex","justify-content-center","gap-2"],["formControlName","typeID","inputId","typeID0","name","typeID",3,"value"],["for","typeID0",1,"m-0"],["formControlName","typeID","inputId","typeID1","name","typeID",3,"value"],["for","typeID1",1,"m-0"],[1,"my-2"],[1,"d-flex","flex-column"],["formControlName","name","pInputText","","size","small","type","text",2,"font-size","14px",3,"ngClass"],[4,"ngIf"],["cols","30","formControlName","description","pSize","large","pTextarea","","rows","2",2,"font-size","14px",3,"autoResize"],["class","invalid-feedback text-danger d-block",4,"ngIf"],[1,"invalid-feedback","text-danger","d-block"]],template:function(i,p){i&1&&(n(0,"app-main-panel",2),u(1,X,2,0,"ng-template",null,0,y)(3,ee,30,8,"ng-template",null,1,y),o()),i&2&&r("hasMainWrapperPadding",!0)},dependencies:[W,q,N,O,B,J,k,z,G,P,H,A,j,Y,U],encapsulation:2})}}return t})();export{ye as JournalTagFormComponent};
@@ -1 +1 @@
1
- import{a as u}from"./chunk-6YXA7GFO.js";import{a as o}from"./chunk-G3BJCT7T.js";import{ca as i,ia as n}from"./chunk-6QJHEOXN.js";var d=(()=>{class r{constructor(){this.httpService=n(o),this.authService=n(u)}getJournalInvoiceLoader(){return this.httpService.get(void 0,"api/GenerateJournal/invoice/Loader")}getCustomerSuggestions(e){let t={Prefix:e,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/API/AC/GetCustomerSuggestion",{params:t})}getJournalInvoice(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/invoice/get",t)}generateJournalInvoice(e){return this.httpService.post(void 0,"api/GenerateJournal/invoice/Submit",e)}getGJSupplierBillLoader(){return this.httpService.get(void 0,"api/GenerateJournal/bill/Loader")}getJournalSupplierBill(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/bill/get",t)}generateJournalSupplierBill(e){return this.httpService.post(void 0,"api/GenerateJournal/bill/Submit",e)}getGJShiftLoader(){return this.httpService.get(void 0,"api/GenerateJournal/Shift/Loader")}getJournalShift(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/Shift/get",t)}generateJornalShift(e){return this.httpService.post(void 0,"api/GenerateJournal/Shift/Submit",e)}getARJournalLoader(){return this.httpService.get(void 0,"/api/GenerateJournal/JoinInvoice/Loader")}getARJournal(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/JoinInvoice/get",t)}createARJournal(e){return this.httpService.post(void 0,"api/GenerateJournal/JoinInvoice/Submit",e)}getAPJournalLoader(){return this.httpService.get(void 0,"/api/GenerateJournal/JoinBill/Loader")}getAPJournal(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/JoinBill/get",t)}createAPJournal(e){return this.httpService.post(void 0,"api/GenerateJournal/JoinBill/Submit",e)}getGJAdjustmentLoader(){return this.httpService.get(void 0,"api/GenerateJournal/InventoryAdjustment/Loader")}getAdjustmentJournal(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/InventoryAdjustment/get",t)}createAdjustmentJournal(e){return this.httpService.post(void 0,"api/GenerateJournal/InventoryAdjustment/Submit",e)}getSupplierSuggestions(e){let t={Prefix:e,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/API/AC/GetSupplierSuggestion",{params:t})}static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275prov=i({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();export{d as a};
1
+ import{a as u}from"./chunk-YTM3A7AA.js";import{a as o}from"./chunk-G3BJCT7T.js";import{ca as i,ia as n}from"./chunk-6QJHEOXN.js";var d=(()=>{class r{constructor(){this.httpService=n(o),this.authService=n(u)}getJournalInvoiceLoader(){return this.httpService.get(void 0,"api/GenerateJournal/invoice/Loader")}getCustomerSuggestions(e){let t={Prefix:e,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/API/AC/GetCustomerSuggestion",{params:t})}getJournalInvoice(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/invoice/get",t)}generateJournalInvoice(e){return this.httpService.post(void 0,"api/GenerateJournal/invoice/Submit",e)}getGJSupplierBillLoader(){return this.httpService.get(void 0,"api/GenerateJournal/bill/Loader")}getJournalSupplierBill(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/bill/get",t)}generateJournalSupplierBill(e){return this.httpService.post(void 0,"api/GenerateJournal/bill/Submit",e)}getGJShiftLoader(){return this.httpService.get(void 0,"api/GenerateJournal/Shift/Loader")}getJournalShift(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/Shift/get",t)}generateJornalShift(e){return this.httpService.post(void 0,"api/GenerateJournal/Shift/Submit",e)}getARJournalLoader(){return this.httpService.get(void 0,"/api/GenerateJournal/JoinInvoice/Loader")}getARJournal(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/JoinInvoice/get",t)}createARJournal(e){return this.httpService.post(void 0,"api/GenerateJournal/JoinInvoice/Submit",e)}getAPJournalLoader(){return this.httpService.get(void 0,"/api/GenerateJournal/JoinBill/Loader")}getAPJournal(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/JoinBill/get",t)}createAPJournal(e){return this.httpService.post(void 0,"api/GenerateJournal/JoinBill/Submit",e)}getGJAdjustmentLoader(){return this.httpService.get(void 0,"api/GenerateJournal/InventoryAdjustment/Loader")}getAdjustmentJournal(e){let t={params:e};return this.httpService.get(void 0,"api/GenerateJournal/InventoryAdjustment/get",t)}createAdjustmentJournal(e){return this.httpService.post(void 0,"api/GenerateJournal/InventoryAdjustment/Submit",e)}getSupplierSuggestions(e){let t={Prefix:e,Count:100};return this.httpService.get(this.authService.getTenantExternalURL(),"/API/AC/GetSupplierSuggestion",{params:t})}static{this.\u0275fac=function(t){return new(t||r)}}static{this.\u0275prov=i({token:r,factory:r.\u0275fac,providedIn:"root"})}}return r})();export{d as a};
@@ -1 +1 @@
1
- import{a as J}from"./chunk-52PEVPZN.js";import{a as P}from"./chunk-5VKDAA74.js";import"./chunk-AAKZYXG3.js";import{a as v}from"./chunk-BT7Y4ADP.js";import{i as V}from"./chunk-3NF5ANCH.js";import"./chunk-VM56C6ZV.js";import{a as O}from"./chunk-ISIYG4D5.js";import"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{w as M}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import{e as G,f as A,k as N,m as D,p as T,v as j,y as B}from"./chunk-MGIEURA2.js";import"./chunk-H6JPNVHO.js";import"./chunk-G3BJCT7T.js";import"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import"./chunk-DM2JLWKE.js";import{Eb as f,Ha as h,Mb as y,Rb as E,Sc as p,Wb as n,Xb as t,Yb as o,_,ac as w,fc as F,gc as d,ia as u,ib as S,qa as x,ra as C,sc as r,yb as b}from"./chunk-6QJHEOXN.js";import{a as m,b as c}from"./chunk-YQFG5XE2.js";function I(i,s){if(i&1){let e=w();n(0,"p-button",4),F("onClick",function(){x(e);let l=d();return C(l.onSubmit())}),t()}}function L(i,s){i&1&&(n(0,"div",6)(1,"div",7)(2,"h3",8),r(3,"Journal Generate"),t(),n(4,"p",9),r(5,"Configure generate transaction"),t()()())}function q(i,s){if(i&1&&(n(0,"form",5)(1,"div",10)(2,"div",11)(3,"div",10)(4,"div",7)(5,"div",10)(6,"div",12)(7,"span",13),r(8,"Outlet Delivery Journal"),t()(),n(9,"div",7),o(10,"p-toggleswitch",14),t(),o(11,"div",7),t()(),n(12,"div",7)(13,"div",10)(14,"div",12)(15,"span",13),r(16,"Payment Discount Journal On Payment"),t()(),n(17,"div",7),o(18,"p-toggle-switch",15),t()()()(),n(19,"div",10)(20,"div",7)(21,"div",10)(22,"div",12)(23,"span",13),r(24,"Note required on journal"),t()(),n(25,"div",7),o(26,"p-toggleswitch",16),t()()(),n(27,"div",7)(28,"div",10)(29,"div",12)(30,"span",13),r(31,"Trial balance footer visible"),t()(),n(32,"div",7),o(33,"p-toggle-switch",17),t()()()(),n(34,"div",10)(35,"div",7),o(36,"div",10),t()()()()()),i&2){let e=d(2);y("formGroup",e.form)}}function z(i,s){if(i&1&&(n(0,"p-panel"),f(1,L,6,0,"ng-template",null,2,p)(3,q,37,1,"form",5),t()),i&2){let e=d();S(3),E(e.loader()?3:-1)}}var ie=(()=>{class i{constructor(){this.loader=h(null),this.accountingSetupService=u(J),this.fb=u(j)}ngOnInit(){this.accountingSetupService.fetchLoaderConfiguration().pipe(v("Loader Configuration"),_(e=>{this.loader.set(e),this.generateForm(e.form)})).subscribe()}generateForm(e){this.form=this.fb.group({generatePrepaidJournal:this.fb.control(e.report.generatePrepaidJournal),noteMandatory:this.fb.control(e.journalGenerate.noteMandatory),paymentDiscount:this.fb.control(e.journalGenerate.paymentDiscount),transferOrder:this.fb.control(e.journalGenerate.transferOrder),trialBalanceFooterVisible:this.fb.control(e.journalGenerate.trialBalanceFooterVisible)})}onSubmit(){let{generatePrepaidJournal:e,paymentDiscount:a,trialBalanceFooterVisible:l,transferOrder:k,noteMandatory:R}=this.form.value,g=c(m({},this.loader().form),{report:c(m({},this.loader().form.report),{generatePrepaidJournal:e}),journalGenerate:c(m({},this.loader().form.journalGenerate),{transferOrder:k,noteMandatory:R,paymentDiscount:a,trialBalanceFooterVisible:l})});console.log(g),this.accountingSetupService.updateAccountingIntegrationConfiguration(g).pipe(v("response")).subscribe()}static{this.\u0275fac=function(a){return new(a||i)}}static{this.\u0275cmp=b({type:i,selectors:[["app-advanced"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Advanced"],["icon","fa-solid fa-floppy-disk","label","Save",3,"onClick"],[1,"container-fluid","p-0",3,"formGroup"],[1,"row","px-2"],[1,"col"],[1,"fs-4","m-0"],[1,"fs-3","text-secondary"],[1,"row"],[1,"col-10","col-xl-6","d-flex","flex-column","gap-4"],[1,"col-12"],[1,"fs-3","text-black","fw-normal"],["formControlName","transferOrder"],["formControlName","paymentDiscount"],["formControlName","noteMandatory"],["formControlName","trialBalanceFooterVisible"]],template:function(a,l){a&1&&(n(0,"app-main-panel",3),f(1,I,1,0,"ng-template",null,0,p)(3,z,4,1,"ng-template",null,1,p),t())},dependencies:[V,O,B,N,G,A,D,T,P,M],encapsulation:2})}}return i})();export{ie as AdvancedComponent};
1
+ import{a as J}from"./chunk-52PEVPZN.js";import{a as P}from"./chunk-5VKDAA74.js";import"./chunk-AAKZYXG3.js";import{a as v}from"./chunk-BT7Y4ADP.js";import{i as V}from"./chunk-2FRTGIZ6.js";import"./chunk-VM56C6ZV.js";import{a as O}from"./chunk-ISIYG4D5.js";import"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{w as M}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import{e as G,f as A,k as N,m as D,p as T,v as j,y as B}from"./chunk-MGIEURA2.js";import"./chunk-V6RWSUKY.js";import"./chunk-G3BJCT7T.js";import"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import"./chunk-DM2JLWKE.js";import{Eb as f,Ha as h,Mb as y,Rb as E,Sc as p,Wb as n,Xb as t,Yb as o,_,ac as w,fc as F,gc as d,ia as u,ib as S,qa as x,ra as C,sc as r,yb as b}from"./chunk-6QJHEOXN.js";import{a as m,b as c}from"./chunk-YQFG5XE2.js";function I(i,s){if(i&1){let e=w();n(0,"p-button",4),F("onClick",function(){x(e);let l=d();return C(l.onSubmit())}),t()}}function L(i,s){i&1&&(n(0,"div",6)(1,"div",7)(2,"h3",8),r(3,"Journal Generate"),t(),n(4,"p",9),r(5,"Configure generate transaction"),t()()())}function q(i,s){if(i&1&&(n(0,"form",5)(1,"div",10)(2,"div",11)(3,"div",10)(4,"div",7)(5,"div",10)(6,"div",12)(7,"span",13),r(8,"Outlet Delivery Journal"),t()(),n(9,"div",7),o(10,"p-toggleswitch",14),t(),o(11,"div",7),t()(),n(12,"div",7)(13,"div",10)(14,"div",12)(15,"span",13),r(16,"Payment Discount Journal On Payment"),t()(),n(17,"div",7),o(18,"p-toggle-switch",15),t()()()(),n(19,"div",10)(20,"div",7)(21,"div",10)(22,"div",12)(23,"span",13),r(24,"Note required on journal"),t()(),n(25,"div",7),o(26,"p-toggleswitch",16),t()()(),n(27,"div",7)(28,"div",10)(29,"div",12)(30,"span",13),r(31,"Trial balance footer visible"),t()(),n(32,"div",7),o(33,"p-toggle-switch",17),t()()()(),n(34,"div",10)(35,"div",7),o(36,"div",10),t()()()()()),i&2){let e=d(2);y("formGroup",e.form)}}function z(i,s){if(i&1&&(n(0,"p-panel"),f(1,L,6,0,"ng-template",null,2,p)(3,q,37,1,"form",5),t()),i&2){let e=d();S(3),E(e.loader()?3:-1)}}var ie=(()=>{class i{constructor(){this.loader=h(null),this.accountingSetupService=u(J),this.fb=u(j)}ngOnInit(){this.accountingSetupService.fetchLoaderConfiguration().pipe(v("Loader Configuration"),_(e=>{this.loader.set(e),this.generateForm(e.form)})).subscribe()}generateForm(e){this.form=this.fb.group({generatePrepaidJournal:this.fb.control(e.report.generatePrepaidJournal),noteMandatory:this.fb.control(e.journalGenerate.noteMandatory),paymentDiscount:this.fb.control(e.journalGenerate.paymentDiscount),transferOrder:this.fb.control(e.journalGenerate.transferOrder),trialBalanceFooterVisible:this.fb.control(e.journalGenerate.trialBalanceFooterVisible)})}onSubmit(){let{generatePrepaidJournal:e,paymentDiscount:a,trialBalanceFooterVisible:l,transferOrder:k,noteMandatory:R}=this.form.value,g=c(m({},this.loader().form),{report:c(m({},this.loader().form.report),{generatePrepaidJournal:e}),journalGenerate:c(m({},this.loader().form.journalGenerate),{transferOrder:k,noteMandatory:R,paymentDiscount:a,trialBalanceFooterVisible:l})});console.log(g),this.accountingSetupService.updateAccountingIntegrationConfiguration(g).pipe(v("response")).subscribe()}static{this.\u0275fac=function(a){return new(a||i)}}static{this.\u0275cmp=b({type:i,selectors:[["app-advanced"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Advanced"],["icon","fa-solid fa-floppy-disk","label","Save",3,"onClick"],[1,"container-fluid","p-0",3,"formGroup"],[1,"row","px-2"],[1,"col"],[1,"fs-4","m-0"],[1,"fs-3","text-secondary"],[1,"row"],[1,"col-10","col-xl-6","d-flex","flex-column","gap-4"],[1,"col-12"],[1,"fs-3","text-black","fw-normal"],["formControlName","transferOrder"],["formControlName","paymentDiscount"],["formControlName","noteMandatory"],["formControlName","trialBalanceFooterVisible"]],template:function(a,l){a&1&&(n(0,"app-main-panel",3),f(1,I,1,0,"ng-template",null,0,p)(3,z,4,1,"ng-template",null,1,p),t())},dependencies:[V,O,B,N,G,A,D,T,P,M],encapsulation:2})}}return i})();export{ie as AdvancedComponent};
@@ -1 +1 @@
1
- import{a as T,b as J}from"./chunk-4EGQ563G.js";import"./chunk-ZVDGEDMP.js";import{m as j}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as R,b as O}from"./chunk-5U7KZJ3H.js";import"./chunk-FHJOSHI3.js";import{i as z}from"./chunk-3NF5ANCH.js";import"./chunk-VM56C6ZV.js";import{a as G,b as H}from"./chunk-ISIYG4D5.js";import"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{w as D,x as N,y as L,z as q}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import"./chunk-MGIEURA2.js";import"./chunk-H6JPNVHO.js";import"./chunk-G3BJCT7T.js";import{a as V}from"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{p as E,u as I}from"./chunk-DM2JLWKE.js";import{Dc as F,Eb as C,Ec as v,Mb as m,Oc as c,Pb as y,Pc as l,Rb as h,Sc as S,W as M,Wb as n,Xb as o,Y as k,Yb as u,_ as A,ac as x,fc as P,gc as a,h as b,ia as s,ib as r,qa as g,ra as _,s as f,sa as B,ta as w,yb as $}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";var K=()=>({height:"calc(100vh - 100px)"});function Q(t,d){if(t&1){let e=x();n(0,"p-button",6),P("onClick",function(){g(e);let p=a(2);return _(p.onFormat())}),o()}}function U(t,d){if(t&1){let e=x();n(0,"p-button",7),c(1,"async"),c(2,"async"),P("onClick",function(){g(e);let p=a(2);return _(p.migratePaymentAccount())}),o()}if(t&2){let e=a(2);m("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 W(t,d){if(t&1&&(n(0,"div",3),C(1,Q,1,0,"p-button",4)(2,U,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 X(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"),B(),n(5,"svg",10),u(6,"path",11),o(),w(),u(7,"app-migration-cards",12),c(8,"async"),o()()()),t&2){let e=a();y(v(12,K)),r(),y(v(13,K)),r(2),m("migrationCount",l(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),r(4),m("migrationCount",l(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var Ce=(()=>{class t{constructor(){this.migrateService=s(T),this.toastr=s(V),this.refresh$=new b(void 0),this.pageTitle="Payment Account",this.roleService=s(j)}ngOnInit(){let e=this.refresh$.pipe(k(()=>this.migrateService.getPaymentMethodAccountCount()),A(i=>console.log("API response:",i)),M(1));this.countInPOS$=e.pipe(f(i=>Number(i.pos))),this.countInBooks$=e.pipe(f(i=>Number(i.books)))}migratePaymentAccount(){this.migrateService.migratePaymentMethod().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Migration Successful")})}onFormat(){confirm("Are you sure you want to format?")&&this.migrateService.formatPaymentAccount().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=$({type:t,selectors:[["app-payment-account"]],features:[F([T])],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),C(1,W,3,2,"ng-template",null,0,S)(3,X,9,14,"ng-template",null,1,S),o()),i&2&&m("pageTitle",p.pageTitle)},dependencies:[z,I,E,O,R,H,G,q,L,J,N,D],encapsulation:2})}}return t})();export{Ce as PaymentAccountComponent};
1
+ import{a as T,b as J}from"./chunk-443S7MFR.js";import"./chunk-R2LSSQOS.js";import{m as j}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as R,b as O}from"./chunk-5U7KZJ3H.js";import"./chunk-FHJOSHI3.js";import{i as z}from"./chunk-2FRTGIZ6.js";import"./chunk-VM56C6ZV.js";import{a as G,b as H}from"./chunk-ISIYG4D5.js";import"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{w as D,x as N,y as L,z as q}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import"./chunk-MGIEURA2.js";import"./chunk-V6RWSUKY.js";import"./chunk-G3BJCT7T.js";import{a as V}from"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{p as E,u as I}from"./chunk-DM2JLWKE.js";import{Dc as F,Eb as C,Ec as v,Mb as m,Oc as c,Pb as y,Pc as l,Rb as h,Sc as S,W as M,Wb as n,Xb as o,Y as k,Yb as u,_ as A,ac as x,fc as P,gc as a,h as b,ia as s,ib as r,qa as g,ra as _,s as f,sa as B,ta as w,yb as $}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";var K=()=>({height:"calc(100vh - 100px)"});function Q(t,d){if(t&1){let e=x();n(0,"p-button",6),P("onClick",function(){g(e);let p=a(2);return _(p.onFormat())}),o()}}function U(t,d){if(t&1){let e=x();n(0,"p-button",7),c(1,"async"),c(2,"async"),P("onClick",function(){g(e);let p=a(2);return _(p.migratePaymentAccount())}),o()}if(t&2){let e=a(2);m("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 W(t,d){if(t&1&&(n(0,"div",3),C(1,Q,1,0,"p-button",4)(2,U,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 X(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"),B(),n(5,"svg",10),u(6,"path",11),o(),w(),u(7,"app-migration-cards",12),c(8,"async"),o()()()),t&2){let e=a();y(v(12,K)),r(),y(v(13,K)),r(2),m("migrationCount",l(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),r(4),m("migrationCount",l(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var Ce=(()=>{class t{constructor(){this.migrateService=s(T),this.toastr=s(V),this.refresh$=new b(void 0),this.pageTitle="Payment Account",this.roleService=s(j)}ngOnInit(){let e=this.refresh$.pipe(k(()=>this.migrateService.getPaymentMethodAccountCount()),A(i=>console.log("API response:",i)),M(1));this.countInPOS$=e.pipe(f(i=>Number(i.pos))),this.countInBooks$=e.pipe(f(i=>Number(i.books)))}migratePaymentAccount(){this.migrateService.migratePaymentMethod().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Migration Successful")})}onFormat(){confirm("Are you sure you want to format?")&&this.migrateService.formatPaymentAccount().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=$({type:t,selectors:[["app-payment-account"]],features:[F([T])],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),C(1,W,3,2,"ng-template",null,0,S)(3,X,9,14,"ng-template",null,1,S),o()),i&2&&m("pageTitle",p.pageTitle)},dependencies:[z,I,E,O,R,H,G,q,L,J,N,D],encapsulation:2})}}return t})();export{Ce as PaymentAccountComponent};
@@ -1 +1 @@
1
- import{a as b,b as J}from"./chunk-4EGQ563G.js";import"./chunk-ZVDGEDMP.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 z}from"./chunk-3NF5ANCH.js";import"./chunk-VM56C6ZV.js";import{a as G,b as H}from"./chunk-ISIYG4D5.js";import"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{w as D,x as N,y as L,z as q}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import"./chunk-MGIEURA2.js";import"./chunk-H6JPNVHO.js";import"./chunk-G3BJCT7T.js";import{a as O}from"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{p as E,u as I}from"./chunk-DM2JLWKE.js";import{Dc as F,Eb as _,Ec as S,Mb as l,Oc as s,Pb as y,Pc as m,Rb as h,Sc as T,W as k,Wb as o,Xb as n,Y as B,Yb as g,_ as P,ac as x,fc as v,gc as a,h as M,ia as c,ib as r,qa as f,ra as d,s as C,sa as w,ta as $,yb as A}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";var K=()=>({height:"calc(100vh - 100px)"});function Q(t,u){if(t&1){let e=x();o(0,"p-button",6),v("onClick",function(){f(e);let p=a(2);return d(p.onFormatCOACategory())}),n()}}function U(t,u){if(t&1){let e=x();o(0,"p-button",7),s(1,"async"),s(2,"async"),v("onClick",function(){f(e);let p=a(2);return d(p.onMigrateCoaCategory())}),n()}if(t&2){let e=a(2);l("disabled",m(1,2,e.countInBooks$)!==0)("pTooltip",m(2,4,e.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function W(t,u){if(t&1&&(o(0,"div",3),_(1,Q,1,0,"p-button",4)(2,U,3,6,"p-button",5),n()),t&2){let e=a();r(),h(e.roleService.permissions().migrate.delete?1:-1),r(),h(e.roleService.permissions().migrate.create?2:-1)}}function X(t,u){if(t&1&&(o(0,"p-scroll-panel")(1,"p-panel")(2,"div",8),g(3,"app-migration-cards",9),s(4,"async"),w(),o(5,"svg",10),g(6,"path",11),n(),$(),g(7,"app-migration-cards",12),s(8,"async"),n()()()),t&2){let e=a();y(S(12,K)),r(),y(S(13,K)),r(2),l("migrationCount",m(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),r(4),l("migrationCount",m(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var _e=(()=>{class t{constructor(){this.migrateService=c(b),this.toastr=c(O),this.refresh$=new M(void 0),this.pageTitle="Chart of Account Category",this.roleService=c(V)}ngOnInit(){let e=this.refresh$.pipe(B(()=>this.migrateService.getCOACategoryCount()),P(i=>console.log("API response:",i)),k(1));this.countInPOS$=e.pipe(C(i=>Number(i.pos))),this.countInBooks$=e.pipe(C(i=>Number(i.books)))}onMigrateCoaCategory(){this.migrateService.migrateCoaCategory().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Migration Successful")})}onFormatCOACategory(){confirm("Are you sure you want to format?")&&this.migrateService.formatManualCOACategory().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=A({type:t,selectors:[["app-coa-configuration"]],features:[F([b])],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&&(o(0,"app-main-panel",2),_(1,W,3,2,"ng-template",null,0,T)(3,X,9,14,"ng-template",null,1,T),n()),i&2&&l("pageTitle",p.pageTitle)},dependencies:[z,I,E,N,D,R,j,H,G,q,L,J],encapsulation:2})}}return t})();export{_e as CoaCategoryComponent};
1
+ import{a as b,b as J}from"./chunk-443S7MFR.js";import"./chunk-R2LSSQOS.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 z}from"./chunk-2FRTGIZ6.js";import"./chunk-VM56C6ZV.js";import{a as G,b as H}from"./chunk-ISIYG4D5.js";import"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{w as D,x as N,y as L,z as q}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import"./chunk-MGIEURA2.js";import"./chunk-V6RWSUKY.js";import"./chunk-G3BJCT7T.js";import{a as O}from"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{p as E,u as I}from"./chunk-DM2JLWKE.js";import{Dc as F,Eb as _,Ec as S,Mb as l,Oc as s,Pb as y,Pc as m,Rb as h,Sc as T,W as k,Wb as o,Xb as n,Y as B,Yb as g,_ as P,ac as x,fc as v,gc as a,h as M,ia as c,ib as r,qa as f,ra as d,s as C,sa as w,ta as $,yb as A}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";var K=()=>({height:"calc(100vh - 100px)"});function Q(t,u){if(t&1){let e=x();o(0,"p-button",6),v("onClick",function(){f(e);let p=a(2);return d(p.onFormatCOACategory())}),n()}}function U(t,u){if(t&1){let e=x();o(0,"p-button",7),s(1,"async"),s(2,"async"),v("onClick",function(){f(e);let p=a(2);return d(p.onMigrateCoaCategory())}),n()}if(t&2){let e=a(2);l("disabled",m(1,2,e.countInBooks$)!==0)("pTooltip",m(2,4,e.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function W(t,u){if(t&1&&(o(0,"div",3),_(1,Q,1,0,"p-button",4)(2,U,3,6,"p-button",5),n()),t&2){let e=a();r(),h(e.roleService.permissions().migrate.delete?1:-1),r(),h(e.roleService.permissions().migrate.create?2:-1)}}function X(t,u){if(t&1&&(o(0,"p-scroll-panel")(1,"p-panel")(2,"div",8),g(3,"app-migration-cards",9),s(4,"async"),w(),o(5,"svg",10),g(6,"path",11),n(),$(),g(7,"app-migration-cards",12),s(8,"async"),n()()()),t&2){let e=a();y(S(12,K)),r(),y(S(13,K)),r(2),l("migrationCount",m(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),r(4),l("migrationCount",m(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var _e=(()=>{class t{constructor(){this.migrateService=c(b),this.toastr=c(O),this.refresh$=new M(void 0),this.pageTitle="Chart of Account Category",this.roleService=c(V)}ngOnInit(){let e=this.refresh$.pipe(B(()=>this.migrateService.getCOACategoryCount()),P(i=>console.log("API response:",i)),k(1));this.countInPOS$=e.pipe(C(i=>Number(i.pos))),this.countInBooks$=e.pipe(C(i=>Number(i.books)))}onMigrateCoaCategory(){this.migrateService.migrateCoaCategory().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Migration Successful")})}onFormatCOACategory(){confirm("Are you sure you want to format?")&&this.migrateService.formatManualCOACategory().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=A({type:t,selectors:[["app-coa-configuration"]],features:[F([b])],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&&(o(0,"app-main-panel",2),_(1,W,3,2,"ng-template",null,0,T)(3,X,9,14,"ng-template",null,1,T),n()),i&2&&l("pageTitle",p.pageTitle)},dependencies:[z,I,E,N,D,R,j,H,G,q,L,J],encapsulation:2})}}return t})();export{_e as CoaCategoryComponent};
@@ -1 +1 @@
1
- import{a as S,b as z}from"./chunk-4EGQ563G.js";import"./chunk-ZVDGEDMP.js";import{m as V}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as A,b as j}from"./chunk-5U7KZJ3H.js";import"./chunk-FHJOSHI3.js";import{i as q}from"./chunk-3NF5ANCH.js";import"./chunk-VM56C6ZV.js";import{a as N,b as G}from"./chunk-ISIYG4D5.js";import"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{w as R,x as D,y as H,z as L}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import"./chunk-MGIEURA2.js";import"./chunk-H6JPNVHO.js";import"./chunk-G3BJCT7T.js";import{a as E}from"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{p as F,u as I}from"./chunk-DM2JLWKE.js";import{Dc as $,Eb as _,Ec as x,Mb as l,Oc as s,Pb as h,Pc as m,Rb as W,Sc as O,W as b,Wb as o,Xb as r,Y as k,Yb as f,_ as M,ac as C,fc as v,gc as p,h as T,ia as c,ib as n,qa as g,ra as d,s as u,sa as w,ta as B,yb as P}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";var J=()=>({height:"calc(100vh - 100px)"});function K(t,y){if(t&1){let e=C();o(0,"p-button",6),v("onClick",function(){g(e);let a=p(2);return d(a.onFormat())}),r()}}function Q(t,y){if(t&1){let e=C();o(0,"div",3),_(1,K,1,0,"p-button",4),o(2,"p-button",5),s(3,"async"),s(4,"async"),v("onClick",function(){g(e);let a=p();return d(a.migrateWriteoffOutlet())}),r()()}if(t&2){let e=p();n(),W(e.roleService.permissions().migrate.delete?1:-1),n(),l("disabled",m(3,3,e.countInBooks$)!==0)("pTooltip",m(4,5,e.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function U(t,y){if(t&1&&(o(0,"p-scroll-panel")(1,"p-panel")(2,"div",7),f(3,"app-migration-cards",8),s(4,"async"),w(),o(5,"svg",9),f(6,"path",10),r(),B(),f(7,"app-migration-cards",11),s(8,"async"),r()()()),t&2){let e=p();h(x(12,J)),n(),h(x(13,J)),n(2),l("migrationCount",m(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),n(4),l("migrationCount",m(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var _e=(()=>{class t{constructor(){this.migrateService=c(S),this.toastr=c(E),this.refresh$=new T(void 0),this.pageTitle="Write-Off Outlet",this.roleService=c(V)}ngOnInit(){let e=this.refresh$.pipe(k(()=>this.migrateService.getWriteOffOutletAccountCount()),M(i=>console.log("API response:",i)),b(1));this.countInPOS$=e.pipe(u(i=>Number(i.pos))),this.countInBooks$=e.pipe(u(i=>Number(i.books)))}migrateWriteoffOutlet(){this.migrateService.migrateWriteOffOutlet().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Migration Successful")})}onFormat(){confirm("Are you sure you want to format?")&&this.migrateService.formatWriteOff().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-writeoff-outlet"]],features:[$([S])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger"],["label","Migrate","tooltipPosition","left",3,"onClick","disabled","pTooltip"],["label","Format","severity","danger",3,"onClick"],[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,a){i&1&&(o(0,"app-main-panel",2),_(1,Q,5,7,"ng-template",null,0,O)(3,U,9,14,"ng-template",null,1,O),r()),i&2&&l("pageTitle",a.pageTitle)},dependencies:[q,I,F,j,A,G,N,L,H,z,D,R],encapsulation:2})}}return t})();export{_e as WriteOffOutletComponent};
1
+ import{a as S,b as z}from"./chunk-443S7MFR.js";import"./chunk-R2LSSQOS.js";import{m as V}from"./chunk-Q4XWXOWE.js";import"./chunk-WL6ZZCYW.js";import{a as A,b as j}from"./chunk-5U7KZJ3H.js";import"./chunk-FHJOSHI3.js";import{i as q}from"./chunk-2FRTGIZ6.js";import"./chunk-VM56C6ZV.js";import{a as N,b as G}from"./chunk-ISIYG4D5.js";import"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{w as R,x as D,y as H,z as L}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import"./chunk-MGIEURA2.js";import"./chunk-V6RWSUKY.js";import"./chunk-G3BJCT7T.js";import{a as E}from"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{p as F,u as I}from"./chunk-DM2JLWKE.js";import{Dc as $,Eb as _,Ec as x,Mb as l,Oc as s,Pb as h,Pc as m,Rb as W,Sc as O,W as b,Wb as o,Xb as r,Y as k,Yb as f,_ as M,ac as C,fc as v,gc as p,h as T,ia as c,ib as n,qa as g,ra as d,s as u,sa as w,ta as B,yb as P}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";var J=()=>({height:"calc(100vh - 100px)"});function K(t,y){if(t&1){let e=C();o(0,"p-button",6),v("onClick",function(){g(e);let a=p(2);return d(a.onFormat())}),r()}}function Q(t,y){if(t&1){let e=C();o(0,"div",3),_(1,K,1,0,"p-button",4),o(2,"p-button",5),s(3,"async"),s(4,"async"),v("onClick",function(){g(e);let a=p();return d(a.migrateWriteoffOutlet())}),r()()}if(t&2){let e=p();n(),W(e.roleService.permissions().migrate.delete?1:-1),n(),l("disabled",m(3,3,e.countInBooks$)!==0)("pTooltip",m(4,5,e.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function U(t,y){if(t&1&&(o(0,"p-scroll-panel")(1,"p-panel")(2,"div",7),f(3,"app-migration-cards",8),s(4,"async"),w(),o(5,"svg",9),f(6,"path",10),r(),B(),f(7,"app-migration-cards",11),s(8,"async"),r()()()),t&2){let e=p();h(x(12,J)),n(),h(x(13,J)),n(2),l("migrationCount",m(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),n(4),l("migrationCount",m(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var _e=(()=>{class t{constructor(){this.migrateService=c(S),this.toastr=c(E),this.refresh$=new T(void 0),this.pageTitle="Write-Off Outlet",this.roleService=c(V)}ngOnInit(){let e=this.refresh$.pipe(k(()=>this.migrateService.getWriteOffOutletAccountCount()),M(i=>console.log("API response:",i)),b(1));this.countInPOS$=e.pipe(u(i=>Number(i.pos))),this.countInBooks$=e.pipe(u(i=>Number(i.books)))}migrateWriteoffOutlet(){this.migrateService.migrateWriteOffOutlet().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Migration Successful")})}onFormat(){confirm("Are you sure you want to format?")&&this.migrateService.formatWriteOff().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Format Successful")})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=P({type:t,selectors:[["app-writeoff-outlet"]],features:[$([S])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger"],["label","Migrate","tooltipPosition","left",3,"onClick","disabled","pTooltip"],["label","Format","severity","danger",3,"onClick"],[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,a){i&1&&(o(0,"app-main-panel",2),_(1,Q,5,7,"ng-template",null,0,O)(3,U,9,14,"ng-template",null,1,O),r()),i&2&&l("pageTitle",a.pageTitle)},dependencies:[q,I,F,j,A,G,N,L,H,z,D,R],encapsulation:2})}}return t})();export{_e as WriteOffOutletComponent};
@@ -1 +1 @@
1
- import{b as Se}from"./chunk-ZVDGEDMP.js";import{a as I,b as V}from"./chunk-3VQUNDVT.js";import{b as _e,i as xe}from"./chunk-52EMI2TW.js";import"./chunk-AAKZYXG3.js";import{a as be,b as Ce}from"./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{b as ge}from"./chunk-FHJOSHI3.js";import"./chunk-KONCSTVQ.js";import"./chunk-FMAG3RQL.js";import{i as he}from"./chunk-3NF5ANCH.js";import"./chunk-VM56C6ZV.js";import{a as ae,b as re}from"./chunk-ISIYG4D5.js";import{b as T,c as se,d as me,e as ce,f as de,g as fe,h as ue}from"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{y as le,z as pe}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import{e as Y,f as Z,k as $,m as ee,p as te,v as ie,x as oe,y as ne}from"./chunk-MGIEURA2.js";import{e as z,l as J}from"./chunk-DZCJWJUG.js";import"./chunk-H6JPNVHO.js";import{a as X}from"./chunk-G3BJCT7T.js";import"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{s as W,u as q}from"./chunk-DM2JLWKE.js";import{D as M,Dc as H,Eb as F,Ec as Q,Fc as P,Ha as O,Mb as f,Oc as u,Pc as h,Sc as g,Wb as o,Xb as n,Y as D,Yb as E,ac as L,bd as B,c as v,ca as N,cd as U,fc as w,gc as k,ia as d,ib as p,qa as x,ra as S,sc as r,tc as y,uc as C,xc as j,yb as R,yc as G,zc as K}from"./chunk-6QJHEOXN.js";import{a as m,b as c}from"./chunk-YQFG5XE2.js";var ke=(()=>{class e{constructor(){this.httpService=d(X)}fetchCashAndBankLoader(){return this.httpService.get("","api/CashAndBankLoader/GetCashAndBank")}fetchCashAndBankData(t){return this.httpService.get("","api/CashAndBank/GetCashAndBank",{params:t})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var ve={data:{data:[],pageTitle:"",pageSubTitle:""},filter:null,options:{hasGeneralLedger:!1}},A=se(ue("cash-bank-store"),fe(ve),me(e=>({totalBalance:B(()=>e.data().data.reduce((l,t)=>l+t.balance,0)),subTotalDebit:B(()=>e.data().data.reduce((l,t)=>l+t.debit,0)),subTotalCredit:B(()=>e.data().data.reduce((l,t)=>l+t.credit,0))})),de(e=>{let l=d(ke);return{updateFilterQuery(i){T(e,a=>c(m({},a),{filter:c(m({},i),{pageNumber:1})}))},loadCashAndBankLoader:I(v(D(()=>l.fetchCashAndBankLoader().pipe(V({next:i=>{T(e,a=>c(m({},a),{options:i.options,filter:i.filter}))},error:i=>{console.log("error",i)}}))))),loadCashAndBankData:I(v(M(i=>!!i),D(i=>l.fetchCashAndBankData(i).pipe(V({next:a=>{T(e,s=>c(m({},s),{data:a}))},error:a=>{console.log("error",a)}})))))}}),ce({onInit(e){e.loadCashAndBankLoader(),e.loadCashAndBankData(e.filter)}}));var De=["class","page"],Fe=e=>[e],Ee=()=>["/pages/report/general-ledger"],we=e=>({id:e});function Pe(e,l){e&1&&(o(0,"tr")(1,"th"),r(2,"Code"),n(),o(3,"th"),r(4,"Name"),n(),o(5,"th",8)(6,"span",9),r(7," Debit "),n()(),o(8,"th",8)(9,"span",10),r(10," Credit "),n()(),o(11,"th",8)(12,"span",11),r(13," Current Balance"),n()()())}function Ie(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),n(),o(3,"td")(4,"a",12),r(5),n()(),o(6,"td",13),r(7),u(8,"number"),n(),o(9,"td",14),r(10),u(11,"number"),n(),o(12,"td",8)(13,"a",15),r(14),u(15,"number"),n()()()),e&2){let t=l.$implicit;p(2),y(t.code),p(2),f("routerLink",P(14,Fe,"/pages/chart-of-account/account/"+t.accountID)),p(),y(t.name),p(2),C(" ",h(8,8,t.debit)," "),p(3),C(" ",h(11,10,t.credit)," "),p(3),f("routerLink",Q(16,Ee))("queryParams",P(17,we,t.accountID)),p(),y(h(15,12,t.balance))}}function Ve(e,l){if(e&1&&(o(0,"tr"),E(1,"td"),o(2,"td",16),r(3,"Total"),n(),o(4,"td",17),r(5),u(6,"number"),n(),o(7,"td",18),r(8),u(9,"number"),n(),o(10,"td",19),r(11),u(12,"number"),n()()),e&2){let t=k(2);p(5),C(" ",h(6,3,t.store.subTotalDebit())," "),p(3),C(" ",h(9,5,t.store.subTotalCredit())," "),p(3),C(" ",h(12,7,t.store.totalBalance())," ")}}function Ae(e,l){e&1&&(o(0,"tr")(1,"td",20)(2,"span"),r(3,"No records found."),n()()())}function Me(e,l){if(e&1&&(o(0,"p-panel")(1,"p-table",7),F(2,Pe,14,0,"ng-template",null,2,g)(4,Ie,16,19,"ng-template",null,3,g)(6,Ve,13,9,"ng-template",null,4,g)(8,Ae,4,0,"ng-template",null,5,g),n()()),e&2){let t=k();p(),f("value",t.store.data().data)}}function Ne(e,l){if(e&1&&(o(0,"form",21)(1,"div",22)(2,"label",23),r(3,"From - To"),n(),o(4,"div",24),E(5,"p-datepicker",25)(6,"p-datepicker",26),n()()()),e&2){let t=k();f("formGroup",t.filterForm),p(5),f("iconDisplay","input")("showIcon",!0),p(),f("iconDisplay","input")("showIcon",!0)}}var ye=(()=>{class e{constructor(){this.store=d(A),this.isDialogFilterVisible=O(!1),this.routeInfo=Be,this.fb=d(ie),this.dayjsService=d(Se),U(()=>{let t=this.store.filter();if(t){let i=Object.entries(t).reduce((a,[s,b])=>(s==="from"||s==="to"?a[s]=b?new Date(b):null:a[s]=b,a),{});this.filterForm?.patchValue(i)}})}ngOnInit(){this.initForm()}initForm(){this.filterForm=this.fb.group({text:this.fb.control(""),listOutletID:this.fb.control([]),listCategoryID:this.fb.control([]),isInRoleEmptyOutlets:this.fb.control(!1),discontinued:this.fb.control("all"),discontinuedValue:this.fb.control(!1),from:this.fb.control(null),to:this.fb.control(null),pageNumber:this.fb.control(1),pageSize:this.fb.control(10),export:this.fb.control(!1),exportPageNumber:this.fb.control(1),exportPageSize:this.fb.control(10)})}onSearch(t){this.store.updateFilterQuery(c(m({},this.store.filter()),{text:t}))}onFilterOKEvent(){let t=this.filterForm.getRawValue();console.log("\u{1F680} ~ CashBankPageComponent ~ onFilterOKEvent ~ formValue:",t);let i=c(m({},t),{from:t.from?this.dayjsService.format(t.from):void 0,to:t.to?this.dayjsService.format(t.to):void 0});this.store.updateFilterQuery(i),this.isDialogFilterVisible.set(!1)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=R({type:e,selectors:[["app-cash-bank",8,"page"]],features:[H([A])],attrs:De,decls:5,vars:6,consts:[["content",""],["filters",""],["header",""],["body",""],["footer",""],["emptymessage",""],[3,"search","isDialogFilterVisibleChange","filterConfirmed","pageTitle","pageSubTitle","scrollable","isSearchableInput","isFilterable","isDialogFilterVisible"],[3,"value"],[1,"text-end"],["pTooltip","Total debit based on the selected date filter","tooltipPosition","top"],["pTooltip","Total credit based on the selected date filter","tooltipPosition","top"],["pTooltip","Current balance based on the selected date filter","tooltipPosition","top"],[1,"link","link-primary",3,"routerLink"],[1,"text-end","text-success"],[1,"text-end","text-danger"],[1,"link","link-primary",3,"routerLink","queryParams"],[1,"fw-bold"],[1,"fw-bold","text-end","text-success"],[1,"fw-bold","text-end","text-danger"],[1,"text-end","fw-bold"],["colspan","5"],[1,"d-flex","flex-column","row-gap-3",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],[1,"d-flex","flex-column","gap-2"],["formControlName","from","styleClass","w-100 mb-0","appendTo","body","dataType","string","inputId","icondisplay",3,"iconDisplay","showIcon"],["formControlName","to","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon"]],template:function(i,a){if(i&1){let s=L();o(0,"app-main-panel",6),w("search",function(_){return x(s),S(a.onSearch(_))}),K("isDialogFilterVisibleChange",function(_){return x(s),G(a.isDialogFilterVisible,_)||(a.isDialogFilterVisible=_),S(_)}),w("filterConfirmed",function(){return x(s),S(a.onFilterOKEvent())}),F(1,Me,10,1,"ng-template",null,0,g)(3,Ne,7,5,"ng-template",null,1,g),n()}i&2&&(f("pageTitle",a.store.data().pageTitle)("pageSubTitle",a.store.data().pageSubTitle)("scrollable",!0)("isSearchableInput",!0)("isFilterable",!0),j("isDialogFilterVisible",a.isDialogFilterVisible))},dependencies:[q,W,he,oe,$,Y,Z,xe,_e,ge,J,z,re,ae,pe,le,ne,ee,te,Ce,be],styles:[".card[_ngcontent-%COMP%]{height:calc(100vh - 120px)}.card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:inherit;overflow-y:auto}"],changeDetection:0})}}return e})();var St=[{path:"",component:ye,children:[]}],Be={path:"cash-of-account",title:"COA",iconName:"fa fa-calculator",class:"",label:"",labelClass:"",extralink:!1,submenu:[]};export{St as CASH_BANK_ROUTES,Be as CASH_BANK_ROUTE_PAGE};
1
+ import{b as Se}from"./chunk-R2LSSQOS.js";import{a as I,b as V}from"./chunk-3VQUNDVT.js";import{b as _e,i as xe}from"./chunk-52EMI2TW.js";import"./chunk-AAKZYXG3.js";import{a as be,b as Ce}from"./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{b as ge}from"./chunk-FHJOSHI3.js";import"./chunk-KONCSTVQ.js";import"./chunk-FMAG3RQL.js";import{i as he}from"./chunk-2FRTGIZ6.js";import"./chunk-VM56C6ZV.js";import{a as ae,b as re}from"./chunk-ISIYG4D5.js";import{b as T,c as se,d as me,e as ce,f as de,g as fe,h as ue}from"./chunk-FNGX2XFA.js";import"./chunk-ALLR2NXQ.js";import"./chunk-BFEM6LX7.js";import{y as le,z as pe}from"./chunk-O44DI62I.js";import"./chunk-DTYVTTET.js";import{e as Y,f as Z,k as $,m as ee,p as te,v as ie,x as oe,y as ne}from"./chunk-MGIEURA2.js";import{e as z,l as J}from"./chunk-DZCJWJUG.js";import"./chunk-V6RWSUKY.js";import{a as X}from"./chunk-G3BJCT7T.js";import"./chunk-JBYPGHPN.js";import"./chunk-GGQ7LRWG.js";import"./chunk-F2X3VGZZ.js";import"./chunk-KL3TPLRB.js";import{s as W,u as q}from"./chunk-DM2JLWKE.js";import{D as M,Dc as H,Eb as F,Ec as Q,Fc as P,Ha as O,Mb as f,Oc as u,Pc as h,Sc as g,Wb as o,Xb as n,Y as D,Yb as E,ac as L,bd as B,c as v,ca as N,cd as U,fc as w,gc as k,ia as d,ib as p,qa as x,ra as S,sc as r,tc as y,uc as C,xc as j,yb as R,yc as G,zc as K}from"./chunk-6QJHEOXN.js";import{a as m,b as c}from"./chunk-YQFG5XE2.js";var ke=(()=>{class e{constructor(){this.httpService=d(X)}fetchCashAndBankLoader(){return this.httpService.get("","api/CashAndBankLoader/GetCashAndBank")}fetchCashAndBankData(t){return this.httpService.get("","api/CashAndBank/GetCashAndBank",{params:t})}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275prov=N({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var ve={data:{data:[],pageTitle:"",pageSubTitle:""},filter:null,options:{hasGeneralLedger:!1}},A=se(ue("cash-bank-store"),fe(ve),me(e=>({totalBalance:B(()=>e.data().data.reduce((l,t)=>l+t.balance,0)),subTotalDebit:B(()=>e.data().data.reduce((l,t)=>l+t.debit,0)),subTotalCredit:B(()=>e.data().data.reduce((l,t)=>l+t.credit,0))})),de(e=>{let l=d(ke);return{updateFilterQuery(i){T(e,a=>c(m({},a),{filter:c(m({},i),{pageNumber:1})}))},loadCashAndBankLoader:I(v(D(()=>l.fetchCashAndBankLoader().pipe(V({next:i=>{T(e,a=>c(m({},a),{options:i.options,filter:i.filter}))},error:i=>{console.log("error",i)}}))))),loadCashAndBankData:I(v(M(i=>!!i),D(i=>l.fetchCashAndBankData(i).pipe(V({next:a=>{T(e,s=>c(m({},s),{data:a}))},error:a=>{console.log("error",a)}})))))}}),ce({onInit(e){e.loadCashAndBankLoader(),e.loadCashAndBankData(e.filter)}}));var De=["class","page"],Fe=e=>[e],Ee=()=>["/pages/report/general-ledger"],we=e=>({id:e});function Pe(e,l){e&1&&(o(0,"tr")(1,"th"),r(2,"Code"),n(),o(3,"th"),r(4,"Name"),n(),o(5,"th",8)(6,"span",9),r(7," Debit "),n()(),o(8,"th",8)(9,"span",10),r(10," Credit "),n()(),o(11,"th",8)(12,"span",11),r(13," Current Balance"),n()()())}function Ie(e,l){if(e&1&&(o(0,"tr")(1,"td"),r(2),n(),o(3,"td")(4,"a",12),r(5),n()(),o(6,"td",13),r(7),u(8,"number"),n(),o(9,"td",14),r(10),u(11,"number"),n(),o(12,"td",8)(13,"a",15),r(14),u(15,"number"),n()()()),e&2){let t=l.$implicit;p(2),y(t.code),p(2),f("routerLink",P(14,Fe,"/pages/chart-of-account/account/"+t.accountID)),p(),y(t.name),p(2),C(" ",h(8,8,t.debit)," "),p(3),C(" ",h(11,10,t.credit)," "),p(3),f("routerLink",Q(16,Ee))("queryParams",P(17,we,t.accountID)),p(),y(h(15,12,t.balance))}}function Ve(e,l){if(e&1&&(o(0,"tr"),E(1,"td"),o(2,"td",16),r(3,"Total"),n(),o(4,"td",17),r(5),u(6,"number"),n(),o(7,"td",18),r(8),u(9,"number"),n(),o(10,"td",19),r(11),u(12,"number"),n()()),e&2){let t=k(2);p(5),C(" ",h(6,3,t.store.subTotalDebit())," "),p(3),C(" ",h(9,5,t.store.subTotalCredit())," "),p(3),C(" ",h(12,7,t.store.totalBalance())," ")}}function Ae(e,l){e&1&&(o(0,"tr")(1,"td",20)(2,"span"),r(3,"No records found."),n()()())}function Me(e,l){if(e&1&&(o(0,"p-panel")(1,"p-table",7),F(2,Pe,14,0,"ng-template",null,2,g)(4,Ie,16,19,"ng-template",null,3,g)(6,Ve,13,9,"ng-template",null,4,g)(8,Ae,4,0,"ng-template",null,5,g),n()()),e&2){let t=k();p(),f("value",t.store.data().data)}}function Ne(e,l){if(e&1&&(o(0,"form",21)(1,"div",22)(2,"label",23),r(3,"From - To"),n(),o(4,"div",24),E(5,"p-datepicker",25)(6,"p-datepicker",26),n()()()),e&2){let t=k();f("formGroup",t.filterForm),p(5),f("iconDisplay","input")("showIcon",!0),p(),f("iconDisplay","input")("showIcon",!0)}}var ye=(()=>{class e{constructor(){this.store=d(A),this.isDialogFilterVisible=O(!1),this.routeInfo=Be,this.fb=d(ie),this.dayjsService=d(Se),U(()=>{let t=this.store.filter();if(t){let i=Object.entries(t).reduce((a,[s,b])=>(s==="from"||s==="to"?a[s]=b?new Date(b):null:a[s]=b,a),{});this.filterForm?.patchValue(i)}})}ngOnInit(){this.initForm()}initForm(){this.filterForm=this.fb.group({text:this.fb.control(""),listOutletID:this.fb.control([]),listCategoryID:this.fb.control([]),isInRoleEmptyOutlets:this.fb.control(!1),discontinued:this.fb.control("all"),discontinuedValue:this.fb.control(!1),from:this.fb.control(null),to:this.fb.control(null),pageNumber:this.fb.control(1),pageSize:this.fb.control(10),export:this.fb.control(!1),exportPageNumber:this.fb.control(1),exportPageSize:this.fb.control(10)})}onSearch(t){this.store.updateFilterQuery(c(m({},this.store.filter()),{text:t}))}onFilterOKEvent(){let t=this.filterForm.getRawValue();console.log("\u{1F680} ~ CashBankPageComponent ~ onFilterOKEvent ~ formValue:",t);let i=c(m({},t),{from:t.from?this.dayjsService.format(t.from):void 0,to:t.to?this.dayjsService.format(t.to):void 0});this.store.updateFilterQuery(i),this.isDialogFilterVisible.set(!1)}static{this.\u0275fac=function(i){return new(i||e)}}static{this.\u0275cmp=R({type:e,selectors:[["app-cash-bank",8,"page"]],features:[H([A])],attrs:De,decls:5,vars:6,consts:[["content",""],["filters",""],["header",""],["body",""],["footer",""],["emptymessage",""],[3,"search","isDialogFilterVisibleChange","filterConfirmed","pageTitle","pageSubTitle","scrollable","isSearchableInput","isFilterable","isDialogFilterVisible"],[3,"value"],[1,"text-end"],["pTooltip","Total debit based on the selected date filter","tooltipPosition","top"],["pTooltip","Total credit based on the selected date filter","tooltipPosition","top"],["pTooltip","Current balance based on the selected date filter","tooltipPosition","top"],[1,"link","link-primary",3,"routerLink"],[1,"text-end","text-success"],[1,"text-end","text-danger"],[1,"link","link-primary",3,"routerLink","queryParams"],[1,"fw-bold"],[1,"fw-bold","text-end","text-success"],[1,"fw-bold","text-end","text-danger"],[1,"text-end","fw-bold"],["colspan","5"],[1,"d-flex","flex-column","row-gap-3",3,"formGroup"],[1,"d-flex","flex-column"],["for","outlet"],[1,"d-flex","flex-column","gap-2"],["formControlName","from","styleClass","w-100 mb-0","appendTo","body","dataType","string","inputId","icondisplay",3,"iconDisplay","showIcon"],["formControlName","to","styleClass","w-100","appendTo","body","inputId","icondisplay",3,"iconDisplay","showIcon"]],template:function(i,a){if(i&1){let s=L();o(0,"app-main-panel",6),w("search",function(_){return x(s),S(a.onSearch(_))}),K("isDialogFilterVisibleChange",function(_){return x(s),G(a.isDialogFilterVisible,_)||(a.isDialogFilterVisible=_),S(_)}),w("filterConfirmed",function(){return x(s),S(a.onFilterOKEvent())}),F(1,Me,10,1,"ng-template",null,0,g)(3,Ne,7,5,"ng-template",null,1,g),n()}i&2&&(f("pageTitle",a.store.data().pageTitle)("pageSubTitle",a.store.data().pageSubTitle)("scrollable",!0)("isSearchableInput",!0)("isFilterable",!0),j("isDialogFilterVisible",a.isDialogFilterVisible))},dependencies:[q,W,he,oe,$,Y,Z,xe,_e,ge,J,z,re,ae,pe,le,ne,ee,te,Ce,be],styles:[".card[_ngcontent-%COMP%]{height:calc(100vh - 120px)}.card[_ngcontent-%COMP%] .card-body[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:inherit;overflow-y:auto}"],changeDetection:0})}}return e})();var St=[{path:"",component:ye,children:[]}],Be={path:"cash-of-account",title:"COA",iconName:"fa fa-calculator",class:"",label:"",labelClass:"",extralink:!1,submenu:[]};export{St as CASH_BANK_ROUTES,Be as CASH_BANK_ROUTE_PAGE};