1import{b as M}from"./chunk-2FOVCDGT.js";import{a as k}from"./chunk-RYBKRSDN.js";import{a as N}from"./chunk-5XFC5N3E.js";import{f as _}from"./chunk-LREX7LF7.js";import"./chunk-LLLK2R7L.js";import{b as w}from"./chunk-EWWVPJWD.js";import{A as T}from"./chunk-HH2BRZGJ.js";import{Fc as E,Gb as d,Hb as p,Kb as h,Lb as C,Mb as c,Nb as t,Ob as n,Pb as f,Ta as v,Za as r,Zb as m,ca as u,eb as b,kc as i,lc as g,mc as S,nb as y,ra as s,wc as x}from"./chunk-W4JD2ITM.js";var D=e=>["/",e],L=(e,a)=>a.companyNumber;function U(e,a){if(e&1&&(t(0,"p",8)(1,"a",14),i(2,"Log in"),n(),i(3," to view the Full Company Reports. "),n()),e&2){let o=m();r(),c("routerLink",x(1,D,o.UrlElements.LOGIN))}}function P(e,a){e&1&&(t(0,"div",10)(1,"output",15)(2,"span",16),i(3,"Loading..."),n()()())}function F(e,a){if(e&1&&(t(0,"div",11),f(1,"i",17),t(2,"span"),i(3),n()()),e&2){let o=m();r(3),g(o.errorMessage())}}function I(e,a){if(e&1&&(t(0,"tr")(1,"td",23),i(2),n(),t(3,"td",22)(4,"a",24),i(5),n()(),t(6,"td",22),i(7),n()()),e&2){let o=a.$implicit;r(2),g(o.companyNumber),r(2),c("href",o.companyUrl,v),r(),S(" ",o.companyName," "),r(2),g(o.companyStatus)}}function A(e,a){if(e&1&&(t(0,"div",12)(1,"div",18)(2,"table",19)(3,"caption",16),i(4,"The Vision-net.ie Top 20 table."),n(),t(5,"thead")(6,"tr",20)(7,"th",21),i(8,"Number"),n(),t(9,"th",22),i(10,"Name"),n(),t(11,"th",22),i(12,"Status"),n()()(),t(13,"tbody"),h(14,I,8,4,"tr",null,L),n()()()()),e&2){let o=m();r(14),C(o.records())}}function V(e,a){e&1&&(t(0,"div",13),f(1,"i",25),t(2,"p",8),i(3,"No data available at this time. Please check back soon."),n()())}var R=class e{AppConstants=k;UrlElements=N;http=u(T);shellContext=u(M).context;records=s([]);loading=s(!0);errorMessage=s("");showLoginPrompt=E(()=>{let a=this.shellContext(),o=a.userConfig?.loginStatus;return a.mode==="guest"||a.mode==="authenticated"&&o==="OTHER"});constructor(){b(()=>{this.loadData()})}loadData(){this.http.get(w.getUrl("top-20")).subscribe({next:a=>{this.records.set(a.records??[]),this.loading.set(!1)},error:()=>{this.errorMessage.set("We\u2019re sorry, this page is currently unavailable. Please try again later."),this.loading.set(!1)}})}static \u0275fac=function(o){return new(o||e)};static \u0275cmp=y({type:e,selectors:[["app-top-20"]],decls:22,vars:8,consts:[[1,"full-width-stripe","background-indigo-pale"],[1,"container","element-padding-y"],[1,"category-path","text-uppercase","font-main-b"],[1,"title-l"],[1,"text-primary"],[1,"fs-5-fluid","mt-3","mb-0"],[1,"d-flex","flex-wrap","justify-content-between","align-items-start","gap-3","mb-4"],[1,"mb-1"],[1,"mb-0"],[1,"btn","btn-outline-secondary","btn-sm","align-self-start",3,"routerLink"],[1,"content-center","content-padding-y"],[1,"alert","alert-danger","d-flex","align-items-center","gap-2"],[1,"plate","bg-pale","p-0","overflow-hidden"],[1,"plate","bg-pale","text-center","content-padding-y"],[1,"fw-semibold","secondary",3,"routerLink"],[1,"spinner-border","text-secondary"],[1,"visually-hidden"],[1,"bi","bi-exclamation-triangle-fill"],[1,"table-responsive"],[1,"table","table-striped","mb-0"],[1,"bg-secondary","white"],[1,"p-3","text-end",2,"width","90px"],[1,"p-3"],[1,"p-3","text-end","text-muted"],[1,"fw-semibold","secondary","text-decoration-none",3,"href"],[1,"bi","bi-info-circle","fs-1","secondary","mb-3","d-block"]],template:function(o,l){o&1&&(t(0,"div",0)(1,"div",1)(2,"p",2),i(3,"Popular Companies"),n(),t(4,"h1",3),i(5,"The Vision-net.ie "),t(6,"span",4),i(7,"Top 20"),n()(),t(8,"p",5),i(9," A list of the top 20 companies searched on Vision-net recently. "),n()()(),t(10,"div",1)(11,"div",6)(12,"div")(13,"p",7),i(14,"Click on a company to view a Free Company Report."),n(),d(15,U,4,3,"p",8),n(),t(16,"a",9),i(17," \xAB Back to Complimentary Services "),n()(),d(18,P,4,0,"div",10),d(19,F,4,1,"div",11),d(20,A,16,0,"div",12),d(21,V,4,0,"div",13),n()),o&2&&(r(15),p(l.showLoginPrompt()?15:-1),r(),c("routerLink",x(6,D,l.UrlElements.FREE_SERVICES)),r(2),p(l.loading()?18:-1),r(),p(l.errorMessage()?19:-1),r(),p(!l.loading()&&!l.errorMessage()&&l.records().length>0?20:-1),r(),p(!l.loading()&&!l.errorMessage()&&l.records().length===0?21:-1))},dependencies:[_],encapsulation:2,changeDetection:0})};export{R as Top20};
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.