@webority/mobile-ui 0.109.3 → 0.109.5
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/canvas-kit/kit.js +517 -457
- package/dist/canvas-kit/manifest.json +1 -1
- package/dist/canvas-kit/release.json +5 -5
- package/lib/commonjs/components/Screen/Screen.js +1 -1
- package/lib/commonjs/components/Screen/ScrollHost.js +1 -0
- package/lib/commonjs/components/SortableList/SortableList.js +1 -1
- package/lib/module/components/Screen/Screen.js +1 -1
- package/lib/module/components/Screen/ScrollHost.js +1 -0
- package/lib/module/components/SortableList/SortableList.js +1 -1
- package/lib/typescript/commonjs/components/Screen/ScrollHost.d.ts +16 -0
- package/lib/typescript/module/components/Screen/ScrollHost.d.ts +16 -0
- package/package.json +6 -6
package/dist/canvas-kit/kit.js
CHANGED
|
@@ -29820,11 +29820,17 @@ var Xw = (e) => L.create({
|
|
|
29820
29820
|
gap: e.space.sm,
|
|
29821
29821
|
paddingHorizontal: e.space.md
|
|
29822
29822
|
}
|
|
29823
|
-
}), Zw =
|
|
29824
|
-
function
|
|
29823
|
+
}), Zw = i(null);
|
|
29824
|
+
function Qw() {
|
|
29825
|
+
return u(Zw);
|
|
29826
|
+
}
|
|
29827
|
+
//#endregion
|
|
29828
|
+
//#region lib/module/components/Screen/Screen.js
|
|
29829
|
+
var $w = ["top", "bottom"], eT = () => {};
|
|
29830
|
+
function tT(e) {
|
|
29825
29831
|
return s(e) ? e : e ? a(e) : null;
|
|
29826
29832
|
}
|
|
29827
|
-
var
|
|
29833
|
+
var nT = (e) => L.create({
|
|
29828
29834
|
flex: { flex: 1 },
|
|
29829
29835
|
root: {
|
|
29830
29836
|
flex: 1,
|
|
@@ -29842,18 +29848,38 @@ var eT = (e) => L.create({
|
|
|
29842
29848
|
borderTopColor: e.colors.border
|
|
29843
29849
|
}
|
|
29844
29850
|
});
|
|
29845
|
-
function
|
|
29846
|
-
let { title: t, subtitle: n, largeTitle: i = !0, onBack: a, rightActions: o, leading: s, children: c, onRefresh: u, refreshing: f = !1, footer: p, scroll: _ = !0, list: v, edges: y =
|
|
29851
|
+
function rT(e) {
|
|
29852
|
+
let { title: t, subtitle: n, largeTitle: i = !0, onBack: a, rightActions: o, leading: s, children: c, onRefresh: u, refreshing: f = !1, footer: p, scroll: _ = !0, list: v, edges: y = $w, keyboardToolbar: x = !0, bottomInset: C = 0, scrollRef: w, onScroll: E, contentContainerStyle: D, testID: O } = e, k = $n(), A = ht(), j = m(() => nT(k), [k]), [M] = g(() => new b.Value(0)), [N, ee] = g(0), P = a !== void 0, F = h(a);
|
|
29847
29853
|
F.current = a;
|
|
29848
29854
|
let I = !!(t || n || a || s || o?.length), L = i && t !== void 0, R = L && (v !== void 0 || _), z = R ? N : 0, B = p !== void 0, { refreshControl: H } = Lp({
|
|
29849
|
-
onRefresh: u ??
|
|
29855
|
+
onRefresh: u ?? eT,
|
|
29850
29856
|
refreshing: f
|
|
29851
|
-
}), te = u ? r(H, { progressViewOffset: z }) : void 0, U = h(
|
|
29852
|
-
|
|
29853
|
-
|
|
29857
|
+
}), te = u ? r(H, { progressViewOffset: z }) : void 0, U = Ze(0), W = Ze(0), G = Ze(0), K = Ze(0), Y = h(null), X = h(0), Z = h(0), ie = m(() => ({
|
|
29858
|
+
top: U,
|
|
29859
|
+
bottom: W,
|
|
29860
|
+
offset: G,
|
|
29861
|
+
maxOffset: K,
|
|
29862
|
+
scrollTo: (e) => Y.current?.scrollTo({
|
|
29863
|
+
y: e,
|
|
29864
|
+
animated: !1
|
|
29865
|
+
})
|
|
29866
|
+
}), [
|
|
29867
|
+
U,
|
|
29868
|
+
W,
|
|
29869
|
+
G,
|
|
29870
|
+
K
|
|
29871
|
+
]), ae = l((e) => {
|
|
29872
|
+
Y.current = e, typeof w == "function" ? w(e) : w && (w.current = e);
|
|
29873
|
+
}, [w]), oe = l(() => {
|
|
29874
|
+
K.value = Math.max(0, X.current - Z.current);
|
|
29875
|
+
}, [K]), se = h(E);
|
|
29876
|
+
se.current = E;
|
|
29877
|
+
let ce = m(() => b.event([{ nativeEvent: { contentOffset: { y: M } } }], {
|
|
29854
29878
|
useNativeDriver: !1,
|
|
29855
|
-
listener: (e) =>
|
|
29856
|
-
|
|
29879
|
+
listener: (e) => {
|
|
29880
|
+
G.value = e.nativeEvent.contentOffset.y, se.current?.(e);
|
|
29881
|
+
}
|
|
29882
|
+
}), [M, G]), le = l((e) => {
|
|
29857
29883
|
let { height: t } = e.nativeEvent.layout;
|
|
29858
29884
|
ee((e) => Math.max(e, t));
|
|
29859
29885
|
}, []);
|
|
@@ -29862,9 +29888,9 @@ function tT(e) {
|
|
|
29862
29888
|
let e = S.addEventListener("hardwareBackPress", () => (F.current?.(), !0));
|
|
29863
29889
|
return () => e.remove();
|
|
29864
29890
|
}, [P]);
|
|
29865
|
-
let
|
|
29891
|
+
let ue = y.includes("left") ? A.left : 0, de = y.includes("right") ? A.right : 0, fe = y.includes("bottom") ? A.bottom : 0, pe = y.includes("top") && !I ? A.top : 0, me = y.filter((e) => e !== "top" && !(e === "bottom" && B)), he = I ? q(V, {
|
|
29866
29892
|
style: R ? j.overlay : void 0,
|
|
29867
|
-
onLayout: R ?
|
|
29893
|
+
onLayout: R ? le : void 0,
|
|
29868
29894
|
children: q($m, {
|
|
29869
29895
|
title: t,
|
|
29870
29896
|
subtitle: n,
|
|
@@ -29874,7 +29900,22 @@ function tT(e) {
|
|
|
29874
29900
|
rightActions: o,
|
|
29875
29901
|
leading: s
|
|
29876
29902
|
})
|
|
29877
|
-
}) : null,
|
|
29903
|
+
}) : null, ge = R || E ? ce : void 0, _e = l(() => {
|
|
29904
|
+
Y.current?.getNativeScrollRef()?.measureInWindow((e, t, n, r) => {
|
|
29905
|
+
Z.current = r, U.value = t + z, W.value = t + r, oe();
|
|
29906
|
+
});
|
|
29907
|
+
}, [
|
|
29908
|
+
z,
|
|
29909
|
+
U,
|
|
29910
|
+
W,
|
|
29911
|
+
oe
|
|
29912
|
+
]);
|
|
29913
|
+
d(() => {
|
|
29914
|
+
_e();
|
|
29915
|
+
}, [_e]);
|
|
29916
|
+
let ve = l((e, t) => {
|
|
29917
|
+
X.current = t, oe();
|
|
29918
|
+
}, [oe]), ye;
|
|
29878
29919
|
if (v !== void 0) {
|
|
29879
29920
|
let { state: e, paging: t, ...n } = v, r = (e) => {
|
|
29880
29921
|
t?.hasMore && !t.loadingMore && t.errorMore == null && t.loadMore(), n.onEndReached?.(e);
|
|
@@ -29884,24 +29925,24 @@ function tT(e) {
|
|
|
29884
29925
|
...n,
|
|
29885
29926
|
ref: w,
|
|
29886
29927
|
refreshControl: te,
|
|
29887
|
-
onScroll:
|
|
29928
|
+
onScroll: ge,
|
|
29888
29929
|
onEndReached: t ? r : n.onEndReached,
|
|
29889
29930
|
ListEmptyComponent: e?.empty ? q(Mh, { ...e.empty }) : void 0,
|
|
29890
|
-
ListFooterComponent: t || n.ListFooterComponent ? J(re, { children: [
|
|
29931
|
+
ListFooterComponent: t || n.ListFooterComponent ? J(re, { children: [tT(n.ListFooterComponent), t ? q(lC, { paging: t }) : null] }) : void 0,
|
|
29891
29932
|
scrollEventThrottle: 16,
|
|
29892
29933
|
style: j.flex,
|
|
29893
29934
|
contentContainerStyle: [
|
|
29894
29935
|
{
|
|
29895
29936
|
paddingTop: z,
|
|
29896
|
-
paddingLeft:
|
|
29897
|
-
paddingRight:
|
|
29937
|
+
paddingLeft: ue,
|
|
29938
|
+
paddingRight: de
|
|
29898
29939
|
},
|
|
29899
|
-
{ paddingBottom: (B ? 0 :
|
|
29940
|
+
{ paddingBottom: (B ? 0 : fe) + C },
|
|
29900
29941
|
n.contentContainerStyle,
|
|
29901
29942
|
D
|
|
29902
29943
|
]
|
|
29903
29944
|
});
|
|
29904
|
-
|
|
29945
|
+
ye = e ? q(Lh, {
|
|
29905
29946
|
loading: e.loading,
|
|
29906
29947
|
error: e.error,
|
|
29907
29948
|
errorTitle: e.errorTitle,
|
|
@@ -29910,57 +29951,63 @@ function tT(e) {
|
|
|
29910
29951
|
style: [j.flex, { paddingTop: z }],
|
|
29911
29952
|
children: i
|
|
29912
29953
|
}) : i;
|
|
29913
|
-
} else
|
|
29914
|
-
|
|
29915
|
-
|
|
29916
|
-
|
|
29917
|
-
|
|
29918
|
-
|
|
29919
|
-
|
|
29920
|
-
|
|
29954
|
+
} else ye = _ ? q(Zw.Provider, {
|
|
29955
|
+
value: ie,
|
|
29956
|
+
children: J(Ux, {
|
|
29957
|
+
ref: ae,
|
|
29958
|
+
refreshControl: te,
|
|
29959
|
+
onScroll: ce,
|
|
29960
|
+
scrollEventThrottle: 16,
|
|
29961
|
+
onLayout: _e,
|
|
29962
|
+
onContentSizeChange: ve,
|
|
29963
|
+
safeAreaEdges: me,
|
|
29964
|
+
style: j.flex,
|
|
29965
|
+
contentContainerStyle: [{ paddingTop: z }, D],
|
|
29966
|
+
children: [c, C > 0 ? q(V, { style: { height: C } }) : null]
|
|
29967
|
+
})
|
|
29921
29968
|
}) : q(V, {
|
|
29922
29969
|
style: [
|
|
29923
29970
|
j.flex,
|
|
29924
29971
|
{
|
|
29925
|
-
paddingLeft:
|
|
29926
|
-
paddingRight:
|
|
29927
|
-
paddingBottom: (B ? 0 :
|
|
29972
|
+
paddingLeft: ue,
|
|
29973
|
+
paddingRight: de,
|
|
29974
|
+
paddingBottom: (B ? 0 : fe) + C
|
|
29928
29975
|
},
|
|
29929
29976
|
D
|
|
29930
29977
|
],
|
|
29931
29978
|
children: c
|
|
29932
29979
|
});
|
|
29933
|
-
let
|
|
29980
|
+
let be = B ? q(ne, {
|
|
29934
29981
|
style: [j.footer, {
|
|
29935
|
-
paddingLeft:
|
|
29936
|
-
paddingRight:
|
|
29937
|
-
paddingBottom:
|
|
29982
|
+
paddingLeft: ue,
|
|
29983
|
+
paddingRight: de,
|
|
29984
|
+
paddingBottom: fe + C
|
|
29938
29985
|
}],
|
|
29939
29986
|
children: p
|
|
29940
29987
|
}) : null;
|
|
29941
29988
|
return J(V, {
|
|
29942
29989
|
testID: O,
|
|
29943
|
-
style: [j.root, { paddingTop:
|
|
29990
|
+
style: [j.root, { paddingTop: pe }],
|
|
29944
29991
|
children: [
|
|
29945
|
-
R ? null :
|
|
29946
|
-
|
|
29947
|
-
|
|
29992
|
+
R ? null : he,
|
|
29993
|
+
ye,
|
|
29994
|
+
be,
|
|
29948
29995
|
v === void 0 ? null : c,
|
|
29949
|
-
R ?
|
|
29996
|
+
R ? he : null,
|
|
29950
29997
|
x ? q(Kx, {}) : null
|
|
29951
29998
|
]
|
|
29952
29999
|
});
|
|
29953
30000
|
}
|
|
29954
30001
|
//#endregion
|
|
29955
30002
|
//#region lib/module/components/SearchBar/highlight.js
|
|
29956
|
-
var
|
|
30003
|
+
var iT = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), aT = (e, t) => {
|
|
29957
30004
|
let n = t.trim().split(/\s+/).filter(Boolean).slice(0, 8).sort((e, t) => t.length - e.length);
|
|
29958
30005
|
if (!e || n.length === 0) return [{
|
|
29959
30006
|
text: e,
|
|
29960
30007
|
match: !1,
|
|
29961
30008
|
start: 0
|
|
29962
30009
|
}];
|
|
29963
|
-
let r = new RegExp(n.map(
|
|
30010
|
+
let r = new RegExp(n.map(iT).join("|"), "gi"), i = [], a = 0, o = r.exec(e);
|
|
29964
30011
|
for (; o !== null;) {
|
|
29965
30012
|
let t = o.index, n = t + o[0].length;
|
|
29966
30013
|
t > a && i.push({
|
|
@@ -29984,8 +30031,8 @@ var nT = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), rT = (e, t) => {
|
|
|
29984
30031
|
match: !1,
|
|
29985
30032
|
start: 0
|
|
29986
30033
|
}];
|
|
29987
|
-
},
|
|
29988
|
-
let o = $n(), s = m(() =>
|
|
30034
|
+
}, oT = (e) => typeof e == "string" ? { text: e } : e, sT = ({ scopes: e, scope: t, disabled: n, haptic: r, labels: i, onChange: a }) => {
|
|
30035
|
+
let o = $n(), s = m(() => dT(o), [o]);
|
|
29989
30036
|
return q(F, {
|
|
29990
30037
|
horizontal: !0,
|
|
29991
30038
|
showsHorizontalScrollIndicator: !1,
|
|
@@ -30001,8 +30048,8 @@ var nT = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), rT = (e, t) => {
|
|
|
30001
30048
|
containerStyle: s.scopeChip
|
|
30002
30049
|
}, e.value))
|
|
30003
30050
|
});
|
|
30004
|
-
},
|
|
30005
|
-
let s = $n(), c = m(() =>
|
|
30051
|
+
}, cT = ({ recents: e, labels: t, onSelect: n, onRemove: r, onClear: i, onHold: a, onRelease: o }) => {
|
|
30052
|
+
let s = $n(), c = m(() => dT(s), [s]);
|
|
30006
30053
|
return J(V, {
|
|
30007
30054
|
style: c.list,
|
|
30008
30055
|
children: [J(V, {
|
|
@@ -30061,8 +30108,8 @@ var nT = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), rT = (e, t) => {
|
|
|
30061
30108
|
}) : null]
|
|
30062
30109
|
}, e))]
|
|
30063
30110
|
});
|
|
30064
|
-
},
|
|
30065
|
-
let s =
|
|
30111
|
+
}, lT = c(({ item: e, query: t, onSelect: n, onHold: r, onRelease: i, theme: a, styles: o }) => {
|
|
30112
|
+
let s = aT(e.text, t), c = e.icon ? Bp(e.icon, {
|
|
30066
30113
|
size: 18,
|
|
30067
30114
|
color: a.colors["text-subtle"],
|
|
30068
30115
|
disabled: !1
|
|
@@ -30103,12 +30150,12 @@ var nT = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), rT = (e, t) => {
|
|
|
30103
30150
|
})]
|
|
30104
30151
|
});
|
|
30105
30152
|
});
|
|
30106
|
-
|
|
30107
|
-
var
|
|
30108
|
-
let a = $n(), o = m(() =>
|
|
30153
|
+
lT.displayName = "SuggestionRow";
|
|
30154
|
+
var uT = ({ suggestions: e, query: t, onSelect: n, onHold: r, onRelease: i }) => {
|
|
30155
|
+
let a = $n(), o = m(() => dT(a), [a]);
|
|
30109
30156
|
return q(V, {
|
|
30110
30157
|
style: o.list,
|
|
30111
|
-
children: e.map((e) => q(
|
|
30158
|
+
children: e.map((e) => q(lT, {
|
|
30112
30159
|
item: e,
|
|
30113
30160
|
query: t,
|
|
30114
30161
|
onSelect: n,
|
|
@@ -30118,7 +30165,7 @@ var cT = ({ suggestions: e, query: t, onSelect: n, onHold: r, onRelease: i }) =>
|
|
|
30118
30165
|
styles: o
|
|
30119
30166
|
}, e.id ?? e.text))
|
|
30120
30167
|
});
|
|
30121
|
-
},
|
|
30168
|
+
}, dT = (e) => ({
|
|
30122
30169
|
...L.create({
|
|
30123
30170
|
scopes: {
|
|
30124
30171
|
flexDirection: "row",
|
|
@@ -30170,7 +30217,7 @@ var cT = ({ suggestions: e, query: t, onSelect: n, onHold: r, onRelease: i }) =>
|
|
|
30170
30217
|
...tr(e, "bold"),
|
|
30171
30218
|
color: e.colors["text-body"]
|
|
30172
30219
|
}
|
|
30173
|
-
}),
|
|
30220
|
+
}), fT = Object.freeze({
|
|
30174
30221
|
placeholder: "Search…",
|
|
30175
30222
|
recents: "Recent searches",
|
|
30176
30223
|
clearAll: "Clear all",
|
|
@@ -30183,15 +30230,15 @@ var cT = ({ suggestions: e, query: t, onSelect: n, onHold: r, onRelease: i }) =>
|
|
|
30183
30230
|
suggestionCount: (e) => e === 1 ? "1 suggestion" : `${e} suggestions`,
|
|
30184
30231
|
removed: (e) => `Removed ${e}`,
|
|
30185
30232
|
recentsCleared: "Recent searches cleared"
|
|
30186
|
-
}),
|
|
30187
|
-
let { value: n, onChangeText: r, onSubmit: i, onFocus: a, onBlur: o, placeholder: s, autoFocus: c = !1, disabled: u = !1, onClear: f, leftIcon: p, debounceMs: _, size: v = "md", variant: y, borderRadius: b, label: x, labelMode: S = "top", labelStyle: C, scopes: w, scope: T, onScopeChange: E, recents: D, maxRecents: O =
|
|
30233
|
+
}), pT = 8, mT = o((e, t) => {
|
|
30234
|
+
let { value: n, onChangeText: r, onSubmit: i, onFocus: a, onBlur: o, placeholder: s, autoFocus: c = !1, disabled: u = !1, onClear: f, leftIcon: p, debounceMs: _, size: v = "md", variant: y, borderRadius: b, label: x, labelMode: S = "top", labelStyle: C, scopes: w, scope: T, onScopeChange: E, recents: D, maxRecents: O = pT, onSelectRecent: k, onRemove: A, onClearRecents: j, suggestions: M, maxSuggestions: N = pT, onSelect: P, haptic: F, labels: I, style: L, inputStyle: R, accessibilityLabel: B, testID: H, ...te } = e;
|
|
30188
30235
|
e.size, e.variant, e.labelMode;
|
|
30189
30236
|
let U = $n(), W = m(() => ({
|
|
30190
|
-
...
|
|
30237
|
+
...fT,
|
|
30191
30238
|
...I
|
|
30192
30239
|
}), [I]), ne = s ?? W.placeholder, G = y ?? U.settings.components["search-bar"]?.defaultVariant ?? U.settings.components.field?.defaultVariant ?? "filled", K = G === "underline", re = Jt(U, v), Y = Bt(U, U.components["search-bar"][v].radius), X = cm(U, { disabled: u }), Z = h(null), ie = m(() => Of(Z, t), [t]), ae = l(() => {
|
|
30193
30240
|
u || Z.current?.focus();
|
|
30194
|
-
}, [u]), oe = m(() =>
|
|
30241
|
+
}, [u]), oe = m(() => hT(U), [U]), se = typeof n == "string" ? n : "", [ce, le] = g(!1), ue = l((e) => {
|
|
30195
30242
|
le(!0), a?.(e);
|
|
30196
30243
|
}, [a]), de = l((e) => {
|
|
30197
30244
|
le(!1), o?.(e);
|
|
@@ -30244,7 +30291,7 @@ var cT = ({ suggestions: e, query: t, onSelect: n, onHold: r, onRelease: i }) =>
|
|
|
30244
30291
|
De(), Ee.current = setTimeout(() => Te(!1), 50);
|
|
30245
30292
|
}, [De]);
|
|
30246
30293
|
d(() => De, [De]);
|
|
30247
|
-
let Ae = !u && (ce || we), je = m(() => (D ?? []).slice(0, O), [D, O]), Me = m(() => (M ?? []).slice(0, N).map(
|
|
30294
|
+
let Ae = !u && (ce || we), je = m(() => (D ?? []).slice(0, O), [D, O]), Me = m(() => (M ?? []).slice(0, N).map(oT), [M, N]), Ne = Ae && !be && je.length > 0, Pe = Ae && be && Me.length > 0, Fe = Pe ? Me.length : 0, Ie = Fe > 0 ? W.suggestionCount(Fe) : "";
|
|
30248
30295
|
d(() => {
|
|
30249
30296
|
Ie && Df(Ie);
|
|
30250
30297
|
}, [Ie]);
|
|
@@ -30354,7 +30401,7 @@ var cT = ({ suggestions: e, query: t, onSelect: n, onHold: r, onRelease: i }) =>
|
|
|
30354
30401
|
}), Ge.node]
|
|
30355
30402
|
})
|
|
30356
30403
|
}),
|
|
30357
|
-
w && w.length > 0 ? q(
|
|
30404
|
+
w && w.length > 0 ? q(sT, {
|
|
30358
30405
|
scopes: w,
|
|
30359
30406
|
scope: xe || (w[0]?.value ?? ""),
|
|
30360
30407
|
disabled: u,
|
|
@@ -30362,7 +30409,7 @@ var cT = ({ suggestions: e, query: t, onSelect: n, onHold: r, onRelease: i }) =>
|
|
|
30362
30409
|
labels: W,
|
|
30363
30410
|
onChange: Ce
|
|
30364
30411
|
}) : null,
|
|
30365
|
-
Ne ? q(
|
|
30412
|
+
Ne ? q(cT, {
|
|
30366
30413
|
recents: je,
|
|
30367
30414
|
labels: W,
|
|
30368
30415
|
onSelect: Re,
|
|
@@ -30371,7 +30418,7 @@ var cT = ({ suggestions: e, query: t, onSelect: n, onHold: r, onRelease: i }) =>
|
|
|
30371
30418
|
onHold: Oe,
|
|
30372
30419
|
onRelease: ke
|
|
30373
30420
|
}) : null,
|
|
30374
|
-
Pe ? q(
|
|
30421
|
+
Pe ? q(uT, {
|
|
30375
30422
|
suggestions: Me,
|
|
30376
30423
|
query: ye,
|
|
30377
30424
|
onSelect: ze,
|
|
@@ -30381,8 +30428,8 @@ var cT = ({ suggestions: e, query: t, onSelect: n, onHold: r, onRelease: i }) =>
|
|
|
30381
30428
|
]
|
|
30382
30429
|
});
|
|
30383
30430
|
});
|
|
30384
|
-
|
|
30385
|
-
var
|
|
30431
|
+
mT.displayName = "SearchBar";
|
|
30432
|
+
var hT = (e) => L.create({
|
|
30386
30433
|
root: {
|
|
30387
30434
|
flexDirection: "row",
|
|
30388
30435
|
alignItems: "center",
|
|
@@ -30401,11 +30448,11 @@ var pT = (e) => L.create({
|
|
|
30401
30448
|
margin: e.space.none,
|
|
30402
30449
|
includeFontPadding: !1
|
|
30403
30450
|
}
|
|
30404
|
-
}),
|
|
30451
|
+
}), gT = Object.freeze({ required: (e) => `${e}, required` }), _T = (e) => {
|
|
30405
30452
|
let { children: t, variant: n = "title", flush: r = !1, required: i = !1, action: a, labels: o, style: s, testID: c } = e;
|
|
30406
30453
|
e.variant;
|
|
30407
30454
|
let l = $n(), u = m(() => ({
|
|
30408
|
-
...
|
|
30455
|
+
...gT,
|
|
30409
30456
|
...o
|
|
30410
30457
|
}), [o]), d = m(() => ({
|
|
30411
30458
|
marginTop: r ? 0 : l.space.lg,
|
|
@@ -30451,7 +30498,7 @@ var pT = (e) => L.create({
|
|
|
30451
30498
|
testID: a.testID
|
|
30452
30499
|
})]
|
|
30453
30500
|
}) : g;
|
|
30454
|
-
},
|
|
30501
|
+
}, vT = (e, t) => {
|
|
30455
30502
|
switch (t) {
|
|
30456
30503
|
case "primary": return e.colors.primary;
|
|
30457
30504
|
case "neutral": return e.colors["text-body"];
|
|
@@ -30460,14 +30507,14 @@ var pT = (e) => L.create({
|
|
|
30460
30507
|
case "danger": return e.colors["danger-text"];
|
|
30461
30508
|
default: return e.colors["info-text"];
|
|
30462
30509
|
}
|
|
30463
|
-
},
|
|
30510
|
+
}, yT = o((e, t) => {
|
|
30464
30511
|
let { segments: n, label: r, helperText: i, error: a, value: o, defaultValue: s, onChange: c, size: u = "md", fullWidth: f = !0, disabled: p = !1, tone: _ = "primary", variant: v = "segmented", radius: y, labelLines: x = 1, haptic: S, accessibilityLabel: C, style: w, containerStyle: T, segmentStyle: E, selectedIndicatorStyle: D, textStyle: O, labelStyle: k, testID: A } = e;
|
|
30465
30512
|
e.size, e.tone, e.variant;
|
|
30466
30513
|
let [j, M] = kp({
|
|
30467
30514
|
value: o,
|
|
30468
30515
|
defaultValue: s ?? n[0]?.value,
|
|
30469
30516
|
onChange: c
|
|
30470
|
-
}), N = $n(), P = N.components["segmented-control"], F = m(() =>
|
|
30517
|
+
}), N = $n(), P = N.components["segmented-control"], F = m(() => bT(N), [N]), I = m(() => rn(N, u), [N, u]), R = x >= 2 ? 2 : 1, z = R > 1, B = v === "segmented", H = v === "underline", te = v === "pills", U = B ? N.space[P["track-padding"]] : 0, W = Math.ceil(1.25 * I.text) * (R - 1), ne = P["underline-height"], G = N.space[P["pill-inset"]], K = typeof y == "number" ? y : y ? N.radius[y] : void 0, re = K ?? N.radius.md, Y = K === void 0 ? N.radius.sm : Math.max(K - U, 0), X = K ?? N.radius.pill, Z = K ?? N.radius.none, [ie, ae] = g(0), oe = h(It(0)).current, se = Math.max(0, n.findIndex((e) => e.value === j)), ce = ie > 0 ? (ie - 2 * U) / Math.max(n.length, 1) : 0, le = l((e, t) => {
|
|
30471
30518
|
if (t <= 0) return;
|
|
30472
30519
|
let n = t * e, r = N.motion.spring.snappy, i = b.spring(oe, {
|
|
30473
30520
|
toValue: n,
|
|
@@ -30503,7 +30550,7 @@ var pT = (e) => L.create({
|
|
|
30503
30550
|
M,
|
|
30504
30551
|
j,
|
|
30505
30552
|
S
|
|
30506
|
-
]), pe = B ? N.colors.surface : te ? N.colors["primary-soft"] : N.colors.primary, me = B ? Y : te ? X : Z, he =
|
|
30553
|
+
]), pe = B ? N.colors.surface : te ? N.colors["primary-soft"] : N.colors.primary, me = B ? Y : te ? X : Z, he = vT(N, _), ge = N.colors["bg-muted"], _e = Wp(B, re, de), ve = !0 === a || fm(a), ye = ve && !p, be = N.colors["field-border-error"], xe = N.size.border, Se = fm(r), Ce = ve ? a : i, we = fm(Ce), Te = J(V, {
|
|
30507
30554
|
ref: t,
|
|
30508
30555
|
accessibilityRole: "radiogroup",
|
|
30509
30556
|
accessibilityLabel: C ?? (typeof r == "string" ? r : void 0),
|
|
@@ -30642,8 +30689,8 @@ var pT = (e) => L.create({
|
|
|
30642
30689
|
]
|
|
30643
30690
|
}) : Te;
|
|
30644
30691
|
});
|
|
30645
|
-
|
|
30646
|
-
var
|
|
30692
|
+
yT.displayName = "SegmentedControl";
|
|
30693
|
+
var bT = (e) => L.create({
|
|
30647
30694
|
track: {
|
|
30648
30695
|
flexDirection: "row",
|
|
30649
30696
|
alignItems: "stretch",
|
|
@@ -30673,7 +30720,7 @@ var vT = (e) => L.create({
|
|
|
30673
30720
|
flexShrink: 1,
|
|
30674
30721
|
textAlign: "center"
|
|
30675
30722
|
}
|
|
30676
|
-
}),
|
|
30723
|
+
}), xT = {
|
|
30677
30724
|
placeholder: "Select…",
|
|
30678
30725
|
noSelection: "No selection",
|
|
30679
30726
|
selected: (e) => `Selected: ${e}`,
|
|
@@ -30681,19 +30728,19 @@ var vT = (e) => L.create({
|
|
|
30681
30728
|
sheetName: "Options",
|
|
30682
30729
|
searchPlaceholder: rv.searchPlaceholder,
|
|
30683
30730
|
empty: rv.empty
|
|
30684
|
-
},
|
|
30731
|
+
}, ST = (e, t) => String(e) === String(t), CT = (e, t) => e.some((e) => ST(e, t)), wT = o((e, t) => {
|
|
30685
30732
|
e.size, e.variant;
|
|
30686
30733
|
let { options: n, getOptionLabel: r, getOptionValue: i, isOptionDisabled: a, getOptionDescription: o, getOptionIcon: s, placeholder: c, onVisibleChange: u, searchable: d = !1, haptic: f, labels: p, label: h, help: _, title: v, required: y = !1, error: b, helperText: x, prefix: S, numberOfLines: C = 1, disabled: w = !1, size: T = "md", variant: E, leftIcon: D, rightIcon: O, chevronColor: k, chevronSize: A, borderRadius: j, accessibilityLabel: M, labelStyle: N, style: ee, triggerStyle: P, textStyle: F, optionStyle: I, selectedOptionStyle: L, optionTextStyle: R, selectedOptionTextStyle: z, testID: B } = e, H = !0 === e.multi, te = p ? {
|
|
30687
|
-
...
|
|
30734
|
+
...xT,
|
|
30688
30735
|
...p
|
|
30689
|
-
} :
|
|
30736
|
+
} : xT, U = l((e) => r ? r(e) : e.label ?? "", [r]), W = l((e) => i ? i(e) : e.value, [i]), ne = l((e) => a ? a(e) : !0 === e.disabled, [a]), G = l((e) => o ? o(e) : e.description, [o]), K = l((e) => s ? s(e) : e.icon, [s]), re = $n(), Y = m(() => TT(re), [re]), X = Jt(re, T), Z = cm(re, { disabled: w }), ie = E ?? re.settings.components.select?.defaultVariant ?? re.settings.components.field?.defaultVariant ?? "outline", ae = j ?? X.radius, [oe, se] = g(!1), ce = m(() => {
|
|
30690
30737
|
if (H) {
|
|
30691
30738
|
let t = e.value ?? [];
|
|
30692
|
-
return n.filter((e) =>
|
|
30739
|
+
return n.filter((e) => CT(t, W(e)));
|
|
30693
30740
|
}
|
|
30694
30741
|
let t = e.value;
|
|
30695
30742
|
if (t == null) return [];
|
|
30696
|
-
let r = n.find((e) =>
|
|
30743
|
+
let r = n.find((e) => ST(W(e), t));
|
|
30697
30744
|
return r ? [r] : [];
|
|
30698
30745
|
}, [
|
|
30699
30746
|
H,
|
|
@@ -30710,7 +30757,7 @@ var vT = (e) => L.create({
|
|
|
30710
30757
|
if (ne(t)) return;
|
|
30711
30758
|
let n = W(t), r = Cr(f, "selection");
|
|
30712
30759
|
if (r && Sr(r), H) {
|
|
30713
|
-
let t = e.value ?? [], r =
|
|
30760
|
+
let t = e.value ?? [], r = CT(t, n) ? t.filter((e) => !ST(e, n)) : [...t, n];
|
|
30714
30761
|
e.onChange(r);
|
|
30715
30762
|
return;
|
|
30716
30763
|
}
|
|
@@ -30852,8 +30899,8 @@ var vT = (e) => L.create({
|
|
|
30852
30899
|
]
|
|
30853
30900
|
});
|
|
30854
30901
|
});
|
|
30855
|
-
|
|
30856
|
-
var
|
|
30902
|
+
wT.displayName = "Select";
|
|
30903
|
+
var TT = (e) => L.create({
|
|
30857
30904
|
container: { width: "100%" },
|
|
30858
30905
|
label: { includeFontPadding: !1 },
|
|
30859
30906
|
triggerText: {
|
|
@@ -30867,34 +30914,34 @@ var CT = (e) => L.create({
|
|
|
30867
30914
|
},
|
|
30868
30915
|
prefixNode: { flexShrink: 0 },
|
|
30869
30916
|
chevron: { marginLeft: e.space.sm }
|
|
30870
|
-
}),
|
|
30917
|
+
}), ET = .7, DT = (e) => Math.round(10 * e) / 10, OT = (e, t) => [DT(e), DT(t)], kT = (e, t) => Math.hypot(e[0] - t[0], e[1] - t[1]), AT = (e) => e.toFixed(1), jT = (e) => {
|
|
30871
30918
|
if (e.length === 0) return "";
|
|
30872
|
-
let [t, ...n] = e, r = [`M${
|
|
30873
|
-
if (n.length === 0) return r.push(`L${
|
|
30874
|
-
if (n.length === 1) return r.push(`L${
|
|
30919
|
+
let [t, ...n] = e, r = [`M${AT(t[0])} ${AT(t[1])}`];
|
|
30920
|
+
if (n.length === 0) return r.push(`L${AT(t[0])} ${AT(t[1])}`), r.join(" ");
|
|
30921
|
+
if (n.length === 1) return r.push(`L${AT(n[0][0])} ${AT(n[0][1])}`), r.join(" ");
|
|
30875
30922
|
for (let e = 0; e < n.length - 1; e += 1) {
|
|
30876
30923
|
let t = n[e], i = n[e + 1], a = (t[0] + i[0]) / 2, o = (t[1] + i[1]) / 2;
|
|
30877
|
-
r.push(`Q${
|
|
30924
|
+
r.push(`Q${AT(t[0])} ${AT(t[1])} ${AT(a)} ${AT(o)}`);
|
|
30878
30925
|
}
|
|
30879
30926
|
let i = n[n.length - 1];
|
|
30880
|
-
return r.push(`L${
|
|
30881
|
-
},
|
|
30927
|
+
return r.push(`L${AT(i[0])} ${AT(i[1])}`), r.join(" ");
|
|
30928
|
+
}, MT = (e, t) => {
|
|
30882
30929
|
let n = Math.max(1, t.length), r = Math.floor(.88 * e / (.5 * n));
|
|
30883
30930
|
return Math.min(56, Math.max(18, r));
|
|
30884
|
-
},
|
|
30885
|
-
let { width: t, height: n, mode: r, strokes: i, typedName: a, ink: o, paper: s, strokeWidth: c, fontFamily: l } = e, u = Math.round(t), d = Math.round(n), f = [`<rect x="0" y="0" width="${u}" height="${d}" fill="${
|
|
30931
|
+
}, NT = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), PT = (e) => {
|
|
30932
|
+
let { width: t, height: n, mode: r, strokes: i, typedName: a, ink: o, paper: s, strokeWidth: c, fontFamily: l } = e, u = Math.round(t), d = Math.round(n), f = [`<rect x="0" y="0" width="${u}" height="${d}" fill="${NT(s)}"/>`];
|
|
30886
30933
|
if (r === "type") {
|
|
30887
30934
|
let e = a.trim();
|
|
30888
|
-
e && f.push(`<text x="${u / 2}" y="${
|
|
30889
|
-
} else for (let e of i) f.push(`<path d="${
|
|
30935
|
+
e && f.push(`<text x="${u / 2}" y="${AT(.7 * d)}" text-anchor="middle" font-family="${NT(l)}" font-size="${MT(u, e)}" fill="${NT(o)}">${NT(e)}</text>`);
|
|
30936
|
+
} else for (let e of i) f.push(`<path d="${jT(e)}" fill="none" stroke="${NT(o)}" stroke-width="${c}" stroke-linecap="round" stroke-linejoin="round"/>`);
|
|
30890
30937
|
return `<svg xmlns="http://www.w3.org/2000/svg" width="${u}" height="${d}" viewBox="0 0 ${u} ${d}">${f.join("")}</svg>`;
|
|
30891
|
-
},
|
|
30938
|
+
}, FT = (e) => {
|
|
30892
30939
|
let { File: t, Paths: n } = Mt("expo-file-system"), r = new t(n.cache, `signature-${Date.now().toString(36)}.png`);
|
|
30893
30940
|
return r.create({
|
|
30894
30941
|
intermediates: !0,
|
|
30895
30942
|
overwrite: !0
|
|
30896
30943
|
}), r.write(e, { encoding: "base64" }), r.uri;
|
|
30897
|
-
},
|
|
30944
|
+
}, IT = Object.freeze({
|
|
30898
30945
|
pad: "Signature pad",
|
|
30899
30946
|
padHint: "Draw with one finger. To sign without drawing, use the type your name action.",
|
|
30900
30947
|
caption: "Sign above the line. To start with an up or down stroke, rest your finger a moment first.",
|
|
@@ -30915,10 +30962,10 @@ var CT = (e) => L.create({
|
|
|
30915
30962
|
expand: "Expand",
|
|
30916
30963
|
done: "Done",
|
|
30917
30964
|
close: "Close"
|
|
30918
|
-
}),
|
|
30965
|
+
}), LT = 180, RT = 100, zT = { minHeight: 44 }, BT = () => N.select({
|
|
30919
30966
|
ios: "Snell Roundhand",
|
|
30920
30967
|
default: "cursive"
|
|
30921
|
-
}),
|
|
30968
|
+
}), VT = (e) => e === "cursive" ? "cursive" : `'${e}', cursive`, HT = () => {
|
|
30922
30969
|
let [e, t] = g(!1);
|
|
30923
30970
|
return d(() => {
|
|
30924
30971
|
let e = !0;
|
|
@@ -30930,33 +30977,33 @@ var CT = (e) => L.create({
|
|
|
30930
30977
|
e = !1, n.remove();
|
|
30931
30978
|
};
|
|
30932
30979
|
}, []), e;
|
|
30933
|
-
},
|
|
30934
|
-
d:
|
|
30980
|
+
}, UT = c(({ points: e, color: t }) => q(ot, {
|
|
30981
|
+
d: jT(e),
|
|
30935
30982
|
stroke: t,
|
|
30936
30983
|
strokeWidth: 2.5,
|
|
30937
30984
|
strokeLinecap: "round",
|
|
30938
30985
|
strokeLinejoin: "round",
|
|
30939
30986
|
fill: "none"
|
|
30940
30987
|
}));
|
|
30941
|
-
|
|
30942
|
-
var
|
|
30988
|
+
UT.displayName = "SignaturePadStroke";
|
|
30989
|
+
var WT = ({ mode: e, strokes: t, name: n, color: r, fontFamily: i, width: a, height: o }) => e === "draw" ? q(re, { children: t.map((e) => q(UT, {
|
|
30943
30990
|
points: e.points,
|
|
30944
30991
|
color: r
|
|
30945
30992
|
}, e.id)) }) : n ? q(ut, {
|
|
30946
30993
|
x: a / 2,
|
|
30947
|
-
y: o *
|
|
30948
|
-
fontSize:
|
|
30994
|
+
y: o * ET,
|
|
30995
|
+
fontSize: MT(a, n),
|
|
30949
30996
|
fontFamily: i,
|
|
30950
30997
|
textAnchor: "middle",
|
|
30951
30998
|
fill: r,
|
|
30952
30999
|
children: n
|
|
30953
|
-
}) : null,
|
|
30954
|
-
let { expandable: n, initialStrokes: r, onChange: i, initialTypedName: a = "", onTypedNameChange: o, defaultMode: s = "draw", onModeChange: c, onEmptyChange: u, allowTyped: p = !0, signedBy: _, signedAt: v, height: y =
|
|
31000
|
+
}) : null, GT = o((e, t) => {
|
|
31001
|
+
let { expandable: n, initialStrokes: r, onChange: i, initialTypedName: a = "", onTypedNameChange: o, defaultMode: s = "draw", onModeChange: c, onEmptyChange: u, allowTyped: p = !0, signedBy: _, signedAt: v, height: y = LT, maxNameLength: b = RT, inkColor: x, paperColor: S, scriptFontFamily: C, labels: w, haptic: T = "selection", disabled: E = !1, style: D, testID: O } = e;
|
|
30955
31002
|
e.defaultMode;
|
|
30956
|
-
let k = $n(), j = x === void 0 && S === void 0, N = j ? k.colors["text-body"] : x ?? Xn.colors["text-body"], ee = j ? k.colors.surface : S ?? Xn.colors.surface, P = j ? Xn.colors["text-body"] : N, F = j ? Xn.colors.surface : ee, I = P !== N || F !== ee, R = C ??
|
|
30957
|
-
...
|
|
31003
|
+
let k = $n(), j = x === void 0 && S === void 0, N = j ? k.colors["text-body"] : x ?? Xn.colors["text-body"], ee = j ? k.colors.surface : S ?? Xn.colors.surface, P = j ? Xn.colors["text-body"] : N, F = j ? Xn.colors.surface : ee, I = P !== N || F !== ee, R = C ?? BT(), z = m(() => ({
|
|
31004
|
+
...IT,
|
|
30958
31005
|
...w
|
|
30959
|
-
}), [w]), B =
|
|
31006
|
+
}), [w]), B = HT(), te = h(null), U = h(null), [W, ne] = g(0), [G, K] = g(() => (r ?? []).map((e, t) => ({
|
|
30960
31007
|
id: t + 1,
|
|
30961
31008
|
points: [...e]
|
|
30962
31009
|
}))), Y = h(G), X = h(G.length), Z = h(null), ie = h(null), [ae, oe] = g(p ? s : "draw"), [se, ce] = g(a), [le, ue] = g(null), fe = h(!1), { height: pe } = H(), [me, he] = g(!1), [ge, _e] = g([]), ve = h({
|
|
@@ -30983,18 +31030,18 @@ var HT = ({ mode: e, strokes: t, name: n, color: r, fontFamily: i, width: a, hei
|
|
|
30983
31030
|
ue(Date.now()), ve.current.onChange?.(Y.current.map((e) => e.points));
|
|
30984
31031
|
}, []), we = m(() => {
|
|
30985
31032
|
let e = (e) => dt.Pan().enabled(ye).runOnJS(!0).onBegin((e) => {
|
|
30986
|
-
Z.current =
|
|
31033
|
+
Z.current = OT(e.x, e.y);
|
|
30987
31034
|
}).onStart((t) => {
|
|
30988
31035
|
ie.current = e, X.current += 1;
|
|
30989
|
-
let n =
|
|
31036
|
+
let n = OT(t.x, t.y);
|
|
30990
31037
|
Se([...Y.current, {
|
|
30991
31038
|
id: X.current,
|
|
30992
31039
|
points: [Z.current ?? n, n]
|
|
30993
31040
|
}]);
|
|
30994
31041
|
}).onUpdate((t) => {
|
|
30995
31042
|
if (ie.current !== e) return;
|
|
30996
|
-
let n = Y.current[Y.current.length - 1], r =
|
|
30997
|
-
|
|
31043
|
+
let n = Y.current[Y.current.length - 1], r = OT(t.x, t.y);
|
|
31044
|
+
kT(n.points[n.points.length - 1], r) < .8 || Se([...Y.current.slice(0, -1), {
|
|
30998
31045
|
...n,
|
|
30999
31046
|
points: [...n.points, r]
|
|
31000
31047
|
}]);
|
|
@@ -31058,7 +31105,7 @@ var HT = ({ mode: e, strokes: t, name: n, color: r, fontFamily: i, width: a, hei
|
|
|
31058
31105
|
let r = Math.min(3, Math.max(1, M.get()));
|
|
31059
31106
|
n.toDataURL((n) => {
|
|
31060
31107
|
try {
|
|
31061
|
-
e(
|
|
31108
|
+
e(FT(n));
|
|
31062
31109
|
} catch (e) {
|
|
31063
31110
|
t(e);
|
|
31064
31111
|
}
|
|
@@ -31067,7 +31114,7 @@ var HT = ({ mode: e, strokes: t, name: n, color: r, fontFamily: i, width: a, hei
|
|
|
31067
31114
|
height: y * r
|
|
31068
31115
|
});
|
|
31069
31116
|
}),
|
|
31070
|
-
toSvg: () =>
|
|
31117
|
+
toSvg: () => PT({
|
|
31071
31118
|
width: Ne,
|
|
31072
31119
|
height: y,
|
|
31073
31120
|
mode: ae,
|
|
@@ -31076,7 +31123,7 @@ var HT = ({ mode: e, strokes: t, name: n, color: r, fontFamily: i, width: a, hei
|
|
|
31076
31123
|
ink: P,
|
|
31077
31124
|
paper: F,
|
|
31078
31125
|
strokeWidth: 2.5,
|
|
31079
|
-
fontFamily:
|
|
31126
|
+
fontFamily: VT(R)
|
|
31080
31127
|
}),
|
|
31081
31128
|
clear: Oe,
|
|
31082
31129
|
undo: ke,
|
|
@@ -31144,7 +31191,7 @@ var HT = ({ mode: e, strokes: t, name: n, color: r, fontFamily: i, width: a, hei
|
|
|
31144
31191
|
position: "absolute",
|
|
31145
31192
|
left: k.space.md,
|
|
31146
31193
|
right: k.space.md,
|
|
31147
|
-
top: y *
|
|
31194
|
+
top: y * ET,
|
|
31148
31195
|
height: L.hairlineWidth,
|
|
31149
31196
|
backgroundColor: N,
|
|
31150
31197
|
opacity: .3
|
|
@@ -31209,7 +31256,7 @@ var HT = ({ mode: e, strokes: t, name: n, color: r, fontFamily: i, width: a, hei
|
|
|
31209
31256
|
width: "100%",
|
|
31210
31257
|
height: "100%",
|
|
31211
31258
|
fill: F
|
|
31212
|
-
}), q(
|
|
31259
|
+
}), q(WT, {
|
|
31213
31260
|
mode: ae,
|
|
31214
31261
|
strokes: G,
|
|
31215
31262
|
name: Re,
|
|
@@ -31229,7 +31276,7 @@ var HT = ({ mode: e, strokes: t, name: n, color: r, fontFamily: i, width: a, hei
|
|
|
31229
31276
|
width: "100%",
|
|
31230
31277
|
height: "100%",
|
|
31231
31278
|
fill: ee
|
|
31232
|
-
}), q(
|
|
31279
|
+
}), q(WT, {
|
|
31233
31280
|
mode: ae,
|
|
31234
31281
|
strokes: G,
|
|
31235
31282
|
name: Re,
|
|
@@ -31273,7 +31320,7 @@ var HT = ({ mode: e, strokes: t, name: n, color: r, fontFamily: i, width: a, hei
|
|
|
31273
31320
|
variant: "ghost",
|
|
31274
31321
|
tone: "primary",
|
|
31275
31322
|
size: "md",
|
|
31276
|
-
style:
|
|
31323
|
+
style: zT,
|
|
31277
31324
|
haptic: T,
|
|
31278
31325
|
disabled: E,
|
|
31279
31326
|
onPress: Ee,
|
|
@@ -31286,7 +31333,7 @@ var HT = ({ mode: e, strokes: t, name: n, color: r, fontFamily: i, width: a, hei
|
|
|
31286
31333
|
variant: "ghost",
|
|
31287
31334
|
tone: "primary",
|
|
31288
31335
|
size: "md",
|
|
31289
|
-
style:
|
|
31336
|
+
style: zT,
|
|
31290
31337
|
haptic: T,
|
|
31291
31338
|
disabled: E,
|
|
31292
31339
|
onPress: ke,
|
|
@@ -31296,7 +31343,7 @@ var HT = ({ mode: e, strokes: t, name: n, color: r, fontFamily: i, width: a, hei
|
|
|
31296
31343
|
variant: "ghost",
|
|
31297
31344
|
tone: "primary",
|
|
31298
31345
|
size: "md",
|
|
31299
|
-
style:
|
|
31346
|
+
style: zT,
|
|
31300
31347
|
haptic: T,
|
|
31301
31348
|
disabled: E,
|
|
31302
31349
|
onPress: Oe,
|
|
@@ -31306,7 +31353,7 @@ var HT = ({ mode: e, strokes: t, name: n, color: r, fontFamily: i, width: a, hei
|
|
|
31306
31353
|
variant: "ghost",
|
|
31307
31354
|
tone: "primary",
|
|
31308
31355
|
size: "md",
|
|
31309
|
-
style:
|
|
31356
|
+
style: zT,
|
|
31310
31357
|
haptic: T,
|
|
31311
31358
|
disabled: E,
|
|
31312
31359
|
onPress: Ae,
|
|
@@ -31318,7 +31365,7 @@ var HT = ({ mode: e, strokes: t, name: n, color: r, fontFamily: i, width: a, hei
|
|
|
31318
31365
|
variant: "ghost",
|
|
31319
31366
|
tone: "primary",
|
|
31320
31367
|
size: "md",
|
|
31321
|
-
style:
|
|
31368
|
+
style: zT,
|
|
31322
31369
|
haptic: T,
|
|
31323
31370
|
disabled: E,
|
|
31324
31371
|
onPress: Oe,
|
|
@@ -31336,7 +31383,7 @@ var HT = ({ mode: e, strokes: t, name: n, color: r, fontFamily: i, width: a, hei
|
|
|
31336
31383
|
animationType: "slide",
|
|
31337
31384
|
presentationStyle: "fullScreen",
|
|
31338
31385
|
onRequestClose: je,
|
|
31339
|
-
children: J(
|
|
31386
|
+
children: J(KT, {
|
|
31340
31387
|
style: Le.expandedRoot,
|
|
31341
31388
|
children: [J(V, {
|
|
31342
31389
|
style: Le.expandedBar,
|
|
@@ -31345,7 +31392,7 @@ var HT = ({ mode: e, strokes: t, name: n, color: r, fontFamily: i, width: a, hei
|
|
|
31345
31392
|
variant: "ghost",
|
|
31346
31393
|
tone: "primary",
|
|
31347
31394
|
size: "md",
|
|
31348
|
-
style:
|
|
31395
|
+
style: zT,
|
|
31349
31396
|
haptic: T,
|
|
31350
31397
|
onPress: je,
|
|
31351
31398
|
testID: O ? `${O}-close` : void 0
|
|
@@ -31354,18 +31401,18 @@ var HT = ({ mode: e, strokes: t, name: n, color: r, fontFamily: i, width: a, hei
|
|
|
31354
31401
|
variant: "solid",
|
|
31355
31402
|
tone: "primary",
|
|
31356
31403
|
size: "md",
|
|
31357
|
-
style:
|
|
31404
|
+
style: zT,
|
|
31358
31405
|
haptic: T,
|
|
31359
31406
|
onPress: Me,
|
|
31360
31407
|
testID: O ? `${O}-done` : void 0
|
|
31361
31408
|
})]
|
|
31362
|
-
}), me ? q(
|
|
31409
|
+
}), me ? q(GT, {
|
|
31363
31410
|
expandable: !1,
|
|
31364
31411
|
defaultMode: "draw",
|
|
31365
31412
|
allowTyped: !1,
|
|
31366
31413
|
initialStrokes: ge,
|
|
31367
31414
|
onChange: _e,
|
|
31368
|
-
height: Math.max(
|
|
31415
|
+
height: Math.max(LT, pe - 200),
|
|
31369
31416
|
inkColor: x,
|
|
31370
31417
|
paperColor: S,
|
|
31371
31418
|
scriptFontFamily: C,
|
|
@@ -31378,17 +31425,17 @@ var HT = ({ mode: e, strokes: t, name: n, color: r, fontFamily: i, width: a, hei
|
|
|
31378
31425
|
]
|
|
31379
31426
|
});
|
|
31380
31427
|
});
|
|
31381
|
-
|
|
31382
|
-
var
|
|
31428
|
+
GT.displayName = "SignaturePadSurface";
|
|
31429
|
+
var KT = N.OS === "android" ? pt : V, qT = o((e, t) => q(GT, {
|
|
31383
31430
|
...e,
|
|
31384
31431
|
expandable: !0,
|
|
31385
31432
|
ref: t
|
|
31386
31433
|
}));
|
|
31387
|
-
|
|
31434
|
+
qT.displayName = "SignaturePad";
|
|
31388
31435
|
//#endregion
|
|
31389
31436
|
//#region lib/module/components/Tooltip/RichTooltipBody.js
|
|
31390
|
-
var
|
|
31391
|
-
let s = $n(), c = m(() =>
|
|
31437
|
+
var JT = ({ title: e, content: t, action: n, onAction: r, focusRef: i, actionRef: a, messageStyle: o }) => {
|
|
31438
|
+
let s = $n(), c = m(() => YT(s), [s]);
|
|
31392
31439
|
return J(V, {
|
|
31393
31440
|
style: c.card,
|
|
31394
31441
|
children: [
|
|
@@ -31419,7 +31466,7 @@ var KT = ({ title: e, content: t, action: n, onAction: r, focusRef: i, actionRef
|
|
|
31419
31466
|
}) : null
|
|
31420
31467
|
]
|
|
31421
31468
|
});
|
|
31422
|
-
},
|
|
31469
|
+
}, YT = (e) => L.create({
|
|
31423
31470
|
card: {
|
|
31424
31471
|
gap: e.space.xs,
|
|
31425
31472
|
paddingHorizontal: e.space.md,
|
|
@@ -31435,7 +31482,7 @@ var KT = ({ title: e, content: t, action: n, onAction: r, focusRef: i, actionRef
|
|
|
31435
31482
|
justifyContent: "flex-end",
|
|
31436
31483
|
marginTop: e.space.xs
|
|
31437
31484
|
}
|
|
31438
|
-
}),
|
|
31485
|
+
}), XT = (e, t, n) => Math.max(t, Math.min(e, n)), ZT = (e, t) => {
|
|
31439
31486
|
let n = {
|
|
31440
31487
|
top: e.y,
|
|
31441
31488
|
bottom: t.height - (e.y + e.height),
|
|
@@ -31443,7 +31490,7 @@ var KT = ({ title: e, content: t, action: n, onAction: r, focusRef: i, actionRef
|
|
|
31443
31490
|
right: t.width - (e.x + e.width)
|
|
31444
31491
|
}, r = Math.max(n.top, n.bottom, n.left, n.right);
|
|
31445
31492
|
return r === n.bottom ? "bottom" : r === n.top ? "top" : r === n.right ? "right" : "left";
|
|
31446
|
-
},
|
|
31493
|
+
}, QT = (e) => {
|
|
31447
31494
|
let { anchor: t, size: n, placement: r, rich: i, viewport: a, maxWidth: o, gap: s, padding: c } = e;
|
|
31448
31495
|
if (!t) return {
|
|
31449
31496
|
top: c,
|
|
@@ -31452,7 +31499,7 @@ var KT = ({ title: e, content: t, action: n, onAction: r, focusRef: i, actionRef
|
|
|
31452
31499
|
arrowOffset: 0
|
|
31453
31500
|
};
|
|
31454
31501
|
let { insets: l } = a, u = n.width || Math.min(o, a.width - 2 * c), d = n.height || 0, f = l.top + c, p = a.height - l.bottom - c - d, m;
|
|
31455
|
-
if (m = i ? r === "top" || r === "bottom" ? r : "auto" : r === "auto" ?
|
|
31502
|
+
if (m = i ? r === "top" || r === "bottom" ? r : "auto" : r === "auto" ? ZT(t, a) : r, m !== "left" && m !== "right") {
|
|
31456
31503
|
let n = ah(t, {
|
|
31457
31504
|
width: u,
|
|
31458
31505
|
height: d
|
|
@@ -31461,34 +31508,34 @@ var KT = ({ title: e, content: t, action: n, onAction: r, focusRef: i, actionRef
|
|
|
31461
31508
|
margin: c
|
|
31462
31509
|
}), r = t.x + t.width / 2;
|
|
31463
31510
|
return {
|
|
31464
|
-
top:
|
|
31511
|
+
top: XT(n.y, f, p),
|
|
31465
31512
|
left: n.x,
|
|
31466
31513
|
placement: n.placement,
|
|
31467
31514
|
arrowOffset: oh(r, n.x, u, e.arrowCornerPadding)
|
|
31468
31515
|
};
|
|
31469
31516
|
}
|
|
31470
|
-
let h = m === "left" ? t.x - u - s : t.x + t.width + s, g = a.width - l.right - c - u, _ =
|
|
31517
|
+
let h = m === "left" ? t.x - u - s : t.x + t.width + s, g = a.width - l.right - c - u, _ = XT(h, l.left + c, g), v = XT(t.y + t.height / 2 - d / 2, f, p), y = t.y + t.height / 2;
|
|
31471
31518
|
return {
|
|
31472
31519
|
top: v,
|
|
31473
31520
|
left: _,
|
|
31474
31521
|
placement: m,
|
|
31475
31522
|
arrowOffset: oh(y, v, d, e.arrowCornerPadding)
|
|
31476
31523
|
};
|
|
31477
|
-
},
|
|
31524
|
+
}, $T = Object.freeze({
|
|
31478
31525
|
close: "Close tooltip",
|
|
31479
31526
|
longPressHint: "Long press for more info",
|
|
31480
31527
|
fallbackName: "Tooltip"
|
|
31481
|
-
}),
|
|
31528
|
+
}), eE = (t) => {
|
|
31482
31529
|
let { content: n, children: r, variant: i = "plain", title: a, action: o, placement: s = "auto", visible: c, onVisibleChange: u, hideOnContentPress: f = !0, maxWidth: p, showArrow: _ = !0, accessibilityLabel: v, style: y, containerStyle: x, arrowStyle: S, messageStyle: C, labels: T, testID: E } = t;
|
|
31483
31530
|
t.variant, t.placement, t.trigger;
|
|
31484
31531
|
let D = i === "rich", O = t.trigger ?? (D ? "press" : "longPress"), k = m(() => ({
|
|
31485
|
-
|
|
31532
|
+
...$T,
|
|
31486
31533
|
...T
|
|
31487
31534
|
}), [T]), j = $n(), M = vr(), P = ht(), [F, I] = lh(), R = m(() => ({
|
|
31488
31535
|
...P,
|
|
31489
31536
|
top: F.top,
|
|
31490
31537
|
bottom: F.bottom
|
|
31491
|
-
}), [P, F]), z = H(), B = m(() =>
|
|
31538
|
+
}), [P, F]), z = H(), B = m(() => tE(j), [j]), te = j.space.sm, U = j.space.sm, W = p ?? (D ? 280 : 240), ne = O === "press" && !D, G = (j.settings.components.tooltip?.enableScaleAnimation ?? !1) && !M.reduced, K = O === "manual" || typeof c == "boolean", [Y, X] = g(!1), Z = K ? !!c : Y, [ie, ae] = g(null), [oe, se] = g({
|
|
31492
31539
|
width: 0,
|
|
31493
31540
|
height: 0
|
|
31494
31541
|
}), ce = h(null), le = h(null), ue = h(null), de = h(null), fe = h(null), pe = h(!1), me = h(!1), he = h(It(Z || !G ? 1 : .85)).current, ge = h(It(+!!Z)).current, _e = h(null), ve = h(!1), [ye, be] = g(Z), xe = l((e) => {
|
|
@@ -31576,7 +31623,7 @@ var KT = ({ title: e, content: t, action: n, onAction: r, focusRef: i, actionRef
|
|
|
31576
31623
|
width: t,
|
|
31577
31624
|
height: n
|
|
31578
31625
|
});
|
|
31579
|
-
}, Ae = m(() =>
|
|
31626
|
+
}, Ae = m(() => QT({
|
|
31580
31627
|
anchor: ie,
|
|
31581
31628
|
size: oe,
|
|
31582
31629
|
placement: s,
|
|
@@ -31698,7 +31745,7 @@ var KT = ({ title: e, content: t, action: n, onAction: r, focusRef: i, actionRef
|
|
|
31698
31745
|
y,
|
|
31699
31746
|
x
|
|
31700
31747
|
],
|
|
31701
|
-
children: [q(
|
|
31748
|
+
children: [q(JT, {
|
|
31702
31749
|
title: a,
|
|
31703
31750
|
content: n,
|
|
31704
31751
|
action: o,
|
|
@@ -31746,7 +31793,7 @@ var KT = ({ title: e, content: t, action: n, onAction: r, focusRef: i, actionRef
|
|
|
31746
31793
|
}), q(Th, {})]
|
|
31747
31794
|
})
|
|
31748
31795
|
})] });
|
|
31749
|
-
},
|
|
31796
|
+
}, tE = (e) => L.create({ tooltip: { overflow: "hidden" } }), nE = Object.freeze({
|
|
31750
31797
|
about: (e) => `About ${e}`,
|
|
31751
31798
|
decrease: "Decrease",
|
|
31752
31799
|
increase: "Increase",
|
|
@@ -31754,7 +31801,7 @@ var KT = ({ title: e, content: t, action: n, onAction: r, focusRef: i, actionRef
|
|
|
31754
31801
|
low: (e) => `${e} low`,
|
|
31755
31802
|
high: (e) => `${e} high`,
|
|
31756
31803
|
current: (e) => `${e} value`
|
|
31757
|
-
}),
|
|
31804
|
+
}), rE = 72, iE = (e) => String(e), aE = (e) => String(e).split(".")[1]?.length ?? 0, oE = ({ draft: e, error: t, disabled: n, width: r, accessibilityLabel: i, styles: a, style: o, testID: s }) => {
|
|
31758
31805
|
let c = $n(), u = Jt(c, "sm"), d = cm(c, { disabled: n }), f = h(null), p = l(() => {
|
|
31759
31806
|
n || f.current?.focus();
|
|
31760
31807
|
}, [n]);
|
|
@@ -31798,13 +31845,13 @@ var KT = ({ title: e, content: t, action: n, onAction: r, focusRef: i, actionRef
|
|
|
31798
31845
|
testID: s
|
|
31799
31846
|
})
|
|
31800
31847
|
});
|
|
31801
|
-
},
|
|
31802
|
-
let { label: n, unit: r, info: i, required: a = !1, helperText: o, error: s, min: c = 0, max: l = 100, step: u = 1, disabled: d = !1, tone: f = "primary", size: p, variant: h, haptic: g, showBubble: _ = !0, showBounds: v = !0, showInput: y = !1, showStepper: b = !1, startIcon: x, endIcon: S, startLabel: C, endLabel: w, formatValue: T =
|
|
31848
|
+
}, sE = o((e, t) => {
|
|
31849
|
+
let { label: n, unit: r, info: i, required: a = !1, helperText: o, error: s, min: c = 0, max: l = 100, step: u = 1, disabled: d = !1, tone: f = "primary", size: p, variant: h, haptic: g, showBubble: _ = !0, showBounds: v = !0, showInput: y = !1, showStepper: b = !1, startIcon: x, endIcon: S, startLabel: C, endLabel: w, formatValue: T = iE, parseInput: E, animationDuration: D, inputWidth: O = rE, labels: k, accessibilityLabel: A, style: j, labelStyle: M, boundStyle: N, sliderStyle: P, inputStyle: F, testID: I } = e;
|
|
31803
31850
|
e.tone, e.size, e.variant;
|
|
31804
31851
|
let L = m(() => ({
|
|
31805
|
-
...
|
|
31852
|
+
...nE,
|
|
31806
31853
|
...k
|
|
31807
|
-
}), [k]), R = $n(), z = m(() =>
|
|
31854
|
+
}), [k]), R = $n(), z = m(() => cE(R), [R]), B = D ?? R.motion.duration.fast, H = !0 === e.range, te = !0 === s || fm(s), U = aE(u), [W, ne] = kp({
|
|
31808
31855
|
value: e.value,
|
|
31809
31856
|
defaultValue: e.defaultValue ?? (H ? [c, l] : c),
|
|
31810
31857
|
onChange: e.onChange
|
|
@@ -31879,7 +31926,7 @@ var KT = ({ title: e, content: t, action: n, onAction: r, focusRef: i, actionRef
|
|
|
31879
31926
|
style: { color: R.colors["text-subtle"] },
|
|
31880
31927
|
children: r
|
|
31881
31928
|
}) : null,
|
|
31882
|
-
i ? q(
|
|
31929
|
+
i ? q(eE, {
|
|
31883
31930
|
content: i,
|
|
31884
31931
|
trigger: "press",
|
|
31885
31932
|
placement: "top",
|
|
@@ -31918,7 +31965,7 @@ var KT = ({ title: e, content: t, action: n, onAction: r, focusRef: i, actionRef
|
|
|
31918
31965
|
haptic: g,
|
|
31919
31966
|
testID: I ? `${I}-minus` : void 0
|
|
31920
31967
|
}) : null,
|
|
31921
|
-
H && y ? q(
|
|
31968
|
+
H && y ? q(oE, {
|
|
31922
31969
|
draft: X,
|
|
31923
31970
|
error: te,
|
|
31924
31971
|
disabled: d,
|
|
@@ -31941,7 +31988,7 @@ var KT = ({ title: e, content: t, action: n, onAction: r, focusRef: i, actionRef
|
|
|
31941
31988
|
onChange: ne
|
|
31942
31989
|
})
|
|
31943
31990
|
}),
|
|
31944
|
-
H && y ? q(
|
|
31991
|
+
H && y ? q(oE, {
|
|
31945
31992
|
draft: Z,
|
|
31946
31993
|
error: te,
|
|
31947
31994
|
disabled: d,
|
|
@@ -31967,7 +32014,7 @@ var KT = ({ title: e, content: t, action: n, onAction: r, focusRef: i, actionRef
|
|
|
31967
32014
|
testID: I ? `${I}-plus` : void 0
|
|
31968
32015
|
}) : null,
|
|
31969
32016
|
S ? q(V, { children: Bp(S, ae) }) : null,
|
|
31970
|
-
!H && y ? q(
|
|
32017
|
+
!H && y ? q(oE, {
|
|
31971
32018
|
draft: X,
|
|
31972
32019
|
error: te,
|
|
31973
32020
|
disabled: d,
|
|
@@ -31986,8 +32033,8 @@ var KT = ({ title: e, content: t, action: n, onAction: r, focusRef: i, actionRef
|
|
|
31986
32033
|
]
|
|
31987
32034
|
});
|
|
31988
32035
|
});
|
|
31989
|
-
|
|
31990
|
-
var
|
|
32036
|
+
sE.displayName = "SliderField";
|
|
32037
|
+
var cE = (e) => L.create({
|
|
31991
32038
|
container: { width: "100%" },
|
|
31992
32039
|
labelRow: {
|
|
31993
32040
|
flexDirection: "row",
|
|
@@ -32013,11 +32060,11 @@ var oE = (e) => L.create({
|
|
|
32013
32060
|
margin: e.space.none,
|
|
32014
32061
|
includeFontPadding: !1
|
|
32015
32062
|
}
|
|
32016
|
-
}),
|
|
32063
|
+
}), lE = Object.freeze({
|
|
32017
32064
|
slide: "Slide to confirm",
|
|
32018
32065
|
confirmed: "Confirmed",
|
|
32019
32066
|
confirmAction: "Confirm"
|
|
32020
|
-
}),
|
|
32067
|
+
}), uE = {
|
|
32021
32068
|
sm: {
|
|
32022
32069
|
height: 44,
|
|
32023
32070
|
pad: "xxs"
|
|
@@ -32030,7 +32077,7 @@ var oE = (e) => L.create({
|
|
|
32030
32077
|
height: 64,
|
|
32031
32078
|
pad: "sm"
|
|
32032
32079
|
}
|
|
32033
|
-
},
|
|
32080
|
+
}, dE = ({ color: e, size: t }) => q(V, { style: {
|
|
32034
32081
|
width: 0,
|
|
32035
32082
|
height: 0,
|
|
32036
32083
|
borderTopWidth: .4 * t,
|
|
@@ -32040,11 +32087,11 @@ var oE = (e) => L.create({
|
|
|
32040
32087
|
borderBottomColor: "transparent",
|
|
32041
32088
|
borderLeftColor: e,
|
|
32042
32089
|
marginLeft: .2 * t
|
|
32043
|
-
} }),
|
|
32090
|
+
} }), fE = o((t, n) => {
|
|
32044
32091
|
let { onConfirm: r, label: i, tone: a = "primary", size: o = "md", disabled: s = !1, threshold: c = .9, resetAfter: u = !1, haptic: d, icon: f, labels: p, style: _, trackStyle: v, handleStyle: y, labelStyle: b, testID: x } = t;
|
|
32045
32092
|
t.tone, t.size;
|
|
32046
32093
|
let S = m(() => ({
|
|
32047
|
-
...
|
|
32094
|
+
...lE,
|
|
32048
32095
|
...p
|
|
32049
32096
|
}), [p]), C = m(() => [{
|
|
32050
32097
|
name: "activate",
|
|
@@ -32052,7 +32099,7 @@ var oE = (e) => L.create({
|
|
|
32052
32099
|
}, {
|
|
32053
32100
|
name: "increment",
|
|
32054
32101
|
label: S.confirmAction
|
|
32055
|
-
}], [S.confirmAction]), w = $n(), T =
|
|
32102
|
+
}], [S.confirmAction]), w = $n(), T = uE[o], E = w.space[T.pad], D = T.height - 2 * E, O = m(() => pE(w, T), [w, T]), k = w.colors[a], [A, j] = g(!1), M = Ze(0), N = Ze(0), ee = Ze(0), P = h(null), F = l(() => {
|
|
32056
32103
|
let e = Cr(d, "notificationSuccess");
|
|
32057
32104
|
e && Sr(e);
|
|
32058
32105
|
}, [d]), I = l(() => {
|
|
@@ -32177,7 +32224,7 @@ var oE = (e) => L.create({
|
|
|
32177
32224
|
y,
|
|
32178
32225
|
H
|
|
32179
32226
|
],
|
|
32180
|
-
children: f ?? q(
|
|
32227
|
+
children: f ?? q(dE, {
|
|
32181
32228
|
color: k,
|
|
32182
32229
|
size: .5 * D
|
|
32183
32230
|
})
|
|
@@ -32186,8 +32233,8 @@ var oE = (e) => L.create({
|
|
|
32186
32233
|
]
|
|
32187
32234
|
});
|
|
32188
32235
|
});
|
|
32189
|
-
|
|
32190
|
-
var
|
|
32236
|
+
fE.displayName = "SlideToConfirm";
|
|
32237
|
+
var pE = (e, t) => L.create({
|
|
32191
32238
|
track: {
|
|
32192
32239
|
height: t.height,
|
|
32193
32240
|
borderRadius: e.radius.pill,
|
|
@@ -32217,52 +32264,52 @@ var dE = (e, t) => L.create({
|
|
|
32217
32264
|
alignItems: "center",
|
|
32218
32265
|
justifyContent: "center"
|
|
32219
32266
|
}
|
|
32220
|
-
}),
|
|
32267
|
+
}), mE = Object.freeze({
|
|
32221
32268
|
moveUp: "Move up",
|
|
32222
32269
|
moveDown: "Move down"
|
|
32223
|
-
}),
|
|
32270
|
+
}), hE = {
|
|
32224
32271
|
damping: 22,
|
|
32225
32272
|
stiffness: 260,
|
|
32226
32273
|
mass: 1
|
|
32227
|
-
},
|
|
32274
|
+
}, gE = {
|
|
32228
32275
|
moveUp: -1,
|
|
32229
32276
|
moveDown: 1
|
|
32230
|
-
};
|
|
32231
|
-
function
|
|
32277
|
+
}, _E = (e) => {};
|
|
32278
|
+
function vE(e, t, n) {
|
|
32232
32279
|
let r = e.slice();
|
|
32233
32280
|
if (t < 0 || t >= r.length) return r;
|
|
32234
32281
|
let [i] = r.splice(t, 1);
|
|
32235
32282
|
return r.splice(n, 0, i), r;
|
|
32236
32283
|
}
|
|
32237
|
-
function
|
|
32284
|
+
function yE(e, t) {
|
|
32238
32285
|
"worklet";
|
|
32239
32286
|
let n = 0;
|
|
32240
32287
|
for (let r = 0; r < t; r++) n += e[r] ?? 0;
|
|
32241
32288
|
return n;
|
|
32242
32289
|
}
|
|
32243
|
-
function
|
|
32290
|
+
function bE(e, t, n) {
|
|
32244
32291
|
"worklet";
|
|
32245
32292
|
let r = 0, i = 0;
|
|
32246
32293
|
for (let a = 0; a < e.length && i < n; a++) a !== t && (r += e[a] ?? 0, i++);
|
|
32247
32294
|
return r;
|
|
32248
32295
|
}
|
|
32249
|
-
function
|
|
32296
|
+
function xE(e, t, n) {
|
|
32250
32297
|
"worklet";
|
|
32251
|
-
let r =
|
|
32298
|
+
let r = yE(e, t) + (e[t] ?? 0) / 2 + n, i = 0, a = 0;
|
|
32252
32299
|
for (let n = 0; n < e.length; n++) {
|
|
32253
32300
|
let o = e[n] ?? 0;
|
|
32254
32301
|
n !== t && a + o / 2 < r && i++, a += o;
|
|
32255
32302
|
}
|
|
32256
32303
|
return i;
|
|
32257
32304
|
}
|
|
32258
|
-
function
|
|
32305
|
+
function SE(e, t, n) {
|
|
32259
32306
|
let r = [], i = 0;
|
|
32260
32307
|
for (let t of e) r.push(i), i += t;
|
|
32261
|
-
let a = e.map(() => 0), o =
|
|
32308
|
+
let a = e.map(() => 0), o = vE(e.map((e, t) => t), t, n), s = 0;
|
|
32262
32309
|
for (let t of o) a[t] = s - (r[t] ?? 0), s += e[t] ?? 0;
|
|
32263
32310
|
return a;
|
|
32264
32311
|
}
|
|
32265
|
-
var
|
|
32312
|
+
var CE = (e) => L.create({
|
|
32266
32313
|
handleRow: {
|
|
32267
32314
|
flexDirection: "row",
|
|
32268
32315
|
alignItems: "center"
|
|
@@ -32279,10 +32326,10 @@ var bE = (e) => L.create({
|
|
|
32279
32326
|
},
|
|
32280
32327
|
body: { flex: 1 }
|
|
32281
32328
|
});
|
|
32282
|
-
function
|
|
32283
|
-
let p = $n(), h = m(() =>
|
|
32329
|
+
function wE({ rowKey: e, index: t, count: n, shift: r, isActive: i, dragging: a, handle: o, disabled: s, shared: c, callbacks: l, labels: u, children: f }) {
|
|
32330
|
+
let p = $n(), h = m(() => CE(p), [p]), g = Ze(0);
|
|
32284
32331
|
d(() => {
|
|
32285
|
-
g.value = a && !i ? tt(r,
|
|
32332
|
+
g.value = a && !i ? tt(r, hE) : r;
|
|
32286
32333
|
}, [
|
|
32287
32334
|
a,
|
|
32288
32335
|
i,
|
|
@@ -32295,22 +32342,22 @@ function xE({ rowKey: e, index: t, count: n, shift: r, isActive: i, dragging: a,
|
|
|
32295
32342
|
transform: [{ translateY: i ? c.dragY.value : g.value }],
|
|
32296
32343
|
zIndex: +!!i
|
|
32297
32344
|
})), v = m(() => {
|
|
32298
|
-
let { dragIndex: e, dropTo: n, dragY: r, translation: i, absoluteY: a, scrollY: u, scrollStart: d,
|
|
32345
|
+
let { dragIndex: e, dropTo: n, dragY: r, translation: i, absoluteY: a, scrollY: u, scrollStart: d, hostOffset: f, hostStart: p, hostTarget: m, heights: h } = c, { onLift: g, onDrop: _, onSettled: v } = l, y = dt.Pan().enabled(!s).onStart(() => {
|
|
32299
32346
|
"worklet";
|
|
32300
|
-
e.value = t, n.value = t, d.value = u.value, i.value = 0, r.value = 0, He(
|
|
32347
|
+
e.value = t, n.value = t, d.value = u.value, p.value = f.value, m.value = f.value, i.value = 0, r.value = 0, He(g)(t);
|
|
32301
32348
|
}).onUpdate((n) => {
|
|
32302
32349
|
"worklet";
|
|
32303
32350
|
e.value === t && (i.value = n.translationY, a.value = n.absoluteY);
|
|
32304
32351
|
}).onFinalize(() => {
|
|
32305
32352
|
"worklet";
|
|
32306
32353
|
if (e.value !== t) return;
|
|
32307
|
-
let i = n.value, a =
|
|
32308
|
-
e.value = -1, r.value =
|
|
32354
|
+
let i = n.value, a = h.value;
|
|
32355
|
+
e.value = -1, r.value = yE(a, t) + r.value - bE(a, t, i), r.value = tt(0, hE, (e) => {
|
|
32309
32356
|
"worklet";
|
|
32310
|
-
e && He(
|
|
32311
|
-
}), He(
|
|
32357
|
+
e && He(v)();
|
|
32358
|
+
}), He(_)(t, i);
|
|
32312
32359
|
});
|
|
32313
|
-
return o ?
|
|
32360
|
+
return o ? y : y.activateAfterLongPress(350);
|
|
32314
32361
|
}, [
|
|
32315
32362
|
s,
|
|
32316
32363
|
o,
|
|
@@ -32330,7 +32377,7 @@ function xE({ rowKey: e, index: t, count: n, shift: r, isActive: i, dragging: a,
|
|
|
32330
32377
|
accessibilityActions: y,
|
|
32331
32378
|
onAccessibilityAction: (e) => {
|
|
32332
32379
|
if (s) return;
|
|
32333
|
-
let r = t + (
|
|
32380
|
+
let r = t + (gE[e.nativeEvent.actionName] ?? 0);
|
|
32334
32381
|
r !== t && r >= 0 && r < n && l.onMove(t, r);
|
|
32335
32382
|
},
|
|
32336
32383
|
testID: `sortable-row-${e}`,
|
|
@@ -32356,113 +32403,126 @@ function xE({ rowKey: e, index: t, count: n, shift: r, isActive: i, dragging: a,
|
|
|
32356
32403
|
})
|
|
32357
32404
|
});
|
|
32358
32405
|
}
|
|
32359
|
-
function
|
|
32406
|
+
function TE(e) {
|
|
32360
32407
|
let { data: t, keyExtractor: n, renderItem: r, onReorder: i, handle: a = !1, disabled: o = !1, accessibilityLabel: s, labels: c, testID: u } = e, f = m(() => ({
|
|
32361
|
-
...
|
|
32408
|
+
...mE,
|
|
32362
32409
|
...c
|
|
32363
32410
|
}), [c]), p = m(() => t.map((e, t) => ({
|
|
32364
32411
|
key: n(e, t),
|
|
32365
32412
|
item: e
|
|
32366
|
-
})), [t, n]), _ = m(() => p.map((e) => e.key), [p]), v = We(), y = Ze(0), b = Ze(0), x = Ze(0), S = Ze(0), C = Ze(-1),
|
|
32367
|
-
|
|
32368
|
-
}, [
|
|
32413
|
+
})), [t, n]), _ = m(() => p.map((e) => e.key), [p]), v = We(), y = Ze(0), b = Ze(0), x = Ze(0), S = Qw(), C = Ze(0), w = S !== null, T = S?.top ?? C, E = S?.bottom ?? C, D = S?.offset ?? C, O = S?.maxOffset ?? C, k = S?.scrollTo ?? _E, A = Ze(0), j = Ze(0), M = Ze(0), N = Ze(0), ee = Ze(-1), P = Ze(-1), F = Ze(0), I = Ze([]), L = h(/* @__PURE__ */ new Map()), R = h(_), [z, B] = g(null), V = l(() => {
|
|
32414
|
+
I.value = R.current.map((e) => L.current.get(e) ?? 0);
|
|
32415
|
+
}, [I]);
|
|
32369
32416
|
d(() => {
|
|
32370
|
-
|
|
32371
|
-
}, [_,
|
|
32372
|
-
ze(
|
|
32373
|
-
}, [
|
|
32374
|
-
let
|
|
32375
|
-
|
|
32417
|
+
R.current = _, V();
|
|
32418
|
+
}, [_, V]), d(() => () => {
|
|
32419
|
+
ze(F);
|
|
32420
|
+
}, [F]);
|
|
32421
|
+
let H = l((e) => {
|
|
32422
|
+
B((t) => t?.dragging ? {
|
|
32376
32423
|
...t,
|
|
32377
32424
|
to: e
|
|
32378
32425
|
} : t);
|
|
32379
|
-
}, []),
|
|
32426
|
+
}, []), te = Je(() => {
|
|
32380
32427
|
"worklet";
|
|
32381
|
-
let e =
|
|
32428
|
+
let e = ee.value;
|
|
32382
32429
|
if (e < 0) return;
|
|
32383
32430
|
let t = Ve(v);
|
|
32384
|
-
|
|
32385
|
-
|
|
32386
|
-
|
|
32387
|
-
|
|
32388
|
-
|
|
32431
|
+
if (t) {
|
|
32432
|
+
let e = w ? Math.max(t.pageY, T.value) : t.pageY, n = w ? Math.min(t.pageY + t.height, E.value) : t.pageY + t.height, r = Math.max(0, x.value - t.height - 1);
|
|
32433
|
+
N.value < e + 48 ? y.value > 1 ? Ue(v, 0, Math.max(0, y.value - 12), !1) : w && j.value > 0 && (j.value = Math.max(0, j.value - 12), He(k)(j.value)) : N.value > n - 48 && (y.value < r ? Ue(v, 0, Math.min(r, y.value + 12), !1) : w && j.value < O.value && (j.value = Math.min(O.value, j.value + 12), He(k)(j.value)));
|
|
32434
|
+
}
|
|
32435
|
+
F.value = M.value + y.value - b.value + D.value - A.value;
|
|
32436
|
+
let n = xE(I.value, e, F.value);
|
|
32437
|
+
n !== P.value && (P.value = n, He(H)(n));
|
|
32438
|
+
}, !1), U = l((e) => {
|
|
32439
|
+
Sr("longPress"), te.setActive(!0), B({
|
|
32389
32440
|
key: _[e] ?? "",
|
|
32390
32441
|
from: e,
|
|
32391
32442
|
to: e,
|
|
32392
32443
|
dragging: !0
|
|
32393
32444
|
});
|
|
32394
|
-
}, [
|
|
32395
|
-
|
|
32445
|
+
}, [te, _]), W = l((e, t) => {
|
|
32446
|
+
te.setActive(!1), B((e) => e && {
|
|
32396
32447
|
...e,
|
|
32397
32448
|
to: t,
|
|
32398
32449
|
dragging: !1
|
|
32399
|
-
}), t !== e && i(
|
|
32450
|
+
}), t !== e && i(vE(_, e, t));
|
|
32400
32451
|
}, [
|
|
32401
|
-
|
|
32452
|
+
te,
|
|
32402
32453
|
_,
|
|
32403
32454
|
i
|
|
32404
|
-
]),
|
|
32405
|
-
|
|
32406
|
-
}, []),
|
|
32407
|
-
i(
|
|
32408
|
-
}, [_, i]),
|
|
32409
|
-
|
|
32410
|
-
}, [
|
|
32455
|
+
]), ne = l(() => {
|
|
32456
|
+
B((e) => e && !e.dragging ? null : e);
|
|
32457
|
+
}, []), G = l((e, t) => {
|
|
32458
|
+
i(vE(_, e, t));
|
|
32459
|
+
}, [_, i]), K = l((e, t) => {
|
|
32460
|
+
L.current.set(e, t), V();
|
|
32461
|
+
}, [V]), re = Ge({ onScroll: (e) => {
|
|
32411
32462
|
"worklet";
|
|
32412
32463
|
y.value = e.contentOffset.y;
|
|
32413
|
-
} }),
|
|
32464
|
+
} }), J = l((e, t) => {
|
|
32465
|
+
x.value = t;
|
|
32466
|
+
}, [x]), Y = m(() => ({
|
|
32414
32467
|
scrollRef: v,
|
|
32415
32468
|
scrollY: y,
|
|
32416
32469
|
scrollStart: b,
|
|
32417
|
-
|
|
32418
|
-
|
|
32419
|
-
|
|
32420
|
-
|
|
32421
|
-
|
|
32422
|
-
|
|
32470
|
+
hostOffset: D,
|
|
32471
|
+
hostStart: A,
|
|
32472
|
+
hostTarget: j,
|
|
32473
|
+
translation: M,
|
|
32474
|
+
absoluteY: N,
|
|
32475
|
+
dragIndex: ee,
|
|
32476
|
+
dropTo: P,
|
|
32477
|
+
dragY: F,
|
|
32478
|
+
heights: I
|
|
32423
32479
|
}), [
|
|
32424
32480
|
v,
|
|
32425
32481
|
y,
|
|
32426
32482
|
b,
|
|
32427
|
-
|
|
32428
|
-
|
|
32429
|
-
|
|
32430
|
-
|
|
32431
|
-
|
|
32432
|
-
E
|
|
32433
|
-
]), B = m(() => ({
|
|
32434
|
-
onLift: ee,
|
|
32435
|
-
onDrop: P,
|
|
32436
|
-
onSettled: F,
|
|
32437
|
-
onMove: I,
|
|
32438
|
-
onHeight: L
|
|
32439
|
-
}), [
|
|
32483
|
+
D,
|
|
32484
|
+
A,
|
|
32485
|
+
j,
|
|
32486
|
+
M,
|
|
32487
|
+
N,
|
|
32440
32488
|
ee,
|
|
32441
32489
|
P,
|
|
32442
32490
|
F,
|
|
32443
|
-
I
|
|
32444
|
-
|
|
32445
|
-
|
|
32491
|
+
I
|
|
32492
|
+
]), X = m(() => ({
|
|
32493
|
+
onLift: U,
|
|
32494
|
+
onDrop: W,
|
|
32495
|
+
onSettled: ne,
|
|
32496
|
+
onMove: G,
|
|
32497
|
+
onHeight: K
|
|
32498
|
+
}), [
|
|
32499
|
+
U,
|
|
32500
|
+
W,
|
|
32501
|
+
ne,
|
|
32502
|
+
G,
|
|
32503
|
+
K
|
|
32504
|
+
]), Z = !0 === z?.dragging, ie = Z && z ? SE(_.map((e) => L.current.get(e) ?? 0), z.from, z.to) : null;
|
|
32446
32505
|
return q(De.ScrollView, {
|
|
32447
32506
|
ref: v,
|
|
32448
|
-
onScroll:
|
|
32507
|
+
onScroll: re,
|
|
32508
|
+
onContentSizeChange: J,
|
|
32449
32509
|
scrollEventThrottle: 16,
|
|
32450
|
-
scrollEnabled: !
|
|
32510
|
+
scrollEnabled: !Z,
|
|
32451
32511
|
accessibilityLabel: s,
|
|
32452
32512
|
testID: u,
|
|
32453
32513
|
children: p.map((e, t) => {
|
|
32454
|
-
let n =
|
|
32455
|
-
return q(
|
|
32514
|
+
let n = z?.key === e.key;
|
|
32515
|
+
return q(wE, {
|
|
32456
32516
|
rowKey: e.key,
|
|
32457
32517
|
index: t,
|
|
32458
32518
|
count: p.length,
|
|
32459
|
-
shift:
|
|
32519
|
+
shift: ie?.[t] ?? 0,
|
|
32460
32520
|
isActive: n,
|
|
32461
|
-
dragging:
|
|
32521
|
+
dragging: Z,
|
|
32462
32522
|
handle: a,
|
|
32463
32523
|
disabled: o,
|
|
32464
|
-
shared:
|
|
32465
|
-
callbacks:
|
|
32524
|
+
shared: Y,
|
|
32525
|
+
callbacks: X,
|
|
32466
32526
|
labels: f,
|
|
32467
32527
|
children: r({
|
|
32468
32528
|
item: e.item,
|
|
@@ -32473,11 +32533,11 @@ function SE(e) {
|
|
|
32473
32533
|
})
|
|
32474
32534
|
});
|
|
32475
32535
|
}
|
|
32476
|
-
|
|
32536
|
+
TE.displayName = "SortableList";
|
|
32477
32537
|
//#endregion
|
|
32478
32538
|
//#region lib/module/components/Sparkline/geometry.js
|
|
32479
|
-
var
|
|
32480
|
-
let i =
|
|
32539
|
+
var EE = (e) => e.filter((e) => Number.isFinite(e)), DE = (e) => (Math.round(100 * e) / 100).toString(), OE = (e, t, n, r) => {
|
|
32540
|
+
let i = EE(e);
|
|
32481
32541
|
if (i.length === 0 || t <= 0 || n <= 0) return {
|
|
32482
32542
|
line: "",
|
|
32483
32543
|
area: "",
|
|
@@ -32486,39 +32546,39 @@ var CE = (e) => e.filter((e) => Number.isFinite(e)), wE = (e) => (Math.round(100
|
|
|
32486
32546
|
let a = Math.min(...i), o = Math.max(...i), s = Math.max(0, t - 2 * r), c = Math.max(0, n - 2 * r), l = o - a, u = i.map((e, a) => ({
|
|
32487
32547
|
x: i.length === 1 ? t / 2 : r + a * s / (i.length - 1),
|
|
32488
32548
|
y: l === 0 ? n / 2 : r + (o - e) / l * c
|
|
32489
|
-
})), d = u.map((e, t) => `${t === 0 ? "M" : "L"}${
|
|
32549
|
+
})), d = u.map((e, t) => `${t === 0 ? "M" : "L"}${DE(e.x)} ${DE(e.y)}`).join(" "), f = u[0], p = u[u.length - 1];
|
|
32490
32550
|
return {
|
|
32491
32551
|
line: d,
|
|
32492
|
-
area: `${d} L${
|
|
32552
|
+
area: `${d} L${DE(p.x)} ${DE(n)} L${DE(f.x)} ${DE(n)} Z`,
|
|
32493
32553
|
last: p
|
|
32494
32554
|
};
|
|
32495
|
-
},
|
|
32555
|
+
}, kE = EE, AE = Object.freeze({
|
|
32496
32556
|
noData: "no data",
|
|
32497
32557
|
range: (e, t, n, r) => `from ${e} to ${t}, low ${n}, high ${r}`
|
|
32498
|
-
}),
|
|
32499
|
-
let { data: n, tone: r = "primary", color: i, fill: a = !1, highlightLast: o = !0, height: s = 32, width: c, strokeWidth: u = 2, label: d, formatLabel: f =
|
|
32558
|
+
}), jE = (e, t) => t === "neutral" ? e.colors["text-muted"] : e.colors[`${t}-text`], ME = (e) => fe(e), NE = o((e, t) => {
|
|
32559
|
+
let { data: n, tone: r = "primary", color: i, fill: a = !1, highlightLast: o = !0, height: s = 32, width: c, strokeWidth: u = 2, label: d, formatLabel: f = ME, accessibilityLabel: p, labels: h, style: _, testID: v } = e;
|
|
32500
32560
|
e.tone;
|
|
32501
32561
|
let y = m(() => ({
|
|
32502
|
-
...
|
|
32562
|
+
...AE,
|
|
32503
32563
|
...h
|
|
32504
32564
|
}), [h]), b = $n(), [x, S] = g(0), C = c ?? x, w = l((e) => {
|
|
32505
32565
|
if (c === void 0) {
|
|
32506
32566
|
let t = Math.round(e.nativeEvent.layout.width);
|
|
32507
32567
|
S((e) => e === t ? e : t);
|
|
32508
32568
|
}
|
|
32509
|
-
}, [c]), T = Math.max(3, u / 2) + 1, E = m(() =>
|
|
32569
|
+
}, [c]), T = Math.max(3, u / 2) + 1, E = m(() => OE(n, C, s, T), [
|
|
32510
32570
|
n,
|
|
32511
32571
|
C,
|
|
32512
32572
|
s,
|
|
32513
32573
|
T
|
|
32514
|
-
]), D = i ??
|
|
32574
|
+
]), D = i ?? jE(b, r);
|
|
32515
32575
|
return q(V, {
|
|
32516
32576
|
ref: t,
|
|
32517
32577
|
accessible: !0,
|
|
32518
32578
|
accessibilityRole: "image",
|
|
32519
32579
|
accessibilityLabel: m(() => {
|
|
32520
32580
|
if (p !== void 0) return p;
|
|
32521
|
-
let e =
|
|
32581
|
+
let e = kE(n), t = d ? `${d}, ` : "";
|
|
32522
32582
|
if (e.length === 0) return `${t}${y.noData}`;
|
|
32523
32583
|
if (e.length === 1) return `${t}${f(e[0])}`;
|
|
32524
32584
|
let r = f(e[0]), i = f(e[e.length - 1]), a = f(Math.min(...e)), o = f(Math.max(...e));
|
|
@@ -32533,8 +32593,8 @@ var CE = (e) => e.filter((e) => Number.isFinite(e)), wE = (e) => (Math.round(100
|
|
|
32533
32593
|
testID: v,
|
|
32534
32594
|
onLayout: w,
|
|
32535
32595
|
style: [
|
|
32536
|
-
|
|
32537
|
-
c === void 0 ?
|
|
32596
|
+
PE.root,
|
|
32597
|
+
c === void 0 ? PE.stretch : { width: c },
|
|
32538
32598
|
{ height: s },
|
|
32539
32599
|
_
|
|
32540
32600
|
],
|
|
@@ -32569,11 +32629,11 @@ var CE = (e) => e.filter((e) => Number.isFinite(e)), wE = (e) => (Math.round(100
|
|
|
32569
32629
|
})
|
|
32570
32630
|
});
|
|
32571
32631
|
});
|
|
32572
|
-
|
|
32573
|
-
var
|
|
32632
|
+
NE.displayName = "Sparkline";
|
|
32633
|
+
var PE = L.create({
|
|
32574
32634
|
root: { overflow: "hidden" },
|
|
32575
32635
|
stretch: { alignSelf: "stretch" }
|
|
32576
|
-
}),
|
|
32636
|
+
}), FE = [
|
|
32577
32637
|
"borderTopLeftRadius",
|
|
32578
32638
|
"borderTopRightRadius",
|
|
32579
32639
|
"borderBottomLeftRadius",
|
|
@@ -32594,9 +32654,9 @@ var jE = L.create({
|
|
|
32594
32654
|
"borderLeftColor",
|
|
32595
32655
|
"borderStartColor",
|
|
32596
32656
|
"borderEndColor"
|
|
32597
|
-
],
|
|
32657
|
+
], IE = (e) => {
|
|
32598
32658
|
let { borderRadius: t, backgroundColor: n, borderColor: r, borderWidth: i = 0, borderStyle: a } = e;
|
|
32599
|
-
if (typeof t != "number" || t <= 0 || e.overflow === "hidden" || (e.elevation ?? 0) > 0 || a !== void 0 && a !== "solid" ||
|
|
32659
|
+
if (typeof t != "number" || t <= 0 || e.overflow === "hidden" || (e.elevation ?? 0) > 0 || a !== void 0 && a !== "solid" || FE.some((t) => e[t] !== void 0)) return null;
|
|
32600
32660
|
let o = typeof n == "string" && n !== "transparent", s = i > 0 && typeof r == "string" && r !== "transparent";
|
|
32601
32661
|
return n !== void 0 && typeof n != "string" || i > 0 && r !== void 0 && typeof r != "string" || !o && !s ? null : {
|
|
32602
32662
|
radius: t,
|
|
@@ -32604,8 +32664,8 @@ var jE = L.create({
|
|
|
32604
32664
|
stroke: s ? r : void 0,
|
|
32605
32665
|
strokeWidth: s ? i : 0
|
|
32606
32666
|
};
|
|
32607
|
-
},
|
|
32608
|
-
let a = L.flatten(e) ?? {}, o =
|
|
32667
|
+
}, LE = o(({ style: e, children: t, onLayout: n, ...r }, i) => {
|
|
32668
|
+
let a = L.flatten(e) ?? {}, o = IE(a), s = typeof a.borderRadius == "number" ? a.borderRadius : 0, c = Wp(s > 0, s, n), l = c.active ? c.size : null, u = o !== null && l !== null;
|
|
32609
32669
|
return J(V, {
|
|
32610
32670
|
ref: i,
|
|
32611
32671
|
...r,
|
|
@@ -32613,7 +32673,7 @@ var jE = L.create({
|
|
|
32613
32673
|
style: [
|
|
32614
32674
|
s > 0 ? Q : null,
|
|
32615
32675
|
e,
|
|
32616
|
-
u ?
|
|
32676
|
+
u ? RE.hostTransparent : null
|
|
32617
32677
|
],
|
|
32618
32678
|
children: [o && l ? q(Up, {
|
|
32619
32679
|
width: l.width,
|
|
@@ -32625,52 +32685,52 @@ var jE = L.create({
|
|
|
32625
32685
|
}) : null, t]
|
|
32626
32686
|
});
|
|
32627
32687
|
});
|
|
32628
|
-
|
|
32629
|
-
var
|
|
32688
|
+
LE.displayName = "SquircleView";
|
|
32689
|
+
var RE = L.create({ hostTransparent: {
|
|
32630
32690
|
backgroundColor: "transparent",
|
|
32631
32691
|
borderColor: "transparent"
|
|
32632
|
-
} }),
|
|
32692
|
+
} }), zE = Object.freeze({
|
|
32633
32693
|
trendUp: "up",
|
|
32634
32694
|
trendDown: "down",
|
|
32635
32695
|
trendFlat: "no change"
|
|
32636
|
-
}),
|
|
32696
|
+
}), BE = (e) => typeof e == "string" || typeof e == "number", VE = {
|
|
32637
32697
|
up: "arrow-up",
|
|
32638
32698
|
down: "arrow-down",
|
|
32639
32699
|
flat: "minus"
|
|
32640
|
-
},
|
|
32700
|
+
}, HE = {
|
|
32641
32701
|
up: "+",
|
|
32642
32702
|
down: "-",
|
|
32643
32703
|
flat: ""
|
|
32644
|
-
},
|
|
32704
|
+
}, UE = (e) => pe(Math.abs(e), {
|
|
32645
32705
|
scale: "percent",
|
|
32646
32706
|
maximumFractionDigits: 1
|
|
32647
|
-
}),
|
|
32707
|
+
}), WE = (e) => typeof e.value == "number" ? `${HE[e.direction]}${UE(e.value)}` : e.value, GE = (e, t) => {
|
|
32648
32708
|
let n = [{
|
|
32649
32709
|
up: t.trendUp,
|
|
32650
32710
|
down: t.trendDown,
|
|
32651
32711
|
flat: t.trendFlat
|
|
32652
32712
|
}[e.direction]];
|
|
32653
|
-
return e.direction !== "flat" && n.push(typeof e.value == "number" ?
|
|
32654
|
-
},
|
|
32713
|
+
return e.direction !== "flat" && n.push(typeof e.value == "number" ? UE(e.value) : e.value), e.period && n.push(e.period), n.join(" ");
|
|
32714
|
+
}, KE = o((e, t) => {
|
|
32655
32715
|
let { label: n, value: r, icon: i, iconVariant: a, tone: o = "primary", caption: s, trend: c, sparkline: l, onPress: u, loading: d = !1, accessibilityLabel: f, labels: p, style: h, testID: g } = e, _ = $n();
|
|
32656
32716
|
e.tone, c?.direction, c?.goodWhen;
|
|
32657
32717
|
let v = m(() => ({
|
|
32658
|
-
...
|
|
32718
|
+
...zE,
|
|
32659
32719
|
...p
|
|
32660
|
-
}), [p]), y = c ? `, ${
|
|
32720
|
+
}), [p]), y = c ? `, ${GE(c, v)}` : "", b = f ?? (BE(r) ? `${n}, ${r}${y}` : void 0), x = !!c && c.direction === (c.goodWhen ?? "up"), S = c && c.direction !== "flat" ? x ? "success" : "danger" : "secondary", C = S === "secondary" ? _.colors["text-muted"] : _.colors[`${S}-text`];
|
|
32661
32721
|
return q(Nv, d ? {
|
|
32662
32722
|
ref: t,
|
|
32663
32723
|
variant: "outline",
|
|
32664
32724
|
style: h,
|
|
32665
32725
|
testID: g,
|
|
32666
32726
|
children: J(V, {
|
|
32667
|
-
style: [
|
|
32727
|
+
style: [qE.row, { columnGap: _.space.md }],
|
|
32668
32728
|
children: [i === void 0 ? null : q(Yf, {
|
|
32669
32729
|
shape: "circle",
|
|
32670
32730
|
width: 40,
|
|
32671
32731
|
height: 40
|
|
32672
32732
|
}), J(V, {
|
|
32673
|
-
style:
|
|
32733
|
+
style: qE.text,
|
|
32674
32734
|
children: [q(Yf, {
|
|
32675
32735
|
shape: "text",
|
|
32676
32736
|
width: "50%",
|
|
@@ -32691,13 +32751,13 @@ var FE = L.create({ hostTransparent: {
|
|
|
32691
32751
|
style: h,
|
|
32692
32752
|
testID: g,
|
|
32693
32753
|
children: J(V, {
|
|
32694
|
-
style: [
|
|
32754
|
+
style: [qE.row, { columnGap: _.space.md }],
|
|
32695
32755
|
children: [i === void 0 ? null : q(Dx, {
|
|
32696
32756
|
icon: i,
|
|
32697
32757
|
iconVariant: a,
|
|
32698
32758
|
tone: o
|
|
32699
32759
|
}), J(V, {
|
|
32700
|
-
style:
|
|
32760
|
+
style: qE.text,
|
|
32701
32761
|
children: [
|
|
32702
32762
|
q($, {
|
|
32703
32763
|
variant: "caption",
|
|
@@ -32705,31 +32765,31 @@ var FE = L.create({ hostTransparent: {
|
|
|
32705
32765
|
numberOfLines: 1,
|
|
32706
32766
|
children: n
|
|
32707
32767
|
}),
|
|
32708
|
-
|
|
32768
|
+
BE(r) ? q($, {
|
|
32709
32769
|
variant: "h3",
|
|
32710
32770
|
numberOfLines: 1,
|
|
32711
32771
|
children: r
|
|
32712
32772
|
}) : r,
|
|
32713
32773
|
c ? J(V, {
|
|
32714
|
-
style: [
|
|
32774
|
+
style: [qE.trend, { columnGap: _.space.xxs }],
|
|
32715
32775
|
testID: g ? `${g}-trend` : void 0,
|
|
32716
32776
|
children: [q(Cf, {
|
|
32717
|
-
name:
|
|
32777
|
+
name: VE[c.direction],
|
|
32718
32778
|
size: "xs",
|
|
32719
32779
|
color: C
|
|
32720
32780
|
}), J($, {
|
|
32721
32781
|
variant: "caption",
|
|
32722
32782
|
color: S,
|
|
32723
32783
|
numberOfLines: 2,
|
|
32724
|
-
style:
|
|
32725
|
-
children: [
|
|
32784
|
+
style: qE.text,
|
|
32785
|
+
children: [WE(c), c.period ? q($, {
|
|
32726
32786
|
variant: "caption",
|
|
32727
32787
|
color: "tertiary",
|
|
32728
32788
|
children: ` ${c.period}`
|
|
32729
32789
|
}) : null]
|
|
32730
32790
|
})]
|
|
32731
32791
|
}) : null,
|
|
32732
|
-
s == null || s === "" ? null :
|
|
32792
|
+
s == null || s === "" ? null : BE(s) ? q($, {
|
|
32733
32793
|
variant: "caption",
|
|
32734
32794
|
color: "tertiary",
|
|
32735
32795
|
numberOfLines: 1,
|
|
@@ -32744,8 +32804,8 @@ var FE = L.create({ hostTransparent: {
|
|
|
32744
32804
|
})
|
|
32745
32805
|
});
|
|
32746
32806
|
});
|
|
32747
|
-
|
|
32748
|
-
var
|
|
32807
|
+
KE.displayName = "StatTile";
|
|
32808
|
+
var qE = L.create({
|
|
32749
32809
|
row: {
|
|
32750
32810
|
flexDirection: "row",
|
|
32751
32811
|
alignItems: "center"
|
|
@@ -32758,7 +32818,7 @@ var WE = L.create({
|
|
|
32758
32818
|
flexDirection: "row",
|
|
32759
32819
|
alignItems: "center"
|
|
32760
32820
|
}
|
|
32761
|
-
}),
|
|
32821
|
+
}), JE = {
|
|
32762
32822
|
sm: {
|
|
32763
32823
|
height: 22,
|
|
32764
32824
|
paddingX: "sm",
|
|
@@ -32771,15 +32831,15 @@ var WE = L.create({
|
|
|
32771
32831
|
dot: 6,
|
|
32772
32832
|
gap: "xs"
|
|
32773
32833
|
}
|
|
32774
|
-
},
|
|
32775
|
-
let n =
|
|
32834
|
+
}, YE = (e, t) => {
|
|
32835
|
+
let n = JE[t];
|
|
32776
32836
|
return {
|
|
32777
32837
|
height: n.height,
|
|
32778
32838
|
paddingH: e.space[n.paddingX],
|
|
32779
32839
|
dot: n.dot,
|
|
32780
32840
|
gap: e.space[n.gap]
|
|
32781
32841
|
};
|
|
32782
|
-
},
|
|
32842
|
+
}, XE = (e, t) => {
|
|
32783
32843
|
let { colors: n } = e;
|
|
32784
32844
|
switch (t) {
|
|
32785
32845
|
case "success": return {
|
|
@@ -32813,8 +32873,8 @@ var WE = L.create({
|
|
|
32813
32873
|
ink: n["text-muted"]
|
|
32814
32874
|
};
|
|
32815
32875
|
}
|
|
32816
|
-
},
|
|
32817
|
-
let i =
|
|
32876
|
+
}, ZE = (e) => typeof e == "string" && /^#[0-9a-f]{6}$/i.test(e), QE = (e, t, n, r) => {
|
|
32877
|
+
let i = ZE(r), { base: a, on: o, ink: s } = i ? {
|
|
32818
32878
|
base: r,
|
|
32819
32879
|
on: e.colors["text-inverse"],
|
|
32820
32880
|
ink: In(r, [
|
|
@@ -32822,7 +32882,7 @@ var WE = L.create({
|
|
|
32822
32882
|
e.colors["bg-subtle"],
|
|
32823
32883
|
e.colors["bg-muted"]
|
|
32824
32884
|
], e.mode)
|
|
32825
|
-
} :
|
|
32885
|
+
} : XE(e, t), c = !i && t === "neutral", l = c ? e.colors["bg-muted"] : Sn(a, .14, e.colors["bg-subtle"]), u = c ? e.colors.border : Sn(a, .4, a);
|
|
32826
32886
|
switch (n) {
|
|
32827
32887
|
case "solid": return {
|
|
32828
32888
|
fill: a,
|
|
@@ -32855,23 +32915,23 @@ var WE = L.create({
|
|
|
32855
32915
|
dot: a
|
|
32856
32916
|
};
|
|
32857
32917
|
}
|
|
32858
|
-
},
|
|
32918
|
+
}, $E = o((e, t) => {
|
|
32859
32919
|
let { label: n, tone: r = "neutral", variant: i = "soft", size: a = "md", dot: o = !1, color: s, loading: c = !1, accessibilityLabel: l, style: u, textStyle: d, testID: f } = e;
|
|
32860
32920
|
e.tone, e.variant, e.size;
|
|
32861
|
-
let p = $n(), h =
|
|
32921
|
+
let p = $n(), h = YE(p, a), g = m(() => QE(p, r, i, s), [
|
|
32862
32922
|
p,
|
|
32863
32923
|
r,
|
|
32864
32924
|
i,
|
|
32865
32925
|
s
|
|
32866
32926
|
]);
|
|
32867
|
-
return c ? q(
|
|
32927
|
+
return c ? q(eD, { ...e }) : J(V, {
|
|
32868
32928
|
ref: t,
|
|
32869
32929
|
accessible: !0,
|
|
32870
32930
|
accessibilityRole: "text",
|
|
32871
32931
|
accessibilityLabel: l ?? n,
|
|
32872
32932
|
testID: f,
|
|
32873
32933
|
style: [
|
|
32874
|
-
|
|
32934
|
+
tD.base,
|
|
32875
32935
|
{
|
|
32876
32936
|
minHeight: h.height,
|
|
32877
32937
|
paddingHorizontal: h.paddingH,
|
|
@@ -32896,7 +32956,7 @@ var WE = L.create({
|
|
|
32896
32956
|
variant: a === "sm" ? "caption" : "bodySmall",
|
|
32897
32957
|
weight: "semibold",
|
|
32898
32958
|
style: [
|
|
32899
|
-
|
|
32959
|
+
tD.label,
|
|
32900
32960
|
{ color: g.text },
|
|
32901
32961
|
d
|
|
32902
32962
|
],
|
|
@@ -32905,18 +32965,18 @@ var WE = L.create({
|
|
|
32905
32965
|
})]
|
|
32906
32966
|
});
|
|
32907
32967
|
});
|
|
32908
|
-
|
|
32909
|
-
var
|
|
32910
|
-
let i =
|
|
32968
|
+
$E.displayName = "StatusBadge";
|
|
32969
|
+
var eD = ({ label: e, size: t = "md", dot: n, style: r }) => {
|
|
32970
|
+
let i = YE($n(), t);
|
|
32911
32971
|
return q(Yf, {
|
|
32912
32972
|
width: Math.max(32, Math.min(120, 6.5 * (e ?? "").length)) + 2 * i.paddingH + (n ? i.dot + i.gap : 0),
|
|
32913
32973
|
height: i.height,
|
|
32914
32974
|
radius: i.height / 2,
|
|
32915
|
-
style: [
|
|
32975
|
+
style: [tD.skeleton, r]
|
|
32916
32976
|
});
|
|
32917
32977
|
};
|
|
32918
|
-
|
|
32919
|
-
var
|
|
32978
|
+
eD.displayName = "StatusBadgeSkeleton", $E.Skeleton = eD;
|
|
32979
|
+
var tD = L.create({
|
|
32920
32980
|
base: {
|
|
32921
32981
|
alignSelf: "flex-start",
|
|
32922
32982
|
flexDirection: "row",
|
|
@@ -32929,7 +32989,7 @@ var QE = L.create({
|
|
|
32929
32989
|
textAlignVertical: "center"
|
|
32930
32990
|
},
|
|
32931
32991
|
skeleton: { alignSelf: "flex-start" }
|
|
32932
|
-
}),
|
|
32992
|
+
}), nD = Object.freeze({
|
|
32933
32993
|
step: (e, t, n, r) => `Step ${e} of ${t}, ${n}, ${r}`,
|
|
32934
32994
|
statusComplete: "complete",
|
|
32935
32995
|
statusActive: "active",
|
|
@@ -32938,7 +32998,7 @@ var QE = L.create({
|
|
|
32938
32998
|
progressDone: (e, t) => `Progress: ${e} of ${t} steps done`,
|
|
32939
32999
|
captionStep: (e, t, n) => `Step ${e} of ${t}${n ? ` · ${n}` : ""}`,
|
|
32940
33000
|
captionDone: (e, t) => `${e} of ${t} done`
|
|
32941
|
-
}),
|
|
33001
|
+
}), rD = (e, t) => {
|
|
32942
33002
|
switch (t) {
|
|
32943
33003
|
case "success": return e.colors.success;
|
|
32944
33004
|
case "warning": return e.colors.warning;
|
|
@@ -32947,7 +33007,7 @@ var QE = L.create({
|
|
|
32947
33007
|
case "neutral": return e.colors.neutral;
|
|
32948
33008
|
default: return e.colors.primary;
|
|
32949
33009
|
}
|
|
32950
|
-
},
|
|
33010
|
+
}, iD = (e, t) => {
|
|
32951
33011
|
switch (t) {
|
|
32952
33012
|
case "success": return e.colors["on-success"];
|
|
32953
33013
|
case "warning": return e.colors["on-warning"];
|
|
@@ -32956,13 +33016,13 @@ var QE = L.create({
|
|
|
32956
33016
|
case "neutral": return e.colors["on-neutral"];
|
|
32957
33017
|
default: return e.colors["on-primary"];
|
|
32958
33018
|
}
|
|
32959
|
-
},
|
|
33019
|
+
}, aD = (e, t) => {
|
|
32960
33020
|
switch (t) {
|
|
32961
33021
|
case "complete": return e.statusComplete;
|
|
32962
33022
|
case "active": return e.statusActive;
|
|
32963
33023
|
default: return e.statusUpcoming;
|
|
32964
33024
|
}
|
|
32965
|
-
},
|
|
33025
|
+
}, oD = ({ index: e, step: t, status: n, toneColor: r, upcomingColor: i, upcomingFillColor: a, textOnColor: o, upcomingTextColor: s, interactive: c, canPress: l, totalSteps: u, onPress: f, pulseEnabled: p, labels: m, circleStyles: g, circleSlotStyle: _ }) => {
|
|
32966
33026
|
let v = n === "active", y = $n(), x = h(It(1)).current, S = h(It(.5)).current;
|
|
32967
33027
|
d(() => {
|
|
32968
33028
|
if (!v || !p) return x.setValue(1), void S.setValue(0);
|
|
@@ -32992,7 +33052,7 @@ var QE = L.create({
|
|
|
32992
33052
|
S,
|
|
32993
33053
|
p
|
|
32994
33054
|
]);
|
|
32995
|
-
let C = n === "upcoming" ? a : r, T = n === "upcoming" ? i : r, E = n === "upcoming" ? s : o, D = n === "complete", O = m.step(e + 1, u, t.label,
|
|
33055
|
+
let C = n === "upcoming" ? a : r, T = n === "upcoming" ? i : r, E = n === "upcoming" ? s : o, D = n === "complete", O = m.step(e + 1, u, t.label, aD(m, n)), k = J(V, {
|
|
32996
33056
|
style: g.relative,
|
|
32997
33057
|
children: [v && p ? q(b.View, {
|
|
32998
33058
|
pointerEvents: "none",
|
|
@@ -33052,7 +33112,7 @@ var QE = L.create({
|
|
|
33052
33112
|
"aria-selected": v,
|
|
33053
33113
|
children: k
|
|
33054
33114
|
});
|
|
33055
|
-
},
|
|
33115
|
+
}, sD = () => L.create({
|
|
33056
33116
|
relative: {
|
|
33057
33117
|
alignItems: "center",
|
|
33058
33118
|
justifyContent: "center"
|
|
@@ -33064,13 +33124,13 @@ var QE = L.create({
|
|
|
33064
33124
|
justifyContent: "center"
|
|
33065
33125
|
},
|
|
33066
33126
|
glyph: { includeFontPadding: !1 }
|
|
33067
|
-
}),
|
|
33127
|
+
}), cD = o((e, t) => {
|
|
33068
33128
|
let { steps: n, activeStep: r, defaultActiveStep: i = 0, pressMode: a = "none", onStepPress: o, onActiveStepChange: s, variant: c = "horizontal", tone: l = "primary", formatCaption: u, showCaption: f = !0, loading: p = !1, labels: _, accessibilityLabel: v, style: y, containerStyle: x, circleStyle: S, labelStyle: C, connectorStyle: T, haptic: E, testID: D } = e;
|
|
33069
33129
|
e.variant, e.tone, e.pressMode;
|
|
33070
33130
|
let O = m(() => ({
|
|
33071
|
-
|
|
33131
|
+
...nD,
|
|
33072
33132
|
..._
|
|
33073
|
-
}), [_]), k = $n(), A = k.settings.components.stepper?.pulseAnimation ?? !1, j = Cr(E, "selection"), M = m(() =>
|
|
33133
|
+
}), [_]), k = $n(), A = k.settings.components.stepper?.pulseAnimation ?? !1, j = Cr(E, "selection"), M = m(() => dD(k), [k]), N = m(() => sD(), []), P = rD(k, l), F = k.colors.border, I = k.colors.bg, L = k.colors["text-muted"], R = iD(k, l), z = n.length, B = a !== "none", H = r !== void 0, [te, U] = g(i), W = H ? r : te, ne = W == null || W < 0 ? null : W, G = n.map((e, t) => ((e) => ne === null ? "upcoming" : e < ne ? "complete" : e === ne ? "active" : "upcoming")(t)), K = G.filter((e) => e !== "upcoming").length, re = G.filter((e) => e === "complete").length, Y = (e) => a === "back" ? e === "complete" : B, X = (e) => {
|
|
33074
33134
|
if (!Y(G[e])) return;
|
|
33075
33135
|
j && Sr(j), o?.(e);
|
|
33076
33136
|
let t = a === "select" && e === ne ? null : e;
|
|
@@ -33129,7 +33189,7 @@ var QE = L.create({
|
|
|
33129
33189
|
}) : null, q(V, {
|
|
33130
33190
|
style: M.sRow,
|
|
33131
33191
|
children: n.map((e, t) => {
|
|
33132
|
-
let n = G[t], r = O.step(t + 1, z, e.label,
|
|
33192
|
+
let n = G[t], r = O.step(t + 1, z, e.label, aD(O, n)), i = q(V, {
|
|
33133
33193
|
testID: D ? `${D}-segment-${t}` : void 0,
|
|
33134
33194
|
style: [
|
|
33135
33195
|
M.sTrack,
|
|
@@ -33184,7 +33244,7 @@ var QE = L.create({
|
|
|
33184
33244
|
style: M.vRow,
|
|
33185
33245
|
children: [J(V, {
|
|
33186
33246
|
style: M.vLeft,
|
|
33187
|
-
children: [q(
|
|
33247
|
+
children: [q(oD, {
|
|
33188
33248
|
index: t,
|
|
33189
33249
|
step: e,
|
|
33190
33250
|
status: n,
|
|
@@ -33251,7 +33311,7 @@ var QE = L.create({
|
|
|
33251
33311
|
let n = G[t];
|
|
33252
33312
|
return J(V, {
|
|
33253
33313
|
style: M.hStepItem,
|
|
33254
|
-
children: [q(
|
|
33314
|
+
children: [q(oD, {
|
|
33255
33315
|
index: t,
|
|
33256
33316
|
step: e,
|
|
33257
33317
|
status: n,
|
|
@@ -33283,11 +33343,11 @@ var QE = L.create({
|
|
|
33283
33343
|
})]
|
|
33284
33344
|
})
|
|
33285
33345
|
});
|
|
33286
|
-
return p ? q(
|
|
33346
|
+
return p ? q(lD, { ...e }) : fe;
|
|
33287
33347
|
});
|
|
33288
|
-
|
|
33289
|
-
var
|
|
33290
|
-
let o = $n(), s = m(() =>
|
|
33348
|
+
cD.displayName = "Stepper";
|
|
33349
|
+
var lD = ({ steps: e, variant: t = "horizontal", showCaption: n = !0, containerStyle: r, style: i, testID: a }) => {
|
|
33350
|
+
let o = $n(), s = m(() => dD(o), [o]), c = m(() => uD(o), [o]), l = e.length || 3;
|
|
33291
33351
|
return t === "segmented" ? J(V, {
|
|
33292
33352
|
style: [
|
|
33293
33353
|
s.container,
|
|
@@ -33395,8 +33455,8 @@ var oD = ({ steps: e, variant: t = "horizontal", showCaption: n = !0, containerS
|
|
|
33395
33455
|
})
|
|
33396
33456
|
});
|
|
33397
33457
|
};
|
|
33398
|
-
|
|
33399
|
-
var
|
|
33458
|
+
lD.displayName = "StepperSkeleton", cD.Skeleton = lD;
|
|
33459
|
+
var uD = (e) => L.create({
|
|
33400
33460
|
vCol: { flexDirection: "column" },
|
|
33401
33461
|
vRow: {
|
|
33402
33462
|
flexDirection: "row",
|
|
@@ -33408,7 +33468,7 @@ var sD = (e) => L.create({
|
|
|
33408
33468
|
paddingLeft: e.space.md,
|
|
33409
33469
|
paddingBottom: e.space.lg
|
|
33410
33470
|
}
|
|
33411
|
-
}),
|
|
33471
|
+
}), dD = (e) => L.create({
|
|
33412
33472
|
container: { width: "100%" },
|
|
33413
33473
|
hRow: {
|
|
33414
33474
|
flexDirection: "row",
|
|
@@ -33500,7 +33560,7 @@ var sD = (e) => L.create({
|
|
|
33500
33560
|
height: 4,
|
|
33501
33561
|
borderRadius: e.radius.pill
|
|
33502
33562
|
}
|
|
33503
|
-
}),
|
|
33563
|
+
}), fD = (e, t) => {
|
|
33504
33564
|
switch (t) {
|
|
33505
33565
|
case "success": return e.colors.success;
|
|
33506
33566
|
case "warning": return e.colors.warning;
|
|
@@ -33509,14 +33569,14 @@ var sD = (e) => L.create({
|
|
|
33509
33569
|
case "neutral": return e.colors.neutral;
|
|
33510
33570
|
default: return e.colors.primary;
|
|
33511
33571
|
}
|
|
33512
|
-
},
|
|
33572
|
+
}, pD = o((e, t) => {
|
|
33513
33573
|
let { value: n, defaultValue: r, onChange: i, disabled: a = !1, size: o = "md", tone: s = "primary", label: c, description: l, helperText: u, error: f, layout: p = "inline", accessibilityLabel: g, haptic: _ = "selection", bounce: v = !1, style: y, containerStyle: x, trackStyle: S, thumbStyle: C, testID: T, hitSlop: E, ...D } = e, O = $n(), k = Object.keys(O.components.switch);
|
|
33514
33574
|
e.size, e.tone, e.layout;
|
|
33515
33575
|
let [A, j] = kp({
|
|
33516
33576
|
value: n,
|
|
33517
33577
|
defaultValue: r ?? !1,
|
|
33518
33578
|
onChange: i
|
|
33519
|
-
}), M = k.includes(o) ? o : "md", N = m(() => tn(O, M), [O, M]), P = O.colors.thumb, F = m(() =>
|
|
33579
|
+
}), M = k.includes(o) ? o : "md", N = m(() => tn(O, M), [O, M]), P = O.colors.thumb, F = m(() => mD(O), [O]), I = O.mode === "dark" ? O.colors.neutral : O.colors["surface-disabled"], L = fD(O, s), R = E ?? 8, z = h(It(+!!A)).current;
|
|
33520
33580
|
d(() => {
|
|
33521
33581
|
let e = b.spring(z, {
|
|
33522
33582
|
toValue: +!!A,
|
|
@@ -33688,8 +33748,8 @@ var sD = (e) => L.create({
|
|
|
33688
33748
|
children: se
|
|
33689
33749
|
}) : se;
|
|
33690
33750
|
});
|
|
33691
|
-
|
|
33692
|
-
var
|
|
33751
|
+
pD.displayName = "Switch";
|
|
33752
|
+
var mD = (e) => L.create({
|
|
33693
33753
|
row: {
|
|
33694
33754
|
flexDirection: "row",
|
|
33695
33755
|
alignItems: "center"
|
|
@@ -33710,10 +33770,10 @@ var dD = (e) => L.create({
|
|
|
33710
33770
|
flex: 1,
|
|
33711
33771
|
marginRight: e.space.md
|
|
33712
33772
|
}
|
|
33713
|
-
}),
|
|
33773
|
+
}), hD = o((e, t) => {
|
|
33714
33774
|
let { tabs: n, activeKey: r, onChange: i, variant: a = "underline", radius: o, size: s = "md", scrollable: c = !1, align: u = "left", style: f, tabStyle: p, tabLabelStyle: _, tabIconStyle: v, tabBadgeStyle: y, dividerStyle: x, indicatorStyle: S, progress: C, pages: w, haptic: T, accessibilityLabel: E, testID: D } = e;
|
|
33715
33775
|
e.variant, e.size, e.align;
|
|
33716
|
-
let O = $n(), k = m(() =>
|
|
33776
|
+
let O = $n(), k = m(() => gD(O), [O]), A = O.components.tabs, j = m(() => an(O, s), [O, s]), M = c ? j["scrollable-padding-x"] : j["padding-x"], N = j["padding-y"], P = j.text, I = O.space[A["icon-gap"]], R = j.icon, z = A["underline-height"], B = O.space[A["pill-inset"]], H = A["disabled-opacity"], te = O.space[A["badge-gap"]], U = a === "segmented", W = m(() => rn(O, s), [O, s]), ne = O.space[A["track-padding"]], G = typeof o == "number" ? o : o ? O.radius[o] : void 0, K = G ?? O.radius.md, Y = G === void 0 ? O.radius.sm : Math.max(G - ne, 0), X = G ?? O.radius.pill, Z = G ?? O.radius.none, ie = O.colors["bg-muted"], ae = Wp(U, K), [oe, se] = g({}), ce = h(It(0)).current, le = h(It(0)).current, [ue, de] = g(0), fe = h(It(0)).current, pe = h(null), me = h(0), he = oe[r], ge = Math.max(0, n.findIndex((e) => e.key === r)), _e = m(() => w && ue > 0 ? fe.interpolate({
|
|
33717
33777
|
inputRange: [0, ue],
|
|
33718
33778
|
outputRange: [0, 1]
|
|
33719
33779
|
}) : void 0, [
|
|
@@ -33969,8 +34029,8 @@ var dD = (e) => L.create({
|
|
|
33969
34029
|
})]
|
|
33970
34030
|
}) : je;
|
|
33971
34031
|
});
|
|
33972
|
-
|
|
33973
|
-
var
|
|
34032
|
+
hD.displayName = "Tabs";
|
|
34033
|
+
var gD = (e) => L.create({
|
|
33974
34034
|
root: { flex: 1 },
|
|
33975
34035
|
pager: { flex: 1 },
|
|
33976
34036
|
container: {
|
|
@@ -34009,10 +34069,10 @@ var pD = (e) => L.create({
|
|
|
34009
34069
|
top: 0,
|
|
34010
34070
|
bottom: 0
|
|
34011
34071
|
}
|
|
34012
|
-
}),
|
|
34072
|
+
}), _D = o((e, t) => {
|
|
34013
34073
|
let { value: n, defaultValue: r, onChange: i, placeholder: a, label: o, helperText: s, error: c, required: u, disabled: d = !1, size: f = "md", variant: p, maxTags: _, unique: v = !0, transform: y, separators: b = [","], haptic: x, onFocus: S, style: C, testID: w } = e;
|
|
34014
34074
|
e.size, e.variant;
|
|
34015
|
-
let T = $n(), E = m(() =>
|
|
34075
|
+
let T = $n(), E = m(() => vD(T), [T]), [D, O] = kp({
|
|
34016
34076
|
value: n,
|
|
34017
34077
|
defaultValue: r ?? [],
|
|
34018
34078
|
onChange: i
|
|
@@ -34124,8 +34184,8 @@ var pD = (e) => L.create({
|
|
|
34124
34184
|
]
|
|
34125
34185
|
});
|
|
34126
34186
|
});
|
|
34127
|
-
|
|
34128
|
-
var
|
|
34187
|
+
_D.displayName = "TagInput";
|
|
34188
|
+
var vD = (e) => L.create({
|
|
34129
34189
|
wrap: {
|
|
34130
34190
|
flex: 1,
|
|
34131
34191
|
flexDirection: "row",
|
|
@@ -34142,8 +34202,8 @@ var hD = (e) => L.create({
|
|
|
34142
34202
|
...tr(e, "normal"),
|
|
34143
34203
|
padding: e.space.none
|
|
34144
34204
|
}
|
|
34145
|
-
}),
|
|
34146
|
-
let a = $n(), o = a.space.xs, s = m(() =>
|
|
34205
|
+
}), yD = ({ items: e, variant: t = "feed", orientation: n = "vertical", style: r, testID: i }) => {
|
|
34206
|
+
let a = $n(), o = a.space.xs, s = m(() => bD(a), [a]), c = n === "horizontal", u = a.colors.border, [d, f] = g(0), p = l((e) => {
|
|
34147
34207
|
let { width: t } = e.nativeEvent.layout;
|
|
34148
34208
|
f((e) => e === t ? e : t);
|
|
34149
34209
|
}, []), h = c && d > 0 && e.length > 0 ? d / e.length : 0, _ = (e, t) => e.icon ? q(V, {
|
|
@@ -34224,7 +34284,7 @@ var hD = (e) => L.create({
|
|
|
34224
34284
|
testID: i,
|
|
34225
34285
|
children: y
|
|
34226
34286
|
});
|
|
34227
|
-
},
|
|
34287
|
+
}, bD = (e) => L.create({
|
|
34228
34288
|
row: { flexDirection: "row" },
|
|
34229
34289
|
gutter: {
|
|
34230
34290
|
width: 28,
|
|
@@ -34284,18 +34344,18 @@ var hD = (e) => L.create({
|
|
|
34284
34344
|
gap: e.space.xxs
|
|
34285
34345
|
},
|
|
34286
34346
|
centred: { textAlign: "center" }
|
|
34287
|
-
}),
|
|
34347
|
+
}), xD = [
|
|
34288
34348
|
-2,
|
|
34289
34349
|
-1,
|
|
34290
34350
|
0,
|
|
34291
34351
|
1,
|
|
34292
34352
|
2
|
|
34293
|
-
],
|
|
34353
|
+
], SD = c(({ label: e, index: t, scrollY: n, itemHeight: r, selected: i, theme: a, reducedMotion: o, onPress: s, editor: c }) => {
|
|
34294
34354
|
let { opacity: l, scale: u } = m(() => {
|
|
34295
34355
|
let e = b.subtract(b.divide(n, r), t);
|
|
34296
34356
|
return {
|
|
34297
34357
|
opacity: e.interpolate({
|
|
34298
|
-
inputRange:
|
|
34358
|
+
inputRange: xD,
|
|
34299
34359
|
outputRange: [
|
|
34300
34360
|
.3,
|
|
34301
34361
|
.6,
|
|
@@ -34306,7 +34366,7 @@ var hD = (e) => L.create({
|
|
|
34306
34366
|
extrapolate: "clamp"
|
|
34307
34367
|
}),
|
|
34308
34368
|
scale: e.interpolate({
|
|
34309
|
-
inputRange:
|
|
34369
|
+
inputRange: xD,
|
|
34310
34370
|
outputRange: [
|
|
34311
34371
|
.85,
|
|
34312
34372
|
.95,
|
|
@@ -34332,7 +34392,7 @@ var hD = (e) => L.create({
|
|
|
34332
34392
|
});
|
|
34333
34393
|
return q(b.View, {
|
|
34334
34394
|
style: [
|
|
34335
|
-
|
|
34395
|
+
wD.row,
|
|
34336
34396
|
{ height: r },
|
|
34337
34397
|
o ? { opacity: l } : {
|
|
34338
34398
|
opacity: l,
|
|
@@ -34345,11 +34405,11 @@ var hD = (e) => L.create({
|
|
|
34345
34405
|
focusable: !1,
|
|
34346
34406
|
accessible: !1,
|
|
34347
34407
|
onPress: () => s(t),
|
|
34348
|
-
style:
|
|
34408
|
+
style: wD.rowPress,
|
|
34349
34409
|
children: d
|
|
34350
34410
|
}) : d)
|
|
34351
34411
|
});
|
|
34352
|
-
}),
|
|
34412
|
+
}), CD = ({ label: e, items: t, selectedIndex: n, onIndexChange: r, itemHeight: i, width: a, theme: o, haptic: s, disabled: c, reducedMotion: u, typeable: f, testID: p }) => {
|
|
34353
34413
|
let _ = N.OS === "web", [v, y] = g(null), x = h(!1), S = h(null), C = h(It(n * i)).current, w = h(n * i), T = h(n * i), E = h(n), D = h(0), O = h(null), k = h(() => {}), A = t.length - 1;
|
|
34354
34414
|
d(() => {
|
|
34355
34415
|
E.current = n;
|
|
@@ -34461,7 +34521,7 @@ var hD = (e) => L.create({
|
|
|
34461
34521
|
u
|
|
34462
34522
|
]), R = l(({ item: t, index: r }) => {
|
|
34463
34523
|
let a = r === n, s = a && v !== null;
|
|
34464
|
-
return q(
|
|
34524
|
+
return q(SD, {
|
|
34465
34525
|
label: t.label,
|
|
34466
34526
|
index: r,
|
|
34467
34527
|
scrollY: C,
|
|
@@ -34532,16 +34592,16 @@ var hD = (e) => L.create({
|
|
|
34532
34592
|
} : void 0;
|
|
34533
34593
|
return J(V, {
|
|
34534
34594
|
style: [
|
|
34535
|
-
a === void 0 ?
|
|
34595
|
+
a === void 0 ? wD.columnFlex : { width: a },
|
|
34536
34596
|
{ height: 5 * i },
|
|
34537
|
-
|
|
34538
|
-
c ?
|
|
34597
|
+
wD.column,
|
|
34598
|
+
c ? wD.disabled : null
|
|
34539
34599
|
],
|
|
34540
34600
|
testID: p,
|
|
34541
34601
|
...U,
|
|
34542
34602
|
children: [_ ? null : q(V, {
|
|
34543
34603
|
pointerEvents: "none",
|
|
34544
|
-
style:
|
|
34604
|
+
style: wD.a11yLayer,
|
|
34545
34605
|
accessible: !0,
|
|
34546
34606
|
accessibilityRole: "adjustable",
|
|
34547
34607
|
accessibilityLabel: e,
|
|
@@ -34568,12 +34628,12 @@ var hD = (e) => L.create({
|
|
|
34568
34628
|
onMomentumScrollEnd: F,
|
|
34569
34629
|
contentContainerStyle: { paddingVertical: i * 2 },
|
|
34570
34630
|
initialScrollIndex: n,
|
|
34571
|
-
style: [
|
|
34631
|
+
style: [wD.list, { height: 5 * i }],
|
|
34572
34632
|
importantForAccessibility: "no-hide-descendants",
|
|
34573
34633
|
"aria-hidden": !0
|
|
34574
34634
|
})]
|
|
34575
34635
|
});
|
|
34576
|
-
},
|
|
34636
|
+
}, wD = L.create({
|
|
34577
34637
|
column: { overflow: "hidden" },
|
|
34578
34638
|
columnFlex: { flex: 1 },
|
|
34579
34639
|
disabled: { opacity: .5 },
|
|
@@ -34592,7 +34652,7 @@ var hD = (e) => L.create({
|
|
|
34592
34652
|
...L.absoluteFill,
|
|
34593
34653
|
zIndex: 2
|
|
34594
34654
|
}
|
|
34595
|
-
}),
|
|
34655
|
+
}), TD = Object.freeze({
|
|
34596
34656
|
hours: "Hours",
|
|
34597
34657
|
minutes: "Minutes",
|
|
34598
34658
|
hourUnit: "hr",
|
|
@@ -34602,21 +34662,21 @@ var hD = (e) => L.create({
|
|
|
34602
34662
|
minuteOne: "minute",
|
|
34603
34663
|
minuteMany: "minutes",
|
|
34604
34664
|
value: "Value"
|
|
34605
|
-
}),
|
|
34665
|
+
}), ED = (e, t, n = 1) => {
|
|
34606
34666
|
let r = [];
|
|
34607
34667
|
for (let i = e; i <= t; i += n) r.push(i);
|
|
34608
34668
|
return r;
|
|
34609
|
-
},
|
|
34669
|
+
}, DD = (e, t, n) => `${e} ${e === 1 ? t : n}`, OD = (e, t, n) => {
|
|
34610
34670
|
let r = Math.floor(e / 60), i = e % 60;
|
|
34611
34671
|
return r === 0 ? `${i} ${n}` : i === 0 ? `${r} ${t}` : `${r} ${t} ${i} ${n}`;
|
|
34612
|
-
},
|
|
34672
|
+
}, kD = (e) => typeof e == "object" ? e : {
|
|
34613
34673
|
value: e,
|
|
34614
34674
|
label: String(e)
|
|
34615
|
-
},
|
|
34675
|
+
}, AD = (e) => {
|
|
34616
34676
|
let { haptic: t, disabled: r, testID: i, style: a, labels: o } = e;
|
|
34617
34677
|
e.mode;
|
|
34618
|
-
let s = $n(), c = bn(), { fontScale: u } = H(), d = Math.round(40 * Math.min(Math.max(u, 1), 1.5)), f = m(() =>
|
|
34619
|
-
...
|
|
34678
|
+
let s = $n(), c = bn(), { fontScale: u } = H(), d = Math.round(40 * Math.min(Math.max(u, 1), 1.5)), f = m(() => jD(s, d), [s, d]), p = e.mode === "list" ? e.items : void 0, h = m(() => p?.map(kD), [p]), g = e.mode === "duration" ? e.minuteStep ?? 1 : 1, _ = e.mode === "duration" ? Math.max(0, Math.min(1439, Math.floor(e.maxMinutes ?? Infinity))) : 0, v = Math.floor(_ / 60), y = m(() => ({
|
|
34679
|
+
...TD,
|
|
34620
34680
|
...o
|
|
34621
34681
|
}), [o]), b = e.mode === "duration" ? e.presets : void 0;
|
|
34622
34682
|
for (let e of b ?? []) if (!Number.isInteger(e) || e < 0 || e > _ || e % g !== 0) throw Error(`WheelPicker preset ${e} must be a whole number of minutes from 0 to ${_} in steps of ${g}.`);
|
|
@@ -34638,18 +34698,18 @@ var hD = (e) => L.create({
|
|
|
34638
34698
|
_,
|
|
34639
34699
|
g,
|
|
34640
34700
|
x
|
|
34641
|
-
]), w = m(() => e.mode === "duration" ?
|
|
34701
|
+
]), w = m(() => e.mode === "duration" ? ED(0, v).map((e) => ({
|
|
34642
34702
|
value: e,
|
|
34643
34703
|
label: String(e),
|
|
34644
|
-
accessibilityLabel:
|
|
34704
|
+
accessibilityLabel: DD(e, y.hourOne, y.hourMany)
|
|
34645
34705
|
})) : [], [
|
|
34646
34706
|
e.mode,
|
|
34647
34707
|
v,
|
|
34648
34708
|
y
|
|
34649
|
-
]), T = x(C.hour), E = m(() => e.mode === "duration" ?
|
|
34709
|
+
]), T = x(C.hour), E = m(() => e.mode === "duration" ? ED(0, T, g).map((e) => ({
|
|
34650
34710
|
value: e,
|
|
34651
34711
|
label: String(e).padStart(2, "0"),
|
|
34652
|
-
accessibilityLabel:
|
|
34712
|
+
accessibilityLabel: DD(e, y.minuteOne, y.minuteMany)
|
|
34653
34713
|
})) : [], [
|
|
34654
34714
|
e.mode,
|
|
34655
34715
|
T,
|
|
@@ -34707,7 +34767,7 @@ var hD = (e) => L.create({
|
|
|
34707
34767
|
if (i.items.length === 0) return null;
|
|
34708
34768
|
let a = i.items.findIndex((e) => e.value === i.value);
|
|
34709
34769
|
return J(n, { children: [
|
|
34710
|
-
q(
|
|
34770
|
+
q(CD, {
|
|
34711
34771
|
label: i.label,
|
|
34712
34772
|
items: i.items,
|
|
34713
34773
|
selectedIndex: Math.max(0, a),
|
|
@@ -34750,14 +34810,14 @@ var hD = (e) => L.create({
|
|
|
34750
34810
|
return b && b.length !== 0 ? J(V, { children: [M, q(V, {
|
|
34751
34811
|
style: f.presets,
|
|
34752
34812
|
children: b.map((e) => q(py, {
|
|
34753
|
-
label:
|
|
34813
|
+
label: OD(e, y.hourUnit, y.minuteUnit),
|
|
34754
34814
|
size: "sm",
|
|
34755
34815
|
selected: e === j,
|
|
34756
34816
|
disabled: r,
|
|
34757
34817
|
onPress: () => A(e)
|
|
34758
34818
|
}, e))
|
|
34759
34819
|
})] }) : M;
|
|
34760
|
-
},
|
|
34820
|
+
}, jD = (e, t) => L.create({
|
|
34761
34821
|
wheels: {
|
|
34762
34822
|
flexDirection: "row",
|
|
34763
34823
|
alignItems: "center",
|
|
@@ -34787,7 +34847,7 @@ var hD = (e) => L.create({
|
|
|
34787
34847
|
gap: e.space.xs,
|
|
34788
34848
|
paddingTop: e.space.sm
|
|
34789
34849
|
}
|
|
34790
|
-
}),
|
|
34850
|
+
}), MD = Object.freeze({
|
|
34791
34851
|
title: "Select Time",
|
|
34792
34852
|
confirm: "Confirm",
|
|
34793
34853
|
cancel: "Cancel",
|
|
@@ -34799,11 +34859,11 @@ var hD = (e) => L.create({
|
|
|
34799
34859
|
minuteItem: (e) => `${e} minutes`,
|
|
34800
34860
|
cancelHint: "Dismiss without changes",
|
|
34801
34861
|
confirmHint: "Confirm selected time"
|
|
34802
|
-
}),
|
|
34862
|
+
}), ND = (e, t, n = 1) => {
|
|
34803
34863
|
let r = [];
|
|
34804
34864
|
for (let i = e; i <= t; i += n) r.push(i);
|
|
34805
34865
|
return r;
|
|
34806
|
-
},
|
|
34866
|
+
}, PD = (e) => e.toString().padStart(2, "0"), FD = (e, t, n) => n === "24h" ? e : t === "AM" ? e === 12 ? 0 : e : e === 12 ? 12 : e + 12, ID = (e, t) => t === "24h" ? {
|
|
34807
34867
|
displayHour: e,
|
|
34808
34868
|
period: "AM"
|
|
34809
34869
|
} : e === 0 ? {
|
|
@@ -34818,19 +34878,19 @@ var hD = (e) => L.create({
|
|
|
34818
34878
|
} : {
|
|
34819
34879
|
displayHour: e,
|
|
34820
34880
|
period: "AM"
|
|
34821
|
-
},
|
|
34881
|
+
}, LD = (e, t) => {
|
|
34822
34882
|
let n = Math.round(e / t) * t;
|
|
34823
34883
|
return Math.min(59, Math.max(0, n));
|
|
34824
|
-
},
|
|
34884
|
+
}, RD = (e) => {
|
|
34825
34885
|
let { visible: t, value: n, onChange: r, onClose: i, format: a = "12h", minuteStep: o = 1, labels: s, testID: c, style: u, containerStyle: f, headerLabelStyle: p, footerButtonStyle: h, label: _, placeholder: v, helperText: y, error: b, required: x, disabled: S, size: C, variant: w, clearable: T, onClear: E, formatValue: D, triggerStyle: O, haptic: k } = e;
|
|
34826
34886
|
e.format, e.minuteStep?.toString(), e.size, e.variant;
|
|
34827
34887
|
let A = m(() => ({
|
|
34828
|
-
...
|
|
34888
|
+
...MD,
|
|
34829
34889
|
...s
|
|
34830
|
-
}), [s]), j = e.visible !== void 0, [M, N] = g(!1), ee = j ? t : M, P = j ? c : c ? `${c}-modal` : void 0, F = $n(), I = m(() =>
|
|
34890
|
+
}), [s]), j = e.visible !== void 0, [M, N] = g(!1), ee = j ? t : M, P = j ? c : c ? `${c}-modal` : void 0, F = $n(), I = m(() => zD(F), [F]), L = l(() => {
|
|
34831
34891
|
j ? i?.() : N(!1);
|
|
34832
|
-
}, [j, i]), R = m(() => a === "24h" ?
|
|
34833
|
-
let e = n && Number.isFinite(n.hour) ? n.hour : (/* @__PURE__ */ new Date()).getHours(), t =
|
|
34892
|
+
}, [j, i]), R = m(() => a === "24h" ? ND(0, 23) : ND(1, 12), [a]), z = m(() => ND(0, 59, o), [o]), B = m(() => ["AM", "PM"], []), H = m(() => {
|
|
34893
|
+
let e = n && Number.isFinite(n.hour) ? n.hour : (/* @__PURE__ */ new Date()).getHours(), t = LD(n && Number.isFinite(n.minute) ? n.minute : (/* @__PURE__ */ new Date()).getMinutes(), o), { displayHour: r, period: i } = ID(e, a);
|
|
34834
34894
|
return {
|
|
34835
34895
|
displayHour: r,
|
|
34836
34896
|
minute: t,
|
|
@@ -34850,7 +34910,7 @@ var hD = (e) => L.create({
|
|
|
34850
34910
|
}), [G, K] = g(() => +(H.period === "PM"));
|
|
34851
34911
|
d(() => {
|
|
34852
34912
|
if (!ee) return;
|
|
34853
|
-
let e = n && Number.isFinite(n.hour) ? n.hour : (/* @__PURE__ */ new Date()).getHours(), t =
|
|
34913
|
+
let e = n && Number.isFinite(n.hour) ? n.hour : (/* @__PURE__ */ new Date()).getHours(), t = LD(n && Number.isFinite(n.minute) ? n.minute : (/* @__PURE__ */ new Date()).getMinutes(), o), { displayHour: r, period: i } = ID(e, a), s = R.indexOf(r);
|
|
34854
34914
|
U(s >= 0 ? s : 0);
|
|
34855
34915
|
let c = z.indexOf(t);
|
|
34856
34916
|
ne(c >= 0 ? c : 0), K(+(i === "PM"));
|
|
@@ -34867,7 +34927,7 @@ var hD = (e) => L.create({
|
|
|
34867
34927
|
}, [R, z]), X = l(() => {
|
|
34868
34928
|
!1 !== k && Sr("selection"), L();
|
|
34869
34929
|
}, [L, k]), Z = l(() => {
|
|
34870
|
-
let e =
|
|
34930
|
+
let e = FD(R[te] ?? 0, B[G] ?? "AM", a), t = z[W] ?? 0;
|
|
34871
34931
|
!1 !== k && Sr("notificationSuccess"), r?.({
|
|
34872
34932
|
hour: e,
|
|
34873
34933
|
minute: t
|
|
@@ -34885,9 +34945,9 @@ var hD = (e) => L.create({
|
|
|
34885
34945
|
k
|
|
34886
34946
|
]), ie = m(() => {
|
|
34887
34947
|
let e = R[te] ?? 0, t = z[W] ?? 0;
|
|
34888
|
-
if (a === "24h") return `${
|
|
34948
|
+
if (a === "24h") return `${PD(e)}:${PD(t)}`;
|
|
34889
34949
|
let n = B[G] ?? "AM";
|
|
34890
|
-
return `${
|
|
34950
|
+
return `${PD(e)}:${PD(t)} ${n}`;
|
|
34891
34951
|
}, [
|
|
34892
34952
|
R,
|
|
34893
34953
|
te,
|
|
@@ -34898,11 +34958,11 @@ var hD = (e) => L.create({
|
|
|
34898
34958
|
a
|
|
34899
34959
|
]), ae = m(() => R.map((e) => ({
|
|
34900
34960
|
value: e,
|
|
34901
|
-
label:
|
|
34961
|
+
label: PD(e),
|
|
34902
34962
|
accessibilityLabel: A.hourItem(e)
|
|
34903
34963
|
})), [R, A]), oe = m(() => z.map((e) => ({
|
|
34904
34964
|
value: e,
|
|
34905
|
-
label:
|
|
34965
|
+
label: PD(e),
|
|
34906
34966
|
accessibilityLabel: A.minuteItem(e)
|
|
34907
34967
|
})), [z, A]), se = m(() => B.map((e) => ({
|
|
34908
34968
|
value: e,
|
|
@@ -34944,9 +35004,9 @@ var hD = (e) => L.create({
|
|
|
34944
35004
|
F.space.md,
|
|
34945
35005
|
A
|
|
34946
35006
|
]), le = l((e) => {
|
|
34947
|
-
if (a === "24h") return `${
|
|
34948
|
-
let { displayHour: t, period: n } =
|
|
34949
|
-
return `${t}:${
|
|
35007
|
+
if (a === "24h") return `${PD(e.hour)}:${PD(e.minute)}`;
|
|
35008
|
+
let { displayHour: t, period: n } = ID(e.hour, "12h");
|
|
35009
|
+
return `${t}:${PD(e.minute)} ${n}`;
|
|
34950
35010
|
}, [a]), ue = !j && n && Number.isFinite(n.hour) && Number.isFinite(n.minute) ? (D ?? le)(n) : void 0, de = J(kh, {
|
|
34951
35011
|
visible: ee,
|
|
34952
35012
|
onClose: L,
|
|
@@ -34975,7 +35035,7 @@ var hD = (e) => L.create({
|
|
|
34975
35035
|
children: ie
|
|
34976
35036
|
})
|
|
34977
35037
|
}),
|
|
34978
|
-
q(
|
|
35038
|
+
q(AD, {
|
|
34979
35039
|
columns: ce,
|
|
34980
35040
|
onChange: Y,
|
|
34981
35041
|
haptic: k,
|
|
@@ -35021,7 +35081,7 @@ var hD = (e) => L.create({
|
|
|
35021
35081
|
triggerStyle: O,
|
|
35022
35082
|
testID: c
|
|
35023
35083
|
}), de] });
|
|
35024
|
-
},
|
|
35084
|
+
}, zD = (e) => L.create({
|
|
35025
35085
|
title: { marginBottom: e.space.sm },
|
|
35026
35086
|
summaryWrap: {
|
|
35027
35087
|
alignItems: "center",
|
|
@@ -35036,13 +35096,13 @@ var hD = (e) => L.create({
|
|
|
35036
35096
|
gap: e.space.sm
|
|
35037
35097
|
},
|
|
35038
35098
|
footerBtn: { paddingHorizontal: e.space.lg }
|
|
35039
|
-
}),
|
|
35099
|
+
}), BD = Object.freeze({
|
|
35040
35100
|
back: "Back",
|
|
35041
35101
|
next: "Next",
|
|
35042
35102
|
skip: "Skip",
|
|
35043
35103
|
done: "Done",
|
|
35044
35104
|
position: (e, t) => `Step ${e} of ${t}`
|
|
35045
|
-
}),
|
|
35105
|
+
}), VD = (e) => new Promise((t) => {
|
|
35046
35106
|
let n = e.current;
|
|
35047
35107
|
n ? n.measureInWindow((e, n, r, i) => t({
|
|
35048
35108
|
x: e,
|
|
@@ -35050,11 +35110,11 @@ var hD = (e) => L.create({
|
|
|
35050
35110
|
width: r,
|
|
35051
35111
|
height: i
|
|
35052
35112
|
})) : t(null);
|
|
35053
|
-
}),
|
|
35054
|
-
let c = $n(), u = vr().duration("fast"), f = m(() =>
|
|
35113
|
+
}), HD = (e, t) => e.width > 0 && e.height > 0 && e.x < t.width && e.y < t.height && e.x + e.width > 0 && e.y + e.height > 0, UD = ({ tourId: e, steps: t, visible: n, onClose: r, seenStore: i, labels: a, haptic: o, testID: s }) => {
|
|
35114
|
+
let c = $n(), u = vr().duration("fast"), f = m(() => WD(c), [c]), p = H(), _ = h(p);
|
|
35055
35115
|
_.current = p;
|
|
35056
35116
|
let y = c.space.sm, x = c.space.sm, S = m(() => ({
|
|
35057
|
-
...
|
|
35117
|
+
...BD,
|
|
35058
35118
|
...a
|
|
35059
35119
|
}), [a]), [C, w] = g(null), [T, E] = g(0), D = h(It(0)).current, O = h(t);
|
|
35060
35120
|
O.current = t;
|
|
@@ -35066,8 +35126,8 @@ var hD = (e) => L.create({
|
|
|
35066
35126
|
j.current = i;
|
|
35067
35127
|
let M = l(async (e, t) => {
|
|
35068
35128
|
for (let n = e; n >= 0 && n < O.current.length; n += t) {
|
|
35069
|
-
let e = await
|
|
35070
|
-
if (e &&
|
|
35129
|
+
let e = await VD(O.current[n].target);
|
|
35130
|
+
if (e && HD(e, _.current)) return {
|
|
35071
35131
|
index: n,
|
|
35072
35132
|
rect: e
|
|
35073
35133
|
};
|
|
@@ -35235,8 +35295,8 @@ var hD = (e) => L.create({
|
|
|
35235
35295
|
}) : null
|
|
35236
35296
|
});
|
|
35237
35297
|
};
|
|
35238
|
-
|
|
35239
|
-
var
|
|
35298
|
+
UD.displayName = "Tour";
|
|
35299
|
+
var WD = (e) => L.create({
|
|
35240
35300
|
transparent: { backgroundColor: "transparent" },
|
|
35241
35301
|
dim: { position: "absolute" },
|
|
35242
35302
|
highlight: {
|
|
@@ -35265,15 +35325,15 @@ var VD = (e) => L.create({
|
|
|
35265
35325
|
flexDirection: "row",
|
|
35266
35326
|
gap: e.space.sm
|
|
35267
35327
|
}
|
|
35268
|
-
}),
|
|
35328
|
+
}), GD = Object.freeze({ typing: "Typing" }), KD = [
|
|
35269
35329
|
1,
|
|
35270
35330
|
.65,
|
|
35271
35331
|
.3
|
|
35272
|
-
],
|
|
35332
|
+
], qD = [
|
|
35273
35333
|
"first",
|
|
35274
35334
|
"second",
|
|
35275
35335
|
"third"
|
|
35276
|
-
],
|
|
35336
|
+
], JD = ({ index: e, still: t, colour: n, dotStyle: r }) => {
|
|
35277
35337
|
let i = Ze(.3);
|
|
35278
35338
|
d(() => {
|
|
35279
35339
|
if (!t) return i.value = Qe(160 * e, $e(et(nt(1, { duration: 400 }), nt(.3, { duration: 400 })), -1)), () => ze(i);
|
|
@@ -35286,11 +35346,11 @@ var VD = (e) => L.create({
|
|
|
35286
35346
|
return q(De.View, { style: [
|
|
35287
35347
|
r,
|
|
35288
35348
|
{ backgroundColor: n },
|
|
35289
|
-
t ? { opacity:
|
|
35349
|
+
t ? { opacity: KD[e] } : a
|
|
35290
35350
|
] });
|
|
35291
|
-
},
|
|
35292
|
-
let o = $n(), s = m(() =>
|
|
35293
|
-
...
|
|
35351
|
+
}, YD = ({ label: e, accessibilityLabel: t, labels: n, bubble: r = !0, style: i, testID: a }) => {
|
|
35352
|
+
let o = $n(), s = m(() => XD(o), [o]), c = bn(), l = o.colors["text-subtle"], u = m(() => ({
|
|
35353
|
+
...GD,
|
|
35294
35354
|
...n
|
|
35295
35355
|
}), [n]);
|
|
35296
35356
|
return J(V, {
|
|
@@ -35307,7 +35367,7 @@ var VD = (e) => L.create({
|
|
|
35307
35367
|
testID: a,
|
|
35308
35368
|
children: [q(V, {
|
|
35309
35369
|
style: s.dots,
|
|
35310
|
-
children:
|
|
35370
|
+
children: qD.map((e, t) => q(JD, {
|
|
35311
35371
|
index: t,
|
|
35312
35372
|
still: c,
|
|
35313
35373
|
colour: l,
|
|
@@ -35319,7 +35379,7 @@ var VD = (e) => L.create({
|
|
|
35319
35379
|
children: e
|
|
35320
35380
|
}) : null]
|
|
35321
35381
|
});
|
|
35322
|
-
},
|
|
35382
|
+
}, XD = (e) => L.create({
|
|
35323
35383
|
dot: {
|
|
35324
35384
|
width: 6,
|
|
35325
35385
|
height: 6,
|
|
@@ -35345,13 +35405,13 @@ var VD = (e) => L.create({
|
|
|
35345
35405
|
alignItems: "center",
|
|
35346
35406
|
gap: e.space.xs
|
|
35347
35407
|
}
|
|
35348
|
-
}),
|
|
35408
|
+
}), ZD = {
|
|
35349
35409
|
damping: 18,
|
|
35350
35410
|
stiffness: 220,
|
|
35351
35411
|
mass: 1
|
|
35352
|
-
},
|
|
35412
|
+
}, QD = ({ children: e, maxScale: t = 4, minScale: n = 1, doubleTapScale: r = 2, disabled: i = !1, haptic: a, style: o, accessibilityLabel: s, testID: c }) => {
|
|
35353
35413
|
let u = Ze(1), f = Ze(1), p = Ze(0), h = Ze(0), g = Ze(0), _ = Ze(0), v = l(() => {
|
|
35354
|
-
u.value = tt(1,
|
|
35414
|
+
u.value = tt(1, ZD), f.value = 1, p.value = tt(0, ZD), h.value = tt(0, ZD), g.value = 0, _.value = 0;
|
|
35355
35415
|
}, [
|
|
35356
35416
|
u,
|
|
35357
35417
|
f,
|
|
@@ -35375,7 +35435,7 @@ var VD = (e) => L.create({
|
|
|
35375
35435
|
u.value = r < n ? n + .3 * (r - n) : r > t ? t + .2 * (r - t) : r;
|
|
35376
35436
|
}).onEnd(() => {
|
|
35377
35437
|
"worklet";
|
|
35378
|
-
u.value < n ? (u.value = tt(n,
|
|
35438
|
+
u.value < n ? (u.value = tt(n, ZD), p.value = tt(0, ZD), h.value = tt(0, ZD), f.value = n, g.value = 0, _.value = 0) : u.value > t ? (u.value = tt(t, ZD), f.value = t) : f.value = u.value;
|
|
35379
35439
|
}), [
|
|
35380
35440
|
i,
|
|
35381
35441
|
u,
|
|
@@ -35404,7 +35464,7 @@ var VD = (e) => L.create({
|
|
|
35404
35464
|
_
|
|
35405
35465
|
]), S = m(() => dt.Tap().enabled(!i).numberOfTaps(2).onEnd(() => {
|
|
35406
35466
|
"worklet";
|
|
35407
|
-
He(y)(), u.value > 1 ? (u.value = tt(1,
|
|
35467
|
+
He(y)(), u.value > 1 ? (u.value = tt(1, ZD), p.value = tt(0, ZD), h.value = tt(0, ZD), f.value = 1, g.value = 0, _.value = 0) : (u.value = tt(r, ZD), f.value = r);
|
|
35408
35468
|
}), [
|
|
35409
35469
|
i,
|
|
35410
35470
|
u,
|
|
@@ -35427,20 +35487,20 @@ var VD = (e) => L.create({
|
|
|
35427
35487
|
return q(ft, {
|
|
35428
35488
|
gesture: C,
|
|
35429
35489
|
children: q(De.View, {
|
|
35430
|
-
style: [
|
|
35490
|
+
style: [$D.container, o],
|
|
35431
35491
|
testID: c,
|
|
35432
35492
|
accessibilityLabel: s,
|
|
35433
35493
|
accessibilityState: { disabled: i },
|
|
35434
35494
|
"aria-disabled": i,
|
|
35435
35495
|
children: q(De.View, {
|
|
35436
|
-
style: [
|
|
35496
|
+
style: [$D.content, w],
|
|
35437
35497
|
children: e
|
|
35438
35498
|
})
|
|
35439
35499
|
})
|
|
35440
35500
|
});
|
|
35441
35501
|
};
|
|
35442
|
-
|
|
35443
|
-
var
|
|
35502
|
+
QD.displayName = "ZoomableImage";
|
|
35503
|
+
var $D = L.create({
|
|
35444
35504
|
container: {
|
|
35445
35505
|
flex: 1,
|
|
35446
35506
|
alignItems: "center",
|
|
@@ -35456,7 +35516,7 @@ var XD = L.create({
|
|
|
35456
35516
|
});
|
|
35457
35517
|
//#endregion
|
|
35458
35518
|
//#region lib/module/form/useHookFormField.js
|
|
35459
|
-
function
|
|
35519
|
+
function eO(e) {
|
|
35460
35520
|
let { field: t, fieldState: n } = Ct(e);
|
|
35461
35521
|
return {
|
|
35462
35522
|
name: t.name,
|
|
@@ -35478,10 +35538,10 @@ function ZD(e) {
|
|
|
35478
35538
|
}
|
|
35479
35539
|
//#endregion
|
|
35480
35540
|
//#region lib/module/form/HookFormField.js
|
|
35481
|
-
var
|
|
35541
|
+
var tO = (e, t) => {
|
|
35482
35542
|
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
35483
|
-
},
|
|
35484
|
-
let { label: n, helperText: r, required: i, layout: a, labelStyle: o, helperStyle: s, errorStyle: c, containerStyle: l, inputContainerStyle: u, accessibilityLabel: d, testID: f, children: p, hideError: m, ...h } = t, g =
|
|
35543
|
+
}, nO = (t) => {
|
|
35544
|
+
let { label: n, helperText: r, required: i, layout: a, labelStyle: o, helperStyle: s, errorStyle: c, containerStyle: l, inputContainerStyle: u, accessibilityLabel: d, testID: f, children: p, hideError: m, ...h } = t, g = eO(h), _ = typeof p == "function", v = null;
|
|
35485
35545
|
if (_) v = p(g);
|
|
35486
35546
|
else if (e.isValidElement(p)) {
|
|
35487
35547
|
let t = p.props;
|
|
@@ -35495,7 +35555,7 @@ var QD = (e, t) => {
|
|
|
35495
35555
|
g.onBlur(), t.onBlur?.(e);
|
|
35496
35556
|
},
|
|
35497
35557
|
ref: (e) => {
|
|
35498
|
-
g.ref(e),
|
|
35558
|
+
g.ref(e), tO(t.ref, e);
|
|
35499
35559
|
}
|
|
35500
35560
|
});
|
|
35501
35561
|
}
|
|
@@ -35516,10 +35576,10 @@ var QD = (e, t) => {
|
|
|
35516
35576
|
children: v
|
|
35517
35577
|
});
|
|
35518
35578
|
};
|
|
35519
|
-
|
|
35579
|
+
nO.displayName = "HookFormField";
|
|
35520
35580
|
//#endregion
|
|
35521
35581
|
//#region \0canvas-kit:entry
|
|
35522
|
-
var
|
|
35582
|
+
var rO = Ft({
|
|
35523
35583
|
components: {
|
|
35524
35584
|
Accordion: Ep,
|
|
35525
35585
|
AccordionGroup: Cp,
|
|
@@ -35594,43 +35654,43 @@ var eO = Ft({
|
|
|
35594
35654
|
Repeater: ww,
|
|
35595
35655
|
RichTextEditor: Hw,
|
|
35596
35656
|
ScannerOverlay: Yw,
|
|
35597
|
-
Screen:
|
|
35598
|
-
SearchBar:
|
|
35599
|
-
SectionHeader:
|
|
35600
|
-
SegmentedControl:
|
|
35601
|
-
Select:
|
|
35602
|
-
SignaturePad:
|
|
35657
|
+
Screen: rT,
|
|
35658
|
+
SearchBar: mT,
|
|
35659
|
+
SectionHeader: _T,
|
|
35660
|
+
SegmentedControl: yT,
|
|
35661
|
+
Select: wT,
|
|
35662
|
+
SignaturePad: qT,
|
|
35603
35663
|
Skeleton: Yf,
|
|
35604
35664
|
SkeletonCircle: Xf,
|
|
35605
35665
|
SkeletonContent: _p,
|
|
35606
35666
|
SkeletonList: bp,
|
|
35607
35667
|
SkeletonText: Zf,
|
|
35608
|
-
SlideToConfirm:
|
|
35668
|
+
SlideToConfirm: fE,
|
|
35609
35669
|
Slider: Vm,
|
|
35610
|
-
SliderField:
|
|
35611
|
-
SortableList:
|
|
35670
|
+
SliderField: sE,
|
|
35671
|
+
SortableList: TE,
|
|
35612
35672
|
Spacer: z_,
|
|
35613
|
-
Sparkline:
|
|
35673
|
+
Sparkline: NE,
|
|
35614
35674
|
Spinner: Xp,
|
|
35615
|
-
SquircleView:
|
|
35616
|
-
StatTile:
|
|
35617
|
-
StatusBadge:
|
|
35618
|
-
Stepper:
|
|
35675
|
+
SquircleView: LE,
|
|
35676
|
+
StatTile: KE,
|
|
35677
|
+
StatusBadge: $E,
|
|
35678
|
+
Stepper: cD,
|
|
35619
35679
|
Swipeable: Zx,
|
|
35620
|
-
Switch:
|
|
35621
|
-
Tabs:
|
|
35622
|
-
TagInput:
|
|
35680
|
+
Switch: pD,
|
|
35681
|
+
Tabs: hD,
|
|
35682
|
+
TagInput: _D,
|
|
35623
35683
|
Text: $,
|
|
35624
|
-
TimePicker:
|
|
35625
|
-
Timeline:
|
|
35684
|
+
TimePicker: RD,
|
|
35685
|
+
Timeline: yD,
|
|
35626
35686
|
Toast: hh,
|
|
35627
|
-
Tooltip:
|
|
35628
|
-
Tour:
|
|
35629
|
-
TypingIndicator:
|
|
35630
|
-
WheelPickerColumns: Pt(a,
|
|
35631
|
-
WheelPickerDuration: Pt(a,
|
|
35632
|
-
WheelPickerList: Pt(a,
|
|
35633
|
-
ZoomableImage:
|
|
35687
|
+
Tooltip: eE,
|
|
35688
|
+
Tour: UD,
|
|
35689
|
+
TypingIndicator: YD,
|
|
35690
|
+
WheelPickerColumns: Pt(a, AD, { mode: "columns" }, "WheelPickerColumns"),
|
|
35691
|
+
WheelPickerDuration: Pt(a, AD, { mode: "duration" }, "WheelPickerDuration"),
|
|
35692
|
+
WheelPickerList: Pt(a, AD, { mode: "list" }, "WheelPickerList"),
|
|
35693
|
+
ZoomableImage: QD,
|
|
35634
35694
|
StatusBar: dr,
|
|
35635
35695
|
HomeIndicator: fr,
|
|
35636
35696
|
NavigationBar: pr,
|
|
@@ -36129,7 +36189,7 @@ var eO = Ft({
|
|
|
36129
36189
|
kind: "WeborityPhone",
|
|
36130
36190
|
library: {
|
|
36131
36191
|
name: "@webority/mobile-ui",
|
|
36132
|
-
version: "0.109.
|
|
36192
|
+
version: "0.109.5"
|
|
36133
36193
|
},
|
|
36134
36194
|
rendererProtocolVersion: 12,
|
|
36135
36195
|
platform: "Phone",
|
|
@@ -53338,4 +53398,4 @@ var eO = Ft({
|
|
|
53338
53398
|
}
|
|
53339
53399
|
});
|
|
53340
53400
|
//#endregion
|
|
53341
|
-
export {
|
|
53401
|
+
export { rO as default };
|