@wikicasa-dev/utilities 0.2.0 → 1.0.0
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/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/FunctionUtils.cjs +1 -0
- package/dist/FunctionUtils.js +21 -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/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 +80 -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/index.cjs +1 -0
- package/dist/index.d.ts +17 -34
- package/dist/index.js +62 -0
- package/dist/main.cjs +1 -0
- package/dist/vite-env.cjs +1 -0
- package/dist/vite-env.js +1 -0
- package/package.json +17 -13
- package/dist/custom/constants.d.ts +0 -2
- package/dist/custom/icons.d.ts +0 -5
- package/dist/custom/leaflet_map.d.ts +0 -99
- package/dist/services/agencyAPI.d.ts +0 -19
- package/dist/services/geographyAPI.d.ts +0 -9
- package/dist/services/insightsAPI.d.ts +0 -2
- package/dist/services/mailAPI.d.ts +0 -24
- package/dist/services/placesAPI.d.ts +0 -5
- package/dist/services/portfolioCustomerAPI.d.ts +0 -1
- package/dist/services/publicUserAPI.d.ts +0 -20
- package/dist/services/realEstateAPI.d.ts +0 -14
- package/dist/services/requestAPI.d.ts +0 -16
- package/dist/services/servicesUtils.d.ts +0 -8
- package/dist/services/statisticsAPI.d.ts +0 -9
- package/dist/services/valuationAPI.d.ts +0 -11
- package/dist/services/wikicasaPro.d.ts +0 -2
- package/dist/utilities.cjs +0 -5
- package/dist/utilities.iife.js +0 -5
- package/dist/utilities.mjs +0 -2437
- package/dist/utils/FavoriteUtils.d.ts +0 -2
- package/dist/utils/GAutocompleteUtils.d.ts +0 -6
- package/dist/utils/MapUtils.d.ts +0 -23
- package/dist/utils/RequestUtils.d.ts +0 -2
- package/dist/utils/URLPagesFactory.d.ts +0 -9
- 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 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=r=>!r?.length;exports.isArrNullOrEmpty=t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function b(r,t){r=r.replace("#","");const n=parseInt(r.substring(0,2),16),s=parseInt(r.substring(2,4),16),a=parseInt(r.substring(4,6),16);return`rgba(${n}, ${s}, ${a}, ${t})`}exports.rgba=b;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("js-cookie");function d(o,e,r=30,i=!0){const t=new Date;t.setTime(t.getTime()+24*60*60*1e3*r);const n=typeof e!="string"?JSON.stringify(e):e,u=i?btoa(encodeURIComponent(n)):n;document.cookie=o+"="+u+";path=/;expires="+t.toUTCString()}function l(o){try{const e=document.cookie.match("(^|;) ?"+o+"=([^;]*)(;|$)");return e?e[2]:null}catch(e){return console.error(e),null}}function k(o){try{const e=document.cookie.match("(^|;) ?"+o+"=([^;]*)(;|$)");return e?JSON.parse(decodeURIComponent(atob(e[2]))):null}catch(e){return console.error(e),c(o),null}}function c(o){s.remove(o)}exports.decodeCookie=k;exports.encodeCookie=d;exports.getCookie=l;exports.removeCookie=c;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import u from "js-cookie";
|
|
2
|
+
function l(e, o, c = 30, r = !0) {
|
|
3
|
+
const t = /* @__PURE__ */ new Date();
|
|
4
|
+
t.setTime(t.getTime() + 24 * 60 * 60 * 1e3 * c);
|
|
5
|
+
const n = typeof o != "string" ? JSON.stringify(o) : o, i = r ? btoa(encodeURIComponent(n)) : n;
|
|
6
|
+
document.cookie = e + "=" + i + ";path=/;expires=" + t.toUTCString();
|
|
7
|
+
}
|
|
8
|
+
function d(e) {
|
|
9
|
+
try {
|
|
10
|
+
const o = document.cookie.match("(^|;) ?" + e + "=([^;]*)(;|$)");
|
|
11
|
+
return o ? o[2] : null;
|
|
12
|
+
} catch (o) {
|
|
13
|
+
return console.error(o), null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function a(e) {
|
|
17
|
+
try {
|
|
18
|
+
const o = document.cookie.match("(^|;) ?" + e + "=([^;]*)(;|$)");
|
|
19
|
+
return o ? JSON.parse(decodeURIComponent(atob(o[2]))) : null;
|
|
20
|
+
} catch (o) {
|
|
21
|
+
return console.error(o), s(e), null;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function s(e) {
|
|
25
|
+
u.remove(e);
|
|
26
|
+
}
|
|
27
|
+
export {
|
|
28
|
+
a as decodeCookie,
|
|
29
|
+
l as encodeCookie,
|
|
30
|
+
d as getCookie,
|
|
31
|
+
s as removeCookie
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./ObjectUtils.cjs"),n=(t,e,o="it-IT")=>{if(t===void 0)return"0";const r={style:"currency",currency:"EUR",maximumFractionDigits:0};return c.shallowCopyObjectTo(e,r),new Intl.NumberFormat(o,r).format(t)};exports.formatCurrency=n;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { shallowCopyObjectTo as c } from "./ObjectUtils.js";
|
|
2
|
+
const i = (r, o, n = "it-IT") => {
|
|
3
|
+
if (r === void 0)
|
|
4
|
+
return "0";
|
|
5
|
+
const t = {
|
|
6
|
+
style: "currency",
|
|
7
|
+
currency: "EUR",
|
|
8
|
+
maximumFractionDigits: 0
|
|
9
|
+
};
|
|
10
|
+
return c(o, t), new Intl.NumberFormat(n, t).format(r);
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
i as formatCurrency
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=e=>{const t=document.querySelector(e);if(!t)throw new Error(`No element found with the id: ${e}`);return t},o=e=>{typeof e=="string"?n(e).textContent="":e.textContent=""},i=(e,t="block")=>{e&&(e.style.display=t)},l=e=>{e&&(e.style.display="none")};exports.emptyElem=o;exports.getSingleElement=n;exports.hideElem=l;exports.showElem=i;
|
package/dist/DOMUtils.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const n = (t) => {
|
|
2
|
+
const e = document.querySelector(t);
|
|
3
|
+
if (!e)
|
|
4
|
+
throw new Error(`No element found with the id: ${t}`);
|
|
5
|
+
return e;
|
|
6
|
+
}, o = (t) => {
|
|
7
|
+
typeof t == "string" ? n(t).textContent = "" : t.textContent = "";
|
|
8
|
+
}, i = (t, e = "block") => {
|
|
9
|
+
t && (t.style.display = e);
|
|
10
|
+
}, r = (t) => {
|
|
11
|
+
t && (t.style.display = "none");
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
o as emptyElem,
|
|
15
|
+
n as getSingleElement,
|
|
16
|
+
r as hideElem,
|
|
17
|
+
i as showElem
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function n(e,l=!1){const t=e.getDate(),o=e.getMonth()+1,c=e.getFullYear();return l?`${("0"+t).slice(-2)}-${("0"+o).slice(-2)}-${c}`:`${c}-${("0"+o).slice(-2)}-${("0"+t).slice(-2)}`}exports.formatDate=n;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,e=()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),t=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent);exports.isMobile=e;exports.isSafari=t;exports.isiOSDevice=i;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
const i = () => /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, e = () => /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
|
|
2
|
+
navigator.userAgent
|
|
3
|
+
), r = () => /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
4
|
+
export {
|
|
5
|
+
e as isMobile,
|
|
6
|
+
r as isSafari,
|
|
7
|
+
i as isiOSDevice
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=e=>e.includes("@gmail");async function i(e){const r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r);return Array.from(new Uint8Array(n)).map(a=>a.toString(16).padStart(2,"0")).join("")}const h=e=>{const r=e.split("@");if(r.length<2)throw new Error("The email has nothing before the '@' symbol");const n=r[0];let s="";for(const t of n)if(t!=="."){if(t==="+")break;s+=t}return`${s}@${r[1]}`},c=e=>{if(!e||!e.trim())throw new Error("The email in null or empty");let r=e;return o(r)&&(r=h(e)),i(r)};exports.hashEmail=c;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
const a = (r) => r.includes("@gmail");
|
|
2
|
+
async function h(r) {
|
|
3
|
+
const e = new TextEncoder().encode(r), t = await crypto.subtle.digest("SHA-256", e);
|
|
4
|
+
return Array.from(new Uint8Array(t)).map((o) => o.toString(16).padStart(2, "0")).join("");
|
|
5
|
+
}
|
|
6
|
+
const i = (r) => {
|
|
7
|
+
const e = r.split("@");
|
|
8
|
+
if (e.length < 2)
|
|
9
|
+
throw new Error("The email has nothing before the '@' symbol");
|
|
10
|
+
const t = e[0];
|
|
11
|
+
let s = "";
|
|
12
|
+
for (const n of t)
|
|
13
|
+
if (n !== ".") {
|
|
14
|
+
if (n === "+")
|
|
15
|
+
break;
|
|
16
|
+
s += n;
|
|
17
|
+
}
|
|
18
|
+
return `${s}@${e[1]}`;
|
|
19
|
+
}, c = (r) => {
|
|
20
|
+
if (!r || !r.trim())
|
|
21
|
+
throw new Error("The email in null or empty");
|
|
22
|
+
let e = r;
|
|
23
|
+
return a(e) && (e = i(r)), h(e);
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
c as hashEmail
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function s(e){if(!e||typeof e.then!="function")throw new Error("The provide function is not a promise");return e}function d(e,i){return(...n)=>new Promise((o,t)=>{e.id&&clearTimeout(e.id),e.id=setTimeout(()=>{try{const r=i(...n);o(r)}catch(r){t(r)}},e.delay)})}exports.debounce=d;exports.isPromise=s;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
function s(r) {
|
|
2
|
+
if (!r || typeof r.then != "function")
|
|
3
|
+
throw new Error("The provide function is not a promise");
|
|
4
|
+
return r;
|
|
5
|
+
}
|
|
6
|
+
function d(r, n) {
|
|
7
|
+
return (...i) => new Promise((o, t) => {
|
|
8
|
+
r.id && clearTimeout(r.id), r.id = setTimeout(() => {
|
|
9
|
+
try {
|
|
10
|
+
const e = n(...i);
|
|
11
|
+
o(e);
|
|
12
|
+
} catch (e) {
|
|
13
|
+
t(e);
|
|
14
|
+
}
|
|
15
|
+
}, r.delay);
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
d as debounce,
|
|
20
|
+
s as isPromise
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=(t,e)=>new Promise((o,n)=>{setTimeout(()=>{try{t&&t(),o()}catch{n()}},e)});function i(t,e){if(typeof window.CustomEvent=="function")return new CustomEvent(t,e);e=e||{bubbles:!1,cancelable:!1,detail:void 0};const o=document.createEvent("CustomEvent");return o.initCustomEvent(t,!!e.bubbles,!!e.cancelable,e.detail),o}exports.awaitableSetTimeout=u;exports.createCustomEvent=i;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const c = (t, e) => new Promise((n, o) => {
|
|
2
|
+
setTimeout(() => {
|
|
3
|
+
try {
|
|
4
|
+
t && t(), n();
|
|
5
|
+
} catch {
|
|
6
|
+
o();
|
|
7
|
+
}
|
|
8
|
+
}, e);
|
|
9
|
+
});
|
|
10
|
+
function i(t, e) {
|
|
11
|
+
if (typeof window.CustomEvent == "function")
|
|
12
|
+
return new CustomEvent(t, e);
|
|
13
|
+
e = e || { bubbles: !1, cancelable: !1, detail: void 0 };
|
|
14
|
+
const n = document.createEvent("CustomEvent");
|
|
15
|
+
return n.initCustomEvent(
|
|
16
|
+
t,
|
|
17
|
+
!!e.bubbles,
|
|
18
|
+
!!e.cancelable,
|
|
19
|
+
e.detail
|
|
20
|
+
), n;
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
c as awaitableSetTimeout,
|
|
24
|
+
i as createCustomEvent
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";document&&document.addEventListener("DOMContentLoaded",()=>{const t=document.getElementsByClassName("lazy");if(t.length!==0)for(const n of t){const e=n;e.onload=()=>{const{currentSrc:o}=e;e.style.cssText="display:none";const s=e.parentNode;s.style.backgroundImage='url("'+o+'")'}}});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
document && document.addEventListener("DOMContentLoaded", () => {
|
|
2
|
+
const n = document.getElementsByClassName("lazy");
|
|
3
|
+
if (n.length !== 0)
|
|
4
|
+
for (const t of n) {
|
|
5
|
+
const e = t;
|
|
6
|
+
e.onload = () => {
|
|
7
|
+
const { currentSrc: o } = e;
|
|
8
|
+
e.style.cssText = "display:none";
|
|
9
|
+
const a = e.parentNode;
|
|
10
|
+
a.style.backgroundImage = 'url("' + o + '")';
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=(r,t)=>{t||(t=navigator.language);const n=Intl.NumberFormat(t).format(1111).replace(/\p{Number}/gu,""),o=Intl.NumberFormat(t).format(1.1).replace(/\p{Number}/gu,""),e=parseFloat(`${r}`.replace(new RegExp("\\"+n,"g"),"").replace(new RegExp("\\"+o),"."));return isNaN(e)?"":e},i=(r,t)=>{if(r==null)return;if(r=parseFloat(`${r}`),isNaN(r))return"";const n={style:"currency",currency:"EUR"};let e={...{maximumFractionDigits:0}};return t?.currency&&(e={...e,...n}),new Intl.NumberFormat(navigator.language,{...e}).format(r)};function m(r,t=!1){return r==null?"":a(t?Math.round(r):Math.floor(r),0)}function a(r,t){return!r&&r!==0?"":r.toLocaleString("it-IT",{minimumFractionDigits:t,maximumFractionDigits:t})}function c(r,t=2){return a(r,t)}const f={formatFn:i,unFormatFn:u};exports.formatFloat=c;exports.formatInteger=m;exports.formatLocaleNumber=i;exports.formatNumber=a;exports.formatterNumberObj=f;exports.parseLocaleNumber=u;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
const i = (r, t) => {
|
|
2
|
+
t || (t = navigator.language);
|
|
3
|
+
const e = Intl.NumberFormat(t).format(1111).replace(/\p{Number}/gu, ""), a = Intl.NumberFormat(t).format(1.1).replace(/\p{Number}/gu, ""), n = parseFloat(
|
|
4
|
+
`${r}`.replace(new RegExp("\\" + e, "g"), "").replace(new RegExp("\\" + a), ".")
|
|
5
|
+
);
|
|
6
|
+
return isNaN(n) ? "" : n;
|
|
7
|
+
}, u = (r, t) => {
|
|
8
|
+
if (r == null)
|
|
9
|
+
return;
|
|
10
|
+
if (r = parseFloat(`${r}`), isNaN(r))
|
|
11
|
+
return "";
|
|
12
|
+
const e = {
|
|
13
|
+
style: "currency",
|
|
14
|
+
currency: "EUR"
|
|
15
|
+
};
|
|
16
|
+
let n = { ...{
|
|
17
|
+
maximumFractionDigits: 0
|
|
18
|
+
} };
|
|
19
|
+
return t?.currency && (n = { ...n, ...e }), new Intl.NumberFormat(navigator.language, {
|
|
20
|
+
...n
|
|
21
|
+
}).format(r);
|
|
22
|
+
};
|
|
23
|
+
function c(r, t = !1) {
|
|
24
|
+
return r == null ? "" : o(t ? Math.round(r) : Math.floor(r), 0);
|
|
25
|
+
}
|
|
26
|
+
function o(r, t) {
|
|
27
|
+
return !r && r !== 0 ? "" : r.toLocaleString(
|
|
28
|
+
"it-IT",
|
|
29
|
+
// usare una stringa tipo 'en-US' per sovrascrivere la lingua del browser
|
|
30
|
+
{
|
|
31
|
+
minimumFractionDigits: t,
|
|
32
|
+
maximumFractionDigits: t
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
function f(r, t = 2) {
|
|
37
|
+
return o(r, t);
|
|
38
|
+
}
|
|
39
|
+
const m = {
|
|
40
|
+
formatFn: u,
|
|
41
|
+
unFormatFn: i
|
|
42
|
+
};
|
|
43
|
+
export {
|
|
44
|
+
f as formatFloat,
|
|
45
|
+
c as formatInteger,
|
|
46
|
+
u as formatLocaleNumber,
|
|
47
|
+
o as formatNumber,
|
|
48
|
+
m as formatterNumberObj,
|
|
49
|
+
i as parseLocaleNumber
|
|
50
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function r(e,n){if(e)for(const t in e)n[t]=e[t]}function i(e){return!e||!Object.keys(e).length}function c(e){if(!e)return null;for(const n in e){const t=e[n];if(t&&(Array.isArray(t)||Object.keys(t).length>0))return JSON.parse(JSON.stringify(e))}return{...e}}exports.deepCopy=c;exports.isEmptyObject=i;exports.shallowCopyObjectTo=r;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
function r(n, e) {
|
|
2
|
+
if (n)
|
|
3
|
+
for (const t in n)
|
|
4
|
+
e[t] = n[t];
|
|
5
|
+
}
|
|
6
|
+
function i(n) {
|
|
7
|
+
return !n || !Object.keys(n).length;
|
|
8
|
+
}
|
|
9
|
+
function c(n) {
|
|
10
|
+
if (!n)
|
|
11
|
+
return null;
|
|
12
|
+
for (const e in n) {
|
|
13
|
+
const t = n[e];
|
|
14
|
+
if (t && (Array.isArray(t) || Object.keys(t).length > 0))
|
|
15
|
+
return JSON.parse(JSON.stringify(n));
|
|
16
|
+
}
|
|
17
|
+
return { ...n };
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
c as deepCopy,
|
|
21
|
+
i as isEmptyObject,
|
|
22
|
+
r as shallowCopyObjectTo
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function u(c,s,l){const i=[].slice.call(document.querySelectorAll(c)),b=new IntersectionObserver((e,n)=>{for(let t=0;t<e.length;t++){const o=e[t];if(o.isIntersecting){const r=o.target;s(r,n),n.unobserve(r)}}},l);i.forEach(e=>{b.observe(e)})}exports.observeOnce=u;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
function f(r, s, l) {
|
|
2
|
+
const i = [].slice.call(document.querySelectorAll(r)), b = new IntersectionObserver(
|
|
3
|
+
(e, n) => {
|
|
4
|
+
for (let t = 0; t < e.length; t++) {
|
|
5
|
+
const o = e[t];
|
|
6
|
+
if (o.isIntersecting) {
|
|
7
|
+
const c = o.target;
|
|
8
|
+
s(c, n), n.unobserve(c);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
l
|
|
13
|
+
);
|
|
14
|
+
i.forEach((e) => {
|
|
15
|
+
b.observe(e);
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
f as observeOnce
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});let n=!1;const e=i=>{document&&document.addEventListener("notification-permission-changed",i)},t=()=>{!navigator.permissions||!navigator.permissions.query||(!n&&navigator.permissions.query({name:"notifications"}).then(function(i){i.onchange=function(){document.dispatchEvent(new CustomEvent("notification-permission-changed",{detail:{permissionState:this.state}}))}}),n=!0)};exports.addPermissionStateListener=t;exports.onNotificationsPermissionChange=e;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
let i = !1;
|
|
2
|
+
const t = (n) => {
|
|
3
|
+
document && document.addEventListener("notification-permission-changed", n);
|
|
4
|
+
}, e = () => {
|
|
5
|
+
!navigator.permissions || !navigator.permissions.query || (!i && navigator.permissions.query({ name: "notifications" }).then(function(n) {
|
|
6
|
+
n.onchange = function() {
|
|
7
|
+
document.dispatchEvent(
|
|
8
|
+
new CustomEvent("notification-permission-changed", {
|
|
9
|
+
detail: { permissionState: this.state }
|
|
10
|
+
})
|
|
11
|
+
);
|
|
12
|
+
};
|
|
13
|
+
}), i = !0);
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
e as addPermissionStateListener,
|
|
17
|
+
t as onNotificationsPermissionChange
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var c=(o=>(o[o.SELLING=0]="SELLING",o[o.SALE=1]="SALE",o[o.RENT=2]="RENT",o[o.AUCTION=3]="AUCTION",o))(c||{});const u={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"},s={sale:"Vendita",rent:"Affitto",auctionType:"Asta",bareOwnershipType:"NudaProprieta",typologyIdList:"Tipologia",filterOrderId:"Ordinamento"};function m(o,r,i,n,l,t,a){let e="/";return i&&(e+=(i==c.AUCTION?window._auctionLabel:i==c.RENT?window._rentLabel:window._saleLabel)+"-"),e+=`${r}/`,t&&(e+=`${t}/`),o&&(e+=`${o.replace(/^-+|-+$/g,"")}/`),n&&(e+=`${n.replace(/^_+|_+$/g,"")}/`),!n&&a&&(e+=`${a.replace(/^_+|_+$/g,"")}/`),l&&(e+=`${l.replace(/^_+|_+$/g,"")}/`),e}function d(o){const r=Object.keys(u).map(i=>o[i]?encodeURIComponent(u[i])+"="+encodeURIComponent(o[i]):null).filter(i=>i!==null);return r.length?`?${r.join("&")}`:""}function p(o){const r=Object.keys(s).map(i=>{if(o[i])if(Array.isArray(o[i])){const n=o[i],l=s[i];let t="";for(let a=0;a<n.length;a++)t+=encodeURIComponent(l)+"="+encodeURIComponent(n[a]),t+=a<n.length-1?"&":"";return t}else return encodeURIComponent(s[i])+"="+encodeURIComponent(o[i]);else return null}).filter(i=>i!==null);return r.length?`?${r.join("&")}`:""}exports.buildParams=d;exports.buildParamsForAgency=p;exports.buildURL=m;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
var c = /* @__PURE__ */ ((o) => (o[o.SELLING = 0] = "SELLING", o[o.SALE = 1] = "SALE", o[o.RENT = 2] = "RENT", o[o.AUCTION = 3] = "AUCTION", o))(c || {});
|
|
2
|
+
const u = {
|
|
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
|
+
}, s = {
|
|
45
|
+
sale: "Vendita",
|
|
46
|
+
rent: "Affitto",
|
|
47
|
+
auctionType: "Asta",
|
|
48
|
+
bareOwnershipType: "NudaProprieta",
|
|
49
|
+
typologyIdList: "Tipologia",
|
|
50
|
+
filterOrderId: "Ordinamento"
|
|
51
|
+
};
|
|
52
|
+
function m(o, e, i, n, l, t, a) {
|
|
53
|
+
let r = "/";
|
|
54
|
+
return i && (r += (i == c.AUCTION ? window._auctionLabel : i == c.RENT ? window._rentLabel : window._saleLabel) + "-"), r += `${e}/`, t && (r += `${t}/`), o && (r += `${o.replace(/^-+|-+$/g, "")}/`), n && (r += `${n.replace(/^_+|_+$/g, "")}/`), !n && a && (r += `${a.replace(/^_+|_+$/g, "")}/`), l && (r += `${l.replace(/^_+|_+$/g, "")}/`), r;
|
|
55
|
+
}
|
|
56
|
+
function d(o) {
|
|
57
|
+
const e = Object.keys(u).map((i) => o[i] ? encodeURIComponent(u[i]) + "=" + encodeURIComponent(o[i]) : null).filter((i) => i !== null);
|
|
58
|
+
return e.length ? `?${e.join("&")}` : "";
|
|
59
|
+
}
|
|
60
|
+
function p(o) {
|
|
61
|
+
const e = Object.keys(s).map((i) => {
|
|
62
|
+
if (o[i])
|
|
63
|
+
if (Array.isArray(o[i])) {
|
|
64
|
+
const n = o[i], l = s[i];
|
|
65
|
+
let t = "";
|
|
66
|
+
for (let a = 0; a < n.length; a++)
|
|
67
|
+
t += encodeURIComponent(l) + "=" + encodeURIComponent(n[a]), t += a < n.length - 1 ? "&" : "";
|
|
68
|
+
return t;
|
|
69
|
+
} else
|
|
70
|
+
return encodeURIComponent(s[i]) + "=" + encodeURIComponent(o[i]);
|
|
71
|
+
else
|
|
72
|
+
return null;
|
|
73
|
+
}).filter((i) => i !== null);
|
|
74
|
+
return e.length ? `?${e.join("&")}` : "";
|
|
75
|
+
}
|
|
76
|
+
export {
|
|
77
|
+
d as buildParams,
|
|
78
|
+
p as buildParamsForAgency,
|
|
79
|
+
m as buildURL
|
|
80
|
+
};
|
|
@@ -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;
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./ArrayUtils.cjs"),u=require("./ColorUtils.cjs"),t=require("./CookieUtils.cjs"),d=require("./CurrencyUtils.cjs"),b=require("./DateUtils.cjs"),o=require("./DeviceDetectionUtils.cjs"),i=require("./DOMUtils.cjs"),p=require("./EmailUtils.cjs"),l=require("./FunctionUtils.cjs"),n=require("./GenericUtils.cjs"),r=require("./NumberUtils.cjs"),s=require("./ObjectUtils.cjs"),C=require("./ObserverUtils.cjs"),c=require("./PermissionUtils.cjs"),a=require("./RESB_UrlBuilder.cjs"),e=require("./StringUtils.cjs"),y=require("./URLBuilderUtils.cjs");exports.isArrNullOrEmpty=m.isArrNullOrEmpty;exports.rgba=u.rgba;exports.decodeCookie=t.decodeCookie;exports.encodeCookie=t.encodeCookie;exports.getCookie=t.getCookie;exports.removeCookie=t.removeCookie;exports.formatCurrency=d.formatCurrency;exports.formatDate=b.formatDate;exports.isMobile=o.isMobile;exports.isSafari=o.isSafari;exports.isiOSDevice=o.isiOSDevice;exports.emptyElem=i.emptyElem;exports.getSingleElement=i.getSingleElement;exports.hideElem=i.hideElem;exports.showElem=i.showElem;exports.hashEmail=p.hashEmail;exports.debounce=l.debounce;exports.isPromise=l.isPromise;exports.awaitableSetTimeout=n.awaitableSetTimeout;exports.createCustomEvent=n.createCustomEvent;exports.formatFloat=r.formatFloat;exports.formatInteger=r.formatInteger;exports.formatLocaleNumber=r.formatLocaleNumber;exports.formatNumber=r.formatNumber;exports.formatterNumberObj=r.formatterNumberObj;exports.parseLocaleNumber=r.parseLocaleNumber;exports.deepCopy=s.deepCopy;exports.isEmptyObject=s.isEmptyObject;exports.shallowCopyObjectTo=s.shallowCopyObjectTo;exports.observeOnce=C.observeOnce;exports.addPermissionStateListener=c.addPermissionStateListener;exports.onNotificationsPermissionChange=c.onNotificationsPermissionChange;exports.buildParams=a.buildParams;exports.buildParamsForAgency=a.buildParamsForAgency;exports.buildURL=a.buildURL;exports.capitalizeFirstLetter=e.capitalizeFirstLetter;exports.cleanASCII=e.cleanASCII;exports.decodeTextWithEntities=e.decodeTextWithEntities;exports.formatAddress=e.formatAddress;exports.replaceAll=e.replaceAll;exports.replaceAllTokens=e.replaceAllTokens;exports.stringToHyphened=e.stringToHyphened;exports.appendQueryString=y.appendQueryString;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,34 +1,17 @@
|
|
|
1
|
-
export
|
|
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 { formatDate } from './utils/DateUtils';
|
|
19
|
-
export { isiOSDevice, isMobile, isSafari } from './utils/DeviceDetectionUtils';
|
|
20
|
-
export { getSingleElement, emptyElem, showElem, hideElem, } from './utils/DOMUtils';
|
|
21
|
-
export { hashEmail } from './utils/EmailUtils';
|
|
22
|
-
export { debounce } from './utils/FunctionUtils';
|
|
23
|
-
export { showAddFavoritesIcon, showRemoveFavoritesIcons, } from './utils/FavoriteUtils';
|
|
24
|
-
export { googlePlaceConverter, getPlaceFromGAutocomplete, } from './utils/GAutocompleteUtils';
|
|
25
|
-
export { awaitableSetTimeout } from './utils/GenericUtils';
|
|
26
|
-
export { formatInteger, formatFloat, parseLocaleNumber, formatLocaleNumber, formatNumber, formatterNumberObj, } from './utils/NumberUtils';
|
|
27
|
-
export { isEmptyObject, shallowCopyObjectTo, deepCopy, } from './utils/ObjectUtils';
|
|
28
|
-
export { observeOnce } from './utils/ObserverUtils';
|
|
29
|
-
export { addPermissionStateListener, onNotificationsPermissionChange, } from './utils/PermissionUtils';
|
|
30
|
-
export { sendRequestGeneric } from './utils/RequestUtils';
|
|
31
|
-
export { buildURL, buildParams, buildParamsForAgency, } from './utils/RESB_UrlBuilder';
|
|
32
|
-
export { replaceAll, replaceAllTokens, capitalizeFirstLetter, formatAddress, decodeTextWithEntities, cleanASCII, stringToHyphened } from './utils/StringUtils';
|
|
33
|
-
export { appendQueryString } from './utils/URLBuilderUtils';
|
|
34
|
-
export { getURLPage } from './utils/URLPagesFactory';
|
|
1
|
+
export * from './utils/ArrayUtils';
|
|
2
|
+
export * from './utils/ColorUtils';
|
|
3
|
+
export * from './utils/CookieUtils';
|
|
4
|
+
export * from './utils/CurrencyUtils';
|
|
5
|
+
export * from './utils/DateUtils';
|
|
6
|
+
export * from './utils/DeviceDetectionUtils';
|
|
7
|
+
export * from './utils/DOMUtils';
|
|
8
|
+
export * from './utils/EmailUtils';
|
|
9
|
+
export * from './utils/FunctionUtils';
|
|
10
|
+
export * from './utils/GenericUtils';
|
|
11
|
+
export * from './utils/NumberUtils';
|
|
12
|
+
export * from './utils/ObjectUtils';
|
|
13
|
+
export * from './utils/ObserverUtils';
|
|
14
|
+
export * from './utils/PermissionUtils';
|
|
15
|
+
export * from './utils/RESB_UrlBuilder';
|
|
16
|
+
export * from './utils/StringUtils';
|
|
17
|
+
export * from './utils/URLBuilderUtils';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { isArrNullOrEmpty as r } from "./ArrayUtils.js";
|
|
2
|
+
import { rgba as m } from "./ColorUtils.js";
|
|
3
|
+
import { decodeCookie as a, encodeCookie as p, getCookie as f, removeCookie as s } from "./CookieUtils.js";
|
|
4
|
+
import { formatCurrency as n } from "./CurrencyUtils.js";
|
|
5
|
+
import { formatDate as x } from "./DateUtils.js";
|
|
6
|
+
import { isMobile as b, isSafari as u, isiOSDevice as C } from "./DeviceDetectionUtils.js";
|
|
7
|
+
import { emptyElem as y, getSingleElement as E, hideElem as h, showElem as S } from "./DOMUtils.js";
|
|
8
|
+
import { hashEmail as N } from "./EmailUtils.js";
|
|
9
|
+
import { debounce as k, isPromise as L } from "./FunctionUtils.js";
|
|
10
|
+
import { awaitableSetTimeout as T, createCustomEvent as v } from "./GenericUtils.js";
|
|
11
|
+
import { formatFloat as w, formatInteger as F, formatLocaleNumber as I, formatNumber as D, formatterNumberObj as z, parseLocaleNumber as H } from "./NumberUtils.js";
|
|
12
|
+
import { deepCopy as Q, isEmptyObject as R, shallowCopyObjectTo as U } from "./ObjectUtils.js";
|
|
13
|
+
import { observeOnce as q } from "./ObserverUtils.js";
|
|
14
|
+
import { addPermissionStateListener as G, onNotificationsPermissionChange as J } from "./PermissionUtils.js";
|
|
15
|
+
import { buildParams as V, buildParamsForAgency as X, buildURL as Y } from "./RESB_UrlBuilder.js";
|
|
16
|
+
import { capitalizeFirstLetter as _, cleanASCII as $, decodeTextWithEntities as ee, formatAddress as oe, replaceAll as re, replaceAllTokens as te, stringToHyphened as me } from "./StringUtils.js";
|
|
17
|
+
import { appendQueryString as ae } from "./URLBuilderUtils.js";
|
|
18
|
+
export {
|
|
19
|
+
G as addPermissionStateListener,
|
|
20
|
+
ae as appendQueryString,
|
|
21
|
+
T as awaitableSetTimeout,
|
|
22
|
+
V as buildParams,
|
|
23
|
+
X as buildParamsForAgency,
|
|
24
|
+
Y as buildURL,
|
|
25
|
+
_ as capitalizeFirstLetter,
|
|
26
|
+
$ as cleanASCII,
|
|
27
|
+
v as createCustomEvent,
|
|
28
|
+
k as debounce,
|
|
29
|
+
a as decodeCookie,
|
|
30
|
+
ee as decodeTextWithEntities,
|
|
31
|
+
Q as deepCopy,
|
|
32
|
+
y as emptyElem,
|
|
33
|
+
p as encodeCookie,
|
|
34
|
+
oe as formatAddress,
|
|
35
|
+
n as formatCurrency,
|
|
36
|
+
x as formatDate,
|
|
37
|
+
w as formatFloat,
|
|
38
|
+
F as formatInteger,
|
|
39
|
+
I as formatLocaleNumber,
|
|
40
|
+
D as formatNumber,
|
|
41
|
+
z as formatterNumberObj,
|
|
42
|
+
f as getCookie,
|
|
43
|
+
E as getSingleElement,
|
|
44
|
+
N as hashEmail,
|
|
45
|
+
h as hideElem,
|
|
46
|
+
r as isArrNullOrEmpty,
|
|
47
|
+
R as isEmptyObject,
|
|
48
|
+
b as isMobile,
|
|
49
|
+
L as isPromise,
|
|
50
|
+
u as isSafari,
|
|
51
|
+
C as isiOSDevice,
|
|
52
|
+
q as observeOnce,
|
|
53
|
+
J as onNotificationsPermissionChange,
|
|
54
|
+
H as parseLocaleNumber,
|
|
55
|
+
s as removeCookie,
|
|
56
|
+
re as replaceAll,
|
|
57
|
+
te as replaceAllTokens,
|
|
58
|
+
m as rgba,
|
|
59
|
+
U as shallowCopyObjectTo,
|
|
60
|
+
S as showElem,
|
|
61
|
+
me as stringToHyphened
|
|
62
|
+
};
|