1import{a as V}from"./chunk-K2WFONPX.js";import{t as _,v as N}from"./chunk-7QFGUZPK.js";import{$ as Y,D as U,ea as B,k as Z}from"./chunk-DURNHIZD.js";import{i as X}from"./chunk-J2YGFAZC.js";X();var y=(()=>{class E{constructor(t){this.http=t,this.apiUrl=V.apiUrl}getData(){return this.http.get(`${this.apiUrl}/prop/properties/`)}getList(t,n){t=="commercial"?t="Commercial Sale":t=="business"?t="Business Opportunity":t=="residential"&&(t="Residential"),n==null&&(n="Florida");let i=new _().set("property_type",t).set("SearchParams",n).set("_",Date.now().toString());return this.http.get(`${this.apiUrl}/prop/properties/`,{params:i}).pipe(U(this.handleError))}getGlobalSearchList(t,n){n=="commercial"?n="Commercial Sale":n=="business"?n="Business Opportunity":n=="residential"&&(n="residential");let i=new _().set("SearchParams",t).set("property_type",n);return this.http.get(`${this.apiUrl}/prop/global-search/`,{params:i}).pipe(U(this.handleError))}getFilterList(t,n=null,i=null,r=null,u=null,h=null,f=null,a=null,p=null,c=null,o=null,m=null,g=null,d=null,$=null,s=null,P=null,w=null,b=null,v=null,e=null,D=null,C=null,j=null,q=null,G=null,O=null,k=null,F=null,H=null,J=null,K=null,Q=null,W=null,I=null){o==""&&(o="Active,Pending");let l=new _;return t!==null&&(l=l.set("sale_or_rent",t)),n!==null&&n!=0&&(l=l.set("price_min",n)),i!==null&&i!=1545e6&&(l=l.set("price_max",i)),r!==null&&r!=""&&(l=l.set("property_subtype",r)),l=l.set("page",u),l=l.set("page_size",h),f!==null&&f!=0&&(l=l.set("min_rooms",f)),a!==null&&a!=16&&(l=l.set("max_rooms",a)),p!==null&&p!=0&&(l=l.set("min_bathrooms",p)),c!==null&&c!=16&&(l=l.set("max_bathrooms",c)),o!==null&&(l=l.set("listing_status",o)),m!==null&&m!=0&&(l=l.set("min_sqft",m)),g!==null&&g!=-1&&(l=l.set("max_sqft",g)),d!==null&&d!=0&&(l=l.set("min_lot",d)),$!==null&&$!=-1&&(l=l.set("max_lot",$)),s!==null&&(l=l.set("min_year_built",s)),P!==null&&(l=l.set("max_year_built",P)),w!==null&&w!=0&&(l=l.set("hoa_fees",w)),b!==null&&(l=l.set("single_story",b)),v!==null&&v!=""&&(l=l.set("pets_allowed",v)),e!==null&&e!=""&&(l=l.set("appliances",e)),D!==null&&D!=""&&(l=l.set("community_features",D)),C!==null&&C!=""&&(l=l.set("furnished",C)),j!==null&&(l=l.set("search_value",j)),q!==null&&(l=l.set("featured_listing",q)),G!==null&&(l=l.set("new_listing",G)),O!==null&&(l=l.set("new_construction",O)),k!==null&&(l=l.set("reduce_price",k)),F!==null&&(l=l.set("saved_listing",F)),H!==null&&(l=l.set("is_recommended",H)),J!==null&&(l=l.set("latitude",J)),K!==null&&(l=l.set("longitude",K)),Q!==null&&(l=l.set("radius",Q)),W!==null&&(l=l.set("polygon",W)),I!==""&&I!==null&&(l=l.set("remark",I)),this.http.get(`${this.apiUrl}/prop/filter/`,{params:l}).pipe(U(this.handleError))}getCommercialFilterList(t,n,i,r,u,h,f,a,p,c,o=null,m=null,g=null,d=null,$=null,s=null,P=null,w=null,b=null,v=null){p==""&&(p="Active,Pending");let e=new _;return e=e.set("sale_or_rent",t),n!==null&&n!=0&&(e=e.set("price_min",n)),i!==null&&i!=1545e6&&(e=e.set("price_max",i)),r!==null&&r!=""&&(e=e.set("property_subtype",r)),u!==null&&u!=0&&(e=e.set("building_size_min",u)),h!==null&&h!=5e8&&h!=1545e6&&(e=e.set("building_size_max",h)),f!==null&&f!=0&&(e=e.set("land_size_min",f)),a!==null&&a!=5e8&&a!=1545e6&&(e=e.set("land_size_max",a)),e=e.set("listing_status",p),c!==null&&(e=e.set("search_value",c)),o!==null&&(e=e.set("new_listing",o)),m!==null&&(e=e.set("new_construction",m)),g!==null&&(e=e.set("featured_listing",g)),d!==null&&(e=e.set("reduce_price",d)),$!==null&&(e=e.set("saved_listing",$)),s!==null&&(e=e.set("is_recommended",s)),P!==null&&(e=e.set("latitude",P)),w!==null&&(e=e.set("longitude",w)),b!==null&&(e=e.set("radius",b)),v!==""&&v!==null&&(e=e.set("remark",v)),this.http.get(`${this.apiUrl}/prop/filtercommercial/`,{params:e}).pipe(U(this.handleError))}getBusinessFilterList(t=null,n=null,i=null,r=null,u=null,h=null,f=null,a=null,p=null,c=null,o=null,m=null,g=null,d=null,$=null){u==""&&(u="Active,Pending"),u&&(u=u.replace("Under Contract/Pending","Pending")),u&&(u=u.replace("Rented","Sold"));let s=new _;return t!==null&&(s=s.set("price_min",t.toString())),n!==null&&(s=s.set("price_max",n.toString())),i!==null&&(s=s.set("property_type",i)),r!==null&&(s=s.set("property_subtype",r)),u===null||u===""?s=s.set("listing_status","Active,Pending"):s=s.set("listing_status",u),h!==null&&(s=s.set("search_value",h)),f!==null&&(s=s.set("new_listing",f)),a!==null&&(s=s.set("new_construction",a)),p!==null&&(s=s.set("featured_listing",p)),c!==null&&(s=s.set("reduce_price",c)),o!==null&&(s=s.set("saved_listing",o)),m!==null&&(s=s.set("is_recommended",m)),g!==null&&(s=s.set("latitude",g)),d!==null&&(s=s.set("longitude",d)),$!==null&&(s=s.set("radius",$)),this.http.get(`${this.apiUrl}/prop/filterbusiness/`,{params:s}).pipe(U(this.handleError))}getNextData(t){return this.http.get(`${t}`)}postContactUsFormData(t){return this.http.post(`${this.apiUrl}/prop/contact-us`,t)}getNewConstructionList(t){t=="commercial"?t="Commercial Sale":t=="business"?t="Business Opportunity":t=="residential"&&(t="Residential");let n=new _().set("property_type",t);return this.http.get(`${this.apiUrl}/new-construction/`,{params:n}).pipe(U(this.handleError))}getNewListingList(t){t=="commercial"?t="Commercial Sale":t=="business"?t="Business Opportunity":t=="residential"&&(t="Residential");let n=new _().set("property_type",t);return this.http.get(`${this.apiUrl}/prop/new-listings/`,{params:n}).pipe(U(this.handleError))}getListingByMapMove(t,n,i){let r=new _().set("latitude",t).set("longitude",n).set("radius",i);return this.http.get(`${this.apiUrl}/prop/search/`,{params:r}).pipe(U(this.handleError))}getFeaturedListing(){return this.http.get(`${this.apiUrl}/prop/get_feature_listing/`)}getSavedListing(){return this.http.get(`${this.apiUrl}/prop/saved_property/`)}postSavePropertyListing(t,n){let i=`${this.apiUrl}/prop/saved_property/`,r=new FormData;return r.append("property_id",t),r.append("source",n),this.http.post(i,r)}handleError(t){let n="An unknown error occurred!";return t.error instanceof ErrorEvent?n=`Error: ${t.error.message}`:n=`Error Code: ${t.status} 2Message: ${t.message}`,Z(n)}deleteSavedProperty(t){let n=`${this.apiUrl}/prop/saved_property/`,i={property_id:t};return this.http.delete(n,{params:i})}getPropertiesByPolygon(t){let n=`(${t})`,i=`${this.apiUrl}/prop/filter/`,r=new _().set("sale_or_rent","for sale").set("polygon",n);return this.http.get(i,{params:r})}shareProperty(t){let n=`${this.apiUrl}/prop/share-property/`,i=new FormData;return i.append("email",t.email),i.append("message",t.message),i.append("address",t.address),i.append("price",t.price),i.append("image_url",t.image),this.http.post(n,i)}getSliderImagesCount(){return this.http.get(`${this.apiUrl}/prop/slider-images/count/`)}static{this.\u0275fac=function(n){return new(n||E)(B(N))}}static{this.\u0275prov=Y({token:E,factory:E.\u0275fac,providedIn:"root"})}}return E})();export{y as a};
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.