fermmap-shared 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +180 -0
- package/dist/main.cjs +2907 -0
- package/dist/main.cjs.map +1 -0
- package/dist/main.css +1388 -0
- package/dist/main.css.map +1 -0
- package/dist/module.css +1388 -0
- package/dist/module.css.map +1 -0
- package/dist/module.mjs +2899 -0
- package/dist/module.mjs.map +1 -0
- package/dist/types.d.ts +693 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +73 -0
- package/src/components/Checkbox.css +22 -0
- package/src/components/DisclosureGroup.css +37 -0
- package/src/components/ProgressBar.css +18 -0
- package/src/styles/variables.css +77 -0
package/dist/main.cjs
ADDED
|
@@ -0,0 +1,2907 @@
|
|
|
1
|
+
require("./main.css");
|
|
2
|
+
var $fs04y$reactjsxruntime = require("react/jsx-runtime");
|
|
3
|
+
var $fs04y$reactariacomponents = require("react-aria-components");
|
|
4
|
+
var $fs04y$react = require("react");
|
|
5
|
+
var $fs04y$reactspectrums2iconsSearch = require("@react-spectrum/s2/icons/Search");
|
|
6
|
+
var $fs04y$reactspectrums2iconsCheckmarkCircle = require("@react-spectrum/s2/icons/CheckmarkCircle");
|
|
7
|
+
var $fs04y$reactspectrums2iconsCloseCircle = require("@react-spectrum/s2/icons/CloseCircle");
|
|
8
|
+
var $fs04y$reactintl = require("react-intl");
|
|
9
|
+
var $fs04y$reactspectrums2iconsChevronDown = require("@react-spectrum/s2/icons/ChevronDown");
|
|
10
|
+
var $fs04y$reactspectrums2iconsChevronRight = require("@react-spectrum/s2/icons/ChevronRight");
|
|
11
|
+
var $fs04y$reactspectrums2iconsClose = require("@react-spectrum/s2/icons/Close");
|
|
12
|
+
var $fs04y$nextnavigation = require("next/navigation");
|
|
13
|
+
var $fs04y$reactspectrums2iconsGlobeGrid = require("@react-spectrum/s2/icons/GlobeGrid");
|
|
14
|
+
var $fs04y$reactspectrums2iconsViewList = require("@react-spectrum/s2/icons/ViewList");
|
|
15
|
+
var $fs04y$reactdom = require("react-dom");
|
|
16
|
+
var $fs04y$axecorereact = require("@axe-core/react");
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
function $parcel$exportWildcard(dest, source) {
|
|
20
|
+
Object.keys(source).forEach(function(key) {
|
|
21
|
+
if (key === 'default' || key === '__esModule' || Object.prototype.hasOwnProperty.call(dest, key)) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
Object.defineProperty(dest, key, {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function get() {
|
|
28
|
+
return source[key];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
return dest;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function $parcel$export(e, n, v, s) {
|
|
37
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function $parcel$interopDefault(a) {
|
|
41
|
+
return a && a.__esModule ? a.default : a;
|
|
42
|
+
}
|
|
43
|
+
// Components
|
|
44
|
+
var $305101ddbb5f36e4$exports = {};
|
|
45
|
+
|
|
46
|
+
$parcel$export($305101ddbb5f36e4$exports, "AlertDialog", () => $09cc2cf19505fddf$export$de466dd8317b0b75);
|
|
47
|
+
$parcel$export($305101ddbb5f36e4$exports, "PromptDialog", () => $09cc2cf19505fddf$export$a551a871839880f9);
|
|
48
|
+
$parcel$export($305101ddbb5f36e4$exports, "Autocomplete", () => $cfd85bddfbd540ef$export$2f2b9559550c7bbc);
|
|
49
|
+
$parcel$export($305101ddbb5f36e4$exports, "AutocompleteTable", () => $20f70425cfce230f$export$5f8b5a1eceff31bd);
|
|
50
|
+
$parcel$export($305101ddbb5f36e4$exports, "Badge", () => $5f63bea78c5270d1$export$37acb3580601e69a);
|
|
51
|
+
$parcel$export($305101ddbb5f36e4$exports, "Button", () => $e6839169613154d7$export$353f5b6fc5456de1);
|
|
52
|
+
$parcel$export($305101ddbb5f36e4$exports, "Checkbox", () => $300c3c8c5b9089df$export$48513f6b9f8ce62d);
|
|
53
|
+
$parcel$export($305101ddbb5f36e4$exports, "CloseButton", () => $5a568b5eb65bfe76$export$de65de8213222d10);
|
|
54
|
+
$parcel$export($305101ddbb5f36e4$exports, "ComboBox", () => $1c0dbf01eb96351a$export$72b9695b8216309a);
|
|
55
|
+
$parcel$export($305101ddbb5f36e4$exports, "DisclosureGroup", () => $3764d8bc3c612a35$export$944aceb4f8c89f10);
|
|
56
|
+
$parcel$export($305101ddbb5f36e4$exports, "FilterTabs", () => $75461c19e6a33bc7$export$221f31a87e5a826c);
|
|
57
|
+
$parcel$export($305101ddbb5f36e4$exports, "LabeledValue", () => $8cb76c7220c44b28$export$d1328f67a56fa517);
|
|
58
|
+
$parcel$export($305101ddbb5f36e4$exports, "Link", () => $e0bb5e496bf3f32a$export$a6c7ac8248d6e38a);
|
|
59
|
+
$parcel$export($305101ddbb5f36e4$exports, "ProgressBar", () => $59fb461a0a6fd889$export$c17561cb55d4db30);
|
|
60
|
+
$parcel$export($305101ddbb5f36e4$exports, "RadioGroup", () => $41157374edf6228b$export$a98f0dcb43a68a25);
|
|
61
|
+
$parcel$export($305101ddbb5f36e4$exports, "SearchField", () => $1f2c2c3990efdd5e$export$b94867ecbd698f21);
|
|
62
|
+
$parcel$export($305101ddbb5f36e4$exports, "SegmentedControl", () => $7272752e0b828205$export$668709c620d0b8e2);
|
|
63
|
+
$parcel$export($305101ddbb5f36e4$exports, "Select", () => $24de22966748f2e6$export$ef9b1a59e592288f);
|
|
64
|
+
$parcel$export($305101ddbb5f36e4$exports, "StatCard", () => $22c620249a5b4412$export$b5cddb1a6bf990a0);
|
|
65
|
+
$parcel$export($305101ddbb5f36e4$exports, "Switch", () => $ba215883a18b1d7f$export$b5d5cf8927ab7262);
|
|
66
|
+
$parcel$export($305101ddbb5f36e4$exports, "Table", () => $dd65cef98a3548c0$export$54ec01a60f47d33d);
|
|
67
|
+
$parcel$export($305101ddbb5f36e4$exports, "Tabs", () => $e00b7714d9bed1e1$export$b2539bed5023c21c);
|
|
68
|
+
$parcel$export($305101ddbb5f36e4$exports, "TabList", () => $e00b7714d9bed1e1$export$e51a686c67fdaa2d);
|
|
69
|
+
$parcel$export($305101ddbb5f36e4$exports, "Tab", () => $e00b7714d9bed1e1$export$3e41faf802a29e71);
|
|
70
|
+
$parcel$export($305101ddbb5f36e4$exports, "TabPanel", () => $e00b7714d9bed1e1$export$3d96ec278d3efce4);
|
|
71
|
+
$parcel$export($305101ddbb5f36e4$exports, "TextArea", () => $fad215bb6064e329$export$f5c9f3c2c4054eec);
|
|
72
|
+
$parcel$export($305101ddbb5f36e4$exports, "TextField", () => $6ab530226d5e3153$export$2c73285ae9390cec);
|
|
73
|
+
// Component exports
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
// Primary variant styles
|
|
78
|
+
const $e6839169613154d7$var$buttonStyles = function anonymous(props) {
|
|
79
|
+
let rules = " ";
|
|
80
|
+
if (props.isFocusVisible) rules += ' _Lf12';
|
|
81
|
+
else rules += ' _Le12';
|
|
82
|
+
rules += ' Oh12';
|
|
83
|
+
rules += ' _Mc12';
|
|
84
|
+
rules += ' _Kd12';
|
|
85
|
+
if (props.size === "L") {
|
|
86
|
+
rules += ' uk12';
|
|
87
|
+
rules += ' uch12';
|
|
88
|
+
rules += ' udi12';
|
|
89
|
+
rules += ' uea12';
|
|
90
|
+
rules += ' ugb12';
|
|
91
|
+
rules += ' uhd12';
|
|
92
|
+
rules += ' uje12';
|
|
93
|
+
rules += ' u2NhKxcl12';
|
|
94
|
+
rules += ' uic12';
|
|
95
|
+
} else if (props.size === "S") {
|
|
96
|
+
rules += ' uk12';
|
|
97
|
+
rules += ' uch12';
|
|
98
|
+
rules += ' udi12';
|
|
99
|
+
rules += ' uea12';
|
|
100
|
+
rules += ' ugb12';
|
|
101
|
+
rules += ' uhd12';
|
|
102
|
+
rules += ' uje12';
|
|
103
|
+
rules += ' u2NhKxcl12';
|
|
104
|
+
rules += ' uic12';
|
|
105
|
+
} else {
|
|
106
|
+
rules += ' uk12';
|
|
107
|
+
rules += ' uch12';
|
|
108
|
+
rules += ' udi12';
|
|
109
|
+
rules += ' uea12';
|
|
110
|
+
rules += ' ugb12';
|
|
111
|
+
rules += ' uhd12';
|
|
112
|
+
rules += ' uje12';
|
|
113
|
+
rules += ' u2NhKxcl12';
|
|
114
|
+
rules += ' uic12';
|
|
115
|
+
}
|
|
116
|
+
if (props.size === "L") {
|
|
117
|
+
rules += ' -_6BNtrc-e12';
|
|
118
|
+
rules += ' vx12';
|
|
119
|
+
} else if (props.size === "S") {
|
|
120
|
+
rules += ' -_6BNtrc-c12';
|
|
121
|
+
rules += ' vx12';
|
|
122
|
+
} else {
|
|
123
|
+
rules += ' -_6BNtrc-d12';
|
|
124
|
+
rules += ' vx12';
|
|
125
|
+
}
|
|
126
|
+
if (props.size === "L") {
|
|
127
|
+
rules += ' wb12';
|
|
128
|
+
rules += ' xb12';
|
|
129
|
+
rules += ' _xa12';
|
|
130
|
+
} else if (props.size === "S") {
|
|
131
|
+
rules += ' wb12';
|
|
132
|
+
rules += ' xb12';
|
|
133
|
+
rules += ' _xa12';
|
|
134
|
+
} else {
|
|
135
|
+
rules += ' wb12';
|
|
136
|
+
rules += ' xb12';
|
|
137
|
+
rules += ' _xa12';
|
|
138
|
+
}
|
|
139
|
+
if (props.size === "L") {
|
|
140
|
+
rules += ' _Fb12';
|
|
141
|
+
rules += ' _FnuYUwec12';
|
|
142
|
+
} else if (props.size === "S") {
|
|
143
|
+
rules += ' _Fb12';
|
|
144
|
+
rules += ' _FnuYUwec12';
|
|
145
|
+
} else {
|
|
146
|
+
rules += ' _Fb12';
|
|
147
|
+
rules += ' _FnuYUwec12';
|
|
148
|
+
}
|
|
149
|
+
if (props.isDisabled) {
|
|
150
|
+
rules += ' pp12';
|
|
151
|
+
rules += ' plc12';
|
|
152
|
+
} else {
|
|
153
|
+
if (props.variant === "navigation") rules += ' p9PEPsb12';
|
|
154
|
+
else if (props.variant === "danger") rules += ' px12';
|
|
155
|
+
else if (props.variant === "secondary") rules += ' p9PEPsb12';
|
|
156
|
+
rules += ' plb12';
|
|
157
|
+
}
|
|
158
|
+
rules += ' sd12';
|
|
159
|
+
rules += ' eb12';
|
|
160
|
+
rules += ' _Ca12';
|
|
161
|
+
if (props.size === "S") rules += ' Ub12';
|
|
162
|
+
else rules += ' Ue12';
|
|
163
|
+
if (props.size === "S") rules += ' qb12';
|
|
164
|
+
else rules += ' qe12';
|
|
165
|
+
if (props.variant === "navigation") rules += ' Tp12';
|
|
166
|
+
else if (props.size === "L") rules += ' Tf12';
|
|
167
|
+
else if (props.size === "S") rules += ' Tt12';
|
|
168
|
+
else rules += ' Te12';
|
|
169
|
+
if (props.variant === "navigation") rules += ' Qp12';
|
|
170
|
+
else if (props.size === "L") rules += ' Qf12';
|
|
171
|
+
else if (props.size === "S") rules += ' Qt12';
|
|
172
|
+
else rules += ' Qe12';
|
|
173
|
+
if (props.variant === "navigation") rules += ' St12';
|
|
174
|
+
else if (props.size === "L") rules += ' Sh12';
|
|
175
|
+
else if (props.size === "S") rules += ' Se12';
|
|
176
|
+
else rules += ' Sf12';
|
|
177
|
+
if (props.variant === "navigation") rules += ' Re12';
|
|
178
|
+
else if (props.size === "L") rules += ' Rh12';
|
|
179
|
+
else if (props.size === "S") rules += ' Re12';
|
|
180
|
+
else rules += ' Rf12';
|
|
181
|
+
if (props.variant === "navigation") rules += ' ZJ12';
|
|
182
|
+
if (props.isDisabled) {
|
|
183
|
+
if (props.isDisabled) rules += ' gd12';
|
|
184
|
+
else rules += ' gH12';
|
|
185
|
+
} else {
|
|
186
|
+
if (props.variant === "danger") {
|
|
187
|
+
if (props.isPressed) rules += ' gnkUCZ12';
|
|
188
|
+
else if (props.isFocusVisibile) rules += ' gKYKCZ12';
|
|
189
|
+
else if (props.isHovered) rules += ' gKYKCZ12';
|
|
190
|
+
else rules += ' g7CBCZ12';
|
|
191
|
+
} else if (props.variant === "navigation") {
|
|
192
|
+
if (props.isPressed) rules += ' gjpY2ub12';
|
|
193
|
+
else if (props.isFocusVisibile) rules += ' gG3O2ub12';
|
|
194
|
+
else if (props.isHovered) rules += ' gG3O2ub12';
|
|
195
|
+
else rules += ' g912';
|
|
196
|
+
} else if (props.variant === "secondary") {
|
|
197
|
+
if (props.isPressed) rules += ' gWK72ub12';
|
|
198
|
+
else if (props.isFocusVisibile) rules += ' gjpY2ub12';
|
|
199
|
+
else if (props.isHovered) rules += ' gjpY2ub12';
|
|
200
|
+
else rules += ' gG3O2ub12';
|
|
201
|
+
} else if (props.variant === "primary") {
|
|
202
|
+
if (props.isPressed) rules += ' ggNcPsb12';
|
|
203
|
+
else if (props.isFocusVisibile) rules += ' ggNcPsb12';
|
|
204
|
+
else if (props.isHovered) rules += ' ggNcPsb12';
|
|
205
|
+
else rules += ' gDr3Osb12';
|
|
206
|
+
} else rules += ' gDr3Osb12';
|
|
207
|
+
rules += ' glb12';
|
|
208
|
+
}
|
|
209
|
+
rules += ' oc12';
|
|
210
|
+
rules += ' nc12';
|
|
211
|
+
rules += ' kc12';
|
|
212
|
+
rules += ' jc12';
|
|
213
|
+
rules += ' _je12';
|
|
214
|
+
rules += ' _jlf12';
|
|
215
|
+
rules += ' ila12';
|
|
216
|
+
rules += ' _klb12';
|
|
217
|
+
rules += ' hlb12';
|
|
218
|
+
rules += ' mlb12';
|
|
219
|
+
rules += ' llb12';
|
|
220
|
+
if (props.isDisabled) rules += ' ru12';
|
|
221
|
+
else rules += ' ry12';
|
|
222
|
+
return rules;
|
|
223
|
+
};
|
|
224
|
+
const $e6839169613154d7$export$353f5b6fc5456de1 = ({ children: children, variant: variant = 'primary', size: size = 'M', className: className, ...props })=>{
|
|
225
|
+
return (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Button), {
|
|
226
|
+
...props,
|
|
227
|
+
className: (renderProps)=>`${className || ''} ` + $e6839169613154d7$var$buttonStyles({
|
|
228
|
+
...renderProps,
|
|
229
|
+
size: size,
|
|
230
|
+
variant: variant
|
|
231
|
+
}),
|
|
232
|
+
children: children
|
|
233
|
+
});
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
'use client';
|
|
241
|
+
const $6ab530226d5e3153$export$298b9ad7287f04ba = " sd12 _ta12 Ue12 qe12 Gz12";
|
|
242
|
+
const $6ab530226d5e3153$export$706e9cce604ae69d = " uk12 uch12 udi12 uea12 ugb12 uhd12 uje12 u2NhKxcl12 uic12 -_6BNtrc-d12 vx12 wb12 xb12 _xa12 _Fb12 _FnuYUwec12 p9PEPsb12";
|
|
243
|
+
const $6ab530226d5e3153$var$inputStyles = function anonymous(props) {
|
|
244
|
+
let rules = " ";
|
|
245
|
+
if (props.isFocusVisible) rules += ' _Lf12';
|
|
246
|
+
else rules += ' _Le12';
|
|
247
|
+
rules += ' Oh12';
|
|
248
|
+
rules += ' _Mc12';
|
|
249
|
+
rules += ' _Kd12';
|
|
250
|
+
rules += ' Te12';
|
|
251
|
+
rules += ' Qe12';
|
|
252
|
+
rules += ' Sf12';
|
|
253
|
+
rules += ' Rf12';
|
|
254
|
+
rules += ' _kb12';
|
|
255
|
+
rules += ' hb12';
|
|
256
|
+
rules += ' mb12';
|
|
257
|
+
rules += ' lb12';
|
|
258
|
+
rules += ' _jf12';
|
|
259
|
+
if (props.isInvalid) rules += ' i7CBCZ12';
|
|
260
|
+
else if (props.isFocusVisible) rules += ' iT8lPsb12';
|
|
261
|
+
else if (props.isHovered) rules += ' igNcPsb12';
|
|
262
|
+
else rules += ' iDr3Osb12';
|
|
263
|
+
rules += ' oc12';
|
|
264
|
+
rules += ' nc12';
|
|
265
|
+
rules += ' kc12';
|
|
266
|
+
rules += ' jc12';
|
|
267
|
+
rules += ' uk12';
|
|
268
|
+
rules += ' uch12';
|
|
269
|
+
rules += ' udi12';
|
|
270
|
+
rules += ' uea12';
|
|
271
|
+
rules += ' ugb12';
|
|
272
|
+
rules += ' uhd12';
|
|
273
|
+
rules += ' uje12';
|
|
274
|
+
rules += ' u2NhKxcl12';
|
|
275
|
+
rules += ' uic12';
|
|
276
|
+
rules += ' -_6BNtrc-d12';
|
|
277
|
+
rules += ' vx12';
|
|
278
|
+
rules += ' wb12';
|
|
279
|
+
rules += ' xb12';
|
|
280
|
+
rules += ' _xa12';
|
|
281
|
+
rules += ' _Fb12';
|
|
282
|
+
rules += ' _FnuYUwec12';
|
|
283
|
+
rules += ' pt12';
|
|
284
|
+
rules += ' gqlRAZb12';
|
|
285
|
+
return rules;
|
|
286
|
+
};
|
|
287
|
+
const $6ab530226d5e3153$export$923a9dafaeef3fba = " uk12 uch12 udi12 uea12 ugb12 uhd12 uje12 u2NhKxcl12 uic12 -_6BNtrc-c12 vx12 wb12 xb12 _xa12 _Fb12 _FnuYUwec12 pKYKCZ12 Js12";
|
|
288
|
+
const $6ab530226d5e3153$export$bf233b285dc0c047 = " uk12 uch12 udi12 uea12 ugb12 uhd12 uje12 u2NhKxcl12 uic12 -_6BNtrc-c12 vx12 wb12 xb12 _xa12 _Fb12 _FnuYUwec12 pwuvPsb12 Js12";
|
|
289
|
+
function $6ab530226d5e3153$export$2c73285ae9390cec({ label: label, type: type = 'text', error: error, description: description, placeholder: placeholder, ...props }) {
|
|
290
|
+
return (0, $fs04y$reactjsxruntime.jsxs)((0, $fs04y$reactariacomponents.TextField), {
|
|
291
|
+
className: $6ab530226d5e3153$export$298b9ad7287f04ba,
|
|
292
|
+
...props,
|
|
293
|
+
children: [
|
|
294
|
+
(0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Label), {
|
|
295
|
+
className: $6ab530226d5e3153$export$706e9cce604ae69d,
|
|
296
|
+
children: label
|
|
297
|
+
}),
|
|
298
|
+
(0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Input), {
|
|
299
|
+
className: $6ab530226d5e3153$var$inputStyles,
|
|
300
|
+
type: type,
|
|
301
|
+
placeholder: placeholder
|
|
302
|
+
}),
|
|
303
|
+
description && !error && (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Text), {
|
|
304
|
+
slot: "description",
|
|
305
|
+
className: $6ab530226d5e3153$export$bf233b285dc0c047,
|
|
306
|
+
children: description
|
|
307
|
+
}),
|
|
308
|
+
error && (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Text), {
|
|
309
|
+
slot: "errorMessage",
|
|
310
|
+
className: $6ab530226d5e3153$export$923a9dafaeef3fba,
|
|
311
|
+
children: error
|
|
312
|
+
})
|
|
313
|
+
]
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
'use client';
|
|
320
|
+
const $09cc2cf19505fddf$var$overlayStyles = " _Pb12 Wr12 _lr12 _Ar12 _zr12 g812 sd12 eb12 _Ca12 _Bb12";
|
|
321
|
+
const $09cc2cf19505fddf$var$modalStyles = " gqlRAZb12 oe12 ne12 ke12 je12 _nLeasBb12 Th12 Qh12 Sh12 Rh12 Z9ar6Zb12 ZnA12 ZoQAax0d12 LQAax0d12 _ZBuPDyb12";
|
|
322
|
+
const $09cc2cf19505fddf$var$headingStyles = " uk12 uch12 udi12 uea12 ugb12 uhd12 uje12 u2NhKxcl12 uic12 -_6BNtrc-lcY1Ce12 vx12 we12 xe12 _xa12 wX0cczbd12 xX0cczbd12 _xX0cczba12 wezxGHbd12 xezxGHbd12 _xezxGHba12 wfe12 xfe12 _xfa12 wfX0cczbd12 xfX0cczbd12 _xfX0cczba12 wfezxGHbd12 xfezxGHbd12 _xfezxGHba12 _Fd12 _FezxGHba12 _FnuYUweb12 po12 Jy12 Gx12 Iy12 Hy12";
|
|
323
|
+
const $09cc2cf19505fddf$var$messageStyles = " uk12 uch12 udi12 uea12 ugb12 uhd12 uje12 u2NhKxcl12 uic12 -_6BNtrc-d12 vx12 wb12 xb12 _xa12 _Fb12 _FnuYUwec12 pt12 Jy12 GA12 Iy12 Hy12";
|
|
324
|
+
const $09cc2cf19505fddf$var$buttonGroupStyles = " sd12 Ug12 qg12 _Cb12";
|
|
325
|
+
function $09cc2cf19505fddf$export$de466dd8317b0b75({ isOpen: isOpen, onClose: onClose, title: title, message: message, variant: variant = 'info', confirmLabel: confirmLabel = 'OK', cancelLabel: cancelLabel = 'Cancel', onConfirm: onConfirm, showCancel: showCancel = true, children: children }) {
|
|
326
|
+
const [isProcessing, setIsProcessing] = (0, $fs04y$react.useState)(false);
|
|
327
|
+
const handleConfirm = async ()=>{
|
|
328
|
+
setIsProcessing(true);
|
|
329
|
+
try {
|
|
330
|
+
await onConfirm();
|
|
331
|
+
onClose();
|
|
332
|
+
} finally{
|
|
333
|
+
setIsProcessing(false);
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
// Map variant to button variant
|
|
337
|
+
const buttonVariant = variant === 'danger' ? 'danger' : variant === 'success' ? 'primary' : 'primary';
|
|
338
|
+
return (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.ModalOverlay), {
|
|
339
|
+
isOpen: isOpen,
|
|
340
|
+
onOpenChange: (open)=>!open && onClose(),
|
|
341
|
+
className: $09cc2cf19505fddf$var$overlayStyles,
|
|
342
|
+
children: (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Modal), {
|
|
343
|
+
className: $09cc2cf19505fddf$var$modalStyles,
|
|
344
|
+
children: (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Dialog), {
|
|
345
|
+
children: ({ close: close })=>(0, $fs04y$reactjsxruntime.jsxs)((0, $fs04y$reactjsxruntime.Fragment), {
|
|
346
|
+
children: [
|
|
347
|
+
(0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Heading), {
|
|
348
|
+
slot: "title",
|
|
349
|
+
className: $09cc2cf19505fddf$var$headingStyles,
|
|
350
|
+
children: title
|
|
351
|
+
}),
|
|
352
|
+
(0, $fs04y$reactjsxruntime.jsx)("p", {
|
|
353
|
+
className: $09cc2cf19505fddf$var$messageStyles,
|
|
354
|
+
children: message
|
|
355
|
+
}),
|
|
356
|
+
children && (0, $fs04y$reactjsxruntime.jsx)("div", {
|
|
357
|
+
className: " GA12",
|
|
358
|
+
children: children
|
|
359
|
+
}),
|
|
360
|
+
(0, $fs04y$reactjsxruntime.jsxs)("div", {
|
|
361
|
+
className: $09cc2cf19505fddf$var$buttonGroupStyles,
|
|
362
|
+
children: [
|
|
363
|
+
showCancel && (0, $fs04y$reactjsxruntime.jsx)((0, $e6839169613154d7$export$353f5b6fc5456de1), {
|
|
364
|
+
variant: "secondary",
|
|
365
|
+
size: "M",
|
|
366
|
+
onPress: close,
|
|
367
|
+
isDisabled: isProcessing,
|
|
368
|
+
children: cancelLabel
|
|
369
|
+
}),
|
|
370
|
+
(0, $fs04y$reactjsxruntime.jsx)((0, $e6839169613154d7$export$353f5b6fc5456de1), {
|
|
371
|
+
variant: buttonVariant,
|
|
372
|
+
size: "M",
|
|
373
|
+
onPress: handleConfirm,
|
|
374
|
+
isDisabled: isProcessing,
|
|
375
|
+
children: isProcessing ? 'Processing...' : confirmLabel
|
|
376
|
+
})
|
|
377
|
+
]
|
|
378
|
+
})
|
|
379
|
+
]
|
|
380
|
+
})
|
|
381
|
+
})
|
|
382
|
+
})
|
|
383
|
+
});
|
|
384
|
+
}
|
|
385
|
+
function $09cc2cf19505fddf$export$a551a871839880f9({ isOpen: isOpen, onClose: onClose, title: title, message: message, inputLabel: inputLabel, inputPlaceholder: inputPlaceholder = '', confirmLabel: confirmLabel = 'OK', cancelLabel: cancelLabel = 'Cancel', onConfirm: onConfirm, validator: validator }) {
|
|
386
|
+
const [value, setValue] = (0, $fs04y$react.useState)('');
|
|
387
|
+
const [error, setError] = (0, $fs04y$react.useState)(null);
|
|
388
|
+
const [isProcessing, setIsProcessing] = (0, $fs04y$react.useState)(false);
|
|
389
|
+
const handleConfirm = async ()=>{
|
|
390
|
+
// Validate
|
|
391
|
+
if (validator) {
|
|
392
|
+
const validationError = validator(value);
|
|
393
|
+
if (validationError) {
|
|
394
|
+
setError(validationError);
|
|
395
|
+
return;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
setIsProcessing(true);
|
|
399
|
+
try {
|
|
400
|
+
await onConfirm(value);
|
|
401
|
+
setValue('');
|
|
402
|
+
setError(null);
|
|
403
|
+
onClose();
|
|
404
|
+
} finally{
|
|
405
|
+
setIsProcessing(false);
|
|
406
|
+
}
|
|
407
|
+
};
|
|
408
|
+
const handleClose = ()=>{
|
|
409
|
+
setValue('');
|
|
410
|
+
setError(null);
|
|
411
|
+
onClose();
|
|
412
|
+
};
|
|
413
|
+
return (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.ModalOverlay), {
|
|
414
|
+
isOpen: isOpen,
|
|
415
|
+
onOpenChange: (open)=>!open && handleClose(),
|
|
416
|
+
className: $09cc2cf19505fddf$var$overlayStyles,
|
|
417
|
+
children: (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Modal), {
|
|
418
|
+
className: $09cc2cf19505fddf$var$modalStyles,
|
|
419
|
+
children: (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Dialog), {
|
|
420
|
+
children: ({ close: close })=>(0, $fs04y$reactjsxruntime.jsxs)((0, $fs04y$reactjsxruntime.Fragment), {
|
|
421
|
+
children: [
|
|
422
|
+
(0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Heading), {
|
|
423
|
+
slot: "title",
|
|
424
|
+
className: $09cc2cf19505fddf$var$headingStyles,
|
|
425
|
+
children: title
|
|
426
|
+
}),
|
|
427
|
+
(0, $fs04y$reactjsxruntime.jsx)("p", {
|
|
428
|
+
className: $09cc2cf19505fddf$var$messageStyles,
|
|
429
|
+
children: message
|
|
430
|
+
}),
|
|
431
|
+
(0, $fs04y$reactjsxruntime.jsx)("div", {
|
|
432
|
+
className: " GA12",
|
|
433
|
+
children: (0, $fs04y$reactjsxruntime.jsx)((0, $6ab530226d5e3153$export$2c73285ae9390cec), {
|
|
434
|
+
label: inputLabel,
|
|
435
|
+
value: value,
|
|
436
|
+
onChange: (newValue)=>{
|
|
437
|
+
setValue(newValue);
|
|
438
|
+
setError(null);
|
|
439
|
+
},
|
|
440
|
+
placeholder: inputPlaceholder,
|
|
441
|
+
error: error || undefined,
|
|
442
|
+
autoFocus: true
|
|
443
|
+
})
|
|
444
|
+
}),
|
|
445
|
+
(0, $fs04y$reactjsxruntime.jsxs)("div", {
|
|
446
|
+
className: $09cc2cf19505fddf$var$buttonGroupStyles,
|
|
447
|
+
children: [
|
|
448
|
+
(0, $fs04y$reactjsxruntime.jsx)((0, $e6839169613154d7$export$353f5b6fc5456de1), {
|
|
449
|
+
variant: "secondary",
|
|
450
|
+
size: "M",
|
|
451
|
+
onPress: ()=>{
|
|
452
|
+
setValue('');
|
|
453
|
+
setError(null);
|
|
454
|
+
close();
|
|
455
|
+
},
|
|
456
|
+
isDisabled: isProcessing,
|
|
457
|
+
children: cancelLabel
|
|
458
|
+
}),
|
|
459
|
+
(0, $fs04y$reactjsxruntime.jsx)((0, $e6839169613154d7$export$353f5b6fc5456de1), {
|
|
460
|
+
variant: "primary",
|
|
461
|
+
size: "M",
|
|
462
|
+
onPress: handleConfirm,
|
|
463
|
+
isDisabled: isProcessing,
|
|
464
|
+
children: isProcessing ? 'Processing...' : confirmLabel
|
|
465
|
+
})
|
|
466
|
+
]
|
|
467
|
+
})
|
|
468
|
+
]
|
|
469
|
+
})
|
|
470
|
+
})
|
|
471
|
+
})
|
|
472
|
+
});
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
'use client';
|
|
482
|
+
const $cfd85bddfbd540ef$var$containerStyles = " sd12 _ta12 Ub12 qb12 Za12";
|
|
483
|
+
const $cfd85bddfbd540ef$var$labelStyles = " uk12 uch12 udi12 uea12 ugb12 uhd12 uje12 u2NhKxcl12 uic12 -_6BNtrc-d12 vx12 wb12 xb12 _xa12 _Fb12 _FnuYUwec12 p9PEPsb12";
|
|
484
|
+
const $cfd85bddfbd540ef$var$searchFieldStyles = " sd12 _ta12 Ub12 qb12";
|
|
485
|
+
const $cfd85bddfbd540ef$var$inputContainerStyles = " _Pc12 sd12 eb12";
|
|
486
|
+
const $cfd85bddfbd540ef$var$inputStyles = function anonymous(props) {
|
|
487
|
+
let rules = " ";
|
|
488
|
+
if (props.isFocusVisible) rules += ' _Lf12';
|
|
489
|
+
else rules += ' _Le12';
|
|
490
|
+
rules += ' Oh12';
|
|
491
|
+
rules += ' _Mc12';
|
|
492
|
+
rules += ' _Kd12';
|
|
493
|
+
rules += ' Za12';
|
|
494
|
+
rules += ' Tt12';
|
|
495
|
+
rules += ' Qt12';
|
|
496
|
+
rules += ' Sm12';
|
|
497
|
+
rules += ' Rt12';
|
|
498
|
+
rules += ' uk12';
|
|
499
|
+
rules += ' uch12';
|
|
500
|
+
rules += ' udi12';
|
|
501
|
+
rules += ' uea12';
|
|
502
|
+
rules += ' ugb12';
|
|
503
|
+
rules += ' uhd12';
|
|
504
|
+
rules += ' uje12';
|
|
505
|
+
rules += ' u2NhKxcl12';
|
|
506
|
+
rules += ' uic12';
|
|
507
|
+
rules += ' -_6BNtrc-d12';
|
|
508
|
+
rules += ' vx12';
|
|
509
|
+
rules += ' wb12';
|
|
510
|
+
rules += ' xb12';
|
|
511
|
+
rules += ' _xa12';
|
|
512
|
+
rules += ' _Fb12';
|
|
513
|
+
rules += ' _FnuYUwec12';
|
|
514
|
+
rules += ' pt12';
|
|
515
|
+
rules += ' oc12';
|
|
516
|
+
rules += ' nc12';
|
|
517
|
+
rules += ' kc12';
|
|
518
|
+
rules += ' jc12';
|
|
519
|
+
rules += ' _kb12';
|
|
520
|
+
rules += ' hb12';
|
|
521
|
+
rules += ' mb12';
|
|
522
|
+
rules += ' lb12';
|
|
523
|
+
rules += ' _jf12';
|
|
524
|
+
rules += ' iWK72ub12';
|
|
525
|
+
if (props.isFocusVisible) rules += ' gG3O2ub12';
|
|
526
|
+
else if (props.isHovered) rules += ' gG3O2ub12';
|
|
527
|
+
else rules += ' g3HF2ub12';
|
|
528
|
+
return rules;
|
|
529
|
+
};
|
|
530
|
+
const $cfd85bddfbd540ef$var$searchIconStyles = " _Pa12 _Et12 WF12 _ZoL69hc12 _Ob12 pcsq3ub12";
|
|
531
|
+
const $cfd85bddfbd540ef$var$popoverStyles = " gLYrGTd12 oc12 nc12 kc12 jc12 _kb12 hb12 mb12 lb12 _jf12 iWK72ub12 _nLeasBb12 Js12 KwHzgQe12 _Na12 Pa12 _Bb12";
|
|
532
|
+
const $cfd85bddfbd540ef$var$listBoxStyles = " Tp12 Qp12 Sp12 Rp12";
|
|
533
|
+
const $cfd85bddfbd540ef$var$listBoxItemStyles = function anonymous(props) {
|
|
534
|
+
let rules = " ";
|
|
535
|
+
if (props.isFocusVisible) rules += ' _Lf12';
|
|
536
|
+
else rules += ' _Le12';
|
|
537
|
+
rules += ' Oh12';
|
|
538
|
+
rules += ' _Mc12';
|
|
539
|
+
rules += ' _Kd12';
|
|
540
|
+
rules += ' uk12';
|
|
541
|
+
rules += ' uch12';
|
|
542
|
+
rules += ' udi12';
|
|
543
|
+
rules += ' uea12';
|
|
544
|
+
rules += ' ugb12';
|
|
545
|
+
rules += ' uhd12';
|
|
546
|
+
rules += ' uje12';
|
|
547
|
+
rules += ' u2NhKxcl12';
|
|
548
|
+
rules += ' uic12';
|
|
549
|
+
rules += ' -_6BNtrc-d12';
|
|
550
|
+
rules += ' vx12';
|
|
551
|
+
rules += ' wb12';
|
|
552
|
+
rules += ' xb12';
|
|
553
|
+
rules += ' _xa12';
|
|
554
|
+
rules += ' _Fb12';
|
|
555
|
+
rules += ' _FnuYUwec12';
|
|
556
|
+
if (props.isPressed) rules += ' ppxXPsb12';
|
|
557
|
+
else if (props.isFocused) rules += ' pMbOPsb12';
|
|
558
|
+
else if (props.isHovered) rules += ' pMbOPsb12';
|
|
559
|
+
else rules += ' p9PEPsb12';
|
|
560
|
+
rules += ' St12';
|
|
561
|
+
rules += ' Rt12';
|
|
562
|
+
rules += ' Tt12';
|
|
563
|
+
rules += ' Qt12';
|
|
564
|
+
rules += ' oa12';
|
|
565
|
+
rules += ' na12';
|
|
566
|
+
rules += ' ka12';
|
|
567
|
+
rules += ' ja12';
|
|
568
|
+
rules += ' ry12';
|
|
569
|
+
rules += ' sd12';
|
|
570
|
+
rules += ' eb12';
|
|
571
|
+
rules += ' Ue12';
|
|
572
|
+
rules += ' qe12';
|
|
573
|
+
if (props.isPressed) rules += ' gjpY2ub12';
|
|
574
|
+
else if (props.isFocused) rules += ' gG3O2ub12';
|
|
575
|
+
else if (props.isHovered) rules += ' gG3O2ub12';
|
|
576
|
+
else rules += ' g912';
|
|
577
|
+
return rules;
|
|
578
|
+
};
|
|
579
|
+
const $cfd85bddfbd540ef$var$selectedItemStyles = function anonymous(props) {
|
|
580
|
+
let rules = " ";
|
|
581
|
+
if (props.isFocused) rules += ' g05TOsb12';
|
|
582
|
+
else if (props.isHovered) rules += ' g05TOsb12';
|
|
583
|
+
else rules += ' gnKKOsb12';
|
|
584
|
+
rules += ' ppxXPsb12';
|
|
585
|
+
return rules;
|
|
586
|
+
};
|
|
587
|
+
const $cfd85bddfbd540ef$var$checkboxStyles = " Zu12 Ft12 _va12";
|
|
588
|
+
const $cfd85bddfbd540ef$var$itemTextStyles = " _Nc12 Pc12 _Yb12 _7c12";
|
|
589
|
+
const $cfd85bddfbd540ef$var$errorStyles = " uk12 uch12 udi12 uea12 ugb12 uhd12 uje12 u2NhKxcl12 uic12 -_6BNtrc-c12 vx12 wb12 xb12 _xa12 _Fb12 _FnuYUwec12 pKYKCZ12";
|
|
590
|
+
function $cfd85bddfbd540ef$export$2f2b9559550c7bbc({ items: items, selectedKeys: selectedKeys, onSelectionChange: onSelectionChange, selectionMode: selectionMode = 'none', label: label, placeholder: placeholder, ariaLabel: ariaLabel, error: error, getItemText: getItemText = (item)=>item.name }) {
|
|
591
|
+
const [inputValue, setInputValue] = (0, $fs04y$react.useState)('');
|
|
592
|
+
const { contains: contains } = (0, $fs04y$reactariacomponents.useFilter)({
|
|
593
|
+
sensitivity: 'base'
|
|
594
|
+
});
|
|
595
|
+
// Filter items based on input value
|
|
596
|
+
const filteredItems = (0, $fs04y$react.useMemo)(()=>{
|
|
597
|
+
if (!inputValue) return items;
|
|
598
|
+
const searchLower = inputValue.toLowerCase();
|
|
599
|
+
return items.filter((item)=>getItemText(item).toLowerCase().includes(searchLower));
|
|
600
|
+
}, [
|
|
601
|
+
items,
|
|
602
|
+
inputValue,
|
|
603
|
+
getItemText
|
|
604
|
+
]);
|
|
605
|
+
// Sort to show selected items first when in selection mode
|
|
606
|
+
const sortedItems = (0, $fs04y$react.useMemo)(()=>{
|
|
607
|
+
if (selectionMode === 'none' || !selectedKeys) return filteredItems;
|
|
608
|
+
return [
|
|
609
|
+
...filteredItems
|
|
610
|
+
].sort((a, b)=>{
|
|
611
|
+
const aSelected = selectedKeys === 'all' || selectedKeys.has(String(a.id));
|
|
612
|
+
const bSelected = selectedKeys === 'all' || selectedKeys.has(String(b.id));
|
|
613
|
+
if (aSelected && !bSelected) return -1;
|
|
614
|
+
if (!aSelected && bSelected) return 1;
|
|
615
|
+
return 0;
|
|
616
|
+
});
|
|
617
|
+
}, [
|
|
618
|
+
filteredItems,
|
|
619
|
+
selectedKeys,
|
|
620
|
+
selectionMode
|
|
621
|
+
]);
|
|
622
|
+
const showCheckboxes = selectionMode !== 'none';
|
|
623
|
+
return (0, $fs04y$reactjsxruntime.jsx)("div", {
|
|
624
|
+
className: $cfd85bddfbd540ef$var$containerStyles,
|
|
625
|
+
children: (0, $fs04y$reactjsxruntime.jsxs)((0, $fs04y$reactariacomponents.Autocomplete), {
|
|
626
|
+
filter: contains,
|
|
627
|
+
inputValue: inputValue,
|
|
628
|
+
onInputChange: setInputValue,
|
|
629
|
+
children: [
|
|
630
|
+
(0, $fs04y$reactjsxruntime.jsxs)((0, $fs04y$reactariacomponents.SearchField), {
|
|
631
|
+
className: $cfd85bddfbd540ef$var$searchFieldStyles,
|
|
632
|
+
"aria-label": ariaLabel || label,
|
|
633
|
+
children: [
|
|
634
|
+
(0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Label), {
|
|
635
|
+
className: $cfd85bddfbd540ef$var$labelStyles,
|
|
636
|
+
children: label
|
|
637
|
+
}),
|
|
638
|
+
(0, $fs04y$reactjsxruntime.jsxs)("div", {
|
|
639
|
+
className: $cfd85bddfbd540ef$var$inputContainerStyles,
|
|
640
|
+
children: [
|
|
641
|
+
(0, $fs04y$reactjsxruntime.jsx)("div", {
|
|
642
|
+
className: $cfd85bddfbd540ef$var$searchIconStyles,
|
|
643
|
+
children: (0, $fs04y$reactjsxruntime.jsx)((0, ($parcel$interopDefault($fs04y$reactspectrums2iconsSearch))), {})
|
|
644
|
+
}),
|
|
645
|
+
(0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Input), {
|
|
646
|
+
className: $cfd85bddfbd540ef$var$inputStyles,
|
|
647
|
+
placeholder: placeholder
|
|
648
|
+
})
|
|
649
|
+
]
|
|
650
|
+
})
|
|
651
|
+
]
|
|
652
|
+
}),
|
|
653
|
+
(0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.ListBox), {
|
|
654
|
+
className: $cfd85bddfbd540ef$var$listBoxStyles,
|
|
655
|
+
items: sortedItems,
|
|
656
|
+
selectionMode: selectionMode,
|
|
657
|
+
selectedKeys: selectedKeys,
|
|
658
|
+
onSelectionChange: onSelectionChange,
|
|
659
|
+
"aria-label": ariaLabel || `${label} options`,
|
|
660
|
+
children: (item)=>{
|
|
661
|
+
const isSelected = selectedKeys === 'all' || selectedKeys && selectedKeys.has(String(item.id));
|
|
662
|
+
return (0, $fs04y$reactjsxruntime.jsxs)((0, $fs04y$reactariacomponents.ListBoxItem), {
|
|
663
|
+
id: String(item.id),
|
|
664
|
+
textValue: getItemText(item),
|
|
665
|
+
className: (renderProps)=>`${$cfd85bddfbd540ef$var$listBoxItemStyles(renderProps)} ${isSelected ? $cfd85bddfbd540ef$var$selectedItemStyles(renderProps) : ''}`,
|
|
666
|
+
children: [
|
|
667
|
+
showCheckboxes && (0, $fs04y$reactjsxruntime.jsx)("div", {
|
|
668
|
+
className: $cfd85bddfbd540ef$var$checkboxStyles,
|
|
669
|
+
children: isSelected && (0, $fs04y$reactjsxruntime.jsx)((0, ($parcel$interopDefault($fs04y$reactspectrums2iconsCheckmarkCircle))), {})
|
|
670
|
+
}),
|
|
671
|
+
(0, $fs04y$reactjsxruntime.jsx)("span", {
|
|
672
|
+
className: $cfd85bddfbd540ef$var$itemTextStyles,
|
|
673
|
+
children: getItemText(item)
|
|
674
|
+
})
|
|
675
|
+
]
|
|
676
|
+
}, item.id);
|
|
677
|
+
}
|
|
678
|
+
}),
|
|
679
|
+
error && (0, $fs04y$reactjsxruntime.jsx)("div", {
|
|
680
|
+
className: $cfd85bddfbd540ef$var$errorStyles,
|
|
681
|
+
children: error
|
|
682
|
+
})
|
|
683
|
+
]
|
|
684
|
+
})
|
|
685
|
+
});
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
|
|
692
|
+
|
|
693
|
+
|
|
694
|
+
|
|
695
|
+
|
|
696
|
+
|
|
697
|
+
'use client';
|
|
698
|
+
const $300c3c8c5b9089df$var$checkboxStyles = function anonymous(props) {
|
|
699
|
+
let rules = " ";
|
|
700
|
+
rules += ' sd12';
|
|
701
|
+
rules += ' _Pc12';
|
|
702
|
+
rules += ' eb12';
|
|
703
|
+
rules += ' Ue12';
|
|
704
|
+
rules += ' qe12';
|
|
705
|
+
rules += ' uk12';
|
|
706
|
+
rules += ' uch12';
|
|
707
|
+
rules += ' udi12';
|
|
708
|
+
rules += ' uea12';
|
|
709
|
+
rules += ' ugb12';
|
|
710
|
+
rules += ' uhd12';
|
|
711
|
+
rules += ' uje12';
|
|
712
|
+
rules += ' u2NhKxcl12';
|
|
713
|
+
rules += ' uic12';
|
|
714
|
+
rules += ' -_6BNtrc-d12';
|
|
715
|
+
rules += ' vx12';
|
|
716
|
+
rules += ' wb12';
|
|
717
|
+
rules += ' xb12';
|
|
718
|
+
rules += ' _xa12';
|
|
719
|
+
rules += ' _Fb12';
|
|
720
|
+
rules += ' _FnuYUwec12';
|
|
721
|
+
if (props.isDisabled) rules += ' pp12';
|
|
722
|
+
else rules += ' p9PEPsb12';
|
|
723
|
+
if (props.isDisabled) rules += ' ri12';
|
|
724
|
+
else rules += ' ry12';
|
|
725
|
+
rules += ' __ca12';
|
|
726
|
+
return rules;
|
|
727
|
+
};
|
|
728
|
+
const $300c3c8c5b9089df$var$boxStyles = function anonymous(props) {
|
|
729
|
+
let rules = " ";
|
|
730
|
+
if (props.isFocusVisible) rules += ' _Lf12';
|
|
731
|
+
else rules += ' _Le12';
|
|
732
|
+
rules += ' Oh12';
|
|
733
|
+
rules += ' _Mc12';
|
|
734
|
+
rules += ' _Kd12';
|
|
735
|
+
if (props.size === "L") rules += ' Zo12';
|
|
736
|
+
else if (props.size === "M") rules += ' Zm12';
|
|
737
|
+
else if (props.size === "S") rules += ' Zu12';
|
|
738
|
+
else rules += ' Zm12';
|
|
739
|
+
if (props.size === "L") rules += ' Fp12';
|
|
740
|
+
else if (props.size === "M") rules += ' Fn12';
|
|
741
|
+
else if (props.size === "S") rules += ' Ft12';
|
|
742
|
+
else rules += ' Fn12';
|
|
743
|
+
rules += ' _va12';
|
|
744
|
+
rules += ' sd12';
|
|
745
|
+
rules += ' eb12';
|
|
746
|
+
rules += ' _Ca12';
|
|
747
|
+
rules += ' _kc12';
|
|
748
|
+
rules += ' hc12';
|
|
749
|
+
rules += ' mc12';
|
|
750
|
+
rules += ' lc12';
|
|
751
|
+
rules += ' _jf12';
|
|
752
|
+
rules += ' oa12';
|
|
753
|
+
rules += ' na12';
|
|
754
|
+
rules += ' ka12';
|
|
755
|
+
rules += ' ja12';
|
|
756
|
+
rules += ' Yd12';
|
|
757
|
+
rules += ' Xb12';
|
|
758
|
+
rules += ' _2b12';
|
|
759
|
+
if (props.isDisabled) {
|
|
760
|
+
if (props.isSelected) rules += ' gw12';
|
|
761
|
+
else rules += ' gH12';
|
|
762
|
+
} else if (props.isSelected) {
|
|
763
|
+
if (props.isPressed) rules += ' gMbOPsb12';
|
|
764
|
+
else if (props.isHovered) rules += ' g9PEPsb12';
|
|
765
|
+
else rules += ' gwuvPsb12';
|
|
766
|
+
} else rules += ' gqlRAZb12';
|
|
767
|
+
if (props.isDisabled) rules += ' iq12';
|
|
768
|
+
else if (props.isSelected) rules += ' iA12';
|
|
769
|
+
else if (props.isPressed) rules += ' iwuvPsb12';
|
|
770
|
+
else if (props.isHovered) rules += ' iT8lPsb12';
|
|
771
|
+
else rules += ' igNcPsb12';
|
|
772
|
+
return rules;
|
|
773
|
+
};
|
|
774
|
+
const $300c3c8c5b9089df$var$dashStyles = " ZC4Nfn12 FlAZvq12 g4hn3s12 oa12 na12 ka12 ja12";
|
|
775
|
+
function $300c3c8c5b9089df$export$48513f6b9f8ce62d({ size: size = 'M', children: children, ...props }) {
|
|
776
|
+
return (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Checkbox), {
|
|
777
|
+
...props,
|
|
778
|
+
className: (renderProps)=>$300c3c8c5b9089df$var$checkboxStyles(renderProps),
|
|
779
|
+
children: (renderProps)=>{
|
|
780
|
+
const { isSelected: isSelected, isIndeterminate: isIndeterminate } = renderProps;
|
|
781
|
+
return (0, $fs04y$reactjsxruntime.jsxs)((0, $fs04y$reactjsxruntime.Fragment), {
|
|
782
|
+
children: [
|
|
783
|
+
(0, $fs04y$reactjsxruntime.jsx)("div", {
|
|
784
|
+
className: $300c3c8c5b9089df$var$boxStyles({
|
|
785
|
+
...renderProps,
|
|
786
|
+
isSelected: isSelected || isIndeterminate,
|
|
787
|
+
size: size
|
|
788
|
+
}),
|
|
789
|
+
children: isIndeterminate ? (0, $fs04y$reactjsxruntime.jsx)("div", {
|
|
790
|
+
className: $300c3c8c5b9089df$var$dashStyles
|
|
791
|
+
}) : isSelected ? (0, $fs04y$reactjsxruntime.jsx)("svg", {
|
|
792
|
+
viewBox: "0 0 18 18",
|
|
793
|
+
"aria-hidden": "true",
|
|
794
|
+
className: "checkbox-checkmark",
|
|
795
|
+
children: (0, $fs04y$reactjsxruntime.jsx)("polyline", {
|
|
796
|
+
points: "2 9 7 14 16 4",
|
|
797
|
+
className: "checkbox-checkmark-path checkbox-checkmark-selected"
|
|
798
|
+
})
|
|
799
|
+
}) : null
|
|
800
|
+
}),
|
|
801
|
+
children
|
|
802
|
+
]
|
|
803
|
+
});
|
|
804
|
+
}
|
|
805
|
+
});
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
|
|
809
|
+
|
|
810
|
+
|
|
811
|
+
|
|
812
|
+
const $59fb461a0a6fd889$var$progressBarStyles = " sd12 _ta12 Ub12 qb12 Za12";
|
|
813
|
+
const $59fb461a0a6fd889$var$labelStyles = " uk12 uch12 udi12 uea12 ugb12 uhd12 uje12 u2NhKxcl12 uic12 -_6BNtrc-d12 vx12 wb12 xb12 _xa12 _Fb12 _FnuYUwec12 p9PEPsb12 sd12 _Ce12";
|
|
814
|
+
const $59fb461a0a6fd889$var$trackStyles = " Fg12 gG3O2ub12 og12 ng12 kg12 jg12 _Nc12 Pc12 _Pc12";
|
|
815
|
+
const $59fb461a0a6fd889$var$fillStyles = " Fb12 gT8lPsb12 og12 ng12 kg12 jg12";
|
|
816
|
+
const $59fb461a0a6fd889$var$indeterminateFillStyles = " Fb12 gT8lPsb12 og12 ng12 kg12 jg12 ZuvNfn12";
|
|
817
|
+
function $59fb461a0a6fd889$export$c17561cb55d4db30({ label: label, value: value = 0, maxValue: maxValue = 100, isIndeterminate: isIndeterminate = false, showValueLabel: showValueLabel = true, 'aria-label': ariaLabel }) {
|
|
818
|
+
return (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.ProgressBar), {
|
|
819
|
+
value: isIndeterminate ? undefined : value,
|
|
820
|
+
maxValue: maxValue,
|
|
821
|
+
isIndeterminate: isIndeterminate,
|
|
822
|
+
"aria-label": ariaLabel || label,
|
|
823
|
+
className: $59fb461a0a6fd889$var$progressBarStyles,
|
|
824
|
+
children: ({ percentage: percentage, valueText: valueText })=>(0, $fs04y$reactjsxruntime.jsxs)((0, $fs04y$reactjsxruntime.Fragment), {
|
|
825
|
+
children: [
|
|
826
|
+
label && (0, $fs04y$reactjsxruntime.jsxs)("div", {
|
|
827
|
+
className: $59fb461a0a6fd889$var$labelStyles,
|
|
828
|
+
children: [
|
|
829
|
+
(0, $fs04y$reactjsxruntime.jsx)("span", {
|
|
830
|
+
children: label
|
|
831
|
+
}),
|
|
832
|
+
!isIndeterminate && showValueLabel && (0, $fs04y$reactjsxruntime.jsx)("span", {
|
|
833
|
+
children: valueText
|
|
834
|
+
})
|
|
835
|
+
]
|
|
836
|
+
}),
|
|
837
|
+
(0, $fs04y$reactjsxruntime.jsx)("div", {
|
|
838
|
+
className: $59fb461a0a6fd889$var$trackStyles,
|
|
839
|
+
children: (0, $fs04y$reactjsxruntime.jsx)("div", {
|
|
840
|
+
className: `${isIndeterminate ? 'progress-fill-indeterminate' : 'progress-fill'} ${isIndeterminate ? $59fb461a0a6fd889$var$indeterminateFillStyles : $59fb461a0a6fd889$var$fillStyles}`,
|
|
841
|
+
style: isIndeterminate ? undefined : {
|
|
842
|
+
width: `${percentage}%`
|
|
843
|
+
}
|
|
844
|
+
})
|
|
845
|
+
})
|
|
846
|
+
]
|
|
847
|
+
})
|
|
848
|
+
});
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
|
|
852
|
+
|
|
853
|
+
'use client';
|
|
854
|
+
const $dd65cef98a3548c0$var$tableContainerStyles = " gqlRAZb12 oe12 ne12 ke12 je12 _kb12 hb12 mb12 lb12 _jf12 i05TOsb12 _Nc12 Pc12";
|
|
855
|
+
const $dd65cef98a3548c0$var$tableStyles = " Za12 __na12";
|
|
856
|
+
const $dd65cef98a3548c0$var$tableHeaderStyles = " gG3O2ub12 hb12";
|
|
857
|
+
const $dd65cef98a3548c0$var$columnHeaderStyles = function anonymous(props) {
|
|
858
|
+
let rules = " ";
|
|
859
|
+
rules += ' Tf12';
|
|
860
|
+
rules += ' Qf12';
|
|
861
|
+
rules += ' Sf12';
|
|
862
|
+
rules += ' Rf12';
|
|
863
|
+
if (props.align === "end") rules += ' _Wb12';
|
|
864
|
+
else if (props.align === "center") rules += ' _Wa12';
|
|
865
|
+
else if (props.align === "start") rules += ' _Wd12';
|
|
866
|
+
else rules += ' _Wd12';
|
|
867
|
+
rules += ' uk12';
|
|
868
|
+
rules += ' uch12';
|
|
869
|
+
rules += ' udi12';
|
|
870
|
+
rules += ' uea12';
|
|
871
|
+
rules += ' ugb12';
|
|
872
|
+
rules += ' uhd12';
|
|
873
|
+
rules += ' uje12';
|
|
874
|
+
rules += ' u2NhKxcl12';
|
|
875
|
+
rules += ' uic12';
|
|
876
|
+
rules += ' -_6BNtrc-e12';
|
|
877
|
+
rules += ' vx12';
|
|
878
|
+
rules += ' wd12';
|
|
879
|
+
rules += ' xd12';
|
|
880
|
+
rules += ' _xa12';
|
|
881
|
+
rules += ' wX0cczbc12';
|
|
882
|
+
rules += ' xX0cczbc12';
|
|
883
|
+
rules += ' _xX0cczba12';
|
|
884
|
+
rules += ' wfd12';
|
|
885
|
+
rules += ' xfd12';
|
|
886
|
+
rules += ' _xfa12';
|
|
887
|
+
rules += ' wfX0cczbc12';
|
|
888
|
+
rules += ' xfX0cczbc12';
|
|
889
|
+
rules += ' _xfX0cczba12';
|
|
890
|
+
rules += ' _Fd12';
|
|
891
|
+
rules += ' _FezxGHba12';
|
|
892
|
+
rules += ' _FnuYUweb12';
|
|
893
|
+
rules += ' p9PEPsb12';
|
|
894
|
+
if (props.allowsSorting) rules += ' ry12';
|
|
895
|
+
return rules;
|
|
896
|
+
};
|
|
897
|
+
const $dd65cef98a3548c0$var$rowStyles = function anonymous(props) {
|
|
898
|
+
let rules = " ";
|
|
899
|
+
if (props.isFocusVisible) rules += ' _Lf12';
|
|
900
|
+
else rules += ' _Le12';
|
|
901
|
+
rules += ' Oh12';
|
|
902
|
+
rules += ' _Mc12';
|
|
903
|
+
rules += ' _Kd12';
|
|
904
|
+
if (props.isFocusVisible) rules += ' g3HF2ub12';
|
|
905
|
+
else if (props.isSelected) rules += ' gnKKOsb12';
|
|
906
|
+
else if (props.isHovered) rules += ' g3HF2ub12';
|
|
907
|
+
else rules += ' g912';
|
|
908
|
+
if (props.selectionMode === "multiple") rules += ' ry12';
|
|
909
|
+
else if (props.selectionMode === "single") rules += ' ry12';
|
|
910
|
+
else rules += ' ri12';
|
|
911
|
+
return rules;
|
|
912
|
+
};
|
|
913
|
+
const $dd65cef98a3548c0$var$cellStyles = function anonymous(props) {
|
|
914
|
+
let rules = " ";
|
|
915
|
+
rules += ' Tf12';
|
|
916
|
+
rules += ' Qf12';
|
|
917
|
+
rules += ' Sf12';
|
|
918
|
+
rules += ' Rf12';
|
|
919
|
+
if (props.align === "end") rules += ' _Wb12';
|
|
920
|
+
else if (props.align === "center") rules += ' _Wa12';
|
|
921
|
+
else if (props.align === "start") rules += ' _Wd12';
|
|
922
|
+
else rules += ' _Wd12';
|
|
923
|
+
rules += ' uk12';
|
|
924
|
+
rules += ' uch12';
|
|
925
|
+
rules += ' udi12';
|
|
926
|
+
rules += ' uea12';
|
|
927
|
+
rules += ' ugb12';
|
|
928
|
+
rules += ' uhd12';
|
|
929
|
+
rules += ' uje12';
|
|
930
|
+
rules += ' u2NhKxcl12';
|
|
931
|
+
rules += ' uic12';
|
|
932
|
+
rules += ' -_6BNtrc-d12';
|
|
933
|
+
rules += ' vx12';
|
|
934
|
+
rules += ' wb12';
|
|
935
|
+
rules += ' xb12';
|
|
936
|
+
rules += ' _xa12';
|
|
937
|
+
rules += ' _Fb12';
|
|
938
|
+
rules += ' _FnuYUwec12';
|
|
939
|
+
rules += ' p9PEPsb12';
|
|
940
|
+
rules += ' hb12';
|
|
941
|
+
return rules;
|
|
942
|
+
};
|
|
943
|
+
const $dd65cef98a3548c0$var$checkboxCellStyles = " Tf12 Qf12 Sf12 Rf12 ZF12 hb12";
|
|
944
|
+
const $dd65cef98a3548c0$var$emptyStateStyles = " To12 Qo12 So12 Ro12 _Wa12 uk12 uch12 udi12 uea12 ugb12 uhd12 uje12 u2NhKxcl12 uic12 -_6BNtrc-d12 vx12 wb12 xb12 _xa12 _Fb12 _FnuYUwec12 pwuvPsb12";
|
|
945
|
+
const $dd65cef98a3548c0$var$loadingStyles = " Th12 Qh12 Sh12 Rh12 sd12 _Ca12";
|
|
946
|
+
const $dd65cef98a3548c0$var$scrollTriggerStyles = " FesY7Od12 _Ob12";
|
|
947
|
+
function $dd65cef98a3548c0$export$54ec01a60f47d33d({ data: data, columns: columns, onRowAction: onRowAction, ariaLabel: ariaLabel, sortDescriptor: sortDescriptor, onSortChange: onSortChange, selectionMode: selectionMode = 'none', selectedKeys: selectedKeys, onSelectionChange: onSelectionChange, onLoadMore: onLoadMore, isLoadingMore: isLoadingMore }) {
|
|
948
|
+
const observerTarget = (0, $fs04y$react.useRef)(null);
|
|
949
|
+
// Infinite scroll observer
|
|
950
|
+
(0, $fs04y$react.useEffect)(()=>{
|
|
951
|
+
if (!onLoadMore) return;
|
|
952
|
+
const observer = new IntersectionObserver((entries)=>{
|
|
953
|
+
if (entries[0].isIntersecting && !isLoadingMore) onLoadMore();
|
|
954
|
+
}, {
|
|
955
|
+
threshold: 0.1,
|
|
956
|
+
rootMargin: '100px'
|
|
957
|
+
});
|
|
958
|
+
if (observerTarget.current) observer.observe(observerTarget.current);
|
|
959
|
+
return ()=>observer.disconnect();
|
|
960
|
+
}, [
|
|
961
|
+
onLoadMore,
|
|
962
|
+
isLoadingMore
|
|
963
|
+
]);
|
|
964
|
+
return (0, $fs04y$reactjsxruntime.jsxs)((0, $fs04y$reactjsxruntime.Fragment), {
|
|
965
|
+
children: [
|
|
966
|
+
(0, $fs04y$reactjsxruntime.jsx)("div", {
|
|
967
|
+
className: $dd65cef98a3548c0$var$tableContainerStyles,
|
|
968
|
+
children: (0, $fs04y$reactjsxruntime.jsxs)((0, $fs04y$reactariacomponents.Table), {
|
|
969
|
+
"aria-label": ariaLabel,
|
|
970
|
+
selectionMode: selectionMode,
|
|
971
|
+
selectedKeys: selectedKeys,
|
|
972
|
+
onSelectionChange: onSelectionChange,
|
|
973
|
+
onRowAction: onRowAction,
|
|
974
|
+
sortDescriptor: sortDescriptor,
|
|
975
|
+
onSortChange: onSortChange,
|
|
976
|
+
className: $dd65cef98a3548c0$var$tableStyles,
|
|
977
|
+
children: [
|
|
978
|
+
(0, $fs04y$reactjsxruntime.jsxs)((0, $fs04y$reactariacomponents.TableHeader), {
|
|
979
|
+
className: $dd65cef98a3548c0$var$tableHeaderStyles,
|
|
980
|
+
children: [
|
|
981
|
+
selectionMode === 'multiple' && (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Column), {
|
|
982
|
+
className: $dd65cef98a3548c0$var$columnHeaderStyles({
|
|
983
|
+
align: 'center',
|
|
984
|
+
alignItems: 'center'
|
|
985
|
+
}),
|
|
986
|
+
children: (0, $fs04y$reactjsxruntime.jsx)((0, $300c3c8c5b9089df$export$48513f6b9f8ce62d), {
|
|
987
|
+
slot: "selection",
|
|
988
|
+
size: "S"
|
|
989
|
+
})
|
|
990
|
+
}),
|
|
991
|
+
columns.map((column)=>(0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Column), {
|
|
992
|
+
id: column.key,
|
|
993
|
+
isRowHeader: column.isRowHeader,
|
|
994
|
+
allowsSorting: !!onSortChange,
|
|
995
|
+
className: $dd65cef98a3548c0$var$columnHeaderStyles({
|
|
996
|
+
align: column.align
|
|
997
|
+
}),
|
|
998
|
+
children: column.label
|
|
999
|
+
}, column.key))
|
|
1000
|
+
]
|
|
1001
|
+
}),
|
|
1002
|
+
(0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.TableBody), {
|
|
1003
|
+
items: data,
|
|
1004
|
+
renderEmptyState: ()=>(0, $fs04y$reactjsxruntime.jsx)("div", {
|
|
1005
|
+
className: $dd65cef98a3548c0$var$emptyStateStyles,
|
|
1006
|
+
children: "No data available"
|
|
1007
|
+
}),
|
|
1008
|
+
children: (item)=>(0, $fs04y$reactjsxruntime.jsxs)((0, $fs04y$reactariacomponents.Row), {
|
|
1009
|
+
id: item.id,
|
|
1010
|
+
className: (renderProps)=>$dd65cef98a3548c0$var$rowStyles({
|
|
1011
|
+
...renderProps,
|
|
1012
|
+
onRowAction: !!onRowAction,
|
|
1013
|
+
selectionMode: selectionMode
|
|
1014
|
+
}),
|
|
1015
|
+
children: [
|
|
1016
|
+
selectionMode === 'multiple' && (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Cell), {
|
|
1017
|
+
className: $dd65cef98a3548c0$var$checkboxCellStyles,
|
|
1018
|
+
children: (0, $fs04y$reactjsxruntime.jsx)((0, $300c3c8c5b9089df$export$48513f6b9f8ce62d), {
|
|
1019
|
+
slot: "selection",
|
|
1020
|
+
size: "S"
|
|
1021
|
+
})
|
|
1022
|
+
}),
|
|
1023
|
+
columns.map((column)=>(0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Cell), {
|
|
1024
|
+
className: $dd65cef98a3548c0$var$cellStyles({
|
|
1025
|
+
align: column.align
|
|
1026
|
+
}),
|
|
1027
|
+
children: column.renderCell(item)
|
|
1028
|
+
}, column.key))
|
|
1029
|
+
]
|
|
1030
|
+
}, item.id)
|
|
1031
|
+
})
|
|
1032
|
+
]
|
|
1033
|
+
})
|
|
1034
|
+
}),
|
|
1035
|
+
onLoadMore && (0, $fs04y$reactjsxruntime.jsx)("div", {
|
|
1036
|
+
ref: observerTarget,
|
|
1037
|
+
className: $dd65cef98a3548c0$var$scrollTriggerStyles
|
|
1038
|
+
}),
|
|
1039
|
+
isLoadingMore && (0, $fs04y$reactjsxruntime.jsx)("div", {
|
|
1040
|
+
className: $dd65cef98a3548c0$var$loadingStyles,
|
|
1041
|
+
children: (0, $fs04y$reactjsxruntime.jsx)((0, $59fb461a0a6fd889$export$c17561cb55d4db30), {
|
|
1042
|
+
isIndeterminate: true,
|
|
1043
|
+
"aria-label": "Loading more items"
|
|
1044
|
+
})
|
|
1045
|
+
})
|
|
1046
|
+
]
|
|
1047
|
+
});
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
|
|
1051
|
+
'use client';
|
|
1052
|
+
const $20f70425cfce230f$var$containerStyles = " sd12 _ta12 Ul12 ql12 Za12";
|
|
1053
|
+
const $20f70425cfce230f$var$tableContainerStyles = " KlMDJtd12 _Na12 Pa12";
|
|
1054
|
+
function $20f70425cfce230f$export$5f8b5a1eceff31bd({ allItems: allItems, selectedKeys: selectedKeys, onSelectionChange: onSelectionChange, selectionMode: selectionMode = 'multiple', searchLabel: searchLabel, searchPlaceholder: searchPlaceholder, getItemText: getItemText, columns: columns, tableLabel: tableLabel }) {
|
|
1055
|
+
// Filter to show only selected items in table
|
|
1056
|
+
const selectedItems = (0, $fs04y$react.useMemo)(()=>{
|
|
1057
|
+
if (selectedKeys === 'all') return allItems;
|
|
1058
|
+
if (!selectedKeys || selectedKeys.size === 0) return [];
|
|
1059
|
+
return allItems.filter((item)=>selectedKeys.has(String(item.id)));
|
|
1060
|
+
}, [
|
|
1061
|
+
allItems,
|
|
1062
|
+
selectedKeys
|
|
1063
|
+
]);
|
|
1064
|
+
return (0, $fs04y$reactjsxruntime.jsxs)("div", {
|
|
1065
|
+
className: $20f70425cfce230f$var$containerStyles,
|
|
1066
|
+
children: [
|
|
1067
|
+
(0, $fs04y$reactjsxruntime.jsx)((0, $cfd85bddfbd540ef$export$2f2b9559550c7bbc), {
|
|
1068
|
+
items: allItems,
|
|
1069
|
+
selectedKeys: selectedKeys,
|
|
1070
|
+
onSelectionChange: onSelectionChange,
|
|
1071
|
+
selectionMode: selectionMode,
|
|
1072
|
+
label: searchLabel,
|
|
1073
|
+
placeholder: searchPlaceholder,
|
|
1074
|
+
getItemText: getItemText
|
|
1075
|
+
}),
|
|
1076
|
+
(0, $fs04y$reactjsxruntime.jsx)("div", {
|
|
1077
|
+
className: $20f70425cfce230f$var$tableContainerStyles,
|
|
1078
|
+
children: (0, $fs04y$reactjsxruntime.jsx)((0, $dd65cef98a3548c0$export$54ec01a60f47d33d), {
|
|
1079
|
+
columns: columns,
|
|
1080
|
+
data: selectedItems,
|
|
1081
|
+
ariaLabel: tableLabel
|
|
1082
|
+
})
|
|
1083
|
+
})
|
|
1084
|
+
]
|
|
1085
|
+
});
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
|
|
1089
|
+
|
|
1090
|
+
'use client';
|
|
1091
|
+
const $5f63bea78c5270d1$var$badgeStyles = function anonymous(props) {
|
|
1092
|
+
let rules = " ";
|
|
1093
|
+
rules += ' Tp12';
|
|
1094
|
+
rules += ' Qp12';
|
|
1095
|
+
rules += ' Se12';
|
|
1096
|
+
rules += ' Re12';
|
|
1097
|
+
rules += ' oc12';
|
|
1098
|
+
rules += ' nc12';
|
|
1099
|
+
rules += ' kc12';
|
|
1100
|
+
rules += ' jc12';
|
|
1101
|
+
rules += ' uk12';
|
|
1102
|
+
rules += ' uch12';
|
|
1103
|
+
rules += ' udi12';
|
|
1104
|
+
rules += ' uea12';
|
|
1105
|
+
rules += ' ugb12';
|
|
1106
|
+
rules += ' uhd12';
|
|
1107
|
+
rules += ' uje12';
|
|
1108
|
+
rules += ' u2NhKxcl12';
|
|
1109
|
+
rules += ' uic12';
|
|
1110
|
+
rules += ' -_6BNtrc-b12';
|
|
1111
|
+
rules += ' vx12';
|
|
1112
|
+
rules += ' wb12';
|
|
1113
|
+
rules += ' xb12';
|
|
1114
|
+
rules += ' _xa12';
|
|
1115
|
+
rules += ' _Fd12';
|
|
1116
|
+
rules += ' _FezxGHba12';
|
|
1117
|
+
rules += ' _FnuYUweb12';
|
|
1118
|
+
if (props.variant === "peach") rules += ' p2sDTm12';
|
|
1119
|
+
else if (props.variant === "ginger") rules += ' pfcs4R12';
|
|
1120
|
+
else if (props.variant === "berry") rules += ' pnkUCZ12';
|
|
1121
|
+
else if (props.variant === "cucumber") rules += ' ph8b8yb12';
|
|
1122
|
+
else if (props.variant === "plum") rules += ' p9PEPsb12';
|
|
1123
|
+
else if (props.variant === "pending") rules += ' p9PEPsb12';
|
|
1124
|
+
else if (props.variant === "cancelled") rules += ' p9PEPsb12';
|
|
1125
|
+
else if (props.variant === "failed") rules += ' pnkUCZ12';
|
|
1126
|
+
else if (props.variant === "running") rules += ' pfcs4R12';
|
|
1127
|
+
else if (props.variant === "completed") rules += ' ph8b8yb12';
|
|
1128
|
+
rules += ' sg12';
|
|
1129
|
+
if (props.variant === "peach") rules += ' ggnJSm12';
|
|
1130
|
+
else if (props.variant === "ginger") rules += ' gt6x3R12';
|
|
1131
|
+
else if (props.variant === "berry") rules += ' gBe0BZ12';
|
|
1132
|
+
else if (props.variant === "cucumber") rules += ' gv2h7yb12';
|
|
1133
|
+
else if (props.variant === "plum") rules += ' gnKKOsb12';
|
|
1134
|
+
else if (props.variant === "pending") rules += ' gnKKOsb12';
|
|
1135
|
+
else if (props.variant === "cancelled") rules += ' gnKKOsb12';
|
|
1136
|
+
else if (props.variant === "failed") rules += ' gBe0BZ12';
|
|
1137
|
+
else if (props.variant === "running") rules += ' gt6x3R12';
|
|
1138
|
+
else if (props.variant === "completed") rules += ' gv2h7yb12';
|
|
1139
|
+
return rules;
|
|
1140
|
+
};
|
|
1141
|
+
function $5f63bea78c5270d1$export$37acb3580601e69a({ variant: variant, children: children }) {
|
|
1142
|
+
return (0, $fs04y$reactjsxruntime.jsx)("span", {
|
|
1143
|
+
className: $5f63bea78c5270d1$var$badgeStyles({
|
|
1144
|
+
variant: variant
|
|
1145
|
+
}),
|
|
1146
|
+
children: children
|
|
1147
|
+
});
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
|
|
1151
|
+
|
|
1152
|
+
|
|
1153
|
+
|
|
1154
|
+
|
|
1155
|
+
|
|
1156
|
+
|
|
1157
|
+
|
|
1158
|
+
|
|
1159
|
+
'use client';
|
|
1160
|
+
const $25d82f0a3d474ebc$var$I18nContext = /*#__PURE__*/ (0, $fs04y$react.createContext)(undefined);
|
|
1161
|
+
function $25d82f0a3d474ebc$export$a54013f0d02a8f82({ children: children, messages: messages }) {
|
|
1162
|
+
// For MVP, we'll start with just English
|
|
1163
|
+
// Future: Add locale state management and persistence
|
|
1164
|
+
const locale = 'en';
|
|
1165
|
+
const setLocale = (newLocale)=>{
|
|
1166
|
+
// Future: Implement locale switching with localStorage
|
|
1167
|
+
console.log('Locale switching to:', newLocale);
|
|
1168
|
+
};
|
|
1169
|
+
// Defensive check: ensure messages are loaded
|
|
1170
|
+
const currentMessages = messages?.[locale] || {};
|
|
1171
|
+
if (!messages || Object.keys(currentMessages).length === 0) console.warn('I18nProvider: No messages loaded for locale:', locale);
|
|
1172
|
+
return (0, $fs04y$reactjsxruntime.jsx)($25d82f0a3d474ebc$var$I18nContext.Provider, {
|
|
1173
|
+
value: {
|
|
1174
|
+
locale: locale,
|
|
1175
|
+
setLocale: setLocale
|
|
1176
|
+
},
|
|
1177
|
+
children: (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactintl.IntlProvider), {
|
|
1178
|
+
messages: currentMessages,
|
|
1179
|
+
locale: locale,
|
|
1180
|
+
defaultLocale: "en",
|
|
1181
|
+
children: children
|
|
1182
|
+
})
|
|
1183
|
+
});
|
|
1184
|
+
}
|
|
1185
|
+
function $25d82f0a3d474ebc$export$3f3caade1c12f8c9() {
|
|
1186
|
+
const context = (0, $fs04y$react.useContext)($25d82f0a3d474ebc$var$I18nContext);
|
|
1187
|
+
if (context === undefined) throw new Error('useI18n must be used within an I18nProvider');
|
|
1188
|
+
return context;
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
|
|
1192
|
+
const $5a568b5eb65bfe76$var$closeButtonStyles = function anonymous(props) {
|
|
1193
|
+
let rules = " ";
|
|
1194
|
+
if (props.isFocusVisible) rules += ' _Lf12';
|
|
1195
|
+
else rules += ' _Le12';
|
|
1196
|
+
rules += ' Oh12';
|
|
1197
|
+
rules += ' _Mc12';
|
|
1198
|
+
rules += ' _Kd12';
|
|
1199
|
+
rules += ' Tt12';
|
|
1200
|
+
rules += ' Qt12';
|
|
1201
|
+
rules += ' St12';
|
|
1202
|
+
rules += ' Rt12';
|
|
1203
|
+
if (props.isPressed) rules += ' gG3O2ub12';
|
|
1204
|
+
else if (props.isHovered) rules += ' g3HF2ub12';
|
|
1205
|
+
else rules += ' g912';
|
|
1206
|
+
rules += ' _je12';
|
|
1207
|
+
rules += ' oc12';
|
|
1208
|
+
rules += ' nc12';
|
|
1209
|
+
rules += ' kc12';
|
|
1210
|
+
rules += ' jc12';
|
|
1211
|
+
rules += ' ry12';
|
|
1212
|
+
rules += ' sd12';
|
|
1213
|
+
rules += ' eb12';
|
|
1214
|
+
rules += ' _Ca12';
|
|
1215
|
+
return rules;
|
|
1216
|
+
};
|
|
1217
|
+
const $5a568b5eb65bfe76$export$de65de8213222d10 = ({ onClose: onClose, ...props })=>{
|
|
1218
|
+
const intl = (0, $25d82f0a3d474ebc$re_export$useIntl)();
|
|
1219
|
+
return (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Button), {
|
|
1220
|
+
...props,
|
|
1221
|
+
onPress: onClose,
|
|
1222
|
+
className: (renderProps)=>$5a568b5eb65bfe76$var$closeButtonStyles(renderProps),
|
|
1223
|
+
"aria-label": intl.formatMessage({
|
|
1224
|
+
id: 'ferment.detail.close'
|
|
1225
|
+
}),
|
|
1226
|
+
children: (0, $fs04y$reactjsxruntime.jsx)((0, ($parcel$interopDefault($fs04y$reactspectrums2iconsCloseCircle))), {
|
|
1227
|
+
styles: " Zp12 Fq12"
|
|
1228
|
+
})
|
|
1229
|
+
});
|
|
1230
|
+
};
|
|
1231
|
+
|
|
1232
|
+
|
|
1233
|
+
|
|
1234
|
+
|
|
1235
|
+
|
|
1236
|
+
'use client';
|
|
1237
|
+
const $1c0dbf01eb96351a$var$comboBoxContainerStyles = " sd12 _ta12 Ub12 qb12 Nh12";
|
|
1238
|
+
const $1c0dbf01eb96351a$var$labelStyles = " uk12 uch12 udi12 uea12 ugb12 uhd12 uje12 u2NhKxcl12 uic12 -_6BNtrc-d12 vx12 wb12 xb12 _xa12 _Fb12 _FnuYUwec12 p9PEPsb12";
|
|
1239
|
+
const $1c0dbf01eb96351a$var$inputWrapperStyles = " _Pc12 sd12 eb12";
|
|
1240
|
+
const $1c0dbf01eb96351a$var$inputStyles = function anonymous(props) {
|
|
1241
|
+
let rules = " ";
|
|
1242
|
+
rules += ' _Le12';
|
|
1243
|
+
rules += ' Oh12';
|
|
1244
|
+
rules += ' _Mc12';
|
|
1245
|
+
rules += ' _Kd12';
|
|
1246
|
+
rules += ' Za12';
|
|
1247
|
+
rules += ' Se12';
|
|
1248
|
+
rules += ' Re12';
|
|
1249
|
+
rules += ' Tt12';
|
|
1250
|
+
rules += ' Qt12';
|
|
1251
|
+
if (props.isDisabled) rules += ' gH12';
|
|
1252
|
+
else if (props.isFocusVisible) rules += ' gG3O2ub12';
|
|
1253
|
+
else rules += ' g3HF2ub12';
|
|
1254
|
+
rules += ' oc12';
|
|
1255
|
+
rules += ' nc12';
|
|
1256
|
+
rules += ' kc12';
|
|
1257
|
+
rules += ' jc12';
|
|
1258
|
+
rules += ' _kb12';
|
|
1259
|
+
rules += ' hb12';
|
|
1260
|
+
rules += ' mb12';
|
|
1261
|
+
rules += ' lb12';
|
|
1262
|
+
rules += ' _jf12';
|
|
1263
|
+
if (props.isDisabled) rules += ' iq12';
|
|
1264
|
+
else if (props.isFocusVisible) rules += ' iwuvPsb12';
|
|
1265
|
+
else rules += ' iWK72ub12';
|
|
1266
|
+
rules += ' uk12';
|
|
1267
|
+
rules += ' uch12';
|
|
1268
|
+
rules += ' udi12';
|
|
1269
|
+
rules += ' uea12';
|
|
1270
|
+
rules += ' ugb12';
|
|
1271
|
+
rules += ' uhd12';
|
|
1272
|
+
rules += ' uje12';
|
|
1273
|
+
rules += ' u2NhKxcl12';
|
|
1274
|
+
rules += ' uic12';
|
|
1275
|
+
rules += ' -_6BNtrc-d12';
|
|
1276
|
+
rules += ' vx12';
|
|
1277
|
+
rules += ' wb12';
|
|
1278
|
+
rules += ' xb12';
|
|
1279
|
+
rules += ' _xa12';
|
|
1280
|
+
rules += ' _Fb12';
|
|
1281
|
+
rules += ' _FnuYUwec12';
|
|
1282
|
+
if (props.isDisabled) rules += ' pxgjhZb12';
|
|
1283
|
+
else rules += ' p9PEPsb12';
|
|
1284
|
+
return rules;
|
|
1285
|
+
};
|
|
1286
|
+
const $1c0dbf01eb96351a$var$buttonStyles = function anonymous(props) {
|
|
1287
|
+
let rules = " ";
|
|
1288
|
+
rules += ' _Pa12';
|
|
1289
|
+
rules += ' Tp12';
|
|
1290
|
+
rules += ' Qp12';
|
|
1291
|
+
rules += ' Sp12';
|
|
1292
|
+
rules += ' Rp12';
|
|
1293
|
+
rules += ' oa12';
|
|
1294
|
+
rules += ' na12';
|
|
1295
|
+
rules += ' ka12';
|
|
1296
|
+
rules += ' ja12';
|
|
1297
|
+
if (props.isHovered) rules += ' gF12';
|
|
1298
|
+
else rules += ' g912';
|
|
1299
|
+
rules += ' _je12';
|
|
1300
|
+
if (props.isDisabled) rules += ' pp12';
|
|
1301
|
+
else rules += ' pn12';
|
|
1302
|
+
if (props.isDisabled) rules += ' ri12';
|
|
1303
|
+
else rules += ' ry12';
|
|
1304
|
+
return rules;
|
|
1305
|
+
};
|
|
1306
|
+
const $1c0dbf01eb96351a$var$popoverStyles = " gLYrGTd12 oc12 nc12 kc12 jc12 _kb12 hb12 mb12 lb12 _jf12 iWK72ub12 _nLeasBb12 Js12 Kft0rSc12 _Na12 Pa12 _Bb12";
|
|
1307
|
+
const $1c0dbf01eb96351a$var$listBoxStyles = " Tp12 Qp12 Sp12 Rp12";
|
|
1308
|
+
const $1c0dbf01eb96351a$var$listBoxItemStyles = function anonymous(props) {
|
|
1309
|
+
let rules = " ";
|
|
1310
|
+
rules += ' uk12';
|
|
1311
|
+
rules += ' uch12';
|
|
1312
|
+
rules += ' udi12';
|
|
1313
|
+
rules += ' uea12';
|
|
1314
|
+
rules += ' ugb12';
|
|
1315
|
+
rules += ' uhd12';
|
|
1316
|
+
rules += ' uje12';
|
|
1317
|
+
rules += ' u2NhKxcl12';
|
|
1318
|
+
rules += ' uic12';
|
|
1319
|
+
rules += ' -_6BNtrc-d12';
|
|
1320
|
+
rules += ' vx12';
|
|
1321
|
+
rules += ' wb12';
|
|
1322
|
+
rules += ' xb12';
|
|
1323
|
+
rules += ' _xa12';
|
|
1324
|
+
rules += ' _Fb12';
|
|
1325
|
+
rules += ' _FnuYUwec12';
|
|
1326
|
+
if (props.isDisabled) rules += ' pp12';
|
|
1327
|
+
else if (props.isSelected) rules += ' p9PEPsb12';
|
|
1328
|
+
else if (props.isPressed) rules += ' ppxXPsb12';
|
|
1329
|
+
else if (props.isFocused) rules += ' pMbOPsb12';
|
|
1330
|
+
else if (props.isHovered) rules += ' pMbOPsb12';
|
|
1331
|
+
else rules += ' p9PEPsb12';
|
|
1332
|
+
rules += ' St12';
|
|
1333
|
+
rules += ' Rt12';
|
|
1334
|
+
rules += ' Tp12';
|
|
1335
|
+
rules += ' Qp12';
|
|
1336
|
+
rules += ' oa12';
|
|
1337
|
+
rules += ' na12';
|
|
1338
|
+
rules += ' ka12';
|
|
1339
|
+
rules += ' ja12';
|
|
1340
|
+
if (props.isDisabled) rules += ' ru12';
|
|
1341
|
+
else rules += ' ry12';
|
|
1342
|
+
if (props.isDisabled) rules += ' g3HF2ub12';
|
|
1343
|
+
else if (props.isFocused) rules += ' gG3O2ub12';
|
|
1344
|
+
else if (props.isSelected) rules += ' g05TOsb12';
|
|
1345
|
+
else if (props.isHovered) rules += ' gG3O2ub12';
|
|
1346
|
+
else rules += ' g912';
|
|
1347
|
+
return rules;
|
|
1348
|
+
};
|
|
1349
|
+
const $1c0dbf01eb96351a$var$descriptionStyles = " uk12 uch12 udi12 uea12 ugb12 uhd12 uje12 u2NhKxcl12 uic12 -_6BNtrc-c12 vx12 wc12 xc12 _xa12 wezxGHbtN5kwb12 xezxGHbg12 _xezxGHba12 wfd12 xfd12 _xfa12 wfX0cczbc12 xfX0cczbc12 _xfX0cczba12 _Fd12 _FezxGHba12 _FnuYUweb12 pn12";
|
|
1350
|
+
const $1c0dbf01eb96351a$var$errorStyles = " uk12 uch12 udi12 uea12 ugb12 uhd12 uje12 u2NhKxcl12 uic12 -_6BNtrc-c12 vx12 wc12 xc12 _xa12 wezxGHbtN5kwb12 xezxGHbg12 _xezxGHba12 wfd12 xfd12 _xfa12 wfX0cczbc12 xfX0cczbc12 _xfX0cczba12 _Fd12 _FezxGHba12 _FnuYUweb12 pnkUCZ12";
|
|
1351
|
+
function $1c0dbf01eb96351a$export$72b9695b8216309a({ label: label, description: description, errorMessage: errorMessage, isRequired: isRequired = false, isDisabled: isDisabled = false, selectedKey: selectedKey, onSelectionChange: onSelectionChange, items: items, placeholder: placeholder, 'aria-label': ariaLabel, inputValue: controlledInputValue, onInputChange: controlledOnInputChange }) {
|
|
1352
|
+
return (0, $fs04y$reactjsxruntime.jsxs)((0, $fs04y$reactariacomponents.ComboBox), {
|
|
1353
|
+
className: $1c0dbf01eb96351a$var$comboBoxContainerStyles,
|
|
1354
|
+
inputValue: controlledInputValue,
|
|
1355
|
+
onInputChange: controlledOnInputChange,
|
|
1356
|
+
selectedKey: selectedKey,
|
|
1357
|
+
onSelectionChange: onSelectionChange,
|
|
1358
|
+
isDisabled: isDisabled,
|
|
1359
|
+
isRequired: isRequired,
|
|
1360
|
+
"aria-label": ariaLabel || label,
|
|
1361
|
+
children: [
|
|
1362
|
+
label && (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Label), {
|
|
1363
|
+
className: $1c0dbf01eb96351a$var$labelStyles,
|
|
1364
|
+
children: label
|
|
1365
|
+
}),
|
|
1366
|
+
(0, $fs04y$reactjsxruntime.jsxs)("div", {
|
|
1367
|
+
className: $1c0dbf01eb96351a$var$inputWrapperStyles,
|
|
1368
|
+
children: [
|
|
1369
|
+
(0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Input), {
|
|
1370
|
+
className: $1c0dbf01eb96351a$var$inputStyles,
|
|
1371
|
+
placeholder: placeholder
|
|
1372
|
+
}),
|
|
1373
|
+
(0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Button), {
|
|
1374
|
+
className: $1c0dbf01eb96351a$var$buttonStyles,
|
|
1375
|
+
children: (0, $fs04y$reactjsxruntime.jsx)((0, ($parcel$interopDefault($fs04y$reactspectrums2iconsChevronDown))), {})
|
|
1376
|
+
})
|
|
1377
|
+
]
|
|
1378
|
+
}),
|
|
1379
|
+
description && !errorMessage && (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Text), {
|
|
1380
|
+
slot: "description",
|
|
1381
|
+
className: $1c0dbf01eb96351a$var$descriptionStyles,
|
|
1382
|
+
children: description
|
|
1383
|
+
}),
|
|
1384
|
+
errorMessage && (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.FieldError), {
|
|
1385
|
+
className: $1c0dbf01eb96351a$var$errorStyles,
|
|
1386
|
+
children: errorMessage
|
|
1387
|
+
}),
|
|
1388
|
+
(0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Popover), {
|
|
1389
|
+
className: $1c0dbf01eb96351a$var$popoverStyles,
|
|
1390
|
+
children: (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.ListBox), {
|
|
1391
|
+
className: $1c0dbf01eb96351a$var$listBoxStyles,
|
|
1392
|
+
items: items,
|
|
1393
|
+
children: (item)=>(0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.ListBoxItem), {
|
|
1394
|
+
id: item.id,
|
|
1395
|
+
textValue: item.textValue || item.label,
|
|
1396
|
+
className: $1c0dbf01eb96351a$var$listBoxItemStyles,
|
|
1397
|
+
children: item.label
|
|
1398
|
+
}, item.id)
|
|
1399
|
+
})
|
|
1400
|
+
})
|
|
1401
|
+
]
|
|
1402
|
+
});
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
|
|
1406
|
+
|
|
1407
|
+
|
|
1408
|
+
|
|
1409
|
+
|
|
1410
|
+
|
|
1411
|
+
'use client';
|
|
1412
|
+
// Disclosure container - very thin grey border, full width button appearance
|
|
1413
|
+
const $3764d8bc3c612a35$var$disclosureContainerStyles = " _je12 _ka12 ha12 ma12 la12 iA12 oc12 nc12 kc12 jc12 _Nc12 Pc12 Za12 g3HF2ub12";
|
|
1414
|
+
// Disclosure trigger button - blends seamlessly with container
|
|
1415
|
+
const $3764d8bc3c612a35$var$disclosureTriggerStyles = function anonymous(props) {
|
|
1416
|
+
let rules = " ";
|
|
1417
|
+
if (props.isFocusVisible) rules += ' _Lf12';
|
|
1418
|
+
else rules += ' _Le12';
|
|
1419
|
+
rules += ' Oh12';
|
|
1420
|
+
rules += ' _Mc12';
|
|
1421
|
+
rules += ' _Kd12';
|
|
1422
|
+
rules += ' uk12';
|
|
1423
|
+
rules += ' uch12';
|
|
1424
|
+
rules += ' udi12';
|
|
1425
|
+
rules += ' uea12';
|
|
1426
|
+
rules += ' ugb12';
|
|
1427
|
+
rules += ' uhd12';
|
|
1428
|
+
rules += ' uje12';
|
|
1429
|
+
rules += ' u2NhKxcl12';
|
|
1430
|
+
rules += ' uic12';
|
|
1431
|
+
rules += ' -_6BNtrc-d12';
|
|
1432
|
+
rules += ' vx12';
|
|
1433
|
+
rules += ' wd12';
|
|
1434
|
+
rules += ' xd12';
|
|
1435
|
+
rules += ' _xa12';
|
|
1436
|
+
rules += ' wX0cczbc12';
|
|
1437
|
+
rules += ' xX0cczbc12';
|
|
1438
|
+
rules += ' _xX0cczba12';
|
|
1439
|
+
rules += ' wfd12';
|
|
1440
|
+
rules += ' xfd12';
|
|
1441
|
+
rules += ' _xfa12';
|
|
1442
|
+
rules += ' wfX0cczbc12';
|
|
1443
|
+
rules += ' xfX0cczbc12';
|
|
1444
|
+
rules += ' _xfX0cczba12';
|
|
1445
|
+
rules += ' _Fd12';
|
|
1446
|
+
rules += ' _FezxGHba12';
|
|
1447
|
+
rules += ' _FnuYUweb12';
|
|
1448
|
+
if (props.isPressed) rules += ' ppxXPsb12';
|
|
1449
|
+
else if (props.isFocusVisible) rules += ' pMbOPsb12';
|
|
1450
|
+
else if (props.isHovered) rules += ' pMbOPsb12';
|
|
1451
|
+
else rules += ' p9PEPsb12';
|
|
1452
|
+
rules += ' sd12';
|
|
1453
|
+
rules += ' eb12';
|
|
1454
|
+
rules += ' Ue12';
|
|
1455
|
+
rules += ' qe12';
|
|
1456
|
+
rules += ' Tf12';
|
|
1457
|
+
rules += ' Qf12';
|
|
1458
|
+
rules += ' Sg12';
|
|
1459
|
+
rules += ' Rg12';
|
|
1460
|
+
rules += ' Za12';
|
|
1461
|
+
if (props.isPressed) rules += ' gjpY2ub12';
|
|
1462
|
+
else if (props.isHovered) rules += ' gG3O2ub12';
|
|
1463
|
+
else rules += ' g3HF2ub12';
|
|
1464
|
+
rules += ' _je12';
|
|
1465
|
+
rules += ' od12';
|
|
1466
|
+
rules += ' nd12';
|
|
1467
|
+
rules += ' kd12';
|
|
1468
|
+
rules += ' jd12';
|
|
1469
|
+
rules += ' ry12';
|
|
1470
|
+
return rules;
|
|
1471
|
+
};
|
|
1472
|
+
const $3764d8bc3c612a35$var$disclosureHeaderStyles = " Jy12 Gy12 Iy12 Hy12";
|
|
1473
|
+
// Disclosure panel - white/light background, blends with button header
|
|
1474
|
+
const $3764d8bc3c612a35$var$disclosurePanelStyles = function anonymous(props) {
|
|
1475
|
+
let rules = " ";
|
|
1476
|
+
if (props.isExpanded) rules += ' Tg12';
|
|
1477
|
+
else rules += ' Td12';
|
|
1478
|
+
if (props.isExpanded) rules += ' Qg12';
|
|
1479
|
+
else rules += ' Qd12';
|
|
1480
|
+
if (props.isExpanded) rules += ' Sg12';
|
|
1481
|
+
else rules += ' Sd12';
|
|
1482
|
+
if (props.isExpanded) rules += ' Rg12';
|
|
1483
|
+
else rules += ' Rd12';
|
|
1484
|
+
rules += ' gLYrGTd12';
|
|
1485
|
+
rules += ' _kb12';
|
|
1486
|
+
rules += ' ijpY2ub12';
|
|
1487
|
+
return rules;
|
|
1488
|
+
};
|
|
1489
|
+
function $3764d8bc3c612a35$export$944aceb4f8c89f10({ items: items, ...props }) {
|
|
1490
|
+
return (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.DisclosureGroup), {
|
|
1491
|
+
...props,
|
|
1492
|
+
className: $3764d8bc3c612a35$var$disclosureContainerStyles,
|
|
1493
|
+
children: items.map((item)=>(0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Disclosure), {
|
|
1494
|
+
children: (0, $fs04y$reactjsxruntime.jsx)($3764d8bc3c612a35$var$DisclosureContents, {
|
|
1495
|
+
...item
|
|
1496
|
+
}, item.id)
|
|
1497
|
+
}, item.id))
|
|
1498
|
+
});
|
|
1499
|
+
}
|
|
1500
|
+
const $3764d8bc3c612a35$var$DisclosureContents = (item)=>{
|
|
1501
|
+
let { isExpanded: isExpanded } = (0, $fs04y$react.useContext)((0, $fs04y$reactariacomponents.DisclosureStateContext));
|
|
1502
|
+
return (0, $fs04y$reactjsxruntime.jsxs)((0, $fs04y$reactjsxruntime.Fragment), {
|
|
1503
|
+
children: [
|
|
1504
|
+
(0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Heading), {
|
|
1505
|
+
className: $3764d8bc3c612a35$var$disclosureHeaderStyles,
|
|
1506
|
+
children: (0, $fs04y$reactjsxruntime.jsxs)((0, $fs04y$reactariacomponents.Button), {
|
|
1507
|
+
slot: "trigger",
|
|
1508
|
+
className: (renderProps)=>`disclosure-chevron ${$3764d8bc3c612a35$var$disclosureTriggerStyles(renderProps)}`,
|
|
1509
|
+
onPress: item.onPress,
|
|
1510
|
+
children: [
|
|
1511
|
+
(0, $fs04y$reactjsxruntime.jsx)((0, ($parcel$interopDefault($fs04y$reactspectrums2iconsChevronRight))), {
|
|
1512
|
+
styles: " Zu12 Ft12"
|
|
1513
|
+
}),
|
|
1514
|
+
item.title
|
|
1515
|
+
]
|
|
1516
|
+
})
|
|
1517
|
+
}),
|
|
1518
|
+
(0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.DisclosurePanel), {
|
|
1519
|
+
className: $3764d8bc3c612a35$var$disclosurePanelStyles({
|
|
1520
|
+
isExpanded: isExpanded
|
|
1521
|
+
}),
|
|
1522
|
+
children: item.content
|
|
1523
|
+
})
|
|
1524
|
+
]
|
|
1525
|
+
});
|
|
1526
|
+
};
|
|
1527
|
+
|
|
1528
|
+
|
|
1529
|
+
|
|
1530
|
+
|
|
1531
|
+
|
|
1532
|
+
'use client';
|
|
1533
|
+
const $75461c19e6a33bc7$var$filterContainerStyles = " sd12 Uh12 qh12 Tp12 Qp12 Sp12 Rp12 gG3O2ub12 oc12 nc12 kc12 jc12 _kb12 hb12 mb12 lb12 _jf12 iWK72ub12";
|
|
1534
|
+
const $75461c19e6a33bc7$var$filterButtonStyles = function anonymous(props) {
|
|
1535
|
+
let rules = " ";
|
|
1536
|
+
if (props.isFocusVisible) rules += ' _Lf12';
|
|
1537
|
+
else rules += ' _Le12';
|
|
1538
|
+
rules += ' Oh12';
|
|
1539
|
+
rules += ' _Mc12';
|
|
1540
|
+
rules += ' _Kd12';
|
|
1541
|
+
rules += ' _Pc12';
|
|
1542
|
+
rules += ' sd12';
|
|
1543
|
+
rules += ' eb12';
|
|
1544
|
+
rules += ' _Ca12';
|
|
1545
|
+
rules += ' Sf12';
|
|
1546
|
+
rules += ' Rf12';
|
|
1547
|
+
rules += ' Tt12';
|
|
1548
|
+
rules += ' Qt12';
|
|
1549
|
+
rules += ' uk12';
|
|
1550
|
+
rules += ' uch12';
|
|
1551
|
+
rules += ' udi12';
|
|
1552
|
+
rules += ' uea12';
|
|
1553
|
+
rules += ' ugb12';
|
|
1554
|
+
rules += ' uhd12';
|
|
1555
|
+
rules += ' uje12';
|
|
1556
|
+
rules += ' u2NhKxcl12';
|
|
1557
|
+
rules += ' uic12';
|
|
1558
|
+
rules += ' -_6BNtrc-d12';
|
|
1559
|
+
rules += ' vx12';
|
|
1560
|
+
rules += ' wb12';
|
|
1561
|
+
rules += ' xb12';
|
|
1562
|
+
rules += ' _xa12';
|
|
1563
|
+
rules += ' _Fb12';
|
|
1564
|
+
rules += ' _FnuYUwec12';
|
|
1565
|
+
if (props.isPressed) rules += ' ppxXPsb12';
|
|
1566
|
+
else if (props.isFocusVisible) rules += ' pMbOPsb12';
|
|
1567
|
+
else if (props.isHovered) rules += ' pMbOPsb12';
|
|
1568
|
+
else rules += ' p9PEPsb12';
|
|
1569
|
+
rules += ' g912';
|
|
1570
|
+
rules += ' _je12';
|
|
1571
|
+
rules += ' ob12';
|
|
1572
|
+
rules += ' nb12';
|
|
1573
|
+
rules += ' kb12';
|
|
1574
|
+
rules += ' jb12';
|
|
1575
|
+
rules += ' ry12';
|
|
1576
|
+
rules += ' _9c12';
|
|
1577
|
+
return rules;
|
|
1578
|
+
};
|
|
1579
|
+
const $75461c19e6a33bc7$var$selectionIndicatorStyles = function anonymous(props) {
|
|
1580
|
+
let rules = " ";
|
|
1581
|
+
rules += ' _Pa12';
|
|
1582
|
+
rules += ' Wr12';
|
|
1583
|
+
rules += ' _lr12';
|
|
1584
|
+
rules += ' _Ar12';
|
|
1585
|
+
rules += ' _zr12';
|
|
1586
|
+
rules += ' ob12';
|
|
1587
|
+
rules += ' nb12';
|
|
1588
|
+
rules += ' kb12';
|
|
1589
|
+
rules += ' jb12';
|
|
1590
|
+
rules += ' _kb12';
|
|
1591
|
+
rules += ' hb12';
|
|
1592
|
+
rules += ' mb12';
|
|
1593
|
+
rules += ' lb12';
|
|
1594
|
+
rules += ' _jf12';
|
|
1595
|
+
rules += ' iq12';
|
|
1596
|
+
rules += ' _nLeasBb12';
|
|
1597
|
+
rules += ' _9a12';
|
|
1598
|
+
if (props.isPressed) rules += ' gWK72ub12';
|
|
1599
|
+
else if (props.isHovered) rules += ' gjpY2ub12';
|
|
1600
|
+
else rules += ' gqlRAZb12';
|
|
1601
|
+
return rules;
|
|
1602
|
+
};
|
|
1603
|
+
function $75461c19e6a33bc7$export$221f31a87e5a826c({ value: value, onChange: onChange, options: options, ariaLabel: ariaLabel }) {
|
|
1604
|
+
const intl = (0, $25d82f0a3d474ebc$re_export$useIntl)();
|
|
1605
|
+
return (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.ToggleButtonGroup), {
|
|
1606
|
+
selectionMode: "single",
|
|
1607
|
+
selectedKeys: new Set([
|
|
1608
|
+
value
|
|
1609
|
+
]),
|
|
1610
|
+
disallowEmptySelection: true,
|
|
1611
|
+
onSelectionChange: (keys)=>{
|
|
1612
|
+
const selected = Array.from(keys)[0];
|
|
1613
|
+
onChange(selected);
|
|
1614
|
+
},
|
|
1615
|
+
"aria-label": ariaLabel || intl.formatMessage({
|
|
1616
|
+
id: 'filterTabs.ariaLabel'
|
|
1617
|
+
}),
|
|
1618
|
+
className: $75461c19e6a33bc7$var$filterContainerStyles,
|
|
1619
|
+
children: options.map((option)=>(0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.ToggleButton), {
|
|
1620
|
+
id: option.value,
|
|
1621
|
+
className: $75461c19e6a33bc7$var$filterButtonStyles,
|
|
1622
|
+
children: ({ isSelected: isSelected })=>(0, $fs04y$reactjsxruntime.jsxs)((0, $fs04y$reactjsxruntime.Fragment), {
|
|
1623
|
+
children: [
|
|
1624
|
+
option.label,
|
|
1625
|
+
isSelected && (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.SelectionIndicator), {
|
|
1626
|
+
className: $75461c19e6a33bc7$var$selectionIndicatorStyles
|
|
1627
|
+
})
|
|
1628
|
+
]
|
|
1629
|
+
})
|
|
1630
|
+
}, option.value))
|
|
1631
|
+
});
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
|
|
1635
|
+
|
|
1636
|
+
|
|
1637
|
+
|
|
1638
|
+
'use client';
|
|
1639
|
+
const $8cb76c7220c44b28$var$labeledValueStyles = " sd12 _ta12 Ue12 qe12 Gz12";
|
|
1640
|
+
const $8cb76c7220c44b28$var$labeledValueValueStyles = " uk12 uch12 udi12 uea12 ugb12 uhd12 uje12 u2NhKxcl12 uic12 -_6BNtrc-d12 vx12 wb12 xb12 _xa12 _Fb12 _FnuYUwec12 p9PEPsb12";
|
|
1641
|
+
function $8cb76c7220c44b28$export$d1328f67a56fa517({ label: label, children: children, error: error, description: description, ...props }) {
|
|
1642
|
+
return (0, $fs04y$reactjsxruntime.jsxs)((0, $fs04y$reactariacomponents.TextField), {
|
|
1643
|
+
className: $8cb76c7220c44b28$var$labeledValueStyles,
|
|
1644
|
+
...props,
|
|
1645
|
+
children: [
|
|
1646
|
+
(0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Label), {
|
|
1647
|
+
className: (0, $6ab530226d5e3153$export$706e9cce604ae69d),
|
|
1648
|
+
children: label
|
|
1649
|
+
}),
|
|
1650
|
+
(0, $fs04y$reactjsxruntime.jsx)("span", {
|
|
1651
|
+
className: $8cb76c7220c44b28$var$labeledValueValueStyles,
|
|
1652
|
+
children: children
|
|
1653
|
+
}),
|
|
1654
|
+
description && !error && (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Text), {
|
|
1655
|
+
slot: "description",
|
|
1656
|
+
className: (0, $6ab530226d5e3153$export$bf233b285dc0c047),
|
|
1657
|
+
children: description
|
|
1658
|
+
}),
|
|
1659
|
+
error && (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Text), {
|
|
1660
|
+
slot: "errorMessage",
|
|
1661
|
+
className: (0, $6ab530226d5e3153$export$923a9dafaeef3fba),
|
|
1662
|
+
children: error
|
|
1663
|
+
})
|
|
1664
|
+
]
|
|
1665
|
+
});
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
|
|
1669
|
+
|
|
1670
|
+
|
|
1671
|
+
const $e0bb5e496bf3f32a$var$linkStyles = function anonymous(props) {
|
|
1672
|
+
let rules = " ";
|
|
1673
|
+
if (props.isFocusVisible) rules += ' _Lf12';
|
|
1674
|
+
else rules += ' _Le12';
|
|
1675
|
+
rules += ' Oh12';
|
|
1676
|
+
rules += ' _Mc12';
|
|
1677
|
+
rules += ' _Kd12';
|
|
1678
|
+
rules += ' uk12';
|
|
1679
|
+
rules += ' uch12';
|
|
1680
|
+
rules += ' udi12';
|
|
1681
|
+
rules += ' uea12';
|
|
1682
|
+
rules += ' ugb12';
|
|
1683
|
+
rules += ' uhd12';
|
|
1684
|
+
rules += ' uje12';
|
|
1685
|
+
rules += ' u2NhKxcl12';
|
|
1686
|
+
rules += ' uic12';
|
|
1687
|
+
rules += ' -_6BNtrc-d12';
|
|
1688
|
+
rules += ' vx12';
|
|
1689
|
+
rules += ' wb12';
|
|
1690
|
+
rules += ' xb12';
|
|
1691
|
+
rules += ' _xa12';
|
|
1692
|
+
rules += ' _Fb12';
|
|
1693
|
+
rules += ' _FnuYUwec12';
|
|
1694
|
+
if (props.isPressed) rules += ' pMbOPsb12';
|
|
1695
|
+
else if (props.isHovered) rules += ' p9PEPsb12';
|
|
1696
|
+
else rules += ' pwuvPsb12';
|
|
1697
|
+
rules += ' ry12';
|
|
1698
|
+
if (props.isHovered) rules += ' g912';
|
|
1699
|
+
else rules += ' g912';
|
|
1700
|
+
return rules;
|
|
1701
|
+
};
|
|
1702
|
+
function $e0bb5e496bf3f32a$export$a6c7ac8248d6e38a({ children: children, href: href, isExternal: isExternal, className: className, ...props }) {
|
|
1703
|
+
// Automatically detect external links if not specified
|
|
1704
|
+
const isExternalLink = isExternal ?? (href?.toString().startsWith('http://') || href?.toString().startsWith('https://'));
|
|
1705
|
+
const externalProps = isExternalLink ? {
|
|
1706
|
+
target: '_blank',
|
|
1707
|
+
rel: 'noopener noreferrer'
|
|
1708
|
+
} : {};
|
|
1709
|
+
return (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Link), {
|
|
1710
|
+
...props,
|
|
1711
|
+
...externalProps,
|
|
1712
|
+
href: href,
|
|
1713
|
+
className: className || $e0bb5e496bf3f32a$var$linkStyles,
|
|
1714
|
+
children: children
|
|
1715
|
+
});
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1718
|
+
|
|
1719
|
+
|
|
1720
|
+
|
|
1721
|
+
|
|
1722
|
+
const $41157374edf6228b$var$radioGroupStyles = " sd12 _ta12 Ue12 qe12";
|
|
1723
|
+
const $41157374edf6228b$var$labelStyles = " uk12 uch12 udi12 uea12 ugb12 uhd12 uje12 u2NhKxcl12 uic12 -_6BNtrc-d12 vx12 wc12 xc12 _xa12 wezxGHbtN5kwb12 xezxGHbg12 _xezxGHba12 _Fb12 _FnuYUwec12 p9PEPsb12 Gv12";
|
|
1724
|
+
const $41157374edf6228b$var$radioContainerStyles = " sd12 _ta12 Ug12 qg12";
|
|
1725
|
+
const $41157374edf6228b$var$radioStyles = function anonymous(props) {
|
|
1726
|
+
let rules = " ";
|
|
1727
|
+
if (props.isFocusVisible) rules += ' _Lf12';
|
|
1728
|
+
else rules += ' _Le12';
|
|
1729
|
+
rules += ' Oh12';
|
|
1730
|
+
rules += ' _Mc12';
|
|
1731
|
+
rules += ' _Kd12';
|
|
1732
|
+
rules += ' sd12';
|
|
1733
|
+
rules += ' eb12';
|
|
1734
|
+
rules += ' Ue12';
|
|
1735
|
+
rules += ' qe12';
|
|
1736
|
+
rules += ' uk12';
|
|
1737
|
+
rules += ' uch12';
|
|
1738
|
+
rules += ' udi12';
|
|
1739
|
+
rules += ' uea12';
|
|
1740
|
+
rules += ' ugb12';
|
|
1741
|
+
rules += ' uhd12';
|
|
1742
|
+
rules += ' uje12';
|
|
1743
|
+
rules += ' u2NhKxcl12';
|
|
1744
|
+
rules += ' uic12';
|
|
1745
|
+
rules += ' -_6BNtrc-d12';
|
|
1746
|
+
rules += ' vx12';
|
|
1747
|
+
rules += ' wb12';
|
|
1748
|
+
rules += ' xb12';
|
|
1749
|
+
rules += ' _xa12';
|
|
1750
|
+
rules += ' _Fb12';
|
|
1751
|
+
rules += ' _FnuYUwec12';
|
|
1752
|
+
if (props.isDisabled) rules += ' pp12';
|
|
1753
|
+
else if (props.isHovered) rules += ' pwuvPsb12';
|
|
1754
|
+
else if (props.isSelected) rules += ' pMbOPsb12';
|
|
1755
|
+
else rules += ' p9PEPsb12';
|
|
1756
|
+
rules += ' ry12';
|
|
1757
|
+
rules += ' Tt12';
|
|
1758
|
+
rules += ' Qt12';
|
|
1759
|
+
rules += ' St12';
|
|
1760
|
+
rules += ' Rt12';
|
|
1761
|
+
rules += ' oc12';
|
|
1762
|
+
rules += ' nc12';
|
|
1763
|
+
rules += ' kc12';
|
|
1764
|
+
rules += ' jc12';
|
|
1765
|
+
if (props.isHovered) rules += ' ghVis312';
|
|
1766
|
+
else rules += ' g912';
|
|
1767
|
+
return rules;
|
|
1768
|
+
};
|
|
1769
|
+
const $41157374edf6228b$var$radioButtonStyles = function anonymous(props) {
|
|
1770
|
+
let rules = " ";
|
|
1771
|
+
rules += ' Zm12';
|
|
1772
|
+
rules += ' Fn12';
|
|
1773
|
+
rules += ' og12';
|
|
1774
|
+
rules += ' ng12';
|
|
1775
|
+
rules += ' kg12';
|
|
1776
|
+
rules += ' jg12';
|
|
1777
|
+
rules += ' _kc12';
|
|
1778
|
+
rules += ' hc12';
|
|
1779
|
+
rules += ' mc12';
|
|
1780
|
+
rules += ' lc12';
|
|
1781
|
+
rules += ' _jf12';
|
|
1782
|
+
if (props.isDisabled) rules += ' ir12';
|
|
1783
|
+
else if (props.isHovered) rules += ' iDr3Osb12';
|
|
1784
|
+
else if (props.isSelected) rules += ' iT8lPsb12';
|
|
1785
|
+
else rules += ' io12';
|
|
1786
|
+
rules += ' sd12';
|
|
1787
|
+
rules += ' eb12';
|
|
1788
|
+
rules += ' _Ca12';
|
|
1789
|
+
rules += ' _va12';
|
|
1790
|
+
if (props.isDisabled) rules += ' gH12';
|
|
1791
|
+
else rules += ' gqlRAZb12';
|
|
1792
|
+
return rules;
|
|
1793
|
+
};
|
|
1794
|
+
const $41157374edf6228b$var$radioInnerDotStyles = function anonymous(props) {
|
|
1795
|
+
let rules = " ";
|
|
1796
|
+
rules += ' Zi12';
|
|
1797
|
+
rules += ' Fj12';
|
|
1798
|
+
rules += ' og12';
|
|
1799
|
+
rules += ' ng12';
|
|
1800
|
+
rules += ' kg12';
|
|
1801
|
+
rules += ' jg12';
|
|
1802
|
+
rules += ' gT8lPsb12';
|
|
1803
|
+
if (props.isSelected) rules += ' _Ib12';
|
|
1804
|
+
else rules += ' _Ia12';
|
|
1805
|
+
return rules;
|
|
1806
|
+
};
|
|
1807
|
+
const $41157374edf6228b$var$errorStyles = " uk12 uch12 udi12 uea12 ugb12 uhd12 uje12 u2NhKxcl12 uic12 -_6BNtrc-c12 vx12 wb12 xb12 _xa12 _Fb12 _FnuYUwec12 pKYKCZ12 Js12";
|
|
1808
|
+
function $41157374edf6228b$export$d7b12c4107be0d61({ children: children, ...props }) {
|
|
1809
|
+
return (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Radio), {
|
|
1810
|
+
...props,
|
|
1811
|
+
className: (renderProps)=>$41157374edf6228b$var$radioStyles(renderProps),
|
|
1812
|
+
children: (renderProps)=>(0, $fs04y$reactjsxruntime.jsxs)((0, $fs04y$reactjsxruntime.Fragment), {
|
|
1813
|
+
children: [
|
|
1814
|
+
(0, $fs04y$reactjsxruntime.jsx)("div", {
|
|
1815
|
+
className: $41157374edf6228b$var$radioButtonStyles(renderProps),
|
|
1816
|
+
children: (0, $fs04y$reactjsxruntime.jsx)("div", {
|
|
1817
|
+
className: $41157374edf6228b$var$radioInnerDotStyles(renderProps)
|
|
1818
|
+
})
|
|
1819
|
+
}),
|
|
1820
|
+
(0, $fs04y$reactjsxruntime.jsx)("span", {
|
|
1821
|
+
children: children
|
|
1822
|
+
})
|
|
1823
|
+
]
|
|
1824
|
+
})
|
|
1825
|
+
});
|
|
1826
|
+
}
|
|
1827
|
+
function $41157374edf6228b$export$a98f0dcb43a68a25({ label: label, options: options, error: error, ...props }) {
|
|
1828
|
+
return (0, $fs04y$reactjsxruntime.jsxs)((0, $fs04y$reactariacomponents.RadioGroup), {
|
|
1829
|
+
...props,
|
|
1830
|
+
className: $41157374edf6228b$var$radioGroupStyles,
|
|
1831
|
+
children: [
|
|
1832
|
+
(0, $fs04y$reactjsxruntime.jsx)("span", {
|
|
1833
|
+
className: $41157374edf6228b$var$labelStyles,
|
|
1834
|
+
children: label
|
|
1835
|
+
}),
|
|
1836
|
+
(0, $fs04y$reactjsxruntime.jsx)("div", {
|
|
1837
|
+
className: $41157374edf6228b$var$radioContainerStyles,
|
|
1838
|
+
children: options.map((option)=>(0, $fs04y$reactjsxruntime.jsx)($41157374edf6228b$export$d7b12c4107be0d61, {
|
|
1839
|
+
value: option.value,
|
|
1840
|
+
children: option.label
|
|
1841
|
+
}, option.id))
|
|
1842
|
+
}),
|
|
1843
|
+
error && (0, $fs04y$reactjsxruntime.jsx)("span", {
|
|
1844
|
+
className: $41157374edf6228b$var$errorStyles,
|
|
1845
|
+
children: error
|
|
1846
|
+
})
|
|
1847
|
+
]
|
|
1848
|
+
});
|
|
1849
|
+
}
|
|
1850
|
+
|
|
1851
|
+
|
|
1852
|
+
|
|
1853
|
+
|
|
1854
|
+
|
|
1855
|
+
|
|
1856
|
+
'use client';
|
|
1857
|
+
const $1f2c2c3990efdd5e$var$searchFieldContainerStyles = "";
|
|
1858
|
+
const $1f2c2c3990efdd5e$var$searchFieldStyles = " sd12 _ta12 Ub12 qb12";
|
|
1859
|
+
const $1f2c2c3990efdd5e$var$searchInputContainerStyles = " _Pc12 sd12 eb12";
|
|
1860
|
+
const $1f2c2c3990efdd5e$var$searchInputStyles = function anonymous(props) {
|
|
1861
|
+
let rules = " ";
|
|
1862
|
+
if (props.isFocusVisible) rules += ' _Lf12';
|
|
1863
|
+
else rules += ' _Le12';
|
|
1864
|
+
rules += ' Oh12';
|
|
1865
|
+
rules += ' _Mc12';
|
|
1866
|
+
rules += ' _Kd12';
|
|
1867
|
+
rules += ' Za12';
|
|
1868
|
+
rules += ' Tt12';
|
|
1869
|
+
rules += ' Qt12';
|
|
1870
|
+
rules += ' Sm12';
|
|
1871
|
+
rules += ' Rt12';
|
|
1872
|
+
rules += ' uk12';
|
|
1873
|
+
rules += ' uch12';
|
|
1874
|
+
rules += ' udi12';
|
|
1875
|
+
rules += ' uea12';
|
|
1876
|
+
rules += ' ugb12';
|
|
1877
|
+
rules += ' uhd12';
|
|
1878
|
+
rules += ' uje12';
|
|
1879
|
+
rules += ' u2NhKxcl12';
|
|
1880
|
+
rules += ' uic12';
|
|
1881
|
+
rules += ' -_6BNtrc-d12';
|
|
1882
|
+
rules += ' vx12';
|
|
1883
|
+
rules += ' wb12';
|
|
1884
|
+
rules += ' xb12';
|
|
1885
|
+
rules += ' _xa12';
|
|
1886
|
+
rules += ' _Fb12';
|
|
1887
|
+
rules += ' _FnuYUwec12';
|
|
1888
|
+
rules += ' pt12';
|
|
1889
|
+
rules += ' oc12';
|
|
1890
|
+
rules += ' nc12';
|
|
1891
|
+
rules += ' kc12';
|
|
1892
|
+
rules += ' jc12';
|
|
1893
|
+
rules += ' _kb12';
|
|
1894
|
+
rules += ' hb12';
|
|
1895
|
+
rules += ' mb12';
|
|
1896
|
+
rules += ' lb12';
|
|
1897
|
+
rules += ' _jf12';
|
|
1898
|
+
rules += ' iWK72ub12';
|
|
1899
|
+
if (props.isFocusVisible) rules += ' gG3O2ub12';
|
|
1900
|
+
else if (props.isHovered) rules += ' gG3O2ub12';
|
|
1901
|
+
else rules += ' g3HF2ub12';
|
|
1902
|
+
return rules;
|
|
1903
|
+
};
|
|
1904
|
+
const $1f2c2c3990efdd5e$var$labelStyles = " uk12 uch12 udi12 uea12 ugb12 uhd12 uje12 u2NhKxcl12 uic12 -_6BNtrc-d12 vx12 wb12 xb12 _xa12 _Fb12 _FnuYUwec12 p9PEPsb12 Gs12";
|
|
1905
|
+
const $1f2c2c3990efdd5e$var$searchIconStyles = {
|
|
1906
|
+
position: 'absolute',
|
|
1907
|
+
left: 12,
|
|
1908
|
+
top: '50%',
|
|
1909
|
+
transform: 'translateY(-50%)',
|
|
1910
|
+
pointerEvents: 'none',
|
|
1911
|
+
color: '--yogurt-600'
|
|
1912
|
+
};
|
|
1913
|
+
const $1f2c2c3990efdd5e$var$clearButtonStyles = function anonymous(props) {
|
|
1914
|
+
let rules = " ";
|
|
1915
|
+
if (props.isFocusVisible) rules += ' _Lf12';
|
|
1916
|
+
else rules += ' _Le12';
|
|
1917
|
+
rules += ' Oh12';
|
|
1918
|
+
rules += ' _Mc12';
|
|
1919
|
+
rules += ' _Kd12';
|
|
1920
|
+
rules += ' _Pa12';
|
|
1921
|
+
rules += ' _RI12';
|
|
1922
|
+
rules += ' WF12';
|
|
1923
|
+
rules += ' _ZoL69hc12';
|
|
1924
|
+
rules += ' Tp12';
|
|
1925
|
+
rules += ' Qp12';
|
|
1926
|
+
rules += ' Sp12';
|
|
1927
|
+
rules += ' Rp12';
|
|
1928
|
+
rules += ' g912';
|
|
1929
|
+
rules += ' _je12';
|
|
1930
|
+
rules += ' ob12';
|
|
1931
|
+
rules += ' nb12';
|
|
1932
|
+
rules += ' kb12';
|
|
1933
|
+
rules += ' jb12';
|
|
1934
|
+
rules += ' ry12';
|
|
1935
|
+
if (props.isPressed) rules += ' ps9I3ub12';
|
|
1936
|
+
else if (props.isHovered) rules += ' pPNz3ub12';
|
|
1937
|
+
else rules += ' pcsq3ub12';
|
|
1938
|
+
return rules;
|
|
1939
|
+
};
|
|
1940
|
+
function $1f2c2c3990efdd5e$export$b94867ecbd698f21({ value: value, onChange: onChange, label: label, placeholder: placeholder, ariaLabel: ariaLabel }) {
|
|
1941
|
+
return (0, $fs04y$reactjsxruntime.jsx)("div", {
|
|
1942
|
+
className: $1f2c2c3990efdd5e$var$searchFieldContainerStyles,
|
|
1943
|
+
children: (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.SearchField), {
|
|
1944
|
+
value: value,
|
|
1945
|
+
onChange: onChange,
|
|
1946
|
+
className: $1f2c2c3990efdd5e$var$searchFieldStyles,
|
|
1947
|
+
"aria-label": ariaLabel,
|
|
1948
|
+
children: ({ isEmpty: isEmpty })=>(0, $fs04y$reactjsxruntime.jsxs)((0, $fs04y$reactjsxruntime.Fragment), {
|
|
1949
|
+
children: [
|
|
1950
|
+
(0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Label), {
|
|
1951
|
+
className: $1f2c2c3990efdd5e$var$labelStyles,
|
|
1952
|
+
children: label
|
|
1953
|
+
}),
|
|
1954
|
+
(0, $fs04y$reactjsxruntime.jsxs)("div", {
|
|
1955
|
+
className: $1f2c2c3990efdd5e$var$searchInputContainerStyles,
|
|
1956
|
+
children: [
|
|
1957
|
+
(0, $fs04y$reactjsxruntime.jsx)("div", {
|
|
1958
|
+
style: $1f2c2c3990efdd5e$var$searchIconStyles,
|
|
1959
|
+
children: (0, $fs04y$reactjsxruntime.jsx)((0, ($parcel$interopDefault($fs04y$reactspectrums2iconsSearch))), {})
|
|
1960
|
+
}),
|
|
1961
|
+
(0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Input), {
|
|
1962
|
+
className: (renderProps)=>$1f2c2c3990efdd5e$var$searchInputStyles(renderProps) + ' ' + "zc3JFe",
|
|
1963
|
+
placeholder: placeholder
|
|
1964
|
+
}),
|
|
1965
|
+
!isEmpty && (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Button), {
|
|
1966
|
+
className: $1f2c2c3990efdd5e$var$clearButtonStyles,
|
|
1967
|
+
"aria-label": "Clear search",
|
|
1968
|
+
children: (0, $fs04y$reactjsxruntime.jsx)((0, ($parcel$interopDefault($fs04y$reactspectrums2iconsClose))), {})
|
|
1969
|
+
})
|
|
1970
|
+
]
|
|
1971
|
+
})
|
|
1972
|
+
]
|
|
1973
|
+
})
|
|
1974
|
+
})
|
|
1975
|
+
});
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
|
|
1979
|
+
|
|
1980
|
+
|
|
1981
|
+
|
|
1982
|
+
|
|
1983
|
+
|
|
1984
|
+
|
|
1985
|
+
'use client';
|
|
1986
|
+
const $7272752e0b828205$var$segmentedControlStyles = " sd12 Uh12 qh12 Tp12 Qp12 Sp12 Rp12 gG3O2ub12 oc12 nc12 kc12 jc12 _kb12 hb12 mb12 lb12 _jf12 iWK72ub12";
|
|
1987
|
+
const $7272752e0b828205$var$toggleButtonStyles = function anonymous(props) {
|
|
1988
|
+
let rules = " ";
|
|
1989
|
+
if (props.isFocusVisible) rules += ' _Lf12';
|
|
1990
|
+
else rules += ' _Le12';
|
|
1991
|
+
rules += ' Oh12';
|
|
1992
|
+
rules += ' _Mc12';
|
|
1993
|
+
rules += ' _Kd12';
|
|
1994
|
+
rules += ' _Pc12';
|
|
1995
|
+
rules += ' sd12';
|
|
1996
|
+
rules += ' eb12';
|
|
1997
|
+
rules += ' _Ca12';
|
|
1998
|
+
rules += ' Ue12';
|
|
1999
|
+
rules += ' qe12';
|
|
2000
|
+
rules += ' Sf12';
|
|
2001
|
+
rules += ' Rf12';
|
|
2002
|
+
rules += ' Tt12';
|
|
2003
|
+
rules += ' Qt12';
|
|
2004
|
+
rules += ' uk12';
|
|
2005
|
+
rules += ' uch12';
|
|
2006
|
+
rules += ' udi12';
|
|
2007
|
+
rules += ' uea12';
|
|
2008
|
+
rules += ' ugb12';
|
|
2009
|
+
rules += ' uhd12';
|
|
2010
|
+
rules += ' uje12';
|
|
2011
|
+
rules += ' u2NhKxcl12';
|
|
2012
|
+
rules += ' uic12';
|
|
2013
|
+
rules += ' -_6BNtrc-d12';
|
|
2014
|
+
rules += ' vx12';
|
|
2015
|
+
rules += ' wb12';
|
|
2016
|
+
rules += ' xb12';
|
|
2017
|
+
rules += ' _xa12';
|
|
2018
|
+
rules += ' _Fb12';
|
|
2019
|
+
rules += ' _FnuYUwec12';
|
|
2020
|
+
if (props.isPressed) rules += ' ppxXPsb12';
|
|
2021
|
+
else if (props.isFocusVisible) rules += ' pMbOPsb12';
|
|
2022
|
+
else if (props.isHovered) rules += ' pMbOPsb12';
|
|
2023
|
+
else rules += ' p9PEPsb12';
|
|
2024
|
+
rules += ' g912';
|
|
2025
|
+
rules += ' _je12';
|
|
2026
|
+
rules += ' ob12';
|
|
2027
|
+
rules += ' nb12';
|
|
2028
|
+
rules += ' kb12';
|
|
2029
|
+
rules += ' jb12';
|
|
2030
|
+
rules += ' ry12';
|
|
2031
|
+
rules += ' _9c12';
|
|
2032
|
+
if (props.isPressed) rules += ' -_8sjo0b-ppxXPsb12';
|
|
2033
|
+
else if (props.isFocusVisible) rules += ' -_8sjo0b-pMbOPsb12';
|
|
2034
|
+
else if (props.isHovered) rules += ' -_8sjo0b-pMbOPsb12';
|
|
2035
|
+
else rules += ' -_8sjo0b-p9PEPsb12';
|
|
2036
|
+
return rules;
|
|
2037
|
+
};
|
|
2038
|
+
const $7272752e0b828205$var$selectionIndicatorStyles = function anonymous(props) {
|
|
2039
|
+
let rules = " ";
|
|
2040
|
+
rules += ' _Pa12';
|
|
2041
|
+
rules += ' Wr12';
|
|
2042
|
+
rules += ' _lr12';
|
|
2043
|
+
rules += ' _Ar12';
|
|
2044
|
+
rules += ' _zr12';
|
|
2045
|
+
rules += ' ob12';
|
|
2046
|
+
rules += ' nb12';
|
|
2047
|
+
rules += ' kb12';
|
|
2048
|
+
rules += ' jb12';
|
|
2049
|
+
rules += ' _kb12';
|
|
2050
|
+
rules += ' hb12';
|
|
2051
|
+
rules += ' mb12';
|
|
2052
|
+
rules += ' lb12';
|
|
2053
|
+
rules += ' _jf12';
|
|
2054
|
+
rules += ' iq12';
|
|
2055
|
+
rules += ' _nLeasBb12';
|
|
2056
|
+
rules += ' _9a12';
|
|
2057
|
+
if (props.isDisabled) rules += ' pp12';
|
|
2058
|
+
rules += ' plb12';
|
|
2059
|
+
if (props.isDisabled) rules += ' gH12';
|
|
2060
|
+
else if (props.isPressed) rules += ' ggNcPsb12';
|
|
2061
|
+
else if (props.isFocusVisibile) rules += ' ggNcPsb12';
|
|
2062
|
+
else if (props.isHovered) rules += ' ggNcPsb12';
|
|
2063
|
+
else rules += ' gDr3Osb12';
|
|
2064
|
+
rules += ' glb12';
|
|
2065
|
+
return rules;
|
|
2066
|
+
};
|
|
2067
|
+
function $7272752e0b828205$export$668709c620d0b8e2({ value: value }) {
|
|
2068
|
+
const intl = (0, $25d82f0a3d474ebc$re_export$useIntl)();
|
|
2069
|
+
const router = (0, $fs04y$nextnavigation.useRouter)();
|
|
2070
|
+
const handleSelectionChange = (newValue)=>{
|
|
2071
|
+
if (newValue === 'map') router.push('/');
|
|
2072
|
+
else router.push('/ferments');
|
|
2073
|
+
};
|
|
2074
|
+
return (0, $fs04y$reactjsxruntime.jsxs)((0, $fs04y$reactariacomponents.ToggleButtonGroup), {
|
|
2075
|
+
selectionMode: "single",
|
|
2076
|
+
selectedKeys: new Set([
|
|
2077
|
+
value
|
|
2078
|
+
]),
|
|
2079
|
+
disallowEmptySelection: true,
|
|
2080
|
+
onSelectionChange: (keys)=>{
|
|
2081
|
+
const selected = Array.from(keys)[0];
|
|
2082
|
+
handleSelectionChange(selected);
|
|
2083
|
+
},
|
|
2084
|
+
"aria-label": intl.formatMessage({
|
|
2085
|
+
id: 'nav.viewToggle.ariaLabel'
|
|
2086
|
+
}),
|
|
2087
|
+
className: $7272752e0b828205$var$segmentedControlStyles,
|
|
2088
|
+
children: [
|
|
2089
|
+
(0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.ToggleButton), {
|
|
2090
|
+
id: "map",
|
|
2091
|
+
className: (renderProps)=>$7272752e0b828205$var$toggleButtonStyles(renderProps),
|
|
2092
|
+
"aria-label": intl.formatMessage({
|
|
2093
|
+
id: 'nav.map'
|
|
2094
|
+
}),
|
|
2095
|
+
children: (renderProps)=>(0, $fs04y$reactjsxruntime.jsxs)((0, $fs04y$reactjsxruntime.Fragment), {
|
|
2096
|
+
children: [
|
|
2097
|
+
(0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.SelectionIndicator), {
|
|
2098
|
+
className: $7272752e0b828205$var$selectionIndicatorStyles(renderProps)
|
|
2099
|
+
}),
|
|
2100
|
+
(0, $fs04y$reactjsxruntime.jsx)((0, ($parcel$interopDefault($fs04y$reactspectrums2iconsGlobeGrid))), {
|
|
2101
|
+
"aria-hidden": "true"
|
|
2102
|
+
}),
|
|
2103
|
+
(0, $fs04y$reactjsxruntime.jsx)("span", {
|
|
2104
|
+
children: intl.formatMessage({
|
|
2105
|
+
id: 'nav.map'
|
|
2106
|
+
})
|
|
2107
|
+
})
|
|
2108
|
+
]
|
|
2109
|
+
})
|
|
2110
|
+
}),
|
|
2111
|
+
(0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.ToggleButton), {
|
|
2112
|
+
id: "list",
|
|
2113
|
+
className: (renderProps)=>$7272752e0b828205$var$toggleButtonStyles(renderProps),
|
|
2114
|
+
"aria-label": intl.formatMessage({
|
|
2115
|
+
id: 'nav.list'
|
|
2116
|
+
}),
|
|
2117
|
+
children: (renderProps)=>(0, $fs04y$reactjsxruntime.jsxs)((0, $fs04y$reactjsxruntime.Fragment), {
|
|
2118
|
+
children: [
|
|
2119
|
+
(0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.SelectionIndicator), {
|
|
2120
|
+
className: $7272752e0b828205$var$selectionIndicatorStyles(renderProps)
|
|
2121
|
+
}),
|
|
2122
|
+
(0, $fs04y$reactjsxruntime.jsx)((0, ($parcel$interopDefault($fs04y$reactspectrums2iconsViewList))), {
|
|
2123
|
+
"aria-hidden": "true"
|
|
2124
|
+
}),
|
|
2125
|
+
(0, $fs04y$reactjsxruntime.jsx)("span", {
|
|
2126
|
+
children: intl.formatMessage({
|
|
2127
|
+
id: 'nav.list'
|
|
2128
|
+
})
|
|
2129
|
+
})
|
|
2130
|
+
]
|
|
2131
|
+
})
|
|
2132
|
+
})
|
|
2133
|
+
]
|
|
2134
|
+
});
|
|
2135
|
+
}
|
|
2136
|
+
|
|
2137
|
+
|
|
2138
|
+
|
|
2139
|
+
|
|
2140
|
+
|
|
2141
|
+
'use client';
|
|
2142
|
+
const $24de22966748f2e6$var$selectContainerStyles = " sd12 _ta12 Ub12 qb12 Ng12";
|
|
2143
|
+
const $24de22966748f2e6$var$labelStyles = " uk12 uch12 udi12 uea12 ugb12 uhd12 uje12 u2NhKxcl12 uic12 -_6BNtrc-d12 vx12 wb12 xb12 _xa12 _Fb12 _FnuYUwec12 p9PEPsb12";
|
|
2144
|
+
const $24de22966748f2e6$var$buttonStyles = function anonymous(props) {
|
|
2145
|
+
let rules = " ";
|
|
2146
|
+
if (props.isFocusVisible) rules += ' _Lf12';
|
|
2147
|
+
else rules += ' _Le12';
|
|
2148
|
+
rules += ' Oh12';
|
|
2149
|
+
rules += ' _Mc12';
|
|
2150
|
+
rules += ' _Kd12';
|
|
2151
|
+
rules += ' Se12';
|
|
2152
|
+
rules += ' Re12';
|
|
2153
|
+
rules += ' Tt12';
|
|
2154
|
+
rules += ' Qt12';
|
|
2155
|
+
if (props.isPressed) rules += ' gjpY2ub12';
|
|
2156
|
+
else if (props.isFocusVisible) rules += ' gG3O2ub12';
|
|
2157
|
+
else if (props.isHovered) rules += ' gG3O2ub12';
|
|
2158
|
+
else rules += ' g3HF2ub12';
|
|
2159
|
+
rules += ' oc12';
|
|
2160
|
+
rules += ' nc12';
|
|
2161
|
+
rules += ' kc12';
|
|
2162
|
+
rules += ' jc12';
|
|
2163
|
+
rules += ' _kb12';
|
|
2164
|
+
rules += ' hb12';
|
|
2165
|
+
rules += ' mb12';
|
|
2166
|
+
rules += ' lb12';
|
|
2167
|
+
rules += ' _jf12';
|
|
2168
|
+
rules += ' iWK72ub12';
|
|
2169
|
+
rules += ' uk12';
|
|
2170
|
+
rules += ' uch12';
|
|
2171
|
+
rules += ' udi12';
|
|
2172
|
+
rules += ' uea12';
|
|
2173
|
+
rules += ' ugb12';
|
|
2174
|
+
rules += ' uhd12';
|
|
2175
|
+
rules += ' uje12';
|
|
2176
|
+
rules += ' u2NhKxcl12';
|
|
2177
|
+
rules += ' uic12';
|
|
2178
|
+
rules += ' -_6BNtrc-d12';
|
|
2179
|
+
rules += ' vx12';
|
|
2180
|
+
rules += ' wb12';
|
|
2181
|
+
rules += ' xb12';
|
|
2182
|
+
rules += ' _xa12';
|
|
2183
|
+
rules += ' _Fb12';
|
|
2184
|
+
rules += ' _FnuYUwec12';
|
|
2185
|
+
if (props.isPressed) rules += ' ppxXPsb12';
|
|
2186
|
+
else if (props.isFocused) rules += ' pMbOPsb12';
|
|
2187
|
+
else if (props.isHovered) rules += ' pMbOPsb12';
|
|
2188
|
+
else rules += ' p9PEPsb12';
|
|
2189
|
+
rules += ' ry12';
|
|
2190
|
+
rules += ' sd12';
|
|
2191
|
+
rules += ' eb12';
|
|
2192
|
+
rules += ' _Ce12';
|
|
2193
|
+
rules += ' Ue12';
|
|
2194
|
+
rules += ' qe12';
|
|
2195
|
+
rules += ' Ng12';
|
|
2196
|
+
return rules;
|
|
2197
|
+
};
|
|
2198
|
+
const $24de22966748f2e6$var$popoverStyles = " gLYrGTd12 oc12 nc12 kc12 jc12 _kb12 hb12 mb12 lb12 _jf12 iWK72ub12 _nLeasBb12 Js12 KwHzgQe12 _Na12 Pa12 _Bb12";
|
|
2199
|
+
const $24de22966748f2e6$var$listBoxStyles = " Tp12 Qp12 Sp12 Rp12";
|
|
2200
|
+
const $24de22966748f2e6$var$listBoxItemStyles = function anonymous(props) {
|
|
2201
|
+
let rules = " ";
|
|
2202
|
+
rules += ' uk12';
|
|
2203
|
+
rules += ' uch12';
|
|
2204
|
+
rules += ' udi12';
|
|
2205
|
+
rules += ' uea12';
|
|
2206
|
+
rules += ' ugb12';
|
|
2207
|
+
rules += ' uhd12';
|
|
2208
|
+
rules += ' uje12';
|
|
2209
|
+
rules += ' u2NhKxcl12';
|
|
2210
|
+
rules += ' uic12';
|
|
2211
|
+
rules += ' -_6BNtrc-d12';
|
|
2212
|
+
rules += ' vx12';
|
|
2213
|
+
rules += ' wb12';
|
|
2214
|
+
rules += ' xb12';
|
|
2215
|
+
rules += ' _xa12';
|
|
2216
|
+
rules += ' _Fb12';
|
|
2217
|
+
rules += ' _FnuYUwec12';
|
|
2218
|
+
if (props.isDisabled) rules += ' pp12';
|
|
2219
|
+
else if (props.isSelected) rules += ' p9PEPsb12';
|
|
2220
|
+
else if (props.isPressed) rules += ' ppxXPsb12';
|
|
2221
|
+
else if (props.isFocused) rules += ' pMbOPsb12';
|
|
2222
|
+
else if (props.isHovered) rules += ' pMbOPsb12';
|
|
2223
|
+
else rules += ' p9PEPsb12';
|
|
2224
|
+
rules += ' St12';
|
|
2225
|
+
rules += ' Rt12';
|
|
2226
|
+
rules += ' Tp12';
|
|
2227
|
+
rules += ' Qp12';
|
|
2228
|
+
rules += ' oa12';
|
|
2229
|
+
rules += ' na12';
|
|
2230
|
+
rules += ' ka12';
|
|
2231
|
+
rules += ' ja12';
|
|
2232
|
+
if (props.isDisabled) rules += ' ru12';
|
|
2233
|
+
else rules += ' ry12';
|
|
2234
|
+
if (props.isDisabled) rules += ' g3HF2ub12';
|
|
2235
|
+
else if (props.isFocused) rules += ' gG3O2ub12';
|
|
2236
|
+
else if (props.isSelected) rules += ' g05TOsb12';
|
|
2237
|
+
else if (props.isHovered) rules += ' gG3O2ub12';
|
|
2238
|
+
else rules += ' g912';
|
|
2239
|
+
return rules;
|
|
2240
|
+
};
|
|
2241
|
+
function $24de22966748f2e6$export$ef9b1a59e592288f({ label: label, options: options, placeholder: placeholder, ...props }) {
|
|
2242
|
+
return (0, $fs04y$reactjsxruntime.jsxs)((0, $fs04y$reactariacomponents.Select), {
|
|
2243
|
+
...props,
|
|
2244
|
+
className: $24de22966748f2e6$var$selectContainerStyles,
|
|
2245
|
+
children: [
|
|
2246
|
+
(0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Label), {
|
|
2247
|
+
className: $24de22966748f2e6$var$labelStyles,
|
|
2248
|
+
children: label
|
|
2249
|
+
}),
|
|
2250
|
+
(0, $fs04y$reactjsxruntime.jsxs)((0, $fs04y$reactariacomponents.Button), {
|
|
2251
|
+
className: $24de22966748f2e6$var$buttonStyles,
|
|
2252
|
+
children: [
|
|
2253
|
+
(0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.SelectValue), {}),
|
|
2254
|
+
(0, $fs04y$reactjsxruntime.jsx)((0, ($parcel$interopDefault($fs04y$reactspectrums2iconsChevronDown))), {
|
|
2255
|
+
"aria-hidden": "true"
|
|
2256
|
+
})
|
|
2257
|
+
]
|
|
2258
|
+
}),
|
|
2259
|
+
(0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Popover), {
|
|
2260
|
+
className: $24de22966748f2e6$var$popoverStyles,
|
|
2261
|
+
children: (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.ListBox), {
|
|
2262
|
+
className: $24de22966748f2e6$var$listBoxStyles,
|
|
2263
|
+
items: options,
|
|
2264
|
+
children: (item)=>(0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.ListBoxItem), {
|
|
2265
|
+
id: item.id,
|
|
2266
|
+
textValue: item.label,
|
|
2267
|
+
isDisabled: item.isDisabled,
|
|
2268
|
+
className: $24de22966748f2e6$var$listBoxItemStyles,
|
|
2269
|
+
children: item.label
|
|
2270
|
+
}, item.id)
|
|
2271
|
+
})
|
|
2272
|
+
})
|
|
2273
|
+
]
|
|
2274
|
+
});
|
|
2275
|
+
}
|
|
2276
|
+
|
|
2277
|
+
|
|
2278
|
+
|
|
2279
|
+
'use client';
|
|
2280
|
+
const $22c620249a5b4412$var$cardStyles = " gqlRAZb12 oe12 ne12 ke12 je12 Th12 Qh12 Sh12 Rh12 _kb12 hb12 mb12 lb12 _jf12 i05TOsb12 sd12 _ta12 Ug12 qg12 eb12 _Wa12";
|
|
2281
|
+
const $22c620249a5b4412$var$cardTitleStyles = " uk12 uch12 udi12 uea12 ugb12 uhd12 uje12 u2NhKxcl12 uic12 -_6BNtrc-e12 vx12 wd12 xd12 _xa12 wX0cczbc12 xX0cczbc12 _xX0cczba12 wfd12 xfd12 _xfa12 wfX0cczbc12 xfX0cczbc12 _xfX0cczba12 _Fd12 _FezxGHba12 _FnuYUweb12 p9PEPsb12 Jy12 Gy12 Iy12 Hy12";
|
|
2282
|
+
const $22c620249a5b4412$var$cardValueStyles = " uk12 uch12 udi12 uea12 ugb12 uhd12 uje12 u2NhKxcl12 uic12 -_6BNtrc-snabcc12 vx12 we12 xe12 _xa12 wX0cczbd12 xX0cczbd12 _xX0cczba12 wezxGHbd12 xezxGHbd12 _xezxGHba12 wfe12 xfe12 _xfa12 wfX0cczbd12 xfX0cczbd12 _xfX0cczba12 wfezxGHbd12 xfezxGHbd12 _xfezxGHba12 _Fd12 _FezxGHba12 _FnuYUweb12 p9PEPsb12";
|
|
2283
|
+
const $22c620249a5b4412$var$cardDescStyles = " uk12 uch12 udi12 uea12 ugb12 uhd12 uje12 u2NhKxcl12 uic12 -_6BNtrc-d12 vx12 wb12 xb12 _xa12 _Fb12 _FnuYUwec12 p9PEPsb12 Jy12 Gy12 Iy12 Hy12";
|
|
2284
|
+
function $22c620249a5b4412$export$b5cddb1a6bf990a0({ title: title, value: value, description: description }) {
|
|
2285
|
+
return (0, $fs04y$reactjsxruntime.jsxs)("div", {
|
|
2286
|
+
className: $22c620249a5b4412$var$cardStyles,
|
|
2287
|
+
children: [
|
|
2288
|
+
(0, $fs04y$reactjsxruntime.jsx)("h3", {
|
|
2289
|
+
className: $22c620249a5b4412$var$cardTitleStyles,
|
|
2290
|
+
children: title
|
|
2291
|
+
}),
|
|
2292
|
+
(0, $fs04y$reactjsxruntime.jsx)("div", {
|
|
2293
|
+
className: $22c620249a5b4412$var$cardValueStyles,
|
|
2294
|
+
children: value
|
|
2295
|
+
}),
|
|
2296
|
+
description && (0, $fs04y$reactjsxruntime.jsx)("p", {
|
|
2297
|
+
className: $22c620249a5b4412$var$cardDescStyles,
|
|
2298
|
+
children: description
|
|
2299
|
+
})
|
|
2300
|
+
]
|
|
2301
|
+
});
|
|
2302
|
+
}
|
|
2303
|
+
|
|
2304
|
+
|
|
2305
|
+
|
|
2306
|
+
|
|
2307
|
+
// For props: https://react-spectrum.adobe.com/react-aria/Switch.html#props
|
|
2308
|
+
// For styling: https://react-spectrum.adobe.com/react-aria/Switch.html#styling
|
|
2309
|
+
const $ba215883a18b1d7f$var$switchContainerStyles = function anonymous(props) {
|
|
2310
|
+
let rules = " ";
|
|
2311
|
+
if (props.isFocusVisible) rules += ' _Lf12';
|
|
2312
|
+
else rules += ' _Le12';
|
|
2313
|
+
rules += ' Oh12';
|
|
2314
|
+
rules += ' _Mc12';
|
|
2315
|
+
rules += ' _Kd12';
|
|
2316
|
+
rules += ' sd12';
|
|
2317
|
+
rules += ' eb12';
|
|
2318
|
+
rules += ' Ue12';
|
|
2319
|
+
rules += ' qe12';
|
|
2320
|
+
rules += ' Rj12';
|
|
2321
|
+
rules += ' ry12';
|
|
2322
|
+
rules += ' uk12';
|
|
2323
|
+
rules += ' uch12';
|
|
2324
|
+
rules += ' udi12';
|
|
2325
|
+
rules += ' uea12';
|
|
2326
|
+
rules += ' ugb12';
|
|
2327
|
+
rules += ' uhd12';
|
|
2328
|
+
rules += ' uje12';
|
|
2329
|
+
rules += ' u2NhKxcl12';
|
|
2330
|
+
rules += ' uic12';
|
|
2331
|
+
rules += ' -_6BNtrc-d12';
|
|
2332
|
+
rules += ' vx12';
|
|
2333
|
+
rules += ' wb12';
|
|
2334
|
+
rules += ' xb12';
|
|
2335
|
+
rules += ' _xa12';
|
|
2336
|
+
rules += ' _Fd12';
|
|
2337
|
+
rules += ' _FezxGHba12';
|
|
2338
|
+
rules += ' _FnuYUweb12';
|
|
2339
|
+
if (props.isPressed) rules += ' ppxXPsb12';
|
|
2340
|
+
else if (props.isFocusVisible) rules += ' pMbOPsb12';
|
|
2341
|
+
else if (props.isHovered) rules += ' pMbOPsb12';
|
|
2342
|
+
else rules += ' p9PEPsb12';
|
|
2343
|
+
rules += ' og12';
|
|
2344
|
+
rules += ' ng12';
|
|
2345
|
+
rules += ' kg12';
|
|
2346
|
+
rules += ' jg12';
|
|
2347
|
+
return rules;
|
|
2348
|
+
};
|
|
2349
|
+
const $ba215883a18b1d7f$var$switchTrackStyles = function anonymous(props) {
|
|
2350
|
+
let rules = " ";
|
|
2351
|
+
rules += ' Zx12';
|
|
2352
|
+
rules += ' Fp12';
|
|
2353
|
+
rules += ' og12';
|
|
2354
|
+
rules += ' ng12';
|
|
2355
|
+
rules += ' kg12';
|
|
2356
|
+
rules += ' jg12';
|
|
2357
|
+
rules += ' Tj12';
|
|
2358
|
+
rules += ' Qj12';
|
|
2359
|
+
rules += ' Sj12';
|
|
2360
|
+
rules += ' Rj12';
|
|
2361
|
+
rules += ' sd12';
|
|
2362
|
+
rules += ' eb12';
|
|
2363
|
+
if (props.isDisabled) rules += ' gH12';
|
|
2364
|
+
else if (props.isSelected) rules += ' gT8lPsb12';
|
|
2365
|
+
else rules += ' gWK72ub12';
|
|
2366
|
+
rules += ' _jlf12';
|
|
2367
|
+
rules += ' ila12';
|
|
2368
|
+
rules += ' _klb12';
|
|
2369
|
+
rules += ' hlb12';
|
|
2370
|
+
rules += ' mlb12';
|
|
2371
|
+
rules += ' llb12';
|
|
2372
|
+
return rules;
|
|
2373
|
+
};
|
|
2374
|
+
const $ba215883a18b1d7f$var$switchThumbStyles = function anonymous(props) {
|
|
2375
|
+
let rules = " ";
|
|
2376
|
+
rules += ' Zm12';
|
|
2377
|
+
rules += ' Fn12';
|
|
2378
|
+
rules += ' og12';
|
|
2379
|
+
rules += ' ng12';
|
|
2380
|
+
rules += ' kg12';
|
|
2381
|
+
rules += ' jg12';
|
|
2382
|
+
rules += ' g4hn3s12';
|
|
2383
|
+
rules += ' glc12';
|
|
2384
|
+
if (props.isSelected) rules += ' _Z4iY9S12';
|
|
2385
|
+
else rules += ' _Z0oDeud12';
|
|
2386
|
+
return rules;
|
|
2387
|
+
};
|
|
2388
|
+
const $ba215883a18b1d7f$export$b5d5cf8927ab7262 = ({ children: children, ...props })=>{
|
|
2389
|
+
return (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Switch), {
|
|
2390
|
+
...props,
|
|
2391
|
+
className: (renderProps)=>$ba215883a18b1d7f$var$switchContainerStyles(renderProps),
|
|
2392
|
+
children: (renderProps)=>(0, $fs04y$reactjsxruntime.jsxs)((0, $fs04y$reactjsxruntime.Fragment), {
|
|
2393
|
+
children: [
|
|
2394
|
+
(0, $fs04y$reactjsxruntime.jsx)("div", {
|
|
2395
|
+
className: $ba215883a18b1d7f$var$switchTrackStyles(renderProps),
|
|
2396
|
+
children: (0, $fs04y$reactjsxruntime.jsx)("div", {
|
|
2397
|
+
className: $ba215883a18b1d7f$var$switchThumbStyles(renderProps)
|
|
2398
|
+
})
|
|
2399
|
+
}),
|
|
2400
|
+
children
|
|
2401
|
+
]
|
|
2402
|
+
})
|
|
2403
|
+
});
|
|
2404
|
+
};
|
|
2405
|
+
|
|
2406
|
+
|
|
2407
|
+
|
|
2408
|
+
|
|
2409
|
+
|
|
2410
|
+
const $e00b7714d9bed1e1$var$tabsStyles = " sd12 _ta12 Uh12 qh12";
|
|
2411
|
+
const $e00b7714d9bed1e1$var$tabListStyles = " sd12 Ub12 qb12 hc12 GA12";
|
|
2412
|
+
const $e00b7714d9bed1e1$var$tabStyles = function anonymous(props) {
|
|
2413
|
+
let rules = " ";
|
|
2414
|
+
if (props.isFocusVisible) rules += ' _Lf12';
|
|
2415
|
+
else rules += ' _Le12';
|
|
2416
|
+
rules += ' Oh12';
|
|
2417
|
+
rules += ' _Mc12';
|
|
2418
|
+
rules += ' _Kd12';
|
|
2419
|
+
rules += ' Sg12';
|
|
2420
|
+
rules += ' Rg12';
|
|
2421
|
+
rules += ' Te12';
|
|
2422
|
+
rules += ' Qe12';
|
|
2423
|
+
rules += ' uk12';
|
|
2424
|
+
rules += ' uch12';
|
|
2425
|
+
rules += ' udi12';
|
|
2426
|
+
rules += ' uea12';
|
|
2427
|
+
rules += ' ugb12';
|
|
2428
|
+
rules += ' uhd12';
|
|
2429
|
+
rules += ' uje12';
|
|
2430
|
+
rules += ' u2NhKxcl12';
|
|
2431
|
+
rules += ' uic12';
|
|
2432
|
+
rules += ' -_6BNtrc-d12';
|
|
2433
|
+
rules += ' vx12';
|
|
2434
|
+
if (props.isSelected) {
|
|
2435
|
+
rules += ' wd12';
|
|
2436
|
+
rules += ' xd12';
|
|
2437
|
+
rules += ' _xa12';
|
|
2438
|
+
rules += ' wX0cczbc12';
|
|
2439
|
+
rules += ' xX0cczbc12';
|
|
2440
|
+
rules += ' _xX0cczba12';
|
|
2441
|
+
}
|
|
2442
|
+
rules += ' _Fb12';
|
|
2443
|
+
rules += ' _FnuYUwec12';
|
|
2444
|
+
if (props.isDisabled) rules += ' pDr3Osb12';
|
|
2445
|
+
else if (props.isHovered) rules += ' pMbOPsb12';
|
|
2446
|
+
else if (props.isSelected) rules += ' pMbOPsb12';
|
|
2447
|
+
else rules += ' p9PEPsb12';
|
|
2448
|
+
if (props.isSelected) rules += ' gnKKOsb12';
|
|
2449
|
+
else if (props.isHovered) rules += ' ghVis312';
|
|
2450
|
+
else rules += ' g912';
|
|
2451
|
+
rules += ' _ka12';
|
|
2452
|
+
rules += ' hc12';
|
|
2453
|
+
rules += ' ma12';
|
|
2454
|
+
rules += ' la12';
|
|
2455
|
+
rules += ' _jf12';
|
|
2456
|
+
if (props.isHovered) rules += ' iDr3Osb12';
|
|
2457
|
+
else if (props.isSelected) rules += ' i9PEPsb12';
|
|
2458
|
+
else rules += ' iA12';
|
|
2459
|
+
if (props.isDisabled) rules += ' ru12';
|
|
2460
|
+
else rules += ' ry12';
|
|
2461
|
+
rules += ' Xc12';
|
|
2462
|
+
return rules;
|
|
2463
|
+
};
|
|
2464
|
+
const $e00b7714d9bed1e1$var$tabPanelStyles = " Td12 Qd12 _Le12";
|
|
2465
|
+
function $e00b7714d9bed1e1$export$b2539bed5023c21c({ children: children, ...props }) {
|
|
2466
|
+
return (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Tabs), {
|
|
2467
|
+
className: $e00b7714d9bed1e1$var$tabsStyles,
|
|
2468
|
+
...props,
|
|
2469
|
+
children: children
|
|
2470
|
+
});
|
|
2471
|
+
}
|
|
2472
|
+
function $e00b7714d9bed1e1$export$e51a686c67fdaa2d({ children: children, ...props }) {
|
|
2473
|
+
return (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.TabList), {
|
|
2474
|
+
className: $e00b7714d9bed1e1$var$tabListStyles,
|
|
2475
|
+
...props,
|
|
2476
|
+
children: children
|
|
2477
|
+
});
|
|
2478
|
+
}
|
|
2479
|
+
function $e00b7714d9bed1e1$export$3e41faf802a29e71({ children: children, ...props }) {
|
|
2480
|
+
return (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Tab), {
|
|
2481
|
+
className: $e00b7714d9bed1e1$var$tabStyles,
|
|
2482
|
+
...props,
|
|
2483
|
+
children: children
|
|
2484
|
+
});
|
|
2485
|
+
}
|
|
2486
|
+
function $e00b7714d9bed1e1$export$3d96ec278d3efce4({ children: children, ...props }) {
|
|
2487
|
+
return (0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.TabPanel), {
|
|
2488
|
+
className: $e00b7714d9bed1e1$var$tabPanelStyles,
|
|
2489
|
+
...props,
|
|
2490
|
+
children: children
|
|
2491
|
+
});
|
|
2492
|
+
}
|
|
2493
|
+
|
|
2494
|
+
|
|
2495
|
+
|
|
2496
|
+
|
|
2497
|
+
|
|
2498
|
+
|
|
2499
|
+
'use client';
|
|
2500
|
+
const $fad215bb6064e329$var$textareaStyles = function anonymous(props) {
|
|
2501
|
+
let rules = " ";
|
|
2502
|
+
rules += ' Te12';
|
|
2503
|
+
rules += ' Qe12';
|
|
2504
|
+
rules += ' Sf12';
|
|
2505
|
+
rules += ' Rf12';
|
|
2506
|
+
rules += ' _kb12';
|
|
2507
|
+
rules += ' hb12';
|
|
2508
|
+
rules += ' mb12';
|
|
2509
|
+
rules += ' lb12';
|
|
2510
|
+
rules += ' _jf12';
|
|
2511
|
+
if (props.isInvalid) rules += ' i7CBCZ12';
|
|
2512
|
+
else if (props.isFocusVisible) rules += ' iT8lPsb12';
|
|
2513
|
+
else if (props.isHovered) rules += ' igNcPsb12';
|
|
2514
|
+
else rules += ' iDr3Osb12';
|
|
2515
|
+
rules += ' oc12';
|
|
2516
|
+
rules += ' nc12';
|
|
2517
|
+
rules += ' kc12';
|
|
2518
|
+
rules += ' jc12';
|
|
2519
|
+
rules += ' uk12';
|
|
2520
|
+
rules += ' uch12';
|
|
2521
|
+
rules += ' udi12';
|
|
2522
|
+
rules += ' uea12';
|
|
2523
|
+
rules += ' ugb12';
|
|
2524
|
+
rules += ' uhd12';
|
|
2525
|
+
rules += ' uje12';
|
|
2526
|
+
rules += ' u2NhKxcl12';
|
|
2527
|
+
rules += ' uic12';
|
|
2528
|
+
rules += ' -_6BNtrc-d12';
|
|
2529
|
+
rules += ' vx12';
|
|
2530
|
+
rules += ' wb12';
|
|
2531
|
+
rules += ' xb12';
|
|
2532
|
+
rules += ' _xa12';
|
|
2533
|
+
rules += ' _Fb12';
|
|
2534
|
+
rules += ' _FnuYUwec12';
|
|
2535
|
+
rules += ' pt12';
|
|
2536
|
+
rules += ' gqlRAZb12';
|
|
2537
|
+
rules += ' _Qc12';
|
|
2538
|
+
rules += ' MhJySCb12';
|
|
2539
|
+
rules += ' Kfvlvrc12';
|
|
2540
|
+
rules += ' Pa12';
|
|
2541
|
+
return rules;
|
|
2542
|
+
};
|
|
2543
|
+
function $fad215bb6064e329$export$f5c9f3c2c4054eec({ label: label, error: error, placeholder: placeholder, value: value, ...props }) {
|
|
2544
|
+
const textareaRef = (0, $fs04y$react.useRef)(null);
|
|
2545
|
+
// Auto-grow on value change
|
|
2546
|
+
(0, $fs04y$react.useEffect)(()=>{
|
|
2547
|
+
const textarea = textareaRef.current;
|
|
2548
|
+
if (!textarea) return;
|
|
2549
|
+
// Reset height to recalculate
|
|
2550
|
+
textarea.style.height = '75px';
|
|
2551
|
+
// Set to scrollHeight (content height)
|
|
2552
|
+
const newHeight = Math.min(textarea.scrollHeight, window.innerHeight * 0.75);
|
|
2553
|
+
textarea.style.height = `${newHeight}px`;
|
|
2554
|
+
}, [
|
|
2555
|
+
value
|
|
2556
|
+
]);
|
|
2557
|
+
return (0, $fs04y$reactjsxruntime.jsxs)((0, $fs04y$reactariacomponents.TextField), {
|
|
2558
|
+
className: (0, $6ab530226d5e3153$export$298b9ad7287f04ba),
|
|
2559
|
+
...props,
|
|
2560
|
+
value: value,
|
|
2561
|
+
children: [
|
|
2562
|
+
(0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.Label), {
|
|
2563
|
+
className: (0, $6ab530226d5e3153$export$706e9cce604ae69d),
|
|
2564
|
+
children: label
|
|
2565
|
+
}),
|
|
2566
|
+
(0, $fs04y$reactjsxruntime.jsx)((0, $fs04y$reactariacomponents.TextArea), {
|
|
2567
|
+
ref: textareaRef,
|
|
2568
|
+
className: $fad215bb6064e329$var$textareaStyles,
|
|
2569
|
+
placeholder: placeholder
|
|
2570
|
+
}),
|
|
2571
|
+
error && (0, $fs04y$reactjsxruntime.jsx)("div", {
|
|
2572
|
+
className: (0, $6ab530226d5e3153$export$923a9dafaeef3fba),
|
|
2573
|
+
children: error
|
|
2574
|
+
})
|
|
2575
|
+
]
|
|
2576
|
+
});
|
|
2577
|
+
}
|
|
2578
|
+
|
|
2579
|
+
|
|
2580
|
+
|
|
2581
|
+
|
|
2582
|
+
|
|
2583
|
+
var $885bdde2b07b7632$exports = {};
|
|
2584
|
+
|
|
2585
|
+
$parcel$export($885bdde2b07b7632$exports, "ThemeProvider", () => $3a1d0d18027ba81c$export$d8964aec282183a3);
|
|
2586
|
+
$parcel$export($885bdde2b07b7632$exports, "useTheme", () => $3a1d0d18027ba81c$export$93d4e7f90805808f);
|
|
2587
|
+
$parcel$export($885bdde2b07b7632$exports, "I18nProvider", () => $25d82f0a3d474ebc$export$a54013f0d02a8f82);
|
|
2588
|
+
$parcel$export($885bdde2b07b7632$exports, "useIntl", () => $25d82f0a3d474ebc$re_export$useIntl);
|
|
2589
|
+
$parcel$export($885bdde2b07b7632$exports, "FilterProvider", () => $8f5795e91d23efab$export$66b627500eff8faa);
|
|
2590
|
+
$parcel$export($885bdde2b07b7632$exports, "useFilters", () => $8f5795e91d23efab$export$973ca22476b0e05f);
|
|
2591
|
+
$parcel$export($885bdde2b07b7632$exports, "AxeDevTools", () => $ac6c22366fad60ff$export$dad69b6e16969c68);
|
|
2592
|
+
// Contexts & Providers
|
|
2593
|
+
|
|
2594
|
+
|
|
2595
|
+
'use client';
|
|
2596
|
+
const $3a1d0d18027ba81c$var$ThemeContext = /*#__PURE__*/ (0, $fs04y$react.createContext)(undefined);
|
|
2597
|
+
const $3a1d0d18027ba81c$var$THEME_STORAGE_KEY = 'fermmap-theme';
|
|
2598
|
+
// Get initial theme synchronously to prevent flicker
|
|
2599
|
+
function $3a1d0d18027ba81c$var$getInitialTheme() {
|
|
2600
|
+
if (typeof window === 'undefined') return 'light';
|
|
2601
|
+
// First check if blocking script already set the attribute
|
|
2602
|
+
const htmlAttribute = document.documentElement.getAttribute('data-color-scheme');
|
|
2603
|
+
if (htmlAttribute && (htmlAttribute === 'light' || htmlAttribute === 'dark')) return htmlAttribute;
|
|
2604
|
+
// Fallback to localStorage
|
|
2605
|
+
const stored = localStorage.getItem($3a1d0d18027ba81c$var$THEME_STORAGE_KEY);
|
|
2606
|
+
if (stored && (stored === 'light' || stored === 'dark')) return stored;
|
|
2607
|
+
// Final fallback to system preference
|
|
2608
|
+
return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
|
|
2609
|
+
}
|
|
2610
|
+
function $3a1d0d18027ba81c$export$d8964aec282183a3({ children: children }) {
|
|
2611
|
+
// Initialize with a function to avoid SSR issues
|
|
2612
|
+
const [colorScheme, setColorScheme] = (0, $fs04y$react.useState)(()=>{
|
|
2613
|
+
if (typeof window === 'undefined') return 'light';
|
|
2614
|
+
return $3a1d0d18027ba81c$var$getInitialTheme();
|
|
2615
|
+
});
|
|
2616
|
+
const [mounted, setMounted] = (0, $fs04y$react.useState)(false);
|
|
2617
|
+
// Set mounted flag on client
|
|
2618
|
+
(0, $fs04y$react.useEffect)(()=>{
|
|
2619
|
+
setMounted(true);
|
|
2620
|
+
// Ensure colorScheme matches what's actually set
|
|
2621
|
+
const actual = $3a1d0d18027ba81c$var$getInitialTheme();
|
|
2622
|
+
if (actual !== colorScheme) setColorScheme(actual);
|
|
2623
|
+
}, []);
|
|
2624
|
+
// Update html attribute and localStorage when scheme changes
|
|
2625
|
+
(0, $fs04y$react.useEffect)(()=>{
|
|
2626
|
+
if (!mounted) return;
|
|
2627
|
+
document.documentElement.setAttribute('data-color-scheme', colorScheme);
|
|
2628
|
+
localStorage.setItem($3a1d0d18027ba81c$var$THEME_STORAGE_KEY, colorScheme);
|
|
2629
|
+
}, [
|
|
2630
|
+
colorScheme,
|
|
2631
|
+
mounted
|
|
2632
|
+
]);
|
|
2633
|
+
const toggleColorScheme = ()=>{
|
|
2634
|
+
setColorScheme((prev)=>prev === 'light' ? 'dark' : 'light');
|
|
2635
|
+
};
|
|
2636
|
+
return (0, $fs04y$reactjsxruntime.jsx)($3a1d0d18027ba81c$var$ThemeContext.Provider, {
|
|
2637
|
+
value: {
|
|
2638
|
+
colorScheme: colorScheme,
|
|
2639
|
+
toggleColorScheme: toggleColorScheme
|
|
2640
|
+
},
|
|
2641
|
+
children: children
|
|
2642
|
+
});
|
|
2643
|
+
}
|
|
2644
|
+
function $3a1d0d18027ba81c$export$93d4e7f90805808f() {
|
|
2645
|
+
const context = (0, $fs04y$react.useContext)($3a1d0d18027ba81c$var$ThemeContext);
|
|
2646
|
+
if (context === undefined) throw new Error('useTheme must be used within a ThemeProvider');
|
|
2647
|
+
return context;
|
|
2648
|
+
}
|
|
2649
|
+
|
|
2650
|
+
|
|
2651
|
+
|
|
2652
|
+
|
|
2653
|
+
|
|
2654
|
+
|
|
2655
|
+
'use client';
|
|
2656
|
+
const $8f5795e91d23efab$var$initialFilterState = {
|
|
2657
|
+
category: null,
|
|
2658
|
+
country: null,
|
|
2659
|
+
searchQuery: ''
|
|
2660
|
+
};
|
|
2661
|
+
const $8f5795e91d23efab$var$FilterContext = /*#__PURE__*/ (0, $fs04y$react.createContext)(undefined);
|
|
2662
|
+
function $8f5795e91d23efab$export$66b627500eff8faa({ children: children }) {
|
|
2663
|
+
const [filters, setFilters] = (0, $fs04y$react.useState)($8f5795e91d23efab$var$initialFilterState);
|
|
2664
|
+
/**
|
|
2665
|
+
* Update a single filter
|
|
2666
|
+
*/ const updateFilter = (key, value)=>{
|
|
2667
|
+
setFilters((prev)=>({
|
|
2668
|
+
...prev,
|
|
2669
|
+
[key]: value
|
|
2670
|
+
}));
|
|
2671
|
+
};
|
|
2672
|
+
/**
|
|
2673
|
+
* Clear all filters back to initial state
|
|
2674
|
+
*/ const clearFilters = ()=>{
|
|
2675
|
+
setFilters($8f5795e91d23efab$var$initialFilterState);
|
|
2676
|
+
};
|
|
2677
|
+
return (0, $fs04y$reactjsxruntime.jsx)($8f5795e91d23efab$var$FilterContext.Provider, {
|
|
2678
|
+
value: {
|
|
2679
|
+
filters: filters,
|
|
2680
|
+
updateFilter: updateFilter,
|
|
2681
|
+
clearFilters: clearFilters
|
|
2682
|
+
},
|
|
2683
|
+
children: children
|
|
2684
|
+
});
|
|
2685
|
+
}
|
|
2686
|
+
function $8f5795e91d23efab$export$973ca22476b0e05f() {
|
|
2687
|
+
const context = (0, $fs04y$react.useContext)($8f5795e91d23efab$var$FilterContext);
|
|
2688
|
+
if (context === undefined) throw new Error('useFilters must be used within a FilterProvider');
|
|
2689
|
+
return context;
|
|
2690
|
+
}
|
|
2691
|
+
|
|
2692
|
+
|
|
2693
|
+
|
|
2694
|
+
|
|
2695
|
+
'use client';
|
|
2696
|
+
|
|
2697
|
+
function $ac6c22366fad60ff$export$dad69b6e16969c68() {
|
|
2698
|
+
(0, $fs04y$react.useEffect)(()=>{
|
|
2699
|
+
if (process.env.NODE_ENV !== 'production') // Only run axe in development mode
|
|
2700
|
+
$ac6c22366fad60ff$importAsync$4cbff5ac0c6b635e.then((axe)=>{
|
|
2701
|
+
axe.default((0, ($parcel$interopDefault($fs04y$react))), (0, ($parcel$interopDefault($fs04y$reactdom))), 1000, {});
|
|
2702
|
+
});
|
|
2703
|
+
}, []);
|
|
2704
|
+
return null;
|
|
2705
|
+
}
|
|
2706
|
+
|
|
2707
|
+
|
|
2708
|
+
|
|
2709
|
+
|
|
2710
|
+
var $d44b0b07a2b9c664$exports = {};
|
|
2711
|
+
// Hooks
|
|
2712
|
+
var $c5b52867831f5132$exports = {};
|
|
2713
|
+
|
|
2714
|
+
$parcel$export($c5b52867831f5132$exports, "DEFAULT_FILTERS", () => $c5b52867831f5132$export$42d0f19526e5d9da);
|
|
2715
|
+
$parcel$export($c5b52867831f5132$exports, "hasActiveFilters", () => $c5b52867831f5132$export$a15c90bdf31a4ff3);
|
|
2716
|
+
$parcel$export($c5b52867831f5132$exports, "clearFilters", () => $c5b52867831f5132$export$d0e6b6bfede2a57);
|
|
2717
|
+
$parcel$export($c5b52867831f5132$exports, "updateFilter", () => $c5b52867831f5132$export$fa59a93dacecf201);
|
|
2718
|
+
$parcel$export($c5b52867831f5132$exports, "filtersToQueryParams", () => $c5b52867831f5132$export$5d7f9913734d3d5f);
|
|
2719
|
+
/**
|
|
2720
|
+
* Default filter state
|
|
2721
|
+
*/ const $c5b52867831f5132$export$42d0f19526e5d9da = {
|
|
2722
|
+
searchQuery: '',
|
|
2723
|
+
category: null,
|
|
2724
|
+
country: null
|
|
2725
|
+
};
|
|
2726
|
+
function $c5b52867831f5132$export$a15c90bdf31a4ff3(filters) {
|
|
2727
|
+
return filters.searchQuery.trim() !== '' || filters.category !== null || filters.country !== null;
|
|
2728
|
+
}
|
|
2729
|
+
function $c5b52867831f5132$export$d0e6b6bfede2a57() {
|
|
2730
|
+
return {
|
|
2731
|
+
...$c5b52867831f5132$export$42d0f19526e5d9da
|
|
2732
|
+
};
|
|
2733
|
+
}
|
|
2734
|
+
function $c5b52867831f5132$export$fa59a93dacecf201(filters, field, value) {
|
|
2735
|
+
return {
|
|
2736
|
+
...filters,
|
|
2737
|
+
[field]: value
|
|
2738
|
+
};
|
|
2739
|
+
}
|
|
2740
|
+
function $c5b52867831f5132$export$5d7f9913734d3d5f(filters) {
|
|
2741
|
+
const params = {};
|
|
2742
|
+
if (filters.category) params.category = filters.category;
|
|
2743
|
+
if (filters.country) params.country = filters.country;
|
|
2744
|
+
return params;
|
|
2745
|
+
}
|
|
2746
|
+
|
|
2747
|
+
|
|
2748
|
+
$parcel$exportWildcard($d44b0b07a2b9c664$exports, $c5b52867831f5132$exports);
|
|
2749
|
+
|
|
2750
|
+
|
|
2751
|
+
var $0911ce1d49060a15$exports = {};
|
|
2752
|
+
|
|
2753
|
+
$parcel$export($0911ce1d49060a15$exports, "textFieldInputStyles", () => $53c8911eec26a318$export$457d6d213bf79459);
|
|
2754
|
+
$parcel$export($0911ce1d49060a15$exports, "getCategoryColors", () => $9df03defd63c82e0$export$2514cbae0d5c71c5);
|
|
2755
|
+
$parcel$export($0911ce1d49060a15$exports, "api", () => $ace12160cbee4ea7$export$644d8ea042df96a6);
|
|
2756
|
+
// Utilities
|
|
2757
|
+
const $53c8911eec26a318$export$457d6d213bf79459 = ()=>({
|
|
2758
|
+
padding: 12,
|
|
2759
|
+
paddingX: 16,
|
|
2760
|
+
borderWidth: 1,
|
|
2761
|
+
borderStyle: 'solid',
|
|
2762
|
+
borderColor: {
|
|
2763
|
+
default: '--plum-300',
|
|
2764
|
+
isHovered: '--plum-400',
|
|
2765
|
+
isFocusVisible: '--plum-500',
|
|
2766
|
+
isInvalid: '--berry-500'
|
|
2767
|
+
},
|
|
2768
|
+
borderRadius: 'lg',
|
|
2769
|
+
font: 'body',
|
|
2770
|
+
backgroundColor: 'layer-1',
|
|
2771
|
+
color: 'neutral',
|
|
2772
|
+
outline: 'none'
|
|
2773
|
+
});
|
|
2774
|
+
|
|
2775
|
+
|
|
2776
|
+
/**
|
|
2777
|
+
* Get colors for a ferment category
|
|
2778
|
+
* Returns marker color (for map), badge background, and badge text color
|
|
2779
|
+
*
|
|
2780
|
+
* @example
|
|
2781
|
+
* const colors = getCategoryColors('dairy');
|
|
2782
|
+
* // { marker: 'var(--plum-500)', badge: 'plum' }
|
|
2783
|
+
*/ function $9df03defd63c82e0$export$2514cbae0d5c71c5(category) {
|
|
2784
|
+
const colorMap = {
|
|
2785
|
+
dairy: {
|
|
2786
|
+
marker: 'var(--yogurt-500)',
|
|
2787
|
+
badge: 'plum'
|
|
2788
|
+
},
|
|
2789
|
+
vegetable: {
|
|
2790
|
+
marker: 'var(--cucumber-500)',
|
|
2791
|
+
badge: 'cucumber'
|
|
2792
|
+
},
|
|
2793
|
+
beverage: {
|
|
2794
|
+
marker: 'var(--berry-500)',
|
|
2795
|
+
badge: 'berry'
|
|
2796
|
+
},
|
|
2797
|
+
grain: {
|
|
2798
|
+
marker: 'var(--ginger-500)',
|
|
2799
|
+
badge: 'ginger'
|
|
2800
|
+
},
|
|
2801
|
+
legume: {
|
|
2802
|
+
marker: 'var(--ginger-600)',
|
|
2803
|
+
badge: 'cucumber'
|
|
2804
|
+
},
|
|
2805
|
+
meat: {
|
|
2806
|
+
marker: 'var(--berry-500)',
|
|
2807
|
+
badge: 'peach'
|
|
2808
|
+
},
|
|
2809
|
+
fish: {
|
|
2810
|
+
marker: 'var(--berry-500)',
|
|
2811
|
+
badge: 'berry'
|
|
2812
|
+
},
|
|
2813
|
+
condiment: {
|
|
2814
|
+
marker: 'var(--plum-650)',
|
|
2815
|
+
badge: 'ginger'
|
|
2816
|
+
},
|
|
2817
|
+
other: {
|
|
2818
|
+
marker: 'var(--yogurt-500)',
|
|
2819
|
+
badge: 'plum'
|
|
2820
|
+
}
|
|
2821
|
+
};
|
|
2822
|
+
// Default to yogurt colors for unknown categories
|
|
2823
|
+
return colorMap[category.toLowerCase()] || {
|
|
2824
|
+
marker: 'var(--yogurt-500)',
|
|
2825
|
+
badge: 'yogurt'
|
|
2826
|
+
};
|
|
2827
|
+
}
|
|
2828
|
+
|
|
2829
|
+
|
|
2830
|
+
/**
|
|
2831
|
+
* API Client for FermMap
|
|
2832
|
+
*
|
|
2833
|
+
* Centralized functions for all backend API calls
|
|
2834
|
+
* with error handling and type safety
|
|
2835
|
+
*/ /**
|
|
2836
|
+
* API client object with all endpoint methods
|
|
2837
|
+
*/ const $ace12160cbee4ea7$export$644d8ea042df96a6 = {
|
|
2838
|
+
/**
|
|
2839
|
+
* Get list of ferments with optional filters
|
|
2840
|
+
*/ async getFerments (filters) {
|
|
2841
|
+
const params = new URLSearchParams();
|
|
2842
|
+
if (filters?.category) params.append('category', filters.category);
|
|
2843
|
+
if (filters?.country) params.append('country', filters.country);
|
|
2844
|
+
if (filters?.limit) params.append('limit', filters.limit.toString());
|
|
2845
|
+
if (filters?.offset) params.append('offset', filters.offset.toString());
|
|
2846
|
+
const url = `/api/ferments${params.toString() ? `?${params}` : ''}`;
|
|
2847
|
+
const response = await fetch(url);
|
|
2848
|
+
if (!response.ok) throw new Error(`Failed to fetch ferments: ${response.statusText}`);
|
|
2849
|
+
return response.json();
|
|
2850
|
+
},
|
|
2851
|
+
/**
|
|
2852
|
+
* Get optimized data for map markers
|
|
2853
|
+
*/ async getFermentsForMap () {
|
|
2854
|
+
const response = await fetch('/api/ferments/map');
|
|
2855
|
+
if (!response.ok) throw new Error(`Failed to fetch map data: ${response.statusText}`);
|
|
2856
|
+
return response.json();
|
|
2857
|
+
},
|
|
2858
|
+
/**
|
|
2859
|
+
* Search ferments by name or description
|
|
2860
|
+
*/ async searchFerments (query) {
|
|
2861
|
+
if (!query || query.length < 2) return {
|
|
2862
|
+
results: [],
|
|
2863
|
+
query: query,
|
|
2864
|
+
count: 0
|
|
2865
|
+
};
|
|
2866
|
+
const response = await fetch(`/api/search?q=${encodeURIComponent(query)}`);
|
|
2867
|
+
if (!response.ok) throw new Error(`Search failed: ${response.statusText}`);
|
|
2868
|
+
return response.json();
|
|
2869
|
+
},
|
|
2870
|
+
/**
|
|
2871
|
+
* Get list of countries with hasFerments flag
|
|
2872
|
+
* Optionally filtered by category
|
|
2873
|
+
*/ async getCountries (category) {
|
|
2874
|
+
const url = category ? `/api/countries?category=${encodeURIComponent(category)}` : '/api/countries';
|
|
2875
|
+
const response = await fetch(url);
|
|
2876
|
+
if (!response.ok) throw new Error(`Failed to fetch countries: ${response.statusText}`);
|
|
2877
|
+
return response.json();
|
|
2878
|
+
},
|
|
2879
|
+
/**
|
|
2880
|
+
* Get list of categories
|
|
2881
|
+
* Optionally filtered by country
|
|
2882
|
+
*/ async getCategories (country) {
|
|
2883
|
+
const url = country ? `/api/categories?country=${encodeURIComponent(country)}` : '/api/categories';
|
|
2884
|
+
const response = await fetch(url);
|
|
2885
|
+
if (!response.ok) throw new Error(`Failed to fetch categories: ${response.statusText}`);
|
|
2886
|
+
return response.json();
|
|
2887
|
+
}
|
|
2888
|
+
};
|
|
2889
|
+
|
|
2890
|
+
|
|
2891
|
+
|
|
2892
|
+
|
|
2893
|
+
var $fef1a353edd33d81$exports = {};
|
|
2894
|
+
var $26e22b40e52bb1d8$exports = {};
|
|
2895
|
+
|
|
2896
|
+
|
|
2897
|
+
$parcel$exportWildcard($fef1a353edd33d81$exports, $26e22b40e52bb1d8$exports);
|
|
2898
|
+
|
|
2899
|
+
|
|
2900
|
+
$parcel$exportWildcard(module.exports, $305101ddbb5f36e4$exports);
|
|
2901
|
+
$parcel$exportWildcard(module.exports, $885bdde2b07b7632$exports);
|
|
2902
|
+
$parcel$exportWildcard(module.exports, $d44b0b07a2b9c664$exports);
|
|
2903
|
+
$parcel$exportWildcard(module.exports, $0911ce1d49060a15$exports);
|
|
2904
|
+
$parcel$exportWildcard(module.exports, $fef1a353edd33d81$exports);
|
|
2905
|
+
|
|
2906
|
+
|
|
2907
|
+
//# sourceMappingURL=main.cjs.map
|