1import{a as Q,b as y,c as ce}from"./chunk-TYJCUGGL.js";import"./chunk-QROLBOKH.js";import{a as le}from"./chunk-FXQ5ITI2.js";import"./chunk-GIDJVD54.js";import"./chunk-72DQ4U6K.js";import"./chunk-25YTDFSJ.js";import{a as j,c as X}from"./chunk-FEM5WDYS.js";import{k as x,l as W}from"./chunk-4HEIS64P.js";import"./chunk-TQBFZH74.js";import"./chunk-CAFQQJ3Z.js";import"./chunk-NTEZ6HBD.js";import"./chunk-LKHYAKIP.js";import{a as Y,b as Z,c as ee,d as te,e as oe,f as ie,g as re,h as ne,i as ae,j as me,l as se,m as ue}from"./chunk-QCAG6HG6.js";import"./chunk-HZ3WYMWQ.js";import"./chunk-ARZGPVXK.js";import{b as G}from"./chunk-QF27IOQE.js";import{c as z}from"./chunk-OWUF4SRJ.js";import"./chunk-WBTZD3PJ.js";import"./chunk-J6U6M7TF.js";import"./chunk-IR2QGIVV.js";import"./chunk-WU5OWFCN.js";import"./chunk-F5IQZLEF.js";import"./chunk-ARHRSX7S.js";import"./chunk-7WOG2EAO.js";import{d as O}from"./chunk-TMOWVKQC.js";import"./chunk-MYI3YS2M.js";import"./chunk-3PGMBZAP.js";import"./chunk-VT7CJSCD.js";import"./chunk-DLH4J2ZV.js";import"./chunk-A43BTBOJ.js";import"./chunk-67IT4HQ6.js";import"./chunk-2BXTPQTP.js";import"./chunk-JED7GRQQ.js";import"./chunk-ZECF2WJA.js";import"./chunk-PNYSZFNB.js";import"./chunk-Y3MTRBLK.js";import"./chunk-XMBPLYUK.js";import"./chunk-QRMJLQVM.js";import"./chunk-24HYNKH3.js";import{a as J}from"./chunk-D4PVEYVW.js";import"./chunk-XQ3OH5B7.js";import"./chunk-DE65ZGA7.js";import"./chunk-65I45D2I.js";import"./chunk-GZL4NBTB.js";import{a as B}from"./chunk-OMIAKVTT.js";import{D as K,k as L,r as U,t as V}from"./chunk-3XCK7DOC.js";import"./chunk-PJWNDC7A.js";import{M as $,N as A}from"./chunk-QDFFLVTB.js";import"./chunk-JIVZONLP.js";import"./chunk-S43ITSQ5.js";import{e as H,h as q,i as P,k as R}from"./chunk-5FWAKVG3.js";import{z as N}from"./chunk-KAXBUATZ.js";import{$c as D,Cc as p,Dc as n,Dd as k,Ec as i,Fa as C,Fc as d,Jb as l,Jc as M,Kc as S,Vc as _,Wb as s,ad as b,bc as h,bd as T,cc as v,gc as c,jd as a,kd as E,ld as F}from"./chunk-XW6AEKHB.js";import{l as f}from"./chunk-6G35VSEK.js";var w=(()=>{class e{constructor(o,t,r){this.customerQuotesService=o,this.utilitiesService=t,this.modal=r}ngOnInit(){}onSave(o){return f(this,null,function*(){let t=yield this.customerQuotesService.create(o);t&&t.success?this.modal.close(t.data):this.utilitiesService.alert({header:"Error",message:t.message?t.message:"Unknown error."})})}static{this.\u0275fac=function(t){return new(t||e)(s(Q),s(B),s(U))}}static{this.\u0275cmp=h({type:e,selectors:[["app-create"]],decls:4,vars:0,consts:[[1,"p-4"],[3,"save"]],template:function(t,r){t&1&&(n(0,"div",0)(1,"h3"),a(2,"Create customer quotes"),i(),n(3,"app-form",1),_("save",function(de){return r.onSave(de)}),i()())},dependencies:[y],encapsulation:2})}}return e})();var he=e=>[e];function ve(e,m){e&1&&(n(0,"th",16),a(1,"Name"),i())}function Me(e,m){if(e&1&&(n(0,"td",17)(1,"a",18),a(2),i()()),e&2){let o=m.$implicit;l(),p("routerLink",k(2,he,o.PK)),l(),E(o.name)}}function Se(e,m){e&1&&(n(0,"th",16),a(1,"Job title"),i())}function _e(e,m){if(e&1&&(n(0,"td",17),a(1),i()),e&2){let o=m.$implicit;l(),E(o.jobTitle)}}function Qe(e,m){e&1&&(n(0,"th",16),a(1,"Status"),i())}function ye(e,m){if(e&1&&(n(0,"td",17),a(1),i()),e&2){let o=m.$implicit;l(),F(" ",o.status," ")}}function we(e,m){e&1&&d(0,"tr",19)}function ge(e,m){e&1&&d(0,"tr",20)}var g=(()=>{class e{constructor(o,t,r,u){this.customerQuotesService=o,this.modal=t,this.router=r,this.route=u,this.columnsToDisplay=["name","jobTitle","status"],this.dataSourceCustomerQuotes=new ue([]),this.subscription$=[]}ngOnInit(){this.subscription$.push(this.customerQuotesService.onChanged(o=>{this.dataSourceCustomerQuotes.data=o,this.dataSourceCustomerQuotes.paginator=this.paginator,this.dataSourceCustomerQuotes.sort=this.sort})),this.customerQuotesService.load(!0)}create(){return f(this,null,function*(){let o=yield this.modal.open(w,{size:"lg"});try{let t=yield o.result;this.router.navigate([t.PK],{relativeTo:this.route})}catch{}})}filter(){}static{this.\u0275fac=function(t){return new(t||e)(s(Q),s(V),s(q),s(H))}}static{this.\u0275cmp=h({type:e,selectors:[["app-customer-quotes"]],viewQuery:function(t,r){if(t&1&&(D(x,5),D(j,7)),t&2){let u;b(u=T())&&(r.paginator=u.first),b(u=T())&&(r.sort=u.first)}},decls:22,vars:3,consts:[[1,"container-fluid","py-3"],[1,"mb-1"],[1,"row","my-3"],[1,"col-md","my-auto"],[1,"btn","btn-primary",3,"click"],[1,"col-md"],[1,"card"],["mat-table","","matSort","","matSortActive","name","matSortDirection","asc",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","jobTitle"],["matColumnDef","status"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons",""],["mat-header-cell",""],["mat-cell",""],[3,"routerLink"],["mat-header-row",""],["mat-row",""]],template:function(t,r){t&1&&(n(0,"div",0)(1,"h1",1),a(2,"Customer quote/feedback"),i(),n(3,"div",2)(4,"div",3)(5,"button",4),_("click",function(){return r.create()}),a(6,"Create"),i()(),d(7,"div",5),i(),n(8,"div",6)(9,"table",7),M(10,8),c(11,ve,2,0,"th",9)(12,Me,3,4,"td",10),S(),M(13,11),c(14,Se,2,0,"th",9)(15,_e,2,1,"td",10),S(),M(16,12),c(17,Qe,2,0,"th",9)(18,ye,2,1,"td",10),S(),c(19,we,1,0,"tr",13)(20,ge,1,0,"tr",14),i(),d(21,"mat-paginator",15),i()()),t&2&&(l(9),p("dataSource",r.dataSourceCustomerQuotes),l(10),p("matHeaderRowDef",r.columnsToDisplay),l(),p("matRowDefColumns",r.columnsToDisplay))},dependencies:[Y,j,te,ee,oe,Z,ie,P,re,ae,ne,me,x],encapsulation:2})}}return e})();var De=[{path:"",component:g},{path:":id",loadChildren:()=>import("./chunk-Y67UXSRC.js").then(e=>e.ViewModule)}],pe=(()=>{class e{static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275mod=v({type:e})}static{this.\u0275inj=C({imports:[R.forChild(De),R]})}}return e})();var it=(()=>{class e{static{this.\u0275fac=function(t){return new(t||e)}}static{this.\u0275mod=v({type:e})}static{this.\u0275inj=C({imports:[N,pe,se,W,X,A,$,J,le,O.forChild(),K,G,L,z,w,y,g,ce]})}}return e})();
1export{it as CustomerQuotesModule};
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.