"use strict";(self.webpackChunkUmbracoVuePrototype=self.webpackChunkUmbracoVuePrototype||[]).push([[9180],{3209:(t,e,i)=>{i.d(e,{Z:()=>l});var r=i(7537),n=i.n(r),p=i(3645),s=i.n(p)()(n());s.push([t.id,".featured-property-template{overflow:visible !important}.featured-property-template .property-container .property-row{margin-left:auto;margin-right:auto}.featured-property-template .property-container .property-row .property-grid{display:grid;overflow:visible !important}.featured-property-template .property-container .property-row .property-column{position:relative;min-height:1px;display:inline-block}.featured-property-template .loading-container{height:200px;text-align:center;margin-top:70px;margin-bottom:50px}.featured-property-template .loading-container .loading-gif{opacity:.3;height:120px}.featured-property-template .loading-container .loading-text{font-size:20px}.featured-property-template ul{padding-inline-start:0px}@media(min-width: 992px){.featured-property-template .property-grid{grid-template-columns:var(--listingWidth)}}@media(max-width: 991px){.featured-property-template .property-grid{grid-template-columns:1fr}}","",{version:3,sources:["webpack://./Scripts/src/vue-components/_property/featuredProperty/style.scss"],names:[],mappings:"AAAA,4BACE,2BAAA,CAEE,8DACE,gBAAA,CACA,iBAAA,CACA,6EACE,YAAA,CACA,2BAAA,CAEF,+EACE,iBAAA,CACA,cAAA,CACA,oBAAA,CAKN,+CACE,YAAA,CACA,iBAAA,CACA,eAAA,CACA,kBAAA,CACA,4DACE,UAAA,CACA,YAAA,CAEF,6DACE,cAAA,CAIJ,+BACE,wBAAA,CAGF,yBACE,2CACE,yCAAA,CAAA,CAIJ,yBACE,2CACE,yBAAA,CAAA",sourcesContent:[".featured-property-template {\r\n overflow: visible !important;\r\n .property-container {\r\n .property-row {\r\n margin-left: auto;\r\n margin-right: auto;\r\n .property-grid {\r\n display: grid;\r\n overflow: visible !important;\r\n }\r\n .property-column {\r\n position: relative;\r\n min-height: 1px;\r\n display: inline-block;\r\n }\r\n }\r\n }\r\n\r\n .loading-container {\r\n height: 200px;\r\n text-align: center;\r\n margin-top: 70px;\r\n margin-bottom: 50px;\r\n .loading-gif {\r\n opacity: 0.3;\r\n height: 120px;\r\n }\r\n .loading-text {\r\n font-size: 20px;\r\n }\r\n }\r\n\r\n ul {\r\n padding-inline-start: 0px;\r\n }\r\n\r\n @media (min-width: 992px) {\r\n .property-grid {\r\n grid-template-columns: var(--listingWidth);\r\n }\r\n }\r\n\r\n @media (max-width: 991px) {\r\n .property-grid {\r\n grid-template-columns: 1fr;\r\n }\r\n }\r\n}\r\n"],sourceRoot:""}]);const l=s},9180:(t,e,i)=>{i.r(e),i.d(e,{default:()=>B});var r=i(6252),n=i(3577);const p={class:"property-container"},s={key:0,class:"property-grid"};var l=i(8801),o=i(196),a=i(1351),g=i(4437),A=i(8159),d=i(8344);const y=(0,r.aZ)({components:{"listing-template-simple":d.Z},mixins:[A.Z],data:()=>({blobURL:"",displayedAllPropertyState:!1,listingStyle:{},propertiesLoaded:6,propertyRows:1,propertyType:"all",listingTemplate:"",listingTemplateStyle:{},listingModel:{},componentModel:{},listingUrl:"/listing"}),computed:{displayedProperties:function(){const t=(0,l.c)().get().assetObjectReactive();if(void 0===t.assetObject.featureListings)return[];let e=[];switch(this.propertyType){case"sale":e=t.assetObject.featureListings.filter((t=>t.ListingType.includes("I")||t.ListingType.includes("V")));break;case"lease":e=t.assetObject.featureListings.filter((t=>t.ListingType.includes("L")));break;default:e=t.assetObject.featureListings}return e.slice(0,this.propertiesLoaded*this.propertyRows)}},mounted(){(0,l.i)(),this.initiateListingType(),this.generateListingStyle(),this.initiateBlobURL(),this.initiateListingURL()},methods:{generateListingStyle(){this.propertiesLoaded=(0,g.G)().number(this.componentModel.listingColumns,6),this.propertyRows=(0,g.G)().number(this.componentModel.maxRows,1),this.propertyType=(0,g.G)().string(this.componentModel.listingType,"any");switch(this.propertiesLoaded){case 1:this.listingStyle={"--listingWidth":"1fr"};break;case 2:this.listingStyle={"--listingWidth":"1fr 1fr"};break;case 3:default:this.listingStyle={"--listingWidth":"1fr 1fr 1fr"};break;case 4:this.listingStyle={"--listingWidth":"1fr 1fr 1fr 1fr"};break;case 5:this.listingStyle={"--listingWidth":"1fr 1fr 1fr 1fr 1fr"};break;case 6:this.listingStyle={"--listingWidth":"1fr 1fr 1fr 1fr 1fr 1fr"}}},initiateBlobURL(){let t=(0,o.T)().get("blobUrl","");t.endsWith("/")||(t+="/"),this.blobURL=t},initiateListingURL(){let t=(0,o.T)().get("listingRedirect","");this.listingUrl=t},initiateListingType(){this.listingTemplate=this.$el.parentElement.getAttribute("listing-type"),this.listingModel=(0,a.K)().setupListing(this.listingTemplate,this.componentModel.listingStyle)}}});var m=i(3379),c=i.n(m),u=i(7795),f=i.n(u),h=i(569),C=i.n(h),b=i(3565),w=i.n(b),v=i(9216),L=i.n(v),x=i(4589),k=i.n(x),E=i(3209),T={};T.styleTagTransform=k(),T.setAttributes=w(),T.insert=C().bind(null,"head"),T.domAPI=f(),T.insertStyleElement=L();c()(E.Z,T);E.Z&&E.Z.locals&&E.Z.locals;const B=(0,i(3744).Z)(y,[["render",function(t,e,i,l,o,a){const g=(0,r.up)("listing-template-simple");return(0,r.wg)(),(0,r.iD)("div",{class:"featured-property-template component-margins",style:(0,n.j5)(t.entryAnimationStyle)},[(0,r._)("ul",null,[(0,r._)("div",p,[t.listingUrl?((0,r.wg)(),(0,r.iD)("div",{key:0,class:"property-row",style:(0,n.j5)(t.listingStyle)},["simple"===t.listingTemplate?((0,r.wg)(),(0,r.iD)("div",s,[((0,r.wg)(!0),(0,r.iD)(r.HY,null,(0,r.Ko)(t.displayedProperties,(e=>((0,r.wg)(),(0,r.iD)("div",{key:e.AgencyId,class:"property-column"},[(0,r.Wm)(g,{"property-prop":e,"listing-type-prop":e.ListingType,"blob-u-r-l-prop":t.blobURL,"listing-url-prop":t.listingUrl,"listing-style-prop":t.listingModel},null,8,["property-prop","listing-type-prop","blob-u-r-l-prop","listing-url-prop","listing-style-prop"])])))),128))])):(0,r.kq)("v-if",!0)],4)):(0,r.kq)("v-if",!0)])])],4)}]])}}]); //# sourceMappingURL=source-maps-1.2/9180.fe69c4666105d4b8c20c.map