(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8221],{26729:function(e){"use strict";var t=Object.prototype.hasOwnProperty,a="~";function s(){}function n(e,t,a){this.fn=e,this.context=t,this.once=a||!1}function r(e,t,s,r,o){if("function"!=typeof s)throw TypeError("The listener must be a function");var l=new n(s,r||e,o),i=a?a+t:t;return e._events[i]?e._events[i].fn?e._events[i]=[e._events[i],l]:e._events[i].push(l):(e._events[i]=l,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new s:delete e._events[t]}function l(){this._events=new s,this._eventsCount=0}Object.create&&(s.prototype=Object.create(null),new s().__proto__||(a=!1)),l.prototype.eventNames=function(){var e,s,n=[];if(0===this._eventsCount)return n;for(s in e=this._events)t.call(e,s)&&n.push(a?s.slice(1):s);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},l.prototype.listeners=function(e){var t=a?a+e:e,s=this._events[t];if(!s)return[];if(s.fn)return[s.fn];for(var n=0,r=s.length,o=Array(r);n<r;n++)o[n]=s[n].fn;return o},l.prototype.listenerCount=function(e){var t=a?a+e:e,s=this._events[t];return s?s.fn?1:s.length:0},l.prototype.emit=function(e,t,s,n,r,o){var l=a?a+e:e;if(!this._events[l])return!1;var i,c,d=this._events[l],u=arguments.length;if(d.fn){switch(d.once&&this.removeListener(e,d.fn,void 0,!0),u){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,t),!0;case 3:return d.fn.call(d.context,t,s),!0;case 4:return d.fn.call(d.context,t,s,n),!0;case 5:return d.fn.call(d.context,t,s,n,r),!0;case 6:return d.fn.call(d.context,t,s,n,r,o),!0}for(c=1,i=Array(u-1);c<u;c++)i[c-1]=arguments[c];d.fn.apply(d.context,i)}else{var p,h=d.length;for(c=0;c<h;c++)switch(d[c].once&&this.removeListener(e,d[c].fn,void 0,!0),u){case 1:d[c].fn.call(d[c].context);break;case 2:d[c].fn.call(d[c].context,t);break;case 3:d[c].fn.call(d[c].context,t,s);break;case 4:d[c].fn.call(d[c].context,t,s,n);break;default:if(!i)for(p=1,i=Array(u-1);p<u;p++)i[p-1]=arguments[p];d[c].fn.apply(d[c].context,i)}}return!0},l.prototype.on=function(e,t,a){return r(this,e,t,a,!1)},l.prototype.once=function(e,t,a){return r(this,e,t,a,!0)},l.prototype.removeListener=function(e,t,s,n){var r=a?a+e:e;if(!this._events[r])return this;if(!t)return o(this,r),this;var l=this._events[r];if(l.fn)l.fn!==t||n&&!l.once||s&&l.context!==s||o(this,r);else{for(var i=0,c=[],d=l.length;i<d;i++)(l[i].fn!==t||n&&!l[i].once||s&&l[i].context!==s)&&c.push(l[i]);c.length?this._events[r]=1===c.length?c[0]:c:o(this,r)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=a?a+e:e,this._events[t]&&o(this,t)):(this._events=new s,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=a,l.EventEmitter=l,e.exports=l},91296:function(e,t,a){var s=0/0,n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,l=/^0o[0-7]+$/i,i=parseInt,c="object"==typeof a.g&&a.g&&a.g.Object===Object&&a.g,d="object"==typeof self&&self&&self.Object===Object&&self,u=c||d||Function("return this")(),p=Object.prototype.toString,h=Math.max,m=Math.min,f=function(){return u.Date.now()};function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==p.call(t))return s;if(v(e)){var t,a="function"==typeof e.valueOf?e.valueOf():e;e=v(a)?a+"":a}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(n,"");var c=o.test(e);return c||l.test(e)?i(e.slice(2),c?2:8):r.test(e)?s:+e}e.exports=function(e,t,a){var s,n,r,o,l,i,c=0,d=!1,u=!1,p=!0;if("function"!=typeof e)throw TypeError("Expected a function");function b(t){var a=s,r=n;return s=n=void 0,c=t,o=e.apply(r,a)}function y(e){var a=e-i,s=e-c;return void 0===i||a>=t||a<0||u&&s>=r}function x(){var e,a,s,n=f();if(y(n))return j(n);l=setTimeout(x,(e=n-i,a=n-c,s=t-e,u?m(s,r-a):s))}function j(e){return(l=void 0,p&&s)?b(e):(s=n=void 0,o)}function w(){var e,a=f(),r=y(a);if(s=arguments,n=this,i=a,r){if(void 0===l)return c=e=i,l=setTimeout(x,t),d?b(e):o;if(u)return l=setTimeout(x,t),b(i)}return void 0===l&&(l=setTimeout(x,t)),o}return t=g(t)||0,v(a)&&(d=!!a.leading,r=(u="maxWait"in a)?h(g(a.maxWait)||0,t):r,p="trailing"in a?!!a.trailing:p),w.cancel=function(){void 0!==l&&clearTimeout(l),c=0,s=i=n=l=void 0},w.flush=function(){return void 0===l?o:j(f())},w}},51489:function(e,t,a){(window.__NEXT_P=window.__NEXT_P||[]).push(["/list/[...path]",function(){return a(29498)}])},10299:function(e,t,a){"use strict";var s=a(85893),n=a(9008),r=a.n(n);t.Z=e=>{let{title:t,keywords:a,description:n}=e;return(0,s.jsxs)(r(),{children:[(0,s.jsx)("title",{children:t}),(0,s.jsx)("meta",{name:"keywords",content:a}),(0,s.jsx)("meta",{name:"description",content:n})]})}},58064:function(e,t,a){"use strict";var s=a(85893),n=a(67294),r=a(37054);let o=["places"],l={width:"100%",height:"100%"},i={minZoom:3.2,gestureHandling:"greedy",disableDefaultUI:!1};t.Z=()=>{let[e,t]=(0,n.useState)([]),a=(0,n.useRef)(null),c=(0,n.useRef)(null),{isLoaded:d}=(0,r.Db)({googleMapsApiKey:"AIzaSyDbd13BNtqBxsARH3oNdhirVw5GKMVcy48",libraries:o}),u=e=>{let a='https://overpass-api.de/api/interpreter?data=[out:json];relation["name"="'.concat(e,'"]["boundary"="administrative"];out geom;');fetch(a).then(e=>e.json()).then(e=>{let a=p(e);if(a.length>0){let e=a.map(e=>e.map(e=>({lat:e.lat,lng:e.lon})));t(e)}else alert("No boundary data found for this location.")}).catch(e=>{console.error("Error loading boundary data:",e)})},p=e=>{let t=[];return e.elements&&e.elements.length>0&&e.elements.forEach(e=>{if("relation"===e.type&&e.members){let a=e.members.filter(e=>"outer"===e.role&&"way"===e.type);a.forEach(e=>{t.push(e.geometry)})}}),t},h=()=>{if(c.current&&a.current){let e=new window.google.maps.places.SearchBox(c.current);e.addListener("places_changed",()=>{let t=e.getPlaces();if(t&&t.length>0){let e=t[0];if(!e.geometry)return;e.geometry.viewport?a.current.fitBounds(e.geometry.viewport):(a.current.setCenter(e.geometry.location),a.current.setZoom(10));let s=m(e);s&&u(s)}})}},m=e=>{let t=null;for(let a=0;a<e.address_components.length;a++){let s=e.address_components[a].types;if(s.includes("locality")||s.includes("administrative_area_level_1")||s.includes("administrative_area_level_2")){t=e.address_components[a].long_name;break}}return console.log("fine city",t),t};return(0,s.jsxs)("div",{style:{height:"100vh",width:"100%"},children:[(0,s.jsx)("input",{ref:c,type:"text",placeholder:"Search for a city...",style:{position:"absolute",zIndex:1,top:"10px",left:"50px",width:"300px",padding:"10px"}}),d&&(0,s.jsx)(r.b6,{zoom:3,center:{lat:37.0902,lng:-95.7129},mapContainerStyle:l,options:i,onLoad:e=>{a.current=e,h()},children:e.map((e,t)=>(0,s.jsx)(r.mg,{paths:e,options:{strokeColor:"#0975eb",strokeOpacity:.8,strokeWeight:2,fillColor:"#d3e2f1",fillOpacity:.4}},t))})]})}},29498:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return K}});var s=a(85893),n=a(67294),r=a(11163),o=a(41664),l=a.n(o),i=a(5152),c=a.n(i),d=a(10299);a(10615),a(1538);var u=a(9473),p=a(87066),h=a(19978),m=a.n(h),f=a(94054),v=a(8168),g=a(85071),b=a(93946),y=a(57922),x=a(53457),j=a(23508),w=a(60181),k=a(1778),S=a(44805),_=a(93658);a(45805);var C=a(50549);a(94989);var N=a(94865),O=a(51455),P=a(26729);let E=new P,I={on:(e,t)=>E.on(e,t),once:(e,t)=>E.once(e,t),off:(e,t)=>E.off(e,t),emit:(e,t)=>E.emit(e,t)};Object.freeze(I),a(58064);var L=a(37054),R=a(91296),D=a.n(R);let M={width:"100%",height:"100%"},B=["places","geometry","drawing"],U={administrative_area_level_1:7,locality:11,administrative_area_level_2:9,postal_code:14,country:3.2};function A(e){let t,a,{auth:r,properties:o,onMarkerClick:l,hoveredPropertyId:i,fetchData:c,parsedState:d,onDraw:p}=e;(0,u.I0)();let h=(0,u.v9)(e=>e.auth.country),[m,f]=(0,n.useState)([]),[v,g]=(0,n.useState)(null),b=(0,n.useRef)(null),[y,x]=(0,n.useState)(null),[j,w]=(0,n.useState)(!1),[k]=(0,n.useState)(o.length>0?{lat:o[0].location.coordinates[1],lng:o[0].location.coordinates[0]}:{lat:37.0902,lng:-95.7129});"USA"===h?(t={north:49.3457868,south:24.396308,west:-125,east:-66.93457},a="US"):"India"===h&&(t={north:37.6,south:6.7,west:68.7,east:97.25},a="IN");let S={region:a,minZoom:3.2,gestureHandling:"greedy",restriction:{latLngBounds:t,strictBounds:!1},disableDefaultUI:!1,optimizeForPerformance:!0,keyboardShortcuts:!1},[_,C]=(0,n.useState)(!1),[O,P]=(0,n.useState)(!1),[E,I]=(0,n.useState)([]),[R,B]=(0,n.useState)([]),A=(0,n.useRef)(null),[Z,q]=(0,n.useState)(4),T=(0,u.v9)(e=>e.property);(0,u.v9)(e=>e);let{isSearch:F,address:z,addressObj:W}=T,J=D()(()=>{if(b.current&&j){let e=b.current.getBounds(),t=b.current.getZoom();if(e&&t){let a=e.getNorthEast(),s=e.getSouthWest(),n={northEast:{lat:a.lat(),lng:a.lng()},southWest:{lat:s.lat(),lng:s.lng()}};x({boundary:n,zoomLevel:t}),c(1,[],null,n,t)}}},1e3),Q=e=>{e&&U[e]?q(U[e]):q(4)};(0,n.useEffect)(()=>{var e;let t=K(null==W?void 0:W.address_components);if(t){G(t);let a=(null==W?void 0:null===(e=W.types)||void 0===e?void 0:e[0])||"country";Q(a)}},[W]);let G=e=>{let t='https://overpass-api.de/api/interpreter?data=[out:json];relation["name"="'.concat(e,'"]["boundary"="administrative"];out geom;');fetch(t).then(e=>{if(!e.ok)throw Error("Boundary data not found for this location");return e.json()}).then(e=>{let t=V(e);if(t.length>0){let e=[];t.forEach((t,a)=>{(t[0].lat!==t[t.length-1].lat||t[0].lng!==t[t.length-1].lng)&&t.push(t[0]);let s=t.map(e=>({lat:e.lat,lng:e.lon}));e.push(s)}),f(e)}else console.log("Could not extract boundary data for this location.")}).catch(e=>{console.error("Error loading boundary data:",e)})},V=e=>{let t=[];return e.elements&&e.elements.length>0&&e.elements.forEach(e=>{if("relation"===e.type&&e.members){let a=e.members.filter(e=>"outer"===e.role&&"way"===e.type);a.forEach(e=>{t.push(e.geometry)})}}),t},K=e=>{let t=null;if(e){for(let a=0;a<e.length;a++){let s=e[a].types;if(s.includes("locality")||s.includes("administrative_area_level_1")||s.includes("administrative_area_level_2")){t=e[a].long_name;break}}return t}},H=()=>{if(!(null==W?void 0:W.place_id)){console.error("Place ID is missing.");return}if(b.current){let e=new window.google.maps.places.PlacesService(b.current),t={placeId:W.place_id,fields:["geometry"]};e.getDetails(t,(e,t)=>{if(t===window.google.maps.places.PlacesServiceStatus.OK){let t=e.geometry.location;e.geometry.viewport?b.current.fitBounds(e.geometry.viewport):t&&(b.current.setCenter(t),q(U[W.types[0]]||11))}else console.error("PlacesService request failed with status:",t)})}else console.error("Map reference is not available.")};return(0,s.jsxs)(L.b6,{zoom:Z,center:k,options:{...S,gestureHandling:_?"none":"greedy"},onLoad:e=>{b.current=e,H()},onBoundsChanged:()=>{w(!0),J()},mapContainerStyle:M,onMouseMove:e=>{if(O){A.current&&clearTimeout(A.current);let t={lat:e.latLng.lat(),lng:e.latLng.lng()};I([...E,t]),A.current=setTimeout(()=>{P(!1),B(E),C(!1),I([])},150)}},onMouseDown:e=>{I([]),P(!0)},onMouseUp:e=>{P(!1)},onMouseOut:e=>{P(!1)},children:[(0,s.jsxs)("div",{style:{width:40,position:"absolute",top:50,right:10,marginTop:15,gap:15,flexDirection:"column",display:"flex",justifyContent:"center",alignContent:"center"},children:[(0,s.jsx)("button",{onClick:()=>{_?C(!1):(C(!0),f([]),B([]))},style:{width:40,height:40,background:"white"},children:(0,s.jsx)("i",{className:"fa ".concat(_?"fa-trash":"fa-pencil"),"aria-hidden":"true"})}),R.length>0&&(0,s.jsx)("button",{onClick:()=>{C(!1),f([]),B([])},style:{width:40,height:40,background:"white"},children:(0,s.jsx)("i",{className:"fa fa-trash","aria-hidden":"true"})})]}),(()=>{if(!(E.length<=0))return(0,s.jsx)(L.aH,{path:E})})(),(()=>{if(!(R.length<=0))return(0,s.jsx)(L.mg,{path:R,options:{strokeColor:"rgba(45, 85, 255,1)",fillColor:"rgba(45, 85, 255,0.3)"}})})(),(0,s.jsx)(n.Fragment,{children:m.length>0?m.map((e,t)=>(0,s.jsx)(L.mg,{paths:e,options:{strokeColor:"#0975eb",strokeOpacity:.8,strokeWeight:2,fillColor:"#d3e2f1",fillOpacity:.4}},t)):null}),o.map(e=>{var t,a,n,r,o;let{coordinates:c}=e.location;return(0,s.jsx)(L.Jx,{position:{lat:c[1],lng:c[0]},icon:{url:i===e._id?"/assets/images/webp/map-pin1.webp":"/assets/images/webp/map-pin.webp",scaledSize:new window.google.maps.Size(i===e._id?35:25,i===e._id?53:38)},onClick:()=>l(e),onMouseOver:()=>g(e),onMouseOut:()=>g(null),children:v&&v._id===e._id&&(0,s.jsx)(L.vD,{position:{lat:c[1],lng:c[0]},options:{disableAutoPan:!0,closeBoxURL:"",enableEventPropagation:!0},children:(0,s.jsx)("div",{style:{backgroundColor:"white",padding:"2px",width:"250px",border:"1px solid #ccc"},children:(0,s.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,s.jsx)("a",{href:"/properties/".concat(null==e?void 0:e._id,"/").concat(encodeURIComponent(null==e?void 0:e.propertyName.replace(/,/g,"").replace(/ /g,"-"))),target:"_blank",rel:"noopener noreferrer",children:(0,s.jsx)("img",{src:(null==e?void 0:null===(a=e.mediaInfo)||void 0===a?void 0:null===(t=a.photos[0])||void 0===t?void 0:t.url)?"".concat(N.G3,"/").concat(null==e?void 0:null===(r=e.mediaInfo)||void 0===r?void 0:null===(n=r.photos[0])||void 0===n?void 0:n.url):"/assets/images/webp/property-feature-img.webp",alt:"Property Image",style:{width:"80px",height:"65px"}})}),(0,s.jsxs)("div",{style:{marginLeft:"10px"},children:[(0,s.jsx)("a",{href:"/properties/".concat(null==e?void 0:e._id,"/").concat(encodeURIComponent(null==e?void 0:e.propertyName.replace(/,/g,"").replace(/ /g,"-"))),target:"_blank",rel:"noopener noreferrer",children:(0,s.jsx)("p",{style:{fontWeight:"bold",margin:"0 0 5px"},children:(null==e?void 0:e.propertyName.length)>25?"".concat(null==e?void 0:e.propertyName.substring(0,25),"..."):null==e?void 0:e.propertyName})}),(0,s.jsxs)("p",{style:{margin:"0 0 5px"},children:["Price: $",parseInt(e.askingPrice,10).toLocaleString()]}),(0,s.jsxs)("p",{style:{margin:0},children:["Category: ",null==e?void 0:null===(o=e.category)||void 0===o?void 0:o.name]})]})]})})})},e._id)})]})}function Z(e){let{auth:t,properties:a,onMarkerClick:n,hoveredPropertyId:r,fetchData:o,parsedState:l,onDraw:i}=e,{isLoaded:c}=(0,L.Db)({googleMapsApiKey:N.eh,libraries:B});return c?(0,s.jsx)("div",{style:{width:"100%",height:"100%"},children:(0,s.jsx)(A,{auth:t,properties:a,hoveredPropertyId:r,onMarkerClick:n,parsedState:l,fetchData:o,onDraw:i})}):(0,s.jsx)("div",{children:"Loading map..."})}var q=a(5430);a(25675);var T=a(82068),F=a(59772);function z(e){var t;let{dclass:a}=e;(0,u.I0)();let r=(0,u.v9)(e=>e.auth),[o,i]=(0,n.useState)(!1);return(0,s.jsxs)("footer",{className:a,children:[(0,s.jsx)("div",{className:"footer-top",children:(0,s.jsx)("div",{className:"container",children:(0,s.jsx)("div",{className:"row",children:(0,s.jsxs)("div",{className:"col-lg-6",children:[(0,s.jsx)("h2",{children:"Browse and evaluate the most refined and reliable commercial real estate marketplace with confidence!"}),(0,s.jsx)(l(),{href:"/demo",className:"btn btn-primary blue-btn","aria-label":"Read more about Broker and Properties",children:"Request Demo"})]})})})}),(0,s.jsx)("div",{className:"footer-middle",children:(0,s.jsx)("div",{className:"container",children:(0,s.jsxs)("div",{className:"row",children:[(0,s.jsxs)("div",{className:"col-lg-3 col-md-6 mb-3",children:[(0,s.jsx)(l(),{href:"/",className:"footer-logo",children:(0,s.jsx)("img",{src:"/assets/images/webp/logo-black.webp",alt:"/assets/images/webp/logo-black.webp","aria-label":"Read more about Broker and Properties"})}),(0,s.jsx)("p",{children:"CreLookUp is a value-packed trustworthy commercial real estate platform designed to offer insightful advice, reliable information, and an all-encompassing marketplace for players in the CRE space, including discerning buyers, sellers, and agents, to make winning moves in the commercial real estate industry."})]}),(0,s.jsxs)("div",{className:"col-lg-3 mb-3",children:[(0,s.jsx)("h3",{children:"Company Address"}),(0,s.jsxs)("ul",{className:"footer-contact-list",children:[(0,s.jsxs)("li",{children:[(0,s.jsx)("img",{src:"/assets/images/webp/address.webp",alt:"/assets/images/webp/address.webp"})," 325 S College Ave",(0,s.jsx)("br",{}),"Indianapolis, IN 46202"]}),(0,s.jsxs)("li",{children:[(0,s.jsxs)("a",{href:"tel:1-800-649-1680","aria-label":"Read more about Broker and Properties",children:[" ",(0,s.jsx)("img",{src:"/assets/images/webp/phone.webp",alt:"/assets/images/webp/phone.webp"})," 1-800-649-1680"]})," "]}),(0,s.jsxs)("li",{children:[(0,s.jsxs)("a",{href:"mailto:info@crelookup.com","aria-label":"Read more about Broker and Properties",children:[" ",(0,s.jsx)("img",{src:"/assets/images/webp/email.webp",alt:"/assets/images/webp/email.webp"})," info@crelookup.com "]})," "]})]})]}),(0,s.jsxs)("div",{className:"col-lg-2 col-md-6 mb-3",children:[(0,s.jsx)("h3",{children:"Quick Links"}),(0,s.jsxs)("ul",{className:"footer-icon-list",children:[(0,s.jsx)("li",{children:(0,s.jsxs)(l(),{href:"/about-us",children:[(0,s.jsx)("i",{className:"fa fa-angle-right","aria-hidden":"true","aria-label":"Read more about Broker and Properties"})," About Us"]})}),(0,s.jsx)("li",{children:(0,s.jsxs)(l(),{href:"/blog",children:[(0,s.jsx)("i",{className:"fa fa-angle-right","aria-hidden":"true","aria-label":"Read more about Broker and Properties"})," Blog"]})}),(0,s.jsx)("li",{children:(0,s.jsxs)(l(),{href:"/contact-us",children:[(0,s.jsx)("i",{className:"fa fa-angle-right","aria-hidden":"true","aria-label":"Read more about Broker and Properties"})," Contact Us"]})}),(0,s.jsx)("li",{children:(0,s.jsxs)(l(),{href:"/privacy",children:[(0,s.jsx)("i",{className:"fa fa-angle-right","aria-hidden":"true","aria-label":"Read more about Broker and Properties"})," Privacy Policy"]})}),(0,s.jsx)("li",{children:(0,s.jsxs)(l(),{href:"/terms",children:[(0,s.jsx)("i",{className:"fa fa-angle-right","aria-hidden":"true","aria-label":"Read more about Broker and Properties"})," Term and Conditions"]})}),(0,s.jsx)("li",{children:(0,s.jsxs)(l(),{href:"/career",children:[(0,s.jsx)("i",{className:"fa fa-angle-right","aria-hidden":"true","aria-label":"Read more about Broker and Properties"})," Career"]})}),(0,s.jsx)("li",{children:(null==r?void 0:null===(t=r.user)||void 0===t?void 0:t.account_status)===1?(0,s.jsxs)(l(),{className:"nav-link",href:"javascript:void(0);",onClick:()=>{i(!0)},"aria-label":"Read more about Broker and Properties",children:[(0,s.jsx)("i",{className:"fa fa-angle-right","aria-hidden":"true"}),"  Add Listing"]}):(0,s.jsxs)(l(),{href:"/add-property","aria-label":"Read more about Broker and Properties",children:[(0,s.jsx)("i",{className:"fa fa-angle-right","aria-hidden":"true"})," Add Listing"]})})]})]}),(0,s.jsx)(F.Z,{})]})})}),(0,s.jsx)("div",{className:"footer-bottom",children:(0,s.jsx)("div",{className:"container",children:(0,s.jsxs)("div",{className:"row",children:[(0,s.jsx)("div",{className:"col-md-7 col-sm-9",children:(0,s.jsxs)("p",{className:"copyright-txt",children:["Copyright \xa9 2024 ",(0,s.jsx)(l(),{href:"/","aria-label":"Read more about Broker and Properties",children:"Crelookup.com"}),". All Rights Reserved."]})}),(0,s.jsx)("div",{className:"col-md-5 col-sm-3",children:(0,s.jsxs)("ul",{className:"footer-social-link",children:[(0,s.jsx)("li",{children:(0,s.jsx)(l(),{href:"https://www.facebook.com/crelookup/",target:"_blank","aria-label":"Read more about Broker and Properties",children:(0,s.jsx)("i",{className:"fa fa-facebook","aria-hidden":"true"})})}),(0,s.jsx)("li",{children:(0,s.jsx)(l(),{href:"https://twitter.com/crelookup",target:"_blank","aria-label":"Read more about Broker and Properties",children:(0,s.jsx)("i",{className:"fa fa-twitter","aria-hidden":"true"})})}),(0,s.jsx)("li",{children:(0,s.jsx)(l(),{href:"https://www.instagram.com/Crelookup/",target:"_blank","aria-label":"Read more about Broker and Properties",children:(0,s.jsx)("i",{className:"fa fa-instagram","aria-hidden":"true"})})}),(0,s.jsx)("li",{children:(0,s.jsx)(l(),{href:"https://www.youtube.com/channel/UCBzKIEiHxa6lx_Tx5G27PNA?view_as=subscriber",target:"_blank","aria-label":"Read more about Broker and Properties",children:(0,s.jsx)("i",{className:"fa fa-youtube","aria-hidden":"true"})})}),(0,s.jsx)("li",{children:(0,s.jsx)(l(),{href:"https://www.linkedin.com/company/crelookup/",target:"_blank","aria-label":"Read more about Broker and Properties",children:(0,s.jsx)("i",{className:"fa fa-linkedin","aria-hidden":"true"})})})]})})]})})}),(0,s.jsx)(T.Z,{isComeOpen:o,closeComeModal:()=>{i(!1)}})]})}let W=c()(()=>a.e(2620).then(a.bind(a,32620)),{loadableGenerated:{webpack:()=>[32620]},ssr:!1});c()(()=>a.e(6965).then(a.bind(a,76965)),{loadableGenerated:{webpack:()=>[76965]},ssr:!1});let J=c()(()=>Promise.all([a.e(1551),a.e(2598),a.e(7722)]).then(a.bind(a,27722)),{loadableGenerated:{webpack:()=>[27722]},ssr:!1});c()(()=>Promise.resolve().then(a.bind(a,26494)),{loadableGenerated:{webpack:()=>[26494]},ssr:!1});let Q=c()(()=>a.e(7466).then(a.bind(a,77466)),{loadableGenerated:{webpack:()=>[77466]},ssr:!1});c()(()=>Promise.resolve().then(a.bind(a,89805)),{loadableGenerated:{webpack:()=>[89805]},ssr:!1});let G=c()(()=>a.e(1578).then(a.bind(a,11578)),{loadableGenerated:{webpack:()=>[11578]},ssr:!1});function V(e){return"us"===e?"United States":"string"==typeof e||e instanceof String?e.replace(/-/g," ").replace(/\b\w/g,e=>e.toUpperCase()):""}function K(){var e,t,a,o,i;let c,h;let P=(0,u.I0)(),{apiData:E}=(0,O.h)(),L=(0,n.useRef)(null),R=(0,u.v9)(e=>e.auth),D=(0,u.v9)(e=>e.property),{selectedCategories:M,advanceClick:B,isSearch:U}=D,A=(0,r.useRouter)(),[T,F]=(0,n.useState)(null),K=(0,n.useRef)(null),[H,$]=(0,n.useState)([]),[Y,X]=(0,n.useState)({}),[ee,et]=(0,n.useState)(!1),[ea,es]=(0,n.useState)(!1),[en,er]=(0,n.useState)(!1),[eo,el]=(0,n.useState)([]),[ei,ec]=(0,n.useState)([]),[ed,eu]=(0,n.useState)(!1),[ep,eh]=(0,n.useState)(!1),[em,ef]=(0,n.useState)(!1),[ev,eg]=(0,n.useState)("US"),[eb,ey]=(0,n.useState)("business"),[ex,ej]=(0,n.useState)(null==E?void 0:E.business),[ew,ek]=(0,n.useState)(!1),[eS,e_]=(0,n.useState)("col-md-12"),[eC,eN]=(0,n.useState)(null),[eO,eP]=(0,n.useState)({minPrice:"",maxPrice:""}),[eE,eI]=(0,n.useState)("none"),[eL,eR]=(0,n.useState)(1),[eD,eM]=(0,n.useState)(1),[eB,eU]=(0,n.useState)(500),eA=(0,n.useRef)(null),[eZ,eq]=(0,n.useState)(0),[eT,eF]=(0,n.useState)(null),[ez,eW]=(0,n.useState)([]),[eJ,eQ]=(0,n.useState)(!1),eG=(e,t)=>{console.log();let a=[...ez];a[t]=e,eW(a)},eV=e=>{eF(e)},eK=()=>{eF(null)};(0,n.useEffect)(()=>{let e={};H.forEach(t=>{e[t._id]=t.isLiked}),X(e)},[H]);let eH=V(null===(e=A.query.path)||void 0===e?void 0:e[0]),e$=V(null===(t=A.query.path)||void 0===t?void 0:t[1]),eY=V(null===(a=A.query.path)||void 0===a?void 0:a[2]);"For Sale"===eY?(c="For Sale",h="Property"):"For Lease"===eY?(c="For Lease",h="Lease"):"Auction"===eY?(c="Auction",h="Auction"):(c="Businesses for Sale",h="Business");let eX=(0,n.useMemo)(()=>null==eC?"".concat(e$," ").concat(eH," ").concat(null!=eY?eY:""," | Crelookup"):eC.metaTitle,[eC,e$,eH,eY]),e0=(0,n.useMemo)(()=>null==eC?"".concat(e$," ").concat(eH," ").concat(null!=eY?eY:"",", Commercial Properties ").concat(c):eC.metaKeywords,[eC,e$,eH,c]),e1=(0,n.useMemo)(()=>null==eC?"See thousands of ".concat(eH," listings ").concat(null!=eY?eY:"",". Access photos, 3D tours and content only available on Crelookup"):eC.metaDescription,[eC,eH,eY]),e2=(0,n.useMemo)(()=>null==eC?"Access thousands of refined listings in various categories across the United States to discover your new project!\n        CreLookUp is the most extensive refined commercial real estate marketplace on the internet with more than 500 new vetted listings added every day. Browse our directory to find some of the best deals in the CRE space for lease or for sale. Evaluate the quality and feasibility with hi-res photos, 360-degree views, virtual property tours, detailed floor plans, and reliable data insights to find your breakthrough projects here!\n        CreLookUp features listings in multiple categories including retail, commercial office units, restaurants, land spaces, industrial properties, and many more, ready to be taken up by passionate commercial real estate investors across the country.\n        Looking to expand your portfolio with unique industrial projects? The CreLookUp platform lists a plethora of certified hidden gems in commercial real estate, that demand the skills and expertise of creative professionals like you!\n        If you are a real estate agent or company with commercial properties available to lease or sell in Alabama, register with CreLookUp to reach millions of targeted traffic and find your best fit in days! Market your CRE properties anywhere in the country and expand your presence with CreLookUp today!":function(e){if(e){let t=new DOMParser().parseFromString(e,"text/html");return t.body.textContent||""}return"No Content"}(eC.description),[eC]),e5=(0,n.useMemo)(()=>[{value:"none",label:"New Listing"},{value:"asc",label:"Price - low to high"},{value:"desc",label:"Price - high to low"}],[]),e9=(0,n.useCallback)(()=>{P((0,k.c_)(!0))},[P]),e4=(0,n.useCallback)(()=>{P((0,k.c_)(!1))},[P]),e3=(0,n.useCallback)(()=>{var e;eh(!0);let t=JSON.parse(sessionStorage.getItem("queryObject")),a=null==t?void 0:null===(e=t.queryObject)||void 0===e?void 0:e.state,s=JSON.parse(localStorage.getItem("selectedCategories")),n=sessionStorage.getItem("page");p.Z.post("".concat(N.b3,"/api/v1/property/saveSearch"),{address:ev,searchName:ev,notifications:"Never",categories:s,state:a,page:n,search:8},{headers:{Authorization:R.token}}).then(e=>{console.log(e)}).catch(e=>{console.log("error",e)})},[ev,R.token]),e6=(0,n.useCallback)(()=>{eh(!1)},[]),e8=(0,n.useCallback)(e=>{let{name:t,value:a}=e.target,s=a.replace(/\D/g,"").replace(/\B(?=(\d{3})+(?!\d))/g,",");eP(e=>({...e,[t]:s}))},[]),e7=(0,n.useCallback)(()=>{eu(!ed)},[ed]),te=(0,n.useCallback)(e=>{eA.current&&!eA.current.contains(e.target)&&eu(!1)},[]);(0,n.useEffect)(()=>{B&&P((0,k.c_)(!0))},[B,P]),(0,n.useEffect)(()=>(document.addEventListener("mousedown",te),()=>{document.removeEventListener("mousedown",te)}),[te]),(0,n.useEffect)(()=>{ta(eL)},[E,em,eL]);let tt=(0,n.useCallback)(async(e,t)=>{try{if(A.query){let a=await p.Z.get("".concat(N.b3,"/api/v1/admin/locationByPlace/").concat(e,"?propertyFor=").concat(h,"&category=").concat(t));eN(a.data.data)}}catch(e){eN(null),console.error("Error in fetchLocation:",e)}},[A.query,h]),ta=(0,n.useCallback)(async function(){var e,t,a,s,n,r,o,l,i,c,d,u,h,m,f,v,g;let b=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],x=(arguments.length>2&&void 0!==arguments[2]&&arguments[2],arguments.length>3&&void 0!==arguments[3]?arguments[3]:null),j=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;if(y.length>0){y.length>1&&JSON.stringify(y[0])!==JSON.stringify(y[y.length-1])&&y.push(y[0]),et(!0);try{let e=await p.Z.post("".concat(N.b3,"/api/v1/property/map-draw"),{user:"",cordinates:y},{headers:{Authorization:R.token}});et(!1),$(e.data),el([y])}catch(e){et(!1),$([]),es(!0),el([])}el([y]);return}if(null!=x){try{console.log(x,"-----------------",j);let d=x?"&swLat=".concat(null==x?void 0:null===(e=x.southWest)||void 0===e?void 0:e.lat,"&swLng=").concat(null==x?void 0:null===(t=x.southWest)||void 0===t?void 0:t.lng,"&neLat=").concat(null==x?void 0:null===(a=x.northEast)||void 0===a?void 0:a.lat,"&neLng=").concat(null==x?void 0:null===(s=x.northEast)||void 0===s?void 0:s.lng):"",u="property/home-filter?ids=".concat(d,"&page=").concat(b),h=await p.Z.get("".concat(N.b3,"/api/v1/").concat(u,"&limit=12"));console.log("boundary response",h.data);let m="";et(!0),es(!1);let f=JSON.parse(sessionStorage.getItem("queryObject"));if(!f){sessionStorage.setItem("queryObject",JSON.stringify({queryObject:{address:"US",state:{ids:"",lat:"",lng:"",city:"",state:"",county:"",country:"US",placeId:"ChIJCzYy5IS16lQRQrfeQ5K5Oxw",location_type:"country"},search:3}})),sessionStorage.setItem("address","US");let e=window.location.href,t="property";e.includes("/list/us/businesses-for-sale")?t="business":e.includes("/list/commercial-real-estate/us/for-sale")?t="property":e.includes("/list/commercial-real-estate/us/for-lease")?t="lease":e.includes("/list/commercial-real-estate/us/auction")&&(t="auction"),sessionStorage.setItem("page",t),P((0,k.mw)([])),P((0,k.Ot)({address:"US"}))}let{ids:v,city:g,state:y,county:w,country:S,min:_,max:C,minSF:O,maxSF:E,broker:I,time:L,status:D,keyword:M}=null==f?void 0:null===(n=f.queryObject)||void 0===n?void 0:n.state,{swLat:B,swLng:U,neLat:A,neLng:Z}=x||{},q="&broker=".concat(I||""),T="&time=".concat(L||""),F="&status=".concat(D||""),z="&city=".concat(g||"","&state=").concat(y||"","&county=").concat(w||"","&country=").concat(S||""),W=void 0!==_&&void 0!==C?"&minPrice=".concat(_,"&maxPrice=").concat(C):"",J=void 0!==O&&void 0!==E?"&minSF=".concat(O,"&maxSF=").concat(E):"",Q="&keyword=".concat(M||""),G=(null==R?void 0:null===(r=R.user)||void 0===r?void 0:r._id)?"&user=".concat(R.user._id):"",V=x?"&swLat=".concat(null==x?void 0:null===(o=x.southWest)||void 0===o?void 0:o.lat,"&swLng=").concat(null==x?void 0:null===(l=x.southWest)||void 0===l?void 0:l.lng,"&neLat=").concat(null==x?void 0:null===(i=x.northEast)||void 0===i?void 0:i.lat,"&neLng=").concat(null==x?void 0:null===(c=x.northEast)||void 0===c?void 0:c.lng):"";m="property/home-filter?ids=".concat(v).concat(z).concat(W).concat(J).concat(Q).concat(G).concat("&propertyFor=".concat("property"===eb?2:"business"===eb?1:"lease"===eb?3:"auction"===eb?4:1)).concat(q).concat(T).concat(F).concat(V,"&page=").concat(b);let K=await p.Z.get("".concat(N.b3,"/api/v1/").concat(m,"&limit=12"));et(!1),$(K.data.data),eW(K.data.data.map(()=>0)),eM(K.data.totalPages),eU(K.data.totalProperties)}catch(e){et(!1),$([]),e.response&&404===e.response.status&&es(!0)}return}try{et(!0),es(!1);let e=JSON.parse(sessionStorage.getItem("queryObject"));if(!e){sessionStorage.setItem("queryObject",JSON.stringify({queryObject:{address:"US",state:{ids:"",lat:"",lng:"",city:"",state:"",county:"",country:"US",placeId:"ChIJCzYy5IS16lQRQrfeQ5K5Oxw",location_type:"country"},search:3}})),sessionStorage.setItem("address","US");let e=window.location.href,t="property";e.includes("/list/us/businesses-for-sale")?t="business":e.includes("/list/commercial-real-estate/us/for-sale")?t="property":e.includes("/list/commercial-real-estate/us/for-lease")?t="lease":e.includes("/list/commercial-real-estate/us/auction")&&(t="auction"),sessionStorage.setItem("page",t),P((0,k.mw)([])),P((0,k.Ot)({address:"US"}))}let t=sessionStorage.getItem("address");eg(t);let a=sessionStorage.getItem("page");ey(a),ej("property"===a?null==E?void 0:E.property:"business"===a?null==E?void 0:E.business:"lease"===a?null==E?void 0:E.lease:"auction"===a?null==E?void 0:E.auction:null);let s="&propertyFor=".concat("property"===a?2:"business"===a?1:"lease"===a?3:"auction"===a?4:1),n="";if(3===e.queryObject.search){let e=(null==R?void 0:null===(f=R.user)||void 0===f?void 0:f._id)?"&user=".concat(R.user._id):"";n="property/home-filter?ids=&city=&state=&county=&country=&minPrice=&maxPrice=".concat(e).concat("").concat(s,"&page=").concat(b)}else{let{ids:t,city:a,state:r,county:o,country:l,min:i,max:c,minSF:d,maxSF:u,broker:p,time:h,status:m,keyword:f}=null==e?void 0:null===(v=e.queryObject)||void 0===v?void 0:v.state,{swLat:y,swLng:j,neLat:w,neLng:k}=x||{},S="&broker=".concat(p||""),_="&time=".concat(h||""),C="&status=".concat(m||""),N="&city=".concat(a||"","&state=").concat(r||"","&county=").concat(o||"","&country=").concat(l||""),O=void 0!==i&&void 0!==c?"&minPrice=".concat(i,"&maxPrice=").concat(c):"",P=void 0!==d&&void 0!==u?"&minSF=".concat(d,"&maxSF=").concat(u):"",E="&keyword=".concat(f||""),I=(null==R?void 0:null===(g=R.user)||void 0===g?void 0:g._id)?"&user=".concat(R.user._id):"",L=x?"&swLat=".concat(y,"&swLng=").concat(j,"&neLat=").concat(w,"&neLng=").concat(k):"";n="property/home-filter?ids=".concat(t).concat(N).concat(O).concat(P).concat(E).concat(I).concat(s).concat(S).concat(_).concat(C).concat(L,"&page=").concat(b)}let r=null==e?void 0:null===(u=e.queryObject)||void 0===u?void 0:null===(d=u.state)||void 0===d?void 0:d.ids,o=r.split(",")[0];tt(null==e?void 0:null===(m=e.queryObject)||void 0===m?void 0:null===(h=m.state)||void 0===h?void 0:h.placeId,o);let l=await p.Z.get("".concat(N.b3,"/api/v1/").concat(n,"&limit=12"));et(!1),$(l.data.data),eM(l.data.totalPages),eU(l.data.totalProperties)}catch(e){et(!1),$([]),e.response&&404===e.response.status&&es(!0)}},[null==R?void 0:null===(o=R.user)||void 0===o?void 0:o._id,R.token,P,tt,A.query,E,eL]),ts=(0,n.useCallback)(e=>{let t=e.value;eI(e.value),$("asc"===t?H.slice().sort((e,t)=>e.askingPrice-t.askingPrice):"desc"===t?H.slice().sort((e,t)=>t.askingPrice-e.askingPrice):H.slice().sort((e,t)=>new Date(t.updated_at)-new Date(e.updated_at)))},[H]),tn=(0,n.useCallback)(async()=>{sessionStorage.removeItem("drawnPolygon");let e=sessionStorage.getItem("page"),t="/list/commercial-real-estate/us";"business"===e?t="/list/us/businesses-for-sale":"property"===e?t+="/for-sale":"lease"===e?t+="/for-lease":"auction"===e&&(t+="/auction"),P((0,k.Ot)({address:"US"})),A.replace({pathname:t},void 0,{shallow:!0}),ta()},[P,ta,A]),tr=(0,n.useCallback)(e=>{console.log("propertyproperty",e),F(e._id);let t=document.getElementById("property-".concat(e._id));if(t){let e=window.innerHeight/2-t.clientHeight/2;window.scrollTo({behavior:"smooth",top:t.offsetTop-e})}},[]),to=(0,n.useCallback)(async e=>{var t;if(!(null==R?void 0:R.user)){P((0,S.W4)(!0));return}X(t=>({...t,[e]:!t[e]}));try{let a="".concat(N.b3,"/api/v1/property/likeDislike"),s={userId:null==R?void 0:null===(t=R.user)||void 0===t?void 0:t._id,propertyId:e};await p.Z.post(a,s,{headers:{Authorization:R.token}})}catch(e){console.error("Error:",e)}},[null==R?void 0:R.user,R.token,P]),tl=(0,n.useCallback)(e=>{let t;let a=M.includes(e);if(a)t=M.filter(t=>t!==e&&!t.startsWith("".concat(e,"_"))),P((0,k.mw)(t));else{let a=ex.find(t=>t._id===e),s=a.subcategories.map(t=>"".concat(e,"_").concat(t._id));t=[...M,e,...s],P((0,k.mw)(t))}tc(e)},[P,M,ex]),ti=(0,n.useCallback)(e=>{let t=M.indexOf(e);if(-1===t)P((0,k.mw)([...M,e]));else{let t=M.filter(t=>t!==e);P((0,k.mw)(t))}},[P,M]),tc=(0,n.useCallback)(e=>{let t=ei.includes(e),a=t?ei.filter(t=>t!==e):[...ei,e];ec(a)},[ei]),td=(0,n.useCallback)(e=>{el([e]),ta(eL,e)},[eL,ta]),tu=(0,n.useCallback)((e,t)=>{for(let a in e){let s=e[a];if(s.types&&s.types.includes(t))return s.long_name||s.short_name}return null},[]),tp=(0,n.useCallback)(e=>{let t=m().lookup(e.trim());return t?t.abbr:null},[]),th=(0,n.useCallback)((e,t)=>{let a=t.split(","),s=null==E?void 0:E.business;s="property"===e?null==E?void 0:E.property:"lease"===e?null==E?void 0:E.lease:"business"===e?null==E?void 0:E.business:"auction"===e?null==E?void 0:E.auction:null==E?void 0:E.business;let n=a.map(e=>{let t=s.find(t=>t._id===e);return t?t.name:null});return n.filter(e=>null!==e).join(", ")},[E]),tm=(0,n.useCallback)(()=>{var e,t,a,s;let n;let{address_components:r,formatted_address:o,place_id:l}=ev,i=""!==ev?tu(r,"locality"):"",c=""!==ev?tu(r,"administrative_area_level_1"):"",d=""!==ev?tu(r,"administrative_area_level_2"):"";""!==ev&&tu(r,"country");let u=""!==ev&&r&&r.length>0?null===(t=r[0])||void 0===t?void 0:null===(e=t.types)||void 0===e?void 0:e[0]:"",p=M.map(e=>e.split("_").pop()),h=p.length>0?p.join(","):"";sessionStorage.removeItem("drawnPolygon");let m={ids:h,lat:"",lng:"",city:i,state:c,county:d,country:"US",placeId:l||"ChIJCzYy5IS16lQRQrfeQ5K5Oxw",location_type:u||"country",min:null!==(a=eO.minPrice)&&void 0!==a?a:0,max:null!==(s=eO.maxPrice)&&void 0!==s?s:999999999};sessionStorage.removeItem("queryObject");let f=Object.values(m).filter(e=>""!==e).length;ex===(null==E?void 0:E.business)?n="business":ex===(null==E?void 0:E.property)?n="property":ex===(null==E?void 0:E.lease)?n="lease":ex===(null==E?void 0:E.auction)&&(n="auction"),sessionStorage.setItem("address",null!=o?o:"US"),sessionStorage.setItem("queryObject",JSON.stringify({queryObject:{address:null!=o?o:"US",state:m,search:f}})),sessionStorage.setItem("page",n),P((0,k.Ot)({address:o,addressObj:ev}));let v="";if(h){let e=th(n,h),t=e.split(",");("property"==n||"lease"==n)&&(v=t.length>1?"commercial-real-estate":t[0].replace(/\s+/g,"-").toLowerCase())}else("property"===n||"lease"===n)&&(v="commercial-real-estate");let g="/list".concat(v?"/".concat(v,"/"):"/");if(i){let e=i.toLowerCase().replace(/\s+/g,"-");c?g+="".concat(e,"-").concat(tp(c)):g+="".concat(e)}else if(c)g+="".concat(c.toLowerCase());else{let e=m.country.toLowerCase();g+="".concat(e)}"business"===n?g+="/businesses-for-sale":"property"===n?g+="/for-sale":"lease"===n&&(g+="/for-lease"),eQ(!1),setTimeout(()=>{eQ(!0)},150),P((0,k.yo)(!0)),ef(!em),A.push({pathname:g})},[ev,null==E?void 0:E.business,null==E?void 0:E.lease,null==E?void 0:E.property,null==E?void 0:E.auction,P,tu,th,tp,eO,em,A,M,ex]),tf=(0,n.useCallback)(()=>{var e,t;I.once("CLEAR_MAP_BOUNDARY",()=>{}),eQ(!1),setTimeout(()=>{eQ(!0)},300);let a={ids:"",broker:"",lat:"",lng:"",city:"",state:"",county:"",country:"US",placeId:"ChIJCzYy5IS16lQRQrfeQ5K5Oxw",location_type:"country",min:null!==(e=eO.minPrice)&&void 0!==e?e:0,max:null!==(t=eO.maxPrice)&&void 0!==t?t:999999999};sessionStorage.setItem("address","US"),sessionStorage.setItem("queryObject",JSON.stringify({queryObject:{address:"US",state:a,search:3}})),eg("US"),sessionStorage.getItem("page"),sessionStorage.removeItem("drawnPolygon"),P((0,k.yo)(!1)),P((0,k.Ot)({address:"US"}))},[P,eO.minPrice]),tv=(0,n.useCallback)(()=>{ek(!ew),eQ(!ew),e_(e=>"col-md-12"===e?"col-md-7":"col-md-7"===e?"col-md-12":e)},[ew]);return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d.Z,{title:eX,keywords:e0,description:e1}),(0,s.jsx)("section",{className:"filter-sc",children:(0,s.jsx)("div",{className:"container",children:(0,s.jsxs)("div",{className:"row",children:[(0,s.jsxs)("div",{className:"col-md-12",children:[(0,s.jsxs)("div",{className:"filter-inner",children:[(0,s.jsx)("div",{className:"c1 br-2",children:(0,s.jsx)("div",{className:"type-1 form-floating",children:(0,s.jsxs)("button",{type:"button",onClick:e7,children:[" ","All Type ",(0,s.jsx)("img",{src:"/assets/images/webp/down.webp"})]})})}),(0,s.jsxs)("div",{className:"c2 br-2",children:[(0,s.jsx)("label",{className:"form-label",children:"Location"}),(0,s.jsx)(G,{setAddress:eg,defaultValue:(null==D?void 0:D.address)||"US",searchButtonRef:L})]}),ed&&(0,s.jsx)("div",{ref:eA,className:"type-dropdown",children:(0,s.jsx)(f.Z,{fullWidth:!0,children:ex&&Array.isArray(ex)?ex.map(e=>(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"type-ls",style:{display:"flex",alignItems:"center"},children:[(0,s.jsx)(v.Z,{control:(0,s.jsx)(g.Z,{checked:M.includes(e._id),onChange:()=>tl(e._id)}),label:e.name}),(0,s.jsx)(b.Z,{onClick:()=>tc(e._id),size:"small",sx:{marginLeft:"auto"},children:ei.includes(e._id)?(0,s.jsx)(w.Z,{}):(0,s.jsx)(j.Z,{})})]}),(0,s.jsx)(y.Z,{in:ei.includes(e._id),children:e.subcategories&&(0,s.jsx)(x.Z,{style:{marginLeft:"20px"},children:e.subcategories.map(t=>(0,s.jsx)(v.Z,{control:(0,s.jsx)(g.Z,{checked:M.includes("".concat(e._id,"_").concat(t._id)),onChange:()=>ti("".concat(e._id,"_").concat(t._id))}),label:t.name},t._id))})})]},e._id)):(0,s.jsx)("p",{children:"No categories available"})})}),(0,s.jsxs)("div",{className:"c3 br-2",children:[(0,s.jsx)("label",{className:"form-label",children:"Min Price"}),(0,s.jsx)("input",{type:"text",className:"form-control",placeholder:"Min $",name:"minPrice",value:eO.minPrice,onChange:e8})]}),(0,s.jsxs)("div",{className:"c3",children:[(0,s.jsx)("label",{className:"form-label",children:"Max Price"}),(0,s.jsx)("input",{type:"text",className:"form-control",placeholder:"Max $",name:"maxPrice",value:eO.maxPrice,onChange:e8})]}),(0,s.jsx)("div",{className:"c4",children:(0,s.jsx)("button",{ref:L,type:"submit",className:"btn",onClick:tm,children:"Show"})}),(0,s.jsx)("div",{className:"c5",children:(0,s.jsxs)(l(),{href:"javascript:void(0);",className:"more-filters btn",onClick:e9,children:[(0,s.jsx)("img",{src:"/assets/images/webp/setting.webp"}),"Filters"]})})]}),(0,s.jsx)(s.Fragment,{children:JSON.parse(U)&&(0,s.jsx)(l(),{className:"clear-btn btn",href:"javascript:void(0);",onClick:tf,children:"Clear Filter"})}),(null==R?void 0:null===(i=R.user)||void 0===i?void 0:i._id)?(0,s.jsx)("a",{href:"javascript:void(0);",className:"save-search-btn btn",onClick:e3,children:"Save Search"}):(0,s.jsx)("a",{href:"javascript:void(0);",className:"save-search-btn btn disabled",onClick:e=>e.preventDefault(),children:"Save Search"}),(0,s.jsxs)("div",{className:"form-check form-switch",children:[(0,s.jsx)("input",{className:"form-check-input form-switch",type:"checkbox",id:"mySwitch",name:"darkmode",value:"yes",onChange:()=>tv()}),(0,s.jsx)("label",{htmlFor:"mySwitch",children:"Show Map"})]})]}),(0,s.jsx)(J,{isOpen:en,onClose:e4,initialTabCategories:ex}),(0,s.jsx)(W,{isComeOpen:ep,closeComeModal:e6,data:ev})]})})}),(0,s.jsx)("section",{className:"properties-list",children:(0,s.jsx)("div",{className:"container-fluid",children:(0,s.jsx)("div",{className:"row",children:(0,s.jsx)("div",{className:"properties-pg-sc",children:(0,s.jsxs)("div",{className:"row",children:[(0,s.jsx)("div",{class:"col-md-12"}),ew&&eJ?(0,s.jsx)("div",{className:"col-md-5 property-map-sc",children:(0,s.jsx)(Z,{auth:R,properties:H,onMarkerClick:tr,onDraw:td,drawnPolygons:eo,clear:tn,fetchData:ta,hoveredPropertyId:eT})}):null,(0,s.jsxs)("div",{className:eS,children:[(0,s.jsxs)("div",{className:"heading-with-sort mt-4",children:[(0,s.jsx)("h2",{children:"property"===eb?"Commercial Real Estate for Sale":"business"===eb?"Businesses for Sale":"lease"===eb?"Commercial Real Estate for Lease":"auction"===eb?"Commercial Real Estate Auction":"Commercial Real Estate for Sale"}),(0,s.jsx)("div",{className:"sorting",children:(0,s.jsxs)("p",{children:[(0,s.jsxs)("span",{children:["Showing ",null==H?void 0:H.length," of ",eB," results sorted by"]}),(0,s.jsx)(_.Z,{options:e5,onChange:ts,value:e5.find(e=>e.value===eE)})]})})]}),ea?(0,s.jsxs)("div",{className:"no-property",children:[(0,s.jsx)("img",{src:"/assets/images/webp/no-property.webp"}),(0,s.jsxs)("span",{children:["Oh no! There aren’t any properties that match your search. Remove filters or update filters to find more properties.",(0,s.jsx)("strong",{onClick:tn,children:"Clear All Filters"})]})]}):(0,s.jsx)("div",{className:"row",children:ee?Array.from({length:4}).map((e,t)=>(0,s.jsxs)("div",{className:"col-md-3 col-sm-6 mb-4",children:[(0,s.jsx)(C.Z,{height:250}),(0,s.jsx)(C.Z,{count:2}),(0,s.jsx)(C.Z,{width:"60%"})]},t)):null==H?void 0:H.map((e,t)=>(0,s.jsx)(q.Z,{auth:R,property:e,CDN:N.G3,carouselIndex:t,currentSlides:ez,handleSlideChange:eG,toggleLike:to,isFeatured:e.isFeatured,isList:!0,handleMouseEnter:eV,handleMouseLeave:eK,selectedPropertyId:T,selectedPropertyRef:K,likedProperties:H.reduce((e,t)=>(e[t._id]=t.isLiked,e),{})},null==e?void 0:e._id))}),(0,s.jsx)(Q,{currentPage:eL,totalPages:eD,onPageChange:e=>{console.log(e),eR(e),window.scrollTo({top:0,behavior:"smooth"})}}),(0,s.jsxs)("div",{className:"properties-list-text-sc",children:[(0,s.jsxs)("h2",{children:["Commercial Real Estate Properties And Spaces ",c," in"," ","Businesses for Sale"===c?eH:e$]}),(0,s.jsx)("p",{children:e2})]}),"col-md-7"===eS&&(0,s.jsx)(z,{dclass:"list-footer"})]})]})})})})}),"col-md-12"===eS&&(0,s.jsx)(z,{})]})}c()(()=>Promise.resolve().then(a.bind(a,88975)),{loadableGenerated:{webpack:()=>[88975]},ssr:!1})},45805:function(){},9008:function(e,t,a){e.exports=a(42636)},93658:function(e,t,a){"use strict";t.Z=void 0;var s,n=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==l(e)&&"function"!=typeof e)return{default:e};var t=o();if(t&&t.has(e))return t.get(e);var a={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=s?Object.getOwnPropertyDescriptor(e,n):null;r&&(r.get||r.set)?Object.defineProperty(a,n,r):a[n]=e[n]}return a.default=e,t&&t.set(e,a),a}(a(67294)),r=(s=a(94184))&&s.__esModule?s:{default:s};function o(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return o=function(){return e},e}function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var a=arguments[t];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e}).apply(this,arguments)}function c(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),a.push.apply(a,s)}return a}function d(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function u(e,t){for(var a=0;a<t.length;a++){var s=t[a];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var f="Select...",v=function(e){var t,a;function s(e){var t,a;return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,s),(t=(a=p(s).call(this,e))&&("object"===l(a)||"function"==typeof a)?a:h(this)).state={selected:t.parseValue(e.value,e.options)||{label:void 0===e.placeholder?f:e.placeholder,value:""},isOpen:!1},t.dropdownRef=(0,n.createRef)(),t.mounted=!0,t.handleDocumentClick=t.handleDocumentClick.bind(h(t)),t.fireChangeEvent=t.fireChangeEvent.bind(h(t)),t}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&m(e,t)}(s,e),t=[{key:"componentDidUpdate",value:function(e){if(this.props.value!==e.value){if(this.props.value){var t=this.parseValue(this.props.value,this.props.options);t!==this.state.selected&&this.setState({selected:t})}else this.setState({selected:{label:void 0===this.props.placeholder?f:this.props.placeholder,value:""}})}}},{key:"componentDidMount",value:function(){document.addEventListener("click",this.handleDocumentClick,!1),document.addEventListener("touchend",this.handleDocumentClick,!1)}},{key:"componentWillUnmount",value:function(){this.mounted=!1,document.removeEventListener("click",this.handleDocumentClick,!1),document.removeEventListener("touchend",this.handleDocumentClick,!1)}},{key:"handleMouseDown",value:function(e){this.props.onFocus&&"function"==typeof this.props.onFocus&&this.props.onFocus(this.state.isOpen),"mousedown"===e.type&&0!==e.button||(e.stopPropagation(),e.preventDefault(),this.props.disabled||this.setState({isOpen:!this.state.isOpen}))}},{key:"parseValue",value:function(e,t){var a;if("string"==typeof e)for(var s=0,n=t.length;s<n;s++)if("group"===t[s].type){var r=t[s].items.filter(function(t){return t.value===e});r.length&&(a=r[0])}else void 0!==t[s].value&&t[s].value===e&&(a=t[s]);return a||e}},{key:"setValue",value:function(e,t){var a={selected:{value:e,label:t},isOpen:!1};this.fireChangeEvent(a),this.setState(a)}},{key:"fireChangeEvent",value:function(e){e.selected!==this.state.selected&&this.props.onChange&&this.props.onChange(e.selected)}},{key:"renderOption",value:function(e){var t,a=e.value;void 0===a&&(a=e.label||e);var s=e.label||e.value||e,o=a===this.state.selected.value||a===this.state.selected,l=(d(t={},"".concat(this.props.baseClassName,"-option"),!0),d(t,e.className,!!e.className),d(t,"is-selected",o),t),u=(0,r.default)(l),p=Object.keys(e.data||{}).reduce(function(t,a){return function(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?c(a,!0).forEach(function(t){d(e,t,a[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):c(a).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))})}return e}({},t,d({},"data-".concat(a),e.data[a]))},{});return n.default.createElement("div",i({key:a,className:u,onMouseDown:this.setValue.bind(this,a,s),onClick:this.setValue.bind(this,a,s),role:"option","aria-selected":o?"true":"false"},p),s)}},{key:"buildMenu",value:function(){var e=this,t=this.props,a=t.options,s=t.baseClassName,r=a.map(function(t){if("group"!==t.type)return e.renderOption(t);var a=n.default.createElement("div",{className:"".concat(s,"-title")},t.name),r=t.items.map(function(t){return e.renderOption(t)});return n.default.createElement("div",{className:"".concat(s,"-group"),key:t.name,role:"listbox",tabIndex:"-1"},a,r)});return r.length?r:n.default.createElement("div",{className:"".concat(s,"-noresults")},"No options found")}},{key:"handleDocumentClick",value:function(e){this.mounted&&!this.dropdownRef.current.contains(e.target)&&this.state.isOpen&&this.setState({isOpen:!1})}},{key:"isValueSelected",value:function(){return"string"==typeof this.state.selected||""!==this.state.selected.value}},{key:"render",value:function(){var e,t,a,s,o,l=this.props,i=l.baseClassName,c=l.controlClassName,u=l.placeholderClassName,p=l.menuClassName,h=l.arrowClassName,m=l.arrowClosed,f=l.arrowOpen,v=l.className,g=this.props.disabled?"Dropdown-disabled":"",b="string"==typeof this.state.selected?this.state.selected:this.state.selected.label,y=(0,r.default)((d(e={},"".concat(i,"-root"),!0),d(e,v,!!v),d(e,"is-open",this.state.isOpen),e)),x=(0,r.default)((d(t={},"".concat(i,"-control"),!0),d(t,c,!!c),d(t,g,!!g),t)),j=(0,r.default)((d(a={},"".concat(i,"-placeholder"),!0),d(a,u,!!u),d(a,"is-selected",this.isValueSelected()),a)),w=(0,r.default)((d(s={},"".concat(i,"-menu"),!0),d(s,p,!!p),s)),k=(0,r.default)((d(o={},"".concat(i,"-arrow"),!0),d(o,h,!!h),o)),S=n.default.createElement("div",{className:j},b),_=this.state.isOpen?n.default.createElement("div",{className:w,"aria-expanded":"true"},this.buildMenu()):null;return n.default.createElement("div",{ref:this.dropdownRef,className:y},n.default.createElement("div",{className:x,onMouseDown:this.handleMouseDown.bind(this),onTouchEnd:this.handleMouseDown.bind(this),"aria-haspopup":"listbox"},S,n.default.createElement("div",{className:"".concat(i,"-arrow-wrapper")},f&&m?this.state.isOpen?f:m:n.default.createElement("span",{className:k}))),_)}}],u(s.prototype,t),a&&u(s,a),s}(n.Component);v.defaultProps={baseClassName:"Dropdown"},t.Z=v}},function(e){e.O(0,[1255,2666,2827,7482,7679,3129,9978,5430,9774,2888,179],function(){return e(e.s=51489)}),_N_E=e.O()}]);