PageSourceSearch

https://vendor.nexgentaxes.com/5312.fcb430447005a30e.js

js nexgentaxes.com collected 2026-10-05 04:12:28 UTC 11,669 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[5312],{92932:(Y,m,l)=>{l.r(m),l.d(m,{InvoiceTemplatePageModule:()=>k});var d=l(91368),r=l(44716),p=l(83068),g=l(89192),u=l(73448),e=l(32116),_=l(87264),v=l(77816),C=l(2132),f=l(45552),h=l(57460),I=l(36032);function T(a,s){if(1&a){const t=e.KQA();e.I0R(0,"tr")(1,"td"),e.OEk(2),e.C$Y(),e.I0R(3,"td",11),e.qCj("click",function(){const o=e.usT(t).$implicit,c=e.GaO(2);return e.CGJ(c.editTemplate(o))}),e.OEk(4),e.C$Y(),e.I0R(5,"td"),e.OEk(6),e.C$Y(),e.I0R(7,"td"),e.OEk(8),e.C$Y(),e.I0R(9,"td"),e.OEk(10),e.C$Y()()}if(2&a){const t=s.$implicit,i=s.index;e.yG2(2),e.cNF(i+1),e.yG2(2),e.oRS(" ",t.templateName," "),e.yG2(2),e.cNF(t.createdBy),e.yG2(2),e.cNF(t.createdDate),e.yG2(2),e.oRS(" ",t.updatedDate?t.updatedDate:"\u2014"," ")}}function O(a,s){if(1&a){const t=e.KQA();e.I0R(0,"div",4)(1,"div",5)(2,"div",6)(3,"div")(4,"h3",7),e.OEk(5," Invoice Template List "),e.C$Y()(),e.I0R(6,"div")(7,"ion-button",8),e.qCj("click",function(){e.usT(t);const n=e.GaO();return e.CGJ(n.toggleAddInvoice())}),e.wR5(8,"ion-icon",9),e.OEk(9,"\xa0Add New Invoice Template "),e.C$Y()()(),e.I0R(10,"div")(11,"table")(12,"thead")(13,"tr")(14,"th"),e.OEk(15,"Sr.No."),e.C$Y(),e.I0R(16,"th"),e.OEk(17,"Template Name"),e.C$Y(),e.I0R(18,"th"),e.OEk(19,"Created by"),e.C$Y(),e.I0R(20,"th"),e.OEk(21,"Created Date"),e.C$Y(),e.I0R(22,"th"),e.OEk(23,"Updated Date"),e.C$Y()()(),e.I0R(24,"tbody"),e.yuY(25,T,11,5,"tr",10),e.C$Y()()()()()}if(2&a){const t=e.GaO();e.yG2(25),e.E7m("ngForOf",t.templates.slice().reverse())}}function P(a,s){1&a&&e.C_f(0)}function x(a,s){if(1&a&&(e.I0R(0,"div",4)(1,"div",5),e.yuY(2,P,1,0,"ng-container",12),e.C$Y()()),2&a){e.GaO();const t=e.Gew(10);
1e.yG2(2),e.E7m("ngTemplateOutlet",t)}}function M(a,s){if(1&a){const t=e.KQA();e.I0R(0,"div",4)(1,"input",25),e.iHE("ngModelChange",function(n){const c=e.usT(t).$implicit;return e.kNx(c.itemdesc,n)||(c.itemdesc=n),e.CGJ(n)}),e.C$Y(),e.I0R(2,"div",26)(3,"input",27),e.iHE("ngModelChange",function(n){const c=e.usT(t).$implicit;return e.kNx(c.quantity,n)||(c.quantity=n),e.CGJ(n)}),e.qCj("keypress",function(n){e.usT(t);const o=e.GaO(2);return e.CGJ(o.validateNumber(n))}),e.C$Y(),e.I0R(4,"input",28),e.iHE("ngModelChange",function(n){const c=e.usT(t).$implicit;return e.kNx(c.price,n)||(c.price=n),e.CGJ(n)}),e.qCj("input",function(n){const c=e.usT(t).$implicit,N=e.GaO(2);return e.CGJ(N.formatPrice(n,c))})("keypress",function(n){e.usT(t);const o=e.GaO(2);return e.CGJ(o.validateNumber(n))}),e.C$Y()()()}if(2&a){const t=s.$implicit,i=s.index;e.yG2(),e.CI5("id","itemdesc",i,"")("name","itemdesc",i,""),e.OKB("ngModel",t.itemdesc),e.yG2(2),e.CI5("id","quantity",i,"")("name","quantity",i,""),e.OKB("ngModel",t.quantity),e.yG2(),e.CI5("id","price",i,"")("name","price",i,""),e.OKB("ngModel",t.price)}}function y(a,s){if(1&a){const t=e.KQA();e.I0R(0,"ion-button",29),e.qCj("click",function(){e.usT(t);const n=e.GaO(2);return e.CGJ(n.deleteItem())}),e.wR5(1,"ion-icon",30),e.OEk(2,"\xa0Delete Item "),e.C$Y()}}function G(a,s){if(1&a){const t=e.KQA();e.I0R(0,"div",4)(1,"div",13)(2,"div",14)(3,"div")(4,"h3",7),e.OEk(5),e.C$Y()(),e.I0R(6,"div")(7,"ion-button",15),e.qCj("click",function(){e.usT(t);const n=e.GaO();return e.CGJ(n.showAddInvoice=!1)}),e.wR5(8,"ion-icon",16),e.C$Y()()(),e.I0R(9,"div")(10,"form",17),e.qCj("ngSubmit",function(){e.usT(t);const n=e.GaO();return e.CGJ(n.addOrUpdateTemplate())}),e.I0R(11,"input",18),e.iHE("ngModelChange",function(n){e.usT(t);const o=e.GaO();return e.kNx(o.invoiceDetails.templateName,n)||(o.invoiceDetails.templateName=n),e.CGJ(n)}),e.C$Y(),e.I0R(12,"textarea",19),e.iHE("ngModelChange",function(n){e.usT(t);const o=e.GaO();return e.kNx(o.invoiceDetails.description,n)||(o.invoiceDetails.description=n),e.CGJ(n)}),e.C$Y(),e.yuY(13,M,5,9,"div",20),e.I0R(14,"div",21)(15,"ion-button",8),e.qCj("click",function(){e.usT(t);const n=e.GaO();return e.CGJ(n.addItem())}),e.wR5(16,"ion-icon",9),e.OEk(17,"\xa0Add Item "),e.C$Y(),e.yuY(18,y,3,0,"ion-button",22),e.C$Y(),e.I0R(19,"div",23)(20,"ion-button",24),e.OEk(21),e.C$Y()()()()()()}if(2&a){const t=e.GaO();e.yG2(5),e.oRS(" ",t.isEditing?"EDIT":"ADD"," INVOICE TEMPLATE "),e.yG2(6),e.OKB("ngModel",t.invoiceDetails.templateName),e.yG2(),e.OKB("ngModel",t.invoiceDetails.description),e.yG2(),e.E7m("ngForOf",t.invoiceDetails.items),e.yG2(5),e.E7m("ngIf",t.invoiceDetails.items.length>1),e.yG2(3),e.oRS(" ",t.isEditing?"Update":"Save"," ")}}const b=[{path:"",component:(()=>{class a{firebaseApi;userProvider;UtilService;showAddInvoice=!1;isEditing=!1;editTemplateId=null;invoiceDetails={templateName:"",description:"",items:[{itemdesc:"",quantity:null,price:null}]};templates=[];constructor(t,i,n){this.firebaseApi=t,this.userProvider=i,this.UtilService=n}ngOnInit(){this.ionViewWillEnter()}ionViewWillEnter(){var t=this;return(0,u.c)(function*(){let i=yield t.firebaseApi.findAll("invoiceTemplate");i.length>0&&(t.templates=i,console.log("Updated templates list:",t.templates))})()}loadTemplatesFromLocalStorage(){const t=localStorage.getItem("invoiceTemp");this.templates=t?JSON.parse(t):[]}toggleAddInvoice(){this.showAddInvoice=!this.showAddInvoice,this.clearForm(),this.isEditing=!1,this.editTemplateId=null}addOrUpdateTemplate(){var t=this;return(0,u.c)(function*(){if(!t.invoiceDetails.templateName||!t.invoiceDetails.templateName.trim())return void t.UtilService.createErrorAlert(null,"Template Name is required");const i=(new Date).toLocaleDateString();if(t.isEditing&&null!==t.editTemplateId){const n=t.templates.findIndex(o=>o.id===t.editTemplateId);-1!==n&&(t.templates[n]={...t.templates[n],...t.invoiceDetails,updatedDate:i},yield t.firebaseApi.updateOne("invoiceTemplate",t.editTemplateId,t.templates[n]))}else{if(t.templates.find(c=>c.templateName&&c.templateName.trim().toLowerCase()===t.invoiceDetails.templateName.trim().toLowerCase()))return void t.UtilService.createErrorAlert(null,"Template with this name already exists!");const o={id:t.templates.length+1,...t.invoiceDetails,createdBy:t.userProvider.loggedInUser.firstName,createdById:t.userProvider.loggedInUser.id,createdDate:i,updatedDate:null};t.templates.push(o),yield t.firebaseApi.insertOne("invoiceTemplate",o)}console.log("template",t.templates),t.clearForm(),t.showAddInvoice=!1})()}editTemplate(t){this.invoiceDetails={templateName:t.templateName,description:t.description,items:t.items.map(i=>({...i}))},this.isEditing=!0,this.editTemplateId=t.id,this.showAddInvoice=!0}addItem(){this.invoiceDetails.items.push({itemdesc:"",quantity:null,price:null}),console.log("all-items---------\x3e",this.invoiceDetails.items)}deleteItem(){this.invoiceDetails.items.length>0?(this.invoiceDetails.items.pop(),console.log("Item deleted. Remaining items:",this.invoiceDetails.items)):console.log("No items to delete.")}clearForm(){this.invoiceDetails={templateName:"",description:"",items:[{itemdesc:"",quantity:null,price:null}]},this.isEditing=!1,this.editTemplateId=null}formatPrice(t,i){let n=t.target.value.replace(/\D/g,"");if(n.length<3)return void(i.price=n);let o=n.slice(0,-2)+"."+n.slice(-2);i.price=o}
1validateNumber(t){const i=t.which?t.which:t.keyCode;46!==i&&i>31&&(i<48||i>57)&&t.preventDefault()}static \u0275fac=function(i){return new(i||a)(e.GI1(_.H),e.GI1(v.e),e.GI1(C.e))};static \u0275cmp=e.In1({type:a,selectors:[["app-invoice-template"]],decls:11,vars:2,consts:[[1,"main-div"],[1,"w-100","scroll"],["class","w-100",4,"ngIf"],["addInvoice",""],[1,"w-100"],[1,"temp-list"],[1,"flex","f-just-btw","f-align-center"],[1,"bold-500","margin-0"],[1,"btn-primary",3,"click"],["name","add-outline"],[4,"ngFor","ngForOf"],[1,"purple","cursor",3,"click"],[4,"ngTemplateOutlet"],[1,"add-invoice"],[1,"flex","f-align-center","f-just-btw"],["fill","clear",3,"click"],["name","close-circle-outline"],[3,"ngSubmit"],["type","text","id","templateName","name","templateName","placeholder","Template Name","required","",3,"ngModel","ngModelChange"],["id","description","name","description","rows","4","placeholder","Description","required","",2,"resize","none",3,"ngModel","ngModelChange"],["class","w-100",4,"ngFor","ngForOf"],[1,"flex","f-align-center","f-just-btw","w-100"],["class","btn-sec",3,"click",4,"ngIf"],[1,"flex","f-align-center","f-just-center","w-100"],["type","submit",1,"btn-primary"],["placeholder","Item Description","required","","type","text",3,"id","name","ngModel","ngModelChange"],[1,"w-100","flex","f-align-center","f-just-btw",2,"gap","10px"],["placeholder","Quantity","required","","type","text",3,"id","name","ngModel","ngModelChange","keypress"],["placeholder","Price","required","","type","text",3,"id","name","ngModel","ngModelChange","input","keypress"],[1,"btn-sec",3,"click"],["name","close-circle-outline",1,"red"]],template:function(i,n){1&i&&(e.wR5(0,"app-header"),e.I0R(1,"ion-content"),e.wR5(2,"app-pop-chats"),e.I0R(3,"div",0)(4,"div"),e.wR5(5,"app-menu-module"),e.C$Y(),e.I0R(6,"div",1),e.yuY(7,O,26,1,"div",2)(8,x,3,1,"div",2),e.C$Y()()(),e.yuY(9,G,22,6,"ng-template",null,3,e.gJz)),2&i&&(e.yG2(7),e.E7m("ngIf",!n.showAddInvoice),e.yG2(),e.E7m("ngIf",n.showAddInvoice))}
1,dependencies:[d.ay,d.u_,d.XV,r.sz,r.ot,r.ue,r.u,r.eJ,r._G,r.SC,p.sn,p._i,p.Ko,f.a,h.o,I.k],styles:[".temp-list[_ngcontent-%COMP%]{width:95%;padding:30px;margin:30px;box-shadow:#00000029 0 1px 4px;border-radius:5px;border-top:3px solid #6c63ff}.temp-list[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]{width:100%}.temp-list[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]{border-bottom:1px solid #efefef;height:45px}.temp-list[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:hover{background-color:#efefef}.temp-list[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{width:20%;text-align:center;letter-spacing:1px;font-size:16px}.temp-list[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:nth-child(1){width:10%;text-align:center}.temp-list[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]:nth-child(2){width:30%;text-align:start}.temp-list[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{text-align:center;letter-spacing:1px;font-size:16px}.temp-list[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:nth-child(1){width:10%;text-align:center}.temp-list[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]:nth-child(2){width:30%;text-align:start}.temp-list[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   thead[_ngcontent-%COMP%]:hover   th[_ngcontent-%COMP%]{background-color:#fff}.add-invoice[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;flex-direction:column;width:100%}.add-invoice[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .add-invoice[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{width:100%;padding:10px!important;background-color:#fff;border:1px solid rgba(0,0,0,.1882352941);border-radius:5px;margin:10px 0;letter-spacing:1px;font-size:16px}input[type=number][_ngcontent-%COMP%]::-webkit-inner-spin-button, input[type=number][_ngcontent-%COMP%]::-webkit-outer-spin-button{appearance:none;margin:0}"]})}return a})()}];let D=(()=>{class a{static \u0275fac=function(i){return new(i||a)};static \u0275mod=e.a4G({type:a});static \u0275inj=e.s3X({imports:[g.qQ.forChild(b),g.qQ]})}return a})();var E=l(87560),R=l(60338),w=l(48396);let k=(()=>{class a{static \u0275fac=function(i){return new(i||a)};static \u0275mod=e.a4G({type:a});static \u0275inj=e.s3X({imports:[d.MD,r.y,p.wZ,D,E.l,R.W,w.S]})}return a})()}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.