1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[955],{3744:function(t,e){e.Z=(t,e)=>{const o=t.__vccOpts||t;for(const[t,n]of e)o[t]=n;return o}},9955:function(t,e,o){o.r(e),o.d(e,{default:function(){return x}});var n=o(821),l={class:"relative"},i={class:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 xl:grid-cols-6 shadow-xl overflow-hidden 2xl:border-8 2xl:border-white"},s=["onClick"],a={key:0,class:"fixed z-50 top-0 h-screen w-full bg-white bg-opacity-80 flex flex-col justify-center"},r={class:"w-full h-full flex flex-col"},c={class:"flex-grow lg:h-full w-full flex justify-center items-center py-20 lg:py-8"},h=["src","alt"],p={class:"relative w-full max-w-xs mx-auto bg-white shadow-xl flex justify-between mt-4 lg:-mt-16 p-1 z-20 mb-16"},u={class:"text-blue font-bold flex items-center leading-none"};var d=(0,n.aZ)({name:"PropertyPhotoGallery",props:{photos:{type:Object,default:function(){}}},data:function(){return{activePhoto:{},photoData:[],popupOpen:!1,activeIndex:0}},mounted:function(){this.photoData=this.photos},methods:{openPhoto:function(t){this.popupOpen=!0,this.activeIndex=t,this.activePhoto=this.photoData[t]},nextPhoto:function(){this.activeIndex+1==this.photoData.length?this.activeIndex=0:this.activeIndex++,this.openPhoto(this.activeIndex)},prevPhoto:function(){this.activeIndex+1==1?this.activeIndex=this.photoData.length:this.activeIndex--,this.openPhoto(this.activeIndex)}}});const f=(0,o(3744).Z)(d,[["render",function(t,e,o,d,f,x){var g=(0,n.up)("svg-vue"),v=(0,n.Q2)("lazy");return(0,n.wg)(),(0,n.iD)("div",l,[(0,n._)("div",i,[((0,n.wg)(!0),(0,n.iD)(n.HY,null,(0,n.Ko)(t.photoData,function(e,o){return(0,n.wy)(((0,n.wg)(),(0,n.iD)("div",{key:e.id,class:(0,n.C_)(["w-full aspect aspect-w-10 aspect-h-10 bg-cover bg-center cursor-pointer shadow-[0_0_0_1px_rgba(255,255,255,1)]",{"hidden md:block":o>4,"md:hidden":o>10}]),onClick:function(e){return t.openPhoto(o)}},null,10,s)),[[v,e.url.replace("http:","https:"),"background-image"]])}),128)),(0,n._)("div",{tabindex:"0",onClick:e[0]||(e[0]=function(e){return t.openPhoto(0)}),class:"bg-blue flex items-center justify-center text-white font-bold cursor-pointer hover:bg-blue-dark"},[e[4]||(e[4]=(0,n.Uk)(" view all",-1)),e[5]||(e[5]=(0,n._)("br",null,null,-1)),(0,n.Uk)(" "+(0,n.zw)(t.photoData.length)+" photos ",1)])]),((0,n.wg)(),(0,n.j4)(n.lR,{to:"#popup-target"},[t.popupOpen?((0,n.wg)(),(0,n.iD)("div",a,[(0,n._)("div",r,[(0,n._)("span",{onClick:e[1]||(e[1]=function(e){return t.popupOpen=!1}),class:"absolute text-white flex items-center leading-none h-10 px-6 bg-blue border-4 border-white shadow-xl right-4 top-4 lg:right-8 cursor-pointer uppercase text-sm"},[(0,n.Wm)(g,{icon:"times",class:"fill-current h-4 w-4 mr-2"}),e[6]||(e[6]=(0,n.Uk)(" close ",-1))]),(0,n._)("div",c,[(0,n._)("img",{src:t.activePhoto.url.replace("http:","https:"),alt:t.activePhoto.name,class:"max-h-full max-w-full mx-auto shadow-xl"},null,8,h)]),(0,n._)("div",p,[(0,n._)("span",{onClick:e[2]||(e[2]=function(){return t.prevPhoto&&t.prevPhoto.apply(t,arguments)}),class:"leading-none h-10 px-6 bg-blue text-white flex items-center cursor-pointer uppercase text-sm"},[(0,n.Wm)(g,{icon:"angle-left",class:"fill-current h-4 w-4 mr-2"}),e[7]||(e[7]=(0,n._)("span",{class:"sr-only"},"prev",-1))]),(0,n._)("span",u,(0,n.zw)(t.activeIndex+1)+" of "+(0,n.zw)(t.photoData.length),1),(0,n._)("span",{onClick:e[3]||(e[3]=function(){return t.nextPhoto&&t.nextPhoto.apply(t,arguments)}),class:"leading-none h-10 px-6 bg-blue text-white flex items-center cursor-pointer uppercase text-sm"},[e[8]||(e[8]=(0,n._)("span",{class:"sr-only"},"next",-1)),(0,n.Wm)(g,{icon:"angle-right",class:"fill-current h-4 w-4 ml-2"})])])])])):(0,n.kq)("",!0)]))])}]]);var x=f}}]);
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.