PageSourceSearch

https://qr.waccsa.co.za/chunk-GS7Z4XNL.js

js waccsa.co.za collected 2026-09-24 14:07:58 UTC 12,226 bytes, 1 lines download raw bytes

1import{a as ue}from"./chunk-BALFWXGG.js";import{a as ce}from"./chunk-BETNUCMY.js";import{a as de}from"./chunk-JAIHTDGU.js";import{c as ee,e as te,m as ie,o as le,q as se,r as me,t as pe}from"./chunk-UKCNJRKT.js";import"./chunk-3X32PWK7.js";import{a as ne,b as re,c as oe,d as ae}from"./chunk-PZY5AE25.js";import{b as U}from"./chunk-7BHJHZHQ.js";import{a as J}from"./chunk-7BRRAMFT.js";import"./chunk-UV2H4JDA.js";import{c as W,e as K}from"./chunk-TB4KS5AR.js";import"./chunk-XL3L2B3E.js";import"./chunk-ESSQBINH.js";import{a as V}from"./chunk-RGZS4OQ7.js";import{a as $,c as Q}from"./chunk-RDRSN6DH.js";import"./chunk-TFKTW6S4.js";import{y as Y,z as X}from"./chunk-RRROZGQ5.js";import{a as q}from"./chunk-JC6TR6WC.js";import{c as Z}from"./chunk-XFHM6F55.js";import{c as F,e as D,f as z}from"./chunk-KOAPA33Y.js";import{K as G}from"./chunk-CW4CKOZJ.js";import"./chunk-4BEIWHAS.js";import{j as A,k as j,s as O,u as R,v as P}from"./chunk-D47FDHRL.js";import{Db as k,Jb as b,Nc as u,Oc as L,Pc as f,Xb as o,Yb as n,Zb as t,_b as m,cc as v,dc as _,fb as g,fc as B,g as I,jc as N,lc as x,mb as r,pc as w,qc as S,rc as C,sb as H,xb as d,xc as a,ya as T,yc as y,za as M}from"./chunk-LSFMG3PD.js";var ye=["searchBoxContainer"],we=["paginationContainer"];function Se(i,l){i&1&&(n(0,"p",26),a(1," Swipe sideways for more options "),t())}function Ce(i,l){i&1&&(n(0,"p",27),a(1," Please check the information on the coc sample is correct before downloading/paying. COC'S in sample or once downloaded cannot be changed. If the information is incorrect please redo the form. "),t())}function Ee(i,l){i&1&&(n(0,"tr",30)(1,"td",21),m(2,"div",31),t(),n(3,"td",21),m(4,"div",32),t(),n(5,"td",21),m(6,"div",33),t(),n(7,"td",21),m(8,"div",34),t(),n(9,"td",21),m(10,"div",35),t(),n(11,"td",21),m(12,"div",36),t(),n(13,"td",21),m(14,"div",37),t()())}function Ie(i,l){if(i&1&&(n(0,"tbody",28),b(1,Ee,15,0,"tr",29),t()),i&2){let e=x();r(),o("ngForOf",e.skeletonRows)}}function Te(i,l){i&1&&(n(0,"tr")(1,"td",40),a(2," No results have been found "),t()())}function Me(i,l){if(i&1&&(v(0),m(1,"span",43),u(2,"algoliaHighlight"),_()),i&2){let e=x().$implicit;r(),o("innerHTML",f(2,1,e,"geyser_number"),g)}}function He(i,l){if(i&1&&(v(0),m(1,"span",43),u(2,"algoliaHighlight"),_()),i&2){let e=x().$implicit;r(),o("innerHTML",f(2,1,e,"replacement_geyser_serial"),g)}}function ke(i,l){if(i&1&&(v(0),m(1,"span",43),u(2,"algoliaHighlight"),_()),i&2){let e=x().$implicit;r(),o("innerHTML",f(2,1,e,"heat_pump_number"),g)}}function Be(i,l){if(i&1&&(v(0),m(1,"span",43),u(2,"algoliaHighlight"),_()),i&2){let e=x().$implicit;r(),o("innerHTML",f(2,1,e,"replacement_heat_pump_serial"),g)}}function Ne(i,l){i&1&&(n(0,"mat-icon",53),a(1,"build"),t())}function Le(i,l){i&1&&(n(0,"mat-icon",54),a(1,"close"),t())}function Ae(i,l){i&1&&(n(0,"mat-icon",55),a(1,"warning"),t())}function je(i,l){if(i&1&&(n(0,"tr",41)(1,"td",42),m(2,"span",43),u(3,"algoliaHighlight"),t(),n(4,"td",44),b(5,Me,3,4,"ng-container",38)(6,He,3,4,"ng-container",38)(7,ke,3,4,"ng-container",38)(8,Be,3,4,"ng-container",38),t(),n(9,"td",45)(10,"a",46),m(11,"span",43),u(12,"algoliaHighlight"),t()(),n(13,"td",44),m(14,"span",43),u(15,"algoliaHighlight"),m(16,"span",43),u(17,"algoliaHighlight"),t(),n(18,"td",44),a(19),u(20,"date"),t(),n(21,"td",44),a(22),t(),n(23,"td",47)(24,"a",48),b(25,Ne,2,0,"mat-icon",49)(26,Le,2,0,"mat-icon",50)(27,Ae,2,0,"mat-icon",51),n(28,"mat-icon",52),a(29,"visibility"),t()()()()),i&2){let e=l.$implicit,s=x(2);r(2),o("innerHTML",f(3,15,e,"count"),g),r(3),o("ngIf",e==null?null:e.geyser_number),r(),o("ngIf",e==null?null:e.replacement_geyser_serial),r(),o("ngIf",e==null?null:e.heat_pump_number),r(),o("ngIf",e==null?null:e.replacement_heat_pump_serial),r(2),o("routerLink","/profile/"+(e==null?null:e.uid)),r(),o("innerHTML",f(12,18,e,"name"),g),r(3),o("innerHTML",f(15,21,e,"installation_address"),g),r(2),o("innerHTML",f(17,24,e,"site_address"),g),r(3),y(f(20,27,e==null?null:e.sub_date,"medium")),r(3),y(s.setName(e==null?null:e.type)),r(2),o("routerLink",e.type+"/"+e.objectID),r(),o("ngIf",(e==null?null:e.refix)==1),r(),o("ngIf",(e==null?null:e.refix)==3),r(),o("ngIf",(e==null?null:e.non_compliance)=="No")}}function Oe(i,l){if(i&1&&(n(0,"tbody",28),b(1,Te,3,0,"tr",38)(2,je,30,30,"tr",39),t()),i&2){let e=x();r(),o("ngIf",e.hits.length===0),r(),o("ngForOf",e.hits)}}var fe=(()=>{let l=class l{constructor(s,c,p,h,E,ge,he,xe,be,ve,_e){this.firestore=s,this.toast=c,this.spinner=p,this.s=h,this.router=E,this.a=ge,this.route=he,this.coc=xe,this.ngZone=be,this.storage=ve,this.auth=_e,this.subs=[],this.filters=null,this.hits=[],this.totalHits=0,this.isAdmin=!1,this.loading=!0,this.skeletonRows=Array(8),this.algoliaHelper=new de,window.onresize=()=>this.mobile=window.innerWidth<=991,this.getCoc()}ngOnInit(){}ngAfterViewInit(){}initSearch(){this.algoliaHelper.init({indexName:"submissions",searchBoxContainer:this.searchBoxContainer.nativeElement,paginationContainer:this.paginationContainer.nativeElement,hitsPerPage:15,filters:this.filters,placeholder:"Search COCs",onLoadingChange:s=>this.ngZone.run(()=>this.loading=s),onHitsChange:(s,c)=>{this.ngZone.run(()=>{this.hits=s,this.totalHits=c,this.loading=!1})}})}nav(s){this.router.navigate([s.type+"/"+s.objectID])}getCoc(){return I(this,null,function*(){switch(this.user=yield this.a.getUser(),this.user.type){case"Plumber":this.filters=`uid:${this.user.uid} AND status:approved`;break;case"admin":this.isAdmin=!0,this.route.queryParams.subscribe(s=>{s.org?this.filters="status:approved AND org:QRbhTs1OKf27IuB860Og":this.filters="status:approved",setTimeout(()=>this.initSearch())});return;case"Company":this.filters=`parent:${this.user.uid} AND status:approved`;break;case"insurance":this.filters=`insurance:${this.user.comp}`;break;case"manufacture":this.filters=this.filters=`manufacture:${this.user.comp}`;break;case"province":this.router.navigate(["downloads"]);break;case"municipal":this.router.navigate(["downloads"]);break}setTimeout(()=>this.initSearch())})}
1ngOnDestroy(){this.algoliaHelper.dispose()}setName(s){switch(s){case"/view-nuflow":return"Nu Flow Job Card";case"/view-magneto-thermal-tank":return"Thermal tank installation";case"/view-solar":return"Solar installation";case"/view-solar-replacement":return"Solar geyser replacement";case"/view-heat-pump":return"Heat pump";case"/view-prisma":return"Prisma installation";case"/view-electric":return"Electric installation";case"/view-general-certificate":return"General certificate";case"/view-retrofit":return"Retro fit solar system";case"/view-gravity-fed":return"Gravity fed";case"/view-anode":return"Anode replacement";case"/view-prv":return"Pressure reducing valve replacement";case"/view-vacuum":return"Vacuum replacement";case"/view-element":return"Element replacement";case"/view-thermostat":return"Thermostat replacement";case"/view-noc":return"Notice of compliance";case"/view-sale-of-property":return"Sale of property";case"/view-retro-fit":return"Retro fit solar system";case"wacc-card":return"Wacc Card";case"/view-invoice":return"Invoice"}}stringify(s){return JSON.stringify(s)}navG(){this.algoliaHelper.clearCache().then(()=>{location.reload()})}show(s){console.log(s)}};l.\u0275fac=function(c){return new(c||l)(d(Z),d(V),d($),d(U),d(D),d(q),d(F),d(ue),d(H),d(J),d(G))},l.\u0275cmp=k({type:l,selectors:[["app-submissions"]],viewQuery:function(c,p){if(c&1&&(w(ye,5),w(we,5)),c&2){let h;S(h=C())&&(p.searchBoxContainer=h.first),S(h=C())&&(p.paginationContainer=h.first)}},decls:51,vars:7,consts:[["searchBoxContainer",""],["paginationContainer",""],[1,"main-content"],[1,"mx-auto","w-full","max-w-[1500px]","px-1"],[1,"overflow-hidden","rounded-2xl","border","border-slate-200","bg-white","shadow-sm"],[1,"border-b","border-slate-200","px-5","py-5","sm:px-6"],[1,"flex","flex-wrap","items-start","justify-between","gap-4"],[1,"flex","min-w-0","items-center","gap-4"],[1,"flex","h-14","w-14","shrink-0","items-center","justify-center","rounded-xl","bg-slate-900","text-white","shadow-md"],[1,"material-icons","text-[26px]"],[1,"min-w-0"],[1,"truncate","text-2xl","font-semibold","text-slate-800"],[1,"mt-1","text-sm","text-slate-500"],[1,"inline-flex","items-center","rounded-lg","bg-blue-600","px-4","py-2","text-sm","font-semibold","text-white","shadow-sm","transition-colors","hover:bg-blue-700",3,"click"],["class","mt-4 rounded-lg border border-amber-200 bg-amber-50 px-3 py-2 text-center text-sm font-medium text-amber-700",4,"ngIf"],["class","mt-4 rounded-lg border border-red-200 bg-red-50 px-4 py-3 text-center text-sm font-semibold text-red-600",4,"ngIf"],[1,"space-y-4","px-5","py-5","sm:px-6"],[1,"overflow-hidden","rounded-xl","border","border-slate-200"],[1,"overflow-x-auto"],[1,"w-full","min-w-[980px]","text-left"],[1,"bg-slate-800","text-xs","font-semibold","uppercase","tracking-wider","text-slate-100"],[1,"px-4","py-3"],["class","divide-y divide-slate-100 bg-white",4,"ngIf"],[1,"flex","flex-wrap","items-center","justify-between","gap-4","border-t","border-slate-100","px-2","pt-5"],[1,"text-sm","text-slate-500"],[1,"font-semibold","text-slate-800"],[1,"mt-4","rounded-lg","border","border-amber-200","bg-amber-50","px-3","py-2","text-center","text-sm","font-medium","text-amber-700"],[1,"mt-4","rounded-lg","border","border-red-200","bg-red-50","px-4","py-3","text-center","text-sm","font-semibold","text-red-600"],[1,"divide-y","divide-slate-100","bg-white"],["class","animate-pulse",4,"ngFor","ngForOf"],[1,"animate-pulse"],[1,"h-4","w-8","rounded","bg-slate-200"],[1,"h-4","w-28","rounded","bg-slate-200"],[1,"h-4","w-24","rounded","bg-slate-200"],[1,"h-4","w-40","rounded","bg-slate-200"],[1,"h-4","w-32","rounded","bg-slate-200"],[1,"h-4","w-20","rounded","bg-slate-200"],[1,"h-4","w-10","rounded","bg-slate-200"],[4,"ngIf"],["class","align-top transition-colors hover:bg-slate-50",4,"ngFor","ngForOf"],["colspan","7",1,"px-4","py-10","text-center","text-sm","font-medium","text-slate-500"],[1,"align-top","transition-colors","hover:bg-slate-50"],[1,"px-4","py-3","text-sm","font-semibold","text-slate-800"],[3,"innerHTML"],[1,"px-4","py-3","text-sm","text-slate-700"],[1,"px-4","py-3","text-sm"],[1,"font-semibold","text-blue-700","underline-offset-2","hover:text-blue-800","hover:underline",3,"routerLink"],[1,"relative","p-0","text-sm"],[1,"absolute","
1inset-0","flex","items-center","gap-1.5","px-4","text-blue-700","hover:text-blue-800",3,"routerLink"],["matTooltip","Marked for refix","color","warning","class","pointer",4,"ngIf"],["matTooltip","Suspended","color","warning","class","pointer",4,"ngIf"],["color","warn","matTooltip","Non compliant submission","class","pointer",4,"ngIf"],["color","primary","matTooltip","View",1,"pointer"],["matTooltip","Marked for refix","color","warning",1,"pointer"],["matTooltip","Suspended","color","warning",1,"pointer"],["color","warn","matTooltip","Non compliant submission",1,"pointer"]],template:function(c,p){if(c&1){let h=B();n(0,"div",2)(1,"div",3)(2,"section",4)(3,"div",5)(4,"div",6)(5,"div",7)(6,"div",8)(7,"i",9),a(8,"assignment"),t()(),n(9,"div",10)(10,"h1",11),a(11,"COC history"),t(),n(12,"p",12),a(13,"Review and manage approved submissions."),t()()(),n(14,"button",13),N("click",function(){return T(h),M(p.navG())}),a(15," Refresh "),t()(),b(16,Se,2,0,"p",14)(17,Ce,2,0,"p",15),t(),n(18,"div",16),m(19,"div",null,0),n(21,"div",17)(22,"div",18)(23,"table",19)(24,"thead",20)(25,"tr")(26,"th",21),a(27,"N#"),t(),n(28,"th",21),a(29,"Serial number"),t(),n(30,"th",21),a(31,"Plumber"),t(),n(32,"th",21),a(33,"Address"),t(),n(34,"th",21),a(35,"Submission date"),t(),n(36,"th",21),a(37,"Type"),t(),n(38,"th",21),a(39,"Actions"),t()()(),b(40,Ie,2,1,"tbody",22)(41,Oe,3,2,"tbody",22),t()()(),n(42,"div",23)(43,"p",24),a(44," Showing "),n(45,"span",25),a(46),u(47,"number"),t(),a(48," total records "),t(),m(49,"div",null,1),t()()()()()}c&2&&(r(16),o("ngIf",p.mobile),r(),o("ngIf",!p.isAdmin),r(23),o("ngIf",p.loading),r(),o("ngIf",!p.loading&&p.filters),r(5),y(L(47,5,p.totalHits)))},dependencies:[P,A,j,W,re,ne,ie,K,ae,oe,le,se,te,me,ee,pe,Y,X,Q,z,R,O,ce],styles:["h1[_ngcontent-%COMP%], main[_ngcontent-%COMP%]{text-align:center}"]});let i=l;return i})();var ht=[{path:"",children:[{path:"submissions",component:fe}]}];export{ht as StoreRoutes};

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.