@alphakits/ui 2.5.7 → 2.5.10
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/amount/component.js +39 -39
- package/dist/amount-input/component.js +146 -110
- package/dist/amount-input/index.css +1 -1
- package/dist/amount-input/index.module.css.js +16 -10
- package/dist/amount-input/utils/index.d.ts +13 -2
- package/dist/amount-input/utils/index.js +93 -15
- package/dist/calendar/components/days-table/index.css +1 -1
- package/dist/calendar/components/header/index.css +1 -1
- package/dist/calendar/components/months-table/index.css +1 -1
- package/dist/calendar/components/select-button/index.css +1 -1
- package/dist/calendar/components/years-table/index.css +1 -1
- package/dist/calendar/index.css +1 -1
- package/dist/calendar-input/index.css +1 -1
- package/dist/form/templates/base-form/index.js +8 -8
- package/dist/form/templates/filters-form/index.js +13 -13
- package/dist/form/templates/rest-form/form.js +28 -28
- package/dist/form/templates/rest-form/index.js +12 -12
- package/dist/form-control/component.d.ts +8 -0
- package/dist/form-control/component.js +49 -28
- package/dist/index.js +43 -42
- package/dist/input/component.d.ts +4 -0
- package/dist/input/component.js +159 -105
- package/dist/input/index.css +1 -1
- package/dist/input/index.module.css.js +16 -8
- package/dist/input/utils/get-default-input-mode.d.ts +3 -0
- package/dist/input/utils/get-default-input-mode.js +14 -0
- package/dist/input-autocomplete/component.d.ts +4 -0
- package/dist/masked-input/component.d.ts +2 -0
- package/dist/select/component.d.ts +4 -0
- package/dist/select/components/arrow/index.css +1 -1
- package/dist/select/components/checkmark/index.css +1 -1
- package/dist/select/components/field/index.css +1 -1
- package/dist/select/components/optgroup/index.css +1 -1
- package/dist/select/components/option/index.css +1 -1
- package/dist/select/components/options-list/index.css +1 -1
- package/dist/select/components/virtual-options-list/index.css +1 -1
- package/dist/toast/component.d.ts +1 -1
- package/dist/utils/format-amount/util.d.ts +1 -0
- package/dist/utils/format-amount/util.js +31 -26
- package/dist/utils/index.js +33 -32
- package/dist/with-suffix/component.d.ts +2 -0
- package/package.json +3 -2
package/dist/amount/component.js
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { Typography as
|
|
4
|
-
import { formatAmount as h, THINSP as
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
value:
|
|
8
|
-
currency:
|
|
9
|
-
type:
|
|
10
|
-
showMinorPart:
|
|
11
|
-
isCanceled:
|
|
12
|
-
className:
|
|
13
|
-
currencyOpacity:
|
|
14
|
-
...
|
|
1
|
+
import { jsxs as r } from "react/jsx-runtime";
|
|
2
|
+
import s from "classnames";
|
|
3
|
+
import { Typography as f } from "../typography/component.js";
|
|
4
|
+
import { formatAmount as $, isCurrencyFirst as h, THINSP as e, AMOUNT_MAJOR_MINOR_PARTS_SEPARATOR as y } from "../utils/format-amount/util.js";
|
|
5
|
+
import m from "./index.module.css.js";
|
|
6
|
+
const S = ({
|
|
7
|
+
value: A,
|
|
8
|
+
currency: n,
|
|
9
|
+
type: T = "default",
|
|
10
|
+
showMinorPart: d,
|
|
11
|
+
isCanceled: a = !1,
|
|
12
|
+
className: c,
|
|
13
|
+
currencyOpacity: i = !0,
|
|
14
|
+
...l
|
|
15
15
|
}) => {
|
|
16
|
-
const { majorPart:
|
|
17
|
-
value:
|
|
18
|
-
currency:
|
|
19
|
-
showMinorPart:
|
|
20
|
-
type:
|
|
16
|
+
const { majorPart: p, minorPart: t, currencySymbol: o } = $({
|
|
17
|
+
value: A,
|
|
18
|
+
currency: n,
|
|
19
|
+
showMinorPart: d,
|
|
20
|
+
type: T
|
|
21
21
|
});
|
|
22
|
-
return
|
|
23
|
-
|
|
22
|
+
return h(n) ? /* @__PURE__ */ r(
|
|
23
|
+
f.Text,
|
|
24
24
|
{
|
|
25
|
-
...
|
|
26
|
-
className:
|
|
25
|
+
...l,
|
|
26
|
+
className: s(m.component, c, { [m.canceled]: a }),
|
|
27
27
|
children: [
|
|
28
|
-
!!
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
!!o && `${o}${e}`,
|
|
29
|
+
p,
|
|
30
|
+
t && /* @__PURE__ */ r("span", { style: { opacity: i ? 0.6 : 1 }, children: [
|
|
31
|
+
y,
|
|
32
|
+
t
|
|
33
33
|
] })
|
|
34
34
|
]
|
|
35
35
|
}
|
|
36
|
-
) : /* @__PURE__ */
|
|
37
|
-
|
|
36
|
+
) : /* @__PURE__ */ r(
|
|
37
|
+
f.Text,
|
|
38
38
|
{
|
|
39
|
-
...
|
|
40
|
-
className:
|
|
39
|
+
...l,
|
|
40
|
+
className: s(m.component, c, { [m.canceled]: a }),
|
|
41
41
|
children: [
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
!!
|
|
47
|
-
] }) : !!
|
|
42
|
+
p,
|
|
43
|
+
t ? /* @__PURE__ */ r("span", { style: { opacity: i ? 0.6 : 1 }, children: [
|
|
44
|
+
y,
|
|
45
|
+
t,
|
|
46
|
+
!!o && `${e}${o}`
|
|
47
|
+
] }) : !!o && `${e}${o}`
|
|
48
48
|
]
|
|
49
49
|
}
|
|
50
50
|
);
|
|
51
51
|
};
|
|
52
52
|
export {
|
|
53
|
-
|
|
53
|
+
S as Amount
|
|
54
54
|
};
|
|
@@ -1,134 +1,170 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import { forwardRef as
|
|
4
|
-
import { getCurrencySymbol as
|
|
5
|
-
import { Input as
|
|
6
|
-
import {
|
|
7
|
-
import { withSuffix as
|
|
8
|
-
import
|
|
9
|
-
import { getAmountValueFromStr as
|
|
10
|
-
const
|
|
1
|
+
import { jsxs as p, jsx as M } from "react/jsx-runtime";
|
|
2
|
+
import j from "classnames";
|
|
3
|
+
import { forwardRef as rt, useRef as O, useState as P, useEffect as it, useCallback as S, useLayoutEffect as st, Fragment as at } from "react";
|
|
4
|
+
import { getCurrencySymbol as ot } from "../utils/get-currency-symbol/util.js";
|
|
5
|
+
import { Input as ct } from "../input/component.js";
|
|
6
|
+
import { THINSP as $, isCurrencyFirst as lt } from "../utils/format-amount/util.js";
|
|
7
|
+
import { withSuffix as ut } from "../with-suffix/component.js";
|
|
8
|
+
import i from "./index.module.css.js";
|
|
9
|
+
import { formatAmountInputValue as T, getAmountValueFromStr as mt, isPhantomZeroDisplay as z, stripAmountFormatting as g, normalizeAmountDisplay as ft, shouldShowMinorPart as dt, getFormattedValue as pt, getRawCaretIndex as ht, getCaretPositionForRawIndex as wt, isWholeAmountType as St } from "./utils/index.js";
|
|
10
|
+
const xt = ut(ct), Et = rt(
|
|
11
11
|
({
|
|
12
|
-
value:
|
|
13
|
-
integerLength:
|
|
14
|
-
suffix:
|
|
15
|
-
placeholder:
|
|
16
|
-
bold:
|
|
17
|
-
type:
|
|
18
|
-
className:
|
|
19
|
-
focusedClassName:
|
|
20
|
-
required:
|
|
21
|
-
dataTestId:
|
|
22
|
-
clear:
|
|
23
|
-
allowNegative:
|
|
24
|
-
onChange:
|
|
25
|
-
onClear:
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
type: "default"
|
|
33
|
-
}).formatted
|
|
12
|
+
value: o = null,
|
|
13
|
+
integerLength: C = 9,
|
|
14
|
+
suffix: c = "RUR",
|
|
15
|
+
placeholder: k = "0",
|
|
16
|
+
bold: V = !0,
|
|
17
|
+
type: s = "default",
|
|
18
|
+
className: v,
|
|
19
|
+
focusedClassName: B,
|
|
20
|
+
required: H,
|
|
21
|
+
dataTestId: U,
|
|
22
|
+
clear: Z = !1,
|
|
23
|
+
allowNegative: E = !1,
|
|
24
|
+
onChange: l,
|
|
25
|
+
onClear: x,
|
|
26
|
+
onBlur: F,
|
|
27
|
+
onFocus: A,
|
|
28
|
+
...u
|
|
29
|
+
}, G) => {
|
|
30
|
+
const R = St(s), y = O(!1), [r, f] = P(
|
|
31
|
+
() => T(o, s, c)
|
|
34
32
|
);
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
33
|
+
it(() => {
|
|
34
|
+
y.current || f(T(o, s, c));
|
|
35
|
+
}, [o, s, c]);
|
|
36
|
+
const I = S(
|
|
37
|
+
(e, t) => {
|
|
38
|
+
l && l(e, {
|
|
39
|
+
value: mt(t, s),
|
|
40
|
+
valueString: t
|
|
41
|
+
});
|
|
42
|
+
},
|
|
43
|
+
[l, s]
|
|
44
|
+
), J = (e) => {
|
|
45
|
+
const t = e.target;
|
|
46
|
+
let n = g(t.value);
|
|
47
|
+
const et = g(r);
|
|
48
|
+
z(et) && /^-?0[1-9](?!,)/.test(n) && (n = n.replace(/^(-?)0([1-9])/, "$1$2"));
|
|
49
|
+
const D = n.startsWith("-");
|
|
50
|
+
if (D) {
|
|
51
|
+
if (!E) {
|
|
52
|
+
const a = t.selectionStart - 1;
|
|
50
53
|
window.requestAnimationFrame(() => {
|
|
51
|
-
t.selectionStart =
|
|
54
|
+
t.selectionStart = a, t.selectionEnd = a;
|
|
52
55
|
});
|
|
53
56
|
return;
|
|
54
57
|
}
|
|
55
58
|
n = n.slice(1);
|
|
56
59
|
}
|
|
57
|
-
if (!RegExp(`(^[0-9]{1,${
|
|
60
|
+
if (!(R ? RegExp(`(^[0-9]{1,${C}}$|^\\s*$)`).test(n) : RegExp(`(^[0-9]{1,${C}}(,([0-9]+)?)?$|^\\s*$)`).test(
|
|
58
61
|
n
|
|
59
|
-
)) {
|
|
60
|
-
const
|
|
62
|
+
))) {
|
|
63
|
+
const a = t.selectionStart - 1;
|
|
61
64
|
window.requestAnimationFrame(() => {
|
|
62
|
-
t.selectionStart =
|
|
65
|
+
t.selectionStart = a, t.selectionEnd = a;
|
|
63
66
|
});
|
|
64
67
|
return;
|
|
65
68
|
}
|
|
66
|
-
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
t.selectionStart = e, t.selectionEnd = e;
|
|
72
|
-
});
|
|
73
|
-
} else {
|
|
74
|
-
const [e, V] = n.replace("-", "").split(/\.|,/);
|
|
75
|
-
let w = e.length;
|
|
76
|
-
V && (w += 1 + V.slice(0, 2).length);
|
|
77
|
-
const L = l.length - w, A = t.selectionStart + L;
|
|
78
|
-
window.requestAnimationFrame(() => {
|
|
79
|
-
t.selectionStart = A, t.selectionEnd = A;
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
m(l);
|
|
83
|
-
const h = l;
|
|
84
|
-
p && p(i, {
|
|
85
|
-
value: v(h.toString(), o === "default"),
|
|
86
|
-
valueString: h.toString()
|
|
69
|
+
D && E && (n = `-${n}`);
|
|
70
|
+
const N = pt(n, s), nt = ht(t.value, t.selectionStart ?? 0);
|
|
71
|
+
f(N), I(e, N), window.requestAnimationFrame(() => {
|
|
72
|
+
const a = wt(N, nt);
|
|
73
|
+
t.selectionStart = a, t.selectionEnd = a;
|
|
87
74
|
});
|
|
88
|
-
},
|
|
89
|
-
|
|
90
|
-
|
|
75
|
+
}, h = r.replace(/^-/, ""), K = r.startsWith("-"), d = h.indexOf(","), L = d === -1 ? h : h.slice(0, d), W = d === -1 ? void 0 : h.slice(d + 1), Q = !R && d !== -1, w = ot(c) || c, m = lt(c), b = O(null), [X, q] = P(0);
|
|
76
|
+
st(() => {
|
|
77
|
+
if (!m) {
|
|
78
|
+
q(0);
|
|
79
|
+
return;
|
|
80
|
+
}
|
|
81
|
+
const e = b.current;
|
|
82
|
+
e && q(e.offsetWidth);
|
|
83
|
+
}, [m, w, V]);
|
|
84
|
+
const Y = S(
|
|
85
|
+
(e) => {
|
|
86
|
+
y.current = !0;
|
|
87
|
+
const t = e.currentTarget;
|
|
88
|
+
z(g(r)) && (o == null || o === 0) && f(""), !u.readOnly && !u.disabled && window.requestAnimationFrame(() => {
|
|
89
|
+
t.select();
|
|
90
|
+
}), A && A(e);
|
|
91
|
+
},
|
|
92
|
+
[r, A, u.disabled, u.readOnly, o]
|
|
93
|
+
), _ = S(
|
|
94
|
+
(e) => {
|
|
95
|
+
y.current = !1;
|
|
96
|
+
const t = ft(r, s);
|
|
97
|
+
t !== r && (f(t), I(e, t)), F && F(e);
|
|
98
|
+
},
|
|
99
|
+
[I, r, F, s]
|
|
100
|
+
), tt = S(
|
|
101
|
+
(e) => {
|
|
102
|
+
f(""), l && l(
|
|
103
|
+
e,
|
|
104
|
+
{
|
|
105
|
+
value: null,
|
|
106
|
+
valueString: ""
|
|
107
|
+
}
|
|
108
|
+
), x && x(e);
|
|
91
109
|
},
|
|
92
|
-
[
|
|
93
|
-
)
|
|
94
|
-
return /* @__PURE__ */
|
|
110
|
+
[l, x]
|
|
111
|
+
);
|
|
112
|
+
return /* @__PURE__ */ p(
|
|
95
113
|
"div",
|
|
96
114
|
{
|
|
97
|
-
className:
|
|
98
|
-
[
|
|
99
|
-
[
|
|
115
|
+
className: j(i.container, {
|
|
116
|
+
[i.bold]: V,
|
|
117
|
+
[i.filled]: !!r
|
|
100
118
|
}),
|
|
101
|
-
children:
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
119
|
+
children: [
|
|
120
|
+
m && /* @__PURE__ */ p("span", { ref: b, className: i.prefixMeasure, "aria-hidden": !0, children: [
|
|
121
|
+
w,
|
|
122
|
+
$
|
|
123
|
+
] }),
|
|
124
|
+
/* @__PURE__ */ M(
|
|
125
|
+
xt,
|
|
126
|
+
{
|
|
127
|
+
...u,
|
|
128
|
+
autoComplete: "off",
|
|
129
|
+
style: {
|
|
130
|
+
...u.style,
|
|
131
|
+
...m ? { textIndent: X } : null
|
|
132
|
+
},
|
|
133
|
+
suffix: /* @__PURE__ */ p(at, { children: [
|
|
134
|
+
m && /* @__PURE__ */ p("span", { className: i.currency, children: [
|
|
135
|
+
w,
|
|
136
|
+
$
|
|
137
|
+
] }),
|
|
138
|
+
K && "-",
|
|
139
|
+
L,
|
|
140
|
+
Q && /* @__PURE__ */ M("span", { className: i.minorPart, children: dt(W) ? `,${W}` : "," }),
|
|
141
|
+
!m && /* @__PURE__ */ p("span", { className: i.currency, children: [
|
|
142
|
+
$,
|
|
143
|
+
w
|
|
144
|
+
] })
|
|
145
|
+
] }),
|
|
146
|
+
suffixContainerClassName: i.suffixContainer,
|
|
147
|
+
clear: Z,
|
|
148
|
+
required: H,
|
|
149
|
+
placeholder: k,
|
|
150
|
+
value: r,
|
|
151
|
+
className: j(i.component, v),
|
|
152
|
+
focusedClassName: B,
|
|
153
|
+
inputClassName: i.input,
|
|
154
|
+
inputMode: R ? "numeric" : "decimal",
|
|
155
|
+
onChange: J,
|
|
156
|
+
onFocus: Y,
|
|
157
|
+
onBlur: _,
|
|
158
|
+
onClear: tt,
|
|
159
|
+
dataTestId: U,
|
|
160
|
+
ref: G
|
|
161
|
+
}
|
|
162
|
+
)
|
|
163
|
+
]
|
|
128
164
|
}
|
|
129
165
|
);
|
|
130
166
|
}
|
|
131
167
|
);
|
|
132
168
|
export {
|
|
133
|
-
|
|
169
|
+
Et as AmountInput
|
|
134
170
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--text-primary-color: var(--color-text-primary);--text-secondary-color: var(--color-text-secondary);--text-tertiary-color: var(--color-text-tertiary);--border-radius: 4px;--focus-color: var(--color-border-link);--font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, sans-serif;--disabled-cursor: not-allowed;--arrow-transform: rotate(180deg)}:root{--amount-input-minor-part-and-currency-color: var(--color-text-secondary)}.container_AHkd{position:relative}.
|
|
1
|
+
:root{--text-primary-color: var(--color-text-primary);--text-secondary-color: var(--color-text-secondary);--text-tertiary-color: var(--color-text-tertiary);--border-radius: 4px;--focus-color: var(--color-border-link);--font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, sans-serif;--disabled-cursor: not-allowed;--arrow-transform: rotate(180deg)}:root{--amount-input-minor-part-and-currency-color: var(--color-text-secondary)}.container_AHkd{position:relative}.minorPart_Yv3O,.currency_ROce{color:var(--amount-input-minor-part-and-currency-color)}.suffixContainer_J46v>*:first-child{display:none}.prefixMeasure_o-kM{font-size:16px!important;line-height:20px;font-weight:400;font-family:var(--font-family);position:absolute;visibility:hidden;pointer-events:none;white-space:pre;font-size:16px}.bold_tpPh .prefixMeasure_o-kM{font-weight:700}.filled_GrmG .input_Ims0,.input_Ims0:focus{-webkit-text-fill-color:transparent;caret-color:currentColor;font-size:16px!important}.bold_tpPh .input_Ims0,.bold_tpPh .suffix{font-weight:700}
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
import * as __css from './index.css';
|
|
2
2
|
export const __cssModule = __css;
|
|
3
|
-
const n = "container_AHkd",
|
|
3
|
+
const n = "container_AHkd", r = "minorPart_Yv3O", e = "currency_ROce", t = "suffixContainer_J46v", o = "prefixMeasure_o-kM", i = "bold_tpPh", c = "filled_GrmG", s = "input_Ims0", a = {
|
|
4
4
|
container: n,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
minorPart: r,
|
|
6
|
+
currency: e,
|
|
7
|
+
suffixContainer: t,
|
|
8
|
+
prefixMeasure: o,
|
|
9
|
+
bold: i,
|
|
10
|
+
filled: c,
|
|
11
|
+
input: s
|
|
9
12
|
};
|
|
10
13
|
export {
|
|
14
|
+
i as bold,
|
|
11
15
|
n as container,
|
|
12
|
-
e as
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
r as
|
|
16
|
+
e as currency,
|
|
17
|
+
a as default,
|
|
18
|
+
c as filled,
|
|
19
|
+
s as input,
|
|
20
|
+
r as minorPart,
|
|
21
|
+
o as prefixMeasure,
|
|
22
|
+
t as suffixContainer
|
|
17
23
|
};
|
|
@@ -1,2 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { CurrencyCodes } from '../../utils/data/currency-codes';
|
|
2
|
+
import { AmountValueType } from '../../utils/format-amount/util';
|
|
3
|
+
export declare function isWholeAmountType(amountType: AmountValueType): boolean;
|
|
4
|
+
export declare function stripAmountFormatting(str: string): string;
|
|
5
|
+
export declare function getRawCaretIndex(value: string, caret: number): number;
|
|
6
|
+
export declare function getCaretPositionForRawIndex(formatted: string, rawIndex: number): number;
|
|
7
|
+
export declare function hideZeroMinorPart(formatted: string): string;
|
|
8
|
+
export declare function shouldShowMinorPart(minorPart: string | undefined): boolean;
|
|
9
|
+
export declare function formatAmountInputValue(value: number | null | undefined, amountType: AmountValueType, currency: CurrencyCodes): string;
|
|
10
|
+
export declare function getFormattedValue(enteredValue: string, amountType: AmountValueType): string;
|
|
11
|
+
export declare function getAmountValueFromStr(str: string, amountType: AmountValueType): number | null;
|
|
12
|
+
export declare function normalizeAmountDisplay(str: string, amountType: AmountValueType): string;
|
|
13
|
+
export declare function isPhantomZeroDisplay(str: string): boolean;
|
|
@@ -1,20 +1,98 @@
|
|
|
1
|
-
import { formatAmount as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { formatAmount as d, THINSP as p } from "../../utils/format-amount/util.js";
|
|
2
|
+
import { splitAmount as h } from "../../utils/split-amount/util.js";
|
|
3
|
+
const m = /* @__PURE__ */ new Set([" ", p]), N = 3, A = 4;
|
|
4
|
+
function c(t) {
|
|
5
|
+
return t === "default";
|
|
6
|
+
}
|
|
7
|
+
function l(t) {
|
|
8
|
+
return t.split("").filter((r) => !m.has(r)).join("").replace(".", ",");
|
|
9
|
+
}
|
|
10
|
+
function $(t) {
|
|
11
|
+
const r = l(t).replace(/\D/g, "");
|
|
12
|
+
if (!r)
|
|
13
|
+
return "0";
|
|
14
|
+
const e = r.replace(/^0+(?=\d)/, "") || r;
|
|
15
|
+
return h(e, N, p, A);
|
|
16
|
+
}
|
|
17
|
+
function R(t, r) {
|
|
18
|
+
return l(t.slice(0, r)).length;
|
|
19
|
+
}
|
|
20
|
+
function _(t, r) {
|
|
21
|
+
if (r <= 0)
|
|
22
|
+
return t.startsWith("-") ? 1 : 0;
|
|
23
|
+
let e = 0;
|
|
24
|
+
for (let n = 0; n < t.length; n++) {
|
|
25
|
+
const o = t[n];
|
|
26
|
+
if (!m.has(o) && (e += 1, e >= r))
|
|
27
|
+
return n + 1;
|
|
28
|
+
}
|
|
29
|
+
return t.length;
|
|
30
|
+
}
|
|
31
|
+
function g(t) {
|
|
32
|
+
return t.endsWith(",00") ? t.slice(0, -3) : t;
|
|
33
|
+
}
|
|
34
|
+
function D(t) {
|
|
35
|
+
return t !== void 0 && t !== "" && t !== "00";
|
|
36
|
+
}
|
|
37
|
+
function F(t, r, e) {
|
|
38
|
+
if (t == null)
|
|
39
|
+
return "";
|
|
40
|
+
const n = c(r) ? t : t / 100, o = d({
|
|
41
|
+
value: n,
|
|
42
|
+
currency: e,
|
|
6
43
|
type: "default"
|
|
7
|
-
});
|
|
8
|
-
return
|
|
44
|
+
}).formatted;
|
|
45
|
+
return c(r) ? o : g(o);
|
|
46
|
+
}
|
|
47
|
+
function M(t, r) {
|
|
48
|
+
if (!t) return t;
|
|
49
|
+
const e = l(t), n = e.startsWith("-"), o = n ? e.slice(1) : e, [f, u] = o.split(","), i = $(f);
|
|
50
|
+
if (c(r))
|
|
51
|
+
return n ? `-${i}` : i;
|
|
52
|
+
if (!u && e.includes(","))
|
|
53
|
+
return n ? `-${i},` : `${i},`;
|
|
54
|
+
if (u) {
|
|
55
|
+
const s = u.slice(0, 2);
|
|
56
|
+
return s === "00" && u.length >= 2 ? n ? `-${i}` : i : n ? `-${i},${s}` : `${i},${s}`;
|
|
57
|
+
}
|
|
58
|
+
return n ? `-${i}` : i;
|
|
59
|
+
}
|
|
60
|
+
function I(t, r) {
|
|
61
|
+
if (!t) return null;
|
|
62
|
+
const e = l(t), n = e.startsWith("-"), o = e.replace(/^-/, "");
|
|
63
|
+
if (c(r)) {
|
|
64
|
+
const s = o.replace(/\D/g, "");
|
|
65
|
+
if (!s) return null;
|
|
66
|
+
const a = Number(s);
|
|
67
|
+
return Number.isNaN(a) ? null : n ? -a : a;
|
|
68
|
+
}
|
|
69
|
+
const f = o.replace(",", "."), u = Number(f);
|
|
70
|
+
if (Number.isNaN(u)) return null;
|
|
71
|
+
const i = Math.round(u * 100);
|
|
72
|
+
return n ? -i : i;
|
|
73
|
+
}
|
|
74
|
+
function P(t, r) {
|
|
75
|
+
if (!t || t === "-" || t === "-," || !t.replace(/[^0-9]/g, ""))
|
|
76
|
+
return "";
|
|
77
|
+
let n = M(t, r);
|
|
78
|
+
if (c(r) || !n.includes(","))
|
|
79
|
+
return n;
|
|
80
|
+
const [, o = ""] = n.split(",");
|
|
81
|
+
return o ? (o.length === 1 && (n = `${n}0`), g(n)) : n.replace(/,$/, "");
|
|
9
82
|
}
|
|
10
|
-
function
|
|
11
|
-
|
|
12
|
-
const e = r.startsWith("-"), u = r.replace(/[^0-9,]/g, "").replace(",", "."), n = Number(u);
|
|
13
|
-
if (Number.isNaN(n)) return null;
|
|
14
|
-
const t = Math.round(i ? n : n * 100);
|
|
15
|
-
return e ? -t : t;
|
|
83
|
+
function T(t) {
|
|
84
|
+
return l(t) === "0";
|
|
16
85
|
}
|
|
17
86
|
export {
|
|
18
|
-
|
|
19
|
-
|
|
87
|
+
F as formatAmountInputValue,
|
|
88
|
+
I as getAmountValueFromStr,
|
|
89
|
+
_ as getCaretPositionForRawIndex,
|
|
90
|
+
M as getFormattedValue,
|
|
91
|
+
R as getRawCaretIndex,
|
|
92
|
+
g as hideZeroMinorPart,
|
|
93
|
+
T as isPhantomZeroDisplay,
|
|
94
|
+
c as isWholeAmountType,
|
|
95
|
+
P as normalizeAmountDisplay,
|
|
96
|
+
D as shouldShowMinorPart,
|
|
97
|
+
l as stripAmountFormatting
|
|
20
98
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
:root{--text-primary-color: var(--color-text-primary);--text-secondary-color: var(--color-text-secondary);--text-tertiary-color: var(--color-text-tertiary);--border-radius: 4px;--focus-color: var(--color-border-link);--font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, sans-serif;--disabled-cursor: not-allowed;--arrow-transform: rotate(180deg)}:root{--shadow-info-block: 0px 4px 4px rgba(0, 0, 0, .25);--shadow-xs: 0 0 4px rgba(11, 31, 53, .02), 0 2px 4px rgba(11, 31, 53, .04);--shadow-s: 0 0 8px rgba(11, 31, 53, .04), 0 4px 8px rgba(11, 31, 53, .08);--shadow-m: 0 0 16px rgba(11, 31, 53, .08), 0 8px 16px rgba(11, 31, 53, .16);--shadow-l: 0 0 24px rgba(11, 31, 53, .12), 0 12px 24px rgba(11, 31, 53, .24);--shadow-xl: 0 0 32px rgba(11, 31, 53, .16), 0 16px 32px rgba(11, 31, 53, .32);--shadow-xs-hard: 0 0 4px rgba(11, 31, 53, .02), 0 2px 4px rgba(11, 31, 53, .04), 0 2px 4px rgba(11, 31, 53, .16);--shadow-s-hard: 0 0 8px rgba(11, 31, 53, .04), 0 4px 8px rgba(11, 31, 53, .08), 0 4px 8px rgba(11, 31, 53, .16);--shadow-m-hard: 0 0 16px rgba(11, 31, 53, .08), 0 8px 16px rgba(11, 31, 53, .16), 0 8px 16px rgba(11, 31, 53, .16);--shadow-l-hard: 0 0 24px rgba(11, 31, 53, .12), 0 12px 24px rgba(11, 31, 53, .24), 0 12px 24px rgba(11, 31, 53, .16);--shadow-xl-hard: 0 0 32px rgba(11, 31, 53, .16), 0 16px 32px rgba(11, 31, 53, .32), 0 16px 32px rgba(11, 31, 53, .16);--shadow-xs-up: 0 0 4px rgba(11, 31, 53, .02), 0 -2px 4px rgba(11, 31, 53, .04);--shadow-s-up: 0 0 8px rgba(11, 31, 53, .04), 0 -4px 8px rgba(11, 31, 53, .08);--shadow-m-up: 0 0 16px rgba(11, 31, 53, .08), 0 -8px 16px rgba(11, 31, 53, .16);--shadow-l-up: 0 0 24px rgba(11, 31, 53, .12), 0 -12px 24px rgba(11, 31, 53, .24);--shadow-xl-up: 0 0 32px rgba(11, 31, 53, .16), 0 -16px 32px rgba(11, 31, 53, .32);--shadow-xs-hard-up: 0 0 4px rgba(11, 31, 53, .02), 0 -2px 4px rgba(11, 31, 53, .04), 0 -2px 4px rgba(11, 31, 53, .16);--shadow-s-hard-up: 0 0 8px rgba(11, 31, 53, .04), 0 -4px 8px rgba(11, 31, 53, .08), 0 -4px 8px rgba(11, 31, 53, .16);--shadow-m-hard-up: 0 0 16px rgba(11, 31, 53, .08), 0 -8px 16px rgba(11, 31, 53, .16), 0 -8px 16px rgba(11, 31, 53, .16);--shadow-l-hard-up: 0 0 24px rgba(11, 31, 53, .12), 0 -12px 24px rgba(11, 31, 53, .24), 0 -12px 24px rgba(11, 31, 53, .16);--shadow-xl-hard-up: 0 0 32px rgba(11, 31, 53, .16), 0 -16px 32px rgba(11, 31, 53, .32), 0 -16px 32px rgba(11, 31, 53, .16)}:root{--radius-s: 8px;--radius-m: 12px;--radius-l: 16px;--radius-circle: 50%}:root{--gap-2xs: 4px;--gap-xs: 8px;--gap-s: 12px;--gap-m: 16px;--gap-l: 20px;--gap-xl: 24px;--gap-xxl: 28px;--gap-2xl: 32px;--gap-3xl: 40px;--gap-4xl: 48px;--gap-5xl: 64px;--gap-6xl: 72px;--gap-7xl: 96px;--gap-8xl: 128px;--gap-2xs-neg: -4px;--gap-xs-neg: -8px;--gap-s-neg: -12px;--gap-m-neg: -16px;--gap-l-neg: -20px;--gap-xl-neg: -24px;--gap-2xl-neg: -32px;--gap-3xl-neg: -40px;--gap-4xl-neg: -48px;--gap-5xl-neg: -64px;--gap-6xl-neg: -72px;--gap-7xl-neg: -96px;--gap-8xl-neg: -128px}:root{--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif}:root{--calendar-width: 248px;--calendar-height: 264px;--calendar-selector-button-width: 82px;--calendar-selector-button-gap: 3px;--calendar-selector-button-outline-border-color: var(--color-border-key);--calendar-arrow-background: url(https://alfabank.st/icons/icon_arrow-left_m_black.svg);--calendar-select-icon-background: url(https://alfabank.st/icons/icon_arrow-select_m_black.svg);--calendar-header-paddings: 0 var(--gap-xs) var(--gap-xs);--calendar-month-only-header-paddings: var(--gap-m) var(--gap-2xl) var(--gap-s);--calendar-month-only-header-font-family: var(--font-family-system);--calendar-month-only-header-font-size: 16px;--calendar-month-only-header-font-weight: 400;--calendar-day-size: 40px;--calendar-day-border-radius: 4px;--calendar-today-border-color: var(--color-border-key);--calendar-highlighted-color: var(--color-text-primary);--calendar-highlighted-background: var(--color-bg-accent-light);--calendar-range-background: color-mix(in srgb, var(--color-graphic-accent) 90%, white);--calendar-range-color: var(--color-text-primary);--calendar-selected-background: var(--color-bg-accent-light);--calendar-disabled-color: var(--color-text-tertiary);--calendar-disabled-background: transparent;--calendar-marker-background: var(--color-graphic-accent);--calendar-marker-background-past: var(--color-graphic-negative)}.daysTable_rn90{position:relative}.daysTable_rn90 .daysBody_jxkT{display:flex;flex-direction:column}.daysTable_rn90 .weekRow_RtmO{display:flex}.daysTable_rn90 .daysRow_hDh-{padding:0}:is(.daysTable_rn90 .daysRowDay_B3Q4):first-child .transitLeft_bGP2{background:linear-gradient(270deg,var(--calendar-range-background) 0%,var(--color-specialbg-nulled) 100%)}:is(:is(.daysTable_rn90 .daysRowDay_B3Q4):first-child .transitLeft_bGP2):after{display:none}:is(.daysTable_rn90 .daysRowDay_B3Q4):last-child .transitRight_cZ-3{background:linear-gradient(270deg,var(--color-specialbg-nulled) 0%,var(--calendar-range-background) 100%)}:is(:is(.daysTable_rn90 .daysRowDay_B3Q4):last-child .transitRight_cZ-3):after{display:none}.daysTable_rn90 .daysRowDay_B3Q4:last-child .day_BdXj.range_WYxl,.daysTable_rn90 .daysRowDay_B3Q4:last-child .day_BdXj.rangeStart_N8rL{background:linear-gradient(270deg,rgba(255,0,0,0) 0%,var(--color-bg-accent-light) 100%)!important}.daysTable_rn90 .daysRowDay_B3Q4:first-child .day_BdXj.range_WYxl,.daysTable_rn90 .daysRowDay_B3Q4:first-child .day_BdXj.rangeEnd_z7AV{background:linear-gradient(90deg,rgba(255,0,0,0) 0%,var(--color-bg-accent-light) 100%)!important}.dayName_A3Z6{font-size:13px;line-height:16px;font-weight:400;font-family:var(--font-family);height:20px;width:32px;display:flex;justify-content:center;color:var(--color-text-secondary)}.day_BdXj{font-size:13px;line-height:16px;font-weight:400;font-family:var(--font-family);position:relative;width:32px;height:32px!important;min-height:32px!important;display:flex;align-items:center;justify-content:center;text-align:center;box-sizing:border-box;border-radius:12px;color:var(--color-text-primary)}.day_BdXj.event_Bmke:before{content:"";display:block;position:absolute;bottom:2px;width:6px;height:6px;border-radius:50%;background:var(--calendar-marker-background)}.day_BdXj.event_Bmke.prev_YZSq:before{content:"";display:block;position:absolute;bottom:2px;width:6px;height:6px;border-radius:50%;background:var(--calendar-marker-background-past)!important}.day_BdXj.today_FjG9{font-weight:700}.day_BdXj.today_FjG9 span:after{content:"";border:1px solid var(--calendar-today-border-color);position:absolute;left:0;top:0;width:100%;height:100%;border-radius:var(--calendar-day-border-radius);box-sizing:border-box}.day_BdXj.highlighted_fg6k{color:var(--calendar-highlighted-color);background:var(--calendar-highlighted-background)}.day_BdXj.muted_h4D7{color:var(--color-text-thirdly)!important}.day_BdXj.disabled_CNZL{pointer-events:none;color:var(--calendar-disabled-color);background:var(--calendar-disabled-background);cursor:default}.day_BdXj.range_WYxl{background:var(--calendar-selected-background);border-radius:0}.day_BdXj.selected_BvMd,.day_BdXj.disabled_CNZL.selected_BvMd{background:var(--calendar-selected-background);cursor:default}.day_BdXj.rangeStart_N8rL{cursor:pointer;border-radius:12px 0 0 12px;background:var(--calendar-selected-background)}.day_BdXj.rangeEnd_z7AV{border-radius:0 12px 12px 0;background:var(--calendar-selected-background)}:is(.day_BdXj.firstDay_v7p4,.day_BdXj.lastDay_KdLV):after{transition:opacity .2s ease;content:"";position:absolute;display:block;width:100%;height:100%;opacity:0;pointer-events:none}.day_BdXj.firstDay_v7p4:after{right:100%;background:linear-gradient(270deg,var(--calendar-range-background) 0%,var(--color-specialbg-nulled) 100%)}.day_BdXj.lastDay_KdLV:after{left:100%;background:linear-gradient(270deg,var(--color-specialbg-nulled) 0%,var(--calendar-range-background) 100%)}:is(.day_BdXj.transitLeft_bGP2,.day_BdXj.transitRight_cZ-3):after{opacity:1}.day_BdXj:focus{z-index:1}.left_Hxlk .daysEnter_V89W{transform:translate(var(--calendar-day-size))}.left_Hxlk .daysEnterActive_-BRl,.left_Hxlk .daysExit_7nlJ{transform:translate(0)}.left_Hxlk .daysExitActive_i-vH,.right_6H99 .daysEnter_V89W{transform:translate(calc(-1 * var(--calendar-day-size)))}.right_6H99 .daysEnterActive_-BRl,.right_6H99 .daysExit_7nlJ{transform:translate(0)}.right_6H99 .daysExitActive_i-vH{transform:translate(var(--calendar-day-size))}.daysEnter_V89W{opacity:0;position:absolute;left:0}.daysEnterActive_-BRl{opacity:1}.daysExit_7nlJ{pointer-events:none;opacity:1}.daysExitActive_i-vH{opacity:0}.daysEnterActive_-BRl,.daysExitActive_i-vH{transition:opacity .3s,transform .3s}
|
|
1
|
+
:root{--text-primary-color: var(--color-text-primary);--text-secondary-color: var(--color-text-secondary);--text-tertiary-color: var(--color-text-tertiary);--border-radius: 4px;--focus-color: var(--color-border-link);--font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, sans-serif;--disabled-cursor: not-allowed;--arrow-transform: rotate(180deg)}:root{--shadow-info-block: 0px 4px 4px rgba(0, 0, 0, .25);--shadow-xs: 0 0 4px rgba(11, 31, 53, .02), 0 2px 4px rgba(11, 31, 53, .04);--shadow-s: 0 0 8px rgba(11, 31, 53, .04), 0 4px 8px rgba(11, 31, 53, .08);--shadow-m: 0 0 16px rgba(11, 31, 53, .08), 0 8px 16px rgba(11, 31, 53, .16);--shadow-l: 0 0 24px rgba(11, 31, 53, .12), 0 12px 24px rgba(11, 31, 53, .24);--shadow-xl: 0 0 32px rgba(11, 31, 53, .16), 0 16px 32px rgba(11, 31, 53, .32);--shadow-xs-hard: 0 0 4px rgba(11, 31, 53, .02), 0 2px 4px rgba(11, 31, 53, .04), 0 2px 4px rgba(11, 31, 53, .16);--shadow-s-hard: 0 0 8px rgba(11, 31, 53, .04), 0 4px 8px rgba(11, 31, 53, .08), 0 4px 8px rgba(11, 31, 53, .16);--shadow-m-hard: 0 0 16px rgba(11, 31, 53, .08), 0 8px 16px rgba(11, 31, 53, .16), 0 8px 16px rgba(11, 31, 53, .16);--shadow-l-hard: 0 0 24px rgba(11, 31, 53, .12), 0 12px 24px rgba(11, 31, 53, .24), 0 12px 24px rgba(11, 31, 53, .16);--shadow-xl-hard: 0 0 32px rgba(11, 31, 53, .16), 0 16px 32px rgba(11, 31, 53, .32), 0 16px 32px rgba(11, 31, 53, .16);--shadow-xs-up: 0 0 4px rgba(11, 31, 53, .02), 0 -2px 4px rgba(11, 31, 53, .04);--shadow-s-up: 0 0 8px rgba(11, 31, 53, .04), 0 -4px 8px rgba(11, 31, 53, .08);--shadow-m-up: 0 0 16px rgba(11, 31, 53, .08), 0 -8px 16px rgba(11, 31, 53, .16);--shadow-l-up: 0 0 24px rgba(11, 31, 53, .12), 0 -12px 24px rgba(11, 31, 53, .24);--shadow-xl-up: 0 0 32px rgba(11, 31, 53, .16), 0 -16px 32px rgba(11, 31, 53, .32);--shadow-xs-hard-up: 0 0 4px rgba(11, 31, 53, .02), 0 -2px 4px rgba(11, 31, 53, .04), 0 -2px 4px rgba(11, 31, 53, .16);--shadow-s-hard-up: 0 0 8px rgba(11, 31, 53, .04), 0 -4px 8px rgba(11, 31, 53, .08), 0 -4px 8px rgba(11, 31, 53, .16);--shadow-m-hard-up: 0 0 16px rgba(11, 31, 53, .08), 0 -8px 16px rgba(11, 31, 53, .16), 0 -8px 16px rgba(11, 31, 53, .16);--shadow-l-hard-up: 0 0 24px rgba(11, 31, 53, .12), 0 -12px 24px rgba(11, 31, 53, .24), 0 -12px 24px rgba(11, 31, 53, .16);--shadow-xl-hard-up: 0 0 32px rgba(11, 31, 53, .16), 0 -16px 32px rgba(11, 31, 53, .32), 0 -16px 32px rgba(11, 31, 53, .16)}:root{--radius-s: 8px;--radius-m: 12px;--radius-l: 16px;--radius-circle: 50%}:root{--gap-2xs: 4px;--gap-xs: 8px;--gap-s: 12px;--gap-m: 16px;--gap-l: 20px;--gap-xl: 24px;--gap-xxl: 28px;--gap-2xl: 32px;--gap-3xl: 40px;--gap-4xl: 48px;--gap-5xl: 64px;--gap-6xl: 72px;--gap-7xl: 96px;--gap-8xl: 128px;--gap-2xs-neg: -4px;--gap-xs-neg: -8px;--gap-s-neg: -12px;--gap-m-neg: -16px;--gap-l-neg: -20px;--gap-xl-neg: -24px;--gap-2xl-neg: -32px;--gap-3xl-neg: -40px;--gap-4xl-neg: -48px;--gap-5xl-neg: -64px;--gap-6xl-neg: -72px;--gap-7xl-neg: -96px;--gap-8xl-neg: -128px}:root{--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif}:root{--icon-cancel-m: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%25230B1F35%22%20fill-rule%3D%22evenodd%22%20d%3D%22M21.5%2012a9.5%209.5%200%201%201-19%200%209.5%209.5%200%200%201%2019%200m-2.111%200a7.389%207.389%200%200%201-11.483%206.152L18.152%207.906A7.35%207.35%200%200%201%2019.389%2012M16.74%206.332A7.389%207.389%200%200%200%206.332%2016.741z%22%20clip-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E);--icon-alert-circle-m: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%25230B1F35%22%20fill-rule%3D%22evenodd%22%20d%3D%22M11.997%204a8%208%200%201%200%200%2016%208%208%200%200%200%200-16m-10%208c0-5.523%204.477-10%2010-10s10%204.477%2010%2010-4.477%2010-10%2010-10-4.477-10-10m10-4.55a1%201%200%200%201%201%201v4a1%201%200%201%201-2%200v-4a1%201%200%200%201%201-1m-1.05%208a1%201%200%200%201%201-1h.1a1%201%200%200%201%201%201v.1a1%201%200%200%201-1.005%201h-.1a1%201%200%200%201-.995-1z%22%20clip-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E);--icon-checkmark-circle-m: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%25230B1F35%22%20fill-rule%3D%22evenodd%22%20d%3D%22M12%204a8%208%200%201%200%200%2016%208%208%200%200%200%200-16M2%2012C2%206.477%206.477%202%2012%202s10%204.477%2010%2010-4.477%2010-10%2010S2%2017.523%202%2012m13.707-2.707a1%201%200%200%201%200%201.414l-4%204a1%201%200%200%201-1.414%200l-2-2a1%201%200%201%201%201.414-1.414L11%2012.586l3.293-3.293a1%201%200%200%201%201.414%200%22%20clip-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E);--icon-checkmark-circle-fill-m: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%25230B1F35%22%20fill-rule%3D%22evenodd%22%20d%3D%22M12%2022c5.523%200%2010-4.477%2010-10S17.523%202%2012%202%202%206.477%202%2012s4.477%2010%2010%2010m3.707-11.293a1%201%200%200%200-1.414-1.414L11%2012.586l-1.293-1.293a1%201%200%200%200-1.414%201.414l2%202a1%201%200%200%200%201.414%200z%22%20clip-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E);--icon-eye-m: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%25230B1F35%22%20fill-rule%3D%22evenodd%22%20d%3D%22M12%2010.057a1.938%201.938%200%201%200%200%203.876%201.938%201.938%200%200%200%200-3.876m-4.025%201.938a4.025%204.025%200%201%201%208.05%200%204.025%204.025%200%200%201-8.05%200%22%20clip-rule%3D%22evenodd%22%2F%3E%3Cpath%20fill%3D%22%25230B1F35%22%20fill-rule%3D%22evenodd%22%20d%3D%22M1.852%2010.774C3.5%206.796%207.422%203.995%2012%203.995s8.5%202.801%2010.148%206.78a3.2%203.2%200%200%201%200%202.44c-1.648%203.979-5.57%206.78-10.148%206.78s-8.5-2.801-10.148-6.78a3.2%203.2%200%200%201%200-2.44M12%206.082a8.9%208.9%200%200%200-8.22%205.491c-.112.27-.112.574%200%20.844a8.897%208.897%200%200%200%2016.44%200c.112-.27.112-.574%200-.844A8.9%208.9%200%200%200%2012%206.082%22%20clip-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E);--icon-close-m: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%25230B1F35%22%20fill-rule%3D%22evenodd%22%20d%3D%22M6.037%206.042a1.1%201.1%200%200%201%201.556%200L12%2010.45l4.407-4.408a1.1%201.1%200%200%201%201.556%201.556l-4.407%204.407%204.407%204.407a1.1%201.1%200%200%201-1.556%201.556L12%2013.56l-4.407%204.408a1.1%201.1%200%201%201-1.556-1.556l4.408-4.407-4.408-4.407a1.1%201.1%200%200%201%200-1.556%22%20clip-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E);--icon-chevron-back-m: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%25230B1F35%22%20fill-rule%3D%22evenodd%22%20d%3D%22M15.707%2019.705a1%201%200%200%201-1.414%200l-7-7a1%201%200%200%201%200-1.414l7-7a1%201%200%201%201%201.414%201.414l-6.293%206.293%206.293%206.293a1%201%200%200%201%200%201.414%22%20clip-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E);--icon-chevron-down-m: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%25230B1F35%22%20fill-rule%3D%22evenodd%22%20d%3D%22M19.207%207.79a1%201%200%200%201%200%201.415l-7%207a1%201%200%200%201-1.414%200l-7-7A1%201%200%200%201%205.207%207.79l6.293%206.293%206.293-6.293a1%201%200%200%201%201.414%200%22%20clip-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E);--icon-calendar-m: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%25230B1F35%22%20fill-rule%3D%22evenodd%22%20d%3D%22M7.992%202a1%201%200%200%201%201%201v1h6V3a1%201%200%200%201%202%200v1c.459%200%20.859.003%201.194.03.396.033.789.104%201.167.297a3%203%200%200%201%201.312%201.31c.193.379.264.772.296%201.167.03.374.03.828.03%201.354v9.684c0%20.526%200%20.98-.03%201.354-.032.395-.103.788-.296%201.166a3%203%200%200%201-1.312%201.311c-.378.193-.77.264-1.166.297-.374.03-.828.03-1.354.03H7.15c-.526%200-.98%200-1.354-.03-.395-.033-.788-.104-1.167-.297a3%203%200%200%201-1.31-1.311c-.193-.378-.264-.772-.297-1.167-.03-.374-.03-.83-.03-1.356V8.162c0-.528%200-.982.03-1.357.033-.395.104-.789.297-1.167a3%203%200%200%201%201.31-1.311c.379-.193.772-.264%201.168-.296.335-.028.736-.03%201.195-.031V3a1%201%200%200%201%201-1M5.959%206.024c-.271.022-.372.06-.422.085a1%201%200%200%200-.436.437c-.026.05-.063.15-.085.422-.02.249-.024.567-.024%201.032h14c0-.466-.004-.784-.024-1.033-.022-.271-.06-.372-.085-.421a1%201%200%200%200-.438-.437c-.05-.025-.15-.063-.421-.085C17.74%206%2017.368%206%2016.792%206h-9.6c-.577%200-.95%200-1.233.024M18.992%2010h-14v7.8c0%20.577%200%20.949.024%201.232.022.272.06.372.085.422a1%201%200%200%200%20.436.437c.05.025.15.063.422.085.282.023.654.024%201.23.024h9.606c.575%200%20.947%200%201.23-.024.27-.022.37-.06.42-.085.189-.096.342-.25.438-.437.025-.05.063-.15.085-.42.023-.284.024-.655.024-1.23zm-12%203a1%201%200%200%201%201-1h.002a1%201%200%200%201%201%201.023v.002a1%201%200%200%201-1.024.977h-.002a1%201%200%200%201-.976-1zm4%200a1%201%200%200%201%201-1h.002a1%201%200%200%201%201%201.023v.002a1%201%200%200%201-1.024.977h-.002a1%201%200%200%201-.976-1zm4%200a1%201%200%200%201%201-1h.002a1%201%200%200%201%201%201v.002a1%201%200%200%201-1.024%201h-.002a1%201%200%200%201-.976-1zm-8%204a1%201%200%200%201%201-1h.002a1%201%200%200%201%201%201.023v.002a1%201%200%200%201-1.024.977h-.002a1%201%200%200%201-.976-1zm4%200a1%201%200%200%201%201-1h.002a1%201%200%200%201%201%201.023v.002a1%201%200%200%201-1.024.977h-.002a1%201%200%200%201-.976-1zm4%200a1%201%200%200%201%201-1h.002a1%201%200%200%201%201%201.023v.002a1%201%200%200%201-1.024.977h-.002a1%201%200%200%201-.976-1z%22%20clip-rule%3D%22evenodd%22%2F%3E%3C%2Fsvg%3E)}:root{--calendar-width: 248px;--calendar-height: 264px;--calendar-selector-button-width: 82px;--calendar-selector-button-gap: 3px;--calendar-selector-button-outline-border-color: var(--color-border-key);--calendar-arrow-background: var(--icon-chevron-back-m);--calendar-select-icon-background: var(--icon-chevron-down-m);--calendar-header-paddings: 0 var(--gap-xs) var(--gap-xs);--calendar-month-only-header-paddings: var(--gap-m) var(--gap-2xl) var(--gap-s);--calendar-month-only-header-font-family: var(--font-family-system);--calendar-month-only-header-font-size: 16px;--calendar-month-only-header-font-weight: 400;--calendar-day-size: 40px;--calendar-day-border-radius: 4px;--calendar-today-border-color: var(--color-border-key);--calendar-highlighted-color: var(--color-text-primary);--calendar-highlighted-background: var(--color-bg-accent-light);--calendar-range-background: color-mix(in srgb, var(--color-graphic-accent) 90%, white);--calendar-range-color: var(--color-text-primary);--calendar-selected-background: var(--color-bg-accent-light);--calendar-disabled-color: var(--color-text-tertiary);--calendar-disabled-background: transparent;--calendar-marker-background: var(--color-graphic-accent);--calendar-marker-background-past: var(--color-graphic-negative)}.daysTable_rn90{position:relative}.daysTable_rn90 .daysBody_jxkT{display:flex;flex-direction:column}.daysTable_rn90 .weekRow_RtmO{display:flex}.daysTable_rn90 .daysRow_hDh-{padding:0}:is(.daysTable_rn90 .daysRowDay_B3Q4):first-child .transitLeft_bGP2{background:linear-gradient(270deg,var(--calendar-range-background) 0%,var(--color-specialbg-nulled) 100%)}:is(:is(.daysTable_rn90 .daysRowDay_B3Q4):first-child .transitLeft_bGP2):after{display:none}:is(.daysTable_rn90 .daysRowDay_B3Q4):last-child .transitRight_cZ-3{background:linear-gradient(270deg,var(--color-specialbg-nulled) 0%,var(--calendar-range-background) 100%)}:is(:is(.daysTable_rn90 .daysRowDay_B3Q4):last-child .transitRight_cZ-3):after{display:none}.daysTable_rn90 .daysRowDay_B3Q4:last-child .day_BdXj.range_WYxl,.daysTable_rn90 .daysRowDay_B3Q4:last-child .day_BdXj.rangeStart_N8rL{background:linear-gradient(270deg,rgba(255,0,0,0) 0%,var(--color-bg-accent-light) 100%)!important}.daysTable_rn90 .daysRowDay_B3Q4:first-child .day_BdXj.range_WYxl,.daysTable_rn90 .daysRowDay_B3Q4:first-child .day_BdXj.rangeEnd_z7AV{background:linear-gradient(90deg,rgba(255,0,0,0) 0%,var(--color-bg-accent-light) 100%)!important}.dayName_A3Z6{font-size:13px;line-height:16px;font-weight:400;font-family:var(--font-family);height:20px;width:32px;display:flex;justify-content:center;color:var(--color-text-secondary)}.day_BdXj{font-size:13px;line-height:16px;font-weight:400;font-family:var(--font-family);position:relative;width:32px;height:32px!important;min-height:32px!important;display:flex;align-items:center;justify-content:center;text-align:center;box-sizing:border-box;border-radius:12px;color:var(--color-text-primary)}.day_BdXj.event_Bmke:before{content:"";display:block;position:absolute;bottom:2px;width:6px;height:6px;border-radius:50%;background:var(--calendar-marker-background)}.day_BdXj.event_Bmke.prev_YZSq:before{content:"";display:block;position:absolute;bottom:2px;width:6px;height:6px;border-radius:50%;background:var(--calendar-marker-background-past)!important}.day_BdXj.today_FjG9{font-weight:700}.day_BdXj.today_FjG9 span:after{content:"";border:1px solid var(--calendar-today-border-color);position:absolute;left:0;top:0;width:100%;height:100%;border-radius:var(--calendar-day-border-radius);box-sizing:border-box}.day_BdXj.highlighted_fg6k{color:var(--calendar-highlighted-color);background:var(--calendar-highlighted-background)}.day_BdXj.muted_h4D7{color:var(--color-text-thirdly)!important}.day_BdXj.disabled_CNZL{pointer-events:none;color:var(--calendar-disabled-color);background:var(--calendar-disabled-background);cursor:default}.day_BdXj.range_WYxl{background:var(--calendar-selected-background);border-radius:0}.day_BdXj.selected_BvMd,.day_BdXj.disabled_CNZL.selected_BvMd{background:var(--calendar-selected-background);cursor:default}.day_BdXj.rangeStart_N8rL{cursor:pointer;border-radius:12px 0 0 12px;background:var(--calendar-selected-background)}.day_BdXj.rangeEnd_z7AV{border-radius:0 12px 12px 0;background:var(--calendar-selected-background)}:is(.day_BdXj.firstDay_v7p4,.day_BdXj.lastDay_KdLV):after{transition:opacity .2s ease;content:"";position:absolute;display:block;width:100%;height:100%;opacity:0;pointer-events:none}.day_BdXj.firstDay_v7p4:after{right:100%;background:linear-gradient(270deg,var(--calendar-range-background) 0%,var(--color-specialbg-nulled) 100%)}.day_BdXj.lastDay_KdLV:after{left:100%;background:linear-gradient(270deg,var(--color-specialbg-nulled) 0%,var(--calendar-range-background) 100%)}:is(.day_BdXj.transitLeft_bGP2,.day_BdXj.transitRight_cZ-3):after{opacity:1}.day_BdXj:focus{z-index:1}.left_Hxlk .daysEnter_V89W{transform:translate(var(--calendar-day-size))}.left_Hxlk .daysEnterActive_-BRl,.left_Hxlk .daysExit_7nlJ{transform:translate(0)}.left_Hxlk .daysExitActive_i-vH,.right_6H99 .daysEnter_V89W{transform:translate(calc(-1 * var(--calendar-day-size)))}.right_6H99 .daysEnterActive_-BRl,.right_6H99 .daysExit_7nlJ{transform:translate(0)}.right_6H99 .daysExitActive_i-vH{transform:translate(var(--calendar-day-size))}.daysEnter_V89W{opacity:0;position:absolute;left:0}.daysEnterActive_-BRl{opacity:1}.daysExit_7nlJ{pointer-events:none;opacity:1}.daysExitActive_i-vH{opacity:0}.daysEnterActive_-BRl,.daysExitActive_i-vH{transition:opacity .3s,transform .3s}
|