@wix/form-public 0.124.0 → 0.126.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +778 -767
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +435 -424
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { initReactI18next } from 'react-i18next';
|
|
2
2
|
import i18next from 'i18next';
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
3
|
+
import * as React45 from 'react';
|
|
4
|
+
import React45__default, { createContext, useMemo, useRef, useCallback, useState, useEffect, Children, isValidElement, cloneElement, useContext, useImperativeHandle, useLayoutEffect } from 'react';
|
|
5
5
|
import camelCase from 'lodash.camelcase';
|
|
6
6
|
import mapKeys from 'lodash.mapkeys';
|
|
7
7
|
import { jsx } from 'react/jsx-runtime';
|
|
@@ -2044,7 +2044,7 @@ var init_wix_rich_content_common = __esm({
|
|
|
2044
2044
|
var RicosViewerContext;
|
|
2045
2045
|
var init_ViewerContext = __esm({
|
|
2046
2046
|
"../../node_modules/@wix/ricos/dist/es/ricos-context/viewer/ViewerContext.js"() {
|
|
2047
|
-
RicosViewerContext =
|
|
2047
|
+
RicosViewerContext = React45__default.createContext(null);
|
|
2048
2048
|
}
|
|
2049
2049
|
});
|
|
2050
2050
|
|
|
@@ -2057,7 +2057,7 @@ var init_viewer = __esm({
|
|
|
2057
2057
|
var AddSmall, AddSmall_default;
|
|
2058
2058
|
var init_AddSmall = __esm({
|
|
2059
2059
|
"../../node_modules/@wix/wix-ui-icons-common/dist/esm/default/general/dist/components/AddSmall.js"() {
|
|
2060
|
-
AddSmall = ({ size, ...props }) => /* @__PURE__ */
|
|
2060
|
+
AddSmall = ({ size, ...props }) => /* @__PURE__ */ React45.createElement("svg", { viewBox: "0 0 18 18", fill: "currentColor", width: size || "18", height: size || "18", ...props }, /* @__PURE__ */ React45.createElement("path", { d: "M10 9 10 5 9 5 9 9 5 9 5 10 9 10 9 14 10 14 10 10 14 10 14 9z" }));
|
|
2061
2061
|
AddSmall.displayName = "AddSmall";
|
|
2062
2062
|
AddSmall_default = AddSmall;
|
|
2063
2063
|
}
|
|
@@ -2065,7 +2065,7 @@ var init_AddSmall = __esm({
|
|
|
2065
2065
|
var DeleteSmall, DeleteSmall_default;
|
|
2066
2066
|
var init_DeleteSmall = __esm({
|
|
2067
2067
|
"../../node_modules/@wix/wix-ui-icons-common/dist/esm/default/general/dist/components/DeleteSmall.js"() {
|
|
2068
|
-
DeleteSmall = ({ size, ...props }) => /* @__PURE__ */
|
|
2068
|
+
DeleteSmall = ({ size, ...props }) => /* @__PURE__ */ React45.createElement("svg", { viewBox: "0 0 18 18", fill: "currentColor", width: size || "18", height: size || "18", ...props }, /* @__PURE__ */ React45.createElement("path", { d: "M13,6 L13,13 C13,14.1045695 12.1045695,15 11,15 L7,15 C5.8954305,15 5,14.1045695 5,13 L5,6 L4,6 L4,5 L7,5 L7,4 C7,3.44771525 7.44771525,3 8,3 L10,3 C10.5522847,3 11,3.44771525 11,4 L11,5 L14,5 L14,6 L13,6 Z M6,6 L6,13 C6,13.5522847 6.44771525,14 7,14 L11,14 C11.5522847,14 12,13.5522847 12,13 L12,6 L6,6 Z M8,4 L8,5 L10,5 L10,4 L8,4 Z" }));
|
|
2069
2069
|
DeleteSmall.displayName = "DeleteSmall";
|
|
2070
2070
|
DeleteSmall_default = DeleteSmall;
|
|
2071
2071
|
}
|
|
@@ -2073,7 +2073,7 @@ var init_DeleteSmall = __esm({
|
|
|
2073
2073
|
var Globe, Globe_default;
|
|
2074
2074
|
var init_Globe = __esm({
|
|
2075
2075
|
"../../node_modules/@wix/wix-ui-icons-common/dist/esm/default/general/dist/components/Globe.js"() {
|
|
2076
|
-
Globe = ({ size, ...props }) => /* @__PURE__ */
|
|
2076
|
+
Globe = ({ size, ...props }) => /* @__PURE__ */ React45.createElement("svg", { viewBox: "0 0 24 24", fill: "currentColor", width: size || "24", height: size || "24", ...props }, /* @__PURE__ */ React45.createElement("path", { d: "M4.427 15h2.77C7.07 14.21 7 13.37 7 12.5c0-.87.07-1.71.198-2.5H4.427A7.488 7.488 0 0 0 4 12.5c0 .877.15 1.718.427 2.5Zm.438 1a7.524 7.524 0 0 0 4.14 3.575c-.698-.88-1.258-2.118-1.607-3.575H4.865Zm13.708-1A7.487 7.487 0 0 0 19 12.5a7.47 7.47 0 0 0-.427-2.5h-2.77c.128.79.197 1.63.197 2.5 0 .87-.07 1.71-.198 2.5h2.771Zm-.438 1h-2.533c-.349 1.457-.91 2.695-1.607 3.575A7.525 7.525 0 0 0 18.135 16Zm-9.923-1h6.576c.136-.778.212-1.619.212-2.5s-.076-1.722-.212-2.5H8.212A14.535 14.535 0 0 0 8 12.5c0 .881.076 1.722.212 2.5Zm.217 1c.624 2.4 1.842 4 3.071 4 1.23 0 2.447-1.6 3.071-4H8.43ZM4.865 9h2.533c.349-1.457.91-2.695 1.607-3.575A7.524 7.524 0 0 0 4.865 9Zm13.27 0a7.525 7.525 0 0 0-4.14-3.575c.698.88 1.258 2.118 1.607 3.575h2.533ZM8.429 9h6.142c-.624-2.4-1.842-4-3.071-4-1.23 0-2.447 1.6-3.071 4ZM11.5 21a8.5 8.5 0 1 1 0-17 8.5 8.5 0 0 1 0 17Z" }));
|
|
2077
2077
|
Globe.displayName = "Globe";
|
|
2078
2078
|
Globe_default = Globe;
|
|
2079
2079
|
}
|
|
@@ -2081,7 +2081,7 @@ var init_Globe = __esm({
|
|
|
2081
2081
|
var StatusAlert, StatusAlert_default;
|
|
2082
2082
|
var init_StatusAlert = __esm({
|
|
2083
2083
|
"../../node_modules/@wix/wix-ui-icons-common/dist/esm/default/general/dist/components/StatusAlert.js"() {
|
|
2084
|
-
StatusAlert = ({ size, ...props }) => /* @__PURE__ */
|
|
2084
|
+
StatusAlert = ({ size, ...props }) => /* @__PURE__ */ React45.createElement("svg", { viewBox: "0 0 24 24", fill: "currentColor", width: size || "24", height: size || "24", ...props }, /* @__PURE__ */ React45.createElement("path", { d: "M12,21 C7.02943725,21 3,16.9705627 3,12 C3,7.02943725 7.02943725,3 12,3 C16.9705627,3 21,7.02943725 21,12 C21,16.9705627 16.9705627,21 12,21 Z M12,20 C16.418278,20 20,16.418278 20,12 C20,7.581722 16.418278,4 12,4 C7.581722,4 4,7.581722 4,12 C4,16.418278 7.581722,20 12,20 Z M12.7287834,7.27532214 C12.9203342,7.46687299 13.0199347,7.73174979 13.0020527,8.00205275 L13.0020527,12.0020527 C13.0199347,12.2723557 12.9203342,12.5372325 12.7287834,12.7287834 C12.5372325,12.9203342 12.2723557,13.0199347 12.0020527,13.0020527 C11.7317498,13.0199347 11.466873,12.9203342 11.2753221,12.7287834 C11.0837713,12.5372325 10.9841708,12.2723557 11.0020527,12.0020527 L11.0020527,8.00205275 C10.9841708,7.73174979 11.0837713,7.46687299 11.2753221,7.27532214 C11.466873,7.08377129 11.7317498,6.98417081 12.0020527,7.00205275 C12.2723557,6.98417081 12.5372325,7.08377129 12.7287834,7.27532214 Z M12.7287834,15.2753221 C12.9203342,15.466873 13.0199347,15.7317498 13.0020527,16.0020527 C13.0199347,16.2723557 12.9203342,16.5372325 12.7287834,16.7287834 C12.5372325,16.9203342 12.2723557,17.0199347 12.0020527,17.0020527 C11.7317498,17.0199347 11.466873,16.9203342 11.2753221,16.7287834 C11.0837713,16.5372325 10.9841708,16.2723557 11.0020527,16.0020527 C10.9841708,15.7317498 11.0837713,15.466873 11.2753221,15.2753221 C11.466873,15.0837713 11.7317498,14.9841708 12.0020527,15.0020527 C12.2723557,14.9841708 12.5372325,15.0837713 12.7287834,15.2753221 Z" }));
|
|
2085
2085
|
StatusAlert.displayName = "StatusAlert";
|
|
2086
2086
|
StatusAlert_default = StatusAlert;
|
|
2087
2087
|
}
|
|
@@ -25876,7 +25876,7 @@ var FormStatusProvider = (_ref) => {
|
|
|
25876
25876
|
setFormStatus
|
|
25877
25877
|
};
|
|
25878
25878
|
}, [currentFormStatus, setFormStatus]);
|
|
25879
|
-
return /* @__PURE__ */
|
|
25879
|
+
return /* @__PURE__ */ React45__default.createElement(FormStatusContext.Provider, {
|
|
25880
25880
|
value: contextValue
|
|
25881
25881
|
}, children);
|
|
25882
25882
|
};
|
|
@@ -25961,7 +25961,7 @@ var link_viewer_default = {
|
|
|
25961
25961
|
// ../../node_modules/@wix/ricos/dist/es/plugin-link/nodeViewDecorators/anchor.js
|
|
25962
25962
|
var decorator = (anchorDecoration, element) => {
|
|
25963
25963
|
const { anchor } = anchorDecoration.anchorData;
|
|
25964
|
-
return /* @__PURE__ */
|
|
25964
|
+
return /* @__PURE__ */ React45__default.createElement(
|
|
25965
25965
|
"a",
|
|
25966
25966
|
{
|
|
25967
25967
|
key: `anchor-${element?.key}`,
|
|
@@ -26014,7 +26014,7 @@ var decorator2 = (element, linkDecoration, contextualData, node) => {
|
|
|
26014
26014
|
type: Node_Type.TEXT,
|
|
26015
26015
|
textData: node.textData
|
|
26016
26016
|
});
|
|
26017
|
-
return /* @__PURE__ */
|
|
26017
|
+
return /* @__PURE__ */ React45__default.createElement(
|
|
26018
26018
|
"a",
|
|
26019
26019
|
{
|
|
26020
26020
|
key: `link=${element.key}`,
|
|
@@ -26073,7 +26073,7 @@ var htmlAttributesPlugin = (_) => ({
|
|
|
26073
26073
|
type: "",
|
|
26074
26074
|
nodeViewDecorators: [htmlAttributesDecorator],
|
|
26075
26075
|
nodeViewRenderers: {
|
|
26076
|
-
[Node_Type.EXTERNAL]: (__) => /* @__PURE__ */
|
|
26076
|
+
[Node_Type.EXTERNAL]: (__) => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null)
|
|
26077
26077
|
}
|
|
26078
26078
|
});
|
|
26079
26079
|
var htmlAttributesDecorator = {
|
|
@@ -26084,13 +26084,13 @@ var htmlAttributesDecorator = {
|
|
|
26084
26084
|
node
|
|
26085
26085
|
} = _ref;
|
|
26086
26086
|
if (((_node$textData = node.textData) == null ? void 0 : _node$textData.text) == null) {
|
|
26087
|
-
return /* @__PURE__ */
|
|
26087
|
+
return /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null);
|
|
26088
26088
|
}
|
|
26089
26089
|
const props = Object.fromEntries(Object.entries(((_node$externalData = node.externalData) == null ? void 0 : _node$externalData.fields) ?? []).map((_ref2) => {
|
|
26090
26090
|
let [k, v] = _ref2;
|
|
26091
26091
|
return [k, v.stringValue];
|
|
26092
26092
|
}));
|
|
26093
|
-
return /* @__PURE__ */
|
|
26093
|
+
return /* @__PURE__ */ React45__default.createElement("span", props, (_node$textData2 = node.textData) == null ? void 0 : _node$textData2.text);
|
|
26094
26094
|
}
|
|
26095
26095
|
};
|
|
26096
26096
|
|
|
@@ -26109,10 +26109,10 @@ var RicosViewer = (_ref) => {
|
|
|
26109
26109
|
if (!content) {
|
|
26110
26110
|
return null;
|
|
26111
26111
|
}
|
|
26112
|
-
return /* @__PURE__ */
|
|
26112
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
26113
26113
|
className: (0, import_classnames3.default)(ricos_viewer_module_default.container, className),
|
|
26114
26114
|
"data-hook": dataHook
|
|
26115
|
-
}, /* @__PURE__ */
|
|
26115
|
+
}, /* @__PURE__ */ React45__default.createElement(WixRicosViewer, {
|
|
26116
26116
|
biSettings: {
|
|
26117
26117
|
consumer: "Forms",
|
|
26118
26118
|
platform: "Livesite",
|
|
@@ -26126,7 +26126,7 @@ var RicosViewer = (_ref) => {
|
|
|
26126
26126
|
locale
|
|
26127
26127
|
}));
|
|
26128
26128
|
};
|
|
26129
|
-
var ricos_viewer_default = /* @__PURE__ */
|
|
26129
|
+
var ricos_viewer_default = /* @__PURE__ */ React45__default.memo(RicosViewer);
|
|
26130
26130
|
var UniqueFieldSuffixContext = /* @__PURE__ */ createContext(void 0);
|
|
26131
26131
|
var UniqueFieldSuffixContextProvider = (_ref) => {
|
|
26132
26132
|
let {
|
|
@@ -26137,7 +26137,7 @@ var UniqueFieldSuffixContextProvider = (_ref) => {
|
|
|
26137
26137
|
compId = "comp"
|
|
26138
26138
|
} = useConfig();
|
|
26139
26139
|
const uniqueId = `${compId}-${parentId.split("-").at(0)}`;
|
|
26140
|
-
return /* @__PURE__ */
|
|
26140
|
+
return /* @__PURE__ */ React45__default.createElement(UniqueFieldSuffixContext.Provider, {
|
|
26141
26141
|
value: uniqueId
|
|
26142
26142
|
}, children);
|
|
26143
26143
|
};
|
|
@@ -26153,14 +26153,14 @@ var FocusedFieldProvider = (_ref) => {
|
|
|
26153
26153
|
let {
|
|
26154
26154
|
children
|
|
26155
26155
|
} = _ref;
|
|
26156
|
-
const [focusedFieldId, setFocusedFieldId] =
|
|
26156
|
+
const [focusedFieldId, setFocusedFieldId] = React45__default.useState(void 0);
|
|
26157
26157
|
const contextValue = useMemo(() => {
|
|
26158
26158
|
return {
|
|
26159
26159
|
focusedFieldId,
|
|
26160
26160
|
setFocusedFieldId
|
|
26161
26161
|
};
|
|
26162
26162
|
}, [focusedFieldId, setFocusedFieldId]);
|
|
26163
|
-
return /* @__PURE__ */
|
|
26163
|
+
return /* @__PURE__ */ React45__default.createElement(FocusedFieldContext.Provider, {
|
|
26164
26164
|
value: contextValue
|
|
26165
26165
|
}, children);
|
|
26166
26166
|
};
|
|
@@ -26188,7 +26188,7 @@ var EventsProvider = (_ref) => {
|
|
|
26188
26188
|
setSubmittedValues(values || {});
|
|
26189
26189
|
}
|
|
26190
26190
|
}), [submitSuccessCounter, submittedValues]);
|
|
26191
|
-
return /* @__PURE__ */
|
|
26191
|
+
return /* @__PURE__ */ React45__default.createElement(EventsContext.Provider, {
|
|
26192
26192
|
value
|
|
26193
26193
|
}, children);
|
|
26194
26194
|
};
|
|
@@ -26268,9 +26268,9 @@ var ScrollProvider = (_ref) => {
|
|
|
26268
26268
|
}
|
|
26269
26269
|
}
|
|
26270
26270
|
}), []);
|
|
26271
|
-
return /* @__PURE__ */
|
|
26271
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
26272
26272
|
ref: scrollViewRef
|
|
26273
|
-
}, /* @__PURE__ */
|
|
26273
|
+
}, /* @__PURE__ */ React45__default.createElement(ScrollContext.Provider, {
|
|
26274
26274
|
value
|
|
26275
26275
|
}, children));
|
|
26276
26276
|
};
|
|
@@ -26471,7 +26471,7 @@ var ExternalDataProvider = (_ref) => {
|
|
|
26471
26471
|
children,
|
|
26472
26472
|
externalData
|
|
26473
26473
|
} = _ref;
|
|
26474
|
-
return /* @__PURE__ */
|
|
26474
|
+
return /* @__PURE__ */ React45__default.createElement(ExternalDataContext.Provider, {
|
|
26475
26475
|
value: externalData ?? FALLBACK
|
|
26476
26476
|
}, children);
|
|
26477
26477
|
};
|
|
@@ -27320,9 +27320,9 @@ var InputField = (_ref) => {
|
|
|
27320
27320
|
if (!FieldComponent) {
|
|
27321
27321
|
return null;
|
|
27322
27322
|
}
|
|
27323
|
-
return /* @__PURE__ */
|
|
27323
|
+
return /* @__PURE__ */ React45__default.createElement(FieldAttributesContext.Provider, {
|
|
27324
27324
|
value: fieldAttributes
|
|
27325
|
-
}, /* @__PURE__ */
|
|
27325
|
+
}, /* @__PURE__ */ React45__default.createElement(FieldPropsContext.Provider, {
|
|
27326
27326
|
value: {
|
|
27327
27327
|
...propsMapper({
|
|
27328
27328
|
...field.properties,
|
|
@@ -27344,7 +27344,7 @@ var InputField = (_ref) => {
|
|
|
27344
27344
|
errorMessage,
|
|
27345
27345
|
v2: fieldProps
|
|
27346
27346
|
}
|
|
27347
|
-
}, /* @__PURE__ */
|
|
27347
|
+
}, /* @__PURE__ */ React45__default.createElement(FieldComponent, fieldProps)));
|
|
27348
27348
|
};
|
|
27349
27349
|
var ReadOnlyField = (_ref) => {
|
|
27350
27350
|
let {
|
|
@@ -27372,7 +27372,7 @@ var ReadOnlyField = (_ref) => {
|
|
|
27372
27372
|
requiredIndicatorType: requiredIndicator,
|
|
27373
27373
|
requiredIndicatorPlacement
|
|
27374
27374
|
};
|
|
27375
|
-
return /* @__PURE__ */
|
|
27375
|
+
return /* @__PURE__ */ React45__default.createElement(FieldPropsContext.Provider, {
|
|
27376
27376
|
value: {
|
|
27377
27377
|
...propsMapper({
|
|
27378
27378
|
...field.properties,
|
|
@@ -27384,7 +27384,7 @@ var ReadOnlyField = (_ref) => {
|
|
|
27384
27384
|
}),
|
|
27385
27385
|
v2: fieldProps
|
|
27386
27386
|
}
|
|
27387
|
-
}, /* @__PURE__ */
|
|
27387
|
+
}, /* @__PURE__ */ React45__default.createElement(FieldComponent, fieldProps));
|
|
27388
27388
|
};
|
|
27389
27389
|
|
|
27390
27390
|
// ../form-fields/dist/esm/ui/form/components/form/nested-form-field.js
|
|
@@ -27434,7 +27434,7 @@ var NestedFormField = (_ref) => {
|
|
|
27434
27434
|
requiredIndicatorType: requiredIndicator,
|
|
27435
27435
|
requiredIndicatorPlacement
|
|
27436
27436
|
};
|
|
27437
|
-
return /* @__PURE__ */
|
|
27437
|
+
return /* @__PURE__ */ React45__default.createElement(FieldPropsContext.Provider, {
|
|
27438
27438
|
value: {
|
|
27439
27439
|
...propsMapper({
|
|
27440
27440
|
...field.properties,
|
|
@@ -27452,7 +27452,7 @@ var NestedFormField = (_ref) => {
|
|
|
27452
27452
|
onChange: handleChange,
|
|
27453
27453
|
v2: fieldProps
|
|
27454
27454
|
}
|
|
27455
|
-
}, /* @__PURE__ */
|
|
27455
|
+
}, /* @__PURE__ */ React45__default.createElement(FieldComponent, fieldProps));
|
|
27456
27456
|
};
|
|
27457
27457
|
var FieldActionsContext = /* @__PURE__ */ createContext({});
|
|
27458
27458
|
function useFieldActions() {
|
|
@@ -27580,7 +27580,7 @@ var SubmitButtonField = (_ref) => {
|
|
|
27580
27580
|
onPreviousClick: () => actions == null ? void 0 : actions.setPreviousStep(),
|
|
27581
27581
|
onNextClick: () => actions == null ? void 0 : actions.setNextStep()
|
|
27582
27582
|
};
|
|
27583
|
-
return /* @__PURE__ */
|
|
27583
|
+
return /* @__PURE__ */ React45__default.createElement(FieldPropsContext.Provider, {
|
|
27584
27584
|
value: {
|
|
27585
27585
|
...propsMapper({
|
|
27586
27586
|
...field.properties,
|
|
@@ -27602,7 +27602,7 @@ var SubmitButtonField = (_ref) => {
|
|
|
27602
27602
|
}),
|
|
27603
27603
|
v2: fieldProps
|
|
27604
27604
|
}
|
|
27605
|
-
}, /* @__PURE__ */
|
|
27605
|
+
}, /* @__PURE__ */ React45__default.createElement(FieldComponent, fieldProps));
|
|
27606
27606
|
};
|
|
27607
27607
|
|
|
27608
27608
|
// ../form-fields/dist/esm/services/multiline-address.js
|
|
@@ -27619,24 +27619,24 @@ var FormField = (_ref) => {
|
|
|
27619
27619
|
...rest
|
|
27620
27620
|
} = _ref;
|
|
27621
27621
|
if (!isMultilineAddressField(field) && isNestedFormField(field)) {
|
|
27622
|
-
return /* @__PURE__ */
|
|
27622
|
+
return /* @__PURE__ */ React45__default.createElement(NestedFormField, _extends({}, rest, {
|
|
27623
27623
|
field,
|
|
27624
27624
|
FieldLayout
|
|
27625
27625
|
}));
|
|
27626
27626
|
}
|
|
27627
27627
|
if (isInputField(field)) {
|
|
27628
|
-
return /* @__PURE__ */
|
|
27628
|
+
return /* @__PURE__ */ React45__default.createElement(InputField, _extends({}, rest, {
|
|
27629
27629
|
field,
|
|
27630
27630
|
FieldLayout
|
|
27631
27631
|
}));
|
|
27632
27632
|
}
|
|
27633
27633
|
if (field.fieldType === "SUBMIT_BUTTON") {
|
|
27634
|
-
return /* @__PURE__ */
|
|
27634
|
+
return /* @__PURE__ */ React45__default.createElement(SubmitButtonField, _extends({}, rest, {
|
|
27635
27635
|
field,
|
|
27636
27636
|
FieldLayout
|
|
27637
27637
|
}));
|
|
27638
27638
|
}
|
|
27639
|
-
return /* @__PURE__ */
|
|
27639
|
+
return /* @__PURE__ */ React45__default.createElement(ReadOnlyField, _extends({}, rest, {
|
|
27640
27640
|
field,
|
|
27641
27641
|
FieldLayout
|
|
27642
27642
|
}));
|
|
@@ -27669,19 +27669,19 @@ var createFormFields = (_ref) => {
|
|
|
27669
27669
|
fieldActions
|
|
27670
27670
|
} = _ref;
|
|
27671
27671
|
return form.fields.map((formField) => {
|
|
27672
|
-
const component = /* @__PURE__ */
|
|
27672
|
+
const component = /* @__PURE__ */ React45__default.createElement(FormContext.Provider, {
|
|
27673
27673
|
value: formSchema
|
|
27674
|
-
}, /* @__PURE__ */
|
|
27674
|
+
}, /* @__PURE__ */ React45__default.createElement(FormFieldsContext.Provider, {
|
|
27675
27675
|
value: fields
|
|
27676
|
-
}, /* @__PURE__ */
|
|
27676
|
+
}, /* @__PURE__ */ React45__default.createElement(FieldActionsContext.Provider, {
|
|
27677
27677
|
value: fieldActions
|
|
27678
|
-
}, /* @__PURE__ */
|
|
27678
|
+
}, /* @__PURE__ */ React45__default.createElement(FieldValidationContext.Provider, {
|
|
27679
27679
|
value: {
|
|
27680
27680
|
validateFields: validateFields2
|
|
27681
27681
|
}
|
|
27682
|
-
}, /* @__PURE__ */
|
|
27682
|
+
}, /* @__PURE__ */ React45__default.createElement(FormViewContext.Provider, {
|
|
27683
27683
|
value: form
|
|
27684
|
-
}, /* @__PURE__ */
|
|
27684
|
+
}, /* @__PURE__ */ React45__default.createElement(FormField, {
|
|
27685
27685
|
key: formField.id,
|
|
27686
27686
|
field: formField,
|
|
27687
27687
|
values,
|
|
@@ -27730,7 +27730,7 @@ var Focusable = (_ref) => {
|
|
|
27730
27730
|
scrollTo(viewRef.current);
|
|
27731
27731
|
}
|
|
27732
27732
|
}, [scrollTo, fieldId, focusedFieldId]);
|
|
27733
|
-
return /* @__PURE__ */
|
|
27733
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
27734
27734
|
ref: viewRef
|
|
27735
27735
|
}, children);
|
|
27736
27736
|
};
|
|
@@ -27753,16 +27753,16 @@ var Grid = (_ref) => {
|
|
|
27753
27753
|
enableAnimations
|
|
27754
27754
|
} = useConfig();
|
|
27755
27755
|
const reactElementsByRow = getReactElementsByRow(items);
|
|
27756
|
-
return /* @__PURE__ */
|
|
27756
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
27757
27757
|
className: grid_module_default.container,
|
|
27758
27758
|
dir: isRTL ? "rtl" : ""
|
|
27759
27759
|
}, reactElementsByRow.map((rowData, index) => {
|
|
27760
27760
|
const fieldId = rowData.firstFieldId;
|
|
27761
27761
|
const key = isMobile2 && fieldId || index;
|
|
27762
|
-
return /* @__PURE__ */
|
|
27762
|
+
return /* @__PURE__ */ React45__default.createElement(Focusable, {
|
|
27763
27763
|
key: fieldId,
|
|
27764
27764
|
fieldId
|
|
27765
|
-
}, /* @__PURE__ */
|
|
27765
|
+
}, /* @__PURE__ */ React45__default.createElement("div", {
|
|
27766
27766
|
key,
|
|
27767
27767
|
style: getGridStyle({
|
|
27768
27768
|
layout
|
|
@@ -27776,7 +27776,7 @@ var Grid = (_ref) => {
|
|
|
27776
27776
|
function getReactElementsByRow(items) {
|
|
27777
27777
|
const reactElementsByRow = items.reduce((result2, item) => {
|
|
27778
27778
|
const row = item.layout.row;
|
|
27779
|
-
const element = /* @__PURE__ */
|
|
27779
|
+
const element = /* @__PURE__ */ React45__default.cloneElement(item.component, {
|
|
27780
27780
|
key: item.id
|
|
27781
27781
|
});
|
|
27782
27782
|
if (result2[row]) {
|
|
@@ -27842,7 +27842,7 @@ var DefaultFieldLayout = (_ref) => {
|
|
|
27842
27842
|
layout
|
|
27843
27843
|
});
|
|
27844
27844
|
if ("children" in rest) {
|
|
27845
|
-
return /* @__PURE__ */
|
|
27845
|
+
return /* @__PURE__ */ React45__default.createElement("div", _extends({
|
|
27846
27846
|
style: gridStyles.container
|
|
27847
27847
|
}, dataAttributes), rest.children);
|
|
27848
27848
|
}
|
|
@@ -27851,9 +27851,9 @@ var DefaultFieldLayout = (_ref) => {
|
|
|
27851
27851
|
renderInput,
|
|
27852
27852
|
renderDescription
|
|
27853
27853
|
} = rest;
|
|
27854
|
-
return /* @__PURE__ */
|
|
27854
|
+
return /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, /* @__PURE__ */ React45__default.createElement("div", {
|
|
27855
27855
|
style: gridStyles.label
|
|
27856
|
-
}, renderLabel()), /* @__PURE__ */
|
|
27856
|
+
}, renderLabel()), /* @__PURE__ */ React45__default.createElement("div", _extends({
|
|
27857
27857
|
style: gridStyles.input
|
|
27858
27858
|
}, dataAttributes), renderInput(), renderDescription()));
|
|
27859
27859
|
};
|
|
@@ -27884,18 +27884,18 @@ var FormRoot = (_ref) => {
|
|
|
27884
27884
|
fields,
|
|
27885
27885
|
fieldActions
|
|
27886
27886
|
});
|
|
27887
|
-
return /* @__PURE__ */
|
|
27887
|
+
return /* @__PURE__ */ React45__default.createElement(Grid, {
|
|
27888
27888
|
isRTL,
|
|
27889
27889
|
items: formFields,
|
|
27890
27890
|
layout: form.grid
|
|
27891
27891
|
});
|
|
27892
27892
|
};
|
|
27893
27893
|
var Form = (props) => {
|
|
27894
|
-
return /* @__PURE__ */
|
|
27894
|
+
return /* @__PURE__ */ React45__default.createElement(FormViewContext.Provider, {
|
|
27895
27895
|
value: props.form
|
|
27896
|
-
}, /* @__PURE__ */
|
|
27896
|
+
}, /* @__PURE__ */ React45__default.createElement(UniqueFieldSuffixContextProvider, {
|
|
27897
27897
|
parentId: props.form.parentId
|
|
27898
|
-
}, /* @__PURE__ */
|
|
27898
|
+
}, /* @__PURE__ */ React45__default.createElement(FormRoot, props)));
|
|
27899
27899
|
};
|
|
27900
27900
|
|
|
27901
27901
|
// ../form-fields/dist/esm/services/get-image-url.js
|
|
@@ -30943,19 +30943,19 @@ var useValidation = ({ form, errorsRef, setErrors, validationMode }) => {
|
|
|
30943
30943
|
}, [form, setErrors, handleFieldValidation]);
|
|
30944
30944
|
return { validateFields: validateFields2, validateStep, handleFieldValidation };
|
|
30945
30945
|
};
|
|
30946
|
-
var Delete = ({ size, ...props }) => /* @__PURE__ */
|
|
30946
|
+
var Delete = ({ size, ...props }) => /* @__PURE__ */ React45.createElement("svg", { viewBox: "0 0 24 24", fill: "currentColor", width: size || "24", height: size || "24", ...props }, /* @__PURE__ */ React45.createElement("path", { fillRule: "evenodd", d: "M13.5,3 C14.327,3 15,3.673 15,4.5 L15,4.5 L15,5 L19,5 L19,6 L18,6 L18,17.5 C18,18.879 16.878,20 15.5,20 L15.5,20 L7.5,20 C6.122,20 5,18.879 5,17.5 L5,17.5 L5,6 L4,6 L4,5 L8,5 L8,4.5 C8,3.673 8.673,3 9.5,3 L9.5,3 Z M17,6 L6,6 L6,17.5 C6,18.327 6.673,19 7.5,19 L7.5,19 L15.5,19 C16.327,19 17,18.327 17,17.5 L17,17.5 L17,6 Z M10,9 L10,16 L9,16 L9,9 L10,9 Z M14,9 L14,16 L13,16 L13,9 L14,9 Z M13.5,4 L9.5,4 C9.224,4 9,4.225 9,4.5 L9,4.5 L9,5 L14,5 L14,4.5 C14,4.225 13.776,4 13.5,4 L13.5,4 Z" }));
|
|
30947
30947
|
Delete.displayName = "Delete";
|
|
30948
30948
|
var Delete_default = Delete;
|
|
30949
|
-
var Download = ({ size, ...props }) => /* @__PURE__ */
|
|
30949
|
+
var Download = ({ size, ...props }) => /* @__PURE__ */ React45.createElement("svg", { viewBox: "0 0 24 24", fill: "currentColor", width: size || "24", height: size || "24", ...props }, /* @__PURE__ */ React45.createElement("path", { fillRule: "evenodd", d: "M4.9937,15.9971 L4.9937,18.4971 C4.9937,18.7721 5.2177,18.9971 5.4937,18.9971 L5.4937,18.9971 L17.4937,18.9971 C17.7697,18.9971 17.9937,18.7721 17.9937,18.4971 L17.9937,18.4971 L17.9937,15.9971 L18.9937,15.9971 L18.9937,18.4971 C18.9937,19.3241 18.3207,19.9971 17.4937,19.9971 L17.4937,19.9971 L5.4937,19.9971 C4.6657,19.9971 3.9937,19.3241 3.9937,18.4971 L3.9937,18.4971 L3.9937,15.9971 L4.9937,15.9971 Z M11.9933,4 L11.9933,14.078 L15.0293,11.043 L15.7363,11.75 L11.4933,15.992 L7.2513,11.75 L7.9583,11.043 L10.9933,14.078 L10.9933,4 L11.9933,4 Z" }));
|
|
30950
30950
|
Download.displayName = "Download";
|
|
30951
30951
|
var Download_default = Download;
|
|
30952
|
-
var Edit = ({ size, ...props }) => /* @__PURE__ */
|
|
30952
|
+
var Edit = ({ size, ...props }) => /* @__PURE__ */ React45.createElement("svg", { viewBox: "0 0 24 24", fill: "currentColor", width: size || "24", height: size || "24", ...props }, /* @__PURE__ */ React45.createElement("path", { fillRule: "evenodd", d: "M18.8525,7.543 L17.7515,8.644 L15.3565,6.248 L16.4575,5.147 C16.5555,5.05 16.6835,5.001 16.8105,5.001 C16.9385,5.001 17.0665,5.05 17.1645,5.147 L18.8525,6.835 C19.0475,7.03 19.0475,7.348 18.8525,7.543 L18.8525,7.543 Z M8.1895,18.206 C8.1185,18.276 8.0275,18.324 7.9295,18.344 L5.1275,18.873 L5.6575,16.07 C5.6755,15.972 5.7225,15.882 5.7945,15.811 L14.6495,6.955 L17.0445,9.351 L8.1895,18.206 Z M19.5595,6.128 L17.8715,4.44 C17.2865,3.856 16.3355,3.856 15.7505,4.44 L5.0875,15.103 C4.8735,15.317 4.7295,15.588 4.6745,15.886 L4.0085,19.407 C3.9775,19.569 4.0295,19.736 4.1465,19.854 C4.2415,19.948 4.3685,20 4.4995,20 C4.5305,20 4.5615,19.997 4.5925,19.991 L8.1165,19.326 C8.4145,19.269 8.6855,19.125 8.8965,18.912 L19.5595,8.25 C20.1445,7.665 20.1445,6.713 19.5595,6.128 L19.5595,6.128 Z" }));
|
|
30953
30953
|
Edit.displayName = "Edit";
|
|
30954
30954
|
var Edit_default = Edit;
|
|
30955
|
-
var ErrorSmall = ({ size, ...props }) => /* @__PURE__ */
|
|
30955
|
+
var ErrorSmall = ({ size, ...props }) => /* @__PURE__ */ React45.createElement("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: size || "20", height: size || "20", ...props }, /* @__PURE__ */ React45.createElement("path", { fillRule: "evenodd", d: "M9.5,3 C13.084,3 16,5.916 16,9.5 C16,13.084 13.084,16 9.5,16 C5.916,16 3,13.084 3,9.5 C3,5.916 5.916,3 9.5,3 Z M9.5,4 C6.467,4 4,6.467 4,9.5 C4,12.533 6.467,15 9.5,15 C12.533,15 15,12.533 15,9.5 C15,6.467 12.533,4 9.5,4 Z M10,11 L10,12 L9,12 L9,11 L10,11 Z M10,7 L10,10 L9,10 L9,7 L10,7 Z" }));
|
|
30956
30956
|
ErrorSmall.displayName = "ErrorSmall";
|
|
30957
30957
|
var ErrorSmall_default = ErrorSmall;
|
|
30958
|
-
var TextStyleSmall = ({ size, ...props }) => /* @__PURE__ */
|
|
30958
|
+
var TextStyleSmall = ({ size, ...props }) => /* @__PURE__ */ React45.createElement("svg", { viewBox: "0 0 20 20", fill: "currentColor", width: size || "20", height: size || "20", ...props }, /* @__PURE__ */ React45.createElement("path", { fillRule: "evenodd", d: "M12,4 L12,5 L8,5 L8,16 L7,16 L7,5 L3,5 L3,4 L12,4 Z M18,8 L18,9 L15,9 L15,16 L14,16 L14,9 L11,9 L11,8 L18,8 Z" }));
|
|
30959
30959
|
TextStyleSmall.displayName = "TextStyleSmall";
|
|
30960
30960
|
var TextStyleSmall_default = TextStyleSmall;
|
|
30961
30961
|
var SubmitStatusContext = createContext(void 0);
|
|
@@ -30971,7 +30971,7 @@ var SubmitStatusProvider = ({ children }) => {
|
|
|
30971
30971
|
setSubmitFailureCode,
|
|
30972
30972
|
setSubmitFailureMessage
|
|
30973
30973
|
}), [submitSuccessMessage, submitFailureCode, submitFailureMessage]);
|
|
30974
|
-
return
|
|
30974
|
+
return React45__default.createElement(SubmitStatusContext.Provider, { value }, children);
|
|
30975
30975
|
};
|
|
30976
30976
|
var useSubmitStatus = () => {
|
|
30977
30977
|
const context = useContext(SubmitStatusContext);
|
|
@@ -32830,6 +32830,10 @@ var useFormBi = (form, bi, biFormFillSessionId) => {
|
|
|
32830
32830
|
formEditSessionId
|
|
32831
32831
|
]);
|
|
32832
32832
|
};
|
|
32833
|
+
var HostContext = React45__default.createContext(void 0);
|
|
32834
|
+
React45__default.memo(({ children, host }) => {
|
|
32835
|
+
return React45__default.createElement(HostContext.Provider, { value: host }, children);
|
|
32836
|
+
});
|
|
32833
32837
|
|
|
32834
32838
|
// ../form-viewer/dist/esm/components/root/form-viewer-provider.js
|
|
32835
32839
|
var FormViewerProvider = ({ i18n, bi, biFormFillSessionId, form, isMobile: isMobile2, isEditor, isComposer, isRTL, compId, locale, regionalFormat, externalData, forcedState, instance, children, httpClient, panorama, experiments, translationNamespace, currency, userData, WixRicosViewer, addressTemplates, atlasBaseUrl, fieldInitialData, enableAnimations }) => {
|
|
@@ -32838,6 +32842,7 @@ var FormViewerProvider = ({ i18n, bi, biFormFillSessionId, form, isMobile: isMob
|
|
|
32838
32842
|
i18n
|
|
32839
32843
|
}), [locale, i18n, translationNamespace]);
|
|
32840
32844
|
const formBi = useFormBi(form, bi, biFormFillSessionId);
|
|
32845
|
+
const host = useContext(HostContext) ?? {};
|
|
32841
32846
|
const config = useMemo(() => ({
|
|
32842
32847
|
locale,
|
|
32843
32848
|
regionalFormat,
|
|
@@ -32850,7 +32855,8 @@ var FormViewerProvider = ({ i18n, bi, biFormFillSessionId, form, isMobile: isMob
|
|
|
32850
32855
|
isEditor,
|
|
32851
32856
|
isComposer,
|
|
32852
32857
|
isRTL,
|
|
32853
|
-
enableAnimations
|
|
32858
|
+
enableAnimations,
|
|
32859
|
+
style: host?.style
|
|
32854
32860
|
}), [
|
|
32855
32861
|
locale,
|
|
32856
32862
|
regionalFormat,
|
|
@@ -32863,58 +32869,59 @@ var FormViewerProvider = ({ i18n, bi, biFormFillSessionId, form, isMobile: isMob
|
|
|
32863
32869
|
isEditor,
|
|
32864
32870
|
isComposer,
|
|
32865
32871
|
isRTL,
|
|
32866
|
-
enableAnimations
|
|
32872
|
+
enableAnimations,
|
|
32873
|
+
host?.style
|
|
32867
32874
|
]);
|
|
32868
32875
|
const forcedViewState = useMemo(() => forcedState ?? [], [forcedState]);
|
|
32869
|
-
return
|
|
32876
|
+
return React45__default.createElement(
|
|
32870
32877
|
HttpClientContext.Provider,
|
|
32871
32878
|
{ value: { httpClient } },
|
|
32872
|
-
|
|
32879
|
+
React45__default.createElement(
|
|
32873
32880
|
PanoramaContext.Provider,
|
|
32874
32881
|
{ value: { panorama } },
|
|
32875
|
-
|
|
32882
|
+
React45__default.createElement(
|
|
32876
32883
|
TranslationContext.Provider,
|
|
32877
32884
|
{ value: translations },
|
|
32878
|
-
|
|
32885
|
+
React45__default.createElement(
|
|
32879
32886
|
ScrollProvider,
|
|
32880
32887
|
null,
|
|
32881
|
-
|
|
32888
|
+
React45__default.createElement(
|
|
32882
32889
|
FocusedFieldProvider,
|
|
32883
32890
|
null,
|
|
32884
|
-
|
|
32891
|
+
React45__default.createElement(
|
|
32885
32892
|
FieldInitialDataContext.Provider,
|
|
32886
32893
|
{ value: fieldInitialData },
|
|
32887
|
-
|
|
32894
|
+
React45__default.createElement(
|
|
32888
32895
|
BiContext.Provider,
|
|
32889
32896
|
{ value: formBi },
|
|
32890
|
-
|
|
32897
|
+
React45__default.createElement(
|
|
32891
32898
|
ExternalDataProvider,
|
|
32892
32899
|
{ externalData },
|
|
32893
|
-
|
|
32900
|
+
React45__default.createElement(
|
|
32894
32901
|
ConfigContext.Provider,
|
|
32895
32902
|
{ value: config },
|
|
32896
|
-
|
|
32903
|
+
React45__default.createElement(
|
|
32897
32904
|
ForcedStateContext.Provider,
|
|
32898
32905
|
{ value: forcedViewState },
|
|
32899
|
-
|
|
32906
|
+
React45__default.createElement(
|
|
32900
32907
|
FormContext.Provider,
|
|
32901
32908
|
{ value: form },
|
|
32902
|
-
|
|
32909
|
+
React45__default.createElement(
|
|
32903
32910
|
AddressFormsContext.Provider,
|
|
32904
32911
|
{ value: {
|
|
32905
32912
|
getCountryAddressForm: (country) => getAddressForm(addressTemplates, country),
|
|
32906
32913
|
addressTemplates
|
|
32907
32914
|
} },
|
|
32908
|
-
|
|
32915
|
+
React45__default.createElement(
|
|
32909
32916
|
ExperimentsContext.Provider,
|
|
32910
32917
|
{ value: experiments },
|
|
32911
|
-
|
|
32918
|
+
React45__default.createElement(
|
|
32912
32919
|
EventsProvider,
|
|
32913
32920
|
null,
|
|
32914
|
-
|
|
32921
|
+
React45__default.createElement(
|
|
32915
32922
|
WixRicosViewerContext.Provider,
|
|
32916
32923
|
{ value: WixRicosViewer },
|
|
32917
|
-
|
|
32924
|
+
React45__default.createElement(SubmitStatusProvider, null, children)
|
|
32918
32925
|
)
|
|
32919
32926
|
)
|
|
32920
32927
|
)
|
|
@@ -33116,7 +33123,7 @@ var useForm3 = ({
|
|
|
33116
33123
|
if (!fieldsByRow.has(row)) {
|
|
33117
33124
|
fieldsByRow.set(row, []);
|
|
33118
33125
|
}
|
|
33119
|
-
fieldsByRow.get(row).push(
|
|
33126
|
+
fieldsByRow.get(row).push(React45__default.cloneElement(component, { key: field.id }));
|
|
33120
33127
|
});
|
|
33121
33128
|
return Array.from(fieldsByRow.entries()).sort(([rowA], [rowB]) => rowA - rowB).map(([_, elements]) => elements);
|
|
33122
33129
|
}, [formFields, currentView.fields]);
|
|
@@ -33267,10 +33274,10 @@ var Description = (_ref) => {
|
|
|
33267
33274
|
if (!description) {
|
|
33268
33275
|
return null;
|
|
33269
33276
|
}
|
|
33270
|
-
return /* @__PURE__ */
|
|
33277
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
33271
33278
|
className,
|
|
33272
33279
|
id: descriptionId
|
|
33273
|
-
}, /* @__PURE__ */
|
|
33280
|
+
}, /* @__PURE__ */ React45__default.createElement(ricos_viewer_default, {
|
|
33274
33281
|
content: description
|
|
33275
33282
|
}));
|
|
33276
33283
|
};
|
|
@@ -33289,11 +33296,11 @@ var Error2 = (_ref) => {
|
|
|
33289
33296
|
if (!hasError) {
|
|
33290
33297
|
return null;
|
|
33291
33298
|
}
|
|
33292
|
-
return /* @__PURE__ */
|
|
33299
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
33293
33300
|
id: errorId,
|
|
33294
33301
|
"data-hook": getErrorDataHook(target),
|
|
33295
33302
|
className
|
|
33296
|
-
}, /* @__PURE__ */
|
|
33303
|
+
}, /* @__PURE__ */ React45__default.createElement(ErrorSmall_default, {
|
|
33297
33304
|
"aria-hidden": true
|
|
33298
33305
|
}), errorMessage ?? "");
|
|
33299
33306
|
};
|
|
@@ -33375,7 +33382,7 @@ var RichLabel = (_ref) => {
|
|
|
33375
33382
|
const indicatorNode = createIndicatorNode(requiredIndicatorType, t, requiredClassName);
|
|
33376
33383
|
return injectRequiredIndicator(label, requiredIndicatorPlacement, indicatorNode);
|
|
33377
33384
|
}, [required, requiredIndicatorHidden, label, requiredIndicatorType, requiredIndicatorPlacement, t, requiredClassName]);
|
|
33378
|
-
return /* @__PURE__ */
|
|
33385
|
+
return /* @__PURE__ */ React45__default.createElement(ricos_viewer_default, {
|
|
33379
33386
|
content: labelWithIndicator,
|
|
33380
33387
|
className
|
|
33381
33388
|
});
|
|
@@ -33391,12 +33398,12 @@ var Required = (_ref2) => {
|
|
|
33391
33398
|
requiredIndicatorType
|
|
33392
33399
|
} = useFieldPropsV2();
|
|
33393
33400
|
if (requiredIndicatorType === RequiredIndicator.TEXT) {
|
|
33394
|
-
return /* @__PURE__ */
|
|
33401
|
+
return /* @__PURE__ */ React45__default.createElement("span", {
|
|
33395
33402
|
className,
|
|
33396
33403
|
"aria-hidden": "true"
|
|
33397
33404
|
}, t("settings.required-indicator-text"));
|
|
33398
33405
|
}
|
|
33399
|
-
return /* @__PURE__ */
|
|
33406
|
+
return /* @__PURE__ */ React45__default.createElement("span", {
|
|
33400
33407
|
className,
|
|
33401
33408
|
"aria-hidden": "true"
|
|
33402
33409
|
}, "*");
|
|
@@ -33415,11 +33422,11 @@ var Checkbox = (_ref) => {
|
|
|
33415
33422
|
const checkboxElement = findChildOfType(children, Checkbox.Checkbox);
|
|
33416
33423
|
const descriptionElement = findChildOfType(children, Checkbox.Description);
|
|
33417
33424
|
const errorElement = findChildOfType(children, Checkbox.Error);
|
|
33418
|
-
return /* @__PURE__ */
|
|
33425
|
+
return /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
33419
33426
|
fieldId: id,
|
|
33420
33427
|
renderLabel: () => null,
|
|
33421
33428
|
renderInput: () => checkboxElement,
|
|
33422
|
-
renderDescription: () => /* @__PURE__ */
|
|
33429
|
+
renderDescription: () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, descriptionElement, errorElement)
|
|
33423
33430
|
});
|
|
33424
33431
|
};
|
|
33425
33432
|
var CheckboxContainer = (_ref2) => {
|
|
@@ -33450,7 +33457,7 @@ var CheckboxContainer = (_ref2) => {
|
|
|
33450
33457
|
const handleChange = useCallback((isSelected) => {
|
|
33451
33458
|
onChange(isSelected);
|
|
33452
33459
|
}, [onChange]);
|
|
33453
|
-
return /* @__PURE__ */
|
|
33460
|
+
return /* @__PURE__ */ React45__default.createElement(Checkbox$1, {
|
|
33454
33461
|
ref,
|
|
33455
33462
|
id: inputId,
|
|
33456
33463
|
"aria-describedby": ariaDescribedBy,
|
|
@@ -33461,13 +33468,13 @@ var CheckboxContainer = (_ref2) => {
|
|
|
33461
33468
|
onBlur,
|
|
33462
33469
|
onFocus,
|
|
33463
33470
|
className
|
|
33464
|
-
}, () => /* @__PURE__ */
|
|
33471
|
+
}, () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, inputElement, labelElement));
|
|
33465
33472
|
};
|
|
33466
33473
|
var Input = (_ref3) => {
|
|
33467
33474
|
let {
|
|
33468
33475
|
className
|
|
33469
33476
|
} = _ref3;
|
|
33470
|
-
return /* @__PURE__ */
|
|
33477
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
33471
33478
|
"aria-hidden": "true",
|
|
33472
33479
|
className
|
|
33473
33480
|
});
|
|
@@ -33515,12 +33522,12 @@ var Label = (_ref) => {
|
|
|
33515
33522
|
const labelAfterRequiredIndicator = requiredIndicatorType === RequiredIndicator.ASTERISK && requiredIndicatorPlacement === RequiredIndicatorPlacement.BEFORE_FIELD_TITLE;
|
|
33516
33523
|
const label = internalLabel ?? propsLabel;
|
|
33517
33524
|
const labelContent = label || ZERO_WIDTH_SPACE;
|
|
33518
|
-
return /* @__PURE__ */
|
|
33525
|
+
return /* @__PURE__ */ React45__default.createElement(Tag5, {
|
|
33519
33526
|
id: labelId,
|
|
33520
33527
|
htmlFor: as === "label" ? inputId : void 0,
|
|
33521
33528
|
className,
|
|
33522
33529
|
style: hideLabel ? HIDDEN_LABEL_STYLE : void 0
|
|
33523
|
-
}, labelAfterRequiredIndicator ? /* @__PURE__ */
|
|
33530
|
+
}, labelAfterRequiredIndicator ? /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, requiredElement, labelContent) : /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, labelContent, requiredElement));
|
|
33524
33531
|
};
|
|
33525
33532
|
var Required2 = (_ref2) => {
|
|
33526
33533
|
let {
|
|
@@ -33533,12 +33540,12 @@ var Required2 = (_ref2) => {
|
|
|
33533
33540
|
requiredIndicatorType
|
|
33534
33541
|
} = useFieldPropsV2();
|
|
33535
33542
|
if (requiredIndicatorType === RequiredIndicator.TEXT) {
|
|
33536
|
-
return /* @__PURE__ */
|
|
33543
|
+
return /* @__PURE__ */ React45__default.createElement("span", {
|
|
33537
33544
|
className,
|
|
33538
33545
|
"aria-hidden": "true"
|
|
33539
33546
|
}, t("settings.required-indicator-text"));
|
|
33540
33547
|
}
|
|
33541
|
-
return /* @__PURE__ */
|
|
33548
|
+
return /* @__PURE__ */ React45__default.createElement("span", {
|
|
33542
33549
|
className,
|
|
33543
33550
|
"aria-hidden": "true"
|
|
33544
33551
|
}, "*");
|
|
@@ -33605,7 +33612,7 @@ var FieldsetHeadless = (_ref) => {
|
|
|
33605
33612
|
onBlur,
|
|
33606
33613
|
onFocus
|
|
33607
33614
|
});
|
|
33608
|
-
return /* @__PURE__ */
|
|
33615
|
+
return /* @__PURE__ */ React45__default.createElement("fieldset", {
|
|
33609
33616
|
ref: containerRef,
|
|
33610
33617
|
id,
|
|
33611
33618
|
"aria-labelledby": ariaLabelledBy,
|
|
@@ -33700,24 +33707,24 @@ var CheckboxGroup = (_ref) => {
|
|
|
33700
33707
|
const handleChange = useCallback((newValue) => {
|
|
33701
33708
|
onChange == null || onChange(newValue);
|
|
33702
33709
|
}, [onChange]);
|
|
33703
|
-
return /* @__PURE__ */
|
|
33710
|
+
return /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
33704
33711
|
fieldId: id,
|
|
33705
33712
|
renderLabel: () => labelElement,
|
|
33706
|
-
renderInput: () => /* @__PURE__ */
|
|
33713
|
+
renderInput: () => /* @__PURE__ */ React45__default.createElement(FieldsetHeadless, {
|
|
33707
33714
|
id: inputId,
|
|
33708
33715
|
ariaLabelledBy: labelId,
|
|
33709
33716
|
ariaDescribedBy,
|
|
33710
33717
|
required,
|
|
33711
33718
|
onBlur,
|
|
33712
33719
|
onFocus
|
|
33713
|
-
}, /* @__PURE__ */
|
|
33720
|
+
}, /* @__PURE__ */ React45__default.createElement(CheckboxGroup$1, {
|
|
33714
33721
|
value: _value,
|
|
33715
33722
|
onChange: handleChange,
|
|
33716
33723
|
isDisabled: disabled,
|
|
33717
33724
|
isRequired: required,
|
|
33718
33725
|
isInvalid: hasError
|
|
33719
33726
|
}, optionsElement)),
|
|
33720
|
-
renderDescription: () => /* @__PURE__ */
|
|
33727
|
+
renderDescription: () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, descriptionElement, errorElement)
|
|
33721
33728
|
});
|
|
33722
33729
|
};
|
|
33723
33730
|
var Options = (_ref2) => {
|
|
@@ -33730,15 +33737,17 @@ var Options = (_ref2) => {
|
|
|
33730
33737
|
id,
|
|
33731
33738
|
options,
|
|
33732
33739
|
addOther,
|
|
33733
|
-
addOtherLabel
|
|
33740
|
+
addOtherLabel,
|
|
33741
|
+
numberOfColumns
|
|
33734
33742
|
} = props;
|
|
33735
33743
|
const {
|
|
33736
33744
|
t
|
|
33737
33745
|
} = useTranslation();
|
|
33738
33746
|
const optionElement = findChildOfType(children, Options.Option);
|
|
33739
33747
|
const otherLabel = getOtherLabel(addOtherLabel, t);
|
|
33740
|
-
return /* @__PURE__ */
|
|
33741
|
-
className
|
|
33748
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
33749
|
+
className,
|
|
33750
|
+
"data-columns": numberOfColumns
|
|
33742
33751
|
}, options == null ? void 0 : options.map((option, index) => {
|
|
33743
33752
|
const checkboxValue = option.value ?? option.label;
|
|
33744
33753
|
return applyInternalProps(optionElement, {
|
|
@@ -33759,7 +33768,7 @@ var OptionInput = (_ref3) => {
|
|
|
33759
33768
|
let {
|
|
33760
33769
|
className
|
|
33761
33770
|
} = _ref3;
|
|
33762
|
-
return /* @__PURE__ */
|
|
33771
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
33763
33772
|
"aria-hidden": "true",
|
|
33764
33773
|
className
|
|
33765
33774
|
});
|
|
@@ -33772,7 +33781,7 @@ var OptionLabel = (_ref4) => {
|
|
|
33772
33781
|
const {
|
|
33773
33782
|
label
|
|
33774
33783
|
} = internal;
|
|
33775
|
-
return /* @__PURE__ */
|
|
33784
|
+
return /* @__PURE__ */ React45__default.createElement("span", {
|
|
33776
33785
|
className
|
|
33777
33786
|
}, label);
|
|
33778
33787
|
};
|
|
@@ -33825,7 +33834,7 @@ var Checkbox2 = (_ref5) => {
|
|
|
33825
33834
|
const newValue = isSelected ? [...removedOther, label] : removedOther;
|
|
33826
33835
|
onChange == null || onChange(newValue);
|
|
33827
33836
|
}, [isOther, label, onChange, options, _value]);
|
|
33828
|
-
return /* @__PURE__ */
|
|
33837
|
+
return /* @__PURE__ */ React45__default.createElement(Checkbox$1, {
|
|
33829
33838
|
ref: checkboxRef,
|
|
33830
33839
|
value: actualValue,
|
|
33831
33840
|
onChange: isOther ? handleOtherCheckboxChange : void 0,
|
|
@@ -33872,7 +33881,7 @@ var Option = (_ref6) => {
|
|
|
33872
33881
|
const optionsValues = getOptionsValues(options || []);
|
|
33873
33882
|
return getIsOtherOptionSelected(_value, optionsValues);
|
|
33874
33883
|
}, [isOther, _value, options]);
|
|
33875
|
-
return /* @__PURE__ */
|
|
33884
|
+
return /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, applyInternalProps(checkboxElement, {
|
|
33876
33885
|
value,
|
|
33877
33886
|
label,
|
|
33878
33887
|
isFirst,
|
|
@@ -33931,13 +33940,13 @@ var OtherInput = (_ref7) => {
|
|
|
33931
33940
|
setOtherValue(input);
|
|
33932
33941
|
debouncedHandleChange(input);
|
|
33933
33942
|
}, [debouncedHandleChange]);
|
|
33934
|
-
return /* @__PURE__ */
|
|
33943
|
+
return /* @__PURE__ */ React45__default.createElement(TextField, {
|
|
33935
33944
|
value: otherValue,
|
|
33936
33945
|
onChange: handleInputChange,
|
|
33937
33946
|
isDisabled: disabled,
|
|
33938
33947
|
isInvalid: hasError,
|
|
33939
33948
|
className
|
|
33940
|
-
}, /* @__PURE__ */
|
|
33949
|
+
}, /* @__PURE__ */ React45__default.createElement(Input$1, {
|
|
33941
33950
|
placeholder,
|
|
33942
33951
|
maxLength,
|
|
33943
33952
|
"aria-label": ariaLabel
|
|
@@ -33991,12 +34000,12 @@ var DateInput = (_ref) => {
|
|
|
33991
34000
|
[SupportedDateParts.DAY]: findChildOfType(children, DateInput.Day),
|
|
33992
34001
|
[SupportedDateParts.YEAR]: findChildOfType(children, DateInput.Year)
|
|
33993
34002
|
};
|
|
33994
|
-
return /* @__PURE__ */
|
|
34003
|
+
return /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
33995
34004
|
fieldId: id,
|
|
33996
34005
|
renderLabel: () => applyInternalProps(labelElement, {
|
|
33997
34006
|
as: "div"
|
|
33998
34007
|
}),
|
|
33999
|
-
renderInput: () => /* @__PURE__ */
|
|
34008
|
+
renderInput: () => /* @__PURE__ */ React45__default.createElement(FieldsetHeadless, {
|
|
34000
34009
|
id: inputId,
|
|
34001
34010
|
ariaLabelledBy: labelId,
|
|
34002
34011
|
ariaDescribedBy,
|
|
@@ -34004,7 +34013,7 @@ var DateInput = (_ref) => {
|
|
|
34004
34013
|
onBlur,
|
|
34005
34014
|
onFocus
|
|
34006
34015
|
}, dateElementsByPart[dateFormat[0]], dateElementsByPart[dateFormat[1]], dateElementsByPart[dateFormat[2]]),
|
|
34007
|
-
renderDescription: () => /* @__PURE__ */
|
|
34016
|
+
renderDescription: () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, descriptionElement, errorElement)
|
|
34008
34017
|
});
|
|
34009
34018
|
};
|
|
34010
34019
|
var Month = (_ref2) => {
|
|
@@ -34038,25 +34047,25 @@ var Month = (_ref2) => {
|
|
|
34038
34047
|
}, id);
|
|
34039
34048
|
const labelElement = findChildOfType(children, Month.Label);
|
|
34040
34049
|
const optionsElement = findChildOfType(children, Month.Options);
|
|
34041
|
-
return /* @__PURE__ */
|
|
34050
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
34042
34051
|
className,
|
|
34043
34052
|
"data-date-field": true
|
|
34044
|
-
}, showDateLabels ? labelElement : null, /* @__PURE__ */
|
|
34053
|
+
}, showDateLabels ? labelElement : null, /* @__PURE__ */ React45__default.createElement(Select, {
|
|
34045
34054
|
value: partValue || null,
|
|
34046
34055
|
onChange: handleMonthChange,
|
|
34047
34056
|
isDisabled: disabled,
|
|
34048
34057
|
isInvalid: partError
|
|
34049
|
-
}, /* @__PURE__ */
|
|
34058
|
+
}, /* @__PURE__ */ React45__default.createElement(Button, {
|
|
34050
34059
|
ref: buttonRef,
|
|
34051
34060
|
id: inputId,
|
|
34052
34061
|
"data-hook": SupportedDateParts.MONTH
|
|
34053
|
-
}, /* @__PURE__ */
|
|
34062
|
+
}, /* @__PURE__ */ React45__default.createElement(SelectValue, null)), optionsElement));
|
|
34054
34063
|
};
|
|
34055
34064
|
var MonthLabel = (_ref3) => {
|
|
34056
34065
|
let {
|
|
34057
34066
|
className
|
|
34058
34067
|
} = _ref3;
|
|
34059
|
-
return /* @__PURE__ */
|
|
34068
|
+
return /* @__PURE__ */ React45__default.createElement(DateLabel, {
|
|
34060
34069
|
datePart: SupportedDateParts.MONTH,
|
|
34061
34070
|
className
|
|
34062
34071
|
});
|
|
@@ -34070,10 +34079,10 @@ var MonthOptions = (_ref4) => {
|
|
|
34070
34079
|
locale
|
|
34071
34080
|
} = useConfig();
|
|
34072
34081
|
const months = useMemo(() => getMonthList(locale), [locale]);
|
|
34073
|
-
const optionElement = findChildOfType(children, MonthOptions.Option) ?? /* @__PURE__ */
|
|
34074
|
-
return /* @__PURE__ */
|
|
34082
|
+
const optionElement = findChildOfType(children, MonthOptions.Option) ?? /* @__PURE__ */ React45__default.createElement(MonthOptions.Option, null);
|
|
34083
|
+
return /* @__PURE__ */ React45__default.createElement(Popover, {
|
|
34075
34084
|
className
|
|
34076
|
-
}, /* @__PURE__ */
|
|
34085
|
+
}, /* @__PURE__ */ React45__default.createElement(ListBox, null, months.map((month, index) => applyInternalProps(optionElement, {
|
|
34077
34086
|
key: String(index + 1),
|
|
34078
34087
|
value: String(index + 1),
|
|
34079
34088
|
label: month
|
|
@@ -34088,7 +34097,7 @@ var MonthOption = (_ref5) => {
|
|
|
34088
34097
|
value,
|
|
34089
34098
|
label
|
|
34090
34099
|
} = internal;
|
|
34091
|
-
return /* @__PURE__ */
|
|
34100
|
+
return /* @__PURE__ */ React45__default.createElement(ListBoxItem, {
|
|
34092
34101
|
className,
|
|
34093
34102
|
id: value,
|
|
34094
34103
|
textValue: label
|
|
@@ -34113,10 +34122,10 @@ var Day = (_ref6) => {
|
|
|
34113
34122
|
} = useDatePart(SupportedDateParts.DAY);
|
|
34114
34123
|
const labelElement = findChildOfType(children, Day.Label);
|
|
34115
34124
|
const inputElement = findChildOfType(children, Day.Input);
|
|
34116
|
-
return /* @__PURE__ */
|
|
34125
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
34117
34126
|
className,
|
|
34118
34127
|
"data-date-field": true
|
|
34119
|
-
}, showDateLabels && labelElement, /* @__PURE__ */
|
|
34128
|
+
}, showDateLabels && labelElement, /* @__PURE__ */ React45__default.createElement(TextField, {
|
|
34120
34129
|
value: partValue,
|
|
34121
34130
|
onChange: onPartChange,
|
|
34122
34131
|
isDisabled: disabled,
|
|
@@ -34127,7 +34136,7 @@ var DayLabel = (_ref7) => {
|
|
|
34127
34136
|
let {
|
|
34128
34137
|
className
|
|
34129
34138
|
} = _ref7;
|
|
34130
|
-
return /* @__PURE__ */
|
|
34139
|
+
return /* @__PURE__ */ React45__default.createElement(DateLabel, {
|
|
34131
34140
|
datePart: SupportedDateParts.DAY,
|
|
34132
34141
|
className
|
|
34133
34142
|
});
|
|
@@ -34157,7 +34166,7 @@ var DayInput = (_ref8) => {
|
|
|
34157
34166
|
(_inputRef$current = inputRef.current) == null || _inputRef$current.focus();
|
|
34158
34167
|
}
|
|
34159
34168
|
}, id);
|
|
34160
|
-
return /* @__PURE__ */
|
|
34169
|
+
return /* @__PURE__ */ React45__default.createElement(Input$1, {
|
|
34161
34170
|
ref: inputRef,
|
|
34162
34171
|
id: inputId,
|
|
34163
34172
|
className,
|
|
@@ -34185,10 +34194,10 @@ var Year = (_ref9) => {
|
|
|
34185
34194
|
} = useDatePart(SupportedDateParts.YEAR);
|
|
34186
34195
|
const labelElement = findChildOfType(children, Year.Label);
|
|
34187
34196
|
const inputElement = findChildOfType(children, Year.Input);
|
|
34188
|
-
return /* @__PURE__ */
|
|
34197
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
34189
34198
|
className,
|
|
34190
34199
|
"data-date-field": true
|
|
34191
|
-
}, showDateLabels && labelElement, /* @__PURE__ */
|
|
34200
|
+
}, showDateLabels && labelElement, /* @__PURE__ */ React45__default.createElement(TextField, {
|
|
34192
34201
|
value: partValue,
|
|
34193
34202
|
onChange: onPartChange,
|
|
34194
34203
|
isDisabled: disabled,
|
|
@@ -34199,7 +34208,7 @@ var YearLabel = (_ref0) => {
|
|
|
34199
34208
|
let {
|
|
34200
34209
|
className
|
|
34201
34210
|
} = _ref0;
|
|
34202
|
-
return /* @__PURE__ */
|
|
34211
|
+
return /* @__PURE__ */ React45__default.createElement(DateLabel, {
|
|
34203
34212
|
datePart: SupportedDateParts.YEAR,
|
|
34204
34213
|
className
|
|
34205
34214
|
});
|
|
@@ -34229,7 +34238,7 @@ var YearInput = (_ref1) => {
|
|
|
34229
34238
|
(_inputRef$current2 = inputRef.current) == null || _inputRef$current2.focus();
|
|
34230
34239
|
}
|
|
34231
34240
|
}, id);
|
|
34232
|
-
return /* @__PURE__ */
|
|
34241
|
+
return /* @__PURE__ */ React45__default.createElement(Input$1, {
|
|
34233
34242
|
ref: inputRef,
|
|
34234
34243
|
id: inputId,
|
|
34235
34244
|
className,
|
|
@@ -34301,7 +34310,7 @@ function DateLabel(_ref10) {
|
|
|
34301
34310
|
} = useTranslation();
|
|
34302
34311
|
const translationKey = `field.date.label.${datePart.toLowerCase()}`;
|
|
34303
34312
|
const label = t(translationKey);
|
|
34304
|
-
return /* @__PURE__ */
|
|
34313
|
+
return /* @__PURE__ */ React45__default.createElement("label", {
|
|
34305
34314
|
id: labelId,
|
|
34306
34315
|
htmlFor: inputId,
|
|
34307
34316
|
className
|
|
@@ -35032,10 +35041,10 @@ var DatePicker = (_ref) => {
|
|
|
35032
35041
|
const descriptionElement = findChildOfType(children, DatePicker.Description);
|
|
35033
35042
|
const errorElement = findChildOfType(children, DatePicker.Error);
|
|
35034
35043
|
const dateValue = stringToDateValue(value);
|
|
35035
|
-
return /* @__PURE__ */
|
|
35044
|
+
return /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
35036
35045
|
fieldId: id,
|
|
35037
35046
|
renderLabel: () => labelElement,
|
|
35038
|
-
renderInput: () => /* @__PURE__ */
|
|
35047
|
+
renderInput: () => /* @__PURE__ */ React45__default.createElement(DatePicker$1, {
|
|
35039
35048
|
value: dateValue,
|
|
35040
35049
|
onChange: handleChange,
|
|
35041
35050
|
isDisabled: disabled,
|
|
@@ -35043,7 +35052,7 @@ var DatePicker = (_ref) => {
|
|
|
35043
35052
|
onBlur,
|
|
35044
35053
|
onFocus
|
|
35045
35054
|
}, controlElement, calendarElement),
|
|
35046
|
-
renderDescription: () => /* @__PURE__ */
|
|
35055
|
+
renderDescription: () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, descriptionElement, errorElement)
|
|
35047
35056
|
});
|
|
35048
35057
|
};
|
|
35049
35058
|
var Control = (_ref2) => {
|
|
@@ -35055,7 +35064,7 @@ var Control = (_ref2) => {
|
|
|
35055
35064
|
inputId,
|
|
35056
35065
|
ariaDescribedBy
|
|
35057
35066
|
} = useFieldAttributes2();
|
|
35058
|
-
return /* @__PURE__ */
|
|
35067
|
+
return /* @__PURE__ */ React45__default.createElement(Group, {
|
|
35059
35068
|
id: inputId,
|
|
35060
35069
|
"aria-describedby": ariaDescribedBy,
|
|
35061
35070
|
className
|
|
@@ -35074,9 +35083,9 @@ var Input2 = (_ref3) => {
|
|
|
35074
35083
|
var _firstSegmentRef$curr;
|
|
35075
35084
|
(_firstSegmentRef$curr = firstSegmentRef.current) == null || _firstSegmentRef$curr.focus();
|
|
35076
35085
|
}, id);
|
|
35077
|
-
return /* @__PURE__ */
|
|
35086
|
+
return /* @__PURE__ */ React45__default.createElement(DateInput$1, {
|
|
35078
35087
|
className
|
|
35079
|
-
}, (segment) => /* @__PURE__ */
|
|
35088
|
+
}, (segment) => /* @__PURE__ */ React45__default.createElement(DateSegment, {
|
|
35080
35089
|
segment,
|
|
35081
35090
|
ref: (node) => {
|
|
35082
35091
|
if (!node && hasAssignedRef.current) {
|
|
@@ -35096,7 +35105,7 @@ var Trigger = (_ref4) => {
|
|
|
35096
35105
|
let {
|
|
35097
35106
|
className
|
|
35098
35107
|
} = _ref4;
|
|
35099
|
-
return /* @__PURE__ */
|
|
35108
|
+
return /* @__PURE__ */ React45__default.createElement(Button, {
|
|
35100
35109
|
className
|
|
35101
35110
|
});
|
|
35102
35111
|
};
|
|
@@ -35108,16 +35117,16 @@ var Calendar = (_ref5) => {
|
|
|
35108
35117
|
const {
|
|
35109
35118
|
firstDayOfWeek
|
|
35110
35119
|
} = useFieldPropsV2();
|
|
35111
|
-
const dayElement = findChildOfType(children, Calendar.Day) ?? /* @__PURE__ */
|
|
35112
|
-
return /* @__PURE__ */
|
|
35120
|
+
const dayElement = findChildOfType(children, Calendar.Day) ?? /* @__PURE__ */ React45__default.createElement(Calendar.Day, null);
|
|
35121
|
+
return /* @__PURE__ */ React45__default.createElement(Popover, {
|
|
35113
35122
|
className
|
|
35114
|
-
}, /* @__PURE__ */
|
|
35123
|
+
}, /* @__PURE__ */ React45__default.createElement(Dialog, null, /* @__PURE__ */ React45__default.createElement(Calendar$1, {
|
|
35115
35124
|
firstDayOfWeek: convertFirstDayOfWeek(firstDayOfWeek)
|
|
35116
|
-
}, /* @__PURE__ */
|
|
35125
|
+
}, /* @__PURE__ */ React45__default.createElement("header", null, /* @__PURE__ */ React45__default.createElement(Button, {
|
|
35117
35126
|
slot: "previous"
|
|
35118
|
-
}, "\u2039"), /* @__PURE__ */
|
|
35127
|
+
}, "\u2039"), /* @__PURE__ */ React45__default.createElement(Heading, null), /* @__PURE__ */ React45__default.createElement(Button, {
|
|
35119
35128
|
slot: "next"
|
|
35120
|
-
}, "\u203A")), /* @__PURE__ */
|
|
35129
|
+
}, "\u203A")), /* @__PURE__ */ React45__default.createElement(CalendarGrid, null, (date) => applyInternalProps(dayElement, {
|
|
35121
35130
|
date
|
|
35122
35131
|
})))));
|
|
35123
35132
|
};
|
|
@@ -35129,7 +35138,7 @@ var Day2 = (_ref6) => {
|
|
|
35129
35138
|
const {
|
|
35130
35139
|
date
|
|
35131
35140
|
} = internal;
|
|
35132
|
-
return /* @__PURE__ */
|
|
35141
|
+
return /* @__PURE__ */ React45__default.createElement(CalendarCell, {
|
|
35133
35142
|
className,
|
|
35134
35143
|
date
|
|
35135
35144
|
});
|
|
@@ -35199,12 +35208,12 @@ var DateTimeInput = (_ref) => {
|
|
|
35199
35208
|
[SupportedDateParts.YEAR]: findChildOfType(children, DateTimeInput.Year)
|
|
35200
35209
|
};
|
|
35201
35210
|
const timeElement = findChildOfType(children, DateTimeInput.Time);
|
|
35202
|
-
return /* @__PURE__ */
|
|
35211
|
+
return /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
35203
35212
|
fieldId: id,
|
|
35204
35213
|
renderLabel: () => applyInternalProps(labelElement, {
|
|
35205
35214
|
as: "div"
|
|
35206
35215
|
}),
|
|
35207
|
-
renderInput: () => /* @__PURE__ */
|
|
35216
|
+
renderInput: () => /* @__PURE__ */ React45__default.createElement(FieldsetHeadless, {
|
|
35208
35217
|
id: inputId,
|
|
35209
35218
|
ariaLabelledBy: labelId,
|
|
35210
35219
|
ariaDescribedBy,
|
|
@@ -35212,7 +35221,7 @@ var DateTimeInput = (_ref) => {
|
|
|
35212
35221
|
onBlur,
|
|
35213
35222
|
onFocus
|
|
35214
35223
|
}, dateElementsByPart[dateFormat[0]], dateElementsByPart[dateFormat[1]], dateElementsByPart[dateFormat[2]], timeElement),
|
|
35215
|
-
renderDescription: () => /* @__PURE__ */
|
|
35224
|
+
renderDescription: () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, descriptionElement, errorElement)
|
|
35216
35225
|
});
|
|
35217
35226
|
};
|
|
35218
35227
|
var Month2 = (_ref2) => {
|
|
@@ -35246,25 +35255,25 @@ var Month2 = (_ref2) => {
|
|
|
35246
35255
|
}, id);
|
|
35247
35256
|
const labelElement = findChildOfType(children, Month2.Label);
|
|
35248
35257
|
const optionsElement = findChildOfType(children, Month2.Options);
|
|
35249
|
-
return /* @__PURE__ */
|
|
35258
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
35250
35259
|
className,
|
|
35251
35260
|
"data-date-field": true
|
|
35252
|
-
}, showDateLabels ? labelElement : null, /* @__PURE__ */
|
|
35261
|
+
}, showDateLabels ? labelElement : null, /* @__PURE__ */ React45__default.createElement(Select, {
|
|
35253
35262
|
value: partValue || null,
|
|
35254
35263
|
onChange: handleMonthChange,
|
|
35255
35264
|
isDisabled: disabled,
|
|
35256
35265
|
isInvalid: partError
|
|
35257
|
-
}, /* @__PURE__ */
|
|
35266
|
+
}, /* @__PURE__ */ React45__default.createElement(Button, {
|
|
35258
35267
|
ref: buttonRef,
|
|
35259
35268
|
id: inputId,
|
|
35260
35269
|
"data-hook": SupportedDateParts.MONTH
|
|
35261
|
-
}, /* @__PURE__ */
|
|
35270
|
+
}, /* @__PURE__ */ React45__default.createElement(SelectValue, null)), optionsElement));
|
|
35262
35271
|
};
|
|
35263
35272
|
var MonthLabel2 = (_ref3) => {
|
|
35264
35273
|
let {
|
|
35265
35274
|
className
|
|
35266
35275
|
} = _ref3;
|
|
35267
|
-
return /* @__PURE__ */
|
|
35276
|
+
return /* @__PURE__ */ React45__default.createElement(DateTimeLabel, {
|
|
35268
35277
|
datePart: SupportedDateParts.MONTH,
|
|
35269
35278
|
className
|
|
35270
35279
|
});
|
|
@@ -35278,10 +35287,10 @@ var MonthOptions2 = (_ref4) => {
|
|
|
35278
35287
|
locale
|
|
35279
35288
|
} = useConfig();
|
|
35280
35289
|
const months = useMemo(() => getMonthList(locale), [locale]);
|
|
35281
|
-
const optionElement = findChildOfType(children, MonthOptions2.Option) ?? /* @__PURE__ */
|
|
35282
|
-
return /* @__PURE__ */
|
|
35290
|
+
const optionElement = findChildOfType(children, MonthOptions2.Option) ?? /* @__PURE__ */ React45__default.createElement(MonthOptions2.Option, null);
|
|
35291
|
+
return /* @__PURE__ */ React45__default.createElement(Popover, {
|
|
35283
35292
|
className
|
|
35284
|
-
}, /* @__PURE__ */
|
|
35293
|
+
}, /* @__PURE__ */ React45__default.createElement(ListBox, null, months.map((month, index) => applyInternalProps(optionElement, {
|
|
35285
35294
|
key: String(index + 1),
|
|
35286
35295
|
value: String(index + 1),
|
|
35287
35296
|
label: month
|
|
@@ -35296,7 +35305,7 @@ var MonthOption2 = (_ref5) => {
|
|
|
35296
35305
|
value,
|
|
35297
35306
|
label
|
|
35298
35307
|
} = internal;
|
|
35299
|
-
return /* @__PURE__ */
|
|
35308
|
+
return /* @__PURE__ */ React45__default.createElement(ListBoxItem, {
|
|
35300
35309
|
className,
|
|
35301
35310
|
id: value,
|
|
35302
35311
|
textValue: label
|
|
@@ -35321,10 +35330,10 @@ var Day3 = (_ref6) => {
|
|
|
35321
35330
|
} = useFieldPart(SupportedDateParts.DAY);
|
|
35322
35331
|
const labelElement = findChildOfType(children, Day3.Label);
|
|
35323
35332
|
const inputElement = findChildOfType(children, Day3.Input);
|
|
35324
|
-
return /* @__PURE__ */
|
|
35333
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
35325
35334
|
className,
|
|
35326
35335
|
"data-date-field": true
|
|
35327
|
-
}, showDateLabels && labelElement, /* @__PURE__ */
|
|
35336
|
+
}, showDateLabels && labelElement, /* @__PURE__ */ React45__default.createElement(TextField, {
|
|
35328
35337
|
value: partValue,
|
|
35329
35338
|
onChange: onPartChange,
|
|
35330
35339
|
isDisabled: disabled,
|
|
@@ -35335,7 +35344,7 @@ var DayLabel2 = (_ref7) => {
|
|
|
35335
35344
|
let {
|
|
35336
35345
|
className
|
|
35337
35346
|
} = _ref7;
|
|
35338
|
-
return /* @__PURE__ */
|
|
35347
|
+
return /* @__PURE__ */ React45__default.createElement(DateTimeLabel, {
|
|
35339
35348
|
datePart: SupportedDateParts.DAY,
|
|
35340
35349
|
className
|
|
35341
35350
|
});
|
|
@@ -35365,7 +35374,7 @@ var DayInput2 = (_ref8) => {
|
|
|
35365
35374
|
(_inputRef$current = inputRef.current) == null || _inputRef$current.focus();
|
|
35366
35375
|
}
|
|
35367
35376
|
}, id);
|
|
35368
|
-
return /* @__PURE__ */
|
|
35377
|
+
return /* @__PURE__ */ React45__default.createElement(Input$1, {
|
|
35369
35378
|
ref: inputRef,
|
|
35370
35379
|
id: inputId,
|
|
35371
35380
|
className,
|
|
@@ -35393,10 +35402,10 @@ var Year2 = (_ref9) => {
|
|
|
35393
35402
|
} = useFieldPart(SupportedDateParts.YEAR);
|
|
35394
35403
|
const labelElement = findChildOfType(children, Year2.Label);
|
|
35395
35404
|
const inputElement = findChildOfType(children, Year2.Input);
|
|
35396
|
-
return /* @__PURE__ */
|
|
35405
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
35397
35406
|
className,
|
|
35398
35407
|
"data-date-field": true
|
|
35399
|
-
}, showDateLabels && labelElement, /* @__PURE__ */
|
|
35408
|
+
}, showDateLabels && labelElement, /* @__PURE__ */ React45__default.createElement(TextField, {
|
|
35400
35409
|
value: partValue,
|
|
35401
35410
|
onChange: onPartChange,
|
|
35402
35411
|
isDisabled: disabled,
|
|
@@ -35407,7 +35416,7 @@ var YearLabel2 = (_ref0) => {
|
|
|
35407
35416
|
let {
|
|
35408
35417
|
className
|
|
35409
35418
|
} = _ref0;
|
|
35410
|
-
return /* @__PURE__ */
|
|
35419
|
+
return /* @__PURE__ */ React45__default.createElement(DateTimeLabel, {
|
|
35411
35420
|
datePart: SupportedDateParts.YEAR,
|
|
35412
35421
|
className
|
|
35413
35422
|
});
|
|
@@ -35437,7 +35446,7 @@ var YearInput2 = (_ref1) => {
|
|
|
35437
35446
|
(_inputRef$current2 = inputRef.current) == null || _inputRef$current2.focus();
|
|
35438
35447
|
}
|
|
35439
35448
|
}, id);
|
|
35440
|
-
return /* @__PURE__ */
|
|
35449
|
+
return /* @__PURE__ */ React45__default.createElement(Input$1, {
|
|
35441
35450
|
ref: inputRef,
|
|
35442
35451
|
id: inputId,
|
|
35443
35452
|
className,
|
|
@@ -35466,10 +35475,10 @@ var Time = (_ref10) => {
|
|
|
35466
35475
|
} = useFieldPart("time");
|
|
35467
35476
|
const labelElement = findChildOfType(children, Time.Label);
|
|
35468
35477
|
const inputElement = findChildOfType(children, Time.Input);
|
|
35469
|
-
return /* @__PURE__ */
|
|
35478
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
35470
35479
|
className,
|
|
35471
35480
|
"data-date-field": true
|
|
35472
|
-
}, showDateLabels && labelElement, /* @__PURE__ */
|
|
35481
|
+
}, showDateLabels && labelElement, /* @__PURE__ */ React45__default.createElement(TimeField, {
|
|
35473
35482
|
value: partValue,
|
|
35474
35483
|
onChange: onPartChange,
|
|
35475
35484
|
isDisabled: disabled,
|
|
@@ -35489,7 +35498,7 @@ var TimeLabel = (_ref11) => {
|
|
|
35489
35498
|
t
|
|
35490
35499
|
} = useTranslation();
|
|
35491
35500
|
const label = t("field.date.label.time");
|
|
35492
|
-
return /* @__PURE__ */
|
|
35501
|
+
return /* @__PURE__ */ React45__default.createElement("label", {
|
|
35493
35502
|
id: labelId,
|
|
35494
35503
|
htmlFor: inputId,
|
|
35495
35504
|
className
|
|
@@ -35503,28 +35512,28 @@ var TimeInput = (_ref12) => {
|
|
|
35503
35512
|
const hourElement = findChildOfType(children, Time.Hour);
|
|
35504
35513
|
const minuteElement = findChildOfType(children, Time.Minute);
|
|
35505
35514
|
const periodElement = findChildOfType(children, Time.Period);
|
|
35506
|
-
return /* @__PURE__ */
|
|
35515
|
+
return /* @__PURE__ */ React45__default.createElement(DateInput$1, {
|
|
35507
35516
|
className
|
|
35508
35517
|
}, (segment) => {
|
|
35509
35518
|
switch (segment.type) {
|
|
35510
35519
|
case "hour":
|
|
35511
35520
|
return applyInternalProps(hourElement, {
|
|
35512
35521
|
segment
|
|
35513
|
-
}) || /* @__PURE__ */
|
|
35522
|
+
}) || /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null);
|
|
35514
35523
|
case "minute":
|
|
35515
35524
|
return applyInternalProps(minuteElement, {
|
|
35516
35525
|
segment
|
|
35517
|
-
}) || /* @__PURE__ */
|
|
35526
|
+
}) || /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null);
|
|
35518
35527
|
case "dayPeriod":
|
|
35519
35528
|
return applyInternalProps(periodElement, {
|
|
35520
35529
|
segment
|
|
35521
|
-
}) || /* @__PURE__ */
|
|
35530
|
+
}) || /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null);
|
|
35522
35531
|
case "literal":
|
|
35523
|
-
return /* @__PURE__ */
|
|
35532
|
+
return /* @__PURE__ */ React45__default.createElement(DateSegment, {
|
|
35524
35533
|
segment
|
|
35525
35534
|
});
|
|
35526
35535
|
default:
|
|
35527
|
-
return /* @__PURE__ */
|
|
35536
|
+
return /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null);
|
|
35528
35537
|
}
|
|
35529
35538
|
});
|
|
35530
35539
|
};
|
|
@@ -35543,7 +35552,7 @@ var Hour = (_ref13) => {
|
|
|
35543
35552
|
t
|
|
35544
35553
|
} = useTranslation();
|
|
35545
35554
|
const placeholder = hidePlaceholder ? void 0 : t("field.date.placeholder.hour");
|
|
35546
|
-
return /* @__PURE__ */
|
|
35555
|
+
return /* @__PURE__ */ React45__default.createElement(DateSegment, _extends({
|
|
35547
35556
|
segment,
|
|
35548
35557
|
className
|
|
35549
35558
|
}, placeholder && {
|
|
@@ -35565,7 +35574,7 @@ var Minute = (_ref14) => {
|
|
|
35565
35574
|
t
|
|
35566
35575
|
} = useTranslation();
|
|
35567
35576
|
const placeholder = hidePlaceholder ? void 0 : t("field.date.placeholder.minute");
|
|
35568
|
-
return /* @__PURE__ */
|
|
35577
|
+
return /* @__PURE__ */ React45__default.createElement(DateSegment, _extends({
|
|
35569
35578
|
segment,
|
|
35570
35579
|
className
|
|
35571
35580
|
}, placeholder && {
|
|
@@ -35587,7 +35596,7 @@ var Period = (_ref15) => {
|
|
|
35587
35596
|
t
|
|
35588
35597
|
} = useTranslation();
|
|
35589
35598
|
const placeholder = hidePlaceholder ? void 0 : t("field.date.placeholder.period");
|
|
35590
|
-
return /* @__PURE__ */
|
|
35599
|
+
return /* @__PURE__ */ React45__default.createElement(DateSegment, _extends({
|
|
35591
35600
|
segment,
|
|
35592
35601
|
className
|
|
35593
35602
|
}, placeholder && {
|
|
@@ -35680,7 +35689,7 @@ function DateTimeLabel(_ref16) {
|
|
|
35680
35689
|
} = useTranslation();
|
|
35681
35690
|
const translationKey = `field.date.label.${datePart.toLowerCase()}`;
|
|
35682
35691
|
const label = t(translationKey);
|
|
35683
|
-
return /* @__PURE__ */
|
|
35692
|
+
return /* @__PURE__ */ React45__default.createElement("label", {
|
|
35684
35693
|
id: labelId,
|
|
35685
35694
|
htmlFor: inputId,
|
|
35686
35695
|
className
|
|
@@ -35728,10 +35737,10 @@ var Dropdown = (_ref) => {
|
|
|
35728
35737
|
const optionsElement = findChildOfType(children, Dropdown.Options);
|
|
35729
35738
|
const descriptionElement = findChildOfType(children, Dropdown.Description);
|
|
35730
35739
|
const errorElement = findChildOfType(children, Dropdown.Error);
|
|
35731
|
-
return /* @__PURE__ */
|
|
35740
|
+
return /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
35732
35741
|
fieldId: id,
|
|
35733
35742
|
renderLabel: () => labelElement,
|
|
35734
|
-
renderInput: () => /* @__PURE__ */
|
|
35743
|
+
renderInput: () => /* @__PURE__ */ React45__default.createElement(Select, {
|
|
35735
35744
|
value: value ?? null,
|
|
35736
35745
|
onChange: handleChange,
|
|
35737
35746
|
isDisabled: disabled,
|
|
@@ -35740,7 +35749,7 @@ var Dropdown = (_ref) => {
|
|
|
35740
35749
|
onBlur,
|
|
35741
35750
|
onFocus
|
|
35742
35751
|
}, triggerElement, optionsElement),
|
|
35743
|
-
renderDescription: () => /* @__PURE__ */
|
|
35752
|
+
renderDescription: () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, descriptionElement, errorElement)
|
|
35744
35753
|
});
|
|
35745
35754
|
};
|
|
35746
35755
|
var Trigger2 = (_ref2) => {
|
|
@@ -35759,12 +35768,12 @@ var Trigger2 = (_ref2) => {
|
|
|
35759
35768
|
var _ref$current;
|
|
35760
35769
|
(_ref$current = ref.current) == null || _ref$current.focus();
|
|
35761
35770
|
}, id);
|
|
35762
|
-
return /* @__PURE__ */
|
|
35771
|
+
return /* @__PURE__ */ React45__default.createElement(Button, {
|
|
35763
35772
|
ref,
|
|
35764
35773
|
id: inputId,
|
|
35765
35774
|
"aria-describedby": ariaDescribedBy,
|
|
35766
35775
|
className
|
|
35767
|
-
}, /* @__PURE__ */
|
|
35776
|
+
}, /* @__PURE__ */ React45__default.createElement(SelectValue, null));
|
|
35768
35777
|
};
|
|
35769
35778
|
var Options2 = (_ref3) => {
|
|
35770
35779
|
let {
|
|
@@ -35775,9 +35784,9 @@ var Options2 = (_ref3) => {
|
|
|
35775
35784
|
options
|
|
35776
35785
|
} = useFieldPropsV2();
|
|
35777
35786
|
const optionElement = findChildOfType(children, Options2.Option);
|
|
35778
|
-
return /* @__PURE__ */
|
|
35787
|
+
return /* @__PURE__ */ React45__default.createElement(Popover, {
|
|
35779
35788
|
className
|
|
35780
|
-
}, /* @__PURE__ */
|
|
35789
|
+
}, /* @__PURE__ */ React45__default.createElement(ListBox, null, options.map((option) => applyInternalProps(optionElement, {
|
|
35781
35790
|
key: option.value,
|
|
35782
35791
|
value: option.value,
|
|
35783
35792
|
label: option.label
|
|
@@ -35792,7 +35801,7 @@ var Option2 = (_ref4) => {
|
|
|
35792
35801
|
value,
|
|
35793
35802
|
label
|
|
35794
35803
|
} = internal;
|
|
35795
|
-
return /* @__PURE__ */
|
|
35804
|
+
return /* @__PURE__ */ React45__default.createElement(ListBoxItem, {
|
|
35796
35805
|
className,
|
|
35797
35806
|
id: value,
|
|
35798
35807
|
textValue: label
|
|
@@ -35833,7 +35842,7 @@ var DropZone = (_ref) => {
|
|
|
35833
35842
|
const titleElement = findChildOfType(children, DropZone.Title);
|
|
35834
35843
|
const subtitleElement = findChildOfType(children, DropZone.Subtitle);
|
|
35835
35844
|
const buttonElement = findChildOfType(children, DropZone.Button);
|
|
35836
|
-
return /* @__PURE__ */
|
|
35845
|
+
return /* @__PURE__ */ React45__default.createElement(DropZone$1, {
|
|
35837
35846
|
"aria-describedby": ariaDescribedBy,
|
|
35838
35847
|
className,
|
|
35839
35848
|
isDisabled: disabled,
|
|
@@ -35853,7 +35862,7 @@ var DropZone = (_ref) => {
|
|
|
35853
35862
|
handleFileChange(dataTransfer.files);
|
|
35854
35863
|
}
|
|
35855
35864
|
}
|
|
35856
|
-
}, /* @__PURE__ */
|
|
35865
|
+
}, /* @__PURE__ */ React45__default.createElement(Text, {
|
|
35857
35866
|
slot: "label"
|
|
35858
35867
|
}, titleElement, subtitleElement), !limitReached && buttonElement);
|
|
35859
35868
|
};
|
|
@@ -35868,7 +35877,7 @@ var DropZoneTitle = (_ref2) => {
|
|
|
35868
35877
|
limitReached
|
|
35869
35878
|
} = useFileUploadContext();
|
|
35870
35879
|
const title = useMemo(() => limitReached ? t("file-upload.dropzone.limit-reached.title") : t("file-upload.dropzone.title"), [t, limitReached]);
|
|
35871
|
-
return /* @__PURE__ */
|
|
35880
|
+
return /* @__PURE__ */ React45__default.createElement("p", {
|
|
35872
35881
|
className
|
|
35873
35882
|
}, title);
|
|
35874
35883
|
};
|
|
@@ -35883,7 +35892,7 @@ var DropZoneSubtitle = (_ref3) => {
|
|
|
35883
35892
|
limitReached
|
|
35884
35893
|
} = useFileUploadContext();
|
|
35885
35894
|
const subtitle = useMemo(() => limitReached ? t("file-upload.dropzone.limit-reached.subtitle") : t("file-upload.dropzone.subtitle"), [t, limitReached]);
|
|
35886
|
-
return /* @__PURE__ */
|
|
35895
|
+
return /* @__PURE__ */ React45__default.createElement("p", {
|
|
35887
35896
|
className
|
|
35888
35897
|
}, subtitle);
|
|
35889
35898
|
};
|
|
@@ -35919,7 +35928,7 @@ var DropZoneButton = (_ref4) => {
|
|
|
35919
35928
|
} = useFileUploadContext();
|
|
35920
35929
|
const hasFileErrors = (files == null ? void 0 : files.some((file) => file.errorMessage)) ?? false;
|
|
35921
35930
|
const hasAnyError = Boolean(hasError || errorMessage || _error || hasFileErrors);
|
|
35922
|
-
return /* @__PURE__ */
|
|
35931
|
+
return /* @__PURE__ */ React45__default.createElement(FileTrigger, {
|
|
35923
35932
|
acceptedFileTypes: accept ? accept.split(",") : void 0,
|
|
35924
35933
|
allowsMultiple: multiple,
|
|
35925
35934
|
onSelect: (fileList) => {
|
|
@@ -35930,7 +35939,7 @@ var DropZoneButton = (_ref4) => {
|
|
|
35930
35939
|
handleFileChange(dataTransfer.files);
|
|
35931
35940
|
}
|
|
35932
35941
|
}
|
|
35933
|
-
}, /* @__PURE__ */
|
|
35942
|
+
}, /* @__PURE__ */ React45__default.createElement(Button, {
|
|
35934
35943
|
ref: buttonRef,
|
|
35935
35944
|
id: inputId,
|
|
35936
35945
|
"aria-labelledby": labelId,
|
|
@@ -35942,7 +35951,7 @@ var DropZoneButton = (_ref4) => {
|
|
|
35942
35951
|
className,
|
|
35943
35952
|
onFocus,
|
|
35944
35953
|
onBlur: handleBlur
|
|
35945
|
-
}, /* @__PURE__ */
|
|
35954
|
+
}, /* @__PURE__ */ React45__default.createElement(AddSmall_default, {
|
|
35946
35955
|
"aria-hidden": "true"
|
|
35947
35956
|
}), buttonText));
|
|
35948
35957
|
};
|
|
@@ -35958,23 +35967,23 @@ init_extends();
|
|
|
35958
35967
|
function ProgressCircle(props) {
|
|
35959
35968
|
const strokeWidth = 4;
|
|
35960
35969
|
const radius = `calc(50% - ${strokeWidth / 2}px)`;
|
|
35961
|
-
return /* @__PURE__ */
|
|
35970
|
+
return /* @__PURE__ */ React45__default.createElement(ProgressBar, _extends({}, props, {
|
|
35962
35971
|
isIndeterminate: true
|
|
35963
35972
|
}), (_ref) => {
|
|
35964
35973
|
let {
|
|
35965
35974
|
percentage,
|
|
35966
35975
|
isIndeterminate
|
|
35967
35976
|
} = _ref;
|
|
35968
|
-
return /* @__PURE__ */
|
|
35977
|
+
return /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, /* @__PURE__ */ React45__default.createElement("svg", {
|
|
35969
35978
|
fill: "none",
|
|
35970
35979
|
width: "100%",
|
|
35971
35980
|
height: "100%",
|
|
35972
35981
|
viewBox: "0 0 32 32"
|
|
35973
|
-
}, /* @__PURE__ */
|
|
35982
|
+
}, /* @__PURE__ */ React45__default.createElement("circle", {
|
|
35974
35983
|
cx: "50%",
|
|
35975
35984
|
cy: "50%",
|
|
35976
35985
|
r: radius
|
|
35977
|
-
}), /* @__PURE__ */
|
|
35986
|
+
}), /* @__PURE__ */ React45__default.createElement("circle", {
|
|
35978
35987
|
cx: "50%",
|
|
35979
35988
|
cy: "50%",
|
|
35980
35989
|
r: radius,
|
|
@@ -35986,7 +35995,7 @@ function ProgressCircle(props) {
|
|
|
35986
35995
|
rotate: "-90deg",
|
|
35987
35996
|
transformOrigin: "center center"
|
|
35988
35997
|
}
|
|
35989
|
-
}, isIndeterminate && /* @__PURE__ */
|
|
35998
|
+
}, isIndeterminate && /* @__PURE__ */ React45__default.createElement("animateTransform", {
|
|
35990
35999
|
attributeName: "transform",
|
|
35991
36000
|
type: "rotate",
|
|
35992
36001
|
dur: "0.75s",
|
|
@@ -36013,7 +36022,7 @@ var File2 = (_ref) => {
|
|
|
36013
36022
|
const removeElement = findChildOfType(children, File2.Remove);
|
|
36014
36023
|
const spinnerElement = findChildOfType(children, File2.Spinner);
|
|
36015
36024
|
const errorElement = findChildOfType(children, File2.Error);
|
|
36016
|
-
return /* @__PURE__ */
|
|
36025
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
36017
36026
|
className
|
|
36018
36027
|
}, applyInternalProps(nameElement, {
|
|
36019
36028
|
fileName
|
|
@@ -36033,7 +36042,7 @@ var FileName = (_ref2) => {
|
|
|
36033
36042
|
const {
|
|
36034
36043
|
fileName
|
|
36035
36044
|
} = internal;
|
|
36036
|
-
return /* @__PURE__ */
|
|
36045
|
+
return /* @__PURE__ */ React45__default.createElement("span", {
|
|
36037
36046
|
className
|
|
36038
36047
|
}, fileName);
|
|
36039
36048
|
};
|
|
@@ -36077,7 +36086,7 @@ var FileRemove = (_ref3) => {
|
|
|
36077
36086
|
const handleClick = () => {
|
|
36078
36087
|
handleDelete(index);
|
|
36079
36088
|
};
|
|
36080
|
-
return /* @__PURE__ */
|
|
36089
|
+
return /* @__PURE__ */ React45__default.createElement(Button, {
|
|
36081
36090
|
ref: buttonRef,
|
|
36082
36091
|
"aria-disabled": disabled,
|
|
36083
36092
|
"aria-label": t("file-upload.delete-file.aria-label"),
|
|
@@ -36085,7 +36094,7 @@ var FileRemove = (_ref3) => {
|
|
|
36085
36094
|
onClick: handleClick,
|
|
36086
36095
|
className,
|
|
36087
36096
|
isDisabled: disabled
|
|
36088
|
-
}, /* @__PURE__ */
|
|
36097
|
+
}, /* @__PURE__ */ React45__default.createElement(DeleteSmall_default, null));
|
|
36089
36098
|
};
|
|
36090
36099
|
var FileError = (_ref4) => {
|
|
36091
36100
|
let {
|
|
@@ -36098,10 +36107,10 @@ var FileError = (_ref4) => {
|
|
|
36098
36107
|
if (!errorMessage) {
|
|
36099
36108
|
return null;
|
|
36100
36109
|
}
|
|
36101
|
-
return /* @__PURE__ */
|
|
36110
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
36102
36111
|
className,
|
|
36103
36112
|
role: "alert"
|
|
36104
|
-
}, /* @__PURE__ */
|
|
36113
|
+
}, /* @__PURE__ */ React45__default.createElement(StatusAlert_default, {
|
|
36105
36114
|
"aria-hidden": "true"
|
|
36106
36115
|
}), errorMessage);
|
|
36107
36116
|
};
|
|
@@ -36112,7 +36121,7 @@ var FileSpinner = (_ref5) => {
|
|
|
36112
36121
|
const {
|
|
36113
36122
|
t
|
|
36114
36123
|
} = useTranslation();
|
|
36115
|
-
return /* @__PURE__ */
|
|
36124
|
+
return /* @__PURE__ */ React45__default.createElement(ProgressCircle, {
|
|
36116
36125
|
"aria-label": t("file-upload.file.uploading-spinner.aria-label"),
|
|
36117
36126
|
className
|
|
36118
36127
|
});
|
|
@@ -36135,7 +36144,7 @@ var Files = (_ref) => {
|
|
|
36135
36144
|
if (!files || files.length === 0) {
|
|
36136
36145
|
return null;
|
|
36137
36146
|
}
|
|
36138
|
-
return /* @__PURE__ */
|
|
36147
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
36139
36148
|
className
|
|
36140
36149
|
}, files.map((fileUploadFile, index) => applyInternalProps(fileElement, {
|
|
36141
36150
|
key: fileUploadFile.file.name || index,
|
|
@@ -36430,13 +36439,13 @@ var FileUpload = (_ref) => {
|
|
|
36430
36439
|
var _buttonRef$current2;
|
|
36431
36440
|
(_buttonRef$current2 = buttonRef.current) == null || _buttonRef$current2.focus();
|
|
36432
36441
|
}, id);
|
|
36433
|
-
return /* @__PURE__ */
|
|
36442
|
+
return /* @__PURE__ */ React45__default.createElement(FileUploadContext.Provider, {
|
|
36434
36443
|
value: contextValue
|
|
36435
|
-
}, /* @__PURE__ */
|
|
36444
|
+
}, /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
36436
36445
|
fieldId: id,
|
|
36437
36446
|
renderLabel: () => labelElement,
|
|
36438
36447
|
renderInput: () => dropZoneElement,
|
|
36439
|
-
renderDescription: () => /* @__PURE__ */
|
|
36448
|
+
renderDescription: () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, errorElement, descriptionElement, explanationElement, filesElement)
|
|
36440
36449
|
}));
|
|
36441
36450
|
};
|
|
36442
36451
|
var Explanation = (_ref2) => {
|
|
@@ -36450,7 +36459,7 @@ var Explanation = (_ref2) => {
|
|
|
36450
36459
|
if (!displayText) {
|
|
36451
36460
|
return null;
|
|
36452
36461
|
}
|
|
36453
|
-
return /* @__PURE__ */
|
|
36462
|
+
return /* @__PURE__ */ React45__default.createElement("p", {
|
|
36454
36463
|
className
|
|
36455
36464
|
}, displayText);
|
|
36456
36465
|
};
|
|
@@ -36524,7 +36533,7 @@ var AddressAutofillProvider = (_ref) => {
|
|
|
36524
36533
|
onAddressSelect,
|
|
36525
36534
|
autocompleteEnabled
|
|
36526
36535
|
}), [onAddressSelect, autocompleteEnabled]);
|
|
36527
|
-
return /* @__PURE__ */
|
|
36536
|
+
return /* @__PURE__ */ React45__default.createElement(AddressAutofillContext.Provider, {
|
|
36528
36537
|
value
|
|
36529
36538
|
}, children);
|
|
36530
36539
|
};
|
|
@@ -36540,7 +36549,7 @@ var CountryCodeProvider = (_ref) => {
|
|
|
36540
36549
|
const value = useMemo(() => ({
|
|
36541
36550
|
countryCode
|
|
36542
36551
|
}), [countryCode]);
|
|
36543
|
-
return /* @__PURE__ */
|
|
36552
|
+
return /* @__PURE__ */ React45__default.createElement(CountryCodeContext.Provider, {
|
|
36544
36553
|
value
|
|
36545
36554
|
}, children);
|
|
36546
36555
|
};
|
|
@@ -36642,7 +36651,7 @@ var AddressFieldsProvider = (_ref) => {
|
|
|
36642
36651
|
const value = useMemo(() => ({
|
|
36643
36652
|
fields
|
|
36644
36653
|
}), [fields]);
|
|
36645
|
-
return /* @__PURE__ */
|
|
36654
|
+
return /* @__PURE__ */ React45__default.createElement(AddressFieldsContext.Provider, {
|
|
36646
36655
|
value
|
|
36647
36656
|
}, children);
|
|
36648
36657
|
};
|
|
@@ -36730,12 +36739,12 @@ var Country = (_ref) => {
|
|
|
36730
36739
|
const optionsElement = findChildOfType(children, Country.Options);
|
|
36731
36740
|
const descriptionElement = findChildOfType(children, Country.Description);
|
|
36732
36741
|
const errorElement = findChildOfType(children, Country.Error);
|
|
36733
|
-
return /* @__PURE__ */
|
|
36742
|
+
return /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
36734
36743
|
fieldId: id,
|
|
36735
36744
|
renderLabel: () => applyInternalProps(labelElement, {
|
|
36736
36745
|
label: countryLabel
|
|
36737
36746
|
}),
|
|
36738
|
-
renderInput: () => /* @__PURE__ */
|
|
36747
|
+
renderInput: () => /* @__PURE__ */ React45__default.createElement(ComboBox, {
|
|
36739
36748
|
selectedKey: value ?? null,
|
|
36740
36749
|
inputValue: inputValue || selectedLabel,
|
|
36741
36750
|
onSelectionChange: handleSelectionChange,
|
|
@@ -36749,7 +36758,7 @@ var Country = (_ref) => {
|
|
|
36749
36758
|
}, controlElement, applyInternalProps(optionsElement, {
|
|
36750
36759
|
options: countryOptions
|
|
36751
36760
|
})),
|
|
36752
|
-
renderDescription: () => /* @__PURE__ */
|
|
36761
|
+
renderDescription: () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, descriptionElement, errorElement)
|
|
36753
36762
|
});
|
|
36754
36763
|
};
|
|
36755
36764
|
var Control2 = (_ref2) => {
|
|
@@ -36763,7 +36772,7 @@ var Control2 = (_ref2) => {
|
|
|
36763
36772
|
} = useFieldPropsV2();
|
|
36764
36773
|
const inputElement = findChildOfType(children, Control2.Input);
|
|
36765
36774
|
const triggerElement = findChildOfType(children, Control2.Trigger);
|
|
36766
|
-
return /* @__PURE__ */
|
|
36775
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
36767
36776
|
className,
|
|
36768
36777
|
"data-disabled": disabled || void 0,
|
|
36769
36778
|
"data-invalid": hasError || void 0
|
|
@@ -36785,7 +36794,7 @@ var Input3 = (_ref3) => {
|
|
|
36785
36794
|
var _inputRef$current;
|
|
36786
36795
|
(_inputRef$current = inputRef.current) == null || _inputRef$current.focus();
|
|
36787
36796
|
}, id);
|
|
36788
|
-
return /* @__PURE__ */
|
|
36797
|
+
return /* @__PURE__ */ React45__default.createElement(Input$1, {
|
|
36789
36798
|
ref: inputRef,
|
|
36790
36799
|
id: inputId,
|
|
36791
36800
|
"aria-describedby": ariaDescribedBy,
|
|
@@ -36796,7 +36805,7 @@ var Trigger3 = (_ref4) => {
|
|
|
36796
36805
|
let {
|
|
36797
36806
|
className
|
|
36798
36807
|
} = _ref4;
|
|
36799
|
-
return /* @__PURE__ */
|
|
36808
|
+
return /* @__PURE__ */ React45__default.createElement(Button, {
|
|
36800
36809
|
className
|
|
36801
36810
|
});
|
|
36802
36811
|
};
|
|
@@ -36812,9 +36821,9 @@ var Options3 = (_ref5) => {
|
|
|
36812
36821
|
options
|
|
36813
36822
|
} = internal;
|
|
36814
36823
|
const optionElement = findChildOfType(children, Options3.Option);
|
|
36815
|
-
return /* @__PURE__ */
|
|
36824
|
+
return /* @__PURE__ */ React45__default.createElement(Popover, {
|
|
36816
36825
|
className
|
|
36817
|
-
}, /* @__PURE__ */
|
|
36826
|
+
}, /* @__PURE__ */ React45__default.createElement(ListBox, null, options.map((option) => applyInternalProps(optionElement, {
|
|
36818
36827
|
key: option.value,
|
|
36819
36828
|
value: option.value,
|
|
36820
36829
|
label: option.label
|
|
@@ -36829,7 +36838,7 @@ var Option3 = (_ref6) => {
|
|
|
36829
36838
|
value,
|
|
36830
36839
|
label
|
|
36831
36840
|
} = internal;
|
|
36832
|
-
return /* @__PURE__ */
|
|
36841
|
+
return /* @__PURE__ */ React45__default.createElement(ListBoxItem, {
|
|
36833
36842
|
className,
|
|
36834
36843
|
id: value,
|
|
36835
36844
|
textValue: label
|
|
@@ -36882,12 +36891,12 @@ var Subdivision = (_ref) => {
|
|
|
36882
36891
|
const optionsElement = findChildOfType(children, Subdivision.Options);
|
|
36883
36892
|
const descriptionElement = findChildOfType(children, Subdivision.Description);
|
|
36884
36893
|
const errorElement = findChildOfType(children, Subdivision.Error);
|
|
36885
|
-
return /* @__PURE__ */
|
|
36894
|
+
return /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
36886
36895
|
fieldId: id,
|
|
36887
36896
|
renderLabel: () => applyInternalProps(labelElement, {
|
|
36888
36897
|
label: subdivisionLabel
|
|
36889
36898
|
}),
|
|
36890
|
-
renderInput: () => /* @__PURE__ */
|
|
36899
|
+
renderInput: () => /* @__PURE__ */ React45__default.createElement(Select, {
|
|
36891
36900
|
value: value ?? null,
|
|
36892
36901
|
onChange: handleChange,
|
|
36893
36902
|
isDisabled: disabled,
|
|
@@ -36897,7 +36906,7 @@ var Subdivision = (_ref) => {
|
|
|
36897
36906
|
}, triggerElement, applyInternalProps(optionsElement, {
|
|
36898
36907
|
options: subdivisionOptions
|
|
36899
36908
|
})),
|
|
36900
|
-
renderDescription: () => /* @__PURE__ */
|
|
36909
|
+
renderDescription: () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, descriptionElement, errorElement)
|
|
36901
36910
|
});
|
|
36902
36911
|
};
|
|
36903
36912
|
var Trigger4 = (_ref2) => {
|
|
@@ -36916,12 +36925,12 @@ var Trigger4 = (_ref2) => {
|
|
|
36916
36925
|
var _ref$current;
|
|
36917
36926
|
(_ref$current = ref.current) == null || _ref$current.focus();
|
|
36918
36927
|
}, id);
|
|
36919
|
-
return /* @__PURE__ */
|
|
36928
|
+
return /* @__PURE__ */ React45__default.createElement(Button, {
|
|
36920
36929
|
ref,
|
|
36921
36930
|
id: inputId,
|
|
36922
36931
|
"aria-describedby": ariaDescribedBy,
|
|
36923
36932
|
className
|
|
36924
|
-
}, /* @__PURE__ */
|
|
36933
|
+
}, /* @__PURE__ */ React45__default.createElement(SelectValue, null));
|
|
36925
36934
|
};
|
|
36926
36935
|
var Options4 = (_ref3) => {
|
|
36927
36936
|
let {
|
|
@@ -36933,9 +36942,9 @@ var Options4 = (_ref3) => {
|
|
|
36933
36942
|
options
|
|
36934
36943
|
} = internal;
|
|
36935
36944
|
const optionElement = findChildOfType(children, Options4.Option);
|
|
36936
|
-
return /* @__PURE__ */
|
|
36945
|
+
return /* @__PURE__ */ React45__default.createElement(Popover, {
|
|
36937
36946
|
className
|
|
36938
|
-
}, /* @__PURE__ */
|
|
36947
|
+
}, /* @__PURE__ */ React45__default.createElement(ListBox, null, options.map((option) => applyInternalProps(optionElement, {
|
|
36939
36948
|
key: option.value,
|
|
36940
36949
|
value: option.value,
|
|
36941
36950
|
label: option.label
|
|
@@ -36950,7 +36959,7 @@ var Option4 = (_ref4) => {
|
|
|
36950
36959
|
value,
|
|
36951
36960
|
label
|
|
36952
36961
|
} = internal;
|
|
36953
|
-
return /* @__PURE__ */
|
|
36962
|
+
return /* @__PURE__ */ React45__default.createElement(ListBoxItem, {
|
|
36954
36963
|
className,
|
|
36955
36964
|
id: value,
|
|
36956
36965
|
textValue: label
|
|
@@ -36982,12 +36991,12 @@ var City = (_ref) => {
|
|
|
36982
36991
|
const inputElement = findChildOfType(children, City.Input);
|
|
36983
36992
|
const descriptionElement = findChildOfType(children, City.Description);
|
|
36984
36993
|
const errorElement = findChildOfType(children, City.Error);
|
|
36985
|
-
return /* @__PURE__ */
|
|
36994
|
+
return /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
36986
36995
|
fieldId: id,
|
|
36987
36996
|
renderLabel: () => applyInternalProps(labelElement, {
|
|
36988
36997
|
label: cityLabel
|
|
36989
36998
|
}),
|
|
36990
|
-
renderInput: () => /* @__PURE__ */
|
|
36999
|
+
renderInput: () => /* @__PURE__ */ React45__default.createElement(TextField, {
|
|
36991
37000
|
value: value ?? "",
|
|
36992
37001
|
onChange,
|
|
36993
37002
|
isDisabled: disabled,
|
|
@@ -36996,7 +37005,7 @@ var City = (_ref) => {
|
|
|
36996
37005
|
onBlur,
|
|
36997
37006
|
onFocus
|
|
36998
37007
|
}, inputElement),
|
|
36999
|
-
renderDescription: () => /* @__PURE__ */
|
|
37008
|
+
renderDescription: () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, descriptionElement, errorElement)
|
|
37000
37009
|
});
|
|
37001
37010
|
};
|
|
37002
37011
|
var Input4 = (_ref2) => {
|
|
@@ -37015,7 +37024,7 @@ var Input4 = (_ref2) => {
|
|
|
37015
37024
|
var _inputRef$current;
|
|
37016
37025
|
(_inputRef$current = inputRef.current) == null || _inputRef$current.focus();
|
|
37017
37026
|
}, id);
|
|
37018
|
-
return /* @__PURE__ */
|
|
37027
|
+
return /* @__PURE__ */ React45__default.createElement(Input$1, {
|
|
37019
37028
|
ref: inputRef,
|
|
37020
37029
|
id: inputId,
|
|
37021
37030
|
"aria-describedby": ariaDescribedBy,
|
|
@@ -38102,12 +38111,12 @@ var AddressLine = (_ref) => {
|
|
|
38102
38111
|
const descriptionElement = findChildOfType(children, AddressLine.Description);
|
|
38103
38112
|
const errorElement = findChildOfType(children, AddressLine.Error);
|
|
38104
38113
|
if (isAutocomplete) {
|
|
38105
|
-
return /* @__PURE__ */
|
|
38114
|
+
return /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
38106
38115
|
fieldId: id,
|
|
38107
38116
|
renderLabel: () => applyInternalProps(labelElement, {
|
|
38108
38117
|
label: addressLineLabel
|
|
38109
38118
|
}),
|
|
38110
|
-
renderInput: () => /* @__PURE__ */
|
|
38119
|
+
renderInput: () => /* @__PURE__ */ React45__default.createElement(AddressLineAutocomplete, {
|
|
38111
38120
|
value,
|
|
38112
38121
|
onChange,
|
|
38113
38122
|
disabled,
|
|
@@ -38116,15 +38125,15 @@ var AddressLine = (_ref) => {
|
|
|
38116
38125
|
onBlur,
|
|
38117
38126
|
onFocus
|
|
38118
38127
|
}, inputElement, optionsElement),
|
|
38119
|
-
renderDescription: () => /* @__PURE__ */
|
|
38128
|
+
renderDescription: () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, descriptionElement, errorElement)
|
|
38120
38129
|
});
|
|
38121
38130
|
}
|
|
38122
|
-
return /* @__PURE__ */
|
|
38131
|
+
return /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
38123
38132
|
fieldId: id,
|
|
38124
38133
|
renderLabel: () => applyInternalProps(labelElement, {
|
|
38125
38134
|
label: addressLineLabel
|
|
38126
38135
|
}),
|
|
38127
|
-
renderInput: () => /* @__PURE__ */
|
|
38136
|
+
renderInput: () => /* @__PURE__ */ React45__default.createElement(TextField, {
|
|
38128
38137
|
value: value ?? "",
|
|
38129
38138
|
onChange,
|
|
38130
38139
|
isDisabled: disabled,
|
|
@@ -38133,7 +38142,7 @@ var AddressLine = (_ref) => {
|
|
|
38133
38142
|
onBlur,
|
|
38134
38143
|
onFocus
|
|
38135
38144
|
}, inputElement),
|
|
38136
|
-
renderDescription: () => /* @__PURE__ */
|
|
38145
|
+
renderDescription: () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, descriptionElement, errorElement)
|
|
38137
38146
|
});
|
|
38138
38147
|
};
|
|
38139
38148
|
var AddressLineAutocomplete = (_ref2) => {
|
|
@@ -38193,7 +38202,7 @@ var AddressLineAutocomplete = (_ref2) => {
|
|
|
38193
38202
|
}, [onFocus]);
|
|
38194
38203
|
const inputElement = findChildOfType(children, AddressLine.Input);
|
|
38195
38204
|
const optionsElement = findChildOfType(children, AddressLine.Options);
|
|
38196
|
-
return /* @__PURE__ */
|
|
38205
|
+
return /* @__PURE__ */ React45__default.createElement(ComboBox, {
|
|
38197
38206
|
inputValue: value ?? "",
|
|
38198
38207
|
onInputChange: handleInputChange,
|
|
38199
38208
|
selectedKey: null,
|
|
@@ -38232,7 +38241,7 @@ var Input5 = (_ref3) => {
|
|
|
38232
38241
|
var _inputRef$current;
|
|
38233
38242
|
(_inputRef$current = inputRef.current) == null || _inputRef$current.focus();
|
|
38234
38243
|
}, id);
|
|
38235
|
-
return /* @__PURE__ */
|
|
38244
|
+
return /* @__PURE__ */ React45__default.createElement(Input$1, {
|
|
38236
38245
|
ref: inputRef,
|
|
38237
38246
|
id: inputId,
|
|
38238
38247
|
"aria-describedby": ariaDescribedBy,
|
|
@@ -38246,9 +38255,9 @@ var Options5 = (_ref4) => {
|
|
|
38246
38255
|
className
|
|
38247
38256
|
} = _ref4;
|
|
38248
38257
|
const optionElement = findChildOfType(children, Options5.Option);
|
|
38249
|
-
return /* @__PURE__ */
|
|
38258
|
+
return /* @__PURE__ */ React45__default.createElement(Popover, {
|
|
38250
38259
|
className
|
|
38251
|
-
}, /* @__PURE__ */
|
|
38260
|
+
}, /* @__PURE__ */ React45__default.createElement(ListBox, {
|
|
38252
38261
|
renderEmptyState: () => null
|
|
38253
38262
|
}, (item) => applyInternalProps(optionElement, {
|
|
38254
38263
|
id: item.id,
|
|
@@ -38264,7 +38273,7 @@ var Option5 = (_ref5) => {
|
|
|
38264
38273
|
id,
|
|
38265
38274
|
label
|
|
38266
38275
|
} = internal;
|
|
38267
|
-
return /* @__PURE__ */
|
|
38276
|
+
return /* @__PURE__ */ React45__default.createElement(ListBoxItem, {
|
|
38268
38277
|
className,
|
|
38269
38278
|
id,
|
|
38270
38279
|
textValue: label
|
|
@@ -38296,12 +38305,12 @@ var AddressLine2 = (_ref) => {
|
|
|
38296
38305
|
const inputElement = findChildOfType(children, AddressLine2.Input);
|
|
38297
38306
|
const descriptionElement = findChildOfType(children, AddressLine2.Description);
|
|
38298
38307
|
const errorElement = findChildOfType(children, AddressLine2.Error);
|
|
38299
|
-
return /* @__PURE__ */
|
|
38308
|
+
return /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
38300
38309
|
fieldId: id,
|
|
38301
38310
|
renderLabel: () => applyInternalProps(labelElement, {
|
|
38302
38311
|
label: addressLine2Label
|
|
38303
38312
|
}),
|
|
38304
|
-
renderInput: () => /* @__PURE__ */
|
|
38313
|
+
renderInput: () => /* @__PURE__ */ React45__default.createElement(TextField, {
|
|
38305
38314
|
value: value ?? "",
|
|
38306
38315
|
onChange,
|
|
38307
38316
|
isDisabled: disabled,
|
|
@@ -38310,7 +38319,7 @@ var AddressLine2 = (_ref) => {
|
|
|
38310
38319
|
onBlur,
|
|
38311
38320
|
onFocus
|
|
38312
38321
|
}, inputElement),
|
|
38313
|
-
renderDescription: () => /* @__PURE__ */
|
|
38322
|
+
renderDescription: () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, descriptionElement, errorElement)
|
|
38314
38323
|
});
|
|
38315
38324
|
};
|
|
38316
38325
|
var Input6 = (_ref2) => {
|
|
@@ -38329,7 +38338,7 @@ var Input6 = (_ref2) => {
|
|
|
38329
38338
|
var _inputRef$current;
|
|
38330
38339
|
(_inputRef$current = inputRef.current) == null || _inputRef$current.focus();
|
|
38331
38340
|
}, id);
|
|
38332
|
-
return /* @__PURE__ */
|
|
38341
|
+
return /* @__PURE__ */ React45__default.createElement(Input$1, {
|
|
38333
38342
|
ref: inputRef,
|
|
38334
38343
|
id: inputId,
|
|
38335
38344
|
"aria-describedby": ariaDescribedBy,
|
|
@@ -38469,12 +38478,12 @@ var PostalCode = (_ref) => {
|
|
|
38469
38478
|
const descriptionElement = findChildOfType(children, PostalCode.Description);
|
|
38470
38479
|
const errorElement = findChildOfType(children, PostalCode.Error);
|
|
38471
38480
|
if (isAutocomplete) {
|
|
38472
|
-
return /* @__PURE__ */
|
|
38481
|
+
return /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
38473
38482
|
fieldId: id,
|
|
38474
38483
|
renderLabel: () => applyInternalProps(labelElement, {
|
|
38475
38484
|
label: postalCodeLabel
|
|
38476
38485
|
}),
|
|
38477
|
-
renderInput: () => /* @__PURE__ */
|
|
38486
|
+
renderInput: () => /* @__PURE__ */ React45__default.createElement(PostalCodeAutocomplete, {
|
|
38478
38487
|
value,
|
|
38479
38488
|
onChange,
|
|
38480
38489
|
disabled,
|
|
@@ -38483,15 +38492,15 @@ var PostalCode = (_ref) => {
|
|
|
38483
38492
|
onBlur,
|
|
38484
38493
|
onFocus
|
|
38485
38494
|
}, inputElement, optionsElement),
|
|
38486
|
-
renderDescription: () => /* @__PURE__ */
|
|
38495
|
+
renderDescription: () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, descriptionElement, errorElement)
|
|
38487
38496
|
});
|
|
38488
38497
|
}
|
|
38489
|
-
return /* @__PURE__ */
|
|
38498
|
+
return /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
38490
38499
|
fieldId: id,
|
|
38491
38500
|
renderLabel: () => applyInternalProps(labelElement, {
|
|
38492
38501
|
label: postalCodeLabel
|
|
38493
38502
|
}),
|
|
38494
|
-
renderInput: () => /* @__PURE__ */
|
|
38503
|
+
renderInput: () => /* @__PURE__ */ React45__default.createElement(TextField, {
|
|
38495
38504
|
value: value ?? "",
|
|
38496
38505
|
onChange,
|
|
38497
38506
|
isDisabled: disabled,
|
|
@@ -38500,7 +38509,7 @@ var PostalCode = (_ref) => {
|
|
|
38500
38509
|
onBlur,
|
|
38501
38510
|
onFocus
|
|
38502
38511
|
}, inputElement),
|
|
38503
|
-
renderDescription: () => /* @__PURE__ */
|
|
38512
|
+
renderDescription: () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, descriptionElement, errorElement)
|
|
38504
38513
|
});
|
|
38505
38514
|
};
|
|
38506
38515
|
var PostalCodeAutocomplete = (_ref2) => {
|
|
@@ -38552,7 +38561,7 @@ var PostalCodeAutocomplete = (_ref2) => {
|
|
|
38552
38561
|
}, [onFocus]);
|
|
38553
38562
|
const inputElement = findChildOfType(children, PostalCode.Input);
|
|
38554
38563
|
const optionsElement = findChildOfType(children, PostalCode.Options);
|
|
38555
|
-
return /* @__PURE__ */
|
|
38564
|
+
return /* @__PURE__ */ React45__default.createElement(ComboBox, {
|
|
38556
38565
|
inputValue: value ?? "",
|
|
38557
38566
|
onInputChange: handleInputChange,
|
|
38558
38567
|
selectedKey: null,
|
|
@@ -38592,7 +38601,7 @@ var Input7 = (_ref3) => {
|
|
|
38592
38601
|
var _inputRef$current;
|
|
38593
38602
|
(_inputRef$current = inputRef.current) == null || _inputRef$current.focus();
|
|
38594
38603
|
}, id);
|
|
38595
|
-
return /* @__PURE__ */
|
|
38604
|
+
return /* @__PURE__ */ React45__default.createElement(Input$1, {
|
|
38596
38605
|
ref: inputRef,
|
|
38597
38606
|
id: inputId,
|
|
38598
38607
|
"aria-describedby": ariaDescribedBy,
|
|
@@ -38607,9 +38616,9 @@ var Options6 = (_ref4) => {
|
|
|
38607
38616
|
className
|
|
38608
38617
|
} = _ref4;
|
|
38609
38618
|
const optionElement = findChildOfType(children, Options6.Option);
|
|
38610
|
-
return /* @__PURE__ */
|
|
38619
|
+
return /* @__PURE__ */ React45__default.createElement(Popover, {
|
|
38611
38620
|
className
|
|
38612
|
-
}, /* @__PURE__ */
|
|
38621
|
+
}, /* @__PURE__ */ React45__default.createElement(ListBox, {
|
|
38613
38622
|
renderEmptyState: () => null
|
|
38614
38623
|
}, (item) => applyInternalProps(optionElement, {
|
|
38615
38624
|
id: item.id,
|
|
@@ -38625,7 +38634,7 @@ var Option6 = (_ref5) => {
|
|
|
38625
38634
|
id,
|
|
38626
38635
|
label
|
|
38627
38636
|
} = internal;
|
|
38628
|
-
return /* @__PURE__ */
|
|
38637
|
+
return /* @__PURE__ */ React45__default.createElement(ListBoxItem, {
|
|
38629
38638
|
className,
|
|
38630
38639
|
id,
|
|
38631
38640
|
textValue: label
|
|
@@ -38664,12 +38673,12 @@ var StreetName = (_ref) => {
|
|
|
38664
38673
|
const descriptionElement = findChildOfType(children, StreetName.Description);
|
|
38665
38674
|
const errorElement = findChildOfType(children, StreetName.Error);
|
|
38666
38675
|
if (isAutocomplete) {
|
|
38667
|
-
return /* @__PURE__ */
|
|
38676
|
+
return /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
38668
38677
|
fieldId: id,
|
|
38669
38678
|
renderLabel: () => applyInternalProps(labelElement, {
|
|
38670
38679
|
label: streetNameLabel
|
|
38671
38680
|
}),
|
|
38672
|
-
renderInput: () => /* @__PURE__ */
|
|
38681
|
+
renderInput: () => /* @__PURE__ */ React45__default.createElement(StreetNameAutocomplete, {
|
|
38673
38682
|
value,
|
|
38674
38683
|
onChange,
|
|
38675
38684
|
disabled,
|
|
@@ -38678,15 +38687,15 @@ var StreetName = (_ref) => {
|
|
|
38678
38687
|
onBlur,
|
|
38679
38688
|
onFocus
|
|
38680
38689
|
}, inputElement, optionsElement),
|
|
38681
|
-
renderDescription: () => /* @__PURE__ */
|
|
38690
|
+
renderDescription: () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, descriptionElement, errorElement)
|
|
38682
38691
|
});
|
|
38683
38692
|
}
|
|
38684
|
-
return /* @__PURE__ */
|
|
38693
|
+
return /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
38685
38694
|
fieldId: id,
|
|
38686
38695
|
renderLabel: () => applyInternalProps(labelElement, {
|
|
38687
38696
|
label: streetNameLabel
|
|
38688
38697
|
}),
|
|
38689
|
-
renderInput: () => /* @__PURE__ */
|
|
38698
|
+
renderInput: () => /* @__PURE__ */ React45__default.createElement(TextField, {
|
|
38690
38699
|
value: value ?? "",
|
|
38691
38700
|
onChange,
|
|
38692
38701
|
isDisabled: disabled,
|
|
@@ -38695,7 +38704,7 @@ var StreetName = (_ref) => {
|
|
|
38695
38704
|
onBlur,
|
|
38696
38705
|
onFocus
|
|
38697
38706
|
}, inputElement),
|
|
38698
|
-
renderDescription: () => /* @__PURE__ */
|
|
38707
|
+
renderDescription: () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, descriptionElement, errorElement)
|
|
38699
38708
|
});
|
|
38700
38709
|
};
|
|
38701
38710
|
var StreetNameAutocomplete = (_ref2) => {
|
|
@@ -38760,7 +38769,7 @@ var StreetNameAutocomplete = (_ref2) => {
|
|
|
38760
38769
|
setSessionToken(generateUUID());
|
|
38761
38770
|
onFocus == null || onFocus();
|
|
38762
38771
|
}, [onFocus]);
|
|
38763
|
-
return /* @__PURE__ */
|
|
38772
|
+
return /* @__PURE__ */ React45__default.createElement(ComboBox, {
|
|
38764
38773
|
inputValue: value ?? "",
|
|
38765
38774
|
onInputChange: handleInputChange,
|
|
38766
38775
|
selectedKey: null,
|
|
@@ -38799,7 +38808,7 @@ var Input8 = (_ref3) => {
|
|
|
38799
38808
|
var _inputRef$current;
|
|
38800
38809
|
(_inputRef$current = inputRef.current) == null || _inputRef$current.focus();
|
|
38801
38810
|
}, id);
|
|
38802
|
-
return /* @__PURE__ */
|
|
38811
|
+
return /* @__PURE__ */ React45__default.createElement(Input$1, {
|
|
38803
38812
|
ref: inputRef,
|
|
38804
38813
|
id: inputId,
|
|
38805
38814
|
"aria-describedby": ariaDescribedBy,
|
|
@@ -38813,9 +38822,9 @@ var Options7 = (_ref4) => {
|
|
|
38813
38822
|
className
|
|
38814
38823
|
} = _ref4;
|
|
38815
38824
|
const optionElement = findChildOfType(children, Options7.Option);
|
|
38816
|
-
return /* @__PURE__ */
|
|
38825
|
+
return /* @__PURE__ */ React45__default.createElement(Popover, {
|
|
38817
38826
|
className
|
|
38818
|
-
}, /* @__PURE__ */
|
|
38827
|
+
}, /* @__PURE__ */ React45__default.createElement(ListBox, {
|
|
38819
38828
|
renderEmptyState: () => null
|
|
38820
38829
|
}, (item) => applyInternalProps(optionElement, {
|
|
38821
38830
|
value: item.id,
|
|
@@ -38831,7 +38840,7 @@ var Option7 = (_ref5) => {
|
|
|
38831
38840
|
value,
|
|
38832
38841
|
label
|
|
38833
38842
|
} = internal;
|
|
38834
|
-
return /* @__PURE__ */
|
|
38843
|
+
return /* @__PURE__ */ React45__default.createElement(ListBoxItem, {
|
|
38835
38844
|
className,
|
|
38836
38845
|
id: value,
|
|
38837
38846
|
textValue: label
|
|
@@ -38863,12 +38872,12 @@ var StreetNumber = (_ref) => {
|
|
|
38863
38872
|
const inputElement = findChildOfType(children, StreetNumber.Input);
|
|
38864
38873
|
const descriptionElement = findChildOfType(children, StreetNumber.Description);
|
|
38865
38874
|
const errorElement = findChildOfType(children, StreetNumber.Error);
|
|
38866
|
-
return /* @__PURE__ */
|
|
38875
|
+
return /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
38867
38876
|
fieldId: id,
|
|
38868
38877
|
renderLabel: () => applyInternalProps(labelElement, {
|
|
38869
38878
|
label: streetNumberLabel
|
|
38870
38879
|
}),
|
|
38871
|
-
renderInput: () => /* @__PURE__ */
|
|
38880
|
+
renderInput: () => /* @__PURE__ */ React45__default.createElement(TextField, {
|
|
38872
38881
|
value: value ?? "",
|
|
38873
38882
|
onChange,
|
|
38874
38883
|
isDisabled: disabled,
|
|
@@ -38877,7 +38886,7 @@ var StreetNumber = (_ref) => {
|
|
|
38877
38886
|
onBlur,
|
|
38878
38887
|
onFocus
|
|
38879
38888
|
}, inputElement),
|
|
38880
|
-
renderDescription: () => /* @__PURE__ */
|
|
38889
|
+
renderDescription: () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, descriptionElement, errorElement)
|
|
38881
38890
|
});
|
|
38882
38891
|
};
|
|
38883
38892
|
var Input9 = (_ref2) => {
|
|
@@ -38896,7 +38905,7 @@ var Input9 = (_ref2) => {
|
|
|
38896
38905
|
var _inputRef$current;
|
|
38897
38906
|
(_inputRef$current = inputRef.current) == null || _inputRef$current.focus();
|
|
38898
38907
|
}, id);
|
|
38899
|
-
return /* @__PURE__ */
|
|
38908
|
+
return /* @__PURE__ */ React45__default.createElement(Input$1, {
|
|
38900
38909
|
ref: inputRef,
|
|
38901
38910
|
id: inputId,
|
|
38902
38911
|
"aria-describedby": ariaDescribedBy,
|
|
@@ -39053,23 +39062,23 @@ var MultilineAddress = (_ref) => {
|
|
|
39053
39062
|
if (!form) {
|
|
39054
39063
|
return null;
|
|
39055
39064
|
}
|
|
39056
|
-
return /* @__PURE__ */
|
|
39065
|
+
return /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
39057
39066
|
fieldId: id
|
|
39058
|
-
}, /* @__PURE__ */
|
|
39067
|
+
}, /* @__PURE__ */ React45__default.createElement(CountryCodeProvider, {
|
|
39059
39068
|
countryCode: value == null ? void 0 : value.country
|
|
39060
|
-
}, /* @__PURE__ */
|
|
39069
|
+
}, /* @__PURE__ */ React45__default.createElement(AddressAutofillProvider, {
|
|
39061
39070
|
autocompleteEnabled,
|
|
39062
39071
|
onAddressSelect: handleAddressSelect
|
|
39063
|
-
}, /* @__PURE__ */
|
|
39072
|
+
}, /* @__PURE__ */ React45__default.createElement(AddressFieldsProvider, {
|
|
39064
39073
|
fields: addressFields
|
|
39065
|
-
}, /* @__PURE__ */
|
|
39074
|
+
}, /* @__PURE__ */ React45__default.createElement("fieldset", {
|
|
39066
39075
|
style: {
|
|
39067
39076
|
border: "none",
|
|
39068
39077
|
padding: 0,
|
|
39069
39078
|
margin: 0,
|
|
39070
39079
|
minWidth: 0
|
|
39071
39080
|
}
|
|
39072
|
-
}, /* @__PURE__ */
|
|
39081
|
+
}, /* @__PURE__ */ React45__default.createElement("legend", {
|
|
39073
39082
|
style: {
|
|
39074
39083
|
position: "absolute",
|
|
39075
39084
|
width: "1px",
|
|
@@ -39081,7 +39090,7 @@ var MultilineAddress = (_ref) => {
|
|
|
39081
39090
|
whiteSpace: "nowrap",
|
|
39082
39091
|
border: 0
|
|
39083
39092
|
}
|
|
39084
|
-
}, label), /* @__PURE__ */
|
|
39093
|
+
}, label), /* @__PURE__ */ React45__default.createElement(Form, {
|
|
39085
39094
|
formSchema,
|
|
39086
39095
|
form,
|
|
39087
39096
|
values: value ?? NO_VALUES,
|
|
@@ -39120,10 +39129,10 @@ var NumberInput = (_ref) => {
|
|
|
39120
39129
|
const descriptionElement = findChildOfType(children, NumberInput.Description);
|
|
39121
39130
|
const errorElement = findChildOfType(children, NumberInput.Error);
|
|
39122
39131
|
const numberValue = valueToNumber(value);
|
|
39123
|
-
return /* @__PURE__ */
|
|
39132
|
+
return /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
39124
39133
|
fieldId: id,
|
|
39125
39134
|
renderLabel: () => labelElement,
|
|
39126
|
-
renderInput: () => /* @__PURE__ */
|
|
39135
|
+
renderInput: () => /* @__PURE__ */ React45__default.createElement(NumberField, {
|
|
39127
39136
|
value: numberValue,
|
|
39128
39137
|
onChange,
|
|
39129
39138
|
isDisabled: disabled,
|
|
@@ -39132,7 +39141,7 @@ var NumberInput = (_ref) => {
|
|
|
39132
39141
|
onBlur,
|
|
39133
39142
|
onFocus
|
|
39134
39143
|
}, inputElement),
|
|
39135
|
-
renderDescription: () => /* @__PURE__ */
|
|
39144
|
+
renderDescription: () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, descriptionElement, errorElement)
|
|
39136
39145
|
});
|
|
39137
39146
|
};
|
|
39138
39147
|
var Input10 = (_ref2) => {
|
|
@@ -39152,7 +39161,7 @@ var Input10 = (_ref2) => {
|
|
|
39152
39161
|
var _ref$current;
|
|
39153
39162
|
(_ref$current = ref.current) == null || _ref$current.focus();
|
|
39154
39163
|
}, id);
|
|
39155
|
-
return /* @__PURE__ */
|
|
39164
|
+
return /* @__PURE__ */ React45__default.createElement(Input$1, {
|
|
39156
39165
|
ref,
|
|
39157
39166
|
id: inputId,
|
|
39158
39167
|
"aria-describedby": ariaDescribedBy,
|
|
@@ -39322,7 +39331,7 @@ var Flag = (_ref) => {
|
|
|
39322
39331
|
}
|
|
39323
39332
|
const flag1x = getFlagUrl(longCountryCode, "1x");
|
|
39324
39333
|
const flag2x = getFlagUrl(longCountryCode, "2x");
|
|
39325
|
-
return /* @__PURE__ */
|
|
39334
|
+
return /* @__PURE__ */ React45__default.createElement("img", {
|
|
39326
39335
|
src: flag1x,
|
|
39327
39336
|
srcSet: `${flag1x} 1x, ${flag2x} 2x`,
|
|
39328
39337
|
alt: "",
|
|
@@ -39375,13 +39384,13 @@ var PhoneInput = (_ref2) => {
|
|
|
39375
39384
|
countryCodes,
|
|
39376
39385
|
countries
|
|
39377
39386
|
};
|
|
39378
|
-
return /* @__PURE__ */
|
|
39387
|
+
return /* @__PURE__ */ React45__default.createElement(PhoneInputContext.Provider, {
|
|
39379
39388
|
value: contextValue
|
|
39380
|
-
}, /* @__PURE__ */
|
|
39389
|
+
}, /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
39381
39390
|
fieldId: id,
|
|
39382
39391
|
renderLabel: () => labelElement,
|
|
39383
39392
|
renderInput: () => controlElement,
|
|
39384
|
-
renderDescription: () => /* @__PURE__ */
|
|
39393
|
+
renderDescription: () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, descriptionElement, errorElement)
|
|
39385
39394
|
}));
|
|
39386
39395
|
};
|
|
39387
39396
|
var CountryButton = (_ref3) => {
|
|
@@ -39413,7 +39422,7 @@ var CountryButton = (_ref3) => {
|
|
|
39413
39422
|
const dialingCode = selectedCountry ? getCallingCode2(selectedCountry.longCountryCode) || "" : "";
|
|
39414
39423
|
const countryCodeLabel = t("field.phone.country-code.aria-label");
|
|
39415
39424
|
const ariaLabel = selectedCountry ? `${countryCodeLabel}, ${selectedCountry.countryName}, ${dialingCode}` : countryCodeLabel;
|
|
39416
|
-
return /* @__PURE__ */
|
|
39425
|
+
return /* @__PURE__ */ React45__default.createElement(Button, {
|
|
39417
39426
|
ref,
|
|
39418
39427
|
id: buttonId,
|
|
39419
39428
|
"aria-label": ariaLabel,
|
|
@@ -39433,7 +39442,7 @@ var CountryButtonFlag = (_ref4) => {
|
|
|
39433
39442
|
if (!selectedCountry) {
|
|
39434
39443
|
return null;
|
|
39435
39444
|
}
|
|
39436
|
-
return /* @__PURE__ */
|
|
39445
|
+
return /* @__PURE__ */ React45__default.createElement(Flag, {
|
|
39437
39446
|
className,
|
|
39438
39447
|
longCountryCode: selectedCountry.longCountryCode
|
|
39439
39448
|
});
|
|
@@ -39448,7 +39457,7 @@ var CountryButtonEmptyState = (_ref5) => {
|
|
|
39448
39457
|
if (selectedCountryCode) {
|
|
39449
39458
|
return null;
|
|
39450
39459
|
}
|
|
39451
|
-
return /* @__PURE__ */
|
|
39460
|
+
return /* @__PURE__ */ React45__default.createElement(Globe_default, {
|
|
39452
39461
|
className,
|
|
39453
39462
|
width: 22,
|
|
39454
39463
|
height: 22
|
|
@@ -39465,9 +39474,9 @@ var CountryOptions = (_ref6) => {
|
|
|
39465
39474
|
countries
|
|
39466
39475
|
} = usePhoneInputContext();
|
|
39467
39476
|
const optionElement = findChildOfType(children, CountryOptions.Option);
|
|
39468
|
-
return /* @__PURE__ */
|
|
39477
|
+
return /* @__PURE__ */ React45__default.createElement(Popover, {
|
|
39469
39478
|
className
|
|
39470
|
-
}, /* @__PURE__ */
|
|
39479
|
+
}, /* @__PURE__ */ React45__default.createElement(ListBox, null, countries.map((country) => {
|
|
39471
39480
|
const dialingCode = getCallingCode2(country.longCountryCode) || "";
|
|
39472
39481
|
return applyInternalProps(optionElement, {
|
|
39473
39482
|
key: country.shortCountryCode,
|
|
@@ -39496,12 +39505,12 @@ var Option8 = (_ref7) => {
|
|
|
39496
39505
|
countryName,
|
|
39497
39506
|
longCountryCode
|
|
39498
39507
|
};
|
|
39499
|
-
const content = children || /* @__PURE__ */
|
|
39500
|
-
return /* @__PURE__ */
|
|
39508
|
+
const content = children || /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, /* @__PURE__ */ React45__default.createElement(OptionFlag, null), /* @__PURE__ */ React45__default.createElement(OptionName, null), /* @__PURE__ */ React45__default.createElement(OptionCode, null));
|
|
39509
|
+
return /* @__PURE__ */ React45__default.createElement(ListBoxItem, {
|
|
39501
39510
|
className,
|
|
39502
39511
|
id: countryCode,
|
|
39503
39512
|
textValue: `${countryName} ${dialingCode}`
|
|
39504
|
-
}, /* @__PURE__ */
|
|
39513
|
+
}, /* @__PURE__ */ React45__default.createElement(OptionDataContext.Provider, {
|
|
39505
39514
|
value: optionData
|
|
39506
39515
|
}, content));
|
|
39507
39516
|
};
|
|
@@ -39512,7 +39521,7 @@ var OptionFlag = (_ref8) => {
|
|
|
39512
39521
|
const {
|
|
39513
39522
|
longCountryCode
|
|
39514
39523
|
} = useOptionDataContext();
|
|
39515
|
-
return /* @__PURE__ */
|
|
39524
|
+
return /* @__PURE__ */ React45__default.createElement(Flag, {
|
|
39516
39525
|
className,
|
|
39517
39526
|
longCountryCode
|
|
39518
39527
|
});
|
|
@@ -39524,7 +39533,7 @@ var OptionName = (_ref9) => {
|
|
|
39524
39533
|
const {
|
|
39525
39534
|
countryName
|
|
39526
39535
|
} = useOptionDataContext();
|
|
39527
|
-
return /* @__PURE__ */
|
|
39536
|
+
return /* @__PURE__ */ React45__default.createElement("span", {
|
|
39528
39537
|
className
|
|
39529
39538
|
}, countryName);
|
|
39530
39539
|
};
|
|
@@ -39535,7 +39544,7 @@ var OptionCode = (_ref0) => {
|
|
|
39535
39544
|
const {
|
|
39536
39545
|
dialingCode
|
|
39537
39546
|
} = useOptionDataContext();
|
|
39538
|
-
return /* @__PURE__ */
|
|
39547
|
+
return /* @__PURE__ */ React45__default.createElement("span", {
|
|
39539
39548
|
className
|
|
39540
39549
|
}, dialingCode);
|
|
39541
39550
|
};
|
|
@@ -39573,7 +39582,7 @@ var PhoneNumber2 = (_ref1) => {
|
|
|
39573
39582
|
var _ref$current2;
|
|
39574
39583
|
(_ref$current2 = ref.current) == null || _ref$current2.focus();
|
|
39575
39584
|
}, id);
|
|
39576
|
-
return /* @__PURE__ */
|
|
39585
|
+
return /* @__PURE__ */ React45__default.createElement(Input$1, {
|
|
39577
39586
|
ref,
|
|
39578
39587
|
id: inputId,
|
|
39579
39588
|
type: "tel",
|
|
@@ -39606,9 +39615,9 @@ var Control3 = (_ref10) => {
|
|
|
39606
39615
|
const countryButtonElement = findChildOfType(children, PhoneInput.CountryButton);
|
|
39607
39616
|
const countryOptionsElement = findChildOfType(children, PhoneInput.CountryOptions);
|
|
39608
39617
|
const phoneNumberElement = findChildOfType(children, PhoneInput.PhoneNumber);
|
|
39609
|
-
return /* @__PURE__ */
|
|
39618
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
39610
39619
|
className
|
|
39611
|
-
}, /* @__PURE__ */
|
|
39620
|
+
}, /* @__PURE__ */ React45__default.createElement(Select, {
|
|
39612
39621
|
value: selectedCountryCode ?? null,
|
|
39613
39622
|
onChange: (key) => handleCountryCodeChange(key),
|
|
39614
39623
|
isDisabled: disabled,
|
|
@@ -39658,12 +39667,12 @@ var RadioGroup = (_ref) => {
|
|
|
39658
39667
|
const optionsElement = findChildOfType(children, RadioGroup.Options);
|
|
39659
39668
|
const descriptionElement = findChildOfType(children, RadioGroup.Description);
|
|
39660
39669
|
const errorElement = findChildOfType(children, RadioGroup.Error);
|
|
39661
|
-
return /* @__PURE__ */
|
|
39670
|
+
return /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
39662
39671
|
fieldId: id,
|
|
39663
39672
|
renderLabel: () => applyInternalProps(labelElement, {
|
|
39664
39673
|
as: "div"
|
|
39665
39674
|
}),
|
|
39666
|
-
renderInput: () => /* @__PURE__ */
|
|
39675
|
+
renderInput: () => /* @__PURE__ */ React45__default.createElement(RadioGroup$1, {
|
|
39667
39676
|
id: inputId,
|
|
39668
39677
|
"aria-labelledby": labelId,
|
|
39669
39678
|
"aria-describedby": ariaDescribedBy,
|
|
@@ -39674,7 +39683,7 @@ var RadioGroup = (_ref) => {
|
|
|
39674
39683
|
onBlur,
|
|
39675
39684
|
onFocus
|
|
39676
39685
|
}, optionsElement),
|
|
39677
|
-
renderDescription: () => /* @__PURE__ */
|
|
39686
|
+
renderDescription: () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, descriptionElement, errorElement)
|
|
39678
39687
|
});
|
|
39679
39688
|
};
|
|
39680
39689
|
var Options8 = (_ref2) => {
|
|
@@ -39686,7 +39695,8 @@ var Options8 = (_ref2) => {
|
|
|
39686
39695
|
options,
|
|
39687
39696
|
addOther,
|
|
39688
39697
|
addOtherLabel,
|
|
39689
|
-
id
|
|
39698
|
+
id,
|
|
39699
|
+
numberOfColumns
|
|
39690
39700
|
} = useFieldPropsV2();
|
|
39691
39701
|
const {
|
|
39692
39702
|
t
|
|
@@ -39698,8 +39708,9 @@ var Options8 = (_ref2) => {
|
|
|
39698
39708
|
var _firstRadioRef$curren;
|
|
39699
39709
|
(_firstRadioRef$curren = firstRadioRef.current) == null || _firstRadioRef$curren.focus();
|
|
39700
39710
|
}, id);
|
|
39701
|
-
return /* @__PURE__ */
|
|
39702
|
-
className
|
|
39711
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
39712
|
+
className,
|
|
39713
|
+
"data-columns": numberOfColumns
|
|
39703
39714
|
}, options.map((option, index) => applyInternalProps(optionElement, {
|
|
39704
39715
|
key: option.value ?? option.label,
|
|
39705
39716
|
value: option.value ?? option.label,
|
|
@@ -39734,9 +39745,9 @@ var Option9 = (_ref3) => {
|
|
|
39734
39745
|
const otherInputElement = findChildOfType(children, Option9.OtherInput);
|
|
39735
39746
|
const isThisOptionSelected = selectedValue === value;
|
|
39736
39747
|
const radioClassName = inputElement == null || (_inputElement$props = inputElement.props) == null ? void 0 : _inputElement$props.className;
|
|
39737
|
-
return /* @__PURE__ */
|
|
39748
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
39738
39749
|
className
|
|
39739
|
-
}, /* @__PURE__ */
|
|
39750
|
+
}, /* @__PURE__ */ React45__default.createElement(Radio, {
|
|
39740
39751
|
value,
|
|
39741
39752
|
ref: radioRef,
|
|
39742
39753
|
className: radioClassName
|
|
@@ -39752,7 +39763,7 @@ var OptionLabel2 = (_ref4) => {
|
|
|
39752
39763
|
const {
|
|
39753
39764
|
label
|
|
39754
39765
|
} = internal;
|
|
39755
|
-
return /* @__PURE__ */
|
|
39766
|
+
return /* @__PURE__ */ React45__default.createElement("span", {
|
|
39756
39767
|
className
|
|
39757
39768
|
}, label);
|
|
39758
39769
|
};
|
|
@@ -39795,11 +39806,11 @@ var OptionOtherInput = (_ref5) => {
|
|
|
39795
39806
|
onChange(_otherValue);
|
|
39796
39807
|
setOtherValue(input);
|
|
39797
39808
|
}, [onChange, addOtherLabel, otherLabel]);
|
|
39798
|
-
return /* @__PURE__ */
|
|
39809
|
+
return /* @__PURE__ */ React45__default.createElement(TextField, {
|
|
39799
39810
|
value: otherValue,
|
|
39800
39811
|
onChange: handleOtherChange,
|
|
39801
39812
|
isDisabled: disabled
|
|
39802
|
-
}, /* @__PURE__ */
|
|
39813
|
+
}, /* @__PURE__ */ React45__default.createElement(Input$1, {
|
|
39803
39814
|
ref: inputRef,
|
|
39804
39815
|
className,
|
|
39805
39816
|
placeholder: addOtherPlaceholder,
|
|
@@ -39835,10 +39846,10 @@ var RatingInput = (_ref) => {
|
|
|
39835
39846
|
const starsElement = findChildOfType(children, RatingInput.Stars);
|
|
39836
39847
|
const descriptionElement = findChildOfType(children, RatingInput.Description);
|
|
39837
39848
|
const errorElement = findChildOfType(children, RatingInput.Error);
|
|
39838
|
-
return /* @__PURE__ */
|
|
39849
|
+
return /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
39839
39850
|
fieldId: id,
|
|
39840
39851
|
renderLabel: () => labelElement,
|
|
39841
|
-
renderInput: () => /* @__PURE__ */
|
|
39852
|
+
renderInput: () => /* @__PURE__ */ React45__default.createElement(RadioGroup$1, {
|
|
39842
39853
|
value: value ? String(value) : void 0,
|
|
39843
39854
|
onChange: handleChange,
|
|
39844
39855
|
isDisabled: disabled,
|
|
@@ -39848,7 +39859,7 @@ var RatingInput = (_ref) => {
|
|
|
39848
39859
|
onFocus,
|
|
39849
39860
|
orientation: "horizontal"
|
|
39850
39861
|
}, starsElement),
|
|
39851
|
-
renderDescription: () => /* @__PURE__ */
|
|
39862
|
+
renderDescription: () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, descriptionElement, errorElement)
|
|
39852
39863
|
});
|
|
39853
39864
|
};
|
|
39854
39865
|
var Stars = (_ref2) => {
|
|
@@ -39868,7 +39879,7 @@ var Stars = (_ref2) => {
|
|
|
39868
39879
|
const starElement = findChildOfType(children, Stars.Star);
|
|
39869
39880
|
const starValues = ["1", "2", "3", "4", "5"];
|
|
39870
39881
|
const isFilled = (starValue) => hovered ? hovered >= starValue : !!value && value >= Number(starValue);
|
|
39871
|
-
return /* @__PURE__ */
|
|
39882
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
39872
39883
|
ref: containerRef,
|
|
39873
39884
|
id: inputId,
|
|
39874
39885
|
"aria-describedby": ariaDescribedBy,
|
|
@@ -39890,7 +39901,7 @@ var Star = (_ref3) => {
|
|
|
39890
39901
|
isFilled,
|
|
39891
39902
|
onHoverChange
|
|
39892
39903
|
} = internal;
|
|
39893
|
-
return /* @__PURE__ */
|
|
39904
|
+
return /* @__PURE__ */ React45__default.createElement(Radio, {
|
|
39894
39905
|
value,
|
|
39895
39906
|
className,
|
|
39896
39907
|
"data-filled": isFilled || void 0,
|
|
@@ -39922,7 +39933,7 @@ var OptionLabel3 = (_ref) => {
|
|
|
39922
39933
|
const {
|
|
39923
39934
|
label
|
|
39924
39935
|
} = internal;
|
|
39925
|
-
return /* @__PURE__ */
|
|
39936
|
+
return /* @__PURE__ */ React45__default.createElement("span", {
|
|
39926
39937
|
className
|
|
39927
39938
|
}, label);
|
|
39928
39939
|
};
|
|
@@ -39955,11 +39966,11 @@ var OtherInput2 = (_ref2) => {
|
|
|
39955
39966
|
const formattedOtherValue = newValue ? `${otherLabel}: ${newValue}` : otherLabel;
|
|
39956
39967
|
onChangeRef.current([...regularOptions, formattedOtherValue]);
|
|
39957
39968
|
}, [fieldValue, otherLabel]);
|
|
39958
|
-
return /* @__PURE__ */
|
|
39969
|
+
return /* @__PURE__ */ React45__default.createElement(TextField, {
|
|
39959
39970
|
value: inputValue,
|
|
39960
39971
|
onChange: handleInputChange,
|
|
39961
39972
|
"aria-label": otherLabel
|
|
39962
|
-
}, /* @__PURE__ */
|
|
39973
|
+
}, /* @__PURE__ */ React45__default.createElement(Input$1, {
|
|
39963
39974
|
placeholder: addOtherPlaceholder,
|
|
39964
39975
|
maxLength: otherInputCharacterLimit,
|
|
39965
39976
|
className
|
|
@@ -39988,7 +39999,7 @@ var Option10 = (_ref3) => {
|
|
|
39988
39999
|
}
|
|
39989
40000
|
}, id);
|
|
39990
40001
|
const labelElement = findChildOfType(children, OptionLabel3);
|
|
39991
|
-
return /* @__PURE__ */
|
|
40002
|
+
return /* @__PURE__ */ React45__default.createElement(Tag$1, {
|
|
39992
40003
|
ref,
|
|
39993
40004
|
id: value,
|
|
39994
40005
|
textValue: label,
|
|
@@ -40029,7 +40040,7 @@ var Options9 = (_ref4) => {
|
|
|
40029
40040
|
}
|
|
40030
40041
|
return regularOptions;
|
|
40031
40042
|
}, [options, addOther, otherLabel]);
|
|
40032
|
-
return /* @__PURE__ */
|
|
40043
|
+
return /* @__PURE__ */ React45__default.createElement(TagList, {
|
|
40033
40044
|
"aria-describedby": ariaDescribedBy,
|
|
40034
40045
|
className
|
|
40035
40046
|
}, allOptions.map((option, index) => {
|
|
@@ -40065,7 +40076,7 @@ var Control4 = (_ref5) => {
|
|
|
40065
40076
|
}
|
|
40066
40077
|
return fieldValue.some((val) => val === otherLabel || val.startsWith(`${otherLabel}:`));
|
|
40067
40078
|
}, [addOther, fieldValue, otherLabel]);
|
|
40068
|
-
return /* @__PURE__ */
|
|
40079
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
40069
40080
|
className
|
|
40070
40081
|
}, optionsElement, isOtherSelected && otherInputElement);
|
|
40071
40082
|
};
|
|
@@ -40111,15 +40122,15 @@ var Tags = (_ref6) => {
|
|
|
40111
40122
|
const controlElement = findChildOfType(children, Control4);
|
|
40112
40123
|
const descriptionElement = findChildOfType(children, Description);
|
|
40113
40124
|
const errorElement = findChildOfType(children, Error2);
|
|
40114
|
-
return /* @__PURE__ */
|
|
40125
|
+
return /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
40115
40126
|
fieldId: id,
|
|
40116
40127
|
renderLabel: () => labelElement,
|
|
40117
|
-
renderInput: () => /* @__PURE__ */
|
|
40128
|
+
renderInput: () => /* @__PURE__ */ React45__default.createElement(TagGroup, {
|
|
40118
40129
|
selectionMode: "multiple",
|
|
40119
40130
|
selectedKeys,
|
|
40120
40131
|
onSelectionChange: handleSelectionChange
|
|
40121
40132
|
}, controlElement),
|
|
40122
|
-
renderDescription: () => /* @__PURE__ */
|
|
40133
|
+
renderDescription: () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, descriptionElement, errorElement)
|
|
40123
40134
|
});
|
|
40124
40135
|
};
|
|
40125
40136
|
Options9.Option = Option10;
|
|
@@ -40151,10 +40162,10 @@ var TextArea = (_ref) => {
|
|
|
40151
40162
|
const inputElement = findChildOfType(children, TextArea.Input);
|
|
40152
40163
|
const descriptionElement = findChildOfType(children, TextArea.Description);
|
|
40153
40164
|
const errorElement = findChildOfType(children, TextArea.Error);
|
|
40154
|
-
return /* @__PURE__ */
|
|
40165
|
+
return /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
40155
40166
|
fieldId: id,
|
|
40156
40167
|
renderLabel: () => labelElement,
|
|
40157
|
-
renderInput: () => /* @__PURE__ */
|
|
40168
|
+
renderInput: () => /* @__PURE__ */ React45__default.createElement(TextField, {
|
|
40158
40169
|
value: value ?? "",
|
|
40159
40170
|
onChange: handleChange,
|
|
40160
40171
|
isDisabled: disabled,
|
|
@@ -40162,7 +40173,7 @@ var TextArea = (_ref) => {
|
|
|
40162
40173
|
onBlur,
|
|
40163
40174
|
onFocus
|
|
40164
40175
|
}, inputElement),
|
|
40165
|
-
renderDescription: () => /* @__PURE__ */
|
|
40176
|
+
renderDescription: () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, descriptionElement, errorElement)
|
|
40166
40177
|
});
|
|
40167
40178
|
};
|
|
40168
40179
|
var Input11 = (_ref2) => {
|
|
@@ -40182,7 +40193,7 @@ var Input11 = (_ref2) => {
|
|
|
40182
40193
|
var _ref$current;
|
|
40183
40194
|
(_ref$current = ref.current) == null || _ref$current.focus();
|
|
40184
40195
|
}, id);
|
|
40185
|
-
return /* @__PURE__ */
|
|
40196
|
+
return /* @__PURE__ */ React45__default.createElement(TextArea$1, {
|
|
40186
40197
|
ref,
|
|
40187
40198
|
id: inputId,
|
|
40188
40199
|
"aria-describedby": ariaDescribedBy,
|
|
@@ -40213,10 +40224,10 @@ var TextInput = (_ref) => {
|
|
|
40213
40224
|
const inputElement = findChildOfType(children, TextInput.Input);
|
|
40214
40225
|
const descriptionElement = findChildOfType(children, TextInput.Description);
|
|
40215
40226
|
const errorElement = findChildOfType(children, TextInput.Error);
|
|
40216
|
-
return /* @__PURE__ */
|
|
40227
|
+
return /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
40217
40228
|
fieldId: id,
|
|
40218
40229
|
renderLabel: () => labelElement,
|
|
40219
|
-
renderInput: () => /* @__PURE__ */
|
|
40230
|
+
renderInput: () => /* @__PURE__ */ React45__default.createElement(TextField, {
|
|
40220
40231
|
value: value ?? "",
|
|
40221
40232
|
onChange,
|
|
40222
40233
|
isDisabled: disabled,
|
|
@@ -40225,7 +40236,7 @@ var TextInput = (_ref) => {
|
|
|
40225
40236
|
onBlur,
|
|
40226
40237
|
onFocus
|
|
40227
40238
|
}, inputElement),
|
|
40228
|
-
renderDescription: () => /* @__PURE__ */
|
|
40239
|
+
renderDescription: () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, descriptionElement, errorElement)
|
|
40229
40240
|
});
|
|
40230
40241
|
};
|
|
40231
40242
|
var Input12 = (_ref2) => {
|
|
@@ -40245,7 +40256,7 @@ var Input12 = (_ref2) => {
|
|
|
40245
40256
|
var _inputRef$current;
|
|
40246
40257
|
(_inputRef$current = inputRef.current) == null || _inputRef$current.focus();
|
|
40247
40258
|
}, id);
|
|
40248
|
-
return /* @__PURE__ */
|
|
40259
|
+
return /* @__PURE__ */ React45__default.createElement(Input$1, {
|
|
40249
40260
|
ref: inputRef,
|
|
40250
40261
|
id: inputId,
|
|
40251
40262
|
"aria-describedby": ariaDescribedBy,
|
|
@@ -40288,10 +40299,10 @@ var TimeInput2 = (_ref) => {
|
|
|
40288
40299
|
const descriptionElement = findChildOfType(children, TimeInput2.Description);
|
|
40289
40300
|
const errorElement = findChildOfType(children, TimeInput2.Error);
|
|
40290
40301
|
const timeValue = stringToTimeValue2(value);
|
|
40291
|
-
return /* @__PURE__ */
|
|
40302
|
+
return /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
40292
40303
|
fieldId: id,
|
|
40293
40304
|
renderLabel: () => labelElement,
|
|
40294
|
-
renderInput: () => /* @__PURE__ */
|
|
40305
|
+
renderInput: () => /* @__PURE__ */ React45__default.createElement(TimeField, {
|
|
40295
40306
|
id: inputId,
|
|
40296
40307
|
"aria-describedby": ariaDescribedBy,
|
|
40297
40308
|
value: timeValue,
|
|
@@ -40302,7 +40313,7 @@ var TimeInput2 = (_ref) => {
|
|
|
40302
40313
|
onFocus,
|
|
40303
40314
|
hourCycle: use24HourFormat ? 24 : 12
|
|
40304
40315
|
}, timeElement),
|
|
40305
|
-
renderDescription: () => /* @__PURE__ */
|
|
40316
|
+
renderDescription: () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, descriptionElement, errorElement)
|
|
40306
40317
|
});
|
|
40307
40318
|
};
|
|
40308
40319
|
var Time2 = (_ref2) => {
|
|
@@ -40313,28 +40324,28 @@ var Time2 = (_ref2) => {
|
|
|
40313
40324
|
const hourElement = findChildOfType(children, Time2.Hour);
|
|
40314
40325
|
const minuteElement = findChildOfType(children, Time2.Minute);
|
|
40315
40326
|
const periodElement = findChildOfType(children, Time2.Period);
|
|
40316
|
-
return /* @__PURE__ */
|
|
40327
|
+
return /* @__PURE__ */ React45__default.createElement(DateInput$1, {
|
|
40317
40328
|
className
|
|
40318
40329
|
}, (segment) => {
|
|
40319
40330
|
switch (segment.type) {
|
|
40320
40331
|
case "hour":
|
|
40321
40332
|
return applyInternalProps(hourElement, {
|
|
40322
40333
|
segment
|
|
40323
|
-
}) || /* @__PURE__ */
|
|
40334
|
+
}) || /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null);
|
|
40324
40335
|
case "minute":
|
|
40325
40336
|
return applyInternalProps(minuteElement, {
|
|
40326
40337
|
segment
|
|
40327
|
-
}) || /* @__PURE__ */
|
|
40338
|
+
}) || /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null);
|
|
40328
40339
|
case "dayPeriod":
|
|
40329
40340
|
return applyInternalProps(periodElement, {
|
|
40330
40341
|
segment
|
|
40331
|
-
}) || /* @__PURE__ */
|
|
40342
|
+
}) || /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null);
|
|
40332
40343
|
case "literal":
|
|
40333
|
-
return /* @__PURE__ */
|
|
40344
|
+
return /* @__PURE__ */ React45__default.createElement(DateSegment, {
|
|
40334
40345
|
segment
|
|
40335
40346
|
});
|
|
40336
40347
|
default:
|
|
40337
|
-
return /* @__PURE__ */
|
|
40348
|
+
return /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null);
|
|
40338
40349
|
}
|
|
40339
40350
|
});
|
|
40340
40351
|
};
|
|
@@ -40359,7 +40370,7 @@ var Hour2 = (_ref3) => {
|
|
|
40359
40370
|
(_ref$current = ref.current) == null || _ref$current.focus();
|
|
40360
40371
|
}, id);
|
|
40361
40372
|
const placeholder = hidePlaceholder ? void 0 : t("field.date.placeholder.hour");
|
|
40362
|
-
return /* @__PURE__ */
|
|
40373
|
+
return /* @__PURE__ */ React45__default.createElement(DateSegment, _extends({
|
|
40363
40374
|
ref,
|
|
40364
40375
|
segment,
|
|
40365
40376
|
className
|
|
@@ -40382,7 +40393,7 @@ var Minute2 = (_ref4) => {
|
|
|
40382
40393
|
t
|
|
40383
40394
|
} = useTranslation();
|
|
40384
40395
|
const placeholder = hidePlaceholder ? void 0 : t("field.date.placeholder.minute");
|
|
40385
|
-
return /* @__PURE__ */
|
|
40396
|
+
return /* @__PURE__ */ React45__default.createElement(DateSegment, _extends({
|
|
40386
40397
|
segment,
|
|
40387
40398
|
className
|
|
40388
40399
|
}, placeholder && {
|
|
@@ -40404,7 +40415,7 @@ var Period2 = (_ref5) => {
|
|
|
40404
40415
|
t
|
|
40405
40416
|
} = useTranslation();
|
|
40406
40417
|
const placeholder = hidePlaceholder ? void 0 : t("field.date.placeholder.period");
|
|
40407
|
-
return /* @__PURE__ */
|
|
40418
|
+
return /* @__PURE__ */ React45__default.createElement(DateSegment, _extends({
|
|
40408
40419
|
segment,
|
|
40409
40420
|
className
|
|
40410
40421
|
}, placeholder && {
|
|
@@ -40445,10 +40456,10 @@ var LoginBar = (_ref) => {
|
|
|
40445
40456
|
id,
|
|
40446
40457
|
FieldLayout
|
|
40447
40458
|
} = useFieldPropsV2();
|
|
40448
|
-
return /* @__PURE__ */
|
|
40459
|
+
return /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
40449
40460
|
fieldId: id,
|
|
40450
40461
|
renderLabel: () => null,
|
|
40451
|
-
renderInput: () => /* @__PURE__ */
|
|
40462
|
+
renderInput: () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, children),
|
|
40452
40463
|
renderDescription: () => null
|
|
40453
40464
|
});
|
|
40454
40465
|
};
|
|
@@ -40465,9 +40476,9 @@ var LoginBarInner = (_ref2) => {
|
|
|
40465
40476
|
const labelWithButton = !userData ? applyInternalProps(labelElement, {
|
|
40466
40477
|
buttonElement
|
|
40467
40478
|
}) : labelElement;
|
|
40468
|
-
return /* @__PURE__ */
|
|
40479
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
40469
40480
|
className
|
|
40470
|
-
}, userData ? /* @__PURE__ */
|
|
40481
|
+
}, userData ? /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, labelElement, buttonElement) : labelWithButton);
|
|
40471
40482
|
};
|
|
40472
40483
|
var LoginBarText = (_ref3) => {
|
|
40473
40484
|
let {
|
|
@@ -40486,7 +40497,7 @@ var LoginBarText = (_ref3) => {
|
|
|
40486
40497
|
const labelText = userData ? t("form.login-bar.title.logged-in-state", {
|
|
40487
40498
|
user: userData == null ? void 0 : userData.email
|
|
40488
40499
|
}) : t("form.login-bar.title.logged-out-state");
|
|
40489
|
-
return /* @__PURE__ */
|
|
40500
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
40490
40501
|
className
|
|
40491
40502
|
}, labelText, !userData && buttonElement);
|
|
40492
40503
|
};
|
|
@@ -40512,7 +40523,7 @@ var LoginBarButton = (_ref4) => {
|
|
|
40512
40523
|
actions == null || actions.requestLogin == null || actions.requestLogin(locale);
|
|
40513
40524
|
}
|
|
40514
40525
|
};
|
|
40515
|
-
return /* @__PURE__ */
|
|
40526
|
+
return /* @__PURE__ */ React45__default.createElement(Button, {
|
|
40516
40527
|
className,
|
|
40517
40528
|
onPress: handleClick
|
|
40518
40529
|
}, buttonText);
|
|
@@ -40526,23 +40537,23 @@ init_extends();
|
|
|
40526
40537
|
function ProgressCircle2(props) {
|
|
40527
40538
|
const strokeWidth = 4;
|
|
40528
40539
|
const radius = `calc(50% - ${strokeWidth / 2}px)`;
|
|
40529
|
-
return /* @__PURE__ */
|
|
40540
|
+
return /* @__PURE__ */ React45__default.createElement(ProgressBar, _extends({}, props, {
|
|
40530
40541
|
isIndeterminate: true
|
|
40531
40542
|
}), (_ref) => {
|
|
40532
40543
|
let {
|
|
40533
40544
|
percentage,
|
|
40534
40545
|
isIndeterminate
|
|
40535
40546
|
} = _ref;
|
|
40536
|
-
return /* @__PURE__ */
|
|
40547
|
+
return /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, /* @__PURE__ */ React45__default.createElement("svg", {
|
|
40537
40548
|
fill: "none",
|
|
40538
40549
|
width: "100%",
|
|
40539
40550
|
height: "100%",
|
|
40540
40551
|
viewBox: "0 0 32 32"
|
|
40541
|
-
}, /* @__PURE__ */
|
|
40552
|
+
}, /* @__PURE__ */ React45__default.createElement("circle", {
|
|
40542
40553
|
cx: "50%",
|
|
40543
40554
|
cy: "50%",
|
|
40544
40555
|
r: radius
|
|
40545
|
-
}), /* @__PURE__ */
|
|
40556
|
+
}), /* @__PURE__ */ React45__default.createElement("circle", {
|
|
40546
40557
|
cx: "50%",
|
|
40547
40558
|
cy: "50%",
|
|
40548
40559
|
r: radius,
|
|
@@ -40550,7 +40561,7 @@ function ProgressCircle2(props) {
|
|
|
40550
40561
|
strokeDasharray: "100 200",
|
|
40551
40562
|
strokeDashoffset: 100 - (isIndeterminate || percentage == null ? 25 : percentage),
|
|
40552
40563
|
strokeLinecap: "round"
|
|
40553
|
-
}, isIndeterminate && /* @__PURE__ */
|
|
40564
|
+
}, isIndeterminate && /* @__PURE__ */ React45__default.createElement("animateTransform", {
|
|
40554
40565
|
attributeName: "transform",
|
|
40555
40566
|
type: "rotate",
|
|
40556
40567
|
dur: "0.75s",
|
|
@@ -40570,10 +40581,10 @@ var SubmitButton = (_ref) => {
|
|
|
40570
40581
|
FieldLayout
|
|
40571
40582
|
} = useFieldPropsV2();
|
|
40572
40583
|
const buttonsContainerElement = findChildOfType(children, SubmitButton.SubmitButton);
|
|
40573
|
-
return /* @__PURE__ */
|
|
40584
|
+
return /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
40574
40585
|
fieldId: id,
|
|
40575
40586
|
renderLabel: () => null,
|
|
40576
|
-
renderInput: () => /* @__PURE__ */
|
|
40587
|
+
renderInput: () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, buttonsContainerElement),
|
|
40577
40588
|
renderDescription: () => null
|
|
40578
40589
|
});
|
|
40579
40590
|
};
|
|
@@ -40585,7 +40596,7 @@ var ButtonsContainer = (_ref2) => {
|
|
|
40585
40596
|
const previousButtonElement = findChildOfType(children, PreviousButton);
|
|
40586
40597
|
const nextButtonElement = findChildOfType(children, NextButton);
|
|
40587
40598
|
const submitButtonElement = findChildOfType(children, SubmitButtonComponent);
|
|
40588
|
-
return /* @__PURE__ */
|
|
40599
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
40589
40600
|
className
|
|
40590
40601
|
}, previousButtonElement, nextButtonElement, submitButtonElement);
|
|
40591
40602
|
};
|
|
@@ -40601,7 +40612,7 @@ var PreviousButton = (_ref3) => {
|
|
|
40601
40612
|
if (!showPreviousButton) {
|
|
40602
40613
|
return null;
|
|
40603
40614
|
}
|
|
40604
|
-
return /* @__PURE__ */
|
|
40615
|
+
return /* @__PURE__ */ React45__default.createElement(Button, {
|
|
40605
40616
|
className,
|
|
40606
40617
|
onPress: onPreviousClick
|
|
40607
40618
|
}, previousText);
|
|
@@ -40618,7 +40629,7 @@ var NextButton = (_ref4) => {
|
|
|
40618
40629
|
if (!showNextButton) {
|
|
40619
40630
|
return null;
|
|
40620
40631
|
}
|
|
40621
|
-
return /* @__PURE__ */
|
|
40632
|
+
return /* @__PURE__ */ React45__default.createElement(Button, {
|
|
40622
40633
|
className,
|
|
40623
40634
|
onPress: onNextClick
|
|
40624
40635
|
}, nextText);
|
|
@@ -40639,7 +40650,7 @@ var SubmitButtonComponent = (_ref5) => {
|
|
|
40639
40650
|
return null;
|
|
40640
40651
|
}
|
|
40641
40652
|
const loaderElement = findChildOfType(children, SubmitButtonComponent.Loader);
|
|
40642
|
-
return /* @__PURE__ */
|
|
40653
|
+
return /* @__PURE__ */ React45__default.createElement(Button, {
|
|
40643
40654
|
className,
|
|
40644
40655
|
onPress: onSubmitClick,
|
|
40645
40656
|
isDisabled: isDisabled || isInProgress,
|
|
@@ -40650,9 +40661,9 @@ var Loader = (_ref6) => {
|
|
|
40650
40661
|
let {
|
|
40651
40662
|
className
|
|
40652
40663
|
} = _ref6;
|
|
40653
|
-
return /* @__PURE__ */
|
|
40664
|
+
return /* @__PURE__ */ React45__default.createElement("span", {
|
|
40654
40665
|
className
|
|
40655
|
-
}, /* @__PURE__ */
|
|
40666
|
+
}, /* @__PURE__ */ React45__default.createElement(ProgressCircle2, null));
|
|
40656
40667
|
};
|
|
40657
40668
|
SubmitButtonComponent.Loader = Loader;
|
|
40658
40669
|
ButtonsContainer.PreviousButton = PreviousButton;
|
|
@@ -40682,7 +40693,7 @@ var FixedPayment = (_ref) => {
|
|
|
40682
40693
|
const amountElement = findChildOfType(children, FixedPayment.Amount);
|
|
40683
40694
|
const descriptionElement = findChildOfType(children, FixedPayment.Description);
|
|
40684
40695
|
const errorElement = findChildOfType(children, FixedPayment.Error);
|
|
40685
|
-
return /* @__PURE__ */
|
|
40696
|
+
return /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
40686
40697
|
fieldId: id,
|
|
40687
40698
|
renderLabel: () => labelElement,
|
|
40688
40699
|
renderInput: () => applyInternalProps(amountElement, {
|
|
@@ -40690,7 +40701,7 @@ var FixedPayment = (_ref) => {
|
|
|
40690
40701
|
currencyCode: currency == null ? void 0 : currency.code,
|
|
40691
40702
|
locale: regionalFormat
|
|
40692
40703
|
}),
|
|
40693
|
-
renderDescription: () => /* @__PURE__ */
|
|
40704
|
+
renderDescription: () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, descriptionElement, errorElement)
|
|
40694
40705
|
});
|
|
40695
40706
|
};
|
|
40696
40707
|
var Amount = (_ref2) => {
|
|
@@ -40712,7 +40723,7 @@ var Amount = (_ref2) => {
|
|
|
40712
40723
|
currency: currencyCode,
|
|
40713
40724
|
locale
|
|
40714
40725
|
});
|
|
40715
|
-
return /* @__PURE__ */
|
|
40726
|
+
return /* @__PURE__ */ React45__default.createElement("span", {
|
|
40716
40727
|
id: inputId,
|
|
40717
40728
|
"aria-describedby": ariaDescribedBy,
|
|
40718
40729
|
className,
|
|
@@ -40723,7 +40734,7 @@ var FixedPaymentLabel = (_ref3) => {
|
|
|
40723
40734
|
let {
|
|
40724
40735
|
className
|
|
40725
40736
|
} = _ref3;
|
|
40726
|
-
return /* @__PURE__ */
|
|
40737
|
+
return /* @__PURE__ */ React45__default.createElement(Label, {
|
|
40727
40738
|
className
|
|
40728
40739
|
}, null);
|
|
40729
40740
|
};
|
|
@@ -40808,10 +40819,10 @@ var ProductList = (_ref) => {
|
|
|
40808
40819
|
const newProductValues = isChecked ? [...restProductValues, productValue] : restProductValues;
|
|
40809
40820
|
onChange == null || onChange(newProductValues);
|
|
40810
40821
|
}, [_value, onChange]);
|
|
40811
|
-
return /* @__PURE__ */
|
|
40822
|
+
return /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
40812
40823
|
fieldId: id,
|
|
40813
40824
|
renderLabel: () => labelElement,
|
|
40814
|
-
renderInput: () => /* @__PURE__ */
|
|
40825
|
+
renderInput: () => /* @__PURE__ */ React45__default.createElement(FieldsetHeadless, {
|
|
40815
40826
|
id: inputId,
|
|
40816
40827
|
ariaLabelledBy: labelId,
|
|
40817
40828
|
ariaDescribedBy,
|
|
@@ -40825,7 +40836,7 @@ var ProductList = (_ref) => {
|
|
|
40825
40836
|
disabled,
|
|
40826
40837
|
hasError
|
|
40827
40838
|
}) : null),
|
|
40828
|
-
renderDescription: () => /* @__PURE__ */
|
|
40839
|
+
renderDescription: () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, errorElement, descriptionElement)
|
|
40829
40840
|
});
|
|
40830
40841
|
};
|
|
40831
40842
|
var Options10 = (_ref2) => {
|
|
@@ -40861,7 +40872,7 @@ var Options10 = (_ref2) => {
|
|
|
40861
40872
|
preventScroll: true
|
|
40862
40873
|
});
|
|
40863
40874
|
}, id);
|
|
40864
|
-
return /* @__PURE__ */
|
|
40875
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
40865
40876
|
className
|
|
40866
40877
|
}, options == null ? void 0 : options.map((option, index) => {
|
|
40867
40878
|
var _validation$predefine2;
|
|
@@ -40925,7 +40936,7 @@ var ProductOption = (_ref3) => {
|
|
|
40925
40936
|
}, [onProductChange, option.value, price]);
|
|
40926
40937
|
const ariaLabel = `${option.label} ${currencyAriaLabel} ${price}`;
|
|
40927
40938
|
if (allowMany) {
|
|
40928
|
-
return /* @__PURE__ */
|
|
40939
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
40929
40940
|
className,
|
|
40930
40941
|
"data-hook": "product"
|
|
40931
40942
|
}, imageElement ? applyInternalProps(imageElement, {
|
|
@@ -40943,7 +40954,7 @@ var ProductOption = (_ref3) => {
|
|
|
40943
40954
|
ariaLabel
|
|
40944
40955
|
}) : null);
|
|
40945
40956
|
}
|
|
40946
|
-
return /* @__PURE__ */
|
|
40957
|
+
return /* @__PURE__ */ React45__default.createElement(Checkbox$1, {
|
|
40947
40958
|
ref: checkboxRef,
|
|
40948
40959
|
isSelected,
|
|
40949
40960
|
onChange: handleCheckboxChange,
|
|
@@ -40978,7 +40989,7 @@ var OptionImage = (_ref4) => {
|
|
|
40978
40989
|
return null;
|
|
40979
40990
|
}
|
|
40980
40991
|
const imageAlt = option.media.image.altText || option.label || "";
|
|
40981
|
-
return /* @__PURE__ */
|
|
40992
|
+
return /* @__PURE__ */ React45__default.createElement("img", {
|
|
40982
40993
|
className,
|
|
40983
40994
|
src: imageURL,
|
|
40984
40995
|
alt: imageAlt,
|
|
@@ -40993,7 +41004,7 @@ var OptionLabel4 = (_ref5) => {
|
|
|
40993
41004
|
const {
|
|
40994
41005
|
label
|
|
40995
41006
|
} = internal;
|
|
40996
|
-
return /* @__PURE__ */
|
|
41007
|
+
return /* @__PURE__ */ React45__default.createElement("span", {
|
|
40997
41008
|
className,
|
|
40998
41009
|
"data-hook": "product-label"
|
|
40999
41010
|
}, label || "");
|
|
@@ -41015,7 +41026,7 @@ var OptionPrice = (_ref6) => {
|
|
|
41015
41026
|
currency: currency == null ? void 0 : currency.code,
|
|
41016
41027
|
locale: regionalFormat
|
|
41017
41028
|
});
|
|
41018
|
-
return /* @__PURE__ */
|
|
41029
|
+
return /* @__PURE__ */ React45__default.createElement("span", {
|
|
41019
41030
|
className,
|
|
41020
41031
|
"data-hook": "product-price"
|
|
41021
41032
|
}, formattedPrice);
|
|
@@ -41024,7 +41035,7 @@ var OptionInput3 = (_ref7) => {
|
|
|
41024
41035
|
let {
|
|
41025
41036
|
className
|
|
41026
41037
|
} = _ref7;
|
|
41027
|
-
return /* @__PURE__ */
|
|
41038
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
41028
41039
|
"aria-hidden": "true",
|
|
41029
41040
|
className
|
|
41030
41041
|
});
|
|
@@ -41050,7 +41061,7 @@ var OptionQuantity = (_ref8) => {
|
|
|
41050
41061
|
handleChange(0);
|
|
41051
41062
|
}
|
|
41052
41063
|
}, [handleChange]);
|
|
41053
|
-
return /* @__PURE__ */
|
|
41064
|
+
return /* @__PURE__ */ React45__default.createElement(NumberField, {
|
|
41054
41065
|
value: quantity,
|
|
41055
41066
|
onChange: handleChange,
|
|
41056
41067
|
minValue: 0,
|
|
@@ -41060,11 +41071,11 @@ var OptionQuantity = (_ref8) => {
|
|
|
41060
41071
|
"aria-label": ariaLabel,
|
|
41061
41072
|
className,
|
|
41062
41073
|
"data-hook": "product-quantity"
|
|
41063
|
-
}, /* @__PURE__ */
|
|
41074
|
+
}, /* @__PURE__ */ React45__default.createElement(Group, {
|
|
41064
41075
|
onKeyDown
|
|
41065
|
-
}, /* @__PURE__ */
|
|
41076
|
+
}, /* @__PURE__ */ React45__default.createElement(Button, {
|
|
41066
41077
|
slot: "decrement"
|
|
41067
|
-
}, "-"), /* @__PURE__ */
|
|
41078
|
+
}, "-"), /* @__PURE__ */ React45__default.createElement(Input$1, null), /* @__PURE__ */ React45__default.createElement(Button, {
|
|
41068
41079
|
slot: "increment"
|
|
41069
41080
|
}, "+")));
|
|
41070
41081
|
};
|
|
@@ -41149,10 +41160,10 @@ var Donation = (_ref) => {
|
|
|
41149
41160
|
const controlElement = findChildOfType(children, Donation.Control);
|
|
41150
41161
|
const descriptionElement = findChildOfType(children, Donation.Description);
|
|
41151
41162
|
const errorElement = findChildOfType(children, Donation.Error);
|
|
41152
|
-
return /* @__PURE__ */
|
|
41163
|
+
return /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
41153
41164
|
fieldId: id,
|
|
41154
41165
|
renderLabel: () => labelElement,
|
|
41155
|
-
renderInput: () => /* @__PURE__ */
|
|
41166
|
+
renderInput: () => /* @__PURE__ */ React45__default.createElement(RadioGroup$1, {
|
|
41156
41167
|
value: selectedValue,
|
|
41157
41168
|
onChange: handleRadioChange,
|
|
41158
41169
|
isDisabled: disabled,
|
|
@@ -41170,7 +41181,7 @@ var Donation = (_ref) => {
|
|
|
41170
41181
|
customAmountProductId: customAmountProduct == null ? void 0 : customAmountProduct.id,
|
|
41171
41182
|
onFocusCustomInput: handleFocusCustomInput
|
|
41172
41183
|
}) : null),
|
|
41173
|
-
renderDescription: () => /* @__PURE__ */
|
|
41184
|
+
renderDescription: () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, descriptionElement, errorElement)
|
|
41174
41185
|
});
|
|
41175
41186
|
};
|
|
41176
41187
|
var Control5 = (_ref2) => {
|
|
@@ -41192,7 +41203,7 @@ var Control5 = (_ref2) => {
|
|
|
41192
41203
|
} = internal;
|
|
41193
41204
|
const optionsElement = findChildOfType(children, Donation.Options);
|
|
41194
41205
|
const otherInputElement = findChildOfType(children, Donation.OtherInput);
|
|
41195
|
-
return /* @__PURE__ */
|
|
41206
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
41196
41207
|
className
|
|
41197
41208
|
}, optionsElement ? applyInternalProps(optionsElement, {
|
|
41198
41209
|
productsById,
|
|
@@ -41225,7 +41236,7 @@ var Options11 = (_ref3) => {
|
|
|
41225
41236
|
options
|
|
41226
41237
|
} = useFieldPropsV2();
|
|
41227
41238
|
const optionElement = findChildOfType(children, Options11.Option);
|
|
41228
|
-
return /* @__PURE__ */
|
|
41239
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
41229
41240
|
className
|
|
41230
41241
|
}, options.map((option) => {
|
|
41231
41242
|
var _product$fixedPriceOp;
|
|
@@ -41236,7 +41247,7 @@ var Options11 = (_ref3) => {
|
|
|
41236
41247
|
value: option.value,
|
|
41237
41248
|
price: price || "0"
|
|
41238
41249
|
});
|
|
41239
|
-
}), addOther && customAmountProductId && /* @__PURE__ */
|
|
41250
|
+
}), addOther && customAmountProductId && /* @__PURE__ */ React45__default.createElement(Radio, {
|
|
41240
41251
|
value: customAmountProductId,
|
|
41241
41252
|
style: {
|
|
41242
41253
|
position: "absolute",
|
|
@@ -41272,11 +41283,11 @@ var Option11 = (_ref4) => {
|
|
|
41272
41283
|
var _ref$current;
|
|
41273
41284
|
(_ref$current = ref.current) == null || (_ref$current = _ref$current.querySelector("input")) == null || _ref$current.focus();
|
|
41274
41285
|
}, id);
|
|
41275
|
-
return /* @__PURE__ */
|
|
41286
|
+
return /* @__PURE__ */ React45__default.createElement(Radio, {
|
|
41276
41287
|
value,
|
|
41277
41288
|
className,
|
|
41278
41289
|
ref
|
|
41279
|
-
}, /* @__PURE__ */
|
|
41290
|
+
}, /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, valueElement ? applyInternalProps(valueElement, {
|
|
41280
41291
|
price
|
|
41281
41292
|
}) : null, currencyElement));
|
|
41282
41293
|
};
|
|
@@ -41295,7 +41306,7 @@ var OptionValue = (_ref5) => {
|
|
|
41295
41306
|
amount: price,
|
|
41296
41307
|
locale: regionalFormat
|
|
41297
41308
|
});
|
|
41298
|
-
return /* @__PURE__ */
|
|
41309
|
+
return /* @__PURE__ */ React45__default.createElement("span", {
|
|
41299
41310
|
className
|
|
41300
41311
|
}, formattedPrice);
|
|
41301
41312
|
};
|
|
@@ -41306,7 +41317,7 @@ var OptionCurrency = (_ref6) => {
|
|
|
41306
41317
|
const {
|
|
41307
41318
|
currency
|
|
41308
41319
|
} = useConfig();
|
|
41309
|
-
return /* @__PURE__ */
|
|
41320
|
+
return /* @__PURE__ */ React45__default.createElement("span", {
|
|
41310
41321
|
className
|
|
41311
41322
|
}, (currency == null ? void 0 : currency.sign) || (currency == null ? void 0 : currency.code) || "");
|
|
41312
41323
|
};
|
|
@@ -41344,7 +41355,7 @@ var OtherInput3 = (_ref7) => {
|
|
|
41344
41355
|
onFocusCustomInput();
|
|
41345
41356
|
}, [onFocusCustomInput]);
|
|
41346
41357
|
const hasValue = customAmount && customAmount.trim() !== "";
|
|
41347
|
-
return /* @__PURE__ */
|
|
41358
|
+
return /* @__PURE__ */ React45__default.createElement(TextField, {
|
|
41348
41359
|
value: customAmount,
|
|
41349
41360
|
onChange: handleChange,
|
|
41350
41361
|
onFocus: handleFocus,
|
|
@@ -41371,7 +41382,7 @@ var OtherInputCurrency = (_ref8) => {
|
|
|
41371
41382
|
const {
|
|
41372
41383
|
prefixId
|
|
41373
41384
|
} = useFieldAttributes2();
|
|
41374
|
-
return /* @__PURE__ */
|
|
41385
|
+
return /* @__PURE__ */ React45__default.createElement("span", {
|
|
41375
41386
|
id: prefixId,
|
|
41376
41387
|
"aria-hidden": false,
|
|
41377
41388
|
"aria-label": getCurrencyAriaLabel(t, currency),
|
|
@@ -41392,7 +41403,7 @@ var OtherInputValue = (_ref9) => {
|
|
|
41392
41403
|
labelId,
|
|
41393
41404
|
prefixId
|
|
41394
41405
|
} = useFieldAttributes2();
|
|
41395
|
-
return /* @__PURE__ */
|
|
41406
|
+
return /* @__PURE__ */ React45__default.createElement(Input$1, {
|
|
41396
41407
|
id: customAmountProductId,
|
|
41397
41408
|
"aria-labelledby": `${labelId} ${prefixId}`,
|
|
41398
41409
|
"aria-describedby": ariaDescribedBy,
|
|
@@ -41452,10 +41463,10 @@ var PaymentInput = (_ref) => {
|
|
|
41452
41463
|
const inputElement = findChildOfType(children, PaymentInput.Input);
|
|
41453
41464
|
const descriptionElement = findChildOfType(children, PaymentInput.Description);
|
|
41454
41465
|
const errorElement = findChildOfType(children, PaymentInput.Error);
|
|
41455
|
-
return /* @__PURE__ */
|
|
41466
|
+
return /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
41456
41467
|
fieldId: id,
|
|
41457
41468
|
renderLabel: () => labelElement,
|
|
41458
|
-
renderInput: () => /* @__PURE__ */
|
|
41469
|
+
renderInput: () => /* @__PURE__ */ React45__default.createElement(TextField, {
|
|
41459
41470
|
value: value ? paymentValue : "",
|
|
41460
41471
|
onChange: handleOnChange,
|
|
41461
41472
|
isDisabled: disabled,
|
|
@@ -41464,7 +41475,7 @@ var PaymentInput = (_ref) => {
|
|
|
41464
41475
|
onBlur: handleOnBlur,
|
|
41465
41476
|
onFocus
|
|
41466
41477
|
}, inputElement),
|
|
41467
|
-
renderDescription: () => /* @__PURE__ */
|
|
41478
|
+
renderDescription: () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, descriptionElement, errorElement)
|
|
41468
41479
|
});
|
|
41469
41480
|
};
|
|
41470
41481
|
var Input13 = (_ref2) => {
|
|
@@ -41478,7 +41489,7 @@ var Input13 = (_ref2) => {
|
|
|
41478
41489
|
} = useFieldAttributes2();
|
|
41479
41490
|
const currencyElement = findChildOfType(children, Input13.Currency);
|
|
41480
41491
|
const valueElement = findChildOfType(children, Input13.Value);
|
|
41481
|
-
return /* @__PURE__ */
|
|
41492
|
+
return /* @__PURE__ */ React45__default.createElement(Group, {
|
|
41482
41493
|
id: inputId,
|
|
41483
41494
|
"aria-describedby": ariaDescribedBy,
|
|
41484
41495
|
className
|
|
@@ -41500,7 +41511,7 @@ var Currency = (_ref3) => {
|
|
|
41500
41511
|
if (!currency) {
|
|
41501
41512
|
return null;
|
|
41502
41513
|
}
|
|
41503
|
-
return /* @__PURE__ */
|
|
41514
|
+
return /* @__PURE__ */ React45__default.createElement("span", {
|
|
41504
41515
|
id: prefixId,
|
|
41505
41516
|
"aria-hidden": false,
|
|
41506
41517
|
"aria-label": getCurrencyAriaLabel(t, currency),
|
|
@@ -41525,7 +41536,7 @@ var Value = (_ref4) => {
|
|
|
41525
41536
|
var _inputRef$current;
|
|
41526
41537
|
(_inputRef$current = inputRef.current) == null || _inputRef$current.focus();
|
|
41527
41538
|
}, id);
|
|
41528
|
-
return /* @__PURE__ */
|
|
41539
|
+
return /* @__PURE__ */ React45__default.createElement(Input$1, {
|
|
41529
41540
|
ref: inputRef,
|
|
41530
41541
|
className,
|
|
41531
41542
|
placeholder,
|
|
@@ -42845,11 +42856,11 @@ var Signature = (_ref) => {
|
|
|
42845
42856
|
const inputElement = findChildOfType(children, Signature.Input);
|
|
42846
42857
|
const descriptionElement = findChildOfType(children, Signature.Description);
|
|
42847
42858
|
const errorElement = findChildOfType(children, Signature.Error);
|
|
42848
|
-
return /* @__PURE__ */
|
|
42859
|
+
return /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
42849
42860
|
fieldId: id,
|
|
42850
42861
|
renderLabel: () => labelElement,
|
|
42851
42862
|
renderInput: () => inputElement,
|
|
42852
|
-
renderDescription: () => /* @__PURE__ */
|
|
42863
|
+
renderDescription: () => /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, errorElement, descriptionElement)
|
|
42853
42864
|
});
|
|
42854
42865
|
};
|
|
42855
42866
|
var Input14 = (_ref2) => {
|
|
@@ -42877,7 +42888,7 @@ var Input14 = (_ref2) => {
|
|
|
42877
42888
|
});
|
|
42878
42889
|
const headerElement = findChildOfType(children, Input14.Header);
|
|
42879
42890
|
const valueElement = findChildOfType(children, Input14.Value);
|
|
42880
|
-
return /* @__PURE__ */
|
|
42891
|
+
return /* @__PURE__ */ React45__default.createElement(React45__default.Fragment, null, applyInternalProps(headerElement, {
|
|
42881
42892
|
signatureMode,
|
|
42882
42893
|
setSignatureMode,
|
|
42883
42894
|
handleClear,
|
|
@@ -42929,9 +42940,9 @@ var Header = (_ref3) => {
|
|
|
42929
42940
|
return "";
|
|
42930
42941
|
}
|
|
42931
42942
|
}, [signatureMode, t]);
|
|
42932
|
-
return /* @__PURE__ */
|
|
42943
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
42933
42944
|
className
|
|
42934
|
-
}, /* @__PURE__ */
|
|
42945
|
+
}, /* @__PURE__ */ React45__default.createElement("div", {
|
|
42935
42946
|
role: "status",
|
|
42936
42947
|
"aria-live": "polite",
|
|
42937
42948
|
style: {
|
|
@@ -42974,7 +42985,7 @@ var Tabs = (_ref4) => {
|
|
|
42974
42985
|
return allModes;
|
|
42975
42986
|
}, [uploadEnabled]);
|
|
42976
42987
|
const tabElement = findChildOfType(children, Tabs.Tab);
|
|
42977
|
-
return /* @__PURE__ */
|
|
42988
|
+
return /* @__PURE__ */ React45__default.createElement(RadioGroup$1, {
|
|
42978
42989
|
value: signatureMode,
|
|
42979
42990
|
onChange: handleChange,
|
|
42980
42991
|
"aria-labelledby": labelId,
|
|
@@ -43009,7 +43020,7 @@ var Tab = (_ref5) => {
|
|
|
43009
43020
|
return "";
|
|
43010
43021
|
}
|
|
43011
43022
|
}, [mode, t]);
|
|
43012
|
-
return /* @__PURE__ */
|
|
43023
|
+
return /* @__PURE__ */ React45__default.createElement(Radio, {
|
|
43013
43024
|
value: mode,
|
|
43014
43025
|
"aria-label": ariaLabel,
|
|
43015
43026
|
className
|
|
@@ -43040,7 +43051,7 @@ var TabIcon = (_ref6) => {
|
|
|
43040
43051
|
if (!IconComponent) {
|
|
43041
43052
|
return null;
|
|
43042
43053
|
}
|
|
43043
|
-
return /* @__PURE__ */
|
|
43054
|
+
return /* @__PURE__ */ React45__default.createElement(IconComponent, {
|
|
43044
43055
|
className,
|
|
43045
43056
|
size: "24",
|
|
43046
43057
|
"aria-hidden": "true"
|
|
@@ -43060,12 +43071,12 @@ var Clear = (_ref7) => {
|
|
|
43060
43071
|
const {
|
|
43061
43072
|
inputId
|
|
43062
43073
|
} = useFieldAttributes2();
|
|
43063
|
-
return /* @__PURE__ */
|
|
43074
|
+
return /* @__PURE__ */ React45__default.createElement(Button, {
|
|
43064
43075
|
onPress: handleClear,
|
|
43065
43076
|
"aria-label": t("field.signature.clear-button.label"),
|
|
43066
43077
|
"aria-controls": inputId,
|
|
43067
43078
|
className
|
|
43068
|
-
}, /* @__PURE__ */
|
|
43079
|
+
}, /* @__PURE__ */ React45__default.createElement(Delete_default, {
|
|
43069
43080
|
size: "24",
|
|
43070
43081
|
"aria-hidden": "true"
|
|
43071
43082
|
}));
|
|
@@ -43093,7 +43104,7 @@ var Value2 = (_ref8) => {
|
|
|
43093
43104
|
const canvasElement = findChildOfType(children, Value2.Canvas);
|
|
43094
43105
|
const typeElement = findChildOfType(children, Value2.Type);
|
|
43095
43106
|
const uploadElement = findChildOfType(children, Value2.Upload);
|
|
43096
|
-
return /* @__PURE__ */
|
|
43107
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
43097
43108
|
className,
|
|
43098
43109
|
role: "region",
|
|
43099
43110
|
"aria-label": t("field.signature.input-area") || "Signature input area"
|
|
@@ -43220,9 +43231,9 @@ var Canvas = (_ref9) => {
|
|
|
43220
43231
|
pad.current.on();
|
|
43221
43232
|
}
|
|
43222
43233
|
}, [readOnly]);
|
|
43223
|
-
return /* @__PURE__ */
|
|
43234
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
43224
43235
|
className
|
|
43225
|
-
}, /* @__PURE__ */
|
|
43236
|
+
}, /* @__PURE__ */ React45__default.createElement("canvas", {
|
|
43226
43237
|
ref: mountCanvas,
|
|
43227
43238
|
id: inputId,
|
|
43228
43239
|
"data-input-id": inputId,
|
|
@@ -43293,7 +43304,7 @@ var Type6 = (_ref0) => {
|
|
|
43293
43304
|
}
|
|
43294
43305
|
}, [onBeforeChange, onChange]);
|
|
43295
43306
|
const valueElement = findChildOfType(children, Type6.Value);
|
|
43296
|
-
return /* @__PURE__ */
|
|
43307
|
+
return /* @__PURE__ */ React45__default.createElement(TextField, {
|
|
43297
43308
|
value: signatureText,
|
|
43298
43309
|
onChange: handleChange,
|
|
43299
43310
|
isReadOnly: readOnly,
|
|
@@ -43317,7 +43328,7 @@ var TypeValue = (_ref1) => {
|
|
|
43317
43328
|
const {
|
|
43318
43329
|
label
|
|
43319
43330
|
} = useFieldPropsV2();
|
|
43320
|
-
return /* @__PURE__ */
|
|
43331
|
+
return /* @__PURE__ */ React45__default.createElement(Input$1, {
|
|
43321
43332
|
id: inputId,
|
|
43322
43333
|
"aria-describedby": ariaDescribedBy,
|
|
43323
43334
|
"aria-label": label,
|
|
@@ -43355,9 +43366,9 @@ var Upload = (_ref10) => {
|
|
|
43355
43366
|
const {
|
|
43356
43367
|
t
|
|
43357
43368
|
} = useTranslation();
|
|
43358
|
-
return /* @__PURE__ */
|
|
43369
|
+
return /* @__PURE__ */ React45__default.createElement("div", {
|
|
43359
43370
|
className
|
|
43360
|
-
}, /* @__PURE__ */
|
|
43371
|
+
}, /* @__PURE__ */ React45__default.createElement("input", {
|
|
43361
43372
|
ref: fileInputRef,
|
|
43362
43373
|
type: "file",
|
|
43363
43374
|
accept: "image/*",
|
|
@@ -43370,7 +43381,7 @@ var Upload = (_ref10) => {
|
|
|
43370
43381
|
}), !hasUploadedImage && applyInternalProps(buttonElement, {
|
|
43371
43382
|
fileInputRef,
|
|
43372
43383
|
readOnly
|
|
43373
|
-
}), hasUploadedImage && value.url && /* @__PURE__ */
|
|
43384
|
+
}), hasUploadedImage && value.url && /* @__PURE__ */ React45__default.createElement("img", {
|
|
43374
43385
|
src: value.url,
|
|
43375
43386
|
alt: t("field.signature.uploaded-image.alt") || "Uploaded signature image",
|
|
43376
43387
|
style: {
|
|
@@ -43400,7 +43411,7 @@ var UploadButton = (_ref11) => {
|
|
|
43400
43411
|
var _fileInputRef$current;
|
|
43401
43412
|
(_fileInputRef$current = fileInputRef.current) == null || _fileInputRef$current.click();
|
|
43402
43413
|
}, [fileInputRef]);
|
|
43403
|
-
return /* @__PURE__ */
|
|
43414
|
+
return /* @__PURE__ */ React45__default.createElement(Button, {
|
|
43404
43415
|
id: inputId,
|
|
43405
43416
|
onPress: handlePress,
|
|
43406
43417
|
isDisabled: readOnly,
|
|
@@ -43442,7 +43453,7 @@ var RichText = (_ref) => {
|
|
|
43442
43453
|
const {
|
|
43443
43454
|
locale
|
|
43444
43455
|
} = useConfig();
|
|
43445
|
-
return /* @__PURE__ */
|
|
43456
|
+
return /* @__PURE__ */ React45__default.createElement(FieldLayout, {
|
|
43446
43457
|
fieldId: id,
|
|
43447
43458
|
renderLabel: () => null,
|
|
43448
43459
|
renderInput: () => children({
|