@wikicasa-dev/utilities 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ArrayUtils.cjs +1 -0
- package/dist/ArrayUtils.js +4 -0
- package/dist/ColorUtils.cjs +1 -0
- package/dist/ColorUtils.js +8 -0
- package/dist/Control.Geocoder-Dyvby5gX.cjs +1 -0
- package/dist/Control.Geocoder-l0sNRNKZ.js +1 -0
- package/dist/CookieUtils.cjs +1 -0
- package/dist/CookieUtils.js +32 -0
- package/dist/CurrencyUtils.cjs +1 -0
- package/dist/CurrencyUtils.js +14 -0
- package/dist/DOMUtils.cjs +1 -0
- package/dist/DOMUtils.js +18 -0
- package/dist/DateUtils.cjs +1 -0
- package/dist/DateUtils.js +7 -0
- package/dist/DeviceDetectionUtils.cjs +1 -0
- package/dist/DeviceDetectionUtils.js +8 -0
- package/dist/EmailUtils.cjs +1 -0
- package/dist/EmailUtils.js +27 -0
- package/dist/FavoriteUtils.cjs +1 -0
- package/dist/FavoriteUtils.js +13 -0
- package/dist/FunctionUtils.cjs +1 -0
- package/dist/FunctionUtils.js +21 -0
- package/dist/GAutocompleteUtils.cjs +1 -0
- package/dist/GAutocompleteUtils.js +23 -0
- package/dist/GenericUtils.cjs +1 -0
- package/dist/GenericUtils.js +25 -0
- package/dist/LazyLoadingBg.cjs +1 -0
- package/dist/LazyLoadingBg.js +13 -0
- package/dist/Leaflet-BKkoCsyw.js +6436 -0
- package/dist/Leaflet-CHOsN941.cjs +1 -0
- package/dist/MapUtils.cjs +1 -0
- package/dist/MapUtils.js +79 -0
- package/dist/NumberUtils.cjs +1 -0
- package/dist/NumberUtils.js +50 -0
- package/dist/ObjectUtils.cjs +1 -0
- package/dist/ObjectUtils.js +23 -0
- package/dist/ObserverUtils.cjs +1 -0
- package/dist/ObserverUtils.js +20 -0
- package/dist/PermissionUtils.cjs +1 -0
- package/dist/PermissionUtils.js +18 -0
- package/dist/RESB_UrlBuilder.cjs +1 -0
- package/dist/RESB_UrlBuilder.js +30 -0
- package/dist/RequestUtils.cjs +1 -0
- package/dist/RequestUtils.js +13 -0
- package/dist/StringUtils.cjs +1 -0
- package/dist/StringUtils.js +40 -0
- package/dist/URLBuilderUtils.cjs +1 -0
- package/dist/URLBuilderUtils.js +11 -0
- package/dist/URLPagesFactory.cjs +1 -0
- package/dist/URLPagesFactory.js +12 -0
- package/dist/agencyAPI.cjs +1 -0
- package/dist/agencyAPI.js +61 -0
- package/dist/constants.cjs +1 -0
- package/dist/constants.js +5 -0
- package/dist/geographyAPI.cjs +1 -0
- package/dist/geographyAPI.js +73 -0
- package/dist/icons.cjs +1 -0
- package/dist/icons.js +32 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +33 -33
- package/dist/index.js +142 -0
- package/dist/insightsAPI.cjs +1 -0
- package/dist/insightsAPI.js +15 -0
- package/dist/leaflet-Dyvby5gX.cjs +1 -0
- package/dist/leaflet-freedraw.esm-D8SxeKC1.js +26934 -0
- package/dist/leaflet-freedraw.esm-DSDVLXDC.cjs +7 -0
- package/dist/leaflet-l0sNRNKZ.js +1 -0
- package/dist/leaflet.draw-Dyvby5gX.cjs +1 -0
- package/dist/leaflet.draw-l0sNRNKZ.js +1 -0
- package/dist/leaflet_map.cjs +1 -0
- package/dist/leaflet_map.js +454 -0
- package/dist/mailAPI.cjs +1 -0
- package/dist/mailAPI.js +51 -0
- package/dist/main.cjs +1 -0
- package/dist/placesAPI.cjs +1 -0
- package/dist/placesAPI.js +47 -0
- package/dist/portfolioCustomerAPI.cjs +1 -0
- package/dist/portfolioCustomerAPI.js +14 -0
- package/dist/publicUserAPI.cjs +1 -0
- package/dist/publicUserAPI.js +142 -0
- package/dist/realEstateAPI.cjs +1 -0
- package/dist/realEstateAPI.js +67 -0
- package/dist/requestAPI.cjs +1 -0
- package/dist/requestAPI.js +17 -0
- package/dist/services/wikicasaPro.d.ts +1 -1
- package/dist/servicesUtils.cjs +3 -0
- package/dist/servicesUtils.js +12 -0
- package/dist/statisticsAPI.cjs +1 -0
- package/dist/statisticsAPI.js +58 -0
- package/dist/style.css +1 -0
- package/dist/types-BaBnqzzG.js +85 -0
- package/dist/types-CwWBrQCP.cjs +1 -0
- package/dist/valuationAPI.cjs +1 -0
- package/dist/valuationAPI.js +21 -0
- package/dist/vite-env.cjs +1 -0
- package/dist/vite-env.js +1 -0
- package/dist/wikicasaPro.cjs +1 -0
- package/dist/wikicasaPro.js +14 -0
- package/package.json +17 -13
- package/dist/utilities.cjs +0 -5
- package/dist/utilities.iife.js +0 -5
- package/dist/utilities.mjs +0 -2437
- package/index.html +0 -13
- package/src/custom/constants.ts +0 -3
- package/src/custom/icons.ts +0 -63
- package/src/custom/leaflet_map.ts +0 -946
- package/src/index.ts +0 -171
- package/src/services/agencyAPI.ts +0 -105
- package/src/services/geographyAPI.ts +0 -129
- package/src/services/insightsAPI.ts +0 -20
- package/src/services/mailAPI.ts +0 -89
- package/src/services/placesAPI.ts +0 -72
- package/src/services/portfolioCustomerAPI.ts +0 -16
- package/src/services/publicUserAPI.ts +0 -216
- package/src/services/realEstateAPI.ts +0 -133
- package/src/services/requestAPI.ts +0 -40
- package/src/services/servicesUtils.ts +0 -27
- package/src/services/statisticsAPI.ts +0 -84
- package/src/services/valuationAPI.ts +0 -45
- package/src/services/wikicasaPro.ts +0 -25
- package/src/utils/ArrayUtils.ts +0 -2
- package/src/utils/ColorUtils.ts +0 -11
- package/src/utils/CookieUtils.ts +0 -43
- package/src/utils/CurrencyUtils.ts +0 -18
- package/src/utils/DOMUtils.ts +0 -28
- package/src/utils/DateUtils.ts +0 -9
- package/src/utils/DeviceDetectionUtils.ts +0 -17
- package/src/utils/EmailUtils.ts +0 -45
- package/src/utils/FavoriteUtils.ts +0 -19
- package/src/utils/FunctionUtils.ts +0 -29
- package/src/utils/GAutocompleteUtils.ts +0 -70
- package/src/utils/GenericUtils.ts +0 -37
- package/src/utils/LazyLoadingBg.ts +0 -18
- package/src/utils/MapUtils.ts +0 -118
- package/src/utils/NumberUtils.ts +0 -90
- package/src/utils/ObjectUtils.ts +0 -34
- package/src/utils/ObserverUtils.ts +0 -32
- package/src/utils/PermissionUtils.ts +0 -41
- package/src/utils/RESB_UrlBuilder.ts +0 -99
- package/src/utils/RequestUtils.ts +0 -20
- package/src/utils/StringUtils.ts +0 -75
- package/src/utils/URLBuilderUtils.ts +0 -21
- package/src/utils/URLPagesFactory.ts +0 -20
- package/src/vite-env.d.ts +0 -1
- package/tsconfig.json +0 -38
- package/vite.config.ts +0 -42
- /package/{src/main.ts → dist/main.js} +0 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { r as m, k as p, z as f } from "./types-BaBnqzzG.js";
|
|
2
|
+
function a(e, o, n, l, u, i, t) {
|
|
3
|
+
let r = "/";
|
|
4
|
+
return n && (r += (n == m.AUCTION ? window._auctionLabel : n == m.RENT ? window._rentLabel : window._saleLabel) + "-"), r += `${o}/`, i && (r += `${i}/`), e && (r += `${e.replace(/^-+|-+$/g, "")}/`), l && (r += `${l.replace(/^_+|_+$/g, "")}/`), !l && t && (r += `${t.replace(/^_+|_+$/g, "")}/`), u && (r += `${u.replace(/^_+|_+$/g, "")}/`), r;
|
|
5
|
+
}
|
|
6
|
+
function d(e) {
|
|
7
|
+
const o = Object.keys(p).map((n) => e[n] ? encodeURIComponent(p[n]) + "=" + encodeURIComponent(e[n]) : null).filter((n) => n !== null);
|
|
8
|
+
return o.length ? `?${o.join("&")}` : "";
|
|
9
|
+
}
|
|
10
|
+
function s(e) {
|
|
11
|
+
const o = Object.keys(f).map((n) => {
|
|
12
|
+
if (e[n])
|
|
13
|
+
if (Array.isArray(e[n])) {
|
|
14
|
+
const l = e[n], u = f[n];
|
|
15
|
+
let i = "";
|
|
16
|
+
for (let t = 0; t < l.length; t++)
|
|
17
|
+
i += encodeURIComponent(u) + "=" + encodeURIComponent(l[t]), i += t < l.length - 1 ? "&" : "";
|
|
18
|
+
return i;
|
|
19
|
+
} else
|
|
20
|
+
return encodeURIComponent(f[n]) + "=" + encodeURIComponent(e[n]);
|
|
21
|
+
else
|
|
22
|
+
return null;
|
|
23
|
+
}).filter((n) => n !== null);
|
|
24
|
+
return o.length ? `?${o.join("&")}` : "";
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
d as buildParams,
|
|
28
|
+
s as buildParamsForAgency,
|
|
29
|
+
a as buildURL
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("axios");function o(e){return new Promise((t,n)=>r.post("/rest/request/addRequestGenericValuation",e,{headers:{"Content-Type":"application/json",dataType:"json"}}).then(()=>{t()}).catch(s=>n(s)))}exports.sendRequestGeneric=o;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import r from "axios";
|
|
2
|
+
function a(e) {
|
|
3
|
+
return new Promise(
|
|
4
|
+
(t, n) => r.post("/rest/request/addRequestGenericValuation", e, {
|
|
5
|
+
headers: { "Content-Type": "application/json", dataType: "json" }
|
|
6
|
+
}).then(() => {
|
|
7
|
+
t();
|
|
8
|
+
}).catch((o) => n(o))
|
|
9
|
+
);
|
|
10
|
+
}
|
|
11
|
+
export {
|
|
12
|
+
a as sendRequestGeneric
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function p(e,n,t){return e.replace(new RegExp(n,"g"),t)}function c(e){return e.charAt(0).toUpperCase()+e.slice(1)}function u(e,n,t,r){const o=[];e&&e!=="ND"&&(n&&n!=="ND"&&n!=="0"?o.push(`${e} ${n}`):o.push(e)),t&&r?o.push(`${t} (${r})`):o.push(t);const i=o.filter(l=>!!l).join(", ");return c(i)}function a(e){if(!e)return"";const n=document.createElement("span");return n.innerHTML=e,n.textContent||""}function s(e,n){const t=new RegExp(Object.keys(n).map(r=>r.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")).join("|"),"gi");return e.replace(t,function(r){return n[r.toLowerCase()]})}function f(e){return e.replace(/[\uA78C\uA78B]/g,"'").replace(/[^\x00-\x7F]/g,"")}const d=(e="")=>!e||!e.trim()?"":(e=e.trim(),e.replace(" ","-").toLowerCase());exports.capitalizeFirstLetter=c;exports.cleanASCII=f;exports.decodeTextWithEntities=a;exports.formatAddress=u;exports.replaceAll=p;exports.replaceAllTokens=s;exports.stringToHyphened=d;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
function p(e, n, r) {
|
|
2
|
+
return e.replace(new RegExp(n, "g"), r);
|
|
3
|
+
}
|
|
4
|
+
function i(e) {
|
|
5
|
+
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
6
|
+
}
|
|
7
|
+
function l(e, n, r, o) {
|
|
8
|
+
const t = [];
|
|
9
|
+
e && e !== "ND" && (n && n !== "ND" && n !== "0" ? t.push(`${e} ${n}`) : t.push(e)), r && o ? t.push(`${r} (${o})`) : t.push(r);
|
|
10
|
+
const c = t.filter((u) => !!u).join(", ");
|
|
11
|
+
return i(c);
|
|
12
|
+
}
|
|
13
|
+
function a(e) {
|
|
14
|
+
if (!e)
|
|
15
|
+
return "";
|
|
16
|
+
const n = document.createElement("span");
|
|
17
|
+
return n.innerHTML = e, n.textContent || "";
|
|
18
|
+
}
|
|
19
|
+
function f(e, n) {
|
|
20
|
+
const r = new RegExp(
|
|
21
|
+
Object.keys(n).map((o) => o.replace(/[-/\\^$*+?.()|[\]{}]/g, "\\$&")).join("|"),
|
|
22
|
+
"gi"
|
|
23
|
+
);
|
|
24
|
+
return e.replace(r, function(o) {
|
|
25
|
+
return n[o.toLowerCase()];
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
function s(e) {
|
|
29
|
+
return e.replace(/[\uA78C\uA78B]/g, "'").replace(/[^\x00-\x7F]/g, "");
|
|
30
|
+
}
|
|
31
|
+
const d = (e = "") => !e || !e.trim() ? "" : (e = e.trim(), e.replace(" ", "-").toLowerCase());
|
|
32
|
+
export {
|
|
33
|
+
i as capitalizeFirstLetter,
|
|
34
|
+
s as cleanASCII,
|
|
35
|
+
a as decodeTextWithEntities,
|
|
36
|
+
l as formatAddress,
|
|
37
|
+
p as replaceAll,
|
|
38
|
+
f as replaceAllTokens,
|
|
39
|
+
d as stringToHyphened
|
|
40
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=(r,e={})=>{if(Object.keys(e).length===0)throw"The params object can't be empty";const t=new URL(r);for(const n in e)t.searchParams.append(n,`${e[n]}`);return t};exports.appendQueryString=o;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=e=>{const t=`${window._baseURL}`;switch(e){case"SAVED_SEARCHES":return`${t}/${window._privateURL}/${window._saveSearchesURL}`;default:throw new Error(`There is no matching URL for ${e}`)}};exports.getURLPage=r;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const o = (e) => {
|
|
2
|
+
const r = `${window._baseURL}`;
|
|
3
|
+
switch (e) {
|
|
4
|
+
case "SAVED_SEARCHES":
|
|
5
|
+
return `${r}/${window._privateURL}/${window._saveSearchesURL}`;
|
|
6
|
+
default:
|
|
7
|
+
throw new Error(`There is no matching URL for ${e}`);
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
o as getURLPage
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./servicesUtils.cjs"),a=require("axios"),o=require("./ObjectUtils.cjs"),s=`${r.baseURL}/rest/agency`,c=async t=>{try{return(await a.post(`${s}/agencyContacts`,t)).data}catch(e){throw r.handleAxiosError(e),e}},i=async(t,e)=>{try{return(await a.get(`/rest/agency/getAgencyByIDLang/${t}/${e}`)).data}catch(n){throw r.handleAxiosError(n),n}},g=async t=>{try{return(await a.post("/rest/agency/sendMutuo",t)).data}catch(e){throw r.handleAxiosError(e),e}},y=async t=>{try{return(await a.post(`${s}/getAgencyListForInfoWindow`,t)).data}catch(e){throw r.handleAxiosError(e),e}},d=async()=>{if(!window._serializedAgencySearchBean)return;const t=o.deepCopy(JSON.parse(window._serializedAgencySearchBean));delete t.latitude,delete t.longitude;try{return(await a.post(`${s}/getAgenciesMarkers`,t,{headers:{"Content-Type":"application/json",Accept:"application/json"}})).data}catch(e){throw r.handleAxiosError(e),[]}};exports.getAgenciesData=y;exports.getAgencyById=i;exports.getMapMarkers=d;exports.sendAgencyContactAsync=c;exports.sendMortgage=g;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { handleAxiosError as r, baseURL as s } from "./servicesUtils.js";
|
|
2
|
+
import a from "axios";
|
|
3
|
+
import { deepCopy as c } from "./ObjectUtils.js";
|
|
4
|
+
const o = `${s}/rest/agency`, d = async (t) => {
|
|
5
|
+
try {
|
|
6
|
+
return (await a.post(`${o}/agencyContacts`, t)).data;
|
|
7
|
+
} catch (e) {
|
|
8
|
+
throw r(e), e;
|
|
9
|
+
}
|
|
10
|
+
}, p = async (t, e) => {
|
|
11
|
+
try {
|
|
12
|
+
return (await a.get(
|
|
13
|
+
`/rest/agency/getAgencyByIDLang/${t}/${e}`
|
|
14
|
+
)).data;
|
|
15
|
+
} catch (n) {
|
|
16
|
+
throw r(n), n;
|
|
17
|
+
}
|
|
18
|
+
}, h = async (t) => {
|
|
19
|
+
try {
|
|
20
|
+
return (await a.post("/rest/agency/sendMutuo", t)).data;
|
|
21
|
+
} catch (e) {
|
|
22
|
+
throw r(e), e;
|
|
23
|
+
}
|
|
24
|
+
}, w = async (t) => {
|
|
25
|
+
try {
|
|
26
|
+
return (await a.post(
|
|
27
|
+
`${o}/getAgencyListForInfoWindow`,
|
|
28
|
+
t
|
|
29
|
+
)).data;
|
|
30
|
+
} catch (e) {
|
|
31
|
+
throw r(e), e;
|
|
32
|
+
}
|
|
33
|
+
}, l = async () => {
|
|
34
|
+
if (!window._serializedAgencySearchBean)
|
|
35
|
+
return;
|
|
36
|
+
const t = c(
|
|
37
|
+
JSON.parse(window._serializedAgencySearchBean)
|
|
38
|
+
);
|
|
39
|
+
delete t.latitude, delete t.longitude;
|
|
40
|
+
try {
|
|
41
|
+
return (await a.post(
|
|
42
|
+
`${o}/getAgenciesMarkers`,
|
|
43
|
+
t,
|
|
44
|
+
{
|
|
45
|
+
headers: {
|
|
46
|
+
"Content-Type": "application/json",
|
|
47
|
+
Accept: "application/json"
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
)).data;
|
|
51
|
+
} catch (e) {
|
|
52
|
+
throw r(e), [];
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
export {
|
|
56
|
+
w as getAgenciesData,
|
|
57
|
+
p as getAgencyById,
|
|
58
|
+
l as getMapMarkers,
|
|
59
|
+
d as sendAgencyContactAsync,
|
|
60
|
+
h as sendMortgage
|
|
61
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="ac216796-6d5d-4f21-a7ce-d80a4b3a45e4",T="pk.eyJ1Ijoid2lraWNhc2EiLCJhIjoiY2pqZnVlNXFrMHRzMTNwcGF4aXd2a3N5ZiJ9.BctgdXWxGJ9JRMp2U-SyRw";exports.MAP_TILER_STYLE=e;exports.MAP_TILER_TOKEN=T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("axios"),y=require("uuid"),P=require("./URLBuilderUtils.cjs"),c=require("./servicesUtils.cjs"),o=`${c.baseURL}/rest/geography`;let a=y.v4();const S=async(t,e,n=[])=>{a||(a=y.v4());const s=new URL(`${o}/placesAddressAutocomplete`),g=n.length,d=n.reduce((l,u,w)=>g===1?u:w===g-1?l:l+=`${u}|`,""),h=P.appendQueryString(s,{query:t,radius:e,sessionToken:a,types:d}),i=await r.get(h.toString());if(i.data.status!=="OK")throw new Error("There was an error in the request");return i.data.predictions},$=async t=>{const e=new URL(`${o}/getPlacesDetails`),n=P.appendQueryString(e,{placeId:t,sessionToken:a}),s=await r.get(n.toString());if(a="",s.data.status!=="OK")throw new Error("There was an error in the request");return s.data.result},p=async(t,e)=>{const n=new URL(`${o}/guessCityPlace/${t}/${e}`);return(await r.get(n.toString())).data},J=async t=>{if(t==null)throw new Error("The id can't be null");return(await r.get(`${o}/getPlaceFromPlaceID/${t}`)).data},O=async t=>{try{return(await r.get(`${o}/getCountryPolygonJson/${t}`)).data}catch(e){throw c.handleAxiosError(e),e}},A=async t=>{try{return(await r.get(`${o}/getRegionPolygonJson/${t}`)).data}catch(e){throw c.handleAxiosError(e),e}},v=async t=>{try{return(await r.get(`${o}/getCityPolygonJson/${t}`)).data}catch(e){throw c.handleAxiosError(e),e}},C=async t=>{try{return(await r.get(`${o}/getProvincePolygonJson/${t}`)).data}catch(e){throw c.handleAxiosError(e),e}};exports.getCityPolygonJSON=v;exports.getCountryPolygonJSON=O;exports.getPlaceFromPlaceID=J;exports.getPlacesAddressAutocomplete=S;exports.getPlacesDetails=$;exports.getProvincePolygonJSON=C;exports.getRegionPolygonJSON=A;exports.guessPlace=p;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import r from "axios";
|
|
2
|
+
import { v4 as y } from "uuid";
|
|
3
|
+
import { appendQueryString as w } from "./URLBuilderUtils.js";
|
|
4
|
+
import { handleAxiosError as c, baseURL as $ } from "./servicesUtils.js";
|
|
5
|
+
const o = `${$}/rest/geography`;
|
|
6
|
+
let a = y();
|
|
7
|
+
const J = async (e, t, n = []) => {
|
|
8
|
+
a || (a = y());
|
|
9
|
+
const s = new URL(`${o}/placesAddressAutocomplete`), g = n.length, h = n.reduce((l, u, d) => g === 1 ? u : d === g - 1 ? l : l += `${u}|`, ""), P = w(s, {
|
|
10
|
+
query: e,
|
|
11
|
+
radius: t,
|
|
12
|
+
sessionToken: a,
|
|
13
|
+
types: h
|
|
14
|
+
}), i = await r.get(P.toString());
|
|
15
|
+
if (i.data.status !== "OK")
|
|
16
|
+
throw new Error("There was an error in the request");
|
|
17
|
+
return i.data.predictions;
|
|
18
|
+
}, C = async (e) => {
|
|
19
|
+
const t = new URL(`${o}/getPlacesDetails`), n = w(t, {
|
|
20
|
+
placeId: e,
|
|
21
|
+
sessionToken: a
|
|
22
|
+
}), s = await r.get(n.toString());
|
|
23
|
+
if (a = "", s.data.status !== "OK")
|
|
24
|
+
throw new Error("There was an error in the request");
|
|
25
|
+
return s.data.result;
|
|
26
|
+
}, O = async (e, t) => {
|
|
27
|
+
const n = new URL(
|
|
28
|
+
`${o}/guessCityPlace/${e}/${t}`
|
|
29
|
+
);
|
|
30
|
+
return (await r.get(n.toString())).data;
|
|
31
|
+
}, R = async (e) => {
|
|
32
|
+
if (e == null)
|
|
33
|
+
throw new Error("The id can't be null");
|
|
34
|
+
return (await r.get(`${o}/getPlaceFromPlaceID/${e}`)).data;
|
|
35
|
+
}, A = async (e) => {
|
|
36
|
+
try {
|
|
37
|
+
return (await r.get(
|
|
38
|
+
`${o}/getCountryPolygonJson/${e}`
|
|
39
|
+
)).data;
|
|
40
|
+
} catch (t) {
|
|
41
|
+
throw c(t), t;
|
|
42
|
+
}
|
|
43
|
+
}, v = async (e) => {
|
|
44
|
+
try {
|
|
45
|
+
return (await r.get(`${o}/getRegionPolygonJson/${e}`)).data;
|
|
46
|
+
} catch (t) {
|
|
47
|
+
throw c(t), t;
|
|
48
|
+
}
|
|
49
|
+
}, D = async (e) => {
|
|
50
|
+
try {
|
|
51
|
+
return (await r.get(`${o}/getCityPolygonJson/${e}`)).data;
|
|
52
|
+
} catch (t) {
|
|
53
|
+
throw c(t), t;
|
|
54
|
+
}
|
|
55
|
+
}, E = async (e) => {
|
|
56
|
+
try {
|
|
57
|
+
return (await r.get(
|
|
58
|
+
`${o}/getProvincePolygonJson/${e}`
|
|
59
|
+
)).data;
|
|
60
|
+
} catch (t) {
|
|
61
|
+
throw c(t), t;
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
export {
|
|
65
|
+
D as getCityPolygonJSON,
|
|
66
|
+
A as getCountryPolygonJSON,
|
|
67
|
+
R as getPlaceFromPlaceID,
|
|
68
|
+
J as getPlacesAddressAutocomplete,
|
|
69
|
+
C as getPlacesDetails,
|
|
70
|
+
E as getProvincePolygonJSON,
|
|
71
|
+
v as getRegionPolygonJSON,
|
|
72
|
+
O as guessPlace
|
|
73
|
+
};
|
package/dist/icons.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r='<svg viewBox="0 0 128 128" class="icon-spin"><circle class="path" cx="64" cy="64" r="42" fill="none" stroke-width="9"></circle></svg>';function c(i,n=!1){if(!i)return;const e=$(i),t=$(r);e.attr("disabled","disabled");const s=e.find(".icon");s.length?(e.data("icon-prev",s),t.addClass(s.attr("class")||""),s.replaceWith(t)):(t.addClass(`icon icon-md ${n?"ml-5":"mr-5"}`),n?e.append(t):e.prepend(t))}function o(i){if(!i)return;const n=$(i);n.removeAttr("disabled");const e=n.find(".icon-spin"),t=n.data("icon-prev");t?e.replaceWith(t):e.remove()}$(()=>{[].slice.call(document.querySelectorAll("[data-spinner]")).forEach(n=>{const e=$(n);e.on("click",()=>{e[0].hasAttribute("disabled")||(c(e),setTimeout(()=>{o(e)},3e4))})})});exports.SVG=r;exports.addSpinner=c;exports.removeSpinner=o;
|
package/dist/icons.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const c = '<svg viewBox="0 0 128 128" class="icon-spin"><circle class="path" cx="64" cy="64" r="42" fill="none" stroke-width="9"></circle></svg>';
|
|
2
|
+
function r(i, n = !1) {
|
|
3
|
+
if (!i)
|
|
4
|
+
return;
|
|
5
|
+
const e = $(i), t = $(c);
|
|
6
|
+
e.attr("disabled", "disabled");
|
|
7
|
+
const s = e.find(".icon");
|
|
8
|
+
s.length ? (e.data("icon-prev", s), t.addClass(s.attr("class") || ""), s.replaceWith(t)) : (t.addClass(`icon icon-md ${n ? "ml-5" : "mr-5"}`), n ? e.append(t) : e.prepend(t));
|
|
9
|
+
}
|
|
10
|
+
function a(i) {
|
|
11
|
+
if (!i)
|
|
12
|
+
return;
|
|
13
|
+
const n = $(i);
|
|
14
|
+
n.removeAttr("disabled");
|
|
15
|
+
const e = n.find(".icon-spin"), t = n.data("icon-prev");
|
|
16
|
+
t ? e.replaceWith(t) : e.remove();
|
|
17
|
+
}
|
|
18
|
+
$(() => {
|
|
19
|
+
[].slice.call(document.querySelectorAll("[data-spinner]")).forEach((n) => {
|
|
20
|
+
const e = $(n);
|
|
21
|
+
e.on("click", () => {
|
|
22
|
+
e[0].hasAttribute("disabled") || (r(e), setTimeout(() => {
|
|
23
|
+
a(e);
|
|
24
|
+
}, 3e4));
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
export {
|
|
29
|
+
c as SVG,
|
|
30
|
+
r as addSpinner,
|
|
31
|
+
a as removeSpinner
|
|
32
|
+
};
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./agencyAPI.cjs"),t=require("./geographyAPI.cjs"),A=require("./insightsAPI.cjs"),s=require("./mailAPI.cjs"),c=require("./placesAPI.cjs"),q=require("./portfolioCustomerAPI.cjs"),e=require("./publicUserAPI.cjs"),o=require("./realEstateAPI.cjs"),g=require("./requestAPI.cjs"),p=require("./servicesUtils.cjs"),i=require("./statisticsAPI.cjs"),U=require("./valuationAPI.cjs"),C=require("./wikicasaPro.cjs"),R=require("./ArrayUtils.cjs"),F=require("./ColorUtils.cjs"),l=require("./CookieUtils.cjs"),E=require("./CurrencyUtils.cjs"),I=require("./DateUtils.cjs"),d=require("./DeviceDetectionUtils.cjs"),u=require("./DOMUtils.cjs"),f=require("./EmailUtils.cjs"),S=require("./FunctionUtils.cjs"),h=require("./FavoriteUtils.cjs"),b=require("./GAutocompleteUtils.cjs"),v=require("./GenericUtils.cjs"),a=require("./NumberUtils.cjs"),m=require("./ObjectUtils.cjs"),N=require("./ObserverUtils.cjs"),y=require("./PermissionUtils.cjs"),k=require("./RequestUtils.cjs"),P=require("./RESB_UrlBuilder.cjs"),r=require("./StringUtils.cjs"),D=require("./URLBuilderUtils.cjs"),O=require("./URLPagesFactory.cjs");exports.getAgenciesData=n.getAgenciesData;exports.getAgencyById=n.getAgencyById;exports.sendAgencyContactAsync=n.sendAgencyContactAsync;exports.sendMortgage=n.sendMortgage;exports.getCityPolygonJSON=t.getCityPolygonJSON;exports.getCountryPolygonJSON=t.getCountryPolygonJSON;exports.getPlaceFromPlaceID=t.getPlaceFromPlaceID;exports.getPlacesAddressAutocomplete=t.getPlacesAddressAutocomplete;exports.getPlacesDetails=t.getPlacesDetails;exports.getProvincePolygonJSON=t.getProvincePolygonJSON;exports.getRegionPolygonJSON=t.getRegionPolygonJSON;exports.guessPlace=t.guessPlace;exports.getTransactionGraphData=A.getTransactionGraphData;exports.sendBrochureMR=s.sendBrochureMR;exports.sendBrochureRequest=s.sendBrochureRequest;exports.sendInfoMR=s.sendInfoMR;exports.sendInfoPremium=s.sendInfoPremium;exports.sendJobApplicationForm=s.sendJobApplicationForm;exports.getDistrictsByZoneId=c.getDistrictsByZoneId;exports.getPlace=c.getPlace;exports.getPlacesByQuery=c.getPlacesByQuery;exports.getZones=c.getZones;exports.updateNewsletterConsent=q.updateNewsletterConsent;exports.addUserFavorite=e.addUserFavorite;exports.deleteAllSaveSearch=e.deleteAllSaveSearch;exports.deleteSaveSearch=e.deleteSaveSearch;exports.deleteUserFavorite=e.deleteUserFavorite;exports.deleteUserFirebaseToken=e.deleteUserFirebaseToken;exports.getFavourites=e.getFavourites;exports.getMarketingConsent=e.getMarketingConsent;exports.getMenuInfo=e.getMenuInfo;exports.getPublicUser=e.getPublicUser;exports.getPublicUserSaveSearchList=e.getPublicUserSaveSearchList;exports.getSavedSearchesCount=e.getSavedSearchesCount;exports.removeFavourites=e.removeFavourites;exports.saveUserFirebaseToken=e.saveUserFirebaseToken;exports.updateMarketingConsent=e.updateMarketingConsent;exports.updateNote=e.updateNote;exports.updatePublicUserSavedSearchBean=e.updatePublicUserSavedSearchBean;exports.getMapMarkers=o.getMapMarkers;exports.getRealEstateCounter=o.getRealEstateCounter;exports.getRealEstateNotes=o.getRealEstateNotes;exports.getRealEstatesData=o.getRealEstatesData;exports.saveSearch=o.saveSearch;exports.saveSearchFromRequest=o.saveSearchFromRequest;exports.addGenericRequest=g.addGenericRequest;exports.sendSuggestion=g.sendSuggestion;exports.sendWidgetRequest=g.sendWidgetRequest;exports.baseURL=p.baseURL;exports.handleAxiosError=p.handleAxiosError;exports.getPlaceTrendData=i.getPlaceTrendData;exports.getSaleGraphData=i.getSaleGraphData;exports.updatePhoneView=i.updatePhoneView;exports.updateRealEstateSearch=i.updateRealEstateSearch;exports.updateViewListing=i.updateViewListing;exports.evaluateRealEstateWidget=U.evaluateRealEstateWidget;exports.userValuationWithPhotoFeedback=C.userValuationWithPhotoFeedback;exports.isArrNullOrEmpty=R.isArrNullOrEmpty;exports.rgba=F.rgba;exports.decodeCookie=l.decodeCookie;exports.encodeCookie=l.encodeCookie;exports.getCookie=l.getCookie;exports.removeCookie=l.removeCookie;exports.formatCurrency=E.formatCurrency;exports.formatDate=I.formatDate;exports.isMobile=d.isMobile;exports.isSafari=d.isSafari;exports.isiOSDevice=d.isiOSDevice;exports.emptyElem=u.emptyElem;exports.getSingleElement=u.getSingleElement;exports.hideElem=u.hideElem;exports.showElem=u.showElem;exports.hashEmail=f.hashEmail;exports.debounce=S.debounce;exports.isPromise=S.isPromise;exports.showAddFavoritesIcon=h.showAddFavoritesIcon;exports.showRemoveFavoritesIcons=h.showRemoveFavoritesIcons;exports.getPlaceFromGAutocomplete=b.getPlaceFromGAutocomplete;exports.googlePlaceConverter=b.googlePlaceConverter;exports.awaitableSetTimeout=v.awaitableSetTimeout;exports.createCustomEvent=v.createCustomEvent;exports.formatFloat=a.formatFloat;exports.formatInteger=a.formatInteger;exports.formatLocaleNumber=a.formatLocaleNumber;exports.formatNumber=a.formatNumber;exports.formatterNumberObj=a.formatterNumberObj;exports.parseLocaleNumber=a.parseLocaleNumber;exports.deepCopy=m.deepCopy;exports.isEmptyObject=m.isEmptyObject;exports.shallowCopyObjectTo=m.shallowCopyObjectTo;exports.observeOnce=N.observeOnce;exports.addPermissionStateListener=y.addPermissionStateListener;exports.onNotificationsPermissionChange=y.onNotificationsPermissionChange;exports.sendRequestGeneric=k.sendRequestGeneric;exports.buildParams=P.buildParams;exports.buildParamsForAgency=P.buildParamsForAgency;exports.buildURL=P.buildURL;exports.capitalizeFirstLetter=r.capitalizeFirstLetter;exports.cleanASCII=r.cleanASCII;exports.decodeTextWithEntities=r.decodeTextWithEntities;exports.formatAddress=r.formatAddress;exports.replaceAll=r.replaceAll;exports.replaceAllTokens=r.replaceAllTokens;exports.stringToHyphened=r.stringToHyphened;exports.appendQueryString=D.appendQueryString;exports.getURLPage=O.getURLPage;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
export { sendAgencyContactAsync, getAgencyById, sendMortgage, getAgenciesData, } from './services/agencyAPI';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
11
|
-
export
|
|
12
|
-
export
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
export
|
|
29
|
-
export
|
|
30
|
-
export
|
|
31
|
-
export
|
|
32
|
-
export
|
|
33
|
-
export
|
|
34
|
-
export
|
|
2
|
+
export * from './services/geographyAPI';
|
|
3
|
+
export * from './services/insightsAPI';
|
|
4
|
+
export * from './services/mailAPI';
|
|
5
|
+
export * from './services/placesAPI';
|
|
6
|
+
export * from './services/portfolioCustomerAPI';
|
|
7
|
+
export * from './services/publicUserAPI';
|
|
8
|
+
export * from './services/realEstateAPI';
|
|
9
|
+
export * from './services/requestAPI';
|
|
10
|
+
export * from './services/servicesUtils';
|
|
11
|
+
export * from './services/statisticsAPI';
|
|
12
|
+
export * from './services/valuationAPI';
|
|
13
|
+
export * from './services/wikicasaPro';
|
|
14
|
+
export * from './utils/ArrayUtils';
|
|
15
|
+
export * from './utils/ColorUtils';
|
|
16
|
+
export * from './utils/CookieUtils';
|
|
17
|
+
export * from './utils/CurrencyUtils';
|
|
18
|
+
export * from './utils/DateUtils';
|
|
19
|
+
export * from './utils/DeviceDetectionUtils';
|
|
20
|
+
export * from './utils/DOMUtils';
|
|
21
|
+
export * from './utils/EmailUtils';
|
|
22
|
+
export * from './utils/FunctionUtils';
|
|
23
|
+
export * from './utils/FavoriteUtils';
|
|
24
|
+
export * from './utils/GAutocompleteUtils';
|
|
25
|
+
export * from './utils/GenericUtils';
|
|
26
|
+
export * from './utils/NumberUtils';
|
|
27
|
+
export * from './utils/ObjectUtils';
|
|
28
|
+
export * from './utils/ObserverUtils';
|
|
29
|
+
export * from './utils/PermissionUtils';
|
|
30
|
+
export * from './utils/RequestUtils';
|
|
31
|
+
export * from './utils/RESB_UrlBuilder';
|
|
32
|
+
export * from './utils/StringUtils';
|
|
33
|
+
export * from './utils/URLBuilderUtils';
|
|
34
|
+
export * from './utils/URLPagesFactory';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { getAgenciesData as o, getAgencyById as r, sendAgencyContactAsync as a, sendMortgage as s } from "./agencyAPI.js";
|
|
2
|
+
import { getCityPolygonJSON as i, getCountryPolygonJSON as m, getPlaceFromPlaceID as l, getPlacesAddressAutocomplete as p, getPlacesDetails as g, getProvincePolygonJSON as c, getRegionPolygonJSON as d, guessPlace as f } from "./geographyAPI.js";
|
|
3
|
+
import { getTransactionGraphData as x } from "./insightsAPI.js";
|
|
4
|
+
import { sendBrochureMR as h, sendBrochureRequest as S, sendInfoMR as b, sendInfoPremium as v, sendJobApplicationForm as y } from "./mailAPI.js";
|
|
5
|
+
import { getDistrictsByZoneId as A, getPlace as R, getPlacesByQuery as F, getZones as E } from "./placesAPI.js";
|
|
6
|
+
import { updateNewsletterConsent as k } from "./portfolioCustomerAPI.js";
|
|
7
|
+
import { addUserFavorite as D, deleteAllSaveSearch as O, deleteSaveSearch as U, deleteUserFavorite as L, deleteUserFirebaseToken as M, getFavourites as T, getMarketingConsent as w, getMenuInfo as B, getPublicUser as q, getPublicUserSaveSearchList as G, getSavedSearchesCount as J, removeFavourites as W, saveUserFirebaseToken as j, updateMarketingConsent as V, updateNote as Q, updatePublicUserSavedSearchBean as Z } from "./publicUserAPI.js";
|
|
8
|
+
import { getMapMarkers as H, getRealEstateCounter as K, getRealEstateNotes as X, getRealEstatesData as Y, saveSearch as _, saveSearchFromRequest as $ } from "./realEstateAPI.js";
|
|
9
|
+
import { addGenericRequest as te, sendSuggestion as oe, sendWidgetRequest as re } from "./requestAPI.js";
|
|
10
|
+
import { baseURL as se, handleAxiosError as ne } from "./servicesUtils.js";
|
|
11
|
+
import { getPlaceTrendData as me, getSaleGraphData as le, updatePhoneView as pe, updateRealEstateSearch as ge, updateViewListing as ce } from "./statisticsAPI.js";
|
|
12
|
+
import { evaluateRealEstateWidget as fe } from "./valuationAPI.js";
|
|
13
|
+
import { userValuationWithPhotoFeedback as xe } from "./wikicasaPro.js";
|
|
14
|
+
import { isArrNullOrEmpty as he } from "./ArrayUtils.js";
|
|
15
|
+
import { rgba as be } from "./ColorUtils.js";
|
|
16
|
+
import { decodeCookie as ye, encodeCookie as Ce, getCookie as Ae, removeCookie as Re } from "./CookieUtils.js";
|
|
17
|
+
import { formatCurrency as Ee } from "./CurrencyUtils.js";
|
|
18
|
+
import { formatDate as ke } from "./DateUtils.js";
|
|
19
|
+
import { isMobile as De, isSafari as Oe, isiOSDevice as Ue } from "./DeviceDetectionUtils.js";
|
|
20
|
+
import { emptyElem as Me, getSingleElement as Te, hideElem as we, showElem as Be } from "./DOMUtils.js";
|
|
21
|
+
import { hashEmail as Ge } from "./EmailUtils.js";
|
|
22
|
+
import { debounce as We, isPromise as je } from "./FunctionUtils.js";
|
|
23
|
+
import { showAddFavoritesIcon as Qe, showRemoveFavoritesIcons as Ze } from "./FavoriteUtils.js";
|
|
24
|
+
import { getPlaceFromGAutocomplete as He, googlePlaceConverter as Ke } from "./GAutocompleteUtils.js";
|
|
25
|
+
import { awaitableSetTimeout as Ye, createCustomEvent as _e } from "./GenericUtils.js";
|
|
26
|
+
import { formatFloat as et, formatInteger as tt, formatLocaleNumber as ot, formatNumber as rt, formatterNumberObj as at, parseLocaleNumber as st } from "./NumberUtils.js";
|
|
27
|
+
import { deepCopy as it, isEmptyObject as mt, shallowCopyObjectTo as lt } from "./ObjectUtils.js";
|
|
28
|
+
import { observeOnce as gt } from "./ObserverUtils.js";
|
|
29
|
+
import { addPermissionStateListener as dt, onNotificationsPermissionChange as ft } from "./PermissionUtils.js";
|
|
30
|
+
import { sendRequestGeneric as xt } from "./RequestUtils.js";
|
|
31
|
+
import { buildParams as ht, buildParamsForAgency as St, buildURL as bt } from "./RESB_UrlBuilder.js";
|
|
32
|
+
import { capitalizeFirstLetter as yt, cleanASCII as Ct, decodeTextWithEntities as At, formatAddress as Rt, replaceAll as Ft, replaceAllTokens as Et, stringToHyphened as Nt } from "./StringUtils.js";
|
|
33
|
+
import { appendQueryString as It } from "./URLBuilderUtils.js";
|
|
34
|
+
import { getURLPage as Ot } from "./URLPagesFactory.js";
|
|
35
|
+
export {
|
|
36
|
+
te as addGenericRequest,
|
|
37
|
+
dt as addPermissionStateListener,
|
|
38
|
+
D as addUserFavorite,
|
|
39
|
+
It as appendQueryString,
|
|
40
|
+
Ye as awaitableSetTimeout,
|
|
41
|
+
se as baseURL,
|
|
42
|
+
ht as buildParams,
|
|
43
|
+
St as buildParamsForAgency,
|
|
44
|
+
bt as buildURL,
|
|
45
|
+
yt as capitalizeFirstLetter,
|
|
46
|
+
Ct as cleanASCII,
|
|
47
|
+
_e as createCustomEvent,
|
|
48
|
+
We as debounce,
|
|
49
|
+
ye as decodeCookie,
|
|
50
|
+
At as decodeTextWithEntities,
|
|
51
|
+
it as deepCopy,
|
|
52
|
+
O as deleteAllSaveSearch,
|
|
53
|
+
U as deleteSaveSearch,
|
|
54
|
+
L as deleteUserFavorite,
|
|
55
|
+
M as deleteUserFirebaseToken,
|
|
56
|
+
Me as emptyElem,
|
|
57
|
+
Ce as encodeCookie,
|
|
58
|
+
fe as evaluateRealEstateWidget,
|
|
59
|
+
Rt as formatAddress,
|
|
60
|
+
Ee as formatCurrency,
|
|
61
|
+
ke as formatDate,
|
|
62
|
+
et as formatFloat,
|
|
63
|
+
tt as formatInteger,
|
|
64
|
+
ot as formatLocaleNumber,
|
|
65
|
+
rt as formatNumber,
|
|
66
|
+
at as formatterNumberObj,
|
|
67
|
+
o as getAgenciesData,
|
|
68
|
+
r as getAgencyById,
|
|
69
|
+
i as getCityPolygonJSON,
|
|
70
|
+
Ae as getCookie,
|
|
71
|
+
m as getCountryPolygonJSON,
|
|
72
|
+
A as getDistrictsByZoneId,
|
|
73
|
+
T as getFavourites,
|
|
74
|
+
H as getMapMarkers,
|
|
75
|
+
w as getMarketingConsent,
|
|
76
|
+
B as getMenuInfo,
|
|
77
|
+
R as getPlace,
|
|
78
|
+
He as getPlaceFromGAutocomplete,
|
|
79
|
+
l as getPlaceFromPlaceID,
|
|
80
|
+
me as getPlaceTrendData,
|
|
81
|
+
p as getPlacesAddressAutocomplete,
|
|
82
|
+
F as getPlacesByQuery,
|
|
83
|
+
g as getPlacesDetails,
|
|
84
|
+
c as getProvincePolygonJSON,
|
|
85
|
+
q as getPublicUser,
|
|
86
|
+
G as getPublicUserSaveSearchList,
|
|
87
|
+
K as getRealEstateCounter,
|
|
88
|
+
X as getRealEstateNotes,
|
|
89
|
+
Y as getRealEstatesData,
|
|
90
|
+
d as getRegionPolygonJSON,
|
|
91
|
+
le as getSaleGraphData,
|
|
92
|
+
J as getSavedSearchesCount,
|
|
93
|
+
Te as getSingleElement,
|
|
94
|
+
x as getTransactionGraphData,
|
|
95
|
+
Ot as getURLPage,
|
|
96
|
+
E as getZones,
|
|
97
|
+
Ke as googlePlaceConverter,
|
|
98
|
+
f as guessPlace,
|
|
99
|
+
ne as handleAxiosError,
|
|
100
|
+
Ge as hashEmail,
|
|
101
|
+
we as hideElem,
|
|
102
|
+
he as isArrNullOrEmpty,
|
|
103
|
+
mt as isEmptyObject,
|
|
104
|
+
De as isMobile,
|
|
105
|
+
je as isPromise,
|
|
106
|
+
Oe as isSafari,
|
|
107
|
+
Ue as isiOSDevice,
|
|
108
|
+
gt as observeOnce,
|
|
109
|
+
ft as onNotificationsPermissionChange,
|
|
110
|
+
st as parseLocaleNumber,
|
|
111
|
+
Re as removeCookie,
|
|
112
|
+
W as removeFavourites,
|
|
113
|
+
Ft as replaceAll,
|
|
114
|
+
Et as replaceAllTokens,
|
|
115
|
+
be as rgba,
|
|
116
|
+
_ as saveSearch,
|
|
117
|
+
$ as saveSearchFromRequest,
|
|
118
|
+
j as saveUserFirebaseToken,
|
|
119
|
+
a as sendAgencyContactAsync,
|
|
120
|
+
h as sendBrochureMR,
|
|
121
|
+
S as sendBrochureRequest,
|
|
122
|
+
b as sendInfoMR,
|
|
123
|
+
v as sendInfoPremium,
|
|
124
|
+
y as sendJobApplicationForm,
|
|
125
|
+
s as sendMortgage,
|
|
126
|
+
xt as sendRequestGeneric,
|
|
127
|
+
oe as sendSuggestion,
|
|
128
|
+
re as sendWidgetRequest,
|
|
129
|
+
lt as shallowCopyObjectTo,
|
|
130
|
+
Qe as showAddFavoritesIcon,
|
|
131
|
+
Be as showElem,
|
|
132
|
+
Ze as showRemoveFavoritesIcons,
|
|
133
|
+
Nt as stringToHyphened,
|
|
134
|
+
V as updateMarketingConsent,
|
|
135
|
+
k as updateNewsletterConsent,
|
|
136
|
+
Q as updateNote,
|
|
137
|
+
pe as updatePhoneView,
|
|
138
|
+
Z as updatePublicUserSavedSearchBean,
|
|
139
|
+
ge as updateRealEstateSearch,
|
|
140
|
+
ce as updateViewListing,
|
|
141
|
+
xe as userValuationWithPhotoFeedback
|
|
142
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("axios"),s=require("./servicesUtils.cjs"),e="/rest/insights",o=async r=>{try{return(await a.post(`${e}/getTransactionsGraphData`,r)).data}catch(t){throw s.handleAxiosError(t),t}};exports.getTransactionGraphData=o;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import a from "axios";
|
|
2
|
+
import { handleAxiosError as o } from "./servicesUtils.js";
|
|
3
|
+
const s = "/rest/insights", i = async (t) => {
|
|
4
|
+
try {
|
|
5
|
+
return (await a.post(
|
|
6
|
+
`${s}/getTransactionsGraphData`,
|
|
7
|
+
t
|
|
8
|
+
)).data;
|
|
9
|
+
} catch (r) {
|
|
10
|
+
throw o(r), r;
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
i as getTransactionGraphData
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|