@ohif/app 3.9.0-beta.96 → 3.9.0-beta.98
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/{3482.bundle.209dcdbee8e8bd4a4d54.js → 3482.bundle.0b9c4d64f4b14af4ee0a.js} +2 -2
- package/dist/{3962.bundle.b500a9eb198dca269d9b.js → 3962.bundle.9a1d66291b3070873892.js} +2 -2
- package/dist/{4210.bundle.e08bc046fd72815d713e.js → 4210.bundle.ccccde45071c91a381b5.js} +2 -2
- package/dist/{6552.bundle.0e278b90d152deef0413.js → 6552.bundle.286dda309441db5b56c1.js} +5 -5
- package/dist/79.css +1 -1
- package/dist/{7913.bundle.e8e4bd358462e18492e9.js → 7913.bundle.4f259b2f5f30efeaf121.js} +2 -2
- package/dist/{8999.bundle.7cfe0996c3a0449ca510.js → 8999.bundle.a8701d5a00ceb84bab64.js} +2 -2
- package/dist/{app.bundle.1e202e27fb535bb2c566.js → app.bundle.289e1ee9fe757434bbc4.js} +2426 -1076
- package/dist/app.bundle.css +13 -13
- package/dist/index.html +1 -1
- package/dist/sw.js +1 -1
- package/package.json +18 -18
- /package/dist/{153.bundle.ea3047506d03cdf0240b.js → 153.bundle.3772df1d5fd3d3f06a0a.js} +0 -0
- /package/dist/{2119.bundle.0df4d6c2de1df7c4bd86.js → 2119.bundle.6aca0cf4fc5db62d77b9.js} +0 -0
- /package/dist/{2791.bundle.8677c5c208b1ea6af117.js → 2791.bundle.2f25931df62e9ebaafb2.js} +0 -0
- /package/dist/{4353.bundle.9eaa175e8cd1e6c1d049.js → 4353.bundle.cf8a64e611cb6330f3e5.js} +0 -0
- /package/dist/{4842.bundle.e9b78b8d348cd320bb03.js → 4842.bundle.6188ba4a4aca12aaf7d1.js} +0 -0
- /package/dist/{4978.bundle.a32ff8c1813965c31458.js → 4978.bundle.16df43d1e89383235312.js} +0 -0
- /package/dist/{5888.bundle.c508dc04883482dcead0.js → 5888.bundle.687c9173dc3dbca67b6c.js} +0 -0
- /package/dist/{6591.bundle.5850baee28027ce43317.js → 6591.bundle.78485be183f68b456495.js} +0 -0
- /package/dist/{7246.bundle.2c716466508702686052.js → 7246.bundle.b6c6f4324d62ab2960bb.js} +0 -0
- /package/dist/{7360.bundle.beab9fc80be444f3d1c7.js → 7360.bundle.70420db3a8b2396a74ca.js} +0 -0
- /package/dist/{7376.bundle.02ab5e2d62a10a9625aa.js → 7376.bundle.36672e2cbaafb7fa23b3.js} +0 -0
- /package/dist/{7502.bundle.9ca7bbb2516c9cb1cb9f.js → 7502.bundle.58965e833bce0661b63f.js} +0 -0
- /package/dist/{79.bundle.422d9ccbaaefa6b0a039.js → 79.bundle.4f6930aeb7bab27b8b42.js} +0 -0
- /package/dist/{8944.bundle.6407276492bd56ab5d93.js → 8944.bundle.8de6791692d3629c92a5.js} +0 -0
- /package/dist/{962.bundle.82a92fb6b32713ae58ef.js → 962.bundle.b60b094cbfd0486819ce.js} +0 -0
|
@@ -5336,8 +5336,8 @@ Compose.propTypes = {
|
|
|
5336
5336
|
};
|
|
5337
5337
|
// EXTERNAL MODULE: ../../ui/src/index.js + 691 modules
|
|
5338
5338
|
var ui_src = __webpack_require__(50395);
|
|
5339
|
-
// EXTERNAL MODULE: ../../ui-next/src/index.ts +
|
|
5340
|
-
var ui_next_src = __webpack_require__(
|
|
5339
|
+
// EXTERNAL MODULE: ../../ui-next/src/index.ts + 2457 modules
|
|
5340
|
+
var ui_next_src = __webpack_require__(36540);
|
|
5341
5341
|
// EXTERNAL MODULE: ./state/index.js + 1 modules
|
|
5342
5342
|
var state = __webpack_require__(52490);
|
|
5343
5343
|
// EXTERNAL MODULE: ../../core/src/index.ts + 74 modules
|
|
@@ -6263,8 +6263,8 @@ function WorkList({
|
|
|
6263
6263
|
};
|
|
6264
6264
|
});
|
|
6265
6265
|
const hasStudies = numOfStudies > 0;
|
|
6266
|
-
const versionNumber = "3.9.0-beta.
|
|
6267
|
-
const commitHash = "
|
|
6266
|
+
const versionNumber = "3.9.0-beta.98";
|
|
6267
|
+
const commitHash = "465df5c5730071f977cfcdc1db44e99a5f511ec4";
|
|
6268
6268
|
const menuOptions = [{
|
|
6269
6269
|
title: t('Header:About'),
|
|
6270
6270
|
icon: 'info',
|
|
@@ -6348,7 +6348,7 @@ function WorkList({
|
|
|
6348
6348
|
isReturnEnabled: false,
|
|
6349
6349
|
WhiteLabeling: appConfig.whiteLabeling,
|
|
6350
6350
|
showPatientInfo: PatientInfoVisibility.DISABLED
|
|
6351
|
-
}), /*#__PURE__*/react.createElement(ui_next_src/* Onboarding */.
|
|
6351
|
+
}), /*#__PURE__*/react.createElement(ui_next_src/* Onboarding */.ZU, null), /*#__PURE__*/react.createElement(ui_src/* InvestigationalUseDialog */.NE, {
|
|
6352
6352
|
dialogConfiguration: appConfig?.investigationalUseDialog
|
|
6353
6353
|
}), /*#__PURE__*/react.createElement("div", {
|
|
6354
6354
|
className: "ohif-scrollbar ohif-scrollbar-stable-gutter flex grow flex-col overflow-y-auto sm:px-5"
|
|
@@ -7585,7 +7585,9 @@ function ModeRoute({
|
|
|
7585
7585
|
await extensionManager.registerExtension(extension);
|
|
7586
7586
|
}
|
|
7587
7587
|
}
|
|
7588
|
-
|
|
7588
|
+
if (isMounted.current) {
|
|
7589
|
+
setExtensionDependenciesLoaded(true);
|
|
7590
|
+
}
|
|
7589
7591
|
};
|
|
7590
7592
|
loadExtensions();
|
|
7591
7593
|
}, []);
|
|
@@ -11569,8 +11571,10 @@ function OpenIdConnectRoutes({
|
|
|
11569
11571
|
Authorization: `Bearer ${user.access_token}`
|
|
11570
11572
|
};
|
|
11571
11573
|
};
|
|
11572
|
-
const handleUnauthenticated =
|
|
11573
|
-
await
|
|
11574
|
+
const handleUnauthenticated = () => {
|
|
11575
|
+
// Note: Don't await the redirect. If you make this component async it
|
|
11576
|
+
// causes a react error before redirect as it returns a promise of a component rather than a component.
|
|
11577
|
+
userManager.signinRedirect();
|
|
11574
11578
|
|
|
11575
11579
|
// return null because this is used in a react component
|
|
11576
11580
|
return null;
|
|
@@ -13317,7 +13321,7 @@ const detectionOptions = {
|
|
|
13317
13321
|
}
|
|
13318
13322
|
});
|
|
13319
13323
|
;// CONCATENATED MODULE: ../../i18n/package.json
|
|
13320
|
-
const package_namespaceObject = JSON.parse('{"i8":"3.9.0-beta.
|
|
13324
|
+
const package_namespaceObject = JSON.parse('{"i8":"3.9.0-beta.97"}');
|
|
13321
13325
|
;// CONCATENATED MODULE: ../../i18n/src/utils.js
|
|
13322
13326
|
const languagesMap = {
|
|
13323
13327
|
ar: 'Arabic',
|
|
@@ -25962,8 +25966,8 @@ Input.propTypes = {
|
|
|
25962
25966
|
;// CONCATENATED MODULE: ../../ui/src/components/Input/index.js
|
|
25963
25967
|
|
|
25964
25968
|
/* harmony default export */ const components_Input = (Input_Input);
|
|
25965
|
-
// EXTERNAL MODULE: ../../ui-next/src/index.ts +
|
|
25966
|
-
var ui_next_src = __webpack_require__(
|
|
25969
|
+
// EXTERNAL MODULE: ../../ui-next/src/index.ts + 2457 modules
|
|
25970
|
+
var ui_next_src = __webpack_require__(36540);
|
|
25967
25971
|
;// CONCATENATED MODULE: ../../ui/src/components/InputLabelWrapper/InputLabelWrapper.tsx
|
|
25968
25972
|
|
|
25969
25973
|
|
|
@@ -76043,7 +76047,7 @@ function uuidv4() {
|
|
|
76043
76047
|
|
|
76044
76048
|
/***/ }),
|
|
76045
76049
|
|
|
76046
|
-
/***/
|
|
76050
|
+
/***/ 36540:
|
|
76047
76051
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
76048
76052
|
|
|
76049
76053
|
"use strict";
|
|
@@ -76051,8 +76055,8 @@ function uuidv4() {
|
|
|
76051
76055
|
// EXPORTS
|
|
76052
76056
|
__webpack_require__.d(__webpack_exports__, {
|
|
76053
76057
|
$0: () => (/* reexport */ DatePickerWithRange),
|
|
76054
|
-
PJ: () => (/* reexport */
|
|
76055
|
-
|
|
76058
|
+
PJ: () => (/* reexport */ Icons_Icons),
|
|
76059
|
+
ZU: () => (/* reexport */ Onboarding),
|
|
76056
76060
|
Z0: () => (/* reexport */ Separator_Separator),
|
|
76057
76061
|
hs: () => (/* reexport */ SidePanel),
|
|
76058
76062
|
eX: () => (/* reexport */ StudyBrowser),
|
|
@@ -76062,7 +76066,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
76062
76066
|
vb: () => (/* reexport */ Toolbox_Toolbox)
|
|
76063
76067
|
});
|
|
76064
76068
|
|
|
76065
|
-
// UNUSED EXPORTS: Accordion, AccordionContent, AccordionItem, AccordionTrigger, Button, Calendar, Combobox, Command, Dialog, DisplaySetMessageListTooltip, NotificationProvider, PanelSection, Popover, StudyBrowserSort, StudyBrowserViewOptions, StudyItem, Tabs, TabsContent, TabsList, TabsTrigger, Thumbnail, ThumbnailList, Toggle, ToolboxUI, buttonVariants, toggleVariants, useNotification
|
|
76069
|
+
// UNUSED EXPORTS: Accordion, AccordionContent, AccordionItem, AccordionTrigger, BackgroundColorSelect, Button, Calendar, Checkbox, Combobox, Command, DataRow, Dialog, DisplaySetMessageListTooltip, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Input, Label, NotificationProvider, PanelSection, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, ScrollArea, Select, SelectContent, SelectItem, SelectTrigger, SelectValue, Slider, StudyBrowserSort, StudyBrowserViewOptions, StudyItem, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Thumbnail, ThumbnailList, Toggle, ToolboxUI, buttonVariants, toggleVariants, useNotification
|
|
76066
76070
|
|
|
76067
76071
|
// EXTERNAL MODULE: ../../../node_modules/react/index.js
|
|
76068
76072
|
var react = __webpack_require__(43001);
|
|
@@ -76179,12 +76183,12 @@ const $5e63c961fc1ce211$export$be92b6f5f03c0fe9 = (/* unused pure expression or
|
|
|
76179
76183
|
|
|
76180
76184
|
//# sourceMappingURL=index.mjs.map
|
|
76181
76185
|
|
|
76182
|
-
|
|
76183
|
-
var
|
|
76186
|
+
;// CONCATENATED MODULE: ../../../node_modules/clsx/dist/clsx.mjs
|
|
76187
|
+
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f)}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}/* harmony default export */ const dist_clsx = ((/* unused pure expression or super */ null && (clsx)));
|
|
76184
76188
|
;// CONCATENATED MODULE: ../../../node_modules/class-variance-authority/dist/index.mjs
|
|
76185
76189
|
|
|
76186
76190
|
const falsyToString = (value)=>typeof value === "boolean" ? "".concat(value) : value === 0 ? "0" : value;
|
|
76187
|
-
const cx =
|
|
76191
|
+
const cx = clsx;
|
|
76188
76192
|
const cva = (base, config)=>{
|
|
76189
76193
|
return (props)=>{
|
|
76190
76194
|
var ref;
|
|
@@ -78817,7 +78821,7 @@ const twMerge = /*#__PURE__*/createTailwindMerge(getDefaultConfig);
|
|
|
78817
78821
|
|
|
78818
78822
|
|
|
78819
78823
|
function utils_cn(...inputs) {
|
|
78820
|
-
return twMerge(
|
|
78824
|
+
return twMerge(clsx(inputs));
|
|
78821
78825
|
}
|
|
78822
78826
|
;// CONCATENATED MODULE: ../../ui-next/src/components/Button/Button.tsx
|
|
78823
78827
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
@@ -81175,13 +81179,13 @@ var CaretRightIcon = /*#__PURE__*/(/* unused pure expression or super */ null &&
|
|
|
81175
81179
|
}));
|
|
81176
81180
|
})));
|
|
81177
81181
|
|
|
81178
|
-
var _excluded$Q =
|
|
81179
|
-
var CaretSortIcon = /*#__PURE__*/(
|
|
81182
|
+
var _excluded$Q = ["color"];
|
|
81183
|
+
var CaretSortIcon = /*#__PURE__*/(0,react.forwardRef)(function (_ref, forwardedRef) {
|
|
81180
81184
|
var _ref$color = _ref.color,
|
|
81181
81185
|
color = _ref$color === void 0 ? 'currentColor' : _ref$color,
|
|
81182
81186
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$Q);
|
|
81183
81187
|
|
|
81184
|
-
return createElement("svg", Object.assign({
|
|
81188
|
+
return (0,react.createElement)("svg", Object.assign({
|
|
81185
81189
|
width: "15",
|
|
81186
81190
|
height: "15",
|
|
81187
81191
|
viewBox: "0 0 15 15",
|
|
@@ -81189,13 +81193,13 @@ var CaretSortIcon = /*#__PURE__*/(/* unused pure expression or super */ null &&
|
|
|
81189
81193
|
xmlns: "http://www.w3.org/2000/svg"
|
|
81190
81194
|
}, props, {
|
|
81191
81195
|
ref: forwardedRef
|
|
81192
|
-
}), createElement("path", {
|
|
81196
|
+
}), (0,react.createElement)("path", {
|
|
81193
81197
|
d: "M4.93179 5.43179C4.75605 5.60753 4.75605 5.89245 4.93179 6.06819C5.10753 6.24392 5.39245 6.24392 5.56819 6.06819L7.49999 4.13638L9.43179 6.06819C9.60753 6.24392 9.89245 6.24392 10.0682 6.06819C10.2439 5.89245 10.2439 5.60753 10.0682 5.43179L7.81819 3.18179C7.73379 3.0974 7.61933 3.04999 7.49999 3.04999C7.38064 3.04999 7.26618 3.0974 7.18179 3.18179L4.93179 5.43179ZM10.0682 9.56819C10.2439 9.39245 10.2439 9.10753 10.0682 8.93179C9.89245 8.75606 9.60753 8.75606 9.43179 8.93179L7.49999 10.8636L5.56819 8.93179C5.39245 8.75606 5.10753 8.75606 4.93179 8.93179C4.75605 9.10753 4.75605 9.39245 4.93179 9.56819L7.18179 11.8182C7.35753 11.9939 7.64245 11.9939 7.81819 11.8182L10.0682 9.56819Z",
|
|
81194
81198
|
fill: color,
|
|
81195
81199
|
fillRule: "evenodd",
|
|
81196
81200
|
clipRule: "evenodd"
|
|
81197
81201
|
}));
|
|
81198
|
-
})
|
|
81202
|
+
});
|
|
81199
81203
|
|
|
81200
81204
|
var _excluded$R = (/* unused pure expression or super */ null && (["color"]));
|
|
81201
81205
|
var CaretUpIcon = /*#__PURE__*/(/* unused pure expression or super */ null && (forwardRef(function (_ref, forwardedRef) {
|
|
@@ -81373,13 +81377,13 @@ var ChevronRightIcon = /*#__PURE__*/(0,react.forwardRef)(function (_ref, forward
|
|
|
81373
81377
|
}));
|
|
81374
81378
|
});
|
|
81375
81379
|
|
|
81376
|
-
var _excluded$Z =
|
|
81377
|
-
var ChevronUpIcon = /*#__PURE__*/(
|
|
81380
|
+
var _excluded$Z = ["color"];
|
|
81381
|
+
var ChevronUpIcon = /*#__PURE__*/(0,react.forwardRef)(function (_ref, forwardedRef) {
|
|
81378
81382
|
var _ref$color = _ref.color,
|
|
81379
81383
|
color = _ref$color === void 0 ? 'currentColor' : _ref$color,
|
|
81380
81384
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$Z);
|
|
81381
81385
|
|
|
81382
|
-
return createElement("svg", Object.assign({
|
|
81386
|
+
return (0,react.createElement)("svg", Object.assign({
|
|
81383
81387
|
width: "15",
|
|
81384
81388
|
height: "15",
|
|
81385
81389
|
viewBox: "0 0 15 15",
|
|
@@ -81387,13 +81391,13 @@ var ChevronUpIcon = /*#__PURE__*/(/* unused pure expression or super */ null &&
|
|
|
81387
81391
|
xmlns: "http://www.w3.org/2000/svg"
|
|
81388
81392
|
}, props, {
|
|
81389
81393
|
ref: forwardedRef
|
|
81390
|
-
}), createElement("path", {
|
|
81394
|
+
}), (0,react.createElement)("path", {
|
|
81391
81395
|
d: "M3.13523 8.84197C3.3241 9.04343 3.64052 9.05363 3.84197 8.86477L7.5 5.43536L11.158 8.86477C11.3595 9.05363 11.6759 9.04343 11.8648 8.84197C12.0536 8.64051 12.0434 8.32409 11.842 8.13523L7.84197 4.38523C7.64964 4.20492 7.35036 4.20492 7.15803 4.38523L3.15803 8.13523C2.95657 8.32409 2.94637 8.64051 3.13523 8.84197Z",
|
|
81392
81396
|
fill: color,
|
|
81393
81397
|
fillRule: "evenodd",
|
|
81394
81398
|
clipRule: "evenodd"
|
|
81395
81399
|
}));
|
|
81396
|
-
})
|
|
81400
|
+
});
|
|
81397
81401
|
|
|
81398
81402
|
var _excluded$_ = (/* unused pure expression or super */ null && (["color"]));
|
|
81399
81403
|
var CircleIcon = /*#__PURE__*/(/* unused pure expression or super */ null && (forwardRef(function (_ref, forwardedRef) {
|
|
@@ -89922,6 +89926,2081 @@ CommandShortcut.displayName = 'CommandShortcut';
|
|
|
89922
89926
|
;// CONCATENATED MODULE: ../../ui-next/src/components/Dialog/index.ts
|
|
89923
89927
|
|
|
89924
89928
|
|
|
89929
|
+
;// CONCATENATED MODULE: ../../../node_modules/@radix-ui/number/dist/index.mjs
|
|
89930
|
+
// packages/core/number/src/number.ts
|
|
89931
|
+
function clamp(value, [min, max]) {
|
|
89932
|
+
return Math.min(max, Math.max(min, value));
|
|
89933
|
+
}
|
|
89934
|
+
|
|
89935
|
+
//# sourceMappingURL=index.mjs.map
|
|
89936
|
+
|
|
89937
|
+
;// CONCATENATED MODULE: ../../../node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
89938
|
+
"use client";
|
|
89939
|
+
|
|
89940
|
+
// packages/react/collection/src/Collection.tsx
|
|
89941
|
+
|
|
89942
|
+
|
|
89943
|
+
|
|
89944
|
+
|
|
89945
|
+
|
|
89946
|
+
function createCollection(name) {
|
|
89947
|
+
const PROVIDER_NAME = name + "CollectionProvider";
|
|
89948
|
+
const [createCollectionContext, createCollectionScope] = createContextScope(PROVIDER_NAME);
|
|
89949
|
+
const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(
|
|
89950
|
+
PROVIDER_NAME,
|
|
89951
|
+
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
89952
|
+
);
|
|
89953
|
+
const CollectionProvider = (props) => {
|
|
89954
|
+
const { scope, children } = props;
|
|
89955
|
+
const ref = react.useRef(null);
|
|
89956
|
+
const itemMap = react.useRef(/* @__PURE__ */ new Map()).current;
|
|
89957
|
+
return /* @__PURE__ */ (0,jsx_runtime.jsx)(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
|
|
89958
|
+
};
|
|
89959
|
+
CollectionProvider.displayName = PROVIDER_NAME;
|
|
89960
|
+
const COLLECTION_SLOT_NAME = name + "CollectionSlot";
|
|
89961
|
+
const CollectionSlot = react.forwardRef(
|
|
89962
|
+
(props, forwardedRef) => {
|
|
89963
|
+
const { scope, children } = props;
|
|
89964
|
+
const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
|
|
89965
|
+
const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);
|
|
89966
|
+
return /* @__PURE__ */ (0,jsx_runtime.jsx)($5e63c961fc1ce211$export$8c6ed5c666ac1360, { ref: composedRefs, children });
|
|
89967
|
+
}
|
|
89968
|
+
);
|
|
89969
|
+
CollectionSlot.displayName = COLLECTION_SLOT_NAME;
|
|
89970
|
+
const ITEM_SLOT_NAME = name + "CollectionItemSlot";
|
|
89971
|
+
const ITEM_DATA_ATTR = "data-radix-collection-item";
|
|
89972
|
+
const CollectionItemSlot = react.forwardRef(
|
|
89973
|
+
(props, forwardedRef) => {
|
|
89974
|
+
const { scope, children, ...itemData } = props;
|
|
89975
|
+
const ref = react.useRef(null);
|
|
89976
|
+
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
89977
|
+
const context = useCollectionContext(ITEM_SLOT_NAME, scope);
|
|
89978
|
+
react.useEffect(() => {
|
|
89979
|
+
context.itemMap.set(ref, { ref, ...itemData });
|
|
89980
|
+
return () => void context.itemMap.delete(ref);
|
|
89981
|
+
});
|
|
89982
|
+
return /* @__PURE__ */ (0,jsx_runtime.jsx)($5e63c961fc1ce211$export$8c6ed5c666ac1360, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
|
|
89983
|
+
}
|
|
89984
|
+
);
|
|
89985
|
+
CollectionItemSlot.displayName = ITEM_SLOT_NAME;
|
|
89986
|
+
function useCollection(scope) {
|
|
89987
|
+
const context = useCollectionContext(name + "CollectionConsumer", scope);
|
|
89988
|
+
const getItems = react.useCallback(() => {
|
|
89989
|
+
const collectionNode = context.collectionRef.current;
|
|
89990
|
+
if (!collectionNode) return [];
|
|
89991
|
+
const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
|
|
89992
|
+
const items = Array.from(context.itemMap.values());
|
|
89993
|
+
const orderedItems = items.sort(
|
|
89994
|
+
(a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)
|
|
89995
|
+
);
|
|
89996
|
+
return orderedItems;
|
|
89997
|
+
}, [context.collectionRef, context.itemMap]);
|
|
89998
|
+
return getItems;
|
|
89999
|
+
}
|
|
90000
|
+
return [
|
|
90001
|
+
{ Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },
|
|
90002
|
+
useCollection,
|
|
90003
|
+
createCollectionScope
|
|
90004
|
+
];
|
|
90005
|
+
}
|
|
90006
|
+
|
|
90007
|
+
//# sourceMappingURL=index.mjs.map
|
|
90008
|
+
|
|
90009
|
+
;// CONCATENATED MODULE: ../../../node_modules/@radix-ui/react-direction/dist/index.mjs
|
|
90010
|
+
// packages/react/direction/src/Direction.tsx
|
|
90011
|
+
|
|
90012
|
+
|
|
90013
|
+
var DirectionContext = react.createContext(void 0);
|
|
90014
|
+
var DirectionProvider = (props) => {
|
|
90015
|
+
const { dir, children } = props;
|
|
90016
|
+
return /* @__PURE__ */ jsx(DirectionContext.Provider, { value: dir, children });
|
|
90017
|
+
};
|
|
90018
|
+
function useDirection(localDir) {
|
|
90019
|
+
const globalDir = react.useContext(DirectionContext);
|
|
90020
|
+
return localDir || globalDir || "ltr";
|
|
90021
|
+
}
|
|
90022
|
+
var Provider = (/* unused pure expression or super */ null && (DirectionProvider));
|
|
90023
|
+
|
|
90024
|
+
//# sourceMappingURL=index.mjs.map
|
|
90025
|
+
|
|
90026
|
+
// EXTERNAL MODULE: ../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs + 3 modules
|
|
90027
|
+
var floating_ui_dom = __webpack_require__(24054);
|
|
90028
|
+
;// CONCATENATED MODULE: ../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
|
|
90029
|
+
|
|
90030
|
+
|
|
90031
|
+
|
|
90032
|
+
|
|
90033
|
+
|
|
90034
|
+
|
|
90035
|
+
var index = typeof document !== 'undefined' ? react.useLayoutEffect : react.useEffect;
|
|
90036
|
+
|
|
90037
|
+
// Fork of `fast-deep-equal` that only does the comparisons we need and compares
|
|
90038
|
+
// functions
|
|
90039
|
+
function deepEqual(a, b) {
|
|
90040
|
+
if (a === b) {
|
|
90041
|
+
return true;
|
|
90042
|
+
}
|
|
90043
|
+
if (typeof a !== typeof b) {
|
|
90044
|
+
return false;
|
|
90045
|
+
}
|
|
90046
|
+
if (typeof a === 'function' && a.toString() === b.toString()) {
|
|
90047
|
+
return true;
|
|
90048
|
+
}
|
|
90049
|
+
let length;
|
|
90050
|
+
let i;
|
|
90051
|
+
let keys;
|
|
90052
|
+
if (a && b && typeof a === 'object') {
|
|
90053
|
+
if (Array.isArray(a)) {
|
|
90054
|
+
length = a.length;
|
|
90055
|
+
if (length !== b.length) return false;
|
|
90056
|
+
for (i = length; i-- !== 0;) {
|
|
90057
|
+
if (!deepEqual(a[i], b[i])) {
|
|
90058
|
+
return false;
|
|
90059
|
+
}
|
|
90060
|
+
}
|
|
90061
|
+
return true;
|
|
90062
|
+
}
|
|
90063
|
+
keys = Object.keys(a);
|
|
90064
|
+
length = keys.length;
|
|
90065
|
+
if (length !== Object.keys(b).length) {
|
|
90066
|
+
return false;
|
|
90067
|
+
}
|
|
90068
|
+
for (i = length; i-- !== 0;) {
|
|
90069
|
+
if (!{}.hasOwnProperty.call(b, keys[i])) {
|
|
90070
|
+
return false;
|
|
90071
|
+
}
|
|
90072
|
+
}
|
|
90073
|
+
for (i = length; i-- !== 0;) {
|
|
90074
|
+
const key = keys[i];
|
|
90075
|
+
if (key === '_owner' && a.$$typeof) {
|
|
90076
|
+
continue;
|
|
90077
|
+
}
|
|
90078
|
+
if (!deepEqual(a[key], b[key])) {
|
|
90079
|
+
return false;
|
|
90080
|
+
}
|
|
90081
|
+
}
|
|
90082
|
+
return true;
|
|
90083
|
+
}
|
|
90084
|
+
return a !== a && b !== b;
|
|
90085
|
+
}
|
|
90086
|
+
|
|
90087
|
+
function getDPR(element) {
|
|
90088
|
+
if (typeof window === 'undefined') {
|
|
90089
|
+
return 1;
|
|
90090
|
+
}
|
|
90091
|
+
const win = element.ownerDocument.defaultView || window;
|
|
90092
|
+
return win.devicePixelRatio || 1;
|
|
90093
|
+
}
|
|
90094
|
+
|
|
90095
|
+
function roundByDPR(element, value) {
|
|
90096
|
+
const dpr = getDPR(element);
|
|
90097
|
+
return Math.round(value * dpr) / dpr;
|
|
90098
|
+
}
|
|
90099
|
+
|
|
90100
|
+
function useLatestRef(value) {
|
|
90101
|
+
const ref = react.useRef(value);
|
|
90102
|
+
index(() => {
|
|
90103
|
+
ref.current = value;
|
|
90104
|
+
});
|
|
90105
|
+
return ref;
|
|
90106
|
+
}
|
|
90107
|
+
|
|
90108
|
+
/**
|
|
90109
|
+
* Provides data to position a floating element.
|
|
90110
|
+
* @see https://floating-ui.com/docs/useFloating
|
|
90111
|
+
*/
|
|
90112
|
+
function useFloating(options) {
|
|
90113
|
+
if (options === void 0) {
|
|
90114
|
+
options = {};
|
|
90115
|
+
}
|
|
90116
|
+
const {
|
|
90117
|
+
placement = 'bottom',
|
|
90118
|
+
strategy = 'absolute',
|
|
90119
|
+
middleware = [],
|
|
90120
|
+
platform,
|
|
90121
|
+
elements: {
|
|
90122
|
+
reference: externalReference,
|
|
90123
|
+
floating: externalFloating
|
|
90124
|
+
} = {},
|
|
90125
|
+
transform = true,
|
|
90126
|
+
whileElementsMounted,
|
|
90127
|
+
open
|
|
90128
|
+
} = options;
|
|
90129
|
+
const [data, setData] = react.useState({
|
|
90130
|
+
x: 0,
|
|
90131
|
+
y: 0,
|
|
90132
|
+
strategy,
|
|
90133
|
+
placement,
|
|
90134
|
+
middlewareData: {},
|
|
90135
|
+
isPositioned: false
|
|
90136
|
+
});
|
|
90137
|
+
const [latestMiddleware, setLatestMiddleware] = react.useState(middleware);
|
|
90138
|
+
if (!deepEqual(latestMiddleware, middleware)) {
|
|
90139
|
+
setLatestMiddleware(middleware);
|
|
90140
|
+
}
|
|
90141
|
+
const [_reference, _setReference] = react.useState(null);
|
|
90142
|
+
const [_floating, _setFloating] = react.useState(null);
|
|
90143
|
+
const setReference = react.useCallback(node => {
|
|
90144
|
+
if (node !== referenceRef.current) {
|
|
90145
|
+
referenceRef.current = node;
|
|
90146
|
+
_setReference(node);
|
|
90147
|
+
}
|
|
90148
|
+
}, []);
|
|
90149
|
+
const setFloating = react.useCallback(node => {
|
|
90150
|
+
if (node !== floatingRef.current) {
|
|
90151
|
+
floatingRef.current = node;
|
|
90152
|
+
_setFloating(node);
|
|
90153
|
+
}
|
|
90154
|
+
}, []);
|
|
90155
|
+
const referenceEl = externalReference || _reference;
|
|
90156
|
+
const floatingEl = externalFloating || _floating;
|
|
90157
|
+
const referenceRef = react.useRef(null);
|
|
90158
|
+
const floatingRef = react.useRef(null);
|
|
90159
|
+
const dataRef = react.useRef(data);
|
|
90160
|
+
const hasWhileElementsMounted = whileElementsMounted != null;
|
|
90161
|
+
const whileElementsMountedRef = useLatestRef(whileElementsMounted);
|
|
90162
|
+
const platformRef = useLatestRef(platform);
|
|
90163
|
+
const update = react.useCallback(() => {
|
|
90164
|
+
if (!referenceRef.current || !floatingRef.current) {
|
|
90165
|
+
return;
|
|
90166
|
+
}
|
|
90167
|
+
const config = {
|
|
90168
|
+
placement,
|
|
90169
|
+
strategy,
|
|
90170
|
+
middleware: latestMiddleware
|
|
90171
|
+
};
|
|
90172
|
+
if (platformRef.current) {
|
|
90173
|
+
config.platform = platformRef.current;
|
|
90174
|
+
}
|
|
90175
|
+
(0,floating_ui_dom/* computePosition */.oo)(referenceRef.current, floatingRef.current, config).then(data => {
|
|
90176
|
+
const fullData = {
|
|
90177
|
+
...data,
|
|
90178
|
+
isPositioned: true
|
|
90179
|
+
};
|
|
90180
|
+
if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {
|
|
90181
|
+
dataRef.current = fullData;
|
|
90182
|
+
react_dom.flushSync(() => {
|
|
90183
|
+
setData(fullData);
|
|
90184
|
+
});
|
|
90185
|
+
}
|
|
90186
|
+
});
|
|
90187
|
+
}, [latestMiddleware, placement, strategy, platformRef]);
|
|
90188
|
+
index(() => {
|
|
90189
|
+
if (open === false && dataRef.current.isPositioned) {
|
|
90190
|
+
dataRef.current.isPositioned = false;
|
|
90191
|
+
setData(data => ({
|
|
90192
|
+
...data,
|
|
90193
|
+
isPositioned: false
|
|
90194
|
+
}));
|
|
90195
|
+
}
|
|
90196
|
+
}, [open]);
|
|
90197
|
+
const isMountedRef = react.useRef(false);
|
|
90198
|
+
index(() => {
|
|
90199
|
+
isMountedRef.current = true;
|
|
90200
|
+
return () => {
|
|
90201
|
+
isMountedRef.current = false;
|
|
90202
|
+
};
|
|
90203
|
+
}, []);
|
|
90204
|
+
index(() => {
|
|
90205
|
+
if (referenceEl) referenceRef.current = referenceEl;
|
|
90206
|
+
if (floatingEl) floatingRef.current = floatingEl;
|
|
90207
|
+
if (referenceEl && floatingEl) {
|
|
90208
|
+
if (whileElementsMountedRef.current) {
|
|
90209
|
+
return whileElementsMountedRef.current(referenceEl, floatingEl, update);
|
|
90210
|
+
}
|
|
90211
|
+
update();
|
|
90212
|
+
}
|
|
90213
|
+
}, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);
|
|
90214
|
+
const refs = react.useMemo(() => ({
|
|
90215
|
+
reference: referenceRef,
|
|
90216
|
+
floating: floatingRef,
|
|
90217
|
+
setReference,
|
|
90218
|
+
setFloating
|
|
90219
|
+
}), [setReference, setFloating]);
|
|
90220
|
+
const elements = react.useMemo(() => ({
|
|
90221
|
+
reference: referenceEl,
|
|
90222
|
+
floating: floatingEl
|
|
90223
|
+
}), [referenceEl, floatingEl]);
|
|
90224
|
+
const floatingStyles = react.useMemo(() => {
|
|
90225
|
+
const initialStyles = {
|
|
90226
|
+
position: strategy,
|
|
90227
|
+
left: 0,
|
|
90228
|
+
top: 0
|
|
90229
|
+
};
|
|
90230
|
+
if (!elements.floating) {
|
|
90231
|
+
return initialStyles;
|
|
90232
|
+
}
|
|
90233
|
+
const x = roundByDPR(elements.floating, data.x);
|
|
90234
|
+
const y = roundByDPR(elements.floating, data.y);
|
|
90235
|
+
if (transform) {
|
|
90236
|
+
return {
|
|
90237
|
+
...initialStyles,
|
|
90238
|
+
transform: "translate(" + x + "px, " + y + "px)",
|
|
90239
|
+
...(getDPR(elements.floating) >= 1.5 && {
|
|
90240
|
+
willChange: 'transform'
|
|
90241
|
+
})
|
|
90242
|
+
};
|
|
90243
|
+
}
|
|
90244
|
+
return {
|
|
90245
|
+
position: strategy,
|
|
90246
|
+
left: x,
|
|
90247
|
+
top: y
|
|
90248
|
+
};
|
|
90249
|
+
}, [strategy, transform, elements.floating, data.x, data.y]);
|
|
90250
|
+
return react.useMemo(() => ({
|
|
90251
|
+
...data,
|
|
90252
|
+
update,
|
|
90253
|
+
refs,
|
|
90254
|
+
elements,
|
|
90255
|
+
floatingStyles
|
|
90256
|
+
}), [data, update, refs, elements, floatingStyles]);
|
|
90257
|
+
}
|
|
90258
|
+
|
|
90259
|
+
/**
|
|
90260
|
+
* Provides data to position an inner element of the floating element so that it
|
|
90261
|
+
* appears centered to the reference element.
|
|
90262
|
+
* This wraps the core `arrow` middleware to allow React refs as the element.
|
|
90263
|
+
* @see https://floating-ui.com/docs/arrow
|
|
90264
|
+
*/
|
|
90265
|
+
const arrow$1 = options => {
|
|
90266
|
+
function isRef(value) {
|
|
90267
|
+
return {}.hasOwnProperty.call(value, 'current');
|
|
90268
|
+
}
|
|
90269
|
+
return {
|
|
90270
|
+
name: 'arrow',
|
|
90271
|
+
options,
|
|
90272
|
+
fn(state) {
|
|
90273
|
+
const {
|
|
90274
|
+
element,
|
|
90275
|
+
padding
|
|
90276
|
+
} = typeof options === 'function' ? options(state) : options;
|
|
90277
|
+
if (element && isRef(element)) {
|
|
90278
|
+
if (element.current != null) {
|
|
90279
|
+
return (0,floating_ui_dom/* arrow */.x7)({
|
|
90280
|
+
element: element.current,
|
|
90281
|
+
padding
|
|
90282
|
+
}).fn(state);
|
|
90283
|
+
}
|
|
90284
|
+
return {};
|
|
90285
|
+
}
|
|
90286
|
+
if (element) {
|
|
90287
|
+
return (0,floating_ui_dom/* arrow */.x7)({
|
|
90288
|
+
element,
|
|
90289
|
+
padding
|
|
90290
|
+
}).fn(state);
|
|
90291
|
+
}
|
|
90292
|
+
return {};
|
|
90293
|
+
}
|
|
90294
|
+
};
|
|
90295
|
+
};
|
|
90296
|
+
|
|
90297
|
+
/**
|
|
90298
|
+
* Modifies the placement by translating the floating element along the
|
|
90299
|
+
* specified axes.
|
|
90300
|
+
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
90301
|
+
* object may be passed.
|
|
90302
|
+
* @see https://floating-ui.com/docs/offset
|
|
90303
|
+
*/
|
|
90304
|
+
const offset = (options, deps) => ({
|
|
90305
|
+
...(0,floating_ui_dom/* offset */.cv)(options),
|
|
90306
|
+
options: [options, deps]
|
|
90307
|
+
});
|
|
90308
|
+
|
|
90309
|
+
/**
|
|
90310
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
|
90311
|
+
* keep it in view when it will overflow the clipping boundary.
|
|
90312
|
+
* @see https://floating-ui.com/docs/shift
|
|
90313
|
+
*/
|
|
90314
|
+
const shift = (options, deps) => ({
|
|
90315
|
+
...(0,floating_ui_dom/* shift */.uY)(options),
|
|
90316
|
+
options: [options, deps]
|
|
90317
|
+
});
|
|
90318
|
+
/**
|
|
90319
|
+
* Built-in `limiter` that will stop `shift()` at a certain point.
|
|
90320
|
+
*/
|
|
90321
|
+
const limitShift = (options, deps) => ({
|
|
90322
|
+
...(0,floating_ui_dom/* limitShift */.dr)(options),
|
|
90323
|
+
options: [options, deps]
|
|
90324
|
+
});
|
|
90325
|
+
|
|
90326
|
+
/**
|
|
90327
|
+
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
90328
|
+
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
90329
|
+
* clipping boundary. Alternative to `autoPlacement`.
|
|
90330
|
+
* @see https://floating-ui.com/docs/flip
|
|
90331
|
+
*/
|
|
90332
|
+
const flip = (options, deps) => ({
|
|
90333
|
+
...(0,floating_ui_dom/* flip */.RR)(options),
|
|
90334
|
+
options: [options, deps]
|
|
90335
|
+
});
|
|
90336
|
+
|
|
90337
|
+
/**
|
|
90338
|
+
* Provides data that allows you to change the size of the floating element —
|
|
90339
|
+
* for instance, prevent it from overflowing the clipping boundary or match the
|
|
90340
|
+
* width of the reference element.
|
|
90341
|
+
* @see https://floating-ui.com/docs/size
|
|
90342
|
+
*/
|
|
90343
|
+
const size = (options, deps) => ({
|
|
90344
|
+
...(0,floating_ui_dom/* size */.dp)(options),
|
|
90345
|
+
options: [options, deps]
|
|
90346
|
+
});
|
|
90347
|
+
|
|
90348
|
+
/**
|
|
90349
|
+
* Optimizes the visibility of the floating element by choosing the placement
|
|
90350
|
+
* that has the most space available automatically, without needing to specify a
|
|
90351
|
+
* preferred placement. Alternative to `flip`.
|
|
90352
|
+
* @see https://floating-ui.com/docs/autoPlacement
|
|
90353
|
+
*/
|
|
90354
|
+
const autoPlacement = (options, deps) => ({
|
|
90355
|
+
...autoPlacement$1(options),
|
|
90356
|
+
options: [options, deps]
|
|
90357
|
+
});
|
|
90358
|
+
|
|
90359
|
+
/**
|
|
90360
|
+
* Provides data to hide the floating element in applicable situations, such as
|
|
90361
|
+
* when it is not in the same clipping context as the reference element.
|
|
90362
|
+
* @see https://floating-ui.com/docs/hide
|
|
90363
|
+
*/
|
|
90364
|
+
const hide = (options, deps) => ({
|
|
90365
|
+
...(0,floating_ui_dom/* hide */.Cp)(options),
|
|
90366
|
+
options: [options, deps]
|
|
90367
|
+
});
|
|
90368
|
+
|
|
90369
|
+
/**
|
|
90370
|
+
* Provides improved positioning for inline reference elements that can span
|
|
90371
|
+
* over multiple lines, such as hyperlinks or range selections.
|
|
90372
|
+
* @see https://floating-ui.com/docs/inline
|
|
90373
|
+
*/
|
|
90374
|
+
const inline = (options, deps) => ({
|
|
90375
|
+
...inline$1(options),
|
|
90376
|
+
options: [options, deps]
|
|
90377
|
+
});
|
|
90378
|
+
|
|
90379
|
+
/**
|
|
90380
|
+
* Provides data to position an inner element of the floating element so that it
|
|
90381
|
+
* appears centered to the reference element.
|
|
90382
|
+
* This wraps the core `arrow` middleware to allow React refs as the element.
|
|
90383
|
+
* @see https://floating-ui.com/docs/arrow
|
|
90384
|
+
*/
|
|
90385
|
+
const floating_ui_react_dom_arrow = (options, deps) => ({
|
|
90386
|
+
...arrow$1(options),
|
|
90387
|
+
options: [options, deps]
|
|
90388
|
+
});
|
|
90389
|
+
|
|
90390
|
+
|
|
90391
|
+
|
|
90392
|
+
;// CONCATENATED MODULE: ../../../node_modules/@radix-ui/react-arrow/dist/index.mjs
|
|
90393
|
+
|
|
90394
|
+
|
|
90395
|
+
|
|
90396
|
+
|
|
90397
|
+
|
|
90398
|
+
|
|
90399
|
+
|
|
90400
|
+
/* -------------------------------------------------------------------------------------------------
|
|
90401
|
+
* Arrow
|
|
90402
|
+
* -----------------------------------------------------------------------------------------------*/ const $7e8f5cd07187803e$var$NAME = 'Arrow';
|
|
90403
|
+
const $7e8f5cd07187803e$export$21b07c8f274aebd5 = /*#__PURE__*/ (0,react.forwardRef)((props, forwardedRef)=>{
|
|
90404
|
+
const { children: children , width: width = 10 , height: height = 5 , ...arrowProps } = props;
|
|
90405
|
+
return /*#__PURE__*/ (0,react.createElement)(Primitive.svg, (0,esm_extends/* default */.Z)({}, arrowProps, {
|
|
90406
|
+
ref: forwardedRef,
|
|
90407
|
+
width: width,
|
|
90408
|
+
height: height,
|
|
90409
|
+
viewBox: "0 0 30 10",
|
|
90410
|
+
preserveAspectRatio: "none"
|
|
90411
|
+
}), props.asChild ? children : /*#__PURE__*/ (0,react.createElement)("polygon", {
|
|
90412
|
+
points: "0,0 30,0 15,10"
|
|
90413
|
+
}));
|
|
90414
|
+
});
|
|
90415
|
+
/*#__PURE__*/ Object.assign($7e8f5cd07187803e$export$21b07c8f274aebd5, {
|
|
90416
|
+
displayName: $7e8f5cd07187803e$var$NAME
|
|
90417
|
+
});
|
|
90418
|
+
/* -----------------------------------------------------------------------------------------------*/ const $7e8f5cd07187803e$export$be92b6f5f03c0fe9 = $7e8f5cd07187803e$export$21b07c8f274aebd5;
|
|
90419
|
+
|
|
90420
|
+
|
|
90421
|
+
|
|
90422
|
+
|
|
90423
|
+
|
|
90424
|
+
//# sourceMappingURL=index.mjs.map
|
|
90425
|
+
|
|
90426
|
+
;// CONCATENATED MODULE: ../../../node_modules/@radix-ui/react-use-size/dist/index.mjs
|
|
90427
|
+
// packages/react/use-size/src/useSize.tsx
|
|
90428
|
+
|
|
90429
|
+
|
|
90430
|
+
function useSize(element) {
|
|
90431
|
+
const [size, setSize] = react.useState(void 0);
|
|
90432
|
+
useLayoutEffect2(() => {
|
|
90433
|
+
if (element) {
|
|
90434
|
+
setSize({ width: element.offsetWidth, height: element.offsetHeight });
|
|
90435
|
+
const resizeObserver = new ResizeObserver((entries) => {
|
|
90436
|
+
if (!Array.isArray(entries)) {
|
|
90437
|
+
return;
|
|
90438
|
+
}
|
|
90439
|
+
if (!entries.length) {
|
|
90440
|
+
return;
|
|
90441
|
+
}
|
|
90442
|
+
const entry = entries[0];
|
|
90443
|
+
let width;
|
|
90444
|
+
let height;
|
|
90445
|
+
if ("borderBoxSize" in entry) {
|
|
90446
|
+
const borderSizeEntry = entry["borderBoxSize"];
|
|
90447
|
+
const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;
|
|
90448
|
+
width = borderSize["inlineSize"];
|
|
90449
|
+
height = borderSize["blockSize"];
|
|
90450
|
+
} else {
|
|
90451
|
+
width = element.offsetWidth;
|
|
90452
|
+
height = element.offsetHeight;
|
|
90453
|
+
}
|
|
90454
|
+
setSize({ width, height });
|
|
90455
|
+
});
|
|
90456
|
+
resizeObserver.observe(element, { box: "border-box" });
|
|
90457
|
+
return () => resizeObserver.unobserve(element);
|
|
90458
|
+
} else {
|
|
90459
|
+
setSize(void 0);
|
|
90460
|
+
}
|
|
90461
|
+
}, [element]);
|
|
90462
|
+
return size;
|
|
90463
|
+
}
|
|
90464
|
+
|
|
90465
|
+
//# sourceMappingURL=index.mjs.map
|
|
90466
|
+
|
|
90467
|
+
;// CONCATENATED MODULE: ../../../node_modules/@radix-ui/react-popper/dist/index.mjs
|
|
90468
|
+
"use client";
|
|
90469
|
+
|
|
90470
|
+
// packages/react/popper/src/Popper.tsx
|
|
90471
|
+
|
|
90472
|
+
|
|
90473
|
+
|
|
90474
|
+
|
|
90475
|
+
|
|
90476
|
+
|
|
90477
|
+
|
|
90478
|
+
|
|
90479
|
+
|
|
90480
|
+
|
|
90481
|
+
var SIDE_OPTIONS = (/* unused pure expression or super */ null && (["top", "right", "bottom", "left"]));
|
|
90482
|
+
var ALIGN_OPTIONS = (/* unused pure expression or super */ null && (["start", "center", "end"]));
|
|
90483
|
+
var POPPER_NAME = "Popper";
|
|
90484
|
+
var [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);
|
|
90485
|
+
var [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);
|
|
90486
|
+
var Popper = (props) => {
|
|
90487
|
+
const { __scopePopper, children } = props;
|
|
90488
|
+
const [anchor, setAnchor] = react.useState(null);
|
|
90489
|
+
return /* @__PURE__ */ (0,jsx_runtime.jsx)(PopperProvider, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });
|
|
90490
|
+
};
|
|
90491
|
+
Popper.displayName = POPPER_NAME;
|
|
90492
|
+
var ANCHOR_NAME = "PopperAnchor";
|
|
90493
|
+
var PopperAnchor = react.forwardRef(
|
|
90494
|
+
(props, forwardedRef) => {
|
|
90495
|
+
const { __scopePopper, virtualRef, ...anchorProps } = props;
|
|
90496
|
+
const context = usePopperContext(ANCHOR_NAME, __scopePopper);
|
|
90497
|
+
const ref = react.useRef(null);
|
|
90498
|
+
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
90499
|
+
react.useEffect(() => {
|
|
90500
|
+
context.onAnchorChange(virtualRef?.current || ref.current);
|
|
90501
|
+
});
|
|
90502
|
+
return virtualRef ? null : /* @__PURE__ */ (0,jsx_runtime.jsx)(Primitive.div, { ...anchorProps, ref: composedRefs });
|
|
90503
|
+
}
|
|
90504
|
+
);
|
|
90505
|
+
PopperAnchor.displayName = ANCHOR_NAME;
|
|
90506
|
+
var dist_CONTENT_NAME = "PopperContent";
|
|
90507
|
+
var [PopperContentProvider, useContentContext] = createPopperContext(dist_CONTENT_NAME);
|
|
90508
|
+
var PopperContent = react.forwardRef(
|
|
90509
|
+
(props, forwardedRef) => {
|
|
90510
|
+
const {
|
|
90511
|
+
__scopePopper,
|
|
90512
|
+
side = "bottom",
|
|
90513
|
+
sideOffset = 0,
|
|
90514
|
+
align = "center",
|
|
90515
|
+
alignOffset = 0,
|
|
90516
|
+
arrowPadding = 0,
|
|
90517
|
+
avoidCollisions = true,
|
|
90518
|
+
collisionBoundary = [],
|
|
90519
|
+
collisionPadding: collisionPaddingProp = 0,
|
|
90520
|
+
sticky = "partial",
|
|
90521
|
+
hideWhenDetached = false,
|
|
90522
|
+
updatePositionStrategy = "optimized",
|
|
90523
|
+
onPlaced,
|
|
90524
|
+
...contentProps
|
|
90525
|
+
} = props;
|
|
90526
|
+
const context = usePopperContext(dist_CONTENT_NAME, __scopePopper);
|
|
90527
|
+
const [content, setContent] = react.useState(null);
|
|
90528
|
+
const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));
|
|
90529
|
+
const [arrow, setArrow] = react.useState(null);
|
|
90530
|
+
const arrowSize = useSize(arrow);
|
|
90531
|
+
const arrowWidth = arrowSize?.width ?? 0;
|
|
90532
|
+
const arrowHeight = arrowSize?.height ?? 0;
|
|
90533
|
+
const desiredPlacement = side + (align !== "center" ? "-" + align : "");
|
|
90534
|
+
const collisionPadding = typeof collisionPaddingProp === "number" ? collisionPaddingProp : { top: 0, right: 0, bottom: 0, left: 0, ...collisionPaddingProp };
|
|
90535
|
+
const boundary = Array.isArray(collisionBoundary) ? collisionBoundary : [collisionBoundary];
|
|
90536
|
+
const hasExplicitBoundaries = boundary.length > 0;
|
|
90537
|
+
const detectOverflowOptions = {
|
|
90538
|
+
padding: collisionPadding,
|
|
90539
|
+
boundary: boundary.filter(isNotNull),
|
|
90540
|
+
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
90541
|
+
altBoundary: hasExplicitBoundaries
|
|
90542
|
+
};
|
|
90543
|
+
const { refs, floatingStyles, placement, isPositioned, middlewareData } = useFloating({
|
|
90544
|
+
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
90545
|
+
strategy: "fixed",
|
|
90546
|
+
placement: desiredPlacement,
|
|
90547
|
+
whileElementsMounted: (...args) => {
|
|
90548
|
+
const cleanup = (0,floating_ui_dom/* autoUpdate */.Me)(...args, {
|
|
90549
|
+
animationFrame: updatePositionStrategy === "always"
|
|
90550
|
+
});
|
|
90551
|
+
return cleanup;
|
|
90552
|
+
},
|
|
90553
|
+
elements: {
|
|
90554
|
+
reference: context.anchor
|
|
90555
|
+
},
|
|
90556
|
+
middleware: [
|
|
90557
|
+
offset({ mainAxis: sideOffset + arrowHeight, alignmentAxis: alignOffset }),
|
|
90558
|
+
avoidCollisions && shift({
|
|
90559
|
+
mainAxis: true,
|
|
90560
|
+
crossAxis: false,
|
|
90561
|
+
limiter: sticky === "partial" ? limitShift() : void 0,
|
|
90562
|
+
...detectOverflowOptions
|
|
90563
|
+
}),
|
|
90564
|
+
avoidCollisions && flip({ ...detectOverflowOptions }),
|
|
90565
|
+
size({
|
|
90566
|
+
...detectOverflowOptions,
|
|
90567
|
+
apply: ({ elements, rects, availableWidth, availableHeight }) => {
|
|
90568
|
+
const { width: anchorWidth, height: anchorHeight } = rects.reference;
|
|
90569
|
+
const contentStyle = elements.floating.style;
|
|
90570
|
+
contentStyle.setProperty("--radix-popper-available-width", `${availableWidth}px`);
|
|
90571
|
+
contentStyle.setProperty("--radix-popper-available-height", `${availableHeight}px`);
|
|
90572
|
+
contentStyle.setProperty("--radix-popper-anchor-width", `${anchorWidth}px`);
|
|
90573
|
+
contentStyle.setProperty("--radix-popper-anchor-height", `${anchorHeight}px`);
|
|
90574
|
+
}
|
|
90575
|
+
}),
|
|
90576
|
+
arrow && floating_ui_react_dom_arrow({ element: arrow, padding: arrowPadding }),
|
|
90577
|
+
transformOrigin({ arrowWidth, arrowHeight }),
|
|
90578
|
+
hideWhenDetached && hide({ strategy: "referenceHidden", ...detectOverflowOptions })
|
|
90579
|
+
]
|
|
90580
|
+
});
|
|
90581
|
+
const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);
|
|
90582
|
+
const handlePlaced = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onPlaced);
|
|
90583
|
+
useLayoutEffect2(() => {
|
|
90584
|
+
if (isPositioned) {
|
|
90585
|
+
handlePlaced?.();
|
|
90586
|
+
}
|
|
90587
|
+
}, [isPositioned, handlePlaced]);
|
|
90588
|
+
const arrowX = middlewareData.arrow?.x;
|
|
90589
|
+
const arrowY = middlewareData.arrow?.y;
|
|
90590
|
+
const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;
|
|
90591
|
+
const [contentZIndex, setContentZIndex] = react.useState();
|
|
90592
|
+
useLayoutEffect2(() => {
|
|
90593
|
+
if (content) setContentZIndex(window.getComputedStyle(content).zIndex);
|
|
90594
|
+
}, [content]);
|
|
90595
|
+
return /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
90596
|
+
"div",
|
|
90597
|
+
{
|
|
90598
|
+
ref: refs.setFloating,
|
|
90599
|
+
"data-radix-popper-content-wrapper": "",
|
|
90600
|
+
style: {
|
|
90601
|
+
...floatingStyles,
|
|
90602
|
+
transform: isPositioned ? floatingStyles.transform : "translate(0, -200%)",
|
|
90603
|
+
// keep off the page when measuring
|
|
90604
|
+
minWidth: "max-content",
|
|
90605
|
+
zIndex: contentZIndex,
|
|
90606
|
+
["--radix-popper-transform-origin"]: [
|
|
90607
|
+
middlewareData.transformOrigin?.x,
|
|
90608
|
+
middlewareData.transformOrigin?.y
|
|
90609
|
+
].join(" "),
|
|
90610
|
+
// hide the content if using the hide middleware and should be hidden
|
|
90611
|
+
// set visibility to hidden and disable pointer events so the UI behaves
|
|
90612
|
+
// as if the PopperContent isn't there at all
|
|
90613
|
+
...middlewareData.hide?.referenceHidden && {
|
|
90614
|
+
visibility: "hidden",
|
|
90615
|
+
pointerEvents: "none"
|
|
90616
|
+
}
|
|
90617
|
+
},
|
|
90618
|
+
dir: props.dir,
|
|
90619
|
+
children: /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
90620
|
+
PopperContentProvider,
|
|
90621
|
+
{
|
|
90622
|
+
scope: __scopePopper,
|
|
90623
|
+
placedSide,
|
|
90624
|
+
onArrowChange: setArrow,
|
|
90625
|
+
arrowX,
|
|
90626
|
+
arrowY,
|
|
90627
|
+
shouldHideArrow: cannotCenterArrow,
|
|
90628
|
+
children: /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
90629
|
+
Primitive.div,
|
|
90630
|
+
{
|
|
90631
|
+
"data-side": placedSide,
|
|
90632
|
+
"data-align": placedAlign,
|
|
90633
|
+
...contentProps,
|
|
90634
|
+
ref: composedRefs,
|
|
90635
|
+
style: {
|
|
90636
|
+
...contentProps.style,
|
|
90637
|
+
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
90638
|
+
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
90639
|
+
animation: !isPositioned ? "none" : void 0
|
|
90640
|
+
}
|
|
90641
|
+
}
|
|
90642
|
+
)
|
|
90643
|
+
}
|
|
90644
|
+
)
|
|
90645
|
+
}
|
|
90646
|
+
);
|
|
90647
|
+
}
|
|
90648
|
+
);
|
|
90649
|
+
PopperContent.displayName = dist_CONTENT_NAME;
|
|
90650
|
+
var ARROW_NAME = "PopperArrow";
|
|
90651
|
+
var OPPOSITE_SIDE = {
|
|
90652
|
+
top: "bottom",
|
|
90653
|
+
right: "left",
|
|
90654
|
+
bottom: "top",
|
|
90655
|
+
left: "right"
|
|
90656
|
+
};
|
|
90657
|
+
var PopperArrow = react.forwardRef(function PopperArrow2(props, forwardedRef) {
|
|
90658
|
+
const { __scopePopper, ...arrowProps } = props;
|
|
90659
|
+
const contentContext = useContentContext(ARROW_NAME, __scopePopper);
|
|
90660
|
+
const baseSide = OPPOSITE_SIDE[contentContext.placedSide];
|
|
90661
|
+
return (
|
|
90662
|
+
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
90663
|
+
// doesn't report size as we'd expect on SVG elements.
|
|
90664
|
+
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
90665
|
+
/* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
90666
|
+
"span",
|
|
90667
|
+
{
|
|
90668
|
+
ref: contentContext.onArrowChange,
|
|
90669
|
+
style: {
|
|
90670
|
+
position: "absolute",
|
|
90671
|
+
left: contentContext.arrowX,
|
|
90672
|
+
top: contentContext.arrowY,
|
|
90673
|
+
[baseSide]: 0,
|
|
90674
|
+
transformOrigin: {
|
|
90675
|
+
top: "",
|
|
90676
|
+
right: "0 0",
|
|
90677
|
+
bottom: "center 0",
|
|
90678
|
+
left: "100% 0"
|
|
90679
|
+
}[contentContext.placedSide],
|
|
90680
|
+
transform: {
|
|
90681
|
+
top: "translateY(100%)",
|
|
90682
|
+
right: "translateY(50%) rotate(90deg) translateX(-50%)",
|
|
90683
|
+
bottom: `rotate(180deg)`,
|
|
90684
|
+
left: "translateY(50%) rotate(-90deg) translateX(50%)"
|
|
90685
|
+
}[contentContext.placedSide],
|
|
90686
|
+
visibility: contentContext.shouldHideArrow ? "hidden" : void 0
|
|
90687
|
+
},
|
|
90688
|
+
children: /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
90689
|
+
$7e8f5cd07187803e$export$be92b6f5f03c0fe9,
|
|
90690
|
+
{
|
|
90691
|
+
...arrowProps,
|
|
90692
|
+
ref: forwardedRef,
|
|
90693
|
+
style: {
|
|
90694
|
+
...arrowProps.style,
|
|
90695
|
+
// ensures the element can be measured correctly (mostly for if SVG)
|
|
90696
|
+
display: "block"
|
|
90697
|
+
}
|
|
90698
|
+
}
|
|
90699
|
+
)
|
|
90700
|
+
}
|
|
90701
|
+
)
|
|
90702
|
+
);
|
|
90703
|
+
});
|
|
90704
|
+
PopperArrow.displayName = ARROW_NAME;
|
|
90705
|
+
function isNotNull(value) {
|
|
90706
|
+
return value !== null;
|
|
90707
|
+
}
|
|
90708
|
+
var transformOrigin = (options) => ({
|
|
90709
|
+
name: "transformOrigin",
|
|
90710
|
+
options,
|
|
90711
|
+
fn(data) {
|
|
90712
|
+
const { placement, rects, middlewareData } = data;
|
|
90713
|
+
const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;
|
|
90714
|
+
const isArrowHidden = cannotCenterArrow;
|
|
90715
|
+
const arrowWidth = isArrowHidden ? 0 : options.arrowWidth;
|
|
90716
|
+
const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;
|
|
90717
|
+
const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);
|
|
90718
|
+
const noArrowAlign = { start: "0%", center: "50%", end: "100%" }[placedAlign];
|
|
90719
|
+
const arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;
|
|
90720
|
+
const arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;
|
|
90721
|
+
let x = "";
|
|
90722
|
+
let y = "";
|
|
90723
|
+
if (placedSide === "bottom") {
|
|
90724
|
+
x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;
|
|
90725
|
+
y = `${-arrowHeight}px`;
|
|
90726
|
+
} else if (placedSide === "top") {
|
|
90727
|
+
x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;
|
|
90728
|
+
y = `${rects.floating.height + arrowHeight}px`;
|
|
90729
|
+
} else if (placedSide === "right") {
|
|
90730
|
+
x = `${-arrowHeight}px`;
|
|
90731
|
+
y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;
|
|
90732
|
+
} else if (placedSide === "left") {
|
|
90733
|
+
x = `${rects.floating.width + arrowHeight}px`;
|
|
90734
|
+
y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;
|
|
90735
|
+
}
|
|
90736
|
+
return { data: { x, y } };
|
|
90737
|
+
}
|
|
90738
|
+
});
|
|
90739
|
+
function getSideAndAlignFromPlacement(placement) {
|
|
90740
|
+
const [side, align = "center"] = placement.split("-");
|
|
90741
|
+
return [side, align];
|
|
90742
|
+
}
|
|
90743
|
+
var Root2 = Popper;
|
|
90744
|
+
var Anchor = PopperAnchor;
|
|
90745
|
+
var dist_Content = PopperContent;
|
|
90746
|
+
var Arrow = PopperArrow;
|
|
90747
|
+
|
|
90748
|
+
//# sourceMappingURL=index.mjs.map
|
|
90749
|
+
|
|
90750
|
+
;// CONCATENATED MODULE: ../../../node_modules/@radix-ui/react-use-previous/dist/index.mjs
|
|
90751
|
+
// packages/react/use-previous/src/usePrevious.tsx
|
|
90752
|
+
|
|
90753
|
+
function usePrevious(value) {
|
|
90754
|
+
const ref = react.useRef({ value, previous: value });
|
|
90755
|
+
return react.useMemo(() => {
|
|
90756
|
+
if (ref.current.value !== value) {
|
|
90757
|
+
ref.current.previous = ref.current.value;
|
|
90758
|
+
ref.current.value = value;
|
|
90759
|
+
}
|
|
90760
|
+
return ref.current.previous;
|
|
90761
|
+
}, [value]);
|
|
90762
|
+
}
|
|
90763
|
+
|
|
90764
|
+
//# sourceMappingURL=index.mjs.map
|
|
90765
|
+
|
|
90766
|
+
;// CONCATENATED MODULE: ../../../node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
|
|
90767
|
+
// packages/react/visually-hidden/src/VisuallyHidden.tsx
|
|
90768
|
+
|
|
90769
|
+
|
|
90770
|
+
|
|
90771
|
+
var NAME = "VisuallyHidden";
|
|
90772
|
+
var VisuallyHidden = react.forwardRef(
|
|
90773
|
+
(props, forwardedRef) => {
|
|
90774
|
+
return /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
90775
|
+
Primitive.span,
|
|
90776
|
+
{
|
|
90777
|
+
...props,
|
|
90778
|
+
ref: forwardedRef,
|
|
90779
|
+
style: {
|
|
90780
|
+
// See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
|
|
90781
|
+
position: "absolute",
|
|
90782
|
+
border: 0,
|
|
90783
|
+
width: 1,
|
|
90784
|
+
height: 1,
|
|
90785
|
+
padding: 0,
|
|
90786
|
+
margin: -1,
|
|
90787
|
+
overflow: "hidden",
|
|
90788
|
+
clip: "rect(0, 0, 0, 0)",
|
|
90789
|
+
whiteSpace: "nowrap",
|
|
90790
|
+
wordWrap: "normal",
|
|
90791
|
+
...props.style
|
|
90792
|
+
}
|
|
90793
|
+
}
|
|
90794
|
+
);
|
|
90795
|
+
}
|
|
90796
|
+
);
|
|
90797
|
+
VisuallyHidden.displayName = NAME;
|
|
90798
|
+
var react_visually_hidden_dist_Root = VisuallyHidden;
|
|
90799
|
+
|
|
90800
|
+
//# sourceMappingURL=index.mjs.map
|
|
90801
|
+
|
|
90802
|
+
;// CONCATENATED MODULE: ../../../node_modules/@radix-ui/react-select/dist/index.mjs
|
|
90803
|
+
"use client";
|
|
90804
|
+
|
|
90805
|
+
// packages/react/select/src/Select.tsx
|
|
90806
|
+
|
|
90807
|
+
|
|
90808
|
+
|
|
90809
|
+
|
|
90810
|
+
|
|
90811
|
+
|
|
90812
|
+
|
|
90813
|
+
|
|
90814
|
+
|
|
90815
|
+
|
|
90816
|
+
|
|
90817
|
+
|
|
90818
|
+
|
|
90819
|
+
|
|
90820
|
+
|
|
90821
|
+
|
|
90822
|
+
|
|
90823
|
+
|
|
90824
|
+
|
|
90825
|
+
|
|
90826
|
+
|
|
90827
|
+
|
|
90828
|
+
|
|
90829
|
+
|
|
90830
|
+
|
|
90831
|
+
var OPEN_KEYS = [" ", "Enter", "ArrowUp", "ArrowDown"];
|
|
90832
|
+
var SELECTION_KEYS = [" ", "Enter"];
|
|
90833
|
+
var SELECT_NAME = "Select";
|
|
90834
|
+
var [Collection, useCollection, createCollectionScope] = createCollection(SELECT_NAME);
|
|
90835
|
+
var [createSelectContext, createSelectScope] = createContextScope(SELECT_NAME, [
|
|
90836
|
+
createCollectionScope,
|
|
90837
|
+
createPopperScope
|
|
90838
|
+
]);
|
|
90839
|
+
var usePopperScope = createPopperScope();
|
|
90840
|
+
var [SelectProvider, useSelectContext] = createSelectContext(SELECT_NAME);
|
|
90841
|
+
var [SelectNativeOptionsProvider, useSelectNativeOptionsContext] = createSelectContext(SELECT_NAME);
|
|
90842
|
+
var dist_Select = (props) => {
|
|
90843
|
+
const {
|
|
90844
|
+
__scopeSelect,
|
|
90845
|
+
children,
|
|
90846
|
+
open: openProp,
|
|
90847
|
+
defaultOpen,
|
|
90848
|
+
onOpenChange,
|
|
90849
|
+
value: valueProp,
|
|
90850
|
+
defaultValue,
|
|
90851
|
+
onValueChange,
|
|
90852
|
+
dir,
|
|
90853
|
+
name,
|
|
90854
|
+
autoComplete,
|
|
90855
|
+
disabled,
|
|
90856
|
+
required
|
|
90857
|
+
} = props;
|
|
90858
|
+
const popperScope = usePopperScope(__scopeSelect);
|
|
90859
|
+
const [trigger, setTrigger] = react.useState(null);
|
|
90860
|
+
const [valueNode, setValueNode] = react.useState(null);
|
|
90861
|
+
const [valueNodeHasChildren, setValueNodeHasChildren] = react.useState(false);
|
|
90862
|
+
const direction = useDirection(dir);
|
|
90863
|
+
const [open = false, setOpen] = useControllableState({
|
|
90864
|
+
prop: openProp,
|
|
90865
|
+
defaultProp: defaultOpen,
|
|
90866
|
+
onChange: onOpenChange
|
|
90867
|
+
});
|
|
90868
|
+
const [value, setValue] = useControllableState({
|
|
90869
|
+
prop: valueProp,
|
|
90870
|
+
defaultProp: defaultValue,
|
|
90871
|
+
onChange: onValueChange
|
|
90872
|
+
});
|
|
90873
|
+
const triggerPointerDownPosRef = react.useRef(null);
|
|
90874
|
+
const isFormControl = trigger ? Boolean(trigger.closest("form")) : true;
|
|
90875
|
+
const [nativeOptionsSet, setNativeOptionsSet] = react.useState(/* @__PURE__ */ new Set());
|
|
90876
|
+
const nativeSelectKey = Array.from(nativeOptionsSet).map((option) => option.props.value).join(";");
|
|
90877
|
+
return /* @__PURE__ */ (0,jsx_runtime.jsx)(Root2, { ...popperScope, children: /* @__PURE__ */ (0,jsx_runtime.jsxs)(
|
|
90878
|
+
SelectProvider,
|
|
90879
|
+
{
|
|
90880
|
+
required,
|
|
90881
|
+
scope: __scopeSelect,
|
|
90882
|
+
trigger,
|
|
90883
|
+
onTriggerChange: setTrigger,
|
|
90884
|
+
valueNode,
|
|
90885
|
+
onValueNodeChange: setValueNode,
|
|
90886
|
+
valueNodeHasChildren,
|
|
90887
|
+
onValueNodeHasChildrenChange: setValueNodeHasChildren,
|
|
90888
|
+
contentId: useId(),
|
|
90889
|
+
value,
|
|
90890
|
+
onValueChange: setValue,
|
|
90891
|
+
open,
|
|
90892
|
+
onOpenChange: setOpen,
|
|
90893
|
+
dir: direction,
|
|
90894
|
+
triggerPointerDownPosRef,
|
|
90895
|
+
disabled,
|
|
90896
|
+
children: [
|
|
90897
|
+
/* @__PURE__ */ (0,jsx_runtime.jsx)(Collection.Provider, { scope: __scopeSelect, children: /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
90898
|
+
SelectNativeOptionsProvider,
|
|
90899
|
+
{
|
|
90900
|
+
scope: props.__scopeSelect,
|
|
90901
|
+
onNativeOptionAdd: react.useCallback((option) => {
|
|
90902
|
+
setNativeOptionsSet((prev) => new Set(prev).add(option));
|
|
90903
|
+
}, []),
|
|
90904
|
+
onNativeOptionRemove: react.useCallback((option) => {
|
|
90905
|
+
setNativeOptionsSet((prev) => {
|
|
90906
|
+
const optionsSet = new Set(prev);
|
|
90907
|
+
optionsSet.delete(option);
|
|
90908
|
+
return optionsSet;
|
|
90909
|
+
});
|
|
90910
|
+
}, []),
|
|
90911
|
+
children
|
|
90912
|
+
}
|
|
90913
|
+
) }),
|
|
90914
|
+
isFormControl ? /* @__PURE__ */ (0,jsx_runtime.jsxs)(
|
|
90915
|
+
BubbleSelect,
|
|
90916
|
+
{
|
|
90917
|
+
"aria-hidden": true,
|
|
90918
|
+
required,
|
|
90919
|
+
tabIndex: -1,
|
|
90920
|
+
name,
|
|
90921
|
+
autoComplete,
|
|
90922
|
+
value,
|
|
90923
|
+
onChange: (event) => setValue(event.target.value),
|
|
90924
|
+
disabled,
|
|
90925
|
+
children: [
|
|
90926
|
+
value === void 0 ? /* @__PURE__ */ (0,jsx_runtime.jsx)("option", { value: "" }) : null,
|
|
90927
|
+
Array.from(nativeOptionsSet)
|
|
90928
|
+
]
|
|
90929
|
+
},
|
|
90930
|
+
nativeSelectKey
|
|
90931
|
+
) : null
|
|
90932
|
+
]
|
|
90933
|
+
}
|
|
90934
|
+
) });
|
|
90935
|
+
};
|
|
90936
|
+
dist_Select.displayName = SELECT_NAME;
|
|
90937
|
+
var dist_TRIGGER_NAME = "SelectTrigger";
|
|
90938
|
+
var dist_SelectTrigger = react.forwardRef(
|
|
90939
|
+
(props, forwardedRef) => {
|
|
90940
|
+
const { __scopeSelect, disabled = false, ...triggerProps } = props;
|
|
90941
|
+
const popperScope = usePopperScope(__scopeSelect);
|
|
90942
|
+
const context = useSelectContext(dist_TRIGGER_NAME, __scopeSelect);
|
|
90943
|
+
const isDisabled = context.disabled || disabled;
|
|
90944
|
+
const composedRefs = useComposedRefs(forwardedRef, context.onTriggerChange);
|
|
90945
|
+
const getItems = useCollection(__scopeSelect);
|
|
90946
|
+
const [searchRef, handleTypeaheadSearch, resetTypeahead] = useTypeaheadSearch((search) => {
|
|
90947
|
+
const enabledItems = getItems().filter((item) => !item.disabled);
|
|
90948
|
+
const currentItem = enabledItems.find((item) => item.value === context.value);
|
|
90949
|
+
const nextItem = findNextItem(enabledItems, search, currentItem);
|
|
90950
|
+
if (nextItem !== void 0) {
|
|
90951
|
+
context.onValueChange(nextItem.value);
|
|
90952
|
+
}
|
|
90953
|
+
});
|
|
90954
|
+
const handleOpen = () => {
|
|
90955
|
+
if (!isDisabled) {
|
|
90956
|
+
context.onOpenChange(true);
|
|
90957
|
+
resetTypeahead();
|
|
90958
|
+
}
|
|
90959
|
+
};
|
|
90960
|
+
return /* @__PURE__ */ (0,jsx_runtime.jsx)(Anchor, { asChild: true, ...popperScope, children: /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
90961
|
+
Primitive.button,
|
|
90962
|
+
{
|
|
90963
|
+
type: "button",
|
|
90964
|
+
role: "combobox",
|
|
90965
|
+
"aria-controls": context.contentId,
|
|
90966
|
+
"aria-expanded": context.open,
|
|
90967
|
+
"aria-required": context.required,
|
|
90968
|
+
"aria-autocomplete": "none",
|
|
90969
|
+
dir: context.dir,
|
|
90970
|
+
"data-state": context.open ? "open" : "closed",
|
|
90971
|
+
disabled: isDisabled,
|
|
90972
|
+
"data-disabled": isDisabled ? "" : void 0,
|
|
90973
|
+
"data-placeholder": shouldShowPlaceholder(context.value) ? "" : void 0,
|
|
90974
|
+
...triggerProps,
|
|
90975
|
+
ref: composedRefs,
|
|
90976
|
+
onClick: composeEventHandlers(triggerProps.onClick, (event) => {
|
|
90977
|
+
event.currentTarget.focus();
|
|
90978
|
+
}),
|
|
90979
|
+
onPointerDown: composeEventHandlers(triggerProps.onPointerDown, (event) => {
|
|
90980
|
+
const target = event.target;
|
|
90981
|
+
if (target.hasPointerCapture(event.pointerId)) {
|
|
90982
|
+
target.releasePointerCapture(event.pointerId);
|
|
90983
|
+
}
|
|
90984
|
+
if (event.button === 0 && event.ctrlKey === false) {
|
|
90985
|
+
handleOpen();
|
|
90986
|
+
context.triggerPointerDownPosRef.current = {
|
|
90987
|
+
x: Math.round(event.pageX),
|
|
90988
|
+
y: Math.round(event.pageY)
|
|
90989
|
+
};
|
|
90990
|
+
event.preventDefault();
|
|
90991
|
+
}
|
|
90992
|
+
}),
|
|
90993
|
+
onKeyDown: composeEventHandlers(triggerProps.onKeyDown, (event) => {
|
|
90994
|
+
const isTypingAhead = searchRef.current !== "";
|
|
90995
|
+
const isModifierKey = event.ctrlKey || event.altKey || event.metaKey;
|
|
90996
|
+
if (!isModifierKey && event.key.length === 1) handleTypeaheadSearch(event.key);
|
|
90997
|
+
if (isTypingAhead && event.key === " ") return;
|
|
90998
|
+
if (OPEN_KEYS.includes(event.key)) {
|
|
90999
|
+
handleOpen();
|
|
91000
|
+
event.preventDefault();
|
|
91001
|
+
}
|
|
91002
|
+
})
|
|
91003
|
+
}
|
|
91004
|
+
) });
|
|
91005
|
+
}
|
|
91006
|
+
);
|
|
91007
|
+
dist_SelectTrigger.displayName = dist_TRIGGER_NAME;
|
|
91008
|
+
var VALUE_NAME = "SelectValue";
|
|
91009
|
+
var dist_SelectValue = react.forwardRef(
|
|
91010
|
+
(props, forwardedRef) => {
|
|
91011
|
+
const { __scopeSelect, className, style, children, placeholder = "", ...valueProps } = props;
|
|
91012
|
+
const context = useSelectContext(VALUE_NAME, __scopeSelect);
|
|
91013
|
+
const { onValueNodeHasChildrenChange } = context;
|
|
91014
|
+
const hasChildren = children !== void 0;
|
|
91015
|
+
const composedRefs = useComposedRefs(forwardedRef, context.onValueNodeChange);
|
|
91016
|
+
useLayoutEffect2(() => {
|
|
91017
|
+
onValueNodeHasChildrenChange(hasChildren);
|
|
91018
|
+
}, [onValueNodeHasChildrenChange, hasChildren]);
|
|
91019
|
+
return /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
91020
|
+
Primitive.span,
|
|
91021
|
+
{
|
|
91022
|
+
...valueProps,
|
|
91023
|
+
ref: composedRefs,
|
|
91024
|
+
style: { pointerEvents: "none" },
|
|
91025
|
+
children: shouldShowPlaceholder(context.value) ? /* @__PURE__ */ (0,jsx_runtime.jsx)(jsx_runtime.Fragment, { children: placeholder }) : children
|
|
91026
|
+
}
|
|
91027
|
+
);
|
|
91028
|
+
}
|
|
91029
|
+
);
|
|
91030
|
+
dist_SelectValue.displayName = VALUE_NAME;
|
|
91031
|
+
var ICON_NAME = "SelectIcon";
|
|
91032
|
+
var SelectIcon = react.forwardRef(
|
|
91033
|
+
(props, forwardedRef) => {
|
|
91034
|
+
const { __scopeSelect, children, ...iconProps } = props;
|
|
91035
|
+
return /* @__PURE__ */ (0,jsx_runtime.jsx)(Primitive.span, { "aria-hidden": true, ...iconProps, ref: forwardedRef, children: children || "\u25BC" });
|
|
91036
|
+
}
|
|
91037
|
+
);
|
|
91038
|
+
SelectIcon.displayName = ICON_NAME;
|
|
91039
|
+
var react_select_dist_PORTAL_NAME = "SelectPortal";
|
|
91040
|
+
var SelectPortal = (props) => {
|
|
91041
|
+
return /* @__PURE__ */ (0,jsx_runtime.jsx)(Portal, { asChild: true, ...props });
|
|
91042
|
+
};
|
|
91043
|
+
SelectPortal.displayName = react_select_dist_PORTAL_NAME;
|
|
91044
|
+
var react_select_dist_CONTENT_NAME = "SelectContent";
|
|
91045
|
+
var dist_SelectContent = react.forwardRef(
|
|
91046
|
+
(props, forwardedRef) => {
|
|
91047
|
+
const context = useSelectContext(react_select_dist_CONTENT_NAME, props.__scopeSelect);
|
|
91048
|
+
const [fragment, setFragment] = react.useState();
|
|
91049
|
+
useLayoutEffect2(() => {
|
|
91050
|
+
setFragment(new DocumentFragment());
|
|
91051
|
+
}, []);
|
|
91052
|
+
if (!context.open) {
|
|
91053
|
+
const frag = fragment;
|
|
91054
|
+
return frag ? react_dom.createPortal(
|
|
91055
|
+
/* @__PURE__ */ (0,jsx_runtime.jsx)(SelectContentProvider, { scope: props.__scopeSelect, children: /* @__PURE__ */ (0,jsx_runtime.jsx)(Collection.Slot, { scope: props.__scopeSelect, children: /* @__PURE__ */ (0,jsx_runtime.jsx)("div", { children: props.children }) }) }),
|
|
91056
|
+
frag
|
|
91057
|
+
) : null;
|
|
91058
|
+
}
|
|
91059
|
+
return /* @__PURE__ */ (0,jsx_runtime.jsx)(SelectContentImpl, { ...props, ref: forwardedRef });
|
|
91060
|
+
}
|
|
91061
|
+
);
|
|
91062
|
+
dist_SelectContent.displayName = react_select_dist_CONTENT_NAME;
|
|
91063
|
+
var CONTENT_MARGIN = 10;
|
|
91064
|
+
var [SelectContentProvider, useSelectContentContext] = createSelectContext(react_select_dist_CONTENT_NAME);
|
|
91065
|
+
var CONTENT_IMPL_NAME = "SelectContentImpl";
|
|
91066
|
+
var SelectContentImpl = react.forwardRef(
|
|
91067
|
+
(props, forwardedRef) => {
|
|
91068
|
+
const {
|
|
91069
|
+
__scopeSelect,
|
|
91070
|
+
position = "item-aligned",
|
|
91071
|
+
onCloseAutoFocus,
|
|
91072
|
+
onEscapeKeyDown,
|
|
91073
|
+
onPointerDownOutside,
|
|
91074
|
+
//
|
|
91075
|
+
// PopperContent props
|
|
91076
|
+
side,
|
|
91077
|
+
sideOffset,
|
|
91078
|
+
align,
|
|
91079
|
+
alignOffset,
|
|
91080
|
+
arrowPadding,
|
|
91081
|
+
collisionBoundary,
|
|
91082
|
+
collisionPadding,
|
|
91083
|
+
sticky,
|
|
91084
|
+
hideWhenDetached,
|
|
91085
|
+
avoidCollisions,
|
|
91086
|
+
//
|
|
91087
|
+
...contentProps
|
|
91088
|
+
} = props;
|
|
91089
|
+
const context = useSelectContext(react_select_dist_CONTENT_NAME, __scopeSelect);
|
|
91090
|
+
const [content, setContent] = react.useState(null);
|
|
91091
|
+
const [viewport, setViewport] = react.useState(null);
|
|
91092
|
+
const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));
|
|
91093
|
+
const [selectedItem, setSelectedItem] = react.useState(null);
|
|
91094
|
+
const [selectedItemText, setSelectedItemText] = react.useState(
|
|
91095
|
+
null
|
|
91096
|
+
);
|
|
91097
|
+
const getItems = useCollection(__scopeSelect);
|
|
91098
|
+
const [isPositioned, setIsPositioned] = react.useState(false);
|
|
91099
|
+
const firstValidItemFoundRef = react.useRef(false);
|
|
91100
|
+
react.useEffect(() => {
|
|
91101
|
+
if (content) return hideOthers(content);
|
|
91102
|
+
}, [content]);
|
|
91103
|
+
$3db38b7d1fb3fe6a$export$b7ece24a22aeda8c();
|
|
91104
|
+
const focusFirst = react.useCallback(
|
|
91105
|
+
(candidates) => {
|
|
91106
|
+
const [firstItem, ...restItems] = getItems().map((item) => item.ref.current);
|
|
91107
|
+
const [lastItem] = restItems.slice(-1);
|
|
91108
|
+
const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;
|
|
91109
|
+
for (const candidate of candidates) {
|
|
91110
|
+
if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;
|
|
91111
|
+
candidate?.scrollIntoView({ block: "nearest" });
|
|
91112
|
+
if (candidate === firstItem && viewport) viewport.scrollTop = 0;
|
|
91113
|
+
if (candidate === lastItem && viewport) viewport.scrollTop = viewport.scrollHeight;
|
|
91114
|
+
candidate?.focus();
|
|
91115
|
+
if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;
|
|
91116
|
+
}
|
|
91117
|
+
},
|
|
91118
|
+
[getItems, viewport]
|
|
91119
|
+
);
|
|
91120
|
+
const focusSelectedItem = react.useCallback(
|
|
91121
|
+
() => focusFirst([selectedItem, content]),
|
|
91122
|
+
[focusFirst, selectedItem, content]
|
|
91123
|
+
);
|
|
91124
|
+
react.useEffect(() => {
|
|
91125
|
+
if (isPositioned) {
|
|
91126
|
+
focusSelectedItem();
|
|
91127
|
+
}
|
|
91128
|
+
}, [isPositioned, focusSelectedItem]);
|
|
91129
|
+
const { onOpenChange, triggerPointerDownPosRef } = context;
|
|
91130
|
+
react.useEffect(() => {
|
|
91131
|
+
if (content) {
|
|
91132
|
+
let pointerMoveDelta = { x: 0, y: 0 };
|
|
91133
|
+
const handlePointerMove = (event) => {
|
|
91134
|
+
pointerMoveDelta = {
|
|
91135
|
+
x: Math.abs(Math.round(event.pageX) - (triggerPointerDownPosRef.current?.x ?? 0)),
|
|
91136
|
+
y: Math.abs(Math.round(event.pageY) - (triggerPointerDownPosRef.current?.y ?? 0))
|
|
91137
|
+
};
|
|
91138
|
+
};
|
|
91139
|
+
const handlePointerUp = (event) => {
|
|
91140
|
+
if (pointerMoveDelta.x <= 10 && pointerMoveDelta.y <= 10) {
|
|
91141
|
+
event.preventDefault();
|
|
91142
|
+
} else {
|
|
91143
|
+
if (!content.contains(event.target)) {
|
|
91144
|
+
onOpenChange(false);
|
|
91145
|
+
}
|
|
91146
|
+
}
|
|
91147
|
+
document.removeEventListener("pointermove", handlePointerMove);
|
|
91148
|
+
triggerPointerDownPosRef.current = null;
|
|
91149
|
+
};
|
|
91150
|
+
if (triggerPointerDownPosRef.current !== null) {
|
|
91151
|
+
document.addEventListener("pointermove", handlePointerMove);
|
|
91152
|
+
document.addEventListener("pointerup", handlePointerUp, { capture: true, once: true });
|
|
91153
|
+
}
|
|
91154
|
+
return () => {
|
|
91155
|
+
document.removeEventListener("pointermove", handlePointerMove);
|
|
91156
|
+
document.removeEventListener("pointerup", handlePointerUp, { capture: true });
|
|
91157
|
+
};
|
|
91158
|
+
}
|
|
91159
|
+
}, [content, onOpenChange, triggerPointerDownPosRef]);
|
|
91160
|
+
react.useEffect(() => {
|
|
91161
|
+
const close = () => onOpenChange(false);
|
|
91162
|
+
window.addEventListener("blur", close);
|
|
91163
|
+
window.addEventListener("resize", close);
|
|
91164
|
+
return () => {
|
|
91165
|
+
window.removeEventListener("blur", close);
|
|
91166
|
+
window.removeEventListener("resize", close);
|
|
91167
|
+
};
|
|
91168
|
+
}, [onOpenChange]);
|
|
91169
|
+
const [searchRef, handleTypeaheadSearch] = useTypeaheadSearch((search) => {
|
|
91170
|
+
const enabledItems = getItems().filter((item) => !item.disabled);
|
|
91171
|
+
const currentItem = enabledItems.find((item) => item.ref.current === document.activeElement);
|
|
91172
|
+
const nextItem = findNextItem(enabledItems, search, currentItem);
|
|
91173
|
+
if (nextItem) {
|
|
91174
|
+
setTimeout(() => nextItem.ref.current.focus());
|
|
91175
|
+
}
|
|
91176
|
+
});
|
|
91177
|
+
const itemRefCallback = react.useCallback(
|
|
91178
|
+
(node, value, disabled) => {
|
|
91179
|
+
const isFirstValidItem = !firstValidItemFoundRef.current && !disabled;
|
|
91180
|
+
const isSelectedItem = context.value !== void 0 && context.value === value;
|
|
91181
|
+
if (isSelectedItem || isFirstValidItem) {
|
|
91182
|
+
setSelectedItem(node);
|
|
91183
|
+
if (isFirstValidItem) firstValidItemFoundRef.current = true;
|
|
91184
|
+
}
|
|
91185
|
+
},
|
|
91186
|
+
[context.value]
|
|
91187
|
+
);
|
|
91188
|
+
const handleItemLeave = react.useCallback(() => content?.focus(), [content]);
|
|
91189
|
+
const itemTextRefCallback = react.useCallback(
|
|
91190
|
+
(node, value, disabled) => {
|
|
91191
|
+
const isFirstValidItem = !firstValidItemFoundRef.current && !disabled;
|
|
91192
|
+
const isSelectedItem = context.value !== void 0 && context.value === value;
|
|
91193
|
+
if (isSelectedItem || isFirstValidItem) {
|
|
91194
|
+
setSelectedItemText(node);
|
|
91195
|
+
}
|
|
91196
|
+
},
|
|
91197
|
+
[context.value]
|
|
91198
|
+
);
|
|
91199
|
+
const SelectPosition = position === "popper" ? SelectPopperPosition : SelectItemAlignedPosition;
|
|
91200
|
+
const popperContentProps = SelectPosition === SelectPopperPosition ? {
|
|
91201
|
+
side,
|
|
91202
|
+
sideOffset,
|
|
91203
|
+
align,
|
|
91204
|
+
alignOffset,
|
|
91205
|
+
arrowPadding,
|
|
91206
|
+
collisionBoundary,
|
|
91207
|
+
collisionPadding,
|
|
91208
|
+
sticky,
|
|
91209
|
+
hideWhenDetached,
|
|
91210
|
+
avoidCollisions
|
|
91211
|
+
} : {};
|
|
91212
|
+
return /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
91213
|
+
SelectContentProvider,
|
|
91214
|
+
{
|
|
91215
|
+
scope: __scopeSelect,
|
|
91216
|
+
content,
|
|
91217
|
+
viewport,
|
|
91218
|
+
onViewportChange: setViewport,
|
|
91219
|
+
itemRefCallback,
|
|
91220
|
+
selectedItem,
|
|
91221
|
+
onItemLeave: handleItemLeave,
|
|
91222
|
+
itemTextRefCallback,
|
|
91223
|
+
focusSelectedItem,
|
|
91224
|
+
selectedItemText,
|
|
91225
|
+
position,
|
|
91226
|
+
isPositioned,
|
|
91227
|
+
searchRef,
|
|
91228
|
+
children: /* @__PURE__ */ (0,jsx_runtime.jsx)(Combination, { as: $5e63c961fc1ce211$export$8c6ed5c666ac1360, allowPinchZoom: true, children: /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
91229
|
+
FocusScope,
|
|
91230
|
+
{
|
|
91231
|
+
asChild: true,
|
|
91232
|
+
trapped: context.open,
|
|
91233
|
+
onMountAutoFocus: (event) => {
|
|
91234
|
+
event.preventDefault();
|
|
91235
|
+
},
|
|
91236
|
+
onUnmountAutoFocus: composeEventHandlers(onCloseAutoFocus, (event) => {
|
|
91237
|
+
context.trigger?.focus({ preventScroll: true });
|
|
91238
|
+
event.preventDefault();
|
|
91239
|
+
}),
|
|
91240
|
+
children: /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
91241
|
+
DismissableLayer,
|
|
91242
|
+
{
|
|
91243
|
+
asChild: true,
|
|
91244
|
+
disableOutsidePointerEvents: true,
|
|
91245
|
+
onEscapeKeyDown,
|
|
91246
|
+
onPointerDownOutside,
|
|
91247
|
+
onFocusOutside: (event) => event.preventDefault(),
|
|
91248
|
+
onDismiss: () => context.onOpenChange(false),
|
|
91249
|
+
children: /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
91250
|
+
SelectPosition,
|
|
91251
|
+
{
|
|
91252
|
+
role: "listbox",
|
|
91253
|
+
id: context.contentId,
|
|
91254
|
+
"data-state": context.open ? "open" : "closed",
|
|
91255
|
+
dir: context.dir,
|
|
91256
|
+
onContextMenu: (event) => event.preventDefault(),
|
|
91257
|
+
...contentProps,
|
|
91258
|
+
...popperContentProps,
|
|
91259
|
+
onPlaced: () => setIsPositioned(true),
|
|
91260
|
+
ref: composedRefs,
|
|
91261
|
+
style: {
|
|
91262
|
+
// flex layout so we can place the scroll buttons properly
|
|
91263
|
+
display: "flex",
|
|
91264
|
+
flexDirection: "column",
|
|
91265
|
+
// reset the outline by default as the content MAY get focused
|
|
91266
|
+
outline: "none",
|
|
91267
|
+
...contentProps.style
|
|
91268
|
+
},
|
|
91269
|
+
onKeyDown: composeEventHandlers(contentProps.onKeyDown, (event) => {
|
|
91270
|
+
const isModifierKey = event.ctrlKey || event.altKey || event.metaKey;
|
|
91271
|
+
if (event.key === "Tab") event.preventDefault();
|
|
91272
|
+
if (!isModifierKey && event.key.length === 1) handleTypeaheadSearch(event.key);
|
|
91273
|
+
if (["ArrowUp", "ArrowDown", "Home", "End"].includes(event.key)) {
|
|
91274
|
+
const items = getItems().filter((item) => !item.disabled);
|
|
91275
|
+
let candidateNodes = items.map((item) => item.ref.current);
|
|
91276
|
+
if (["ArrowUp", "End"].includes(event.key)) {
|
|
91277
|
+
candidateNodes = candidateNodes.slice().reverse();
|
|
91278
|
+
}
|
|
91279
|
+
if (["ArrowUp", "ArrowDown"].includes(event.key)) {
|
|
91280
|
+
const currentElement = event.target;
|
|
91281
|
+
const currentIndex = candidateNodes.indexOf(currentElement);
|
|
91282
|
+
candidateNodes = candidateNodes.slice(currentIndex + 1);
|
|
91283
|
+
}
|
|
91284
|
+
setTimeout(() => focusFirst(candidateNodes));
|
|
91285
|
+
event.preventDefault();
|
|
91286
|
+
}
|
|
91287
|
+
})
|
|
91288
|
+
}
|
|
91289
|
+
)
|
|
91290
|
+
}
|
|
91291
|
+
)
|
|
91292
|
+
}
|
|
91293
|
+
) })
|
|
91294
|
+
}
|
|
91295
|
+
);
|
|
91296
|
+
}
|
|
91297
|
+
);
|
|
91298
|
+
SelectContentImpl.displayName = CONTENT_IMPL_NAME;
|
|
91299
|
+
var ITEM_ALIGNED_POSITION_NAME = "SelectItemAlignedPosition";
|
|
91300
|
+
var SelectItemAlignedPosition = react.forwardRef((props, forwardedRef) => {
|
|
91301
|
+
const { __scopeSelect, onPlaced, ...popperProps } = props;
|
|
91302
|
+
const context = useSelectContext(react_select_dist_CONTENT_NAME, __scopeSelect);
|
|
91303
|
+
const contentContext = useSelectContentContext(react_select_dist_CONTENT_NAME, __scopeSelect);
|
|
91304
|
+
const [contentWrapper, setContentWrapper] = react.useState(null);
|
|
91305
|
+
const [content, setContent] = react.useState(null);
|
|
91306
|
+
const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));
|
|
91307
|
+
const getItems = useCollection(__scopeSelect);
|
|
91308
|
+
const shouldExpandOnScrollRef = react.useRef(false);
|
|
91309
|
+
const shouldRepositionRef = react.useRef(true);
|
|
91310
|
+
const { viewport, selectedItem, selectedItemText, focusSelectedItem } = contentContext;
|
|
91311
|
+
const position = react.useCallback(() => {
|
|
91312
|
+
if (context.trigger && context.valueNode && contentWrapper && content && viewport && selectedItem && selectedItemText) {
|
|
91313
|
+
const triggerRect = context.trigger.getBoundingClientRect();
|
|
91314
|
+
const contentRect = content.getBoundingClientRect();
|
|
91315
|
+
const valueNodeRect = context.valueNode.getBoundingClientRect();
|
|
91316
|
+
const itemTextRect = selectedItemText.getBoundingClientRect();
|
|
91317
|
+
if (context.dir !== "rtl") {
|
|
91318
|
+
const itemTextOffset = itemTextRect.left - contentRect.left;
|
|
91319
|
+
const left = valueNodeRect.left - itemTextOffset;
|
|
91320
|
+
const leftDelta = triggerRect.left - left;
|
|
91321
|
+
const minContentWidth = triggerRect.width + leftDelta;
|
|
91322
|
+
const contentWidth = Math.max(minContentWidth, contentRect.width);
|
|
91323
|
+
const rightEdge = window.innerWidth - CONTENT_MARGIN;
|
|
91324
|
+
const clampedLeft = clamp(left, [CONTENT_MARGIN, rightEdge - contentWidth]);
|
|
91325
|
+
contentWrapper.style.minWidth = minContentWidth + "px";
|
|
91326
|
+
contentWrapper.style.left = clampedLeft + "px";
|
|
91327
|
+
} else {
|
|
91328
|
+
const itemTextOffset = contentRect.right - itemTextRect.right;
|
|
91329
|
+
const right = window.innerWidth - valueNodeRect.right - itemTextOffset;
|
|
91330
|
+
const rightDelta = window.innerWidth - triggerRect.right - right;
|
|
91331
|
+
const minContentWidth = triggerRect.width + rightDelta;
|
|
91332
|
+
const contentWidth = Math.max(minContentWidth, contentRect.width);
|
|
91333
|
+
const leftEdge = window.innerWidth - CONTENT_MARGIN;
|
|
91334
|
+
const clampedRight = clamp(right, [CONTENT_MARGIN, leftEdge - contentWidth]);
|
|
91335
|
+
contentWrapper.style.minWidth = minContentWidth + "px";
|
|
91336
|
+
contentWrapper.style.right = clampedRight + "px";
|
|
91337
|
+
}
|
|
91338
|
+
const items = getItems();
|
|
91339
|
+
const availableHeight = window.innerHeight - CONTENT_MARGIN * 2;
|
|
91340
|
+
const itemsHeight = viewport.scrollHeight;
|
|
91341
|
+
const contentStyles = window.getComputedStyle(content);
|
|
91342
|
+
const contentBorderTopWidth = parseInt(contentStyles.borderTopWidth, 10);
|
|
91343
|
+
const contentPaddingTop = parseInt(contentStyles.paddingTop, 10);
|
|
91344
|
+
const contentBorderBottomWidth = parseInt(contentStyles.borderBottomWidth, 10);
|
|
91345
|
+
const contentPaddingBottom = parseInt(contentStyles.paddingBottom, 10);
|
|
91346
|
+
const fullContentHeight = contentBorderTopWidth + contentPaddingTop + itemsHeight + contentPaddingBottom + contentBorderBottomWidth;
|
|
91347
|
+
const minContentHeight = Math.min(selectedItem.offsetHeight * 5, fullContentHeight);
|
|
91348
|
+
const viewportStyles = window.getComputedStyle(viewport);
|
|
91349
|
+
const viewportPaddingTop = parseInt(viewportStyles.paddingTop, 10);
|
|
91350
|
+
const viewportPaddingBottom = parseInt(viewportStyles.paddingBottom, 10);
|
|
91351
|
+
const topEdgeToTriggerMiddle = triggerRect.top + triggerRect.height / 2 - CONTENT_MARGIN;
|
|
91352
|
+
const triggerMiddleToBottomEdge = availableHeight - topEdgeToTriggerMiddle;
|
|
91353
|
+
const selectedItemHalfHeight = selectedItem.offsetHeight / 2;
|
|
91354
|
+
const itemOffsetMiddle = selectedItem.offsetTop + selectedItemHalfHeight;
|
|
91355
|
+
const contentTopToItemMiddle = contentBorderTopWidth + contentPaddingTop + itemOffsetMiddle;
|
|
91356
|
+
const itemMiddleToContentBottom = fullContentHeight - contentTopToItemMiddle;
|
|
91357
|
+
const willAlignWithoutTopOverflow = contentTopToItemMiddle <= topEdgeToTriggerMiddle;
|
|
91358
|
+
if (willAlignWithoutTopOverflow) {
|
|
91359
|
+
const isLastItem = selectedItem === items[items.length - 1].ref.current;
|
|
91360
|
+
contentWrapper.style.bottom = "0px";
|
|
91361
|
+
const viewportOffsetBottom = content.clientHeight - viewport.offsetTop - viewport.offsetHeight;
|
|
91362
|
+
const clampedTriggerMiddleToBottomEdge = Math.max(
|
|
91363
|
+
triggerMiddleToBottomEdge,
|
|
91364
|
+
selectedItemHalfHeight + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
91365
|
+
(isLastItem ? viewportPaddingBottom : 0) + viewportOffsetBottom + contentBorderBottomWidth
|
|
91366
|
+
);
|
|
91367
|
+
const height = contentTopToItemMiddle + clampedTriggerMiddleToBottomEdge;
|
|
91368
|
+
contentWrapper.style.height = height + "px";
|
|
91369
|
+
} else {
|
|
91370
|
+
const isFirstItem = selectedItem === items[0].ref.current;
|
|
91371
|
+
contentWrapper.style.top = "0px";
|
|
91372
|
+
const clampedTopEdgeToTriggerMiddle = Math.max(
|
|
91373
|
+
topEdgeToTriggerMiddle,
|
|
91374
|
+
contentBorderTopWidth + viewport.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
91375
|
+
(isFirstItem ? viewportPaddingTop : 0) + selectedItemHalfHeight
|
|
91376
|
+
);
|
|
91377
|
+
const height = clampedTopEdgeToTriggerMiddle + itemMiddleToContentBottom;
|
|
91378
|
+
contentWrapper.style.height = height + "px";
|
|
91379
|
+
viewport.scrollTop = contentTopToItemMiddle - topEdgeToTriggerMiddle + viewport.offsetTop;
|
|
91380
|
+
}
|
|
91381
|
+
contentWrapper.style.margin = `${CONTENT_MARGIN}px 0`;
|
|
91382
|
+
contentWrapper.style.minHeight = minContentHeight + "px";
|
|
91383
|
+
contentWrapper.style.maxHeight = availableHeight + "px";
|
|
91384
|
+
onPlaced?.();
|
|
91385
|
+
requestAnimationFrame(() => shouldExpandOnScrollRef.current = true);
|
|
91386
|
+
}
|
|
91387
|
+
}, [
|
|
91388
|
+
getItems,
|
|
91389
|
+
context.trigger,
|
|
91390
|
+
context.valueNode,
|
|
91391
|
+
contentWrapper,
|
|
91392
|
+
content,
|
|
91393
|
+
viewport,
|
|
91394
|
+
selectedItem,
|
|
91395
|
+
selectedItemText,
|
|
91396
|
+
context.dir,
|
|
91397
|
+
onPlaced
|
|
91398
|
+
]);
|
|
91399
|
+
useLayoutEffect2(() => position(), [position]);
|
|
91400
|
+
const [contentZIndex, setContentZIndex] = react.useState();
|
|
91401
|
+
useLayoutEffect2(() => {
|
|
91402
|
+
if (content) setContentZIndex(window.getComputedStyle(content).zIndex);
|
|
91403
|
+
}, [content]);
|
|
91404
|
+
const handleScrollButtonChange = react.useCallback(
|
|
91405
|
+
(node) => {
|
|
91406
|
+
if (node && shouldRepositionRef.current === true) {
|
|
91407
|
+
position();
|
|
91408
|
+
focusSelectedItem?.();
|
|
91409
|
+
shouldRepositionRef.current = false;
|
|
91410
|
+
}
|
|
91411
|
+
},
|
|
91412
|
+
[position, focusSelectedItem]
|
|
91413
|
+
);
|
|
91414
|
+
return /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
91415
|
+
SelectViewportProvider,
|
|
91416
|
+
{
|
|
91417
|
+
scope: __scopeSelect,
|
|
91418
|
+
contentWrapper,
|
|
91419
|
+
shouldExpandOnScrollRef,
|
|
91420
|
+
onScrollButtonChange: handleScrollButtonChange,
|
|
91421
|
+
children: /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
91422
|
+
"div",
|
|
91423
|
+
{
|
|
91424
|
+
ref: setContentWrapper,
|
|
91425
|
+
style: {
|
|
91426
|
+
display: "flex",
|
|
91427
|
+
flexDirection: "column",
|
|
91428
|
+
position: "fixed",
|
|
91429
|
+
zIndex: contentZIndex
|
|
91430
|
+
},
|
|
91431
|
+
children: /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
91432
|
+
Primitive.div,
|
|
91433
|
+
{
|
|
91434
|
+
...popperProps,
|
|
91435
|
+
ref: composedRefs,
|
|
91436
|
+
style: {
|
|
91437
|
+
// When we get the height of the content, it includes borders. If we were to set
|
|
91438
|
+
// the height without having `boxSizing: 'border-box'` it would be too big.
|
|
91439
|
+
boxSizing: "border-box",
|
|
91440
|
+
// We need to ensure the content doesn't get taller than the wrapper
|
|
91441
|
+
maxHeight: "100%",
|
|
91442
|
+
...popperProps.style
|
|
91443
|
+
}
|
|
91444
|
+
}
|
|
91445
|
+
)
|
|
91446
|
+
}
|
|
91447
|
+
)
|
|
91448
|
+
}
|
|
91449
|
+
);
|
|
91450
|
+
});
|
|
91451
|
+
SelectItemAlignedPosition.displayName = ITEM_ALIGNED_POSITION_NAME;
|
|
91452
|
+
var POPPER_POSITION_NAME = "SelectPopperPosition";
|
|
91453
|
+
var SelectPopperPosition = react.forwardRef((props, forwardedRef) => {
|
|
91454
|
+
const {
|
|
91455
|
+
__scopeSelect,
|
|
91456
|
+
align = "start",
|
|
91457
|
+
collisionPadding = CONTENT_MARGIN,
|
|
91458
|
+
...popperProps
|
|
91459
|
+
} = props;
|
|
91460
|
+
const popperScope = usePopperScope(__scopeSelect);
|
|
91461
|
+
return /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
91462
|
+
dist_Content,
|
|
91463
|
+
{
|
|
91464
|
+
...popperScope,
|
|
91465
|
+
...popperProps,
|
|
91466
|
+
ref: forwardedRef,
|
|
91467
|
+
align,
|
|
91468
|
+
collisionPadding,
|
|
91469
|
+
style: {
|
|
91470
|
+
// Ensure border-box for floating-ui calculations
|
|
91471
|
+
boxSizing: "border-box",
|
|
91472
|
+
...popperProps.style,
|
|
91473
|
+
// re-namespace exposed content custom properties
|
|
91474
|
+
...{
|
|
91475
|
+
"--radix-select-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
91476
|
+
"--radix-select-content-available-width": "var(--radix-popper-available-width)",
|
|
91477
|
+
"--radix-select-content-available-height": "var(--radix-popper-available-height)",
|
|
91478
|
+
"--radix-select-trigger-width": "var(--radix-popper-anchor-width)",
|
|
91479
|
+
"--radix-select-trigger-height": "var(--radix-popper-anchor-height)"
|
|
91480
|
+
}
|
|
91481
|
+
}
|
|
91482
|
+
}
|
|
91483
|
+
);
|
|
91484
|
+
});
|
|
91485
|
+
SelectPopperPosition.displayName = POPPER_POSITION_NAME;
|
|
91486
|
+
var [SelectViewportProvider, useSelectViewportContext] = createSelectContext(react_select_dist_CONTENT_NAME, {});
|
|
91487
|
+
var VIEWPORT_NAME = "SelectViewport";
|
|
91488
|
+
var SelectViewport = react.forwardRef(
|
|
91489
|
+
(props, forwardedRef) => {
|
|
91490
|
+
const { __scopeSelect, nonce, ...viewportProps } = props;
|
|
91491
|
+
const contentContext = useSelectContentContext(VIEWPORT_NAME, __scopeSelect);
|
|
91492
|
+
const viewportContext = useSelectViewportContext(VIEWPORT_NAME, __scopeSelect);
|
|
91493
|
+
const composedRefs = useComposedRefs(forwardedRef, contentContext.onViewportChange);
|
|
91494
|
+
const prevScrollTopRef = react.useRef(0);
|
|
91495
|
+
return /* @__PURE__ */ (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, { children: [
|
|
91496
|
+
/* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
91497
|
+
"style",
|
|
91498
|
+
{
|
|
91499
|
+
dangerouslySetInnerHTML: {
|
|
91500
|
+
__html: `[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`
|
|
91501
|
+
},
|
|
91502
|
+
nonce
|
|
91503
|
+
}
|
|
91504
|
+
),
|
|
91505
|
+
/* @__PURE__ */ (0,jsx_runtime.jsx)(Collection.Slot, { scope: __scopeSelect, children: /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
91506
|
+
Primitive.div,
|
|
91507
|
+
{
|
|
91508
|
+
"data-radix-select-viewport": "",
|
|
91509
|
+
role: "presentation",
|
|
91510
|
+
...viewportProps,
|
|
91511
|
+
ref: composedRefs,
|
|
91512
|
+
style: {
|
|
91513
|
+
// we use position: 'relative' here on the `viewport` so that when we call
|
|
91514
|
+
// `selectedItem.offsetTop` in calculations, the offset is relative to the viewport
|
|
91515
|
+
// (independent of the scrollUpButton).
|
|
91516
|
+
position: "relative",
|
|
91517
|
+
flex: 1,
|
|
91518
|
+
overflow: "auto",
|
|
91519
|
+
...viewportProps.style
|
|
91520
|
+
},
|
|
91521
|
+
onScroll: composeEventHandlers(viewportProps.onScroll, (event) => {
|
|
91522
|
+
const viewport = event.currentTarget;
|
|
91523
|
+
const { contentWrapper, shouldExpandOnScrollRef } = viewportContext;
|
|
91524
|
+
if (shouldExpandOnScrollRef?.current && contentWrapper) {
|
|
91525
|
+
const scrolledBy = Math.abs(prevScrollTopRef.current - viewport.scrollTop);
|
|
91526
|
+
if (scrolledBy > 0) {
|
|
91527
|
+
const availableHeight = window.innerHeight - CONTENT_MARGIN * 2;
|
|
91528
|
+
const cssMinHeight = parseFloat(contentWrapper.style.minHeight);
|
|
91529
|
+
const cssHeight = parseFloat(contentWrapper.style.height);
|
|
91530
|
+
const prevHeight = Math.max(cssMinHeight, cssHeight);
|
|
91531
|
+
if (prevHeight < availableHeight) {
|
|
91532
|
+
const nextHeight = prevHeight + scrolledBy;
|
|
91533
|
+
const clampedNextHeight = Math.min(availableHeight, nextHeight);
|
|
91534
|
+
const heightDiff = nextHeight - clampedNextHeight;
|
|
91535
|
+
contentWrapper.style.height = clampedNextHeight + "px";
|
|
91536
|
+
if (contentWrapper.style.bottom === "0px") {
|
|
91537
|
+
viewport.scrollTop = heightDiff > 0 ? heightDiff : 0;
|
|
91538
|
+
contentWrapper.style.justifyContent = "flex-end";
|
|
91539
|
+
}
|
|
91540
|
+
}
|
|
91541
|
+
}
|
|
91542
|
+
}
|
|
91543
|
+
prevScrollTopRef.current = viewport.scrollTop;
|
|
91544
|
+
})
|
|
91545
|
+
}
|
|
91546
|
+
) })
|
|
91547
|
+
] });
|
|
91548
|
+
}
|
|
91549
|
+
);
|
|
91550
|
+
SelectViewport.displayName = VIEWPORT_NAME;
|
|
91551
|
+
var GROUP_NAME = "SelectGroup";
|
|
91552
|
+
var [SelectGroupContextProvider, useSelectGroupContext] = createSelectContext(GROUP_NAME);
|
|
91553
|
+
var SelectGroup = react.forwardRef(
|
|
91554
|
+
(props, forwardedRef) => {
|
|
91555
|
+
const { __scopeSelect, ...groupProps } = props;
|
|
91556
|
+
const groupId = useId();
|
|
91557
|
+
return /* @__PURE__ */ (0,jsx_runtime.jsx)(SelectGroupContextProvider, { scope: __scopeSelect, id: groupId, children: /* @__PURE__ */ (0,jsx_runtime.jsx)(Primitive.div, { role: "group", "aria-labelledby": groupId, ...groupProps, ref: forwardedRef }) });
|
|
91558
|
+
}
|
|
91559
|
+
);
|
|
91560
|
+
SelectGroup.displayName = GROUP_NAME;
|
|
91561
|
+
var LABEL_NAME = "SelectLabel";
|
|
91562
|
+
var SelectLabel = react.forwardRef(
|
|
91563
|
+
(props, forwardedRef) => {
|
|
91564
|
+
const { __scopeSelect, ...labelProps } = props;
|
|
91565
|
+
const groupContext = useSelectGroupContext(LABEL_NAME, __scopeSelect);
|
|
91566
|
+
return /* @__PURE__ */ (0,jsx_runtime.jsx)(Primitive.div, { id: groupContext.id, ...labelProps, ref: forwardedRef });
|
|
91567
|
+
}
|
|
91568
|
+
);
|
|
91569
|
+
SelectLabel.displayName = LABEL_NAME;
|
|
91570
|
+
var ITEM_NAME = "SelectItem";
|
|
91571
|
+
var [SelectItemContextProvider, useSelectItemContext] = createSelectContext(ITEM_NAME);
|
|
91572
|
+
var dist_SelectItem = react.forwardRef(
|
|
91573
|
+
(props, forwardedRef) => {
|
|
91574
|
+
const {
|
|
91575
|
+
__scopeSelect,
|
|
91576
|
+
value,
|
|
91577
|
+
disabled = false,
|
|
91578
|
+
textValue: textValueProp,
|
|
91579
|
+
...itemProps
|
|
91580
|
+
} = props;
|
|
91581
|
+
const context = useSelectContext(ITEM_NAME, __scopeSelect);
|
|
91582
|
+
const contentContext = useSelectContentContext(ITEM_NAME, __scopeSelect);
|
|
91583
|
+
const isSelected = context.value === value;
|
|
91584
|
+
const [textValue, setTextValue] = react.useState(textValueProp ?? "");
|
|
91585
|
+
const [isFocused, setIsFocused] = react.useState(false);
|
|
91586
|
+
const composedRefs = useComposedRefs(
|
|
91587
|
+
forwardedRef,
|
|
91588
|
+
(node) => contentContext.itemRefCallback?.(node, value, disabled)
|
|
91589
|
+
);
|
|
91590
|
+
const textId = useId();
|
|
91591
|
+
const handleSelect = () => {
|
|
91592
|
+
if (!disabled) {
|
|
91593
|
+
context.onValueChange(value);
|
|
91594
|
+
context.onOpenChange(false);
|
|
91595
|
+
}
|
|
91596
|
+
};
|
|
91597
|
+
if (value === "") {
|
|
91598
|
+
throw new Error(
|
|
91599
|
+
"A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
|
|
91600
|
+
);
|
|
91601
|
+
}
|
|
91602
|
+
return /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
91603
|
+
SelectItemContextProvider,
|
|
91604
|
+
{
|
|
91605
|
+
scope: __scopeSelect,
|
|
91606
|
+
value,
|
|
91607
|
+
disabled,
|
|
91608
|
+
textId,
|
|
91609
|
+
isSelected,
|
|
91610
|
+
onItemTextChange: react.useCallback((node) => {
|
|
91611
|
+
setTextValue((prevTextValue) => prevTextValue || (node?.textContent ?? "").trim());
|
|
91612
|
+
}, []),
|
|
91613
|
+
children: /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
91614
|
+
Collection.ItemSlot,
|
|
91615
|
+
{
|
|
91616
|
+
scope: __scopeSelect,
|
|
91617
|
+
value,
|
|
91618
|
+
disabled,
|
|
91619
|
+
textValue,
|
|
91620
|
+
children: /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
91621
|
+
Primitive.div,
|
|
91622
|
+
{
|
|
91623
|
+
role: "option",
|
|
91624
|
+
"aria-labelledby": textId,
|
|
91625
|
+
"data-highlighted": isFocused ? "" : void 0,
|
|
91626
|
+
"aria-selected": isSelected && isFocused,
|
|
91627
|
+
"data-state": isSelected ? "checked" : "unchecked",
|
|
91628
|
+
"aria-disabled": disabled || void 0,
|
|
91629
|
+
"data-disabled": disabled ? "" : void 0,
|
|
91630
|
+
tabIndex: disabled ? void 0 : -1,
|
|
91631
|
+
...itemProps,
|
|
91632
|
+
ref: composedRefs,
|
|
91633
|
+
onFocus: composeEventHandlers(itemProps.onFocus, () => setIsFocused(true)),
|
|
91634
|
+
onBlur: composeEventHandlers(itemProps.onBlur, () => setIsFocused(false)),
|
|
91635
|
+
onPointerUp: composeEventHandlers(itemProps.onPointerUp, handleSelect),
|
|
91636
|
+
onPointerMove: composeEventHandlers(itemProps.onPointerMove, (event) => {
|
|
91637
|
+
if (disabled) {
|
|
91638
|
+
contentContext.onItemLeave?.();
|
|
91639
|
+
} else {
|
|
91640
|
+
event.currentTarget.focus({ preventScroll: true });
|
|
91641
|
+
}
|
|
91642
|
+
}),
|
|
91643
|
+
onPointerLeave: composeEventHandlers(itemProps.onPointerLeave, (event) => {
|
|
91644
|
+
if (event.currentTarget === document.activeElement) {
|
|
91645
|
+
contentContext.onItemLeave?.();
|
|
91646
|
+
}
|
|
91647
|
+
}),
|
|
91648
|
+
onKeyDown: composeEventHandlers(itemProps.onKeyDown, (event) => {
|
|
91649
|
+
const isTypingAhead = contentContext.searchRef?.current !== "";
|
|
91650
|
+
if (isTypingAhead && event.key === " ") return;
|
|
91651
|
+
if (SELECTION_KEYS.includes(event.key)) handleSelect();
|
|
91652
|
+
if (event.key === " ") event.preventDefault();
|
|
91653
|
+
})
|
|
91654
|
+
}
|
|
91655
|
+
)
|
|
91656
|
+
}
|
|
91657
|
+
)
|
|
91658
|
+
}
|
|
91659
|
+
);
|
|
91660
|
+
}
|
|
91661
|
+
);
|
|
91662
|
+
dist_SelectItem.displayName = ITEM_NAME;
|
|
91663
|
+
var ITEM_TEXT_NAME = "SelectItemText";
|
|
91664
|
+
var SelectItemText = react.forwardRef(
|
|
91665
|
+
(props, forwardedRef) => {
|
|
91666
|
+
const { __scopeSelect, className, style, ...itemTextProps } = props;
|
|
91667
|
+
const context = useSelectContext(ITEM_TEXT_NAME, __scopeSelect);
|
|
91668
|
+
const contentContext = useSelectContentContext(ITEM_TEXT_NAME, __scopeSelect);
|
|
91669
|
+
const itemContext = useSelectItemContext(ITEM_TEXT_NAME, __scopeSelect);
|
|
91670
|
+
const nativeOptionsContext = useSelectNativeOptionsContext(ITEM_TEXT_NAME, __scopeSelect);
|
|
91671
|
+
const [itemTextNode, setItemTextNode] = react.useState(null);
|
|
91672
|
+
const composedRefs = useComposedRefs(
|
|
91673
|
+
forwardedRef,
|
|
91674
|
+
(node) => setItemTextNode(node),
|
|
91675
|
+
itemContext.onItemTextChange,
|
|
91676
|
+
(node) => contentContext.itemTextRefCallback?.(node, itemContext.value, itemContext.disabled)
|
|
91677
|
+
);
|
|
91678
|
+
const textContent = itemTextNode?.textContent;
|
|
91679
|
+
const nativeOption = react.useMemo(
|
|
91680
|
+
() => /* @__PURE__ */ (0,jsx_runtime.jsx)("option", { value: itemContext.value, disabled: itemContext.disabled, children: textContent }, itemContext.value),
|
|
91681
|
+
[itemContext.disabled, itemContext.value, textContent]
|
|
91682
|
+
);
|
|
91683
|
+
const { onNativeOptionAdd, onNativeOptionRemove } = nativeOptionsContext;
|
|
91684
|
+
useLayoutEffect2(() => {
|
|
91685
|
+
onNativeOptionAdd(nativeOption);
|
|
91686
|
+
return () => onNativeOptionRemove(nativeOption);
|
|
91687
|
+
}, [onNativeOptionAdd, onNativeOptionRemove, nativeOption]);
|
|
91688
|
+
return /* @__PURE__ */ (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, { children: [
|
|
91689
|
+
/* @__PURE__ */ (0,jsx_runtime.jsx)(Primitive.span, { id: itemContext.textId, ...itemTextProps, ref: composedRefs }),
|
|
91690
|
+
itemContext.isSelected && context.valueNode && !context.valueNodeHasChildren ? react_dom.createPortal(itemTextProps.children, context.valueNode) : null
|
|
91691
|
+
] });
|
|
91692
|
+
}
|
|
91693
|
+
);
|
|
91694
|
+
SelectItemText.displayName = ITEM_TEXT_NAME;
|
|
91695
|
+
var ITEM_INDICATOR_NAME = "SelectItemIndicator";
|
|
91696
|
+
var SelectItemIndicator = react.forwardRef(
|
|
91697
|
+
(props, forwardedRef) => {
|
|
91698
|
+
const { __scopeSelect, ...itemIndicatorProps } = props;
|
|
91699
|
+
const itemContext = useSelectItemContext(ITEM_INDICATOR_NAME, __scopeSelect);
|
|
91700
|
+
return itemContext.isSelected ? /* @__PURE__ */ (0,jsx_runtime.jsx)(Primitive.span, { "aria-hidden": true, ...itemIndicatorProps, ref: forwardedRef }) : null;
|
|
91701
|
+
}
|
|
91702
|
+
);
|
|
91703
|
+
SelectItemIndicator.displayName = ITEM_INDICATOR_NAME;
|
|
91704
|
+
var SCROLL_UP_BUTTON_NAME = "SelectScrollUpButton";
|
|
91705
|
+
var SelectScrollUpButton = react.forwardRef((props, forwardedRef) => {
|
|
91706
|
+
const contentContext = useSelectContentContext(SCROLL_UP_BUTTON_NAME, props.__scopeSelect);
|
|
91707
|
+
const viewportContext = useSelectViewportContext(SCROLL_UP_BUTTON_NAME, props.__scopeSelect);
|
|
91708
|
+
const [canScrollUp, setCanScrollUp] = react.useState(false);
|
|
91709
|
+
const composedRefs = useComposedRefs(forwardedRef, viewportContext.onScrollButtonChange);
|
|
91710
|
+
useLayoutEffect2(() => {
|
|
91711
|
+
if (contentContext.viewport && contentContext.isPositioned) {
|
|
91712
|
+
let handleScroll2 = function() {
|
|
91713
|
+
const canScrollUp2 = viewport.scrollTop > 0;
|
|
91714
|
+
setCanScrollUp(canScrollUp2);
|
|
91715
|
+
};
|
|
91716
|
+
var handleScroll = handleScroll2;
|
|
91717
|
+
const viewport = contentContext.viewport;
|
|
91718
|
+
handleScroll2();
|
|
91719
|
+
viewport.addEventListener("scroll", handleScroll2);
|
|
91720
|
+
return () => viewport.removeEventListener("scroll", handleScroll2);
|
|
91721
|
+
}
|
|
91722
|
+
}, [contentContext.viewport, contentContext.isPositioned]);
|
|
91723
|
+
return canScrollUp ? /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
91724
|
+
SelectScrollButtonImpl,
|
|
91725
|
+
{
|
|
91726
|
+
...props,
|
|
91727
|
+
ref: composedRefs,
|
|
91728
|
+
onAutoScroll: () => {
|
|
91729
|
+
const { viewport, selectedItem } = contentContext;
|
|
91730
|
+
if (viewport && selectedItem) {
|
|
91731
|
+
viewport.scrollTop = viewport.scrollTop - selectedItem.offsetHeight;
|
|
91732
|
+
}
|
|
91733
|
+
}
|
|
91734
|
+
}
|
|
91735
|
+
) : null;
|
|
91736
|
+
});
|
|
91737
|
+
SelectScrollUpButton.displayName = SCROLL_UP_BUTTON_NAME;
|
|
91738
|
+
var SCROLL_DOWN_BUTTON_NAME = "SelectScrollDownButton";
|
|
91739
|
+
var SelectScrollDownButton = react.forwardRef((props, forwardedRef) => {
|
|
91740
|
+
const contentContext = useSelectContentContext(SCROLL_DOWN_BUTTON_NAME, props.__scopeSelect);
|
|
91741
|
+
const viewportContext = useSelectViewportContext(SCROLL_DOWN_BUTTON_NAME, props.__scopeSelect);
|
|
91742
|
+
const [canScrollDown, setCanScrollDown] = react.useState(false);
|
|
91743
|
+
const composedRefs = useComposedRefs(forwardedRef, viewportContext.onScrollButtonChange);
|
|
91744
|
+
useLayoutEffect2(() => {
|
|
91745
|
+
if (contentContext.viewport && contentContext.isPositioned) {
|
|
91746
|
+
let handleScroll2 = function() {
|
|
91747
|
+
const maxScroll = viewport.scrollHeight - viewport.clientHeight;
|
|
91748
|
+
const canScrollDown2 = Math.ceil(viewport.scrollTop) < maxScroll;
|
|
91749
|
+
setCanScrollDown(canScrollDown2);
|
|
91750
|
+
};
|
|
91751
|
+
var handleScroll = handleScroll2;
|
|
91752
|
+
const viewport = contentContext.viewport;
|
|
91753
|
+
handleScroll2();
|
|
91754
|
+
viewport.addEventListener("scroll", handleScroll2);
|
|
91755
|
+
return () => viewport.removeEventListener("scroll", handleScroll2);
|
|
91756
|
+
}
|
|
91757
|
+
}, [contentContext.viewport, contentContext.isPositioned]);
|
|
91758
|
+
return canScrollDown ? /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
91759
|
+
SelectScrollButtonImpl,
|
|
91760
|
+
{
|
|
91761
|
+
...props,
|
|
91762
|
+
ref: composedRefs,
|
|
91763
|
+
onAutoScroll: () => {
|
|
91764
|
+
const { viewport, selectedItem } = contentContext;
|
|
91765
|
+
if (viewport && selectedItem) {
|
|
91766
|
+
viewport.scrollTop = viewport.scrollTop + selectedItem.offsetHeight;
|
|
91767
|
+
}
|
|
91768
|
+
}
|
|
91769
|
+
}
|
|
91770
|
+
) : null;
|
|
91771
|
+
});
|
|
91772
|
+
SelectScrollDownButton.displayName = SCROLL_DOWN_BUTTON_NAME;
|
|
91773
|
+
var SelectScrollButtonImpl = react.forwardRef((props, forwardedRef) => {
|
|
91774
|
+
const { __scopeSelect, onAutoScroll, ...scrollIndicatorProps } = props;
|
|
91775
|
+
const contentContext = useSelectContentContext("SelectScrollButton", __scopeSelect);
|
|
91776
|
+
const autoScrollTimerRef = react.useRef(null);
|
|
91777
|
+
const getItems = useCollection(__scopeSelect);
|
|
91778
|
+
const clearAutoScrollTimer = react.useCallback(() => {
|
|
91779
|
+
if (autoScrollTimerRef.current !== null) {
|
|
91780
|
+
window.clearInterval(autoScrollTimerRef.current);
|
|
91781
|
+
autoScrollTimerRef.current = null;
|
|
91782
|
+
}
|
|
91783
|
+
}, []);
|
|
91784
|
+
react.useEffect(() => {
|
|
91785
|
+
return () => clearAutoScrollTimer();
|
|
91786
|
+
}, [clearAutoScrollTimer]);
|
|
91787
|
+
useLayoutEffect2(() => {
|
|
91788
|
+
const activeItem = getItems().find((item) => item.ref.current === document.activeElement);
|
|
91789
|
+
activeItem?.ref.current?.scrollIntoView({ block: "nearest" });
|
|
91790
|
+
}, [getItems]);
|
|
91791
|
+
return /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
91792
|
+
Primitive.div,
|
|
91793
|
+
{
|
|
91794
|
+
"aria-hidden": true,
|
|
91795
|
+
...scrollIndicatorProps,
|
|
91796
|
+
ref: forwardedRef,
|
|
91797
|
+
style: { flexShrink: 0, ...scrollIndicatorProps.style },
|
|
91798
|
+
onPointerDown: composeEventHandlers(scrollIndicatorProps.onPointerDown, () => {
|
|
91799
|
+
if (autoScrollTimerRef.current === null) {
|
|
91800
|
+
autoScrollTimerRef.current = window.setInterval(onAutoScroll, 50);
|
|
91801
|
+
}
|
|
91802
|
+
}),
|
|
91803
|
+
onPointerMove: composeEventHandlers(scrollIndicatorProps.onPointerMove, () => {
|
|
91804
|
+
contentContext.onItemLeave?.();
|
|
91805
|
+
if (autoScrollTimerRef.current === null) {
|
|
91806
|
+
autoScrollTimerRef.current = window.setInterval(onAutoScroll, 50);
|
|
91807
|
+
}
|
|
91808
|
+
}),
|
|
91809
|
+
onPointerLeave: composeEventHandlers(scrollIndicatorProps.onPointerLeave, () => {
|
|
91810
|
+
clearAutoScrollTimer();
|
|
91811
|
+
})
|
|
91812
|
+
}
|
|
91813
|
+
);
|
|
91814
|
+
});
|
|
91815
|
+
var SEPARATOR_NAME = "SelectSeparator";
|
|
91816
|
+
var SelectSeparator = react.forwardRef(
|
|
91817
|
+
(props, forwardedRef) => {
|
|
91818
|
+
const { __scopeSelect, ...separatorProps } = props;
|
|
91819
|
+
return /* @__PURE__ */ (0,jsx_runtime.jsx)(Primitive.div, { "aria-hidden": true, ...separatorProps, ref: forwardedRef });
|
|
91820
|
+
}
|
|
91821
|
+
);
|
|
91822
|
+
SelectSeparator.displayName = SEPARATOR_NAME;
|
|
91823
|
+
var dist_ARROW_NAME = "SelectArrow";
|
|
91824
|
+
var SelectArrow = react.forwardRef(
|
|
91825
|
+
(props, forwardedRef) => {
|
|
91826
|
+
const { __scopeSelect, ...arrowProps } = props;
|
|
91827
|
+
const popperScope = usePopperScope(__scopeSelect);
|
|
91828
|
+
const context = useSelectContext(dist_ARROW_NAME, __scopeSelect);
|
|
91829
|
+
const contentContext = useSelectContentContext(dist_ARROW_NAME, __scopeSelect);
|
|
91830
|
+
return context.open && contentContext.position === "popper" ? /* @__PURE__ */ (0,jsx_runtime.jsx)(Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef }) : null;
|
|
91831
|
+
}
|
|
91832
|
+
);
|
|
91833
|
+
SelectArrow.displayName = dist_ARROW_NAME;
|
|
91834
|
+
function shouldShowPlaceholder(value) {
|
|
91835
|
+
return value === "" || value === void 0;
|
|
91836
|
+
}
|
|
91837
|
+
var BubbleSelect = react.forwardRef(
|
|
91838
|
+
(props, forwardedRef) => {
|
|
91839
|
+
const { value, ...selectProps } = props;
|
|
91840
|
+
const ref = react.useRef(null);
|
|
91841
|
+
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
91842
|
+
const prevValue = usePrevious(value);
|
|
91843
|
+
react.useEffect(() => {
|
|
91844
|
+
const select = ref.current;
|
|
91845
|
+
const selectProto = window.HTMLSelectElement.prototype;
|
|
91846
|
+
const descriptor = Object.getOwnPropertyDescriptor(
|
|
91847
|
+
selectProto,
|
|
91848
|
+
"value"
|
|
91849
|
+
);
|
|
91850
|
+
const setValue = descriptor.set;
|
|
91851
|
+
if (prevValue !== value && setValue) {
|
|
91852
|
+
const event = new Event("change", { bubbles: true });
|
|
91853
|
+
setValue.call(select, value);
|
|
91854
|
+
select.dispatchEvent(event);
|
|
91855
|
+
}
|
|
91856
|
+
}, [prevValue, value]);
|
|
91857
|
+
return /* @__PURE__ */ (0,jsx_runtime.jsx)(VisuallyHidden, { asChild: true, children: /* @__PURE__ */ (0,jsx_runtime.jsx)("select", { ...selectProps, ref: composedRefs, defaultValue: value }) });
|
|
91858
|
+
}
|
|
91859
|
+
);
|
|
91860
|
+
BubbleSelect.displayName = "BubbleSelect";
|
|
91861
|
+
function useTypeaheadSearch(onSearchChange) {
|
|
91862
|
+
const handleSearchChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onSearchChange);
|
|
91863
|
+
const searchRef = react.useRef("");
|
|
91864
|
+
const timerRef = react.useRef(0);
|
|
91865
|
+
const handleTypeaheadSearch = react.useCallback(
|
|
91866
|
+
(key) => {
|
|
91867
|
+
const search = searchRef.current + key;
|
|
91868
|
+
handleSearchChange(search);
|
|
91869
|
+
(function updateSearch(value) {
|
|
91870
|
+
searchRef.current = value;
|
|
91871
|
+
window.clearTimeout(timerRef.current);
|
|
91872
|
+
if (value !== "") timerRef.current = window.setTimeout(() => updateSearch(""), 1e3);
|
|
91873
|
+
})(search);
|
|
91874
|
+
},
|
|
91875
|
+
[handleSearchChange]
|
|
91876
|
+
);
|
|
91877
|
+
const resetTypeahead = react.useCallback(() => {
|
|
91878
|
+
searchRef.current = "";
|
|
91879
|
+
window.clearTimeout(timerRef.current);
|
|
91880
|
+
}, []);
|
|
91881
|
+
react.useEffect(() => {
|
|
91882
|
+
return () => window.clearTimeout(timerRef.current);
|
|
91883
|
+
}, []);
|
|
91884
|
+
return [searchRef, handleTypeaheadSearch, resetTypeahead];
|
|
91885
|
+
}
|
|
91886
|
+
function findNextItem(items, search, currentItem) {
|
|
91887
|
+
const isRepeated = search.length > 1 && Array.from(search).every((char) => char === search[0]);
|
|
91888
|
+
const normalizedSearch = isRepeated ? search[0] : search;
|
|
91889
|
+
const currentItemIndex = currentItem ? items.indexOf(currentItem) : -1;
|
|
91890
|
+
let wrappedItems = wrapArray(items, Math.max(currentItemIndex, 0));
|
|
91891
|
+
const excludeCurrentItem = normalizedSearch.length === 1;
|
|
91892
|
+
if (excludeCurrentItem) wrappedItems = wrappedItems.filter((v) => v !== currentItem);
|
|
91893
|
+
const nextItem = wrappedItems.find(
|
|
91894
|
+
(item) => item.textValue.toLowerCase().startsWith(normalizedSearch.toLowerCase())
|
|
91895
|
+
);
|
|
91896
|
+
return nextItem !== currentItem ? nextItem : void 0;
|
|
91897
|
+
}
|
|
91898
|
+
function wrapArray(array, startIndex) {
|
|
91899
|
+
return array.map((_, index) => array[(startIndex + index) % array.length]);
|
|
91900
|
+
}
|
|
91901
|
+
var dist_Root2 = dist_Select;
|
|
91902
|
+
var dist_Trigger = dist_SelectTrigger;
|
|
91903
|
+
var Value = dist_SelectValue;
|
|
91904
|
+
var Icon = SelectIcon;
|
|
91905
|
+
var react_select_dist_Portal = SelectPortal;
|
|
91906
|
+
var Content2 = dist_SelectContent;
|
|
91907
|
+
var Viewport = SelectViewport;
|
|
91908
|
+
var Group = SelectGroup;
|
|
91909
|
+
var Label = SelectLabel;
|
|
91910
|
+
var Item = dist_SelectItem;
|
|
91911
|
+
var ItemText = SelectItemText;
|
|
91912
|
+
var ItemIndicator = SelectItemIndicator;
|
|
91913
|
+
var ScrollUpButton = SelectScrollUpButton;
|
|
91914
|
+
var ScrollDownButton = SelectScrollDownButton;
|
|
91915
|
+
var Separator = SelectSeparator;
|
|
91916
|
+
var Arrow2 = (/* unused pure expression or super */ null && (SelectArrow));
|
|
91917
|
+
|
|
91918
|
+
//# sourceMappingURL=index.mjs.map
|
|
91919
|
+
|
|
91920
|
+
;// CONCATENATED MODULE: ../../ui-next/src/components/Select/Select.tsx
|
|
91921
|
+
function Select_extends() { return Select_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, Select_extends.apply(null, arguments); }
|
|
91922
|
+
|
|
91923
|
+
|
|
91924
|
+
|
|
91925
|
+
|
|
91926
|
+
const Select_Select = dist_Root2;
|
|
91927
|
+
const Select_SelectGroup = Group;
|
|
91928
|
+
const Select_SelectValue = Value;
|
|
91929
|
+
const Select_SelectTrigger = /*#__PURE__*/react.forwardRef(({
|
|
91930
|
+
className,
|
|
91931
|
+
children,
|
|
91932
|
+
...props
|
|
91933
|
+
}, ref) => /*#__PURE__*/react.createElement(dist_Trigger, Select_extends({
|
|
91934
|
+
ref: ref,
|
|
91935
|
+
className: utils_cn('border-input text-foreground ring-offset-background placeholder:text-muted-foreground focus:ring-ring [&>span]:line-clamp-1 hover:bg-primary/10 flex h-7 w-full items-center justify-between whitespace-nowrap rounded border bg-transparent px-2 py-2 text-sm shadow-sm focus:outline-none focus:ring-1 disabled:cursor-not-allowed disabled:opacity-50', className)
|
|
91936
|
+
}, props), children, /*#__PURE__*/react.createElement(Icon, {
|
|
91937
|
+
asChild: true
|
|
91938
|
+
}, /*#__PURE__*/react.createElement(CaretSortIcon, {
|
|
91939
|
+
className: "h-4 w-4 opacity-50"
|
|
91940
|
+
}))));
|
|
91941
|
+
Select_SelectTrigger.displayName = dist_Trigger.displayName;
|
|
91942
|
+
const Select_SelectScrollUpButton = /*#__PURE__*/react.forwardRef(({
|
|
91943
|
+
className,
|
|
91944
|
+
...props
|
|
91945
|
+
}, ref) => /*#__PURE__*/react.createElement(ScrollUpButton, Select_extends({
|
|
91946
|
+
ref: ref,
|
|
91947
|
+
className: utils_cn('flex cursor-default items-center justify-center py-1', className)
|
|
91948
|
+
}, props), /*#__PURE__*/react.createElement(ChevronUpIcon, null)));
|
|
91949
|
+
Select_SelectScrollUpButton.displayName = ScrollUpButton.displayName;
|
|
91950
|
+
const Select_SelectScrollDownButton = /*#__PURE__*/react.forwardRef(({
|
|
91951
|
+
className,
|
|
91952
|
+
...props
|
|
91953
|
+
}, ref) => /*#__PURE__*/react.createElement(ScrollDownButton, Select_extends({
|
|
91954
|
+
ref: ref,
|
|
91955
|
+
className: utils_cn('flex cursor-default items-center justify-center py-1', className)
|
|
91956
|
+
}, props), /*#__PURE__*/react.createElement(ChevronDownIcon, null)));
|
|
91957
|
+
Select_SelectScrollDownButton.displayName = ScrollDownButton.displayName;
|
|
91958
|
+
const Select_SelectContent = /*#__PURE__*/react.forwardRef(({
|
|
91959
|
+
className,
|
|
91960
|
+
children,
|
|
91961
|
+
position = 'popper',
|
|
91962
|
+
...props
|
|
91963
|
+
}, ref) => /*#__PURE__*/react.createElement(react_select_dist_Portal, null, /*#__PURE__*/react.createElement(Content2, Select_extends({
|
|
91964
|
+
ref: ref,
|
|
91965
|
+
className: utils_cn('bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 border-input relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded border shadow-md', position === 'popper' && 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1', className),
|
|
91966
|
+
position: position
|
|
91967
|
+
}, props), /*#__PURE__*/react.createElement(Select_SelectScrollUpButton, null), /*#__PURE__*/react.createElement(Viewport, {
|
|
91968
|
+
className: utils_cn('p-1', position === 'popper' && 'h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]')
|
|
91969
|
+
}, children), /*#__PURE__*/react.createElement(Select_SelectScrollDownButton, null))));
|
|
91970
|
+
Select_SelectContent.displayName = Content2.displayName;
|
|
91971
|
+
const Select_SelectLabel = /*#__PURE__*/react.forwardRef(({
|
|
91972
|
+
className,
|
|
91973
|
+
...props
|
|
91974
|
+
}, ref) => /*#__PURE__*/react.createElement(Label, Select_extends({
|
|
91975
|
+
ref: ref,
|
|
91976
|
+
className: utils_cn('px-2 py-1 text-sm font-semibold', className)
|
|
91977
|
+
}, props)));
|
|
91978
|
+
Select_SelectLabel.displayName = Label.displayName;
|
|
91979
|
+
const Select_SelectItem = /*#__PURE__*/react.forwardRef(({
|
|
91980
|
+
className,
|
|
91981
|
+
children,
|
|
91982
|
+
...props
|
|
91983
|
+
}, ref) => /*#__PURE__*/react.createElement(Item, Select_extends({
|
|
91984
|
+
ref: ref,
|
|
91985
|
+
className: utils_cn('focus:bg-accent focus:text-accent-foreground relative flex w-full cursor-default select-none items-center rounded py-1 pl-2 pr-8 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50', className)
|
|
91986
|
+
}, props), /*#__PURE__*/react.createElement("span", {
|
|
91987
|
+
className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center"
|
|
91988
|
+
}, /*#__PURE__*/react.createElement(ItemIndicator, null, /*#__PURE__*/react.createElement(CheckIcon, {
|
|
91989
|
+
className: "h-4 w-4"
|
|
91990
|
+
}))), /*#__PURE__*/react.createElement(ItemText, null, children)));
|
|
91991
|
+
Select_SelectItem.displayName = Item.displayName;
|
|
91992
|
+
const Select_SelectSeparator = /*#__PURE__*/react.forwardRef(({
|
|
91993
|
+
className,
|
|
91994
|
+
...props
|
|
91995
|
+
}, ref) => /*#__PURE__*/react.createElement(Separator, Select_extends({
|
|
91996
|
+
ref: ref,
|
|
91997
|
+
className: utils_cn('bg-muted -mx-1 my-1 h-px', className)
|
|
91998
|
+
}, props)));
|
|
91999
|
+
Select_SelectSeparator.displayName = Separator.displayName;
|
|
92000
|
+
|
|
92001
|
+
;// CONCATENATED MODULE: ../../ui-next/src/components/Select/index.tsx
|
|
92002
|
+
|
|
92003
|
+
|
|
89925
92004
|
;// CONCATENATED MODULE: ../../../node_modules/lucide-react/dist/esm/shared/src/utils.js
|
|
89926
92005
|
/**
|
|
89927
92006
|
* @license lucide-react v0.379.0 - ISC
|
|
@@ -89971,7 +92050,7 @@ var defaultAttributes = {
|
|
|
89971
92050
|
|
|
89972
92051
|
|
|
89973
92052
|
|
|
89974
|
-
const
|
|
92053
|
+
const Icon_Icon = (0,react.forwardRef)(
|
|
89975
92054
|
({
|
|
89976
92055
|
color = "currentColor",
|
|
89977
92056
|
size = 24,
|
|
@@ -90018,7 +92097,7 @@ const Icon = (0,react.forwardRef)(
|
|
|
90018
92097
|
|
|
90019
92098
|
const createLucideIcon = (iconName, iconNode) => {
|
|
90020
92099
|
const Component = (0,react.forwardRef)(
|
|
90021
|
-
({ className, ...props }, ref) => (0,react.createElement)(
|
|
92100
|
+
({ className, ...props }, ref) => (0,react.createElement)(Icon_Icon, {
|
|
90022
92101
|
ref,
|
|
90023
92102
|
iconNode,
|
|
90024
92103
|
className: mergeClasses(`lucide-${toKebabCase(iconName)}`, className),
|
|
@@ -90898,7 +92977,7 @@ const Ampersands = createLucideIcon("Ampersands", [
|
|
|
90898
92977
|
|
|
90899
92978
|
|
|
90900
92979
|
|
|
90901
|
-
const
|
|
92980
|
+
const anchor_Anchor = createLucideIcon("Anchor", [
|
|
90902
92981
|
["path", { d: "M12 22V8", key: "qkxhtm" }],
|
|
90903
92982
|
["path", { d: "M5 12H2a10 10 0 0 0 20 0h-3", key: "1hv3nh" }],
|
|
90904
92983
|
["circle", { cx: "12", cy: "5", r: "3", key: "rqqgnr" }]
|
|
@@ -104095,7 +106174,7 @@ const Grip = createLucideIcon("Grip", [
|
|
|
104095
106174
|
|
|
104096
106175
|
|
|
104097
106176
|
|
|
104098
|
-
const
|
|
106177
|
+
const group_Group = createLucideIcon("Group", [
|
|
104099
106178
|
["path", { d: "M3 7V5c0-1.1.9-2 2-2h2", key: "adw53z" }],
|
|
104100
106179
|
["path", { d: "M17 3h2c1.1 0 2 .9 2 2v2", key: "an4l38" }],
|
|
104101
106180
|
["path", { d: "M21 17v2c0 1.1-.9 2-2 2h-2", key: "144t0e" }],
|
|
@@ -123467,730 +125546,6 @@ const ZoomOut = createLucideIcon("ZoomOut", [
|
|
|
123467
125546
|
|
|
123468
125547
|
|
|
123469
125548
|
|
|
123470
|
-
|
|
123471
|
-
// EXTERNAL MODULE: ../../../node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs + 3 modules
|
|
123472
|
-
var floating_ui_dom = __webpack_require__(24054);
|
|
123473
|
-
;// CONCATENATED MODULE: ../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
|
|
123474
|
-
|
|
123475
|
-
|
|
123476
|
-
|
|
123477
|
-
|
|
123478
|
-
|
|
123479
|
-
|
|
123480
|
-
var index = typeof document !== 'undefined' ? react.useLayoutEffect : react.useEffect;
|
|
123481
|
-
|
|
123482
|
-
// Fork of `fast-deep-equal` that only does the comparisons we need and compares
|
|
123483
|
-
// functions
|
|
123484
|
-
function deepEqual(a, b) {
|
|
123485
|
-
if (a === b) {
|
|
123486
|
-
return true;
|
|
123487
|
-
}
|
|
123488
|
-
if (typeof a !== typeof b) {
|
|
123489
|
-
return false;
|
|
123490
|
-
}
|
|
123491
|
-
if (typeof a === 'function' && a.toString() === b.toString()) {
|
|
123492
|
-
return true;
|
|
123493
|
-
}
|
|
123494
|
-
let length;
|
|
123495
|
-
let i;
|
|
123496
|
-
let keys;
|
|
123497
|
-
if (a && b && typeof a === 'object') {
|
|
123498
|
-
if (Array.isArray(a)) {
|
|
123499
|
-
length = a.length;
|
|
123500
|
-
if (length !== b.length) return false;
|
|
123501
|
-
for (i = length; i-- !== 0;) {
|
|
123502
|
-
if (!deepEqual(a[i], b[i])) {
|
|
123503
|
-
return false;
|
|
123504
|
-
}
|
|
123505
|
-
}
|
|
123506
|
-
return true;
|
|
123507
|
-
}
|
|
123508
|
-
keys = Object.keys(a);
|
|
123509
|
-
length = keys.length;
|
|
123510
|
-
if (length !== Object.keys(b).length) {
|
|
123511
|
-
return false;
|
|
123512
|
-
}
|
|
123513
|
-
for (i = length; i-- !== 0;) {
|
|
123514
|
-
if (!{}.hasOwnProperty.call(b, keys[i])) {
|
|
123515
|
-
return false;
|
|
123516
|
-
}
|
|
123517
|
-
}
|
|
123518
|
-
for (i = length; i-- !== 0;) {
|
|
123519
|
-
const key = keys[i];
|
|
123520
|
-
if (key === '_owner' && a.$$typeof) {
|
|
123521
|
-
continue;
|
|
123522
|
-
}
|
|
123523
|
-
if (!deepEqual(a[key], b[key])) {
|
|
123524
|
-
return false;
|
|
123525
|
-
}
|
|
123526
|
-
}
|
|
123527
|
-
return true;
|
|
123528
|
-
}
|
|
123529
|
-
return a !== a && b !== b;
|
|
123530
|
-
}
|
|
123531
|
-
|
|
123532
|
-
function getDPR(element) {
|
|
123533
|
-
if (typeof window === 'undefined') {
|
|
123534
|
-
return 1;
|
|
123535
|
-
}
|
|
123536
|
-
const win = element.ownerDocument.defaultView || window;
|
|
123537
|
-
return win.devicePixelRatio || 1;
|
|
123538
|
-
}
|
|
123539
|
-
|
|
123540
|
-
function roundByDPR(element, value) {
|
|
123541
|
-
const dpr = getDPR(element);
|
|
123542
|
-
return Math.round(value * dpr) / dpr;
|
|
123543
|
-
}
|
|
123544
|
-
|
|
123545
|
-
function useLatestRef(value) {
|
|
123546
|
-
const ref = react.useRef(value);
|
|
123547
|
-
index(() => {
|
|
123548
|
-
ref.current = value;
|
|
123549
|
-
});
|
|
123550
|
-
return ref;
|
|
123551
|
-
}
|
|
123552
|
-
|
|
123553
|
-
/**
|
|
123554
|
-
* Provides data to position a floating element.
|
|
123555
|
-
* @see https://floating-ui.com/docs/useFloating
|
|
123556
|
-
*/
|
|
123557
|
-
function useFloating(options) {
|
|
123558
|
-
if (options === void 0) {
|
|
123559
|
-
options = {};
|
|
123560
|
-
}
|
|
123561
|
-
const {
|
|
123562
|
-
placement = 'bottom',
|
|
123563
|
-
strategy = 'absolute',
|
|
123564
|
-
middleware = [],
|
|
123565
|
-
platform,
|
|
123566
|
-
elements: {
|
|
123567
|
-
reference: externalReference,
|
|
123568
|
-
floating: externalFloating
|
|
123569
|
-
} = {},
|
|
123570
|
-
transform = true,
|
|
123571
|
-
whileElementsMounted,
|
|
123572
|
-
open
|
|
123573
|
-
} = options;
|
|
123574
|
-
const [data, setData] = react.useState({
|
|
123575
|
-
x: 0,
|
|
123576
|
-
y: 0,
|
|
123577
|
-
strategy,
|
|
123578
|
-
placement,
|
|
123579
|
-
middlewareData: {},
|
|
123580
|
-
isPositioned: false
|
|
123581
|
-
});
|
|
123582
|
-
const [latestMiddleware, setLatestMiddleware] = react.useState(middleware);
|
|
123583
|
-
if (!deepEqual(latestMiddleware, middleware)) {
|
|
123584
|
-
setLatestMiddleware(middleware);
|
|
123585
|
-
}
|
|
123586
|
-
const [_reference, _setReference] = react.useState(null);
|
|
123587
|
-
const [_floating, _setFloating] = react.useState(null);
|
|
123588
|
-
const setReference = react.useCallback(node => {
|
|
123589
|
-
if (node !== referenceRef.current) {
|
|
123590
|
-
referenceRef.current = node;
|
|
123591
|
-
_setReference(node);
|
|
123592
|
-
}
|
|
123593
|
-
}, []);
|
|
123594
|
-
const setFloating = react.useCallback(node => {
|
|
123595
|
-
if (node !== floatingRef.current) {
|
|
123596
|
-
floatingRef.current = node;
|
|
123597
|
-
_setFloating(node);
|
|
123598
|
-
}
|
|
123599
|
-
}, []);
|
|
123600
|
-
const referenceEl = externalReference || _reference;
|
|
123601
|
-
const floatingEl = externalFloating || _floating;
|
|
123602
|
-
const referenceRef = react.useRef(null);
|
|
123603
|
-
const floatingRef = react.useRef(null);
|
|
123604
|
-
const dataRef = react.useRef(data);
|
|
123605
|
-
const hasWhileElementsMounted = whileElementsMounted != null;
|
|
123606
|
-
const whileElementsMountedRef = useLatestRef(whileElementsMounted);
|
|
123607
|
-
const platformRef = useLatestRef(platform);
|
|
123608
|
-
const update = react.useCallback(() => {
|
|
123609
|
-
if (!referenceRef.current || !floatingRef.current) {
|
|
123610
|
-
return;
|
|
123611
|
-
}
|
|
123612
|
-
const config = {
|
|
123613
|
-
placement,
|
|
123614
|
-
strategy,
|
|
123615
|
-
middleware: latestMiddleware
|
|
123616
|
-
};
|
|
123617
|
-
if (platformRef.current) {
|
|
123618
|
-
config.platform = platformRef.current;
|
|
123619
|
-
}
|
|
123620
|
-
(0,floating_ui_dom/* computePosition */.oo)(referenceRef.current, floatingRef.current, config).then(data => {
|
|
123621
|
-
const fullData = {
|
|
123622
|
-
...data,
|
|
123623
|
-
isPositioned: true
|
|
123624
|
-
};
|
|
123625
|
-
if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {
|
|
123626
|
-
dataRef.current = fullData;
|
|
123627
|
-
react_dom.flushSync(() => {
|
|
123628
|
-
setData(fullData);
|
|
123629
|
-
});
|
|
123630
|
-
}
|
|
123631
|
-
});
|
|
123632
|
-
}, [latestMiddleware, placement, strategy, platformRef]);
|
|
123633
|
-
index(() => {
|
|
123634
|
-
if (open === false && dataRef.current.isPositioned) {
|
|
123635
|
-
dataRef.current.isPositioned = false;
|
|
123636
|
-
setData(data => ({
|
|
123637
|
-
...data,
|
|
123638
|
-
isPositioned: false
|
|
123639
|
-
}));
|
|
123640
|
-
}
|
|
123641
|
-
}, [open]);
|
|
123642
|
-
const isMountedRef = react.useRef(false);
|
|
123643
|
-
index(() => {
|
|
123644
|
-
isMountedRef.current = true;
|
|
123645
|
-
return () => {
|
|
123646
|
-
isMountedRef.current = false;
|
|
123647
|
-
};
|
|
123648
|
-
}, []);
|
|
123649
|
-
index(() => {
|
|
123650
|
-
if (referenceEl) referenceRef.current = referenceEl;
|
|
123651
|
-
if (floatingEl) floatingRef.current = floatingEl;
|
|
123652
|
-
if (referenceEl && floatingEl) {
|
|
123653
|
-
if (whileElementsMountedRef.current) {
|
|
123654
|
-
return whileElementsMountedRef.current(referenceEl, floatingEl, update);
|
|
123655
|
-
}
|
|
123656
|
-
update();
|
|
123657
|
-
}
|
|
123658
|
-
}, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);
|
|
123659
|
-
const refs = react.useMemo(() => ({
|
|
123660
|
-
reference: referenceRef,
|
|
123661
|
-
floating: floatingRef,
|
|
123662
|
-
setReference,
|
|
123663
|
-
setFloating
|
|
123664
|
-
}), [setReference, setFloating]);
|
|
123665
|
-
const elements = react.useMemo(() => ({
|
|
123666
|
-
reference: referenceEl,
|
|
123667
|
-
floating: floatingEl
|
|
123668
|
-
}), [referenceEl, floatingEl]);
|
|
123669
|
-
const floatingStyles = react.useMemo(() => {
|
|
123670
|
-
const initialStyles = {
|
|
123671
|
-
position: strategy,
|
|
123672
|
-
left: 0,
|
|
123673
|
-
top: 0
|
|
123674
|
-
};
|
|
123675
|
-
if (!elements.floating) {
|
|
123676
|
-
return initialStyles;
|
|
123677
|
-
}
|
|
123678
|
-
const x = roundByDPR(elements.floating, data.x);
|
|
123679
|
-
const y = roundByDPR(elements.floating, data.y);
|
|
123680
|
-
if (transform) {
|
|
123681
|
-
return {
|
|
123682
|
-
...initialStyles,
|
|
123683
|
-
transform: "translate(" + x + "px, " + y + "px)",
|
|
123684
|
-
...(getDPR(elements.floating) >= 1.5 && {
|
|
123685
|
-
willChange: 'transform'
|
|
123686
|
-
})
|
|
123687
|
-
};
|
|
123688
|
-
}
|
|
123689
|
-
return {
|
|
123690
|
-
position: strategy,
|
|
123691
|
-
left: x,
|
|
123692
|
-
top: y
|
|
123693
|
-
};
|
|
123694
|
-
}, [strategy, transform, elements.floating, data.x, data.y]);
|
|
123695
|
-
return react.useMemo(() => ({
|
|
123696
|
-
...data,
|
|
123697
|
-
update,
|
|
123698
|
-
refs,
|
|
123699
|
-
elements,
|
|
123700
|
-
floatingStyles
|
|
123701
|
-
}), [data, update, refs, elements, floatingStyles]);
|
|
123702
|
-
}
|
|
123703
|
-
|
|
123704
|
-
/**
|
|
123705
|
-
* Provides data to position an inner element of the floating element so that it
|
|
123706
|
-
* appears centered to the reference element.
|
|
123707
|
-
* This wraps the core `arrow` middleware to allow React refs as the element.
|
|
123708
|
-
* @see https://floating-ui.com/docs/arrow
|
|
123709
|
-
*/
|
|
123710
|
-
const arrow$1 = options => {
|
|
123711
|
-
function isRef(value) {
|
|
123712
|
-
return {}.hasOwnProperty.call(value, 'current');
|
|
123713
|
-
}
|
|
123714
|
-
return {
|
|
123715
|
-
name: 'arrow',
|
|
123716
|
-
options,
|
|
123717
|
-
fn(state) {
|
|
123718
|
-
const {
|
|
123719
|
-
element,
|
|
123720
|
-
padding
|
|
123721
|
-
} = typeof options === 'function' ? options(state) : options;
|
|
123722
|
-
if (element && isRef(element)) {
|
|
123723
|
-
if (element.current != null) {
|
|
123724
|
-
return (0,floating_ui_dom/* arrow */.x7)({
|
|
123725
|
-
element: element.current,
|
|
123726
|
-
padding
|
|
123727
|
-
}).fn(state);
|
|
123728
|
-
}
|
|
123729
|
-
return {};
|
|
123730
|
-
}
|
|
123731
|
-
if (element) {
|
|
123732
|
-
return (0,floating_ui_dom/* arrow */.x7)({
|
|
123733
|
-
element,
|
|
123734
|
-
padding
|
|
123735
|
-
}).fn(state);
|
|
123736
|
-
}
|
|
123737
|
-
return {};
|
|
123738
|
-
}
|
|
123739
|
-
};
|
|
123740
|
-
};
|
|
123741
|
-
|
|
123742
|
-
/**
|
|
123743
|
-
* Modifies the placement by translating the floating element along the
|
|
123744
|
-
* specified axes.
|
|
123745
|
-
* A number (shorthand for `mainAxis` or distance), or an axes configuration
|
|
123746
|
-
* object may be passed.
|
|
123747
|
-
* @see https://floating-ui.com/docs/offset
|
|
123748
|
-
*/
|
|
123749
|
-
const offset = (options, deps) => ({
|
|
123750
|
-
...(0,floating_ui_dom/* offset */.cv)(options),
|
|
123751
|
-
options: [options, deps]
|
|
123752
|
-
});
|
|
123753
|
-
|
|
123754
|
-
/**
|
|
123755
|
-
* Optimizes the visibility of the floating element by shifting it in order to
|
|
123756
|
-
* keep it in view when it will overflow the clipping boundary.
|
|
123757
|
-
* @see https://floating-ui.com/docs/shift
|
|
123758
|
-
*/
|
|
123759
|
-
const shift = (options, deps) => ({
|
|
123760
|
-
...(0,floating_ui_dom/* shift */.uY)(options),
|
|
123761
|
-
options: [options, deps]
|
|
123762
|
-
});
|
|
123763
|
-
/**
|
|
123764
|
-
* Built-in `limiter` that will stop `shift()` at a certain point.
|
|
123765
|
-
*/
|
|
123766
|
-
const limitShift = (options, deps) => ({
|
|
123767
|
-
...(0,floating_ui_dom/* limitShift */.dr)(options),
|
|
123768
|
-
options: [options, deps]
|
|
123769
|
-
});
|
|
123770
|
-
|
|
123771
|
-
/**
|
|
123772
|
-
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
123773
|
-
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
123774
|
-
* clipping boundary. Alternative to `autoPlacement`.
|
|
123775
|
-
* @see https://floating-ui.com/docs/flip
|
|
123776
|
-
*/
|
|
123777
|
-
const flip = (options, deps) => ({
|
|
123778
|
-
...(0,floating_ui_dom/* flip */.RR)(options),
|
|
123779
|
-
options: [options, deps]
|
|
123780
|
-
});
|
|
123781
|
-
|
|
123782
|
-
/**
|
|
123783
|
-
* Provides data that allows you to change the size of the floating element —
|
|
123784
|
-
* for instance, prevent it from overflowing the clipping boundary or match the
|
|
123785
|
-
* width of the reference element.
|
|
123786
|
-
* @see https://floating-ui.com/docs/size
|
|
123787
|
-
*/
|
|
123788
|
-
const size = (options, deps) => ({
|
|
123789
|
-
...(0,floating_ui_dom/* size */.dp)(options),
|
|
123790
|
-
options: [options, deps]
|
|
123791
|
-
});
|
|
123792
|
-
|
|
123793
|
-
/**
|
|
123794
|
-
* Optimizes the visibility of the floating element by choosing the placement
|
|
123795
|
-
* that has the most space available automatically, without needing to specify a
|
|
123796
|
-
* preferred placement. Alternative to `flip`.
|
|
123797
|
-
* @see https://floating-ui.com/docs/autoPlacement
|
|
123798
|
-
*/
|
|
123799
|
-
const autoPlacement = (options, deps) => ({
|
|
123800
|
-
...autoPlacement$1(options),
|
|
123801
|
-
options: [options, deps]
|
|
123802
|
-
});
|
|
123803
|
-
|
|
123804
|
-
/**
|
|
123805
|
-
* Provides data to hide the floating element in applicable situations, such as
|
|
123806
|
-
* when it is not in the same clipping context as the reference element.
|
|
123807
|
-
* @see https://floating-ui.com/docs/hide
|
|
123808
|
-
*/
|
|
123809
|
-
const hide = (options, deps) => ({
|
|
123810
|
-
...(0,floating_ui_dom/* hide */.Cp)(options),
|
|
123811
|
-
options: [options, deps]
|
|
123812
|
-
});
|
|
123813
|
-
|
|
123814
|
-
/**
|
|
123815
|
-
* Provides improved positioning for inline reference elements that can span
|
|
123816
|
-
* over multiple lines, such as hyperlinks or range selections.
|
|
123817
|
-
* @see https://floating-ui.com/docs/inline
|
|
123818
|
-
*/
|
|
123819
|
-
const inline = (options, deps) => ({
|
|
123820
|
-
...inline$1(options),
|
|
123821
|
-
options: [options, deps]
|
|
123822
|
-
});
|
|
123823
|
-
|
|
123824
|
-
/**
|
|
123825
|
-
* Provides data to position an inner element of the floating element so that it
|
|
123826
|
-
* appears centered to the reference element.
|
|
123827
|
-
* This wraps the core `arrow` middleware to allow React refs as the element.
|
|
123828
|
-
* @see https://floating-ui.com/docs/arrow
|
|
123829
|
-
*/
|
|
123830
|
-
const floating_ui_react_dom_arrow = (options, deps) => ({
|
|
123831
|
-
...arrow$1(options),
|
|
123832
|
-
options: [options, deps]
|
|
123833
|
-
});
|
|
123834
|
-
|
|
123835
|
-
|
|
123836
|
-
|
|
123837
|
-
;// CONCATENATED MODULE: ../../../node_modules/@radix-ui/react-arrow/dist/index.mjs
|
|
123838
|
-
|
|
123839
|
-
|
|
123840
|
-
|
|
123841
|
-
|
|
123842
|
-
|
|
123843
|
-
|
|
123844
|
-
|
|
123845
|
-
/* -------------------------------------------------------------------------------------------------
|
|
123846
|
-
* Arrow
|
|
123847
|
-
* -----------------------------------------------------------------------------------------------*/ const $7e8f5cd07187803e$var$NAME = 'Arrow';
|
|
123848
|
-
const $7e8f5cd07187803e$export$21b07c8f274aebd5 = /*#__PURE__*/ (0,react.forwardRef)((props, forwardedRef)=>{
|
|
123849
|
-
const { children: children , width: width = 10 , height: height = 5 , ...arrowProps } = props;
|
|
123850
|
-
return /*#__PURE__*/ (0,react.createElement)(Primitive.svg, (0,esm_extends/* default */.Z)({}, arrowProps, {
|
|
123851
|
-
ref: forwardedRef,
|
|
123852
|
-
width: width,
|
|
123853
|
-
height: height,
|
|
123854
|
-
viewBox: "0 0 30 10",
|
|
123855
|
-
preserveAspectRatio: "none"
|
|
123856
|
-
}), props.asChild ? children : /*#__PURE__*/ (0,react.createElement)("polygon", {
|
|
123857
|
-
points: "0,0 30,0 15,10"
|
|
123858
|
-
}));
|
|
123859
|
-
});
|
|
123860
|
-
/*#__PURE__*/ Object.assign($7e8f5cd07187803e$export$21b07c8f274aebd5, {
|
|
123861
|
-
displayName: $7e8f5cd07187803e$var$NAME
|
|
123862
|
-
});
|
|
123863
|
-
/* -----------------------------------------------------------------------------------------------*/ const $7e8f5cd07187803e$export$be92b6f5f03c0fe9 = $7e8f5cd07187803e$export$21b07c8f274aebd5;
|
|
123864
|
-
|
|
123865
|
-
|
|
123866
|
-
|
|
123867
|
-
|
|
123868
|
-
|
|
123869
|
-
//# sourceMappingURL=index.mjs.map
|
|
123870
|
-
|
|
123871
|
-
;// CONCATENATED MODULE: ../../../node_modules/@radix-ui/react-use-size/dist/index.mjs
|
|
123872
|
-
// packages/react/use-size/src/useSize.tsx
|
|
123873
|
-
|
|
123874
|
-
|
|
123875
|
-
function useSize(element) {
|
|
123876
|
-
const [size, setSize] = react.useState(void 0);
|
|
123877
|
-
useLayoutEffect2(() => {
|
|
123878
|
-
if (element) {
|
|
123879
|
-
setSize({ width: element.offsetWidth, height: element.offsetHeight });
|
|
123880
|
-
const resizeObserver = new ResizeObserver((entries) => {
|
|
123881
|
-
if (!Array.isArray(entries)) {
|
|
123882
|
-
return;
|
|
123883
|
-
}
|
|
123884
|
-
if (!entries.length) {
|
|
123885
|
-
return;
|
|
123886
|
-
}
|
|
123887
|
-
const entry = entries[0];
|
|
123888
|
-
let width;
|
|
123889
|
-
let height;
|
|
123890
|
-
if ("borderBoxSize" in entry) {
|
|
123891
|
-
const borderSizeEntry = entry["borderBoxSize"];
|
|
123892
|
-
const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;
|
|
123893
|
-
width = borderSize["inlineSize"];
|
|
123894
|
-
height = borderSize["blockSize"];
|
|
123895
|
-
} else {
|
|
123896
|
-
width = element.offsetWidth;
|
|
123897
|
-
height = element.offsetHeight;
|
|
123898
|
-
}
|
|
123899
|
-
setSize({ width, height });
|
|
123900
|
-
});
|
|
123901
|
-
resizeObserver.observe(element, { box: "border-box" });
|
|
123902
|
-
return () => resizeObserver.unobserve(element);
|
|
123903
|
-
} else {
|
|
123904
|
-
setSize(void 0);
|
|
123905
|
-
}
|
|
123906
|
-
}, [element]);
|
|
123907
|
-
return size;
|
|
123908
|
-
}
|
|
123909
|
-
|
|
123910
|
-
//# sourceMappingURL=index.mjs.map
|
|
123911
|
-
|
|
123912
|
-
;// CONCATENATED MODULE: ../../../node_modules/@radix-ui/react-popper/dist/index.mjs
|
|
123913
|
-
"use client";
|
|
123914
|
-
|
|
123915
|
-
// packages/react/popper/src/Popper.tsx
|
|
123916
|
-
|
|
123917
|
-
|
|
123918
|
-
|
|
123919
|
-
|
|
123920
|
-
|
|
123921
|
-
|
|
123922
|
-
|
|
123923
|
-
|
|
123924
|
-
|
|
123925
|
-
|
|
123926
|
-
var SIDE_OPTIONS = (/* unused pure expression or super */ null && (["top", "right", "bottom", "left"]));
|
|
123927
|
-
var ALIGN_OPTIONS = (/* unused pure expression or super */ null && (["start", "center", "end"]));
|
|
123928
|
-
var POPPER_NAME = "Popper";
|
|
123929
|
-
var [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);
|
|
123930
|
-
var [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);
|
|
123931
|
-
var Popper = (props) => {
|
|
123932
|
-
const { __scopePopper, children } = props;
|
|
123933
|
-
const [anchor, setAnchor] = react.useState(null);
|
|
123934
|
-
return /* @__PURE__ */ (0,jsx_runtime.jsx)(PopperProvider, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });
|
|
123935
|
-
};
|
|
123936
|
-
Popper.displayName = POPPER_NAME;
|
|
123937
|
-
var ANCHOR_NAME = "PopperAnchor";
|
|
123938
|
-
var PopperAnchor = react.forwardRef(
|
|
123939
|
-
(props, forwardedRef) => {
|
|
123940
|
-
const { __scopePopper, virtualRef, ...anchorProps } = props;
|
|
123941
|
-
const context = usePopperContext(ANCHOR_NAME, __scopePopper);
|
|
123942
|
-
const ref = react.useRef(null);
|
|
123943
|
-
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
123944
|
-
react.useEffect(() => {
|
|
123945
|
-
context.onAnchorChange(virtualRef?.current || ref.current);
|
|
123946
|
-
});
|
|
123947
|
-
return virtualRef ? null : /* @__PURE__ */ (0,jsx_runtime.jsx)(Primitive.div, { ...anchorProps, ref: composedRefs });
|
|
123948
|
-
}
|
|
123949
|
-
);
|
|
123950
|
-
PopperAnchor.displayName = ANCHOR_NAME;
|
|
123951
|
-
var dist_CONTENT_NAME = "PopperContent";
|
|
123952
|
-
var [PopperContentProvider, useContentContext] = createPopperContext(dist_CONTENT_NAME);
|
|
123953
|
-
var PopperContent = react.forwardRef(
|
|
123954
|
-
(props, forwardedRef) => {
|
|
123955
|
-
const {
|
|
123956
|
-
__scopePopper,
|
|
123957
|
-
side = "bottom",
|
|
123958
|
-
sideOffset = 0,
|
|
123959
|
-
align = "center",
|
|
123960
|
-
alignOffset = 0,
|
|
123961
|
-
arrowPadding = 0,
|
|
123962
|
-
avoidCollisions = true,
|
|
123963
|
-
collisionBoundary = [],
|
|
123964
|
-
collisionPadding: collisionPaddingProp = 0,
|
|
123965
|
-
sticky = "partial",
|
|
123966
|
-
hideWhenDetached = false,
|
|
123967
|
-
updatePositionStrategy = "optimized",
|
|
123968
|
-
onPlaced,
|
|
123969
|
-
...contentProps
|
|
123970
|
-
} = props;
|
|
123971
|
-
const context = usePopperContext(dist_CONTENT_NAME, __scopePopper);
|
|
123972
|
-
const [content, setContent] = react.useState(null);
|
|
123973
|
-
const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));
|
|
123974
|
-
const [arrow, setArrow] = react.useState(null);
|
|
123975
|
-
const arrowSize = useSize(arrow);
|
|
123976
|
-
const arrowWidth = arrowSize?.width ?? 0;
|
|
123977
|
-
const arrowHeight = arrowSize?.height ?? 0;
|
|
123978
|
-
const desiredPlacement = side + (align !== "center" ? "-" + align : "");
|
|
123979
|
-
const collisionPadding = typeof collisionPaddingProp === "number" ? collisionPaddingProp : { top: 0, right: 0, bottom: 0, left: 0, ...collisionPaddingProp };
|
|
123980
|
-
const boundary = Array.isArray(collisionBoundary) ? collisionBoundary : [collisionBoundary];
|
|
123981
|
-
const hasExplicitBoundaries = boundary.length > 0;
|
|
123982
|
-
const detectOverflowOptions = {
|
|
123983
|
-
padding: collisionPadding,
|
|
123984
|
-
boundary: boundary.filter(isNotNull),
|
|
123985
|
-
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
123986
|
-
altBoundary: hasExplicitBoundaries
|
|
123987
|
-
};
|
|
123988
|
-
const { refs, floatingStyles, placement, isPositioned, middlewareData } = useFloating({
|
|
123989
|
-
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
123990
|
-
strategy: "fixed",
|
|
123991
|
-
placement: desiredPlacement,
|
|
123992
|
-
whileElementsMounted: (...args) => {
|
|
123993
|
-
const cleanup = (0,floating_ui_dom/* autoUpdate */.Me)(...args, {
|
|
123994
|
-
animationFrame: updatePositionStrategy === "always"
|
|
123995
|
-
});
|
|
123996
|
-
return cleanup;
|
|
123997
|
-
},
|
|
123998
|
-
elements: {
|
|
123999
|
-
reference: context.anchor
|
|
124000
|
-
},
|
|
124001
|
-
middleware: [
|
|
124002
|
-
offset({ mainAxis: sideOffset + arrowHeight, alignmentAxis: alignOffset }),
|
|
124003
|
-
avoidCollisions && shift({
|
|
124004
|
-
mainAxis: true,
|
|
124005
|
-
crossAxis: false,
|
|
124006
|
-
limiter: sticky === "partial" ? limitShift() : void 0,
|
|
124007
|
-
...detectOverflowOptions
|
|
124008
|
-
}),
|
|
124009
|
-
avoidCollisions && flip({ ...detectOverflowOptions }),
|
|
124010
|
-
size({
|
|
124011
|
-
...detectOverflowOptions,
|
|
124012
|
-
apply: ({ elements, rects, availableWidth, availableHeight }) => {
|
|
124013
|
-
const { width: anchorWidth, height: anchorHeight } = rects.reference;
|
|
124014
|
-
const contentStyle = elements.floating.style;
|
|
124015
|
-
contentStyle.setProperty("--radix-popper-available-width", `${availableWidth}px`);
|
|
124016
|
-
contentStyle.setProperty("--radix-popper-available-height", `${availableHeight}px`);
|
|
124017
|
-
contentStyle.setProperty("--radix-popper-anchor-width", `${anchorWidth}px`);
|
|
124018
|
-
contentStyle.setProperty("--radix-popper-anchor-height", `${anchorHeight}px`);
|
|
124019
|
-
}
|
|
124020
|
-
}),
|
|
124021
|
-
arrow && floating_ui_react_dom_arrow({ element: arrow, padding: arrowPadding }),
|
|
124022
|
-
transformOrigin({ arrowWidth, arrowHeight }),
|
|
124023
|
-
hideWhenDetached && hide({ strategy: "referenceHidden", ...detectOverflowOptions })
|
|
124024
|
-
]
|
|
124025
|
-
});
|
|
124026
|
-
const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);
|
|
124027
|
-
const handlePlaced = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onPlaced);
|
|
124028
|
-
useLayoutEffect2(() => {
|
|
124029
|
-
if (isPositioned) {
|
|
124030
|
-
handlePlaced?.();
|
|
124031
|
-
}
|
|
124032
|
-
}, [isPositioned, handlePlaced]);
|
|
124033
|
-
const arrowX = middlewareData.arrow?.x;
|
|
124034
|
-
const arrowY = middlewareData.arrow?.y;
|
|
124035
|
-
const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;
|
|
124036
|
-
const [contentZIndex, setContentZIndex] = react.useState();
|
|
124037
|
-
useLayoutEffect2(() => {
|
|
124038
|
-
if (content) setContentZIndex(window.getComputedStyle(content).zIndex);
|
|
124039
|
-
}, [content]);
|
|
124040
|
-
return /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
124041
|
-
"div",
|
|
124042
|
-
{
|
|
124043
|
-
ref: refs.setFloating,
|
|
124044
|
-
"data-radix-popper-content-wrapper": "",
|
|
124045
|
-
style: {
|
|
124046
|
-
...floatingStyles,
|
|
124047
|
-
transform: isPositioned ? floatingStyles.transform : "translate(0, -200%)",
|
|
124048
|
-
// keep off the page when measuring
|
|
124049
|
-
minWidth: "max-content",
|
|
124050
|
-
zIndex: contentZIndex,
|
|
124051
|
-
["--radix-popper-transform-origin"]: [
|
|
124052
|
-
middlewareData.transformOrigin?.x,
|
|
124053
|
-
middlewareData.transformOrigin?.y
|
|
124054
|
-
].join(" "),
|
|
124055
|
-
// hide the content if using the hide middleware and should be hidden
|
|
124056
|
-
// set visibility to hidden and disable pointer events so the UI behaves
|
|
124057
|
-
// as if the PopperContent isn't there at all
|
|
124058
|
-
...middlewareData.hide?.referenceHidden && {
|
|
124059
|
-
visibility: "hidden",
|
|
124060
|
-
pointerEvents: "none"
|
|
124061
|
-
}
|
|
124062
|
-
},
|
|
124063
|
-
dir: props.dir,
|
|
124064
|
-
children: /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
124065
|
-
PopperContentProvider,
|
|
124066
|
-
{
|
|
124067
|
-
scope: __scopePopper,
|
|
124068
|
-
placedSide,
|
|
124069
|
-
onArrowChange: setArrow,
|
|
124070
|
-
arrowX,
|
|
124071
|
-
arrowY,
|
|
124072
|
-
shouldHideArrow: cannotCenterArrow,
|
|
124073
|
-
children: /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
124074
|
-
Primitive.div,
|
|
124075
|
-
{
|
|
124076
|
-
"data-side": placedSide,
|
|
124077
|
-
"data-align": placedAlign,
|
|
124078
|
-
...contentProps,
|
|
124079
|
-
ref: composedRefs,
|
|
124080
|
-
style: {
|
|
124081
|
-
...contentProps.style,
|
|
124082
|
-
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
124083
|
-
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
124084
|
-
animation: !isPositioned ? "none" : void 0
|
|
124085
|
-
}
|
|
124086
|
-
}
|
|
124087
|
-
)
|
|
124088
|
-
}
|
|
124089
|
-
)
|
|
124090
|
-
}
|
|
124091
|
-
);
|
|
124092
|
-
}
|
|
124093
|
-
);
|
|
124094
|
-
PopperContent.displayName = dist_CONTENT_NAME;
|
|
124095
|
-
var ARROW_NAME = "PopperArrow";
|
|
124096
|
-
var OPPOSITE_SIDE = {
|
|
124097
|
-
top: "bottom",
|
|
124098
|
-
right: "left",
|
|
124099
|
-
bottom: "top",
|
|
124100
|
-
left: "right"
|
|
124101
|
-
};
|
|
124102
|
-
var PopperArrow = react.forwardRef(function PopperArrow2(props, forwardedRef) {
|
|
124103
|
-
const { __scopePopper, ...arrowProps } = props;
|
|
124104
|
-
const contentContext = useContentContext(ARROW_NAME, __scopePopper);
|
|
124105
|
-
const baseSide = OPPOSITE_SIDE[contentContext.placedSide];
|
|
124106
|
-
return (
|
|
124107
|
-
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
124108
|
-
// doesn't report size as we'd expect on SVG elements.
|
|
124109
|
-
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
124110
|
-
/* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
124111
|
-
"span",
|
|
124112
|
-
{
|
|
124113
|
-
ref: contentContext.onArrowChange,
|
|
124114
|
-
style: {
|
|
124115
|
-
position: "absolute",
|
|
124116
|
-
left: contentContext.arrowX,
|
|
124117
|
-
top: contentContext.arrowY,
|
|
124118
|
-
[baseSide]: 0,
|
|
124119
|
-
transformOrigin: {
|
|
124120
|
-
top: "",
|
|
124121
|
-
right: "0 0",
|
|
124122
|
-
bottom: "center 0",
|
|
124123
|
-
left: "100% 0"
|
|
124124
|
-
}[contentContext.placedSide],
|
|
124125
|
-
transform: {
|
|
124126
|
-
top: "translateY(100%)",
|
|
124127
|
-
right: "translateY(50%) rotate(90deg) translateX(-50%)",
|
|
124128
|
-
bottom: `rotate(180deg)`,
|
|
124129
|
-
left: "translateY(50%) rotate(-90deg) translateX(50%)"
|
|
124130
|
-
}[contentContext.placedSide],
|
|
124131
|
-
visibility: contentContext.shouldHideArrow ? "hidden" : void 0
|
|
124132
|
-
},
|
|
124133
|
-
children: /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
124134
|
-
$7e8f5cd07187803e$export$be92b6f5f03c0fe9,
|
|
124135
|
-
{
|
|
124136
|
-
...arrowProps,
|
|
124137
|
-
ref: forwardedRef,
|
|
124138
|
-
style: {
|
|
124139
|
-
...arrowProps.style,
|
|
124140
|
-
// ensures the element can be measured correctly (mostly for if SVG)
|
|
124141
|
-
display: "block"
|
|
124142
|
-
}
|
|
124143
|
-
}
|
|
124144
|
-
)
|
|
124145
|
-
}
|
|
124146
|
-
)
|
|
124147
|
-
);
|
|
124148
|
-
});
|
|
124149
|
-
PopperArrow.displayName = ARROW_NAME;
|
|
124150
|
-
function isNotNull(value) {
|
|
124151
|
-
return value !== null;
|
|
124152
|
-
}
|
|
124153
|
-
var transformOrigin = (options) => ({
|
|
124154
|
-
name: "transformOrigin",
|
|
124155
|
-
options,
|
|
124156
|
-
fn(data) {
|
|
124157
|
-
const { placement, rects, middlewareData } = data;
|
|
124158
|
-
const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;
|
|
124159
|
-
const isArrowHidden = cannotCenterArrow;
|
|
124160
|
-
const arrowWidth = isArrowHidden ? 0 : options.arrowWidth;
|
|
124161
|
-
const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;
|
|
124162
|
-
const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);
|
|
124163
|
-
const noArrowAlign = { start: "0%", center: "50%", end: "100%" }[placedAlign];
|
|
124164
|
-
const arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;
|
|
124165
|
-
const arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;
|
|
124166
|
-
let x = "";
|
|
124167
|
-
let y = "";
|
|
124168
|
-
if (placedSide === "bottom") {
|
|
124169
|
-
x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;
|
|
124170
|
-
y = `${-arrowHeight}px`;
|
|
124171
|
-
} else if (placedSide === "top") {
|
|
124172
|
-
x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;
|
|
124173
|
-
y = `${rects.floating.height + arrowHeight}px`;
|
|
124174
|
-
} else if (placedSide === "right") {
|
|
124175
|
-
x = `${-arrowHeight}px`;
|
|
124176
|
-
y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;
|
|
124177
|
-
} else if (placedSide === "left") {
|
|
124178
|
-
x = `${rects.floating.width + arrowHeight}px`;
|
|
124179
|
-
y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;
|
|
124180
|
-
}
|
|
124181
|
-
return { data: { x, y } };
|
|
124182
|
-
}
|
|
124183
|
-
});
|
|
124184
|
-
function getSideAndAlignFromPlacement(placement) {
|
|
124185
|
-
const [side, align = "center"] = placement.split("-");
|
|
124186
|
-
return [side, align];
|
|
124187
|
-
}
|
|
124188
|
-
var Root2 = Popper;
|
|
124189
|
-
var dist_Anchor = PopperAnchor;
|
|
124190
|
-
var dist_Content = PopperContent;
|
|
124191
|
-
var Arrow = PopperArrow;
|
|
124192
|
-
|
|
124193
|
-
//# sourceMappingURL=index.mjs.map
|
|
124194
125549
|
|
|
124195
125550
|
;// CONCATENATED MODULE: ../../../node_modules/@radix-ui/react-popover/dist/index.mjs
|
|
124196
125551
|
|
|
@@ -124285,7 +125640,7 @@ const $cb5cc270b50c6fcd$export$96e5381f42521a79 = /*#__PURE__*/ (0,react.forward
|
|
|
124285
125640
|
onCustomAnchorAdd,
|
|
124286
125641
|
onCustomAnchorRemove
|
|
124287
125642
|
]);
|
|
124288
|
-
return /*#__PURE__*/ (0,react.createElement)(
|
|
125643
|
+
return /*#__PURE__*/ (0,react.createElement)(Anchor, (0,esm_extends/* default */.Z)({}, popperScope, anchorProps, {
|
|
124289
125644
|
ref: forwardedRef
|
|
124290
125645
|
}));
|
|
124291
125646
|
});
|
|
@@ -124310,7 +125665,7 @@ const $cb5cc270b50c6fcd$export$7dacb05d26466c3 = /*#__PURE__*/ (0,react.forwardR
|
|
|
124310
125665
|
ref: composedTriggerRef,
|
|
124311
125666
|
onClick: composeEventHandlers(props.onClick, context.onOpenToggle)
|
|
124312
125667
|
}));
|
|
124313
|
-
return context.hasCustomAnchor ? trigger : /*#__PURE__*/ (0,react.createElement)(
|
|
125668
|
+
return context.hasCustomAnchor ? trigger : /*#__PURE__*/ (0,react.createElement)(Anchor, (0,esm_extends/* default */.Z)({
|
|
124314
125669
|
asChild: true
|
|
124315
125670
|
}, popperScope), trigger);
|
|
124316
125671
|
});
|
|
@@ -126034,12 +127389,12 @@ function min_min(dates) {
|
|
|
126034
127389
|
* })
|
|
126035
127390
|
* //=> Mon Mar 22 2021 00:00:00
|
|
126036
127391
|
*/
|
|
126037
|
-
function
|
|
127392
|
+
function clamp_clamp(date, interval) {
|
|
126038
127393
|
return min([max([date, interval.start]), interval.end]);
|
|
126039
127394
|
}
|
|
126040
127395
|
|
|
126041
127396
|
// Fallback for modularized imports:
|
|
126042
|
-
/* harmony default export */ const date_fns_clamp = ((/* unused pure expression or super */ null && (
|
|
127397
|
+
/* harmony default export */ const date_fns_clamp = ((/* unused pure expression or super */ null && (clamp_clamp)));
|
|
126043
127398
|
|
|
126044
127399
|
;// CONCATENATED MODULE: ../../../node_modules/date-fns/closestIndexTo.mjs
|
|
126045
127400
|
|
|
@@ -190787,10 +192142,10 @@ function DatePickerWithRange({
|
|
|
190787
192142
|
|
|
190788
192143
|
|
|
190789
192144
|
|
|
190790
|
-
var
|
|
192145
|
+
var dist_NAME = "Separator";
|
|
190791
192146
|
var DEFAULT_ORIENTATION = "horizontal";
|
|
190792
192147
|
var ORIENTATIONS = ["horizontal", "vertical"];
|
|
190793
|
-
var
|
|
192148
|
+
var dist_Separator = react.forwardRef((props, forwardedRef) => {
|
|
190794
192149
|
const { decorative, orientation: orientationProp = DEFAULT_ORIENTATION, ...domProps } = props;
|
|
190795
192150
|
const orientation = isValidOrientation(orientationProp) ? orientationProp : DEFAULT_ORIENTATION;
|
|
190796
192151
|
const ariaOrientation = orientation === "vertical" ? orientation : void 0;
|
|
@@ -190805,11 +192160,11 @@ var Separator = react.forwardRef((props, forwardedRef) => {
|
|
|
190805
192160
|
}
|
|
190806
192161
|
);
|
|
190807
192162
|
});
|
|
190808
|
-
|
|
192163
|
+
dist_Separator.displayName = dist_NAME;
|
|
190809
192164
|
function isValidOrientation(orientation) {
|
|
190810
192165
|
return ORIENTATIONS.includes(orientation);
|
|
190811
192166
|
}
|
|
190812
|
-
var react_separator_dist_Root =
|
|
192167
|
+
var react_separator_dist_Root = dist_Separator;
|
|
190813
192168
|
|
|
190814
192169
|
//# sourceMappingURL=index.mjs.map
|
|
190815
192170
|
|
|
@@ -190835,95 +192190,6 @@ Separator_Separator.displayName = react_separator_dist_Root.displayName;
|
|
|
190835
192190
|
;// CONCATENATED MODULE: ../../ui-next/src/components/Separator/index.ts
|
|
190836
192191
|
|
|
190837
192192
|
|
|
190838
|
-
;// CONCATENATED MODULE: ../../../node_modules/@radix-ui/react-collection/dist/index.mjs
|
|
190839
|
-
"use client";
|
|
190840
|
-
|
|
190841
|
-
// packages/react/collection/src/Collection.tsx
|
|
190842
|
-
|
|
190843
|
-
|
|
190844
|
-
|
|
190845
|
-
|
|
190846
|
-
|
|
190847
|
-
function createCollection(name) {
|
|
190848
|
-
const PROVIDER_NAME = name + "CollectionProvider";
|
|
190849
|
-
const [createCollectionContext, createCollectionScope] = createContextScope(PROVIDER_NAME);
|
|
190850
|
-
const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(
|
|
190851
|
-
PROVIDER_NAME,
|
|
190852
|
-
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
190853
|
-
);
|
|
190854
|
-
const CollectionProvider = (props) => {
|
|
190855
|
-
const { scope, children } = props;
|
|
190856
|
-
const ref = react.useRef(null);
|
|
190857
|
-
const itemMap = react.useRef(/* @__PURE__ */ new Map()).current;
|
|
190858
|
-
return /* @__PURE__ */ (0,jsx_runtime.jsx)(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
|
|
190859
|
-
};
|
|
190860
|
-
CollectionProvider.displayName = PROVIDER_NAME;
|
|
190861
|
-
const COLLECTION_SLOT_NAME = name + "CollectionSlot";
|
|
190862
|
-
const CollectionSlot = react.forwardRef(
|
|
190863
|
-
(props, forwardedRef) => {
|
|
190864
|
-
const { scope, children } = props;
|
|
190865
|
-
const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
|
|
190866
|
-
const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);
|
|
190867
|
-
return /* @__PURE__ */ (0,jsx_runtime.jsx)($5e63c961fc1ce211$export$8c6ed5c666ac1360, { ref: composedRefs, children });
|
|
190868
|
-
}
|
|
190869
|
-
);
|
|
190870
|
-
CollectionSlot.displayName = COLLECTION_SLOT_NAME;
|
|
190871
|
-
const ITEM_SLOT_NAME = name + "CollectionItemSlot";
|
|
190872
|
-
const ITEM_DATA_ATTR = "data-radix-collection-item";
|
|
190873
|
-
const CollectionItemSlot = react.forwardRef(
|
|
190874
|
-
(props, forwardedRef) => {
|
|
190875
|
-
const { scope, children, ...itemData } = props;
|
|
190876
|
-
const ref = react.useRef(null);
|
|
190877
|
-
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
190878
|
-
const context = useCollectionContext(ITEM_SLOT_NAME, scope);
|
|
190879
|
-
react.useEffect(() => {
|
|
190880
|
-
context.itemMap.set(ref, { ref, ...itemData });
|
|
190881
|
-
return () => void context.itemMap.delete(ref);
|
|
190882
|
-
});
|
|
190883
|
-
return /* @__PURE__ */ (0,jsx_runtime.jsx)($5e63c961fc1ce211$export$8c6ed5c666ac1360, { ...{ [ITEM_DATA_ATTR]: "" }, ref: composedRefs, children });
|
|
190884
|
-
}
|
|
190885
|
-
);
|
|
190886
|
-
CollectionItemSlot.displayName = ITEM_SLOT_NAME;
|
|
190887
|
-
function useCollection(scope) {
|
|
190888
|
-
const context = useCollectionContext(name + "CollectionConsumer", scope);
|
|
190889
|
-
const getItems = react.useCallback(() => {
|
|
190890
|
-
const collectionNode = context.collectionRef.current;
|
|
190891
|
-
if (!collectionNode) return [];
|
|
190892
|
-
const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
|
|
190893
|
-
const items = Array.from(context.itemMap.values());
|
|
190894
|
-
const orderedItems = items.sort(
|
|
190895
|
-
(a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)
|
|
190896
|
-
);
|
|
190897
|
-
return orderedItems;
|
|
190898
|
-
}, [context.collectionRef, context.itemMap]);
|
|
190899
|
-
return getItems;
|
|
190900
|
-
}
|
|
190901
|
-
return [
|
|
190902
|
-
{ Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },
|
|
190903
|
-
useCollection,
|
|
190904
|
-
createCollectionScope
|
|
190905
|
-
];
|
|
190906
|
-
}
|
|
190907
|
-
|
|
190908
|
-
//# sourceMappingURL=index.mjs.map
|
|
190909
|
-
|
|
190910
|
-
;// CONCATENATED MODULE: ../../../node_modules/@radix-ui/react-direction/dist/index.mjs
|
|
190911
|
-
// packages/react/direction/src/Direction.tsx
|
|
190912
|
-
|
|
190913
|
-
|
|
190914
|
-
var DirectionContext = react.createContext(void 0);
|
|
190915
|
-
var DirectionProvider = (props) => {
|
|
190916
|
-
const { dir, children } = props;
|
|
190917
|
-
return /* @__PURE__ */ jsx(DirectionContext.Provider, { value: dir, children });
|
|
190918
|
-
};
|
|
190919
|
-
function useDirection(localDir) {
|
|
190920
|
-
const globalDir = react.useContext(DirectionContext);
|
|
190921
|
-
return localDir || globalDir || "ltr";
|
|
190922
|
-
}
|
|
190923
|
-
var Provider = (/* unused pure expression or super */ null && (DirectionProvider));
|
|
190924
|
-
|
|
190925
|
-
//# sourceMappingURL=index.mjs.map
|
|
190926
|
-
|
|
190927
192193
|
;// CONCATENATED MODULE: ../../../node_modules/@radix-ui/react-roving-focus/dist/index.mjs
|
|
190928
192194
|
|
|
190929
192195
|
|
|
@@ -191274,11 +192540,11 @@ var TabsList = react.forwardRef(
|
|
|
191274
192540
|
}
|
|
191275
192541
|
);
|
|
191276
192542
|
TabsList.displayName = TAB_LIST_NAME;
|
|
191277
|
-
var
|
|
192543
|
+
var react_tabs_dist_TRIGGER_NAME = "TabsTrigger";
|
|
191278
192544
|
var TabsTrigger = react.forwardRef(
|
|
191279
192545
|
(props, forwardedRef) => {
|
|
191280
192546
|
const { __scopeTabs, value, disabled = false, ...triggerProps } = props;
|
|
191281
|
-
const context = useTabsContext(
|
|
192547
|
+
const context = useTabsContext(react_tabs_dist_TRIGGER_NAME, __scopeTabs);
|
|
191282
192548
|
const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeTabs);
|
|
191283
192549
|
const triggerId = makeTriggerId(context.baseId, value);
|
|
191284
192550
|
const contentId = makeContentId(context.baseId, value);
|
|
@@ -191325,7 +192591,7 @@ var TabsTrigger = react.forwardRef(
|
|
|
191325
192591
|
);
|
|
191326
192592
|
}
|
|
191327
192593
|
);
|
|
191328
|
-
TabsTrigger.displayName =
|
|
192594
|
+
TabsTrigger.displayName = react_tabs_dist_TRIGGER_NAME;
|
|
191329
192595
|
var react_tabs_dist_CONTENT_NAME = "TabsContent";
|
|
191330
192596
|
var TabsContent = react.forwardRef(
|
|
191331
192597
|
(props, forwardedRef) => {
|
|
@@ -191367,9 +192633,9 @@ function makeTriggerId(baseId, value) {
|
|
|
191367
192633
|
function makeContentId(baseId, value) {
|
|
191368
192634
|
return `${baseId}-content-${value}`;
|
|
191369
192635
|
}
|
|
191370
|
-
var
|
|
192636
|
+
var react_tabs_dist_Root2 = Tabs;
|
|
191371
192637
|
var dist_List = TabsList;
|
|
191372
|
-
var
|
|
192638
|
+
var react_tabs_dist_Trigger = TabsTrigger;
|
|
191373
192639
|
var react_tabs_dist_Content = TabsContent;
|
|
191374
192640
|
|
|
191375
192641
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -191379,7 +192645,7 @@ function Tabs_extends() { return Tabs_extends = Object.assign ? Object.assign.bi
|
|
|
191379
192645
|
|
|
191380
192646
|
|
|
191381
192647
|
|
|
191382
|
-
const Tabs_Tabs =
|
|
192648
|
+
const Tabs_Tabs = react_tabs_dist_Root2;
|
|
191383
192649
|
const Tabs_TabsList = /*#__PURE__*/react.forwardRef(({
|
|
191384
192650
|
className,
|
|
191385
192651
|
...props
|
|
@@ -191391,11 +192657,11 @@ Tabs_TabsList.displayName = dist_List.displayName;
|
|
|
191391
192657
|
const Tabs_TabsTrigger = /*#__PURE__*/react.forwardRef(({
|
|
191392
192658
|
className,
|
|
191393
192659
|
...props
|
|
191394
|
-
}, ref) => /*#__PURE__*/react.createElement(
|
|
192660
|
+
}, ref) => /*#__PURE__*/react.createElement(react_tabs_dist_Trigger, Tabs_extends({
|
|
191395
192661
|
ref: ref,
|
|
191396
192662
|
className: utils_cn('ring-offset-background focus-visible:ring-ring data-[state=active]:bg-primary/30 data-[state=active]:primary text-foreground inline-flex items-center justify-center whitespace-nowrap rounded px-2 py-1 text-sm transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow', className)
|
|
191397
192663
|
}, props)));
|
|
191398
|
-
Tabs_TabsTrigger.displayName =
|
|
192664
|
+
Tabs_TabsTrigger.displayName = react_tabs_dist_Trigger.displayName;
|
|
191399
192665
|
const Tabs_TabsContent = /*#__PURE__*/react.forwardRef(({
|
|
191400
192666
|
className,
|
|
191401
192667
|
...props
|
|
@@ -191417,7 +192683,7 @@ Tabs_TabsContent.displayName = react_tabs_dist_Content.displayName;
|
|
|
191417
192683
|
|
|
191418
192684
|
|
|
191419
192685
|
|
|
191420
|
-
var
|
|
192686
|
+
var react_toggle_dist_NAME = "Toggle";
|
|
191421
192687
|
var Toggle = react.forwardRef((props, forwardedRef) => {
|
|
191422
192688
|
const { pressed: pressedProp, defaultPressed = false, onPressedChange, ...buttonProps } = props;
|
|
191423
192689
|
const [pressed = false, setPressed] = useControllableState({
|
|
@@ -191442,7 +192708,7 @@ var Toggle = react.forwardRef((props, forwardedRef) => {
|
|
|
191442
192708
|
}
|
|
191443
192709
|
);
|
|
191444
192710
|
});
|
|
191445
|
-
Toggle.displayName =
|
|
192711
|
+
Toggle.displayName = react_toggle_dist_NAME;
|
|
191446
192712
|
var react_toggle_dist_Root = Toggle;
|
|
191447
192713
|
|
|
191448
192714
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -191747,7 +193013,7 @@ Input.displayName = 'Input';
|
|
|
191747
193013
|
|
|
191748
193014
|
|
|
191749
193015
|
var react_label_dist_NAME = "Label";
|
|
191750
|
-
var
|
|
193016
|
+
var dist_Label = react.forwardRef((props, forwardedRef) => {
|
|
191751
193017
|
return /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
191752
193018
|
Primitive.label,
|
|
191753
193019
|
{
|
|
@@ -191762,8 +193028,8 @@ var Label = react.forwardRef((props, forwardedRef) => {
|
|
|
191762
193028
|
}
|
|
191763
193029
|
);
|
|
191764
193030
|
});
|
|
191765
|
-
|
|
191766
|
-
var react_label_dist_Root =
|
|
193031
|
+
dist_Label.displayName = react_label_dist_NAME;
|
|
193032
|
+
var react_label_dist_Root = dist_Label;
|
|
191767
193033
|
|
|
191768
193034
|
//# sourceMappingURL=index.mjs.map
|
|
191769
193035
|
|
|
@@ -191786,22 +193052,6 @@ Label_Label.displayName = react_label_dist_Root.displayName;
|
|
|
191786
193052
|
;// CONCATENATED MODULE: ../../ui-next/src/components/Label/index.tsx
|
|
191787
193053
|
|
|
191788
193054
|
|
|
191789
|
-
;// CONCATENATED MODULE: ../../../node_modules/@radix-ui/react-use-previous/dist/index.mjs
|
|
191790
|
-
// packages/react/use-previous/src/usePrevious.tsx
|
|
191791
|
-
|
|
191792
|
-
function usePrevious(value) {
|
|
191793
|
-
const ref = react.useRef({ value, previous: value });
|
|
191794
|
-
return react.useMemo(() => {
|
|
191795
|
-
if (ref.current.value !== value) {
|
|
191796
|
-
ref.current.previous = ref.current.value;
|
|
191797
|
-
ref.current.value = value;
|
|
191798
|
-
}
|
|
191799
|
-
return ref.current.previous;
|
|
191800
|
-
}, [value]);
|
|
191801
|
-
}
|
|
191802
|
-
|
|
191803
|
-
//# sourceMappingURL=index.mjs.map
|
|
191804
|
-
|
|
191805
193055
|
;// CONCATENATED MODULE: ../../../node_modules/@radix-ui/react-switch/dist/index.mjs
|
|
191806
193056
|
"use client";
|
|
191807
193057
|
|
|
@@ -192140,14 +193390,6 @@ Checkbox_Checkbox.displayName = react_checkbox_dist_Root.displayName;
|
|
|
192140
193390
|
;// CONCATENATED MODULE: ../../ui-next/src/components/Checkbox/index.tsx
|
|
192141
193391
|
|
|
192142
193392
|
|
|
192143
|
-
;// CONCATENATED MODULE: ../../../node_modules/@radix-ui/number/dist/index.mjs
|
|
192144
|
-
// packages/core/number/src/number.ts
|
|
192145
|
-
function dist_clamp(value, [min, max]) {
|
|
192146
|
-
return Math.min(max, Math.max(min, value));
|
|
192147
|
-
}
|
|
192148
|
-
|
|
192149
|
-
//# sourceMappingURL=index.mjs.map
|
|
192150
|
-
|
|
192151
193393
|
;// CONCATENATED MODULE: ../../../node_modules/@radix-ui/react-slider/dist/index.mjs
|
|
192152
193394
|
"use client";
|
|
192153
193395
|
|
|
@@ -192173,9 +193415,9 @@ var BACK_KEYS = {
|
|
|
192173
193415
|
"from-top": ["Home", "PageDown", "ArrowUp", "ArrowLeft"]
|
|
192174
193416
|
};
|
|
192175
193417
|
var SLIDER_NAME = "Slider";
|
|
192176
|
-
var [
|
|
193418
|
+
var [dist_Collection, dist_useCollection, dist_createCollectionScope] = createCollection(SLIDER_NAME);
|
|
192177
193419
|
var [createSliderContext, createSliderScope] = createContextScope(SLIDER_NAME, [
|
|
192178
|
-
|
|
193420
|
+
dist_createCollectionScope
|
|
192179
193421
|
]);
|
|
192180
193422
|
var [SliderProvider, useSliderContext] = createSliderContext(SLIDER_NAME);
|
|
192181
193423
|
var Slider = react.forwardRef(
|
|
@@ -192227,7 +193469,7 @@ var Slider = react.forwardRef(
|
|
|
192227
193469
|
function updateValues(value2, atIndex, { commit } = { commit: false }) {
|
|
192228
193470
|
const decimalCount = getDecimalCount(step);
|
|
192229
193471
|
const snapToStep = roundValue(Math.round((value2 - min) / step) * step + min, decimalCount);
|
|
192230
|
-
const nextValue =
|
|
193472
|
+
const nextValue = clamp(snapToStep, [min, max]);
|
|
192231
193473
|
setValues((prevValues = []) => {
|
|
192232
193474
|
const nextValues = getNextSortedValues(prevValues, nextValue, atIndex);
|
|
192233
193475
|
if (hasMinStepsBetweenValues(nextValues, minStepsBetweenThumbs * step)) {
|
|
@@ -192252,7 +193494,7 @@ var Slider = react.forwardRef(
|
|
|
192252
193494
|
thumbs: thumbRefs.current,
|
|
192253
193495
|
values,
|
|
192254
193496
|
orientation,
|
|
192255
|
-
children: /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
193497
|
+
children: /* @__PURE__ */ (0,jsx_runtime.jsx)(dist_Collection.Provider, { scope: props.__scopeSlider, children: /* @__PURE__ */ (0,jsx_runtime.jsx)(dist_Collection.Slot, { scope: props.__scopeSlider, children: /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
192256
193498
|
SliderOrientation,
|
|
192257
193499
|
{
|
|
192258
193500
|
"aria-disabled": disabled,
|
|
@@ -192534,7 +193776,7 @@ SliderRange.displayName = RANGE_NAME;
|
|
|
192534
193776
|
var dist_THUMB_NAME = "SliderThumb";
|
|
192535
193777
|
var SliderThumb = react.forwardRef(
|
|
192536
193778
|
(props, forwardedRef) => {
|
|
192537
|
-
const getItems =
|
|
193779
|
+
const getItems = dist_useCollection(props.__scopeSlider);
|
|
192538
193780
|
const [thumb, setThumb] = react.useState(null);
|
|
192539
193781
|
const composedRefs = useComposedRefs(forwardedRef, (node) => setThumb(node));
|
|
192540
193782
|
const index = react.useMemo(
|
|
@@ -192575,7 +193817,7 @@ var SliderThumbImpl = react.forwardRef(
|
|
|
192575
193817
|
[orientation.startEdge]: `calc(${percent}% + ${thumbInBoundsOffset}px)`
|
|
192576
193818
|
},
|
|
192577
193819
|
children: [
|
|
192578
|
-
/* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
193820
|
+
/* @__PURE__ */ (0,jsx_runtime.jsx)(dist_Collection.ItemSlot, { scope: props.__scopeSlider, children: /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
192579
193821
|
Primitive.span,
|
|
192580
193822
|
{
|
|
192581
193823
|
role: "slider",
|
|
@@ -192635,7 +193877,7 @@ function convertValueToPercentage(value, min, max) {
|
|
|
192635
193877
|
const maxSteps = max - min;
|
|
192636
193878
|
const percentPerStep = 100 / maxSteps;
|
|
192637
193879
|
const percentage = percentPerStep * (value - min);
|
|
192638
|
-
return
|
|
193880
|
+
return clamp(percentage, [0, 100]);
|
|
192639
193881
|
}
|
|
192640
193882
|
function getLabel(index, totalValues) {
|
|
192641
193883
|
if (totalValues > 2) {
|
|
@@ -192804,11 +194046,11 @@ var ScrollArea = react.forwardRef(
|
|
|
192804
194046
|
}
|
|
192805
194047
|
);
|
|
192806
194048
|
ScrollArea.displayName = SCROLL_AREA_NAME;
|
|
192807
|
-
var
|
|
194049
|
+
var dist_VIEWPORT_NAME = "ScrollAreaViewport";
|
|
192808
194050
|
var ScrollAreaViewport = react.forwardRef(
|
|
192809
194051
|
(props, forwardedRef) => {
|
|
192810
194052
|
const { __scopeScrollArea, children, nonce, ...viewportProps } = props;
|
|
192811
|
-
const context = useScrollAreaContext(
|
|
194053
|
+
const context = useScrollAreaContext(dist_VIEWPORT_NAME, __scopeScrollArea);
|
|
192812
194054
|
const ref = react.useRef(null);
|
|
192813
194055
|
const composedRefs = useComposedRefs(forwardedRef, ref, context.onViewportChange);
|
|
192814
194056
|
return /* @__PURE__ */ (0,jsx_runtime.jsxs)(jsx_runtime.Fragment, { children: [
|
|
@@ -192849,7 +194091,7 @@ var ScrollAreaViewport = react.forwardRef(
|
|
|
192849
194091
|
] });
|
|
192850
194092
|
}
|
|
192851
194093
|
);
|
|
192852
|
-
ScrollAreaViewport.displayName =
|
|
194094
|
+
ScrollAreaViewport.displayName = dist_VIEWPORT_NAME;
|
|
192853
194095
|
var SCROLLBAR_NAME = "ScrollAreaScrollbar";
|
|
192854
194096
|
var ScrollAreaScrollbar = react.forwardRef(
|
|
192855
194097
|
(props, forwardedRef) => {
|
|
@@ -193380,7 +194622,7 @@ function getThumbOffsetFromScroll(scrollPos, sizes, dir = "ltr") {
|
|
|
193380
194622
|
const maxScrollPos = sizes.content - sizes.viewport;
|
|
193381
194623
|
const maxThumbPos = scrollbar - thumbSizePx;
|
|
193382
194624
|
const scrollClampRange = dir === "ltr" ? [0, maxScrollPos] : [maxScrollPos * -1, 0];
|
|
193383
|
-
const scrollWithoutMomentum =
|
|
194625
|
+
const scrollWithoutMomentum = clamp(scrollPos, scrollClampRange);
|
|
193384
194626
|
const interpolate = dist_linearScale([0, maxScrollPos], [0, maxThumbPos]);
|
|
193385
194627
|
return interpolate(scrollWithoutMomentum);
|
|
193386
194628
|
}
|
|
@@ -193435,7 +194677,7 @@ function useResizeObserver(element, onResize) {
|
|
|
193435
194677
|
}, [element, handleResize]);
|
|
193436
194678
|
}
|
|
193437
194679
|
var react_scroll_area_dist_Root = ScrollArea;
|
|
193438
|
-
var
|
|
194680
|
+
var dist_Viewport = ScrollAreaViewport;
|
|
193439
194681
|
var Scrollbar = (/* unused pure expression or super */ null && (ScrollAreaScrollbar));
|
|
193440
194682
|
var react_scroll_area_dist_Thumb = (/* unused pure expression or super */ null && (ScrollAreaThumb));
|
|
193441
194683
|
var Corner = ScrollAreaCorner;
|
|
@@ -193454,7 +194696,7 @@ const ScrollArea_ScrollArea = /*#__PURE__*/react.forwardRef(({
|
|
|
193454
194696
|
}, ref) => /*#__PURE__*/react.createElement(react_scroll_area_dist_Root, ScrollArea_extends({
|
|
193455
194697
|
ref: ref,
|
|
193456
194698
|
className: utils_cn('relative overflow-hidden', className)
|
|
193457
|
-
}, props), /*#__PURE__*/react.createElement(
|
|
194699
|
+
}, props), /*#__PURE__*/react.createElement(dist_Viewport, {
|
|
193458
194700
|
className: "h-full w-full rounded-[inherit]"
|
|
193459
194701
|
}, children), /*#__PURE__*/react.createElement(ScrollBar, null), /*#__PURE__*/react.createElement(Corner, null)));
|
|
193460
194702
|
ScrollArea_ScrollArea.displayName = react_scroll_area_dist_Root.displayName;
|
|
@@ -193640,9 +194882,9 @@ var react_collapsible_dist_Content = CollapsibleContent;
|
|
|
193640
194882
|
|
|
193641
194883
|
var ACCORDION_NAME = "Accordion";
|
|
193642
194884
|
var ACCORDION_KEYS = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"];
|
|
193643
|
-
var [
|
|
194885
|
+
var [react_accordion_dist_Collection, react_accordion_dist_useCollection, react_accordion_dist_createCollectionScope] = createCollection(ACCORDION_NAME);
|
|
193644
194886
|
var [createAccordionContext, createAccordionScope] = createContextScope(ACCORDION_NAME, [
|
|
193645
|
-
|
|
194887
|
+
react_accordion_dist_createCollectionScope,
|
|
193646
194888
|
createCollapsibleScope
|
|
193647
194889
|
]);
|
|
193648
194890
|
var useCollapsibleScope = createCollapsibleScope();
|
|
@@ -193651,7 +194893,7 @@ var Accordion = react.forwardRef(
|
|
|
193651
194893
|
const { type, ...accordionProps } = props;
|
|
193652
194894
|
const singleProps = accordionProps;
|
|
193653
194895
|
const multipleProps = accordionProps;
|
|
193654
|
-
return /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
194896
|
+
return /* @__PURE__ */ (0,jsx_runtime.jsx)(react_accordion_dist_Collection.Provider, { scope: props.__scopeAccordion, children: type === "multiple" ? /* @__PURE__ */ (0,jsx_runtime.jsx)(AccordionImplMultiple, { ...multipleProps, ref: forwardedRef }) : /* @__PURE__ */ (0,jsx_runtime.jsx)(AccordionImplSingle, { ...singleProps, ref: forwardedRef }) });
|
|
193655
194897
|
}
|
|
193656
194898
|
);
|
|
193657
194899
|
Accordion.displayName = ACCORDION_NAME;
|
|
@@ -193725,7 +194967,7 @@ var AccordionImpl = react.forwardRef(
|
|
|
193725
194967
|
const { __scopeAccordion, disabled, dir, orientation = "vertical", ...accordionProps } = props;
|
|
193726
194968
|
const accordionRef = react.useRef(null);
|
|
193727
194969
|
const composedRefs = useComposedRefs(accordionRef, forwardedRef);
|
|
193728
|
-
const getItems =
|
|
194970
|
+
const getItems = react_accordion_dist_useCollection(__scopeAccordion);
|
|
193729
194971
|
const direction = useDirection(dir);
|
|
193730
194972
|
const isDirectionLTR = direction === "ltr";
|
|
193731
194973
|
const handleKeyDown = composeEventHandlers(props.onKeyDown, (event) => {
|
|
@@ -193797,7 +195039,7 @@ var AccordionImpl = react.forwardRef(
|
|
|
193797
195039
|
disabled,
|
|
193798
195040
|
direction: dir,
|
|
193799
195041
|
orientation,
|
|
193800
|
-
children: /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
195042
|
+
children: /* @__PURE__ */ (0,jsx_runtime.jsx)(react_accordion_dist_Collection.Slot, { scope: __scopeAccordion, children: /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
193801
195043
|
Primitive.div,
|
|
193802
195044
|
{
|
|
193803
195045
|
...accordionProps,
|
|
@@ -193810,13 +195052,13 @@ var AccordionImpl = react.forwardRef(
|
|
|
193810
195052
|
);
|
|
193811
195053
|
}
|
|
193812
195054
|
);
|
|
193813
|
-
var
|
|
193814
|
-
var [AccordionItemProvider, useAccordionItemContext] = createAccordionContext(
|
|
195055
|
+
var dist_ITEM_NAME = "AccordionItem";
|
|
195056
|
+
var [AccordionItemProvider, useAccordionItemContext] = createAccordionContext(dist_ITEM_NAME);
|
|
193815
195057
|
var AccordionItem = react.forwardRef(
|
|
193816
195058
|
(props, forwardedRef) => {
|
|
193817
195059
|
const { __scopeAccordion, value, ...accordionItemProps } = props;
|
|
193818
|
-
const accordionContext = useAccordionContext(
|
|
193819
|
-
const valueContext = useAccordionValueContext(
|
|
195060
|
+
const accordionContext = useAccordionContext(dist_ITEM_NAME, __scopeAccordion);
|
|
195061
|
+
const valueContext = useAccordionValueContext(dist_ITEM_NAME, __scopeAccordion);
|
|
193820
195062
|
const collapsibleScope = useCollapsibleScope(__scopeAccordion);
|
|
193821
195063
|
const triggerId = useId();
|
|
193822
195064
|
const open = value && valueContext.value.includes(value) || false;
|
|
@@ -193851,7 +195093,7 @@ var AccordionItem = react.forwardRef(
|
|
|
193851
195093
|
);
|
|
193852
195094
|
}
|
|
193853
195095
|
);
|
|
193854
|
-
AccordionItem.displayName =
|
|
195096
|
+
AccordionItem.displayName = dist_ITEM_NAME;
|
|
193855
195097
|
var HEADER_NAME = "AccordionHeader";
|
|
193856
195098
|
var AccordionHeader = react.forwardRef(
|
|
193857
195099
|
(props, forwardedRef) => {
|
|
@@ -193879,7 +195121,7 @@ var AccordionTrigger = react.forwardRef(
|
|
|
193879
195121
|
const itemContext = useAccordionItemContext(react_accordion_dist_TRIGGER_NAME, __scopeAccordion);
|
|
193880
195122
|
const collapsibleContext = useAccordionCollapsibleContext(react_accordion_dist_TRIGGER_NAME, __scopeAccordion);
|
|
193881
195123
|
const collapsibleScope = useCollapsibleScope(__scopeAccordion);
|
|
193882
|
-
return /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
195124
|
+
return /* @__PURE__ */ (0,jsx_runtime.jsx)(react_accordion_dist_Collection.ItemSlot, { scope: __scopeAccordion, children: /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
193883
195125
|
react_collapsible_dist_Trigger,
|
|
193884
195126
|
{
|
|
193885
195127
|
"aria-disabled": itemContext.open && !collapsibleContext.collapsible || void 0,
|
|
@@ -193923,10 +195165,10 @@ function react_accordion_dist_getState(open) {
|
|
|
193923
195165
|
return open ? "open" : "closed";
|
|
193924
195166
|
}
|
|
193925
195167
|
var react_accordion_dist_Root2 = Accordion;
|
|
193926
|
-
var
|
|
195168
|
+
var dist_Item = AccordionItem;
|
|
193927
195169
|
var Header = AccordionHeader;
|
|
193928
195170
|
var Trigger2 = AccordionTrigger;
|
|
193929
|
-
var
|
|
195171
|
+
var dist_Content2 = AccordionContent;
|
|
193930
195172
|
|
|
193931
195173
|
//# sourceMappingURL=index.mjs.map
|
|
193932
195174
|
|
|
@@ -193942,7 +195184,7 @@ const Accordion_Accordion = react_accordion_dist_Root2;
|
|
|
193942
195184
|
const Accordion_AccordionItem = /*#__PURE__*/react.forwardRef(({
|
|
193943
195185
|
className,
|
|
193944
195186
|
...props
|
|
193945
|
-
}, ref) => /*#__PURE__*/react.createElement(
|
|
195187
|
+
}, ref) => /*#__PURE__*/react.createElement(dist_Item, Accordion_extends({
|
|
193946
195188
|
ref: ref,
|
|
193947
195189
|
className: utils_cn(className)
|
|
193948
195190
|
}, props)));
|
|
@@ -193964,13 +195206,13 @@ const Accordion_AccordionContent = /*#__PURE__*/react.forwardRef(({
|
|
|
193964
195206
|
className,
|
|
193965
195207
|
children,
|
|
193966
195208
|
...props
|
|
193967
|
-
}, ref) => /*#__PURE__*/react.createElement(
|
|
195209
|
+
}, ref) => /*#__PURE__*/react.createElement(dist_Content2, Accordion_extends({
|
|
193968
195210
|
ref: ref,
|
|
193969
195211
|
className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm"
|
|
193970
195212
|
}, props), /*#__PURE__*/react.createElement("div", {
|
|
193971
195213
|
className: utils_cn(className)
|
|
193972
195214
|
}, children)));
|
|
193973
|
-
Accordion_AccordionContent.displayName =
|
|
195215
|
+
Accordion_AccordionContent.displayName = dist_Content2.displayName;
|
|
193974
195216
|
|
|
193975
195217
|
;// CONCATENATED MODULE: ../../ui-next/src/components/Accordion/index.ts
|
|
193976
195218
|
|
|
@@ -193978,9 +195220,10 @@ Accordion_AccordionContent.displayName = Content2.displayName;
|
|
|
193978
195220
|
;// CONCATENATED MODULE: ../../ui-next/src/components/Icons/Icons.tsx
|
|
193979
195221
|
function Icons_extends() { return Icons_extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, Icons_extends.apply(null, arguments); }
|
|
193980
195222
|
|
|
193981
|
-
const Icons = {
|
|
193982
|
-
// Usage example: <Icons.ArrowLeft />
|
|
193983
195223
|
|
|
195224
|
+
const Icons_Icons = {
|
|
195225
|
+
// Usage example: <Icons.ArrowLeft />
|
|
195226
|
+
Code: Code,
|
|
193984
195227
|
Add: props => /*#__PURE__*/react.createElement("svg", Icons_extends({
|
|
193985
195228
|
width: "24px",
|
|
193986
195229
|
height: "24px",
|
|
@@ -195414,13 +196657,13 @@ const Icons = {
|
|
|
195414
196657
|
d: "M0 0h22v22H0z"
|
|
195415
196658
|
}))),
|
|
195416
196659
|
// Aliases
|
|
195417
|
-
'tab-segmentation': props =>
|
|
195418
|
-
'tab-studies': props =>
|
|
195419
|
-
'tab-linear': props =>
|
|
195420
|
-
'tab-4d': props =>
|
|
195421
|
-
'tab-patient-info': props =>
|
|
195422
|
-
'tab-roi-threshold': props =>
|
|
195423
|
-
'icon-mpr': props =>
|
|
196660
|
+
'tab-segmentation': props => Icons_Icons.TabSegmentation(props),
|
|
196661
|
+
'tab-studies': props => Icons_Icons.TabStudies(props),
|
|
196662
|
+
'tab-linear': props => Icons_Icons.TabLinear(props),
|
|
196663
|
+
'tab-4d': props => Icons_Icons.Tab4D(props),
|
|
196664
|
+
'tab-patient-info': props => Icons_Icons.TabPatientInfo(props),
|
|
196665
|
+
'tab-roi-threshold': props => Icons_Icons.TabRoiThreshold(props),
|
|
196666
|
+
'icon-mpr': props => Icons_Icons.IconMPR(props)
|
|
195424
196667
|
};
|
|
195425
196668
|
;// CONCATENATED MODULE: ../../ui-next/src/components/Icons/index.ts
|
|
195426
196669
|
|
|
@@ -195431,42 +196674,6 @@ var classnames_default = /*#__PURE__*/__webpack_require__.n(classnames);
|
|
|
195431
196674
|
// EXTERNAL MODULE: ../../../node_modules/prop-types/index.js
|
|
195432
196675
|
var prop_types = __webpack_require__(3827);
|
|
195433
196676
|
var prop_types_default = /*#__PURE__*/__webpack_require__.n(prop_types);
|
|
195434
|
-
;// CONCATENATED MODULE: ../../../node_modules/@radix-ui/react-visually-hidden/dist/index.mjs
|
|
195435
|
-
// packages/react/visually-hidden/src/VisuallyHidden.tsx
|
|
195436
|
-
|
|
195437
|
-
|
|
195438
|
-
|
|
195439
|
-
var react_visually_hidden_dist_NAME = "VisuallyHidden";
|
|
195440
|
-
var VisuallyHidden = react.forwardRef(
|
|
195441
|
-
(props, forwardedRef) => {
|
|
195442
|
-
return /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
195443
|
-
Primitive.span,
|
|
195444
|
-
{
|
|
195445
|
-
...props,
|
|
195446
|
-
ref: forwardedRef,
|
|
195447
|
-
style: {
|
|
195448
|
-
// See: https://github.com/twbs/bootstrap/blob/master/scss/mixins/_screen-reader.scss
|
|
195449
|
-
position: "absolute",
|
|
195450
|
-
border: 0,
|
|
195451
|
-
width: 1,
|
|
195452
|
-
height: 1,
|
|
195453
|
-
padding: 0,
|
|
195454
|
-
margin: -1,
|
|
195455
|
-
overflow: "hidden",
|
|
195456
|
-
clip: "rect(0, 0, 0, 0)",
|
|
195457
|
-
whiteSpace: "nowrap",
|
|
195458
|
-
wordWrap: "normal",
|
|
195459
|
-
...props.style
|
|
195460
|
-
}
|
|
195461
|
-
}
|
|
195462
|
-
);
|
|
195463
|
-
}
|
|
195464
|
-
);
|
|
195465
|
-
VisuallyHidden.displayName = react_visually_hidden_dist_NAME;
|
|
195466
|
-
var react_visually_hidden_dist_Root = VisuallyHidden;
|
|
195467
|
-
|
|
195468
|
-
//# sourceMappingURL=index.mjs.map
|
|
195469
|
-
|
|
195470
196677
|
;// CONCATENATED MODULE: ../../../node_modules/@radix-ui/react-tooltip/dist/index.mjs
|
|
195471
196678
|
"use client";
|
|
195472
196679
|
|
|
@@ -195489,12 +196696,12 @@ var react_visually_hidden_dist_Root = VisuallyHidden;
|
|
|
195489
196696
|
var [createTooltipContext, createTooltipScope] = createContextScope("Tooltip", [
|
|
195490
196697
|
createPopperScope
|
|
195491
196698
|
]);
|
|
195492
|
-
var
|
|
196699
|
+
var dist_usePopperScope = createPopperScope();
|
|
195493
196700
|
var PROVIDER_NAME = "TooltipProvider";
|
|
195494
196701
|
var DEFAULT_DELAY_DURATION = 700;
|
|
195495
196702
|
var TOOLTIP_OPEN = "tooltip.open";
|
|
195496
196703
|
var [TooltipProviderContextProvider, useTooltipProviderContext] = createTooltipContext(PROVIDER_NAME);
|
|
195497
|
-
var
|
|
196704
|
+
var dist_TooltipProvider = (props) => {
|
|
195498
196705
|
const {
|
|
195499
196706
|
__scopeTooltip,
|
|
195500
196707
|
delayDuration = DEFAULT_DELAY_DURATION,
|
|
@@ -195535,10 +196742,10 @@ var TooltipProvider = (props) => {
|
|
|
195535
196742
|
}
|
|
195536
196743
|
);
|
|
195537
196744
|
};
|
|
195538
|
-
|
|
196745
|
+
dist_TooltipProvider.displayName = PROVIDER_NAME;
|
|
195539
196746
|
var TOOLTIP_NAME = "Tooltip";
|
|
195540
196747
|
var [TooltipContextProvider, useTooltipContext] = createTooltipContext(TOOLTIP_NAME);
|
|
195541
|
-
var
|
|
196748
|
+
var dist_Tooltip = (props) => {
|
|
195542
196749
|
const {
|
|
195543
196750
|
__scopeTooltip,
|
|
195544
196751
|
children,
|
|
@@ -195549,7 +196756,7 @@ var Tooltip = (props) => {
|
|
|
195549
196756
|
delayDuration: delayDurationProp
|
|
195550
196757
|
} = props;
|
|
195551
196758
|
const providerContext = useTooltipProviderContext(TOOLTIP_NAME, props.__scopeTooltip);
|
|
195552
|
-
const popperScope =
|
|
196759
|
+
const popperScope = dist_usePopperScope(__scopeTooltip);
|
|
195553
196760
|
const [trigger, setTrigger] = react.useState(null);
|
|
195554
196761
|
const contentId = useId();
|
|
195555
196762
|
const openTimerRef = react.useRef(0);
|
|
@@ -195618,14 +196825,14 @@ var Tooltip = (props) => {
|
|
|
195618
196825
|
}
|
|
195619
196826
|
) });
|
|
195620
196827
|
};
|
|
195621
|
-
|
|
196828
|
+
dist_Tooltip.displayName = TOOLTIP_NAME;
|
|
195622
196829
|
var react_tooltip_dist_TRIGGER_NAME = "TooltipTrigger";
|
|
195623
|
-
var
|
|
196830
|
+
var dist_TooltipTrigger = react.forwardRef(
|
|
195624
196831
|
(props, forwardedRef) => {
|
|
195625
196832
|
const { __scopeTooltip, ...triggerProps } = props;
|
|
195626
196833
|
const context = useTooltipContext(react_tooltip_dist_TRIGGER_NAME, __scopeTooltip);
|
|
195627
196834
|
const providerContext = useTooltipProviderContext(react_tooltip_dist_TRIGGER_NAME, __scopeTooltip);
|
|
195628
|
-
const popperScope =
|
|
196835
|
+
const popperScope = dist_usePopperScope(__scopeTooltip);
|
|
195629
196836
|
const ref = react.useRef(null);
|
|
195630
196837
|
const composedRefs = useComposedRefs(forwardedRef, ref, context.onTriggerChange);
|
|
195631
196838
|
const isPointerDownRef = react.useRef(false);
|
|
@@ -195634,7 +196841,7 @@ var TooltipTrigger = react.forwardRef(
|
|
|
195634
196841
|
react.useEffect(() => {
|
|
195635
196842
|
return () => document.removeEventListener("pointerup", handlePointerUp);
|
|
195636
196843
|
}, [handlePointerUp]);
|
|
195637
|
-
return /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
196844
|
+
return /* @__PURE__ */ (0,jsx_runtime.jsx)(Anchor, { asChild: true, ...popperScope, children: /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
195638
196845
|
Primitive.button,
|
|
195639
196846
|
{
|
|
195640
196847
|
"aria-describedby": context.open ? context.contentId : void 0,
|
|
@@ -195665,7 +196872,7 @@ var TooltipTrigger = react.forwardRef(
|
|
|
195665
196872
|
) });
|
|
195666
196873
|
}
|
|
195667
196874
|
);
|
|
195668
|
-
|
|
196875
|
+
dist_TooltipTrigger.displayName = react_tooltip_dist_TRIGGER_NAME;
|
|
195669
196876
|
var react_tooltip_dist_PORTAL_NAME = "TooltipPortal";
|
|
195670
196877
|
var [dist_PortalProvider, dist_usePortalContext] = createTooltipContext(react_tooltip_dist_PORTAL_NAME, {
|
|
195671
196878
|
forceMount: void 0
|
|
@@ -195677,7 +196884,7 @@ var TooltipPortal = (props) => {
|
|
|
195677
196884
|
};
|
|
195678
196885
|
TooltipPortal.displayName = react_tooltip_dist_PORTAL_NAME;
|
|
195679
196886
|
var react_tooltip_dist_CONTENT_NAME = "TooltipContent";
|
|
195680
|
-
var
|
|
196887
|
+
var dist_TooltipContent = react.forwardRef(
|
|
195681
196888
|
(props, forwardedRef) => {
|
|
195682
196889
|
const portalContext = dist_usePortalContext(react_tooltip_dist_CONTENT_NAME, props.__scopeTooltip);
|
|
195683
196890
|
const { forceMount = portalContext.forceMount, side = "top", ...contentProps } = props;
|
|
@@ -195758,7 +196965,7 @@ var TooltipContentImpl = react.forwardRef(
|
|
|
195758
196965
|
...contentProps
|
|
195759
196966
|
} = props;
|
|
195760
196967
|
const context = useTooltipContext(react_tooltip_dist_CONTENT_NAME, __scopeTooltip);
|
|
195761
|
-
const popperScope =
|
|
196968
|
+
const popperScope = dist_usePopperScope(__scopeTooltip);
|
|
195762
196969
|
const { onClose } = context;
|
|
195763
196970
|
react.useEffect(() => {
|
|
195764
196971
|
document.addEventListener(TOOLTIP_OPEN, onClose);
|
|
@@ -195811,20 +197018,20 @@ var TooltipContentImpl = react.forwardRef(
|
|
|
195811
197018
|
);
|
|
195812
197019
|
}
|
|
195813
197020
|
);
|
|
195814
|
-
|
|
195815
|
-
var
|
|
197021
|
+
dist_TooltipContent.displayName = react_tooltip_dist_CONTENT_NAME;
|
|
197022
|
+
var react_tooltip_dist_ARROW_NAME = "TooltipArrow";
|
|
195816
197023
|
var TooltipArrow = react.forwardRef(
|
|
195817
197024
|
(props, forwardedRef) => {
|
|
195818
197025
|
const { __scopeTooltip, ...arrowProps } = props;
|
|
195819
|
-
const popperScope =
|
|
197026
|
+
const popperScope = dist_usePopperScope(__scopeTooltip);
|
|
195820
197027
|
const visuallyHiddenContentContext = useVisuallyHiddenContentContext(
|
|
195821
|
-
|
|
197028
|
+
react_tooltip_dist_ARROW_NAME,
|
|
195822
197029
|
__scopeTooltip
|
|
195823
197030
|
);
|
|
195824
197031
|
return visuallyHiddenContentContext.isInside ? null : /* @__PURE__ */ (0,jsx_runtime.jsx)(Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef });
|
|
195825
197032
|
}
|
|
195826
197033
|
);
|
|
195827
|
-
TooltipArrow.displayName =
|
|
197034
|
+
TooltipArrow.displayName = react_tooltip_dist_ARROW_NAME;
|
|
195828
197035
|
function getExitSideFromRect(point, rect) {
|
|
195829
197036
|
const top = Math.abs(rect.top - point.y);
|
|
195830
197037
|
const bottom = Math.abs(rect.bottom - point.y);
|
|
@@ -195938,12 +197145,12 @@ function getHullPresorted(points) {
|
|
|
195938
197145
|
return upperHull.concat(lowerHull);
|
|
195939
197146
|
}
|
|
195940
197147
|
}
|
|
195941
|
-
var dist_Provider =
|
|
195942
|
-
var Root3 =
|
|
195943
|
-
var react_tooltip_dist_Trigger =
|
|
197148
|
+
var dist_Provider = dist_TooltipProvider;
|
|
197149
|
+
var Root3 = dist_Tooltip;
|
|
197150
|
+
var react_tooltip_dist_Trigger = dist_TooltipTrigger;
|
|
195944
197151
|
var react_tooltip_dist_Portal = (/* unused pure expression or super */ null && (TooltipPortal));
|
|
195945
|
-
var
|
|
195946
|
-
var
|
|
197152
|
+
var react_tooltip_dist_Content2 = dist_TooltipContent;
|
|
197153
|
+
var dist_Arrow2 = (/* unused pure expression or super */ null && (TooltipArrow));
|
|
195947
197154
|
|
|
195948
197155
|
//# sourceMappingURL=index.mjs.map
|
|
195949
197156
|
|
|
@@ -195959,12 +197166,12 @@ const Tooltip_TooltipContent = /*#__PURE__*/react.forwardRef(({
|
|
|
195959
197166
|
className,
|
|
195960
197167
|
sideOffset = 4,
|
|
195961
197168
|
...props
|
|
195962
|
-
}, ref) => /*#__PURE__*/react.createElement(
|
|
197169
|
+
}, ref) => /*#__PURE__*/react.createElement(react_tooltip_dist_Content2, Tooltip_extends({
|
|
195963
197170
|
ref: ref,
|
|
195964
197171
|
sideOffset: sideOffset,
|
|
195965
197172
|
className: utils_cn('bg-primary-dark border-secondary-light text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 overflow-hidden rounded border px-3 py-1.5 text-xs', className)
|
|
195966
197173
|
}, props)));
|
|
195967
|
-
Tooltip_TooltipContent.displayName =
|
|
197174
|
+
Tooltip_TooltipContent.displayName = react_tooltip_dist_Content2.displayName;
|
|
195968
197175
|
|
|
195969
197176
|
;// CONCATENATED MODULE: ../../ui-next/src/components/Tooltip/index.ts
|
|
195970
197177
|
|
|
@@ -196130,7 +197337,7 @@ const SidePanel = ({
|
|
|
196130
197337
|
updatePanelOpen(!panelOpen);
|
|
196131
197338
|
},
|
|
196132
197339
|
"data-cy": `side-panel-header-${side}`
|
|
196133
|
-
}, /*#__PURE__*/react.createElement(
|
|
197340
|
+
}, /*#__PURE__*/react.createElement(Icons_Icons.NavigationPanelReveal, {
|
|
196134
197341
|
className: classnames_default()('text-primary-active', side === 'left' && 'rotate-180 transform')
|
|
196135
197342
|
})), /*#__PURE__*/react.createElement("div", {
|
|
196136
197343
|
className: classnames_default()('mt-3 flex flex-col space-y-3')
|
|
@@ -196143,7 +197350,7 @@ const SidePanel = ({
|
|
|
196143
197350
|
onClick: () => {
|
|
196144
197351
|
return childComponent.disabled ? null : updateActiveTabIndex(index);
|
|
196145
197352
|
}
|
|
196146
|
-
}, /*#__PURE__*/react.createElement(
|
|
197353
|
+
}, /*#__PURE__*/react.createElement(Icons_Icons[childComponent.iconName] || Icons_Icons.MissingIcon, {
|
|
196147
197354
|
className: classnames_default()({
|
|
196148
197355
|
'text-primary-active': true,
|
|
196149
197356
|
'ohif-disabled': childComponent.disabled
|
|
@@ -196168,7 +197375,7 @@ const SidePanel = ({
|
|
|
196168
197375
|
updatePanelOpen(!panelOpen);
|
|
196169
197376
|
},
|
|
196170
197377
|
"data-cy": `side-panel-header-${side}`
|
|
196171
|
-
}, /*#__PURE__*/react.createElement(
|
|
197378
|
+
}, /*#__PURE__*/react.createElement(Icons_Icons[openStateIconName[side]] || Icons_Icons.MissingIcon, {
|
|
196172
197379
|
className: 'text-primary-active'
|
|
196173
197380
|
}));
|
|
196174
197381
|
};
|
|
@@ -196199,7 +197406,7 @@ const SidePanel = ({
|
|
|
196199
197406
|
"data-cy": `${tab.name}-btn`
|
|
196200
197407
|
}, /*#__PURE__*/react.createElement("div", {
|
|
196201
197408
|
className: getTabIconClassNames(tabs.length, tabIndex === activeTabIndex)
|
|
196202
|
-
}, /*#__PURE__*/react.createElement(
|
|
197409
|
+
}, /*#__PURE__*/react.createElement(Icons_Icons[tab.iconName] || Icons_Icons.MissingIcon, {
|
|
196203
197410
|
className: classnames_default()({
|
|
196204
197411
|
'text-primary-active': true,
|
|
196205
197412
|
'ohif-disabled': disabled
|
|
@@ -196285,7 +197492,7 @@ const DisplaySetMessageListTooltip = ({
|
|
|
196285
197492
|
if (messages?.size()) {
|
|
196286
197493
|
return /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement(Tooltip_TooltipProvider, null, /*#__PURE__*/react.createElement(Tooltip_Tooltip, null, /*#__PURE__*/react.createElement(Tooltip_TooltipTrigger, {
|
|
196287
197494
|
id: id
|
|
196288
|
-
}, /*#__PURE__*/react.createElement(
|
|
197495
|
+
}, /*#__PURE__*/react.createElement(Icons_Icons.StatusWarning, {
|
|
196289
197496
|
className: "h-[20px] w-[20px]"
|
|
196290
197497
|
})), /*#__PURE__*/react.createElement(Tooltip_TooltipContent, {
|
|
196291
197498
|
side: "right"
|
|
@@ -196403,14 +197610,14 @@ const Thumbnail = ({
|
|
|
196403
197610
|
}, /*#__PURE__*/react.createElement(DisplaySetMessageListTooltip, {
|
|
196404
197611
|
messages: messages,
|
|
196405
197612
|
id: `display-set-tooltip-${displaySetInstanceUID}`
|
|
196406
|
-
}), canReject && /*#__PURE__*/react.createElement(
|
|
197613
|
+
}), canReject && /*#__PURE__*/react.createElement(Icons_Icons.Trash, {
|
|
196407
197614
|
className: "h-[20px] w-[20px] text-red-500",
|
|
196408
197615
|
onClick: onReject
|
|
196409
197616
|
}), isTracked && /*#__PURE__*/react.createElement(Tooltip_TooltipProvider, null, /*#__PURE__*/react.createElement(Tooltip_Tooltip, null, /*#__PURE__*/react.createElement(Tooltip_TooltipTrigger, null, /*#__PURE__*/react.createElement("div", {
|
|
196410
197617
|
className: "group"
|
|
196411
|
-
}, /*#__PURE__*/react.createElement(
|
|
197618
|
+
}, /*#__PURE__*/react.createElement(Icons_Icons.StatusTracking, {
|
|
196412
197619
|
className: "text-primary-light h-[20px] w-[20px] group-hover:hidden"
|
|
196413
|
-
}), /*#__PURE__*/react.createElement(
|
|
197620
|
+
}), /*#__PURE__*/react.createElement(Icons_Icons.Cancel, {
|
|
196414
197621
|
className: "text-primary-light hidden h-[15px] w-[15px] group-hover:block",
|
|
196415
197622
|
onClick: onClickUntrack
|
|
196416
197623
|
}))), /*#__PURE__*/react.createElement(Tooltip_TooltipContent, {
|
|
@@ -196419,7 +197626,7 @@ const Thumbnail = ({
|
|
|
196419
197626
|
className: "flex flex-1 flex-row"
|
|
196420
197627
|
}, /*#__PURE__*/react.createElement("div", {
|
|
196421
197628
|
className: "flex-2 flex items-center justify-center pr-4"
|
|
196422
|
-
}, /*#__PURE__*/react.createElement(
|
|
197629
|
+
}, /*#__PURE__*/react.createElement(Icons_Icons.InfoLink, {
|
|
196423
197630
|
className: "text-primary-active"
|
|
196424
197631
|
})), /*#__PURE__*/react.createElement("div", {
|
|
196425
197632
|
className: "flex flex-1 flex-col"
|
|
@@ -196437,9 +197644,9 @@ const Thumbnail = ({
|
|
|
196437
197644
|
className: "text-muted-foreground text-[12px]"
|
|
196438
197645
|
}, /*#__PURE__*/react.createElement("div", {
|
|
196439
197646
|
className: "flex items-center gap-[4px]"
|
|
196440
|
-
}, ' ', countIcon ? ( /*#__PURE__*/react.createElement(
|
|
197647
|
+
}, ' ', countIcon ? ( /*#__PURE__*/react.createElement(Icons_Icons[countIcon] || Icons_Icons.MissingIcon, {
|
|
196441
197648
|
className: 'w-3'
|
|
196442
|
-
})) : /*#__PURE__*/react.createElement(
|
|
197649
|
+
})) : /*#__PURE__*/react.createElement(Icons_Icons.InfoSeries, {
|
|
196443
197650
|
className: "w-3"
|
|
196444
197651
|
}), /*#__PURE__*/react.createElement("div", null, numInstances))))));
|
|
196445
197652
|
};
|
|
@@ -196466,23 +197673,23 @@ const Thumbnail = ({
|
|
|
196466
197673
|
className: "text-muted-foreground text-[12px]"
|
|
196467
197674
|
}, /*#__PURE__*/react.createElement("div", {
|
|
196468
197675
|
className: "flex items-center gap-[4px]"
|
|
196469
|
-
}, ' ', countIcon ? ( /*#__PURE__*/react.createElement(
|
|
197676
|
+
}, ' ', countIcon ? ( /*#__PURE__*/react.createElement(Icons_Icons[countIcon] || Icons_Icons.MissingIcon, {
|
|
196470
197677
|
className: 'w-3'
|
|
196471
|
-
})) : /*#__PURE__*/react.createElement(
|
|
197678
|
+
})) : /*#__PURE__*/react.createElement(Icons_Icons.InfoSeries, {
|
|
196472
197679
|
className: "w-3"
|
|
196473
197680
|
}), /*#__PURE__*/react.createElement("div", null, numInstances)))))), /*#__PURE__*/react.createElement("div", {
|
|
196474
197681
|
className: "flex h-full items-center gap-[4px]"
|
|
196475
197682
|
}, /*#__PURE__*/react.createElement(DisplaySetMessageListTooltip, {
|
|
196476
197683
|
messages: messages,
|
|
196477
197684
|
id: `display-set-tooltip-${displaySetInstanceUID}`
|
|
196478
|
-
}), canReject && /*#__PURE__*/react.createElement(
|
|
197685
|
+
}), canReject && /*#__PURE__*/react.createElement(Icons_Icons.Trash, {
|
|
196479
197686
|
className: "h-[20px] w-[20px] text-red-500",
|
|
196480
197687
|
onClick: onReject
|
|
196481
197688
|
}), isTracked && /*#__PURE__*/react.createElement(Tooltip_TooltipProvider, null, /*#__PURE__*/react.createElement(Tooltip_Tooltip, null, /*#__PURE__*/react.createElement(Tooltip_TooltipTrigger, null, /*#__PURE__*/react.createElement("div", {
|
|
196482
197689
|
className: "group"
|
|
196483
|
-
}, /*#__PURE__*/react.createElement(
|
|
197690
|
+
}, /*#__PURE__*/react.createElement(Icons_Icons.StatusTracking, {
|
|
196484
197691
|
className: "text-primary-light h-[20px] w-[20px] group-hover:hidden"
|
|
196485
|
-
}), /*#__PURE__*/react.createElement(
|
|
197692
|
+
}), /*#__PURE__*/react.createElement(Icons_Icons.Cancel, {
|
|
196486
197693
|
className: "text-primary-light hidden h-[15px] w-[15px] group-hover:block",
|
|
196487
197694
|
onClick: onClickUntrack
|
|
196488
197695
|
}))), /*#__PURE__*/react.createElement(Tooltip_TooltipContent, {
|
|
@@ -196491,7 +197698,7 @@ const Thumbnail = ({
|
|
|
196491
197698
|
className: "flex flex-1 flex-row"
|
|
196492
197699
|
}, /*#__PURE__*/react.createElement("div", {
|
|
196493
197700
|
className: "flex-2 flex items-center justify-center pr-4"
|
|
196494
|
-
}, /*#__PURE__*/react.createElement(
|
|
197701
|
+
}, /*#__PURE__*/react.createElement(Icons_Icons.InfoLink, {
|
|
196495
197702
|
className: "text-primary-active"
|
|
196496
197703
|
})), /*#__PURE__*/react.createElement("div", {
|
|
196497
197704
|
className: "flex flex-1 flex-col"
|
|
@@ -196812,9 +198019,9 @@ function StudyBrowserSort({
|
|
|
196812
198019
|
}, sort.label))), /*#__PURE__*/react.createElement("button", {
|
|
196813
198020
|
onClick: toggleSortDirection,
|
|
196814
198021
|
className: "flex items-center justify-center"
|
|
196815
|
-
}, sortDirection === 'ascending' ? /*#__PURE__*/react.createElement(
|
|
198022
|
+
}, sortDirection === 'ascending' ? /*#__PURE__*/react.createElement(Icons_Icons.SortingAscending, {
|
|
196816
198023
|
className: "text-primary-main w-2"
|
|
196817
|
-
}) : /*#__PURE__*/react.createElement(
|
|
198024
|
+
}) : /*#__PURE__*/react.createElement(Icons_Icons.SortingDescending, {
|
|
196818
198025
|
className: "text-primary-main w-2"
|
|
196819
198026
|
})));
|
|
196820
198027
|
}
|
|
@@ -197006,7 +198213,7 @@ const PanelSection = ({
|
|
|
197006
198213
|
}, title), /*#__PURE__*/react.createElement("div", {
|
|
197007
198214
|
className: "flex items-center space-x-1"
|
|
197008
198215
|
}, actionIcons.map((icon, index) => {
|
|
197009
|
-
const Icon =
|
|
198216
|
+
const Icon = Icons_Icons[icon.name];
|
|
197010
198217
|
return /*#__PURE__*/react.createElement(Icon, {
|
|
197011
198218
|
key: index,
|
|
197012
198219
|
onClick: e => {
|
|
@@ -197019,7 +198226,7 @@ const PanelSection = ({
|
|
|
197019
198226
|
});
|
|
197020
198227
|
}), /*#__PURE__*/react.createElement("div", {
|
|
197021
198228
|
className: "grid h-[28px] w-[28px] place-items-center"
|
|
197022
|
-
}, areChildrenVisible ? /*#__PURE__*/react.createElement(
|
|
198229
|
+
}, areChildrenVisible ? /*#__PURE__*/react.createElement(Icons_Icons.ChevronOpen, null) : /*#__PURE__*/react.createElement(Icons_Icons.ChevronClosed, null)))), areChildrenVisible && /*#__PURE__*/react.createElement(react.Fragment, null, /*#__PURE__*/react.createElement("div", {
|
|
197023
198230
|
className: "h-[2px] bg-black"
|
|
197024
198231
|
}), /*#__PURE__*/react.createElement("div", {
|
|
197025
198232
|
className: `bg-primary-dark flex flex-col overflow-hidden rounded-b-[4px] ${childrenClassName}`
|
|
@@ -197346,13 +198553,13 @@ function Toolbox({
|
|
|
197346
198553
|
|
|
197347
198554
|
|
|
197348
198555
|
|
|
197349
|
-
var
|
|
198556
|
+
var dist_SELECTION_KEYS = ["Enter", " "];
|
|
197350
198557
|
var FIRST_KEYS = ["ArrowDown", "PageUp", "Home"];
|
|
197351
198558
|
var LAST_KEYS = ["ArrowUp", "PageDown", "End"];
|
|
197352
198559
|
var FIRST_LAST_KEYS = [...FIRST_KEYS, ...LAST_KEYS];
|
|
197353
198560
|
var SUB_OPEN_KEYS = {
|
|
197354
|
-
ltr: [...
|
|
197355
|
-
rtl: [...
|
|
198561
|
+
ltr: [...dist_SELECTION_KEYS, "ArrowRight"],
|
|
198562
|
+
rtl: [...dist_SELECTION_KEYS, "ArrowLeft"]
|
|
197356
198563
|
};
|
|
197357
198564
|
var SUB_CLOSE_KEYS = {
|
|
197358
198565
|
ltr: ["ArrowLeft"],
|
|
@@ -197365,13 +198572,13 @@ var [createMenuContext, createMenuScope] = createContextScope(MENU_NAME, [
|
|
|
197365
198572
|
createPopperScope,
|
|
197366
198573
|
$d7bdfb9eb0fdf311$export$c7109489551a4f4
|
|
197367
198574
|
]);
|
|
197368
|
-
var
|
|
198575
|
+
var react_menu_dist_usePopperScope = createPopperScope();
|
|
197369
198576
|
var dist_useRovingFocusGroupScope = $d7bdfb9eb0fdf311$export$c7109489551a4f4();
|
|
197370
198577
|
var [MenuProvider, useMenuContext] = createMenuContext(MENU_NAME);
|
|
197371
198578
|
var [MenuRootProvider, useMenuRootContext] = createMenuContext(MENU_NAME);
|
|
197372
198579
|
var dist_Menu = (props) => {
|
|
197373
198580
|
const { __scopeMenu, open = false, children, dir, onOpenChange, modal = true } = props;
|
|
197374
|
-
const popperScope =
|
|
198581
|
+
const popperScope = react_menu_dist_usePopperScope(__scopeMenu);
|
|
197375
198582
|
const [content, setContent] = react.useState(null);
|
|
197376
198583
|
const isUsingKeyboardRef = react.useRef(false);
|
|
197377
198584
|
const handleOpenChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onOpenChange);
|
|
@@ -197417,8 +198624,8 @@ var dist_ANCHOR_NAME = "MenuAnchor";
|
|
|
197417
198624
|
var MenuAnchor = react.forwardRef(
|
|
197418
198625
|
(props, forwardedRef) => {
|
|
197419
198626
|
const { __scopeMenu, ...anchorProps } = props;
|
|
197420
|
-
const popperScope =
|
|
197421
|
-
return /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
198627
|
+
const popperScope = react_menu_dist_usePopperScope(__scopeMenu);
|
|
198628
|
+
return /* @__PURE__ */ (0,jsx_runtime.jsx)(Anchor, { ...popperScope, ...anchorProps, ref: forwardedRef });
|
|
197422
198629
|
}
|
|
197423
198630
|
);
|
|
197424
198631
|
MenuAnchor.displayName = dist_ANCHOR_NAME;
|
|
@@ -197504,7 +198711,7 @@ var MenuContentImpl = react.forwardRef(
|
|
|
197504
198711
|
} = props;
|
|
197505
198712
|
const context = useMenuContext(react_menu_dist_CONTENT_NAME, __scopeMenu);
|
|
197506
198713
|
const rootContext = useMenuRootContext(react_menu_dist_CONTENT_NAME, __scopeMenu);
|
|
197507
|
-
const popperScope =
|
|
198714
|
+
const popperScope = react_menu_dist_usePopperScope(__scopeMenu);
|
|
197508
198715
|
const rovingFocusGroupScope = dist_useRovingFocusGroupScope(__scopeMenu);
|
|
197509
198716
|
const getItems = react_menu_dist_useCollection(__scopeMenu);
|
|
197510
198717
|
const [currentItemId, setCurrentItemId] = react.useState(null);
|
|
@@ -197667,30 +198874,30 @@ var MenuContentImpl = react.forwardRef(
|
|
|
197667
198874
|
}
|
|
197668
198875
|
);
|
|
197669
198876
|
MenuContent.displayName = react_menu_dist_CONTENT_NAME;
|
|
197670
|
-
var
|
|
198877
|
+
var dist_GROUP_NAME = "MenuGroup";
|
|
197671
198878
|
var MenuGroup = react.forwardRef(
|
|
197672
198879
|
(props, forwardedRef) => {
|
|
197673
198880
|
const { __scopeMenu, ...groupProps } = props;
|
|
197674
198881
|
return /* @__PURE__ */ (0,jsx_runtime.jsx)(Primitive.div, { role: "group", ...groupProps, ref: forwardedRef });
|
|
197675
198882
|
}
|
|
197676
198883
|
);
|
|
197677
|
-
MenuGroup.displayName =
|
|
197678
|
-
var
|
|
198884
|
+
MenuGroup.displayName = dist_GROUP_NAME;
|
|
198885
|
+
var dist_LABEL_NAME = "MenuLabel";
|
|
197679
198886
|
var MenuLabel = react.forwardRef(
|
|
197680
198887
|
(props, forwardedRef) => {
|
|
197681
198888
|
const { __scopeMenu, ...labelProps } = props;
|
|
197682
198889
|
return /* @__PURE__ */ (0,jsx_runtime.jsx)(Primitive.div, { ...labelProps, ref: forwardedRef });
|
|
197683
198890
|
}
|
|
197684
198891
|
);
|
|
197685
|
-
MenuLabel.displayName =
|
|
197686
|
-
var
|
|
198892
|
+
MenuLabel.displayName = dist_LABEL_NAME;
|
|
198893
|
+
var react_menu_dist_ITEM_NAME = "MenuItem";
|
|
197687
198894
|
var ITEM_SELECT = "menu.itemSelect";
|
|
197688
198895
|
var MenuItem = react.forwardRef(
|
|
197689
198896
|
(props, forwardedRef) => {
|
|
197690
198897
|
const { disabled = false, onSelect, ...itemProps } = props;
|
|
197691
198898
|
const ref = react.useRef(null);
|
|
197692
|
-
const rootContext = useMenuRootContext(
|
|
197693
|
-
const contentContext = useMenuContentContext(
|
|
198899
|
+
const rootContext = useMenuRootContext(react_menu_dist_ITEM_NAME, props.__scopeMenu);
|
|
198900
|
+
const contentContext = useMenuContentContext(react_menu_dist_ITEM_NAME, props.__scopeMenu);
|
|
197694
198901
|
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
197695
198902
|
const isPointerDownRef = react.useRef(false);
|
|
197696
198903
|
const handleSelect = () => {
|
|
@@ -197723,7 +198930,7 @@ var MenuItem = react.forwardRef(
|
|
|
197723
198930
|
onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {
|
|
197724
198931
|
const isTypingAhead = contentContext.searchRef.current !== "";
|
|
197725
198932
|
if (disabled || isTypingAhead && event.key === " ") return;
|
|
197726
|
-
if (
|
|
198933
|
+
if (dist_SELECTION_KEYS.includes(event.key)) {
|
|
197727
198934
|
event.currentTarget.click();
|
|
197728
198935
|
event.preventDefault();
|
|
197729
198936
|
}
|
|
@@ -197732,11 +198939,11 @@ var MenuItem = react.forwardRef(
|
|
|
197732
198939
|
);
|
|
197733
198940
|
}
|
|
197734
198941
|
);
|
|
197735
|
-
MenuItem.displayName =
|
|
198942
|
+
MenuItem.displayName = react_menu_dist_ITEM_NAME;
|
|
197736
198943
|
var MenuItemImpl = react.forwardRef(
|
|
197737
198944
|
(props, forwardedRef) => {
|
|
197738
198945
|
const { __scopeMenu, disabled = false, textValue, ...itemProps } = props;
|
|
197739
|
-
const contentContext = useMenuContentContext(
|
|
198946
|
+
const contentContext = useMenuContentContext(react_menu_dist_ITEM_NAME, __scopeMenu);
|
|
197740
198947
|
const rovingFocusGroupScope = dist_useRovingFocusGroupScope(__scopeMenu);
|
|
197741
198948
|
const ref = react.useRef(null);
|
|
197742
198949
|
const composedRefs = useComposedRefs(forwardedRef, ref);
|
|
@@ -197849,15 +199056,15 @@ var MenuRadioItem = react.forwardRef(
|
|
|
197849
199056
|
}
|
|
197850
199057
|
);
|
|
197851
199058
|
MenuRadioItem.displayName = RADIO_ITEM_NAME;
|
|
197852
|
-
var
|
|
199059
|
+
var dist_ITEM_INDICATOR_NAME = "MenuItemIndicator";
|
|
197853
199060
|
var [ItemIndicatorProvider, useItemIndicatorContext] = createMenuContext(
|
|
197854
|
-
|
|
199061
|
+
dist_ITEM_INDICATOR_NAME,
|
|
197855
199062
|
{ checked: false }
|
|
197856
199063
|
);
|
|
197857
199064
|
var MenuItemIndicator = react.forwardRef(
|
|
197858
199065
|
(props, forwardedRef) => {
|
|
197859
199066
|
const { __scopeMenu, forceMount, ...itemIndicatorProps } = props;
|
|
197860
|
-
const indicatorContext = useItemIndicatorContext(
|
|
199067
|
+
const indicatorContext = useItemIndicatorContext(dist_ITEM_INDICATOR_NAME, __scopeMenu);
|
|
197861
199068
|
return /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
197862
199069
|
Presence,
|
|
197863
199070
|
{
|
|
@@ -197874,8 +199081,8 @@ var MenuItemIndicator = react.forwardRef(
|
|
|
197874
199081
|
);
|
|
197875
199082
|
}
|
|
197876
199083
|
);
|
|
197877
|
-
MenuItemIndicator.displayName =
|
|
197878
|
-
var
|
|
199084
|
+
MenuItemIndicator.displayName = dist_ITEM_INDICATOR_NAME;
|
|
199085
|
+
var dist_SEPARATOR_NAME = "MenuSeparator";
|
|
197879
199086
|
var MenuSeparator = react.forwardRef(
|
|
197880
199087
|
(props, forwardedRef) => {
|
|
197881
199088
|
const { __scopeMenu, ...separatorProps } = props;
|
|
@@ -197890,12 +199097,12 @@ var MenuSeparator = react.forwardRef(
|
|
|
197890
199097
|
);
|
|
197891
199098
|
}
|
|
197892
199099
|
);
|
|
197893
|
-
MenuSeparator.displayName =
|
|
199100
|
+
MenuSeparator.displayName = dist_SEPARATOR_NAME;
|
|
197894
199101
|
var react_menu_dist_ARROW_NAME = "MenuArrow";
|
|
197895
199102
|
var MenuArrow = react.forwardRef(
|
|
197896
199103
|
(props, forwardedRef) => {
|
|
197897
199104
|
const { __scopeMenu, ...arrowProps } = props;
|
|
197898
|
-
const popperScope =
|
|
199105
|
+
const popperScope = react_menu_dist_usePopperScope(__scopeMenu);
|
|
197899
199106
|
return /* @__PURE__ */ (0,jsx_runtime.jsx)(Arrow, { ...popperScope, ...arrowProps, ref: forwardedRef });
|
|
197900
199107
|
}
|
|
197901
199108
|
);
|
|
@@ -197905,7 +199112,7 @@ var [MenuSubProvider, useMenuSubContext] = createMenuContext(SUB_NAME);
|
|
|
197905
199112
|
var MenuSub = (props) => {
|
|
197906
199113
|
const { __scopeMenu, children, open = false, onOpenChange } = props;
|
|
197907
199114
|
const parentMenuContext = useMenuContext(SUB_NAME, __scopeMenu);
|
|
197908
|
-
const popperScope =
|
|
199115
|
+
const popperScope = react_menu_dist_usePopperScope(__scopeMenu);
|
|
197909
199116
|
const [trigger, setTrigger] = react.useState(null);
|
|
197910
199117
|
const [content, setContent] = react.useState(null);
|
|
197911
199118
|
const handleOpenChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onOpenChange);
|
|
@@ -198102,14 +199309,14 @@ function dist_focusFirst(candidates) {
|
|
|
198102
199309
|
if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;
|
|
198103
199310
|
}
|
|
198104
199311
|
}
|
|
198105
|
-
function
|
|
199312
|
+
function dist_wrapArray(array, startIndex) {
|
|
198106
199313
|
return array.map((_, index) => array[(startIndex + index) % array.length]);
|
|
198107
199314
|
}
|
|
198108
199315
|
function getNextMatch(values, search, currentMatch) {
|
|
198109
199316
|
const isRepeated = search.length > 1 && Array.from(search).every((char) => char === search[0]);
|
|
198110
199317
|
const normalizedSearch = isRepeated ? search[0] : search;
|
|
198111
199318
|
const currentMatchIndex = currentMatch ? values.indexOf(currentMatch) : -1;
|
|
198112
|
-
let wrappedValues =
|
|
199319
|
+
let wrappedValues = dist_wrapArray(values, Math.max(currentMatchIndex, 0));
|
|
198113
199320
|
const excludeCurrentMatch = normalizedSearch.length === 1;
|
|
198114
199321
|
if (excludeCurrentMatch) wrappedValues = wrappedValues.filter((v) => v !== currentMatch);
|
|
198115
199322
|
const nextMatch = wrappedValues.find(
|
|
@@ -198143,14 +199350,14 @@ var Anchor2 = MenuAnchor;
|
|
|
198143
199350
|
var react_menu_dist_Portal = MenuPortal;
|
|
198144
199351
|
var react_menu_dist_Content2 = MenuContent;
|
|
198145
199352
|
var dist_Group = MenuGroup;
|
|
198146
|
-
var
|
|
199353
|
+
var react_menu_dist_Label = MenuLabel;
|
|
198147
199354
|
var Item2 = MenuItem;
|
|
198148
199355
|
var CheckboxItem = MenuCheckboxItem;
|
|
198149
199356
|
var RadioGroup = MenuRadioGroup;
|
|
198150
199357
|
var RadioItem = MenuRadioItem;
|
|
198151
|
-
var
|
|
198152
|
-
var
|
|
198153
|
-
var
|
|
199358
|
+
var dist_ItemIndicator = MenuItemIndicator;
|
|
199359
|
+
var react_menu_dist_Separator = MenuSeparator;
|
|
199360
|
+
var react_menu_dist_Arrow2 = MenuArrow;
|
|
198154
199361
|
var Sub = MenuSub;
|
|
198155
199362
|
var SubTrigger = MenuSubTrigger;
|
|
198156
199363
|
var SubContent = MenuSubContent;
|
|
@@ -198178,7 +199385,7 @@ var [createDropdownMenuContext, createDropdownMenuScope] = createContextScope(
|
|
|
198178
199385
|
);
|
|
198179
199386
|
var useMenuScope = createMenuScope();
|
|
198180
199387
|
var [DropdownMenuProvider, useDropdownMenuContext] = createDropdownMenuContext(DROPDOWN_MENU_NAME);
|
|
198181
|
-
var
|
|
199388
|
+
var dist_DropdownMenu = (props) => {
|
|
198182
199389
|
const {
|
|
198183
199390
|
__scopeDropdownMenu,
|
|
198184
199391
|
children,
|
|
@@ -198210,9 +199417,9 @@ var DropdownMenu = (props) => {
|
|
|
198210
199417
|
}
|
|
198211
199418
|
);
|
|
198212
199419
|
};
|
|
198213
|
-
|
|
199420
|
+
dist_DropdownMenu.displayName = DROPDOWN_MENU_NAME;
|
|
198214
199421
|
var react_dropdown_menu_dist_TRIGGER_NAME = "DropdownMenuTrigger";
|
|
198215
|
-
var
|
|
199422
|
+
var dist_DropdownMenuTrigger = react.forwardRef(
|
|
198216
199423
|
(props, forwardedRef) => {
|
|
198217
199424
|
const { __scopeDropdownMenu, disabled = false, ...triggerProps } = props;
|
|
198218
199425
|
const context = useDropdownMenuContext(react_dropdown_menu_dist_TRIGGER_NAME, __scopeDropdownMenu);
|
|
@@ -198246,7 +199453,7 @@ var DropdownMenuTrigger = react.forwardRef(
|
|
|
198246
199453
|
) });
|
|
198247
199454
|
}
|
|
198248
199455
|
);
|
|
198249
|
-
|
|
199456
|
+
dist_DropdownMenuTrigger.displayName = react_dropdown_menu_dist_TRIGGER_NAME;
|
|
198250
199457
|
var react_dropdown_menu_dist_PORTAL_NAME = "DropdownMenuPortal";
|
|
198251
199458
|
var DropdownMenuPortal = (props) => {
|
|
198252
199459
|
const { __scopeDropdownMenu, ...portalProps } = props;
|
|
@@ -198255,7 +199462,7 @@ var DropdownMenuPortal = (props) => {
|
|
|
198255
199462
|
};
|
|
198256
199463
|
DropdownMenuPortal.displayName = react_dropdown_menu_dist_PORTAL_NAME;
|
|
198257
199464
|
var react_dropdown_menu_dist_CONTENT_NAME = "DropdownMenuContent";
|
|
198258
|
-
var
|
|
199465
|
+
var dist_DropdownMenuContent = react.forwardRef(
|
|
198259
199466
|
(props, forwardedRef) => {
|
|
198260
199467
|
const { __scopeDropdownMenu, ...contentProps } = props;
|
|
198261
199468
|
const context = useDropdownMenuContext(react_dropdown_menu_dist_CONTENT_NAME, __scopeDropdownMenu);
|
|
@@ -198295,8 +199502,8 @@ var DropdownMenuContent = react.forwardRef(
|
|
|
198295
199502
|
);
|
|
198296
199503
|
}
|
|
198297
199504
|
);
|
|
198298
|
-
|
|
198299
|
-
var
|
|
199505
|
+
dist_DropdownMenuContent.displayName = react_dropdown_menu_dist_CONTENT_NAME;
|
|
199506
|
+
var react_dropdown_menu_dist_GROUP_NAME = "DropdownMenuGroup";
|
|
198300
199507
|
var DropdownMenuGroup = react.forwardRef(
|
|
198301
199508
|
(props, forwardedRef) => {
|
|
198302
199509
|
const { __scopeDropdownMenu, ...groupProps } = props;
|
|
@@ -198304,25 +199511,25 @@ var DropdownMenuGroup = react.forwardRef(
|
|
|
198304
199511
|
return /* @__PURE__ */ (0,jsx_runtime.jsx)(dist_Group, { ...menuScope, ...groupProps, ref: forwardedRef });
|
|
198305
199512
|
}
|
|
198306
199513
|
);
|
|
198307
|
-
DropdownMenuGroup.displayName =
|
|
198308
|
-
var
|
|
199514
|
+
DropdownMenuGroup.displayName = react_dropdown_menu_dist_GROUP_NAME;
|
|
199515
|
+
var react_dropdown_menu_dist_LABEL_NAME = "DropdownMenuLabel";
|
|
198309
199516
|
var DropdownMenuLabel = react.forwardRef(
|
|
198310
199517
|
(props, forwardedRef) => {
|
|
198311
199518
|
const { __scopeDropdownMenu, ...labelProps } = props;
|
|
198312
199519
|
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
198313
|
-
return /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
199520
|
+
return /* @__PURE__ */ (0,jsx_runtime.jsx)(react_menu_dist_Label, { ...menuScope, ...labelProps, ref: forwardedRef });
|
|
198314
199521
|
}
|
|
198315
199522
|
);
|
|
198316
|
-
DropdownMenuLabel.displayName =
|
|
199523
|
+
DropdownMenuLabel.displayName = react_dropdown_menu_dist_LABEL_NAME;
|
|
198317
199524
|
var react_dropdown_menu_dist_ITEM_NAME = "DropdownMenuItem";
|
|
198318
|
-
var
|
|
199525
|
+
var dist_DropdownMenuItem = react.forwardRef(
|
|
198319
199526
|
(props, forwardedRef) => {
|
|
198320
199527
|
const { __scopeDropdownMenu, ...itemProps } = props;
|
|
198321
199528
|
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
198322
199529
|
return /* @__PURE__ */ (0,jsx_runtime.jsx)(Item2, { ...menuScope, ...itemProps, ref: forwardedRef });
|
|
198323
199530
|
}
|
|
198324
199531
|
);
|
|
198325
|
-
|
|
199532
|
+
dist_DropdownMenuItem.displayName = react_dropdown_menu_dist_ITEM_NAME;
|
|
198326
199533
|
var dist_CHECKBOX_ITEM_NAME = "DropdownMenuCheckboxItem";
|
|
198327
199534
|
var DropdownMenuCheckboxItem = react.forwardRef((props, forwardedRef) => {
|
|
198328
199535
|
const { __scopeDropdownMenu, ...checkboxItemProps } = props;
|
|
@@ -198348,22 +199555,22 @@ var dist_INDICATOR_NAME = "DropdownMenuItemIndicator";
|
|
|
198348
199555
|
var DropdownMenuItemIndicator = react.forwardRef((props, forwardedRef) => {
|
|
198349
199556
|
const { __scopeDropdownMenu, ...itemIndicatorProps } = props;
|
|
198350
199557
|
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
198351
|
-
return /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
199558
|
+
return /* @__PURE__ */ (0,jsx_runtime.jsx)(dist_ItemIndicator, { ...menuScope, ...itemIndicatorProps, ref: forwardedRef });
|
|
198352
199559
|
});
|
|
198353
199560
|
DropdownMenuItemIndicator.displayName = dist_INDICATOR_NAME;
|
|
198354
|
-
var
|
|
199561
|
+
var react_dropdown_menu_dist_SEPARATOR_NAME = "DropdownMenuSeparator";
|
|
198355
199562
|
var DropdownMenuSeparator = react.forwardRef((props, forwardedRef) => {
|
|
198356
199563
|
const { __scopeDropdownMenu, ...separatorProps } = props;
|
|
198357
199564
|
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
198358
|
-
return /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
199565
|
+
return /* @__PURE__ */ (0,jsx_runtime.jsx)(react_menu_dist_Separator, { ...menuScope, ...separatorProps, ref: forwardedRef });
|
|
198359
199566
|
});
|
|
198360
|
-
DropdownMenuSeparator.displayName =
|
|
199567
|
+
DropdownMenuSeparator.displayName = react_dropdown_menu_dist_SEPARATOR_NAME;
|
|
198361
199568
|
var react_dropdown_menu_dist_ARROW_NAME = "DropdownMenuArrow";
|
|
198362
199569
|
var DropdownMenuArrow = react.forwardRef(
|
|
198363
199570
|
(props, forwardedRef) => {
|
|
198364
199571
|
const { __scopeDropdownMenu, ...arrowProps } = props;
|
|
198365
199572
|
const menuScope = useMenuScope(__scopeDropdownMenu);
|
|
198366
|
-
return /* @__PURE__ */ (0,jsx_runtime.jsx)(
|
|
199573
|
+
return /* @__PURE__ */ (0,jsx_runtime.jsx)(react_menu_dist_Arrow2, { ...menuScope, ...arrowProps, ref: forwardedRef });
|
|
198367
199574
|
}
|
|
198368
199575
|
);
|
|
198369
199576
|
DropdownMenuArrow.displayName = react_dropdown_menu_dist_ARROW_NAME;
|
|
@@ -198409,13 +199616,13 @@ var DropdownMenuSubContent = react.forwardRef((props, forwardedRef) => {
|
|
|
198409
199616
|
);
|
|
198410
199617
|
});
|
|
198411
199618
|
DropdownMenuSubContent.displayName = dist_SUB_CONTENT_NAME;
|
|
198412
|
-
var react_dropdown_menu_dist_Root2 =
|
|
198413
|
-
var react_dropdown_menu_dist_Trigger =
|
|
199619
|
+
var react_dropdown_menu_dist_Root2 = dist_DropdownMenu;
|
|
199620
|
+
var react_dropdown_menu_dist_Trigger = dist_DropdownMenuTrigger;
|
|
198414
199621
|
var Portal2 = DropdownMenuPortal;
|
|
198415
|
-
var react_dropdown_menu_dist_Content2 =
|
|
199622
|
+
var react_dropdown_menu_dist_Content2 = dist_DropdownMenuContent;
|
|
198416
199623
|
var Group2 = DropdownMenuGroup;
|
|
198417
199624
|
var Label2 = DropdownMenuLabel;
|
|
198418
|
-
var dist_Item2 =
|
|
199625
|
+
var dist_Item2 = dist_DropdownMenuItem;
|
|
198419
199626
|
var CheckboxItem2 = DropdownMenuCheckboxItem;
|
|
198420
199627
|
var RadioGroup2 = DropdownMenuRadioGroup;
|
|
198421
199628
|
var RadioItem2 = DropdownMenuRadioItem;
|
|
@@ -198679,6 +199886,152 @@ const Onboarding = () => {
|
|
|
198679
199886
|
;// CONCATENATED MODULE: ../../ui-next/src/components/Onboarding/index.ts
|
|
198680
199887
|
|
|
198681
199888
|
|
|
199889
|
+
;// CONCATENATED MODULE: ../../ui-next/src/components/BackgroundColorSelect/BackgroundColorSelect.tsx
|
|
199890
|
+
'use client';
|
|
199891
|
+
|
|
199892
|
+
|
|
199893
|
+
|
|
199894
|
+
|
|
199895
|
+
const BackgroundColorSelect = () => {
|
|
199896
|
+
const [selectedColor, setSelectedColor] = useState('#050615');
|
|
199897
|
+
useEffect(() => {
|
|
199898
|
+
const rows = document.querySelectorAll('.row');
|
|
199899
|
+
rows.forEach(row => {
|
|
199900
|
+
row.style.backgroundColor = selectedColor;
|
|
199901
|
+
});
|
|
199902
|
+
}, [selectedColor]);
|
|
199903
|
+
const handleColorChange = value => {
|
|
199904
|
+
setSelectedColor(value);
|
|
199905
|
+
};
|
|
199906
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Select, {
|
|
199907
|
+
onValueChange: handleColorChange
|
|
199908
|
+
}, /*#__PURE__*/React.createElement(SelectTrigger, {
|
|
199909
|
+
className: "w-[180px]"
|
|
199910
|
+
}, /*#__PURE__*/React.createElement(SelectValue, {
|
|
199911
|
+
placeholder: "Select Color"
|
|
199912
|
+
})), /*#__PURE__*/React.createElement(SelectContent, null, /*#__PURE__*/React.createElement(SelectItem, {
|
|
199913
|
+
value: "black"
|
|
199914
|
+
}, "Viewport (Black)"), /*#__PURE__*/React.createElement(SelectItem, {
|
|
199915
|
+
value: "#050615"
|
|
199916
|
+
}, "Base"), /*#__PURE__*/React.createElement(SelectItem, {
|
|
199917
|
+
value: "#090C29"
|
|
199918
|
+
}, "Medium"), /*#__PURE__*/React.createElement(SelectItem, {
|
|
199919
|
+
value: "#041C4A"
|
|
199920
|
+
}, "Header"))));
|
|
199921
|
+
};
|
|
199922
|
+
/* harmony default export */ const BackgroundColorSelect_BackgroundColorSelect = ((/* unused pure expression or super */ null && (BackgroundColorSelect)));
|
|
199923
|
+
;// CONCATENATED MODULE: ../../ui-next/src/components/BackgroundColorSelect/index.tsx
|
|
199924
|
+
|
|
199925
|
+
;// CONCATENATED MODULE: ../../ui-next/src/components/DataRow/DataRow.tsx
|
|
199926
|
+
|
|
199927
|
+
|
|
199928
|
+
|
|
199929
|
+
|
|
199930
|
+
|
|
199931
|
+
const DataRow = ({
|
|
199932
|
+
number,
|
|
199933
|
+
title,
|
|
199934
|
+
description,
|
|
199935
|
+
optionalField,
|
|
199936
|
+
colorHex,
|
|
199937
|
+
details,
|
|
199938
|
+
series,
|
|
199939
|
+
actionOptions,
|
|
199940
|
+
onAction,
|
|
199941
|
+
isSelected = false,
|
|
199942
|
+
onSelect
|
|
199943
|
+
}) => {
|
|
199944
|
+
const [isDropdownOpen, setIsDropdownOpen] = useState(false);
|
|
199945
|
+
const [isVisible, setIsVisible] = useState(true);
|
|
199946
|
+
const isTitleLong = title.length > 25;
|
|
199947
|
+
return /*#__PURE__*/React.createElement(TooltipProvider, null, ' ', /*#__PURE__*/React.createElement("div", {
|
|
199948
|
+
className: "flex flex-col"
|
|
199949
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
199950
|
+
className: `flex items-center ${isSelected ? 'bg-popover' : 'bg-muted'} group relative cursor-pointer ${isVisible ? '' : 'opacity-60'}`,
|
|
199951
|
+
onClick: onSelect
|
|
199952
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
199953
|
+
className: "bg-primary/20 pointer-events-none absolute inset-0 opacity-0 transition-opacity group-hover:opacity-100"
|
|
199954
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
199955
|
+
className: `flex h-7 max-h-7 w-7 flex-shrink-0 items-center justify-center rounded-l border-r border-black text-sm ${isSelected ? 'bg-highlight text-black' : 'bg-muted text-muted-foreground'} overflow-hidden`
|
|
199956
|
+
}, number), colorHex && /*#__PURE__*/React.createElement("div", {
|
|
199957
|
+
className: "flex h-7 w-5 items-center justify-center"
|
|
199958
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
199959
|
+
className: "ml-2 h-2 w-2 rounded-full",
|
|
199960
|
+
style: {
|
|
199961
|
+
backgroundColor: colorHex
|
|
199962
|
+
}
|
|
199963
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
199964
|
+
className: "ml-2 flex-1 overflow-hidden"
|
|
199965
|
+
}, isTitleLong ? /*#__PURE__*/React.createElement(Tooltip, null, /*#__PURE__*/React.createElement(TooltipTrigger, {
|
|
199966
|
+
asChild: true
|
|
199967
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
199968
|
+
className: `cursor-default text-sm ${isSelected ? 'text-highlight' : 'text-muted-foreground'} [overflow:hidden] [display:-webkit-box] [-webkit-line-clamp:2] [-webkit-box-orient:vertical]`
|
|
199969
|
+
}, title)), /*#__PURE__*/React.createElement(TooltipContent, {
|
|
199970
|
+
side: "top",
|
|
199971
|
+
align: "center"
|
|
199972
|
+
}, title)) : /*#__PURE__*/React.createElement("span", {
|
|
199973
|
+
className: `text-sm ${isSelected ? 'text-highlight' : 'text-muted-foreground'} [overflow:hidden] [display:-webkit-box] [-webkit-line-clamp:2] [-webkit-box-orient:vertical]`
|
|
199974
|
+
}, title)), /*#__PURE__*/React.createElement("div", {
|
|
199975
|
+
className: "relative ml-2 flex items-center space-x-1"
|
|
199976
|
+
}, isVisible ? /*#__PURE__*/React.createElement(Button, {
|
|
199977
|
+
size: "small",
|
|
199978
|
+
variant: "ghost",
|
|
199979
|
+
className: `h-6 w-6 transition-opacity ${isSelected ? 'opacity-100' : 'opacity-0 group-hover:opacity-100'}`,
|
|
199980
|
+
"aria-label": "Hide",
|
|
199981
|
+
onClick: e => {
|
|
199982
|
+
e.stopPropagation(); // Prevent row selection on button click
|
|
199983
|
+
setIsVisible(false);
|
|
199984
|
+
}
|
|
199985
|
+
}, /*#__PURE__*/React.createElement(Icons.Hide, {
|
|
199986
|
+
className: "h-6 w-6"
|
|
199987
|
+
})) : /*#__PURE__*/React.createElement(Button, {
|
|
199988
|
+
size: "small",
|
|
199989
|
+
variant: "ghost",
|
|
199990
|
+
className: "h-6 w-6 opacity-100",
|
|
199991
|
+
"aria-label": "Show",
|
|
199992
|
+
onClick: e => {
|
|
199993
|
+
e.stopPropagation(); // Prevent row selection on button click
|
|
199994
|
+
setIsVisible(true);
|
|
199995
|
+
}
|
|
199996
|
+
}, /*#__PURE__*/React.createElement(Icons.Show, {
|
|
199997
|
+
className: "h-6 w-6"
|
|
199998
|
+
})), /*#__PURE__*/React.createElement(DropdownMenu, {
|
|
199999
|
+
onOpenChange: open => setIsDropdownOpen(open)
|
|
200000
|
+
}, /*#__PURE__*/React.createElement(DropdownMenuTrigger, {
|
|
200001
|
+
asChild: true
|
|
200002
|
+
}, /*#__PURE__*/React.createElement(Button, {
|
|
200003
|
+
size: "small",
|
|
200004
|
+
variant: "ghost",
|
|
200005
|
+
className: `h-6 w-6 transition-opacity ${isSelected || isDropdownOpen ? 'opacity-100' : 'opacity-0 group-hover:opacity-100'}`,
|
|
200006
|
+
"aria-label": "Actions",
|
|
200007
|
+
onClick: e => e.stopPropagation() // Prevent row selection on button click
|
|
200008
|
+
}, /*#__PURE__*/React.createElement(Icons.More, {
|
|
200009
|
+
className: "h-6 w-6"
|
|
200010
|
+
}))), /*#__PURE__*/React.createElement(DropdownMenuContent, {
|
|
200011
|
+
align: "end"
|
|
200012
|
+
}, /*#__PURE__*/React.createElement(DropdownMenuItem, null, /*#__PURE__*/React.createElement(Icons.Rename, {
|
|
200013
|
+
className: "text-foreground"
|
|
200014
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
200015
|
+
className: "pl-2"
|
|
200016
|
+
}, "Rename")), /*#__PURE__*/React.createElement(DropdownMenuItem, null, /*#__PURE__*/React.createElement(Icons.Lock, {
|
|
200017
|
+
className: "text-foreground"
|
|
200018
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
200019
|
+
className: "pl-2"
|
|
200020
|
+
}, "Lock")), /*#__PURE__*/React.createElement(DropdownMenuItem, null, /*#__PURE__*/React.createElement(Icons.Delete, {
|
|
200021
|
+
className: "text-foreground"
|
|
200022
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
200023
|
+
className: "pl-2"
|
|
200024
|
+
}, "Delete")))))), (details || series) && /*#__PURE__*/React.createElement("div", {
|
|
200025
|
+
className: "ml-7 bg-black px-2 py-1"
|
|
200026
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
200027
|
+
className: "text-secondary-foreground flex items-start justify-between whitespace-pre-line text-sm leading-normal"
|
|
200028
|
+
}, /*#__PURE__*/React.createElement("span", null, details), series && /*#__PURE__*/React.createElement("span", {
|
|
200029
|
+
className: "text-muted-foreground"
|
|
200030
|
+
}, series)))));
|
|
200031
|
+
};
|
|
200032
|
+
/* harmony default export */ const DataRow_DataRow = ((/* unused pure expression or super */ null && (DataRow)));
|
|
200033
|
+
;// CONCATENATED MODULE: ../../ui-next/src/components/DataRow/index.ts
|
|
200034
|
+
|
|
198682
200035
|
;// CONCATENATED MODULE: ../../ui-next/src/components/index.ts
|
|
198683
200036
|
|
|
198684
200037
|
|
|
@@ -198709,6 +200062,9 @@ const Onboarding = () => {
|
|
|
198709
200062
|
|
|
198710
200063
|
|
|
198711
200064
|
|
|
200065
|
+
|
|
200066
|
+
|
|
200067
|
+
|
|
198712
200068
|
|
|
198713
200069
|
|
|
198714
200070
|
|
|
@@ -283993,16 +285349,10 @@ if ($defineProperty) {
|
|
|
283993
285349
|
|
|
283994
285350
|
/***/ }),
|
|
283995
285351
|
|
|
283996
|
-
/***/
|
|
283997
|
-
/***/ ((
|
|
285352
|
+
/***/ 24198:
|
|
285353
|
+
/***/ ((module) => {
|
|
283998
285354
|
|
|
283999
|
-
"
|
|
284000
|
-
__webpack_require__.r(__webpack_exports__);
|
|
284001
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
284002
|
-
/* harmony export */ clsx: () => (/* binding */ clsx),
|
|
284003
|
-
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
284004
|
-
/* harmony export */ });
|
|
284005
|
-
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (clsx);
|
|
285355
|
+
function r(e){var o,t,f="";if("string"==typeof e||"number"==typeof e)f+=e;else if("object"==typeof e)if(Array.isArray(e)){var n=e.length;for(o=0;o<n;o++)e[o]&&(t=r(e[o]))&&(f&&(f+=" "),f+=t)}else for(t in e)e[t]&&(f&&(f+=" "),f+=t);return f}function e(){for(var e,o,t=0,f="",n=arguments.length;t<n;t++)(e=arguments[t])&&(o=r(e))&&(f&&(f+=" "),f+=o);return f}module.exports=e,module.exports.clsx=e;
|
|
284006
285356
|
|
|
284007
285357
|
/***/ }),
|
|
284008
285358
|
|
|
@@ -366978,7 +368328,7 @@ var __WEBPACK_AMD_DEFINE_RESULT__;/*global define:false */
|
|
|
366978
368328
|
/***/ 10527:
|
|
366979
368329
|
/***/ ((module) => {
|
|
366980
368330
|
|
|
366981
|
-
!function(e){var t; true?module.exports=e():0}(function(){return function o(i,u,a){function s(n,e){if(!u[n]){if(!i[n]){var t=undefined;if(!e&&t)return require(n,!0);if(f)return f(n,!0);throw new Error("Cannot find module '"+n+"'")}var r=u[n]={exports:{}};i[n][0].call(r.exports,function(e){var t=i[n][1][e];return s(t||e)},r,r.exports,o,i,u,a)}return u[n].exports}for(var f=undefined,e=0;e<a.length;e++)s(a[e]);return s}({1:[function(w,b,m){(function(e,t,f,n,r,o,i,u,a){"use strict";var s=w("crypto");function l(e,t){return function(e,t){var n;n="passthrough"!==t.algorithm?s.createHash(t.algorithm):new y;void 0===n.write&&(n.write=n.update,n.end=n.update);g(t,n).dispatch(e),n.update||n.end("");if(n.digest)return n.digest("buffer"===t.encoding?void 0:t.encoding);var r=n.read();return"buffer"!==t.encoding?r.toString(t.encoding):r}(e,t=h(e,t))}(m=b.exports=l).sha1=function(e){return l(e)},m.keys=function(e){return l(e,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},m.MD5=function(e){return l(e,{algorithm:"md5",encoding:"hex"})},m.keysMD5=function(e){return l(e,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var c=s.getHashes?s.getHashes().slice():["sha1","md5"];c.push("passthrough");var d=["buffer","hex","binary","base64"];function h(e,t){t=t||{};var n={};if(n.algorithm=t.algorithm||"sha1",n.encoding=t.encoding||"hex",n.excludeValues=!!t.excludeValues,n.algorithm=n.algorithm.toLowerCase(),n.encoding=n.encoding.toLowerCase(),n.ignoreUnknown=!0===t.ignoreUnknown,n.respectType=!1!==t.respectType,n.respectFunctionNames=!1!==t.respectFunctionNames,n.respectFunctionProperties=!1!==t.respectFunctionProperties,n.unorderedArrays=!0===t.unorderedArrays,n.unorderedSets=!1!==t.unorderedSets,n.unorderedObjects=!1!==t.unorderedObjects,n.replacer=t.replacer||void 0,n.excludeKeys=t.excludeKeys||void 0,void 0===e)throw new Error("Object argument required.");for(var r=0;r<c.length;++r)c[r].toLowerCase()===n.algorithm.toLowerCase()&&(n.algorithm=c[r]);if(-1===c.indexOf(n.algorithm))throw new Error('Algorithm "'+n.algorithm+'" not supported. supported values: '+c.join(", "));if(-1===d.indexOf(n.encoding)&&"passthrough"!==n.algorithm)throw new Error('Encoding "'+n.encoding+'" not supported. supported values: '+d.join(", "));return n}function p(e){if("function"==typeof e){return null!=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(e))}}function g(u,t,a){a=a||[];function s(e){return t.update?t.update(e,"utf8"):t.write(e,"utf8")}return{dispatch:function(e){return u.replacer&&(e=u.replacer(e)),this["_"+(null===e?"null":typeof e)](e)},_object:function(t){var e=Object.prototype.toString.call(t),n=/\[object (.*)\]/i.exec(e);n=(n=n?n[1]:"unknown:["+e+"]").toLowerCase();var r;if(0<=(r=a.indexOf(t)))return this.dispatch("[CIRCULAR:"+r+"]");if(a.push(t),void 0!==f&&f.isBuffer&&f.isBuffer(t))return s("buffer:"),s(t);if("object"===n||"function"===n||"asyncfunction"===n){var o=Object.keys(t);u.unorderedObjects&&(o=o.sort()),!1===u.respectType||p(t)||o.splice(0,0,"prototype","__proto__","constructor"),u.excludeKeys&&(o=o.filter(function(e){return!u.excludeKeys(e)})),s("object:"+o.length+":");var i=this;return o.forEach(function(e){i.dispatch(e),s(":"),u.excludeValues||i.dispatch(t[e]),s(",")})}if(!this["_"+n]){if(u.ignoreUnknown)return s("["+n+"]");throw new Error('Unknown object type "'+n+'"')}this["_"+n](t)},_array:function(e,t){t=void 0!==t?t:!1!==u.unorderedArrays;var n=this;if(s("array:"+e.length+":"),!t||e.length<=1)return e.forEach(function(e){return n.dispatch(e)});var r=[],o=e.map(function(e){var t=new y,n=a.slice();return g(u,t,n).dispatch(e),r=r.concat(n.slice(a.length)),t.read().toString()});return a=a.concat(r),o.sort(),this._array(o,!1)},_date:function(e){return s("date:"+e.toJSON())},_symbol:function(e){return s("symbol:"+e.toString())},_error:function(e){return s("error:"+e.toString())},_boolean:function(e){return s("bool:"+e.toString())},_string:function(e){s("string:"+e.length+":"),s(e.toString())},_function:function(e){s("fn:"),p(e)?this.dispatch("[native]"):this.dispatch(e.toString()),!1!==u.respectFunctionNames&&this.dispatch("function-name:"+String(e.name)),u.respectFunctionProperties&&this._object(e)},_number:function(e){return s("number:"+e.toString())},_xml:function(e){return s("xml:"+e.toString())},_null:function(){return s("Null")},_undefined:function(){return s("Undefined")},_regexp:function(e){return s("regex:"+e.toString())},_uint8array:function(e){return s("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint8clampedarray:function(e){return s("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(e))},_int8array:function(e){return s("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint16array:function(e){return s("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_int16array:function(e){return s("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_uint32array:function(e){return s("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_int32array:function(e){return s("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_float32array:function(e){return s("float32array:"),this.dispatch(Array.prototype.slice.call(e))},_float64array:function(e){return s("float64array:"),this.dispatch(Array.prototype.slice.call(e))},_arraybuffer:function(e){return s("arraybuffer:"),this.dispatch(new Uint8Array(e))},_url:function(e){return s("url:"+e.toString())},_map:function(e){s("map:");var t=Array.from(e);return this._array(t,!1!==u.unorderedSets)},_set:function(e){s("set:");var t=Array.from(e);return this._array(t,!1!==u.unorderedSets)},_file:function(e){return s("file:"),this.dispatch([e.name,e.size,e.type,e.lastModfied])},_blob:function(){if(u.ignoreUnknown)return s("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return s("domwindow")},_process:function(){return s("process")},_timer:function(){return s("timer")},_pipe:function(){return s("pipe")},_tcp:function(){return s("tcp")},_udp:function(){return s("udp")},_tty:function(){return s("tty")},_statwatcher:function(){return s("statwatcher")},_securecontext:function(){return s("securecontext")},_connection:function(){return s("connection")},_zlib:function(){return s("zlib")},_context:function(){return s("context")},_nodescript:function(){return s("nodescript")},_httpparser:function(){return s("httpparser")},_dataview:function(){return s("dataview")},_signal:function(){return s("signal")},_fsevent:function(){return s("fsevent")},_tlswrap:function(){return s("tlswrap")}}}function y(){return{buf:"",write:function(e){this.buf+=e},end:function(e){this.buf+=e},read:function(){return this.buf}}}m.writeToStream=function(e,t,n){return void 0===n&&(n=t,t={}),g(t=h(e,t),n).dispatch(e)}}).call(this,w("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},w("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_5812b7fb.js","/")},{buffer:3,crypto:5,lYpoI2:10}],2:[function(e,t,f){(function(e,t,n,r,o,i,u,a,s){!function(e){"use strict";var f="undefined"!=typeof Uint8Array?Uint8Array:Array,n="+".charCodeAt(0),r="/".charCodeAt(0),o="0".charCodeAt(0),i="a".charCodeAt(0),u="A".charCodeAt(0),a="-".charCodeAt(0),s="_".charCodeAt(0);function l(e){var t=e.charCodeAt(0);return t===n||t===a?62:t===r||t===s?63:t<o?-1:t<o+10?t-o+26+26:t<u+26?t-u:t<i+26?t-i+26:void 0}e.toByteArray=function(e){var t,n;if(0<e.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.length,o="="===e.charAt(r-2)?2:"="===e.charAt(r-1)?1:0,i=new f(3*e.length/4-o),u=0<o?e.length-4:e.length,a=0;function s(e){i[a++]=e}for(t=0;t<u;t+=4,0)s((16711680&(n=l(e.charAt(t))<<18|l(e.charAt(t+1))<<12|l(e.charAt(t+2))<<6|l(e.charAt(t+3))))>>16),s((65280&n)>>8),s(255&n);return 2==o?s(255&(n=l(e.charAt(t))<<2|l(e.charAt(t+1))>>4)):1==o&&(s((n=l(e.charAt(t))<<10|l(e.charAt(t+1))<<4|l(e.charAt(t+2))>>2)>>8&255),s(255&n)),i},e.fromByteArray=function(e){var t,n,r,o,i=e.length%3,u="";function a(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)}for(t=0,r=e.length-i;t<r;t+=3)n=(e[t]<<16)+(e[t+1]<<8)+e[t+2],u+=a((o=n)>>18&63)+a(o>>12&63)+a(o>>6&63)+a(63&o);switch(i){case 1:u+=a((n=e[e.length-1])>>2),u+=a(n<<4&63),u+="==";break;case 2:u+=a((n=(e[e.length-2]<<8)+e[e.length-1])>>10),u+=a(n>>4&63),u+=a(n<<2&63),u+="="}return u}}(void 0===f?this.base64js={}:f)}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:10}],3:[function(O,e,H){(function(e,t,g,n,r,o,i,u,a){var s=O("base64-js"),f=O("ieee754");function g(e,t,n){if(!(this instanceof g))return new g(e,t,n);var r,o,i,u,a,s=typeof e;if("base64"===t&&"string"==s)for(e=(r=e).trim?r.trim():r.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if("number"==s)o=x(e);else if("string"==s)o=g.byteLength(e,t);else{if("object"!=s)throw new Error("First argument needs to be a number, array or string.");o=x(e.length)}if(g._useTypedArrays?i=g._augment(new Uint8Array(o)):((i=this).length=o,i._isBuffer=!0),g._useTypedArrays&&"number"==typeof e.byteLength)i._set(e);else if(S(a=e)||g.isBuffer(a)||a&&"object"==typeof a&&"number"==typeof a.length)for(u=0;u<o;u++)g.isBuffer(e)?i[u]=e.readUInt8(u):i[u]=e[u];else if("string"==s)i.write(e,0,t);else if("number"==s&&!g._useTypedArrays&&!n)for(u=0;u<o;u++)i[u]=0;return i}function y(e,t,n,r){return g._charsWritten=T(function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function w(e,t,n,r){return g._charsWritten=T(function(e){for(var t,n,r,o=[],i=0;i<e.length;i++)t=e.charCodeAt(i),n=t>>8,r=t%256,o.push(r),o.push(n);return o}(t),e,n,r)}function l(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;o++)r+=String.fromCharCode(e[o]);return r}function c(e,t,n,r){r||(D("boolean"==typeof n,"missing or invalid endian"),D(null!=t,"missing offset"),D(t+1<e.length,"Trying to read beyond buffer length"));var o,i=e.length;if(!(i<=t))return n?(o=e[t],t+1<i&&(o|=e[t+1]<<8)):(o=e[t]<<8,t+1<i&&(o|=e[t+1])),o}function d(e,t,n,r){r||(D("boolean"==typeof n,"missing or invalid endian"),D(null!=t,"missing offset"),D(t+3<e.length,"Trying to read beyond buffer length"));var o,i=e.length;if(!(i<=t))return n?(t+2<i&&(o=e[t+2]<<16),t+1<i&&(o|=e[t+1]<<8),o|=e[t],t+3<i&&(o+=e[t+3]<<24>>>0)):(t+1<i&&(o=e[t+1]<<16),t+2<i&&(o|=e[t+2]<<8),t+3<i&&(o|=e[t+3]),o+=e[t]<<24>>>0),o}function h(e,t,n,r){if(r||(D("boolean"==typeof n,"missing or invalid endian"),D(null!=t,"missing offset"),D(t+1<e.length,"Trying to read beyond buffer length")),!(e.length<=t)){var o=c(e,t,n,!0);return 32768&o?-1*(65535-o+1):o}}function p(e,t,n,r){if(r||(D("boolean"==typeof n,"missing or invalid endian"),D(null!=t,"missing offset"),D(t+3<e.length,"Trying to read beyond buffer length")),!(e.length<=t)){var o=d(e,t,n,!0);return 2147483648&o?-1*(4294967295-o+1):o}}function b(e,t,n,r){return r||(D("boolean"==typeof n,"missing or invalid endian"),D(t+3<e.length,"Trying to read beyond buffer length")),f.read(e,t,n,23,4)}function m(e,t,n,r){return r||(D("boolean"==typeof n,"missing or invalid endian"),D(t+7<e.length,"Trying to read beyond buffer length")),f.read(e,t,n,52,8)}function v(e,t,n,r,o){o||(D(null!=t,"missing value"),D("boolean"==typeof r,"missing or invalid endian"),D(null!=n,"missing offset"),D(n+1<e.length,"trying to write beyond buffer length"),N(t,65535));var i=e.length;if(!(i<=n))for(var u=0,a=Math.min(i-n,2);u<a;u++)e[n+u]=(t&255<<8*(r?u:1-u))>>>8*(r?u:1-u)}function _(e,t,n,r,o){o||(D(null!=t,"missing value"),D("boolean"==typeof r,"missing or invalid endian"),D(null!=n,"missing offset"),D(n+3<e.length,"trying to write beyond buffer length"),N(t,4294967295));var i=e.length;if(!(i<=n))for(var u=0,a=Math.min(i-n,4);u<a;u++)e[n+u]=t>>>8*(r?u:3-u)&255}function E(e,t,n,r,o){o||(D(null!=t,"missing value"),D("boolean"==typeof r,"missing or invalid endian"),D(null!=n,"missing offset"),D(n+1<e.length,"Trying to write beyond buffer length"),Y(t,32767,-32768)),e.length<=n||v(e,0<=t?t:65535+t+1,n,r,o)}function I(e,t,n,r,o){o||(D(null!=t,"missing value"),D("boolean"==typeof r,"missing or invalid endian"),D(null!=n,"missing offset"),D(n+3<e.length,"Trying to write beyond buffer length"),Y(t,2147483647,-2147483648)),e.length<=n||_(e,0<=t?t:4294967295+t+1,n,r,o)}function A(e,t,n,r,o){o||(D(null!=t,"missing value"),D("boolean"==typeof r,"missing or invalid endian"),D(null!=n,"missing offset"),D(n+3<e.length,"Trying to write beyond buffer length"),F(t,34028234663852886e22,-34028234663852886e22)),e.length<=n||f.write(e,t,n,r,23,4)}function B(e,t,n,r,o){o||(D(null!=t,"missing value"),D("boolean"==typeof r,"missing or invalid endian"),D(null!=n,"missing offset"),D(n+7<e.length,"Trying to write beyond buffer length"),F(t,17976931348623157e292,-17976931348623157e292)),e.length<=n||f.write(e,t,n,r,52,8)}H.Buffer=g,H.SlowBuffer=g,H.INSPECT_MAX_BYTES=50,g.poolSize=8192,g._useTypedArrays=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},42===t.foo()&&"function"==typeof t.subarray}catch(e){return!1}}(),g.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.isBuffer=function(e){return!(null==e||!e._isBuffer)},g.byteLength=function(e,t){var n;switch(e+="",t||"utf8"){case"hex":n=e.length/2;break;case"utf8":case"utf-8":n=C(e).length;break;case"ascii":case"binary":case"raw":n=e.length;break;case"base64":n=k(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*e.length;break;default:throw new Error("Unknown encoding")}return n},g.concat=function(e,t){if(D(S(e),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===e.length)return new g(0);if(1===e.length)return e[0];if("number"!=typeof t)for(o=t=0;o<e.length;o++)t+=e[o].length;for(var n=new g(t),r=0,o=0;o<e.length;o++){var i=e[o];i.copy(n,r),r+=i.length}return n},g.prototype.write=function(e,t,n,r){var o;isFinite(t)?isFinite(n)||(r=n,n=void 0):(o=r,r=t,t=n,n=o),t=Number(t)||0;var i,u,a,s,f,l,c,d,h,p=this.length-t;switch((!n||p<(n=Number(n)))&&(n=p),r=String(r||"utf8").toLowerCase()){case"hex":i=function(e,t,n,r){n=Number(n)||0;var o=e.length-n;(!r||o<(r=Number(r)))&&(r=o);var i=t.length;D(i%2==0,"Invalid hex string"),i/2<r&&(r=i/2);for(var u=0;u<r;u++){var a=parseInt(t.substr(2*u,2),16);D(!isNaN(a),"Invalid hex string"),e[n+u]=a}return g._charsWritten=2*u,u}(this,e,t,n);break;case"utf8":case"utf-8":l=this,c=e,d=t,h=n,i=g._charsWritten=T(C(c),l,d,h);break;case"ascii":case"binary":i=y(this,e,t,n);break;case"base64":u=this,a=e,s=t,f=n,i=g._charsWritten=T(k(a),u,s,f);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":i=w(this,e,t,n);break;default:throw new Error("Unknown encoding")}return i},g.prototype.toString=function(e,t,n){var r,o,i,u,a=this;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,(n=void 0!==n?Number(n):n=a.length)===t)return"";switch(e){case"hex":r=function(e,t,n){var r=e.length;(!t||t<0)&&(t=0);(!n||n<0||r<n)&&(n=r);for(var o="",i=t;i<n;i++)o+=j(e[i]);return o}(a,t,n);break;case"utf8":case"utf-8":r=function(e,t,n){var r="",o="";n=Math.min(e.length,n);for(var i=t;i<n;i++)e[i]<=127?(r+=M(o)+String.fromCharCode(e[i]),o=""):o+="%"+e[i].toString(16);return r+M(o)}(a,t,n);break;case"ascii":case"binary":r=l(a,t,n);break;case"base64":o=a,u=n,r=0===(i=t)&&u===o.length?s.fromByteArray(o):s.fromByteArray(o.slice(i,u));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=function(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}(a,t,n);break;default:throw new Error("Unknown encoding")}return r},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},g.prototype.copy=function(e,t,n,r){if(n=n||0,r||0===r||(r=this.length),t=t||0,r!==n&&0!==e.length&&0!==this.length){D(n<=r,"sourceEnd < sourceStart"),D(0<=t&&t<e.length,"targetStart out of bounds"),D(0<=n&&n<this.length,"sourceStart out of bounds"),D(0<=r&&r<=this.length,"sourceEnd out of bounds"),r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o=r-n;if(o<100||!g._useTypedArrays)for(var i=0;i<o;i++)e[i+t]=this[i+n];else e._set(this.subarray(n,n+o),t)}},g.prototype.slice=function(e,t){var n=this.length;if(e=U(e,n,0),t=U(t,n,n),g._useTypedArrays)return g._augment(this.subarray(e,t));for(var r=t-e,o=new g(r,void 0,!0),i=0;i<r;i++)o[i]=this[i+e];return o},g.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},g.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},g.prototype.readUInt8=function(e,t){if(t||(D(null!=e,"missing offset"),D(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return this[e]},g.prototype.readUInt16LE=function(e,t){return c(this,e,!0,t)},g.prototype.readUInt16BE=function(e,t){return c(this,e,!1,t)},g.prototype.readUInt32LE=function(e,t){return d(this,e,!0,t)},g.prototype.readUInt32BE=function(e,t){return d(this,e,!1,t)},g.prototype.readInt8=function(e,t){if(t||(D(null!=e,"missing offset"),D(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},g.prototype.readInt16LE=function(e,t){return h(this,e,!0,t)},g.prototype.readInt16BE=function(e,t){return h(this,e,!1,t)},g.prototype.readInt32LE=function(e,t){return p(this,e,!0,t)},g.prototype.readInt32BE=function(e,t){return p(this,e,!1,t)},g.prototype.readFloatLE=function(e,t){return b(this,e,!0,t)},g.prototype.readFloatBE=function(e,t){return b(this,e,!1,t)},g.prototype.readDoubleLE=function(e,t){return m(this,e,!0,t)},g.prototype.readDoubleBE=function(e,t){return m(this,e,!1,t)},g.prototype.writeUInt8=function(e,t,n){n||(D(null!=e,"missing value"),D(null!=t,"missing offset"),D(t<this.length,"trying to write beyond buffer length"),N(e,255)),t>=this.length||(this[t]=e)},g.prototype.writeUInt16LE=function(e,t,n){v(this,e,t,!0,n)},g.prototype.writeUInt16BE=function(e,t,n){v(this,e,t,!1,n)},g.prototype.writeUInt32LE=function(e,t,n){_(this,e,t,!0,n)},g.prototype.writeUInt32BE=function(e,t,n){_(this,e,t,!1,n)},g.prototype.writeInt8=function(e,t,n){n||(D(null!=e,"missing value"),D(null!=t,"missing offset"),D(t<this.length,"Trying to write beyond buffer length"),Y(e,127,-128)),t>=this.length||(0<=e?this.writeUInt8(e,t,n):this.writeUInt8(255+e+1,t,n))},g.prototype.writeInt16LE=function(e,t,n){E(this,e,t,!0,n)},g.prototype.writeInt16BE=function(e,t,n){E(this,e,t,!1,n)},g.prototype.writeInt32LE=function(e,t,n){I(this,e,t,!0,n)},g.prototype.writeInt32BE=function(e,t,n){I(this,e,t,!1,n)},g.prototype.writeFloatLE=function(e,t,n){A(this,e,t,!0,n)},g.prototype.writeFloatBE=function(e,t,n){A(this,e,t,!1,n)},g.prototype.writeDoubleLE=function(e,t,n){B(this,e,t,!0,n)},g.prototype.writeDoubleBE=function(e,t,n){B(this,e,t,!1,n)},g.prototype.fill=function(e,t,n){if(e=e||0,t=t||0,n=n||this.length,"string"==typeof e&&(e=e.charCodeAt(0)),D("number"==typeof e&&!isNaN(e),"value is not a number"),D(t<=n,"end < start"),n!==t&&0!==this.length){D(0<=t&&t<this.length,"start out of bounds"),D(0<=n&&n<=this.length,"end out of bounds");for(var r=t;r<n;r++)this[r]=e}},g.prototype.inspect=function(){for(var e=[],t=this.length,n=0;n<t;n++)if(e[n]=j(this[n]),n===H.INSPECT_MAX_BYTES){e[n+1]="...";break}return"<Buffer "+e.join(" ")+">"},g.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw new Error("Buffer.toArrayBuffer not supported in this browser");if(g._useTypedArrays)return new g(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;t<n;t+=1)e[t]=this[t];return e.buffer};var L=g.prototype;function U(e,t,n){return"number"!=typeof e?n:t<=(e=~~e)?t:0<=e||0<=(e+=t)?e:0}function x(e){return(e=~~Math.ceil(+e))<0?0:e}function S(e){return(Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)})(e)}function j(e){return e<16?"0"+e.toString(16):e.toString(16)}function C(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<=127)t.push(e.charCodeAt(n));else{var o=n;55296<=r&&r<=57343&&n++;for(var i=encodeURIComponent(e.slice(o,n+1)).substr(1).split("%"),u=0;u<i.length;u++)t.push(parseInt(i[u],16))}}return t}function k(e){return s.toByteArray(e)}function T(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);o++)t[o+n]=e[o];return o}function M(e){try{return decodeURIComponent(e)}catch(e){return String.fromCharCode(65533)}}function N(e,t){D("number"==typeof e,"cannot write a non-number as a number"),D(0<=e,"specified a negative value for writing an unsigned value"),D(e<=t,"value is larger than maximum value for type"),D(Math.floor(e)===e,"value has a fractional component")}function Y(e,t,n){D("number"==typeof e,"cannot write a non-number as a number"),D(e<=t,"value larger than maximum allowed value"),D(n<=e,"value smaller than minimum allowed value"),D(Math.floor(e)===e,"value has a fractional component")}function F(e,t,n){D("number"==typeof e,"cannot write a non-number as a number"),D(e<=t,"value larger than maximum allowed value"),D(n<=e,"value smaller than minimum allowed value")}function D(e,t){if(!e)throw new Error(t||"Failed assertion")}g._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=L.get,e.set=L.set,e.write=L.write,e.toString=L.toString,e.toLocaleString=L.toString,e.toJSON=L.toJSON,e.copy=L.copy,e.slice=L.slice,e.readUInt8=L.readUInt8,e.readUInt16LE=L.readUInt16LE,e.readUInt16BE=L.readUInt16BE,e.readUInt32LE=L.readUInt32LE,e.readUInt32BE=L.readUInt32BE,e.readInt8=L.readInt8,e.readInt16LE=L.readInt16LE,e.readInt16BE=L.readInt16BE,e.readInt32LE=L.readInt32LE,e.readInt32BE=L.readInt32BE,e.readFloatLE=L.readFloatLE,e.readFloatBE=L.readFloatBE,e.readDoubleLE=L.readDoubleLE,e.readDoubleBE=L.readDoubleBE,e.writeUInt8=L.writeUInt8,e.writeUInt16LE=L.writeUInt16LE,e.writeUInt16BE=L.writeUInt16BE,e.writeUInt32LE=L.writeUInt32LE,e.writeUInt32BE=L.writeUInt32BE,e.writeInt8=L.writeInt8,e.writeInt16LE=L.writeInt16LE,e.writeInt16BE=L.writeInt16BE,e.writeInt32LE=L.writeInt32LE,e.writeInt32BE=L.writeInt32BE,e.writeFloatLE=L.writeFloatLE,e.writeFloatBE=L.writeFloatBE,e.writeDoubleLE=L.writeDoubleLE,e.writeDoubleBE=L.writeDoubleBE,e.fill=L.fill,e.inspect=L.inspect,e.toArrayBuffer=L.toArrayBuffer,e}}).call(this,O("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},O("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:11,lYpoI2:10}],4:[function(c,d,e){(function(e,t,u,n,r,o,i,a,s){var u=c("buffer").Buffer,f=4,l=new u(f);l.fill(0);d.exports={hash:function(e,t,n,r){return u.isBuffer(e)||(e=new u(e)),function(e,t,n){for(var r=new u(t),o=n?r.writeInt32BE:r.writeInt32LE,i=0;i<e.length;i++)o.call(r,e[i],4*i,!0);return r}(t(function(e,t){var n;e.length%f!=0&&(n=e.length+(f-e.length%f),e=u.concat([e,l],n));for(var r=[],o=t?e.readInt32BE:e.readInt32LE,i=0;i<e.length;i+=f)r.push(o.call(e,i));return r}(e,r),8*e.length),n,r)}}}).call(this,c("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},c("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],5:[function(w,e,b){(function(e,t,a,n,r,o,i,u,s){var a=w("buffer").Buffer,f=w("./sha"),l=w("./sha256"),c=w("./rng"),d={sha1:f,sha256:l,md5:w("./md5")},h=64,p=new a(h);function g(e,r){var o=d[e=e||"sha1"],i=[];return o||y("algorithm:",e,"is not yet supported"),{update:function(e){return a.isBuffer(e)||(e=new a(e)),i.push(e),e.length,this},digest:function(e){var t=a.concat(i),n=r?function(e,t,n){a.isBuffer(t)||(t=new a(t)),a.isBuffer(n)||(n=new a(n)),t.length>h?t=e(t):t.length<h&&(t=a.concat([t,p],h));for(var r=new a(h),o=new a(h),i=0;i<h;i++)r[i]=54^t[i],o[i]=92^t[i];var u=e(a.concat([r,n]));return e(a.concat([o,u]))}(o,r,t):o(t);return i=null,e?n.toString(e):n}}}function y(){var e=[].slice.call(arguments).join(" ");throw new Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}p.fill(0),b.createHash=function(e){return g(e)},b.createHmac=g,b.randomBytes=function(e,t){if(!t||!t.call)return new a(c(e));try{t.call(this,void 0,new a(c(e)))}catch(e){t(e)}},function(e,t){for(var n in e)t(e[n],n)}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],function(e){b[e]=function(){y("sorry,",e,"is not implemented yet")}})}).call(this,w("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},w("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:10}],6:[function(w,b,e){(function(e,t,n,r,o,i,u,a,s){var f=w("./helpers");function l(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,u=0;u<e.length;u+=16){var a=n,s=r,f=o,l=i,n=d(n,r,o,i,e[u+0],7,-680876936),i=d(i,n,r,o,e[u+1],12,-389564586),o=d(o,i,n,r,e[u+2],17,606105819),r=d(r,o,i,n,e[u+3],22,-1044525330);n=d(n,r,o,i,e[u+4],7,-176418897),i=d(i,n,r,o,e[u+5],12,1200080426),o=d(o,i,n,r,e[u+6],17,-1473231341),r=d(r,o,i,n,e[u+7],22,-45705983),n=d(n,r,o,i,e[u+8],7,1770035416),i=d(i,n,r,o,e[u+9],12,-1958414417),o=d(o,i,n,r,e[u+10],17,-42063),r=d(r,o,i,n,e[u+11],22,-1990404162),n=d(n,r,o,i,e[u+12],7,1804603682),i=d(i,n,r,o,e[u+13],12,-40341101),o=d(o,i,n,r,e[u+14],17,-1502002290),n=h(n,r=d(r,o,i,n,e[u+15],22,1236535329),o,i,e[u+1],5,-165796510),i=h(i,n,r,o,e[u+6],9,-1069501632),o=h(o,i,n,r,e[u+11],14,643717713),r=h(r,o,i,n,e[u+0],20,-373897302),n=h(n,r,o,i,e[u+5],5,-701558691),i=h(i,n,r,o,e[u+10],9,38016083),o=h(o,i,n,r,e[u+15],14,-660478335),r=h(r,o,i,n,e[u+4],20,-405537848),n=h(n,r,o,i,e[u+9],5,568446438),i=h(i,n,r,o,e[u+14],9,-1019803690),o=h(o,i,n,r,e[u+3],14,-187363961),r=h(r,o,i,n,e[u+8],20,1163531501),n=h(n,r,o,i,e[u+13],5,-1444681467),i=h(i,n,r,o,e[u+2],9,-51403784),o=h(o,i,n,r,e[u+7],14,1735328473),n=p(n,r=h(r,o,i,n,e[u+12],20,-1926607734),o,i,e[u+5],4,-378558),i=p(i,n,r,o,e[u+8],11,-2022574463),o=p(o,i,n,r,e[u+11],16,1839030562),r=p(r,o,i,n,e[u+14],23,-35309556),n=p(n,r,o,i,e[u+1],4,-1530992060),i=p(i,n,r,o,e[u+4],11,1272893353),o=p(o,i,n,r,e[u+7],16,-155497632),r=p(r,o,i,n,e[u+10],23,-1094730640),n=p(n,r,o,i,e[u+13],4,681279174),i=p(i,n,r,o,e[u+0],11,-358537222),o=p(o,i,n,r,e[u+3],16,-722521979),r=p(r,o,i,n,e[u+6],23,76029189),n=p(n,r,o,i,e[u+9],4,-640364487),i=p(i,n,r,o,e[u+12],11,-421815835),o=p(o,i,n,r,e[u+15],16,530742520),n=g(n,r=p(r,o,i,n,e[u+2],23,-995338651),o,i,e[u+0],6,-198630844),i=g(i,n,r,o,e[u+7],10,1126891415),o=g(o,i,n,r,e[u+14],15,-1416354905),r=g(r,o,i,n,e[u+5],21,-57434055),n=g(n,r,o,i,e[u+12],6,1700485571),i=g(i,n,r,o,e[u+3],10,-1894986606),o=g(o,i,n,r,e[u+10],15,-1051523),r=g(r,o,i,n,e[u+1],21,-2054922799),n=g(n,r,o,i,e[u+8],6,1873313359),i=g(i,n,r,o,e[u+15],10,-30611744),o=g(o,i,n,r,e[u+6],15,-1560198380),r=g(r,o,i,n,e[u+13],21,1309151649),n=g(n,r,o,i,e[u+4],6,-145523070),i=g(i,n,r,o,e[u+11],10,-1120210379),o=g(o,i,n,r,e[u+2],15,718787259),r=g(r,o,i,n,e[u+9],21,-343485551),n=y(n,a),r=y(r,s),o=y(o,f),i=y(i,l)}return Array(n,r,o,i)}function c(e,t,n,r,o,i){return y((u=y(y(t,e),y(r,i)))<<(a=o)|u>>>32-a,n);var u,a}function d(e,t,n,r,o,i,u){return c(t&n|~t&r,e,t,o,i,u)}function h(e,t,n,r,o,i,u){return c(t&r|n&~r,e,t,o,i,u)}function p(e,t,n,r,o,i,u){return c(t^n^r,e,t,o,i,u)}function g(e,t,n,r,o,i,u){return c(n^(t|~r),e,t,o,i,u)}function y(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}b.exports=function(e){return f.hash(e,l,16)}}).call(this,w("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},w("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],7:[function(e,c,t){(function(e,t,n,r,o,i,u,a,s){var f,l;l=function(e){for(var t,n=new Array(e),r=0;r<e;r++)0==(3&r)&&(t=4294967296*Math.random()),n[r]=t>>>((3&r)<<3)&255;return n},c.exports=f||l}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],8:[function(c,d,e){(function(e,t,n,r,o,i,u,a,s){var f=c("./helpers");function l(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var n,r,o,i,u,a=Array(80),s=1732584193,f=-271733879,l=-1732584194,c=271733878,d=-1009589776,h=0;h<e.length;h+=16){for(var p=s,g=f,y=l,w=c,b=d,m=0;m<80;m++){a[m]=m<16?e[h+m]:E(a[m-3]^a[m-8]^a[m-14]^a[m-16],1);var v=_(_(E(s,5),(o=f,i=l,u=c,(r=m)<20?o&i|~o&u:!(r<40)&&r<60?o&i|o&u|i&u:o^i^u)),_(_(d,a[m]),(n=m)<20?1518500249:n<40?1859775393:n<60?-1894007588:-899497514)),d=c,c=l,l=E(f,30),f=s,s=v}s=_(s,p),f=_(f,g),l=_(l,y),c=_(c,w),d=_(d,b)}return Array(s,f,l,c,d)}function _(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function E(e,t){return e<<t|e>>>32-t}d.exports=function(e){return f.hash(e,l,20,!0)}}).call(this,c("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},c("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],9:[function(c,d,e){(function(e,t,n,r,o,i,u,a,s){function B(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function L(e,t){return e>>>t|e<<32-t}function f(e,t){var n,r,o,i,u,a,s,f,l,c,d=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),h=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),p=new Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var g,y,w,b,m,v,_,E,I=0;I<e.length;I+=16){n=h[0],r=h[1],o=h[2],i=h[3],u=h[4],a=h[5],s=h[6],f=h[7];for(var A=0;A<64;A++)p[A]=A<16?e[A+I]:B(B(B((E=p[A-2],L(E,17)^L(E,19)^E>>>10),p[A-7]),(_=p[A-15],L(_,7)^L(_,18)^_>>>3)),p[A-16]),l=B(B(B(B(f,L(v=u,6)^L(v,11)^L(v,25)),(m=u)&a^~m&s),d[A]),p[A]),c=B(L(b=n,2)^L(b,13)^L(b,22),(g=n)&(y=r)^g&(w=o)^y&w),f=s,s=a,a=u,u=B(i,l),i=o,o=r,r=n,n=B(l,c);h[0]=B(n,h[0]),h[1]=B(r,h[1]),h[2]=B(o,h[2]),h[3]=B(i,h[3]),h[4]=B(u,h[4]),h[5]=B(a,h[5]),h[6]=B(s,h[6]),h[7]=B(f,h[7])}return h}var l=c("./helpers");d.exports=function(e){return l.hash(e,f,32,!0)}}).call(this,c("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},c("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],10:[function(e,l,t){(function(e,t,n,r,o,i,u,a,s){function f(){}(e=l.exports={}).nextTick=function(){var e="undefined"!=typeof window&&window.setImmediate,t="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var n=[];return window.addEventListener("message",function(e){var t=e.source;t!==window&&null!==t||"process-tick"!==e.data||(e.stopPropagation(),0<n.length&&n.shift()())},!0),function(e){n.push(e),window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}(),e.title="browser",e.browser=!0,e.env={},e.argv=[],e.on=f,e.addListener=f,e.once=f,e.off=f,e.removeListener=f,e.removeAllListeners=f,e.emit=f,e.binding=function(e){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw new Error("process.chdir is not supported")}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:10}],11:[function(e,t,f){(function(e,t,n,r,o,i,u,a,s){f.read=function(e,t,n,r,o){var i,u,a=8*o-r-1,s=(1<<a)-1,f=s>>1,l=-7,c=n?o-1:0,d=n?-1:1,h=e[t+c];for(c+=d,i=h&(1<<-l)-1,h>>=-l,l+=a;0<l;i=256*i+e[t+c],c+=d,l-=8);for(u=i&(1<<-l)-1,i>>=-l,l+=r;0<l;u=256*u+e[t+c],c+=d,l-=8);if(0===i)i=1-f;else{if(i===s)return u?NaN:1/0*(h?-1:1);u+=Math.pow(2,r),i-=f}return(h?-1:1)*u*Math.pow(2,i-r)},f.write=function(e,t,n,r,o,i){var u,a,s,f=8*i-o-1,l=(1<<f)-1,c=l>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,p=r?1:-1,g=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,u=l):(u=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-u))<1&&(u--,s*=2),2<=(t+=1<=u+c?d/s:d*Math.pow(2,1-c))*s&&(u++,s/=2),l<=u+c?(a=0,u=l):1<=u+c?(a=(t*s-1)*Math.pow(2,o),u+=c):(a=t*Math.pow(2,c-1)*Math.pow(2,o),u=0));8<=o;e[n+h]=255&a,h+=p,a/=256,o-=8);for(u=u<<o|a,f+=o;0<f;e[n+h]=255&u,h+=p,u/=256,f-=8);e[n+h-p]|=128*g}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/ieee754/index.js","/node_modules/ieee754")},{buffer:3,lYpoI2:10}]},{},[1])(1)});
|
|
368331
|
+
!function(e){var t; true?module.exports=e():0}(function(){return function r(o,i,u){function s(n,e){if(!i[n]){if(!o[n]){var t=undefined;if(!e&&t)return require(n,!0);if(a)return a(n,!0);throw new Error("Cannot find module '"+n+"'")}e=i[n]={exports:{}};o[n][0].call(e.exports,function(e){var t=o[n][1][e];return s(t||e)},e,e.exports,r,o,i,u)}return i[n].exports}for(var a=undefined,e=0;e<u.length;e++)s(u[e]);return s}({1:[function(w,b,m){!function(e,n,s,c,d,h,p,g,y){"use strict";var r=w("crypto");function t(e,t){t=u(e,t);var n;return void 0===(n="passthrough"!==t.algorithm?r.createHash(t.algorithm):new l).write&&(n.write=n.update,n.end=n.update),f(t,n).dispatch(e),n.update||n.end(""),n.digest?n.digest("buffer"===t.encoding?void 0:t.encoding):(e=n.read(),"buffer"!==t.encoding?e.toString(t.encoding):e)}(m=b.exports=t).sha1=function(e){return t(e)},m.keys=function(e){return t(e,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},m.MD5=function(e){return t(e,{algorithm:"md5",encoding:"hex"})},m.keysMD5=function(e){return t(e,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var o=r.getHashes?r.getHashes().slice():["sha1","md5"],i=(o.push("passthrough"),["buffer","hex","binary","base64"]);function u(e,t){var n={};if(n.algorithm=(t=t||{}).algorithm||"sha1",n.encoding=t.encoding||"hex",n.excludeValues=!!t.excludeValues,n.algorithm=n.algorithm.toLowerCase(),n.encoding=n.encoding.toLowerCase(),n.ignoreUnknown=!0===t.ignoreUnknown,n.respectType=!1!==t.respectType,n.respectFunctionNames=!1!==t.respectFunctionNames,n.respectFunctionProperties=!1!==t.respectFunctionProperties,n.unorderedArrays=!0===t.unorderedArrays,n.unorderedSets=!1!==t.unorderedSets,n.unorderedObjects=!1!==t.unorderedObjects,n.replacer=t.replacer||void 0,n.excludeKeys=t.excludeKeys||void 0,void 0===e)throw new Error("Object argument required.");for(var r=0;r<o.length;++r)o[r].toLowerCase()===n.algorithm.toLowerCase()&&(n.algorithm=o[r]);if(-1===o.indexOf(n.algorithm))throw new Error('Algorithm "'+n.algorithm+'" not supported. supported values: '+o.join(", "));if(-1===i.indexOf(n.encoding)&&"passthrough"!==n.algorithm)throw new Error('Encoding "'+n.encoding+'" not supported. supported values: '+i.join(", "));return n}function a(e){if("function"==typeof e)return null!=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(e))}function f(o,t,i){i=i||[];function u(e){return t.update?t.update(e,"utf8"):t.write(e,"utf8")}return{dispatch:function(e){return this["_"+(null===(e=o.replacer?o.replacer(e):e)?"null":typeof e)](e)},_object:function(t){var n,e=Object.prototype.toString.call(t),r=/\[object (.*)\]/i.exec(e);r=(r=r?r[1]:"unknown:["+e+"]").toLowerCase();if(0<=(e=i.indexOf(t)))return this.dispatch("[CIRCULAR:"+e+"]");if(i.push(t),void 0!==s&&s.isBuffer&&s.isBuffer(t))return u("buffer:"),u(t);if("object"===r||"function"===r||"asyncfunction"===r)return e=Object.keys(t),o.unorderedObjects&&(e=e.sort()),!1===o.respectType||a(t)||e.splice(0,0,"prototype","__proto__","constructor"),o.excludeKeys&&(e=e.filter(function(e){return!o.excludeKeys(e)})),u("object:"+e.length+":"),n=this,e.forEach(function(e){n.dispatch(e),u(":"),o.excludeValues||n.dispatch(t[e]),u(",")});if(!this["_"+r]){if(o.ignoreUnknown)return u("["+r+"]");throw new Error('Unknown object type "'+r+'"')}this["_"+r](t)},_array:function(e,t){t=void 0!==t?t:!1!==o.unorderedArrays;var n=this;if(u("array:"+e.length+":"),!t||e.length<=1)return e.forEach(function(e){return n.dispatch(e)});var r=[],t=e.map(function(e){var t=new l,n=i.slice();return f(o,t,n).dispatch(e),r=r.concat(n.slice(i.length)),t.read().toString()});return i=i.concat(r),t.sort(),this._array(t,!1)},_date:function(e){return u("date:"+e.toJSON())},_symbol:function(e){return u("symbol:"+e.toString())},_error:function(e){return u("error:"+e.toString())},_boolean:function(e){return u("bool:"+e.toString())},_string:function(e){u("string:"+e.length+":"),u(e.toString())},_function:function(e){u("fn:"),a(e)?this.dispatch("[native]"):this.dispatch(e.toString()),!1!==o.respectFunctionNames&&this.dispatch("function-name:"+String(e.name)),o.respectFunctionProperties&&this._object(e)},_number:function(e){return u("number:"+e.toString())},_xml:function(e){return u("xml:"+e.toString())},_null:function(){return u("Null")},_undefined:function(){return u("Undefined")},_regexp:function(e){return u("regex:"+e.toString())},_uint8array:function(e){return u("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint8clampedarray:function(e){return u("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(e))},_int8array:function(e){return u("int8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint16array:function(e){return u("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_int16array:function(e){return u("int16array:"),this.dispatch(Array.prototype.slice.call(e))},_uint32array:function(e){return u("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_int32array:function(e){return u("int32array:"),this.dispatch(Array.prototype.slice.call(e))},_float32array:function(e){return u("float32array:"),this.dispatch(Array.prototype.slice.call(e))},_float64array:function(e){return u("float64array:"),this.dispatch(Array.prototype.slice.call(e))},_arraybuffer:function(e){return u("arraybuffer:"),this.dispatch(new Uint8Array(e))},_url:function(e){return u("url:"+e.toString())},_map:function(e){u("map:");e=Array.from(e);return this._array(e,!1!==o.unorderedSets)},_set:function(e){u("set:");e=Array.from(e);return this._array(e,!1!==o.unorderedSets)},_file:function(e){return u("file:"),this.dispatch([e.name,e.size,e.type,e.lastModfied])},_blob:function(){if(o.ignoreUnknown)return u("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return u("domwindow")},_bigint:function(e){return u("bigint:"+e.toString())},_process:function(){return u("process")},_timer:function(){return u("timer")},_pipe:function(){return u("pipe")},_tcp:function(){return u("tcp")},_udp:function(){return u("udp")},_tty:function(){return u("tty")},_statwatcher:function(){return u("statwatcher")},_securecontext:function(){return u("securecontext")},_connection:function(){return u("connection")},_zlib:function(){return u("zlib")},_context:function(){return u("context")},_nodescript:function(){return u("nodescript")},_httpparser:function(){return u("httpparser")},_dataview:function(){return u("dataview")},_signal:function(){return u("signal")},_fsevent:function(){return u("fsevent")},_tlswrap:function(){return u("tlswrap")}}}function l(){return{buf:"",write:function(e){this.buf+=e},end:function(e){this.buf+=e},read:function(){return this.buf}}}m.writeToStream=function(e,t,n){return void 0===n&&(n=t,t={}),f(t=u(e,t),n).dispatch(e)}}.call(this,w("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},w("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(e,t,f){!function(e,t,n,r,o,i,u,s,a){!function(e){"use strict";var a="undefined"!=typeof Uint8Array?Uint8Array:Array,t="+".charCodeAt(0),n="/".charCodeAt(0),r="0".charCodeAt(0),o="a".charCodeAt(0),i="A".charCodeAt(0),u="-".charCodeAt(0),s="_".charCodeAt(0);function f(e){e=e.charCodeAt(0);return e===t||e===u?62:e===n||e===s?63:e<r?-1:e<r+10?e-r+26+26:e<i+26?e-i:e<o+26?e-o+26:void 0}e.toByteArray=function(e){var t,n;if(0<e.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var r=e.length,r="="===e.charAt(r-2)?2:"="===e.charAt(r-1)?1:0,o=new a(3*e.length/4-r),i=0<r?e.length-4:e.length,u=0;function s(e){o[u++]=e}for(t=0;t<i;t+=4,0)s((16711680&(n=f(e.charAt(t))<<18|f(e.charAt(t+1))<<12|f(e.charAt(t+2))<<6|f(e.charAt(t+3))))>>16),s((65280&n)>>8),s(255&n);return 2==r?s(255&(n=f(e.charAt(t))<<2|f(e.charAt(t+1))>>4)):1==r&&(s((n=f(e.charAt(t))<<10|f(e.charAt(t+1))<<4|f(e.charAt(t+2))>>2)>>8&255),s(255&n)),o},e.fromByteArray=function(e){var t,n,r,o,i=e.length%3,u="";function s(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)}for(t=0,r=e.length-i;t<r;t+=3)n=(e[t]<<16)+(e[t+1]<<8)+e[t+2],u+=s((o=n)>>18&63)+s(o>>12&63)+s(o>>6&63)+s(63&o);switch(i){case 1:u=(u+=s((n=e[e.length-1])>>2))+s(n<<4&63)+"==";break;case 2:u=(u=(u+=s((n=(e[e.length-2]<<8)+e[e.length-1])>>10))+s(n>>4&63))+s(n<<2&63)+"="}return u}}(void 0===f?this.base64js={}:f)}.call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(O,e,H){!function(e,n,f,r,h,p,g,y,w){var a=O("base64-js"),i=O("ieee754");function f(e,t,n){if(!(this instanceof f))return new f(e,t,n);var r,o,i,u,s=typeof e;if("base64"===t&&"string"==s)for(e=(u=e).trim?u.trim():u.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if("number"==s)r=j(e);else if("string"==s)r=f.byteLength(e,t);else{if("object"!=s)throw new Error("First argument needs to be a number, array or string.");r=j(e.length)}if(f._useTypedArrays?o=f._augment(new Uint8Array(r)):((o=this).length=r,o._isBuffer=!0),f._useTypedArrays&&"number"==typeof e.byteLength)o._set(e);else if(C(u=e)||f.isBuffer(u)||u&&"object"==typeof u&&"number"==typeof u.length)for(i=0;i<r;i++)f.isBuffer(e)?o[i]=e.readUInt8(i):o[i]=e[i];else if("string"==s)o.write(e,0,t);else if("number"==s&&!f._useTypedArrays&&!n)for(i=0;i<r;i++)o[i]=0;return o}function b(e,t,n,r){return f._charsWritten=c(function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function m(e,t,n,r){return f._charsWritten=c(function(e){for(var t,n,r=[],o=0;o<e.length;o++)n=e.charCodeAt(o),t=n>>8,n=n%256,r.push(n),r.push(t);return r}(t),e,n,r)}function v(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;o++)r+=String.fromCharCode(e[o]);return r}function o(e,t,n,r){r||(d("boolean"==typeof n,"missing or invalid endian"),d(null!=t,"missing offset"),d(t+1<e.length,"Trying to read beyond buffer length"));var o,r=e.length;if(!(r<=t))return n?(o=e[t],t+1<r&&(o|=e[t+1]<<8)):(o=e[t]<<8,t+1<r&&(o|=e[t+1])),o}function u(e,t,n,r){r||(d("boolean"==typeof n,"missing or invalid endian"),d(null!=t,"missing offset"),d(t+3<e.length,"Trying to read beyond buffer length"));var o,r=e.length;if(!(r<=t))return n?(t+2<r&&(o=e[t+2]<<16),t+1<r&&(o|=e[t+1]<<8),o|=e[t],t+3<r&&(o+=e[t+3]<<24>>>0)):(t+1<r&&(o=e[t+1]<<16),t+2<r&&(o|=e[t+2]<<8),t+3<r&&(o|=e[t+3]),o+=e[t]<<24>>>0),o}function _(e,t,n,r){if(r||(d("boolean"==typeof n,"missing or invalid endian"),d(null!=t,"missing offset"),d(t+1<e.length,"Trying to read beyond buffer length")),!(e.length<=t))return r=o(e,t,n,!0),32768&r?-1*(65535-r+1):r}function E(e,t,n,r){if(r||(d("boolean"==typeof n,"missing or invalid endian"),d(null!=t,"missing offset"),d(t+3<e.length,"Trying to read beyond buffer length")),!(e.length<=t))return r=u(e,t,n,!0),2147483648&r?-1*(4294967295-r+1):r}function I(e,t,n,r){return r||(d("boolean"==typeof n,"missing or invalid endian"),d(t+3<e.length,"Trying to read beyond buffer length")),i.read(e,t,n,23,4)}function A(e,t,n,r){return r||(d("boolean"==typeof n,"missing or invalid endian"),d(t+7<e.length,"Trying to read beyond buffer length")),i.read(e,t,n,52,8)}function s(e,t,n,r,o){o||(d(null!=t,"missing value"),d("boolean"==typeof r,"missing or invalid endian"),d(null!=n,"missing offset"),d(n+1<e.length,"trying to write beyond buffer length"),Y(t,65535));o=e.length;if(!(o<=n))for(var i=0,u=Math.min(o-n,2);i<u;i++)e[n+i]=(t&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function l(e,t,n,r,o){o||(d(null!=t,"missing value"),d("boolean"==typeof r,"missing or invalid endian"),d(null!=n,"missing offset"),d(n+3<e.length,"trying to write beyond buffer length"),Y(t,4294967295));o=e.length;if(!(o<=n))for(var i=0,u=Math.min(o-n,4);i<u;i++)e[n+i]=t>>>8*(r?i:3-i)&255}function B(e,t,n,r,o){o||(d(null!=t,"missing value"),d("boolean"==typeof r,"missing or invalid endian"),d(null!=n,"missing offset"),d(n+1<e.length,"Trying to write beyond buffer length"),F(t,32767,-32768)),e.length<=n||s(e,0<=t?t:65535+t+1,n,r,o)}function L(e,t,n,r,o){o||(d(null!=t,"missing value"),d("boolean"==typeof r,"missing or invalid endian"),d(null!=n,"missing offset"),d(n+3<e.length,"Trying to write beyond buffer length"),F(t,2147483647,-2147483648)),e.length<=n||l(e,0<=t?t:4294967295+t+1,n,r,o)}function U(e,t,n,r,o){o||(d(null!=t,"missing value"),d("boolean"==typeof r,"missing or invalid endian"),d(null!=n,"missing offset"),d(n+3<e.length,"Trying to write beyond buffer length"),D(t,34028234663852886e22,-34028234663852886e22)),e.length<=n||i.write(e,t,n,r,23,4)}function x(e,t,n,r,o){o||(d(null!=t,"missing value"),d("boolean"==typeof r,"missing or invalid endian"),d(null!=n,"missing offset"),d(n+7<e.length,"Trying to write beyond buffer length"),D(t,17976931348623157e292,-17976931348623157e292)),e.length<=n||i.write(e,t,n,r,52,8)}H.Buffer=f,H.SlowBuffer=f,H.INSPECT_MAX_BYTES=50,f.poolSize=8192,f._useTypedArrays=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},42===t.foo()&&"function"==typeof t.subarray}catch(e){return!1}}(),f.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.isBuffer=function(e){return!(null==e||!e._isBuffer)},f.byteLength=function(e,t){var n;switch(e+="",t||"utf8"){case"hex":n=e.length/2;break;case"utf8":case"utf-8":n=T(e).length;break;case"ascii":case"binary":case"raw":n=e.length;break;case"base64":n=M(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*e.length;break;default:throw new Error("Unknown encoding")}return n},f.concat=function(e,t){if(d(C(e),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===e.length)return new f(0);if(1===e.length)return e[0];if("number"!=typeof t)for(o=t=0;o<e.length;o++)t+=e[o].length;for(var n=new f(t),r=0,o=0;o<e.length;o++){var i=e[o];i.copy(n,r),r+=i.length}return n},f.prototype.write=function(e,t,n,r){isFinite(t)?isFinite(n)||(r=n,n=void 0):(a=r,r=t,t=n,n=a),t=Number(t)||0;var o,i,u,s,a=this.length-t;switch((!n||a<(n=Number(n)))&&(n=a),r=String(r||"utf8").toLowerCase()){case"hex":o=function(e,t,n,r){n=Number(n)||0;var o=e.length-n;(!r||o<(r=Number(r)))&&(r=o),d((o=t.length)%2==0,"Invalid hex string"),o/2<r&&(r=o/2);for(var i=0;i<r;i++){var u=parseInt(t.substr(2*i,2),16);d(!isNaN(u),"Invalid hex string"),e[n+i]=u}return f._charsWritten=2*i,i}(this,e,t,n);break;case"utf8":case"utf-8":i=this,u=t,s=n,o=f._charsWritten=c(T(e),i,u,s);break;case"ascii":case"binary":o=b(this,e,t,n);break;case"base64":i=this,u=t,s=n,o=f._charsWritten=c(M(e),i,u,s);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":o=m(this,e,t,n);break;default:throw new Error("Unknown encoding")}return o},f.prototype.toString=function(e,t,n){var r,o,i,u,s=this;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,(n=void 0!==n?Number(n):s.length)===t)return"";switch(e){case"hex":r=function(e,t,n){var r=e.length;(!t||t<0)&&(t=0);(!n||n<0||r<n)&&(n=r);for(var o="",i=t;i<n;i++)o+=k(e[i]);return o}(s,t,n);break;case"utf8":case"utf-8":r=function(e,t,n){var r="",o="";n=Math.min(e.length,n);for(var i=t;i<n;i++)e[i]<=127?(r+=N(o)+String.fromCharCode(e[i]),o=""):o+="%"+e[i].toString(16);return r+N(o)}(s,t,n);break;case"ascii":case"binary":r=v(s,t,n);break;case"base64":o=s,u=n,r=0===(i=t)&&u===o.length?a.fromByteArray(o):a.fromByteArray(o.slice(i,u));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=function(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}(s,t,n);break;default:throw new Error("Unknown encoding")}return r},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},f.prototype.copy=function(e,t,n,r){if(t=t||0,(r=r||0===r?r:this.length)!==(n=n||0)&&0!==e.length&&0!==this.length){d(n<=r,"sourceEnd < sourceStart"),d(0<=t&&t<e.length,"targetStart out of bounds"),d(0<=n&&n<this.length,"sourceStart out of bounds"),d(0<=r&&r<=this.length,"sourceEnd out of bounds"),r>this.length&&(r=this.length);var o=(r=e.length-t<r-n?e.length-t+n:r)-n;if(o<100||!f._useTypedArrays)for(var i=0;i<o;i++)e[i+t]=this[i+n];else e._set(this.subarray(n,n+o),t)}},f.prototype.slice=function(e,t){var n=this.length;if(e=S(e,n,0),t=S(t,n,n),f._useTypedArrays)return f._augment(this.subarray(e,t));for(var r=t-e,o=new f(r,void 0,!0),i=0;i<r;i++)o[i]=this[i+e];return o},f.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},f.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},f.prototype.readUInt8=function(e,t){if(t||(d(null!=e,"missing offset"),d(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return this[e]},f.prototype.readUInt16LE=function(e,t){return o(this,e,!0,t)},f.prototype.readUInt16BE=function(e,t){return o(this,e,!1,t)},f.prototype.readUInt32LE=function(e,t){return u(this,e,!0,t)},f.prototype.readUInt32BE=function(e,t){return u(this,e,!1,t)},f.prototype.readInt8=function(e,t){if(t||(d(null!=e,"missing offset"),d(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},f.prototype.readInt16LE=function(e,t){return _(this,e,!0,t)},f.prototype.readInt16BE=function(e,t){return _(this,e,!1,t)},f.prototype.readInt32LE=function(e,t){return E(this,e,!0,t)},f.prototype.readInt32BE=function(e,t){return E(this,e,!1,t)},f.prototype.readFloatLE=function(e,t){return I(this,e,!0,t)},f.prototype.readFloatBE=function(e,t){return I(this,e,!1,t)},f.prototype.readDoubleLE=function(e,t){return A(this,e,!0,t)},f.prototype.readDoubleBE=function(e,t){return A(this,e,!1,t)},f.prototype.writeUInt8=function(e,t,n){n||(d(null!=e,"missing value"),d(null!=t,"missing offset"),d(t<this.length,"trying to write beyond buffer length"),Y(e,255)),t>=this.length||(this[t]=e)},f.prototype.writeUInt16LE=function(e,t,n){s(this,e,t,!0,n)},f.prototype.writeUInt16BE=function(e,t,n){s(this,e,t,!1,n)},f.prototype.writeUInt32LE=function(e,t,n){l(this,e,t,!0,n)},f.prototype.writeUInt32BE=function(e,t,n){l(this,e,t,!1,n)},f.prototype.writeInt8=function(e,t,n){n||(d(null!=e,"missing value"),d(null!=t,"missing offset"),d(t<this.length,"Trying to write beyond buffer length"),F(e,127,-128)),t>=this.length||(0<=e?this.writeUInt8(e,t,n):this.writeUInt8(255+e+1,t,n))},f.prototype.writeInt16LE=function(e,t,n){B(this,e,t,!0,n)},f.prototype.writeInt16BE=function(e,t,n){B(this,e,t,!1,n)},f.prototype.writeInt32LE=function(e,t,n){L(this,e,t,!0,n)},f.prototype.writeInt32BE=function(e,t,n){L(this,e,t,!1,n)},f.prototype.writeFloatLE=function(e,t,n){U(this,e,t,!0,n)},f.prototype.writeFloatBE=function(e,t,n){U(this,e,t,!1,n)},f.prototype.writeDoubleLE=function(e,t,n){x(this,e,t,!0,n)},f.prototype.writeDoubleBE=function(e,t,n){x(this,e,t,!1,n)},f.prototype.fill=function(e,t,n){if(t=t||0,n=n||this.length,d("number"==typeof(e="string"==typeof(e=e||0)?e.charCodeAt(0):e)&&!isNaN(e),"value is not a number"),d(t<=n,"end < start"),n!==t&&0!==this.length){d(0<=t&&t<this.length,"start out of bounds"),d(0<=n&&n<=this.length,"end out of bounds");for(var r=t;r<n;r++)this[r]=e}},f.prototype.inspect=function(){for(var e=[],t=this.length,n=0;n<t;n++)if(e[n]=k(this[n]),n===H.INSPECT_MAX_BYTES){e[n+1]="...";break}return"<Buffer "+e.join(" ")+">"},f.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw new Error("Buffer.toArrayBuffer not supported in this browser");if(f._useTypedArrays)return new f(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;t<n;t+=1)e[t]=this[t];return e.buffer};var t=f.prototype;function S(e,t,n){return"number"!=typeof e?n:t<=(e=~~e)?t:0<=e||0<=(e+=t)?e:0}function j(e){return(e=~~Math.ceil(+e))<0?0:e}function C(e){return(Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)})(e)}function k(e){return e<16?"0"+e.toString(16):e.toString(16)}function T(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<=127)t.push(e.charCodeAt(n));else for(var o=n,i=(55296<=r&&r<=57343&&n++,encodeURIComponent(e.slice(o,n+1)).substr(1).split("%")),u=0;u<i.length;u++)t.push(parseInt(i[u],16))}return t}function M(e){return a.toByteArray(e)}function c(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);o++)t[o+n]=e[o];return o}function N(e){try{return decodeURIComponent(e)}catch(e){return String.fromCharCode(65533)}}function Y(e,t){d("number"==typeof e,"cannot write a non-number as a number"),d(0<=e,"specified a negative value for writing an unsigned value"),d(e<=t,"value is larger than maximum value for type"),d(Math.floor(e)===e,"value has a fractional component")}function F(e,t,n){d("number"==typeof e,"cannot write a non-number as a number"),d(e<=t,"value larger than maximum allowed value"),d(n<=e,"value smaller than minimum allowed value"),d(Math.floor(e)===e,"value has a fractional component")}function D(e,t,n){d("number"==typeof e,"cannot write a non-number as a number"),d(e<=t,"value larger than maximum allowed value"),d(n<=e,"value smaller than minimum allowed value")}function d(e,t){if(!e)throw new Error(t||"Failed assertion")}f._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=t.get,e.set=t.set,e.write=t.write,e.toString=t.toString,e.toLocaleString=t.toString,e.toJSON=t.toJSON,e.copy=t.copy,e.slice=t.slice,e.readUInt8=t.readUInt8,e.readUInt16LE=t.readUInt16LE,e.readUInt16BE=t.readUInt16BE,e.readUInt32LE=t.readUInt32LE,e.readUInt32BE=t.readUInt32BE,e.readInt8=t.readInt8,e.readInt16LE=t.readInt16LE,e.readInt16BE=t.readInt16BE,e.readInt32LE=t.readInt32LE,e.readInt32BE=t.readInt32BE,e.readFloatLE=t.readFloatLE,e.readFloatBE=t.readFloatBE,e.readDoubleLE=t.readDoubleLE,e.readDoubleBE=t.readDoubleBE,e.writeUInt8=t.writeUInt8,e.writeUInt16LE=t.writeUInt16LE,e.writeUInt16BE=t.writeUInt16BE,e.writeUInt32LE=t.writeUInt32LE,e.writeUInt32BE=t.writeUInt32BE,e.writeInt8=t.writeInt8,e.writeInt16LE=t.writeInt16LE,e.writeInt16BE=t.writeInt16BE,e.writeInt32LE=t.writeInt32LE,e.writeInt32BE=t.writeInt32BE,e.writeFloatLE=t.writeFloatLE,e.writeFloatBE=t.writeFloatBE,e.writeDoubleLE=t.writeDoubleLE,e.writeDoubleBE=t.writeDoubleBE,e.fill=t.fill,e.inspect=t.inspect,e.toArrayBuffer=t.toArrayBuffer,e}}.call(this,O("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},O("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(c,d,e){!function(e,t,a,n,r,o,i,u,s){var a=c("buffer").Buffer,f=4,l=new a(f);l.fill(0);d.exports={hash:function(e,t,n,r){for(var o=t(function(e,t){e.length%f!=0&&(n=e.length+(f-e.length%f),e=a.concat([e,l],n));for(var n,r=[],o=t?e.readInt32BE:e.readInt32LE,i=0;i<e.length;i+=f)r.push(o.call(e,i));return r}(e=a.isBuffer(e)?e:new a(e),r),8*e.length),t=r,i=new a(n),u=t?i.writeInt32BE:i.writeInt32LE,s=0;s<o.length;s++)u.call(i,o[s],4*s,!0);return i}}}.call(this,c("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},c("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],5:[function(v,e,_){!function(l,c,u,d,h,p,g,y,w){var u=v("buffer").Buffer,e=v("./sha"),t=v("./sha256"),n=v("./rng"),b={sha1:e,sha256:t,md5:v("./md5")},s=64,a=new u(s);function r(e,n){var r=b[e=e||"sha1"],o=[];return r||i("algorithm:",e,"is not yet supported"),{update:function(e){return u.isBuffer(e)||(e=new u(e)),o.push(e),e.length,this},digest:function(e){var t=u.concat(o),t=n?function(e,t,n){u.isBuffer(t)||(t=new u(t)),u.isBuffer(n)||(n=new u(n)),t.length>s?t=e(t):t.length<s&&(t=u.concat([t,a],s));for(var r=new u(s),o=new u(s),i=0;i<s;i++)r[i]=54^t[i],o[i]=92^t[i];return n=e(u.concat([r,n])),e(u.concat([o,n]))}(r,n,t):r(t);return o=null,e?t.toString(e):t}}}function i(){var e=[].slice.call(arguments).join(" ");throw new Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}a.fill(0),_.createHash=function(e){return r(e)},_.createHmac=r,_.randomBytes=function(e,t){if(!t||!t.call)return new u(n(e));try{t.call(this,void 0,new u(n(e)))}catch(e){t(e)}};var o,f=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],m=function(e){_[e]=function(){i("sorry,",e,"is not implemented yet")}};for(o in f)m(f[o],o)}.call(this,v("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},v("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(w,b,e){!function(e,r,o,i,u,a,f,l,y){var t=w("./helpers");function n(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,u=0;u<e.length;u+=16){var s=n,a=r,f=o,l=i,n=c(n,r,o,i,e[u+0],7,-680876936),i=c(i,n,r,o,e[u+1],12,-389564586),o=c(o,i,n,r,e[u+2],17,606105819),r=c(r,o,i,n,e[u+3],22,-1044525330);n=c(n,r,o,i,e[u+4],7,-176418897),i=c(i,n,r,o,e[u+5],12,1200080426),o=c(o,i,n,r,e[u+6],17,-1473231341),r=c(r,o,i,n,e[u+7],22,-45705983),n=c(n,r,o,i,e[u+8],7,1770035416),i=c(i,n,r,o,e[u+9],12,-1958414417),o=c(o,i,n,r,e[u+10],17,-42063),r=c(r,o,i,n,e[u+11],22,-1990404162),n=c(n,r,o,i,e[u+12],7,1804603682),i=c(i,n,r,o,e[u+13],12,-40341101),o=c(o,i,n,r,e[u+14],17,-1502002290),n=d(n,r=c(r,o,i,n,e[u+15],22,1236535329),o,i,e[u+1],5,-165796510),i=d(i,n,r,o,e[u+6],9,-1069501632),o=d(o,i,n,r,e[u+11],14,643717713),r=d(r,o,i,n,e[u+0],20,-373897302),n=d(n,r,o,i,e[u+5],5,-701558691),i=d(i,n,r,o,e[u+10],9,38016083),o=d(o,i,n,r,e[u+15],14,-660478335),r=d(r,o,i,n,e[u+4],20,-405537848),n=d(n,r,o,i,e[u+9],5,568446438),i=d(i,n,r,o,e[u+14],9,-1019803690),o=d(o,i,n,r,e[u+3],14,-187363961),r=d(r,o,i,n,e[u+8],20,1163531501),n=d(n,r,o,i,e[u+13],5,-1444681467),i=d(i,n,r,o,e[u+2],9,-51403784),o=d(o,i,n,r,e[u+7],14,1735328473),n=h(n,r=d(r,o,i,n,e[u+12],20,-1926607734),o,i,e[u+5],4,-378558),i=h(i,n,r,o,e[u+8],11,-2022574463),o=h(o,i,n,r,e[u+11],16,1839030562),r=h(r,o,i,n,e[u+14],23,-35309556),n=h(n,r,o,i,e[u+1],4,-1530992060),i=h(i,n,r,o,e[u+4],11,1272893353),o=h(o,i,n,r,e[u+7],16,-155497632),r=h(r,o,i,n,e[u+10],23,-1094730640),n=h(n,r,o,i,e[u+13],4,681279174),i=h(i,n,r,o,e[u+0],11,-358537222),o=h(o,i,n,r,e[u+3],16,-722521979),r=h(r,o,i,n,e[u+6],23,76029189),n=h(n,r,o,i,e[u+9],4,-640364487),i=h(i,n,r,o,e[u+12],11,-421815835),o=h(o,i,n,r,e[u+15],16,530742520),n=p(n,r=h(r,o,i,n,e[u+2],23,-995338651),o,i,e[u+0],6,-198630844),i=p(i,n,r,o,e[u+7],10,1126891415),o=p(o,i,n,r,e[u+14],15,-1416354905),r=p(r,o,i,n,e[u+5],21,-57434055),n=p(n,r,o,i,e[u+12],6,1700485571),i=p(i,n,r,o,e[u+3],10,-1894986606),o=p(o,i,n,r,e[u+10],15,-1051523),r=p(r,o,i,n,e[u+1],21,-2054922799),n=p(n,r,o,i,e[u+8],6,1873313359),i=p(i,n,r,o,e[u+15],10,-30611744),o=p(o,i,n,r,e[u+6],15,-1560198380),r=p(r,o,i,n,e[u+13],21,1309151649),n=p(n,r,o,i,e[u+4],6,-145523070),i=p(i,n,r,o,e[u+11],10,-1120210379),o=p(o,i,n,r,e[u+2],15,718787259),r=p(r,o,i,n,e[u+9],21,-343485551),n=g(n,s),r=g(r,a),o=g(o,f),i=g(i,l)}return Array(n,r,o,i)}function s(e,t,n,r,o,i){return g((t=g(g(t,e),g(r,i)))<<o|t>>>32-o,n)}function c(e,t,n,r,o,i,u){return s(t&n|~t&r,e,t,o,i,u)}function d(e,t,n,r,o,i,u){return s(t&r|n&~r,e,t,o,i,u)}function h(e,t,n,r,o,i,u){return s(t^n^r,e,t,o,i,u)}function p(e,t,n,r,o,i,u){return s(n^(t|~r),e,t,o,i,u)}function g(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}b.exports=function(e){return t.hash(e,n,16)}}.call(this,w("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},w("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(e,l,t){!function(e,t,n,r,o,i,u,s,f){var a;l.exports=a||function(e){for(var t,n=new Array(e),r=0;r<e;r++)0==(3&r)&&(t=4294967296*Math.random()),n[r]=t>>>((3&r)<<3)&255;return n}}.call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(c,d,e){!function(e,t,n,r,o,s,a,f,l){var i=c("./helpers");function u(l,c){l[c>>5]|=128<<24-c%32,l[15+(c+64>>9<<4)]=c;for(var e,t,n,r=Array(80),o=1732584193,i=-271733879,u=-1732584194,s=271733878,d=-1009589776,h=0;h<l.length;h+=16){for(var p=o,g=i,y=u,w=s,b=d,a=0;a<80;a++){r[a]=a<16?l[h+a]:v(r[a-3]^r[a-8]^r[a-14]^r[a-16],1);var f=m(m(v(o,5),(f=i,t=u,n=s,(e=a)<20?f&t|~f&n:!(e<40)&&e<60?f&t|f&n|t&n:f^t^n)),m(m(d,r[a]),(e=a)<20?1518500249:e<40?1859775393:e<60?-1894007588:-899497514)),d=s,s=u,u=v(i,30),i=o,o=f}o=m(o,p),i=m(i,g),u=m(u,y),s=m(s,w),d=m(d,b)}return Array(o,i,u,s,d)}function m(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function v(e,t){return e<<t|e>>>32-t}d.exports=function(e){return i.hash(e,u,20,!0)}}.call(this,c("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},c("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(c,d,e){!function(e,t,n,r,u,s,a,f,l){function b(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function o(e,l){var c,d=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),t=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),n=new Array(64);e[l>>5]|=128<<24-l%32,e[15+(l+64>>9<<4)]=l;for(var r,o,h=0;h<e.length;h+=16){for(var i=t[0],u=t[1],s=t[2],p=t[3],a=t[4],g=t[5],y=t[6],w=t[7],f=0;f<64;f++)n[f]=f<16?e[f+h]:b(b(b((o=n[f-2],m(o,17)^m(o,19)^v(o,10)),n[f-7]),(o=n[f-15],m(o,7)^m(o,18)^v(o,3))),n[f-16]),c=b(b(b(b(w,m(o=a,6)^m(o,11)^m(o,25)),a&g^~a&y),d[f]),n[f]),r=b(m(r=i,2)^m(r,13)^m(r,22),i&u^i&s^u&s),w=y,y=g,g=a,a=b(p,c),p=s,s=u,u=i,i=b(c,r);t[0]=b(i,t[0]),t[1]=b(u,t[1]),t[2]=b(s,t[2]),t[3]=b(p,t[3]),t[4]=b(a,t[4]),t[5]=b(g,t[5]),t[6]=b(y,t[6]),t[7]=b(w,t[7])}return t}var i=c("./helpers"),m=function(e,t){return e>>>t|e<<32-t},v=function(e,t){return e>>>t};d.exports=function(e){return i.hash(e,o,32,!0)}}.call(this,c("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},c("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(e,t,f){!function(e,t,n,r,o,i,u,s,a){f.read=function(e,t,n,r,o){var i,u,l=8*o-r-1,c=(1<<l)-1,d=c>>1,s=-7,a=n?o-1:0,f=n?-1:1,o=e[t+a];for(a+=f,i=o&(1<<-s)-1,o>>=-s,s+=l;0<s;i=256*i+e[t+a],a+=f,s-=8);for(u=i&(1<<-s)-1,i>>=-s,s+=r;0<s;u=256*u+e[t+a],a+=f,s-=8);if(0===i)i=1-d;else{if(i===c)return u?NaN:1/0*(o?-1:1);u+=Math.pow(2,r),i-=d}return(o?-1:1)*u*Math.pow(2,i-r)},f.write=function(e,t,l,n,r,c){var o,i,u=8*c-r-1,s=(1<<u)-1,a=s>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:c-1,h=n?1:-1,c=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(i=isNaN(t)?1:0,o=s):(o=Math.floor(Math.log(t)/Math.LN2),t*(n=Math.pow(2,-o))<1&&(o--,n*=2),2<=(t+=1<=o+a?d/n:d*Math.pow(2,1-a))*n&&(o++,n/=2),s<=o+a?(i=0,o=s):1<=o+a?(i=(t*n-1)*Math.pow(2,r),o+=a):(i=t*Math.pow(2,a-1)*Math.pow(2,r),o=0));8<=r;e[l+f]=255&i,f+=h,i/=256,r-=8);for(o=o<<r|i,u+=r;0<u;e[l+f]=255&o,f+=h,o/=256,u-=8);e[l+f-h]|=128*c}}.call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754")},{buffer:3,lYpoI2:11}],11:[function(e,h,t){!function(e,t,n,r,o,f,l,c,d){var i,u,s;function a(){}(e=h.exports={}).nextTick=(u="undefined"!=typeof window&&window.setImmediate,s="undefined"!=typeof window&&window.postMessage&&window.addEventListener,u?function(e){return window.setImmediate(e)}:s?(i=[],window.addEventListener("message",function(e){var t=e.source;t!==window&&null!==t||"process-tick"!==e.data||(e.stopPropagation(),0<i.length&&i.shift()())},!0),function(e){i.push(e),window.postMessage("process-tick","*")}):function(e){setTimeout(e,0)}),e.title="browser",e.browser=!0,e.env={},e.argv=[],e.on=a,e.addListener=a,e.once=a,e.off=a,e.removeListener=a,e.removeAllListeners=a,e.emit=a,e.binding=function(e){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw new Error("process.chdir is not supported")}}.call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)});
|
|
366982
368332
|
|
|
366983
368333
|
/***/ }),
|
|
366984
368334
|
|
|
@@ -380130,7 +381480,7 @@ exports["default"] = void 0;
|
|
|
380130
381480
|
var React = _interopRequireWildcard(__webpack_require__(43001));
|
|
380131
381481
|
var _propTypes = _interopRequireDefault(__webpack_require__(3827));
|
|
380132
381482
|
var _reactDom = _interopRequireDefault(__webpack_require__(14347));
|
|
380133
|
-
var _clsx = _interopRequireDefault(__webpack_require__(
|
|
381483
|
+
var _clsx = _interopRequireDefault(__webpack_require__(24198));
|
|
380134
381484
|
var _domFns = __webpack_require__(56144);
|
|
380135
381485
|
var _positionFns = __webpack_require__(91818);
|
|
380136
381486
|
var _shims = __webpack_require__(13579);
|
|
@@ -408460,7 +409810,7 @@ function __disposeResources(env) {
|
|
|
408460
409810
|
/******/ // This function allow to reference async chunks
|
|
408461
409811
|
/******/ __webpack_require__.u = (chunkId) => {
|
|
408462
409812
|
/******/ // return url for filenames based on template
|
|
408463
|
-
/******/ return "" + ({"1985":"polySeg","2158":"histogram-worker","7607":"suv-peak-worker"}[chunkId] || chunkId) + ".bundle." + {"79":"
|
|
409813
|
+
/******/ return "" + ({"1985":"polySeg","2158":"histogram-worker","7607":"suv-peak-worker"}[chunkId] || chunkId) + ".bundle." + {"79":"4f6930aeb7bab27b8b42","153":"3772df1d5fd3d3f06a0a","818":"b6027359846cc90e32ff","962":"b60b094cbfd0486819ce","1169":"4622fde2805592aad5d0","1202":"55f140afb05e1ad5512c","1498":"ff6ba98c695ef559fec2","1540":"2a0208cc8d5cabfc569d","1985":"0a70e65fe89169ec7508","2119":"6aca0cf4fc5db62d77b9","2158":"d97bab3206c49329f64b","2412":"e1abf9a60dcecb7f0c77","2791":"2f25931df62e9ebaafb2","2831":"22245416b8edb6c9dc56","2898":"ef8d98b006bd8386d599","3286":"b9b3a165dc5a8b24b47f","3482":"0b9c4d64f4b14af4ee0a","3497":"512610422a2862584c55","3658":"e44755981b64e69a8d7e","3962":"9a1d66291b3070873892","4210":"ccccde45071c91a381b5","4353":"cf8a64e611cb6330f3e5","4530":"ec12dfd2fbf9083b164e","4757":"ed362a485344485c9f1c","4842":"6188ba4a4aca12aaf7d1","4978":"16df43d1e89383235312","5793":"d1b4e887564bbb98752d","5888":"687c9173dc3dbca67b6c","5898":"be696e0b355efc1c7f05","5931":"f16bcd50591d83af9f7a","6010":"a41bef6e63d1f8f8af7f","6552":"286dda309441db5b56c1","6591":"78485be183f68b456495","6904":"da0d83fcd48a48cfaac1","7246":"b6c6f4324d62ab2960bb","7360":"70420db3a8b2396a74ca","7376":"36672e2cbaafb7fa23b3","7502":"58965e833bce0661b63f","7607":"54d68bc1808ad3d77994","7913":"4f259b2f5f30efeaf121","8315":"5cac046f15998869dc97","8714":"36331faa35db985a786c","8944":"8de6791692d3629c92a5","8993":"23cd5f8560800a97d798","8999":"a8701d5a00ceb84bab64"}[chunkId] + ".js";
|
|
408464
409814
|
/******/ };
|
|
408465
409815
|
/******/ })();
|
|
408466
409816
|
/******/
|