-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path7714.c65ddabc.iframe.bundle.js
1 lines (1 loc) · 10.1 KB
/
7714.c65ddabc.iframe.bundle.js
1
"use strict";(self.webpackChunkcommon_components=self.webpackChunkcommon_components||[]).push([[7714],{"./node_modules/@react-aria/button/dist/import.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{s:()=>$701a24aa0da5b062$export$ea18c227d4417cc3});var _react_aria_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@react-aria/utils/dist/import.mjs"),_react_aria_focus__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@react-aria/focus/dist/import.mjs"),_react_aria_interactions__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@react-aria/interactions/dist/import.mjs");function $701a24aa0da5b062$export$ea18c227d4417cc3(props,ref){let additionalProps,{elementType="button",isDisabled,onPress,onPressStart,onPressEnd,onPressUp,onPressChange,preventFocusOnPress,allowFocusWhenDisabled,onClick:deprecatedOnClick,href,target,rel,type="button"}=props;additionalProps="button"===elementType?{type,disabled:isDisabled}:{role:"button",tabIndex:isDisabled?void 0:0,href:"a"===elementType&&isDisabled?void 0:href,target:"a"===elementType?target:void 0,type:"input"===elementType?type:void 0,disabled:"input"===elementType?isDisabled:void 0,"aria-disabled":isDisabled&&"input"!==elementType?isDisabled:void 0,rel:"a"===elementType?rel:void 0};let{pressProps,isPressed}=(0,_react_aria_interactions__WEBPACK_IMPORTED_MODULE_0__.dD)({onPressStart,onPressEnd,onPressChange,onPress,onPressUp,isDisabled,preventFocusOnPress,ref}),{focusableProps}=(0,_react_aria_focus__WEBPACK_IMPORTED_MODULE_1__.Wc)(props,ref);allowFocusWhenDisabled&&(focusableProps.tabIndex=isDisabled?-1:focusableProps.tabIndex);let buttonProps=(0,_react_aria_utils__WEBPACK_IMPORTED_MODULE_2__.v6)(focusableProps,pressProps,(0,_react_aria_utils__WEBPACK_IMPORTED_MODULE_2__.$X)(props,{labelable:!0}));return{isPressed,buttonProps:(0,_react_aria_utils__WEBPACK_IMPORTED_MODULE_2__.v6)(additionalProps,buttonProps,{"aria-haspopup":props["aria-haspopup"],"aria-expanded":props["aria-expanded"],"aria-controls":props["aria-controls"],"aria-pressed":props["aria-pressed"],onClick:e=>{deprecatedOnClick&&(deprecatedOnClick(e),console.warn("onClick is deprecated, please use onPress"))}})}}},"./node_modules/@react-aria/dialog/dist/import.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{s:()=>$40df3f8667284809$export$d55e7ee900f34e93});var _react_aria_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@react-aria/utils/dist/import.mjs"),_react_aria_focus__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@react-aria/focus/dist/import.mjs"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../epi-systems-frontend/node_modules/react/index.js"),_react_aria_overlays__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@react-aria/overlays/dist/import.mjs");function $40df3f8667284809$export$d55e7ee900f34e93(props,ref){let{role="dialog"}=props,titleId=(0,_react_aria_utils__WEBPACK_IMPORTED_MODULE_1__.X1)();titleId=props["aria-label"]?void 0:titleId;let isRefocusing=(0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(!1);return(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{if(ref.current&&!ref.current.contains(document.activeElement)){(0,_react_aria_focus__WEBPACK_IMPORTED_MODULE_2__.lY)(ref.current);let timeout=setTimeout((()=>{document.activeElement===ref.current&&(isRefocusing.current=!0,ref.current&&(ref.current.blur(),(0,_react_aria_focus__WEBPACK_IMPORTED_MODULE_2__.lY)(ref.current)),isRefocusing.current=!1)}),500);return()=>{clearTimeout(timeout)}}}),[ref]),(0,_react_aria_overlays__WEBPACK_IMPORTED_MODULE_3__.Se)(),{dialogProps:{...(0,_react_aria_utils__WEBPACK_IMPORTED_MODULE_1__.$X)(props,{labelable:!0}),role,tabIndex:-1,"aria-labelledby":props["aria-labelledby"]||titleId,onBlur:e=>{isRefocusing.current&&e.stopPropagation()}},titleProps:{id:titleId}}}},"./node_modules/@react-aria/label/dist/import.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{M:()=>$2baaea4c71418dea$export$294aa081a6c6f55d,t:()=>$d191a55c9702f145$export$8467354a121f1b9f});var _react_aria_utils__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@react-aria/utils/dist/import.mjs");function $d191a55c9702f145$export$8467354a121f1b9f(props){let{id,label,"aria-labelledby":ariaLabelledby,"aria-label":ariaLabel,labelElementType="label"}=props;id=(0,_react_aria_utils__WEBPACK_IMPORTED_MODULE_0__.Bi)(id);let labelId=(0,_react_aria_utils__WEBPACK_IMPORTED_MODULE_0__.Bi)(),labelProps={};return label?(ariaLabelledby=ariaLabelledby?`${labelId} ${ariaLabelledby}`:labelId,labelProps={id:labelId,htmlFor:"label"===labelElementType?id:void 0}):ariaLabelledby||ariaLabel||console.warn("If you do not provide a visible label, you must specify an aria-label or aria-labelledby attribute for accessibility"),{labelProps,fieldProps:(0,_react_aria_utils__WEBPACK_IMPORTED_MODULE_0__.b0)({id,"aria-label":ariaLabel,"aria-labelledby":ariaLabelledby})}}function $2baaea4c71418dea$export$294aa081a6c6f55d(props){let{description,errorMessage,isInvalid,validationState}=props,{labelProps,fieldProps}=$d191a55c9702f145$export$8467354a121f1b9f(props),descriptionId=(0,_react_aria_utils__WEBPACK_IMPORTED_MODULE_0__.X1)([Boolean(description),Boolean(errorMessage),isInvalid,validationState]),errorMessageId=(0,_react_aria_utils__WEBPACK_IMPORTED_MODULE_0__.X1)([Boolean(description),Boolean(errorMessage),isInvalid,validationState]);return fieldProps=(0,_react_aria_utils__WEBPACK_IMPORTED_MODULE_0__.v6)(fieldProps,{"aria-describedby":[descriptionId,errorMessageId,props["aria-describedby"]].filter(Boolean).join(" ")||void 0}),{labelProps,fieldProps,descriptionProps:{id:descriptionId},errorMessageProps:{id:errorMessageId}}}},"./node_modules/@react-aria/textfield/dist/import.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{v:()=>$2d73ec29415bd339$export$712718f7aec83d5});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../epi-systems-frontend/node_modules/react/index.js"),_react_aria_utils__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("./node_modules/@react-aria/utils/dist/import.mjs"),_react_stately_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@react-stately/utils/dist/import.mjs"),_react_aria_label__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("./node_modules/@react-aria/label/dist/import.mjs"),_react_aria_focus__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@react-aria/focus/dist/import.mjs"),_react_aria_form__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("./node_modules/@react-aria/form/dist/import.mjs"),_react_stately_form__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("./node_modules/@react-stately/form/dist/import.mjs");function $2d73ec29415bd339$export$712718f7aec83d5(props,ref){let{inputElementType="input",isDisabled=!1,isRequired=!1,isReadOnly=!1,type="text",validationBehavior="aria"}=props,[value,setValue]=(0,_react_stately_utils__WEBPACK_IMPORTED_MODULE_1__.PW)(props.value,props.defaultValue||"",props.onChange),{focusableProps}=(0,_react_aria_focus__WEBPACK_IMPORTED_MODULE_2__.Wc)(props,ref),validationState=(0,_react_stately_form__WEBPACK_IMPORTED_MODULE_3__.KZ)({...props,value}),{isInvalid,validationErrors,validationDetails}=validationState.displayValidation,{labelProps,fieldProps,descriptionProps,errorMessageProps}=(0,_react_aria_label__WEBPACK_IMPORTED_MODULE_4__.M)({...props,isInvalid,errorMessage:props.errorMessage||validationErrors}),domProps=(0,_react_aria_utils__WEBPACK_IMPORTED_MODULE_5__.$X)(props,{labelable:!0});const inputOnlyProps={type,pattern:props.pattern};return(0,_react_aria_utils__WEBPACK_IMPORTED_MODULE_5__.FO)(ref,value,setValue),(0,_react_aria_form__WEBPACK_IMPORTED_MODULE_6__.X)(props,validationState,ref),(0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)((()=>{if(ref.current instanceof(0,_react_aria_utils__WEBPACK_IMPORTED_MODULE_5__.mD)(ref.current).HTMLTextAreaElement){let input=ref.current;Object.defineProperty(input,"defaultValue",{get:()=>input.value,set:()=>{},configurable:!0})}}),[ref]),{labelProps,inputProps:(0,_react_aria_utils__WEBPACK_IMPORTED_MODULE_5__.v6)(domProps,"input"===inputElementType&&inputOnlyProps,{disabled:isDisabled,readOnly:isReadOnly,required:isRequired&&"native"===validationBehavior,"aria-required":isRequired&&"aria"===validationBehavior||void 0,"aria-invalid":isInvalid||void 0,"aria-errormessage":props["aria-errormessage"],"aria-activedescendant":props["aria-activedescendant"],"aria-autocomplete":props["aria-autocomplete"],"aria-haspopup":props["aria-haspopup"],value,onChange:e=>setValue(e.target.value),autoComplete:props.autoComplete,autoCapitalize:props.autoCapitalize,maxLength:props.maxLength,minLength:props.minLength,name:props.name,placeholder:props.placeholder,inputMode:props.inputMode,onCopy:props.onCopy,onCut:props.onCut,onPaste:props.onPaste,onCompositionEnd:props.onCompositionEnd,onCompositionStart:props.onCompositionStart,onCompositionUpdate:props.onCompositionUpdate,onSelect:props.onSelect,onBeforeInput:props.onBeforeInput,onInput:props.onInput,...focusableProps,...fieldProps}),descriptionProps,errorMessageProps,isInvalid,validationErrors,validationDetails}}},"./node_modules/@react-stately/overlays/dist/import.mjs":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{T:()=>$fc909762b330b746$export$61c6a8c84e605fb6});var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("../epi-systems-frontend/node_modules/react/index.js"),_react_stately_utils__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/@react-stately/utils/dist/import.mjs");function $fc909762b330b746$export$61c6a8c84e605fb6(props){let[isOpen,setOpen]=(0,_react_stately_utils__WEBPACK_IMPORTED_MODULE_1__.PW)(props.isOpen,props.defaultOpen||!1,props.onOpenChange);const open=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>{setOpen(!0)}),[setOpen]),close=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>{setOpen(!1)}),[setOpen]),toggle=(0,react__WEBPACK_IMPORTED_MODULE_0__.useCallback)((()=>{setOpen(!isOpen)}),[setOpen,isOpen]);return{isOpen,setOpen,open,close,toggle}}}}]);