This repository has been archived by the owner on Aug 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
227.f6d47f157a0ccab6f803.js
1 lines (1 loc) · 3 KB
/
227.f6d47f157a0ccab6f803.js
1
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[227],{3227:(u,r,e)=>{e.r(r),e.d(r,{ExploreModule:()=>O});var i=e(8583),o=e(7716),c=e(1841),s=e(205),p=e(5304);let m=(()=>{class n{constructor(t){this.http=t,this.handleError=d=>(0,s._)(d.statusText)}findOnlineDomains(t=1,d=50){return t<=0&&(t=1),this.http.get("/api/domains",{params:(new c.LE).set("page",t+"").set("amount",d+"")}).pipe((0,p.K)(this.handleError))}}return n.\u0275fac=function(t){return new(t||n)(o.LFG(c.eN))},n.\u0275prov=o.Yz7({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();var l=e(7106);function h(n,a){if(1&n&&(o.ynx(0),o._UZ(1,"app-world-card",2),o.BQk()),2&n){const t=a.$implicit;o.xp6(1),o.Q6J("world",t)}}let x=(()=>{class n{constructor(t){this.exploreService=t,this.page=1,this.domains=[],this.fetchMoreDomains()}fetchMoreDomains(){const t=this.exploreService.findOnlineDomains(this.page,50).subscribe(d=>{this.domains=[...this.domains,...d]},d=>{},()=>{t.unsubscribe()});this.page++}ngOnInit(){}}return n.\u0275fac=function(t){return new(t||n)(o.Y36(m))},n.\u0275cmp=o.Xpm({type:n,selectors:[["app-explore"]],decls:2,vars:1,consts:[[1,"domains"],[4,"ngFor","ngForOf"],[3,"world"]],template:function(t,d){1&t&&(o.TgZ(0,"div",0),o.YNc(1,h,2,1,"ng-container",1),o.qZA()),2&t&&(o.xp6(1),o.Q6J("ngForOf",d.domains))},directives:[i.sg,l.F],styles:[".domains[_ngcontent-%COMP%]{padding:8px}.domains[_ngcontent-%COMP%] app-world-card[_ngcontent-%COMP%]{width:calc(100% / 6);display:inline-block;padding:8px}@media screen and (max-width: 3300px){.domains[_ngcontent-%COMP%] app-world-card[_ngcontent-%COMP%]{width:9.0909090909%}}@media screen and (max-width: 3025px){.domains[_ngcontent-%COMP%] app-world-card[_ngcontent-%COMP%]{width:10%}}@media screen and (max-width: 2750px){.domains[_ngcontent-%COMP%] app-world-card[_ngcontent-%COMP%]{width:11.1111111111%}}@media screen and (max-width: 2475px){.domains[_ngcontent-%COMP%] app-world-card[_ngcontent-%COMP%]{width:12.5%}}@media screen and (max-width: 2200px){.domains[_ngcontent-%COMP%] app-world-card[_ngcontent-%COMP%]{width:14.2857142857%}}@media screen and (max-width: 1925px){.domains[_ngcontent-%COMP%] app-world-card[_ngcontent-%COMP%]{width:16.6666666667%}}@media screen and (max-width: 1650px){.domains[_ngcontent-%COMP%] app-world-card[_ngcontent-%COMP%]{width:20%}}@media screen and (max-width: 1375px){.domains[_ngcontent-%COMP%] app-world-card[_ngcontent-%COMP%]{width:25%}}@media screen and (max-width: 1100px){.domains[_ngcontent-%COMP%] app-world-card[_ngcontent-%COMP%]{width:33.3333333333%}}@media screen and (max-width: 825px){.domains[_ngcontent-%COMP%] app-world-card[_ngcontent-%COMP%]{width:50%}}@media screen and (max-width: 550px){.domains[_ngcontent-%COMP%] app-world-card[_ngcontent-%COMP%]{width:100%}}"]}),n})();var g=e(4655),w=e(8086),C=e(3191);const M=[{path:"",component:x},{path:"**",redirectTo:"/"}];let O=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=o.oAB({type:n}),n.\u0275inj=o.cJS({imports:[[i.ez,g.Bz.forChild(M),w.W,C.q]]}),n})()}}]);