dealposbooks 5.49.2 → 5.49.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.
- package/assets/scss/style.scss +2 -4
- package/{chunk-HA7LLTOG.js → chunk-23PWXRYN.js} +1 -1
- package/{chunk-P5ICG7YE.js → chunk-2RRP7JK7.js} +1 -1
- package/{chunk-GWKQHO7M.js → chunk-5JNGJ6UW.js} +1 -1
- package/{chunk-2RI2WRFG.js → chunk-672TXWSC.js} +1 -1
- package/{chunk-JJ2G2ITS.js → chunk-6EIUS53G.js} +1 -1
- package/{chunk-LXHUCAAY.js → chunk-7B7LNBD5.js} +1 -1
- package/{chunk-ES2YST7G.js → chunk-AVSCJ22B.js} +1 -1
- package/{chunk-4YH7A4M6.js → chunk-BEZIBXGN.js} +1 -1
- package/{chunk-HY3WGTQF.js → chunk-BF6PW4QM.js} +1 -1
- package/{chunk-2BTS7BEP.js → chunk-BMM5YFHU.js} +1 -1
- package/chunk-BP4OMNR2.js +8 -0
- package/{chunk-66YEZ4LP.js → chunk-CFUVIXAX.js} +1 -1
- package/{chunk-YUS2B7BT.js → chunk-CNMK2GSA.js} +1 -1
- package/{chunk-7NY7TIU4.js → chunk-DIG4FYVW.js} +1 -1
- package/chunk-ETNPJTRI.js +1 -0
- package/{chunk-LO2GGXGQ.js → chunk-FOPCQ346.js} +1 -1
- package/{chunk-ULBVUV32.js → chunk-FSJNWH2Y.js} +1 -1
- package/{chunk-RTMNVCIM.js → chunk-FZS2ZX6Y.js} +1 -1
- package/chunk-GEFAWOOV.js +129 -0
- package/{chunk-B4CNCOTT.js → chunk-GTMCB3SL.js} +1 -1
- package/{chunk-F6G7POPA.js → chunk-H6FEO7T3.js} +1 -1
- package/{chunk-JD4TR3G6.js → chunk-HOAF22JI.js} +1 -1
- package/chunk-HU4J3ABZ.js +1 -0
- package/{chunk-S72FLLKS.js → chunk-I33QA736.js} +1 -1
- package/{chunk-MQPKGA4I.js → chunk-IPOA3SOW.js} +1 -1
- package/{chunk-ADC7G7M6.js → chunk-IWAIAUMO.js} +1 -1
- package/chunk-JDRK7YG6.js +1 -0
- package/{chunk-RIBVS2ZL.js → chunk-JIFUQXVH.js} +1 -1
- package/{chunk-6KSTIWOD.js → chunk-KBR5PEJ3.js} +1 -1
- package/{chunk-YSZN7YTG.js → chunk-KNBVJM2U.js} +2 -2
- package/{chunk-OARM3UHP.js → chunk-L3GNPRRN.js} +1 -1
- package/chunk-LNFCBMAA.js +1 -0
- package/{chunk-BVXHSTT4.js → chunk-OMLO5E65.js} +1 -1
- package/{chunk-TG6Y7ANZ.js → chunk-PK7RYZ5A.js} +1 -1
- package/{chunk-3LOZ6OKX.js → chunk-PSSATQO3.js} +1 -1
- package/{chunk-CIPN4BTQ.js → chunk-QC7NAJZG.js} +1 -1
- package/{chunk-7P5XATXL.js → chunk-RAF7SWW4.js} +4 -4
- package/{chunk-F4WXASVJ.js → chunk-RDQ7RWJC.js} +1 -1
- package/{chunk-TJQSE35W.js → chunk-RRL6OTRO.js} +1 -1
- package/{chunk-Q52A3GQ5.js → chunk-SLD2HX2B.js} +1 -1
- package/{chunk-L7WPJUZ6.js → chunk-U5YVZKME.js} +1 -1
- package/{chunk-ZVEQIMYP.js → chunk-URSKOWIQ.js} +1 -1
- package/chunk-V7EXGBKT.js +1 -0
- package/{chunk-C4W7XYJD.js → chunk-VFKJMUGN.js} +1 -1
- package/chunk-VQKIYDID.js +1 -0
- package/{chunk-WBGCOYQJ.js → chunk-W6US3XIE.js} +1 -1
- package/{chunk-33JUCBXH.js → chunk-WPJG57AR.js} +1 -1
- package/{chunk-TSPM6IPU.js → chunk-WSQPSWDS.js} +1 -1
- package/{chunk-BZUZKZY4.js → chunk-X3FAXRYR.js} +1 -1
- package/{chunk-KGZUIHAZ.js → chunk-YIG2I6WR.js} +1 -1
- package/{chunk-UM2HOJJR.js → chunk-YRW7AH7I.js} +1 -1
- package/chunk-ZIQBCB5X.js +7 -0
- package/chunk-ZY4AYAWJ.js +202 -0
- package/index.html +2 -2
- package/{main-OZKRZLSC.js → main-VIRQJVUE.js} +1 -1
- package/package.json +1 -1
- package/{styles-FYY2LVCE.css → styles-T5RGO2FA.css} +1 -1
- package/chunk-BRKRIPYY.js +0 -1
- package/chunk-EEQIJSRK.js +0 -8
- package/chunk-EOU5D6FS.js +0 -1
- package/chunk-FQRRGJBE.js +0 -1
- package/chunk-KDCDSUGW.js +0 -1
- package/chunk-M5M3M3GU.js +0 -202
- package/chunk-MGGC32PD.js +0 -129
- package/chunk-Q4KG7LH6.js +0 -1
- package/chunk-W6V2QFA7.js +0 -7
- package/chunk-X57GOVJJ.js +0 -1
package/chunk-BRKRIPYY.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as j}from"./chunk-F7XGJYCZ.js";import{a as S}from"./chunk-BT7Y4ADP.js";import{b as k}from"./chunk-F7PVAVLQ.js";import{a as E}from"./chunk-5DRALZZF.js";import"./chunk-2BI7WNJP.js";import{q as y,s as w}from"./chunk-ZK43JB4A.js";import"./chunk-F2X3VGZZ.js";import{Eb as p,Oc as P,Pc as M,Rb as _,Sb as s,Ub as u,Vb as v,Wb as e,Xb as n,Yb as O,_ as x,ca as h,gc as C,ia as l,ib as a,s as b,sc as i,tc as m,uc as r,yb as f}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";function A(t,d){if(t&1&&(e(0,"div",3)(1,"div",5)(2,"div",26)(3,"div",27)(4,"div",28)(5,"table",11)(6,"tbody")(7,"tr",13)(8,"td",14),i(9),n()()()()()()()()()),t&2){let o=C();a(9),r(" To: ",o.printData.contactName," ")}}function N(t,d){t&1&&(e(0,"th"),i(1,"Tag"),n())}function R(t,d){if(t&1&&(e(0,"td",14),i(1),n()),t&2){let o=C();a(),m(o.printData.journalTag)}}function B(t,d){if(t&1&&(O(0,"br"),e(1,"small",30),i(2),n()),t&2){let o=C().$implicit;a(2),r(" ",o.charttOfAccountNote," ")}}function J(t,d){if(t&1&&(e(0,"tr")(1,"td",14),i(2),n(),e(3,"td",14),i(4),p(5,B,3,1),n(),e(6,"td",29),i(7),P(8,"number"),n(),e(9,"td",29),i(10),P(11,"number"),n()()),t&2){let o=d.$implicit;a(2),m(o.chartOfAccountCode),a(2),r(" ",o.chartOfAccountName," "),a(),_(o.charttOfAccountNote?5:-1),a(2),r(" ",M(8,5,o.debitAmount)," "),a(3),r(" ",M(11,7,o.creditAmount)," ")}}function F(t,d){if(t&1&&(e(0,"div",9)(1,"div",31)(2,"table",32)(3,"tr")(4,"th",12),i(5,"Journal Note"),n(),e(6,"td",33),i(7),n()()()()()),t&2){let o=C();a(7),r(" ",o.printData.journalNote," ")}}var I=(()=>{class t{constructor(){this.route=l(k)}ngOnInit(){this.route.data.subscribe(({print:o})=>{o&&(this.printData=o)})}static{this.\u0275fac=function(g){return new(g||t)}}static{this.\u0275cmp=f({type:t,selectors:[["app-journal-entry-print"]],decls:62,vars:12,consts:[[1,"print_container","print-normal"],[1,"invoice_print_container","printing","d-print-block"],[1,"row","g-0","py-3","d-flex","justify-content-between","align-items-stretch","header","overflow-hidden"],[1,"col","p-0","m-0","header_left","d-flex","flex-column"],[1,"col","p-0","m-0","header_right","ms-auto","d-flex","flex-column"],[1,"row","me-0","invoice_number","h-100"],[1,"w-100","d-flex","justify-content-end"],[1,"h3","fw-bolder"],[1,"h3"],[1,"row"],[1,"col-12","d-flex","justify-content-end"],[1,"table","table-bordered","w-auto","float-none","mb-0"],[1,"bg-light-gray"],[1,"border"],[1,"text-black"],[1,"row","d-print-block","g-0"],[1,"col-md-12","cartItems"],[1,"w-100","table","table-sm","table-bordered","plain",2,"table-layout","fixed"],[2,"width","50px"],[2,"width","150px"],[2,"background","#fdf3c6"],[1,"text-end"],[1,"border-0"],["colspan","2",1,"border-0"],[1,"d-flex","justify-content-end","gap-2","fw-bold","mb-2","fw-bolder","text-black"],[1,"border-0","fw-bolder","text-black","text-end",2,"vertical-align","baseline"],[1,"w-100","d-flex","justify-content-start","h-100"],[1,"row","flex-grow-1","h-100"],[1,"col-12","d-flex","justify-content-start","mt-auto"],[1,"number","text-black"],[1,"text-muted","text-black"],[1,"col-auto"],[1,"table","table-sm","table-bordered","table-secondary","info","w-auto",2,"table-layout","auto"],[1,"w-auto",2,"white-space","nowrap","width","auto"]],template:function(g,c){g&1&&(e(0,"div",0)(1,"div",1)(2,"div",2),p(3,A,10,1,"div",3),e(4,"div",4)(5,"div",5),O(6,"div",6),e(7,"div",6)(8,"strong",7),i(9," Journal\xA0 "),n(),e(10,"span",8),i(11),n()(),e(12,"div",6)(13,"div",9)(14,"div",10)(15,"table",11)(16,"thead",12)(17,"tr")(18,"th"),i(19,"Date"),n(),p(20,N,2,0,"th"),n()(),e(21,"tbody")(22,"tr",13)(23,"td",14),i(24),n(),p(25,R,2,1,"td",14),n()()()()()()()()(),e(26,"div",15)(27,"div",16)(28,"table",17)(29,"colgroup"),O(30,"col",18)(31,"col",19)(32,"col",18)(33,"col",18),n(),e(34,"thead",20)(35,"tr")(36,"th"),i(37,"Code"),n(),e(38,"th"),i(39,"Account"),n(),e(40,"th",21),i(41,"Debit"),n(),e(42,"th",21),i(43,"Credit"),n()()(),e(44,"tbody"),u(45,J,12,9,"tr",null,s),n(),e(47,"tfoot")(48,"tr",22)(49,"td",23)(50,"div",24)(51,"span"),i(52,"Total"),n(),e(53,"span"),i(54,":"),n()()(),e(55,"td",25),i(56),P(57,"number"),n(),e(58,"td",25),i(59),P(60,"number"),n()()()()()(),p(61,F,8,1,"div",9),n()()),g&2&&(a(3),_(c.printData.contactName&&c.printData.contactName.trim()!==""?3:-1),a(8),r("#",c.printData.number,""),a(9),_(c.printData.journalTag&&c.printData.journalTag.trim()!==""?20:-1),a(4),m(c.printData.date),a(),_(c.printData.journalTag&&c.printData.journalTag.trim()!==""?25:-1),a(20),v(c.printData.listJournalItems),a(11),r(" ",M(57,8,c.printData.debitTotal)," "),a(3),r(" ",M(60,10,c.printData.creditTotal)," "),a(2),_(c.printData.journalNote&&c.printData.journalNote.trim()!==""?61:-1))},dependencies:[w,y],styles:['div.print_container[_ngcontent-%COMP%]{margin:0 auto!important;text-align:left;color:#000;position:relative}div.mode[_ngcontent-%COMP%]{color:gray;text-align:right;height:20px;padding-top:2px;font-size:10px}div.mode[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{float:left;display:block;margin:0 5px 0 0;padding:0}div.mode[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{float:left;display:block;margin:0;padding:0}div.mode[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{float:left;display:block;margin:0 5px 0 0;padding:0 5px 0 0;border-right:solid 1px gray}div.mode[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:last-child{border-right:none}div.header[_ngcontent-%COMP%]{width:100%;overflow:auto}div.header[_ngcontent-%COMP%] div.contact[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:12px;margin:0 5px 0 0;padding:0;font-weight:700}div.copy[_ngcontent-%COMP%]{background-image:url(/Images/Print/copy_bg.png);background-repeat:no-repeat;background-position:50% 70px}div.note[_ngcontent-%COMP%]{position:relative}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%]{float:left;margin-left:5px;width:440px;text-align:left}.special-TinyMCE[_ngcontent-%COMP%]{padding-top:10px!important}@media print{body[_ngcontent-%COMP%]{font-family:Arial;color:#000}}@-moz-document url-prefix(){}div.signature[_ngcontent-%COMP%], div.signature-b[_ngcontent-%COMP%]{clear:both;height:111px;margin-top:25px}div.signature[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{margin:0 0 80px;padding:0;font-size:12px;font-weight:700}div.signature[_ngcontent-%COMP%] div.name[_ngcontent-%COMP%]{border-top:solid 1px Gray;height:15px;text-align:center}div.signature[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%]{float:left;margin-left:70px;width:150px}div.signature[_ngcontent-%COMP%] div.center[_ngcontent-%COMP%]{float:left;margin-left:155px;width:150px}div.signature[_ngcontent-%COMP%] div.noLeftMargin[_ngcontent-%COMP%]{margin-left:0!important}div.signature[_ngcontent-%COMP%] div.leftSmall[_ngcontent-%COMP%]{margin-left:120px!important}div.signature[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], div.signature[_ngcontent-%COMP%] div.center[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{text-align:center}div.signature[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%]{float:right;width:150px;margin-right:5px}div.print_container[_ngcontent-%COMP%] div.footerNote[_ngcontent-%COMP%]{padding-left:5px;width:150px}div.signature[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{text-align:center}div.fullSignatureNote[_ngcontent-%COMP%]{position:absolute;bottom:0;width:100%}table[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%]{display:table-row-group}body[_ngcontent-%COMP%]{padding:0;font-size:12px}a.linkMini[_ngcontent-%COMP%]{left:130px;position:absolute;top:.5px;text-decoration:none;color:#3b5998}div.print_container[_ngcontent-%COMP%]{margin:0 auto;width:900px;text-align:left;color:#000;position:relative}div.print_container[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], div.print_container[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font-family:Arial!important;background-color:#fff}div.mode[_ngcontent-%COMP%]{color:gray;font-size:11px;text-align:right;height:20px;padding-top:2px}div.mode[_ngcontent-%COMP%] span[_ngcontent-%COMP%], div.mode[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], div.mode[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{float:left;display:block;margin:0;padding:0}div.mode[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:first-child{padding-right:5px;margin-right:5px;border-right:solid 1px gray}div.mode[_ngcontent-%COMP%] div.printer[_ngcontent-%COMP%]{float:left}div.mode[_ngcontent-%COMP%] div.template[_ngcontent-%COMP%]{float:right}div.mode[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#3b5998;text-decoration:none}div.mode[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}div.mode[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]{color:gray}div.mode[_ngcontent-%COMP%] a.active[_ngcontent-%COMP%]:hover{text-decoration:none}div.mode[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin:0 5px}div.header_left[_ngcontent-%COMP%]{float:left;padding:5px 0 0 5px}div.header_left[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:5px 0 0;padding:0;font-size:18px}div.header_right[_ngcontent-%COMP%]{float:right;padding:0 5px 0 0;max-width:425px}div.header_right[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;padding:0;text-align:right}div.header_right[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:16px;font-weight:700;margin:0 5px 0 0;text-transform:uppercase}div.header_right[_ngcontent-%COMP%] h1[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:18px;font-weight:400}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{float:right;border-collapse:collapse}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:solid 1px #9e9e9e;padding:4px}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background:#f6f6f6}div.header_right[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding-bottom:6px}div.header[_ngcontent-%COMP%] img.float[_ngcontent-%COMP%]{margin:5px 0 0 5px;float:left}div.header[_ngcontent-%COMP%] div.company[_ngcontent-%COMP%]{width:100%;overflow:auto;margin:0 0 8px}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%]{float:left}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:18px;font-weight:700;margin:0;padding:0}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:11px;text-align:left;font-weight:400}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] div.contact_info[_ngcontent-%COMP%]{margin-top:3px}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] div.contact_info[_ngcontent-%COMP%] div.address[_ngcontent-%COMP%]{float:left;min-width:125px}div.header[_ngcontent-%COMP%] div.companyBody[_ngcontent-%COMP%] div.contact_info[_ngcontent-%COMP%] div.number[_ngcontent-%COMP%]{margin-right:5px;min-width:160px}div.header[_ngcontent-%COMP%] div.contact[_ngcontent-%COMP%]{width:max-content;overflow:auto;border:solid 1px #9e9e9e;padding:5px}div.header[_ngcontent-%COMP%] div.contact[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:12px;margin:0 5px 0 0;padding:0;font-weight:700;float:left}div.cartItems[_ngcontent-%COMP%]{padding:10px 3px 2px 5px}div.copy[_ngcontent-%COMP%]{background-image:url(/Images/Print/copy_bg.png);background-repeat:no-repeat;background-position:50% 70px}div.topNote[_ngcontent-%COMP%]{clear:both;text-align:right}div.invoiceNote[_ngcontent-%COMP%]{padding:10px 0 0 7px}div.note[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-weight:700;font-size:12px;margin:0 0 3px;padding:0}div.note[_ngcontent-%COMP%] div.single[_ngcontent-%COMP%]{width:895px!important}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%]{float:left;margin-left:5px;width:440px}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] ol[_ngcontent-%COMP%]{margin:5px 0 0;padding:0 0 0 20px}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] ol[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0 0 2px}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:2px 0 5px;padding:0 0 0 20px}div.note[_ngcontent-%COMP%] div.left[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0 0 2px}div.note[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%]{float:right;width:440px;border-left:solid 1px #cacaca;padding-left:8px;margin-right:5px}div.note[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none}div.note[_ngcontent-%COMP%] div.right[_ngcontent-%COMP%] h3.closing[_ngcontent-%COMP%]{margin-top:10px;text-align:right}div.note-info[_ngcontent-%COMP%]{margin:auto;width:23%}table.info[_ngcontent-%COMP%]{border-collapse:collapse;margin-top:5px;margin-left:5px}table.info[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.info[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 7px;border:solid 1px #d8d8d8}table.info[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#f6f6f6}div.fullContainer[_ngcontent-%COMP%] div.print_container[_ngcontent-%COMP%]{min-height:970px;position:relative}.clearfix[_ngcontent-%COMP%]:before, .clearfix[_ngcontent-%COMP%]:after{content:"";display:table}.clearfix[_ngcontent-%COMP%]:after{clear:both}.clearfix[_ngcontent-%COMP%]{zoom:1}div.reportMargin[_ngcontent-%COMP%]{margin:20px 0 0}@media print{div.mode[_ngcontent-%COMP%], .linkMini[_ngcontent-%COMP%]{display:none;visibility:hidden;height:0px}thead[_ngcontent-%COMP%]{display:table-header-group}}small.timestamp[_ngcontent-%COMP%], small.creator[_ngcontent-%COMP%], small.printed[_ngcontent-%COMP%]{font-size:12px;text-align:center;display:block;font-style:italic;padding:2px 0}small.creator[_ngcontent-%COMP%]{padding:2px 0 20px;font-style:normal}span.titleJB[_ngcontent-%COMP%]{font-weight:700;padding:10px 0 7px 8px;display:block}.topHolder[_ngcontent-%COMP%]{margin-top:15px!important}h1.jobOrderHeader[_ngcontent-%COMP%]{text-align:center}.shippingAddress[_ngcontent-%COMP%]{text-align:right;min-width:240px;clear:both}.shippingAddress[_ngcontent-%COMP%] div.box[_ngcontent-%COMP%] div[_ngcontent-%COMP%]:first-child{text-align:left;font-weight:700}.packingSlip[_ngcontent-%COMP%]{min-width:150px}.customer_info[_ngcontent-%COMP%]{min-width:310px}table.plain[_ngcontent-%COMP%]{border-collapse:collapse}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-shadow:0 -1px 0 rgba(0,0,0,.4);height:28px;line-height:16px;padding:2px 7px;color:#fff;font-weight:700}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fceca3!important;background-image:none!important}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{color:#000;text-shadow:none}table.plain[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 7px}table.plain[_ngcontent-%COMP%] tr.thick[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.thick[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-bottom:3px solid black}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f6f6f6}table.plain[_ngcontent-%COMP%] a.thumb[_ngcontent-%COMP%]{margin:0 5px 0 0;padding:0;float:left;display:block}table.plain[_ngcontent-%COMP%] a.thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:40px;height:40px;background-color:#fff;display:block;background-color:#d8dfea;border:1px solid #bbb;-webkit-border-radius:3px;border-radius:3px}table.plain[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#2b4e75;font-style:italic;margin:0;padding:0}table.plain[_ngcontent-%COMP%] div.text[_ngcontent-%COMP%]{padding:2px 0 0}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{display:block;color:#00f;text-decoration:none}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(-n+3) a[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(-n+3) a[_ngcontent-%COMP%]:visited{font-weight:700}table.plain[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}table.plain[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{margin:0;padding:0;display:block}table.plain[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input.txtPrice[_ngcontent-%COMP%]{border:solid 1px #c8d3df;padding:3px;text-align:right}table.plain[_ngcontent-%COMP%] tr.group[_ngcontent-%COMP%]{background-color:#fdf3c6!important}table.plain[_ngcontent-%COMP%] tr.group[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#000!important}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff}table.plain[_ngcontent-%COMP%] th.borderLRB0[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.borderLRB0[_ngcontent-%COMP%]{border-left-width:0px!important;border-right-width:0px!important;border-bottom-width:0px!important;background-color:#fff!important}table.plain[_ngcontent-%COMP%] th.number[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.number[_ngcontent-%COMP%]{text-align:right}table.plain[_ngcontent-%COMP%] th.numberCenter[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.numberCenter[_ngcontent-%COMP%]{text-align:center}table.plain[_ngcontent-%COMP%] th.red[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] td.red[_ngcontent-%COMP%]{color:red;text-align:right}table.plain[_ngcontent-%COMP%] td.top[_ngcontent-%COMP%]{vertical-align:top}table.plain[_ngcontent-%COMP%] td.noTopPad[_ngcontent-%COMP%]{padding-top:0}table.plain[_ngcontent-%COMP%] td.small[_ngcontent-%COMP%]{font-size:11px}table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-width:0px;background-color:#fff}table.plain[_ngcontent-%COMP%] span.serial[_ngcontent-%COMP%]{display:inline-block;margin-left:10px}table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.plain[_ngcontent-%COMP%] tr.grid_footer[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:5px 0 5px 5px;background-color:#fff}table.plain[_ngcontent-%COMP%] td[_ngcontent-%COMP%] .inlineMarginLeft[_ngcontent-%COMP%]{display:inline-block;margin-left:10px}table.rightAuto[_ngcontent-%COMP%]{margin:0 0 0 auto}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%]{margin:0;padding:0;list-style-type:circle;list-style-position:inside}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin:0 20px 0 0;padding:0;float:left;display:block}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none}table[_ngcontent-%COMP%] ul.float[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}div.scroll[_ngcontent-%COMP%]{width:100%;overflow:auto;padding:0 0 2px}table.fixed[_ngcontent-%COMP%]{table-layout:fixed}table.footer_row[_ngcontent-%COMP%]{margin:5px 8px 0 auto}table.footer_row[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%], table.footer_row[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:5px 0 5px 5px;text-align:right}table.footer_row[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:5px;text-align:right;float:left}table.footer_adjust[_ngcontent-%COMP%]{margin:-10px 18px 0 auto}table.footer_adjust[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%], table.footer_adjust[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:last-child{padding:5px 0 5px 5px;text-align:right}table.footer_adjust[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:5px 23px 5px 5px;text-align:right;float:left}table.total-all-grid[_ngcontent-%COMP%]{width:100%!important;border-collapse:collapse;margin-top:10px}table.manufacture[_ngcontent-%COMP%]{width:100%;border-collapse:collapse}table.manufacture[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#fceca3!important}table.manufacture[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid #bbbbbb!important}table.accounting[_ngcontent-%COMP%]{max-width:1000px;border-collapse:collapse}table.accounting[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border-top:1px solid #999;border-bottom:1px solid #999;height:28px;line-height:16px;color:#444;background-color:#fceca3!important}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f6f6f6}table.accounting[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:7px;border-bottom:1px solid black}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:visited{color:#00f;text-decoration:none}table.accounting[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] td[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}table.accounting[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] input.txtPrice[_ngcontent-%COMP%]{border:solid 1px #c8d3df;padding:3px;text-align:right}table.accounting[_ngcontent-%COMP%] th.number[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.number[_ngcontent-%COMP%]{text-align:right}table.accounting[_ngcontent-%COMP%] th.red[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.red[_ngcontent-%COMP%]{color:red;text-align:right}table.accounting[_ngcontent-%COMP%] th.bordertop[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] td.bordertop[_ngcontent-%COMP%]{border-top:1px #999 solid}table.accounting[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] td[_ngcontent-%COMP%], table.accounting[_ngcontent-%COMP%] tfoot[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding-bottom:20px}table.main[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.main[_ngcontent-%COMP%]:nth-child(2n){background-color:#fff}table.main[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr.main[_ngcontent-%COMP%]:nth-child(4n-1){background-color:#f6f6f6}table.main[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{background-color:#fceca3!important;background-image:none!important}table.main[_ngcontent-%COMP%] table[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{border:1px solid #9e9e9e;color:#000;text-shadow:none}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%]{width:100%;padding:0;margin:0}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{width:calc(33% - 17px);float:left;list-style:none;padding:5px 7px;border:solid 1px #d8d8d8}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{width:calc(33% - 17px);float:left;list-style:none;padding:5px 7px;border:solid 1px #d8d8d8;display:table-cell}.cartItems[_ngcontent-%COMP%] .flow[_ngcontent-%COMP%] td[_ngcontent-%COMP%] > p[_ngcontent-%COMP%]{color:#2b4e75;font-style:italic;margin:0;padding:0}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(3){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(5){width:10%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(6){width:5%!important}.listReturn[_ngcontent-%COMP%] tr.item[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(7){width:10%!important}.listReturn[_ngcontent-%COMP%] a.head[_ngcontent-%COMP%]{padding:10px 0 10px 10px;display:block;width:50%}.listReturn[_ngcontent-%COMP%] td.numberCenter[_ngcontent-%COMP%]{text-align:right!important}.listReturn[_ngcontent-%COMP%] table.summary[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%]{padding-top:20px!important;display:block}table.paidAmount[_ngcontent-%COMP%]{float:right;margin-top:-10px;text-align:right;padding-right:7px}table.paidAmount[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{padding:0 0 1px}table.paidAmount[_ngcontent-%COMP%] td.currency[_ngcontent-%COMP%]{width:20px;text-align:left}table.paidAmount[_ngcontent-%COMP%] tr[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:nth-child(2){padding:0 5px}div.zebra[_ngcontent-%COMP%]{display:table;border-collapse:collapse}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:table-cell}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > strong[_ngcontent-%COMP%]{display:block;border:1px solid #525252;background-color:#545454;background-image:-webkit-gradient(linear,50% 0,50% 100%,color-stop(0%,#888),color-stop(100%,#545454));background-image:-webkit-linear-gradient(#888,#545454);background-image:-moz-linear-gradient(#888,#545454);background-image:-o-linear-gradient(#888,#545454);background-image:linear-gradient(#888,#545454);-webkit-box-shadow:inset 0 2px 0 -1px rgba(255,255,255,.2);-moz-box-shadow:inset 0 2px 0 -1px rgba(255,255,255,.2);box-shadow:inset 0 2px 0 -1px #fff3;text-shadow:0 -1px 0 rgba(0,0,0,.4);height:28px;line-height:24px;border-bottom:1px solid #333;padding:2px 7px;color:#fff;font-weight:700}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:block;padding:5px 7px;border:solid 1px #d8d8d8;font-weight:700}div.zebra[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] > span.number[_ngcontent-%COMP%]{text-align:right}.full-mode[_ngcontent-%COMP%]{min-height:970px;position:relative}.receipt-copy[_ngcontent-%COMP%]{position:absolute;width:100%;margin-left:auto;margin-right:auto;left:0;right:0}.receipt-copy-text[_ngcontent-%COMP%]{border:.5px solid;border-radius:4px}table.plain[_ngcontent-%COMP%] thead[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{vertical-align:middle}']})}}return t})();var D=(()=>{class t{constructor(){this._httpService=l(E)}getPrintData(o,g){let c={ID:o};return this._httpService.get("",g,{params:c})}static{this.\u0275fac=function(g){return new(g||t)}}static{this.\u0275prov=h({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var z=t=>{let d=l(j),o=l(D),g=t.queryParamMap.get("ID");return d.show(),o.getPrintData(g,"/api/journal/print").pipe(S("print-data"),b(c=>c),x(()=>d.hide()))};var L=[{path:"",children:[{path:"journal",component:I,resolve:{print:z}}]}],ct=L;export{ct as default};
|
package/chunk-EEQIJSRK.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import{a as qe,b as We,c as He,d as Ke,e as Qe,f as Xe}from"./chunk-RM5HLXNW.js";import{a as Je,b as je,c as $e,d as Le}from"./chunk-3UAQHNUY.js";import{a as ze,b as Ue}from"./chunk-E6SW7I4D.js";import{a as Re}from"./chunk-KZHI6PGZ.js";import{a as h}from"./chunk-NMU2YBAB.js";import{b as Be}from"./chunk-33JUCBXH.js";import{a as Ve,b as Oe}from"./chunk-B4C3ZPN6.js";import"./chunk-MHRSQRHT.js";import{a as Ge,b as Pe,k as ke}from"./chunk-DGACZ747.js";import{a as Ae,b as Ie}from"./chunk-EBEY2MBR.js";import"./chunk-AMGBUOC4.js";import"./chunk-UPSNJEHO.js";import{a as Te}from"./chunk-BT7Y4ADP.js";import{a as Q,b as X}from"./chunk-DJXQKSLT.js";import"./chunk-VKNINE5Q.js";import{a as Me,b as we}from"./chunk-E7QWESN4.js";import{a as Ne,b as De}from"./chunk-AN4SAUSA.js";import"./chunk-URH77XNK.js";import"./chunk-PPXXWO4E.js";import"./chunk-3DBSHDAQ.js";import"./chunk-M4SSELXT.js";import{b as Y}from"./chunk-WXIG4CXY.js";import"./chunk-QPPFPDWZ.js";import"./chunk-WMZF4DQK.js";import{i as E}from"./chunk-7P5XATXL.js";import"./chunk-S27Z7D3D.js";import{a as R,b as J}from"./chunk-AD247LWQ.js";import"./chunk-BKTBVFNX.js";import"./chunk-ZFNIPERQ.js";import{n as K,o as F,w as V,x as O}from"./chunk-ME4ALIS7.js";import"./chunk-DTYVTTET.js";import{Ha as B,b as w,c as ae,e as y,f as N,j as Fe,l as D,m as W,n as Ee,o as G,u as P,w as H,x as k}from"./chunk-VMI3QWC6.js";import{b as xe,e as Ce,l as Se}from"./chunk-F7PVAVLQ.js";import"./chunk-C4W7XYJD.js";import"./chunk-5DRALZZF.js";import{a as ye}from"./chunk-2BI7WNJP.js";import{h as be,j as ve,k as he,q as _e,s as S}from"./chunk-ZK43JB4A.js";import"./chunk-F2X3VGZZ.js";import{Dc as q,Eb as g,Ec as z,Fc as ie,Ha as j,L as se,Mb as p,Oc as oe,Pb as $,Pc as re,Sb as I,Sc as f,Ub as T,Vb as M,Wb as i,Xb as n,Yb as c,Z as ue,_ as A,ac as _,fc as x,g as pe,gc as u,ia as d,ib as l,ob as ne,qa as b,ra as v,s as ce,sc as r,tc as U,uc as L,xc as de,yb as C,yc as fe,zc as ge}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";var mt=()=>({height:"calc(100vh - 100px)"});function pt(t,m){if(t&1){let e=_();i(0,"div",4)(1,"a",5),r(2,"Cancel"),n(),i(3,"p-button",6),x("click",function(){b(e);let a=u();return v(a.updateAccountingIntegration())}),n()()}}function ct(t,m){if(t&1&&(i(0,"p-tab",8),r(1),n()),t&2){let e=m.$implicit,o=m.$index;p("value",o),l(),U(e)}}function st(t,m){if(t&1&&(i(0,"div",25),c(1,"p-radiobutton",41),i(2,"label",42),r(3),n()()),t&2){let e=m.$implicit;l(),p("value",e.key)("inputId",e.value),l(),p("for",e.value),l(),U(e.value)}}function ut(t,m){if(t&1&&(i(0,"div",40)(1,"div",25),c(2,"p-radiobutton",43),i(3,"label",42),r(4),n()()()),t&2){let e=m.$implicit;l(2),p("value",e.key)("inputId",e.key.toString()),l(),p("for",e.key),l(),U(e.value)}}function dt(t,m){if(t&1&&(i(0,"p-scrollpanel",null,2)(2,"p-tabs",7)(3,"p-tablist"),T(4,ct,2,2,"p-tab",8,I),n(),i(6,"p-tabpanels")(7,"p-tabpanel",9)(8,"div",10)(9,"h3",11),r(10,"Accounting Numbering"),n(),i(11,"div",12)(12,"div",13)(13,"div",14)(14,"div",13)(15,"div",15)(16,"label",16),r(17,"Digit"),n(),c(18,"p-inputnumber",17),n()(),i(19,"div",13)(20,"div",15)(21,"label",18),r(22,"Seed"),n(),c(23,"p-inputnumber",19),n()(),i(24,"div",13)(25,"div",15)(26,"label",20),r(27,"Last Number"),n(),c(28,"p-inputnumber",21),n()(),i(29,"div",13)(30,"div",15)(31,"label",22),r(32,"Format"),n(),c(33,"p-select",23),n()(),i(34,"div",13)(35,"div",15)(36,"label",22),r(37,"Reset Every"),n(),i(38,"div",24),T(39,st,4,4,"div",25,I),n()()()()()()()(),i(41,"p-tabpanel",8)(42,"div",26)(43,"div",27)(44,"h3",11),r(45,"Journal Generate"),n(),i(46,"p"),r(47,"Configure generate transaction"),n()(),i(48,"div",12)(49,"div",28)(50,"div",12)(51,"div",29)(52,"div",15)(53,"label",22),r(54,"Outlet Delivery Journal"),n(),c(55,"p-toggleswitch",30),n()(),i(56,"div",31)(57,"div",15)(58,"label",22),r(59,"Payment Discount Journal On Payment"),n(),c(60,"p-toggleswitch",32),n()()()()()(),c(61,"hr"),i(62,"div",26)(63,"div",28)(64,"div",12)(65,"div",33)(66,"label",22),r(67,"Note"),n()(),i(68,"div",29)(69,"div",15)(70,"label",22),r(71,"Note Required On Journal"),n(),c(72,"p-toggleswitch",34),n()(),i(73,"div",29)(74,"div",15)(75,"label",22),r(76,"Trial Balance Footer Visible"),n(),c(77,"p-toggleswitch",35),n()(),c(78,"div",29),n()()()(),i(79,"p-tabpanel",36)(80,"div",10)(81,"h3",11),r(82,"Report"),n(),i(83,"div",12)(84,"div",27)(85,"div",37)(86,"div")(87,"label",38),r(88,"Accounting For Treatment"),n(),i(89,"div",12)(90,"div",39)(91,"div",12),T(92,ut,5,4,"div",40,I),n()()()()()()()()()()()()),t&2){let e,o,a,s=u();$(z(8,mt)),l(2),p("value",0)("formGroup",s.form),l(2),M(s.tabs()),l(3),p("value",0),l(26),p("options",(e=s.accountingIntegration())==null||e.options==null?null:e.options.monthlyResetPeriodFormat),l(6),M((o=s.accountingIntegration())==null||o.options==null?null:o.options.resetPeriods),l(2),p("value",1),l(38),p("value",2),l(13),M((a=s.accountingIntegration())==null||a.options==null?null:a.options.generatePrepaidJournal)}}var Ze=(()=>{class t{constructor(){this.accountingSetupService=d(h),this.fb=d(P).nonNullable,this.tabs=j(["Numbering","Journal","Report"]),this.accountingIntegration=j(null)}ngOnInit(){this.initializeForm(),this.loadAccountingConfiguration()}initializeForm(){this.form=this.fb.group({number:this.createNumberGroup(),report:this.createReportGroup(),journalGenerate:this.createJournalGenerateGroup()})}createNumberGroup(){return this.fb.group({seed:this.fb.control(""),digit:this.fb.control(""),resetEvery:this.fb.control(""),monthlyFormat:this.fb.control(""),lastNumber:this.fb.control(""),lastModified:this.fb.control("")})}createReportGroup(){return this.fb.group({accountingAuditType:this.fb.control(""),accountingEntityAccess:this.fb.control(""),generatePrepaidJournal:this.fb.control("")})}createJournalGenerateGroup(){return this.fb.group({eodExpenseJournal:this.fb.control(""),transferOrder:this.fb.control(""),paymentDiscount:this.fb.control(""),noteMandatory:this.fb.control(""),trialBalanceFooterVisible:this.fb.control("")})}loadAccountingConfiguration(){this.accountingSetupService.fetchLoaderConfiguration().pipe(A(e=>{this.accountingIntegration.set(e),this.form.patchValue(e.form)})).subscribe()}updateAccountingIntegration(){let e={form:this.form.getRawValue()};this.accountingSetupService.updateAccountingIntegrationConfiguration(e).pipe().subscribe()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=C({type:t,selectors:[["app-accounting-integration"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["scrollPanelContainer",""],["pageTitle","Accounting Integration"],[1,"d-flex","gap-2"],["routerLink","..",1,"p-button","p-button-secondary","p-button-outlined"],["label","Submit",3,"click"],[1,"border-top",3,"value","formGroup"],[3,"value"],["formGroupName","number",3,"value"],[1,""],[1,"fs-5"],[1,"row"],[1,"col-6"],[1,"row","row-gap-3"],[1,"d-flex","flex-column"],["for","digit",1,"fs-4"],["inputId","digit","formControlName","digit"],["for","seed",1,"fs-4"],["inputId","seed","formControlName","seed"],["for","lastNumber",1,"fs-4"],["inputId","lastNumber","formControlName","lastNumber"],["for","",1,"fs-4"],["appendTo","body","formControlName","monthlyFormat","optionValue","key","optionLabel","value",3,"options"],[1,"d-flex","gap-4"],[1,"d-flex","align-items-center","gap-2"],["formGroupName","journalGenerate",1,"row"],[1,"col-12"],[1,"col-10"],[1,"col-md-4","mb-3"],["formControlName","transferOrder"],[1,"col-md-6","mb-4"],["formControlName","paymentDiscount"],[1,"col-12","mb-2"],["formControlName","noteMandatory"],["formControlName","trialBalanceFooterVisible"],["formGroupName","report",3,"value"],[1,"d-flex","flex-column","gap-4"],["for","generatePrepaidJournal",1,"fs-4","mb-2"],[1,"col-8"],[1,"col-4"],["name","resetEvery","formControlName","resetEvery",3,"value","inputId"],[1,"m-0",3,"for"],["name","generatePrepaidJournal","formControlName","generatePrepaidJournal",3,"value","inputId"]],template:function(o,a){o&1&&(i(0,"app-main-panel",3),g(1,pt,4,0,"ng-template",null,0,f)(3,dt,94,9,"ng-template",null,1,f),n())},dependencies:[S,Xe,Qe,Ke,He,qe,We,E,Y,Pe,Ge,k,y,N,D,G,W,F,De,Ne,Oe,Ve,Se,Ce,O,V,we,Me,X,Q],styles:["[_nghost-%COMP%]{display:block}.inactive-state[_ngcontent-%COMP%]{background-color:#e5e5e5}.active-state[_ngcontent-%COMP%]{background-color:var(--p-primary-color)}"],changeDetection:0})}}return t})();var gt=()=>({height:"cacl(100vh - 200px)"}),bt=()=>({height:"calc(100vh - 250px)"});function vt(t,m){if(t&1){let e=_();i(0,"div")(1,"p-button",5),x("onClick",function(){b(e);let a=u();return v(a.submitForm())}),n()()}}function ht(t,m){t&1&&(i(0,"div",17)(1,"h3",18),r(2,"Date"),n(),c(3,"p-datePicker",19),n())}function _t(t,m){if(t&1&&(i(0,"tr",9)(1,"td",27),r(2),n(),i(3,"td"),c(4,"input",28),n(),i(5,"td"),c(6,"input",29),n()()),t&2){let e,o=m.$implicit,a=m.index,s=u(4);p("formGroupName",a),l(2),L(" ",(e=s.asFormGroup(o).get("accountName"))==null?null:e.value," ")}}function xt(t,m){if(t&1&&(i(0,"div",9)(1,"h4",20),r(2),n(),i(3,"div",21)(4,"table",22)(5,"thead",23)(6,"tr")(7,"th",24),r(8,"Account Name"),n(),i(9,"th",25),r(10,"Debit"),n(),i(11,"th",25),r(12,"Credit"),n()()(),i(13,"tbody"),g(14,_t,7,2,"tr",26),n()()()()),t&2){let e=m.$implicit,o=m.$index,a=u(3);p("formGroupName",o),l(2),L(" ",e.get("name").value," "),l(12),p("ngForOf",a.getItemsArray(a.asFormGroup(e)).controls)}}function Ct(t,m){if(t&1&&(i(0,"p-panel",7),g(1,ht,4,0,"ng-template",null,2,f),c(3,"p-divider"),i(4,"p-scroll-panel")(5,"div",8),T(6,xt,15,3,"div",9,I),n()(),i(8,"div",10)(9,"table",11)(10,"tr")(11,"td",12)(12,"p",13),r(13," Total: "),n()(),i(14,"td",14)(15,"p",15),r(16),oe(17,"number"),n()(),i(18,"td",16)(19,"p",15),r(20),oe(21,"number"),n()()()()()()),t&2){let e=u(2);$(z(11,gt)),p("formGroup",e.formGroups),l(4),$(z(12,bt)),l(2),M(e.formsArray.controls),l(10),L(" ",re(17,7,e.subtotalDebit)," "),l(4),L(" ",re(21,9,e.subtotalCredit)," ")}}function St(t,m){if(t&1&&g(0,Ct,22,13,"p-panel",6),t&2){let e=u();p("ngIf",e.formGroups)}}var tt=(()=>{class t{constructor(){this.destroy$=new pe,this.subtotalDebit=0,this.subtotalCredit=0,this.fb=d(P),this.accSetupService=d(h),this.dayjsService=d(Be),this.date=new Date,this.routes=d(xe)}ngOnInit(){this.initializeForm(),this.loadFormData(),this.calculateSubtotalDebit(),this.formGroups.get("forms").valueChanges.pipe(se(300),ue(this.destroy$)).subscribe(()=>{this.calculateSubtotalDebit()})}initializeForm(){this.formGroups=this.fb.group({forms:this.fb.array([]),date:this.fb.control(new Date)})}get formsArray(){return this.formGroups.get("forms")}getItemsArray(e){return e.get("items")}asFormGroup(e){return e}createFormGroup(e){return this.fb.group({id:[e.id],name:[e.name],items:this.createItemsArray(e.items)})}createItemsArray(e){let o=e.map(a=>this.createItemGroup(a));return this.fb.array(o)}createItemGroup(e){return this.fb.group({accountName:[e.accountName],accountCode:[e.accountCode],id:[e.id],journalID:[e.journalID],accountID:[e.accountID],debitAmount:[e.debitAmount],creditAmount:[e.creditAmount],index:[e.index],note:[e.note]})}loadFormData(){this.routes.data.pipe(ce(e=>e.data),Te("response"),A(e=>{for(;this.formsArray.length>0;)this.formsArray.removeAt(0);e.form.filter(a=>a.items&&a.items.length>0).forEach(a=>{this.formsArray.push(this.createFormGroup(a))})})).subscribe({error:e=>console.error("Error loading form data:",e)})}calculateSubtotalDebit(){let e=this.formGroups.controls.forms;this.subtotalDebit=0,this.subtotalCredit=0,e.controls.forEach(o=>{let a=this.getItemsArray(o),s=a.controls.reduce((Z,ee)=>{let te=ee.get("debitAmount").value||0;return Z+te},0),at=a.controls.reduce((Z,ee)=>{let te=ee.get("creditAmount").value||0;return Z+te},0);this.subtotalDebit+=s,this.subtotalCredit+=at})}submitForm(){let e=Object.entries(this.formGroups.getRawValue()).reduce((o,[a,s])=>(a==="date"?o[a]=s instanceof Date?this.dayjsService.format(s):s:a==="forms"?o.form=s:o[a]=s,o),{});console.log("Submitting form data:",e),this.accSetupService.submitOpeningBalanceFormConfiguration(e).subscribe(),console.log("Submitting form data:",e)}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=C({type:t,selectors:[["app-acc-opening-balance-form"]],features:[q([B])],decls:6,vars:1,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Opening Balance Form",3,"scrollable"],["preventOpenDuplicates",""],["label","Submit",3,"onClick"],[3,"formGroup","style",4,"ngIf"],[3,"formGroup"],["formArrayName","forms",1,"d-flex","flex-column","row-gap-4"],[3,"formGroupName"],[2,"position","fixed","bottom","0","left","241px",`/* offset from the left edge (assuming 250px sidebar) */
|
|
2
|
-
width`,`calc(
|
|
3
|
-
100% - 243px
|
|
4
|
-
)`,`/* adjust width to fit the remaining space */
|
|
5
|
-
z-index`,"91","background-color","white",`/* added background */
|
|
6
|
-
/* box-shadow`,"0 -2px 5px rgba(0, 0, 0, 0.1)",`*/ /* added subtle shadow */
|
|
7
|
-
padding`,"8px 0",`/* added padding for height */
|
|
8
|
-
border-top`,"1px solid #e0e0e0"],[1,"w-100","px-4"],[1,"ps-5"],[1,"fw-semibold","fs-4","m-0","text-end",2,"margin-right","10px !important"],[1,"",2,"width","200px"],[1,"fw-semibold","fs-4","m-0","text-start"],[1,"pe-5",2,"width","200px"],[1,"d-flex","flex-column","gap-2","mx-2"],[1,"fs-5","m-0"],["formControlName","date"],[1,"fs-4"],["formArrayName","items"],[1,"table"],[1,"table-secondary"],[1,"fs-3"],[1,"fs-3",2,"width","200px"],[3,"formGroupName",4,"ngFor","ngForOf"],[1,"fs-3","text-dark"],["appMaskNumber","","formControlName","debitAmount",1,"fs-3","form-control","text-dark"],["appMaskNumber","","formControlName","creditAmount",1,"fs-3","form-control","text-dark"]],template:function(o,a){o&1&&(i(0,"app-main-panel",3),g(1,vt,2,0,"ng-template",null,0,f)(3,St,1,1,"ng-template",null,1,f),n(),c(5,"p-toast",4)),o&2&&p("scrollable",!0)},dependencies:[E,Y,S,ve,he,_e,Ie,Ae,ke,X,Q,H,w,y,N,F,$e,O,V,J,R,Re,k,D,G,W,Ee,Ue,ze],styles:["[_nghost-%COMP%]{display:block} .table thead tr th{border:none}"],changeDetection:0})}}return t})();var nt=t=>({"ng-invalid ng-dirty":t});function Ft(t,m){if(t&1){let e=_();i(0,"p-button",4),x("onClick",function(){b(e);let a=u();return v(a.verifyCredentials())}),r(1,"Verify"),n(),i(2,"p-button",4),x("onClick",function(){b(e);let a=u();return v(a.saveCredentials())}),r(3,"Update"),n()}}function Et(t,m){t&1&&(i(0,"div",12)(1,"h3",13),r(2,"Account"),n(),i(3,"small",14),r(4,"Configure Client ID and Client Secret"),n()())}function At(t,m){if(t&1&&(i(0,"div",5)(1,"p-panel"),g(2,Et,5,0,"ng-template",null,2,f),i(4,"div",6)(5,"div",7)(6,"div",8)(7,"label",9),r(8,"Client ID"),n(),c(9,"input",10),n()(),i(10,"div",7)(11,"div",8)(12,"label",9),r(13,"Client Secret"),n(),c(14,"input",11),n()()()()()),t&2){let e=u();l(4),p("formGroup",e.credentialForm),l(5),p("ngClass",ie(3,nt,e.clientIDControl.invalid&&e.clientIDControl.dirty||e.clientIDControl.touched)),l(5),p("ngClass",ie(5,nt,e.clientSecretControl.invalid&&e.clientSecretControl.dirty||e.clientSecretControl.touched))}}var it=(()=>{class t{constructor(e,o){this.fb=e,this.messageService=o,this.setupService=d(h)}ngOnInit(){this.initForm(),this.setupService.fetchAPICredential().pipe(A(e=>{this.credentialForm.patchValue({clientID:e.clientID||"",clientSecret:e.clientSecret||""})})).subscribe()}initForm(){this.credentialForm=this.fb.group({clientID:["",[ae.required]],clientSecret:["",[ae.required]]})}get clientIDControl(){return this.credentialForm.get("clientID")}get clientSecretControl(){return this.credentialForm.get("clientSecret")}saveCredentials(){if(this.credentialForm.invalid){this.credentialForm.markAllAsTouched();return}let e=this.credentialForm.getRawValue();console.log("Saving credentials:",e),this.setupService.updateAPICredential(e).subscribe()}verifyCredentials(){if(this.credentialForm.invalid){this.credentialForm.markAllAsTouched();return}let e=this.credentialForm.getRawValue();console.log("Verifying credentials:",e),this.setupService.verifyAPICredential(e).subscribe({next:o=>{console.log("Verify result:",o),this.messageService.add({severity:"success",summary:"Verified",detail:"Credentials are valid!"})},error:o=>{console.error("Verify failed:",o),this.messageService.add({severity:"error",summary:"Invalid",detail:"Client ID or Secret is wrong!"})}})}static{this.\u0275fac=function(o){return new(o||t)(ne(P),ne(B))}}static{this.\u0275cmp=C({type:t,selectors:[["app-api-credential"]],features:[q([B])],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","API Credential"],[3,"onClick"],[1,"d-flex","flex-column","row-gap-4"],[1,"row",3,"formGroup"],[1,"col-6"],[1,"d-flex","flex-column"],["for","outlet"],["type","text","pInputText","","formControlName","clientID",3,"ngClass"],["type","text","pInputText","","formControlName","clientSecret",3,"ngClass"],[1,"d-flex","flex-column","px-2"],[1,"mb-0","fw-bold"],[1,"fst-italic","text-muted"]],template:function(o,a){o&1&&(i(0,"app-main-panel",3),g(1,Ft,4,0,"ng-template",null,0,f)(3,At,15,7,"ng-template",null,1,f),n())},dependencies:[S,be,k,w,y,N,D,G,F,K,J,R,E,O,V,Le],encapsulation:2})}}return t})();function It(t,m){if(t&1){let e=_();i(0,"button",4),x("click",function(){b(e);let a=u();return v(a.onFormatJournal())}),r(1," Format "),n()}}function Tt(t,m){t&1&&(i(0,"div",12)(1,"div",13)(2,"h4",14),r(3,"Journal Configuration"),n(),i(4,"small",15),r(5," Enter your account information to format journal entries "),n()()())}function Mt(t,m){if(t&1){let e=_();i(0,"div",5)(1,"p-panel"),g(2,Tt,6,0,"ng-template",null,2,f),i(4,"div",6)(5,"div",7)(6,"p-floatlabel",8)(7,"input",9),ge("ngModelChange",function(a){b(e);let s=u();return fe(s.subdomain,a)||(s.subdomain=a),v(a)}),n(),i(8,"label",10),r(9,"Subdomain"),n()(),i(10,"small",11),r(11,"Enter your account subdomain (e.g., mycompany.dealpos.net)"),n()()()()()}if(t&2){let e=u();l(7),de("ngModel",e.subdomain)}}var ot=(()=>{class t{constructor(){this.setupService=d(h),this.subdomain=j(""),this.toastrService=d(ye)}onFormatJournal(){if(!this.subdomain()){this.toastrService.error("Please enter a subdomain","Error");return}this.setupService.formatJournal(this.subdomain()).subscribe({next:e=>{this.toastrService.success(e.message,"Success")}})}static{this.\u0275fac=function(o){return new(o||t)}}static{this.\u0275cmp=C({type:t,selectors:[["app-format-jurnal"]],decls:5,vars:0,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Format Journal"],[1,"btn","btn-success","rounded",3,"click"],[1,"d-flex","flex-column","row-gap-4"],[1,"row","mt-6"],[1,"col-12"],["variant","on"],["pInputText","","id","subdomain","autocomplete","off",1,"w-100",3,"ngModelChange","ngModel"],["for","subdomain"],[1,"text-muted","fst-italic",2,"font-size","12px"],[1,"row","ps-2"],[1,"col-12","d-flex","flex-column"],[1,"mb-1","fw-bold"],[1,"fst-italic","text-muted"]],template:function(o,a){o&1&&(i(0,"app-main-panel",3),g(1,It,2,0,"ng-template",null,0,f)(3,Mt,12,1,"ng-template",null,1,f),n())},dependencies:[S,H,w,y,Fe,F,K,E,J,R,je,Je],encapsulation:2})}}return t})();var rt=()=>d(h).fetchOpeningBalanceFormConfiguration();var li=[{path:"",redirectTo:"accounting-integration",pathMatch:"full"},{path:"",children:[{path:"timezone",loadComponent:()=>import("./chunk-KDCDSUGW.js").then(t=>t.TimezoneComponent)},{path:"journal-tag",loadComponent:()=>import("./chunk-X57GOVJJ.js").then(t=>t.JournalTagComponent)},{path:"journal-tag/info",loadComponent:()=>import("./chunk-BVXHSTT4.js").then(t=>t.JournalTagInfoComponent)},{path:"journal-tag/form",loadComponent:()=>import("./chunk-UM2HOJJR.js").then(t=>t.JournalTagFormComponent)},{path:"accounting-integration",component:Ze},{path:"opening-balance-form",component:tt,resolve:{data:rt}},{path:"api-crendetial",component:it},{path:"format-journal",component:ot},{path:"closing-entries",loadComponent:()=>import("./chunk-L7WPJUZ6.js").then(t=>t.ClosingPageComponent)},{path:"closing-entries/create",loadComponent:()=>import("./chunk-ADC7G7M6.js").then(t=>t.ClosingFormComponent)}]}];export{li as ACCOUNTING_SETUP_ROUTES};
|
package/chunk-EOU5D6FS.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"./chunk-YQFG5XE2.js";var t=[{path:"",redirectTo:"tax-account",pathMatch:"full"},{path:"tax-account",loadComponent:()=>import("./chunk-RIBVS2ZL.js").then(o=>o.TaxAccountComponent)},{path:"chart-of-account",loadComponent:()=>import("./chunk-KGZUIHAZ.js").then(o=>o.ChartOfAccountComponent)},{path:"manual-journal",loadComponent:()=>import("./chunk-Q52A3GQ5.js").then(o=>o.ManualJournalComponent)},{path:"payment-account",loadComponent:()=>import("./chunk-F6G7POPA.js").then(o=>o.PaymentAccountComponent)},{path:"writeoff-outlet",loadComponent:()=>import("./chunk-MQPKGA4I.js").then(o=>o.WriteOffOutletComponent)},{path:"expense-account",loadComponent:()=>import("./chunk-B4CNCOTT.js").then(o=>o.ExpenseAccountComponent)},{path:"coa-configuration",loadComponent:()=>import("./chunk-4YH7A4M6.js").then(o=>o.CoaConfigurationComponent)},{path:"coa-category",loadComponent:()=>import("./chunk-CIPN4BTQ.js").then(o=>o.CoaCategoryComponent)},{path:"outlet-account",loadComponent:()=>import("./chunk-TJQSE35W.js").then(o=>o.OutletAccountComponent)}];export{t as MIGRATE_ROUTES};
|
package/chunk-FQRRGJBE.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var i=[{key:0,value:"Unknown"},{key:1,value:"Sales Order"},{key:2,value:"Purchase Order"},{key:5,value:"OutDelivery"},{key:6,value:"InDelivery"},{key:7,value:"Adjustment"},{key:8,value:"AR Collection"},{key:9,value:"Manufacture"},{key:10,value:"End of Shift"},{key:12,value:"Opening Balance"},{key:13,value:"AP Collection"},{key:14,value:"InTransfer"},{key:15,value:"OutTransfer"},{key:16,value:"Prepaid"}];function l(r){let e=null;if(!i.map(a=>a.key).filter(a=>![0,12].includes(a)).includes(r.referenceTypeID))return null;let n=r.referenceID??r.id;switch(r.referenceText!=null&&r.referenceText!==void 0&&(r.referenceText.includes("#")?n=r.referenceID??r.id:n=r.id),r.referenceTypeID){case 1:e=`/menu/Orders/Orders/Customer_Invoice/Info?ID=${n}`;break;case 2:e=`/menu/Orders/Orders/Supplier_Bill/Info?ID=${n}`;break;case 5:e=`/menu/Logistics/Archive/Outbound_Logistics/Info?ID=${n}`;break;case 6:e=`/menu/Logistics/Archive/Inbound_Logistics/Info?ID=${n}`;break;case 7:e=`/menu/Adjustment/Adjustment/Archive/Info?ID=${n}`;break;case 8:e=`/menu/Debt/Debt/Join_Invoice/New_Join_Invoice/Info?ID=${n}`;break;case 9:e=`/menu/Manufacture/Job_Order/Archive/Info?ID=${n}`;break;case 10:e=`/menu/Shift/Main/Previous_Shift/Register_Shift_Detail?ID=${n}`;break;case 12:e="#";break;case 13:e=`/menu/Debt/Debt/Join_Bill/New_Join_Bill/Info?ID=${n}`;break;case 14:e=`/menu/Logistics/Archive/Transfer_Order/Info?ID=${n}`;break;case 15:e=`/menu/Logistics/Archive/Transfer_Order/Info?ID=${n}`;break;case 16:e=`/menu/Prepaid_Package/Dashboard/Prepaid_History/Info?ID=${n}`;break;default:console.warn("Unknown reference type ID:",r.referenceTypeID),e=null}return e}export{l as a};
|
package/chunk-KDCDSUGW.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as G}from"./chunk-NMU2YBAB.js";import{a as I,b as q}from"./chunk-AN4SAUSA.js";import"./chunk-URH77XNK.js";import"./chunk-3DBSHDAQ.js";import"./chunk-M4SSELXT.js";import"./chunk-WMZF4DQK.js";import{i as Z}from"./chunk-7P5XATXL.js";import"./chunk-S27Z7D3D.js";import{a as D,b as F}from"./chunk-AD247LWQ.js";import"./chunk-BKTBVFNX.js";import"./chunk-ZFNIPERQ.js";import{w as W,x as j}from"./chunk-ME4ALIS7.js";import"./chunk-DTYVTTET.js";import{e as R,j as A,w as N}from"./chunk-VMI3QWC6.js";import"./chunk-C4W7XYJD.js";import"./chunk-5DRALZZF.js";import{a as k}from"./chunk-2BI7WNJP.js";import{n as B,s as P}from"./chunk-ZK43JB4A.js";import"./chunk-F2X3VGZZ.js";import{Ac as b,Bc as E,Cc as g,Eb as d,Ha as z,Mb as u,Oc as L,Pc as V,Sc as a,W as T,Wb as i,Xb as l,_ as x,ac as f,fc as v,gc as r,ia as p,ib as h,qa as s,ra as c,sc as _,xc as w,yb as S,yc as y,zc as M}from"./chunk-6QJHEOXN.js";import"./chunk-YQFG5XE2.js";function H(o,C){if(o&1){let e=f();i(0,"p-button",4),v("onClick",function(){s(e);let n=r(),m=g(0);return c(n.onSaveTimezone(m))}),l()}if(o&2){let e=r();u("disabled",!e.selectedTimezone())}}function J(o,C){o&1&&(i(0,"div",8)(1,"div",9),_(2,"Timezone Configuration"),l(),i(3,"small",10),_(4,"Set the timezone to ensure that all journals and date filtering follow this timezone"),l()())}function K(o,C){if(o&1){let e=f();i(0,"p-panel"),d(1,J,5,0,"ng-template",null,2,a),i(3,"div",5)(4,"div",6)(5,"p-select",7),M("ngModelChange",function(n){s(e);let m=r();return y(m.selectedTimezone,n)||(m.selectedTimezone=n),c(n)}),l()()()()}if(o&2){let e=r(),t=g(0);h(5),u("fluid",!0)("showClear",!0)("filter",!0)("options",t==null||t.options==null?null:t.options.timezones),w("ngModel",e.selectedTimezone)}}var ce=(()=>{class o{constructor(){this.setupService=p(G),this.toastr=p(k),this.selectedTimezone=z(null),this.loader$=this.setupService.fetchLoaderConfiguration().pipe(x(e=>{this.selectedTimezone.set(e?.form?.timeZone||null)}),T(1))}onSaveTimezone(e){let t=e.form;t.timeZone=this.selectedTimezone(),this.setupService.updateAccountingIntegrationConfiguration({form:t}).subscribe()}static{this.\u0275fac=function(t){return new(t||o)}}static{this.\u0275cmp=S({type:o,selectors:[["app-timezone"]],decls:7,vars:3,consts:[["actionButton",""],["content",""],["header",""],["pageTitle","Timezone"],["label","Save","icon","fa-solid fa-floppy-disk",3,"onClick","disabled"],[1,"row"],[1,"col-4"],["appendTo","body","optionLabel","displayName","optionValue","id","placeholder","Select Timezone",3,"ngModelChange","fluid","showClear","filter","options","ngModel"],[1,"d-flex","flex-column","px-2"],[1,"mb-0","fw-normal","fs-4"],[1,"fst-italic","text-muted"]],template:function(t,n){t&1&&(b(0),L(1,"async"),i(2,"app-main-panel",3),d(3,H,1,1,"ng-template",null,0,a)(5,K,6,5,"ng-template",null,1,a),l()),t&2&&E(V(1,0,n.loader$))},dependencies:[P,B,N,R,A,Z,F,D,j,W,q,I],encapsulation:2})}}return o})();export{ce as TimezoneComponent};
|
package/chunk-M5M3M3GU.js
DELETED
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import{a as ie,b as kt}from"./chunk-FWAGEKIF.js";import{f as Tt}from"./chunk-RM5HLXNW.js";import"./chunk-E6SW7I4D.js";import{a as vt}from"./chunk-G4XX7EU2.js";import{a as yt}from"./chunk-XKI7WLHE.js";import{a as Ct}from"./chunk-ELMSU4U7.js";import"./chunk-VDXZGF3M.js";import"./chunk-MHRSQRHT.js";import{a as st}from"./chunk-6WWXJJID.js";import"./chunk-U2VDC52W.js";import{a as ee,b as te}from"./chunk-3VQUNDVT.js";import{d as gt,i as wt,j as bt,k as xt}from"./chunk-DGACZ747.js";import"./chunk-EBEY2MBR.js";import"./chunk-AMGBUOC4.js";import"./chunk-UPSNJEHO.js";import"./chunk-VKNINE5Q.js";import"./chunk-E7QWESN4.js";import{a as ft,b as ht}from"./chunk-AN4SAUSA.js";import"./chunk-URH77XNK.js";import"./chunk-PPXXWO4E.js";import"./chunk-3DBSHDAQ.js";import"./chunk-M4SSELXT.js";import"./chunk-QPPFPDWZ.js";import"./chunk-WMZF4DQK.js";import{i as _t}from"./chunk-7P5XATXL.js";import{a as Ye}from"./chunk-S27Z7D3D.js";import{a as ot,b as at}from"./chunk-AD247LWQ.js";import{b as E,c as lt,d as pt,e as ct,f as mt,g as dt,h as ut}from"./chunk-BKTBVFNX.js";import"./chunk-ZFNIPERQ.js";import{a as Xe,f as O,k as et,m as tt,o as it,s as nt,w as Y,x as rt}from"./chunk-ME4ALIS7.js";import"./chunk-DTYVTTET.js";import{A as Ge,C as $e,K as Ze,La as We,Ma as X,Ua as Ke,c as K,e as He,f as Ne,l as Qe,ma as Je,o as ze,u as je,x as qe,z as fe}from"./chunk-VMI3QWC6.js";import{b as Re,d as Ae,e as Oe}from"./chunk-F7PVAVLQ.js";import"./chunk-C4W7XYJD.js";import"./chunk-5DRALZZF.js";import"./chunk-2BI7WNJP.js";import{h as Z,k as J,m as Le,p as Me,s as W}from"./chunk-ZK43JB4A.js";import{c as Be,d as ce,f as me,h as de,i as ue,k as _e}from"./chunk-F2X3VGZZ.js";import{$b as U,$c as Ve,Aa as N,Cb as z,Dc as $,Eb as u,Fc as I,Gc as De,Ha as L,Kc as Ee,Lb as F,Mb as p,Oc as Fe,Pb as Ce,Qb as ae,Qc as Ue,Rb as j,Sb as M,Sc as x,Ub as R,Vb as A,Wb as l,Xb as a,Y as H,Yb as y,Zb as ye,_ as re,_b as ve,_c as D,ac as S,bd as P,c as B,ca as we,cd as Pe,da as be,fc as b,gc as c,hc as Te,ia as C,ib as s,ic as ke,lc as V,mc as q,nc as v,oc as T,qa as _,ra as f,rc as Se,sc as d,tc as k,ua as oe,uc as G,wc as Ie,xc as se,yb as Q,yc as le,zb as xe,zc as pe}from"./chunk-6QJHEOXN.js";import{a as h,b as g}from"./chunk-YQFG5XE2.js";var Dt={data:[],count:0,filter:{pagination:1,pageSize:10,groupID:null,text:""},meta:{filter:{pagination:1,pageSize:10,groupID:null,text:""},options:{groups:[]}},metaForm:{form:{id:"",groupID:"",accessTypeID:1,listJournalTagID:[]},options:{users:[],groups:[],accessTypes:[],journalTags:[]}}},he=lt(ut("UserStore"),dt(Dt),pt(t=>({first:P(()=>(t.filter().pagination-1)*t.filter().pageSize+1),end:P(()=>Math.min(t.filter().pagination*t.filter().pageSize,t.count())),hasCheckedRows:P(()=>t.data().some(o=>o.checked)),checkedData:P(()=>t.data().filter(o=>o.checked).map(o=>o.userID)),selectedID:P(()=>t.data().find(o=>o.checked)?.userID||null)})),mt(t=>{let o=C(ie);return{setFilter(n){E(t,i=>g(h({},i),{filter:n}))},onRowSelect(n){E(t,i=>{let r=i.data.map(m=>m.userID===n.userID?g(h({},m),{checked:!0}):m);return g(h({},i),{data:r})})},onRowUnselect(n){E(t,i=>{let r=i.data.map(m=>m.userID===n.userID?g(h({},m),{checked:!1}):m);return g(h({},i),{data:r})})},onHeaderCheckboxToggle(n){let i=localStorage.getItem("AUTH_USERNAME");E(t,r=>{let m=r.data.map(w=>w.userName!==i?g(h({},w),{checked:n}):g(h({},w),{checked:!1}));return g(h({},r),{data:m})})},getUserLoader:ee(B(H(()=>o.getUserLoaderList().pipe(te({next:n=>{E(t,i=>g(h({},i),{meta:n}))},error:n=>{console.error("Failed to fetch user loader list:",n)}}))))),getUserFormMeta:ee(B(H(n=>o.getUserFormMeta(n).pipe(te({next:i=>{E(t,r=>g(h({},r),{metaForm:i}))},error:i=>{console.error("Failed to fetch user form meta:",i)}}))))),getUsers:ee(B(H(n=>o.getUsers(n).pipe(te({next:i=>{E(t,r=>g(h({},r),{data:i.data.map(m=>g(h({},m),{checked:!1})),count:i.count}))},error:i=>{console.error("Failed to fetch users:",i)}})))))}}),ct({onInit:t=>{t.getUserLoader(),t.getUsers(t.filter)}}));var Ut=["header"],Vt=["footer"],Pt=["content"],Lt=["closeicon"],Mt=["headless"],Rt=["maskRef"],At=["container"],Ot=["closeButton"],Bt=["*"],Ht=(t,o,e,n,i,r)=>({"p-drawer":!0,"p-drawer-active":t,"p-drawer-left":o,"p-drawer-right":e,"p-drawer-top":n,"p-drawer-bottom":i,"p-drawer-full":r}),Nt=(t,o)=>({transform:t,transition:o}),Qt=t=>({value:"visible",params:t});function zt(t,o){t&1&&U(0)}function jt(t,o){if(t&1&&u(0,zt,1,0,"ng-container",4),t&2){let e=c(2);p("ngTemplateOutlet",e.headlessTemplate||e._headlessTemplate)}}function qt(t,o){t&1&&U(0)}function Gt(t,o){if(t&1&&(l(0,"div"),d(1),a()),t&2){let e=c(3);ae(e.cx("title")),s(),k(e.header)}}function $t(t,o){t&1&&y(0,"TimesIcon"),t&2&&F("data-pc-section","closeicon")}function Zt(t,o){}function Jt(t,o){t&1&&u(0,Zt,0,0,"ng-template")}function Wt(t,o){if(t&1&&u(0,$t,1,1,"TimesIcon",8)(1,Jt,1,0,null,4),t&2){let e=c(4);p("ngIf",!e.closeIconTemplate&&!e._closeIconTemplate),s(),p("ngTemplateOutlet",e.closeIconTemplate||e._closeIconTemplate)}}function Kt(t,o){if(t&1){let e=S();l(0,"p-button",9),b("onClick",function(i){_(e);let r=c(3);return f(r.close(i))})("keydown.enter",function(i){_(e);let r=c(3);return f(r.close(i))}),u(1,Wt,2,2,"ng-template",null,1,x),a()}if(t&2){let e=c(3);p("ngClass",e.cx("closeButton"))("buttonProps",e.closeButtonProps)("ariaLabel",e.ariaCloseLabel),F("data-pc-section","closebutton")("data-pc-group-section","iconcontainer")}}function Xt(t,o){t&1&&U(0)}function Yt(t,o){t&1&&U(0)}function ei(t,o){if(t&1&&(ye(0),l(1,"div",5),u(2,Yt,1,0,"ng-container",4),a(),ve()),t&2){let e=c(3);s(),p("ngClass",e.cx("footer")),F("data-pc-section","footer"),s(),p("ngTemplateOutlet",e.footerTemplate||e._footerTemplate)}}function ti(t,o){if(t&1&&(l(0,"div",5),u(1,qt,1,0,"ng-container",4)(2,Gt,2,3,"div",6)(3,Kt,3,5,"p-button",7),a(),l(4,"div",5),ke(5),u(6,Xt,1,0,"ng-container",4),a(),u(7,ei,3,3,"ng-container",8)),t&2){let e=c(2);p("ngClass",e.cx("header")),F("data-pc-section","header"),s(),p("ngTemplateOutlet",e.headerTemplate||e._headerTemplate),s(),p("ngIf",e.header),s(),p("ngIf",e.showCloseIcon&&e.closable),s(),p("ngClass",e.cx("content")),F("data-pc-section","content"),s(2),p("ngTemplateOutlet",e.contentTemplate||e._contentTemplate),s(),p("ngIf",e.footerTemplate||e._footerTemplate)}}function ii(t,o){if(t&1){let e=S();l(0,"div",3,0),b("@panelState.start",function(i){_(e);let r=c();return f(r.onAnimationStart(i))})("@panelState.done",function(i){_(e);let r=c();return f(r.onAnimationEnd(i))})("keydown",function(i){_(e);let r=c();return f(r.onKeyDown(i))}),u(2,jt,1,1,"ng-container")(3,ti,8,9),a()}if(t&2){let e=c();Ce(e.style),ae(e.styleClass),p("ngClass",Ee(9,Ht,e.visible,e.position==="left"&&!e.fullScreen,e.position==="right"&&!e.fullScreen,e.position==="top"&&!e.fullScreen,e.position==="bottom"&&!e.fullScreen,e.fullScreen||e.position==="full"))("@panelState",I(19,Qt,De(16,Nt,e.transformOptions,e.transitionOptions))),F("data-pc-name","sidebar")("data-pc-section","root"),s(2),j(e.headlessTemplate||e._headlessTemplate?2:3)}}var ni=({dt:t})=>`
|
|
2
|
-
.p-drawer {
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
pointer-events: auto;
|
|
6
|
-
transform: translate3d(0px, 0px, 0px);
|
|
7
|
-
position: fixed;
|
|
8
|
-
transition: transform 0.3s;
|
|
9
|
-
background: ${t("drawer.background")};
|
|
10
|
-
color: ${t("drawer.color")};
|
|
11
|
-
border: 1px solid ${t("drawer.border.color")};
|
|
12
|
-
box-shadow: ${t("drawer.shadow")};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.p-drawer-content {
|
|
16
|
-
overflow-y: auto;
|
|
17
|
-
flex-grow: 1;
|
|
18
|
-
padding: ${t("drawer.content.padding")};
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.p-drawer-header {
|
|
22
|
-
display: flex;
|
|
23
|
-
align-items: center;
|
|
24
|
-
justify-content: space-between;
|
|
25
|
-
flex-shrink: 0;
|
|
26
|
-
padding: ${t("drawer.header.padding")};
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.p-drawer-footer {
|
|
30
|
-
padding: ${t("drawer.header.padding")};
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.p-drawer-title {
|
|
34
|
-
font-weight: ${t("drawer.title.font.weight")};
|
|
35
|
-
font-size: ${t("drawer.title.font.size")};
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.p-drawer-full .p-drawer {
|
|
39
|
-
transition: none;
|
|
40
|
-
transform: none;
|
|
41
|
-
width: 100vw !important;
|
|
42
|
-
height: 100vh !important;
|
|
43
|
-
max-height: 100%;
|
|
44
|
-
top: 0px !important;
|
|
45
|
-
left: 0px !important;
|
|
46
|
-
border-width: 1px;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.p-drawer-left .p-drawer {
|
|
50
|
-
align-self: start;
|
|
51
|
-
width: 20rem;
|
|
52
|
-
height: 100%;
|
|
53
|
-
border-right-width: 1px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.p-drawer-right .p-drawer {
|
|
57
|
-
align-self: end;
|
|
58
|
-
width: 20rem;
|
|
59
|
-
height: 100%;
|
|
60
|
-
border-left-width: 1px;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.p-drawer-top .p-drawer {
|
|
64
|
-
height: 10rem;
|
|
65
|
-
width: 100%;
|
|
66
|
-
border-bottom-width: 1px;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.p-drawer-bottom .p-drawer {
|
|
70
|
-
height: 10rem;
|
|
71
|
-
width: 100%;
|
|
72
|
-
border-top-width: 1px;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.p-drawer-left .p-drawer-content,
|
|
76
|
-
.p-drawer-right .p-drawer-content,
|
|
77
|
-
.p-drawer-top .p-drawer-content,
|
|
78
|
-
.p-drawer-bottom .p-drawer-content {
|
|
79
|
-
width: 100%;
|
|
80
|
-
height: 100%;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.p-drawer-open {
|
|
84
|
-
display: flex;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.p-drawer-top {
|
|
88
|
-
justify-content: flex-start;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.p-drawer-bottom {
|
|
92
|
-
justify-content: flex-end;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
.p-drawer {
|
|
96
|
-
position: fixed;
|
|
97
|
-
transition: transform 0.3s;
|
|
98
|
-
display: flex;
|
|
99
|
-
flex-direction: column;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.p-drawer-content {
|
|
103
|
-
position: relative;
|
|
104
|
-
overflow-y: auto;
|
|
105
|
-
flex-grow: 1;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.p-drawer-header {
|
|
109
|
-
display: flex;
|
|
110
|
-
align-items: center;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.p-drawer-footer {
|
|
114
|
-
margin-top: auto;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.p-drawer-icon {
|
|
118
|
-
display: flex;
|
|
119
|
-
align-items: center;
|
|
120
|
-
justify-content: center;
|
|
121
|
-
margin-left: auto;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
.p-drawer-left {
|
|
125
|
-
top: 0;
|
|
126
|
-
left: 0;
|
|
127
|
-
width: 20rem;
|
|
128
|
-
height: 100%;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.p-drawer-right {
|
|
132
|
-
top: 0;
|
|
133
|
-
right: 0;
|
|
134
|
-
width: 20rem;
|
|
135
|
-
height: 100%;
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.p-drawer-top {
|
|
139
|
-
top: 0;
|
|
140
|
-
left: 0;
|
|
141
|
-
width: 100%;
|
|
142
|
-
height: 10rem;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
.p-drawer-bottom {
|
|
146
|
-
bottom: 0;
|
|
147
|
-
left: 0;
|
|
148
|
-
width: 100%;
|
|
149
|
-
height: 10rem;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
.p-drawer-full {
|
|
153
|
-
width: 100%;
|
|
154
|
-
height: 100%;
|
|
155
|
-
top: 0;
|
|
156
|
-
left: 0;
|
|
157
|
-
-webkit-transition: none;
|
|
158
|
-
transition: none;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.p-drawer-mask {
|
|
162
|
-
background-color: rgba(0, 0, 0, 0.4);
|
|
163
|
-
transition-duration: 0.2s;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.p-overlay-mask {
|
|
167
|
-
position: fixed;
|
|
168
|
-
top: 0;
|
|
169
|
-
left: 0;
|
|
170
|
-
width: 100%;
|
|
171
|
-
height: 100%;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.p-overlay-mask:dir(rtl) {
|
|
175
|
-
flex-direction: row-reverse;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
.p-overlay-mask-enter {
|
|
179
|
-
animation: p-overlay-mask-enter-animation 150ms forwards;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
.p-overlay-mask-leave {
|
|
183
|
-
animation: p-overlay-mask-leave-animation 150ms forwards;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
@keyframes p-overlay-mask-enter-animation {
|
|
187
|
-
from {
|
|
188
|
-
background-color: transparent;
|
|
189
|
-
}
|
|
190
|
-
to {
|
|
191
|
-
background-color: rgba(0, 0, 0, 0.4);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
@keyframes p-overlay-mask-leave-animation {
|
|
195
|
-
from {
|
|
196
|
-
background-color: rgba(0, 0, 0, 0.4);
|
|
197
|
-
}
|
|
198
|
-
to {
|
|
199
|
-
background-color: transparent;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
`,ri={mask:({instance:t})=>({position:"fixed",height:"100%",width:"100%",left:0,top:0,display:"flex",flexDirection:"column",alignItems:t.position==="top"?"flex-start":t.position==="bottom"?"flex-end":"center"})},oi={mask:({instance:t})=>({"p-drawer-mask":!0,"p-overlay-mask p-overlay-mask-enter":t.modal,"p-drawer-open":t.containerVisible,"p-drawer-full":t.fullScreen,[`p-drawer-${t.position}`]:!!t.position}),root:({instance:t})=>({"p-drawer p-component":!0,"p-drawer-full":t.fullScreen}),header:"p-drawer-header",title:"p-drawer-title",pcCloseButton:"p-drawer-close-button",content:"p-drawer-content",footer:"p-drawer-footer"},St=(()=>{class t extends Ke{name="drawer";theme=ni;classes=oi;inlineStyles=ri;static \u0275fac=(()=>{let e;return function(i){return(e||(e=oe(t)))(i||t)}})();static \u0275prov=we({token:t,factory:t.\u0275fac})}return t})();var ai=ue([me({transform:"{{transform}}",opacity:0}),ce("{{transition}}")]),si=ue([ce("{{transition}}",me({transform:"{{transform}}",opacity:0}))]),ge=(()=>{class t extends Xe{appendTo="body";blockScroll=!1;style;styleClass;ariaCloseLabel;autoZIndex=!0;baseZIndex=0;modal=!0;closeButtonProps={severity:"secondary",text:!0,rounded:!0};dismissible=!0;showCloseIcon=!0;closeOnEscape=!0;transitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)";get visible(){return this._visible}set visible(e){this._visible=e}get position(){return this._position}set position(e){if(this._position=e,e==="full"){this.transformOptions="none";return}switch(e){case"left":this.transformOptions="translate3d(-100%, 0px, 0px)";break;case"right":this.transformOptions="translate3d(100%, 0px, 0px)";break;case"bottom":this.transformOptions="translate3d(0px, 100%, 0px)";break;case"top":this.transformOptions="translate3d(0px, -100%, 0px)";break}}get fullScreen(){return this._fullScreen}set fullScreen(e){this._fullScreen=e,e&&(this.transformOptions="none")}header;maskStyle;closable=!0;onShow=new N;onHide=new N;visibleChange=new N;maskRef;containerViewChild;closeButtonViewChild;initialized;_visible;_position="left";_fullScreen=!1;container;transformOptions="translate3d(-100%, 0px, 0px)";mask;maskClickListener;documentEscapeListener;animationEndListener;_componentStyle=C(St);ngAfterViewInit(){super.ngAfterViewInit(),this.initialized=!0}headerTemplate;footerTemplate;contentTemplate;closeIconTemplate;headlessTemplate;_headerTemplate;_footerTemplate;_contentTemplate;_closeIconTemplate;_headlessTemplate;templates;ngAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"content":this._contentTemplate=e.template;break;case"header":this._headerTemplate=e.template;break;case"footer":this._footerTemplate=e.template;break;case"closeicon":this._closeIconTemplate=e.template;break;case"headless":this._headlessTemplate=e.template;break;default:this._contentTemplate=e.template;break}})}onKeyDown(e){e.code==="Escape"&&this.hide(!1)}show(){this.container.setAttribute(this.attrSelector,""),this.autoZIndex&&O.set("modal",this.container,this.baseZIndex||this.config.zIndex.modal),this.modal&&this.enableModality(),this.onShow.emit({}),this.visibleChange.emit(!0)}hide(e=!0){e&&this.onHide.emit({}),this.modal&&this.disableModality()}close(e){this.hide(),this.visibleChange.emit(!1),e.preventDefault()}enableModality(){let e=this.document.querySelectorAll(".p-drawer-active"),n=e.length,i=n==1?String(parseInt(this.container.style.zIndex)-1):String(parseInt(e[n-1].style.zIndex)-1);this.mask||(this.mask=this.renderer.createElement("div"),this.renderer.setStyle(this.mask,"zIndex",i),Je(this.mask,"style",this.maskStyle),fe(this.mask,"p-overlay-mask p-drawer-mask p-overlay-mask-enter"),this.dismissible&&(this.maskClickListener=this.renderer.listen(this.mask,"click",r=>{this.dismissible&&this.close(r)})),this.renderer.appendChild(this.document.body,this.mask),this.blockScroll&&Ge())}disableModality(){this.mask&&(fe(this.mask,"p-overlay-mask-leave"),this.animationEndListener=this.renderer.listen(this.mask,"animationend",this.destroyModal.bind(this)))}destroyModal(){this.unbindMaskClickListener(),this.mask&&this.renderer.removeChild(this.document.body,this.mask),this.blockScroll&&$e(),this.unbindAnimationEndListener(),this.mask=null}onAnimationStart(e){switch(e.toState){case"visible":this.container=e.element,this.appendContainer(),this.show(),this.closeOnEscape&&this.bindDocumentEscapeListener();break}}onAnimationEnd(e){switch(e.toState){case"void":this.hide(!1),O.clear(this.container),this.unbindGlobalListeners();break}}appendContainer(){this.appendTo&&(this.appendTo==="body"?this.renderer.appendChild(this.document.body,this.container):Ze(this.appendTo,this.container))}bindDocumentEscapeListener(){let e=this.el?this.el.nativeElement.ownerDocument:this.document;this.documentEscapeListener=this.renderer.listen(e,"keydown",n=>{n.which==27&&parseInt(this.container.style.zIndex)===O.get(this.container)&&this.close(n)})}unbindDocumentEscapeListener(){this.documentEscapeListener&&(this.documentEscapeListener(),this.documentEscapeListener=null)}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}unbindGlobalListeners(){this.unbindMaskClickListener(),this.unbindDocumentEscapeListener()}unbindAnimationEndListener(){this.animationEndListener&&this.mask&&(this.animationEndListener(),this.animationEndListener=null)}ngOnDestroy(){this.initialized=!1,this.visible&&this.modal&&this.destroyModal(),this.appendTo&&this.container&&this.renderer.appendChild(this.el.nativeElement,this.container),this.container&&this.autoZIndex&&O.clear(this.container),this.container=null,this.unbindGlobalListeners(),this.unbindAnimationEndListener()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=oe(t)))(i||t)}})();static \u0275cmp=Q({type:t,selectors:[["p-drawer"]],contentQueries:function(n,i,r){if(n&1&&(V(r,Ut,4),V(r,Vt,4),V(r,Pt,4),V(r,Lt,4),V(r,Mt,4),V(r,We,4)),n&2){let m;v(m=T())&&(i.headerTemplate=m.first),v(m=T())&&(i.footerTemplate=m.first),v(m=T())&&(i.contentTemplate=m.first),v(m=T())&&(i.closeIconTemplate=m.first),v(m=T())&&(i.headlessTemplate=m.first),v(m=T())&&(i.templates=m)}},viewQuery:function(n,i){if(n&1&&(q(Rt,5),q(At,5),q(Ot,5)),n&2){let r;v(r=T())&&(i.maskRef=r.first),v(r=T())&&(i.containerViewChild=r.first),v(r=T())&&(i.closeButtonViewChild=r.first)}},inputs:{appendTo:"appendTo",blockScroll:[2,"blockScroll","blockScroll",D],style:"style",styleClass:"styleClass",ariaCloseLabel:"ariaCloseLabel",autoZIndex:[2,"autoZIndex","autoZIndex",D],baseZIndex:[2,"baseZIndex","baseZIndex",Ve],modal:[2,"modal","modal",D],closeButtonProps:"closeButtonProps",dismissible:[2,"dismissible","dismissible",D],showCloseIcon:[2,"showCloseIcon","showCloseIcon",D],closeOnEscape:[2,"closeOnEscape","closeOnEscape",D],transitionOptions:"transitionOptions",visible:"visible",position:"position",fullScreen:"fullScreen",header:"header",maskStyle:"maskStyle",closable:[2,"closable","closable",D]},outputs:{onShow:"onShow",onHide:"onHide",visibleChange:"visibleChange"},features:[$([St]),z],ngContentSelectors:Bt,decls:1,vars:1,consts:[["container",""],["icon",""],["role","complementary",3,"ngClass","style","class","keydown",4,"ngIf"],["role","complementary",3,"keydown","ngClass"],[4,"ngTemplateOutlet"],[3,"ngClass"],[3,"class",4,"ngIf"],[3,"ngClass","buttonProps","ariaLabel","onClick","keydown.enter",4,"ngIf"],[4,"ngIf"],[3,"onClick","keydown.enter","ngClass","buttonProps","ariaLabel"]],template:function(n,i){n&1&&(Te(),u(0,ii,4,21,"div",2)),n&2&&p("ngIf",i.visible)},dependencies:[W,Z,J,Le,Y,Ye,X],encapsulation:2,data:{animation:[Be("panelState",[de("void => visible",[_e(ai)]),de("visible => void",[_e(si)])])]},changeDetection:0})}return t})(),It=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=xe({type:t});static \u0275inj=be({imports:[ge,X,X]})}return t})();var pi=["class","page"],ne=t=>({"ng-invalid ng-dirty":t}),ci=t=>({groupID:t});function mi(t,o){if(t&1){let e=S();l(0,"p-button",23),b("onClick",function(){_(e);let i=c(2);return f(i.onDeleteUser())}),a()}}function di(t,o){if(t&1){let e=S();l(0,"p-button",24),b("onClick",function(){_(e);let i=c(2);return f(i.onHandleDrawer())}),a()}}function ui(t,o){if(t&1&&(l(0,"div",20),u(1,mi,1,0,"p-button",21)(2,di,1,0,"p-button",22),a()),t&2){let e=c();s(),p("ngIf",e.store.hasCheckedRows()),s(),p("ngIf",e.roleService.user().create)}}function _i(t,o){t&1&&(l(0,"th",28),y(1,"p-tableHeaderCheckbox"),a())}function fi(t,o){if(t&1&&(l(0,"tr"),u(1,_i,2,0,"th",27),l(2,"th"),d(3,"LoginID"),a(),l(4,"th"),d(5,"Group"),a(),l(6,"th"),d(7,"Access Type"),a(),l(8,"th"),d(9,"Tags"),a(),l(10,"th"),d(11,"Last Login"),a()()),t&2){let e=c(2);s(),p("ngIf",e.roleService.user().delete)}}function hi(t,o){t&1&&U(0)}function gi(t,o){if(t&1&&y(0,"p-tableCheckbox",34),t&2){let e=c(3).$implicit;p("value",e)}}function wi(t,o){if(t&1&&u(0,gi,1,1,"p-tableCheckbox",33),t&2){let e=c(4);p("ngIf",e.roleService.user().delete)}}function bi(t,o){if(t&1&&(l(0,"td"),u(1,hi,1,0,"ng-container",32)(2,wi,1,1,"ng-template",null,7,x),a()),t&2){let e=Se(3),n=c().$implicit,i=c(2);s(),p("ngIf",i.roleService.user().delete&&n.userName===i.currentUser())("ngIfElse",e)}}function xi(t,o){t&1&&(l(0,"div"),d(1,"No Tags Assigned"),a())}function Ci(t,o){if(t&1&&(l(0,"div"),d(1),a()),t&2){let e=c().$implicit;s(),G("",e.tagsCount," Tags Assigned")}}function yi(t,o){if(t&1){let e=S();l(0,"tr"),u(1,bi,4,2,"td",29),l(2,"td")(3,"button",30),b("click",function(){let i=_(e).$implicit,r=c(2);return f(r.onEditUser(i))}),d(4),a()(),l(5,"td")(6,"a",31),d(7),a()(),l(8,"td"),d(9),a(),l(10,"td"),u(11,xi,2,0,"div")(12,Ci,2,1,"div"),a(),l(13,"td")(14,"span"),d(15),Fe(16,"date"),a()()()}if(t&2){let e=o.$implicit,n=c(2);s(),p("ngIf",n.roleService.user().delete),s(2),p("disabled",!n.roleService.user().edit),s(),G(" ",e.userName||e.userID," "),s(2),p("queryParams",I(11,ci,e.groupID)),s(),k(e.groupName),s(2),G(" ",e.accessTypeName," "),s(2),j(e.tagsCount===0?11:12),s(4),k(Ue(16,8,e.lastLogin,"d MMM y HH:mm"))}}function vi(t,o){if(t&1&&d(0),t&2){let e=c(2);Ie(" Showing ",e.store.first()," to ",e.store.end()," of ",e.store.count()," entries ")}}function Ti(t,o){t&1&&(l(0,"tr")(1,"td",35)(2,"span"),d(3,"No users found. Try adjusting your filters or add a new user."),a()()())}function ki(t,o){if(t&1){let e=S();l(0,"p-panel")(1,"div",25),y(2,"app-user-tabs"),l(3,"p-table",26),b("onPage",function(i){_(e);let r=c();return f(r.onPageChange(i))})("onRowSelect",function(i){_(e);let r=c();return f(r.onRowSelect(i))})("onRowUnselect",function(i){_(e);let r=c();return f(r.onRowUnselect(i))})("onHeaderCheckboxToggle",function(i){_(e);let r=c();return f(r.onHeaderCheckboxToggle(i))}),u(4,fi,12,1,"ng-template",null,3,x)(6,yi,17,13,"ng-template",null,4,x)(8,vi,1,3,"ng-template",null,5,x)(10,Ti,4,0,"ng-template",null,6,x),a()()()}if(t&2){let e=c();s(3),p("value",e.store.data())("lazy",!0)("paginator",!0)("rows",e.store.filter().pageSize)("totalRecords",e.store.count())}}function Si(t,o){if(t&1&&(l(0,"div",36)(1,"div",18)(2,"div",37)(3,"label",38),d(4,"Group"),a(),y(5,"p-select",39),a()()()),t&2){let e=c();p("formGroup",e.forms.filterForm),s(5),p("showClear",!0)("options",e.store.meta().options.groups)}}function Ii(t,o){if(t&1&&(l(0,"span",40),d(1),a()),t&2){let e=c();s(),k(e.store.hasCheckedRows()?"Edit User":"Invite User")}}function Di(t,o){if(t&1&&(l(0,"small",14),d(1),a()),t&2){let e=o.$implicit;s(),k(e)}}function Ei(t,o){if(t&1&&(l(0,"small",14),d(1),a()),t&2){let e=o.$implicit;s(),k(e)}}function Fi(t,o){if(t&1&&(l(0,"small",14),d(1),a()),t&2){let e=o.$implicit;s(),k(e)}}function Ui(t,o){if(t&1&&(l(0,"small",14),d(1),a()),t&2){let e=o.$implicit;s(),k(e)}}var On=(()=>{class t extends yt{ngOnInit(){this.generateForm()}constructor(){Pe(()=>{this.store.metaForm()&&this.generateForm()}),super(),this.store=C(he),this.fb=C(je),this.userService=C(ie),this.isLoading=L(!1),this.form=null,this.isDrawerOpen=L(!1),this.router=C(Ae),this.route=C(Re),this.isDialogFilterVisible=L(!1),this.roleService=C(st),this.currentUser=L(null),this.tabs=[{route:"/pages/users/users",label:"Users"},{route:"/pages/users/groups",label:"Groups"}]}ngAfterViewInit(){this.currentUser.set(localStorage.getItem("AUTH_USERNAME")||null)}onPageChange(e){this.store.setFilter(g(h({},this.store.filter()),{pagination:e.first/e.rows+1}))}onRowSelect(e){this.store.onRowSelect(e.data)}onRowUnselect(e){if(Array.isArray(e.data)){e.data.forEach(n=>{this.store.onRowUnselect(n)});return}else this.store.onRowUnselect(e.data)}onHeaderCheckboxToggle(e){this.store.onHeaderCheckboxToggle(e.checked)}generateForm(){this.forms={filterForm:this.fb.group({pagination:this.fb.control(1),pageSize:this.fb.control(10),groupID:this.fb.control(null)}),userForm:this.fb.group({id:this.fb.control({value:this.store.metaForm().form.id,disabled:this.store.metaForm().form.id!==vt},[K.required]),groupID:this.fb.control(this.store.metaForm().form.groupID,[K.required]),accessTypeID:this.fb.control(this.store.metaForm().form.accessTypeID,[K.required]),listJournalTagID:this.fb.control(this.store.metaForm().form.listJournalTagID??[])})}}onHandleDrawer(){this.isDrawerOpen.update(e=>!e),this.store.getUserFormMeta(this.route.snapshot.params.id||null)}onInviteUser(){let{userForm:e}=this.forms;if(e.invalid){e.markAllAsTouched();return}let n=e.getRawValue(),i;if(this.store.hasCheckedRows()){let[r]=this.store.checkedData();i={id:r,groupID:n.groupID,accessTypeID:n.accessTypeID,listJournalTagID:n.listJournalTagID}}else i=n;this.userService.inviteUser(i).pipe(re(()=>{this.onHandleDrawer(),this.store.setFilter(h({},this.store.filter())),e.reset()})).subscribe()}onSearch(e){this.store.setFilter(g(h({},this.store.filter()),{text:e,pagination:1}))}onOKFilter(){if(this.forms.filterForm.invalid){this.forms.filterForm.markAllAsTouched();return}let{groupID:e}=this.forms.filterForm.value;this.store.setFilter(g(h({},this.store.filter()),{groupID:e})),this.isDialogFilterVisible.update(n=>!n)}onEditUser(e){this.store.onRowSelect(e),this.store.getUserFormMeta(this.store.selectedID()),this.isDrawerOpen.update(n=>!n)}onHideDrawer(){this.store.onHeaderCheckboxToggle(!1)}onDeleteUser(){let e=this.store.checkedData();this.userService.deleteUser(e).pipe(re(()=>{this.store.setFilter(h({},this.store.filter()))})).subscribe()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=Q({type:t,selectors:[["app-user",8,"page"]],features:[$([he]),z],attrs:pi,decls:41,vars:23,consts:[["actionButton",""],["content",""],["filters",""],["header",""],["body",""],["paginatorleft",""],["emptymessage",""],["showCheckbox",""],["pageTitle","User List",3,"search","isDialogFilterVisibleChange","filterConfirmed","isSearchableInput","isFilterable","isDialogFilterVisible","scrollable"],["position","right",3,"visibleChange","onHide","visible"],[1,"row","py-3","row-gap-3",3,"formGroup"],[1,"col-12"],["for","",1,"m-0"],["fluid","","filter","","filterBy","name","formControlName","id","optionLabel","loginID","optionValue","id","placeholder","Select a User",3,"disabled","options","ngClass"],[1,"text-danger"],["filter","","filterBy","name","formControlName","groupID","optionLabel","name","optionValue","id","placeholder","Select a Group","fluid","",3,"options","ngClass"],["filter","","filterBy","name","formControlName","accessTypeID","optionLabel","value","optionValue","key","placeholder","Select Access Type","fluid","",3,"options","ngClass"],["fluid","","filter","","filterBy","name","formControlName","listJournalTagID","optionLabel","name","optionValue","id","placeholder","Select a Tag",3,"options","ngClass"],[1,"col"],["label","Submit",3,"onClick"],[1,"d-flex","gap-2","flex-wrap"],["severity","danger","label","Delete","icon","fa-solid fa-trash",3,"onClick",4,"ngIf"],["label","Invite",3,"onClick",4,"ngIf"],["severity","danger","label","Delete","icon","fa-solid fa-trash",3,"onClick"],["label","Invite",3,"onClick"],[1,"d-flex","flex-column","gap-3","py-2"],["dataKey","userID",3,"onPage","onRowSelect","onRowUnselect","onHeaderCheckboxToggle","value","lazy","paginator","rows","totalRecords"],["style","width: 4rem",4,"ngIf"],[2,"width","4rem"],[4,"ngIf"],[1,"btn","btn-link","fw-light","text-primary","p-0",2,"text-decoration","none",3,"click","disabled"],["routerLink","/pages/users/groups/forms",1,"link","link-primary",3,"queryParams"],[4,"ngIf","ngIfElse"],[3,"value",4,"ngIf"],[3,"value"],["colspan","3"],[1,"row",3,"formGroup"],[1,"d-flex","flex-column"],["for",""],["appendTo","body","formControlName","groupID","optionValue","id","optionLabel","name","placeholder","Select a Group",3,"showClear","options"],[1,"fs-5"]],template:function(n,i){if(n&1){let r=S();l(0,"app-main-panel",8),b("search",function(w){return _(r),f(i.onSearch(w))}),pe("isDialogFilterVisibleChange",function(w){return _(r),le(i.isDialogFilterVisible,w)||(i.isDialogFilterVisible=w),f(w)}),b("filterConfirmed",function(){return _(r),f(i.onOKFilter())}),u(1,ui,3,2,"ng-template",null,0,x)(3,ki,12,5,"ng-template",null,1,x)(5,Si,6,3,"ng-template",null,2,x),a(),l(7,"p-drawer",9),pe("visibleChange",function(w){return _(r),le(i.isDrawerOpen,w)||(i.isDrawerOpen=w),f(w)}),b("onHide",function(){return _(r),f(i.onHideDrawer())}),u(8,Ii,2,1,"ng-template",null,3,x),l(10,"div",10)(11,"div",11)(12,"div")(13,"label",12),d(14,"Users"),a(),y(15,"p-select",13),R(16,Di,2,1,"small",14,M),a()(),l(18,"div",11)(19,"div")(20,"label",12),d(21,"Groups"),a(),y(22,"p-select",15),R(23,Ei,2,1,"small",14,M),a()(),l(25,"div",11)(26,"div")(27,"label",12),d(28,"Access Type"),a(),y(29,"p-select",16),R(30,Fi,2,1,"small",14,M),a()(),l(32,"div",11)(33,"div")(34,"label",12),d(35,"Tags"),a(),y(36,"p-multiSelect",17),R(37,Ui,2,1,"small",14,M),a()(),l(39,"div",18)(40,"p-button",19),b("onClick",function(){return _(r),f(i.onInviteUser())}),a()()()()}n&2&&(p("isSearchableInput",!0)("isFilterable",!0),se("isDialogFilterVisible",i.isDialogFilterVisible),p("scrollable",!0),s(7),se("visible",i.isDrawerOpen),s(3),p("formGroup",i.forms.userForm),s(5),p("disabled",i.store.hasCheckedRows())("options",i.store.metaForm().options.users)("ngClass",I(15,ne,i.isInvalid("id","userForm"))),s(),A(i.getErrors("id","userForm")),s(6),p("options",i.store.metaForm().options.groups)("ngClass",I(17,ne,i.isInvalid("groupID","userForm"))),s(),A(i.getErrors("id","userForm")),s(6),p("options",i.store.metaForm().options.accessTypes)("ngClass",I(19,ne,i.isInvalid("accessTypeID","userForm"))),s(),A(i.getErrors("accessTypeID","userForm")),s(6),p("options",i.store.metaForm().options.journalTags)("ngClass",I(21,ne,i.isInvalid("listJournalTagID","userForm"))),s(),A(i.getErrors("listJournalTagID","userForm")))},dependencies:[_t,W,Z,J,Me,xt,gt,wt,bt,rt,Y,It,ge,qe,He,Ne,Qe,ze,it,et,tt,nt,ht,ft,Tt,at,ot,kt,Oe,Ct],styles:['[_nghost-%COMP%]{display:block} .p-tabs .p-tab{padding:"1rem 1.125rem"!important} .p-panel .p-panel-header{display:none!important}'],changeDetection:0})}}return t})();export{On as UserPageComponent};
|