@overmap-ai/core 1.0.53-attachment-creation-flows.0 → 1.0.53-attachment-creation-flows.1
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/overmap-core.js +639 -443
- package/dist/overmap-core.js.map +1 -1
- package/dist/overmap-core.umd.cjs +516 -320
- package/dist/overmap-core.umd.cjs.map +1 -1
- package/dist/sdk/services/IssueService.d.ts +1 -1
- package/package.json +1 -1
package/dist/overmap-core.js
CHANGED
|
@@ -8,7 +8,7 @@ var _a;
|
|
|
8
8
|
import * as React from "react";
|
|
9
9
|
import React__default, { useState, useEffect, useRef, memo, useMemo, useCallback, createContext, createElement, useContext, forwardRef, Children, isValidElement, cloneElement, Fragment as Fragment$1, useLayoutEffect, useReducer, lazy, Suspense } from "react";
|
|
10
10
|
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
11
|
-
import { unsafeShowToast, AlertDialogProvider, ToastProvider, DefaultTheme, Flex as Flex$1, IconButton, RiIcon, Text as Text$1, useSeverityColor,
|
|
11
|
+
import { unsafeShowToast, AlertDialogProvider, ToastProvider, DefaultTheme, Flex as Flex$1, IconButton, RiIcon, Text as Text$1, useSeverityColor, TextArea, Select, useToast, Badge, MultiSelect, Overlay, Button, Spinner, useViewportSize, ButtonGroup, IconColorUtility, Tooltip, Popover, useSize, ToggleButton, Separator, OvermapItem, ButtonList, divButtonProps, OvermapDropdownMenu, Checkbox as Checkbox$1, Input, useAlertDialog } from "@overmap-ai/blocks";
|
|
12
12
|
import { DepGraph } from "dependency-graph";
|
|
13
13
|
import { offline as offline$1 } from "@redux-offline/redux-offline";
|
|
14
14
|
import offlineConfig from "@redux-offline/redux-offline/lib/defaults";
|
|
@@ -24,6 +24,7 @@ import jwtDecode from "jwt-decode";
|
|
|
24
24
|
import { RESET_STATE } from "@redux-offline/redux-offline/lib/constants";
|
|
25
25
|
import { openDB } from "idb";
|
|
26
26
|
import { useField, useFormikContext, useFormik, FormikProvider } from "formik";
|
|
27
|
+
import { flushSync } from "react-dom";
|
|
27
28
|
import get from "lodash.get";
|
|
28
29
|
import Linkify from "linkify-react";
|
|
29
30
|
import { DragDropContext, Droppable, Draggable } from "@hello-pangea/dnd";
|
|
@@ -32,7 +33,6 @@ import { read, utils } from "xlsx";
|
|
|
32
33
|
import { pdfjs, Document, Page } from "react-pdf";
|
|
33
34
|
import "react-pdf/dist/Page/AnnotationLayer.css";
|
|
34
35
|
import "react-pdf/dist/Page/TextLayer.css";
|
|
35
|
-
import { flushSync } from "react-dom";
|
|
36
36
|
import { ReactSketchCanvas } from "react-sketch-canvas";
|
|
37
37
|
import set from "lodash.set";
|
|
38
38
|
import cloneDeep from "lodash.clonedeep";
|
|
@@ -6239,7 +6239,7 @@ class IssueService extends BaseApiService {
|
|
|
6239
6239
|
// Basic CRUD functions
|
|
6240
6240
|
// TODO: Once all models are represented in `Created<TModel>`, use `Created` in `OptimisticModelResult`, so we don't
|
|
6241
6241
|
// have to repeat it for all optimistic model results (all optimistic results are created).
|
|
6242
|
-
add(issue,
|
|
6242
|
+
add(issue, issueType = null) {
|
|
6243
6243
|
const { store } = this.client;
|
|
6244
6244
|
const dateWithoutMilliseconds = /* @__PURE__ */ new Date();
|
|
6245
6245
|
const state = store.getState();
|
|
@@ -6266,7 +6266,7 @@ class IssueService extends BaseApiService {
|
|
|
6266
6266
|
url: "/issues/",
|
|
6267
6267
|
queryParams: {
|
|
6268
6268
|
workspace_id: workspaceId,
|
|
6269
|
-
...
|
|
6269
|
+
...issueType ? { issue_type: issueType } : {}
|
|
6270
6270
|
},
|
|
6271
6271
|
payload: issuePayload,
|
|
6272
6272
|
blockers: [
|
|
@@ -6403,7 +6403,7 @@ class IssueService extends BaseApiService {
|
|
|
6403
6403
|
this.client.store.dispatch(updateIssue(issueToBeUpdated));
|
|
6404
6404
|
this.client.store.dispatch(removeIssueUpdate(offlineIssueUpdate.offline_id));
|
|
6405
6405
|
});
|
|
6406
|
-
const fullIssue =
|
|
6406
|
+
const fullIssue = state.issueReducer.issues[issue.offline_id];
|
|
6407
6407
|
return [fullIssue, promise];
|
|
6408
6408
|
}
|
|
6409
6409
|
async remove(id) {
|
|
@@ -6454,14 +6454,15 @@ class IssueService extends BaseApiService {
|
|
|
6454
6454
|
class IssueTypeService extends BaseApiService {
|
|
6455
6455
|
add(payload) {
|
|
6456
6456
|
const { store } = this.client;
|
|
6457
|
-
const
|
|
6457
|
+
const state = store.getState();
|
|
6458
|
+
const activeOrganizationId = state.organizationReducer.activeOrganizationId;
|
|
6458
6459
|
if (!activeOrganizationId) {
|
|
6459
6460
|
throw new Error(`No active organization, got ${activeOrganizationId} for activeOrganizationId.`);
|
|
6460
6461
|
}
|
|
6461
6462
|
const offlineIssueType = offline({
|
|
6462
6463
|
...payload,
|
|
6463
6464
|
submitted_at: (/* @__PURE__ */ new Date()).toISOString(),
|
|
6464
|
-
created_by:
|
|
6465
|
+
created_by: state.userReducer.currentUser.id,
|
|
6465
6466
|
organization: activeOrganizationId
|
|
6466
6467
|
});
|
|
6467
6468
|
store.dispatch(addIssueType(offlineIssueType));
|
|
@@ -6514,11 +6515,12 @@ class IssueTypeService extends BaseApiService {
|
|
|
6514
6515
|
}
|
|
6515
6516
|
delete(issueTypeId) {
|
|
6516
6517
|
const { store } = this.client;
|
|
6517
|
-
const
|
|
6518
|
+
const state = store.getState();
|
|
6519
|
+
const issueTypeToDelete = state.issueTypeReducer.issueTypes[issueTypeId];
|
|
6518
6520
|
if (!issueTypeToDelete) {
|
|
6519
6521
|
throw new Error(`IssueType with offline_id ${issueTypeId} does not exist in the store.`);
|
|
6520
6522
|
}
|
|
6521
|
-
const issuesOfIssueType = selectIssuesOfIssueType(issueTypeId)(
|
|
6523
|
+
const issuesOfIssueType = selectIssuesOfIssueType(issueTypeId)(state) ?? [];
|
|
6522
6524
|
store.dispatch(removeIssueType(issueTypeId));
|
|
6523
6525
|
store.dispatch(removeIssues(issuesOfIssueType.map((issue) => issue.offline_id)));
|
|
6524
6526
|
const promise = this.enqueueRequest({
|
|
@@ -8888,82 +8890,58 @@ const useFormikInput = (props) => {
|
|
|
8888
8890
|
{ ...rest, "aria-labelledby": labelId }
|
|
8889
8891
|
];
|
|
8890
8892
|
};
|
|
8891
|
-
|
|
8892
|
-
|
|
8893
|
-
|
|
8894
|
-
|
|
8895
|
-
|
|
8896
|
-
|
|
8897
|
-
|
|
8898
|
-
|
|
8899
|
-
|
|
8900
|
-
|
|
8901
|
-
|
|
8902
|
-
|
|
8903
|
-
|
|
8904
|
-
|
|
8905
|
-
|
|
8906
|
-
|
|
8907
|
-
|
|
8908
|
-
|
|
8909
|
-
|
|
8910
|
-
|
|
8911
|
-
|
|
8912
|
-
|
|
8913
|
-
|
|
8914
|
-
|
|
8915
|
-
|
|
8916
|
-
|
|
8917
|
-
|
|
8918
|
-
|
|
8919
|
-
|
|
8920
|
-
|
|
8893
|
+
function getDefaultExportFromCjs(x) {
|
|
8894
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
8895
|
+
}
|
|
8896
|
+
var classnames = { exports: {} };
|
|
8897
|
+
/*!
|
|
8898
|
+
Copyright (c) 2018 Jed Watson.
|
|
8899
|
+
Licensed under the MIT License (MIT), see
|
|
8900
|
+
http://jedwatson.github.io/classnames
|
|
8901
|
+
*/
|
|
8902
|
+
(function(module) {
|
|
8903
|
+
(function() {
|
|
8904
|
+
var hasOwn = {}.hasOwnProperty;
|
|
8905
|
+
function classNames2() {
|
|
8906
|
+
var classes = [];
|
|
8907
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
8908
|
+
var arg = arguments[i];
|
|
8909
|
+
if (!arg)
|
|
8910
|
+
continue;
|
|
8911
|
+
var argType = typeof arg;
|
|
8912
|
+
if (argType === "string" || argType === "number") {
|
|
8913
|
+
classes.push(arg);
|
|
8914
|
+
} else if (Array.isArray(arg)) {
|
|
8915
|
+
if (arg.length) {
|
|
8916
|
+
var inner = classNames2.apply(null, arg);
|
|
8917
|
+
if (inner) {
|
|
8918
|
+
classes.push(inner);
|
|
8919
|
+
}
|
|
8920
|
+
}
|
|
8921
|
+
} else if (argType === "object") {
|
|
8922
|
+
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
|
8923
|
+
classes.push(arg.toString());
|
|
8924
|
+
continue;
|
|
8925
|
+
}
|
|
8926
|
+
for (var key in arg) {
|
|
8927
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
8928
|
+
classes.push(key);
|
|
8929
|
+
}
|
|
8930
|
+
}
|
|
8921
8931
|
}
|
|
8922
|
-
|
|
8923
|
-
|
|
8924
|
-
) });
|
|
8925
|
-
});
|
|
8926
|
-
BooleanInput.displayName = "BooleanInput";
|
|
8927
|
-
var DefaultContext = {
|
|
8928
|
-
color: void 0,
|
|
8929
|
-
size: void 0,
|
|
8930
|
-
className: void 0,
|
|
8931
|
-
style: void 0,
|
|
8932
|
-
attr: void 0
|
|
8933
|
-
};
|
|
8934
|
-
var IconContext = React__default.createContext && /* @__PURE__ */ React__default.createContext(DefaultContext);
|
|
8935
|
-
var _excluded = ["attr", "size", "title"];
|
|
8936
|
-
function _objectWithoutProperties(source, excluded) {
|
|
8937
|
-
if (source == null)
|
|
8938
|
-
return {};
|
|
8939
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
8940
|
-
var key, i;
|
|
8941
|
-
if (Object.getOwnPropertySymbols) {
|
|
8942
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
8943
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
8944
|
-
key = sourceSymbolKeys[i];
|
|
8945
|
-
if (excluded.indexOf(key) >= 0)
|
|
8946
|
-
continue;
|
|
8947
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
8948
|
-
continue;
|
|
8949
|
-
target[key] = source[key];
|
|
8932
|
+
}
|
|
8933
|
+
return classes.join(" ");
|
|
8950
8934
|
}
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
return {};
|
|
8957
|
-
var target = {};
|
|
8958
|
-
for (var key in source) {
|
|
8959
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
8960
|
-
if (excluded.indexOf(key) >= 0)
|
|
8961
|
-
continue;
|
|
8962
|
-
target[key] = source[key];
|
|
8935
|
+
if (module.exports) {
|
|
8936
|
+
classNames2.default = classNames2;
|
|
8937
|
+
module.exports = classNames2;
|
|
8938
|
+
} else {
|
|
8939
|
+
window.classNames = classNames2;
|
|
8963
8940
|
}
|
|
8964
|
-
}
|
|
8965
|
-
|
|
8966
|
-
|
|
8941
|
+
})();
|
|
8942
|
+
})(classnames);
|
|
8943
|
+
var classnamesExports = classnames.exports;
|
|
8944
|
+
const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
|
|
8967
8945
|
function _extends$1() {
|
|
8968
8946
|
_extends$1 = Object.assign ? Object.assign.bind() : function(target) {
|
|
8969
8947
|
for (var i = 1; i < arguments.length; i++) {
|
|
@@ -8978,317 +8956,87 @@ function _extends$1() {
|
|
|
8978
8956
|
};
|
|
8979
8957
|
return _extends$1.apply(this, arguments);
|
|
8980
8958
|
}
|
|
8981
|
-
function
|
|
8982
|
-
|
|
8983
|
-
|
|
8984
|
-
|
|
8985
|
-
|
|
8986
|
-
|
|
8987
|
-
})), t.push.apply(t, o);
|
|
8988
|
-
}
|
|
8989
|
-
return t;
|
|
8959
|
+
function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
|
|
8960
|
+
return function handleEvent(event) {
|
|
8961
|
+
originalEventHandler === null || originalEventHandler === void 0 || originalEventHandler(event);
|
|
8962
|
+
if (checkForDefaultPrevented === false || !event.defaultPrevented)
|
|
8963
|
+
return ourEventHandler === null || ourEventHandler === void 0 ? void 0 : ourEventHandler(event);
|
|
8964
|
+
};
|
|
8990
8965
|
}
|
|
8991
|
-
function
|
|
8992
|
-
|
|
8993
|
-
|
|
8994
|
-
|
|
8995
|
-
|
|
8996
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
|
|
8997
|
-
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
8998
|
-
});
|
|
8999
|
-
}
|
|
9000
|
-
return e;
|
|
8966
|
+
function $6ed0406888f73fc4$var$setRef(ref, value) {
|
|
8967
|
+
if (typeof ref === "function")
|
|
8968
|
+
ref(value);
|
|
8969
|
+
else if (ref !== null && ref !== void 0)
|
|
8970
|
+
ref.current = value;
|
|
9001
8971
|
}
|
|
9002
|
-
function
|
|
9003
|
-
|
|
9004
|
-
|
|
9005
|
-
|
|
9006
|
-
} else {
|
|
9007
|
-
obj[key] = value;
|
|
9008
|
-
}
|
|
9009
|
-
return obj;
|
|
8972
|
+
function $6ed0406888f73fc4$export$43e446d32b3d21af(...refs) {
|
|
8973
|
+
return (node) => refs.forEach(
|
|
8974
|
+
(ref) => $6ed0406888f73fc4$var$setRef(ref, node)
|
|
8975
|
+
);
|
|
9010
8976
|
}
|
|
9011
|
-
function
|
|
9012
|
-
|
|
9013
|
-
return "symbol" == typeof i ? i : i + "";
|
|
8977
|
+
function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...refs) {
|
|
8978
|
+
return useCallback($6ed0406888f73fc4$export$43e446d32b3d21af(...refs), refs);
|
|
9014
8979
|
}
|
|
9015
|
-
function
|
|
9016
|
-
|
|
9017
|
-
|
|
9018
|
-
|
|
9019
|
-
|
|
9020
|
-
|
|
9021
|
-
|
|
9022
|
-
|
|
9023
|
-
|
|
8980
|
+
function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName, createContextScopeDeps = []) {
|
|
8981
|
+
let defaultContexts = [];
|
|
8982
|
+
function $c512c27ab02ef895$export$fd42f52fd3ae1109(rootComponentName, defaultContext) {
|
|
8983
|
+
const BaseContext = /* @__PURE__ */ createContext(defaultContext);
|
|
8984
|
+
const index2 = defaultContexts.length;
|
|
8985
|
+
defaultContexts = [
|
|
8986
|
+
...defaultContexts,
|
|
8987
|
+
defaultContext
|
|
8988
|
+
];
|
|
8989
|
+
function Provider(props) {
|
|
8990
|
+
const { scope, children, ...context } = props;
|
|
8991
|
+
const Context = (scope === null || scope === void 0 ? void 0 : scope[scopeName][index2]) || BaseContext;
|
|
8992
|
+
const value = useMemo(
|
|
8993
|
+
() => context,
|
|
8994
|
+
Object.values(context)
|
|
8995
|
+
);
|
|
8996
|
+
return /* @__PURE__ */ createElement(Context.Provider, {
|
|
8997
|
+
value
|
|
8998
|
+
}, children);
|
|
8999
|
+
}
|
|
9000
|
+
function useContext$1(consumerName, scope) {
|
|
9001
|
+
const Context = (scope === null || scope === void 0 ? void 0 : scope[scopeName][index2]) || BaseContext;
|
|
9002
|
+
const context = useContext(Context);
|
|
9003
|
+
if (context)
|
|
9004
|
+
return context;
|
|
9005
|
+
if (defaultContext !== void 0)
|
|
9006
|
+
return defaultContext;
|
|
9007
|
+
throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
|
|
9008
|
+
}
|
|
9009
|
+
Provider.displayName = rootComponentName + "Provider";
|
|
9010
|
+
return [
|
|
9011
|
+
Provider,
|
|
9012
|
+
useContext$1
|
|
9013
|
+
];
|
|
9024
9014
|
}
|
|
9025
|
-
|
|
9026
|
-
|
|
9027
|
-
|
|
9028
|
-
|
|
9029
|
-
|
|
9030
|
-
|
|
9031
|
-
|
|
9032
|
-
|
|
9033
|
-
|
|
9034
|
-
|
|
9035
|
-
|
|
9036
|
-
}
|
|
9037
|
-
|
|
9038
|
-
|
|
9039
|
-
|
|
9040
|
-
|
|
9041
|
-
|
|
9042
|
-
|
|
9043
|
-
}
|
|
9044
|
-
|
|
9045
|
-
|
|
9046
|
-
|
|
9047
|
-
|
|
9048
|
-
|
|
9049
|
-
|
|
9050
|
-
return /* @__PURE__ */ React__default.createElement("svg", _extends$1({
|
|
9051
|
-
stroke: "currentColor",
|
|
9052
|
-
fill: "currentColor",
|
|
9053
|
-
strokeWidth: "0"
|
|
9054
|
-
}, conf.attr, attr, svgProps, {
|
|
9055
|
-
className,
|
|
9056
|
-
style: _objectSpread(_objectSpread({
|
|
9057
|
-
color: props.color || conf.color
|
|
9058
|
-
}, conf.style), props.style),
|
|
9059
|
-
height: computedSize,
|
|
9060
|
-
width: computedSize,
|
|
9061
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
9062
|
-
}), title2 && /* @__PURE__ */ React__default.createElement("title", null, title2), props.children);
|
|
9063
|
-
};
|
|
9064
|
-
return IconContext !== void 0 ? /* @__PURE__ */ React__default.createElement(IconContext.Consumer, null, (conf) => elem(conf)) : elem(DefaultContext);
|
|
9065
|
-
}
|
|
9066
|
-
function RiArrowDownLine(props) {
|
|
9067
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" }, "child": [] }] })(props);
|
|
9068
|
-
}
|
|
9069
|
-
function RiArrowUpLine(props) {
|
|
9070
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" }, "child": [] }] })(props);
|
|
9071
|
-
}
|
|
9072
|
-
function RiCalendarLine(props) {
|
|
9073
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" }, "child": [] }] })(props);
|
|
9074
|
-
}
|
|
9075
|
-
function RiQrCodeLine(props) {
|
|
9076
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M16 17V16H13V13H16V15H18V17H17V19H15V21H13V18H15V17H16ZM21 21H17V19H19V17H21V21ZM3 3H11V11H3V3ZM5 5V9H9V5H5ZM13 3H21V11H13V3ZM15 5V9H19V5H15ZM3 13H11V21H3V13ZM5 15V19H9V15H5ZM18 13H21V15H18V13ZM6 6H8V8H6V6ZM6 16H8V18H6V16ZM16 6H18V8H16V6Z" }, "child": [] }] })(props);
|
|
9077
|
-
}
|
|
9078
|
-
function RiFileCopyLine(props) {
|
|
9079
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" }, "child": [] }] })(props);
|
|
9080
|
-
}
|
|
9081
|
-
function RiAlignJustify(props) {
|
|
9082
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M3 4H21V6H3V4ZM3 19H21V21H3V19ZM3 14H21V16H3V14ZM3 9H21V11H3V9Z" }, "child": [] }] })(props);
|
|
9083
|
-
}
|
|
9084
|
-
function RiHashtag(props) {
|
|
9085
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M7.78428 14L8.2047 10H4V8H8.41491L8.94043 3H10.9514L10.4259 8H14.4149L14.9404 3H16.9514L16.4259 8H20V10H16.2157L15.7953 14H20V16H15.5851L15.0596 21H13.0486L13.5741 16H9.58509L9.05957 21H7.04855L7.57407 16H4V14H7.78428ZM9.7953 14H13.7843L14.2047 10H10.2157L9.7953 14Z" }, "child": [] }] })(props);
|
|
9086
|
-
}
|
|
9087
|
-
function RiInputField(props) {
|
|
9088
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M8 5H11V19H8V21H16V19H13V5H16V3H8V5ZM2 7C1.44772 7 1 7.44772 1 8V16C1 16.5523 1.44772 17 2 17H8V15H3V9H8V7H2ZM16 9H21V15H16V17H22C22.5523 17 23 16.5523 23 16V8C23 7.44772 22.5523 7 22 7H16V9Z" }, "child": [] }] })(props);
|
|
9089
|
-
}
|
|
9090
|
-
function RiListCheck(props) {
|
|
9091
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M8 4H21V6H8V4ZM3 3.5H6V6.5H3V3.5ZM3 10.5H6V13.5H3V10.5ZM3 17.5H6V20.5H3V17.5ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z" }, "child": [] }] })(props);
|
|
9092
|
-
}
|
|
9093
|
-
function RiImageLine(props) {
|
|
9094
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" }, "child": [] }] })(props);
|
|
9095
|
-
}
|
|
9096
|
-
function RiCheckboxCircleLine(props) {
|
|
9097
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z" }, "child": [] }] })(props);
|
|
9098
|
-
}
|
|
9099
|
-
function RiCheckboxLine(props) {
|
|
9100
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3ZM5 5V19H19V5H5ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z" }, "child": [] }] })(props);
|
|
9101
|
-
}
|
|
9102
|
-
function RiDeleteBin2Line(props) {
|
|
9103
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM13.4142 13.9997L15.182 15.7675L13.7678 17.1817L12 15.4139L10.2322 17.1817L8.81802 15.7675L10.5858 13.9997L8.81802 12.232L10.2322 10.8178L12 12.5855L13.7678 10.8178L15.182 12.232L13.4142 13.9997ZM9 4V6H15V4H9Z" }, "child": [] }] })(props);
|
|
9104
|
-
}
|
|
9105
|
-
function RiMenuFoldLine(props) {
|
|
9106
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M21 17.9995V19.9995H3V17.9995H21ZM6.59619 3.90332L8.01041 5.31753L4.82843 8.49951L8.01041 11.6815L6.59619 13.0957L2 8.49951L6.59619 3.90332ZM21 10.9995V12.9995H12V10.9995H21ZM21 3.99951V5.99951H12V3.99951H21Z" }, "child": [] }] })(props);
|
|
9107
|
-
}
|
|
9108
|
-
function RiUpload2Line(props) {
|
|
9109
|
-
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M4 19H20V12H22V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V12H4V19ZM13 9V16H11V9H6L12 3L18 9H13Z" }, "child": [] }] })(props);
|
|
9110
|
-
}
|
|
9111
|
-
const emptyBooleanField = {
|
|
9112
|
-
...emptyBaseField,
|
|
9113
|
-
type: "boolean"
|
|
9114
|
-
};
|
|
9115
|
-
const _BooleanField = class _BooleanField extends BaseField {
|
|
9116
|
-
constructor(options) {
|
|
9117
|
-
super({ ...options, type: "boolean" });
|
|
9118
|
-
__publicField(this, "onlyValidateAfterTouched", false);
|
|
9119
|
-
}
|
|
9120
|
-
// if a BooleanField is required, `false` is considered blank
|
|
9121
|
-
isBlank(value) {
|
|
9122
|
-
return this.required && !value;
|
|
9123
|
-
}
|
|
9124
|
-
getValueFromChangeEvent(event) {
|
|
9125
|
-
if (typeof event === "boolean")
|
|
9126
|
-
return event;
|
|
9127
|
-
return event.target.checked;
|
|
9128
|
-
}
|
|
9129
|
-
serialize() {
|
|
9130
|
-
return super._serialize();
|
|
9131
|
-
}
|
|
9132
|
-
static deserialize(data) {
|
|
9133
|
-
if (data.type !== "boolean")
|
|
9134
|
-
throw new Error("Type mismatch.");
|
|
9135
|
-
return new _BooleanField(data);
|
|
9136
|
-
}
|
|
9137
|
-
getInput(props) {
|
|
9138
|
-
return /* @__PURE__ */ jsx(BooleanInput, { ...props, field: this });
|
|
9139
|
-
}
|
|
9140
|
-
};
|
|
9141
|
-
__publicField(_BooleanField, "fieldTypeName", "Checkbox");
|
|
9142
|
-
__publicField(_BooleanField, "fieldTypeDescription", "Perfect for both optional and required yes/no questions.");
|
|
9143
|
-
__publicField(_BooleanField, "Icon", RiCheckboxCircleLine);
|
|
9144
|
-
let BooleanField = _BooleanField;
|
|
9145
|
-
function getDefaultExportFromCjs(x) {
|
|
9146
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
9147
|
-
}
|
|
9148
|
-
var classnames = { exports: {} };
|
|
9149
|
-
/*!
|
|
9150
|
-
Copyright (c) 2018 Jed Watson.
|
|
9151
|
-
Licensed under the MIT License (MIT), see
|
|
9152
|
-
http://jedwatson.github.io/classnames
|
|
9153
|
-
*/
|
|
9154
|
-
(function(module) {
|
|
9155
|
-
(function() {
|
|
9156
|
-
var hasOwn = {}.hasOwnProperty;
|
|
9157
|
-
function classNames2() {
|
|
9158
|
-
var classes = [];
|
|
9159
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
9160
|
-
var arg = arguments[i];
|
|
9161
|
-
if (!arg)
|
|
9162
|
-
continue;
|
|
9163
|
-
var argType = typeof arg;
|
|
9164
|
-
if (argType === "string" || argType === "number") {
|
|
9165
|
-
classes.push(arg);
|
|
9166
|
-
} else if (Array.isArray(arg)) {
|
|
9167
|
-
if (arg.length) {
|
|
9168
|
-
var inner = classNames2.apply(null, arg);
|
|
9169
|
-
if (inner) {
|
|
9170
|
-
classes.push(inner);
|
|
9171
|
-
}
|
|
9172
|
-
}
|
|
9173
|
-
} else if (argType === "object") {
|
|
9174
|
-
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
|
9175
|
-
classes.push(arg.toString());
|
|
9176
|
-
continue;
|
|
9177
|
-
}
|
|
9178
|
-
for (var key in arg) {
|
|
9179
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
9180
|
-
classes.push(key);
|
|
9181
|
-
}
|
|
9182
|
-
}
|
|
9183
|
-
}
|
|
9184
|
-
}
|
|
9185
|
-
return classes.join(" ");
|
|
9186
|
-
}
|
|
9187
|
-
if (module.exports) {
|
|
9188
|
-
classNames2.default = classNames2;
|
|
9189
|
-
module.exports = classNames2;
|
|
9190
|
-
} else {
|
|
9191
|
-
window.classNames = classNames2;
|
|
9192
|
-
}
|
|
9193
|
-
})();
|
|
9194
|
-
})(classnames);
|
|
9195
|
-
var classnamesExports = classnames.exports;
|
|
9196
|
-
const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
|
|
9197
|
-
function _extends() {
|
|
9198
|
-
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
9199
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
9200
|
-
var source = arguments[i];
|
|
9201
|
-
for (var key in source) {
|
|
9202
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
9203
|
-
target[key] = source[key];
|
|
9204
|
-
}
|
|
9205
|
-
}
|
|
9206
|
-
}
|
|
9207
|
-
return target;
|
|
9208
|
-
};
|
|
9209
|
-
return _extends.apply(this, arguments);
|
|
9210
|
-
}
|
|
9211
|
-
function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEventHandler, { checkForDefaultPrevented = true } = {}) {
|
|
9212
|
-
return function handleEvent(event) {
|
|
9213
|
-
originalEventHandler === null || originalEventHandler === void 0 || originalEventHandler(event);
|
|
9214
|
-
if (checkForDefaultPrevented === false || !event.defaultPrevented)
|
|
9215
|
-
return ourEventHandler === null || ourEventHandler === void 0 ? void 0 : ourEventHandler(event);
|
|
9216
|
-
};
|
|
9217
|
-
}
|
|
9218
|
-
function $6ed0406888f73fc4$var$setRef(ref, value) {
|
|
9219
|
-
if (typeof ref === "function")
|
|
9220
|
-
ref(value);
|
|
9221
|
-
else if (ref !== null && ref !== void 0)
|
|
9222
|
-
ref.current = value;
|
|
9223
|
-
}
|
|
9224
|
-
function $6ed0406888f73fc4$export$43e446d32b3d21af(...refs) {
|
|
9225
|
-
return (node) => refs.forEach(
|
|
9226
|
-
(ref) => $6ed0406888f73fc4$var$setRef(ref, node)
|
|
9227
|
-
);
|
|
9228
|
-
}
|
|
9229
|
-
function $6ed0406888f73fc4$export$c7b2cbe3552a0d05(...refs) {
|
|
9230
|
-
return useCallback($6ed0406888f73fc4$export$43e446d32b3d21af(...refs), refs);
|
|
9231
|
-
}
|
|
9232
|
-
function $c512c27ab02ef895$export$50c7b4e9d9f19c1(scopeName, createContextScopeDeps = []) {
|
|
9233
|
-
let defaultContexts = [];
|
|
9234
|
-
function $c512c27ab02ef895$export$fd42f52fd3ae1109(rootComponentName, defaultContext) {
|
|
9235
|
-
const BaseContext = /* @__PURE__ */ createContext(defaultContext);
|
|
9236
|
-
const index2 = defaultContexts.length;
|
|
9237
|
-
defaultContexts = [
|
|
9238
|
-
...defaultContexts,
|
|
9239
|
-
defaultContext
|
|
9240
|
-
];
|
|
9241
|
-
function Provider(props) {
|
|
9242
|
-
const { scope, children, ...context } = props;
|
|
9243
|
-
const Context = (scope === null || scope === void 0 ? void 0 : scope[scopeName][index2]) || BaseContext;
|
|
9244
|
-
const value = useMemo(
|
|
9245
|
-
() => context,
|
|
9246
|
-
Object.values(context)
|
|
9247
|
-
);
|
|
9248
|
-
return /* @__PURE__ */ createElement(Context.Provider, {
|
|
9249
|
-
value
|
|
9250
|
-
}, children);
|
|
9251
|
-
}
|
|
9252
|
-
function useContext$1(consumerName, scope) {
|
|
9253
|
-
const Context = (scope === null || scope === void 0 ? void 0 : scope[scopeName][index2]) || BaseContext;
|
|
9254
|
-
const context = useContext(Context);
|
|
9255
|
-
if (context)
|
|
9256
|
-
return context;
|
|
9257
|
-
if (defaultContext !== void 0)
|
|
9258
|
-
return defaultContext;
|
|
9259
|
-
throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
|
|
9260
|
-
}
|
|
9261
|
-
Provider.displayName = rootComponentName + "Provider";
|
|
9262
|
-
return [
|
|
9263
|
-
Provider,
|
|
9264
|
-
useContext$1
|
|
9265
|
-
];
|
|
9266
|
-
}
|
|
9267
|
-
const createScope = () => {
|
|
9268
|
-
const scopeContexts = defaultContexts.map((defaultContext) => {
|
|
9269
|
-
return /* @__PURE__ */ createContext(defaultContext);
|
|
9270
|
-
});
|
|
9271
|
-
return function useScope(scope) {
|
|
9272
|
-
const contexts = (scope === null || scope === void 0 ? void 0 : scope[scopeName]) || scopeContexts;
|
|
9273
|
-
return useMemo(
|
|
9274
|
-
() => ({
|
|
9275
|
-
[`__scope${scopeName}`]: {
|
|
9276
|
-
...scope,
|
|
9277
|
-
[scopeName]: contexts
|
|
9278
|
-
}
|
|
9279
|
-
}),
|
|
9280
|
-
[
|
|
9281
|
-
scope,
|
|
9282
|
-
contexts
|
|
9283
|
-
]
|
|
9284
|
-
);
|
|
9285
|
-
};
|
|
9286
|
-
};
|
|
9287
|
-
createScope.scopeName = scopeName;
|
|
9288
|
-
return [
|
|
9289
|
-
$c512c27ab02ef895$export$fd42f52fd3ae1109,
|
|
9290
|
-
$c512c27ab02ef895$var$composeContextScopes(createScope, ...createContextScopeDeps)
|
|
9291
|
-
];
|
|
9015
|
+
const createScope = () => {
|
|
9016
|
+
const scopeContexts = defaultContexts.map((defaultContext) => {
|
|
9017
|
+
return /* @__PURE__ */ createContext(defaultContext);
|
|
9018
|
+
});
|
|
9019
|
+
return function useScope(scope) {
|
|
9020
|
+
const contexts = (scope === null || scope === void 0 ? void 0 : scope[scopeName]) || scopeContexts;
|
|
9021
|
+
return useMemo(
|
|
9022
|
+
() => ({
|
|
9023
|
+
[`__scope${scopeName}`]: {
|
|
9024
|
+
...scope,
|
|
9025
|
+
[scopeName]: contexts
|
|
9026
|
+
}
|
|
9027
|
+
}),
|
|
9028
|
+
[
|
|
9029
|
+
scope,
|
|
9030
|
+
contexts
|
|
9031
|
+
]
|
|
9032
|
+
);
|
|
9033
|
+
};
|
|
9034
|
+
};
|
|
9035
|
+
createScope.scopeName = scopeName;
|
|
9036
|
+
return [
|
|
9037
|
+
$c512c27ab02ef895$export$fd42f52fd3ae1109,
|
|
9038
|
+
$c512c27ab02ef895$var$composeContextScopes(createScope, ...createContextScopeDeps)
|
|
9039
|
+
];
|
|
9292
9040
|
}
|
|
9293
9041
|
function $c512c27ab02ef895$var$composeContextScopes(...scopes) {
|
|
9294
9042
|
const baseScope = scopes[0];
|
|
@@ -9337,11 +9085,11 @@ const $5e63c961fc1ce211$export$8c6ed5c666ac1360 = /* @__PURE__ */ forwardRef((pr
|
|
|
9337
9085
|
} else
|
|
9338
9086
|
return child;
|
|
9339
9087
|
});
|
|
9340
|
-
return /* @__PURE__ */ createElement($5e63c961fc1ce211$var$SlotClone, _extends({}, slotProps, {
|
|
9088
|
+
return /* @__PURE__ */ createElement($5e63c961fc1ce211$var$SlotClone, _extends$1({}, slotProps, {
|
|
9341
9089
|
ref: forwardedRef
|
|
9342
9090
|
}), /* @__PURE__ */ isValidElement(newElement) ? /* @__PURE__ */ cloneElement(newElement, void 0, newChildren) : null);
|
|
9343
9091
|
}
|
|
9344
|
-
return /* @__PURE__ */ createElement($5e63c961fc1ce211$var$SlotClone, _extends({}, slotProps, {
|
|
9092
|
+
return /* @__PURE__ */ createElement($5e63c961fc1ce211$var$SlotClone, _extends$1({}, slotProps, {
|
|
9345
9093
|
ref: forwardedRef
|
|
9346
9094
|
}), children);
|
|
9347
9095
|
});
|
|
@@ -9419,7 +9167,7 @@ const $8927f6f2acc4f386$export$250ffa63cdc0d034 = $8927f6f2acc4f386$var$NODES.re
|
|
|
9419
9167
|
useEffect(() => {
|
|
9420
9168
|
window[Symbol.for("radix-ui")] = true;
|
|
9421
9169
|
}, []);
|
|
9422
|
-
return /* @__PURE__ */ createElement(Comp, _extends({}, primitiveProps, {
|
|
9170
|
+
return /* @__PURE__ */ createElement(Comp, _extends$1({}, primitiveProps, {
|
|
9423
9171
|
ref: forwardedRef
|
|
9424
9172
|
}));
|
|
9425
9173
|
});
|
|
@@ -9978,9 +9726,9 @@ const Inset = React.forwardRef((props, forwardedRef) => {
|
|
|
9978
9726
|
return React.createElement("div", { ...insetProps, ref: forwardedRef, className: classNames("rt-Inset", className, withBreakpoints(side, "rt-r-side"), withBreakpoints(clip, "rt-r-clip"), withBreakpoints(p, "rt-r-p"), withBreakpoints(px, "rt-r-px"), withBreakpoints(py, "rt-r-py"), withBreakpoints(pt, "rt-r-pt"), withBreakpoints(pr, "rt-r-pr"), withBreakpoints(pb, "rt-r-pb"), withBreakpoints(pl, "rt-r-pl"), withMarginProps(marginProps)) });
|
|
9979
9727
|
});
|
|
9980
9728
|
Inset.displayName = "Inset";
|
|
9981
|
-
const sizes$
|
|
9729
|
+
const sizes$9 = ["1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
9982
9730
|
const headingPropDefs = {
|
|
9983
|
-
size: { type: "enum", values: sizes$
|
|
9731
|
+
size: { type: "enum", values: sizes$9, default: "6", responsive: true },
|
|
9984
9732
|
weight: { ...weightProp, default: "bold" },
|
|
9985
9733
|
align: alignProp,
|
|
9986
9734
|
trim: trimProp,
|
|
@@ -9993,9 +9741,9 @@ const Heading = React.forwardRef((props, forwardedRef) => {
|
|
|
9993
9741
|
return React.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360, { "data-accent-color": color, ...headingProps, ref: forwardedRef, className: classNames("rt-Heading", className, withBreakpoints(size, "rt-r-size"), withBreakpoints(weight, "rt-r-weight"), withBreakpoints(align, "rt-r-ta"), withBreakpoints(trim, "rt-r-lt"), { "rt-high-contrast": highContrast }, withMarginProps(marginProps)) }, asChild ? children : React.createElement(Tag, null, children));
|
|
9994
9742
|
});
|
|
9995
9743
|
Heading.displayName = "Heading";
|
|
9996
|
-
const sizes$
|
|
9744
|
+
const sizes$8 = ["1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
9997
9745
|
const textPropDefs = {
|
|
9998
|
-
size: { type: "enum", values: sizes$
|
|
9746
|
+
size: { type: "enum", values: sizes$8, default: void 0, responsive: true },
|
|
9999
9747
|
weight: weightProp,
|
|
10000
9748
|
align: alignProp,
|
|
10001
9749
|
trim: trimProp,
|
|
@@ -10008,11 +9756,11 @@ const Text = React.forwardRef((props, forwardedRef) => {
|
|
|
10008
9756
|
return React.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360, { "data-accent-color": color, ...textProps, ref: forwardedRef, className: classNames("rt-Text", className, withBreakpoints(size, "rt-r-size"), withBreakpoints(weight, "rt-r-weight"), withBreakpoints(align, "rt-r-ta"), withBreakpoints(trim, "rt-r-lt"), { "rt-high-contrast": highContrast }, withMarginProps(marginProps)) }, asChild ? children : React.createElement(Tag, null, children));
|
|
10009
9757
|
});
|
|
10010
9758
|
Text.displayName = "Text";
|
|
10011
|
-
const sizes$
|
|
10012
|
-
const variants$
|
|
9759
|
+
const sizes$7 = ["1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
9760
|
+
const variants$5 = ["solid", "soft", "outline", "ghost"];
|
|
10013
9761
|
const codePropDefs = {
|
|
10014
|
-
size: { type: "enum", values: sizes$
|
|
10015
|
-
variant: { type: "enum", values: variants$
|
|
9762
|
+
size: { type: "enum", values: sizes$7, default: void 0, responsive: true },
|
|
9763
|
+
variant: { type: "enum", values: variants$5, default: "soft" },
|
|
10016
9764
|
weight: weightProp,
|
|
10017
9765
|
color: colorProp,
|
|
10018
9766
|
highContrast: highContrastProp
|
|
@@ -10042,6 +9790,202 @@ function $010c2913dbd2fe3d$export$5cae361ad82dce8b(value) {
|
|
|
10042
9790
|
value
|
|
10043
9791
|
]);
|
|
10044
9792
|
}
|
|
9793
|
+
const $e698a72e93240346$var$CHECKBOX_NAME = "Checkbox";
|
|
9794
|
+
const [$e698a72e93240346$var$createCheckboxContext, $e698a72e93240346$export$b566c4ff5488ea01] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($e698a72e93240346$var$CHECKBOX_NAME);
|
|
9795
|
+
const [$e698a72e93240346$var$CheckboxProvider, $e698a72e93240346$var$useCheckboxContext] = $e698a72e93240346$var$createCheckboxContext($e698a72e93240346$var$CHECKBOX_NAME);
|
|
9796
|
+
const $e698a72e93240346$export$48513f6b9f8ce62d = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
9797
|
+
const { __scopeCheckbox, name, checked: checkedProp, defaultChecked, required, disabled, value = "on", onCheckedChange, ...checkboxProps } = props;
|
|
9798
|
+
const [button, setButton] = useState(null);
|
|
9799
|
+
const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05(
|
|
9800
|
+
forwardedRef,
|
|
9801
|
+
(node) => setButton(node)
|
|
9802
|
+
);
|
|
9803
|
+
const hasConsumerStoppedPropagationRef = useRef(false);
|
|
9804
|
+
const isFormControl = button ? Boolean(button.closest("form")) : true;
|
|
9805
|
+
const [checked = false, setChecked] = $71cd76cc60e0454e$export$6f32135080cb4c3({
|
|
9806
|
+
prop: checkedProp,
|
|
9807
|
+
defaultProp: defaultChecked,
|
|
9808
|
+
onChange: onCheckedChange
|
|
9809
|
+
});
|
|
9810
|
+
const initialCheckedStateRef = useRef(checked);
|
|
9811
|
+
useEffect(() => {
|
|
9812
|
+
const form = button === null || button === void 0 ? void 0 : button.form;
|
|
9813
|
+
if (form) {
|
|
9814
|
+
const reset = () => setChecked(initialCheckedStateRef.current);
|
|
9815
|
+
form.addEventListener("reset", reset);
|
|
9816
|
+
return () => form.removeEventListener("reset", reset);
|
|
9817
|
+
}
|
|
9818
|
+
}, [
|
|
9819
|
+
button,
|
|
9820
|
+
setChecked
|
|
9821
|
+
]);
|
|
9822
|
+
return /* @__PURE__ */ createElement($e698a72e93240346$var$CheckboxProvider, {
|
|
9823
|
+
scope: __scopeCheckbox,
|
|
9824
|
+
state: checked,
|
|
9825
|
+
disabled
|
|
9826
|
+
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends$1({
|
|
9827
|
+
type: "button",
|
|
9828
|
+
role: "checkbox",
|
|
9829
|
+
"aria-checked": $e698a72e93240346$var$isIndeterminate(checked) ? "mixed" : checked,
|
|
9830
|
+
"aria-required": required,
|
|
9831
|
+
"data-state": $e698a72e93240346$var$getState(checked),
|
|
9832
|
+
"data-disabled": disabled ? "" : void 0,
|
|
9833
|
+
disabled,
|
|
9834
|
+
value
|
|
9835
|
+
}, checkboxProps, {
|
|
9836
|
+
ref: composedRefs,
|
|
9837
|
+
onKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onKeyDown, (event) => {
|
|
9838
|
+
if (event.key === "Enter")
|
|
9839
|
+
event.preventDefault();
|
|
9840
|
+
}),
|
|
9841
|
+
onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onClick, (event) => {
|
|
9842
|
+
setChecked(
|
|
9843
|
+
(prevChecked) => $e698a72e93240346$var$isIndeterminate(prevChecked) ? true : !prevChecked
|
|
9844
|
+
);
|
|
9845
|
+
if (isFormControl) {
|
|
9846
|
+
hasConsumerStoppedPropagationRef.current = event.isPropagationStopped();
|
|
9847
|
+
if (!hasConsumerStoppedPropagationRef.current)
|
|
9848
|
+
event.stopPropagation();
|
|
9849
|
+
}
|
|
9850
|
+
})
|
|
9851
|
+
})), isFormControl && /* @__PURE__ */ createElement($e698a72e93240346$var$BubbleInput, {
|
|
9852
|
+
control: button,
|
|
9853
|
+
bubbles: !hasConsumerStoppedPropagationRef.current,
|
|
9854
|
+
name,
|
|
9855
|
+
value,
|
|
9856
|
+
checked,
|
|
9857
|
+
required,
|
|
9858
|
+
disabled,
|
|
9859
|
+
style: {
|
|
9860
|
+
transform: "translateX(-100%)"
|
|
9861
|
+
}
|
|
9862
|
+
}));
|
|
9863
|
+
});
|
|
9864
|
+
const $e698a72e93240346$var$INDICATOR_NAME = "CheckboxIndicator";
|
|
9865
|
+
const $e698a72e93240346$export$59aad738f51d1c05 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
9866
|
+
const { __scopeCheckbox, forceMount, ...indicatorProps } = props;
|
|
9867
|
+
const context = $e698a72e93240346$var$useCheckboxContext($e698a72e93240346$var$INDICATOR_NAME, __scopeCheckbox);
|
|
9868
|
+
return /* @__PURE__ */ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
|
|
9869
|
+
present: forceMount || $e698a72e93240346$var$isIndeterminate(context.state) || context.state === true
|
|
9870
|
+
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$1({
|
|
9871
|
+
"data-state": $e698a72e93240346$var$getState(context.state),
|
|
9872
|
+
"data-disabled": context.disabled ? "" : void 0
|
|
9873
|
+
}, indicatorProps, {
|
|
9874
|
+
ref: forwardedRef,
|
|
9875
|
+
style: {
|
|
9876
|
+
pointerEvents: "none",
|
|
9877
|
+
...props.style
|
|
9878
|
+
}
|
|
9879
|
+
})));
|
|
9880
|
+
});
|
|
9881
|
+
const $e698a72e93240346$var$BubbleInput = (props) => {
|
|
9882
|
+
const { control, checked, bubbles = true, ...inputProps } = props;
|
|
9883
|
+
const ref = useRef(null);
|
|
9884
|
+
const prevChecked = $010c2913dbd2fe3d$export$5cae361ad82dce8b(checked);
|
|
9885
|
+
const controlSize = $db6c3485150b8e66$export$1ab7ae714698c4b8(control);
|
|
9886
|
+
useEffect(() => {
|
|
9887
|
+
const input = ref.current;
|
|
9888
|
+
const inputProto = window.HTMLInputElement.prototype;
|
|
9889
|
+
const descriptor = Object.getOwnPropertyDescriptor(inputProto, "checked");
|
|
9890
|
+
const setChecked = descriptor.set;
|
|
9891
|
+
if (prevChecked !== checked && setChecked) {
|
|
9892
|
+
const event = new Event("click", {
|
|
9893
|
+
bubbles
|
|
9894
|
+
});
|
|
9895
|
+
input.indeterminate = $e698a72e93240346$var$isIndeterminate(checked);
|
|
9896
|
+
setChecked.call(input, $e698a72e93240346$var$isIndeterminate(checked) ? false : checked);
|
|
9897
|
+
input.dispatchEvent(event);
|
|
9898
|
+
}
|
|
9899
|
+
}, [
|
|
9900
|
+
prevChecked,
|
|
9901
|
+
checked,
|
|
9902
|
+
bubbles
|
|
9903
|
+
]);
|
|
9904
|
+
return /* @__PURE__ */ createElement("input", _extends$1({
|
|
9905
|
+
type: "checkbox",
|
|
9906
|
+
"aria-hidden": true,
|
|
9907
|
+
defaultChecked: $e698a72e93240346$var$isIndeterminate(checked) ? false : checked
|
|
9908
|
+
}, inputProps, {
|
|
9909
|
+
tabIndex: -1,
|
|
9910
|
+
ref,
|
|
9911
|
+
style: {
|
|
9912
|
+
...props.style,
|
|
9913
|
+
...controlSize,
|
|
9914
|
+
position: "absolute",
|
|
9915
|
+
pointerEvents: "none",
|
|
9916
|
+
opacity: 0,
|
|
9917
|
+
margin: 0
|
|
9918
|
+
}
|
|
9919
|
+
}));
|
|
9920
|
+
};
|
|
9921
|
+
function $e698a72e93240346$var$isIndeterminate(checked) {
|
|
9922
|
+
return checked === "indeterminate";
|
|
9923
|
+
}
|
|
9924
|
+
function $e698a72e93240346$var$getState(checked) {
|
|
9925
|
+
return $e698a72e93240346$var$isIndeterminate(checked) ? "indeterminate" : checked ? "checked" : "unchecked";
|
|
9926
|
+
}
|
|
9927
|
+
const $e698a72e93240346$export$be92b6f5f03c0fe9 = $e698a72e93240346$export$48513f6b9f8ce62d;
|
|
9928
|
+
const $e698a72e93240346$export$adb584737d712b70 = $e698a72e93240346$export$59aad738f51d1c05;
|
|
9929
|
+
const sizes$6 = ["1", "2", "3"];
|
|
9930
|
+
const variants$4 = ["classic", "surface", "soft"];
|
|
9931
|
+
const checkboxPropDefs = {
|
|
9932
|
+
size: { type: "enum", values: sizes$6, default: "2", responsive: true },
|
|
9933
|
+
variant: { type: "enum", values: variants$4, default: "surface" },
|
|
9934
|
+
color: colorProp,
|
|
9935
|
+
highContrast: highContrastProp
|
|
9936
|
+
};
|
|
9937
|
+
const ThickCheckIcon = React.forwardRef(({ color = "currentColor", ...props }, forwardedRef) => {
|
|
9938
|
+
return React.createElement(
|
|
9939
|
+
"svg",
|
|
9940
|
+
{ width: "9", height: "9", viewBox: "0 0 9 9", fill: color, xmlns: "http://www.w3.org/2000/svg", ...props, ref: forwardedRef },
|
|
9941
|
+
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.53547 0.62293C8.88226 0.849446 8.97976 1.3142 8.75325 1.66099L4.5083 8.1599C4.38833 8.34356 4.19397 8.4655 3.9764 8.49358C3.75883 8.52167 3.53987 8.45309 3.3772 8.30591L0.616113 5.80777C0.308959 5.52987 0.285246 5.05559 0.563148 4.74844C0.84105 4.44128 1.31533 4.41757 1.62249 4.69547L3.73256 6.60459L7.49741 0.840706C7.72393 0.493916 8.18868 0.396414 8.53547 0.62293Z" })
|
|
9942
|
+
);
|
|
9943
|
+
});
|
|
9944
|
+
ThickCheckIcon.displayName = "ThickCheckIcon";
|
|
9945
|
+
const ChevronDownIcon = React.forwardRef(({ color = "currentColor", ...props }, forwardedRef) => {
|
|
9946
|
+
return React.createElement(
|
|
9947
|
+
"svg",
|
|
9948
|
+
{ width: "9", height: "9", viewBox: "0 0 9 9", fill: color, xmlns: "http://www.w3.org/2000/svg", ...props, ref: forwardedRef },
|
|
9949
|
+
React.createElement("path", { d: "M0.135232 3.15803C0.324102 2.95657 0.640521 2.94637 0.841971 3.13523L4.5 6.56464L8.158 3.13523C8.3595 2.94637 8.6759 2.95657 8.8648 3.15803C9.0536 3.35949 9.0434 3.67591 8.842 3.86477L4.84197 7.6148C4.64964 7.7951 4.35036 7.7951 4.15803 7.6148L0.158031 3.86477C-0.0434285 3.67591 -0.0536285 3.35949 0.135232 3.15803Z" })
|
|
9950
|
+
);
|
|
9951
|
+
});
|
|
9952
|
+
ChevronDownIcon.displayName = "ChevronDownIcon";
|
|
9953
|
+
const ThickChevronRightIcon = React.forwardRef(({ color = "currentColor", ...props }, forwardedRef) => {
|
|
9954
|
+
return React.createElement(
|
|
9955
|
+
"svg",
|
|
9956
|
+
{ width: "9", height: "9", viewBox: "0 0 9 9", fill: color, xmlns: "http://www.w3.org/2000/svg", ...props, ref: forwardedRef },
|
|
9957
|
+
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.23826 0.201711C3.54108 -0.0809141 4.01567 -0.0645489 4.29829 0.238264L7.79829 3.98826C8.06724 4.27642 8.06724 4.72359 7.79829 5.01174L4.29829 8.76174C4.01567 9.06455 3.54108 9.08092 3.23826 8.79829C2.93545 8.51567 2.91909 8.04108 3.20171 7.73826L6.22409 4.5L3.20171 1.26174C2.91909 0.958928 2.93545 0.484337 3.23826 0.201711Z" })
|
|
9958
|
+
);
|
|
9959
|
+
});
|
|
9960
|
+
ThickChevronRightIcon.displayName = "ThickChevronRightIcon";
|
|
9961
|
+
const InfoCircledIcon = React.forwardRef(({ color = "currentColor", ...props }, forwardedRef) => {
|
|
9962
|
+
return React.createElement(
|
|
9963
|
+
"svg",
|
|
9964
|
+
{ width: "15", height: "15", viewBox: "0 0 15 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, ref: forwardedRef },
|
|
9965
|
+
React.createElement("path", { d: "M7.49991 0.876892C3.84222 0.876892 0.877075 3.84204 0.877075 7.49972C0.877075 11.1574 3.84222 14.1226 7.49991 14.1226C11.1576 14.1226 14.1227 11.1574 14.1227 7.49972C14.1227 3.84204 11.1576 0.876892 7.49991 0.876892ZM1.82707 7.49972C1.82707 4.36671 4.36689 1.82689 7.49991 1.82689C10.6329 1.82689 13.1727 4.36671 13.1727 7.49972C13.1727 10.6327 10.6329 13.1726 7.49991 13.1726C4.36689 13.1726 1.82707 10.6327 1.82707 7.49972ZM8.24992 4.49999C8.24992 4.9142 7.91413 5.24999 7.49992 5.24999C7.08571 5.24999 6.74992 4.9142 6.74992 4.49999C6.74992 4.08577 7.08571 3.74999 7.49992 3.74999C7.91413 3.74999 8.24992 4.08577 8.24992 4.49999ZM6.00003 5.99999H6.50003H7.50003C7.77618 5.99999 8.00003 6.22384 8.00003 6.49999V9.99999H8.50003H9.00003V11H8.50003H7.50003H6.50003H6.00003V9.99999H6.50003H7.00003V6.99999H6.50003H6.00003V5.99999Z", fill: color, fillRule: "evenodd", clipRule: "evenodd" })
|
|
9966
|
+
);
|
|
9967
|
+
});
|
|
9968
|
+
InfoCircledIcon.displayName = "InfoCircledIcon";
|
|
9969
|
+
const Checkbox = React.forwardRef((props, forwardedRef) => {
|
|
9970
|
+
const { rest: marginRest, ...marginProps } = extractMarginProps(props);
|
|
9971
|
+
const { className, style, size = checkboxPropDefs.size.default, variant = checkboxPropDefs.variant.default, color = checkboxPropDefs.color.default, highContrast = checkboxPropDefs.highContrast.default, ...checkboxProps } = marginRest;
|
|
9972
|
+
return React.createElement(
|
|
9973
|
+
"span",
|
|
9974
|
+
{ className: classNames("rt-CheckboxRoot", className, withBreakpoints(size, "rt-r-size"), withMarginProps(marginProps)), style },
|
|
9975
|
+
React.createElement(
|
|
9976
|
+
$e698a72e93240346$export$be92b6f5f03c0fe9,
|
|
9977
|
+
{ "data-accent-color": color, ...checkboxProps, ref: forwardedRef, className: classNames("rt-reset", "rt-CheckboxButton", `rt-variant-${variant}`, {
|
|
9978
|
+
"rt-high-contrast": highContrast
|
|
9979
|
+
}) },
|
|
9980
|
+
React.createElement(
|
|
9981
|
+
$e698a72e93240346$export$adb584737d712b70,
|
|
9982
|
+
{ className: "rt-CheckboxIndicator" },
|
|
9983
|
+
React.createElement(ThickCheckIcon, { className: "rt-CheckboxIndicatorIcon" })
|
|
9984
|
+
)
|
|
9985
|
+
)
|
|
9986
|
+
);
|
|
9987
|
+
});
|
|
9988
|
+
Checkbox.displayName = "Checkbox";
|
|
10045
9989
|
function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name) {
|
|
10046
9990
|
const PROVIDER_NAME = name + "CollectionProvider";
|
|
10047
9991
|
const [createCollectionContext, createCollectionScope] = $c512c27ab02ef895$export$50c7b4e9d9f19c1(PROVIDER_NAME);
|
|
@@ -10133,7 +10077,7 @@ const $d7bdfb9eb0fdf311$export$8699f7c8af148338 = /* @__PURE__ */ forwardRef((pr
|
|
|
10133
10077
|
scope: props.__scopeRovingFocusGroup
|
|
10134
10078
|
}, /* @__PURE__ */ createElement($d7bdfb9eb0fdf311$var$Collection.Slot, {
|
|
10135
10079
|
scope: props.__scopeRovingFocusGroup
|
|
10136
|
-
}, /* @__PURE__ */ createElement($d7bdfb9eb0fdf311$var$RovingFocusGroupImpl, _extends({}, props, {
|
|
10080
|
+
}, /* @__PURE__ */ createElement($d7bdfb9eb0fdf311$var$RovingFocusGroupImpl, _extends$1({}, props, {
|
|
10137
10081
|
ref: forwardedRef
|
|
10138
10082
|
}))));
|
|
10139
10083
|
});
|
|
@@ -10189,7 +10133,7 @@ const $d7bdfb9eb0fdf311$var$RovingFocusGroupImpl = /* @__PURE__ */ forwardRef((p
|
|
|
10189
10133
|
),
|
|
10190
10134
|
[]
|
|
10191
10135
|
)
|
|
10192
|
-
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
|
|
10136
|
+
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({
|
|
10193
10137
|
tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,
|
|
10194
10138
|
"data-orientation": orientation
|
|
10195
10139
|
}, groupProps, {
|
|
@@ -10259,7 +10203,7 @@ const $d7bdfb9eb0fdf311$export$ab9df7c53fe8454 = /* @__PURE__ */ forwardRef((pro
|
|
|
10259
10203
|
id,
|
|
10260
10204
|
focusable,
|
|
10261
10205
|
active
|
|
10262
|
-
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({
|
|
10206
|
+
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$1({
|
|
10263
10207
|
tabIndex: isCurrentTabStop ? 0 : -1,
|
|
10264
10208
|
"data-orientation": context.orientation
|
|
10265
10209
|
}, itemProps, {
|
|
@@ -10399,7 +10343,7 @@ const $57acba87d6e25586$export$ccf8d8d7bbf3c2cc = /* @__PURE__ */ forwardRef((pr
|
|
|
10399
10343
|
onScrollbarYEnabledChange: setScrollbarYEnabled,
|
|
10400
10344
|
onCornerWidthChange: setCornerWidth,
|
|
10401
10345
|
onCornerHeightChange: setCornerHeight
|
|
10402
|
-
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
|
|
10346
|
+
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({
|
|
10403
10347
|
dir: direction
|
|
10404
10348
|
}, scrollAreaProps, {
|
|
10405
10349
|
ref: composedRefs,
|
|
@@ -10422,7 +10366,7 @@ const $57acba87d6e25586$export$a21cbf9f11fca853 = /* @__PURE__ */ forwardRef((pr
|
|
|
10422
10366
|
dangerouslySetInnerHTML: {
|
|
10423
10367
|
__html: `[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}`
|
|
10424
10368
|
}
|
|
10425
|
-
}), /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
|
|
10369
|
+
}), /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({
|
|
10426
10370
|
"data-radix-scroll-area-viewport": ""
|
|
10427
10371
|
}, viewportProps, {
|
|
10428
10372
|
ref: composedRefs,
|
|
@@ -10466,16 +10410,16 @@ const $57acba87d6e25586$export$2fabd85d0eba3c57 = /* @__PURE__ */ forwardRef((pr
|
|
|
10466
10410
|
onScrollbarXEnabledChange,
|
|
10467
10411
|
onScrollbarYEnabledChange
|
|
10468
10412
|
]);
|
|
10469
|
-
return context.type === "hover" ? /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarHover, _extends({}, scrollbarProps, {
|
|
10413
|
+
return context.type === "hover" ? /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarHover, _extends$1({}, scrollbarProps, {
|
|
10470
10414
|
ref: forwardedRef,
|
|
10471
10415
|
forceMount
|
|
10472
|
-
})) : context.type === "scroll" ? /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarScroll, _extends({}, scrollbarProps, {
|
|
10416
|
+
})) : context.type === "scroll" ? /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarScroll, _extends$1({}, scrollbarProps, {
|
|
10473
10417
|
ref: forwardedRef,
|
|
10474
10418
|
forceMount
|
|
10475
|
-
})) : context.type === "auto" ? /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarAuto, _extends({}, scrollbarProps, {
|
|
10419
|
+
})) : context.type === "auto" ? /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarAuto, _extends$1({}, scrollbarProps, {
|
|
10476
10420
|
ref: forwardedRef,
|
|
10477
10421
|
forceMount
|
|
10478
|
-
})) : context.type === "always" ? /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarVisible, _extends({}, scrollbarProps, {
|
|
10422
|
+
})) : context.type === "always" ? /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarVisible, _extends$1({}, scrollbarProps, {
|
|
10479
10423
|
ref: forwardedRef
|
|
10480
10424
|
})) : null;
|
|
10481
10425
|
});
|
|
@@ -10511,7 +10455,7 @@ const $57acba87d6e25586$var$ScrollAreaScrollbarHover = /* @__PURE__ */ forwardRe
|
|
|
10511
10455
|
]);
|
|
10512
10456
|
return /* @__PURE__ */ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
|
|
10513
10457
|
present: forceMount || visible
|
|
10514
|
-
}, /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarAuto, _extends({
|
|
10458
|
+
}, /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarAuto, _extends$1({
|
|
10515
10459
|
"data-state": visible ? "visible" : "hidden"
|
|
10516
10460
|
}, scrollbarProps, {
|
|
10517
10461
|
ref: forwardedRef
|
|
@@ -10581,7 +10525,7 @@ const $57acba87d6e25586$var$ScrollAreaScrollbarScroll = /* @__PURE__ */ forwardR
|
|
|
10581
10525
|
]);
|
|
10582
10526
|
return /* @__PURE__ */ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
|
|
10583
10527
|
present: forceMount || state !== "hidden"
|
|
10584
|
-
}, /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarVisible, _extends({
|
|
10528
|
+
}, /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarVisible, _extends$1({
|
|
10585
10529
|
"data-state": state === "hidden" ? "hidden" : "visible"
|
|
10586
10530
|
}, scrollbarProps, {
|
|
10587
10531
|
ref: forwardedRef,
|
|
@@ -10611,7 +10555,7 @@ const $57acba87d6e25586$var$ScrollAreaScrollbarAuto = /* @__PURE__ */ forwardRef
|
|
|
10611
10555
|
$57acba87d6e25586$var$useResizeObserver(context.content, handleResize);
|
|
10612
10556
|
return /* @__PURE__ */ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
|
|
10613
10557
|
present: forceMount || visible
|
|
10614
|
-
}, /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarVisible, _extends({
|
|
10558
|
+
}, /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarVisible, _extends$1({
|
|
10615
10559
|
"data-state": visible ? "visible" : "hidden"
|
|
10616
10560
|
}, scrollbarProps, {
|
|
10617
10561
|
ref: forwardedRef
|
|
@@ -10645,7 +10589,7 @@ const $57acba87d6e25586$var$ScrollAreaScrollbarVisible = /* @__PURE__ */ forward
|
|
|
10645
10589
|
return $57acba87d6e25586$var$getScrollPositionFromPointer(pointerPos, pointerOffsetRef.current, sizes2, dir);
|
|
10646
10590
|
}
|
|
10647
10591
|
if (orientation === "horizontal")
|
|
10648
|
-
return /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarX, _extends({}, commonProps, {
|
|
10592
|
+
return /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarX, _extends$1({}, commonProps, {
|
|
10649
10593
|
ref: forwardedRef,
|
|
10650
10594
|
onThumbPositionChange: () => {
|
|
10651
10595
|
if (context.viewport && thumbRef.current) {
|
|
@@ -10664,7 +10608,7 @@ const $57acba87d6e25586$var$ScrollAreaScrollbarVisible = /* @__PURE__ */ forward
|
|
|
10664
10608
|
}
|
|
10665
10609
|
}));
|
|
10666
10610
|
if (orientation === "vertical")
|
|
10667
|
-
return /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarY, _extends({}, commonProps, {
|
|
10611
|
+
return /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarY, _extends$1({}, commonProps, {
|
|
10668
10612
|
ref: forwardedRef,
|
|
10669
10613
|
onThumbPositionChange: () => {
|
|
10670
10614
|
if (context.viewport && thumbRef.current) {
|
|
@@ -10696,7 +10640,7 @@ const $57acba87d6e25586$var$ScrollAreaScrollbarX = /* @__PURE__ */ forwardRef((p
|
|
|
10696
10640
|
}, [
|
|
10697
10641
|
ref
|
|
10698
10642
|
]);
|
|
10699
|
-
return /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarImpl, _extends({
|
|
10643
|
+
return /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarImpl, _extends$1({
|
|
10700
10644
|
"data-orientation": "horizontal"
|
|
10701
10645
|
}, scrollbarProps, {
|
|
10702
10646
|
ref: composeRefs,
|
|
@@ -10744,7 +10688,7 @@ const $57acba87d6e25586$var$ScrollAreaScrollbarY = /* @__PURE__ */ forwardRef((p
|
|
|
10744
10688
|
}, [
|
|
10745
10689
|
ref
|
|
10746
10690
|
]);
|
|
10747
|
-
return /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarImpl, _extends({
|
|
10691
|
+
return /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaScrollbarImpl, _extends$1({
|
|
10748
10692
|
"data-orientation": "vertical"
|
|
10749
10693
|
}, scrollbarProps, {
|
|
10750
10694
|
ref: composeRefs,
|
|
@@ -10840,7 +10784,7 @@ const $57acba87d6e25586$var$ScrollAreaScrollbarImpl = /* @__PURE__ */ forwardRef
|
|
|
10840
10784
|
onThumbPointerUp: $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onThumbPointerUp),
|
|
10841
10785
|
onThumbPositionChange: handleThumbPositionChange,
|
|
10842
10786
|
onThumbPointerDown: $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onThumbPointerDown)
|
|
10843
|
-
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, scrollbarProps, {
|
|
10787
|
+
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({}, scrollbarProps, {
|
|
10844
10788
|
ref: composeRefs,
|
|
10845
10789
|
style: {
|
|
10846
10790
|
position: "absolute",
|
|
@@ -10877,7 +10821,7 @@ const $57acba87d6e25586$export$9fba1154677d7cd2 = /* @__PURE__ */ forwardRef((pr
|
|
|
10877
10821
|
const scrollbarContext = $57acba87d6e25586$var$useScrollbarContext($57acba87d6e25586$var$THUMB_NAME, props.__scopeScrollArea);
|
|
10878
10822
|
return /* @__PURE__ */ createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b, {
|
|
10879
10823
|
present: forceMount || scrollbarContext.hasThumb
|
|
10880
|
-
}, /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaThumbImpl, _extends({
|
|
10824
|
+
}, /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaThumbImpl, _extends$1({
|
|
10881
10825
|
ref: forwardedRef
|
|
10882
10826
|
}, thumbProps)));
|
|
10883
10827
|
});
|
|
@@ -10917,7 +10861,7 @@ const $57acba87d6e25586$var$ScrollAreaThumbImpl = /* @__PURE__ */ forwardRef((pr
|
|
|
10917
10861
|
debounceScrollEnd,
|
|
10918
10862
|
onThumbPositionChange
|
|
10919
10863
|
]);
|
|
10920
|
-
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
|
|
10864
|
+
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({
|
|
10921
10865
|
"data-state": scrollbarContext.hasThumb ? "visible" : "hidden"
|
|
10922
10866
|
}, thumbProps, {
|
|
10923
10867
|
ref: composedRef,
|
|
@@ -10944,7 +10888,7 @@ const $57acba87d6e25586$export$56969d565df7cc4b = /* @__PURE__ */ forwardRef((pr
|
|
|
10944
10888
|
const context = $57acba87d6e25586$var$useScrollAreaContext($57acba87d6e25586$var$CORNER_NAME, props.__scopeScrollArea);
|
|
10945
10889
|
const hasBothScrollbarsVisible = Boolean(context.scrollbarX && context.scrollbarY);
|
|
10946
10890
|
const hasCorner = context.type !== "scroll" && hasBothScrollbarsVisible;
|
|
10947
|
-
return hasCorner ? /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaCornerImpl, _extends({}, props, {
|
|
10891
|
+
return hasCorner ? /* @__PURE__ */ createElement($57acba87d6e25586$var$ScrollAreaCornerImpl, _extends$1({}, props, {
|
|
10948
10892
|
ref: forwardedRef
|
|
10949
10893
|
})) : null;
|
|
10950
10894
|
});
|
|
@@ -10966,7 +10910,7 @@ const $57acba87d6e25586$var$ScrollAreaCornerImpl = /* @__PURE__ */ forwardRef((p
|
|
|
10966
10910
|
context.onCornerWidthChange(width);
|
|
10967
10911
|
setWidth(width);
|
|
10968
10912
|
});
|
|
10969
|
-
return hasSize ? /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({}, cornerProps, {
|
|
10913
|
+
return hasSize ? /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({}, cornerProps, {
|
|
10970
10914
|
ref: forwardedRef,
|
|
10971
10915
|
style: {
|
|
10972
10916
|
width: width1,
|
|
@@ -11227,7 +11171,7 @@ const $faa2e61a3361514f$export$472062a354075cee = /* @__PURE__ */ forwardRef((pr
|
|
|
11227
11171
|
scope: props.__scopeSlider
|
|
11228
11172
|
}, /* @__PURE__ */ createElement($faa2e61a3361514f$var$Collection.Slot, {
|
|
11229
11173
|
scope: props.__scopeSlider
|
|
11230
|
-
}, /* @__PURE__ */ createElement(SliderOrientation, _extends({
|
|
11174
|
+
}, /* @__PURE__ */ createElement(SliderOrientation, _extends$1({
|
|
11231
11175
|
"aria-disabled": disabled,
|
|
11232
11176
|
"data-disabled": disabled ? "" : void 0
|
|
11233
11177
|
}, sliderProps, {
|
|
@@ -11309,7 +11253,7 @@ const $faa2e61a3361514f$var$SliderHorizontal = /* @__PURE__ */ forwardRef((props
|
|
|
11309
11253
|
endEdge: isSlidingFromLeft ? "right" : "left",
|
|
11310
11254
|
direction: isSlidingFromLeft ? 1 : -1,
|
|
11311
11255
|
size: "width"
|
|
11312
|
-
}, /* @__PURE__ */ createElement($faa2e61a3361514f$var$SliderImpl, _extends({
|
|
11256
|
+
}, /* @__PURE__ */ createElement($faa2e61a3361514f$var$SliderImpl, _extends$1({
|
|
11313
11257
|
dir: direction,
|
|
11314
11258
|
"data-orientation": "horizontal"
|
|
11315
11259
|
}, sliderProps, {
|
|
@@ -11369,7 +11313,7 @@ const $faa2e61a3361514f$var$SliderVertical = /* @__PURE__ */ forwardRef((props,
|
|
|
11369
11313
|
endEdge: isSlidingFromBottom ? "top" : "bottom",
|
|
11370
11314
|
size: "height",
|
|
11371
11315
|
direction: isSlidingFromBottom ? 1 : -1
|
|
11372
|
-
}, /* @__PURE__ */ createElement($faa2e61a3361514f$var$SliderImpl, _extends({
|
|
11316
|
+
}, /* @__PURE__ */ createElement($faa2e61a3361514f$var$SliderImpl, _extends$1({
|
|
11373
11317
|
"data-orientation": "vertical"
|
|
11374
11318
|
}, sliderProps, {
|
|
11375
11319
|
ref,
|
|
@@ -11402,7 +11346,7 @@ const $faa2e61a3361514f$var$SliderVertical = /* @__PURE__ */ forwardRef((props,
|
|
|
11402
11346
|
const $faa2e61a3361514f$var$SliderImpl = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
11403
11347
|
const { __scopeSlider, onSlideStart, onSlideMove, onSlideEnd, onHomeKeyDown, onEndKeyDown, onStepKeyDown, ...sliderProps } = props;
|
|
11404
11348
|
const context = $faa2e61a3361514f$var$useSliderContext($faa2e61a3361514f$var$SLIDER_NAME, __scopeSlider);
|
|
11405
|
-
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({}, sliderProps, {
|
|
11349
|
+
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$1({}, sliderProps, {
|
|
11406
11350
|
ref: forwardedRef,
|
|
11407
11351
|
onKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onKeyDown, (event) => {
|
|
11408
11352
|
if (event.key === "Home") {
|
|
@@ -11443,7 +11387,7 @@ const $faa2e61a3361514f$var$TRACK_NAME = "SliderTrack";
|
|
|
11443
11387
|
const $faa2e61a3361514f$export$105594979f116971 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
11444
11388
|
const { __scopeSlider, ...trackProps } = props;
|
|
11445
11389
|
const context = $faa2e61a3361514f$var$useSliderContext($faa2e61a3361514f$var$TRACK_NAME, __scopeSlider);
|
|
11446
|
-
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({
|
|
11390
|
+
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$1({
|
|
11447
11391
|
"data-disabled": context.disabled ? "" : void 0,
|
|
11448
11392
|
"data-orientation": context.orientation
|
|
11449
11393
|
}, trackProps, {
|
|
@@ -11463,7 +11407,7 @@ const $faa2e61a3361514f$export$a5cf38a7a000fe77 = /* @__PURE__ */ forwardRef((pr
|
|
|
11463
11407
|
);
|
|
11464
11408
|
const offsetStart = valuesCount > 1 ? Math.min(...percentages) : 0;
|
|
11465
11409
|
const offsetEnd = 100 - Math.max(...percentages);
|
|
11466
|
-
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({
|
|
11410
|
+
return /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$1({
|
|
11467
11411
|
"data-orientation": context.orientation,
|
|
11468
11412
|
"data-disabled": context.disabled ? "" : void 0
|
|
11469
11413
|
}, rangeProps, {
|
|
@@ -11492,7 +11436,7 @@ const $faa2e61a3361514f$export$2c1b491743890dec = /* @__PURE__ */ forwardRef((pr
|
|
|
11492
11436
|
thumb
|
|
11493
11437
|
]
|
|
11494
11438
|
);
|
|
11495
|
-
return /* @__PURE__ */ createElement($faa2e61a3361514f$var$SliderThumbImpl, _extends({}, props, {
|
|
11439
|
+
return /* @__PURE__ */ createElement($faa2e61a3361514f$var$SliderThumbImpl, _extends$1({}, props, {
|
|
11496
11440
|
ref: composedRefs,
|
|
11497
11441
|
index: index2
|
|
11498
11442
|
}));
|
|
@@ -11531,7 +11475,7 @@ const $faa2e61a3361514f$var$SliderThumbImpl = /* @__PURE__ */ forwardRef((props,
|
|
|
11531
11475
|
}
|
|
11532
11476
|
}, /* @__PURE__ */ createElement($faa2e61a3361514f$var$Collection.ItemSlot, {
|
|
11533
11477
|
scope: props.__scopeSlider
|
|
11534
|
-
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({
|
|
11478
|
+
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$1({
|
|
11535
11479
|
role: "slider",
|
|
11536
11480
|
"aria-label": props["aria-label"] || label,
|
|
11537
11481
|
"aria-valuemin": context.min,
|
|
@@ -11571,7 +11515,7 @@ const $faa2e61a3361514f$var$BubbleInput = (props) => {
|
|
|
11571
11515
|
prevValue,
|
|
11572
11516
|
value
|
|
11573
11517
|
]);
|
|
11574
|
-
return /* @__PURE__ */ createElement("input", _extends({
|
|
11518
|
+
return /* @__PURE__ */ createElement("input", _extends$1({
|
|
11575
11519
|
style: {
|
|
11576
11520
|
display: "none"
|
|
11577
11521
|
}
|
|
@@ -11790,7 +11734,7 @@ const $cddcb0b647441e34$export$e2255cf6045e8d47 = /* @__PURE__ */ forwardRef((pr
|
|
|
11790
11734
|
scope: __scopeAvatar,
|
|
11791
11735
|
imageLoadingStatus,
|
|
11792
11736
|
onImageLoadingStatusChange: setImageLoadingStatus
|
|
11793
|
-
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({}, avatarProps, {
|
|
11737
|
+
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$1({}, avatarProps, {
|
|
11794
11738
|
ref: forwardedRef
|
|
11795
11739
|
})));
|
|
11796
11740
|
});
|
|
@@ -11811,7 +11755,7 @@ const $cddcb0b647441e34$export$2cd8ae1985206fe8 = /* @__PURE__ */ forwardRef((pr
|
|
|
11811
11755
|
imageLoadingStatus,
|
|
11812
11756
|
handleLoadingStatusChange
|
|
11813
11757
|
]);
|
|
11814
|
-
return imageLoadingStatus === "loaded" ? /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.img, _extends({}, imageProps, {
|
|
11758
|
+
return imageLoadingStatus === "loaded" ? /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.img, _extends$1({}, imageProps, {
|
|
11815
11759
|
ref: forwardedRef,
|
|
11816
11760
|
src
|
|
11817
11761
|
})) : null;
|
|
@@ -11832,7 +11776,7 @@ const $cddcb0b647441e34$export$69fffb6a9571fbfe = /* @__PURE__ */ forwardRef((pr
|
|
|
11832
11776
|
}, [
|
|
11833
11777
|
delayMs
|
|
11834
11778
|
]);
|
|
11835
|
-
return canRender && context.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends({}, fallbackProps, {
|
|
11779
|
+
return canRender && context.imageLoadingStatus !== "loaded" ? /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$1({}, fallbackProps, {
|
|
11836
11780
|
ref: forwardedRef
|
|
11837
11781
|
})) : null;
|
|
11838
11782
|
});
|
|
@@ -11936,7 +11880,7 @@ const $69cb30bb0017df05$export$b2539bed5023c21c = /* @__PURE__ */ forwardRef((pr
|
|
|
11936
11880
|
orientation,
|
|
11937
11881
|
dir: direction,
|
|
11938
11882
|
activationMode
|
|
11939
|
-
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
|
|
11883
|
+
}, /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({
|
|
11940
11884
|
dir: direction,
|
|
11941
11885
|
"data-orientation": orientation
|
|
11942
11886
|
}, tabsProps, {
|
|
@@ -11948,13 +11892,13 @@ const $69cb30bb0017df05$export$9712d22edc0d78c1 = /* @__PURE__ */ forwardRef((pr
|
|
|
11948
11892
|
const { __scopeTabs, loop = true, ...listProps } = props;
|
|
11949
11893
|
const context = $69cb30bb0017df05$var$useTabsContext($69cb30bb0017df05$var$TAB_LIST_NAME, __scopeTabs);
|
|
11950
11894
|
const rovingFocusGroupScope = $69cb30bb0017df05$var$useRovingFocusGroupScope(__scopeTabs);
|
|
11951
|
-
return /* @__PURE__ */ createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9, _extends({
|
|
11895
|
+
return /* @__PURE__ */ createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9, _extends$1({
|
|
11952
11896
|
asChild: true
|
|
11953
11897
|
}, rovingFocusGroupScope, {
|
|
11954
11898
|
orientation: context.orientation,
|
|
11955
11899
|
dir: context.dir,
|
|
11956
11900
|
loop
|
|
11957
|
-
}), /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
|
|
11901
|
+
}), /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({
|
|
11958
11902
|
role: "tablist",
|
|
11959
11903
|
"aria-orientation": context.orientation
|
|
11960
11904
|
}, listProps, {
|
|
@@ -11969,12 +11913,12 @@ const $69cb30bb0017df05$export$8114b9fdfdf9f3ba = /* @__PURE__ */ forwardRef((pr
|
|
|
11969
11913
|
const triggerId = $69cb30bb0017df05$var$makeTriggerId(context.baseId, value);
|
|
11970
11914
|
const contentId = $69cb30bb0017df05$var$makeContentId(context.baseId, value);
|
|
11971
11915
|
const isSelected = value === context.value;
|
|
11972
|
-
return /* @__PURE__ */ createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2, _extends({
|
|
11916
|
+
return /* @__PURE__ */ createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2, _extends$1({
|
|
11973
11917
|
asChild: true
|
|
11974
11918
|
}, rovingFocusGroupScope, {
|
|
11975
11919
|
focusable: !disabled,
|
|
11976
11920
|
active: isSelected
|
|
11977
|
-
}), /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends({
|
|
11921
|
+
}), /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.button, _extends$1({
|
|
11978
11922
|
type: "button",
|
|
11979
11923
|
role: "tab",
|
|
11980
11924
|
"aria-selected": isSelected,
|
|
@@ -12024,7 +11968,7 @@ const $69cb30bb0017df05$export$bd905d70e8fd2ebb = /* @__PURE__ */ forwardRef((pr
|
|
|
12024
11968
|
{
|
|
12025
11969
|
present: forceMount || isSelected
|
|
12026
11970
|
},
|
|
12027
|
-
({ present }) => /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends({
|
|
11971
|
+
({ present }) => /* @__PURE__ */ createElement($8927f6f2acc4f386$export$250ffa63cdc0d034.div, _extends$1({
|
|
12028
11972
|
"data-state": isSelected ? "active" : "inactive",
|
|
12029
11973
|
"data-orientation": context.orientation,
|
|
12030
11974
|
role: "tabpanel",
|
|
@@ -12084,6 +12028,260 @@ const Tabs = Object.assign({}, {
|
|
|
12084
12028
|
Trigger: TabsTrigger,
|
|
12085
12029
|
Content: TabsContent
|
|
12086
12030
|
});
|
|
12031
|
+
const truthyValues = [true, "true"];
|
|
12032
|
+
const BooleanInput = memo((props) => {
|
|
12033
|
+
const [{ inputId, labelId, size, severity, showInputOnly, field, fieldProps }, rest] = useFormikInput(props);
|
|
12034
|
+
let [{ helpText, label }] = useFormikInput(props);
|
|
12035
|
+
helpText = showInputOnly ? null : helpText;
|
|
12036
|
+
label = showInputOnly ? "" : label;
|
|
12037
|
+
const color = useSeverityColor(severity);
|
|
12038
|
+
const value = truthyValues.includes(fieldProps.value);
|
|
12039
|
+
return /* @__PURE__ */ jsx(InputWithLabelAndHelpText, { helpText, severity, children: /* @__PURE__ */ jsx(
|
|
12040
|
+
InputWithLabel,
|
|
12041
|
+
{
|
|
12042
|
+
size,
|
|
12043
|
+
severity,
|
|
12044
|
+
inputId,
|
|
12045
|
+
labelId,
|
|
12046
|
+
label,
|
|
12047
|
+
image: showInputOnly ? void 0 : field.image,
|
|
12048
|
+
flexProps: { direction: "row-reverse", justify: "end", align: "center", gap: "2" },
|
|
12049
|
+
children: /* @__PURE__ */ jsx(
|
|
12050
|
+
Checkbox,
|
|
12051
|
+
{
|
|
12052
|
+
...rest,
|
|
12053
|
+
...fieldProps,
|
|
12054
|
+
id: inputId,
|
|
12055
|
+
color,
|
|
12056
|
+
value: value.toString(),
|
|
12057
|
+
checked: value,
|
|
12058
|
+
onCheckedChange: fieldProps.onChange,
|
|
12059
|
+
onChange: void 0,
|
|
12060
|
+
onBlur: void 0
|
|
12061
|
+
}
|
|
12062
|
+
)
|
|
12063
|
+
}
|
|
12064
|
+
) });
|
|
12065
|
+
});
|
|
12066
|
+
BooleanInput.displayName = "BooleanInput";
|
|
12067
|
+
var DefaultContext = {
|
|
12068
|
+
color: void 0,
|
|
12069
|
+
size: void 0,
|
|
12070
|
+
className: void 0,
|
|
12071
|
+
style: void 0,
|
|
12072
|
+
attr: void 0
|
|
12073
|
+
};
|
|
12074
|
+
var IconContext = React__default.createContext && /* @__PURE__ */ React__default.createContext(DefaultContext);
|
|
12075
|
+
var _excluded = ["attr", "size", "title"];
|
|
12076
|
+
function _objectWithoutProperties(source, excluded) {
|
|
12077
|
+
if (source == null)
|
|
12078
|
+
return {};
|
|
12079
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
12080
|
+
var key, i;
|
|
12081
|
+
if (Object.getOwnPropertySymbols) {
|
|
12082
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
12083
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
12084
|
+
key = sourceSymbolKeys[i];
|
|
12085
|
+
if (excluded.indexOf(key) >= 0)
|
|
12086
|
+
continue;
|
|
12087
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
|
12088
|
+
continue;
|
|
12089
|
+
target[key] = source[key];
|
|
12090
|
+
}
|
|
12091
|
+
}
|
|
12092
|
+
return target;
|
|
12093
|
+
}
|
|
12094
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
12095
|
+
if (source == null)
|
|
12096
|
+
return {};
|
|
12097
|
+
var target = {};
|
|
12098
|
+
for (var key in source) {
|
|
12099
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
12100
|
+
if (excluded.indexOf(key) >= 0)
|
|
12101
|
+
continue;
|
|
12102
|
+
target[key] = source[key];
|
|
12103
|
+
}
|
|
12104
|
+
}
|
|
12105
|
+
return target;
|
|
12106
|
+
}
|
|
12107
|
+
function _extends() {
|
|
12108
|
+
_extends = Object.assign ? Object.assign.bind() : function(target) {
|
|
12109
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
12110
|
+
var source = arguments[i];
|
|
12111
|
+
for (var key in source) {
|
|
12112
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
12113
|
+
target[key] = source[key];
|
|
12114
|
+
}
|
|
12115
|
+
}
|
|
12116
|
+
}
|
|
12117
|
+
return target;
|
|
12118
|
+
};
|
|
12119
|
+
return _extends.apply(this, arguments);
|
|
12120
|
+
}
|
|
12121
|
+
function ownKeys(e, r) {
|
|
12122
|
+
var t = Object.keys(e);
|
|
12123
|
+
if (Object.getOwnPropertySymbols) {
|
|
12124
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
12125
|
+
r && (o = o.filter(function(r2) {
|
|
12126
|
+
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
12127
|
+
})), t.push.apply(t, o);
|
|
12128
|
+
}
|
|
12129
|
+
return t;
|
|
12130
|
+
}
|
|
12131
|
+
function _objectSpread(e) {
|
|
12132
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
12133
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
12134
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
|
|
12135
|
+
_defineProperty(e, r2, t[r2]);
|
|
12136
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
|
|
12137
|
+
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
12138
|
+
});
|
|
12139
|
+
}
|
|
12140
|
+
return e;
|
|
12141
|
+
}
|
|
12142
|
+
function _defineProperty(obj, key, value) {
|
|
12143
|
+
key = _toPropertyKey(key);
|
|
12144
|
+
if (key in obj) {
|
|
12145
|
+
Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
|
12146
|
+
} else {
|
|
12147
|
+
obj[key] = value;
|
|
12148
|
+
}
|
|
12149
|
+
return obj;
|
|
12150
|
+
}
|
|
12151
|
+
function _toPropertyKey(t) {
|
|
12152
|
+
var i = _toPrimitive(t, "string");
|
|
12153
|
+
return "symbol" == typeof i ? i : i + "";
|
|
12154
|
+
}
|
|
12155
|
+
function _toPrimitive(t, r) {
|
|
12156
|
+
if ("object" != typeof t || !t)
|
|
12157
|
+
return t;
|
|
12158
|
+
var e = t[Symbol.toPrimitive];
|
|
12159
|
+
if (void 0 !== e) {
|
|
12160
|
+
var i = e.call(t, r || "default");
|
|
12161
|
+
if ("object" != typeof i)
|
|
12162
|
+
return i;
|
|
12163
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
12164
|
+
}
|
|
12165
|
+
return ("string" === r ? String : Number)(t);
|
|
12166
|
+
}
|
|
12167
|
+
function Tree2Element(tree) {
|
|
12168
|
+
return tree && tree.map((node, i) => /* @__PURE__ */ React__default.createElement(node.tag, _objectSpread({
|
|
12169
|
+
key: i
|
|
12170
|
+
}, node.attr), Tree2Element(node.child)));
|
|
12171
|
+
}
|
|
12172
|
+
function GenIcon(data) {
|
|
12173
|
+
return (props) => /* @__PURE__ */ React__default.createElement(IconBase, _extends({
|
|
12174
|
+
attr: _objectSpread({}, data.attr)
|
|
12175
|
+
}, props), Tree2Element(data.child));
|
|
12176
|
+
}
|
|
12177
|
+
function IconBase(props) {
|
|
12178
|
+
var elem = (conf) => {
|
|
12179
|
+
var {
|
|
12180
|
+
attr,
|
|
12181
|
+
size,
|
|
12182
|
+
title: title2
|
|
12183
|
+
} = props, svgProps = _objectWithoutProperties(props, _excluded);
|
|
12184
|
+
var computedSize = size || conf.size || "1em";
|
|
12185
|
+
var className;
|
|
12186
|
+
if (conf.className)
|
|
12187
|
+
className = conf.className;
|
|
12188
|
+
if (props.className)
|
|
12189
|
+
className = (className ? className + " " : "") + props.className;
|
|
12190
|
+
return /* @__PURE__ */ React__default.createElement("svg", _extends({
|
|
12191
|
+
stroke: "currentColor",
|
|
12192
|
+
fill: "currentColor",
|
|
12193
|
+
strokeWidth: "0"
|
|
12194
|
+
}, conf.attr, attr, svgProps, {
|
|
12195
|
+
className,
|
|
12196
|
+
style: _objectSpread(_objectSpread({
|
|
12197
|
+
color: props.color || conf.color
|
|
12198
|
+
}, conf.style), props.style),
|
|
12199
|
+
height: computedSize,
|
|
12200
|
+
width: computedSize,
|
|
12201
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
12202
|
+
}), title2 && /* @__PURE__ */ React__default.createElement("title", null, title2), props.children);
|
|
12203
|
+
};
|
|
12204
|
+
return IconContext !== void 0 ? /* @__PURE__ */ React__default.createElement(IconContext.Consumer, null, (conf) => elem(conf)) : elem(DefaultContext);
|
|
12205
|
+
}
|
|
12206
|
+
function RiArrowDownLine(props) {
|
|
12207
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M13.0001 16.1716L18.3641 10.8076L19.7783 12.2218L12.0001 20L4.22192 12.2218L5.63614 10.8076L11.0001 16.1716V4H13.0001V16.1716Z" }, "child": [] }] })(props);
|
|
12208
|
+
}
|
|
12209
|
+
function RiArrowUpLine(props) {
|
|
12210
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M13.0001 7.82843V20H11.0001V7.82843L5.63614 13.1924L4.22192 11.7782L12.0001 4L19.7783 11.7782L18.3641 13.1924L13.0001 7.82843Z" }, "child": [] }] })(props);
|
|
12211
|
+
}
|
|
12212
|
+
function RiCalendarLine(props) {
|
|
12213
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M9 1V3H15V1H17V3H21C21.5523 3 22 3.44772 22 4V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V4C2 3.44772 2.44772 3 3 3H7V1H9ZM20 11H4V19H20V11ZM7 5H4V9H20V5H17V7H15V5H9V7H7V5Z" }, "child": [] }] })(props);
|
|
12214
|
+
}
|
|
12215
|
+
function RiQrCodeLine(props) {
|
|
12216
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M16 17V16H13V13H16V15H18V17H17V19H15V21H13V18H15V17H16ZM21 21H17V19H19V17H21V21ZM3 3H11V11H3V3ZM5 5V9H9V5H5ZM13 3H21V11H13V3ZM15 5V9H19V5H15ZM3 13H11V21H3V13ZM5 15V19H9V15H5ZM18 13H21V15H18V13ZM6 6H8V8H6V6ZM6 16H8V18H6V16ZM16 6H18V8H16V6Z" }, "child": [] }] })(props);
|
|
12217
|
+
}
|
|
12218
|
+
function RiFileCopyLine(props) {
|
|
12219
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M6.9998 6V3C6.9998 2.44772 7.44752 2 7.9998 2H19.9998C20.5521 2 20.9998 2.44772 20.9998 3V17C20.9998 17.5523 20.5521 18 19.9998 18H16.9998V20.9991C16.9998 21.5519 16.5499 22 15.993 22H4.00666C3.45059 22 3 21.5554 3 20.9991L3.0026 7.00087C3.0027 6.44811 3.45264 6 4.00942 6H6.9998ZM5.00242 8L5.00019 20H14.9998V8H5.00242ZM8.9998 6H16.9998V16H18.9998V4H8.9998V6Z" }, "child": [] }] })(props);
|
|
12220
|
+
}
|
|
12221
|
+
function RiAlignJustify(props) {
|
|
12222
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M3 4H21V6H3V4ZM3 19H21V21H3V19ZM3 14H21V16H3V14ZM3 9H21V11H3V9Z" }, "child": [] }] })(props);
|
|
12223
|
+
}
|
|
12224
|
+
function RiHashtag(props) {
|
|
12225
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M7.78428 14L8.2047 10H4V8H8.41491L8.94043 3H10.9514L10.4259 8H14.4149L14.9404 3H16.9514L16.4259 8H20V10H16.2157L15.7953 14H20V16H15.5851L15.0596 21H13.0486L13.5741 16H9.58509L9.05957 21H7.04855L7.57407 16H4V14H7.78428ZM9.7953 14H13.7843L14.2047 10H10.2157L9.7953 14Z" }, "child": [] }] })(props);
|
|
12226
|
+
}
|
|
12227
|
+
function RiInputField(props) {
|
|
12228
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M8 5H11V19H8V21H16V19H13V5H16V3H8V5ZM2 7C1.44772 7 1 7.44772 1 8V16C1 16.5523 1.44772 17 2 17H8V15H3V9H8V7H2ZM16 9H21V15H16V17H22C22.5523 17 23 16.5523 23 16V8C23 7.44772 22.5523 7 22 7H16V9Z" }, "child": [] }] })(props);
|
|
12229
|
+
}
|
|
12230
|
+
function RiListCheck(props) {
|
|
12231
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M8 4H21V6H8V4ZM3 3.5H6V6.5H3V3.5ZM3 10.5H6V13.5H3V10.5ZM3 17.5H6V20.5H3V17.5ZM8 11H21V13H8V11ZM8 18H21V20H8V18Z" }, "child": [] }] })(props);
|
|
12232
|
+
}
|
|
12233
|
+
function RiImageLine(props) {
|
|
12234
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M2.9918 21C2.44405 21 2 20.5551 2 20.0066V3.9934C2 3.44476 2.45531 3 2.9918 3H21.0082C21.556 3 22 3.44495 22 3.9934V20.0066C22 20.5552 21.5447 21 21.0082 21H2.9918ZM20 15V5H4V19L14 9L20 15ZM20 17.8284L14 11.8284L6.82843 19H20V17.8284ZM8 11C6.89543 11 6 10.1046 6 9C6 7.89543 6.89543 7 8 7C9.10457 7 10 7.89543 10 9C10 10.1046 9.10457 11 8 11Z" }, "child": [] }] })(props);
|
|
12235
|
+
}
|
|
12236
|
+
function RiCheckboxCircleLine(props) {
|
|
12237
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z" }, "child": [] }] })(props);
|
|
12238
|
+
}
|
|
12239
|
+
function RiCheckboxLine(props) {
|
|
12240
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M4 3H20C20.5523 3 21 3.44772 21 4V20C21 20.5523 20.5523 21 20 21H4C3.44772 21 3 20.5523 3 20V4C3 3.44772 3.44772 3 4 3ZM5 5V19H19V5H5ZM11.0026 16L6.75999 11.7574L8.17421 10.3431L11.0026 13.1716L16.6595 7.51472L18.0737 8.92893L11.0026 16Z" }, "child": [] }] })(props);
|
|
12241
|
+
}
|
|
12242
|
+
function RiDeleteBin2Line(props) {
|
|
12243
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M17 6H22V8H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V8H2V6H7V3C7 2.44772 7.44772 2 8 2H16C16.5523 2 17 2.44772 17 3V6ZM18 8H6V20H18V8ZM13.4142 13.9997L15.182 15.7675L13.7678 17.1817L12 15.4139L10.2322 17.1817L8.81802 15.7675L10.5858 13.9997L8.81802 12.232L10.2322 10.8178L12 12.5855L13.7678 10.8178L15.182 12.232L13.4142 13.9997ZM9 4V6H15V4H9Z" }, "child": [] }] })(props);
|
|
12244
|
+
}
|
|
12245
|
+
function RiMenuFoldLine(props) {
|
|
12246
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M21 17.9995V19.9995H3V17.9995H21ZM6.59619 3.90332L8.01041 5.31753L4.82843 8.49951L8.01041 11.6815L6.59619 13.0957L2 8.49951L6.59619 3.90332ZM21 10.9995V12.9995H12V10.9995H21ZM21 3.99951V5.99951H12V3.99951H21Z" }, "child": [] }] })(props);
|
|
12247
|
+
}
|
|
12248
|
+
function RiUpload2Line(props) {
|
|
12249
|
+
return GenIcon({ "tag": "svg", "attr": { "viewBox": "0 0 24 24", "fill": "currentColor" }, "child": [{ "tag": "path", "attr": { "d": "M4 19H20V12H22V20C22 20.5523 21.5523 21 21 21H3C2.44772 21 2 20.5523 2 20V12H4V19ZM13 9V16H11V9H6L12 3L18 9H13Z" }, "child": [] }] })(props);
|
|
12250
|
+
}
|
|
12251
|
+
const emptyBooleanField = {
|
|
12252
|
+
...emptyBaseField,
|
|
12253
|
+
type: "boolean"
|
|
12254
|
+
};
|
|
12255
|
+
const _BooleanField = class _BooleanField extends BaseField {
|
|
12256
|
+
constructor(options) {
|
|
12257
|
+
super({ ...options, type: "boolean" });
|
|
12258
|
+
__publicField(this, "onlyValidateAfterTouched", false);
|
|
12259
|
+
}
|
|
12260
|
+
// if a BooleanField is required, `false` is considered blank
|
|
12261
|
+
isBlank(value) {
|
|
12262
|
+
return this.required && !value;
|
|
12263
|
+
}
|
|
12264
|
+
getValueFromChangeEvent(event) {
|
|
12265
|
+
if (typeof event === "boolean")
|
|
12266
|
+
return event;
|
|
12267
|
+
return event.target.checked;
|
|
12268
|
+
}
|
|
12269
|
+
serialize() {
|
|
12270
|
+
return super._serialize();
|
|
12271
|
+
}
|
|
12272
|
+
static deserialize(data) {
|
|
12273
|
+
if (data.type !== "boolean")
|
|
12274
|
+
throw new Error("Type mismatch.");
|
|
12275
|
+
return new _BooleanField(data);
|
|
12276
|
+
}
|
|
12277
|
+
getInput(props) {
|
|
12278
|
+
return /* @__PURE__ */ jsx(BooleanInput, { ...props, field: this });
|
|
12279
|
+
}
|
|
12280
|
+
};
|
|
12281
|
+
__publicField(_BooleanField, "fieldTypeName", "Checkbox");
|
|
12282
|
+
__publicField(_BooleanField, "fieldTypeDescription", "Perfect for both optional and required yes/no questions.");
|
|
12283
|
+
__publicField(_BooleanField, "Icon", RiCheckboxCircleLine);
|
|
12284
|
+
let BooleanField = _BooleanField;
|
|
12087
12285
|
const NumberInput = memo((props) => {
|
|
12088
12286
|
const [{ inputId, labelId, size, severity, showInputOnly, field, fieldProps }, rest] = useFormikInput(props);
|
|
12089
12287
|
let [{ helpText, label }] = useFormikInput(props);
|
|
@@ -13189,7 +13387,7 @@ const QrInput = memo((props) => {
|
|
|
13189
13387
|
] }),
|
|
13190
13388
|
value && /* @__PURE__ */ jsx(Text, { color: "jade", size: "1", children: /* @__PURE__ */ jsx(RiIcon, { icon: "RiCheckLine", style: { verticalAlign: "bottom" } }) })
|
|
13191
13389
|
] }),
|
|
13192
|
-
value && /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsxs(Flex, { width: "max-content", gap: "2", align: "center", children: [
|
|
13390
|
+
!!value && /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsxs(Flex, { width: "max-content", gap: "2", align: "center", children: [
|
|
13193
13391
|
/* @__PURE__ */ jsx(Code, { color: "gray", highContrast: true, children: value }),
|
|
13194
13392
|
/* @__PURE__ */ jsx(
|
|
13195
13393
|
IconButton,
|
|
@@ -13229,9 +13427,7 @@ const QrScanner = memo((props) => {
|
|
|
13229
13427
|
}
|
|
13230
13428
|
);
|
|
13231
13429
|
setIsScannerLoading(true);
|
|
13232
|
-
qrScanner.start().
|
|
13233
|
-
setIsScannerLoading(false);
|
|
13234
|
-
}).catch(() => {
|
|
13430
|
+
void qrScanner.start().finally(() => {
|
|
13235
13431
|
setIsScannerLoading(false);
|
|
13236
13432
|
});
|
|
13237
13433
|
}, [onQrScan]);
|
|
@@ -15629,7 +15825,7 @@ const FieldBuilder = memo((props) => {
|
|
|
15629
15825
|
{
|
|
15630
15826
|
name: `${parentPath}.${index2}.required`,
|
|
15631
15827
|
render: ({ setValue, value }) => /* @__PURE__ */ jsx(
|
|
15632
|
-
Checkbox,
|
|
15828
|
+
Checkbox$1,
|
|
15633
15829
|
{
|
|
15634
15830
|
checked: value,
|
|
15635
15831
|
onCheckedChange: setValue,
|