1import { g as apiClient } from "./chunk-Cy-M6TJt.js"; 2function getContractorProProfile(id) { 3 const path = `contractorproprofile?id=${id}`; 4 return apiClient.get(path); 5} 6function getContractorRatingSiteSummary(id) { 7 const path = `contractorrating/${id}/sitesummary`; 8 return apiClient.get(path); 9} 10function getContractorLocatorSummary(id) { 11 const path = `contractor/${id}/locator/summary`; 12 return apiClient.get(path); 13} 14function getContractorRatingSiteReviews(id, query = { 15 sortOrder: "asc", 16 sortColumn: "SubmissionDate", 17 top: 10, 18 skip: 0 19}) { 20 const params = new URLSearchParams(query); 21 const path = `contractorrating/${id}/sitereviews?${params.toString()}`; 22 return apiClient.get(path); 23} 24function getContractorsByServiceZip(params, brands = ["bRheem"]) { 25 if (!(params == null ? void 0 : params.PostalCode)) { 26 return { data: [] }; 27 } 28 const path = "contractor/byservicezip"; 29 const brandParams = brands.reduce( 30 (acc, brand) => ({ ...acc, [brand]: true }), 31 {} 32 ); 33 const searchParams = { ...params, ...brandParams }; 34 const query = new URLSearchParams(searchParams); 35 return apiClient.get(`${path}?${query.toString()}`); 36} 37function contractorBookNow(id, params) { 38 const path = `contractor/${id}/booknow`; 39 return apiClient.post(path, params); 40} 41function sendContractorBookNowFeedback(id, data) { 42 const path = `contractor/${id}/booknow/feedback`; 43 return apiClient.post(path, data); 44} 45export { 46 getContractorRatingSiteReviews as a, 47 getContractorLocatorSummary as b, 48 getContractorProProfile as c, 49 getContractorRatingSiteSummary as d, 50 contractorBookNow as e, 51 getContractorsByServiceZip as g, 52 sendContractorBookNowFeedback as s 53};
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.