PageSourceSearch

https://greatcoloradohomes.com/chunk-L6ZSUV2H.js

js greatcoloradohomes.com collected 2026-10-03 23:35:21 UTC 5,869 bytes, 2 lines download raw bytes

1import{a as I}from"./chunk-FYKI5EZQ.js";import{a as se}from"./chunk-36RURATW.js";import{d as ie}from"./chunk-JT6ASDIM.js";import{m as te,n as oe,q as ne,y as T}from"./chunk-SW2PCWOQ.js";import{Cc as S,Db as k,Ec as x,Jb as g,Nb as z,Oa as q,Ob as K,Qb as Q,Rb as V,Tb as y,Ub as v,Vb as m,Wb as u,Xb as Z,_b as ee,gc as b,h as C,kc as _,ob as l,ta as h,xa as f}from"./chunk-FFQH2GOQ.js";var ae=t=>({options:t});function le(t,o){t&1&&ee(0)}function me(t,o){if(t&1&&(m(0,"div",1),k(1,le,1,0,"ng-container",2),u()),t&2){let c=o.$implicit,e=b();l(),g("ngComponentOutlet",e.getComponent(c.component))("ngComponentOutletInputs",x(2,ae,c.inputs==null?null:c.inputs.options))}}var ce=(()=>{let o=class o{constructor(){this.loadedComponents={},this.pendingTasks=h(q)}ngOnInit(){return C(this,null,function*(){yield this.preloadComponents()})}preloadComponents(){return C(this,null,function*(){var i;let e=this.pendingTasks.add(),n=(i=this.block.children)==null?void 0:i.map(s=>C(this,null,function*(){if(I[s.component])try{this.loadedComponents[s.component]=yield I[s.component]()}catch(p){console.error("Failed to load component: ".concat(s.component),p)}}));yield Promise.all(n),e()})}getComponent(e){return this.loadedComponents[e]||null}};o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=f({type:o,selectors:[["app-sb-block"]],inputs:{section:"section",block:"block"},standalone:!0,features:[S],decls:3,vars:5,consts:[[3,"id"],[1,"sb-block"],[4,"ngComponentOutlet","ngComponentOutletInputs"]],template:function(n,i){n&1&&(m(0,"div",0),y(1,me,2,4,"div",1,V),u()),n&2&&(K("block-container d-flex flex-column gap-",(i.block.options==null?null:i.block.options.gap_y)||0,""),_("id","sb-block-",i.block.uuid,""),l(),v(i.block.children))},dependencies:[T,oe]});let t=o;return t})();var ue=(t,o)=>o.uuid,de=t=>({"background-color":t});function he(t,o){if(t&1&&(m(0,"div"),Z(1,"app-sb-block",3),u()),t&2){let c=o.$implicit,e=b(2);z(c.colWidth),l(),g("section",e.section)("block",c)}}function ge(t,o){if(t&1&&(m(0,"div",0)(1,"div",1),y(2,he,2,5,"div",2,ue),u()()),t&2){let c=b();_("id","section-",c.section.uuid,""),g("ngClass",c.sectionClasses)("ngStyle",x(4,de,c.backGroundColor)),l(2),v(c.section.blocks)}}var Re=(()=>{let o=class o{constructor(){this.sectionClasses=[],this.backGroundColor="transparent",this.shouldRender=!1,this.subscriptions={listingPage:null,popularCommunities:null},this.globalService=h(ie),this.popularCommunitiesService=h(se)}ngOnInit(){var i,s,p,a;this.setSectionClasses(),this.subscriptions.listingPage=this.globalService.listingPageSettings.subscribe(r=>{this.checkWhetherToRender(r)});let e=(a=(p=(s=(i=this.section)==null?void 0:i.blocks)==null?void 0:s[0])==null?void 0:p.children)==null?void 0:a[0];(e==null?void 0:e.component)=="popular-communities"&&(this.subscriptions.popularCommunities=this.popularCommunitiesService.popularCommunitiesHasLength$.subscribe(r=>{this.shouldRender=r})),this.section.options.bg_color&&this.section.options.bg_color!=="transparent"&&this.section.options.bg_color!=="white"&&this.section.options.bg_color.slice(0,4).toLowerCase()!=="#fff"&&(this.backGroundColor="var(--sb-bg-1)")}checkWhetherToRender(e){var s,p,a,r,d;let n=(r=(a=(p=(s=this.section)==null?void 0:s.blocks)==null?void 0:p[0])==null?void 0:a.children)==null?void 0:r[0],i=n==null?void 0:n.component;if(i)switch(i){case"popular-searches":this.shouldRender=!0;break;case"popular-communities":this.shouldRender=!0;break;case"popular-cities":this.shouldRender=((d=e==null?void 0:e.pages)==null?void 0:d.city)==="allow";break;default:this.shouldRender=!0}}setSectionClasses(){var n,i,s,p,a,r,d,w,M,O,F,R,N,P,E,L,B,D,G,$,j,W,A,H,J,U,X,Y;let e=this.section.options;if(((n=this.pageSettings)==null?void 0:n.pageLayoutType)==="blog-home-page"){this.sectionClasses.push("px-3 px-md-5 px-lg-9"),this.sectionClasses.push("py-6");return}if(((i=this.pageSettings)==null?void 0:i.pageLayoutType)==="blog-page"){this.sectionClasses.push("px-0");return}if(((s=this.pageSettings)==null?void 0:s.pageLayoutType)==="listing-page"){this.sectionClasses.push("px-0"),this.sectionClasses.push("mb-5");return}if(((p=this.pageSettings)==null?void 0:p.pageLayoutType)==="custom-page"){this.sectionClasses.push("px-0");return}e.container_padding_x!==0&&(this.sectionClasses.push("px-2 px-md-5 px-lg-7"),(((M=(w=(d=(r=(a=this.section)==null?void 0:a.blocks)==null?void 0:r[0])==null?void 0:d.children)==null?void 0:w[0])==null?void 0:M.component)==="property-listing"||((P=(N=(R=(F=(O=this.section)==null?void 0:O.blocks)==null?void 0:F[0])==null?void 0:R.children)==null?void 0:N[0])==null?void 0:P.component)==="blog-list")&&((j=($=(G=(D=(B=(L=(E=this.section)==null?void 0:E.blocks)==null?void 0:L[0])==null?void 0:B.children)==null?void 0:D[0])==null?void 0:G.inputs)==null?void 0:$.options)==null?void 0:j.view_more)===!0&&((Y=(X=(U=(J=(H=(A=(W=this.section)==null?void 0:W.blocks)==null?void 0:A[0])==null?void 0:H.children)==null?void 0:J[0])==null?void 0:U.inputs)==null?void 0:X.options)==null?void 0:Y.position)==="bottom"?this.sectionClasses.push("py-4 py-lg-5"):this.sectionClasses.push("py-2 py-md-4 py-lg-6"))}
1ngOnDestroy(){Object.values(this.subscriptions).forEach(e=>e==null?void 0:e.unsubscribe())}};o.\u0275fac=function(n){return new(n||o)},o.\u0275cmp=f({type:o,selectors:[["app-sb-section"]],inputs:{pageSettings:"pageSettings",section:"section",index:"index"},standalone:!0,features:[S],decls:1,vars:1,consts:[[1,"section-container",3,"id","ngClass","ngStyle"],[1,"row"],[3,"class"],[3,"section","block"]],template:function(n,i){n&1&&k(0,ge,4,6,"div",0),n&2&&Q(i.shouldRender?0:-1)},dependencies:[ce,T,te,ne],styles:[".section-container[_ngcontent-%COMP%]{background-color:var(--preview-section-bg)}\n/*# sourceMappingURL=sb-section.component-YPXBJS25.css.map */"]});let t=o;return t})();export{ce as a,Re as b};
2//# sourceMappingURL=chunk-L6ZSUV2H.js.map

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.