dealposbooks 5.44.6 → 5.44.7
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.
- package/{chunk-BJV3MSHK.js → chunk-2SFLMJFC.js} +1 -1
- package/{chunk-O4APZZ3M.js → chunk-3O2P3XCM.js} +1 -1
- package/{chunk-OH3DUGUZ.js → chunk-4ITLNOY5.js} +1 -1
- package/{chunk-WK4BTEU4.js → chunk-4ZQ7YKOY.js} +1 -1
- package/{chunk-AGB5OXUF.js → chunk-534V32GA.js} +1 -1
- package/chunk-5BZGRV6Z.js +129 -0
- package/{chunk-GX55DZY5.js → chunk-5H2RGDEM.js} +1 -1
- package/{chunk-RHH3CU5D.js → chunk-6VGBCKSP.js} +1 -1
- package/{chunk-JXEIGOVF.js → chunk-6ZAB5KF4.js} +1 -1
- package/{chunk-T2JZ7FIJ.js → chunk-723XGKN4.js} +1 -1
- package/{chunk-VKADRKJU.js → chunk-7HDQDLMU.js} +1 -1
- package/{chunk-JDWPD3PQ.js → chunk-7QTSLBUS.js} +2 -2
- package/{chunk-2CF6W3MQ.js → chunk-ADR2PJUZ.js} +1 -1
- package/{chunk-LHA7OCPB.js → chunk-ALVKIUN6.js} +1 -1
- package/{chunk-W3PCANAM.js → chunk-AQR2H4W4.js} +1 -1
- package/{chunk-B6HWQE7D.js → chunk-ATLG3ODI.js} +1 -1
- package/{chunk-FLYLFPA3.js → chunk-AWAXNQFD.js} +1 -1
- package/{chunk-RLUIUJY3.js → chunk-BDX235IA.js} +1 -1
- package/{chunk-EJBBENFA.js → chunk-CEUHQS4P.js} +1 -1
- package/{chunk-3KWAJ7F2.js → chunk-CPEWFFH4.js} +1 -1
- package/chunk-CZQGZKBU.js +7 -0
- package/{chunk-XURZEJ5V.js → chunk-D7UYPH6O.js} +1 -1
- package/{chunk-N4BTKSCQ.js → chunk-F6XVZQY3.js} +1 -1
- package/{chunk-2BZH24YX.js → chunk-FDNNDYL5.js} +1 -1
- package/{chunk-Z6ETOFZG.js → chunk-FKIXXJLF.js} +1 -1
- package/chunk-GJGJXJ7W.js +1 -0
- package/{chunk-MZGGLVOX.js → chunk-GTADCLKY.js} +1 -1
- package/{chunk-JYNY6F6D.js → chunk-HETAGI2U.js} +1 -1
- package/{chunk-A4X33OU3.js → chunk-HVWMMYO5.js} +1 -1
- package/{chunk-NPVJGHTO.js → chunk-JPEOXITL.js} +1 -1
- package/{chunk-EHM2KHSR.js → chunk-JRTS2EIB.js} +1 -1
- package/{chunk-RJTHFDGC.js → chunk-KSQ6W6J5.js} +1 -1
- package/{chunk-3GMNUULJ.js → chunk-KYLRXHLA.js} +1 -1
- package/chunk-OJKSFSGG.js +160 -0
- package/{chunk-REF7WUSQ.js → chunk-PFRE63ZQ.js} +1 -1
- package/{chunk-IGVRGJ3L.js → chunk-PGQHZTDQ.js} +1 -1
- package/{chunk-IKAVDQZY.js → chunk-PXDLE24D.js} +1 -1
- package/{chunk-UIO722AZ.js → chunk-Q5727C4W.js} +1 -1
- package/{chunk-3LESCZJU.js → chunk-Q5OCTN6V.js} +1 -1
- package/{chunk-65IKFGTF.js → chunk-QG5BZLQ5.js} +1 -1
- package/{chunk-LV6YHYS7.js → chunk-RJ43VBI6.js} +1 -1
- package/{chunk-TARMA6TN.js → chunk-S3DECKRN.js} +1 -1
- package/{chunk-7ZYLIEUZ.js → chunk-UW3TYSD4.js} +1 -1
- package/{chunk-NBBH4QTN.js → chunk-VB3TPQNG.js} +1 -1
- package/{chunk-WT4Z2QBS.js → chunk-WEC2BWPR.js} +1 -1
- package/{chunk-HK76OJ3U.js → chunk-WZCHPXQJ.js} +1 -1
- package/{chunk-3HZX655H.js → chunk-XZA36IOK.js} +1 -1
- package/{chunk-56NDKVXE.js → chunk-ZYGFIZ2J.js} +1 -1
- package/index.html +2 -2
- package/{main-SIOXXMKG.js → main-BGNUYMBN.js} +1 -1
- package/package.json +1 -1
- package/chunk-BZBA3AI5.js +0 -160
- package/chunk-EKSLKPSH.js +0 -1
- package/chunk-GYLR4MM5.js +0 -7
- package/chunk-QBRO5YKE.js +0 -129
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as v,b as L}from"./chunk-
|
|
1
|
+
import{a as v,b as L}from"./chunk-KYLRXHLA.js";import"./chunk-AQR2H4W4.js";import{a as E,b as O}from"./chunk-E3QNEH3B.js";import"./chunk-WXT6EZ2V.js";import{h as H}from"./chunk-3O2P3XCM.js";import{b as N,c as G}from"./chunk-L3PZS6EL.js";import{a as R,b as D}from"./chunk-5JV52UYK.js";import"./chunk-ACTRMWEI.js";import"./chunk-ARXP327B.js";import{w as V,x as j}from"./chunk-7FFMPB6T.js";import"./chunk-UKBDY33R.js";import"./chunk-72LNXEXV.js";import"./chunk-CPEWFFH4.js";import{a as I}from"./chunk-ZDTMCWOO.js";import"./chunk-F2X3VGZZ.js";import{n as A,s as F}from"./chunk-SB5MSLCX.js";import{$b as P,Cc as $,Db as B,Dc as _,Lb as p,Nc as m,Ob as d,Oc as l,Rc as x,Vb as o,W as y,Wb as n,Xb as c,Y as M,_ as b,ec as h,fc as s,h as T,hb as a,ia as f,qa as g,ra as C,s as u,sa as S,ta as k,xb as w}from"./chunk-6K5LNQ4J.js";import"./chunk-YQFG5XE2.js";var q=()=>({height:"calc(100vh - 100px)"});function J(i,z){if(i&1){let e=P();o(0,"div",3)(1,"p-button",4),h("onClick",function(){g(e);let r=s();return C(r.onFormatCOAConfig())}),n(),o(2,"p-button",5),m(3,"async"),m(4,"async"),h("onClick",function(){g(e);let r=s();return C(r.onMigrateCoaConfig())}),n()()}if(i&2){let e=s();a(2),p("disabled",l(3,2,e.countInBooks$)!==0)("pTooltip",l(4,4,e.countInBooks$)!==0?"Books already has entries. Please format before re-migrating.":null)}}function K(i,z){if(i&1&&(o(0,"p-scroll-panel")(1,"p-panel")(2,"div",6),c(3,"app-migration-cards",7),m(4,"async"),S(),o(5,"svg",8),c(6,"path",9),n(),k(),c(7,"app-migration-cards",10),m(8,"async"),n()()()),i&2){let e=s();d(_(12,q)),a(),d(_(13,q)),a(2),p("migrationCount",l(4,8,e.countInPOS$))("migrationTitle",e.pageTitle),a(4),p("migrationCount",l(8,10,e.countInBooks$))("migrationTitle",e.pageTitle)}}var ge=(()=>{class i{constructor(){this.migrateService=f(v),this.toastr=f(I),this.refresh$=new T(void 0),this.pageTitle="Chart of Account Configuration"}ngOnInit(){let e=this.refresh$.pipe(M(()=>this.migrateService.getCOAConfigurationCount()),b(t=>console.log("API response:",t)),y(1));this.countInPOS$=e.pipe(u(t=>Number(t.pos))),this.countInBooks$=e.pipe(u(t=>Number(t.books)))}onMigrateCoaConfig(){this.migrateService.migrateCoaConfig().subscribe(e=>{this.refresh$.next(),this.toastr.success(e.message,"Migration Successful")})}onFormatCOAConfig(){window.confirm("Are you sure you want to format this data? This action cannot be undone.")&&this.migrateService.formatManualCOAConfig().subscribe(t=>{this.refresh$.next(),this.toastr.success(t.message,"Format Successful")})}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275cmp=w({type:i,selectors:[["app-coa-configuration"]],features:[$([v])],decls:5,vars:1,consts:[["actionButton",""],["content",""],[3,"pageTitle"],[1,"d-flex","gap-2"],["label","Format","severity","danger",3,"onClick"],["label","Migrate","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(t,r){t&1&&(o(0,"app-main-panel",2),B(1,J,5,6,"ng-template",null,0,x)(3,K,9,14,"ng-template",null,1,x),n()),t&2&&p("pageTitle",r.pageTitle)},dependencies:[H,F,A,j,V,O,E,D,R,G,N,L],encapsulation:2})}}return i})();export{ge as CoaConfigurationComponent};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as ft,b as It,c as kt}from"./chunk-L3PZS6EL.js";import{h as wt}from"./chunk-ACTRMWEI.js";import{a as at,b as lt}from"./chunk-ARXP327B.js";import{a as fe,b as ut,f as Oe,h as he,j as ht,k as bt,l as Ct,m as xt,n as yt,o as vt,w as be,x as Tt}from"./chunk-7FFMPB6T.js";import{$ as ge,A as Se,B as _e,C as Ve,D as Fe,Da as O,I as Pe,K as rt,La as mt,Ma as ue,N as st,Na as _t,R as Le,U as pt,Ua as gt,Z as dt,b as tt,e as it,j as nt,ma as ct,w as ot,y as $,z as me}from"./chunk-72LNXEXV.js";import{d as et}from"./chunk-3KWAJ7F2.js";import{c as Je,d as ke,f as ze,h as Me,i as Ee,k as De}from"./chunk-F2X3VGZZ.js";import{a as Ke,h as se,k as pe,l as Ue,m as de,s as ce,t as Z}from"./chunk-SB5MSLCX.js";import{$b as b,$c as re,Aa as D,Ab as Ye,Ba as Qe,Bb as V,Cc as le,Da as U,Db as m,Dc as j,Ea as w,Ec as A,Fc as Ze,Gc as $e,Ha as Ae,Kb as T,La as We,Lb as o,Nb as je,Nc as we,Ob as H,Oc as Ie,Pb as F,Qb as X,Rc as W,Vb as p,Wb as d,Xb as y,Yb as B,Zb as R,_b as I,_c as h,bd as qe,ca as Be,cd as Ge,da as xe,ec as u,fb as Ne,fc as s,gc as J,hb as l,hc as Y,ia as k,kc as v,lc as ee,mc as C,nc as x,pa as Re,qa as _,qc as te,ra as g,rc as Q,sa as K,sb as ye,sc as ie,tc as Te,ua as z,wc as ne,xb as S,xc as oe,yb as ve,yc as ae,zb as Xe}from"./chunk-6K5LNQ4J.js";import{a as Ce}from"./chunk-YQFG5XE2.js";var zt=(()=>{class t extends he{pathId;ngOnInit(){this.pathId="url(#"+O()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=z(t)))(i||t)}})();static \u0275cmp=S({type:t,selectors:[["WindowMaximizeIcon"]],features:[V],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&&(K(),p(0,"svg",0)(1,"g"),y(2,"path",1),d(),p(3,"defs")(4,"clipPath",2),y(5,"rect",3),d()()()),n&2&&(F(i.getClassNames()),T("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),l(),T("clip-path",i.pathId),l(3),o("id",i.pathId))},encapsulation:2})}return t})();var Mt=(()=>{class t extends he{pathId;ngOnInit(){this.pathId="url(#"+O()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=z(t)))(i||t)}})();static \u0275cmp=S({type:t,selectors:[["WindowMinimizeIcon"]],features:[V],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&&(K(),p(0,"svg",0)(1,"g"),y(2,"path",1),d(),p(3,"defs")(4,"clipPath",2),y(5,"rect",3),d()()()),n&2&&(F(i.getClassNames()),T("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),l(),T("clip-path",i.pathId),l(3),o("id",i.pathId))},encapsulation:2})}return t})();var Et=(()=>{class t extends fe{pFocusTrapDisabled=!1;platformId=k(We);document=k(Ke);firstHiddenFocusableElement;lastHiddenFocusableElement;ngOnInit(){super.ngOnInit(),Z(this.platformId)&&!this.pFocusTrapDisabled&&!this.firstHiddenFocusableElement&&!this.lastHiddenFocusableElement&&this.createHiddenFocusableElements()}ngOnChanges(e){super.ngOnChanges(e),e.pFocusTrapDisabled&&Z(this.platformId)&&(e.pFocusTrapDisabled.currentValue?this.removeHiddenFocusableElements():this.createHiddenFocusableElements())}removeHiddenFocusableElements(){this.firstHiddenFocusableElement&&this.firstHiddenFocusableElement.parentNode&&this.firstHiddenFocusableElement.parentNode.removeChild(this.firstHiddenFocusableElement),this.lastHiddenFocusableElement&&this.lastHiddenFocusableElement.parentNode&&this.lastHiddenFocusableElement.parentNode.removeChild(this.lastHiddenFocusableElement)}getComputedSelector(e){return`:not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])${e??""}`}createHiddenFocusableElements(){let e="0",n=i=>st("span",{class:"p-hidden-accessible p-hidden-focusable",tabindex:e,role:"presentation","aria-hidden":!0,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:i?.bind(this)});this.firstHiddenFocusableElement=n(this.onFirstHiddenElementFocus),this.lastHiddenFocusableElement=n(this.onLastHiddenElementFocus),this.firstHiddenFocusableElement.setAttribute("data-pc-section","firstfocusableelement"),this.lastHiddenFocusableElement.setAttribute("data-pc-section","lastfocusableelement"),this.el.nativeElement.prepend(this.firstHiddenFocusableElement),this.el.nativeElement.append(this.lastHiddenFocusableElement)}onFirstHiddenElementFocus(e){let{currentTarget:n,relatedTarget:i}=e,a=i===this.lastHiddenFocusableElement||!this.el.nativeElement?.contains(i)?pt(n.parentElement,":not(.p-hidden-focusable)"):this.lastHiddenFocusableElement;Le(a)}onLastHiddenElementFocus(e){let{currentTarget:n,relatedTarget:i}=e,a=i===this.firstHiddenFocusableElement||!this.el.nativeElement?.contains(i)?dt(n.parentElement,":not(.p-hidden-focusable)"):this.firstHiddenFocusableElement;Le(a)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=z(t)))(i||t)}})();static \u0275dir=Xe({type:t,selectors:[["","pFocusTrap",""]],inputs:{pFocusTrapDisabled:[2,"pFocusTrapDisabled","pFocusTrapDisabled",h]},features:[V,Re]})}return t})();var Ot=["header"],Dt=["content"],St=["footer"],Ht=["closeicon"],Bt=["maximizeicon"],Rt=["minimizeicon"],Qt=["headless"],At=["titlebar"],Wt=["*",[["p-footer"]]],Nt=["*","p-footer"],Xt=(t,r,e)=>({position:"fixed",height:"100%",width:"100%",left:0,top:0,display:"flex","justify-content":t,"align-items":r,"pointer-events":e}),Yt=t=>({"p-dialog p-component":!0,"p-dialog-maximized":t}),jt=()=>({display:"flex","flex-direction":"column","pointer-events":"auto"}),Zt=(t,r)=>({transform:t,transition:r}),$t=t=>({value:"visible",params:t});function qt(t,r){t&1&&I(0)}function Gt(t,r){if(t&1&&(B(0),m(1,qt,1,0,"ng-container",11),R()),t&2){let e=s(3);l(),o("ngTemplateOutlet",e._headlessTemplate||e.headlessTemplate||e.headlessT)}}function Kt(t,r){if(t&1){let e=b();p(0,"div",15),u("mousedown",function(i){_(e);let a=s(4);return g(a.initResize(i))}),d()}if(t&2){let e=s(4);o("ngClass",e.cx("resizeHandle"))}}function Ut(t,r){if(t&1&&(p(0,"span",21),Q(1),d()),t&2){let e=s(5);o("id",e.ariaLabelledBy)("ngClass",e.cx("title")),l(),ie(e.header)}}function Jt(t,r){t&1&&I(0)}function ei(t,r){if(t&1&&y(0,"span",18),t&2){let e=s(6);o("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}function ti(t,r){t&1&&y(0,"WindowMaximizeIcon")}function ii(t,r){t&1&&y(0,"WindowMinimizeIcon")}function ni(t,r){if(t&1&&(B(0),m(1,ti,1,0,"WindowMaximizeIcon",23)(2,ii,1,0,"WindowMinimizeIcon",23),R()),t&2){let e=s(6);l(),o("ngIf",!e.maximized&&!e._maximizeiconTemplate&&!e.maximizeIconTemplate&&!e.maximizeIconT),l(),o("ngIf",e.maximized&&!e._minimizeiconTemplate&&!e.minimizeIconTemplate&&!e.minimizeIconT)}}function oi(t,r){}function ai(t,r){t&1&&m(0,oi,0,0,"ng-template")}function li(t,r){if(t&1&&(B(0),m(1,ai,1,0,null,11),R()),t&2){let e=s(6);l(),o("ngTemplateOutlet",e._maximizeiconTemplate||e.maximizeIconTemplate||e.maximizeIconT)}}function ri(t,r){}function si(t,r){t&1&&m(0,ri,0,0,"ng-template")}function pi(t,r){if(t&1&&(B(0),m(1,si,1,0,null,11),R()),t&2){let e=s(6);l(),o("ngTemplateOutlet",e._minimizeiconTemplate||e.minimizeIconTemplate||e.minimizeIconT)}}function di(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,ei,1,1,"span",14)(2,ni,3,2,"ng-container",23)(3,li,2,1,"ng-container",23)(4,pi,2,1,"ng-container",23),d()}if(t&2){let e=s(5);o("styleClass",e.cx("pcMaximizeButton"))("tabindex",e.maximizable?"0":"-1")("ariaLabel",e.maximizeLabel)("buttonProps",e.maximizeButtonProps),l(),o("ngIf",e.maximizeIcon&&!e._maximizeiconTemplate&&!e._minimizeiconTemplate),l(),o("ngIf",!e.maximizeIcon&&!(e.maximizeButtonProps!=null&&e.maximizeButtonProps.icon)),l(),o("ngIf",!e.maximized),l(),o("ngIf",e.maximized)}}function ci(t,r){if(t&1&&y(0,"span",18),t&2){let e=s(8);o("ngClass",e.closeIcon)}}function mi(t,r){t&1&&y(0,"TimesIcon")}function _i(t,r){if(t&1&&(B(0),m(1,ci,1,1,"span",14)(2,mi,1,0,"TimesIcon",23),R()),t&2){let e=s(7);l(),o("ngIf",e.closeIcon),l(),o("ngIf",!e.closeIcon)}}function gi(t,r){}function ui(t,r){t&1&&m(0,gi,0,0,"ng-template")}function fi(t,r){if(t&1&&(p(0,"span"),m(1,ui,1,0,null,11),d()),t&2){let e=s(7);l(),o("ngTemplateOutlet",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function hi(t,r){if(t&1&&m(0,_i,3,2,"ng-container",23)(1,fi,2,1,"span",23),t&2){let e=s(6);o("ngIf",!e._closeiconTemplate&&!e.closeIconTemplate&&!e.closeIconT&&!(e.closeButtonProps!=null&&e.closeButtonProps.icon)),l(),o("ngIf",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function bi(t,r){if(t&1){let e=b();p(0,"p-button",24),u("onClick",function(i){_(e);let a=s(5);return g(a.close(i))})("keydown.enter",function(i){_(e);let a=s(5);return g(a.close(i))}),m(1,hi,2,2,"ng-template",null,4,W),d()}if(t&2){let e=s(5);o("styleClass",e.cx("pcCloseButton"))("ariaLabel",e.closeAriaLabel)("tabindex",e.closeTabindex)("buttonProps",e.closeButtonProps)}}function Ci(t,r){if(t&1){let e=b();p(0,"div",16,3),u("mousedown",function(i){_(e);let a=s(4);return g(a.initDrag(i))}),m(2,Ut,2,3,"span",17)(3,Jt,1,0,"ng-container",11),p(4,"div",18),m(5,di,5,8,"p-button",19)(6,bi,3,4,"p-button",20),d()()}if(t&2){let e=s(4);o("ngClass",e.cx("header")),l(2),o("ngIf",!e._headerTemplate&&!e.headerTemplate&&!e.headerT),l(),o("ngTemplateOutlet",e._headerTemplate||e.headerTemplate||e.headerT),l(),o("ngClass",e.cx("headerActions")),l(),o("ngIf",e.maximizable),l(),o("ngIf",e.closable)}}function xi(t,r){t&1&&I(0)}function yi(t,r){t&1&&I(0)}function vi(t,r){if(t&1&&(p(0,"div",18,5),Y(2,1),m(3,yi,1,0,"ng-container",11),d()),t&2){let e=s(4);o("ngClass",e.cx("footer")),l(3),o("ngTemplateOutlet",e._footerTemplate||e.footerTemplate||e.footerT)}}function Ti(t,r){if(t&1&&(m(0,Kt,1,1,"div",12)(1,Ci,7,6,"div",13),p(2,"div",7,2),Y(4),m(5,xi,1,0,"ng-container",11),d(),m(6,vi,4,2,"div",14)),t&2){let e=s(3);o("ngIf",e.resizable),l(),o("ngIf",e.showHeader),l(),F(e.contentStyleClass),o("ngClass",e.cx("content"))("ngStyle",e.contentStyle),T("data-pc-section","content"),l(3),o("ngTemplateOutlet",e._contentTemplate||e.contentTemplate||e.contentT),l(),o("ngIf",e._footerTemplate||e.footerTemplate||e.footerT)}}function wi(t,r){if(t&1){let e=b();p(0,"div",9,0),u("@animation.start",function(i){_(e);let a=s(2);return g(a.onAnimationStart(i))})("@animation.done",function(i){_(e);let a=s(2);return g(a.onAnimationEnd(i))}),m(2,Gt,2,1,"ng-container",10)(3,Ti,7,9,"ng-template",null,1,W),d()}if(t&2){let e=te(4),n=s(2);H(n.style),F(n.styleClass),o("ngClass",A(13,Yt,n.maximizable&&n.maximized))("ngStyle",j(15,jt))("pFocusTrapDisabled",n.focusTrap===!1)("@animation",A(19,$t,Ze(16,Zt,n.transformOptions,n.transitionOptions))),T("role",n.role)("aria-labelledby",n.ariaLabelledBy)("aria-modal",!0),l(2),o("ngIf",n._headlessTemplate||n.headlessTemplate||n.headlessT)("ngIfElse",e)}}function Ii(t,r){if(t&1&&(p(0,"div",7),m(1,wi,5,21,"div",8),d()),t&2){let e=s();H(e.maskStyle),F(e.maskStyleClass),o("ngClass",e.maskClass)("ngStyle",$e(7,Xt,e.position==="left"||e.position==="topleft"||e.position==="bottomleft"?"flex-start":e.position==="right"||e.position==="topright"||e.position==="bottomright"?"flex-end":"center",e.position==="top"||e.position==="topleft"||e.position==="topright"?"flex-start":e.position==="bottom"||e.position==="bottomleft"||e.position==="bottomright"?"flex-end":"center",e.modal?"auto":"none")),l(),o("ngIf",e.visible)}}var ki=({dt:t})=>`
|
|
1
|
+
import{a as ft,b as It,c as kt}from"./chunk-L3PZS6EL.js";import{h as wt}from"./chunk-ACTRMWEI.js";import{a as at,b as lt}from"./chunk-ARXP327B.js";import{a as fe,b as ut,f as Oe,h as he,j as ht,k as bt,l as Ct,m as xt,n as yt,o as vt,w as be,x as Tt}from"./chunk-7FFMPB6T.js";import{$ as ge,A as Se,B as _e,C as Ve,D as Fe,Da as O,I as Pe,K as rt,La as mt,Ma as ue,N as st,Na as _t,R as Le,U as pt,Ua as gt,Z as dt,b as tt,e as it,j as nt,ma as ct,w as ot,y as $,z as me}from"./chunk-72LNXEXV.js";import{d as et}from"./chunk-CPEWFFH4.js";import{c as Je,d as ke,f as ze,h as Me,i as Ee,k as De}from"./chunk-F2X3VGZZ.js";import{a as Ke,h as se,k as pe,l as Ue,m as de,s as ce,t as Z}from"./chunk-SB5MSLCX.js";import{$b as b,$c as re,Aa as D,Ab as Ye,Ba as Qe,Bb as V,Cc as le,Da as U,Db as m,Dc as j,Ea as w,Ec as A,Fc as Ze,Gc as $e,Ha as Ae,Kb as T,La as We,Lb as o,Nb as je,Nc as we,Ob as H,Oc as Ie,Pb as F,Qb as X,Rc as W,Vb as p,Wb as d,Xb as y,Yb as B,Zb as R,_b as I,_c as h,bd as qe,ca as Be,cd as Ge,da as xe,ec as u,fb as Ne,fc as s,gc as J,hb as l,hc as Y,ia as k,kc as v,lc as ee,mc as C,nc as x,pa as Re,qa as _,qc as te,ra as g,rc as Q,sa as K,sb as ye,sc as ie,tc as Te,ua as z,wc as ne,xb as S,xc as oe,yb as ve,yc as ae,zb as Xe}from"./chunk-6K5LNQ4J.js";import{a as Ce}from"./chunk-YQFG5XE2.js";var zt=(()=>{class t extends he{pathId;ngOnInit(){this.pathId="url(#"+O()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=z(t)))(i||t)}})();static \u0275cmp=S({type:t,selectors:[["WindowMaximizeIcon"]],features:[V],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&&(K(),p(0,"svg",0)(1,"g"),y(2,"path",1),d(),p(3,"defs")(4,"clipPath",2),y(5,"rect",3),d()()()),n&2&&(F(i.getClassNames()),T("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),l(),T("clip-path",i.pathId),l(3),o("id",i.pathId))},encapsulation:2})}return t})();var Mt=(()=>{class t extends he{pathId;ngOnInit(){this.pathId="url(#"+O()+")"}static \u0275fac=(()=>{let e;return function(i){return(e||(e=z(t)))(i||t)}})();static \u0275cmp=S({type:t,selectors:[["WindowMinimizeIcon"]],features:[V],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&&(K(),p(0,"svg",0)(1,"g"),y(2,"path",1),d(),p(3,"defs")(4,"clipPath",2),y(5,"rect",3),d()()()),n&2&&(F(i.getClassNames()),T("aria-label",i.ariaLabel)("aria-hidden",i.ariaHidden)("role",i.role),l(),T("clip-path",i.pathId),l(3),o("id",i.pathId))},encapsulation:2})}return t})();var Et=(()=>{class t extends fe{pFocusTrapDisabled=!1;platformId=k(We);document=k(Ke);firstHiddenFocusableElement;lastHiddenFocusableElement;ngOnInit(){super.ngOnInit(),Z(this.platformId)&&!this.pFocusTrapDisabled&&!this.firstHiddenFocusableElement&&!this.lastHiddenFocusableElement&&this.createHiddenFocusableElements()}ngOnChanges(e){super.ngOnChanges(e),e.pFocusTrapDisabled&&Z(this.platformId)&&(e.pFocusTrapDisabled.currentValue?this.removeHiddenFocusableElements():this.createHiddenFocusableElements())}removeHiddenFocusableElements(){this.firstHiddenFocusableElement&&this.firstHiddenFocusableElement.parentNode&&this.firstHiddenFocusableElement.parentNode.removeChild(this.firstHiddenFocusableElement),this.lastHiddenFocusableElement&&this.lastHiddenFocusableElement.parentNode&&this.lastHiddenFocusableElement.parentNode.removeChild(this.lastHiddenFocusableElement)}getComputedSelector(e){return`:not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])${e??""}`}createHiddenFocusableElements(){let e="0",n=i=>st("span",{class:"p-hidden-accessible p-hidden-focusable",tabindex:e,role:"presentation","aria-hidden":!0,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:i?.bind(this)});this.firstHiddenFocusableElement=n(this.onFirstHiddenElementFocus),this.lastHiddenFocusableElement=n(this.onLastHiddenElementFocus),this.firstHiddenFocusableElement.setAttribute("data-pc-section","firstfocusableelement"),this.lastHiddenFocusableElement.setAttribute("data-pc-section","lastfocusableelement"),this.el.nativeElement.prepend(this.firstHiddenFocusableElement),this.el.nativeElement.append(this.lastHiddenFocusableElement)}onFirstHiddenElementFocus(e){let{currentTarget:n,relatedTarget:i}=e,a=i===this.lastHiddenFocusableElement||!this.el.nativeElement?.contains(i)?pt(n.parentElement,":not(.p-hidden-focusable)"):this.lastHiddenFocusableElement;Le(a)}onLastHiddenElementFocus(e){let{currentTarget:n,relatedTarget:i}=e,a=i===this.firstHiddenFocusableElement||!this.el.nativeElement?.contains(i)?dt(n.parentElement,":not(.p-hidden-focusable)"):this.firstHiddenFocusableElement;Le(a)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=z(t)))(i||t)}})();static \u0275dir=Xe({type:t,selectors:[["","pFocusTrap",""]],inputs:{pFocusTrapDisabled:[2,"pFocusTrapDisabled","pFocusTrapDisabled",h]},features:[V,Re]})}return t})();var Ot=["header"],Dt=["content"],St=["footer"],Ht=["closeicon"],Bt=["maximizeicon"],Rt=["minimizeicon"],Qt=["headless"],At=["titlebar"],Wt=["*",[["p-footer"]]],Nt=["*","p-footer"],Xt=(t,r,e)=>({position:"fixed",height:"100%",width:"100%",left:0,top:0,display:"flex","justify-content":t,"align-items":r,"pointer-events":e}),Yt=t=>({"p-dialog p-component":!0,"p-dialog-maximized":t}),jt=()=>({display:"flex","flex-direction":"column","pointer-events":"auto"}),Zt=(t,r)=>({transform:t,transition:r}),$t=t=>({value:"visible",params:t});function qt(t,r){t&1&&I(0)}function Gt(t,r){if(t&1&&(B(0),m(1,qt,1,0,"ng-container",11),R()),t&2){let e=s(3);l(),o("ngTemplateOutlet",e._headlessTemplate||e.headlessTemplate||e.headlessT)}}function Kt(t,r){if(t&1){let e=b();p(0,"div",15),u("mousedown",function(i){_(e);let a=s(4);return g(a.initResize(i))}),d()}if(t&2){let e=s(4);o("ngClass",e.cx("resizeHandle"))}}function Ut(t,r){if(t&1&&(p(0,"span",21),Q(1),d()),t&2){let e=s(5);o("id",e.ariaLabelledBy)("ngClass",e.cx("title")),l(),ie(e.header)}}function Jt(t,r){t&1&&I(0)}function ei(t,r){if(t&1&&y(0,"span",18),t&2){let e=s(6);o("ngClass",e.maximized?e.minimizeIcon:e.maximizeIcon)}}function ti(t,r){t&1&&y(0,"WindowMaximizeIcon")}function ii(t,r){t&1&&y(0,"WindowMinimizeIcon")}function ni(t,r){if(t&1&&(B(0),m(1,ti,1,0,"WindowMaximizeIcon",23)(2,ii,1,0,"WindowMinimizeIcon",23),R()),t&2){let e=s(6);l(),o("ngIf",!e.maximized&&!e._maximizeiconTemplate&&!e.maximizeIconTemplate&&!e.maximizeIconT),l(),o("ngIf",e.maximized&&!e._minimizeiconTemplate&&!e.minimizeIconTemplate&&!e.minimizeIconT)}}function oi(t,r){}function ai(t,r){t&1&&m(0,oi,0,0,"ng-template")}function li(t,r){if(t&1&&(B(0),m(1,ai,1,0,null,11),R()),t&2){let e=s(6);l(),o("ngTemplateOutlet",e._maximizeiconTemplate||e.maximizeIconTemplate||e.maximizeIconT)}}function ri(t,r){}function si(t,r){t&1&&m(0,ri,0,0,"ng-template")}function pi(t,r){if(t&1&&(B(0),m(1,si,1,0,null,11),R()),t&2){let e=s(6);l(),o("ngTemplateOutlet",e._minimizeiconTemplate||e.minimizeIconTemplate||e.minimizeIconT)}}function di(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,ei,1,1,"span",14)(2,ni,3,2,"ng-container",23)(3,li,2,1,"ng-container",23)(4,pi,2,1,"ng-container",23),d()}if(t&2){let e=s(5);o("styleClass",e.cx("pcMaximizeButton"))("tabindex",e.maximizable?"0":"-1")("ariaLabel",e.maximizeLabel)("buttonProps",e.maximizeButtonProps),l(),o("ngIf",e.maximizeIcon&&!e._maximizeiconTemplate&&!e._minimizeiconTemplate),l(),o("ngIf",!e.maximizeIcon&&!(e.maximizeButtonProps!=null&&e.maximizeButtonProps.icon)),l(),o("ngIf",!e.maximized),l(),o("ngIf",e.maximized)}}function ci(t,r){if(t&1&&y(0,"span",18),t&2){let e=s(8);o("ngClass",e.closeIcon)}}function mi(t,r){t&1&&y(0,"TimesIcon")}function _i(t,r){if(t&1&&(B(0),m(1,ci,1,1,"span",14)(2,mi,1,0,"TimesIcon",23),R()),t&2){let e=s(7);l(),o("ngIf",e.closeIcon),l(),o("ngIf",!e.closeIcon)}}function gi(t,r){}function ui(t,r){t&1&&m(0,gi,0,0,"ng-template")}function fi(t,r){if(t&1&&(p(0,"span"),m(1,ui,1,0,null,11),d()),t&2){let e=s(7);l(),o("ngTemplateOutlet",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function hi(t,r){if(t&1&&m(0,_i,3,2,"ng-container",23)(1,fi,2,1,"span",23),t&2){let e=s(6);o("ngIf",!e._closeiconTemplate&&!e.closeIconTemplate&&!e.closeIconT&&!(e.closeButtonProps!=null&&e.closeButtonProps.icon)),l(),o("ngIf",e._closeiconTemplate||e.closeIconTemplate||e.closeIconT)}}function bi(t,r){if(t&1){let e=b();p(0,"p-button",24),u("onClick",function(i){_(e);let a=s(5);return g(a.close(i))})("keydown.enter",function(i){_(e);let a=s(5);return g(a.close(i))}),m(1,hi,2,2,"ng-template",null,4,W),d()}if(t&2){let e=s(5);o("styleClass",e.cx("pcCloseButton"))("ariaLabel",e.closeAriaLabel)("tabindex",e.closeTabindex)("buttonProps",e.closeButtonProps)}}function Ci(t,r){if(t&1){let e=b();p(0,"div",16,3),u("mousedown",function(i){_(e);let a=s(4);return g(a.initDrag(i))}),m(2,Ut,2,3,"span",17)(3,Jt,1,0,"ng-container",11),p(4,"div",18),m(5,di,5,8,"p-button",19)(6,bi,3,4,"p-button",20),d()()}if(t&2){let e=s(4);o("ngClass",e.cx("header")),l(2),o("ngIf",!e._headerTemplate&&!e.headerTemplate&&!e.headerT),l(),o("ngTemplateOutlet",e._headerTemplate||e.headerTemplate||e.headerT),l(),o("ngClass",e.cx("headerActions")),l(),o("ngIf",e.maximizable),l(),o("ngIf",e.closable)}}function xi(t,r){t&1&&I(0)}function yi(t,r){t&1&&I(0)}function vi(t,r){if(t&1&&(p(0,"div",18,5),Y(2,1),m(3,yi,1,0,"ng-container",11),d()),t&2){let e=s(4);o("ngClass",e.cx("footer")),l(3),o("ngTemplateOutlet",e._footerTemplate||e.footerTemplate||e.footerT)}}function Ti(t,r){if(t&1&&(m(0,Kt,1,1,"div",12)(1,Ci,7,6,"div",13),p(2,"div",7,2),Y(4),m(5,xi,1,0,"ng-container",11),d(),m(6,vi,4,2,"div",14)),t&2){let e=s(3);o("ngIf",e.resizable),l(),o("ngIf",e.showHeader),l(),F(e.contentStyleClass),o("ngClass",e.cx("content"))("ngStyle",e.contentStyle),T("data-pc-section","content"),l(3),o("ngTemplateOutlet",e._contentTemplate||e.contentTemplate||e.contentT),l(),o("ngIf",e._footerTemplate||e.footerTemplate||e.footerT)}}function wi(t,r){if(t&1){let e=b();p(0,"div",9,0),u("@animation.start",function(i){_(e);let a=s(2);return g(a.onAnimationStart(i))})("@animation.done",function(i){_(e);let a=s(2);return g(a.onAnimationEnd(i))}),m(2,Gt,2,1,"ng-container",10)(3,Ti,7,9,"ng-template",null,1,W),d()}if(t&2){let e=te(4),n=s(2);H(n.style),F(n.styleClass),o("ngClass",A(13,Yt,n.maximizable&&n.maximized))("ngStyle",j(15,jt))("pFocusTrapDisabled",n.focusTrap===!1)("@animation",A(19,$t,Ze(16,Zt,n.transformOptions,n.transitionOptions))),T("role",n.role)("aria-labelledby",n.ariaLabelledBy)("aria-modal",!0),l(2),o("ngIf",n._headlessTemplate||n.headlessTemplate||n.headlessT)("ngIfElse",e)}}function Ii(t,r){if(t&1&&(p(0,"div",7),m(1,wi,5,21,"div",8),d()),t&2){let e=s();H(e.maskStyle),F(e.maskStyleClass),o("ngClass",e.maskClass)("ngStyle",$e(7,Xt,e.position==="left"||e.position==="topleft"||e.position==="bottomleft"?"flex-start":e.position==="right"||e.position==="topright"||e.position==="bottomright"?"flex-end":"center",e.position==="top"||e.position==="topleft"||e.position==="topright"?"flex-start":e.position==="bottom"||e.position==="bottomleft"||e.position==="bottomright"?"flex-end":"center",e.modal?"auto":"none")),l(),o("ngIf",e.visible)}}var ki=({dt:t})=>`
|
|
2
2
|
.p-dialog {
|
|
3
3
|
max-height: 90%;
|
|
4
4
|
transform: scale(1);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as un}from"./chunk-
|
|
1
|
+
import{a as un}from"./chunk-WEC2BWPR.js";import{a as qn}from"./chunk-MS6WBVQX.js";import{a as Xn}from"./chunk-AF357XP4.js";import"./chunk-7COI2POD.js";import{a as Fn}from"./chunk-CWHL7PNC.js";import{a as $n}from"./chunk-VRKBMD72.js";import{b as Wn}from"./chunk-6O5EWYT7.js";import"./chunk-I7ILLTFH.js";import"./chunk-3KYU6FI2.js";import"./chunk-IJTQE2H4.js";import{b as jn}from"./chunk-WXT6EZ2V.js";import{a as Vn}from"./chunk-AJZ7YLT4.js";import{a as Dn}from"./chunk-ATJ55H5D.js";import{b as Yn,c as Ti}from"./chunk-L3PZS6EL.js";import{b as Gn}from"./chunk-5JV52UYK.js";import{c as Mn}from"./chunk-ARXP327B.js";import{a as et,c as An,f as ai,o as Bn,p as Rn,t as Hn,u as Si,w as Nn,x as oi}from"./chunk-7FFMPB6T.js";import"./chunk-UKBDY33R.js";import{Da as si,G as Sn,Ia as Ln,J as Tn,Ja as kn,K as Pn,Ka as zn,La as ri,Ma as ge,P as Ie,Q as _t,R as Nt,S as En,Ua as Je,b as mn,e as fn,f as gn,h as hn,ia as On,j as vn,k as wn,ma as In,p as bn,q as yn,r as _n,s as Cn,w as ni,x as xn}from"./chunk-72LNXEXV.js";import{b as rn,d as an,e as on,f as ln,l as Ht}from"./chunk-EFDD6Q3K.js";import{a as cn,c as Mi}from"./chunk-CPEWFFH4.js";import{a as pn}from"./chunk-ZDTMCWOO.js";import{c as dn,d as _i,f as Ci,h as xi}from"./chunk-F2X3VGZZ.js";import{H as sn,h as ct,j as ii,k as Ft,l as Bt,m as Rt,n as tn,s as we,t as Oe,z as nn}from"./chunk-SB5MSLCX.js";import{$b as ve,$c as Vt,Aa as We,Ab as Qi,Ba as Wi,Bb as Ke,Cc as Ze,Da as qi,Db as X,Dc as Ji,Ea as xe,Ec as pe,Fa as wt,Fc as Be,Gc as ti,Ha as Ee,Kb as Z,La as Ui,Lb as $,Nb as Ki,Nc as Dt,Ob as Qt,Oc as $t,Pb as ye,Qb as Kt,Rb as Zt,Rc as dt,Tb as Jt,Ub as ei,Vb as G,W as Xi,Wb as N,Xb as te,Yb as at,Zb as ot,_b as Me,_c as pt,ba as Yi,bd as en,ca as Ye,cb as bi,da as je,db as qe,ec as ie,fc as H,gc as bt,hb as R,hc as lt,ia as ae,kc as fe,lc as yt,mc as ne,nb as Ue,nc as se,pa as ji,qa as U,qc as Lt,ra as Q,rc as le,s as wi,sb as Ut,sc as Fe,t as Gi,tc as yi,ua as Ae,uc as Zi,wc as kt,xb as he,xc as zt,yb as Qe,yc as At}from"./chunk-6K5LNQ4J.js";import{a as me,b as It}from"./chunk-YQFG5XE2.js";var sr=["*"],rr=({dt:i})=>`
|
|
2
2
|
.p-inputgroup,
|
|
3
3
|
.p-inputgroup .p-floatlabel,
|
|
4
4
|
.p-inputgroup .p-iftalabel {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as ue}from"./chunk-WT4Z2QBS.js";import{b as be}from"./chunk-MPHY6FVN.js";import"./chunk-7COI2POD.js";import{a as Q,b as W}from"./chunk-NHZLS6JU.js";import{d as X,i as he,j as xe,k as Y}from"./chunk-VPQDUC77.js";import"./chunk-76LPTGLX.js";import"./chunk-CWHL7PNC.js";import"./chunk-VRKBMD72.js";import{a as Ce}from"./chunk-KXE3J4PK.js";import"./chunk-JUCJGYST.js";import"./chunk-6O5EWYT7.js";import"./chunk-I7ILLTFH.js";import"./chunk-2LQVI4EI.js";import"./chunk-SPKOXGSS.js";import"./chunk-3KYU6FI2.js";import"./chunk-IJTQE2H4.js";import{b as ge}from"./chunk-WXT6EZ2V.js";import"./chunk-AJZ7YLT4.js";import"./chunk-ATJ55H5D.js";import{h as q}from"./chunk-O4APZZ3M.js";import"./chunk-L3PZS6EL.js";import{a as A,b as j}from"./chunk-5JV52UYK.js";import{a as b,b as H,c as L,d as G,e as $,f as K}from"./chunk-ACTRMWEI.js";import"./chunk-ARXP327B.js";import{o as _e,w as V,x as F}from"./chunk-7FFMPB6T.js";import"./chunk-UKBDY33R.js";import{x as fe}from"./chunk-72LNXEXV.js";import{e as z,l as me}from"./chunk-EFDD6Q3K.js";import{a as se}from"./chunk-3KWAJ7F2.js";import{a as de}from"./chunk-ZDTMCWOO.js";import"./chunk-F2X3VGZZ.js";import{k as le,p as pe,q as D,s as N,z as ce}from"./chunk-SB5MSLCX.js";import{$b as E,Cc as O,Db as T,Dc as P,Ec as ie,Lb as g,Nc as S,Ob as I,Oc as U,Pc as re,Rc as _,Vb as o,Wb as i,Xb as J,Y as R,_ as ne,bd as v,c as k,ca as ae,db as oe,ec as y,fc as s,hb as m,ia as u,qa as x,ra as C,rc as r,s as te,sc as f,vc as B,xb as M}from"./chunk-6K5LNQ4J.js";import{a as l,b as d}from"./chunk-YQFG5XE2.js";var w=(()=>{class e{constructor(){this.httpService=u(se)}getGenerateCoa(t){let n={params:new ce().set("PageNumber",t.PageNumber).set("PageSize",t.PageSize)};return this.httpService.get(void 0,"api/Tools/GetListCOA",n)}updateCOABalance(t={}){return this.httpService.put(void 0,"api/Tools/UpdateCOABalance",void 0,t)}getUnbalanceJournal(t){return this.httpService.get(void 0,"api/Tools/UnbalanceJurnal/"+t.PageNumber+"/"+t.PageSize)}updateUnbalanceJournal(t){let a={ListID:t};return this.httpService.put(void 0,"api/Tools/RegenerateUnBalanceJournal",a)}static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275prov=ae({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Te={filter:{PageNumber:1,PageSize:20},data:{data:[],count:0}},Z=H(K(Te),L(e=>({first:v(()=>(e.filter().PageNumber-1)*e.filter().PageSize+1),end:v(()=>Math.min(e.filter().PageNumber*e.filter().PageSize,e.data().count))})),$(e=>{let p=u(w);return{updateFilter:a=>{b(e,n=>d(l({},n),{filter:l(l({},n.filter),a)}))},getUpdateCOA:Q(k(R(a=>p.getGenerateCoa(a).pipe(W({next:n=>{b(e,c=>d(l({},c),{data:n}))},error:n=>{console.error(n)}})))))}}),G({onInit(e){e.getUpdateCOA(e.filter)}}));var ke=()=>({height:"calc(100vh - 70px)"}),Re=()=>({"min-width":"50rem"});function Me(e,p){if(e&1){let t=E();o(0,"p-button",7),y("onClick",function(){x(t);let n=s();return C(n.updateCoaBalance())}),i()}}function Ie(e,p){e&1&&(o(0,"tr")(1,"th"),r(2,"Code"),i(),o(3,"th"),r(4,"Name"),i(),o(5,"th"),r(6,"Outlet"),i(),o(7,"th"),r(8,"COA Balance"),i(),o(9,"th"),r(10,"Correct Balance"),i()())}function Je(e,p){if(e&1&&(o(0,"tr")(1,"td"),r(2),i(),o(3,"td")(4,"a",9),r(5),i()(),o(6,"td"),r(7),i(),o(8,"td"),r(9),S(10,"number"),i(),o(11,"td"),r(12),S(13,"number"),i()()),e&2){let t=p.$implicit;m(2),f(t.Code),m(2),g("routerLink","/pages/chart-of-account/account/"+t.ID),m(),f(t.Name),m(2),f(t.OutletName),m(2),f(U(10,6,t.Balance)),m(3),f(U(13,8,t.CorrectBalance))}}function Be(e,p){if(e&1&&(o(0,"div",10)(1,"p",11),r(2),i()()),e&2){let t=s(2);m(2),B(" Showing ",t.store.first()," to ",t.store.end()," of ",t.store.data().count," entries ")}}function Oe(e,p){e&1&&(o(0,"tr")(1,"td",12)(2,"span"),r(3,"No records found."),i()()())}function De(e,p){if(e&1){let t=E();o(0,"p-panel")(1,"p-table",8),y("onPage",function(n){x(t);let c=s();return C(c.onPageChange(n))}),T(2,Ie,11,0,"ng-template",null,2,_)(4,Je,14,10,"ng-template",null,3,_)(6,Be,3,3,"ng-template",null,4,_)(8,Oe,4,0,"ng-template",null,5,_),i()()}if(e&2){let t=s();I(P(8,ke)),m(),g("paginator",!0)("lazy",!0)("totalRecords",t.store.data().count)("rows",t.store.filter().PageSize)("value",t.store.data().data)("tableStyle",P(9,Re))}}var ve=(()=>{class e{constructor(){this.store=u(Z),this.coaService=u(w),this.toastrService=u(de)}onPageChange(t){this.store.updateFilter(d(l({},this.store.filter()),{PageNumber:Math.floor(t.first/t.rows)+1}))}updateCoaBalance(){this.coaService.updateCOABalance({observe:"response"}).pipe(Ce("Update COA Balance"),ne(()=>{this.store.updateFilter(this.store.filter())})).subscribe()}static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275cmp=M({type:e,selectors:[["app-tools-update-coa"]],features:[O([Z])],decls:5,vars:1,consts:[["actionButton",""],["content",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Update COA Balance",3,"scrollable"],["label","Update",3,"onClick"],[3,"onPage","paginator","lazy","totalRecords","rows","value","tableStyle"],["target","_blank",1,"link","link-primary",3,"routerLink"],[1,"flex","align-items-center","custom-font-footer",2,"height","100%"],[1,"m-0"],["colspan","5"]],template:function(a,n){a&1&&(o(0,"app-main-panel",6),T(1,Me,1,0,"ng-template",null,0,_)(3,De,10,10,"ng-template",null,1,_),i()),a&2&&g("scrollable",!0)},dependencies:[q,Y,X,ge,N,D,F,V,j,A,z],styles:["[_nghost-%COMP%]{display:block} .p-card{height:100%} .p-card .p-card-body{height:inherit} .p-card .p-card-body .p-card-content{height:inherit} .p-paginator .p-paginator-pages .p-paginator-page{font-size:14px}.custom-font-footer[_ngcontent-%COMP%]{font-size:.875rem}"],changeDetection:0})}}return e})();var Ne={data:{count:0,data:[]},filter:{PageNumber:1,PageSize:20}},ee=H(K(Ne),L(e=>({first:v(()=>(e.filter().PageNumber-1)*e.filter().PageSize+1),end:v(()=>Math.min(e.filter().PageNumber*e.filter().PageSize,e.data().count)),selectedItems:v(()=>e.data().data.filter(p=>p.checked)),hasCheckedRows:v(()=>e.data().data.some(p=>p.checked))})),$(e=>{let p=u(w);return{updateFilter(a){b(e,n=>d(l({},n),{filter:l(l({},n.filter),a)}))},onRowSelect(a){b(e,n=>{let c=n.data.data.map(h=>h.id===a.id?d(l({},h),{checked:!0}):h);return d(l({},n),{data:d(l({},n.data),{data:c})})})},onRowUnselect(a){b(e,n=>{let c=n.data.data.map(h=>h.id===a.id?d(l({},h),{checked:!1}):h);return d(l({},n),{data:d(l({},n.data),{data:c})})})},onHeaderCheckboxToggle(a){b(e,n=>{let c=n.data.data.map(h=>d(l({},h),{checked:a}));return d(l({},n),{data:d(l({},n.data),{data:c})})})},loadData:Q(k(R(a=>p.getUnbalanceJournal(a).pipe(te(n=>d(l({},n),{data:n.data.map(c=>d(l({},c),{checked:!1}))})),W({next:n=>{b(e,c=>d(l({},c),{data:n}))},error:n=>{console.error("Error loading unbalance journal data:",n)}})))))}}),G(e=>({onInit:()=>{e.loadData(e.filter)}})));var ze=()=>({height:"calc(100vh - 70px)"}),Ve=e=>["/pages/journal/journal-entry",e];function Fe(e,p){if(e&1){let t=E();o(0,"div",8),J(1,"p-button",9),o(2,"p-button",10),y("onClick",function(){x(t);let n=s(2);return C(n.regenerateUnbalanceJournal())}),r(3,"Regenerate"),i()()}}function Ae(e,p){if(e&1&&T(0,Fe,4,0,"div",7),e&2){let t=s();g("ngIf",t.store.hasCheckedRows())}}function je(e,p){e&1&&(o(0,"tr")(1,"th",12),J(2,"p-tableHeaderCheckbox"),i(),o(3,"th"),r(4,"Date"),i(),o(5,"th"),r(6,"Number"),i(),o(7,"th",13),r(8,"Debit SUM"),i(),o(9,"th",13),r(10,"Credit SUM"),i(),o(11,"th",13),r(12,"Difference"),i(),o(13,"th"),r(14,"Reference"),i(),o(15,"th"),r(16,"Outlet"),i()())}function He(e,p){if(e&1&&(o(0,"tr")(1,"td"),J(2,"p-tableCheckbox",14),i(),o(3,"td"),r(4),S(5,"date"),i(),o(6,"td")(7,"a",15),r(8),i()(),o(9,"td",13),r(10),S(11,"number"),i(),o(12,"td",13),r(13),S(14,"number"),i(),o(15,"td",13),r(16),S(17,"number"),i(),o(18,"td")(19,"a",16),r(20),i()(),o(21,"td"),r(22),i()()),e&2){let t=p.$implicit,a=s(2);m(2),g("value",t),m(2),f(re(5,10,t.date,"dd MMM yyyy")),m(3),g("routerLink",ie(19,Ve,t.id)),m(),f(t.number),m(2),f(U(11,13,t.debitSum)),m(3),f(U(14,15,t.creditSum)),m(3),f(U(17,17,t.differences)),m(3),g("href",a.authService.getTenantExternalURL()+"/menu/Orders/Orders/Customer_Invoice/Info?ID="+t.id,oe),m(),f(t.referenceText),m(2),f(t.outletName)}}function Le(e,p){if(e&1&&r(0),e&2){let t=s(2);B(" Showing ",t.store.first()," to ",t.store.end()," of ",t.store.data().count," entries ")}}function Ge(e,p){e&1&&(o(0,"tr")(1,"td",17)(2,"span"),r(3,"No records found."),i()()())}function $e(e,p){if(e&1){let t=E();o(0,"p-panel")(1,"p-table",11),y("onPage",function(n){x(t);let c=s();return C(c.onPageChange(n))})("onRowSelect",function(n){x(t);let c=s();return C(c.onRowSelect(n))})("onRowUnselect",function(n){x(t);let c=s();return C(c.onRowUnselect(n))})("onHeaderCheckboxToggle",function(n){x(t);let c=s();return C(c.onHeaderCheckboxToggle(n))}),T(2,je,17,0,"ng-template",null,2,_)(4,He,23,21,"ng-template",null,3,_)(6,Le,1,3,"ng-template",null,4,_)(8,Ge,4,0,"ng-template",null,5,_),i()()}if(e&2){let t=s();I(P(7,ze)),m(),g("value",t.store.data().data)("lazy",!0)("paginator",!0)("rows",t.store.filter().PageSize)("totalRecords",t.store.data().count)}}var we=(()=>{class e{constructor(){this.store=u(ee),this.toolsService=u(w),this.authService=u(ue)}onPageChange(t){console.log("Page changed:",t);let a=t.first/t.rows;this.store.updateFilter({PageNumber:a+1})}onRowSelect(t){this.store.onRowSelect(t.data)}onRowUnselect(t){if(Array.isArray(t.data)){t.data.forEach(a=>{this.store.onRowUnselect(a)});return}else this.store.onRowUnselect(t.data)}onHeaderCheckboxToggle(t){this.store.onHeaderCheckboxToggle(t.checked)}regenerateUnbalanceJournal(){let a=this.store.selectedItems().filter(n=>n.checked==!0).map(n=>n.id);this.toolsService.updateUnbalanceJournal(a).subscribe()}static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275cmp=M({type:e,selectors:[["app-unbalance-journal"]],features:[O([ee])],decls:5,vars:1,consts:[["actionButton",""],["content",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Unbalance Journal",3,"scrollable"],["class","d-flex gap-2",4,"ngIf"],[1,"d-flex","gap-2"],["icon","fa-solid fa-trash","label","Delete","severity","danger"],[3,"onClick"],["paginatorStyleClass","d-flex justify-content-end","dataKey","id",3,"onPage","onRowSelect","onRowUnselect","onHeaderCheckboxToggle","value","lazy","paginator","rows","totalRecords"],[2,"width","1rem"],[1,"text-end"],[3,"value"],["target","_blank",1,"link","link-primary",3,"routerLink"],["target","_blank",1,"link","link-primary",3,"href"],["colspan","6"]],template:function(a,n){a&1&&(o(0,"app-main-panel",6),T(1,Ae,1,1,"ng-template",null,0,_)(3,$e,10,8,"ng-template",null,1,_),i()),a&2&&g("scrollable",!0)},dependencies:[q,Y,X,he,xe,be,_e,N,le,D,pe,fe,F,V,j,A,me,z],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return e})();var Wt=[{path:"",redirectTo:"generate-coa",pathMatch:"full"},{path:"generate-coa",component:ve},{path:"unbalance-journal",component:we}];export{Wt as TOOLS_ROUTES};
|
|
1
|
+
import{a as ue}from"./chunk-WEC2BWPR.js";import{b as be}from"./chunk-MPHY6FVN.js";import"./chunk-7COI2POD.js";import{a as Q,b as W}from"./chunk-NHZLS6JU.js";import{d as X,i as he,j as xe,k as Y}from"./chunk-VPQDUC77.js";import"./chunk-76LPTGLX.js";import"./chunk-CWHL7PNC.js";import"./chunk-VRKBMD72.js";import{a as Ce}from"./chunk-KXE3J4PK.js";import"./chunk-JUCJGYST.js";import"./chunk-6O5EWYT7.js";import"./chunk-I7ILLTFH.js";import"./chunk-2LQVI4EI.js";import"./chunk-SPKOXGSS.js";import"./chunk-3KYU6FI2.js";import"./chunk-IJTQE2H4.js";import{b as ge}from"./chunk-WXT6EZ2V.js";import"./chunk-AJZ7YLT4.js";import"./chunk-ATJ55H5D.js";import{h as q}from"./chunk-3O2P3XCM.js";import"./chunk-L3PZS6EL.js";import{a as A,b as j}from"./chunk-5JV52UYK.js";import{a as b,b as H,c as L,d as G,e as $,f as K}from"./chunk-ACTRMWEI.js";import"./chunk-ARXP327B.js";import{o as _e,w as V,x as F}from"./chunk-7FFMPB6T.js";import"./chunk-UKBDY33R.js";import{x as fe}from"./chunk-72LNXEXV.js";import{e as z,l as me}from"./chunk-EFDD6Q3K.js";import{a as se}from"./chunk-CPEWFFH4.js";import{a as de}from"./chunk-ZDTMCWOO.js";import"./chunk-F2X3VGZZ.js";import{k as le,p as pe,q as D,s as N,z as ce}from"./chunk-SB5MSLCX.js";import{$b as E,Cc as O,Db as T,Dc as P,Ec as ie,Lb as g,Nc as S,Ob as I,Oc as U,Pc as re,Rc as _,Vb as o,Wb as i,Xb as J,Y as R,_ as ne,bd as v,c as k,ca as ae,db as oe,ec as y,fc as s,hb as m,ia as u,qa as x,ra as C,rc as r,s as te,sc as f,vc as B,xb as M}from"./chunk-6K5LNQ4J.js";import{a as l,b as d}from"./chunk-YQFG5XE2.js";var w=(()=>{class e{constructor(){this.httpService=u(se)}getGenerateCoa(t){let n={params:new ce().set("PageNumber",t.PageNumber).set("PageSize",t.PageSize)};return this.httpService.get(void 0,"api/Tools/GetListCOA",n)}updateCOABalance(t={}){return this.httpService.put(void 0,"api/Tools/UpdateCOABalance",void 0,t)}getUnbalanceJournal(t){return this.httpService.get(void 0,"api/Tools/UnbalanceJurnal/"+t.PageNumber+"/"+t.PageSize)}updateUnbalanceJournal(t){let a={ListID:t};return this.httpService.put(void 0,"api/Tools/RegenerateUnBalanceJournal",a)}static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275prov=ae({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Te={filter:{PageNumber:1,PageSize:20},data:{data:[],count:0}},Z=H(K(Te),L(e=>({first:v(()=>(e.filter().PageNumber-1)*e.filter().PageSize+1),end:v(()=>Math.min(e.filter().PageNumber*e.filter().PageSize,e.data().count))})),$(e=>{let p=u(w);return{updateFilter:a=>{b(e,n=>d(l({},n),{filter:l(l({},n.filter),a)}))},getUpdateCOA:Q(k(R(a=>p.getGenerateCoa(a).pipe(W({next:n=>{b(e,c=>d(l({},c),{data:n}))},error:n=>{console.error(n)}})))))}}),G({onInit(e){e.getUpdateCOA(e.filter)}}));var ke=()=>({height:"calc(100vh - 70px)"}),Re=()=>({"min-width":"50rem"});function Me(e,p){if(e&1){let t=E();o(0,"p-button",7),y("onClick",function(){x(t);let n=s();return C(n.updateCoaBalance())}),i()}}function Ie(e,p){e&1&&(o(0,"tr")(1,"th"),r(2,"Code"),i(),o(3,"th"),r(4,"Name"),i(),o(5,"th"),r(6,"Outlet"),i(),o(7,"th"),r(8,"COA Balance"),i(),o(9,"th"),r(10,"Correct Balance"),i()())}function Je(e,p){if(e&1&&(o(0,"tr")(1,"td"),r(2),i(),o(3,"td")(4,"a",9),r(5),i()(),o(6,"td"),r(7),i(),o(8,"td"),r(9),S(10,"number"),i(),o(11,"td"),r(12),S(13,"number"),i()()),e&2){let t=p.$implicit;m(2),f(t.Code),m(2),g("routerLink","/pages/chart-of-account/account/"+t.ID),m(),f(t.Name),m(2),f(t.OutletName),m(2),f(U(10,6,t.Balance)),m(3),f(U(13,8,t.CorrectBalance))}}function Be(e,p){if(e&1&&(o(0,"div",10)(1,"p",11),r(2),i()()),e&2){let t=s(2);m(2),B(" Showing ",t.store.first()," to ",t.store.end()," of ",t.store.data().count," entries ")}}function Oe(e,p){e&1&&(o(0,"tr")(1,"td",12)(2,"span"),r(3,"No records found."),i()()())}function De(e,p){if(e&1){let t=E();o(0,"p-panel")(1,"p-table",8),y("onPage",function(n){x(t);let c=s();return C(c.onPageChange(n))}),T(2,Ie,11,0,"ng-template",null,2,_)(4,Je,14,10,"ng-template",null,3,_)(6,Be,3,3,"ng-template",null,4,_)(8,Oe,4,0,"ng-template",null,5,_),i()()}if(e&2){let t=s();I(P(8,ke)),m(),g("paginator",!0)("lazy",!0)("totalRecords",t.store.data().count)("rows",t.store.filter().PageSize)("value",t.store.data().data)("tableStyle",P(9,Re))}}var ve=(()=>{class e{constructor(){this.store=u(Z),this.coaService=u(w),this.toastrService=u(de)}onPageChange(t){this.store.updateFilter(d(l({},this.store.filter()),{PageNumber:Math.floor(t.first/t.rows)+1}))}updateCoaBalance(){this.coaService.updateCOABalance({observe:"response"}).pipe(Ce("Update COA Balance"),ne(()=>{this.store.updateFilter(this.store.filter())})).subscribe()}static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275cmp=M({type:e,selectors:[["app-tools-update-coa"]],features:[O([Z])],decls:5,vars:1,consts:[["actionButton",""],["content",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Update COA Balance",3,"scrollable"],["label","Update",3,"onClick"],[3,"onPage","paginator","lazy","totalRecords","rows","value","tableStyle"],["target","_blank",1,"link","link-primary",3,"routerLink"],[1,"flex","align-items-center","custom-font-footer",2,"height","100%"],[1,"m-0"],["colspan","5"]],template:function(a,n){a&1&&(o(0,"app-main-panel",6),T(1,Me,1,0,"ng-template",null,0,_)(3,De,10,10,"ng-template",null,1,_),i()),a&2&&g("scrollable",!0)},dependencies:[q,Y,X,ge,N,D,F,V,j,A,z],styles:["[_nghost-%COMP%]{display:block} .p-card{height:100%} .p-card .p-card-body{height:inherit} .p-card .p-card-body .p-card-content{height:inherit} .p-paginator .p-paginator-pages .p-paginator-page{font-size:14px}.custom-font-footer[_ngcontent-%COMP%]{font-size:.875rem}"],changeDetection:0})}}return e})();var Ne={data:{count:0,data:[]},filter:{PageNumber:1,PageSize:20}},ee=H(K(Ne),L(e=>({first:v(()=>(e.filter().PageNumber-1)*e.filter().PageSize+1),end:v(()=>Math.min(e.filter().PageNumber*e.filter().PageSize,e.data().count)),selectedItems:v(()=>e.data().data.filter(p=>p.checked)),hasCheckedRows:v(()=>e.data().data.some(p=>p.checked))})),$(e=>{let p=u(w);return{updateFilter(a){b(e,n=>d(l({},n),{filter:l(l({},n.filter),a)}))},onRowSelect(a){b(e,n=>{let c=n.data.data.map(h=>h.id===a.id?d(l({},h),{checked:!0}):h);return d(l({},n),{data:d(l({},n.data),{data:c})})})},onRowUnselect(a){b(e,n=>{let c=n.data.data.map(h=>h.id===a.id?d(l({},h),{checked:!1}):h);return d(l({},n),{data:d(l({},n.data),{data:c})})})},onHeaderCheckboxToggle(a){b(e,n=>{let c=n.data.data.map(h=>d(l({},h),{checked:a}));return d(l({},n),{data:d(l({},n.data),{data:c})})})},loadData:Q(k(R(a=>p.getUnbalanceJournal(a).pipe(te(n=>d(l({},n),{data:n.data.map(c=>d(l({},c),{checked:!1}))})),W({next:n=>{b(e,c=>d(l({},c),{data:n}))},error:n=>{console.error("Error loading unbalance journal data:",n)}})))))}}),G(e=>({onInit:()=>{e.loadData(e.filter)}})));var ze=()=>({height:"calc(100vh - 70px)"}),Ve=e=>["/pages/journal/journal-entry",e];function Fe(e,p){if(e&1){let t=E();o(0,"div",8),J(1,"p-button",9),o(2,"p-button",10),y("onClick",function(){x(t);let n=s(2);return C(n.regenerateUnbalanceJournal())}),r(3,"Regenerate"),i()()}}function Ae(e,p){if(e&1&&T(0,Fe,4,0,"div",7),e&2){let t=s();g("ngIf",t.store.hasCheckedRows())}}function je(e,p){e&1&&(o(0,"tr")(1,"th",12),J(2,"p-tableHeaderCheckbox"),i(),o(3,"th"),r(4,"Date"),i(),o(5,"th"),r(6,"Number"),i(),o(7,"th",13),r(8,"Debit SUM"),i(),o(9,"th",13),r(10,"Credit SUM"),i(),o(11,"th",13),r(12,"Difference"),i(),o(13,"th"),r(14,"Reference"),i(),o(15,"th"),r(16,"Outlet"),i()())}function He(e,p){if(e&1&&(o(0,"tr")(1,"td"),J(2,"p-tableCheckbox",14),i(),o(3,"td"),r(4),S(5,"date"),i(),o(6,"td")(7,"a",15),r(8),i()(),o(9,"td",13),r(10),S(11,"number"),i(),o(12,"td",13),r(13),S(14,"number"),i(),o(15,"td",13),r(16),S(17,"number"),i(),o(18,"td")(19,"a",16),r(20),i()(),o(21,"td"),r(22),i()()),e&2){let t=p.$implicit,a=s(2);m(2),g("value",t),m(2),f(re(5,10,t.date,"dd MMM yyyy")),m(3),g("routerLink",ie(19,Ve,t.id)),m(),f(t.number),m(2),f(U(11,13,t.debitSum)),m(3),f(U(14,15,t.creditSum)),m(3),f(U(17,17,t.differences)),m(3),g("href",a.authService.getTenantExternalURL()+"/menu/Orders/Orders/Customer_Invoice/Info?ID="+t.id,oe),m(),f(t.referenceText),m(2),f(t.outletName)}}function Le(e,p){if(e&1&&r(0),e&2){let t=s(2);B(" Showing ",t.store.first()," to ",t.store.end()," of ",t.store.data().count," entries ")}}function Ge(e,p){e&1&&(o(0,"tr")(1,"td",17)(2,"span"),r(3,"No records found."),i()()())}function $e(e,p){if(e&1){let t=E();o(0,"p-panel")(1,"p-table",11),y("onPage",function(n){x(t);let c=s();return C(c.onPageChange(n))})("onRowSelect",function(n){x(t);let c=s();return C(c.onRowSelect(n))})("onRowUnselect",function(n){x(t);let c=s();return C(c.onRowUnselect(n))})("onHeaderCheckboxToggle",function(n){x(t);let c=s();return C(c.onHeaderCheckboxToggle(n))}),T(2,je,17,0,"ng-template",null,2,_)(4,He,23,21,"ng-template",null,3,_)(6,Le,1,3,"ng-template",null,4,_)(8,Ge,4,0,"ng-template",null,5,_),i()()}if(e&2){let t=s();I(P(7,ze)),m(),g("value",t.store.data().data)("lazy",!0)("paginator",!0)("rows",t.store.filter().PageSize)("totalRecords",t.store.data().count)}}var we=(()=>{class e{constructor(){this.store=u(ee),this.toolsService=u(w),this.authService=u(ue)}onPageChange(t){console.log("Page changed:",t);let a=t.first/t.rows;this.store.updateFilter({PageNumber:a+1})}onRowSelect(t){this.store.onRowSelect(t.data)}onRowUnselect(t){if(Array.isArray(t.data)){t.data.forEach(a=>{this.store.onRowUnselect(a)});return}else this.store.onRowUnselect(t.data)}onHeaderCheckboxToggle(t){this.store.onHeaderCheckboxToggle(t.checked)}regenerateUnbalanceJournal(){let a=this.store.selectedItems().filter(n=>n.checked==!0).map(n=>n.id);this.toolsService.updateUnbalanceJournal(a).subscribe()}static{this.\u0275fac=function(a){return new(a||e)}}static{this.\u0275cmp=M({type:e,selectors:[["app-unbalance-journal"]],features:[O([ee])],decls:5,vars:1,consts:[["actionButton",""],["content",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["pageTitle","Unbalance Journal",3,"scrollable"],["class","d-flex gap-2",4,"ngIf"],[1,"d-flex","gap-2"],["icon","fa-solid fa-trash","label","Delete","severity","danger"],[3,"onClick"],["paginatorStyleClass","d-flex justify-content-end","dataKey","id",3,"onPage","onRowSelect","onRowUnselect","onHeaderCheckboxToggle","value","lazy","paginator","rows","totalRecords"],[2,"width","1rem"],[1,"text-end"],[3,"value"],["target","_blank",1,"link","link-primary",3,"routerLink"],["target","_blank",1,"link","link-primary",3,"href"],["colspan","6"]],template:function(a,n){a&1&&(o(0,"app-main-panel",6),T(1,Ae,1,1,"ng-template",null,0,_)(3,$e,10,8,"ng-template",null,1,_),i()),a&2&&g("scrollable",!0)},dependencies:[q,Y,X,he,xe,be,_e,N,le,D,pe,fe,F,V,j,A,me,z],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}}return e})();var Wt=[{path:"",redirectTo:"generate-coa",pathMatch:"full"},{path:"generate-coa",component:ve},{path:"unbalance-journal",component:we}];export{Wt as TOOLS_ROUTES};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as V,b as oe}from"./chunk-
|
|
1
|
+
import{a as V,b as oe}from"./chunk-KYLRXHLA.js";import"./chunk-AQR2H4W4.js";import{a as te,b as ie}from"./chunk-76LPTGLX.js";import"./chunk-CWHL7PNC.js";import"./chunk-VRKBMD72.js";import{a as K,b as Q}from"./chunk-E3QNEH3B.js";import{a as ne,b as re}from"./chunk-2LQVI4EI.js";import{b as ee}from"./chunk-WXT6EZ2V.js";import"./chunk-AJZ7YLT4.js";import"./chunk-ATJ55H5D.js";import{h as $}from"./chunk-3O2P3XCM.js";import"./chunk-L3PZS6EL.js";import{a as Y,b as Z}from"./chunk-5JV52UYK.js";import"./chunk-ACTRMWEI.js";import"./chunk-ARXP327B.js";import{w as U,x as X}from"./chunk-7FFMPB6T.js";import"./chunk-UKBDY33R.js";import{e as G,j as H,w as q}from"./chunk-72LNXEXV.js";import"./chunk-CPEWFFH4.js";import{a as A}from"./chunk-ZDTMCWOO.js";import"./chunk-F2X3VGZZ.js";import{n as z,s as R}from"./chunk-SB5MSLCX.js";import{$b as h,Cc as j,Db as L,Dc as F,Ha as b,Lb as u,Nc as T,Ob as S,Oc as P,Rc as M,Vb as r,W as E,Wb as o,Xb as C,Y as B,_ as W,ec as f,fc as m,h as J,hb as s,ia as x,qa as l,ra as p,rc as _,s as y,sa as I,ta as N,wc as c,xb as O,xc as g,yc as d}from"./chunk-6K5LNQ4J.js";import{a as D}from"./chunk-YQFG5XE2.js";var ae=()=>({height:"calc(100vh - 100px)"});function le(a,v){if(a&1){let t=h();r(0,"div",4)(1,"p-button",5),f("onClick",function(){l(t);let e=m();return p(e.onFormat())}),o(),r(2,"p-button",6),f("onClick",function(){l(t);let e=m();return p(e.openMigrateDialog())}),o()()}}function pe(a,v){if(a&1){let t=h();r(0,"div",7)(1,"div",8)(2,"label",9),_(3,"From"),o(),r(4,"p-datepicker",10),d("ngModelChange",function(e){l(t);let n=m();return g(n.filter().From,e)||(n.filter().From=e),p(e)}),o()(),r(5,"div",8)(6,"label",9),_(7,"To"),o(),r(8,"p-datepicker",10),d("ngModelChange",function(e){l(t);let n=m();return g(n.filter().To,e)||(n.filter().To=e),p(e)}),o()(),r(9,"div",8)(10,"label",9),_(11,"Page Number"),o(),r(12,"p-inputnumber",11),d("ngModelChange",function(e){l(t);let n=m();return g(n.filter().PageNumber,e)||(n.filter().PageNumber=e),p(e)}),o()(),r(13,"div",8)(14,"label",9),_(15,"Page Size"),o(),r(16,"p-inputnumber",11),d("ngModelChange",function(e){l(t);let n=m();return g(n.filter().PageSize,e)||(n.filter().PageSize=e),p(e)}),o()()()}if(a&2){let t=m();s(4),u("showIcon",!0),c("ngModel",t.filter().From),s(4),u("showIcon",!0),c("ngModel",t.filter().To),s(4),c("ngModel",t.filter().PageNumber),s(4),c("ngModel",t.filter().PageSize)}}function me(a,v){if(a&1&&(r(0,"p-scroll-panel")(1,"p-panel")(2,"div",12),C(3,"app-migration-cards",13),T(4,"async"),I(),r(5,"svg",14),C(6,"path",15),o(),N(),C(7,"app-migration-cards",16),T(8,"async"),o()()()),a&2){let t=m();S(F(12,ae)),s(),S(F(13,ae)),s(2),u("migrationCount",P(4,8,t.countInPOS$))("migrationTitle",t.pageTitle),s(4),u("migrationCount",P(8,10,t.countInBooks$))("migrationTitle",t.pageTitle)}}var We=(()=>{class a{constructor(){this.migrateService=x(V),this.refresh$=new J(void 0),this.toastr=x(A),this.pageTitle="Manual Journal",this.filter=b({From:new Date,To:new Date,PageSize:45e3,PageNumber:1}),this.isFilterDialogOpen=b(!1),this.previousFilter=null}ngOnInit(){let t=this.refresh$.pipe(B(()=>this.migrateService.getManualJournalCount()),E(1));this.countInPOS$=t.pipe(y(i=>Number(i.pos))),this.countInBooks$=t.pipe(y(i=>Number(i.books)))}openMigrateDialog(){this.previousFilter=D({},this.filter()),this.isFilterDialogOpen.set(!0)}onMigrate(){this.migrateService.migrateManualJournal(this.filter()).pipe(W(()=>{this.isFilterDialogOpen.update(t=>!t),this.refresh$.next(),this.previousFilter=null})).subscribe()}onFilterCanceled(){this.previousFilter&&(this.filter.set(this.previousFilter),this.previousFilter=null)}onFormat(){window.confirm("Are you sure you want to format this data? This action cannot be undone.")&&this.migrateService.formatManualJournal().subscribe(i=>{this.refresh$.next(),this.toastr.success(i.message,"Format Successful")})}static{this.\u0275fac=function(i){return new(i||a)}}static{this.\u0275cmp=O({type:a,selectors:[["app-manual-journal"]],features:[j([V])],decls:7,vars:2,consts:[["actionButton",""],["filters",""],["content",""],[3,"filterConfirmed","isDialogFilterVisibleChange","filterCanceled","pageTitle","isDialogFilterVisible"],[1,"d-flex","gap-2"],["label","Format","severity","danger",3,"onClick"],["label","Migrate",3,"onClick"],[1,"d-flex","flex-column","row-gap-3"],[1,"d-flex","flex-column"],["for","outlet"],["styleClass","w-100","appendTo","body","iconDisplay","input","inputId","icondisplay",3,"ngModelChange","showIcon","ngModel"],["inputId","integeronly",3,"ngModelChange","ngModel"],[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,e){if(i&1){let n=h();r(0,"app-main-panel",3),f("filterConfirmed",function(){return l(n),p(e.onMigrate())}),d("isDialogFilterVisibleChange",function(w){return l(n),g(e.isFilterDialogOpen,w)||(e.isFilterDialogOpen=w),p(w)}),f("filterCanceled",function(){return l(n),p(e.onFilterCanceled())}),L(1,le,3,0,"ng-template",null,0,M)(3,pe,17,6,"ng-template",null,1,M)(5,me,9,14,"ng-template",null,2,M),o()}i&2&&(u("pageTitle",e.pageTitle),c("isDialogFilterVisible",e.isFilterDialogOpen))},dependencies:[$,R,z,ee,X,U,Q,K,Z,Y,oe,ie,te,q,G,H,re,ne],encapsulation:2})}}return a})();export{We as ManualJournalComponent};
|