@wikicasa-dev/utilities 1.0.18 → 1.0.20

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.
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./types-sG1fVLsL.cjs"),r=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,n=()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),o=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),s=(t={sm:e._.SMALL,md:e._.MEDIUM,lg:e._.LARGE,xl:e._.EXTRA_LARGE})=>{const i=t;return window.innerWidth<i.sm?"mobile":window.innerWidth<i.lg?"tablet":"desktop"};exports.getCurrentDeviceSize=s;exports.isMobile=n;exports.isSafari=o;exports.isiOSDevice=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./types-D0iZP-MN.cjs"),r=()=>/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,n=()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),o=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent),s=(t={sm:e.f.SMALL,md:e.f.MEDIUM,lg:e.f.LARGE,xl:e.f.EXTRA_LARGE})=>{const i=t;return window.innerWidth<i.sm?"mobile":window.innerWidth<i.lg?"tablet":"desktop"};exports.getCurrentDeviceSize=s;exports.isMobile=n;exports.isSafari=o;exports.isiOSDevice=r;
@@ -1,4 +1,4 @@
1
- import { _ as i } from "./types-DvS4I6fS.js";
1
+ import { f as i } from "./types-B0dZ7OiV.js";
2
2
  const n = () => /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream, o = () => /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
3
3
  navigator.userAgent
