@zealicsolutions/web-ui 1.0.78 → 1.0.79
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/cjs/components/Buttons/TextButton.d.ts +1 -1
- package/dist/cjs/components/Input/helpers.d.ts +1 -1
- package/dist/cjs/components/RichTextViewer/components/VariableFormatter.d.ts +3 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/molecules/Button/Button.d.ts +1 -1
- package/dist/cjs/molecules/Checklist/Checklist.stories.d.ts +5 -5
- package/dist/cjs/molecules/Drawer/Drawer.stories.d.ts +3 -3
- package/dist/cjs/molecules/Drawer/styles.d.ts +6 -6
- package/dist/cjs/molecules/Link/Link.d.ts +1 -1
- package/dist/cjs/molecules/Stepper/Stepper.stories.d.ts +5 -5
- package/dist/cjs/molecules/Tabs/Tabs.stories.d.ts +5 -5
- package/dist/esm/components/Buttons/TextButton.d.ts +1 -1
- package/dist/esm/components/Input/helpers.d.ts +1 -1
- package/dist/esm/components/RichTextViewer/components/Leaf.js.map +1 -1
- package/dist/esm/components/RichTextViewer/components/VariableFormatter.d.ts +3 -1
- package/dist/esm/components/RichTextViewer/components/VariableFormatter.js +1 -1
- package/dist/esm/components/RichTextViewer/components/VariableFormatter.js.map +1 -1
- package/dist/esm/molecules/BaseMolecule.js +1 -1
- package/dist/esm/molecules/BaseMolecule.js.map +1 -1
- package/dist/esm/molecules/Button/Button.d.ts +1 -1
- package/dist/esm/molecules/Checklist/Checklist.stories.d.ts +5 -5
- package/dist/esm/molecules/Drawer/Drawer.stories.d.ts +3 -3
- package/dist/esm/molecules/Drawer/styles.d.ts +6 -6
- package/dist/esm/molecules/Link/Link.d.ts +1 -1
- package/dist/esm/molecules/Link/Link.js +1 -1
- package/dist/esm/molecules/Link/Link.js.map +1 -1
- package/dist/esm/molecules/Stepper/Stepper.stories.d.ts +5 -5
- package/dist/esm/molecules/Tabs/Tabs.stories.d.ts +5 -5
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
@@ -34,4 +34,4 @@ export interface ButtonProps extends MuiButtonProps {
|
|
34
34
|
* We use `forwardRef` so that the ref passed from parent Component (Menu)
|
35
35
|
* will correctly point to the underlying <MuiButton> element.
|
36
36
|
*/
|
37
|
-
export declare const Button: React.ForwardRefExoticComponent<Pick<ButtonProps, "
|
37
|
+
export declare const Button: React.ForwardRefExoticComponent<Pick<ButtonProps, "type" | "id" | "name" | "children" | "form" | "text" | "link" | "width" | "height" | "value" | "disabled" | "onClick" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "configurationItemInfo" | "gap" | "moleculeId" | "borderRadius" | "title" | "textColor" | "fontSize" | "fontFamily" | "fontWeight" | "textAlign" | "variant" | "color" | "wrapText" | "className" | "style" | "classes" | "sx" | "slot" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "component" | "size" | "autoFocus" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "disableElevation" | "disableFocusRipple" | "endIcon" | "fullWidth" | "href" | "startIcon" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "disabledColor" | "elevated"> & React.RefAttributes<HTMLButtonElement>>;
|
@@ -81,7 +81,7 @@ declare const _default: {
|
|
81
81
|
};
|
82
82
|
};
|
83
83
|
export default _default;
|
84
|
-
export declare const UserInteractiveCheckboxes: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<ChecklistProps, "
|
84
|
+
export declare const UserInteractiveCheckboxes: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<ChecklistProps, "width" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "gap" | "minWidth" | "maxWidth"> & {
|
85
85
|
gap: number | string;
|
86
86
|
width: number | string;
|
87
87
|
minWidth: number | string;
|
@@ -98,7 +98,7 @@ export declare const UserInteractiveCheckboxes: import("@storybook/types").Annot
|
|
98
98
|
interacted: 'checked' | 'unchecked';
|
99
99
|
}> | undefined;
|
100
100
|
}>;
|
101
|
-
export declare const SystemDrivenCheckboxes: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<ChecklistProps, "
|
101
|
+
export declare const SystemDrivenCheckboxes: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<ChecklistProps, "width" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "gap" | "minWidth" | "maxWidth"> & {
|
102
102
|
gap: number | string;
|
103
103
|
width: number | string;
|
104
104
|
minWidth: number | string;
|
@@ -115,7 +115,7 @@ export declare const SystemDrivenCheckboxes: import("@storybook/types").Annotate
|
|
115
115
|
interacted: 'checked' | 'unchecked';
|
116
116
|
}> | undefined;
|
117
117
|
}>;
|
118
|
-
export declare const MixedChecklistWithWidthConstraints: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<ChecklistProps, "
|
118
|
+
export declare const MixedChecklistWithWidthConstraints: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<ChecklistProps, "width" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "gap" | "minWidth" | "maxWidth"> & {
|
119
119
|
gap: number | string;
|
120
120
|
width: number | string;
|
121
121
|
minWidth: number | string;
|
@@ -132,7 +132,7 @@ export declare const MixedChecklistWithWidthConstraints: import("@storybook/type
|
|
132
132
|
interacted: 'checked' | 'unchecked';
|
133
133
|
}> | undefined;
|
134
134
|
}>;
|
135
|
-
export declare const WithCustomSpacing: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<ChecklistProps, "
|
135
|
+
export declare const WithCustomSpacing: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<ChecklistProps, "width" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "gap" | "minWidth" | "maxWidth"> & {
|
136
136
|
gap: number | string;
|
137
137
|
width: number | string;
|
138
138
|
minWidth: number | string;
|
@@ -149,7 +149,7 @@ export declare const WithCustomSpacing: import("@storybook/types").AnnotatedStor
|
|
149
149
|
interacted: 'checked' | 'unchecked';
|
150
150
|
}> | undefined;
|
151
151
|
}>;
|
152
|
-
export declare const WithStateObjectValues: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<ChecklistProps, "
|
152
|
+
export declare const WithStateObjectValues: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<ChecklistProps, "width" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "gap" | "minWidth" | "maxWidth"> & {
|
153
153
|
gap: number | string;
|
154
154
|
width: number | string;
|
155
155
|
minWidth: number | string;
|
@@ -8,7 +8,7 @@ export declare const PermanentDrawer: import("@storybook/types").AnnotatedStoryF
|
|
8
8
|
headerHeight?: number | undefined;
|
9
9
|
contentPadding?: number | undefined;
|
10
10
|
contentText?: string | undefined;
|
11
|
-
buttonPosition?: "
|
11
|
+
buttonPosition?: "header" | "content" | undefined;
|
12
12
|
}>;
|
13
13
|
export declare const ClippedDrawer: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, DrawerProps & {
|
14
14
|
showHeader?: boolean | undefined;
|
@@ -16,7 +16,7 @@ export declare const ClippedDrawer: import("@storybook/types").AnnotatedStoryFn<
|
|
16
16
|
headerHeight?: number | undefined;
|
17
17
|
contentPadding?: number | undefined;
|
18
18
|
contentText?: string | undefined;
|
19
|
-
buttonPosition?: "
|
19
|
+
buttonPosition?: "header" | "content" | undefined;
|
20
20
|
}>;
|
21
21
|
export declare const MixedItemsDrawer: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, DrawerProps>;
|
22
22
|
export declare const BottomDrawer: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, DrawerProps>;
|
@@ -26,7 +26,7 @@ export declare const ResponsiveDrawer: import("@storybook/types").AnnotatedStory
|
|
26
26
|
headerHeight?: number | undefined;
|
27
27
|
contentPadding?: number | undefined;
|
28
28
|
contentText?: string | undefined;
|
29
|
-
buttonPosition?: "
|
29
|
+
buttonPosition?: "header" | "content" | undefined;
|
30
30
|
}>;
|
31
31
|
export declare const ConfigurationMode: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, any>;
|
32
32
|
export declare const Playground: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, DrawerProps>;
|
@@ -35,7 +35,7 @@ export declare const BaseDrawer: import("@emotion/styled").StyledComponent<Drawe
|
|
35
35
|
marginRight?: string | undefined;
|
36
36
|
marginBottom?: string | undefined;
|
37
37
|
marginLeft?: string | undefined;
|
38
|
-
positionType?: "
|
38
|
+
positionType?: "normal" | "absolute" | undefined;
|
39
39
|
}, {}, {}>;
|
40
40
|
export declare type IconWrapperProps = {
|
41
41
|
position?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
@@ -59,12 +59,12 @@ export declare const DrawerContent: import("@emotion/styled").StyledComponent<im
|
|
59
59
|
}, {}, {}>;
|
60
60
|
export declare const DrawerItemsList: import("@emotion/styled").StyledComponent<import("@mui/material").ListOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "key" | keyof import("react").HTMLAttributes<HTMLUListElement>> & {
|
61
61
|
ref?: ((instance: HTMLUListElement | null) => void) | import("react").RefObject<HTMLUListElement> | null | undefined;
|
62
|
-
}, "
|
62
|
+
}, "children" | "className" | "style" | "classes" | "sx" | "dense" | "disablePadding" | "subheader"> & {
|
63
63
|
theme?: import("@emotion/react").Theme | undefined;
|
64
64
|
}, {}, {}>;
|
65
65
|
export declare const DrawerMenuItem: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemButtonOwnProps & Omit<import("@mui/material").ButtonBaseOwnProps, "classes"> & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
66
66
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
67
|
-
}, "
|
67
|
+
}, "children" | "divider" | "disabled" | "selected" | "className" | "style" | "classes" | "sx" | "tabIndex" | "autoFocus" | "action" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "alignItems" | "dense" | "disableGutters"> & {
|
68
68
|
theme?: import("@emotion/react").Theme | undefined;
|
69
69
|
} & {
|
70
70
|
backgroundColor?: string | undefined;
|
@@ -72,11 +72,11 @@ export declare const DrawerMenuItem: import("@emotion/styled").StyledComponent<i
|
|
72
72
|
paddingRight?: string | undefined;
|
73
73
|
paddingBottom?: string | undefined;
|
74
74
|
paddingLeft?: string | undefined;
|
75
|
-
textAlign?: "left" | "
|
75
|
+
textAlign?: "left" | "center" | "right" | "justify" | undefined;
|
76
76
|
}, {}, {}>;
|
77
77
|
export declare const DrawerMenuItemText: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "key" | keyof import("react").HTMLAttributes<HTMLSpanElement>> & {
|
78
78
|
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
79
|
-
}, "
|
79
|
+
}, "children" | "width" | "height" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "gap" | "borderRadius" | "minWidth" | "maxWidth" | "top" | "bottom" | "fontSize" | "fontFamily" | "fontWeight" | "textAlign" | "variant" | "color" | "left" | "borderColor" | "right" | "className" | "style" | "classes" | "sx" | "p" | "border" | "boxShadow" | "zIndex" | "alignContent" | "alignItems" | "alignSelf" | "boxSizing" | "columnGap" | "display" | "flexBasis" | "flexDirection" | "flexGrow" | "flexShrink" | "flexWrap" | "fontStyle" | "gridAutoColumns" | "gridAutoFlow" | "gridAutoRows" | "gridTemplateAreas" | "gridTemplateColumns" | "gridTemplateRows" | "justifyContent" | "justifyItems" | "justifySelf" | "letterSpacing" | "lineHeight" | "marginBlockEnd" | "marginBlockStart" | "marginInlineEnd" | "marginInlineStart" | "maxHeight" | "minHeight" | "order" | "paddingBlockEnd" | "paddingBlockStart" | "paddingInlineEnd" | "paddingInlineStart" | "position" | "rowGap" | "textOverflow" | "textTransform" | "visibility" | "whiteSpace" | "borderBottom" | "borderLeft" | "borderRight" | "borderTop" | "flex" | "gridArea" | "gridColumn" | "gridRow" | "margin" | "marginBlock" | "marginInline" | "overflow" | "padding" | "paddingBlock" | "paddingInline" | "bgcolor" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "marginX" | "my" | "marginY" | "pt" | "pr" | "pb" | "pl" | "px" | "paddingX" | "py" | "paddingY" | "typography" | "displayPrint" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & {
|
80
80
|
theme?: import("@emotion/react").Theme | undefined;
|
81
81
|
} & {
|
82
82
|
textColor?: string | undefined;
|
@@ -84,7 +84,7 @@ export declare const DrawerMenuItemText: import("@emotion/styled").StyledCompone
|
|
84
84
|
fontWeight?: "bold" | "normal" | undefined;
|
85
85
|
fontFamily?: string | undefined;
|
86
86
|
wrap?: boolean | undefined;
|
87
|
-
textAlign?: "left" | "
|
87
|
+
textAlign?: "left" | "center" | "right" | "justify" | undefined;
|
88
88
|
}, {}, {}>;
|
89
89
|
export declare const ButtonContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Pick<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "key" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
90
90
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { FC } from 'react';
|
2
1
|
import { TypographyProps } from '@mui/material';
|
3
2
|
import { ConfigurationItemInfo, MetadataType } from 'containers';
|
3
|
+
import { FC } from 'react';
|
4
4
|
export declare type LinkTypes = 'internalLink' | 'internal_link' | 'externalLink' | 'external_link';
|
5
5
|
export interface LinkProps {
|
6
6
|
src: string | undefined;
|
@@ -85,7 +85,7 @@ declare const _default: {
|
|
85
85
|
};
|
86
86
|
};
|
87
87
|
export default _default;
|
88
|
-
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<StepperProps, "
|
88
|
+
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<StepperProps, "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "gap" | "stepGap" | "iconSize" | "lineWidth" | "lineRadius" | "borderRadius" | "iconBorderRadius"> & {
|
89
89
|
gap: number | string;
|
90
90
|
stepGap: number | string;
|
91
91
|
iconSize: number | string;
|
@@ -102,7 +102,7 @@ export declare const Default: import("@storybook/types").AnnotatedStoryFn<import
|
|
102
102
|
marginLeft: number | string;
|
103
103
|
borderRadius: number | string;
|
104
104
|
}>;
|
105
|
-
export declare const Horizontal: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<StepperProps, "
|
105
|
+
export declare const Horizontal: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<StepperProps, "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "gap" | "stepGap" | "iconSize" | "lineWidth" | "lineRadius" | "borderRadius" | "iconBorderRadius"> & {
|
106
106
|
gap: number | string;
|
107
107
|
stepGap: number | string;
|
108
108
|
iconSize: number | string;
|
@@ -119,7 +119,7 @@ export declare const Horizontal: import("@storybook/types").AnnotatedStoryFn<imp
|
|
119
119
|
marginLeft: number | string;
|
120
120
|
borderRadius: number | string;
|
121
121
|
}>;
|
122
|
-
export declare const WithCustomGap: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<StepperProps, "
|
122
|
+
export declare const WithCustomGap: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<StepperProps, "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "gap" | "stepGap" | "iconSize" | "lineWidth" | "lineRadius" | "borderRadius" | "iconBorderRadius"> & {
|
123
123
|
gap: number | string;
|
124
124
|
stepGap: number | string;
|
125
125
|
iconSize: number | string;
|
@@ -136,7 +136,7 @@ export declare const WithCustomGap: import("@storybook/types").AnnotatedStoryFn<
|
|
136
136
|
marginLeft: number | string;
|
137
137
|
borderRadius: number | string;
|
138
138
|
}>;
|
139
|
-
export declare const MobileView: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<StepperProps, "
|
139
|
+
export declare const MobileView: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<StepperProps, "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "gap" | "stepGap" | "iconSize" | "lineWidth" | "lineRadius" | "borderRadius" | "iconBorderRadius"> & {
|
140
140
|
gap: number | string;
|
141
141
|
stepGap: number | string;
|
142
142
|
iconSize: number | string;
|
@@ -153,7 +153,7 @@ export declare const MobileView: import("@storybook/types").AnnotatedStoryFn<imp
|
|
153
153
|
marginLeft: number | string;
|
154
154
|
borderRadius: number | string;
|
155
155
|
}>;
|
156
|
-
export declare const WithMarginAndPadding: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<StepperProps, "
|
156
|
+
export declare const WithMarginAndPadding: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<StepperProps, "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "gap" | "stepGap" | "iconSize" | "lineWidth" | "lineRadius" | "borderRadius" | "iconBorderRadius"> & {
|
157
157
|
gap: number | string;
|
158
158
|
stepGap: number | string;
|
159
159
|
iconSize: number | string;
|
@@ -130,7 +130,7 @@ declare const _default: {
|
|
130
130
|
};
|
131
131
|
};
|
132
132
|
export default _default;
|
133
|
-
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<TabsProps, "
|
133
|
+
export declare const Default: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<TabsProps, "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "gap" | "lineWidth" | "buttonPaddingTop" | "buttonPaddingRight" | "buttonPaddingBottom" | "buttonPaddingLeft"> & {
|
134
134
|
gap: number | string;
|
135
135
|
lineWidth: number | string;
|
136
136
|
marginTop: number | string;
|
@@ -146,7 +146,7 @@ export declare const Default: import("@storybook/types").AnnotatedStoryFn<import
|
|
146
146
|
buttonPaddingBottom: number | string;
|
147
147
|
buttonPaddingLeft: number | string;
|
148
148
|
}>;
|
149
|
-
export declare const NoIndicator: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<TabsProps, "
|
149
|
+
export declare const NoIndicator: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<TabsProps, "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "gap" | "lineWidth" | "buttonPaddingTop" | "buttonPaddingRight" | "buttonPaddingBottom" | "buttonPaddingLeft"> & {
|
150
150
|
gap: number | string;
|
151
151
|
lineWidth: number | string;
|
152
152
|
marginTop: number | string;
|
@@ -162,7 +162,7 @@ export declare const NoIndicator: import("@storybook/types").AnnotatedStoryFn<im
|
|
162
162
|
buttonPaddingBottom: number | string;
|
163
163
|
buttonPaddingLeft: number | string;
|
164
164
|
}>;
|
165
|
-
export declare const MobileVersion: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<TabsProps, "
|
165
|
+
export declare const MobileVersion: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<TabsProps, "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "gap" | "lineWidth" | "buttonPaddingTop" | "buttonPaddingRight" | "buttonPaddingBottom" | "buttonPaddingLeft"> & {
|
166
166
|
gap: number | string;
|
167
167
|
lineWidth: number | string;
|
168
168
|
marginTop: number | string;
|
@@ -178,7 +178,7 @@ export declare const MobileVersion: import("@storybook/types").AnnotatedStoryFn<
|
|
178
178
|
buttonPaddingBottom: number | string;
|
179
179
|
buttonPaddingLeft: number | string;
|
180
180
|
}>;
|
181
|
-
export declare const AdvancedStyling: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<TabsProps, "
|
181
|
+
export declare const AdvancedStyling: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<TabsProps, "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "gap" | "lineWidth" | "buttonPaddingTop" | "buttonPaddingRight" | "buttonPaddingBottom" | "buttonPaddingLeft"> & {
|
182
182
|
gap: number | string;
|
183
183
|
lineWidth: number | string;
|
184
184
|
marginTop: number | string;
|
@@ -194,7 +194,7 @@ export declare const AdvancedStyling: import("@storybook/types").AnnotatedStoryF
|
|
194
194
|
buttonPaddingBottom: number | string;
|
195
195
|
buttonPaddingLeft: number | string;
|
196
196
|
}>;
|
197
|
-
export declare const VerticalTabs: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<TabsProps, "
|
197
|
+
export declare const VerticalTabs: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0a347bb9").R, Omit<TabsProps, "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "gap" | "lineWidth" | "buttonPaddingTop" | "buttonPaddingRight" | "buttonPaddingBottom" | "buttonPaddingLeft"> & {
|
198
198
|
gap: number | string;
|
199
199
|
lineWidth: number | string;
|
200
200
|
marginTop: number | string;
|
@@ -10,7 +10,7 @@ export declare type TextButtonProps = Pick<BaseButtonProps, 'disabled' | 'onClic
|
|
10
10
|
textColor: string;
|
11
11
|
}>;
|
12
12
|
export declare const BaseTextButton: React.FC<TextButtonProps & React.AnchorHTMLAttributes<HTMLAnchorElement>>;
|
13
|
-
export declare const TextButton: import("@emotion/styled").StyledComponent<Pick<BaseButtonProps, "children" | "
|
13
|
+
export declare const TextButton: import("@emotion/styled").StyledComponent<Pick<BaseButtonProps, "children" | "disabled" | "onClick" | "size" | "colorTheme"> & Partial<{
|
14
14
|
buttonLink: string;
|
15
15
|
elementId: string;
|
16
16
|
$styles: StylesType;
|
@@ -10,7 +10,7 @@ export declare type MaskConfig = {
|
|
10
10
|
};
|
11
11
|
export declare const getSpecificInputProps: (type: string) => {
|
12
12
|
type?: HTMLInputTypeAttribute | undefined;
|
13
|
-
inputMode?: "
|
13
|
+
inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
14
14
|
};
|
15
15
|
export declare const getMaskInputProps: (type?: any, config?: MaskConfig) => Pick<MaskedInputProps, 'pipe' | 'mask' | 'placeholder' | 'keepCharPositions'>;
|
16
16
|
export declare const getInputIconColor: ({ isEditMode, isFocused, isError, disabled, }: Pick<Partial<{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Leaf.js","sources":["../../../../../../src/components/RichTextViewer/components/Leaf.tsx"],"sourcesContent":[null],"names":["Leaf","_a","leaf","children","attributes","_e","useMlrRichTextViewerContext","showAnnotations","annotationsList","isMLRReview","_f","useOrganismContext","isPreview","localStateObject","stateConfig","useStateContext","stateObject","tag","annotationTagIndex","tags","findIndex","id","_b","_jsxs","Stack","__assign","component","display","direction","alignItems","gap","MATRIX_MESSAGE_ELEMENT_ID","concat","MATRIX_MESSAGE_DATA_ID","_d","_jsx","style","backgroundColor","Circle","index","label","_c","type","bold","fontWeight","strikethrough","italic","fontStyle","underline","color","bgColor","fontSize","fontFamily","letterSpacing","lineHeight","variable","VariableFormatter","communicationLink","_g","url_1","url","isInternalLink","link","addInternalParamsToCurrentLink","annotationLinkIndex","links","annotationLink","text","_Fragment","marginBottom","COMMUNICATION_LINK_ELEMENT_ID","COMMUNICATION_LINK_DATA_URL","COMMUNICATION_LINK_DATA_TEXT","defaultTheme","colors","blue","href","target"],"mappings":"sqjHAeO,IAAMA,EAAO,SAACC,aAAEC,SAAMC,EAAQF,EAAAE,SAAEC,EAAUH,EAAAG,WACzCC,EAAoDC,IAAlDC,EAAeF,EAAAE,gBAAEC,EAAeH,EAAAG,gBAAEC,EAAWJ,EAAAI,YAC/CC,EAAkCC,IAAhCC,EAASF,EAAAE,UAAEC,EAAgBH,EAAAG,iBAC3BC,EAAgBC,gBAElBC,EAAcH,GAAoBC,EAGxC,GAAIZ,EAAKe,IAAK,CACZ,IAAMC,EAAqBV,EAAgBW,KAAKC,WAAU,SAACnB,SAAEoB,EAAEpB,EAAAoB,GAAO,OAAU,UAAVnB,EAAKe,WAAK,IAAAK,OAAA,EAAAA,EAAAD,MAAOA,CAAE,IAAI,EAEzFZ,GAAeF,GAAqBW,IACtCf,EACEoB,EAACC,EACCC,EAAA,CAAAC,UAAU,OACVC,QAAQ,cACRC,UAAU,MACVC,WAAW,SACXC,IAAK,GACLT,GAAIU,KAAyBT,EAAA,CAAA,GACtB,QAAQU,OAAAC,IAAqC,QAAVC,EAAAhC,EAAKe,WAAK,IAAAiB,OAAA,EAAAA,EAAAb,GAEpDC,GAAA,CAAAnB,SAAA,CAAAgC,EAAA,OAAAV,EAAA,CAAMW,MAAO,CAAEC,gBAAiB,cAAgB,CAAAlC,SAAAA,KAChDgC,EAACG,GACCC,MACE/B,EAAgBW,KAAKC,WACnB,SAACnB,WAAEoB,EAAEpB,EAAAoB,GAAEmB,EAAKvC,EAAAuC,MAAO,OAAQ,QAARlB,EAAApB,EAAKe,WAAG,IAAAK,OAAA,EAAAA,EAAED,MAAOA,YAAMoB,EAAAvC,EAAKe,0BAAKuB,SAAUA,KAC5D,EAENE,KAAK,gBAKd,
|
1
|
+
{"version":3,"file":"Leaf.js","sources":["../../../../../../src/components/RichTextViewer/components/Leaf.tsx"],"sourcesContent":[null],"names":["Leaf","_a","leaf","children","attributes","_e","useMlrRichTextViewerContext","showAnnotations","annotationsList","isMLRReview","_f","useOrganismContext","isPreview","localStateObject","stateConfig","useStateContext","stateObject","tag","annotationTagIndex","tags","findIndex","id","_b","_jsxs","Stack","__assign","component","display","direction","alignItems","gap","MATRIX_MESSAGE_ELEMENT_ID","concat","MATRIX_MESSAGE_DATA_ID","_d","_jsx","style","backgroundColor","Circle","index","label","_c","type","bold","fontWeight","strikethrough","italic","fontStyle","underline","color","bgColor","fontSize","fontFamily","letterSpacing","lineHeight","variable","VariableFormatter","communicationLink","_g","url_1","url","isInternalLink","link","addInternalParamsToCurrentLink","annotationLinkIndex","links","annotationLink","text","_Fragment","marginBottom","COMMUNICATION_LINK_ELEMENT_ID","COMMUNICATION_LINK_DATA_URL","COMMUNICATION_LINK_DATA_TEXT","defaultTheme","colors","blue","href","target"],"mappings":"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"}
|
@@ -5,7 +5,9 @@ interface VariableFormatterProps {
|
|
5
5
|
children: React.ReactNode;
|
6
6
|
stateObject: StateConfigType;
|
7
7
|
variable: VariablePayload;
|
8
|
-
leaf:
|
8
|
+
leaf: {
|
9
|
+
text: string;
|
10
|
+
};
|
9
11
|
}
|
10
12
|
export declare const VariableFormatter: React.FC<VariableFormatterProps>;
|
11
13
|
export {};
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{jsx as e}from"../../../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import{postCodeMask as a,phoneNumberMask as t}from"../../../helpers/validations.js";var r=function(e,a){var t=e.replace(/\D+/g,"");if(!t)return"";
|
1
|
+
import{jsx as e}from"../../../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import{postCodeMask as a,phoneNumberMask as t}from"../../../helpers/validations.js";var r=function(e,a){var t=e.replace(/\D+/g,"");if(!t)return"";var r="",n=0;return a.reduce((function(e,a){return"string"==typeof a?r+=a:n<t.length&&(r+=t[n],n+=1),e}),""),r},n=function(e,a){try{var t=new Date(e);if(Number.isNaN(t.getTime()))return e;var r=void 0,n=void 0,c=void 0;switch("string"==typeof e&&(e.endsWith("Z")||e.includes("+")||e.includes("T"))?(r=String(t.getUTCMonth()+1).padStart(2,"0"),n=String(t.getUTCDate()).padStart(2,"0"),c=t.getUTCFullYear()):(r=String(t.getMonth()+1).padStart(2,"0"),n=String(t.getDate()).padStart(2,"0"),c=t.getFullYear()),a){case"DD/MM/YYYY":return"".concat(n,"/").concat(r,"/").concat(c);case"MM/YYYY":return"".concat(r,"/").concat(c);case"YYYY/MM/DD":return"".concat(c,"/").concat(r,"/").concat(n);default:return"".concat(r,"/").concat(n,"/").concat(c)}}catch(a){return e}},c=function(c){var i,o,d=c.variable,s=c.stateObject,Y=c.leaf,u=(null==d?void 0:d.dataModelField)||{},l=u.defaultValue,m=u.dataModelFieldId,M=u.pmiObjectName,_=u.dataFieldName,g=u.dataType,h=u.format,D="[".concat(M," - ").concat(_,"]");if(!s||!m)return Y&&(Y.text=D),e("span",{children:D});try{o=null===(i=null==s?void 0:s[m])||void 0===i?void 0:i.value}catch(e){o=null}var b=null!=s&&(o||l)||D;if(Y&&(Y.text=b),!o&&0!==o)return e("span",{children:l||D});var f=String(o);if("date"===g){var p="MM/DD/YYYY";switch(h){case"day_month_year_date":p="DD/MM/YYYY";break;case"month_day_year_date":default:p="MM/DD/YYYY";break;case"year_month_day_date":p="YYYY/MM/DD";break;case"month_year_date":p="MM/YYYY"}f=n(f,p)}else if(h)switch(h){case"phone_number":f=r(f,t);break;case"us_zip_code":case"zip_code":f=r(f,a);break;case"day_month_year_date":f=n(f,"DD/MM/YYYY");break;case"month_day_year_date":f=n(f,"MM/DD/YYYY");break;case"year_month_day_date":f=n(f,"YYYY/MM/DD");break;case"month_year_date":f=n(f,"MM/YYYY");break;case"numeric":var v=Number(o);f=Number.isNaN(v)?String(o):String(v);break;case"integer":var y=Number(o);f=Number.isNaN(y)?String(o):String(Math.floor(y));break;case"email":case"text":case"string":case"any":default:f=String(o);break;case"password":f="*".repeat(String(o).length)}return e("span",{children:f})};export{c as VariableFormatter};
|
2
2
|
//# sourceMappingURL=VariableFormatter.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"VariableFormatter.js","sources":["../../../../../../src/components/RichTextViewer/components/VariableFormatter.tsx"],"sourcesContent":[null],"names":["applyMaskPattern","value","maskPattern","digits","replace","result","digitIndex","
|
1
|
+
{"version":3,"file":"VariableFormatter.js","sources":["../../../../../../src/components/RichTextViewer/components/VariableFormatter.tsx"],"sourcesContent":[null],"names":["applyMaskPattern","value","maskPattern","digits","replace","result","digitIndex","reduce","acc","token","length","formatDateValue","format","date","Date","Number","isNaN","getTime","mm","dd","yyyy","endsWith","includes","String","getUTCMonth","padStart","getUTCDate","getUTCFullYear","getMonth","getDate","getFullYear","concat","error","VariableFormatter","_a","valueFromState","variable","stateObject","leaf","_c","dataModelField","defaultValue","dataModelFieldId","pmiObjectName","dataFieldName","dataType","variablePlaceholder","text","_jsx","children","_b","textValue","formattedValue","dateFormat","phoneNumberMask","postCodeMask","numValue","intValue","Math","floor","repeat"],"mappings":"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"}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import{__assign as e,__rest as t,__awaiter as i,__generator as o}from"../node_modules/tslib/tslib.es6.js";import{jsx as r,Fragment as l}from"../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import"../node_modules/@emotion/react/dist/emotion-react.esm.js";import"../contexts/MlrRichTextViewerContext/MlrRichTextViewerContext.js";import{useMemo as n,useCallback as d}from"react";import"../contexts/ButtonActionsContext/ButtonActionsContext.js";import"../contexts/OrganismContext/OrganismContext.js";import"../containers/OrganismItem.js";import{AlertMolecule as u}from"./Alert/Alert.js";import{BadgeMolecule as a}from"./Badge/Badge.js";import{BasicTextField as s}from"./BasicTextField/BasicTextField.js";import{Button as v}from"./Button/Button.js";import{Checklist as c}from"./Checklist/Checklist.js";import{ChipMolecule as p}from"./Chip/Chip.js";import{ConsentMolecule as x}from"./Consent/ConsentMolecule.js";import"./CustomValidation/CustomValidation.js";import{DatePickerMolecule as m}from"./DatePicker/DatePicker.js";import{Divider as f}from"./Divider/Divider.js";import{Drawer as T}from"./Drawer/Drawer.js";import"./Icon/IconRenderer.js";import{Image as b}from"./Image/Image.js";import{Link as y}from"./Link/Link.js";import{PasswordSetup as j}from"./PasswordSetup/PasswordSetup.js";import"./PdfDocument/PdfDocument.js";import{RatingMolecule as I}from"./Rating/Rating.js";import{TextMolecule as g}from"./RichText/TextMolecule.js";import{SelectMolecule as k}from"./Select/Select.js";import{SliderMolecule as E}from"./Slider/Slider.js";import{Stepper as h}from"./Stepper/Stepper.js";import{SwitchMolecule as _}from"./Switch/Switch.js";import{Video as q}from"./Video/Video.js";import"./ZealUIModal/ZealUIModal.js";import{BinaryRadioButtons as C}from"./BinaryRadioButtons/BinaryRadioButtons.js";import{Checkbox as O}from"./Checkbox/Checkbox.js";import"./ContentWrapper/ContentWrapper.js";import{SpeedDial as D}from"./SpeedDial/SpeedDial.js";import{useButtonActionsContext as S}from"../contexts/ButtonActionsContext/useButtonActionsContext.js";import{useOrganismContext as F}from"../contexts/OrganismContext/useOrganismContext.js";import"../contexts/AccountButtonContext/AccountButtonContext.js";import"../contexts/StateContext/StateContext.js";import{useStateContext as M}from"../contexts/StateContext/useStateContext.js";import"../contexts/FormStepContext/FormStepContext.js";import"../contexts/ApiContext/ApiContext.js";import"../contexts/LayoutContext/LayoutContext.js";import"../theme/theme.js";import"../theme/provider.js";import"../theme/toastStyles.js";import{useMediaQuery as w}from"../theme/useMediaQuery.js";import"../components/Buttons/TouchableOpacity.js";import"../components/Checkbox/Checkbox.js";import"../node_modules/slate/dist/index.es.js";import"../components/TextWrapper/TextWrapper.js";import{richTextDefaultValue as B}from"../components/RichTextViewer/RichTextViewer.js";import"../components/Select/styles.js";import"../components/Input/Input.js";import"../components/Spacer/Spacer.js";import"../components/Spinner/Spinner.js";import"../components/RegularImage/RegularImage.js";import"../components/Buttons/TextButton.js";import"../components/ValidationTag/ValidationTag.js";import"../components/Tooltip/Tooltip.js";import{toast as P}from"../components/Toast/toast.js";import"../components/HorizontalButtons/HorizontalButtons.js";import"../components/Avatar/Avatar.js";import"../components/Paddings/Paddings.js";import"../components/RadioButtons/RadioButtons.js";import"../components/Circle/Circle.js";import"../components/CircularIndicator/CircularIndicator.js";import{paramKeys as A}from"../constants/params.js";import{useStateListenerValue as L}from"../containers/hooks/useStateListenerValue.js";import{getConfigurationWrapperStyle as V}from"../containers/styles.js";import{overrideProperties as R,overrideProps as N}from"../containers/utils.js";import{checkIsInternalLink as W,navigateToExternalLink as z,downloadFile as K,getHref as H,getParameterByName as U}from"../helpers/utils.js";import{Accordion as Y}from"./Accordion/Accordion.js";import{AvatarMolecule as Z}from"./Avatar/Avatar.js";import{ResourceTimelineCalendarMolecule as Q}from"./Calendar/ResourceTimelineCalendar.js";import{SimpleCalendarMolecule as G}from"./Calendar/SimpleCalendar.js";import{YearViewCalendarMolecule as J}from"./Calendar/YearViewCalendar.js";import{CurrencyInputField as X}from"./CurrencyInputtField/CurrencyInputField.js";import{EmailInputField as $}from"./EmailInputField/EmailInputField.js";import{Menu as ee}from"./Menu/Menu.js";import{NumericInputField as te}from"./NumericInputField/NumericInputField.js";import{PhoneNumberInputField as ie}from"./PhoneNumberInputField/PhoneNumberInputField.js";import{SimpleText as oe}from"./SimpleText/SimpleText.js";import{Tabs as re}from"./Tabs/Tabs.js";import{VisitMolecule as le}from"./Visit/VisitMolecule.js";import{u as ne}from"../node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js";import{AdapterDateFns as de}from"../node_modules/@mui/x-date-pickers/AdapterDateFns/AdapterDateFns.js";import{LocalizationProvider as ue}from"../node_modules/@mui/x-date-pickers/LocalizationProvider/LocalizationProvider.js";var ae=function(ae){var se,ve,ce,pe=ae.id,xe=ae.type,me=ae.name,fe=ae.form,Te=ae.config;ae.formData;var be=ae.isMobile,ye=ae.children,je=ae.tabsProps,Ie=ae.properties,ge=ae.organismLibraryMoleculeId,ke=ne(),Ee=be||w("xs"),he=F(),_e=he.formId,qe=he.isPreview,Ce=void 0!==qe&&qe,Oe=he.validations,De=he.submitHandler,Se=he.isConfigurationMode,Fe=he.onConfigurationItemClicked,Me=he.selectedConfigurationItemId,we=he.currentStyleProperties,Be=he.currentContentProperties,Pe=he.onInternalNavigation,Ae=F().localStateObject,Le=M().stateConfig,Ve=Ae||Le,Re=(null===(se=null==Te?void 0:Te.props)||void 0===se?void 0:se.dataCaptureName)||(null===(ve=null==Ie?void 0:Ie.dataCapture)||void 0===ve?void 0:ve.dataCaptureName)||pe,Ne=null===(ce=null==Ie?void 0:Ie.dataCapture)||void 0===ce?void 0:ce.sourceDataModelFieldId,We=Me===pe,ze=S(),Ke=ze.setActivePopUpById,He=ze.setDrawerVisible,Ue=ze.onCloseModal,Ye=ze.onCloseDrawer,Ze=L({stateListenerId:pe}),Qe=Ze.isStateDisabled,Ge=Ze.isStateVisible,Je=n((function(){return{entityType:xe,entity:"molecule",entityName:me,entityId:pe,organismLibraryMoleculeId:ge}}),[xe,me,pe,ge]),Xe=d((function(e){null==e||e.stopPropagation(),Fe(Je,!1)}),[Fe,Je]),$e=d((function(e){null==e||e.stopPropagation(),Fe(Je,!0)}),[Fe,Je]),et=Se?{onClick:Xe,onDoubleClick:$e,"data-configuration-id":pe,css:V({theme:ke,selected:We})}:{},tt=Se||Qe;if(!Ge)return null;return function(){var n,d,S,F,M,w,L,V,ne,ae;switch(xe){case"simple_text":var se={text:null==Ie?void 0:Ie.text},ve=R(se,Be,me=["text"],We).text,ce=N(null==Te?void 0:Te.props,we,We);return r(oe,e({},ce,{text:(null==ve?void 0:ve.text)||"",htmlElementId:pe,configurationsItemInfo:et}));case"text":se={text:null==Ie?void 0:Ie.text};var me=Object.keys(se);ve=R(se,Be,me,We).text,ce=N(null==Te?void 0:Te.props,we,We);return r(g,e({},ve,ce,{htmlElementId:pe,configurationItemInfo:et}));case"consent":var be=R(Ie,Be,[],We);ce=N(null==Te?void 0:Te.props,we,We)||{};return r(x,e({},ce,{htmlElementId:pe,properties:be,configurationItemInfo:et}));case"signup_password_fields":se={text:null==Ie?void 0:Ie.text,subText:null==Ie?void 0:Ie.subText,placeholderText:null==Ie?void 0:Ie.placeholderText,subPlaceholderText:null==Ie?void 0:Ie.subPlaceholderText,validationText:null==Ie?void 0:Ie.validationText},me=Object.keys(se);var ge=R(se,Be,me,We),ke=N(null==Te?void 0:Te.props,we,We),he=ke.state,qe=ke.gap,Fe=t(ke,["state","gap"]);return r(j,{gap:qe,inputProps:Fe,validations:Oe||[],htmlElementId:pe,validationState:he,overridesProperties:ge,configurationItemInfo:et});case"stepper":var Ae=N(null==Te?void 0:Te.props,we,We),Le=null==ye?void 0:ye.map((function(i){var o=Me===i.id,r=i||{},l=r.properties,n=r.config,d=t(r,["properties","config"]),u={title:null==l?void 0:l.title,subText:null==l?void 0:l.subText},a=Object.keys(u),s=R(u,Be,a,o),v=s.title,c=s.subText,p=N(null==n?void 0:n.props,we,o);return e(e(e({},d),p),{title:(null==v?void 0:v.text)||"",subText:(null==c?void 0:c.text)||""})}));return r(h,e({},Ae,{items:Le||[],isMobile:Ee,moleculeId:pe,configurationItemInfo:et}));case"checklist":var ze=N(null==Te?void 0:Te.props,we,We)||{},Ze=null==ye?void 0:ye.map((function(i){var o,r,l,n,d,u=Me===i.id,a=i||{},s=a.properties,v=a.config,c=t(a,["properties","config"]);switch(i.type){case"checklist_item":var p={label:null==s?void 0:s.label,objectState:null==s?void 0:s.objectState},x=Object.keys(p),m=R(p,Be,x,u),f=N(null==v?void 0:v.props,we,u)||{},T=(null===(o=m.label)||void 0===o?void 0:o.text)||"",b=!!(null===(r=m.objectState)||void 0===r?void 0:r.pmiObjectId);return e(e(e({},c),f),{type:"checklist_item",label:T,textColor:f.textColor||"#000",fontSize:f.fontSize||"14px",fontFamily:f.fontFamily||"inherit",fontWeight:f.fontWeight||"normal",textAlign:f.textAlign||"left",isSystemDriven:b,disabled:b,interacted:(null===(l=null==Ve?void 0:Ve[i.id])||void 0===l?void 0:l.interacted)||"unchecked"});case"divider_item":f=N(null==v?void 0:v.props,we,u)||{};return e(e(e({},c),f),{type:"divider_item"});case"text_item":p={text:null==s?void 0:s.text},x=Object.keys(p),m=R(p,Be,x,u),f=N(null==v?void 0:v.props,we,u)||{};var y=(null===(n=m.text)||void 0===n?void 0:n.text)||"";return e(e(e({},c),f),{type:"text_item",text:y});case"rich_text_item":p={text:null==s?void 0:s.text},x=Object.keys(p),m=R(p,Be,x,u),f=N(null==v?void 0:v.props,we,u)||{},y=(null===(d=m.text)||void 0===d?void 0:d.text)||B;return e(e(e({},c),f),{type:"rich_text_item",text:y});default:return e(e({},c),{type:i.type})}}));return r(c,e({},ze,{items:Ze||[],moleculeId:pe,configurationItemInfo:et}));case"accordion":var Ge=N(null==Te?void 0:Te.props,we,We);Ze=null==ye?void 0:ye.map((function(i){var o=Me===i.id,r=i||{},l=r.properties,n=r.config,d=t(r,["properties","config"]),u={text:null==l?void 0:l.text,subText:null==l?void 0:l.subText,bodyText:null==l?void 0:l.bodyText},a=Object.keys(u),s=R(u,Be,a,o),v=s.text,c=s.subText,p=s.bodyText,x=N(null==n?void 0:n.props,we,o);return e(e(e({},d),x),{text:(null==v?void 0:v.text)||"",subText:(null==c?void 0:c.text)||"",bodyText:(null==p?void 0:p.text)||""})}));return r(Y,e({},Ge,{items:Ze||[],moleculeId:pe,configurationItemInfo:et}));case"menu":se={text:null==Ie?void 0:Ie.text,disabled:null==Ie?void 0:Ie.disabled},me=Object.keys(se);var Je=R(se,Be,me,We),Xe=Je.text,$e=Je.disabled,it=N(null==Te?void 0:Te.props,we,We);Ze=null==ye?void 0:ye.map((function(i){var o,r=Me===i.id,l=i||{},n=l.properties,d=l.config,u=t(l,["properties","config"]),a={disabled:n&&"disabled"in n?n.disabled:void 0,text:n&&"text"in n?n.text:void 0,link:n&&"link"in n?n.link:void 0},s=Object.keys(a),v=R(a,Be,s,r),c=v.text,p=v.disabled,x=v.link,m=N(null==d?void 0:d.props,we,r);return e(e(e({},u),m),{disabled:(null==Ve?void 0:Ve[i.id])?null===(o=null==Ve?void 0:Ve[i.id])||void 0===o?void 0:o.disabled:(null==p?void 0:p.value)||(null==m?void 0:m.disabled)||!1,text:(null==c?void 0:c.text)||"Menu Item",link:x})}));return r(ee,e({},it,{items:Ze||[],moleculeId:pe,buttonText:(null==Xe?void 0:Xe.text)||"Open Menu",configurationItemInfo:et,buttonDisabled:(null==Ve?void 0:Ve[pe])?null===(n=null==Ve?void 0:Ve[pe])||void 0===n?void 0:n.disabled:(null==$e?void 0:$e.value)||(null==it?void 0:it.disabled)||!1}));case"tabs":ce=N(null==Te?void 0:Te.props,we,We);var ot=null==ye?void 0:ye.map((function(t){var i=Me===t.id,o=t||{},r=o.properties,l=o.config,n={label:null==r?void 0:r.label,link:null==r?void 0:r.link},d=Object.keys(n),u=R(n,Be,d,i),a=u.label,s=u.link,v=N(null==l?void 0:l.props,we,i);return e(e({},v),{id:t.id,tabKey:W(s)?U(A.internalLinkWebpageId,null==s?void 0:s.internalLink):void 0,label:(null==a?void 0:a.text)||"",link:s})})),rt=null==je?void 0:je.tabs.map((function(i){var o=i.text,r=t(i,["text"]);return e(e({},r),{label:o||""})})),lt=Boolean(null==ce?void 0:ce.isTabsSystemDerived),nt=lt?rt:ot,dt=(null==je?void 0:je.activeTabKey)||(null===(d=null==nt?void 0:nt[0])||void 0===d?void 0:d.tabKey)||"";return r(re,e({},ce,{items:nt||[],isMobile:Ee,moleculeId:pe,activeTabKey:dt,configurationItemInfo:et,onTabChange:Se?void 0:function(e){var t,i=e.newTabKey,o=e.link;lt?null===(t=null==je?void 0:je.onTabChange)||void 0===t||t.call(je,i):W(o)?Pe(null==o?void 0:o.internalLink):z(null==o?void 0:o.externalLink)}}));case"divider":ce=N(null==Te?void 0:Te.props,we,We);return r(f,e({moleculeId:pe,configurationItemInfo:et},ce));case"link":se={text:null==Ie?void 0:Ie.text,link:null==Ie?void 0:Ie.link},me=Object.keys(se);var ut=R(se,Be,me,We),at=(ve=ut.text,ut.link);ce=N(null==Te?void 0:Te.props,we,We);return r(y,e({moleculeId:pe},ce,{type:null==at?void 0:at.type,src:tt?void 0:H(at,Ce)||"",text:(null==ve?void 0:ve.text)||"",disabled:(null==ce?void 0:ce.disabled)||Qe,configurationItemInfo:et}));case"video":se={video:null==Ie?void 0:Ie.video,coverImage:null==Ie?void 0:Ie.coverImage},me=Object.keys(se);var st=R(se,Be,me,We),vt=st.video,ct=st.coverImage;ce=N(null==Te?void 0:Te.props,we,We);return r(q,e({},ce,{moleculeId:pe,poster:null===(S=null==ct?void 0:ct.imageFile)||void 0===S?void 0:S.url,src:null!==(w=null!==(F=null==vt?void 0:vt.videoSource)&&void 0!==F?F:null===(M=null==vt?void 0:vt.videoFile)||void 0===M?void 0:M.url)&&void 0!==w?w:"",configurationItemInfo:et}));case"badge":ce=N(null==Te?void 0:Te.props,we,We);return r(a,e({},ce,{configurationItemInfo:et}));case"alert":se={text:null==Ie?void 0:Ie.text,subText:null==Ie?void 0:Ie.subText},me=Object.keys(se);var pt=R(se,Be,me,We),xt=(ve=pt.text,pt.subText);ce=N(null==Te?void 0:Te.props,we,We);return r(u,e({text:(null==ve?void 0:ve.text)||"",subText:(null==xt?void 0:xt.text)||""},ce,{configurationItemInfo:et}));case"chip":se={text:null==Ie?void 0:Ie.text},me=Object.keys(se),ve=R(se,Be,me,We).text,ce=N(null==Te?void 0:Te.props,we,We);return r(p,e({text:(null==ve?void 0:ve.text)||""},ce,{configurationItemInfo:et}));case"email_display_field":case"email_input_field":se={text:null==Ie?void 0:Ie.text,placeholderText:null==Ie?void 0:Ie.placeholderText,required:null==Ie?void 0:Ie.required,requiredErrorText:null==Ie?void 0:Ie.requiredErrorText,validationErrorText:null==Ie?void 0:Ie.validationErrorText},me=Object.keys(se);var mt=R(se,Be,me,We),ft=(ve=mt.text,mt.placeholderText),Tt=mt.required,bt=mt.requiredErrorText,yt=mt.validationErrorText;ce=N(null==Te?void 0:Te.props,we,We);return r($,e({name:Re,text:(null==ve?void 0:ve.text)||"",placeholderText:(null==ft?void 0:ft.text)||"",sourceDataModelField:Ne,required:null==Tt?void 0:Tt.value,isDisplayOnly:"email_display_field"===xe,requiredErrorText:null==bt?void 0:bt.text,validationErrorText:null==yt?void 0:yt.text},ce,{configurationItemInfo:et}));case"phone_number_display_field":case"phone_number_input_field":se={text:null==Ie?void 0:Ie.text,placeholderText:null==Ie?void 0:Ie.placeholderText,required:null==Ie?void 0:Ie.required,requiredErrorText:null==Ie?void 0:Ie.requiredErrorText,validationErrorText:null==Ie?void 0:Ie.validationErrorText},me=Object.keys(se);var jt=R(se,Be,me,We);ve=jt.text,ft=jt.placeholderText,Tt=jt.required,bt=jt.requiredErrorText,yt=jt.validationErrorText,ce=N(null==Te?void 0:Te.props,we,We);return r(ie,e({name:Re,text:(null==ve?void 0:ve.text)||"",required:null==Tt?void 0:Tt.value,requiredErrorText:null==bt?void 0:bt.text,validationErrorText:null==yt?void 0:yt.text,placeholderText:(null==ft?void 0:ft.text)||"",sourceDataModelField:Ne,isDisplayOnly:"phone_number_display_field"===xe},ce,{configurationItemInfo:et}));case"numeric_display_field":case"numeric_input_field":se={text:null==Ie?void 0:Ie.text,placeholderText:null==Ie?void 0:Ie.placeholderText,required:null==Ie?void 0:Ie.required,requiredErrorText:null==Ie?void 0:Ie.requiredErrorText,validationErrorText:null==Ie?void 0:Ie.validationErrorText},me=Object.keys(se);var It=R(se,Be,me,We);ve=It.text,ft=It.placeholderText,Tt=It.required,bt=It.requiredErrorText,yt=It.validationErrorText,ce=N(null==Te?void 0:Te.props,we,We);return r(te,e({name:Re,text:(null==ve?void 0:ve.text)||"",required:null==Tt?void 0:Tt.value,isDisplayOnly:"numeric_display_field"===xe,requiredErrorText:null==bt?void 0:bt.text,validationErrorText:null==yt?void 0:yt.text,placeholderText:(null==ft?void 0:ft.text)||"",sourceDataModelField:Ne},ce,{configurationItemInfo:et}));case"currency_display_field":case"currency_input_field":se={text:null==Ie?void 0:Ie.text,placeholderText:null==Ie?void 0:Ie.placeholderText,required:null==Ie?void 0:Ie.required,requiredErrorText:null==Ie?void 0:Ie.requiredErrorText,validationErrorText:null==Ie?void 0:Ie.validationErrorText},me=Object.keys(se);var gt=R(se,Be,me,We);ve=gt.text,ft=gt.placeholderText,Tt=gt.required,bt=gt.requiredErrorText,yt=gt.validationErrorText,ce=N(null==Te?void 0:Te.props,we,We);return r(X,e({name:Re,text:(null==ve?void 0:ve.text)||"",required:null==Tt?void 0:Tt.value,isDisplayOnly:"currency_display_field"===xe,requiredErrorText:null==bt?void 0:bt.text,validationErrorText:null==yt?void 0:yt.text,placeholderText:(null==ft?void 0:ft.text)||"",sourceDataModelField:Ne},ce,{configurationItemInfo:et}));case"basic_text_display_field":case"basic_text_field":se={text:null==Ie?void 0:Ie.text,placeholderText:null==Ie?void 0:Ie.placeholderText,required:null==Ie?void 0:Ie.required,requiredErrorText:null==Ie?void 0:Ie.requiredErrorText,validationErrorText:null==Ie?void 0:Ie.validationErrorText},me=Object.keys(se);var kt=R(se,Be,me,We);ve=kt.text,ft=kt.placeholderText,Tt=kt.required,bt=kt.requiredErrorText,yt=kt.validationErrorText,ce=N(null==Te?void 0:Te.props,we,We);return r(s,e({name:Re,text:(null==ve?void 0:ve.text)||"",required:null==Tt?void 0:Tt.value,isDisplayOnly:"basic_text_display_field"===xe,requiredErrorText:null==bt?void 0:bt.text,validationErrorText:null==yt?void 0:yt.text,placeholderText:(null==ft?void 0:ft.text)||"",sourceDataModelField:Ne},ce,{configurationItemInfo:et}));case"rating_display_field":case"rating":se={text:null==Ie?void 0:Ie.text,dataCapture:null==Ie?void 0:Ie.dataCapture,required:null==Ie?void 0:Ie.required,requiredErrorText:null==Ie?void 0:Ie.requiredErrorText,validationErrorText:null==Ie?void 0:Ie.validationErrorText},me=Object.keys(se);var Et=R(se,Be,me,We);ve=Et.text,Tt=Et.required,bt=Et.requiredErrorText,yt=Et.validationErrorText,ce=N(null==Te?void 0:Te.props,we,We);return r(I,e({name:Re,text:(null==ve?void 0:ve.text)||"",required:null==Tt?void 0:Tt.value,requiredErrorText:null==bt?void 0:bt.text,validationErrorText:null==yt?void 0:yt.text,sourceDataModelField:Ne,isDisplayOnly:"rating_display_field"===xe},ce,{configurationItemInfo:et}));case"switch_display_field":case"switch":se={text:null==Ie?void 0:Ie.text,required:null==Ie?void 0:Ie.required,requiredErrorText:null==Ie?void 0:Ie.requiredErrorText,validationErrorText:null==Ie?void 0:Ie.validationErrorText},me=Object.keys(se);var ht=R(se,Be,me,We);ve=ht.text,Tt=ht.required,bt=ht.requiredErrorText,yt=ht.validationErrorText,ce=N(null==Te?void 0:Te.props,we,We);return r(_,e({name:Re,moleculeId:pe,text:(null==ve?void 0:ve.text)||"",required:null==Tt?void 0:Tt.value,isDisplayOnly:"switch_display_field"===xe,requiredErrorText:null==bt?void 0:bt.text,validationErrorText:null==yt?void 0:yt.text,sourceDataModelField:Ne},ce,{configurationItemInfo:et}));case"slider_display_field":case"slider":se={text:null==Ie?void 0:Ie.text,required:null==Ie?void 0:Ie.required,placeholderText:null==Ie?void 0:Ie.placeholderText,requiredErrorText:null==Ie?void 0:Ie.requiredErrorText,validationErrorText:null==Ie?void 0:Ie.validationErrorText},me=Object.keys(se);var _t=R(se,Be,me,We);ve=_t.text,Tt=_t.required,bt=_t.requiredErrorText,yt=_t.validationErrorText,ft=_t.placeholderText,ce=N(null==Te?void 0:Te.props,we,We);return r(E,e({name:Re,text:(null==ve?void 0:ve.text)||"",required:null==Tt?void 0:Tt.value,isDisplayOnly:"slider_display_field"===xe,requiredErrorText:null==bt?void 0:bt.text,validationErrorText:null==yt?void 0:yt.text,placeholderText:null==ft?void 0:ft.text,sourceDataModelField:Ne},ce,{configurationItemInfo:et}));case"date_display_field":case"date_picker":se={text:null==Ie?void 0:Ie.text,required:null==Ie?void 0:Ie.required,placeholderText:null==Ie?void 0:Ie.placeholderText,requiredErrorText:null==Ie?void 0:Ie.requiredErrorText,validationErrorText:null==Ie?void 0:Ie.validationErrorText},me=Object.keys(se);var qt=R(se,Be,me,We);ve=qt.text,Tt=qt.required,ft=qt.placeholderText,bt=qt.requiredErrorText,yt=qt.validationErrorText,ce=N(null==Te?void 0:Te.props,we,We);return r(ue,e({dateAdapter:de},{children:r(m,e({moleculeId:pe,name:Re,text:(null==ve?void 0:ve.text)||"",required:null==Tt?void 0:Tt.value,placeholderText:(null==ft?void 0:ft.text)||"",isDisplayOnly:"date_display_field"===xe,requiredErrorText:null==bt?void 0:bt.text,validationErrorText:null==yt?void 0:yt.text,sourceDataModelField:Ne},ce,{configurationItemInfo:et}))}));case"select_display_field":case"select":se={text:null==Ie?void 0:Ie.text,required:null==Ie?void 0:Ie.required,placeholderText:null==Ie?void 0:Ie.placeholderText,requiredErrorText:null==Ie?void 0:Ie.requiredErrorText,validationErrorText:null==Ie?void 0:Ie.validationErrorText},me=Object.keys(se);var Ct=R(se,Be,me,We);ve=Ct.text,Tt=Ct.required,ft=Ct.placeholderText,bt=Ct.requiredErrorText,yt=Ct.validationErrorText,ce=N(null==Te?void 0:Te.props,we,We);return r(k,e({name:Re,text:(null==ve?void 0:ve.text)||"",required:null==Tt?void 0:Tt.value,isDisplayOnly:"select_display_field"===xe,placeholderText:(null==ft?void 0:ft.text)||"",requiredErrorText:null==bt?void 0:bt.text,validationErrorText:null==yt?void 0:yt.text,sourceDataModelField:Ne},ce,{configurationItemInfo:et}));case"image":se={image:null==Ie?void 0:Ie.image,link:null==Ie?void 0:Ie.link},me=Object.keys(se);var Ot=R(se,Be,me,We),Dt=Ot.image,St=Ot.link,Ft=(ce=N(null==Te?void 0:Te.props,we,We),(null==Dt?void 0:Dt.imageSource)||(null===(L=null==Dt?void 0:Dt.imageFile)||void 0===L?void 0:L.url)||"");return r(b,e({},ce,{src:Ft,onClick:function(){return W(St)?Pe(null==St?void 0:St.internalLink):z(null==St?void 0:St.externalLink)},moleculeId:pe,configurationItemInfo:et}));case"button":se={text:null==Ie?void 0:Ie.text,action:null==Ie?void 0:Ie.action},me=Object.keys(se);var Mt=R(se,Be,me,We),wt=(ve=Mt.text,Mt.action),Bt=(ce=N(null==Te?void 0:Te.props,we,We),(null==wt?void 0:wt.action)||{}),Pt=Bt.link,At=Bt.popup,Lt=Bt.download,Vt=Bt.submit,Rt={link:function(){return W(Pt)?Pe(null==Pt?void 0:Pt.internalLink):z(null==Pt?void 0:Pt.externalLink)},popup:function(){(null==At?void 0:At.id)&&Ke(null==At?void 0:At.id)},drawer:function(){He(!0)},download:function(){return Lt?K(Lt.url,Lt.name):P({message:"File not found to download",type:"warning"})},submit:null==fe?void 0:fe.handleSubmit((function(e){return i(void 0,void 0,void 0,(function(){var t,i,r,l;return o(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),_e?[4,null==De?void 0:De({formId:_e,data:e})]:[3,2];case 1:o.sent(),(t=null===(r=null==Vt?void 0:Vt.onSuccess)||void 0===r?void 0:r.link)&&(W(t)?Pe(t.internalLink):z(t.externalLink)),fe.reset(),o.label=2;case 2:return[3,4];case 3:return o.sent(),(i=null===(l=null==Vt?void 0:Vt.onError)||void 0===l?void 0:l.link)&&(W(i)?Pe(i.internalLink):z(i.externalLink)),[3,4];case 4:return[2]}}))}))})),reset:function(){return null==fe?void 0:fe.reset()},destroy:function(){null==fe||fe.reset(),null==Ue||Ue(),null==Ye||Ye()}};return r(v,e({moleculeId:pe,text:(null==ve?void 0:ve.text)||""},ce,{disabled:(null==ce?void 0:ce.disabled)||Qe,onClick:null==Rt?void 0:Rt[(null===(V=null==wt?void 0:wt.action)||void 0===V?void 0:V.type)||"link"],configurationItemInfo:et}));case"avatar":ce=N(null==Te?void 0:Te.props,we,We);return r(Z,e({},ce,{sourceDataModelField:Ne,configurationItemInfo:et}));case"visit":ce=N(null==Te?void 0:Te.props,we,We);return r(le,e({},ce,{configurationItemInfo:et}));case"simple_calendar":ce=N(null==Te?void 0:Te.props,we,We);return r(G,e({},ce,{events:[],configurationItemInfo:et}));case"resource_timeline_calendar":ce=N(null==Te?void 0:Te.props,we,We);return r(Q,e({},ce,{events:[],configurationItemInfo:et}));case"year_view_calendar":ce=N(null==Te?void 0:Te.props,we,We);return r(J,e({},ce,{events:[],configurationItemInfo:et}));case"drawer":se={text:null==Ie?void 0:Ie.text,disabled:null==Ie?void 0:Ie.disabled},me=Object.keys(se);var Nt=R(se,Be,me,We),Wt=Nt.text,zt=Nt.disabled,Kt=N(null==Te?void 0:Te.props,we,We);Ze=null==ye?void 0:ye.map((function(i){var o,r,l,n,d,u=Me===i.id,a=i||{},s=a.properties,v=a.config,c=t(a,["properties","config"]),p={},x=[];switch(i.type){case"menu_item":var m=s;p={disabled:null==m?void 0:m.disabled,text:null==m?void 0:m.text,link:null==m?void 0:m.link},x=Object.keys(p);break;case"text_item":var f=s;p={text:null==f?void 0:f.text},x=Object.keys(p);break;case"rich_text_item":var T=s;p={text:null==T?void 0:T.text},x=Object.keys(p);break;default:p={},x=[]}var b=R(p,Be,x,u),y=N(null==v?void 0:v.props,we,u),j=e(e({},c),y);switch(i.type){case"menu_item":return e(e({},j),{disabled:(null==Ve?void 0:Ve[i.id])?null===(o=null==Ve?void 0:Ve[i.id])||void 0===o?void 0:o.disabled:(null===(r=null==b?void 0:b.disabled)||void 0===r?void 0:r.value)||(null==y?void 0:y.disabled)||!1,text:(null===(l=null==b?void 0:b.text)||void 0===l?void 0:l.text)||"Menu Item",link:null==b?void 0:b.link});case"text_item":return e(e({},j),{text:(null===(n=null==b?void 0:b.text)||void 0===n?void 0:n.text)||""});case"rich_text_item":return e(e({},j),{text:(null===(d=null==b?void 0:b.text)||void 0===d?void 0:d.text)||B});default:return j}}));return r(T,e({},Kt,{items:Ze||[],moleculeId:pe,buttonText:(null===(ne=null==Wt?void 0:Wt.text)||void 0===ne?void 0:ne.text)||(null==Kt?void 0:Kt.buttonText),buttonDisabled:(null==Ve?void 0:Ve[pe])?null===(ae=null==Ve?void 0:Ve[pe])||void 0===ae?void 0:ae.disabled:(null==zt?void 0:zt.value)||(null==Kt?void 0:Kt.disabled)||!1,configurationItemInfo:et}));case"speed_dial":var Ht=N(null==Te?void 0:Te.props,we,We);Ze=null==ye?void 0:ye.map((function(i){var o=Me===i.id,r=i||{},l=r.properties,n=r.config,d=t(r,["properties","config"]),u={link:null==l?void 0:l.link,text:null==l?void 0:l.text},a=Object.keys(u),s=R(u,Be,a,o),v=N(null==n?void 0:n.props,we,o);return e(e({},d),{config:{props:e(e(e({},null==n?void 0:n.props),v),{tooltipText:(null==v?void 0:v.tooltipText)||""})},properties:{link:(null==s?void 0:s.link)||(null==l?void 0:l.link),text:(null==s?void 0:s.text)||(null==l?void 0:l.text)}})}));return r(D,e({},Ht,{items:Ze||[],moleculeId:pe,configurationItemInfo:et}));case"checkbox":case"checkbox_display":se={label:null==Ie?void 0:Ie.label,required:null==Ie?void 0:Ie.required,requiredErrorText:null==Ie?void 0:Ie.requiredErrorText,validationErrorText:null==Ie?void 0:Ie.validationErrorText},me=Object.keys(se);var Ut=R(se,Be,me,We),Yt=Ut.label;Tt=Ut.required,bt=Ut.requiredErrorText,yt=Ut.validationErrorText,ce=N(null==Te?void 0:Te.props,we,We);return r(O,e({name:Re,moleculeId:pe,label:(null==Yt?void 0:Yt.text)||"",required:null==Tt?void 0:Tt.value,requiredErrorText:null==bt?void 0:bt.text,validationErrorText:null==yt?void 0:yt.text,sourceDataModelField:Ne,isDisplayOnly:"checkbox_display"===xe},ce,{configurationItemInfo:et}));case"binary_radio_buttons":case"binary_radio_buttons_display":se={confirmText:null==Ie?void 0:Ie.confirmText,rejectText:null==Ie?void 0:Ie.rejectText,required:null==Ie?void 0:Ie.required,requiredErrorText:null==Ie?void 0:Ie.requiredErrorText,validationErrorText:null==Ie?void 0:Ie.validationErrorText},me=Object.keys(se);var Zt=R(se,Be,me,We),Qt=Zt.confirmText,Gt=Zt.rejectText;Tt=Zt.required,bt=Zt.requiredErrorText,yt=Zt.validationErrorText,ce=N(null==Te?void 0:Te.props,we,We);return r(C,e({name:Re,moleculeId:pe,confirmText:(null==Qt?void 0:Qt.text)||"Yes",rejectText:(null==Gt?void 0:Gt.text)||"No",required:null==Tt?void 0:Tt.value,requiredErrorText:null==bt?void 0:bt.text,validationErrorText:null==yt?void 0:yt.text,sourceDataModelField:Ne,isDisplayOnly:"binary_radio_buttons_display"===xe},ce,{configurationItemInfo:et}));default:return r(l,{children:"There is no such type of molecule yet."})}}()};export{ae as BaseMolecule};
|
1
|
+
import{__assign as e,__rest as t,__awaiter as i,__generator as o}from"../node_modules/tslib/tslib.es6.js";import{jsx as r,Fragment as l}from"../node_modules/@emotion/react/jsx-runtime/dist/emotion-react-jsx-runtime.esm.js";import"../node_modules/@emotion/react/dist/emotion-react.esm.js";import"../contexts/MlrRichTextViewerContext/MlrRichTextViewerContext.js";import{useMemo as n,useCallback as d}from"react";import"../contexts/ButtonActionsContext/ButtonActionsContext.js";import"../contexts/OrganismContext/OrganismContext.js";import"../containers/OrganismItem.js";import{AlertMolecule as u}from"./Alert/Alert.js";import{BadgeMolecule as a}from"./Badge/Badge.js";import{BasicTextField as s}from"./BasicTextField/BasicTextField.js";import{Button as v}from"./Button/Button.js";import{Checklist as c}from"./Checklist/Checklist.js";import{ChipMolecule as p}from"./Chip/Chip.js";import{ConsentMolecule as x}from"./Consent/ConsentMolecule.js";import"./CustomValidation/CustomValidation.js";import{DatePickerMolecule as m}from"./DatePicker/DatePicker.js";import{Divider as f}from"./Divider/Divider.js";import{Drawer as T}from"./Drawer/Drawer.js";import"./Icon/IconRenderer.js";import{Image as b}from"./Image/Image.js";import{Link as y}from"./Link/Link.js";import{PasswordSetup as j}from"./PasswordSetup/PasswordSetup.js";import"./PdfDocument/PdfDocument.js";import{RatingMolecule as I}from"./Rating/Rating.js";import{TextMolecule as g}from"./RichText/TextMolecule.js";import{SelectMolecule as k}from"./Select/Select.js";import{SliderMolecule as E}from"./Slider/Slider.js";import{Stepper as h}from"./Stepper/Stepper.js";import{SwitchMolecule as _}from"./Switch/Switch.js";import{Video as q}from"./Video/Video.js";import"./ZealUIModal/ZealUIModal.js";import{BinaryRadioButtons as C}from"./BinaryRadioButtons/BinaryRadioButtons.js";import{Checkbox as O}from"./Checkbox/Checkbox.js";import"./ContentWrapper/ContentWrapper.js";import{SpeedDial as D}from"./SpeedDial/SpeedDial.js";import{useButtonActionsContext as S}from"../contexts/ButtonActionsContext/useButtonActionsContext.js";import{useOrganismContext as F}from"../contexts/OrganismContext/useOrganismContext.js";import"../contexts/AccountButtonContext/AccountButtonContext.js";import"../contexts/StateContext/StateContext.js";import{useStateContext as M}from"../contexts/StateContext/useStateContext.js";import"../contexts/FormStepContext/FormStepContext.js";import"../contexts/ApiContext/ApiContext.js";import"../contexts/LayoutContext/LayoutContext.js";import"../theme/theme.js";import"../theme/provider.js";import"../theme/toastStyles.js";import{useMediaQuery as w}from"../theme/useMediaQuery.js";import"../components/Buttons/TouchableOpacity.js";import"../components/Checkbox/Checkbox.js";import"../node_modules/slate/dist/index.es.js";import"../components/TextWrapper/TextWrapper.js";import{richTextDefaultValue as B}from"../components/RichTextViewer/RichTextViewer.js";import"../components/Select/styles.js";import"../components/Input/Input.js";import"../components/Spacer/Spacer.js";import"../components/Spinner/Spinner.js";import"../components/RegularImage/RegularImage.js";import"../components/Buttons/TextButton.js";import"../components/ValidationTag/ValidationTag.js";import"../components/Tooltip/Tooltip.js";import{toast as P}from"../components/Toast/toast.js";import"../components/HorizontalButtons/HorizontalButtons.js";import"../components/Avatar/Avatar.js";import"../components/Paddings/Paddings.js";import"../components/RadioButtons/RadioButtons.js";import"../components/Circle/Circle.js";import"../components/CircularIndicator/CircularIndicator.js";import{paramKeys as A}from"../constants/params.js";import{useStateListenerValue as L}from"../containers/hooks/useStateListenerValue.js";import{getConfigurationWrapperStyle as V}from"../containers/styles.js";import{overrideProperties as R,overrideProps as N}from"../containers/utils.js";import{checkIsInternalLink as W,navigateToExternalLink as z,downloadFile as K,getHref as H,getParameterByName as U}from"../helpers/utils.js";import{Accordion as Y}from"./Accordion/Accordion.js";import{AvatarMolecule as Z}from"./Avatar/Avatar.js";import{ResourceTimelineCalendarMolecule as Q}from"./Calendar/ResourceTimelineCalendar.js";import{SimpleCalendarMolecule as G}from"./Calendar/SimpleCalendar.js";import{YearViewCalendarMolecule as J}from"./Calendar/YearViewCalendar.js";import{CurrencyInputField as X}from"./CurrencyInputtField/CurrencyInputField.js";import{EmailInputField as $}from"./EmailInputField/EmailInputField.js";import{Menu as ee}from"./Menu/Menu.js";import{NumericInputField as te}from"./NumericInputField/NumericInputField.js";import{PhoneNumberInputField as ie}from"./PhoneNumberInputField/PhoneNumberInputField.js";import{SimpleText as oe}from"./SimpleText/SimpleText.js";import{Tabs as re}from"./Tabs/Tabs.js";import{VisitMolecule as le}from"./Visit/VisitMolecule.js";import{u as ne}from"../node_modules/@emotion/react/dist/emotion-element-d59e098f.esm.js";import{AdapterDateFns as de}from"../node_modules/@mui/x-date-pickers/AdapterDateFns/AdapterDateFns.js";import{LocalizationProvider as ue}from"../node_modules/@mui/x-date-pickers/LocalizationProvider/LocalizationProvider.js";var ae=function(ae){var se,ve,ce,pe=ae.id,xe=ae.type,me=ae.name,fe=ae.form,Te=ae.config;ae.formData;var be=ae.isMobile,ye=ae.children,je=ae.tabsProps,Ie=ae.properties,ge=ae.organismLibraryMoleculeId,ke=ne(),Ee=be||w("xs"),he=F(),_e=he.formId,qe=he.isPreview,Ce=void 0!==qe&&qe,Oe=he.validations,De=he.submitHandler,Se=he.isConfigurationMode,Fe=he.onConfigurationItemClicked,Me=he.selectedConfigurationItemId,we=he.currentStyleProperties,Be=he.currentContentProperties,Pe=he.onInternalNavigation,Ae=F().localStateObject,Le=M().stateConfig,Ve=Ae||Le,Re=(null===(se=null==Te?void 0:Te.props)||void 0===se?void 0:se.dataCaptureName)||(null===(ve=null==Ie?void 0:Ie.dataCapture)||void 0===ve?void 0:ve.dataCaptureName)||pe,Ne=null===(ce=null==Ie?void 0:Ie.dataCapture)||void 0===ce?void 0:ce.sourceDataModelFieldId,We=Me===pe,ze=S(),Ke=ze.setActivePopUpById,He=ze.setDrawerVisible,Ue=ze.onCloseModal,Ye=ze.onCloseDrawer,Ze=L({stateListenerId:pe}),Qe=Ze.isStateDisabled,Ge=Ze.isStateVisible,Je=n((function(){return{entityType:xe,entity:"molecule",entityName:me,entityId:pe,organismLibraryMoleculeId:ge}}),[xe,me,pe,ge]),Xe=d((function(e){null==e||e.stopPropagation(),Fe(Je,!1)}),[Fe,Je]),$e=d((function(e){null==e||e.stopPropagation(),Fe(Je,!0)}),[Fe,Je]),et=Se?{onClick:Xe,onDoubleClick:$e,"data-configuration-id":pe,css:V({theme:ke,selected:We})}:{},tt=Se||Qe;if(!Ge)return null;return function(){var n,d,S,F,M,w,L,V,ne,ae;switch(xe){case"simple_text":var se={text:null==Ie?void 0:Ie.text},ve=R(se,Be,me=["text"],We).text,ce=N(null==Te?void 0:Te.props,we,We);return r(oe,e({},ce,{text:(null==ve?void 0:ve.text)||"",htmlElementId:pe,configurationsItemInfo:et}));case"text":se={text:null==Ie?void 0:Ie.text};var me=Object.keys(se);ve=R(se,Be,me,We).text,ce=N(null==Te?void 0:Te.props,we,We);return r(g,e({},ve,ce,{htmlElementId:pe,configurationItemInfo:et}));case"consent":var be=R(Ie,Be,[],We);ce=N(null==Te?void 0:Te.props,we,We)||{};return r(x,e({},ce,{htmlElementId:pe,properties:be,configurationItemInfo:et}));case"signup_password_fields":se={text:null==Ie?void 0:Ie.text,subText:null==Ie?void 0:Ie.subText,placeholderText:null==Ie?void 0:Ie.placeholderText,subPlaceholderText:null==Ie?void 0:Ie.subPlaceholderText,validationText:null==Ie?void 0:Ie.validationText},me=Object.keys(se);var ge=R(se,Be,me,We),ke=N(null==Te?void 0:Te.props,we,We),he=ke.state,qe=ke.gap,Fe=t(ke,["state","gap"]);return r(j,{gap:qe,inputProps:Fe,validations:Oe||[],htmlElementId:pe,validationState:he,overridesProperties:ge,configurationItemInfo:et});case"stepper":var Ae=N(null==Te?void 0:Te.props,we,We),Le=null==ye?void 0:ye.map((function(i){var o=Me===i.id,r=i||{},l=r.properties,n=r.config,d=t(r,["properties","config"]),u={title:null==l?void 0:l.title,subText:null==l?void 0:l.subText},a=Object.keys(u),s=R(u,Be,a,o),v=s.title,c=s.subText,p=N(null==n?void 0:n.props,we,o);return e(e(e({},d),p),{title:(null==v?void 0:v.text)||"",subText:(null==c?void 0:c.text)||""})}));return r(h,e({},Ae,{items:Le||[],isMobile:Ee,moleculeId:pe,configurationItemInfo:et}));case"checklist":var ze=N(null==Te?void 0:Te.props,we,We)||{},Ze=null==ye?void 0:ye.map((function(i){var o,r,l,n,d,u=Me===i.id,a=i||{},s=a.properties,v=a.config,c=t(a,["properties","config"]);switch(i.type){case"checklist_item":var p={label:null==s?void 0:s.label,objectState:null==s?void 0:s.objectState},x=Object.keys(p),m=R(p,Be,x,u),f=N(null==v?void 0:v.props,we,u)||{},T=(null===(o=m.label)||void 0===o?void 0:o.text)||"",b=!!(null===(r=m.objectState)||void 0===r?void 0:r.pmiObjectId);return e(e(e({},c),f),{type:"checklist_item",label:T,textColor:f.textColor||"#000",fontSize:f.fontSize||"14px",fontFamily:f.fontFamily||"inherit",fontWeight:f.fontWeight||"normal",textAlign:f.textAlign||"left",isSystemDriven:b,disabled:b,interacted:(null===(l=null==Ve?void 0:Ve[i.id])||void 0===l?void 0:l.interacted)||"unchecked"});case"divider_item":f=N(null==v?void 0:v.props,we,u)||{};return e(e(e({},c),f),{type:"divider_item"});case"text_item":p={text:null==s?void 0:s.text},x=Object.keys(p),m=R(p,Be,x,u),f=N(null==v?void 0:v.props,we,u)||{};var y=(null===(n=m.text)||void 0===n?void 0:n.text)||"";return e(e(e({},c),f),{type:"text_item",text:y});case"rich_text_item":p={text:null==s?void 0:s.text},x=Object.keys(p),m=R(p,Be,x,u),f=N(null==v?void 0:v.props,we,u)||{},y=(null===(d=m.text)||void 0===d?void 0:d.text)||B;return e(e(e({},c),f),{type:"rich_text_item",text:y});default:return e(e({},c),{type:i.type})}}));return r(c,e({},ze,{items:Ze||[],moleculeId:pe,configurationItemInfo:et}));case"accordion":var Ge=N(null==Te?void 0:Te.props,we,We);Ze=null==ye?void 0:ye.map((function(i){var o=Me===i.id,r=i||{},l=r.properties,n=r.config,d=t(r,["properties","config"]),u={text:null==l?void 0:l.text,subText:null==l?void 0:l.subText,bodyText:null==l?void 0:l.bodyText},a=Object.keys(u),s=R(u,Be,a,o),v=s.text,c=s.subText,p=s.bodyText,x=N(null==n?void 0:n.props,we,o);return e(e(e({},d),x),{text:(null==v?void 0:v.text)||"",subText:(null==c?void 0:c.text)||"",bodyText:(null==p?void 0:p.text)||""})}));return r(Y,e({},Ge,{items:Ze||[],moleculeId:pe,configurationItemInfo:et}));case"menu":se={text:null==Ie?void 0:Ie.text,disabled:null==Ie?void 0:Ie.disabled},me=Object.keys(se);var Je=R(se,Be,me,We),Xe=Je.text,$e=Je.disabled,it=N(null==Te?void 0:Te.props,we,We);Ze=null==ye?void 0:ye.map((function(i){var o,r=Me===i.id,l=i||{},n=l.properties,d=l.config,u=t(l,["properties","config"]),a={disabled:n&&"disabled"in n?n.disabled:void 0,text:n&&"text"in n?n.text:void 0,link:n&&"link"in n?n.link:void 0},s=Object.keys(a),v=R(a,Be,s,r),c=v.text,p=v.disabled,x=v.link,m=N(null==d?void 0:d.props,we,r);return e(e(e({},u),m),{disabled:(null==Ve?void 0:Ve[i.id])?null===(o=null==Ve?void 0:Ve[i.id])||void 0===o?void 0:o.disabled:(null==p?void 0:p.value)||(null==m?void 0:m.disabled)||!1,text:(null==c?void 0:c.text)||"Menu Item",link:x})}));return r(ee,e({},it,{items:Ze||[],moleculeId:pe,buttonText:(null==Xe?void 0:Xe.text)||"Open Menu",configurationItemInfo:et,buttonDisabled:(null==Ve?void 0:Ve[pe])?null===(n=null==Ve?void 0:Ve[pe])||void 0===n?void 0:n.disabled:(null==$e?void 0:$e.value)||(null==it?void 0:it.disabled)||!1}));case"tabs":ce=N(null==Te?void 0:Te.props,we,We);var ot=null==ye?void 0:ye.map((function(t){var i=Me===t.id,o=t||{},r=o.properties,l=o.config,n={label:null==r?void 0:r.label,link:null==r?void 0:r.link},d=Object.keys(n),u=R(n,Be,d,i),a=u.label,s=u.link,v=N(null==l?void 0:l.props,we,i);return e(e({},v),{id:t.id,tabKey:W(s)?U(A.internalLinkWebpageId,null==s?void 0:s.internalLink):void 0,label:(null==a?void 0:a.text)||"",link:s})})),rt=null==je?void 0:je.tabs.map((function(i){var o=i.text,r=t(i,["text"]);return e(e({},r),{label:o||""})})),lt=Boolean(null==ce?void 0:ce.isTabsSystemDerived),nt=lt?rt:ot,dt=(null==je?void 0:je.activeTabKey)||(null===(d=null==nt?void 0:nt[0])||void 0===d?void 0:d.tabKey)||"";return r(re,e({},ce,{items:nt||[],isMobile:Ee,moleculeId:pe,activeTabKey:dt,configurationItemInfo:et,onTabChange:Se?void 0:function(e){var t,i=e.newTabKey,o=e.link;lt?null===(t=null==je?void 0:je.onTabChange)||void 0===t||t.call(je,i):W(o)?null==Pe||Pe((null==o?void 0:o.internalLink)||""):z(null==o?void 0:o.externalLink)}}));case"divider":ce=N(null==Te?void 0:Te.props,we,We);return r(f,e({moleculeId:pe,configurationItemInfo:et},ce));case"link":se={text:null==Ie?void 0:Ie.text,link:null==Ie?void 0:Ie.link},me=Object.keys(se);var ut=R(se,Be,me,We),at=(ve=ut.text,ut.link);ce=N(null==Te?void 0:Te.props,we,We);return r(y,e({moleculeId:pe},ce,{type:null==at?void 0:at.type,src:tt?void 0:H(at,Ce)||"",text:(null==ve?void 0:ve.text)||"",disabled:(null==ce?void 0:ce.disabled)||Qe,configurationItemInfo:et}));case"video":se={video:null==Ie?void 0:Ie.video,coverImage:null==Ie?void 0:Ie.coverImage},me=Object.keys(se);var st=R(se,Be,me,We),vt=st.video,ct=st.coverImage;ce=N(null==Te?void 0:Te.props,we,We);return r(q,e({},ce,{moleculeId:pe,poster:null===(S=null==ct?void 0:ct.imageFile)||void 0===S?void 0:S.url,src:null!==(w=null!==(F=null==vt?void 0:vt.videoSource)&&void 0!==F?F:null===(M=null==vt?void 0:vt.videoFile)||void 0===M?void 0:M.url)&&void 0!==w?w:"",configurationItemInfo:et}));case"badge":ce=N(null==Te?void 0:Te.props,we,We);return r(a,e({},ce,{configurationItemInfo:et}));case"alert":se={text:null==Ie?void 0:Ie.text,subText:null==Ie?void 0:Ie.subText},me=Object.keys(se);var pt=R(se,Be,me,We),xt=(ve=pt.text,pt.subText);ce=N(null==Te?void 0:Te.props,we,We);return r(u,e({text:(null==ve?void 0:ve.text)||"",subText:(null==xt?void 0:xt.text)||""},ce,{configurationItemInfo:et}));case"chip":se={text:null==Ie?void 0:Ie.text},me=Object.keys(se),ve=R(se,Be,me,We).text,ce=N(null==Te?void 0:Te.props,we,We);return r(p,e({text:(null==ve?void 0:ve.text)||""},ce,{configurationItemInfo:et}));case"email_display_field":case"email_input_field":se={text:null==Ie?void 0:Ie.text,placeholderText:null==Ie?void 0:Ie.placeholderText,required:null==Ie?void 0:Ie.required,requiredErrorText:null==Ie?void 0:Ie.requiredErrorText,validationErrorText:null==Ie?void 0:Ie.validationErrorText},me=Object.keys(se);var mt=R(se,Be,me,We),ft=(ve=mt.text,mt.placeholderText),Tt=mt.required,bt=mt.requiredErrorText,yt=mt.validationErrorText;ce=N(null==Te?void 0:Te.props,we,We);return r($,e({name:Re,text:(null==ve?void 0:ve.text)||"",placeholderText:(null==ft?void 0:ft.text)||"",sourceDataModelField:Ne,required:null==Tt?void 0:Tt.value,isDisplayOnly:"email_display_field"===xe,requiredErrorText:null==bt?void 0:bt.text,validationErrorText:null==yt?void 0:yt.text},ce,{configurationItemInfo:et}));case"phone_number_display_field":case"phone_number_input_field":se={text:null==Ie?void 0:Ie.text,placeholderText:null==Ie?void 0:Ie.placeholderText,required:null==Ie?void 0:Ie.required,requiredErrorText:null==Ie?void 0:Ie.requiredErrorText,validationErrorText:null==Ie?void 0:Ie.validationErrorText},me=Object.keys(se);var jt=R(se,Be,me,We);ve=jt.text,ft=jt.placeholderText,Tt=jt.required,bt=jt.requiredErrorText,yt=jt.validationErrorText,ce=N(null==Te?void 0:Te.props,we,We);return r(ie,e({name:Re,text:(null==ve?void 0:ve.text)||"",required:null==Tt?void 0:Tt.value,requiredErrorText:null==bt?void 0:bt.text,validationErrorText:null==yt?void 0:yt.text,placeholderText:(null==ft?void 0:ft.text)||"",sourceDataModelField:Ne,isDisplayOnly:"phone_number_display_field"===xe},ce,{configurationItemInfo:et}));case"numeric_display_field":case"numeric_input_field":se={text:null==Ie?void 0:Ie.text,placeholderText:null==Ie?void 0:Ie.placeholderText,required:null==Ie?void 0:Ie.required,requiredErrorText:null==Ie?void 0:Ie.requiredErrorText,validationErrorText:null==Ie?void 0:Ie.validationErrorText},me=Object.keys(se);var It=R(se,Be,me,We);ve=It.text,ft=It.placeholderText,Tt=It.required,bt=It.requiredErrorText,yt=It.validationErrorText,ce=N(null==Te?void 0:Te.props,we,We);return r(te,e({name:Re,text:(null==ve?void 0:ve.text)||"",required:null==Tt?void 0:Tt.value,isDisplayOnly:"numeric_display_field"===xe,requiredErrorText:null==bt?void 0:bt.text,validationErrorText:null==yt?void 0:yt.text,placeholderText:(null==ft?void 0:ft.text)||"",sourceDataModelField:Ne},ce,{configurationItemInfo:et}));case"currency_display_field":case"currency_input_field":se={text:null==Ie?void 0:Ie.text,placeholderText:null==Ie?void 0:Ie.placeholderText,required:null==Ie?void 0:Ie.required,requiredErrorText:null==Ie?void 0:Ie.requiredErrorText,validationErrorText:null==Ie?void 0:Ie.validationErrorText},me=Object.keys(se);var gt=R(se,Be,me,We);ve=gt.text,ft=gt.placeholderText,Tt=gt.required,bt=gt.requiredErrorText,yt=gt.validationErrorText,ce=N(null==Te?void 0:Te.props,we,We);return r(X,e({name:Re,text:(null==ve?void 0:ve.text)||"",required:null==Tt?void 0:Tt.value,isDisplayOnly:"currency_display_field"===xe,requiredErrorText:null==bt?void 0:bt.text,validationErrorText:null==yt?void 0:yt.text,placeholderText:(null==ft?void 0:ft.text)||"",sourceDataModelField:Ne},ce,{configurationItemInfo:et}));case"basic_text_display_field":case"basic_text_field":se={text:null==Ie?void 0:Ie.text,placeholderText:null==Ie?void 0:Ie.placeholderText,required:null==Ie?void 0:Ie.required,requiredErrorText:null==Ie?void 0:Ie.requiredErrorText,validationErrorText:null==Ie?void 0:Ie.validationErrorText},me=Object.keys(se);var kt=R(se,Be,me,We);ve=kt.text,ft=kt.placeholderText,Tt=kt.required,bt=kt.requiredErrorText,yt=kt.validationErrorText,ce=N(null==Te?void 0:Te.props,we,We);return r(s,e({name:Re,text:(null==ve?void 0:ve.text)||"",required:null==Tt?void 0:Tt.value,isDisplayOnly:"basic_text_display_field"===xe,requiredErrorText:null==bt?void 0:bt.text,validationErrorText:null==yt?void 0:yt.text,placeholderText:(null==ft?void 0:ft.text)||"",sourceDataModelField:Ne},ce,{configurationItemInfo:et}));case"rating_display_field":case"rating":se={text:null==Ie?void 0:Ie.text,dataCapture:null==Ie?void 0:Ie.dataCapture,required:null==Ie?void 0:Ie.required,requiredErrorText:null==Ie?void 0:Ie.requiredErrorText,validationErrorText:null==Ie?void 0:Ie.validationErrorText},me=Object.keys(se);var Et=R(se,Be,me,We);ve=Et.text,Tt=Et.required,bt=Et.requiredErrorText,yt=Et.validationErrorText,ce=N(null==Te?void 0:Te.props,we,We);return r(I,e({name:Re,text:(null==ve?void 0:ve.text)||"",required:null==Tt?void 0:Tt.value,requiredErrorText:null==bt?void 0:bt.text,validationErrorText:null==yt?void 0:yt.text,sourceDataModelField:Ne,isDisplayOnly:"rating_display_field"===xe},ce,{configurationItemInfo:et}));case"switch_display_field":case"switch":se={text:null==Ie?void 0:Ie.text,required:null==Ie?void 0:Ie.required,requiredErrorText:null==Ie?void 0:Ie.requiredErrorText,validationErrorText:null==Ie?void 0:Ie.validationErrorText},me=Object.keys(se);var ht=R(se,Be,me,We);ve=ht.text,Tt=ht.required,bt=ht.requiredErrorText,yt=ht.validationErrorText,ce=N(null==Te?void 0:Te.props,we,We);return r(_,e({name:Re,moleculeId:pe,text:(null==ve?void 0:ve.text)||"",required:null==Tt?void 0:Tt.value,isDisplayOnly:"switch_display_field"===xe,requiredErrorText:null==bt?void 0:bt.text,validationErrorText:null==yt?void 0:yt.text,sourceDataModelField:Ne},ce,{configurationItemInfo:et}));case"slider_display_field":case"slider":se={text:null==Ie?void 0:Ie.text,required:null==Ie?void 0:Ie.required,placeholderText:null==Ie?void 0:Ie.placeholderText,requiredErrorText:null==Ie?void 0:Ie.requiredErrorText,validationErrorText:null==Ie?void 0:Ie.validationErrorText},me=Object.keys(se);var _t=R(se,Be,me,We);ve=_t.text,Tt=_t.required,bt=_t.requiredErrorText,yt=_t.validationErrorText,ft=_t.placeholderText,ce=N(null==Te?void 0:Te.props,we,We);return r(E,e({name:Re,text:(null==ve?void 0:ve.text)||"",required:null==Tt?void 0:Tt.value,isDisplayOnly:"slider_display_field"===xe,requiredErrorText:null==bt?void 0:bt.text,validationErrorText:null==yt?void 0:yt.text,placeholderText:null==ft?void 0:ft.text,sourceDataModelField:Ne},ce,{configurationItemInfo:et}));case"date_display_field":case"date_picker":se={text:null==Ie?void 0:Ie.text,required:null==Ie?void 0:Ie.required,placeholderText:null==Ie?void 0:Ie.placeholderText,requiredErrorText:null==Ie?void 0:Ie.requiredErrorText,validationErrorText:null==Ie?void 0:Ie.validationErrorText},me=Object.keys(se);var qt=R(se,Be,me,We);ve=qt.text,Tt=qt.required,ft=qt.placeholderText,bt=qt.requiredErrorText,yt=qt.validationErrorText,ce=N(null==Te?void 0:Te.props,we,We);return r(ue,e({dateAdapter:de},{children:r(m,e({moleculeId:pe,name:Re,text:(null==ve?void 0:ve.text)||"",required:null==Tt?void 0:Tt.value,placeholderText:(null==ft?void 0:ft.text)||"",isDisplayOnly:"date_display_field"===xe,requiredErrorText:null==bt?void 0:bt.text,validationErrorText:null==yt?void 0:yt.text,sourceDataModelField:Ne},ce,{configurationItemInfo:et}))}));case"select_display_field":case"select":se={text:null==Ie?void 0:Ie.text,required:null==Ie?void 0:Ie.required,placeholderText:null==Ie?void 0:Ie.placeholderText,requiredErrorText:null==Ie?void 0:Ie.requiredErrorText,validationErrorText:null==Ie?void 0:Ie.validationErrorText},me=Object.keys(se);var Ct=R(se,Be,me,We);ve=Ct.text,Tt=Ct.required,ft=Ct.placeholderText,bt=Ct.requiredErrorText,yt=Ct.validationErrorText,ce=N(null==Te?void 0:Te.props,we,We);return r(k,e({name:Re,text:(null==ve?void 0:ve.text)||"",required:null==Tt?void 0:Tt.value,isDisplayOnly:"select_display_field"===xe,placeholderText:(null==ft?void 0:ft.text)||"",requiredErrorText:null==bt?void 0:bt.text,validationErrorText:null==yt?void 0:yt.text,sourceDataModelField:Ne},ce,{configurationItemInfo:et}));case"image":se={image:null==Ie?void 0:Ie.image,link:null==Ie?void 0:Ie.link},me=Object.keys(se);var Ot=R(se,Be,me,We),Dt=Ot.image,St=Ot.link,Ft=(ce=N(null==Te?void 0:Te.props,we,We),(null==Dt?void 0:Dt.imageSource)||(null===(L=null==Dt?void 0:Dt.imageFile)||void 0===L?void 0:L.url)||"");return r(b,e({},ce,{src:Ft,onClick:function(){return W(St)?null==Pe?void 0:Pe((null==St?void 0:St.internalLink)||""):z(null==St?void 0:St.externalLink)},moleculeId:pe,configurationItemInfo:et}));case"button":se={text:null==Ie?void 0:Ie.text,action:null==Ie?void 0:Ie.action},me=Object.keys(se);var Mt=R(se,Be,me,We),wt=(ve=Mt.text,Mt.action),Bt=(ce=N(null==Te?void 0:Te.props,we,We),(null==wt?void 0:wt.action)||{}),Pt=Bt.link,At=Bt.popup,Lt=Bt.download,Vt=Bt.submit,Rt={link:function(){return W(Pt)?Pe(null==Pt?void 0:Pt.internalLink):z(null==Pt?void 0:Pt.externalLink)},popup:function(){(null==At?void 0:At.id)&&Ke(null==At?void 0:At.id)},drawer:function(){He(!0)},download:function(){return Lt?K(Lt.url,Lt.name):P({message:"File not found to download",type:"warning"})},submit:null==fe?void 0:fe.handleSubmit((function(e){return i(void 0,void 0,void 0,(function(){var t,i,r,l;return o(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),_e?[4,null==De?void 0:De({formId:_e,data:e})]:[3,2];case 1:o.sent(),(t=null===(r=null==Vt?void 0:Vt.onSuccess)||void 0===r?void 0:r.link)&&(W(t)?null==Pe||Pe(t.internalLink||""):z(t.externalLink)),fe.reset(),o.label=2;case 2:return[3,4];case 3:return o.sent(),(i=null===(l=null==Vt?void 0:Vt.onError)||void 0===l?void 0:l.link)&&(W(i)?null==Pe||Pe(i.internalLink||""):z(i.externalLink)),[3,4];case 4:return[2]}}))}))})),reset:function(){return null==fe?void 0:fe.reset()},destroy:function(){null==fe||fe.reset(),null==Ue||Ue(),null==Ye||Ye()}};return r(v,e({moleculeId:pe,text:(null==ve?void 0:ve.text)||""},ce,{disabled:(null==ce?void 0:ce.disabled)||Qe,onClick:null==Rt?void 0:Rt[(null===(V=null==wt?void 0:wt.action)||void 0===V?void 0:V.type)||"link"],configurationItemInfo:et}));case"avatar":ce=N(null==Te?void 0:Te.props,we,We);return r(Z,e({},ce,{sourceDataModelField:Ne,configurationItemInfo:et}));case"visit":ce=N(null==Te?void 0:Te.props,we,We);return r(le,e({},ce,{configurationItemInfo:et}));case"simple_calendar":ce=N(null==Te?void 0:Te.props,we,We);return r(G,e({},ce,{events:[],configurationItemInfo:et}));case"resource_timeline_calendar":ce=N(null==Te?void 0:Te.props,we,We);return r(Q,e({},ce,{events:[],configurationItemInfo:et}));case"year_view_calendar":ce=N(null==Te?void 0:Te.props,we,We);return r(J,e({},ce,{events:[],configurationItemInfo:et}));case"drawer":se={text:null==Ie?void 0:Ie.text,disabled:null==Ie?void 0:Ie.disabled},me=Object.keys(se);var Nt=R(se,Be,me,We),Wt=Nt.text,zt=Nt.disabled,Kt=N(null==Te?void 0:Te.props,we,We);Ze=null==ye?void 0:ye.map((function(i){var o,r,l,n,d,u=Me===i.id,a=i||{},s=a.properties,v=a.config,c=t(a,["properties","config"]),p={},x=[];switch(i.type){case"menu_item":var m=s;p={disabled:null==m?void 0:m.disabled,text:null==m?void 0:m.text,link:null==m?void 0:m.link},x=Object.keys(p);break;case"text_item":var f=s;p={text:null==f?void 0:f.text},x=Object.keys(p);break;case"rich_text_item":var T=s;p={text:null==T?void 0:T.text},x=Object.keys(p);break;default:p={},x=[]}var b=R(p,Be,x,u),y=N(null==v?void 0:v.props,we,u),j=e(e({},c),y);switch(i.type){case"menu_item":return e(e({},j),{disabled:(null==Ve?void 0:Ve[i.id])?null===(o=null==Ve?void 0:Ve[i.id])||void 0===o?void 0:o.disabled:(null===(r=null==b?void 0:b.disabled)||void 0===r?void 0:r.value)||(null==y?void 0:y.disabled)||!1,text:(null===(l=null==b?void 0:b.text)||void 0===l?void 0:l.text)||"Menu Item",link:null==b?void 0:b.link});case"text_item":return e(e({},j),{text:(null===(n=null==b?void 0:b.text)||void 0===n?void 0:n.text)||""});case"rich_text_item":return e(e({},j),{text:(null===(d=null==b?void 0:b.text)||void 0===d?void 0:d.text)||B});default:return j}}));return r(T,e({},Kt,{items:Ze||[],moleculeId:pe,buttonText:(null===(ne=null==Wt?void 0:Wt.text)||void 0===ne?void 0:ne.text)||(null==Kt?void 0:Kt.buttonText),buttonDisabled:(null==Ve?void 0:Ve[pe])?null===(ae=null==Ve?void 0:Ve[pe])||void 0===ae?void 0:ae.disabled:(null==zt?void 0:zt.value)||(null==Kt?void 0:Kt.disabled)||!1,configurationItemInfo:et}));case"speed_dial":var Ht=N(null==Te?void 0:Te.props,we,We);Ze=null==ye?void 0:ye.map((function(i){var o=Me===i.id,r=i||{},l=r.properties,n=r.config,d=t(r,["properties","config"]),u={link:null==l?void 0:l.link,text:null==l?void 0:l.text},a=Object.keys(u),s=R(u,Be,a,o),v=N(null==n?void 0:n.props,we,o);return e(e({},d),{config:{props:e(e(e({},null==n?void 0:n.props),v),{tooltipText:(null==v?void 0:v.tooltipText)||""})},properties:{link:(null==s?void 0:s.link)||(null==l?void 0:l.link),text:(null==s?void 0:s.text)||(null==l?void 0:l.text)}})}));return r(D,e({},Ht,{items:Ze||[],moleculeId:pe,configurationItemInfo:et}));case"checkbox":case"checkbox_display":se={label:null==Ie?void 0:Ie.label,required:null==Ie?void 0:Ie.required,requiredErrorText:null==Ie?void 0:Ie.requiredErrorText,validationErrorText:null==Ie?void 0:Ie.validationErrorText},me=Object.keys(se);var Ut=R(se,Be,me,We),Yt=Ut.label;Tt=Ut.required,bt=Ut.requiredErrorText,yt=Ut.validationErrorText,ce=N(null==Te?void 0:Te.props,we,We);return r(O,e({name:Re,moleculeId:pe,label:(null==Yt?void 0:Yt.text)||"",required:null==Tt?void 0:Tt.value,requiredErrorText:null==bt?void 0:bt.text,validationErrorText:null==yt?void 0:yt.text,sourceDataModelField:Ne,isDisplayOnly:"checkbox_display"===xe},ce,{configurationItemInfo:et}));case"binary_radio_buttons":case"binary_radio_buttons_display":se={confirmText:null==Ie?void 0:Ie.confirmText,rejectText:null==Ie?void 0:Ie.rejectText,required:null==Ie?void 0:Ie.required,requiredErrorText:null==Ie?void 0:Ie.requiredErrorText,validationErrorText:null==Ie?void 0:Ie.validationErrorText},me=Object.keys(se);var Zt=R(se,Be,me,We),Qt=Zt.confirmText,Gt=Zt.rejectText;Tt=Zt.required,bt=Zt.requiredErrorText,yt=Zt.validationErrorText,ce=N(null==Te?void 0:Te.props,we,We);return r(C,e({name:Re,moleculeId:pe,confirmText:(null==Qt?void 0:Qt.text)||"Yes",rejectText:(null==Gt?void 0:Gt.text)||"No",required:null==Tt?void 0:Tt.value,requiredErrorText:null==bt?void 0:bt.text,validationErrorText:null==yt?void 0:yt.text,sourceDataModelField:Ne,isDisplayOnly:"binary_radio_buttons_display"===xe},ce,{configurationItemInfo:et}));default:return r(l,{children:"There is no such type of molecule yet."})}}()};export{ae as BaseMolecule};
|
2
2
|
//# sourceMappingURL=BaseMolecule.js.map
|