1"use strict";(self.webpackChunkdjalexander=self.webpackChunkdjalexander||[]).push([[5550],{14989:function(e,t,l){l.r(t);var a=l(45458),n=l(96540),r=l(41015),i=l(30812),s=l(82493),c=l(31382),o=l(66161),d=l(9919),m=l(66180),u=l(82174);t.default=e=>{const t="undefined"!=typeof window&&(localStorage.getItem("whislist_data")?JSON.parse(localStorage.getItem("whislist_data")):""),{0:l,1:h}=(0,n.useState)((null==t?void 0:t.length)>0?t:[]),{0:g,1:p}=(0,n.useState)([]),{0:E,1:y}=(0,n.useState)(t.length>0?t:[]);(0,n.useEffect)(()=>{localStorage.setItem("whislist_data",JSON.stringify(l)),y(l.length>0?l:[])},[l]);(0,n.useEffect)(()=>{window.scrollTo(0,0)},[]);const k=(e,t)=>{if(!0===e.target.checked)y([].concat((0,a.A)(E),[t]));else{let e=E.length>0&&E.filter(e=>e.id!==t.id);y(e)}};var v;return v=(null==E?void 0:E.length)>0&&(null==l?void 0:l.length)>0&&(null==E?void 0:E.length)===(null==l?void 0:l.length),n.createElement("div",{className:"search-header property-header"},n.createElement(o.A,{seo_meta:{title:"Property Whislist",description:"Property Whislist"}},n.createElement("div",{className:"site-map property_wishlist"},n.createElement(s.A,null,n.createElement(c.A,null,n.createElement("h1",null,"Bulk Enquiry"),n.createElement("div",{className:"heading_btm"},n.createElement("div",{className:"heading_left"},null==l?void 0:l.length," Properties"),(null==t?void 0:t.length)>0&&n.createElement("div",{className:"heading_rgt"},n.createElement("div",{className:"include_bills d-lg-block d-none"},n.createElement("label",{class:"container-wrap"},n.createElement("input",{type:"checkbox",name:"select_all",value:!0,checked:v,onChange:e=>{!0===e.target.checked?y(l):y([])}}),n.createElement("span",{class:"checkmark"}),"Select All")),n.createElement(r.Link,{to:`/${d.R.bulk_enquiry}/`,state:{checked_property:E},className:"btn btn-primary "+((null==E?void 0:E.length)>0?"":"disabled")},"Enquire"))))),n.createElement("section",{className:"sales-section"},n.createElement(s.A,null,n.createElement(c.A,null,n.createElement(i.A,null,n.createElement("div",{className:"sales-wrapper"},l.length>0?l.map((e,t)=>{let a=(null==E?void 0:E.length)>0&&E.filter(t=>t.id===e.id),r=(null==a?void 0:a.length)>0;return n.createElement(n.Fragment,null,n.createElement(u.A,{item:e,key:t,isGridView:!1,list_type:"whislist",img_type:e.img_type,checked:r,handleCheck:k,add_enquiry:l,setBulkEnquiry:h}))}):n.createElement("p",{className:"no_record"},"Search for properties and add your favourites to your Wishlist. When youâre done, come back here and submit them to us as a single enquiry. Our team will then be in touch to arrange your viewings ",n.createElement(r.Link,{to:`/${d.R.property_to_rent}/in-${m.fm}`},"Click here")," to browse properties.")))))))))}}}]); 2//# sourceMappingURL=component---node-modules-gatsby-theme-starberry-lomondgroup-src-pages-property-wishlist-js-eb8a7e6480f2814ea853.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.