PageSourceSearch

https://thetop100.netlify.app/chunk-G6X7C6QA.js

js thetop100.netlify.app collected 2026-10-03 11:31:15 UTC 15,207 bytes, 3 lines download raw bytes

1import{a as re}from"./chunk-SBTQAYIC.js";import{a as ae,b as ne}from"./chunk-BP2OZM6S.js";import{a as te,b as ie}from"./chunk-DUWI2R7A.js";import"./chunk-SPPLSAPS.js";import{a as Z}from"./chunk-3AENZAG3.js";import{a as X}from"./chunk-CENRA4FT.js";import{a as J}from"./chunk-JOESBSXO.js";import{a as W}from"./chunk-SNFSRE5O.js";import{a as K}from"./chunk-OSZ67J3L.js";import{a as q}from"./chunk-ITHIMSZU.js";import"./chunk-HUJPMDRV.js";import"./chunk-CQPXX5FU.js";import"./chunk-MCUCE3YO.js";import"./chunk-GLBWNLTQ.js";import{a as ee}from"./chunk-P47LTXCB.js";import{d as z,e as F,f as H,l as U,n as $,o as G,s as Q}from"./chunk-C25D627U.js";import"./chunk-4YRY4IP2.js";import"./chunk-GRPNCJIN.js";import{$b as j,Ca as M,Cb as S,Db as P,Eb as m,Kb as B,Lb as E,Mb as R,Qb as l,Rb as A,Sb as I,Tb as v,Wa as s,Xa as d,_b as D,ad as V,ca as L,hd as Y,jb as p,jc as y,jd as N,kc as b,ld as O,ma as x,mb as h,na as C,oa as g,pa as f,rb as u,tb as k,ub as _,vb as w,wb as a,xb as n,yb as c}from"./chunk-77E3GGME.js";import"./chunk-WWX6BADO.js";var se=["pageTop"],le=(i,t)=>t.id,de=()=>[1,2,3,4,5,6,7,8];function ce(i,t){i&1&&(a(0,"div",11),c(1,"p-skeleton",12)(2,"p-skeleton",13)(3,"p-skeleton",14)(4,"p-skeleton",14),a(5,"div",15),c(6,"p-skeleton",16)(7,"p-skeleton",17),n()())}function me(i,t){i&1&&(a(0,"div",9),_(1,ce,8,0,"div",11,k),n()),i&2&&(s(),w(j(0,de)))}function ge(i,t){if(i&1){let e=S();a(0,"div",10)(1,"div",18),g(),a(2,"svg",19),c(3,"path",20),n()(),f(),a(4,"h3",21),l(5,"Something went wrong"),n(),a(6,"p",22),l(7),n(),a(8,"button",23),P("click",function(){x(e);let o=m(2);return C(o.loadLeads(o.currentPage))}),l(9," Try Again "),n()()}if(i&2){let e=m(2);s(7),A(e.error)}}function pe(i,t){if(i&1&&(a(0,"div",24)(1,"div",26)(2,"div",27)(3,"div",28),g(),a(4,"svg",29),c(5,"path",30),n()()(),f(),a(6,"div",31)(7,"span",32),l(8,"Official Announcement"),n(),a(9,"h3",33),l(10,"Nominations Now Open"),n(),a(11,"p",34),l(12," We are currently accepting entries for the "),a(13,"strong"),l(14),y(15,"titlecase"),n(),l(16),n(),a(17,"a",35),l(18," Submit a Nomination "),g(),a(19,"svg",36),c(20,"path",37),n()()()()()),i&2){let e=m(3);s(14),v("",e.year," ",b(15,3,e.category),""),s(2),I(". Nominate the visionaries and trailblazers who are redefining excellence in the ",e.categoryName," sector. ")}}function he(i,t){if(i&1&&(a(0,"div",25)(1,"div",38),g(),a(2,"svg",19),c(3,"path",39),n()(),f(),a(4,"h3",21),l(5,"No listings found"),n(),a(6,"p",40),l(7),n()()),i&2){let e=m(3);s(7),v("There are no ",e.category," registered in this category for ",e.year,".")}}function ue(i,t){if(i&1&&p(0,pe,21,5,"div",24)(1,he,8,2,"div",25),i&2){let e=m(2);u(e.year&&e.isCurrentYear()?0:1)}}function fe(i,t){if(i&1&&c(0,"app-lead-card",42),i&2){let e=t.$implicit,r=m(3);h("listing",e)("category",r.category)("currentYear",r.parseInt(r.year))}}function ve(i,t){if(i&1){let e=S();a(0,"div",43)(1,"p-paginator",44),P("onPageChange",function(o){x(e);let T=m(3);return C(T.onPageChange(o))}),n()()}if(i&2){let e=m(3);s(),h("rows",e.itemsPerPage)("totalRecords",e.totalItems)("first",e.currentPage*e.itemsPerPage)("showCurrentPageReport",!0)}}function ye(i,t){if(i&1&&(a(0,"div",41),_(1,fe,1,3,"app-lead-card",42,le),n(),p(3,ve,2,4,"div",43)),i&2){let e=m(2);s(),w(e.leads),s(2),u(e.totalPages>1?3:-1)}}function be(i,t){if(i&1&&(a(0,"main",2,0)(2,"section",4)(3,"div",5)(4,"h1",6),l(5),y(6,"titlecase"),y(7,"titlecase"),n(),a(8,"p",7),l(9),n()()(),a(10,"section",8),p(11,me,3,1,"div",9)(12,ge,10,1,"div",10)(13,ue,2,1)(14,ye,4,1),n()()),i&2){let e=m();s(5),v(" ",b(6,4,e.year)," ",b(7,6,e.categoryName)," "),s(4),I(" Celebrating the most influential and innovative visionaries shaping the future of global industries within the ",e.categoryName," sector. "),s(2),u(e.loading?11:e.error?12:e.leads.length===0?13:14)}}function xe(i,t){i&1&&(a(0,"div",3),c(1,"div",45),n())}var oe=class i{constructor(t,e,r,o,T,Ce,_e,we,Se,Pe,Ie,Te){this.route=t;this.router=e;this.publicService=r;this.domainService=o;this.brandsService=T;this.categoriesService=Ce;this.yearService=_e;this.titleService=we;this.metaService=Se;this.sanitizer=Pe;this.viewportScroller=Ie;this.platformId=Te;this.isBrowser=N(this.platformId)}pageTop;categoryId="";categoryName="";year="";category="";currentYear=new Date().getFullYear();Math=Math;shouldScramble=!1;
1isAdminUpgraded=!1;leads=[];loading=!0;error=null;allCategories=[];subcategories=[];relatedCategories=[];categoryDetail=null;currentBrandId="";yearId="";categoryData={icon:"\u{1F3C6}",description:"Celebrating excellence and innovation across the industry.",about:"Our awards recognise outstanding achievements, visionary leadership, and significant impact within this category. We honour those who are driving change and setting new standards.",stat1Label:"Subcategories",stat1Value:"0",stat2Label:"Winners",stat2Value:"0",stat3Label:"Countries",stat3Value:"0",stat4Label:"Year Running",stat4Value:"5th"};categoryMappings={"Pet & Animal Care":{icon:"\u{1F43E}",description:"Celebrating businesses and services dedicated to animal care, pet ownership, and wildlife welfare \u2014 from healthcare and wellness to lifestyle, retail, and support services across the globe.",about:`The Pet & Animal Care Awards category celebrates businesses and services dedicated to animal care, pet ownership, and wildlife welfare. Leads here should be active, professional, and customer-facing brands operating in the pet and animal space \u2014 ranging from healthcare and wellness to lifestyle, retail, and support services.
2
3From cutting-edge veterinary clinics and mobile grooming services to luxury pet spas and wildlife rehabilitation centres, we honour the full breadth of organisations making a meaningful difference to the lives of animals and their owners around the world.`}};currentPage=0;totalPages=0;itemsPerPage=50;totalItems=0;isBrowser=!1;ngOnInit(){let t=this.domainService.getHost();this.category=t==="businesses"?"businesses":"leaders",this.route.queryParams.subscribe(e=>{this.categoryId=e.id||"",this.categoryName=e.name||"",this.year=e.year||this.currentYear.toString(),this.shouldScramble=e.scramble==="true",this.isAdminUpgraded=e.adminUpgraded==="true",this.categoryId?(this.updateCategoryData(),this.setTitleAndMeta(),this.loadLeads(this.currentPage),this.fetchBrandAndCategories(),this.fetchSubCategories(),this.isBrowser&&(window.scrollTo(0,0),setTimeout(()=>{this.pageTop?.nativeElement?this.pageTop.nativeElement.scrollIntoView({behavior:"auto",block:"start"}):window.scrollTo(0,0)},100))):(this.error="Category ID is missing",this.loading=!1)}),this.isBrowser&&this.initScrollReveal()}parseInt(t){return typeof t=="string"?parseInt(t):t}initScrollReveal(){this.isBrowser&&setTimeout(()=>{let t=new IntersectionObserver(e=>{e.forEach(r=>{r.isIntersecting&&(r.target.classList.add("visible"),t.unobserve(r.target))})},{threshold:.1,rootMargin:"50px"});document.querySelectorAll(".reveal:not(.visible)").forEach(e=>t.observe(e))},500)}updateCategoryData(){let t=this.categoryMappings[this.categoryName];t&&(this.categoryData.icon=t.icon,this.categoryData.description=t.description,this.categoryData.about=t.about)}fetchBrandAndCategories(){this.brandsService.getBrandsListPublic().subscribe(t=>{let e=t.find(r=>r.name.toLowerCase().includes(this.category));e&&(this.currentBrandId=e.id,this.fetchYearsAndAllCategories())})}fetchYearsAndAllCategories(){this.yearService.getYears().subscribe(t=>{let e=t.find(r=>r.value.toString()===this.year.toString());e&&(this.yearId=e.id,this.categoriesService.getCategoriesPublic(this.currentBrandId,this.yearId).subscribe(r=>{this.allCategories=r,this.categoryDetail=r.find(o=>o.id===this.categoryId)||null,this.relatedCategories=r.filter(o=>o.id!==this.categoryId).slice(0,4),this.categoryDetail&&(this.categoryData.stat1Value=this.categoryDetail.sub_categories_count||0,this.categoryData.stat2Value=this.totalItems||0,this.categoryData.stat3Value=Math.floor(Math.random()*20)+20)}))})}fetchSubCategories(){this.categoriesService.getSubCategories(this.categoryId).subscribe(t=>{this.subcategories=t,this.isBrowser&&this.initScrollReveal()})}shuffleArray(t){let e=[...t];for(let r=e.length-1;r>0;r--){let o=Math.floor(Math.random()*(r+1));[e[r],e[o]]=[e[o],e[r]]}return e}loadLeads(t){this.loading=!0,this.error=null,this.publicService.getLeadsByCategory(this.categoryId,t,this.itemsPerPage,this.isAdminUpgraded).subscribe({next:e=>{this.leads=this.shouldScramble?this.shuffleArray(e.leads):e.leads,this.currentPage=e.current_page,this.totalPages=e.page_count,this.totalItems=e.total_items,this.itemsPerPage=e.items_per_page,this.categoryData.stat2Value=this.totalItems,this.loading=!1,this.isBrowser&&(this.initScrollReveal(),window.scrollTo(0,0))},error:e=>{console.error("Error loading leads:",e),this.error="Failed to load listings. Please try again later.",this.loading=!1}})}onPageChange(t){let e=t.page;e>=0&&e<this.totalPages&&this.loadLeadsAndScroll(e)}loadLeadsAndScroll(t){this.loading=!0,this.error=null,this.publicService.getLeadsByCategory(this.categoryId,t,this.itemsPerPage,this.isAdminU
3pgraded).subscribe({next:e=>{this.leads=this.shouldScramble?this.shuffleArray(e.leads):e.leads,this.currentPage=e.current_page,this.totalPages=e.page_count,this.totalItems=e.total_items,this.itemsPerPage=e.items_per_page,this.loading=!1,this.isBrowser&&this.initScrollReveal(),setTimeout(()=>{this.pageTop?.nativeElement&&this.pageTop.nativeElement.scrollIntoView({behavior:"smooth",block:"start"})},0)},error:e=>{console.error("Error loading leads:",e),this.error="Failed to load listings. Please try again later.",this.loading=!1}})}setTitleAndMeta(){let t=`Top 100 ${this.categoryName} ${this.year} - ${this.category==="businesses"?"Businesses":"Leaders"}`,e=`Discover the top ${this.categoryName.toLowerCase()} in ${this.year}. Browse through our comprehensive rankings and find the best ${this.category}.`;this.titleService.setTitle(t),this.metaService.updateTag({name:"description",content:e})}goBack(){this.router.navigate(["/"])}isCurrentYear(){return this.year?this.year===this.currentYear.toString():!1}sanitizeUrl(t){return t.startsWith("http")||(t="https://"+t),this.sanitizer.bypassSecurityTrustUrl(t)}static \u0275fac=function(e){return new(e||i)(d(U),d($),d(W),d(ee),d(J),d(X),d(Z),d(F),d(z),d(H),d(O),d(M))};static \u0275cmp=L({type:i,selectors:[["app-category-leads"]],viewQuery:function(e,r){if(e&1&&B(se,5),e&2){let o;E(o=R())&&(r.pageTop=o.first)}},standalone:!0,features:[D],decls:4,vars:3,consts:[["pageTop",""],[3,"category"],[1,"bg-[#faf7f2]","min-h-screen"],[1,"min-h-screen","pt-20","bg-[#faf7f2]","flex","items-center","justify-center"],[1,"pt-32","pb-16","text-center","reveal"],[1,"max-w-[1200px]","mx-auto","px-8"],[1,"font-serif","text-[clamp(2.2rem,5vw,3.5rem)]","leading-[1.1]","text-[#083a30]","mb-6"],[1,"text-[1.1rem]","leading-[1.6]","text-[#666]","max-w-[800px]","mx-auto"],[1,"max-w-[1300px]","mx-auto","px-8","pb-32"],[1,"grid","grid-cols-1","sm:grid-cols-2","lg:grid-cols-3","xl:grid-cols-4","gap-8"],[1,"text-center","py-20","bg-white","border","border-dashed","border-red-200","rounded-2xl","reveal"],[1,"bg-white","rounded-lg","overflow-hidden","shadow-[0_10px_30px_rgba(0,0,0,0.03)]","border","border-[#eee]","p-6","space-y-4"],["width","100%","height","180px","borderRadius","4px"],["width","60%","height","1.5rem"],["width","100%","height","1rem"],[1,"flex","justify-between","pt-4","border-t","border-[#f5f5f5]"],["width","40%","height","1.2rem"],["width","20%","height","1.2rem"],[1,"w-20","h-20","bg-red-50","text-red-600","rounded-full","flex","items-center","justify-center","mx-auto","mb-6"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"w-10","h-10"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"],[1,"font-serif","text-[1.8rem]","text-[#083a30]","mb-3"],[1,"text-[#666]","mb-8"],[1,"p-4","px-8","rounded-lg","font-semibold","bg-[#083a30]","text-white","hover:bg-black","transition-all",3,"click"],[1,"max-w-[900px]","mx-auto","mt-8","reveal"],[1,"py-20","px-4","text-center","bg-white","border","border-dashed","border-[#e8c06e]","rounded-2xl","reveal"],[1,"grid","grid-cols-1","md:grid-cols-[180px_1fr]","bg-white","border","border-[#e8c06e]","rounded-2xl","overflow-hidden","shadow-[0_20px_50px_rgba(0,0,0,0.05)]"],[1,"bg-[#faf7f2]","flex","items-center","justify-center","md:h-auto","h-[120px]"],[1,"w-20","h-20","bg-[#083a30]","text-white","rounded-full","flex","items-center","justify-center","shadow-[0_10px_20px_rgba(0,100,80,0.2)]"],["viewBox","0 0 24 24","fill","none","stroke","currentColor",1,"w-10","h-10"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M11 5.882V19.24a1.76 1.76 0 01-3.417.592l-2.147-6.15M18 13a3 3 0 100-6M5.436 13.683A4.001 4.001 0 017 6h1.832c4.1 0 7.625-1.234 9.168-3v14c-1.543-1.766-5.067-3-9.168-3H7a3.988 3.988 0 01-1.564-.317z"],[1,"p-12"],[1,"uppercase","text-[0.7rem]","tracking-[0.3em]","text-[#c49a3c]","font-bold","mb-4","block"],[1,"font-serif","text-[1.8rem]","text-[#083a30]","mb-4"],[1,"text-[#666]","leading-[1.6]","mb-8"],["routerLink","/nominate",1,"p-5","px-10","rounded-lg","font-semibold","no-underline","inline-flex","items-center","justify-between","transition-all","bg-[#083a30]","text-white","hover:bg-black","group"],["viewBox","0 0 20 20","fill","currentColor",1,"w-5","h-5","ml-4","group-hover:translate-x-1","transition-transform"],["d","M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z"],[1,"w-20","h-20","bg-[#faf7f2]","text-[#c49a3c]","rounded-full","flex","items-center","justify-center","mx-auto","mb-6"],["stroke-linecap","round","stroke-linejoin","round","stroke-width","2","d","M20 13V6a2 2 0 00-2-2H6a2 2 0 00-2 2v7m16 0v5a2 2 0 01-2 2H6a2 2 0 01-2-2v-5m16 0h-2.586a1 1 0 00-.707.293l-2.414 2.414a1 1 0 01-.707.293h-3.172a1 1 0 01-.707-.293l-2.414-2.414A1 1 0 006.586 13H4"],[1,"text-[#666]","max-w-[400px]","mx-auto"],[1,"grid","grid-cols-1","sm:grid-cols-2","lg:grid-cols-3","xl:grid-cols-4","gap-8","reveal"],[3,"listing","category","currentYear"],[1,"mt-24","flex","flex-col","items-center","reveal"],["currentPageReportTemplate","Showing {first} to {last} of {totalRecords} entries","styleClass","editorial-paginator",3,"onPageChange","rows","totalRecords","first","showCurrentPageReport"],[1,"w-10","h-10","border-[3px]","border-[#e8c06e]","border-t-[#c49a3c]","rounded-full","animate-spin"]],template:function(e,r){e&1&&(c(0,"app-nav",1),p(1,be,15,8,"main",2)(2,xe,2,0,"div",3),c(3,"app-footer",1)),e&2&&(h("category",r.category),s(),u(r.isBrowser?1:2),s(2),h("category",r.category))},dependencies:[Y,V,Q,G,re,q,K,ne,ae,ie,te],styles:[".reveal[_ngcontent-%COMP%]{opacity:0;transform:translateY(30px);transition:all 1s cubic-bezier(.2,0,.2,1)}.reveal.visible[_ngcontent-%COMP%]{opacity:1;transform:translateY(0)}.reveal-delay-1[_ngcontent-%COMP%]{transition-delay:.15s}.reveal-delay-2[_ngcontent-%COMP%]{transition-delay:.3s}.reveal-delay-3[_ngcontent-%COMP%]{transition-delay:.45s}#pageTop[_ngcontent-%COMP%]{position:absolute;top:-100px;visibility:hidden}"]})};export{oe as CategoryLeadsComponent};

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.