@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,142 @@
|
|
|
1
|
+
import { $ as o } from "./types-BaBnqzzG.js";
|
|
2
|
+
import t from "axios";
|
|
3
|
+
import { handleAxiosError as s } from "./servicesUtils.js";
|
|
4
|
+
const u = window._baseURLIt, a = `${u}/rest/publicUser`, h = async () => {
|
|
5
|
+
try {
|
|
6
|
+
return (await t.get(`${a}/getMenuInfo`)).data;
|
|
7
|
+
} catch (e) {
|
|
8
|
+
throw s(e), null;
|
|
9
|
+
}
|
|
10
|
+
}, y = async () => {
|
|
11
|
+
try {
|
|
12
|
+
return (await t.get(`${a}/getUser`)).data;
|
|
13
|
+
} catch (e) {
|
|
14
|
+
throw s(e), null;
|
|
15
|
+
}
|
|
16
|
+
}, $ = async (e) => {
|
|
17
|
+
try {
|
|
18
|
+
return (await t.get(
|
|
19
|
+
`${a}/getMarketingConsent?email=${e}`
|
|
20
|
+
)).data;
|
|
21
|
+
} catch (r) {
|
|
22
|
+
return s(r), !1;
|
|
23
|
+
}
|
|
24
|
+
}, g = async () => {
|
|
25
|
+
try {
|
|
26
|
+
return (await t.post(`${a}/deleteAllUserSaveSearch`)).data;
|
|
27
|
+
} catch (e) {
|
|
28
|
+
throw s(e), null;
|
|
29
|
+
}
|
|
30
|
+
}, w = async (e) => {
|
|
31
|
+
try {
|
|
32
|
+
return (await t.post(
|
|
33
|
+
`${a}/deleteUserSaveSearchParam/${e}`
|
|
34
|
+
)).data;
|
|
35
|
+
} catch (r) {
|
|
36
|
+
throw s(r), null;
|
|
37
|
+
}
|
|
38
|
+
}, v = async () => {
|
|
39
|
+
try {
|
|
40
|
+
return (await t.get(`${a}/getFavouriteIdList`)).data;
|
|
41
|
+
} catch (e) {
|
|
42
|
+
return s(e), [];
|
|
43
|
+
}
|
|
44
|
+
}, U = async (e) => {
|
|
45
|
+
try {
|
|
46
|
+
return (await t.post(`${a}/addUserFavourite/${e}`)).data;
|
|
47
|
+
} catch (r) {
|
|
48
|
+
return s(r), !1;
|
|
49
|
+
}
|
|
50
|
+
}, p = async (e) => {
|
|
51
|
+
try {
|
|
52
|
+
return (await t.post(`${a}/deleteUserFavourite/${e}`)).data;
|
|
53
|
+
} catch (r) {
|
|
54
|
+
return s(r), !1;
|
|
55
|
+
}
|
|
56
|
+
}, S = async (e, r) => {
|
|
57
|
+
if (r === " " || r === " ")
|
|
58
|
+
return !1;
|
|
59
|
+
try {
|
|
60
|
+
return (await t.post(`${a}/updateFavouriteNote`, {
|
|
61
|
+
realEstateId: e,
|
|
62
|
+
note: r
|
|
63
|
+
})).data;
|
|
64
|
+
} catch (n) {
|
|
65
|
+
return s(n), !1;
|
|
66
|
+
}
|
|
67
|
+
}, f = async () => {
|
|
68
|
+
try {
|
|
69
|
+
return (await t.post(`${a}/deleteAllUserFavourite`)).data;
|
|
70
|
+
} catch (e) {
|
|
71
|
+
return s(e), !1;
|
|
72
|
+
}
|
|
73
|
+
}, b = async (e) => {
|
|
74
|
+
try {
|
|
75
|
+
return e ? (await t.post(
|
|
76
|
+
`${a}/refreshUserFirebaseToken?token=${e}`
|
|
77
|
+
), !0) : !1;
|
|
78
|
+
} catch {
|
|
79
|
+
return !1;
|
|
80
|
+
}
|
|
81
|
+
}, m = async (e) => {
|
|
82
|
+
try {
|
|
83
|
+
return await t.delete(
|
|
84
|
+
`${a}/deleteUserFirebaseToken?token=${e}`
|
|
85
|
+
), !0;
|
|
86
|
+
} catch {
|
|
87
|
+
return !1;
|
|
88
|
+
}
|
|
89
|
+
}, F = async (e) => {
|
|
90
|
+
const { email: r, marketingConsent: n } = e;
|
|
91
|
+
try {
|
|
92
|
+
return await t.post(
|
|
93
|
+
`${a}/updateMarketingConsent?email=${r}&marketingConsent=${n}`,
|
|
94
|
+
e
|
|
95
|
+
), !0;
|
|
96
|
+
} catch (c) {
|
|
97
|
+
return s(c), !1;
|
|
98
|
+
}
|
|
99
|
+
}, k = async (e = 0, r = 10) => {
|
|
100
|
+
try {
|
|
101
|
+
return (await t.get(
|
|
102
|
+
`${a}/getPublicUserSavedSearchBeanList/${e}/${r}`
|
|
103
|
+
)).data;
|
|
104
|
+
} catch (n) {
|
|
105
|
+
return s(n), [];
|
|
106
|
+
}
|
|
107
|
+
}, C = async (e) => {
|
|
108
|
+
try {
|
|
109
|
+
return (await t.post(
|
|
110
|
+
`${a}/updatePublicUserSavedSearchBean/`,
|
|
111
|
+
e
|
|
112
|
+
)).data;
|
|
113
|
+
} catch (r) {
|
|
114
|
+
return s(r), o();
|
|
115
|
+
}
|
|
116
|
+
}, P = async () => {
|
|
117
|
+
try {
|
|
118
|
+
return (await t.get(
|
|
119
|
+
`${a}/getPublicUserSaveSearchCount`
|
|
120
|
+
)).data;
|
|
121
|
+
} catch (e) {
|
|
122
|
+
return s(e), 0;
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
export {
|
|
126
|
+
U as addUserFavorite,
|
|
127
|
+
g as deleteAllSaveSearch,
|
|
128
|
+
w as deleteSaveSearch,
|
|
129
|
+
p as deleteUserFavorite,
|
|
130
|
+
m as deleteUserFirebaseToken,
|
|
131
|
+
v as getFavourites,
|
|
132
|
+
$ as getMarketingConsent,
|
|
133
|
+
h as getMenuInfo,
|
|
134
|
+
y as getPublicUser,
|
|
135
|
+
k as getPublicUserSaveSearchList,
|
|
136
|
+
P as getSavedSearchesCount,
|
|
137
|
+
f as removeFavourites,
|
|
138
|
+
b as saveUserFirebaseToken,
|
|
139
|
+
F as updateMarketingConsent,
|
|
140
|
+
S as updateNote,
|
|
141
|
+
C as updatePublicUserSavedSearchBean
|
|
142
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("axios"),o=require("./servicesUtils.cjs"),c=require("./ObjectUtils.cjs"),n=window._baseURLIt,l=`${n}/rest/realEstate`,p=async t=>{try{return(await r.post(`${n}/rest/publicUser/getRealEstateNotes/${t}`)).data}catch(e){return o.handleAxiosError(e),""}},d=async(t,e,s,a,i=!1)=>{if(!t||!a)throw`Email or resb are not valid, ${t}, ${a}`;return await r.post(`${l}/saveSearch?email=${t}&title=${e}&hourly=${s}&pushNotifications=${i}`,a)},u=async(t,e,s=!1)=>{try{return(await r.post(`${l}/saveSearch?email=${t}&title=Ricerca salvata&pushNotifications=${s}`,e)).data}catch(a){throw o.handleAxiosError(a),a}},h=async t=>{const e=c.deepCopy(t);return e.polygonForDB&&(e.polygonFromMap=e.polygonForDB||""),e?.listingTypologyIdList?.includes(15)&&(e.conditionType=5),await(await r.post("/rest/realEstate/countRealEstateES",e)).data},y=async t=>{try{return(await r.post(`${n}/rest/realEstate/getRealEstateListForInfoWindow/${window._locale}`,t)).data}catch(e){return o.handleAxiosError(e),null}},g=async()=>{if(!window._serializedSearchBean)return[];const t=c.deepCopy(JSON.parse(window._serializedSearchBean));delete t.latitude,delete t.longitude;try{return(await r.post(`${n}/rest/realEstate/getMapMarkers`,t,{headers:{"Content-Type":"application/json",Accept:"application/json"}})).data}catch(e){throw o.handleAxiosError(e),[]}};exports.getMapMarkers=g;exports.getRealEstateCounter=h;exports.getRealEstateNotes=p;exports.getRealEstatesData=y;exports.saveSearch=d;exports.saveSearchFromRequest=u;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import r from "axios";
|
|
2
|
+
import { handleAxiosError as o } from "./servicesUtils.js";
|
|
3
|
+
import { deepCopy as c } from "./ObjectUtils.js";
|
|
4
|
+
const n = window._baseURLIt, l = `${n}/rest/realEstate`, h = async (e) => {
|
|
5
|
+
try {
|
|
6
|
+
return (await r.post(
|
|
7
|
+
`${n}/rest/publicUser/getRealEstateNotes/${e}`
|
|
8
|
+
)).data;
|
|
9
|
+
} catch (t) {
|
|
10
|
+
return o(t), "";
|
|
11
|
+
}
|
|
12
|
+
}, w = async (e, t, s, a, i = !1) => {
|
|
13
|
+
if (!e || !a)
|
|
14
|
+
throw `Email or resb are not valid, ${e}, ${a}`;
|
|
15
|
+
return await r.post(
|
|
16
|
+
`${l}/saveSearch?email=${e}&title=${t}&hourly=${s}&pushNotifications=${i}`,
|
|
17
|
+
a
|
|
18
|
+
);
|
|
19
|
+
}, y = async (e, t, s = !1) => {
|
|
20
|
+
try {
|
|
21
|
+
return (await r.post(
|
|
22
|
+
`${l}/saveSearch?email=${e}&title=Ricerca salvata&pushNotifications=${s}`,
|
|
23
|
+
t
|
|
24
|
+
)).data;
|
|
25
|
+
} catch (a) {
|
|
26
|
+
throw o(a), a;
|
|
27
|
+
}
|
|
28
|
+
}, $ = async (e) => {
|
|
29
|
+
const t = c(e);
|
|
30
|
+
return t.polygonForDB && (t.polygonFromMap = t.polygonForDB || ""), t?.listingTypologyIdList?.includes(15) && (t.conditionType = 5), await (await r.post("/rest/realEstate/countRealEstateES", t)).data;
|
|
31
|
+
}, g = async (e) => {
|
|
32
|
+
try {
|
|
33
|
+
return (await r.post(
|
|
34
|
+
`${n}/rest/realEstate/getRealEstateListForInfoWindow/${window._locale}`,
|
|
35
|
+
e
|
|
36
|
+
)).data;
|
|
37
|
+
} catch (t) {
|
|
38
|
+
return o(t), null;
|
|
39
|
+
}
|
|
40
|
+
}, E = async () => {
|
|
41
|
+
if (!window._serializedSearchBean)
|
|
42
|
+
return [];
|
|
43
|
+
const e = c(JSON.parse(window._serializedSearchBean));
|
|
44
|
+
delete e.latitude, delete e.longitude;
|
|
45
|
+
try {
|
|
46
|
+
return (await r.post(
|
|
47
|
+
`${n}/rest/realEstate/getMapMarkers`,
|
|
48
|
+
e,
|
|
49
|
+
{
|
|
50
|
+
headers: {
|
|
51
|
+
"Content-Type": "application/json",
|
|
52
|
+
Accept: "application/json"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
)).data;
|
|
56
|
+
} catch (t) {
|
|
57
|
+
throw o(t), [];
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
export {
|
|
61
|
+
E as getMapMarkers,
|
|
62
|
+
$ as getRealEstateCounter,
|
|
63
|
+
h as getRealEstateNotes,
|
|
64
|
+
g as getRealEstatesData,
|
|
65
|
+
w as saveSearch,
|
|
66
|
+
y as saveSearchFromRequest
|
|
67
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("axios"),r=require("./servicesUtils.cjs"),n=`${r.baseURL}/rest/request`,o=async e=>(await t.post(`${n}/sendSuggestion`,e)).data,a=async e=>{try{return(await t.post("/rest/request/addRequestGeneric",e)).data}catch(s){throw r.handleAxiosError(s),s}},d=async e=>(await t.post(`${n}/sendWidgetRequest`,e)).data;exports.addGenericRequest=a;exports.sendSuggestion=o;exports.sendWidgetRequest=d;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import s from "axios";
|
|
2
|
+
import { handleAxiosError as o, baseURL as n } from "./servicesUtils.js";
|
|
3
|
+
const r = `${n}/rest/request`, d = async (e) => (await s.post(`${r}/sendSuggestion`, e)).data, i = async (e) => {
|
|
4
|
+
try {
|
|
5
|
+
return (await s.post("/rest/request/addRequestGeneric", e)).data;
|
|
6
|
+
} catch (t) {
|
|
7
|
+
throw o(t), t;
|
|
8
|
+
}
|
|
9
|
+
}, u = async (e) => (await s.post(
|
|
10
|
+
`${r}/sendWidgetRequest`,
|
|
11
|
+
e
|
|
12
|
+
)).data;
|
|
13
|
+
export {
|
|
14
|
+
i as addGenericRequest,
|
|
15
|
+
d as sendSuggestion,
|
|
16
|
+
u as sendWidgetRequest
|
|
17
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { FEEDBACK } from "@wikicasa-dev/types
|
|
1
|
+
import type { FEEDBACK } from "@wikicasa-dev/types";
|
|
2
2
|
export declare const userValuationWithPhotoFeedback: (email: string, token: string, feedback: FEEDBACK, userFeedbackValue?: number) => Promise<boolean>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=window._baseURLIt,t=e=>{const s=`errorMessage: ${e.message}
|
|
2
|
+
`;e.response?console.error(`${s} errorCode: ${e.response.status} \\n ${e.request.data}`):e.request?console.error(`${s}
|
|
3
|
+
${e.request}`):console.error(s)};exports.baseURL=o;exports.handleAxiosError=t;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const o = window._baseURLIt, n = (e) => {
|
|
2
|
+
const s = `errorMessage: ${e.message}
|
|
3
|
+
`;
|
|
4
|
+
e.response ? console.error(
|
|
5
|
+
`${s} errorCode: ${e.response.status} \\n ${e.request.data}`
|
|
6
|
+
) : e.request ? console.error(`${s}
|
|
7
|
+
${e.request}`) : console.error(s);
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
o as baseURL,
|
|
11
|
+
n as handleAxiosError
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("axios"),o=require("./servicesUtils.cjs"),s="/rest/statistics",c=async e=>{try{return await a.post(`${s}/updateViewListing/W`,e),!0}catch(t){return o.handleAxiosError(t),!1}},n=async e=>{try{return a.post(`${s}/updateRealEstateSearch`,e),!0}catch(t){return o.handleAxiosError(t),!1}},i=async(e,t)=>{try{return(await a.post(t?`${s}/updatePhoneView/${e}/${t}/W`:`/rest/statistics/updatePhoneView/${e}/W`)).data}catch(r){throw o.handleAxiosError(r),r}},l=async e=>{try{const t=await a.post(`${s}/getPlaceTrendData?sale=true`,e),r=await a.post(`${s}/getPlaceTrendData?sale=false`,e);return Promise.all([t,r])}catch(t){throw o.handleAxiosError(t),t}},u=async(e,t={contract:"sale",macroTypologyId:1})=>{try{return(await a.post(`${s}/getAveragePriceGraphData/${t.contract}/${t.macroTypologyId}`,e)).data}catch(r){throw o.handleAxiosError(r),r}};exports.getPlaceTrendData=l;exports.getSaleGraphData=u;exports.updatePhoneView=i;exports.updateRealEstateSearch=n;exports.updateViewListing=c;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import e from "axios";
|
|
2
|
+
import { handleAxiosError as o } from "./servicesUtils.js";
|
|
3
|
+
const s = "/rest/statistics", i = async (r) => {
|
|
4
|
+
try {
|
|
5
|
+
return await e.post(`${s}/updateViewListing/W`, r), !0;
|
|
6
|
+
} catch (t) {
|
|
7
|
+
return o(t), !1;
|
|
8
|
+
}
|
|
9
|
+
}, p = async (r) => {
|
|
10
|
+
try {
|
|
11
|
+
return e.post(
|
|
12
|
+
`${s}/updateRealEstateSearch`,
|
|
13
|
+
r
|
|
14
|
+
), !0;
|
|
15
|
+
} catch (t) {
|
|
16
|
+
return o(t), !1;
|
|
17
|
+
}
|
|
18
|
+
}, l = async (r, t) => {
|
|
19
|
+
try {
|
|
20
|
+
return (await e.post(
|
|
21
|
+
t ? `${s}/updatePhoneView/${r}/${t}/W` : `/rest/statistics/updatePhoneView/${r}/W`
|
|
22
|
+
)).data;
|
|
23
|
+
} catch (a) {
|
|
24
|
+
throw o(a), a;
|
|
25
|
+
}
|
|
26
|
+
}, u = async (r) => {
|
|
27
|
+
try {
|
|
28
|
+
const t = await e.post(
|
|
29
|
+
`${s}/getPlaceTrendData?sale=true`,
|
|
30
|
+
r
|
|
31
|
+
), a = await e.post(
|
|
32
|
+
`${s}/getPlaceTrendData?sale=false`,
|
|
33
|
+
r
|
|
34
|
+
);
|
|
35
|
+
return Promise.all([t, a]);
|
|
36
|
+
} catch (t) {
|
|
37
|
+
throw o(t), t;
|
|
38
|
+
}
|
|
39
|
+
}, h = async (r, t = {
|
|
40
|
+
contract: "sale",
|
|
41
|
+
macroTypologyId: 1
|
|
42
|
+
}) => {
|
|
43
|
+
try {
|
|
44
|
+
return (await e.post(
|
|
45
|
+
`${s}/getAveragePriceGraphData/${t.contract}/${t.macroTypologyId}`,
|
|
46
|
+
r
|
|
47
|
+
)).data;
|
|
48
|
+
} catch (a) {
|
|
49
|
+
throw o(a), a;
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
export {
|
|
53
|
+
u as getPlaceTrendData,
|
|
54
|
+
h as getSaleGraphData,
|
|
55
|
+
l as updatePhoneView,
|
|
56
|
+
p as updateRealEstateSearch,
|
|
57
|
+
i as updateViewListing
|
|
58
|
+
};
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.leaflet-draw-section{position:relative}.leaflet-draw-toolbar{margin-top:12px}.leaflet-draw-toolbar-top{margin-top:0}.leaflet-draw-toolbar-notop a:first-child{border-top-right-radius:0}.leaflet-draw-toolbar-nobottom a:last-child{border-bottom-right-radius:0}.leaflet-draw-toolbar a{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASwAAAAeCAYAAACWuCNnAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAG7AAABuwBHnU4NQAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAAbvSURBVHic7dtdbBxXFQfw/9nZ3SRKwAP7UFFUQOoHqGnUoEAoNghX9tyxVcpD1X0J+WgiUQmpfUB5ACSgG1qJIKASqBIUIauqAbWseIlqb+bOWHVR6y0FKZBEqdIUQROIREGRx3FFvR/38ODZst3a3nE8Ywfv+T2t7hzdM3fle/bOnWtACCGEEEIIIYQQQgghhBBCCCGEEEIIIcRa0EbfgBDdFItFKwzDAa3175LuWylVAvBIR/MxrXUp6Vxx9dp4VyObVEdKKW591lonXgiVUg6AHzPzk9ls9meVSmUh6RzXkz179uQKhcIgM+8CACI6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8WDm1spph2VZgeu6+5RSX7YsK8D/Xnb8Psmcnebm5h7G4uS9ysxutOH8VQC70sy7UTb7eImImTnWlgkzUyaT6fr3v6qC1fGL8EytVjuQRrECANu2fwHg1TixzPyXNO5hvTHz6VWE/znJ3L7vzxBRa9PzDmb+FYBfArgjajvd39+f9vGGKwACZh5te6mwmc8KburxMvO5TCbzqW5xxWLRArDbsqyu8z32HtZSxSrNM0Hlcrnpum6JmZ+NEb4pHglrtdrz+Xz+AoBbu4Ser9fra37d3YEBfBvAkq+XmfmbpVIp9grwWnie9zSAp9PMcT3Z7OPNZrO/aTQaf1BKfbd9X7RTGIaHmPlcnPNYsVZYSikOw7AB4CAzj/f19e1fjwOMnueVEeMxJJfLbYqCNT093TDGHAGw0qHYBQBH0vj+Pc+bYOb3HFRk5nHf9yeTzgfgMhF9uEvMTQD+71/vR3pqvJOTk28AeBJAeXR09P1LxbiuuxfA9wB8LU6fsVdYrUOhtm0fTusxcAlMRN+KziUt5SqAM3v37r00OZnGfFp/QRC86DjOUCaTGWPm2zoun8fiIbuZtPLX6/UH8/n8rQDuippertfrD6aRKyqOR5VS81ji8Z+IbmfmgwB+mEb+9dZr4wWA/v7+R6rV6k+azeYpx3EezeVyJ7dv335lfn7+lkajcZCZDzPzYd/3/xSnv9gFq3UuaR2LFQDA87xAKVUB8BEAZ6N9nrNEdEZr/TcArLVOPG8aJ9jj8n3/pcHBwZ1btmx5519zmPl0vV5/Ie2V7fT09Nujo6Nus9kcA4CtW7ce1lq/nUYu27a/Mzs7CyI6gMVX/u/CzJeZ+Ue2bcc9pb1aXc8lJZms18YLANE2wkOu694N4OFGo3E8DMMPAHiDiCaY+ZOb4YCsEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhEjYfwGO+b5dFNs4OgAAAABJRU5ErkJggg==);background-image:linear-gradient(transparent,transparent),url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20xmlns:dc='http://purl.org/dc/elements/1.1/'%20xmlns:cc='http://creativecommons.org/ns%23'%20xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20viewBox='0%200%20600%2060'%20height='60'%20width='600'%20id='svg4225'%20version='1.1'%20inkscape:version='0.91%20r13725'%20sodipodi:docname='spritesheet.svg'%20inkscape:export-filename='/home/fpuga/development/upstream/icarto.Leaflet.draw/src/images/spritesheet-2x.png'%20inkscape:export-xdpi='90'%20inkscape:export-ydpi='90'%3e%3cmetadata%20id='metadata4258'%3e%3crdf:RDF%3e%3ccc:Work%20rdf:about=''%3e%3cdc:format%3eimage/svg+xml%3c/dc:format%3e%3cdc:type%20rdf:resource='http://purl.org/dc/dcmitype/StillImage'%20/%3e%3cdc:title%20/%3e%3c/cc:Work%3e%3c/rdf:RDF%3e%3c/metadata%3e%3cdefs%20id='defs4256'%20/%3e%3csodipodi:namedview%20pagecolor='%23ffffff'%20bordercolor='%23666666'%20borderopacity='1'%20objecttolerance='10'%20gridtolerance='10'%20guidetolerance='10'%20inkscape:pageopacity='0'%20inkscape:pageshadow='2'%20inkscape:window-width='1920'%20inkscape:window-height='1056'%20id='namedview4254'%20showgrid='false'%20inkscape:zoom='1.3101852'%20inkscape:cx='237.56928'%20inkscape:cy='7.2419621'%20inkscape:window-x='1920'%20inkscape:window-y='24'%20inkscape:window-maximized='1'%20inkscape:current-layer='svg4225'%20/%3e%3cg%20id='enabled'%20style='fill:%23464646;fill-opacity:1'%3e%3cg%20id='polyline'%20style='fill:%23464646;fill-opacity:1'%3e%3cpath%20d='m%2018,36%200,6%206,0%200,-6%20-6,0%20z%20m%204,4%20-2,0%200,-2%202,0%200,2%20z'%20id='path4229'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%2036,18%200,6%206,0%200,-6%20-6,0%20z%20m%204,4%20-2,0%200,-2%202,0%200,2%20z'%20id='path4231'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%2023.142,39.145%20-2.285,-2.29%2016,-15.998%202.285,2.285%20z'%20id='path4233'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3c/g%3e%3cpath%20id='polygon'%20d='M%20100,24.565%2097.904,39.395%2083.07,42%2076,28.773%2086.463,18%20Z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20id='rectangle'%20d='m%20140,20%2020,0%200,20%20-20,0%20z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20id='circle'%20d='m%20221,30%20c%200,6.078%20-4.926,11%20-11,11%20-6.074,0%20-11,-4.922%20-11,-11%200,-6.074%204.926,-11%2011,-11%206.074,0%2011,4.926%2011,11%20z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20id='marker'%20d='m%20270,19%20c%20-4.971,0%20-9,4.029%20-9,9%200,4.971%205.001,12%209,14%204.001,-2%209,-9.029%209,-14%200,-4.971%20-4.029,-9%20-9,-9%20z%20m%200,12.5%20c%20-2.484,0%20-4.5,-2.014%20-4.5,-4.5%200,-2.484%202.016,-4.5%204.5,-4.5%202.485,0%204.5,2.016%204.5,4.5%200,2.486%20-2.015,4.5%20-4.5,4.5%20z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cg%20id='edit'%20style='fill:%23464646;fill-opacity:1'%3e%3cpath%20d='m%20337,30.156%200,0.407%200,5.604%20c%200,1.658%20-1.344,3%20-3,3%20l%20-10,0%20c%20-1.655,0%20-3,-1.342%20-3,-3%20l%200,-10%20c%200,-1.657%201.345,-3%203,-3%20l%206.345,0%203.19,-3.17%20-9.535,0%20c%20-3.313,0%20-6,2.687%20-6,6%20l%200,10%20c%200,3.313%202.687,6%206,6%20l%2010,0%20c%203.314,0%206,-2.687%206,-6%20l%200,-8.809%20-3,2.968'%20id='path4240'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%20338.72,24.637%20-8.892,8.892%20-2.828,0%200,-2.829%208.89,-8.89%20z'%20id='path4242'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%20338.697,17.826%204,0%200,4%20-4,0%20z'%20transform='matrix(-0.70698336,-0.70723018,0.70723018,-0.70698336,567.55917,274.78273)'%20id='path4244'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3c/g%3e%3cg%20id='remove'%20style='fill:%23464646;fill-opacity:1'%3e%3cpath%20d='m%20381,42%2018,0%200,-18%20-18,0%200,18%20z%20m%2014,-16%202,0%200,14%20-2,0%200,-14%20z%20m%20-4,0%202,0%200,14%20-2,0%200,-14%20z%20m%20-4,0%202,0%200,14%20-2,0%200,-14%20z%20m%20-4,0%202,0%200,14%20-2,0%200,-14%20z'%20id='path4247'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%20395,20%200,-4%20-10,0%200,4%20-6,0%200,2%2022,0%200,-2%20-6,0%20z%20m%20-2,0%20-6,0%200,-2%206,0%200,2%20z'%20id='path4249'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3c/g%3e%3c/g%3e%3cg%20id='disabled'%20transform='translate(120,0)'%20style='fill:%23bbbbbb'%3e%3cuse%20xlink:href='%23edit'%20id='edit-disabled'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%20/%3e%3cuse%20xlink:href='%23remove'%20id='remove-disabled'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%20/%3e%3c/g%3e%3cpath%20style='fill:none;stroke:%23464646;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='circle-3'%20d='m%20581.65725,30%20c%200,6.078%20-4.926,11%20-11,11%20-6.074,0%20-11,-4.922%20-11,-11%200,-6.074%204.926,-11%2011,-11%206.074,0%2011,4.926%2011,11%20z'%20inkscape:connector-curvature='0'%20/%3e%3c/svg%3e");background-repeat:no-repeat;background-size:300px 30px;background-clip:padding-box}.leaflet-retina .leaflet-draw-toolbar a{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlgAAAA8CAYAAAC6nMS5AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAN1wAADdcBQiibeAAAABl0RVh0U29mdHdhcmUAd3d3Lmlua3NjYXBlLm9yZ5vuPBoAAA16SURBVHic7d1/jBxneQfw7zNzvotdn+9sVQkxoRKoammBqqpbk6uT5mLfvHPn42yn1VFRVCEhoFH5IYpoSaUCKi1NcGkcfrbCVRFKEwG2aHLn83pmLvY2CTqT1AmCOBE0EOT4B0nBPw/snb2dp3/sLr6s77i923dud/a+H8ny7tzMo8f3eud99p133gGIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiFYGaXYCRETUPMYYrWe/MAzZX2QQ27d5OpqdABFROxgZGVlz5cqVrzuOc18QBJPNzofsYvvSYrVcgTVftZ2l6npgYODXHMc5oKoHHcfZHQTB2WbnRETpGRkZWVMoFA6IyO2qutX3/R1Z64TnO8fWOwLSzti+mSKDg4M3l0qlnSJyG4CbAFwP4ByAlwE8paoPX3fddcH4+PjP00yk5QqsrDPGvAZAHsBrReRNqvpeY8x/iMg9QRCcaXJ6ZIHv+xtUdReAHQBej/IHGABOAnhORMY6OjoempiYONe0JC3zPM84jjOqqrfi6r/3RQCPAdgXhmHUvOyaa3R01L1w4cJBALdVNq1W1THP87woir7ZzNyocWzf7PA8b4uI7E6S5A9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qD1xXRaRPw6CwMZl1GXjuu6XSqXSOwH8LoD1AMaMMecA1PtF53WV4wCUC+menp699jOlpWD7rhz5fP5Kf3//UFdX132q+l4Ad3d3d7/fGPN1EZlQ1e/19PS8dPbs2fWu694kIgOqOqqqm4Dy4rKlUumOw4cPN3KVYk7WVkE1xsx5aSBLT+duhDEmQrkSnssZlIeXnxWRY6p6PI7j41nveFeq4eHh9XEc7xSRnQBej6t3kp5EuWh+OI7jh+dYsDDTfN/frKrjAKpPmv9pkiS7JicnH29mXku1devWV3d0dBxAuRNeMhF5ulgsjqRxgk7DfOfqxWr1czvbtzGt3r5zGRwc7FPV3ap6y0L7ishPAHx63bp1e/bt2xenkQ8LLEuMMZtE5JCqfhfAMwCeSZLkO2vWrDk+NjbGyZHUFjzP2yginwcAVX1fVi99Vo2OjnaeP3/+3SLydgBvBNBd56GXAHxXVR/s7e3dm9YJOg0rqQNm+y5dFtp3HmKM2QxgF8qr9b8GwA0AzgH4MYBjIjJ28eLFkFeOiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIiIhWgv8Hnffz4dmwY9cAAAAASUVORK5CYII=);background-image:linear-gradient(transparent,transparent),url("data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'%20standalone='no'?%3e%3csvg%20xmlns:dc='http://purl.org/dc/elements/1.1/'%20xmlns:cc='http://creativecommons.org/ns%23'%20xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%20xmlns:svg='http://www.w3.org/2000/svg'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd'%20xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape'%20viewBox='0%200%20600%2060'%20height='60'%20width='600'%20id='svg4225'%20version='1.1'%20inkscape:version='0.91%20r13725'%20sodipodi:docname='spritesheet.svg'%20inkscape:export-filename='/home/fpuga/development/upstream/icarto.Leaflet.draw/src/images/spritesheet-2x.png'%20inkscape:export-xdpi='90'%20inkscape:export-ydpi='90'%3e%3cmetadata%20id='metadata4258'%3e%3crdf:RDF%3e%3ccc:Work%20rdf:about=''%3e%3cdc:format%3eimage/svg+xml%3c/dc:format%3e%3cdc:type%20rdf:resource='http://purl.org/dc/dcmitype/StillImage'%20/%3e%3cdc:title%20/%3e%3c/cc:Work%3e%3c/rdf:RDF%3e%3c/metadata%3e%3cdefs%20id='defs4256'%20/%3e%3csodipodi:namedview%20pagecolor='%23ffffff'%20bordercolor='%23666666'%20borderopacity='1'%20objecttolerance='10'%20gridtolerance='10'%20guidetolerance='10'%20inkscape:pageopacity='0'%20inkscape:pageshadow='2'%20inkscape:window-width='1920'%20inkscape:window-height='1056'%20id='namedview4254'%20showgrid='false'%20inkscape:zoom='1.3101852'%20inkscape:cx='237.56928'%20inkscape:cy='7.2419621'%20inkscape:window-x='1920'%20inkscape:window-y='24'%20inkscape:window-maximized='1'%20inkscape:current-layer='svg4225'%20/%3e%3cg%20id='enabled'%20style='fill:%23464646;fill-opacity:1'%3e%3cg%20id='polyline'%20style='fill:%23464646;fill-opacity:1'%3e%3cpath%20d='m%2018,36%200,6%206,0%200,-6%20-6,0%20z%20m%204,4%20-2,0%200,-2%202,0%200,2%20z'%20id='path4229'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%2036,18%200,6%206,0%200,-6%20-6,0%20z%20m%204,4%20-2,0%200,-2%202,0%200,2%20z'%20id='path4231'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%2023.142,39.145%20-2.285,-2.29%2016,-15.998%202.285,2.285%20z'%20id='path4233'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3c/g%3e%3cpath%20id='polygon'%20d='M%20100,24.565%2097.904,39.395%2083.07,42%2076,28.773%2086.463,18%20Z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20id='rectangle'%20d='m%20140,20%2020,0%200,20%20-20,0%20z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20id='circle'%20d='m%20221,30%20c%200,6.078%20-4.926,11%20-11,11%20-6.074,0%20-11,-4.922%20-11,-11%200,-6.074%204.926,-11%2011,-11%206.074,0%2011,4.926%2011,11%20z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20id='marker'%20d='m%20270,19%20c%20-4.971,0%20-9,4.029%20-9,9%200,4.971%205.001,12%209,14%204.001,-2%209,-9.029%209,-14%200,-4.971%20-4.029,-9%20-9,-9%20z%20m%200,12.5%20c%20-2.484,0%20-4.5,-2.014%20-4.5,-4.5%200,-2.484%202.016,-4.5%204.5,-4.5%202.485,0%204.5,2.016%204.5,4.5%200,2.486%20-2.015,4.5%20-4.5,4.5%20z'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cg%20id='edit'%20style='fill:%23464646;fill-opacity:1'%3e%3cpath%20d='m%20337,30.156%200,0.407%200,5.604%20c%200,1.658%20-1.344,3%20-3,3%20l%20-10,0%20c%20-1.655,0%20-3,-1.342%20-3,-3%20l%200,-10%20c%200,-1.657%201.345,-3%203,-3%20l%206.345,0%203.19,-3.17%20-9.535,0%20c%20-3.313,0%20-6,2.687%20-6,6%20l%200,10%20c%200,3.313%202.687,6%206,6%20l%2010,0%20c%203.314,0%206,-2.687%206,-6%20l%200,-8.809%20-3,2.968'%20id='path4240'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%20338.72,24.637%20-8.892,8.892%20-2.828,0%200,-2.829%208.89,-8.89%20z'%20id='path4242'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%20338.697,17.826%204,0%200,4%20-4,0%20z'%20transform='matrix(-0.70698336,-0.70723018,0.70723018,-0.70698336,567.55917,274.78273)'%20id='path4244'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3c/g%3e%3cg%20id='remove'%20style='fill:%23464646;fill-opacity:1'%3e%3cpath%20d='m%20381,42%2018,0%200,-18%20-18,0%200,18%20z%20m%2014,-16%202,0%200,14%20-2,0%200,-14%20z%20m%20-4,0%202,0%200,14%20-2,0%200,-14%20z%20m%20-4,0%202,0%200,14%20-2,0%200,-14%20z%20m%20-4,0%202,0%200,14%20-2,0%200,-14%20z'%20id='path4247'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3cpath%20d='m%20395,20%200,-4%20-10,0%200,4%20-6,0%200,2%2022,0%200,-2%20-6,0%20z%20m%20-2,0%20-6,0%200,-2%206,0%200,2%20z'%20id='path4249'%20inkscape:connector-curvature='0'%20style='fill:%23464646;fill-opacity:1'%20/%3e%3c/g%3e%3c/g%3e%3cg%20id='disabled'%20transform='translate(120,0)'%20style='fill:%23bbbbbb'%3e%3cuse%20xlink:href='%23edit'%20id='edit-disabled'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%20/%3e%3cuse%20xlink:href='%23remove'%20id='remove-disabled'%20x='0'%20y='0'%20width='100%25'%20height='100%25'%20/%3e%3c/g%3e%3cpath%20style='fill:none;stroke:%23464646;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1'%20id='circle-3'%20d='m%20581.65725,30%20c%200,6.078%20-4.926,11%20-11,11%20-6.074,0%20-11,-4.922%20-11,-11%200,-6.074%204.926,-11%2011,-11%206.074,0%2011,4.926%2011,11%20z'%20inkscape:connector-curvature='0'%20/%3e%3c/svg%3e")}.leaflet-draw a{display:block;text-align:center;text-decoration:none}.leaflet-draw a .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.leaflet-draw-actions{display:none;list-style:none;margin:0;padding:0;position:absolute;left:26px;top:0;white-space:nowrap}.leaflet-touch .leaflet-draw-actions{left:32px}.leaflet-right .leaflet-draw-actions{right:26px;left:auto}.leaflet-touch .leaflet-right .leaflet-draw-actions{right:32px;left:auto}.leaflet-draw-actions li{display:inline-block}.leaflet-draw-actions li:first-child a{border-left:0}.leaflet-draw-actions li:last-child a{-webkit-border-radius:0 4px 4px 0;border-radius:0 4px 4px 0}.leaflet-right .leaflet-draw-actions li:last-child a{-webkit-border-radius:0;border-radius:0}.leaflet-right .leaflet-draw-actions li:first-child a{-webkit-border-radius:4px 0 0 4px;border-radius:4px 0 0 4px}.leaflet-draw-actions a{background-color:#919187;border-left:1px solid #AAA;color:#fff;font:11px/19px Helvetica Neue,Arial,Helvetica,sans-serif;line-height:28px;text-decoration:none;padding-left:10px;padding-right:10px;height:28px}.leaflet-touch .leaflet-draw-actions a{font-size:12px;line-height:30px;height:30px}.leaflet-draw-actions-bottom{margin-top:0}.leaflet-draw-actions-top{margin-top:1px}.leaflet-draw-actions-top a,.leaflet-draw-actions-bottom a{height:27px;line-height:27px}.leaflet-draw-actions a:hover{background-color:#a0a098}.leaflet-draw-actions-top.leaflet-draw-actions-bottom a{height:26px;line-height:26px}.leaflet-draw-toolbar .leaflet-draw-draw-polyline{background-position:-2px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-polyline{background-position:0 -1px}.leaflet-draw-toolbar .leaflet-draw-draw-polygon{background-position:-31px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-polygon{background-position:-29px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-rectangle{background-position:-62px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-rectangle{background-position:-60px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-circle{background-position:-92px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-circle{background-position:-90px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-marker{background-position:-122px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-marker{background-position:-120px -1px}.leaflet-draw-toolbar .leaflet-draw-draw-circlemarker{background-position:-273px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-draw-circlemarker{background-position:-271px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-edit{background-position:-152px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-edit{background-position:-150px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-remove{background-position:-182px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-remove{background-position:-180px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-edit.leaflet-disabled{background-position:-212px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-edit.leaflet-disabled{background-position:-210px -1px}.leaflet-draw-toolbar .leaflet-draw-edit-remove.leaflet-disabled{background-position:-242px -2px}.leaflet-touch .leaflet-draw-toolbar .leaflet-draw-edit-remove.leaflet-disabled{background-position:-240px -2px}.leaflet-mouse-marker{background-color:#fff;cursor:crosshair}.leaflet-draw-tooltip{background:#363636;background:#00000080;border:1px solid transparent;-webkit-border-radius:4px;border-radius:4px;color:#fff;font:12px/18px Helvetica Neue,Arial,Helvetica,sans-serif;margin-left:20px;margin-top:-21px;padding:4px 8px;position:absolute;visibility:hidden;white-space:nowrap;z-index:6}.leaflet-draw-tooltip:before{border-right:6px solid black;border-right-color:#00000080;border-top:6px solid transparent;border-bottom:6px solid transparent;content:"";position:absolute;top:7px;left:-7px}.leaflet-error-draw-tooltip{background-color:#f2dede;border:1px solid #e6b6bd;color:#b94a48}.leaflet-error-draw-tooltip:before{border-right-color:#e6b6bd}.leaflet-draw-tooltip-single{margin-top:-12px}.leaflet-draw-tooltip-subtext{color:#f8d5e4}.leaflet-draw-guide-dash{font-size:1%;opacity:.6;position:absolute;width:5px;height:5px}.leaflet-edit-marker-selected{background-color:#fe57a11a;border:4px dashed rgba(254,87,161,.6);-webkit-border-radius:4px;border-radius:4px;box-sizing:content-box}.leaflet-edit-move{cursor:move}.leaflet-edit-resize{cursor:pointer}.leaflet-oldie .leaflet-draw-toolbar{border:1px solid #999}.leaflet-control-geocoder{border-radius:4px;background:#fff;min-width:26px;min-height:26px}.leaflet-touch .leaflet-control-geocoder{min-width:30px;min-height:30px}.leaflet-control-geocoder a,.leaflet-control-geocoder .leaflet-control-geocoder-icon{border-bottom:none;display:inline-block}.leaflet-control-geocoder .leaflet-control-geocoder-alternatives a{width:inherit;height:inherit;line-height:inherit}.leaflet-control-geocoder a:hover,.leaflet-control-geocoder .leaflet-control-geocoder-icon:hover{border-bottom:none;display:inline-block}.leaflet-control-geocoder-form{display:none;vertical-align:middle}.leaflet-control-geocoder-expanded .leaflet-control-geocoder-form{display:inline-block}.leaflet-control-geocoder-form input{font-size:120%;border:0;background-color:transparent;width:246px}.leaflet-control-geocoder-icon{border-radius:4px;width:26px;height:26px;border:none;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.2 13l3.4 6.6c.6 1.1 2.5-.4 2-1.2l-4-6.2z'/%3E%3Ccircle cx='10.8' cy='8.9' r='3.9' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:center;cursor:pointer}.leaflet-touch .leaflet-control-geocoder-icon{width:30px;height:30px}.leaflet-control-geocoder-throbber .leaflet-control-geocoder-icon{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' stroke='%23000' stroke-linecap='round' stroke-width='1.6' viewBox='0 0 24 24'%3E%3Cdefs/%3E%3Cg%3E%3Cpath stroke-opacity='.1' d='M14 8.4l3-5'/%3E%3Cpath stroke-opacity='.2' d='M15.6 10l5-3'/%3E%3Cpath stroke-opacity='.3' d='M16.2 12H22'/%3E%3Cpath stroke-opacity='.4' d='M15.6 14l5 3m-6.5-1.4l2.9 5'/%3E%3Cpath stroke-opacity='.5' d='M12 16.2V22m-2-6.4l-3 5'/%3E%3Cpath stroke-opacity='.6' d='M8.4 14l-5 3'/%3E%3Cpath stroke-opacity='.7' d='M7.8 12H2'/%3E%3Cpath stroke-opacity='.8' d='M8.4 10l-5-3'/%3E%3Cpath stroke-opacity='.9' d='M10 8.4l-3-5'/%3E%3Cpath d='M12 7.8V2'/%3E%3CanimateTransform attributeName='transform' calcMode='discrete' dur='1s' repeatCount='indefinite' type='rotate' values='0 12 12;30 12 12;60 12 12;90 12 12;120 12 12;150 12 12;180 12 12;210 12 12;240 12 12;270 12 12;300 12 12;330 12 12'/%3E%3C/g%3E%3C/svg%3E")}.leaflet-control-geocoder-form-no-error{display:none}.leaflet-control-geocoder-form input:focus{outline:none}.leaflet-control-geocoder-form button{display:none}.leaflet-control-geocoder-error{margin-top:8px;margin-left:8px;display:block;color:#444}.leaflet-control-geocoder-alternatives{display:block;width:272px;list-style:none;padding:0;margin:0}.leaflet-control-geocoder-alternatives-minimized{display:none;height:0}.leaflet-control-geocoder-alternatives li{white-space:nowrap;display:block;overflow:hidden;padding:5px 8px;text-overflow:ellipsis;border-bottom:1px solid #ccc;cursor:pointer}.leaflet-control-geocoder-alternatives li a,.leaflet-control-geocoder-alternatives li a:hover{width:inherit;height:inherit;line-height:inherit;background:inherit;border-radius:inherit;text-align:left}.leaflet-control-geocoder-alternatives li:last-child{border-bottom:none}.leaflet-control-geocoder-alternatives li:hover,.leaflet-control-geocoder-selected{background-color:#f5f5f5}.leaflet-control-geocoder-address-context{color:#666}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0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Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxw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u0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
var i = /* @__PURE__ */ ((o) => (o[o.SELLING = 0] = "SELLING", o[o.SALE = 1] = "SALE", o[o.RENT = 2] = "RENT", o[o.AUCTION = 3] = "AUCTION", o))(i || {});
|
|
2
|
+
const r = {
|
|
3
|
+
priceFrom: "PrezzoMinimo",
|
|
4
|
+
priceTo: "PrezzoMassimo",
|
|
5
|
+
sqMfrom: "SuperficieMinima",
|
|
6
|
+
sqMto: "SuperficieMassima",
|
|
7
|
+
roomsFrom: "NumeroMinimoLocali",
|
|
8
|
+
roomsTo: "NumeroMassimoLocali",
|
|
9
|
+
bathroomsFrom: "NumeroMinimoBagni",
|
|
10
|
+
bathroomsTo: "NumeroMassimoBagni",
|
|
11
|
+
conditionType: "StatoImmobile",
|
|
12
|
+
energyClassFilter: "ClasseEnergetica",
|
|
13
|
+
floor: "Piano",
|
|
14
|
+
excludeAuctions: "EscludiAste",
|
|
15
|
+
shortRentOnly: "SoloAffittiBrevi",
|
|
16
|
+
excludeBareOwnership: "EscludiNudaProprieta",
|
|
17
|
+
onlyPublicUser: "DaPrivato",
|
|
18
|
+
balcony: "Balcone",
|
|
19
|
+
terrace: "Terrazzo",
|
|
20
|
+
balconyTerrace: "BalconeTerrazzo",
|
|
21
|
+
boxCarSpot: "BoxPostoAuto",
|
|
22
|
+
carSpot: "PostoAuto",
|
|
23
|
+
box: "Box",
|
|
24
|
+
lift: "Ascensore",
|
|
25
|
+
privateGarden: "GiardinoPrivato",
|
|
26
|
+
publicGarden: "GiardinoPubblico",
|
|
27
|
+
cellar: "Cantina",
|
|
28
|
+
airConditioning: "AriaCondizionata",
|
|
29
|
+
furnished: "Arredato",
|
|
30
|
+
publicTransport: "Trasporti",
|
|
31
|
+
school: "Istruzione",
|
|
32
|
+
market: "Supermercati",
|
|
33
|
+
hospital: "Ospedali",
|
|
34
|
+
pharmacy: "Farmacie",
|
|
35
|
+
charging: "Ricarica",
|
|
36
|
+
post: "UfficioPostale",
|
|
37
|
+
bank: "Banche",
|
|
38
|
+
swimmingPoolPrivate: "PiscinaPrivata",
|
|
39
|
+
swimmingPoolPublic: "PiscinaCondominiale",
|
|
40
|
+
luxury: "Lusso",
|
|
41
|
+
discounted: "Sconto",
|
|
42
|
+
/* Don't consider this prop in the filters counter */
|
|
43
|
+
filterOrderId: "Ordinamento"
|
|
44
|
+
}, a = {
|
|
45
|
+
sale: "Vendita",
|
|
46
|
+
rent: "Affitto",
|
|
47
|
+
auctionType: "Asta",
|
|
48
|
+
bareOwnershipType: "NudaProprieta",
|
|
49
|
+
typologyIdList: "Tipologia",
|
|
50
|
+
filterOrderId: "Ordinamento"
|
|
51
|
+
};
|
|
52
|
+
function e() {
|
|
53
|
+
return {
|
|
54
|
+
sale: !0,
|
|
55
|
+
rent: !1,
|
|
56
|
+
contractType: window._contractDefault,
|
|
57
|
+
excludeAuctions: !1,
|
|
58
|
+
shortRentOnly: !1,
|
|
59
|
+
excludeBareOwnership: !1,
|
|
60
|
+
macroTypologyId: window._macroTypologyDefault,
|
|
61
|
+
listingTypologyId: 0,
|
|
62
|
+
listingTypologyURL: window._listingTypologyURLDefault,
|
|
63
|
+
listingTypologyIdList: [0],
|
|
64
|
+
typologyIdList: window._typologyIdListDefault,
|
|
65
|
+
onlyVisible: !0,
|
|
66
|
+
subscriptionTypes: window._subscriptionTypesDefault
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
function t() {
|
|
70
|
+
return {
|
|
71
|
+
active: !0,
|
|
72
|
+
hourly: !1,
|
|
73
|
+
latitude: 0,
|
|
74
|
+
longitude: 0,
|
|
75
|
+
saveSearchParameterId: null,
|
|
76
|
+
searchBean: e(),
|
|
77
|
+
title: ""
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
export {
|
|
81
|
+
t as $,
|
|
82
|
+
r as k,
|
|
83
|
+
i as r,
|
|
84
|
+
a as z
|
|
85
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var i=(o=>(o[o.SELLING=0]="SELLING",o[o.SALE=1]="SALE",o[o.RENT=2]="RENT",o[o.AUCTION=3]="AUCTION",o))(i||{});const r={priceFrom:"PrezzoMinimo",priceTo:"PrezzoMassimo",sqMfrom:"SuperficieMinima",sqMto:"SuperficieMassima",roomsFrom:"NumeroMinimoLocali",roomsTo:"NumeroMassimoLocali",bathroomsFrom:"NumeroMinimoBagni",bathroomsTo:"NumeroMassimoBagni",conditionType:"StatoImmobile",energyClassFilter:"ClasseEnergetica",floor:"Piano",excludeAuctions:"EscludiAste",shortRentOnly:"SoloAffittiBrevi",excludeBareOwnership:"EscludiNudaProprieta",onlyPublicUser:"DaPrivato",balcony:"Balcone",terrace:"Terrazzo",balconyTerrace:"BalconeTerrazzo",boxCarSpot:"BoxPostoAuto",carSpot:"PostoAuto",box:"Box",lift:"Ascensore",privateGarden:"GiardinoPrivato",publicGarden:"GiardinoPubblico",cellar:"Cantina",airConditioning:"AriaCondizionata",furnished:"Arredato",publicTransport:"Trasporti",school:"Istruzione",market:"Supermercati",hospital:"Ospedali",pharmacy:"Farmacie",charging:"Ricarica",post:"UfficioPostale",bank:"Banche",swimmingPoolPrivate:"PiscinaPrivata",swimmingPoolPublic:"PiscinaCondominiale",luxury:"Lusso",discounted:"Sconto",filterOrderId:"Ordinamento"},e={sale:"Vendita",rent:"Affitto",auctionType:"Asta",bareOwnershipType:"NudaProprieta",typologyIdList:"Tipologia",filterOrderId:"Ordinamento"};function a(){return{sale:!0,rent:!1,contractType:window._contractDefault,excludeAuctions:!1,shortRentOnly:!1,excludeBareOwnership:!1,macroTypologyId:window._macroTypologyDefault,listingTypologyId:0,listingTypologyURL:window._listingTypologyURLDefault,listingTypologyIdList:[0],typologyIdList:window._typologyIdListDefault,onlyVisible:!0,subscriptionTypes:window._subscriptionTypesDefault}}function t(){return{active:!0,hourly:!1,latitude:0,longitude:0,saveSearchParameterId:null,searchBean:a(),title:""}}exports.$=t;exports.k=r;exports.r=i;exports.z=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("axios"),s=require("./servicesUtils.cjs"),c=require("./URLBuilderUtils.cjs"),d="/rest/wikicasaPro",u=async(o,a,r=void 0,i=void 0)=>{if(!a)throw new Error("The token can't be null");try{let e={token:a};r&&(e={...e,conditionTypeId:r}),i!=null&&(e={...e,floor:i});const l=c.appendQueryString(new URL(`${s.baseURL}${d}/evaluateRealEstateWidget`),e),t=await n.post(l.toString(),o);return t.data.valid=!!t.data.valid,t.data}catch(e){throw s.handleAxiosError(e),e}};exports.evaluateRealEstateWidget=u;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import n from "axios";
|
|
2
|
+
import { baseURL as l, handleAxiosError as d } from "./servicesUtils.js";
|
|
3
|
+
import { appendQueryString as c } from "./URLBuilderUtils.js";
|
|
4
|
+
const m = "/rest/wikicasaPro", w = async (i, r, e = void 0, o = void 0) => {
|
|
5
|
+
if (!r)
|
|
6
|
+
throw new Error("The token can't be null");
|
|
7
|
+
try {
|
|
8
|
+
let t = { token: r };
|
|
9
|
+
e && (t = { ...t, conditionTypeId: e }), o != null && (t = { ...t, floor: o });
|
|
10
|
+
const s = c(
|
|
11
|
+
new URL(`${l}${m}/evaluateRealEstateWidget`),
|
|
12
|
+
t
|
|
13
|
+
), a = await n.post(s.toString(), i);
|
|
14
|
+
return a.data.valid = !!a.data.valid, a.data;
|
|
15
|
+
} catch (t) {
|
|
16
|
+
throw d(t), t;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
w as evaluateRealEstateWidget
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
package/dist/vite-env.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("axios"),i=require("./servicesUtils.cjs"),c="/rest/wikicasaPro",n=async(r,o,a,t=0)=>{try{return(await s.post(`${c}/userValuationWithPhotoFeedback/?email=${r}&token=${o}&feedback=${a}${t>0?"&userFeedbackValue="+t:""}`)).data}catch(e){throw i.handleAxiosError(e),e}};exports.userValuationWithPhotoFeedback=n;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import s from "axios";
|
|
2
|
+
import { handleAxiosError as i } from "./servicesUtils.js";
|
|
3
|
+
const c = "/rest/wikicasaPro", l = async (r, a, e, o = 0) => {
|
|
4
|
+
try {
|
|
5
|
+
return (await s.post(
|
|
6
|
+
`${c}/userValuationWithPhotoFeedback/?email=${r}&token=${a}&feedback=${e}${o > 0 ? "&userFeedbackValue=" + o : ""}`
|
|
7
|
+
)).data;
|
|
8
|
+
} catch (t) {
|
|
9
|
+
throw i(t), t;
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
l as userValuationWithPhotoFeedback
|
|
14
|
+
};
|
package/package.json
CHANGED
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wikicasa-dev/utilities",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Wikicasa frontend utilities",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"main": "
|
|
7
|
-
"module": "
|
|
6
|
+
"main": "dist/index.cjs",
|
|
7
|
+
"module": "dist/index.js",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
-
"
|
|
11
|
-
"import": "./dist/
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"require": "./dist/index.cjs"
|
|
12
13
|
}
|
|
13
14
|
},
|
|
14
|
-
"
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
15
18
|
"repository": {
|
|
16
19
|
"type": "git",
|
|
17
20
|
"url": "git+https://matteocarniglia@bitbucket.org/wikicasa/wikicasa-fe.git"
|
|
@@ -25,18 +28,20 @@
|
|
|
25
28
|
"devDependencies": {
|
|
26
29
|
"@types/google-polyline": "^1.0.0",
|
|
27
30
|
"@types/jquery": "^3.5.16",
|
|
28
|
-
"@types/js-cookie": "^3.0.
|
|
31
|
+
"@types/js-cookie": "^3.0.6",
|
|
32
|
+
"@types/leaflet": "^1.9.3",
|
|
29
33
|
"@types/leaflet-draw": "^1.0.7",
|
|
30
34
|
"@types/leaflet-freedraw": "^2.13.3",
|
|
31
35
|
"@types/leaflet.markercluster": "^1.5.1",
|
|
32
36
|
"@types/node": "^20.5.0",
|
|
33
37
|
"@types/uuid": "^9.0.2",
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"vite
|
|
38
|
+
"glob": "^10.3.10",
|
|
39
|
+
"typescript": "^5.4.3",
|
|
40
|
+
"vite": "^5.2.3",
|
|
41
|
+
"vite-plugin-dts": "^3.7.3",
|
|
42
|
+
"@wikicasa-dev/types": "^0.9.2"
|
|
37
43
|
},
|
|
38
44
|
"dependencies": {
|
|
39
|
-
"@types/leaflet": "^1.9.3",
|
|
40
45
|
"axios": "^1.4.0",
|
|
41
46
|
"google-polyline": "^1.0.3",
|
|
42
47
|
"js-cookie": "^3.0.5",
|
|
@@ -44,8 +49,7 @@
|
|
|
44
49
|
"leaflet-control-geocoder": "^2.4.0",
|
|
45
50
|
"leaflet-draw": "^1.0.4",
|
|
46
51
|
"leaflet-freedraw": "^2.13.3",
|
|
47
|
-
"uuid": "^9.0.0"
|
|
48
|
-
"@wikicasa-dev/types": "^0.9.0"
|
|
52
|
+
"uuid": "^9.0.0"
|
|
49
53
|
},
|
|
50
54
|
"scripts": {
|
|
51
55
|
"dev": "vite",
|