4
4
  ), s = () => /^((?!chrome|android).)*safari/i.test(navigator.userAgent), a = (t = {
@@ -1 +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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=(r,t)=>{t||(t=navigator.language);const e=Intl.NumberFormat(t).format(1111).replace(/\p{Number}/gu,""),a=Intl.NumberFormat(t).format(1.1).replace(/\p{Number}/gu,""),n=parseFloat(`${r}`.replace(new RegExp("\\"+e,"g"),"").replace(new RegExp("\\"+a),"."));return isNaN(n)?"":n},u=(r,t,e="it-IT")=>{if(r==null)return;if(r=parseFloat(`${r}`),isNaN(r))return"";const a={style:"currency",currency:"EUR"};let o={...{maximumFractionDigits:0}};return t?.currency&&(o={...o,...a}),new Intl.NumberFormat(e,{...o}).format(r)},c=(r,t)=>u(r,t,navigator.language);function f(r,t=!1){return r==null?"":i(t?Math.round(r):Math.floor(r),0)}function i(r,t){return!r&&r!==0?"":r.toLocaleString("it-IT",{minimumFractionDigits:t,maximumFractionDigits:t})}function s(r,t=2){return i(r,t)}const l={formatFn:r=>u(r)??"",unFormatFn:r=>m(r)};exports.formatFloat=s;exports.formatInteger=f;exports.formatLocaleNumber=u;exports.formatLocaleNumberAuto=c;exports.formatNumber=i;exports.formatterNumberObj=l;exports.parseLocaleNumber=m;
@@ -1,10 +1,10 @@
1
- const i = (r, t) => {
1
+ const c = (r, t) => {
2
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), ".")
3
+ const n = Intl.NumberFormat(t).format(1111).replace(/\p{Number}/gu, ""), e = Intl.NumberFormat(t).format(1.1).replace(/\p{Number}/gu, ""), a = parseFloat(
4
+ `${r}`.replace(new RegExp("\\" + n, "g"), "").replace(new RegExp("\\" + e), ".")
5
5
  );
6
- return isNaN(n) ? "" : n;
7
- }, u = (r, t) => {
6
+ return isNaN(a) ? "" : a;
7
+ }, i = (r, t, n = "it-IT") => {
8
8
  if (r == null)
9
9
  return;
10
10
  if (r = parseFloat(`${r}`), isNaN(r))
@@ -13,17 +13,17 @@ const i = (r, t) => {
13
13
  style: "currency",
14
14
  currency: "EUR"
15
15
  };
16
- let n = { ...{
16
+ let o = { ...{
17
17
  maximumFractionDigits: 0
18
18
  } };
19
- return t?.currency && (n = { ...n, ...e }), new Intl.NumberFormat(navigator.language, {
20
- ...n
19
+ return t?.currency && (o = { ...o, ...e }), new Intl.NumberFormat(n, {
20
+ ...o
21
21
  }).format(r);
22
- };
23
- function c(r, t = !1) {
24
- return r == null ? "" : o(t ? Math.round(r) : Math.floor(r), 0);
22
+ }, m = (r, t) => i(r, t, navigator.language);
23
+ function f(r, t = !1) {
24
+ return r == null ? "" : u(t ? Math.round(r) : Math.floor(r), 0);
25
25
  }
26
- function o(r, t) {
26
+ function u(r, t) {
27
27
  return !r && r !== 0 ? "" : r.toLocaleString(
28
28
  "it-IT",
29
29
  // usare una stringa tipo 'en-US' per sovrascrivere la lingua del browser
@@ -33,18 +33,19 @@ function o(r, t) {
33
33
  }
34
34
  );
35
35
  }
36
- function f(r, t = 2) {
37
- return o(r, t);
36
+ function s(r, t = 2) {
37
+ return u(r, t);
38
38
  }
39
- const m = {
40
- formatFn: u,
41
- unFormatFn: i
39
+ const p = {
40
+ formatFn: (r) => i(r) ?? "",
41
+ unFormatFn: (r) => c(r)
42
42
  };
43
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
44
+ s as formatFloat,
45
+ f as formatInteger,
46
+ i as formatLocaleNumber,
47
+ m as formatLocaleNumberAuto,
48
+ u as formatNumber,
49
+ p as formatterNumberObj,
50
+ c as parseLocaleNumber
50
51
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./types-sG1fVLsL.cjs");function d(n,r,e,t,a,u,o){let l="/";return e&&(l+=(e==i.S.AUCTION?window._auctionLabel:e==i.S.RENT?window._rentLabel:window._saleLabel)+"-"),l+=`${r}/`,u&&(l+=`${u}/`),n&&(l+=`${n.replace(/^-+|-+$/g,"")}/`),t&&(l+=`${t.replace(/^_+|_+$/g,"")}/`),!t&&o&&(l+=`${o.replace(/^_+|_+$/g,"")}/`),a&&(l+=`${a.replace(/^_+|_+$/g,"")}/`),l}function f(n){const r=Object.keys(i.II).map(e=>n[e]?encodeURIComponent(i.II[e])+"="+encodeURIComponent(n[e]):null).filter(e=>e!==null);return r.length?`?${r.join("&")}`:""}function m(n){const r=Object.keys(i.lI).map(e=>{if(n[e])if(Array.isArray(n[e])){const t=n[e],a=i.lI[e];let u="";for(let o=0;o<t.length;o++)u+=encodeURIComponent(a)+"="+encodeURIComponent(t[o]),u+=o<t.length-1?"&":"";return u}else return encodeURIComponent(i.lI[e])+"="+encodeURIComponent(n[e]);else return null}).filter(e=>e!==null);return r.length?`?${r.join("&")}`:""}exports.buildParams=f;exports.buildParamsForAgency=m;exports.buildURL=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./types-D0iZP-MN.cjs");function d(n,l,e,t,a,u,o){let r="/";return e&&(r+=(e==i.T.AUCTION?window._auctionLabel:e==i.T.RENT?window._rentLabel:window._saleLabel)+"-"),r+=`${l}/`,u&&(r+=`${u}/`),n&&(r+=`${n.replace(/^-+|-+$/g,"")}/`),t&&(r+=`${t.replace(/^_+|_+$/g,"")}/`),!t&&o&&(r+=`${o.replace(/^_+|_+$/g,"")}/`),a&&(r+=`${a.replace(/^_+|_+$/g,"")}/`),r}function f(n){const l=Object.keys(i.xE).map(e=>n[e]?encodeURIComponent(i.xE[e])+"="+encodeURIComponent(n[e]):null).filter(e=>e!==null);return l.length?`?${l.join("&")}`:""}function m(n){const l=Object.keys(i.qE).map(e=>{if(n[e])if(Array.isArray(n[e])){const t=n[e],a=i.qE[e];let u="";for(let o=0;o<t.length;o++)u+=encodeURIComponent(a)+"="+encodeURIComponent(t[o]),u+=o<t.length-1?"&":"";return u}else return encodeURIComponent(i.qE[e])+"="+encodeURIComponent(n[e]);else return null}).filter(e=>e!==null);return l.length?`?${l.join("&")}`:""}exports.buildParams=f;exports.buildParamsForAgency=m;exports.buildURL=d;
@@ -1,27 +1,27 @@
1
- import { S as m, I as p, l as f } from "./types-DvS4I6fS.js";
2
- function s(e, o, n, r, u, i, t) {
3
- let l = "/";
4
- return n && (l += (n == m.AUCTION ? window._auctionLabel : n == m.RENT ? window._rentLabel : window._saleLabel) + "-"), l += `${o}/`, i && (l += `${i}/`), e && (l += `${e.replace(/^-+|-+$/g, "")}/`), r && (l += `${r.replace(/^_+|_+$/g, "")}/`), !r && t && (l += `${t.replace(/^_+|_+$/g, "")}/`), u && (l += `${u.replace(/^_+|_+$/g, "")}/`), l;
1
+ import { x as m, q as f, T as p } from "./types-B0dZ7OiV.js";
2
+ function s(e, r, n, l, u, i, t) {
3
+ let o = "/";
4
+ return n && (o += (n == p.AUCTION ? window._auctionLabel : n == p.RENT ? window._rentLabel : window._saleLabel) + "-"), o += `${r}/`, i && (o += `${i}/`), e && (o += `${e.replace(/^-+|-+$/g, "")}/`), l && (o += `${l.replace(/^_+|_+$/g, "")}/`), !l && t && (o += `${t.replace(/^_+|_+$/g, "")}/`), u && (o += `${u.replace(/^_+|_+$/g, "")}/`), o;
5
5
  }
6
6
  function $(e) {
7
- const o = Object.keys(p).map((n) => e[n] ? encodeURIComponent(p[n]) + "=" + encodeURIComponent(e[n]) : null).filter((n) => n !== null);
8
- return o.length ? `?${o.join("&")}` : "";
7
+ const r = Object.keys(m).map((n) => e[n] ? encodeURIComponent(m[n]) + "=" + encodeURIComponent(e[n]) : null).filter((n) => n !== null);
8
+ return r.length ? `?${r.join("&")}` : "";
9
9
  }
10
10
  function d(e) {
11
- const o = Object.keys(f).map((n) => {
11
+ const r = Object.keys(f).map((n) => {
12
12
  if (e[n])
13
13
  if (Array.isArray(e[n])) {
14
- const r = e[n], u = f[n];
14
+ const l = e[n], u = f[n];
15
15
  let i = "";
16
- for (let t = 0; t < r.length; t++)
17
- i += encodeURIComponent(u) + "=" + encodeURIComponent(r[t]), i += t < r.length - 1 ? "&" : "";
16
+ for (let t = 0; t < l.length; t++)
17
+ i += encodeURIComponent(u) + "=" + encodeURIComponent(l[t]), i += t < l.length - 1 ? "&" : "";
18
18
  return i;
19
19
  } else
20
20
  return encodeURIComponent(f[n]) + "=" + encodeURIComponent(e[n]);
21
21
  else
22
22
  return null;
23
23
  }).filter((n) => n !== null);
24
- return o.length ? `?${o.join("&")}` : "";
24
+ return r.length ? `?${r.join("&")}` : "";
25
25
  }
26
26
  export {
27
27
  $ as buildParams,
package/dist/index.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("./ArrayUtils.cjs"),g=require("./ColorUtils.cjs"),i=require("./CookieUtils.cjs"),p=require("./CurrencyUtils.cjs"),l=require("./DateUtils.cjs"),s=require("./DeviceDetectionUtils.cjs"),a=require("./DOMUtils.cjs"),c=require("./EmailUtils.cjs"),E=require("./FunctionUtils.cjs"),m=require("./GenericUtils.cjs"),t=require("./NumberUtils.cjs"),r=require("./ObjectUtils.cjs"),C=require("./ObserverUtils.cjs"),u=require("./PermissionUtils.cjs"),n=require("./RESB_UrlBuilder.cjs"),o=require("./StringUtils.cjs"),R=require("./URLBuilderUtils.cjs"),e=require("./RegexUtils.cjs"),d=require("./GeolocationUtils.cjs"),b=require("./AdressUtils.cjs"),S=require("./GAutocompleteUtils.cjs"),U=require("./DownloadUtils.cjs");exports.isArrNullOrEmpty=O.isArrNullOrEmpty;exports.rgba=g.rgba;exports.decodeCookie=i.decodeCookie;exports.encodeCookie=i.encodeCookie;exports.getCookie=i.getCookie;exports.removeCookie=i.removeCookie;exports.formatCurrency=p.formatCurrency;exports.formatDate=l.formatDate;exports.formatDateToddMMYYYY=l.formatDateToddMMYYYY;exports.subtractDaysFromDate=l.subtractDaysFromDate;exports.getCurrentDeviceSize=s.getCurrentDeviceSize;exports.isMobile=s.isMobile;exports.isSafari=s.isSafari;exports.isiOSDevice=s.isiOSDevice;exports.emptyElem=a.emptyElem;exports.getSingleElement=a.getSingleElement;exports.hideElem=a.hideElem;exports.showElem=a.showElem;exports.hash256=c.hash256;exports.hashEmail=c.hashEmail;exports.debounce=E.debounce;exports.isPromise=E.isPromise;exports.awaitableSetTimeout=m.awaitableSetTimeout;exports.createCustomEvent=m.createCustomEvent;exports.formatFloat=t.formatFloat;exports.formatInteger=t.formatInteger;exports.formatLocaleNumber=t.formatLocaleNumber;exports.formatNumber=t.formatNumber;exports.formatterNumberObj=t.formatterNumberObj;exports.parseLocaleNumber=t.parseLocaleNumber;exports.deepCopy=r.deepCopy;exports.getOrNull=r.getOrNull;exports.invertFlatObject=r.invertFlatObject;exports.invertKeyToValue=r.invertKeyToValue;exports.isEmptyObject=r.isEmptyObject;exports.shallowCopyObjectTo=r.shallowCopyObjectTo;exports.observeOnce=C.observeOnce;exports.addPermissionStateListener=u.addPermissionStateListener;exports.onNotificationsPermissionChange=u.onNotificationsPermissionChange;exports.buildParams=n.buildParams;exports.buildParamsForAgency=n.buildParamsForAgency;exports.buildURL=n.buildURL;exports.capitalizeFirstLetter=o.capitalizeFirstLetter;exports.cleanASCII=o.cleanASCII;exports.decodeTextWithEntities=o.decodeTextWithEntities;exports.replaceAll=o.replaceAll;exports.replaceAllTokens=o.replaceAllTokens;exports.stringToHyphened=o.stringToHyphened;exports.appendQueryString=R.appendQueryString;exports.COMPETITOR_REGEX=e.COMPETITOR_REGEX;exports.DATE_REGEX=e.DATE_REGEX;exports.EMAIL_REGEX=e.EMAIL_REGEX;exports.EMAIL_REGEX_INTO_TEXT=e.EMAIL_REGEX_INTO_TEXT;exports.EXCLUDED_REGEX=e.EXCLUDED_REGEX;exports.GLOBAL_PHONE_REGEX=e.GLOBAL_PHONE_REGEX;exports.PASSWORD_REGEX=e.PASSWORD_REGEX;exports.PHONE_REGEX=e.PHONE_REGEX;exports.ROOMS_REGEX=e.ROOMS_REGEX;exports.SQM_REGEX=e.SQM_REGEX;exports.browserSupportGeolocation=d.browserSupportGeolocation;exports.getUserPosition=d.getUserPosition;exports.formatAddress=b.formatAddress;exports.formattedAddress=b.formattedAddress;exports.googlePlaceConverter=S.googlePlaceConverter;exports.downloadFile=U.downloadFile;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("./ArrayUtils.cjs"),g=require("./ColorUtils.cjs"),i=require("./CookieUtils.cjs"),p=require("./CurrencyUtils.cjs"),l=require("./DateUtils.cjs"),s=require("./DeviceDetectionUtils.cjs"),a=require("./DOMUtils.cjs"),c=require("./EmailUtils.cjs"),E=require("./FunctionUtils.cjs"),m=require("./GenericUtils.cjs"),t=require("./NumberUtils.cjs"),r=require("./ObjectUtils.cjs"),C=require("./ObserverUtils.cjs"),u=require("./PermissionUtils.cjs"),n=require("./RESB_UrlBuilder.cjs"),o=require("./StringUtils.cjs"),R=require("./URLBuilderUtils.cjs"),e=require("./RegexUtils.cjs"),d=require("./GeolocationUtils.cjs"),b=require("./AdressUtils.cjs"),S=require("./GAutocompleteUtils.cjs"),A=require("./DownloadUtils.cjs");exports.isArrNullOrEmpty=O.isArrNullOrEmpty;exports.rgba=g.rgba;exports.decodeCookie=i.decodeCookie;exports.encodeCookie=i.encodeCookie;exports.getCookie=i.getCookie;exports.removeCookie=i.removeCookie;exports.formatCurrency=p.formatCurrency;exports.formatDate=l.formatDate;exports.formatDateToddMMYYYY=l.formatDateToddMMYYYY;exports.subtractDaysFromDate=l.subtractDaysFromDate;exports.getCurrentDeviceSize=s.getCurrentDeviceSize;exports.isMobile=s.isMobile;exports.isSafari=s.isSafari;exports.isiOSDevice=s.isiOSDevice;exports.emptyElem=a.emptyElem;exports.getSingleElement=a.getSingleElement;exports.hideElem=a.hideElem;exports.showElem=a.showElem;exports.hash256=c.hash256;exports.hashEmail=c.hashEmail;exports.debounce=E.debounce;exports.isPromise=E.isPromise;exports.awaitableSetTimeout=m.awaitableSetTimeout;exports.createCustomEvent=m.createCustomEvent;exports.formatFloat=t.formatFloat;exports.formatInteger=t.formatInteger;exports.formatLocaleNumber=t.formatLocaleNumber;exports.formatLocaleNumberAuto=t.formatLocaleNumberAuto;exports.formatNumber=t.formatNumber;exports.formatterNumberObj=t.formatterNumberObj;exports.parseLocaleNumber=t.parseLocaleNumber;exports.deepCopy=r.deepCopy;exports.getOrNull=r.getOrNull;exports.invertFlatObject=r.invertFlatObject;exports.invertKeyToValue=r.invertKeyToValue;exports.isEmptyObject=r.isEmptyObject;exports.shallowCopyObjectTo=r.shallowCopyObjectTo;exports.observeOnce=C.observeOnce;exports.addPermissionStateListener=u.addPermissionStateListener;exports.onNotificationsPermissionChange=u.onNotificationsPermissionChange;exports.buildParams=n.buildParams;exports.buildParamsForAgency=n.buildParamsForAgency;exports.buildURL=n.buildURL;exports.capitalizeFirstLetter=o.capitalizeFirstLetter;exports.cleanASCII=o.cleanASCII;exports.decodeTextWithEntities=o.decodeTextWithEntities;exports.replaceAll=o.replaceAll;exports.replaceAllTokens=o.replaceAllTokens;exports.stringToHyphened=o.stringToHyphened;exports.appendQueryString=R.appendQueryString;exports.COMPETITOR_REGEX=e.COMPETITOR_REGEX;exports.DATE_REGEX=e.DATE_REGEX;exports.EMAIL_REGEX=e.EMAIL_REGEX;exports.EMAIL_REGEX_INTO_TEXT=e.EMAIL_REGEX_INTO_TEXT;exports.EXCLUDED_REGEX=e.EXCLUDED_REGEX;exports.GLOBAL_PHONE_REGEX=e.GLOBAL_PHONE_REGEX;exports.PASSWORD_REGEX=e.PASSWORD_REGEX;exports.PHONE_REGEX=e.PHONE_REGEX;exports.ROOMS_REGEX=e.ROOMS_REGEX;exports.SQM_REGEX=e.SQM_REGEX;exports.browserSupportGeolocation=d.browserSupportGeolocation;exports.getUserPosition=d.getUserPosition;exports.formatAddress=b.formatAddress;exports.formattedAddress=b.formattedAddress;exports.googlePlaceConverter=S.googlePlaceConverter;exports.downloadFile=A.downloadFile;
package/dist/index.js CHANGED
@@ -1,89 +1,90 @@
1
1
  import { isArrNullOrEmpty as r } from "./ArrayUtils.js";
2
2
  import { rgba as m } from "./ColorUtils.js";
3
3
  import { decodeCookie as i, encodeCookie as E, getCookie as p, removeCookie as l } from "./CookieUtils.js";
4
- import { formatCurrency as f } from "./CurrencyUtils.js";
5
- import { formatDate as d, formatDateToddMMYYYY as c, subtractDaysFromDate as x } from "./DateUtils.js";
6
- import { getCurrentDeviceSize as u, isMobile as O, isSafari as g, isiOSDevice as C } from "./DeviceDetectionUtils.js";
7
- import { emptyElem as S, getSingleElement as T, hideElem as _, showElem as A } from "./DOMUtils.js";
4
+ import { formatCurrency as s } from "./CurrencyUtils.js";
5
+ import { formatDate as c, formatDateToddMMYYYY as d, subtractDaysFromDate as x } from "./DateUtils.js";
6
+ import { getCurrentDeviceSize as b, isMobile as O, isSafari as g, isiOSDevice as C } from "./DeviceDetectionUtils.js";
7
+ import { emptyElem as A, getSingleElement as S, hideElem as T, showElem as _ } from "./DOMUtils.js";
8
8
  import { hash256 as X, hashEmail as y } from "./EmailUtils.js";
9
- import { debounce as h, isPromise as D } from "./FunctionUtils.js";
10
- import { awaitableSetTimeout as N, createCustomEvent as v } from "./GenericUtils.js";
11
- import { formatFloat as I, formatInteger as F, formatLocaleNumber as k, formatNumber as w, formatterNumberObj as j, parseLocaleNumber as Y } from "./NumberUtils.js";
12
- import { deepCopy as U, getOrNull as z, invertFlatObject as Q, invertKeyToValue as W, isEmptyObject as B, shallowCopyObjectTo as K } from "./ObjectUtils.js";
13
- import { observeOnce as q } from "./ObserverUtils.js";
14
- import { addPermissionStateListener as Z, onNotificationsPermissionChange as $ } from "./PermissionUtils.js";
15
- import { buildParams as oe, buildParamsForAgency as re, buildURL as te } from "./RESB_UrlBuilder.js";
16
- import { capitalizeFirstLetter as ae, cleanASCII as ie, decodeTextWithEntities as Ee, replaceAll as pe, replaceAllTokens as le, stringToHyphened as se } from "./StringUtils.js";
17
- import { appendQueryString as ne } from "./URLBuilderUtils.js";
18
- import { COMPETITOR_REGEX as ce, DATE_REGEX as xe, EMAIL_REGEX as be, EMAIL_REGEX_INTO_TEXT as ue, EXCLUDED_REGEX as Oe, GLOBAL_PHONE_REGEX as ge, PASSWORD_REGEX as Ce, PHONE_REGEX as Re, ROOMS_REGEX as Se, SQM_REGEX as Te } from "./RegexUtils.js";
19
- import { browserSupportGeolocation as Ae, getUserPosition as Ge } from "./GeolocationUtils.js";
20
- import { formatAddress as ye, formattedAddress as Pe } from "./AdressUtils.js";
21
- import { googlePlaceConverter as De } from "./GAutocompleteUtils.js";
22
- import { downloadFile as Ne } from "./DownloadUtils.js";
9
+ import { debounce as N, isPromise as P } from "./FunctionUtils.js";
10
+ import { awaitableSetTimeout as D, createCustomEvent as v } from "./GenericUtils.js";
11
+ import { formatFloat as I, formatInteger as F, formatLocaleNumber as k, formatLocaleNumberAuto as w, formatNumber as j, formatterNumberObj as Y, parseLocaleNumber as H } from "./NumberUtils.js";
12
+ import { deepCopy as z, getOrNull as Q, invertFlatObject as W, invertKeyToValue as B, isEmptyObject as K, shallowCopyObjectTo as V } from "./ObjectUtils.js";
13
+ import { observeOnce as J } from "./ObserverUtils.js";
14
+ import { addPermissionStateListener as $, onNotificationsPermissionChange as ee } from "./PermissionUtils.js";
15
+ import { buildParams as re, buildParamsForAgency as te, buildURL as me } from "./RESB_UrlBuilder.js";
16
+ import { capitalizeFirstLetter as ie, cleanASCII as Ee, decodeTextWithEntities as pe, replaceAll as le, replaceAllTokens as fe, stringToHyphened as se } from "./StringUtils.js";
17
+ import { appendQueryString as ce } from "./URLBuilderUtils.js";
18
+ import { COMPETITOR_REGEX as xe, DATE_REGEX as ue, EMAIL_REGEX as be, EMAIL_REGEX_INTO_TEXT as Oe, EXCLUDED_REGEX as ge, GLOBAL_PHONE_REGEX as Ce, PASSWORD_REGEX as Re, PHONE_REGEX as Ae, ROOMS_REGEX as Se, SQM_REGEX as Te } from "./RegexUtils.js";
19
+ import { browserSupportGeolocation as Ge, getUserPosition as Xe } from "./GeolocationUtils.js";
20
+ import { formatAddress as Le, formattedAddress as Ne } from "./AdressUtils.js";
21
+ import { googlePlaceConverter as he } from "./GAutocompleteUtils.js";
22
+ import { downloadFile as ve } from "./DownloadUtils.js";
23
23
  export {
24
- ce as COMPETITOR_REGEX,
25
- xe as DATE_REGEX,
24
+ xe as COMPETITOR_REGEX,
25
+ ue as DATE_REGEX,
26
26
  be as EMAIL_REGEX,
27
- ue as EMAIL_REGEX_INTO_TEXT,
28
- Oe as EXCLUDED_REGEX,
29
- ge as GLOBAL_PHONE_REGEX,
30
- Ce as PASSWORD_REGEX,
31
- Re as PHONE_REGEX,
27
+ Oe as EMAIL_REGEX_INTO_TEXT,
28
+ ge as EXCLUDED_REGEX,
29
+ Ce as GLOBAL_PHONE_REGEX,
30
+ Re as PASSWORD_REGEX,
31
+ Ae as PHONE_REGEX,
32
32
  Se as ROOMS_REGEX,
33
33
  Te as SQM_REGEX,
34
- Z as addPermissionStateListener,
35
- ne as appendQueryString,
36
- N as awaitableSetTimeout,
37
- Ae as browserSupportGeolocation,
38
- oe as buildParams,
39
- re as buildParamsForAgency,
40
- te as buildURL,
41
- ae as capitalizeFirstLetter,
42
- ie as cleanASCII,
34
+ $ as addPermissionStateListener,
35
+ ce as appendQueryString,
36
+ D as awaitableSetTimeout,
37
+ Ge as browserSupportGeolocation,
38
+ re as buildParams,
39
+ te as buildParamsForAgency,
40
+ me as buildURL,
41
+ ie as capitalizeFirstLetter,
42
+ Ee as cleanASCII,
43
43
  v as createCustomEvent,
44
- h as debounce,
44
+ N as debounce,
45
45
  i as decodeCookie,
46
- Ee as decodeTextWithEntities,
47
- U as deepCopy,
48
- Ne as downloadFile,
49
- S as emptyElem,
46
+ pe as decodeTextWithEntities,
47
+ z as deepCopy,
48
+ ve as downloadFile,
49
+ A as emptyElem,
50
50
  E as encodeCookie,
51
- ye as formatAddress,
52
- f as formatCurrency,
53
- d as formatDate,
54
- c as formatDateToddMMYYYY,
51
+ Le as formatAddress,
52
+ s as formatCurrency,
53
+ c as formatDate,
54
+ d as formatDateToddMMYYYY,
55
55
  I as formatFloat,
56
56
  F as formatInteger,
57
57
  k as formatLocaleNumber,
58
- w as formatNumber,
59
- Pe as formattedAddress,
60
- j as formatterNumberObj,
58
+ w as formatLocaleNumberAuto,
59
+ j as formatNumber,
60
+ Ne as formattedAddress,
61
+ Y as formatterNumberObj,
61
62
  p as getCookie,
62
- u as getCurrentDeviceSize,
63
- z as getOrNull,
64
- T as getSingleElement,
65
- Ge as getUserPosition,
66
- De as googlePlaceConverter,
63
+ b as getCurrentDeviceSize,
64
+ Q as getOrNull,
65
+ S as getSingleElement,
66
+ Xe as getUserPosition,
67
+ he as googlePlaceConverter,
67
68
  X as hash256,
68
69
  y as hashEmail,
69
- _ as hideElem,
70
- Q as invertFlatObject,
71
- W as invertKeyToValue,
70
+ T as hideElem,
71
+ W as invertFlatObject,
72
+ B as invertKeyToValue,
72
73
  r as isArrNullOrEmpty,
73
- B as isEmptyObject,
74
+ K as isEmptyObject,
74
75
  O as isMobile,
75
- D as isPromise,
76
+ P as isPromise,
76
77
  g as isSafari,
77
78
  C as isiOSDevice,
78
- q as observeOnce,
79
- $ as onNotificationsPermissionChange,
80
- Y as parseLocaleNumber,
79
+ J as observeOnce,
80
+ ee as onNotificationsPermissionChange,
81
+ H as parseLocaleNumber,
81
82
  l as removeCookie,
82
- pe as replaceAll,
83
- le as replaceAllTokens,
83
+ le as replaceAll,
84
+ fe as replaceAllTokens,
84
85
  m as rgba,
85
- K as shallowCopyObjectTo,
86
- A as showElem,
86
+ V as shallowCopyObjectTo,
87
+ _ as showElem,
87
88
  se as stringToHyphened,
88
89
  x as subtractDaysFromDate
89
90
  };