streamlit-nightly 1.38.1.dev20240918__py2.py3-none-any.whl → 1.38.1.dev20240920__py2.py3-none-any.whl
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.
- streamlit/__init__.py +1 -0
- streamlit/elements/deck_gl_json_chart.py +26 -2
- streamlit/elements/map.py +27 -1
- streamlit/elements/widgets/button_group.py +269 -68
- streamlit/navigation/page.py +10 -6
- streamlit/proto/ButtonGroup_pb2.py +12 -9
- streamlit/proto/ButtonGroup_pb2.pyi +50 -3
- streamlit/proto/DeckGlJsonChart_pb2.py +3 -3
- streamlit/proto/DeckGlJsonChart_pb2.pyi +9 -1
- streamlit/static/asset-manifest.json +9 -8
- streamlit/static/index.html +1 -1
- streamlit/static/static/js/2055.bca43613.chunk.js +1 -0
- streamlit/static/static/js/5625.fe6c22ad.chunk.js +1 -0
- streamlit/static/static/js/{7077.e21833ae.chunk.js → 6789.f8dde736.chunk.js} +2 -2
- streamlit/static/static/js/8485.81bdf474.chunk.js +1 -0
- streamlit/static/static/js/9943.d18fdff1.chunk.js +1 -0
- streamlit/static/static/js/main.829dd23b.js +28 -0
- streamlit/web/server/routes.py +6 -0
- streamlit/web/server/server.py +9 -1
- streamlit/web/server/server_util.py +10 -3
- {streamlit_nightly-1.38.1.dev20240918.dist-info → streamlit_nightly-1.38.1.dev20240920.dist-info}/METADATA +1 -1
- {streamlit_nightly-1.38.1.dev20240918.dist-info → streamlit_nightly-1.38.1.dev20240920.dist-info}/RECORD +30 -29
- streamlit/static/static/js/3156.002c6ee0.chunk.js +0 -1
- streamlit/static/static/js/5625.3a8dc81f.chunk.js +0 -1
- streamlit/static/static/js/7493.95e79b96.chunk.js +0 -1
- streamlit/static/static/js/main.e8447cae.js +0 -28
- /streamlit/static/static/css/{7077.81b3d18f.chunk.css → 6789.81b3d18f.chunk.css} +0 -0
- /streamlit/static/static/css/{3156.93909c7e.chunk.css → 9943.93909c7e.chunk.css} +0 -0
- /streamlit/static/static/js/{7077.e21833ae.chunk.js.LICENSE.txt → 6789.f8dde736.chunk.js.LICENSE.txt} +0 -0
- /streamlit/static/static/js/{main.e8447cae.js.LICENSE.txt → main.829dd23b.js.LICENSE.txt} +0 -0
- {streamlit_nightly-1.38.1.dev20240918.data → streamlit_nightly-1.38.1.dev20240920.data}/scripts/streamlit.cmd +0 -0
- {streamlit_nightly-1.38.1.dev20240918.dist-info → streamlit_nightly-1.38.1.dev20240920.dist-info}/WHEEL +0 -0
- {streamlit_nightly-1.38.1.dev20240918.dist-info → streamlit_nightly-1.38.1.dev20240920.dist-info}/entry_points.txt +0 -0
- {streamlit_nightly-1.38.1.dev20240918.dist-info → streamlit_nightly-1.38.1.dev20240920.dist-info}/top_level.txt +0 -0
streamlit/navigation/page.py
CHANGED
@@ -212,14 +212,18 @@ class StreamlitPage:
|
|
212
212
|
"The title of the page cannot be empty or consist of underscores/spaces only"
|
213
213
|
)
|
214
214
|
|
215
|
-
if url_path is not None and url_path.strip() == "" and not default:
|
216
|
-
raise StreamlitAPIException(
|
217
|
-
"The URL path cannot be an empty string unless the page is the default page."
|
218
|
-
)
|
219
|
-
|
220
215
|
self._url_path: str = inferred_name
|
221
216
|
if url_path is not None:
|
222
|
-
|
217
|
+
if url_path.strip() == "" and not default:
|
218
|
+
raise StreamlitAPIException(
|
219
|
+
"The URL path cannot be an empty string unless the page is the default page."
|
220
|
+
)
|
221
|
+
|
222
|
+
self._url_path = url_path.strip("/")
|
223
|
+
if "/" in self._url_path:
|
224
|
+
raise StreamlitAPIException(
|
225
|
+
"The URL path cannot contain a nested path (e.g. foo/bar)."
|
226
|
+
)
|
223
227
|
|
224
228
|
if self._icon:
|
225
229
|
validate_icon_or_emoji(self._icon)
|
@@ -12,9 +12,10 @@ from google.protobuf.internal import builder as _builder
|
|
12
12
|
_sym_db = _symbol_database.Default()
|
13
13
|
|
14
14
|
|
15
|
+
from streamlit.proto import LabelVisibilityMessage_pb2 as streamlit_dot_proto_dot_LabelVisibilityMessage__pb2
|
15
16
|
|
16
17
|
|
17
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!streamlit/proto/ButtonGroup.proto\"\
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!streamlit/proto/ButtonGroup.proto\x1a,streamlit/proto/LabelVisibilityMessage.proto\"\xea\x05\n\x0b\x42uttonGroup\x12\n\n\x02id\x18\x01 \x01(\t\x12$\n\x07options\x18\x02 \x03(\x0b\x32\x13.ButtonGroup.Option\x12\x0f\n\x07\x64\x65\x66\x61ult\x18\x03 \x03(\r\x12\x10\n\x08\x64isabled\x18\x04 \x01(\x08\x12*\n\nclick_mode\x18\x05 \x01(\x0e\x32\x16.ButtonGroup.ClickMode\x12\x0f\n\x07\x66orm_id\x18\x06 \x01(\t\x12\r\n\x05value\x18\x07 \x03(\r\x12\x11\n\tset_value\x18\x08 \x01(\x08\x12\x44\n\x17selection_visualization\x18\t \x01(\x0e\x32#.ButtonGroup.SelectionVisualization\x12!\n\x05style\x18\n \x01(\x0e\x32\x12.ButtonGroup.Style\x12\r\n\x05label\x18\x0b \x01(\t\x12\x31\n\x10label_visibility\x18\x0c \x01(\x0b\x32\x17.LabelVisibilityMessage\x12\x11\n\x04help\x18\r \x01(\tH\x00\x88\x01\x01\x1a\xb7\x01\n\x06Option\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\x12\x1d\n\x10selected_content\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0c\x63ontent_icon\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\"\n\x15selected_content_icon\x18\x04 \x01(\tH\x02\x88\x01\x01\x42\x13\n\x11_selected_contentB\x0f\n\r_content_iconB\x18\n\x16_selected_content_icon\"0\n\tClickMode\x12\x11\n\rSINGLE_SELECT\x10\x00\x12\x10\n\x0cMULTI_SELECT\x10\x01\"C\n\x16SelectionVisualization\x12\x11\n\rONLY_SELECTED\x10\x00\x12\x16\n\x12\x41LL_UP_TO_SELECTED\x10\x01\"/\n\x05Style\x12\x0b\n\x07SEGMENT\x10\x00\x12\t\n\x05PILLS\x10\x01\x12\x0e\n\nBORDERLESS\x10\x02\x42\x07\n\x05_helpB0\n\x1c\x63om.snowflake.apps.streamlitB\x10\x42uttonGroupProtob\x06proto3')
|
18
19
|
|
19
20
|
_globals = globals()
|
20
21
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
@@ -22,12 +23,14 @@ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.ButtonGroup
|
|
22
23
|
if not _descriptor._USE_C_DESCRIPTORS:
|
23
24
|
_globals['DESCRIPTOR']._loaded_options = None
|
24
25
|
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\020ButtonGroupProto'
|
25
|
-
_globals['_BUTTONGROUP']._serialized_start=
|
26
|
-
_globals['_BUTTONGROUP']._serialized_end=
|
27
|
-
_globals['_BUTTONGROUP_OPTION']._serialized_start=
|
28
|
-
_globals['_BUTTONGROUP_OPTION']._serialized_end=
|
29
|
-
_globals['_BUTTONGROUP_CLICKMODE']._serialized_start=
|
30
|
-
_globals['_BUTTONGROUP_CLICKMODE']._serialized_end=
|
31
|
-
_globals['_BUTTONGROUP_SELECTIONVISUALIZATION']._serialized_start=
|
32
|
-
_globals['_BUTTONGROUP_SELECTIONVISUALIZATION']._serialized_end=
|
26
|
+
_globals['_BUTTONGROUP']._serialized_start=84
|
27
|
+
_globals['_BUTTONGROUP']._serialized_end=830
|
28
|
+
_globals['_BUTTONGROUP_OPTION']._serialized_start=470
|
29
|
+
_globals['_BUTTONGROUP_OPTION']._serialized_end=653
|
30
|
+
_globals['_BUTTONGROUP_CLICKMODE']._serialized_start=655
|
31
|
+
_globals['_BUTTONGROUP_CLICKMODE']._serialized_end=703
|
32
|
+
_globals['_BUTTONGROUP_SELECTIONVISUALIZATION']._serialized_start=705
|
33
|
+
_globals['_BUTTONGROUP_SELECTIONVISUALIZATION']._serialized_end=772
|
34
|
+
_globals['_BUTTONGROUP_STYLE']._serialized_start=774
|
35
|
+
_globals['_BUTTONGROUP_STYLE']._serialized_end=821
|
33
36
|
# @@protoc_insertion_point(module_scope)
|
@@ -23,6 +23,7 @@ import google.protobuf.descriptor
|
|
23
23
|
import google.protobuf.internal.containers
|
24
24
|
import google.protobuf.internal.enum_type_wrapper
|
25
25
|
import google.protobuf.message
|
26
|
+
import streamlit.proto.LabelVisibilityMessage_pb2
|
26
27
|
import sys
|
27
28
|
import typing
|
28
29
|
|
@@ -63,21 +64,52 @@ class ButtonGroup(google.protobuf.message.Message):
|
|
63
64
|
ONLY_SELECTED: ButtonGroup.SelectionVisualization.ValueType # 0
|
64
65
|
ALL_UP_TO_SELECTED: ButtonGroup.SelectionVisualization.ValueType # 1
|
65
66
|
|
67
|
+
class _Style:
|
68
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
69
|
+
V: typing_extensions.TypeAlias = ValueType
|
70
|
+
|
71
|
+
class _StyleEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ButtonGroup._Style.ValueType], builtins.type):
|
72
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
73
|
+
SEGMENT: ButtonGroup._Style.ValueType # 0
|
74
|
+
PILLS: ButtonGroup._Style.ValueType # 1
|
75
|
+
BORDERLESS: ButtonGroup._Style.ValueType # 2
|
76
|
+
|
77
|
+
class Style(_Style, metaclass=_StyleEnumTypeWrapper): ...
|
78
|
+
SEGMENT: ButtonGroup.Style.ValueType # 0
|
79
|
+
PILLS: ButtonGroup.Style.ValueType # 1
|
80
|
+
BORDERLESS: ButtonGroup.Style.ValueType # 2
|
81
|
+
|
66
82
|
@typing.final
|
67
83
|
class Option(google.protobuf.message.Message):
|
68
84
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
69
85
|
|
70
86
|
CONTENT_FIELD_NUMBER: builtins.int
|
71
87
|
SELECTED_CONTENT_FIELD_NUMBER: builtins.int
|
88
|
+
CONTENT_ICON_FIELD_NUMBER: builtins.int
|
89
|
+
SELECTED_CONTENT_ICON_FIELD_NUMBER: builtins.int
|
72
90
|
content: builtins.str
|
73
91
|
selected_content: builtins.str
|
92
|
+
"""when set, this is the content that will be displayed when the option is selected"""
|
93
|
+
content_icon: builtins.str
|
94
|
+
"""when set, this is the icon that will be displayed next to the option"""
|
95
|
+
selected_content_icon: builtins.str
|
96
|
+
"""when set, this is the icon that will be displayed next to the option when then option is selected"""
|
74
97
|
def __init__(
|
75
98
|
self,
|
76
99
|
*,
|
77
100
|
content: builtins.str = ...,
|
78
|
-
selected_content: builtins.str = ...,
|
101
|
+
selected_content: builtins.str | None = ...,
|
102
|
+
content_icon: builtins.str | None = ...,
|
103
|
+
selected_content_icon: builtins.str | None = ...,
|
79
104
|
) -> None: ...
|
80
|
-
def
|
105
|
+
def HasField(self, field_name: typing.Literal["_content_icon", b"_content_icon", "_selected_content", b"_selected_content", "_selected_content_icon", b"_selected_content_icon", "content_icon", b"content_icon", "selected_content", b"selected_content", "selected_content_icon", b"selected_content_icon"]) -> builtins.bool: ...
|
106
|
+
def ClearField(self, field_name: typing.Literal["_content_icon", b"_content_icon", "_selected_content", b"_selected_content", "_selected_content_icon", b"_selected_content_icon", "content", b"content", "content_icon", b"content_icon", "selected_content", b"selected_content", "selected_content_icon", b"selected_content_icon"]) -> None: ...
|
107
|
+
@typing.overload
|
108
|
+
def WhichOneof(self, oneof_group: typing.Literal["_content_icon", b"_content_icon"]) -> typing.Literal["content_icon"] | None: ...
|
109
|
+
@typing.overload
|
110
|
+
def WhichOneof(self, oneof_group: typing.Literal["_selected_content", b"_selected_content"]) -> typing.Literal["selected_content"] | None: ...
|
111
|
+
@typing.overload
|
112
|
+
def WhichOneof(self, oneof_group: typing.Literal["_selected_content_icon", b"_selected_content_icon"]) -> typing.Literal["selected_content_icon"] | None: ...
|
81
113
|
|
82
114
|
ID_FIELD_NUMBER: builtins.int
|
83
115
|
OPTIONS_FIELD_NUMBER: builtins.int
|
@@ -88,12 +120,19 @@ class ButtonGroup(google.protobuf.message.Message):
|
|
88
120
|
VALUE_FIELD_NUMBER: builtins.int
|
89
121
|
SET_VALUE_FIELD_NUMBER: builtins.int
|
90
122
|
SELECTION_VISUALIZATION_FIELD_NUMBER: builtins.int
|
123
|
+
STYLE_FIELD_NUMBER: builtins.int
|
124
|
+
LABEL_FIELD_NUMBER: builtins.int
|
125
|
+
LABEL_VISIBILITY_FIELD_NUMBER: builtins.int
|
126
|
+
HELP_FIELD_NUMBER: builtins.int
|
91
127
|
id: builtins.str
|
92
128
|
disabled: builtins.bool
|
93
129
|
click_mode: global___ButtonGroup.ClickMode.ValueType
|
94
130
|
form_id: builtins.str
|
95
131
|
set_value: builtins.bool
|
96
132
|
selection_visualization: global___ButtonGroup.SelectionVisualization.ValueType
|
133
|
+
style: global___ButtonGroup.Style.ValueType
|
134
|
+
label: builtins.str
|
135
|
+
help: builtins.str
|
97
136
|
@property
|
98
137
|
def options(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ButtonGroup.Option]: ...
|
99
138
|
@property
|
@@ -104,6 +143,8 @@ class ButtonGroup(google.protobuf.message.Message):
|
|
104
143
|
def value(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
|
105
144
|
"""value passed by the backend"""
|
106
145
|
|
146
|
+
@property
|
147
|
+
def label_visibility(self) -> streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage: ...
|
107
148
|
def __init__(
|
108
149
|
self,
|
109
150
|
*,
|
@@ -116,7 +157,13 @@ class ButtonGroup(google.protobuf.message.Message):
|
|
116
157
|
value: collections.abc.Iterable[builtins.int] | None = ...,
|
117
158
|
set_value: builtins.bool = ...,
|
118
159
|
selection_visualization: global___ButtonGroup.SelectionVisualization.ValueType = ...,
|
160
|
+
style: global___ButtonGroup.Style.ValueType = ...,
|
161
|
+
label: builtins.str = ...,
|
162
|
+
label_visibility: streamlit.proto.LabelVisibilityMessage_pb2.LabelVisibilityMessage | None = ...,
|
163
|
+
help: builtins.str | None = ...,
|
119
164
|
) -> None: ...
|
120
|
-
def
|
165
|
+
def HasField(self, field_name: typing.Literal["_help", b"_help", "help", b"help", "label_visibility", b"label_visibility"]) -> builtins.bool: ...
|
166
|
+
def ClearField(self, field_name: typing.Literal["_help", b"_help", "click_mode", b"click_mode", "default", b"default", "disabled", b"disabled", "form_id", b"form_id", "help", b"help", "id", b"id", "label", b"label", "label_visibility", b"label_visibility", "options", b"options", "selection_visualization", b"selection_visualization", "set_value", b"set_value", "style", b"style", "value", b"value"]) -> None: ...
|
167
|
+
def WhichOneof(self, oneof_group: typing.Literal["_help", b"_help"]) -> typing.Literal["help"] | None: ...
|
121
168
|
|
122
169
|
global___ButtonGroup = ButtonGroup
|
@@ -14,7 +14,7 @@ _sym_db = _symbol_database.Default()
|
|
14
14
|
|
15
15
|
|
16
16
|
|
17
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%streamlit/proto/DeckGlJsonChart.proto\"
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n%streamlit/proto/DeckGlJsonChart.proto\"\x8e\x01\n\x0f\x44\x65\x63kGlJsonChart\x12\x0c\n\x04json\x18\x01 \x01(\t\x12\x0f\n\x07tooltip\x18\x02 \x01(\t\x12\x1b\n\x13use_container_width\x18\x04 \x01(\x08\x12\n\n\x02id\x18\x05 \x01(\t\x12\x14\n\x0cmapbox_token\x18\x06 \x01(\t\x12\r\n\x05width\x18\x07 \x01(\r\x12\x0e\n\x06height\x18\x08 \x01(\rB4\n\x1c\x63om.snowflake.apps.streamlitB\x14\x44\x65\x63kGlJsonChartProtob\x06proto3')
|
18
18
|
|
19
19
|
_globals = globals()
|
20
20
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
@@ -22,6 +22,6 @@ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'streamlit.proto.DeckGlJsonC
|
|
22
22
|
if not _descriptor._USE_C_DESCRIPTORS:
|
23
23
|
_globals['DESCRIPTOR']._loaded_options = None
|
24
24
|
_globals['DESCRIPTOR']._serialized_options = b'\n\034com.snowflake.apps.streamlitB\024DeckGlJsonChartProto'
|
25
|
-
_globals['_DECKGLJSONCHART']._serialized_start=
|
26
|
-
_globals['_DECKGLJSONCHART']._serialized_end=
|
25
|
+
_globals['_DECKGLJSONCHART']._serialized_start=42
|
26
|
+
_globals['_DECKGLJSONCHART']._serialized_end=184
|
27
27
|
# @@protoc_insertion_point(module_scope)
|
@@ -33,6 +33,8 @@ class DeckGlJsonChart(google.protobuf.message.Message):
|
|
33
33
|
USE_CONTAINER_WIDTH_FIELD_NUMBER: builtins.int
|
34
34
|
ID_FIELD_NUMBER: builtins.int
|
35
35
|
MAPBOX_TOKEN_FIELD_NUMBER: builtins.int
|
36
|
+
WIDTH_FIELD_NUMBER: builtins.int
|
37
|
+
HEIGHT_FIELD_NUMBER: builtins.int
|
36
38
|
json: builtins.str
|
37
39
|
"""The json of the pydeck object (https://deckgl.readthedocs.io/en/latest/deck.html)"""
|
38
40
|
tooltip: builtins.str
|
@@ -42,6 +44,10 @@ class DeckGlJsonChart(google.protobuf.message.Message):
|
|
42
44
|
"""ID"""
|
43
45
|
mapbox_token: builtins.str
|
44
46
|
"""The user-configured Mapbox token. If empty, the token id fetched from https://data.streamlit.io/tokens.json"""
|
47
|
+
width: builtins.int
|
48
|
+
"""Width in pixels"""
|
49
|
+
height: builtins.int
|
50
|
+
"""Height in pixels"""
|
45
51
|
def __init__(
|
46
52
|
self,
|
47
53
|
*,
|
@@ -50,7 +56,9 @@ class DeckGlJsonChart(google.protobuf.message.Message):
|
|
50
56
|
use_container_width: builtins.bool = ...,
|
51
57
|
id: builtins.str = ...,
|
52
58
|
mapbox_token: builtins.str = ...,
|
59
|
+
width: builtins.int = ...,
|
60
|
+
height: builtins.int = ...,
|
53
61
|
) -> None: ...
|
54
|
-
def ClearField(self, field_name: typing.Literal["id", b"id", "json", b"json", "mapbox_token", b"mapbox_token", "tooltip", b"tooltip", "use_container_width", b"use_container_width"]) -> None: ...
|
62
|
+
def ClearField(self, field_name: typing.Literal["height", b"height", "id", b"id", "json", b"json", "mapbox_token", b"mapbox_token", "tooltip", b"tooltip", "use_container_width", b"use_container_width", "width", b"width"]) -> None: ...
|
55
63
|
|
56
64
|
global___DeckGlJsonChart = DeckGlJsonChart
|
@@ -1,18 +1,18 @@
|
|
1
1
|
{
|
2
2
|
"files": {
|
3
3
|
"main.css": "./static/css/main.5513bd04.css",
|
4
|
-
"main.js": "./static/js/main.
|
4
|
+
"main.js": "./static/js/main.829dd23b.js",
|
5
5
|
"static/js/6679.265ca09c.chunk.js": "./static/js/6679.265ca09c.chunk.js",
|
6
6
|
"static/js/9464.7e9a3c0a.chunk.js": "./static/js/9464.7e9a3c0a.chunk.js",
|
7
7
|
"static/js/9077.e0a8db2a.chunk.js": "./static/js/9077.e0a8db2a.chunk.js",
|
8
8
|
"static/js/3391.663b9d47.chunk.js": "./static/js/3391.663b9d47.chunk.js",
|
9
|
-
"static/css/
|
10
|
-
"static/js/
|
9
|
+
"static/css/9943.93909c7e.chunk.css": "./static/css/9943.93909c7e.chunk.css",
|
10
|
+
"static/js/9943.d18fdff1.chunk.js": "./static/js/9943.d18fdff1.chunk.js",
|
11
11
|
"static/css/5711.c24b25fa.chunk.css": "./static/css/5711.c24b25fa.chunk.css",
|
12
12
|
"static/js/5711.229cb7d0.chunk.js": "./static/js/5711.229cb7d0.chunk.js",
|
13
13
|
"static/js/3861.0dedcd19.chunk.js": "./static/js/3861.0dedcd19.chunk.js",
|
14
14
|
"static/js/8642.dfef7dcb.chunk.js": "./static/js/8642.dfef7dcb.chunk.js",
|
15
|
-
"static/js/
|
15
|
+
"static/js/8485.81bdf474.chunk.js": "./static/js/8485.81bdf474.chunk.js",
|
16
16
|
"static/js/8148.f51df66c.chunk.js": "./static/js/8148.f51df66c.chunk.js",
|
17
17
|
"static/js/84.414fa87b.chunk.js": "./static/js/84.414fa87b.chunk.js",
|
18
18
|
"static/js/9923.7061d124.chunk.js": "./static/js/9923.7061d124.chunk.js",
|
@@ -21,7 +21,7 @@
|
|
21
21
|
"static/js/8237.210a5ac4.chunk.js": "./static/js/8237.210a5ac4.chunk.js",
|
22
22
|
"static/js/5828.f8572ba4.chunk.js": "./static/js/5828.f8572ba4.chunk.js",
|
23
23
|
"static/js/9060.1ec8dc2b.chunk.js": "./static/js/9060.1ec8dc2b.chunk.js",
|
24
|
-
"static/js/5625.
|
24
|
+
"static/js/5625.fe6c22ad.chunk.js": "./static/js/5625.fe6c22ad.chunk.js",
|
25
25
|
"static/js/6141.43a8fda3.chunk.js": "./static/js/6141.43a8fda3.chunk.js",
|
26
26
|
"static/js/4103.d863052a.chunk.js": "./static/js/4103.d863052a.chunk.js",
|
27
27
|
"static/js/1086.464de8f9.chunk.js": "./static/js/1086.464de8f9.chunk.js",
|
@@ -51,8 +51,8 @@
|
|
51
51
|
"static/js/766.e3700e32.chunk.js": "./static/js/766.e3700e32.chunk.js",
|
52
52
|
"static/js/783.788bb3ab.chunk.js": "./static/js/783.788bb3ab.chunk.js",
|
53
53
|
"static/js/5544.2769497c.chunk.js": "./static/js/5544.2769497c.chunk.js",
|
54
|
-
"static/css/
|
55
|
-
"static/js/
|
54
|
+
"static/css/6789.81b3d18f.chunk.css": "./static/css/6789.81b3d18f.chunk.css",
|
55
|
+
"static/js/6789.f8dde736.chunk.js": "./static/js/6789.f8dde736.chunk.js",
|
56
56
|
"static/js/7612.39e7938b.chunk.js": "./static/js/7612.39e7938b.chunk.js",
|
57
57
|
"static/js/3389.71902a75.chunk.js": "./static/js/3389.71902a75.chunk.js",
|
58
58
|
"static/js/4297.3afbdd03.chunk.js": "./static/js/4297.3afbdd03.chunk.js",
|
@@ -63,6 +63,7 @@
|
|
63
63
|
"static/js/6198.956025ac.chunk.js": "./static/js/6198.956025ac.chunk.js",
|
64
64
|
"static/js/1674.86aea8e0.chunk.js": "./static/js/1674.86aea8e0.chunk.js",
|
65
65
|
"static/js/7591.b3928443.chunk.js": "./static/js/7591.b3928443.chunk.js",
|
66
|
+
"static/js/2055.bca43613.chunk.js": "./static/js/2055.bca43613.chunk.js",
|
66
67
|
"static/media/MaterialSymbols-Rounded.woff2": "./static/media/MaterialSymbols-Rounded.ec07649f7a20048d5730.woff2",
|
67
68
|
"static/media/fireworks.gif": "./static/media/fireworks.0906f02ea43f1018a6d2.gif",
|
68
69
|
"static/media/flake-2.png": "./static/media/flake-2.e3f07d06933dd0e84c24.png",
|
@@ -153,6 +154,6 @@
|
|
153
154
|
},
|
154
155
|
"entrypoints": [
|
155
156
|
"static/css/main.5513bd04.css",
|
156
|
-
"static/js/main.
|
157
|
+
"static/js/main.829dd23b.js"
|
157
158
|
]
|
158
159
|
}
|
streamlit/static/index.html
CHANGED
@@ -1 +1 @@
|
|
1
|
-
<!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><link rel="shortcut icon" href="./favicon.png"/><link rel="preload" href="./static/media/SourceSansPro-Regular.0d69e5ff5e92ac64a0c9.woff2" as="font" type="font/woff2" crossorigin><link rel="preload" href="./static/media/SourceSansPro-SemiBold.abed79cd0df1827e18cf.woff2" as="font" type="font/woff2" crossorigin><link rel="preload" href="./static/media/SourceSansPro-Bold.118dea98980e20a81ced.woff2" as="font" type="font/woff2" crossorigin><title>Streamlit</title><script>window.prerenderReady=!1</script><script defer="defer" src="./static/js/main.
|
1
|
+
<!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"/><link rel="shortcut icon" href="./favicon.png"/><link rel="preload" href="./static/media/SourceSansPro-Regular.0d69e5ff5e92ac64a0c9.woff2" as="font" type="font/woff2" crossorigin><link rel="preload" href="./static/media/SourceSansPro-SemiBold.abed79cd0df1827e18cf.woff2" as="font" type="font/woff2" crossorigin><link rel="preload" href="./static/media/SourceSansPro-Bold.118dea98980e20a81ced.woff2" as="font" type="font/woff2" crossorigin><title>Streamlit</title><script>window.prerenderReady=!1</script><script defer="defer" src="./static/js/main.829dd23b.js"></script><link href="./static/css/main.5513bd04.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[2055],{22044:(e,t,n)=>{n.d(t,{A:()=>f});var o=n(58878),s=n(53124),i=n.n(s),r=n(8151),l=n(41514),d=n(67214),a=n(64611),c=n(84152),h=n(89653);const p=(0,h.A)("button",{target:"e1vs0wn31"})((e=>{let{isExpanded:t,theme:n}=e;const o=t?{right:"0.4rem",top:"0.5rem",backgroundColor:"transparent"}:{right:"-3.0rem",top:"-0.375rem",opacity:0,transform:"scale(0)",backgroundColor:n.colors.lightenedBg05};return{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center",zIndex:n.zIndices.sidebar+1,height:"2.5rem",width:"2.5rem",transition:"opacity 300ms 150ms, transform 300ms 150ms",border:"none",color:n.colors.fadedText60,borderRadius:"50%",...o,"&:focus":{outline:"none"},"&:active, &:focus-visible, &:hover":{opacity:1,outline:"none",transform:"scale(1)",color:n.colors.bodyText,transition:"none"}}}),""),u=(0,h.A)("div",{target:"e1vs0wn30"})((e=>{let{theme:t,isExpanded:n}=e;return{"&:hover":{[p]:{opacity:1,transform:"scale(1)",transition:"none"}},...n?{position:"fixed",top:0,left:0,bottom:0,right:0,background:t.colors.bgColor,zIndex:t.zIndices.fullscreenWrapper,padding:t.spacing.md,paddingTop:t.sizes.fullScreenHeaderHeight,overflow:["auto","overlay"],display:"flex",alignItems:"center",justifyContent:"center"}:{}}}),"");var m=n(90782);class x extends o.PureComponent{constructor(e){super(e),this.context=void 0,this.controlKeys=e=>{const{expanded:t}=this.state;27===e.keyCode&&t&&this.zoomOut()},this.zoomIn=()=>{document.body.style.overflow="hidden",this.context.setFullScreen(!0),this.setState({expanded:!0})},this.zoomOut=()=>{document.body.style.overflow="unset",this.context.setFullScreen(!1),this.setState({expanded:!1})},this.convertScssRemValueToPixels=e=>parseFloat(e)*parseFloat(getComputedStyle(document.documentElement).fontSize),this.getWindowDimensions=()=>{const e=this.convertScssRemValueToPixels(this.props.theme.spacing.md),t=this.convertScssRemValueToPixels(this.props.theme.sizes.fullScreenHeaderHeight);return{fullWidth:window.innerWidth-2*e,fullHeight:window.innerHeight-(e+t)}},this.updateWindowDimensions=()=>{this.setState(this.getWindowDimensions())},this.state={expanded:!1,...this.getWindowDimensions()}}componentDidMount(){window.addEventListener("resize",this.updateWindowDimensions),document.addEventListener("keydown",this.controlKeys,!1)}componentWillUnmount(){window.removeEventListener("resize",this.updateWindowDimensions),document.removeEventListener("keydown",this.controlKeys,!1)}render(){const{expanded:e,fullWidth:t,fullHeight:n}=this.state,{children:o,width:s,height:i,disableFullscreenMode:r}=this.props;let c=l.u,h=this.zoomIn,x="View fullscreen";return e&&(c=d.Q,h=this.zoomOut,x="Exit fullscreen"),(0,m.jsxs)(u,{isExpanded:e,"data-testid":"stFullScreenFrame",children:[!r&&(0,m.jsx)(p,{"data-testid":"StyledFullScreenButton",onClick:h,title:x,isExpanded:e,children:(0,m.jsx)(a.A,{content:c})}),o(e?{width:t,height:n,expanded:e,expand:this.zoomIn,collapse:this.zoomOut}:{width:s,height:i,expanded:e,expand:this.zoomIn,collapse:this.zoomOut})]})}}x.contextType=c.n;const g=(0,r.b)(x);const f=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];class n extends o.PureComponent{constructor(){super(...arguments),this.render=()=>{const{width:n,height:o,disableFullscreenMode:s}=this.props;return(0,m.jsx)(g,{width:n,height:o,disableFullscreenMode:t||s,children:t=>{let{width:n,height:o,expanded:s,expand:i,collapse:r}=t;return(0,m.jsx)(e,{...this.props,width:n,height:o,isFullScreen:s,expand:i,collapse:r})}})}}}return n.displayName=`withFullScreenWrapper(${e.displayName||e.name})`,i()(n,e)}},85850:(e,t,n)=>{n.d(t,{K:()=>f,A:()=>w});n(58878);var o=n(8151),s=n(12274),i=n(63186),r=n(34914),l=n(997),d=n(36459),a=n(84720),c=n(64611),h=n(89653),p=n(58144);const u="-2.4rem",m=(0,h.A)("div",{target:"e2wxzia1"})((e=>{let{theme:t,locked:n,target:o}=e;return{padding:`${t.spacing.sm} 0 ${t.spacing.sm} ${t.spacing.sm}`,position:"absolute",top:n?u:"-1rem",right:t.spacing.none,transition:"none",...!n&&{opacity:0,"&:active, &:focus-visible, &:hover":{transition:"opacity 150ms 100ms, top 100ms 100ms",opacity:1,top:u},...o&&{[`${o}:hover &, ${o}:active &, ${o}:focus-visible &`]:{transition:"opacity 150ms 100ms, top 100ms 100ms",opacity:1,top:u}}}}}),""),x=(0,h.A)("div",{target:"e2wxzia0"})((e=>{let{theme:t}=e;return{color:(0,p.iq)(t)?t.colors.fadedText60:t.colors.bodyText,display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"flex-end",boxShadow:"1px 2px 8px rgba(0, 0, 0, 0.08)",borderRadius:t.radii.default,backgroundColor:t.colors.lightenedBg05,width:"fit-content",zIndex:t.zIndices.sidebar+1}}),"");var g=n(90782);function f(e){let{label:t,show_label:n,icon:s,onClick:i}=e;const h=(0,o.u)(),p=n?t:"";return(0,g.jsx)("div",{"data-testid":"stElementToolbarButton",children:(0,g.jsx)(l.A,{content:(0,g.jsx)(r.Ay,{source:t,allowHTML:!1,style:{fontSize:h.fontSizes.sm}}),placement:l.W.TOP,onMouseEnterDelay:1e3,inline:!0,children:(0,g.jsxs)(d.Ay,{onClick:e=>{i&&i(),e.stopPropagation()},kind:a.KX.ELEMENT_TOOLBAR,children:[s&&(0,g.jsx)(c.A,{content:s,size:"md",testid:"stElementToolbarButtonIcon"}),p&&(0,g.jsx)("span",{children:p})]})})})}const w=e=>{let{onExpand:t,onCollapse:n,isFullScreen:o,locked:r,children:l,target:d,disableFullscreenMode:a}=e;return(0,g.jsx)(m,{className:"stElementToolbar","data-testid":"stElementToolbar",locked:r||o,target:d,children:(0,g.jsxs)(x,{children:[l,t&&!a&&!o&&(0,g.jsx)(f,{label:"Fullscreen",icon:s.g,onClick:()=>t()}),n&&!a&&o&&(0,g.jsx)(f,{label:"Close fullscreen",icon:i.Q,onClick:()=>n()})]})})}}}]);
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";(self.webpackChunk_streamlit_app=self.webpackChunk_streamlit_app||[]).push([[5625],{15625:(e,t,r)=>{r.r(t),r.d(t,{default:()=>V});var n=r(58878),o=r(8151),i=Object.freeze({radio:"radio",checkbox:"checkbox"}),l=(Object.freeze({change:"change"}),"default"),a=r(35331),c=r(65266),u=(0,r(57224).I4)("div",(function(e){var t=e.$shape,r=e.$length,n=e.$theme,o=1===r?void 0:t!==l?"-".concat(n.sizing.scale100):"-0.5px";return{display:"flex",marginLeft:o,marginRight:o}}));function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function f(){return f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},f.apply(this,arguments)}function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){O(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==r)return;var n,o,i=[],l=!0,a=!1;try{for(r=r.call(e);!(l=(n=r.next()).done)&&(i.push(n.value),!t||i.length!==t);l=!0);}catch(c){a=!0,o=c}finally{try{l||null==r.return||r.return()}finally{if(a)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return b(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return b(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function h(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function v(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=S(e);if(t){var o=S(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===s(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return g(e)}(this,r)}}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function O(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}u.displayName="StyledRoot",u.displayName="StyledRoot";var C=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(d,e);var t,r,o,s=v(d);function d(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return O(g(e=s.call.apply(s,[this].concat(r))),"childRefs",{}),e}return t=d,r=[{key:"render",value:function(){var e=this,t=this.props,r=t.overrides,o=void 0===r?{}:r,s=t.mode,d=void 0===s?i.checkbox:s,b=t.children,h=t.selected,m=t.disabled,v=t.onClick,g=t.kind,S=t.shape,O=t.size,C=y((0,a._O)(o.Root,u),2),L=C[0],j=C[1],w=this.props["aria-label"]||this.props.ariaLabel,E=d===i.radio,k=n.Children.count(b);return n.createElement(c.U.Consumer,null,(function(t){return n.createElement(L,f({"aria-label":w||t.buttongroup.ariaLabel,"data-baseweb":"button-group",role:E?"radiogroup":"group",$shape:S,$length:b.length},j),n.Children.map(b,(function(t,r){if(!n.isValidElement(t))return null;var o=t.props.isSelected?t.props.isSelected:function(e,t){return!(!Array.isArray(e)&&"number"!==typeof e)&&(Array.isArray(e)?e.includes(t):e===t)}(h,r);return E&&(e.childRefs[r]=n.createRef()),n.cloneElement(t,{disabled:m||t.props.disabled,isSelected:o,ref:E?e.childRefs[r]:void 0,tabIndex:!E||o||E&&(!h||-1===h)&&0===r?0:-1,onKeyDown:function(t){if(E){var r=Number(h)?Number(h):0;if("ArrowUp"===t.key||"ArrowLeft"===t.key){t.preventDefault&&t.preventDefault();var n=r-1<0?k-1:r-1;v&&v(t,n),e.childRefs[n].current&&e.childRefs[n].current.focus()}if("ArrowDown"===t.key||"ArrowRight"===t.key){t.preventDefault&&t.preventDefault();var o=r+1>k-1?0:r+1;v&&v(t,o),e.childRefs[o].current&&e.childRefs[o].current.focus()}}},kind:g,onClick:function(e){m||(t.props.onClick&&t.props.onClick(e),v&&v(e,r))},shape:S,size:O,overrides:p({BaseButton:{style:function(e){var t=e.$theme;return 1===b.length?{}:S!==l?{marginLeft:t.sizing.scale100,marginRight:t.sizing.scale100}:{marginLeft:"0.5px",marginRight:"0.5px"}},props:{"aria-checked":o,role:E?"radio":"checkbox"}}},t.props.overrides)})})))}))}}],r&&h(t.prototype,r),o&&h(t,o),Object.defineProperty(t,"prototype",{writable:!1}),d}(n.Component);O(C,"defaultProps",{disabled:!1,onClick:function(){},shape:l,size:"default",kind:"secondary"});var L=r(34914),j=r(84720),w=r(36459),E=r(94426),k=r(29669),R=r(70474),P=r(78286),I=r(93480),M=r(997),x=r(25571),A=r(3101),_=r(90782);function D(e,t,r,n){t.setIntArrayValue(e,r.value,{fromUi:r.fromUi},n)}function T(e,t,r,o,i,l){const a=function(e,t,r,n){return r.indexOf(n)>-1||t===k.e2.ClickMode.SINGLE_SELECT&&e===k.e2.SelectionVisualization.ALL_UP_TO_SELECTED&&r.length>0&&n<r[0]}(r,o,i,t);let c=e.content,u=e.contentIcon;return a&&(c=e.selectedContent?e.selectedContent:c,u=e.selectedContentIcon?e.selectedContentIcon:u),(0,n.forwardRef)((function(t,r){var n,o;const{element:i,kind:s,size:f}=function(e,t,r){const n=r===k.e2.Style.PILLS?j.KX.PILLS:r===k.e2.Style.BORDERLESS?j.KX.BORDERLESS_ICON:j.KX.SEGMENT,o=r===k.e2.Style.BORDERLESS?j.Pj.XSMALL:j.Pj.MEDIUM,i=r===k.e2.Style.BORDERLESS?"lg":"base";return{element:(0,_.jsxs)(_.Fragment,{children:[t&&(0,_.jsx)(E.$,{size:i,iconValue:t}),e&&(0,_.jsx)(L.Ay,{source:e,allowHTML:!1})]}),kind:n,size:o}}(null!==(n=c)&&void 0!==n?n:"",null!==(o=u)&&void 0!==o?o:void 0,l),d=function(e,t){return e&&(t=`${t}Active`),t}(!(!a||e.selectedContent||e.selectedContentIcon),s);return(0,_.jsx)(w.Ay,{...t,size:f,kind:d,children:i})}))}function F(e,t){return e.getIntArrayValue(t)}function z(e){var t;return null!==(t=e.default)&&void 0!==t?t:null}function U(e){var t;return null!==(t=e.value)&&void 0!==t?t:null}function B(e){var t;const{disabled:r,element:l,fragmentId:a,widgetMgr:c}=e,{clickMode:u,options:s,selectionVisualization:f,style:d,label:p,labelVisibility:y,help:b}=l,h=(0,o.u)(),[m,v]=(0,A.t)({getStateFromWidgetMgr:F,getDefaultStateFromProto:z,getCurrStateFromProto:U,updateWidgetMgrState:D,element:l,widgetMgr:c,fragmentId:a});let g;u===k.e2.ClickMode.SINGLE_SELECT?g=i.radio:u===k.e2.ClickMode.MULTI_SELECT&&(g=i.checkbox);const S=(0,n.useMemo)((()=>s.map(((e,t)=>{const r=T(e,t,f,u,m,d);return(0,_.jsx)(r,{},`${e.content}-${t}`)}))),[u,s,f,d,m]),O=d===k.e2.Style.BORDERLESS?h.spacing.threeXS:h.spacing.twoXS;return(0,_.jsxs)("div",{className:"stButtonGroup","data-testid":"stButtonGroup",children:[(0,_.jsx)(R.L,{label:p,disabled:r,labelVisibility:(0,x.yv)(null!==(t=null===y||void 0===y?void 0:y.value)&&void 0!==t?t:k.Qx.LabelVisibilityOptions.COLLAPSED),children:b&&(0,_.jsx)(P.Cl,{children:(0,_.jsx)(I.A,{content:b,placement:M.W.TOP})})}),(0,_.jsx)(C,{disabled:r,mode:g,onClick:(e,t)=>{const r=function(e,t,r){return e==k.e2.ClickMode.MULTI_SELECT?function(e,t){return t.includes(e)?t.filter((t=>t!==e)):[...t,e]}(t,null!==r&&void 0!==r?r:[]):null!==r&&void 0!==r&&r.includes(t)?[]:[t]}(u,t,m);v({value:r,fromUi:!0})},selected:u===k.e2.ClickMode.MULTI_SELECT?m:(L=m,0===L.length?-1:L[0]),overrides:{Root:{style:{flexWrap:"wrap",gap:O}}},children:S})]});var L}const V=(0,n.memo)(B)},34752:(e,t,r)=>{r.d(t,{X:()=>l,o:()=>i});var n=r(58878),o=r(25571);class i{constructor(){this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}manageFormClearListener(e,t,r){(0,o.se)(this.formClearListener)&&this.lastWidgetMgr===e&&this.lastFormId===t||(this.disconnect(),(0,o._L)(t)&&(this.formClearListener=e.addFormClearedListener(t,r),this.lastWidgetMgr=e,this.lastFormId=t))}disconnect(){var e;null===(e=this.formClearListener)||void 0===e||e.disconnect(),this.formClearListener=void 0,this.lastWidgetMgr=void 0,this.lastFormId=void 0}}function l(e){let{element:t,widgetMgr:r,onFormCleared:i}=e;(0,n.useEffect)((()=>{if(!(0,o._L)(t.formId))return;const e=r.addFormClearedListener(t.formId,i);return()=>{e.disconnect()}}),[t,r,i])}},3101:(e,t,r)=>{r.d(t,{t:()=>l});var n=r(58878),o=r(34752),i=r(25571);function l(e){let{getStateFromWidgetMgr:t,getDefaultStateFromProto:r,getCurrStateFromProto:l,updateWidgetMgrState:a,element:c,widgetMgr:u,fragmentId:s}=e;const[f,d]=(0,n.useState)((()=>{var e;return null!==(e=t(u,c))&&void 0!==e?e:r(c)})),[p,y]=(0,n.useState)({value:f,fromUi:!1});(0,n.useEffect)((()=>{(0,i.hX)(p)||(y(null),d(p.value),a(c,u,p,s))}),[p,a,c,u,s]),(0,n.useEffect)((()=>{c.setValue&&(c.setValue=!1,y({value:l(c),fromUi:!1}))}),[c,l]);const b=(0,n.useCallback)((()=>{y({value:r(c),fromUi:!0})}),[y,c,r]);return(0,o.X)({widgetMgr:u,element:c,onFormCleared:b}),[f,y]}}}]);
|