@eightshift/ui-components 5.3.2 → 5.4.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/dist/{Button-npzfSoYo.js → Button-CQ5ZZJ2w.js} +8 -14
- package/dist/{Dialog-CQ8H6Noi.js → Dialog-BMgMUQuN.js} +81 -73
- package/dist/{FocusScope-DJApHXhY.js → FocusScope-B5vxRkHm.js} +1 -1
- package/dist/{Heading-bh1HU5HH.js → Heading-B5aEynOM.js} +1 -1
- package/dist/{Input-ChJaTNa5.js → Input-8yja_IHC.js} +6 -5
- package/dist/{ListBox-D0Stb4wr.js → ListBox-DggfiuO_.js} +28 -16
- package/dist/{OverlayArrow-DivvkAVb.js → OverlayArrow-DraDOoRn.js} +1 -1
- package/dist/{RSPContexts-2lR5GG9p.js → RSPContexts-CJ-HBf0L.js} +8 -4
- package/dist/{SearchField-jVsbJe1O.js → SearchField-DWGdCvnn.js} +24 -18
- package/dist/{Select-ciHB1pub.js → Select-BvggcFOX.js} +204 -68
- package/dist/SelectionIndicator-D7WMzeAW.js +7 -0
- package/dist/{SelectionManager-CabSdgMq.js → SelectionManager-B6-b5NM2.js} +98 -59
- package/dist/{Separator-BPvqJny4.js → Separator-B-xeqOkC.js} +6 -6
- package/dist/SharedElementTransition-fML-zIv6.js +12 -0
- package/dist/{Slider-ChP04COa.js → Slider-DfU6bRtH.js} +4 -4
- package/dist/{VisuallyHidden-X6SggVVO.js → VisuallyHidden-CgnIuZJ2.js} +1 -1
- package/dist/assets/style-admin.css +940 -100
- package/dist/assets/style-editor.css +940 -100
- package/dist/assets/style.css +940 -100
- package/dist/assets/wp-font-enhancements.css +1 -1
- package/dist/assets/wp-ui-enhancements.css +1 -1
- package/dist/components/button/button.js +83 -26
- package/dist/components/checkbox/checkbox.js +14 -10
- package/dist/components/color-pickers/solid-color-picker.js +8 -8
- package/dist/components/expandable/expandable.js +40 -10
- package/dist/components/index.js +2 -0
- package/dist/components/input-field/input-field.js +5 -5
- package/dist/components/link-input/link-input.js +32 -21
- package/dist/components/menu/menu.js +5 -3
- package/dist/components/modal/modal.js +34 -6
- package/dist/components/number-picker/number-picker.js +5 -4
- package/dist/components/options-panel/options-panel.js +1 -1
- package/dist/components/placeholders/file-picker-shell.js +102 -0
- package/dist/components/popover/popover.js +1 -1
- package/dist/components/radio/radio.js +20 -11
- package/dist/components/select/v2/async-multi-select.js +6 -6
- package/dist/components/select/v2/async-select.js +6 -6
- package/dist/components/select/v2/multi-select.js +7 -7
- package/dist/components/select/v2/shared.js +1 -1
- package/dist/components/select/v2/single-select.js +7 -7
- package/dist/components/slider/column-config-slider.js +1 -1
- package/dist/components/slider/slider.js +1 -1
- package/dist/components/tabs/tabs.js +16 -10
- package/dist/components/toggle/switch.js +5 -5
- package/dist/components/toggle-button/toggle-button.js +34 -24
- package/dist/components/tooltip/tooltip.js +2 -2
- package/dist/icons/icons.js +27 -0
- package/dist/index.js +2 -0
- package/dist/{textSelection-k0u64dDA.js → textSelection-DbCKqaw8.js} +1 -1
- package/dist/{useButton-Bn4ZT295.js → useButton-v9ngEj50.js} +2 -2
- package/dist/{useDragAndDrop-DVLrIdEn.js → useDragAndDrop-C08ZXv4F.js} +5 -5
- package/dist/{useFilter-C4wo8Iii.js → useFilter-BlkUH1Ma.js} +1 -1
- package/dist/{useFocusRing-CUxgjvAY.js → useFocusRing-Cgm0R4Cf.js} +1 -1
- package/dist/{useFormValidation-CUtZcedF.js → useFormValidation-CeNsUGWK.js} +1 -1
- package/dist/{useHover-LmGemtHE.js → useHover-BRDW3y7-.js} +3 -1
- package/dist/{useListState-Xsk-aOvN.js → useListState-RdLrYsMP.js} +1 -1
- package/dist/{useNumberField-BCjjZWaz.js → useNumberField-D16dDfYF.js} +5 -5
- package/dist/{usePress-CBQIDzpQ.js → usePress-DJskZBH9.js} +4 -2
- package/dist/{useSingleSelectListState-DattSD7d.js → useSingleSelectListState-n0AVMr3Y.js} +2 -2
- package/dist/{useToggle-C8CedY6Z.js → useToggle-DSBDAfdw.js} +2 -2
- package/dist/{useToggleState-CiAradXs.js → useToggleState-CzN79ary.js} +1 -1
- package/package.json +14 -14
- package/dist/context-DCAZLyDS.js +0 -7
|
@@ -1,23 +1,32 @@
|
|
|
1
|
-
import { a as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "./Button-
|
|
1
|
+
import { a as $d2b4bc8c273e7be6$export$24d547caef80ccd1 } from "./Button-CQ5ZZJ2w.js";
|
|
2
2
|
import { b as $3ef42575df84b30b$export$9d1611c77c2fe928, d as $bdb11010cef70236$export$f680877a34711e37, p as $ff5963eb1fccf552$export$e08e3b67e392101e, a as $64fa3d84918910a7$export$29f1550f4b0d4415, $ as $64fa3d84918910a7$export$fabf2dc03a41866e, h as $64fa3d84918910a7$export$4d86445c2cf5e3, f as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, g as $64fa3d84918910a7$export$ef03459518577ad4, i as $64fa3d84918910a7$export$2881499e37b75b9a } from "./utils-cvK1vxO7.js";
|
|
3
3
|
import { a as $2baaea4c71418dea$export$294aa081a6c6f55d, $ as $ee014567cb39d3f0$export$ff05c3ac10437e03 } from "./FieldError-B8BgFmIQ.js";
|
|
4
4
|
import { $ as $d3e0e05bdfcf66bd$export$c24727297075ec6a } from "./Form-Cq3fu75_.js";
|
|
5
5
|
import { a as $01b77f81d0f07f68$export$75b6ee27786ba447 } from "./Label-DWVaNd2E.js";
|
|
6
|
-
import {
|
|
7
|
-
import { o as $168583247155ddda$export$dc9c12ed27dd1b49, l as $de32f1b87079253c$export$d2f961adcb0afbe, p as $07b14b47974efb58$export$9b9a0cd73afb7ca4 } from "./Dialog-
|
|
6
|
+
import { e as $eed445e0843c11d0$export$7ff8f37d2d81a48d, f as $eed445e0843c11d0$export$7c5906fe4f1f2af2 } from "./ListBox-DggfiuO_.js";
|
|
7
|
+
import { o as $168583247155ddda$export$dc9c12ed27dd1b49, l as $de32f1b87079253c$export$d2f961adcb0afbe, p as $07b14b47974efb58$export$9b9a0cd73afb7ca4 } from "./Dialog-BMgMUQuN.js";
|
|
8
8
|
import { a as $514c0188e459b4c0$export$9afb8bc826b033ea } from "./Text-AxKZjtFm.js";
|
|
9
|
-
import {
|
|
9
|
+
import { u as $fb3050f43d946246$export$e32c88dfddc6e1d8, g as $e1995378a142960e$export$bf788dd355e3a401 } from "./SelectionManager-B6-b5NM2.js";
|
|
10
|
+
import { $ as $f39a9eba43920ace$export$86427a43e3e48ebb } from "./Hidden-rE6uR-lr.js";
|
|
10
11
|
import { $ as $65484d02dcb7eb3e$export$457c3d6518dd4c6f } from "./filterDOMProps-D2C6R0DK.js";
|
|
11
|
-
import { $ as $fc909762b330b746$export$61c6a8c84e605fb6, f as $9daab02d461809db$export$683480f191c0e3ea } from "./OverlayArrow-
|
|
12
|
-
import React__default, { useMemo, useRef, useCallback, useState, forwardRef, createContext, useContext } from "react";
|
|
12
|
+
import { $ as $fc909762b330b746$export$61c6a8c84e605fb6, f as $9daab02d461809db$export$683480f191c0e3ea } from "./OverlayArrow-DraDOoRn.js";
|
|
13
|
+
import React__default, { useMemo, useRef, useCallback, useState, forwardRef, createContext, useContext, Fragment } from "react";
|
|
14
|
+
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-DMOmz986.js";
|
|
13
15
|
import { $ as $fca6afa0e843324b$export$f12b703ca79dfbb1 } from "./useLocalizedStringFormatter-eaZiN2tE.js";
|
|
14
|
-
import { a as $e93e671b31057976$export$b8473d3665f3a75a, $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10 } from "./useFormValidation-
|
|
15
|
-
import { $ as $
|
|
16
|
-
import { a as $
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
16
|
+
import { a as $e93e671b31057976$export$b8473d3665f3a75a, $ as $e5be200c675c3b3a$export$fc1a364ae1f3ff10 } from "./useFormValidation-CeNsUGWK.js";
|
|
17
|
+
import { $ as $e72dd72e1c76a225$export$2f645645f7bca764 } from "./useListState-RdLrYsMP.js";
|
|
18
|
+
import { v as $507fabe10e71c6fb$export$8397ddfc504fdb9a, a as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-BRDW3y7-.js";
|
|
19
|
+
import { a as $f7dceffc5ad7768b$export$4e328f61c538687f } from "./useFocusRing-Cgm0R4Cf.js";
|
|
20
|
+
import { b as $325a3faab7a68acd$export$a16aca283550c30d, f as $2a25aae57d74318e$export$a05409b8bb224a5a } from "./Separator-B-xeqOkC.js";
|
|
19
21
|
import { $ as $99facab73266f662$export$5add1d006293d136 } from "./useFormReset-yV9VVy9R.js";
|
|
20
|
-
import { a as $5c3e21d68f1c4674$export$a966af930f325cab } from "./VisuallyHidden-
|
|
22
|
+
import { a as $5c3e21d68f1c4674$export$a966af930f325cab } from "./VisuallyHidden-CgnIuZJ2.js";
|
|
23
|
+
function $33bf17300c498528$export$a2f47a3d2973640(options = {}) {
|
|
24
|
+
let { locale } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7();
|
|
25
|
+
return useMemo(() => new Intl.ListFormat(locale, options), [
|
|
26
|
+
locale,
|
|
27
|
+
options
|
|
28
|
+
]);
|
|
29
|
+
}
|
|
21
30
|
const $58aed456727eb0f3$export$703601b7e90536f8 = /* @__PURE__ */ new WeakMap();
|
|
22
31
|
function $58aed456727eb0f3$export$e64b2f635402ca43(props, state, ref) {
|
|
23
32
|
let { keyboardDelegate, isDisabled, isRequired, name, form, validationBehavior = "aria" } = props;
|
|
@@ -37,6 +46,7 @@ function $58aed456727eb0f3$export$e64b2f635402ca43(props, state, ref) {
|
|
|
37
46
|
type: "listbox"
|
|
38
47
|
}, state, ref);
|
|
39
48
|
let onKeyDown = (e) => {
|
|
49
|
+
if (state.selectionManager.selectionMode === "multiple") return;
|
|
40
50
|
switch (e.key) {
|
|
41
51
|
case "ArrowLeft": {
|
|
42
52
|
var _delegate_getKeyAbove, _delegate_getFirstKey;
|
|
@@ -70,6 +80,7 @@ function $58aed456727eb0f3$export$e64b2f635402ca43(props, state, ref) {
|
|
|
70
80
|
});
|
|
71
81
|
typeSelectProps.onKeyDown = typeSelectProps.onKeyDownCapture;
|
|
72
82
|
delete typeSelectProps.onKeyDownCapture;
|
|
83
|
+
if (state.selectionManager.selectionMode === "multiple") typeSelectProps = {};
|
|
73
84
|
let domProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
|
|
74
85
|
labelable: true
|
|
75
86
|
});
|
|
@@ -164,7 +175,7 @@ function $bdd25dc72710631f$export$f809e80f58e251d1(props, state, triggerRef) {
|
|
|
164
175
|
left: 0
|
|
165
176
|
}
|
|
166
177
|
});
|
|
167
|
-
$99facab73266f662$export$5add1d006293d136(props.selectRef, state.
|
|
178
|
+
$99facab73266f662$export$5add1d006293d136(props.selectRef, state.defaultValue, state.setValue);
|
|
168
179
|
$e93e671b31057976$export$b8473d3665f3a75a({
|
|
169
180
|
validationBehavior,
|
|
170
181
|
focus: () => {
|
|
@@ -172,10 +183,14 @@ function $bdd25dc72710631f$export$f809e80f58e251d1(props, state, triggerRef) {
|
|
|
172
183
|
return (_triggerRef_current = triggerRef.current) === null || _triggerRef_current === void 0 ? void 0 : _triggerRef_current.focus();
|
|
173
184
|
}
|
|
174
185
|
}, state, props.selectRef);
|
|
175
|
-
let
|
|
176
|
-
|
|
186
|
+
let setValue = state.setValue;
|
|
187
|
+
let onChange = useCallback((e) => {
|
|
188
|
+
if (e.target.multiple) setValue(Array.from(e.target.selectedOptions, (option) => option.value));
|
|
189
|
+
else setValue(e.currentTarget.value);
|
|
190
|
+
}, [
|
|
191
|
+
setValue
|
|
177
192
|
]);
|
|
178
|
-
var
|
|
193
|
+
var _state_value;
|
|
179
194
|
return {
|
|
180
195
|
containerProps: {
|
|
181
196
|
...visuallyHiddenProps,
|
|
@@ -194,10 +209,11 @@ function $bdd25dc72710631f$export$f809e80f58e251d1(props, state, triggerRef) {
|
|
|
194
209
|
tabIndex: -1,
|
|
195
210
|
autoComplete,
|
|
196
211
|
disabled: isDisabled,
|
|
212
|
+
multiple: state.selectionManager.selectionMode === "multiple",
|
|
197
213
|
required: validationBehavior === "native" && isRequired,
|
|
198
214
|
name,
|
|
199
215
|
form,
|
|
200
|
-
value: (
|
|
216
|
+
value: (_state_value = state.value) !== null && _state_value !== void 0 ? _state_value : "",
|
|
201
217
|
onChange,
|
|
202
218
|
onInput: onChange
|
|
203
219
|
}
|
|
@@ -229,57 +245,130 @@ function $bdd25dc72710631f$export$cbd84cdb2e668835(props) {
|
|
|
229
245
|
else if (name) {
|
|
230
246
|
let data = $58aed456727eb0f3$export$703601b7e90536f8.get(state) || {};
|
|
231
247
|
let { validationBehavior } = data;
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
248
|
+
let values = Array.isArray(state.value) ? state.value : [
|
|
249
|
+
state.value
|
|
250
|
+
];
|
|
251
|
+
if (values.length === 0) values = [
|
|
252
|
+
null
|
|
253
|
+
];
|
|
254
|
+
let res = values.map((value, i) => {
|
|
255
|
+
let inputProps = {
|
|
256
|
+
type: "hidden",
|
|
257
|
+
autoComplete: selectProps.autoComplete,
|
|
258
|
+
name,
|
|
259
|
+
form,
|
|
260
|
+
disabled: isDisabled,
|
|
261
|
+
value: value !== null && value !== void 0 ? value : ""
|
|
262
|
+
};
|
|
263
|
+
if (validationBehavior === "native")
|
|
264
|
+
return /* @__PURE__ */ React__default.createElement("input", {
|
|
265
|
+
key: i,
|
|
266
|
+
...inputProps,
|
|
267
|
+
ref: i === 0 ? inputRef : null,
|
|
268
|
+
style: {
|
|
269
|
+
display: "none"
|
|
270
|
+
},
|
|
271
|
+
type: "text",
|
|
272
|
+
required: i === 0 ? selectProps.required : false,
|
|
273
|
+
onChange: () => {
|
|
274
|
+
}
|
|
275
|
+
});
|
|
242
276
|
return /* @__PURE__ */ React__default.createElement("input", {
|
|
277
|
+
key: i,
|
|
243
278
|
...inputProps,
|
|
244
|
-
ref: inputRef
|
|
245
|
-
style: {
|
|
246
|
-
display: "none"
|
|
247
|
-
},
|
|
248
|
-
type: "text",
|
|
249
|
-
required: selectProps.required,
|
|
250
|
-
onChange: () => {
|
|
251
|
-
}
|
|
279
|
+
ref: i === 0 ? inputRef : null
|
|
252
280
|
});
|
|
253
|
-
return /* @__PURE__ */ React__default.createElement("input", {
|
|
254
|
-
...inputProps,
|
|
255
|
-
ref: inputRef
|
|
256
281
|
});
|
|
282
|
+
return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, res);
|
|
257
283
|
}
|
|
258
284
|
return null;
|
|
259
285
|
}
|
|
260
286
|
function $2bc3a590c5373a4e$export$5159ec8b34d4ec12(props) {
|
|
287
|
+
let { selectionMode = "single" } = props;
|
|
261
288
|
let triggerState = $fc909762b330b746$export$61c6a8c84e605fb6(props);
|
|
262
289
|
let [focusStrategy, setFocusStrategy] = useState(null);
|
|
263
|
-
let
|
|
290
|
+
let defaultValue = useMemo(() => {
|
|
291
|
+
var _props_defaultSelectedKey2;
|
|
292
|
+
return props.defaultValue !== void 0 ? props.defaultValue : selectionMode === "single" ? (_props_defaultSelectedKey2 = props.defaultSelectedKey) !== null && _props_defaultSelectedKey2 !== void 0 ? _props_defaultSelectedKey2 : null : [];
|
|
293
|
+
}, [
|
|
294
|
+
props.defaultValue,
|
|
295
|
+
props.defaultSelectedKey,
|
|
296
|
+
selectionMode
|
|
297
|
+
]);
|
|
298
|
+
let value = useMemo(() => {
|
|
299
|
+
return props.value !== void 0 ? props.value : selectionMode === "single" ? props.selectedKey : void 0;
|
|
300
|
+
}, [
|
|
301
|
+
props.value,
|
|
302
|
+
props.selectedKey,
|
|
303
|
+
selectionMode
|
|
304
|
+
]);
|
|
305
|
+
let [controlledValue, setControlledValue] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(value, defaultValue, props.onChange);
|
|
306
|
+
let displayValue = selectionMode === "single" && Array.isArray(controlledValue) ? controlledValue[0] : controlledValue;
|
|
307
|
+
let setValue = (value2) => {
|
|
308
|
+
if (selectionMode === "single") {
|
|
309
|
+
var _props_onSelectionChange;
|
|
310
|
+
var _value_;
|
|
311
|
+
let key = Array.isArray(value2) ? (_value_ = value2[0]) !== null && _value_ !== void 0 ? _value_ : null : value2;
|
|
312
|
+
setControlledValue(key);
|
|
313
|
+
if (key !== displayValue) (_props_onSelectionChange = props.onSelectionChange) === null || _props_onSelectionChange === void 0 ? void 0 : _props_onSelectionChange.call(props, key);
|
|
314
|
+
} else {
|
|
315
|
+
let keys = [];
|
|
316
|
+
if (Array.isArray(value2)) keys = value2;
|
|
317
|
+
else if (value2 != null) keys = [
|
|
318
|
+
value2
|
|
319
|
+
];
|
|
320
|
+
setControlledValue(keys);
|
|
321
|
+
}
|
|
322
|
+
};
|
|
323
|
+
let listState = $e72dd72e1c76a225$export$2f645645f7bca764({
|
|
264
324
|
...props,
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
325
|
+
selectionMode,
|
|
326
|
+
disallowEmptySelection: selectionMode === "single",
|
|
327
|
+
allowDuplicateSelectionEvents: true,
|
|
328
|
+
selectedKeys: useMemo(() => $2bc3a590c5373a4e$var$convertValue(displayValue), [
|
|
329
|
+
displayValue
|
|
330
|
+
]),
|
|
331
|
+
onSelectionChange: (keys) => {
|
|
332
|
+
if (keys === "all") return;
|
|
333
|
+
if (selectionMode === "single") {
|
|
334
|
+
var _keys_values_next_value;
|
|
335
|
+
let key = (_keys_values_next_value = keys.values().next().value) !== null && _keys_values_next_value !== void 0 ? _keys_values_next_value : null;
|
|
336
|
+
setValue(key);
|
|
337
|
+
triggerState.close();
|
|
338
|
+
} else setValue([
|
|
339
|
+
...keys
|
|
340
|
+
]);
|
|
268
341
|
validationState.commitValidation();
|
|
269
342
|
}
|
|
270
343
|
});
|
|
344
|
+
let selectedKey = listState.selectionManager.firstSelectedKey;
|
|
345
|
+
let selectedItems = useMemo(() => {
|
|
346
|
+
return [
|
|
347
|
+
...listState.selectionManager.selectedKeys
|
|
348
|
+
].map((key) => listState.collection.getItem(key)).filter((item) => item != null);
|
|
349
|
+
}, [
|
|
350
|
+
listState.selectionManager.selectedKeys,
|
|
351
|
+
listState.collection
|
|
352
|
+
]);
|
|
271
353
|
let validationState = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
|
|
272
354
|
...props,
|
|
273
|
-
value:
|
|
355
|
+
value: Array.isArray(displayValue) && displayValue.length === 0 ? null : displayValue
|
|
274
356
|
});
|
|
275
357
|
let [isFocused, setFocused] = useState(false);
|
|
276
|
-
let [
|
|
277
|
-
var _props_defaultSelectedKey;
|
|
358
|
+
let [initialValue] = useState(displayValue);
|
|
359
|
+
var _selectedItems_, _props_defaultSelectedKey;
|
|
278
360
|
return {
|
|
279
361
|
...validationState,
|
|
280
362
|
...listState,
|
|
281
363
|
...triggerState,
|
|
282
|
-
|
|
364
|
+
value: displayValue,
|
|
365
|
+
defaultValue: defaultValue !== null && defaultValue !== void 0 ? defaultValue : initialValue,
|
|
366
|
+
setValue,
|
|
367
|
+
selectedKey,
|
|
368
|
+
setSelectedKey: setValue,
|
|
369
|
+
selectedItem: (_selectedItems_ = selectedItems[0]) !== null && _selectedItems_ !== void 0 ? _selectedItems_ : null,
|
|
370
|
+
selectedItems,
|
|
371
|
+
defaultSelectedKey: (_props_defaultSelectedKey = props.defaultSelectedKey) !== null && _props_defaultSelectedKey !== void 0 ? _props_defaultSelectedKey : props.selectionMode === "single" ? initialValue : null,
|
|
283
372
|
focusStrategy,
|
|
284
373
|
open(focusStrategy2 = null) {
|
|
285
374
|
if (listState.collection.size !== 0) {
|
|
@@ -297,6 +386,13 @@ function $2bc3a590c5373a4e$export$5159ec8b34d4ec12(props) {
|
|
|
297
386
|
setFocused
|
|
298
387
|
};
|
|
299
388
|
}
|
|
389
|
+
function $2bc3a590c5373a4e$var$convertValue(value) {
|
|
390
|
+
if (value === void 0) return void 0;
|
|
391
|
+
if (value === null) return [];
|
|
392
|
+
return Array.isArray(value) ? value : [
|
|
393
|
+
value
|
|
394
|
+
];
|
|
395
|
+
}
|
|
300
396
|
var $e038a7e7a6d81989$exports = {};
|
|
301
397
|
$e038a7e7a6d81989$exports = {
|
|
302
398
|
"colorSwatchPicker": `تغييرات الألوان`,
|
|
@@ -752,36 +848,76 @@ function $82d7e5349645de74$var$SelectInner({ props, selectRef: ref, collection }
|
|
|
752
848
|
})));
|
|
753
849
|
}
|
|
754
850
|
const $82d7e5349645de74$export$f8f745c04421623f = /* @__PURE__ */ createContext(null);
|
|
755
|
-
const $82d7e5349645de74$export$e288731fd71264f0 = /* @__PURE__ */
|
|
756
|
-
var
|
|
851
|
+
const $82d7e5349645de74$export$e288731fd71264f0 = /* @__PURE__ */ $f39a9eba43920ace$export$86427a43e3e48ebb(function SelectValue(props, ref) {
|
|
852
|
+
var _state_selectedItems_;
|
|
757
853
|
[props, ref] = $64fa3d84918910a7$export$29f1550f4b0d4415(props, ref, $82d7e5349645de74$export$f8f745c04421623f);
|
|
758
854
|
let state = useContext($82d7e5349645de74$export$ef445b55be0601bd);
|
|
759
855
|
let { placeholder } = $64fa3d84918910a7$export$fabf2dc03a41866e($82d7e5349645de74$export$7540cee5be7dc19b);
|
|
760
|
-
let
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
856
|
+
let rendered = state.selectedItems.map((item) => {
|
|
857
|
+
var _item_props;
|
|
858
|
+
let rendered2 = (_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.children;
|
|
859
|
+
if (typeof rendered2 === "function") {
|
|
860
|
+
let fn = rendered2;
|
|
861
|
+
rendered2 = fn({
|
|
862
|
+
isHovered: false,
|
|
863
|
+
isPressed: false,
|
|
864
|
+
isSelected: false,
|
|
865
|
+
isFocused: false,
|
|
866
|
+
isFocusVisible: false,
|
|
867
|
+
isDisabled: false,
|
|
868
|
+
selectionMode: "single",
|
|
869
|
+
selectionBehavior: "toggle"
|
|
870
|
+
});
|
|
871
|
+
}
|
|
872
|
+
return rendered2;
|
|
873
|
+
});
|
|
874
|
+
let formatter = $33bf17300c498528$export$a2f47a3d2973640();
|
|
875
|
+
let textValue = useMemo(() => state.selectedItems.map((item) => item === null || item === void 0 ? void 0 : item.textValue), [
|
|
876
|
+
state.selectedItems
|
|
877
|
+
]);
|
|
878
|
+
let selectionMode = state.selectionManager.selectionMode;
|
|
879
|
+
let selectedText = useMemo(() => {
|
|
880
|
+
var _textValue_;
|
|
881
|
+
return selectionMode === "single" ? (_textValue_ = textValue[0]) !== null && _textValue_ !== void 0 ? _textValue_ : "" : formatter.format(textValue);
|
|
882
|
+
}, [
|
|
883
|
+
selectionMode,
|
|
884
|
+
formatter,
|
|
885
|
+
textValue
|
|
886
|
+
]);
|
|
887
|
+
let defaultChildren = useMemo(() => {
|
|
888
|
+
if (selectionMode === "single") return rendered[0];
|
|
889
|
+
let parts = formatter.formatToParts(textValue);
|
|
890
|
+
if (parts.length === 0) return null;
|
|
891
|
+
let index = 0;
|
|
892
|
+
return parts.map((part) => {
|
|
893
|
+
if (part.type === "element") return /* @__PURE__ */ React__default.createElement(Fragment, {
|
|
894
|
+
key: index
|
|
895
|
+
}, rendered[index++]);
|
|
896
|
+
else return part.value;
|
|
773
897
|
});
|
|
774
|
-
}
|
|
898
|
+
}, [
|
|
899
|
+
selectionMode,
|
|
900
|
+
formatter,
|
|
901
|
+
textValue,
|
|
902
|
+
rendered
|
|
903
|
+
]);
|
|
775
904
|
let stringFormatter = $fca6afa0e843324b$export$f12b703ca79dfbb1($parcel$interopDefault($df39c1238ae2b5f3$exports), "react-aria-components");
|
|
776
|
-
var _ref,
|
|
905
|
+
var _ref, _state_selectedItems__value;
|
|
777
906
|
let renderProps = $64fa3d84918910a7$export$4d86445c2cf5e3({
|
|
778
907
|
...props,
|
|
779
|
-
defaultChildren: (_ref =
|
|
908
|
+
defaultChildren: (_ref = defaultChildren !== null && defaultChildren !== void 0 ? defaultChildren : placeholder) !== null && _ref !== void 0 ? _ref : stringFormatter.format("selectPlaceholder"),
|
|
780
909
|
defaultClassName: "react-aria-SelectValue",
|
|
781
910
|
values: {
|
|
782
|
-
selectedItem: (
|
|
783
|
-
|
|
784
|
-
|
|
911
|
+
selectedItem: (_state_selectedItems__value = (_state_selectedItems_ = state.selectedItems[0]) === null || _state_selectedItems_ === void 0 ? void 0 : _state_selectedItems_.value) !== null && _state_selectedItems__value !== void 0 ? _state_selectedItems__value : null,
|
|
912
|
+
selectedItems: useMemo(() => state.selectedItems.map((item) => {
|
|
913
|
+
var _item_value;
|
|
914
|
+
return (_item_value = item.value) !== null && _item_value !== void 0 ? _item_value : null;
|
|
915
|
+
}), [
|
|
916
|
+
state.selectedItems
|
|
917
|
+
]),
|
|
918
|
+
selectedText,
|
|
919
|
+
isPlaceholder: state.selectedItems.length === 0,
|
|
920
|
+
state
|
|
785
921
|
}
|
|
786
922
|
});
|
|
787
923
|
let DOMProps = $65484d02dcb7eb3e$export$457c3d6518dd4c6f(props, {
|
|
@@ -791,7 +927,7 @@ const $82d7e5349645de74$export$e288731fd71264f0 = /* @__PURE__ */ forwardRef(fun
|
|
|
791
927
|
ref,
|
|
792
928
|
...DOMProps,
|
|
793
929
|
...renderProps,
|
|
794
|
-
"data-placeholder":
|
|
930
|
+
"data-placeholder": state.selectedItems.length === 0 || void 0
|
|
795
931
|
}, /* @__PURE__ */ React__default.createElement($514c0188e459b4c0$export$9afb8bc826b033ea.Provider, {
|
|
796
932
|
value: void 0
|
|
797
933
|
}, renderProps.children));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import React__default, { useRef, useState, useEffect, useMemo, cloneElement, forwardRef, useContext, createContext, useCallback, isValidElement } from "react";
|
|
2
|
-
import { B as $c87311424ea30a05$export$9ac100e40613ea10, e as $03deb23ff14920c4$export$4eaf04e54aa8eed6, c as $431fbd86ca7dc216$export$b204af158042fbac, z as $7215afc6de606d6b$export$de79e2c695e052f3, g as $d4ee10de306f2510$export$cd4e5573fbe2b576, J as $c87311424ea30a05$export$e1865c3bedcd822b, r as $3ad3f6e1647bc98d$export$80f3e147d781571c, u as $507fabe10e71c6fb$export$630ff653c5ada6a9, K as $f645667febf57a63$export$f9762fab77588ecb, a as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-
|
|
2
|
+
import { B as $c87311424ea30a05$export$9ac100e40613ea10, t as $c87311424ea30a05$export$6446a186d09e379e, e as $03deb23ff14920c4$export$4eaf04e54aa8eed6, c as $431fbd86ca7dc216$export$b204af158042fbac, z as $7215afc6de606d6b$export$de79e2c695e052f3, g as $d4ee10de306f2510$export$cd4e5573fbe2b576, J as $c87311424ea30a05$export$e1865c3bedcd822b, r as $3ad3f6e1647bc98d$export$80f3e147d781571c, u as $507fabe10e71c6fb$export$630ff653c5ada6a9, K as $f645667febf57a63$export$f9762fab77588ecb, a as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-BRDW3y7-.js";
|
|
3
3
|
import { k as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, b as $3ef42575df84b30b$export$9d1611c77c2fe928, d as $bdb11010cef70236$export$f680877a34711e37, e as $8ae05eaa5c114e9c$export$7f54fc3180508a52, p as $ff5963eb1fccf552$export$e08e3b67e392101e, n as $b5e257d569688ac6$export$535bd6ca7f90a273 } from "./utils-cvK1vxO7.js";
|
|
4
|
-
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21, b as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, c as $ea8dcbcb9ea1b556$export$95185d699e05d4d7 } from "./usePress-
|
|
4
|
+
import { $ as $f6c31cce2adf654f$export$45712eceda6fad21, b as $ea8dcbcb9ea1b556$export$9a302a45f65d0572, c as $ea8dcbcb9ea1b556$export$95185d699e05d4d7 } from "./usePress-DJskZBH9.js";
|
|
5
5
|
import { $ as $e9faafb641e167db$export$90fc3a17d93f704c } from "./useEvent-BifIGnVS.js";
|
|
6
|
-
import { a as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "./FocusScope-
|
|
6
|
+
import { a as $9bf71ea28793e738$export$2d6ec8fc375ceafa } from "./FocusScope-B5vxRkHm.js";
|
|
7
7
|
import { r as reactDomExports } from "./index-D8-Zjpbd.js";
|
|
8
8
|
import { $ as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7 } from "./context-DMOmz986.js";
|
|
9
9
|
import { a as $f39a9eba43920ace$export$8dc98ba7eadeaa56 } from "./Hidden-rE6uR-lr.js";
|
|
@@ -37,6 +37,24 @@ function $a40c673dc9f6d9c7$export$94ed1c92c7beeb22(node, checkForOverflow) {
|
|
|
37
37
|
}
|
|
38
38
|
return scrollParents;
|
|
39
39
|
}
|
|
40
|
+
function $21f1aa98acb08317$export$16792effe837dba3(e) {
|
|
41
|
+
if ($c87311424ea30a05$export$9ac100e40613ea10()) return e.metaKey;
|
|
42
|
+
return e.ctrlKey;
|
|
43
|
+
}
|
|
44
|
+
const $21f1aa98acb08317$var$nonTextInputTypes = /* @__PURE__ */ new Set([
|
|
45
|
+
"checkbox",
|
|
46
|
+
"radio",
|
|
47
|
+
"range",
|
|
48
|
+
"color",
|
|
49
|
+
"file",
|
|
50
|
+
"image",
|
|
51
|
+
"button",
|
|
52
|
+
"submit",
|
|
53
|
+
"reset"
|
|
54
|
+
]);
|
|
55
|
+
function $21f1aa98acb08317$export$c57958e35f31ed73(target) {
|
|
56
|
+
return target instanceof HTMLInputElement && !$21f1aa98acb08317$var$nonTextInputTypes.has(target.type) || target instanceof HTMLTextAreaElement || target instanceof HTMLElement && target.isContentEditable;
|
|
57
|
+
}
|
|
40
58
|
let $ef06256079686ba0$var$descriptionId = 0;
|
|
41
59
|
const $ef06256079686ba0$var$descriptionNodes = /* @__PURE__ */ new Map();
|
|
42
60
|
function $ef06256079686ba0$export$f8aeda7b10753fa1(description) {
|
|
@@ -80,6 +98,7 @@ function $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollView, element) {
|
|
|
80
98
|
let x = scrollView.scrollLeft;
|
|
81
99
|
let y = scrollView.scrollTop;
|
|
82
100
|
let { borderTopWidth, borderLeftWidth, scrollPaddingTop, scrollPaddingRight, scrollPaddingBottom, scrollPaddingLeft } = getComputedStyle(scrollView);
|
|
101
|
+
let { scrollMarginTop, scrollMarginRight, scrollMarginBottom, scrollMarginLeft } = getComputedStyle(element);
|
|
83
102
|
let borderAdjustedX = x + parseInt(borderLeftWidth, 10);
|
|
84
103
|
let borderAdjustedY = y + parseInt(borderTopWidth, 10);
|
|
85
104
|
let maxX = borderAdjustedX + scrollView.clientWidth;
|
|
@@ -88,12 +107,35 @@ function $2f04cbc44ee30ce0$export$53a0910f038337bd(scrollView, element) {
|
|
|
88
107
|
let scrollPaddingBottomNumber = parseInt(scrollPaddingBottom, 10) || 0;
|
|
89
108
|
let scrollPaddingRightNumber = parseInt(scrollPaddingRight, 10) || 0;
|
|
90
109
|
let scrollPaddingLeftNumber = parseInt(scrollPaddingLeft, 10) || 0;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
110
|
+
let scrollMarginTopNumber = parseInt(scrollMarginTop, 10) || 0;
|
|
111
|
+
let scrollMarginBottomNumber = parseInt(scrollMarginBottom, 10) || 0;
|
|
112
|
+
let scrollMarginRightNumber = parseInt(scrollMarginRight, 10) || 0;
|
|
113
|
+
let scrollMarginLeftNumber = parseInt(scrollMarginLeft, 10) || 0;
|
|
114
|
+
let targetLeft = offsetX - scrollMarginLeftNumber;
|
|
115
|
+
let targetRight = offsetX + width + scrollMarginRightNumber;
|
|
116
|
+
let targetTop = offsetY - scrollMarginTopNumber;
|
|
117
|
+
let targetBottom = offsetY + height + scrollMarginBottomNumber;
|
|
118
|
+
let scrollPortLeft = x + parseInt(borderLeftWidth, 10) + scrollPaddingLeftNumber;
|
|
119
|
+
let scrollPortRight = maxX - scrollPaddingRightNumber;
|
|
120
|
+
let scrollPortTop = y + parseInt(borderTopWidth, 10) + scrollPaddingTopNumber;
|
|
121
|
+
let scrollPortBottom = maxY - scrollPaddingBottomNumber;
|
|
122
|
+
if (targetLeft > scrollPortLeft || targetRight < scrollPortRight) {
|
|
123
|
+
if (targetLeft <= x + scrollPaddingLeftNumber) x = targetLeft - parseInt(borderLeftWidth, 10) - scrollPaddingLeftNumber;
|
|
124
|
+
else if (targetRight > maxX - scrollPaddingRightNumber) x += targetRight - maxX + scrollPaddingRightNumber;
|
|
125
|
+
}
|
|
126
|
+
if (targetTop > scrollPortTop || targetBottom < scrollPortBottom) {
|
|
127
|
+
if (targetTop <= borderAdjustedY + scrollPaddingTopNumber) y = targetTop - parseInt(borderTopWidth, 10) - scrollPaddingTopNumber;
|
|
128
|
+
else if (targetBottom > maxY - scrollPaddingBottomNumber) y += targetBottom - maxY + scrollPaddingBottomNumber;
|
|
129
|
+
}
|
|
130
|
+
if (process.env.NODE_ENV === "test") {
|
|
131
|
+
scrollView.scrollLeft = x;
|
|
132
|
+
scrollView.scrollTop = y;
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
scrollView.scrollTo({
|
|
136
|
+
left: x,
|
|
137
|
+
top: y
|
|
138
|
+
});
|
|
97
139
|
}
|
|
98
140
|
function $2f04cbc44ee30ce0$var$relativeOffset(ancestor, child, axis) {
|
|
99
141
|
const prop = axis === "left" ? "offsetLeft" : "offsetTop";
|
|
@@ -113,7 +155,7 @@ function $2f04cbc44ee30ce0$export$c826860796309d1b(targetElement, opts) {
|
|
|
113
155
|
if (targetElement && document.contains(targetElement)) {
|
|
114
156
|
let root = document.scrollingElement || document.documentElement;
|
|
115
157
|
let isScrollPrevented = window.getComputedStyle(root).overflow === "hidden";
|
|
116
|
-
if (!isScrollPrevented) {
|
|
158
|
+
if (!isScrollPrevented && !$c87311424ea30a05$export$6446a186d09e379e()) {
|
|
117
159
|
var _targetElement_scrollIntoView;
|
|
118
160
|
let { left: originalLeft, top: originalTop } = targetElement.getBoundingClientRect();
|
|
119
161
|
targetElement === null || targetElement === void 0 ? void 0 : (_targetElement_scrollIntoView = targetElement.scrollIntoView) === null || _targetElement_scrollIntoView === void 0 ? void 0 : _targetElement_scrollIntoView.call(targetElement, {
|
|
@@ -138,10 +180,6 @@ function $2f04cbc44ee30ce0$export$c826860796309d1b(targetElement, opts) {
|
|
|
138
180
|
}
|
|
139
181
|
const $5671b20cf9b562b2$export$447a38995de2c711 = "react-aria-clear-focus";
|
|
140
182
|
const $5671b20cf9b562b2$export$831c820ad60f9d12 = "react-aria-focus";
|
|
141
|
-
function $21f1aa98acb08317$export$16792effe837dba3(e) {
|
|
142
|
-
if ($c87311424ea30a05$export$9ac100e40613ea10()) return e.metaKey;
|
|
143
|
-
return e.ctrlKey;
|
|
144
|
-
}
|
|
145
183
|
const $8a26561d2877236e$var$DEFAULT_THRESHOLD = 500;
|
|
146
184
|
function $8a26561d2877236e$export$c24ed0104d07eab9(props) {
|
|
147
185
|
let { isDisabled, onLongPressStart, onLongPressEnd, onLongPress, threshold = $8a26561d2877236e$var$DEFAULT_THRESHOLD, accessibilityDescription } = props;
|
|
@@ -658,8 +696,9 @@ function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
|
|
|
658
696
|
e.preventDefault();
|
|
659
697
|
};
|
|
660
698
|
let isLinkOverride = manager.isLink(key) && linkBehavior === "override";
|
|
699
|
+
let isActionOverride = onAction && options["UNSTABLE_itemBehavior"] === "action";
|
|
661
700
|
let hasLinkAction = manager.isLink(key) && linkBehavior !== "selection" && linkBehavior !== "none";
|
|
662
|
-
let allowsSelection = !isDisabled && manager.canSelectItem(key) && !isLinkOverride;
|
|
701
|
+
let allowsSelection = !isDisabled && manager.canSelectItem(key) && !isLinkOverride && !isActionOverride;
|
|
663
702
|
let allowsActions = (onAction || hasLinkAction) && !isDisabled;
|
|
664
703
|
let hasPrimaryAction = allowsActions && (manager.selectionBehavior === "replace" ? !allowsSelection : !allowsSelection || manager.isEmpty);
|
|
665
704
|
let hasSecondaryAction = allowsActions && allowsSelection && manager.selectionBehavior === "replace";
|
|
@@ -670,7 +709,13 @@ function $880e95eb8b93ba9a$export$ecf600387e221c37(options) {
|
|
|
670
709
|
let hadPrimaryActionOnPressStart = useRef(false);
|
|
671
710
|
let collectionItemProps = manager.getItemProps(key);
|
|
672
711
|
let performAction = (e) => {
|
|
673
|
-
if (onAction)
|
|
712
|
+
if (onAction) {
|
|
713
|
+
var _ref_current;
|
|
714
|
+
onAction();
|
|
715
|
+
(_ref_current = ref.current) === null || _ref_current === void 0 ? void 0 : _ref_current.dispatchEvent(new CustomEvent("react-aria-item-action", {
|
|
716
|
+
bubbles: true
|
|
717
|
+
}));
|
|
718
|
+
}
|
|
674
719
|
if (hasLinkAction && ref.current) router.open(ref.current, e, collectionItemProps.href, collectionItemProps.routerOptions);
|
|
675
720
|
};
|
|
676
721
|
let itemPressProps = {
|
|
@@ -1364,7 +1409,7 @@ class $681cc3c98f569e39$export$410b0c854570d131 {
|
|
|
1364
1409
|
if (this.isConnected) this.ownerDocument.queueUpdate();
|
|
1365
1410
|
}
|
|
1366
1411
|
removeChild(child) {
|
|
1367
|
-
if (child.parentNode !== this
|
|
1412
|
+
if (child.parentNode !== this) return;
|
|
1368
1413
|
if (this._minInvalidChildIndex === child) this._minInvalidChildIndex = null;
|
|
1369
1414
|
if (child.nextSibling) {
|
|
1370
1415
|
this.invalidateChildIndices(child.nextSibling);
|
|
@@ -1520,7 +1565,7 @@ class $681cc3c98f569e39$export$dc064fe9e59310fd extends $681cc3c98f569e39$export
|
|
|
1520
1565
|
}
|
|
1521
1566
|
class $681cc3c98f569e39$export$b34a105447964f9f extends $681cc3c98f569e39$export$410b0c854570d131 {
|
|
1522
1567
|
get isConnected() {
|
|
1523
|
-
return
|
|
1568
|
+
return true;
|
|
1524
1569
|
}
|
|
1525
1570
|
createElement(type) {
|
|
1526
1571
|
return new $681cc3c98f569e39$export$dc064fe9e59310fd(type, this);
|
|
@@ -1539,10 +1584,11 @@ class $681cc3c98f569e39$export$b34a105447964f9f extends $681cc3c98f569e39$export
|
|
|
1539
1584
|
collection.addNode(element.node);
|
|
1540
1585
|
}
|
|
1541
1586
|
removeNode(node) {
|
|
1542
|
-
if (node.node == null) return;
|
|
1543
1587
|
for (let child of node) this.removeNode(child);
|
|
1544
|
-
|
|
1545
|
-
|
|
1588
|
+
if (node.node) {
|
|
1589
|
+
let collection = this.getMutableCollection();
|
|
1590
|
+
collection.removeNode(node.node.key);
|
|
1591
|
+
}
|
|
1546
1592
|
}
|
|
1547
1593
|
/** Finalizes the collection update, updating all nodes and freezing the collection. */
|
|
1548
1594
|
getCollection() {
|
|
@@ -1559,9 +1605,9 @@ class $681cc3c98f569e39$export$b34a105447964f9f extends $681cc3c98f569e39$export
|
|
|
1559
1605
|
element.updateNode();
|
|
1560
1606
|
this.addNode(element);
|
|
1561
1607
|
}
|
|
1608
|
+
if (element.node) this.dirtyNodes.delete(element);
|
|
1562
1609
|
element.isMutated = false;
|
|
1563
|
-
}
|
|
1564
|
-
this.dirtyNodes.clear();
|
|
1610
|
+
} else this.dirtyNodes.delete(element);
|
|
1565
1611
|
if (this.nextCollection) {
|
|
1566
1612
|
var _this_firstVisibleChild_node, _this_firstVisibleChild, _this_lastVisibleChild_node, _this_lastVisibleChild;
|
|
1567
1613
|
var _this_firstVisibleChild_node_key, _this_lastVisibleChild_node_key;
|
|
@@ -1592,7 +1638,7 @@ class $681cc3c98f569e39$export$b34a105447964f9f extends $681cc3c98f569e39$export
|
|
|
1592
1638
|
}
|
|
1593
1639
|
}
|
|
1594
1640
|
constructor(collection) {
|
|
1595
|
-
super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = /* @__PURE__ */ new Set(), this.isSSR = false, this.nodeId = 0, this.nodesByProps = /* @__PURE__ */ new WeakMap(), this.
|
|
1641
|
+
super(null), this.nodeType = 11, this.ownerDocument = this, this.dirtyNodes = /* @__PURE__ */ new Set(), this.isSSR = false, this.nodeId = 0, this.nodesByProps = /* @__PURE__ */ new WeakMap(), this.nextCollection = null, this.subscriptions = /* @__PURE__ */ new Set(), this.queuedRender = false, this.inSubscription = false;
|
|
1596
1642
|
this.collection = collection;
|
|
1597
1643
|
this.nextCollection = collection;
|
|
1598
1644
|
}
|
|
@@ -1826,14 +1872,6 @@ function $e1995378a142960e$var$useCollectionDocument(createCollection) {
|
|
|
1826
1872
|
document2
|
|
1827
1873
|
]);
|
|
1828
1874
|
let collection = $e1995378a142960e$var$useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
|
1829
|
-
$f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
1830
|
-
document2.isMounted = true;
|
|
1831
|
-
return () => {
|
|
1832
|
-
document2.isMounted = false;
|
|
1833
|
-
};
|
|
1834
|
-
}, [
|
|
1835
|
-
document2
|
|
1836
|
-
]);
|
|
1837
1875
|
return {
|
|
1838
1876
|
collection,
|
|
1839
1877
|
document: document2
|
|
@@ -2411,34 +2449,35 @@ class $d496c0a20b6e58ec$export$6c8a5aaad13c9852 {
|
|
|
2411
2449
|
}
|
|
2412
2450
|
export {
|
|
2413
2451
|
$7af3f5b51489e0b5$export$253fe78d46329472 as $,
|
|
2414
|
-
$
|
|
2415
|
-
$
|
|
2416
|
-
$
|
|
2417
|
-
$
|
|
2452
|
+
$21f1aa98acb08317$export$16792effe837dba3 as A,
|
|
2453
|
+
$55f9b1ae81f22853$export$759df0d867455a91 as B,
|
|
2454
|
+
$8a26561d2877236e$export$c24ed0104d07eab9 as C,
|
|
2455
|
+
$e1995378a142960e$export$e953bb1cd0f19726 as D,
|
|
2456
|
+
$23b9f4fcf0fe224b$export$437f11dc9b403b78 as E,
|
|
2418
2457
|
$7613b1592d41b092$export$6cd28814d92fa9c9 as a,
|
|
2419
2458
|
$d496c0a20b6e58ec$export$6c8a5aaad13c9852 as b,
|
|
2420
|
-
$
|
|
2421
|
-
$
|
|
2422
|
-
$
|
|
2423
|
-
$e1995378a142960e$export$
|
|
2424
|
-
$
|
|
2425
|
-
$
|
|
2426
|
-
$
|
|
2427
|
-
$
|
|
2428
|
-
$
|
|
2429
|
-
$
|
|
2430
|
-
$
|
|
2431
|
-
$7135fc7d473fd974$export$
|
|
2432
|
-
$
|
|
2433
|
-
$
|
|
2434
|
-
$
|
|
2435
|
-
$
|
|
2436
|
-
$
|
|
2459
|
+
$21f1aa98acb08317$export$c57958e35f31ed73 as c,
|
|
2460
|
+
$cc38e7bd3fc7b213$export$2bb74740c4e19def as d,
|
|
2461
|
+
$880e95eb8b93ba9a$export$ecf600387e221c37 as e,
|
|
2462
|
+
$e1995378a142960e$export$18af5c7a9e9b3664 as f,
|
|
2463
|
+
$e1995378a142960e$export$bf788dd355e3a401 as g,
|
|
2464
|
+
$e1995378a142960e$export$fb8073518f34e6ec as h,
|
|
2465
|
+
$23b9f4fcf0fe224b$export$fd11f34e1d07f134 as i,
|
|
2466
|
+
$7135fc7d473fd974$export$4feb769f8ddf26c5 as j,
|
|
2467
|
+
$7135fc7d473fd974$export$d40e14dec8b060a8 as k,
|
|
2468
|
+
$23b9f4fcf0fe224b$export$8258a0665a675899 as l,
|
|
2469
|
+
$ae20dd8cbca75726$export$d6daf82dcd84e87c as m,
|
|
2470
|
+
$7135fc7d473fd974$export$a164736487e3f0ae as n,
|
|
2471
|
+
$23b9f4fcf0fe224b$export$d68d59712b04d9d1 as o,
|
|
2472
|
+
$7135fc7d473fd974$export$90e00781bc59d8f9 as p,
|
|
2473
|
+
$feb5ffebff200149$export$c3d8340acf92597f as q,
|
|
2474
|
+
$c5a24bc478652b5f$export$1005530eda016c13 as r,
|
|
2475
|
+
$23b9f4fcf0fe224b$export$5ae2504e948afce5 as s,
|
|
2437
2476
|
$55f9b1ae81f22853$export$2b35b76d2e30e129 as t,
|
|
2438
|
-
$
|
|
2439
|
-
$
|
|
2440
|
-
$
|
|
2441
|
-
$
|
|
2442
|
-
$
|
|
2443
|
-
$
|
|
2477
|
+
$fb3050f43d946246$export$e32c88dfddc6e1d8 as u,
|
|
2478
|
+
$ef06256079686ba0$export$f8aeda7b10753fa1 as v,
|
|
2479
|
+
$5671b20cf9b562b2$export$831c820ad60f9d12 as w,
|
|
2480
|
+
$55f9b1ae81f22853$export$76e4e37e5339496d as x,
|
|
2481
|
+
$5671b20cf9b562b2$export$447a38995de2c711 as y,
|
|
2482
|
+
$55f9b1ae81f22853$export$6c5dc7e81d2cc29a as z
|
|
2444
2483
|
};
|