@scbt-ecom/ui 0.90.3 → 0.91.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.
@@ -9,4 +9,3 @@ export { getUuid } from './uuid';
9
9
  export { localStorageActions } from './localStorageActions';
10
10
  export { assertUnreachable } from './assertUnreachable';
11
11
  export * from './sessionStorage';
12
- export * from './renderImage';
@@ -1,6 +1,6 @@
1
1
  import { ReactElement } from 'react';
2
- import { RenderImage } from '../../shared/utils';
3
2
  import { BannerClasses, ButtonsConfig } from './model';
3
+ import { Images } from './model/types';
4
4
  import { AdvantageClasses, AdvantagesProps } from './ui/banners/ui';
5
5
  import { BackgroundBannerColors } from '../../shared/constants';
6
6
  export interface BannerProps {
@@ -9,9 +9,7 @@ export interface BannerProps {
9
9
  buttonsConfig: ButtonsConfig;
10
10
  advantages?: AdvantagesProps;
11
11
  variant?: 'separateImg' | 'fullImg';
12
- imageDesktop: RenderImage['imgProps'];
13
- imageMobile: RenderImage['imgProps'];
14
- renderImageCb?: RenderImage['renderImageCb'];
12
+ images: Images;
15
13
  backgroundColor?: BackgroundBannerColors;
16
14
  classes?: BannerClasses & {
17
15
  advantages?: AdvantageClasses;
@@ -24,3 +24,8 @@ export type ButtonsConfig = {
24
24
  enabled: boolean;
25
25
  };
26
26
  };
27
+ export type Images = {
28
+ desktop: string;
29
+ mobile: string;
30
+ alt: string;
31
+ };
@@ -1,2 +1,2 @@
1
1
  import { BannerProps } from '../../..';
2
- export declare const BannerImageFull: ({ headTitle, subtitle, buttonsConfig, advantages, classes, imageDesktop, imageMobile, renderImageCb, backgroundColor }: Omit<BannerProps, "bannerVariant">) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const BannerImageFull: ({ headTitle, subtitle, buttonsConfig, advantages, classes, images, backgroundColor }: Omit<BannerProps, "bannerVariant">) => import("react/jsx-runtime").JSX.Element;
@@ -1,2 +1,2 @@
1
1
  import { BannerProps } from '../../..';
2
- export declare const BannerWithSeparateImg: ({ headTitle, subtitle, buttonsConfig, advantages, classes, renderImageCb, imageDesktop, imageMobile, backgroundColor }: Omit<BannerProps, "bannerVariant">) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const BannerWithSeparateImg: ({ headTitle, subtitle, buttonsConfig, advantages, classes, images, backgroundColor }: Omit<BannerProps, "bannerVariant">) => import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,5 @@
1
1
  import { RootContentClasses, RootContentProps } from './ui';
2
2
  import { BackgroundBannerColors } from '../../shared/constants';
3
- import { RenderImage } from '../../shared/utils';
4
3
  type InfoBlockClasses = {
5
4
  root?: string;
6
5
  container?: string;
@@ -11,7 +10,6 @@ type InfoBlockClasses = {
11
10
  };
12
11
  export interface InfoBlockProps extends RootContentProps {
13
12
  size?: 'sm' | 'md';
14
- imageDesktop: RenderImage['imgProps'];
15
13
  classes?: InfoBlockClasses;
16
14
  backgroundColor?: BackgroundBannerColors;
17
15
  }
@@ -0,0 +1,5 @@
1
+ export type Images = {
2
+ desktop: string;
3
+ mobile: string;
4
+ alt: string;
5
+ };
@@ -1,6 +1,6 @@
1
1
  import { ButtonWithHandlersProps } from '../../buttonWithHandlers';
2
+ import { Images } from '../model/types';
2
3
  import { LinksListClasses, LinksListProps } from './LinksList';
3
- import { RenderImage } from '../../../shared/utils';
4
4
  export type RootContentClasses = {
5
5
  wrapper?: string;
6
6
  textBlock?: string;
@@ -15,8 +15,7 @@ export interface RootContentProps extends Omit<LinksListProps, 'classes'> {
15
15
  heading: string;
16
16
  description?: string;
17
17
  buttonsGroup?: ButtonWithHandlersProps[];
18
- imageMobile: RenderImage['imgProps'];
19
- renderImageCb?: RenderImage['renderImageCb'];
18
+ images: Images;
20
19
  classes?: RootContentClasses;
21
20
  }
22
- export declare const RootContent: ({ heading, buttonsGroup, imageMobile, renderImageCb, description, linksList, classes }: RootContentProps) => import("react/jsx-runtime").JSX.Element;
21
+ export declare const RootContent: ({ heading, buttonsGroup, description, images, linksList, classes }: RootContentProps) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,47 @@
1
+ import { T as l } from "./typeGuards-BHbj394R.js";
2
+ function n(t, e = "x xxx xxx-xx-xx") {
3
+ let o = e;
4
+ for (let r = 0; r < t.length; r++)
5
+ o = o.replace("x", t[r]);
6
+ return o;
7
+ }
8
+ const a = {
9
+ behavior: "smooth",
10
+ block: "center"
11
+ }, i = ({ widgetId: t, config: e = {} }) => {
12
+ const { behavior: o, block: r } = { ...a, ...e }, s = document.getElementById(t);
13
+ if (!s) {
14
+ console.error("Такого элемента в DOM не существует", t);
15
+ return;
16
+ }
17
+ s.scrollIntoView({ behavior: o, block: r });
18
+ }, m = (t) => t.split("-").map((e) => e.charAt(0).toUpperCase() + e.slice(1).toLowerCase()).join("-"), x = {
19
+ setItem: (t, e) => {
20
+ if (l.isNil(e))
21
+ return;
22
+ const o = JSON.stringify(e);
23
+ localStorage.setItem(t, o);
24
+ },
25
+ getItem: (t) => {
26
+ const e = localStorage.getItem(t);
27
+ if (l.isNull(e))
28
+ return null;
29
+ try {
30
+ return JSON.parse(e);
31
+ } catch {
32
+ return e;
33
+ }
34
+ },
35
+ clearItems: (...t) => {
36
+ t.forEach((e) => {
37
+ localStorage.removeItem(e);
38
+ });
39
+ }
40
+ };
41
+ export {
42
+ m as a,
43
+ n as c,
44
+ x as l,
45
+ i as s
46
+ };
47
+ //# sourceMappingURL=localStorageActions-CkWWvUS3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"localStorageActions-CkWWvUS3.js","sources":["../lib/shared/utils/createPhoneNumber.ts","../lib/shared/utils/scrollToElement.ts","../lib/shared/utils/capitalize.ts","../lib/shared/utils/localStorageActions.ts"],"sourcesContent":["export function createPhoneNumber(numbers: string, phoneMask: string = 'x xxx xxx-xx-xx'): string {\n let mask = phoneMask\n\n for (let i = 0; i < numbers.length; i++) {\n mask = mask.replace('x', numbers[i])\n }\n\n return mask\n}\n","import type { AllowedWidgets } from '$/widgets'\n\ntype ScrollConfig = {\n behavior?: ScrollBehavior\n block?: ScrollLogicalPosition\n}\n\ntype ScrollElement = {\n widgetId: AllowedWidgets\n config?: ScrollConfig\n}\n\nconst DEFAULT_SCROLL_CONFIG: Required<ScrollConfig> = {\n behavior: 'smooth',\n block: 'center'\n}\n\nexport const scrollToElement = ({ widgetId, config = {} }: ScrollElement) => {\n const { behavior, block } = { ...DEFAULT_SCROLL_CONFIG, ...config }\n\n const element = document.getElementById(widgetId)\n if (!element) {\n console.error('Такого элемента в DOM не существует', widgetId)\n return\n }\n\n element.scrollIntoView({ behavior, block })\n}\n","export const capitalize = (str: string) => {\n return str\n .split('-')\n .map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())\n .join('-')\n}\n","import { TypeGuards } from './typeGuards'\n\nexport const localStorageActions = {\n setItem: <T>(key: string, value: T): void => {\n if (TypeGuards.isNil(value)) {\n return\n }\n const stringifiesPayload = JSON.stringify(value)\n localStorage.setItem(key, stringifiesPayload)\n },\n\n getItem: <T>(key: string): T | null => {\n const item = localStorage.getItem(key)\n\n if (TypeGuards.isNull(item)) {\n return null\n }\n\n try {\n return JSON.parse(item) as T\n } catch {\n return item as T\n }\n },\n\n clearItems: (...keys: string[]): void => {\n keys.forEach((key) => {\n localStorage.removeItem(key)\n })\n }\n}\n"],"names":["createPhoneNumber","numbers","phoneMask","mask","i","DEFAULT_SCROLL_CONFIG","scrollToElement","widgetId","config","behavior","block","element","capitalize","str","word","localStorageActions","key","value","TypeGuards","stringifiesPayload","item","keys"],"mappings":";AAAO,SAASA,EAAkBC,GAAiBC,IAAoB,mBAA2B;AAChG,MAAIC,IAAOD;AAEX,WAASE,IAAI,GAAGA,IAAIH,EAAQ,QAAQG;AAClC,IAAAD,IAAOA,EAAK,QAAQ,KAAKF,EAAQG,CAAC,CAAC;AAGrC,SAAOD;AACT;ACIA,MAAME,IAAgD;AAAA,EACpD,UAAU;AAAA,EACV,OAAO;AACT,GAEaC,IAAkB,CAAC,EAAE,UAAAC,GAAU,QAAAC,IAAS,CAAA,QAAwB;AAC3E,QAAM,EAAE,UAAAC,GAAU,OAAAC,EAAA,IAAU,EAAE,GAAGL,GAAuB,GAAGG,EAAA,GAErDG,IAAU,SAAS,eAAeJ,CAAQ;AAChD,MAAI,CAACI,GAAS;AACZ,YAAQ,MAAM,uCAAuCJ,CAAQ;AAC7D;AAAA,EAAA;AAGF,EAAAI,EAAQ,eAAe,EAAE,UAAAF,GAAU,OAAAC,EAAA,CAAO;AAC5C,GC3BaE,IAAa,CAACC,MAClBA,EACJ,MAAM,GAAG,EACT,IAAI,CAACC,MAASA,EAAK,OAAO,CAAC,EAAE,YAAA,IAAgBA,EAAK,MAAM,CAAC,EAAE,YAAA,CAAa,EACxE,KAAK,GAAG,GCFAC,IAAsB;AAAA,EACjC,SAAS,CAAIC,GAAaC,MAAmB;AAC3C,QAAIC,EAAW,MAAMD,CAAK;AACxB;AAEF,UAAME,IAAqB,KAAK,UAAUF,CAAK;AAC/C,iBAAa,QAAQD,GAAKG,CAAkB;AAAA,EAAA;AAAA,EAG9C,SAAS,CAAIH,MAA0B;AACrC,UAAMI,IAAO,aAAa,QAAQJ,CAAG;AAErC,QAAIE,EAAW,OAAOE,CAAI;AACxB,aAAO;AAGT,QAAI;AACF,aAAO,KAAK,MAAMA,CAAI;AAAA,IAAA,QAChB;AACN,aAAOA;AAAA,IAAA;AAAA,EACT;AAAA,EAGF,YAAY,IAAIC,MAAyB;AACvC,IAAAA,EAAK,QAAQ,CAACL,MAAQ;AACpB,mBAAa,WAAWA,CAAG;AAAA,IAAA,CAC5B;AAAA,EAAA;AAEL;"}
@@ -0,0 +1,12 @@
1
+ const o = (...f) => {
2
+ const r = f.filter(Boolean);
3
+ return r.length <= 1 ? r[0] || null : function(t) {
4
+ r.forEach((e) => {
5
+ typeof e == "function" ? e(t) : e && (e.current = t);
6
+ });
7
+ };
8
+ };
9
+ export {
10
+ o as m
11
+ };
12
+ //# sourceMappingURL=mergeRefs-qDToYXtM.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mergeRefs-qDToYXtM.js","sources":["../lib/shared/utils/mergeRefs.ts"],"sourcesContent":["import type React from 'react'\n\nexport const mergeRefs = <T>(...inputRefs: (React.Ref<T> | undefined)[]): React.Ref<T> | React.RefCallback<T> => {\n const filteredInputRefs = inputRefs.filter(Boolean)\n\n if (filteredInputRefs.length <= 1) {\n const firstRef = filteredInputRefs[0]\n\n return firstRef || null\n }\n\n return function mergedRefs(ref) {\n filteredInputRefs.forEach((inputRef) => {\n if (typeof inputRef === 'function') {\n inputRef(ref)\n } else if (inputRef) {\n ;(inputRef as React.MutableRefObject<T | null>).current = ref\n }\n })\n }\n}\n"],"names":["mergeRefs","inputRefs","filteredInputRefs","ref","inputRef"],"mappings":"AAEO,MAAMA,IAAY,IAAOC,MAAiF;AAC/G,QAAMC,IAAoBD,EAAU,OAAO,OAAO;AAElD,SAAIC,EAAkB,UAAU,IACbA,EAAkB,CAAC,KAEjB,OAGd,SAAoBC,GAAK;AAC9B,IAAAD,EAAkB,QAAQ,CAACE,MAAa;AACtC,MAAI,OAAOA,KAAa,aACtBA,EAASD,CAAG,IACHC,MACPA,EAA8C,UAAUD;AAAA,IAC5D,CACD;AAAA,EAAA;AAEL;"}
package/dist/ui.js CHANGED
@@ -1,11 +1,11 @@
1
- import { c as Ze, R as et, B as D, u as tt, a as nt, b as ot, d as rt, P as K, e as Fe, f as it, I as lt, g as Q, h as ut, A as st, i as B, D as at, V as gt, O as dt } from "./index-CaH5PSDk.js";
2
- import { s as Yn, o as Zn, C as eo, r as to, y as no, t as oo, U as ro, Q as io, z as lo, v as uo, E as so, H as ao, T as go, L as co, M as fo, N as po, n as mo, p as So, q as ho, x as Co, w as wo, S as Ro, W as vo, F as xo, j as _o, l as Fo, k as yo, m as $o, X as Vo, G as Mo, J as Io, K as Po } from "./index-CaH5PSDk.js";
3
- import { j as S, m as ct } from "./mergeRefs-Danc3mp8.js";
1
+ import { j as S, c as Ze, R as et, B as D, u as tt, a as nt, b as ot, d as rt, P as K, e as Fe, f as it, I as lt, g as Q, h as ut, A as st, i as B, D as at, V as gt, O as dt } from "./index-BKq2JR4V.js";
2
+ import { t as Jn, p as Zn, C as eo, s as to, z as no, v as oo, W as ro, T as io, E as lo, w as uo, F as so, H as ao, U as go, L as co, M as fo, N as po, o as mo, q as So, r as ho, y as Co, x as wo, S as Ro, X as vo, G as xo, k as _o, m as Fo, l as yo, n as $o, Y as Vo, J as Mo, K as Io, Q as Po } from "./index-BKq2JR4V.js";
4
3
  import * as E from "react";
5
- import { forwardRef as M, useState as z, useRef as we, useEffect as ft, isValidElement as q, cloneElement as ye, Children as b } from "react";
4
+ import { forwardRef as M, useState as z, useRef as we, useEffect as ct, isValidElement as q, cloneElement as ye, Children as b } from "react";
6
5
  import { c as v, T as Re } from "./typeGuards-BHbj394R.js";
7
6
  import { aQ as Do, aT as Lo, aP as Ao, aS as Ho, aR as Go } from "./utils-U4W3nat7.js";
8
- import { u as $e, a as pt } from "./useDebounce-5MeprqTX.js";
7
+ import { u as $e, a as ft } from "./useDebounce-5MeprqTX.js";
8
+ import { m as pt } from "./mergeRefs-qDToYXtM.js";
9
9
  const mt = Ze(
10
10
  "group flex items-center justify-center cursor-pointer rounded-full outline-offset-[3px] outline-transparent outline-2 transition duration-12 active:scale-[0.97] disabled:pointer-events-none",
11
11
  {
@@ -392,7 +392,7 @@ const Ft = ({
392
392
  }
393
393
  l(!1);
394
394
  };
395
- return pt(d, a), i ? /* @__PURE__ */ S.jsx(
395
+ return ft(d, a), i ? /* @__PURE__ */ S.jsx(
396
396
  "input",
397
397
  {
398
398
  ref: d,
@@ -900,7 +900,7 @@ const Lt = (e, o, t) => t.reduce((n, r) => {
900
900
  return t[0];
901
901
  const n = Math.floor(t.length / 2), r = t.sort((i, l) => i - l);
902
902
  return t.length % 2 !== 0 ? r[n] : (r[n - 1] + r[n]) / 2;
903
- }, Nt = (e, o) => Array.from(new Set(o.map((t) => t.getValue(e))).values()), jt = (e, o) => new Set(o.map((t) => t.getValue(e))).size, Tt = (e, o) => o.length, J = {
903
+ }, Nt = (e, o) => Array.from(new Set(o.map((t) => t.getValue(e))).values()), jt = (e, o) => new Set(o.map((t) => t.getValue(e))).size, Tt = (e, o) => o.length, Y = {
904
904
  sum: Lt,
905
905
  min: At,
906
906
  max: Ht,
@@ -946,14 +946,14 @@ const Lt = (e, o, t) => t.reduce((n, r) => {
946
946
  }, e.getAutoAggregationFn = () => {
947
947
  const t = o.getCoreRowModel().flatRows[0], n = t == null ? void 0 : t.getValue(e.id);
948
948
  if (typeof n == "number")
949
- return J.sum;
949
+ return Y.sum;
950
950
  if (Object.prototype.toString.call(n) === "[object Date]")
951
- return J.extent;
951
+ return Y.extent;
952
952
  }, e.getAggregationFn = () => {
953
953
  var t, n;
954
954
  if (!e)
955
955
  throw new Error();
956
- return W(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : (t = (n = o.options.aggregationFns) == null ? void 0 : n[e.columnDef.aggregationFn]) != null ? t : J[e.columnDef.aggregationFn];
956
+ return W(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : (t = (n = o.options.aggregationFns) == null ? void 0 : n[e.columnDef.aggregationFn]) != null ? t : Y[e.columnDef.aggregationFn];
957
957
  };
958
958
  },
959
959
  createTable: (e) => {
@@ -1020,12 +1020,12 @@ const Bt = {
1020
1020
  return kt(i, t, n);
1021
1021
  }, C(e.options, "debugTable", "_getOrderColumnsFn"));
1022
1022
  }
1023
- }, Y = () => ({
1023
+ }, J = () => ({
1024
1024
  left: [],
1025
1025
  right: []
1026
1026
  }), qt = {
1027
1027
  getInitialState: (e) => ({
1028
- columnPinning: Y(),
1028
+ columnPinning: J(),
1029
1029
  ...e
1030
1030
  }),
1031
1031
  getDefaultOptions: (e) => ({
@@ -1085,7 +1085,7 @@ const Bt = {
1085
1085
  createTable: (e) => {
1086
1086
  e.setColumnPinning = (o) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(o), e.resetColumnPinning = (o) => {
1087
1087
  var t, n;
1088
- return e.setColumnPinning(o ? Y() : (t = (n = e.initialState) == null ? void 0 : n.columnPinning) != null ? t : Y());
1088
+ return e.setColumnPinning(o ? J() : (t = (n = e.initialState) == null ? void 0 : n.columnPinning) != null ? t : J());
1089
1089
  }, e.getIsSomeColumnsPinned = (o) => {
1090
1090
  var t;
1091
1091
  const n = e.getState().columnPinning;
@@ -1172,9 +1172,9 @@ const T = {
1172
1172
  typeof x == "number" && (o.setColumnSizingInfo((_) => {
1173
1173
  var I, y;
1174
1174
  const H = o.options.columnResizeDirection === "rtl" ? -1 : 1, Se = (x - ((I = _ == null ? void 0 : _.startOffset) != null ? I : 0)) * H, he = Math.max(Se / ((y = _ == null ? void 0 : _.startSize) != null ? y : 0), -0.999999);
1175
- return _.columnSizingStart.forEach((Je) => {
1176
- let [Ye, Ce] = Je;
1177
- g[Ye] = Math.round(Math.max(Ce + Ce * he, 0) * 100) / 100;
1175
+ return _.columnSizingStart.forEach((Ye) => {
1176
+ let [Je, Ce] = Ye;
1177
+ g[Je] = Math.round(Math.max(Ce + Ce * he, 0) * 100) / 100;
1178
1178
  }), {
1179
1179
  ..._,
1180
1180
  deltaOffset: Se,
@@ -1317,7 +1317,7 @@ const Qt = {
1317
1317
  return e._getGlobalFacetedMinMaxValues();
1318
1318
  };
1319
1319
  }
1320
- }, Jt = {
1320
+ }, Yt = {
1321
1321
  getInitialState: (e) => ({
1322
1322
  globalFilter: void 0,
1323
1323
  ...e
@@ -1350,7 +1350,7 @@ const Qt = {
1350
1350
  e.setGlobalFilter(o ? void 0 : e.initialState.globalFilter);
1351
1351
  };
1352
1352
  }
1353
- }, Yt = {
1353
+ }, Jt = {
1354
1354
  getInitialState: (e) => ({
1355
1355
  expanded: {},
1356
1356
  ...e
@@ -1915,12 +1915,12 @@ const G = {
1915
1915
  Dt,
1916
1916
  Qt,
1917
1917
  //depends on ColumnFaceting
1918
- Jt,
1918
+ Yt,
1919
1919
  //depends on ColumnFiltering
1920
1920
  an,
1921
1921
  Ot,
1922
1922
  //depends on RowSorting
1923
- Yt,
1923
+ Jt,
1924
1924
  Zt,
1925
1925
  en,
1926
1926
  tn,
@@ -2655,7 +2655,7 @@ class Kn {
2655
2655
  }
2656
2656
  const Xn = ({ maxToastViewLimit: e = 2, toastDuration: o = 5e3 }) => {
2657
2657
  const { toasts: t } = at();
2658
- return ft(() => {
2658
+ return ct(() => {
2659
2659
  t.filter((n) => n.visible).filter((n, r) => r >= e).forEach((n) => gt.dismiss(n.id));
2660
2660
  }, [e, t]), /* @__PURE__ */ S.jsx(
2661
2661
  dt,
@@ -2673,7 +2673,7 @@ const Xn = ({ maxToastViewLimit: e = 2, toastDuration: o = 5e3 }) => {
2673
2673
  ...Dn(o, e.props),
2674
2674
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2675
2675
  // @ts-expect-error
2676
- ref: t ? ct(t, n) : n
2676
+ ref: t ? pt(t, n) : n
2677
2677
  });
2678
2678
  }
2679
2679
  return b.count(e) > 1 ? b.only(null) : null;
@@ -2717,7 +2717,7 @@ const Wn = ({ icon: e, children: o, classes: t, ...n }) => /* @__PURE__ */ S.jsx
2717
2717
  );
2718
2718
  export {
2719
2719
  st as Accordion,
2720
- Yn as ArrowNavigationButton,
2720
+ Jn as ArrowNavigationButton,
2721
2721
  Zn as Badge,
2722
2722
  D as Button,
2723
2723
  Nn as ButtonIcon,
package/dist/utils.js CHANGED
@@ -1,8 +1,8 @@
1
- import { a as w, c as R, l as D, r as N, s as E } from "./renderImage-ViVSYcgG.js";
1
+ import { a as w, c as R, l as D, s as N } from "./localStorageActions-CkWWvUS3.js";
2
2
  import { T as i } from "./typeGuards-BHbj394R.js";
3
- import { c as V } from "./typeGuards-BHbj394R.js";
3
+ import { c as T } from "./typeGuards-BHbj394R.js";
4
4
  import { i as a } from "./isClient-C9aZtt2Q.js";
5
- import { m as A } from "./mergeRefs-Danc3mp8.js";
5
+ import { m as v } from "./mergeRefs-qDToYXtM.js";
6
6
  const t = [];
7
7
  for (let e = 0; e < 256; ++e)
8
8
  t.push((e + 256).toString(16).slice(1));
@@ -30,9 +30,9 @@ function y(e, n, s) {
30
30
  throw new Error("Random bytes length must be >= 16");
31
31
  return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, l(r);
32
32
  }
33
- const h = () => y(), I = (e, n) => {
33
+ const h = () => y(), S = (e, n) => {
34
34
  console.error(n ?? "process all the cases");
35
- }, S = {
35
+ }, b = {
36
36
  setItem: (e, n) => {
37
37
  if (!a)
38
38
  return console.warn("Session storage can be used only in client side");
@@ -59,16 +59,15 @@ const h = () => y(), I = (e, n) => {
59
59
  };
60
60
  export {
61
61
  i as TypeGuards,
62
- I as assertUnreachable,
62
+ S as assertUnreachable,
63
63
  w as capitalize,
64
- V as cn,
64
+ T as cn,
65
65
  R as createPhoneNumber,
66
66
  h as getUuid,
67
67
  a as isClient,
68
68
  D as localStorageActions,
69
- A as mergeRefs,
70
- N as renderImage,
71
- E as scrollToElement,
72
- S as sessionStorageActions
69
+ v as mergeRefs,
70
+ N as scrollToElement,
71
+ b as sessionStorageActions
73
72
  };
74
73
  //# sourceMappingURL=utils.js.map