-
Notifications
You must be signed in to change notification settings - Fork 0
/
992.54f593ec.iframe.bundle.js
1 lines (1 loc) · 33.7 KB
/
992.54f593ec.iframe.bundle.js
1
"use strict";(self.webpackChunkbuildcorp_uikits=self.webpackChunkbuildcorp_uikits||[]).push([[992],{"./node_modules/@fluentui/react/lib/components/FocusTrapZone/FocusTrapZone.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{Y:()=>FocusTrapZone});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),react=__webpack_require__("./node_modules/react/index.js"),useMergeStylesShadowRoot=__webpack_require__("./node_modules/@fluentui/utilities/lib/shadowDom/hooks/useMergeStylesShadowRoot.js"),getPropsWithDefaults=__webpack_require__("./node_modules/@fluentui/utilities/lib/getPropsWithDefaults.js"),lib_focus=__webpack_require__("./node_modules/@fluentui/utilities/lib/focus.js"),elementContains=__webpack_require__("./node_modules/@fluentui/dom-utilities/lib/elementContains.js"),getActiveElement=function(doc){for(var ae=doc.activeElement;null==ae?void 0:ae.shadowRoot;)ae=ae.shadowRoot.activeElement;return ae},getEventTarget=function(event){var target=event.target;return target&&target.shadowRoot&&(target=event.composedPath()[0]),target},on=__webpack_require__("./node_modules/@fluentui/utilities/lib/dom/on.js"),modalize=__webpack_require__("./node_modules/@fluentui/utilities/lib/modalize.js"),properties=__webpack_require__("./node_modules/@fluentui/utilities/lib/properties.js"),useMergedRefs=__webpack_require__("./node_modules/@fluentui/react-hooks/lib/useMergedRefs.js"),usePrevious=__webpack_require__("./node_modules/@fluentui/react-hooks/lib/usePrevious.js"),useConst=__webpack_require__("./node_modules/@fluentui/react-hooks/lib/useConst.js"),useId=__webpack_require__("./node_modules/@fluentui/react-hooks/lib/useId.js"),useIsomorphicLayoutEffect=__webpack_require__("./node_modules/@fluentui/utilities/lib/useIsomorphicLayoutEffect.js");function useEventCallback(fn){var callbackRef=react.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return(0,useIsomorphicLayoutEffect.E)((function(){callbackRef.current=fn}),[fn]),(0,useConst.d)((function(){return function(){for(var args=[],_i=0;_i<arguments.length;_i++)args[_i]=arguments[_i];return callbackRef.current.apply(void 0,args)}}))}var WindowProvider=__webpack_require__("./node_modules/@fluentui/react-window-provider/lib/WindowProvider.js"),dom=__webpack_require__("./node_modules/@fluentui/react/lib/utilities/dom.js"),DEFAULT_PROPS={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1,"data-tabster":'{"uncontrolled": {"completely": true}}'},FocusTrapZone=react.forwardRef((function(propsWithoutDefaults,ref){var _a,callback,unmountRef,root=react.useRef(null),firstBumper=react.useRef(null),lastBumper=react.useRef(null),mergedRootRef=(0,useMergedRefs.a)(root,ref),doc=(0,WindowProvider.ZY)(),win=(0,dom.bX)(),inShadow=(0,useMergeStylesShadowRoot.h)(),isFirstRender=null===(_a=(0,usePrevious.Z)(!1))||void 0===_a||_a,props=(0,getPropsWithDefaults.N)(DEFAULT_PROPS,propsWithoutDefaults),internalState=(0,useConst.d)({hasFocus:!1,focusStackId:(0,useId.B)("ftz-",props.id)}),children=props.children,componentRef=props.componentRef,disabled=props.disabled,disableFirstFocus=props.disableFirstFocus,forceFocusInsideTrap=props.forceFocusInsideTrap,focusPreviouslyFocusedInnerElement=props.focusPreviouslyFocusedInnerElement,firstFocusableSelector=props.firstFocusableSelector,firstFocusableTarget=props.firstFocusableTarget,_b=props.disableRestoreFocus,disableRestoreFocus=void 0===_b?props.ignoreExternalFocusing:_b,isClickableOutsideFocusTrap=props.isClickableOutsideFocusTrap,enableAriaHiddenSiblings=props.enableAriaHiddenSiblings,bumperProps={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:disabled?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},focusElementAsync=react.useCallback((function(element){element!==firstBumper.current&&element!==lastBumper.current&&(0,lib_focus.lo)(element)}),[]),focusFTZ=useEventCallback((function(){if(root.current){var previouslyFocusedElementInTrapZone=internalState.previouslyFocusedElementInTrapZone;if(focusPreviouslyFocusedInnerElement&&previouslyFocusedElementInTrapZone&&(0,elementContains.s)(root.current,previouslyFocusedElementInTrapZone))focusElementAsync(previouslyFocusedElementInTrapZone);else{var firstFocusableChild=null;if("string"==typeof firstFocusableTarget)firstFocusableChild=root.current.querySelector(firstFocusableTarget);else if(firstFocusableTarget)firstFocusableChild=firstFocusableTarget(root.current);else if(firstFocusableSelector){var focusSelector="string"==typeof firstFocusableSelector?firstFocusableSelector:firstFocusableSelector();firstFocusableChild=root.current.querySelector("."+focusSelector)}firstFocusableChild||(firstFocusableChild=(0,lib_focus.eX)(root.current,root.current.firstChild,!1,!1,!1,!0,void 0,void 0,void 0,inShadow)),firstFocusableChild&&focusElementAsync(firstFocusableChild)}}})),focusBumper=function(isFirstBumper){if(!disabled&&root.current){var nextFocusable=isFirstBumper===internalState.hasFocus?(0,lib_focus.Cm)(root.current,lastBumper.current,!0,!1,inShadow):(0,lib_focus.oR)(root.current,firstBumper.current,!0,!1,inShadow);nextFocusable&&(nextFocusable===firstBumper.current||nextFocusable===lastBumper.current?focusFTZ():nextFocusable.focus())}},returnFocusToInitiator=useEventCallback((function(elementToFocusOnDismiss){if(FocusTrapZone.focusStack=FocusTrapZone.focusStack.filter((function(value){return internalState.focusStackId!==value})),doc){var activeElement=doc.activeElement;disableRestoreFocus||"function"!=typeof(null==elementToFocusOnDismiss?void 0:elementToFocusOnDismiss.focus)||!(0,elementContains.s)(root.current,activeElement)&&activeElement!==doc.body&&!activeElement.shadowRoot||focusElementAsync(elementToFocusOnDismiss)}})),forceFocusOrClickInTrap=useEventCallback((function(ev){if(!disabled&&internalState.focusStackId===FocusTrapZone.focusStack.slice(-1)[0]){var targetElement=getEventTarget(ev);targetElement&&!(0,elementContains.s)(root.current,targetElement)&&(doc&&getActiveElement(doc)===doc.body?setTimeout((function(){doc&&getActiveElement(doc)===doc.body&&(focusFTZ(),internalState.hasFocus=!0)}),0):(focusFTZ(),internalState.hasFocus=!0),ev.preventDefault(),ev.stopPropagation())}}));return react.useEffect((function(){var disposables=[];return forceFocusInsideTrap&&disposables.push((0,on.on)(win,"focus",forceFocusOrClickInTrap,!0)),isClickableOutsideFocusTrap||disposables.push((0,on.on)(win,"click",forceFocusOrClickInTrap,!0)),function(){disposables.forEach((function(dispose){return dispose()}))}}),[forceFocusInsideTrap,isClickableOutsideFocusTrap,win]),react.useEffect((function(){if(!disabled&&(isFirstRender||forceFocusInsideTrap)&&root.current){FocusTrapZone.focusStack.push(internalState.focusStackId);var elementToFocusOnDismiss=props.elementToFocusOnDismiss||getActiveElement(doc);return disableFirstFocus||(0,elementContains.s)(root.current,elementToFocusOnDismiss)||focusFTZ(),function(){return returnFocusToInitiator(elementToFocusOnDismiss)}}}),[forceFocusInsideTrap,disabled]),react.useEffect((function(){if(!disabled&&enableAriaHiddenSiblings)return(0,modalize.q)(root.current)}),[disabled,enableAriaHiddenSiblings,root]),callback=function(){delete internalState.previouslyFocusedElementInTrapZone},(unmountRef=react.useRef(callback)).current=callback,react.useEffect((function(){return function(){var _a;null===(_a=unmountRef.current)||void 0===_a||_a.call(unmountRef)}}),[]),function(componentRef,previouslyFocusedElement,focusFTZ){react.useImperativeHandle(componentRef,(function(){return{get previouslyFocusedElement(){return previouslyFocusedElement},focus:focusFTZ}}),[focusFTZ,previouslyFocusedElement])}(componentRef,internalState.previouslyFocusedElementInTrapZone,focusFTZ),react.createElement("div",(0,tslib_es6.Cl)({"aria-labelledby":props.ariaLabelledBy},(0,properties.G1)(props,properties.JM),{ref:mergedRootRef,onFocusCapture:function(ev){var _a;null===(_a=props.onFocusCapture)||void 0===_a||_a.call(props,ev),ev.target===firstBumper.current?focusBumper(!0):ev.target===lastBumper.current&&focusBumper(!1),internalState.hasFocus=!0,ev.target!==ev.currentTarget&&ev.target!==firstBumper.current&&ev.target!==lastBumper.current&&(internalState.previouslyFocusedElementInTrapZone=getEventTarget(ev.nativeEvent))},onBlurCapture:function(ev){var _a;null===(_a=props.onBlurCapture)||void 0===_a||_a.call(props,ev);var relatedTarget=ev.relatedTarget;null===ev.relatedTarget&&(relatedTarget=getActiveElement(doc)),(0,elementContains.s)(root.current,relatedTarget)||(internalState.hasFocus=!1)}}),react.createElement("div",(0,tslib_es6.Cl)({},bumperProps,{ref:firstBumper})),children,react.createElement("div",(0,tslib_es6.Cl)({},bumperProps,{ref:lastBumper})))}));FocusTrapZone.displayName="FocusTrapZone",FocusTrapZone.focusStack=[]},"./node_modules/@fluentui/react/lib/components/Label/Label.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{J:()=>Label});var styled=__webpack_require__("./node_modules/@fluentui/utilities/lib/styled.js"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),react=__webpack_require__("./node_modules/react/index.js"),properties=__webpack_require__("./node_modules/@fluentui/utilities/lib/properties.js"),getClassNames=(0,__webpack_require__("./node_modules/@fluentui/utilities/lib/classNamesFunction.js").Z)({cacheSize:100}),LabelBase=function(_super){function LabelBase(){return null!==_super&&_super.apply(this,arguments)||this}return(0,tslib_es6.C6)(LabelBase,_super),LabelBase.prototype.render=function(){var _a=this.props,_b=_a.as,RootType=void 0===_b?"label":_b,children=_a.children,className=_a.className,disabled=_a.disabled,styles=_a.styles,required=_a.required,theme=_a.theme,classNames=getClassNames(styles,{className,disabled,required,theme});return react.createElement(RootType,(0,tslib_es6.Cl)({},(0,properties.G1)(this.props,properties.JM),{className:classNames.root}),children)},LabelBase}(react.Component),lib=__webpack_require__("./node_modules/@fluentui/style-utilities/lib/index.js"),Label=(0,styled.I)(LabelBase,(function(props){var _a,theme=props.theme,className=props.className,disabled=props.disabled,required=props.required,semanticColors=theme.semanticColors,labelFontWeight=lib.BO.semibold,labelColor=semanticColors.bodyText,labelDisabledColor=semanticColors.disabledBodyText,labelRequiredStarColor=semanticColors.errorText;return{root:["ms-Label",theme.fonts.medium,{fontWeight:labelFontWeight,color:labelColor,boxSizing:"border-box",boxShadow:"none",margin:0,display:"block",padding:"5px 0",wordWrap:"break-word",overflowWrap:"break-word"},disabled&&{color:labelDisabledColor,selectors:(_a={},_a[lib.up]=(0,tslib_es6.Cl)({color:"GrayText"},(0,lib.Qg)()),_a)},required&&{selectors:{"::after":{content:"' *'",color:labelRequiredStarColor,paddingRight:12}}},className]}}),void 0,{scope:"Label"})},"./node_modules/@fluentui/react/lib/components/TextField/TextField.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{A:()=>TextField});var styled=__webpack_require__("./node_modules/@fluentui/utilities/lib/styled.js"),tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),react=__webpack_require__("./node_modules/react/index.js"),Label=__webpack_require__("./node_modules/@fluentui/react/lib/components/Label/Label.js"),Icon=__webpack_require__("./node_modules/@fluentui/react/lib/components/Icon/Icon.js"),classNamesFunction=__webpack_require__("./node_modules/@fluentui/utilities/lib/classNamesFunction.js"),initializeComponentRef=__webpack_require__("./node_modules/@fluentui/utilities/lib/initializeComponentRef.js"),Async=__webpack_require__("./node_modules/@fluentui/utilities/lib/Async.js"),getId=__webpack_require__("./node_modules/@fluentui/utilities/lib/getId.js"),DelayedRender=__webpack_require__("./node_modules/@fluentui/utilities/lib/DelayedRender.js");var warn=__webpack_require__("./node_modules/@fluentui/utilities/lib/warn/warn.js");var __browserNeedsRevealButton,properties=__webpack_require__("./node_modules/@fluentui/utilities/lib/properties.js"),getWindow=__webpack_require__("./node_modules/@fluentui/utilities/lib/dom/getWindow.js"),ie11Detector=__webpack_require__("./node_modules/@fluentui/utilities/lib/ie11Detector.js"),getClassNames=(0,classNamesFunction.Z)(),TextFieldBase=function(_super){function TextFieldBase(props){var _a,_this=_super.call(this,props)||this;_this._textElement=react.createRef(),_this._onFocus=function(ev){_this.props.onFocus&&_this.props.onFocus(ev),_this.setState({isFocused:!0},(function(){_this.props.validateOnFocusIn&&_this._validate(_this.value)}))},_this._onBlur=function(ev){_this.props.onBlur&&_this.props.onBlur(ev),_this.setState({isFocused:!1},(function(){_this.props.validateOnFocusOut&&_this._validate(_this.value)}))},_this._onRenderLabel=function(props){var label=props.label,required=props.required,labelStyles=_this._classNames.subComponentStyles?_this._classNames.subComponentStyles.label:void 0;return label?react.createElement(Label.J,{required,htmlFor:_this._id,styles:labelStyles,disabled:props.disabled,id:_this._labelId},props.label):null},_this._onRenderDescription=function(props){return props.description?react.createElement("span",{className:_this._classNames.description},props.description):null},_this._onRevealButtonClick=function(event){_this.setState((function(prevState){return{isRevealingPassword:!prevState.isRevealingPassword}}))},_this._onInputChange=function(event){var _a,_b,value=event.target.value,previousValue=_getValue(_this.props,_this.state)||"";void 0!==value&&value!==_this._lastChangeValue&&value!==previousValue?(_this._lastChangeValue=value,null===(_b=(_a=_this.props).onChange)||void 0===_b||_b.call(_a,event,value),_this._isControlled||_this.setState({uncontrolledValue:value})):_this._lastChangeValue=void 0},(0,initializeComponentRef.f)(_this),_this._async=new Async.j(_this),_this._fallbackId=(0,getId.O)("TextField"),_this._descriptionId=(0,getId.O)("TextFieldDescription"),_this._labelId=(0,getId.O)("TextFieldLabel"),_this._prefixId=(0,getId.O)("TextFieldPrefix"),_this._suffixId=(0,getId.O)("TextFieldSuffix"),_this._warnControlledUsage();var defaultValue=void 0===(_a=props.defaultValue)?"":_a;return"number"==typeof defaultValue&&(defaultValue=String(defaultValue)),_this.state={uncontrolledValue:_this._isControlled?void 0:defaultValue,isFocused:!1,errorMessage:""},_this._delayedValidate=_this._async.debounce(_this._validate,_this.props.deferredValidationTime),_this._lastValidation=0,_this}return(0,tslib_es6.C6)(TextFieldBase,_super),Object.defineProperty(TextFieldBase.prototype,"value",{get:function(){return _getValue(this.props,this.state)},enumerable:!1,configurable:!0}),TextFieldBase.prototype.componentDidMount=function(){this._adjustInputHeight(),this.props.validateOnLoad&&this._validate(this.value)},TextFieldBase.prototype.componentWillUnmount=function(){this._async.dispose()},TextFieldBase.prototype.getSnapshotBeforeUpdate=function(prevProps,prevState){return{selection:[this.selectionStart,this.selectionEnd]}},TextFieldBase.prototype.componentDidUpdate=function(prevProps,prevState,snapshot){var _a,props=this.props,selection=void 0===(_a=(snapshot||{}).selection)?[null,null]:_a,start=selection[0],end=selection[1];!!prevProps.multiline!=!!props.multiline&&prevState.isFocused&&(this.focus(),null!==start&&null!==end&&start>=0&&end>=0&&this.setSelectionRange(start,end)),prevProps.value!==props.value&&(this._lastChangeValue=void 0);var prevValue=_getValue(prevProps,prevState),value=this.value;prevValue!==value&&(this._warnControlledUsage(prevProps),this.state.errorMessage&&!props.errorMessage&&this.setState({errorMessage:""}),this._adjustInputHeight(),_shouldValidateAllChanges(props)&&this._delayedValidate(value))},TextFieldBase.prototype.render=function(){var _a,_b,_c,_d,_e,_f,borderless=(_a=this.props).borderless,className=_a.className,disabled=_a.disabled,invalid=_a.invalid,iconProps=_a.iconProps,inputClassName=_a.inputClassName,label=_a.label,multiline=_a.multiline,required=_a.required,underlined=_a.underlined,prefix=_a.prefix,resizable=_a.resizable,suffix=_a.suffix,theme=_a.theme,styles=_a.styles,autoAdjustHeight=_a.autoAdjustHeight,canRevealPassword=_a.canRevealPassword,revealPasswordAriaLabel=_a.revealPasswordAriaLabel,type=_a.type,onRenderPrefix=void 0===(_b=_a.onRenderPrefix)?this._onRenderPrefix:_b,onRenderSuffix=void 0===(_c=_a.onRenderSuffix)?this._onRenderSuffix:_c,onRenderLabel=void 0===(_d=_a.onRenderLabel)?this._onRenderLabel:_d,onRenderDescription=void 0===(_e=_a.onRenderDescription)?this._onRenderDescription:_e,isFocused=(_f=this.state).isFocused,isRevealingPassword=_f.isRevealingPassword,errorMessage=this._errorMessage,isInvalid="boolean"==typeof invalid?invalid:!!errorMessage,hasRevealButton=!!canRevealPassword&&"password"===type&&function _browserNeedsRevealButton(){if("boolean"!=typeof __browserNeedsRevealButton){var win=(0,getWindow.z)();if(null==win?void 0:win.navigator){var isEdge=/Edg/.test(win.navigator.userAgent||"");__browserNeedsRevealButton=!((0,ie11Detector.l)()||isEdge)}else __browserNeedsRevealButton=!0}return __browserNeedsRevealButton}(),classNames=this._classNames=getClassNames(styles,{theme,className,disabled,focused:isFocused,required,multiline,hasLabel:!!label,hasErrorMessage:isInvalid,borderless,resizable,hasIcon:!!iconProps,underlined,inputClassName,autoAdjustHeight,hasRevealButton});return react.createElement("div",{ref:this.props.elementRef,className:classNames.root},react.createElement("div",{className:classNames.wrapper},onRenderLabel(this.props,this._onRenderLabel),react.createElement("div",{className:classNames.fieldGroup},(void 0!==prefix||this.props.onRenderPrefix)&&react.createElement("div",{className:classNames.prefix,id:this._prefixId},onRenderPrefix(this.props,this._onRenderPrefix)),multiline?this._renderTextArea():this._renderInput(),iconProps&&react.createElement(Icon.I,(0,tslib_es6.Cl)({className:classNames.icon},iconProps)),hasRevealButton&&react.createElement("button",{"aria-label":revealPasswordAriaLabel,className:classNames.revealButton,onClick:this._onRevealButtonClick,"aria-pressed":!!isRevealingPassword,type:"button"},react.createElement("span",{className:classNames.revealSpan},react.createElement(Icon.I,{className:classNames.revealIcon,iconName:isRevealingPassword?"Hide":"RedEye"}))),(void 0!==suffix||this.props.onRenderSuffix)&&react.createElement("div",{className:classNames.suffix,id:this._suffixId},onRenderSuffix(this.props,this._onRenderSuffix)))),this._isDescriptionAvailable&&react.createElement("span",{id:this._descriptionId},onRenderDescription(this.props,this._onRenderDescription),errorMessage&&react.createElement("div",{role:"alert"},react.createElement(DelayedRender.P,null,this._renderErrorMessage()))))},TextFieldBase.prototype.focus=function(){this._textElement.current&&this._textElement.current.focus()},TextFieldBase.prototype.blur=function(){this._textElement.current&&this._textElement.current.blur()},TextFieldBase.prototype.select=function(){this._textElement.current&&this._textElement.current.select()},TextFieldBase.prototype.setSelectionStart=function(value){this._textElement.current&&(this._textElement.current.selectionStart=value)},TextFieldBase.prototype.setSelectionEnd=function(value){this._textElement.current&&(this._textElement.current.selectionEnd=value)},Object.defineProperty(TextFieldBase.prototype,"selectionStart",{get:function(){return this._textElement.current?this._textElement.current.selectionStart:-1},enumerable:!1,configurable:!0}),Object.defineProperty(TextFieldBase.prototype,"selectionEnd",{get:function(){return this._textElement.current?this._textElement.current.selectionEnd:-1},enumerable:!1,configurable:!0}),TextFieldBase.prototype.setSelectionRange=function(start,end){this._textElement.current&&this._textElement.current.setSelectionRange(start,end)},TextFieldBase.prototype._warnControlledUsage=function(prevProps){this._id,this.props,null!==this.props.value||this._hasWarnedNullValue||(this._hasWarnedNullValue=!0,(0,warn.R)("Warning: 'value' prop on '".concat("TextField","' should not be null. Consider using an ")+"empty string to clear the component or undefined to indicate an uncontrolled component."))},Object.defineProperty(TextFieldBase.prototype,"_id",{get:function(){return this.props.id||this._fallbackId},enumerable:!1,configurable:!0}),Object.defineProperty(TextFieldBase.prototype,"_isControlled",{get:function(){return function isControlled(props,valueProp){return void 0!==props[valueProp]&&null!==props[valueProp]}(this.props,"value")},enumerable:!1,configurable:!0}),TextFieldBase.prototype._onRenderPrefix=function(props){var prefix=props.prefix;return react.createElement("span",{style:{paddingBottom:"1px"}},prefix)},TextFieldBase.prototype._onRenderSuffix=function(props){var suffix=props.suffix;return react.createElement("span",{style:{paddingBottom:"1px"}},suffix)},Object.defineProperty(TextFieldBase.prototype,"_errorMessage",{get:function(){var _a;return(void 0===(_a=this.props.errorMessage)?this.state.errorMessage:_a)||""},enumerable:!1,configurable:!0}),TextFieldBase.prototype._renderErrorMessage=function(){var errorMessage=this._errorMessage;return errorMessage?"string"==typeof errorMessage?react.createElement("p",{className:this._classNames.errorMessage},react.createElement("span",{"data-automation-id":"error-message"},errorMessage)):react.createElement("div",{className:this._classNames.errorMessage,"data-automation-id":"error-message"},errorMessage):null},Object.defineProperty(TextFieldBase.prototype,"_isDescriptionAvailable",{get:function(){var props=this.props;return!!(props.onRenderDescription||props.description||this._errorMessage)},enumerable:!1,configurable:!0}),TextFieldBase.prototype._renderTextArea=function(){var _a,invalid=void 0===(_a=this.props.invalid)?!!this._errorMessage:_a,textAreaProps=(0,properties.G1)(this.props,properties.Sh,["defaultValue"]),ariaLabelledBy=this.props["aria-labelledby"]||(this.props.label?this._labelId:void 0);return react.createElement("textarea",(0,tslib_es6.Cl)({id:this._id},textAreaProps,{ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-labelledby":ariaLabelledBy,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":invalid,"aria-label":this.props.ariaLabel,readOnly:this.props.readOnly,onFocus:this._onFocus,onBlur:this._onBlur}))},TextFieldBase.prototype._renderInput=function(){var _a,_b,_c,ariaLabel=(_a=this.props).ariaLabel,invalid=void 0===(_b=_a.invalid)?!!this._errorMessage:_b,onRenderPrefix=_a.onRenderPrefix,onRenderSuffix=_a.onRenderSuffix,prefix=_a.prefix,suffix=_a.suffix,type=void 0===(_c=_a.type)?"text":_c,labelIds=[];_a.label&&labelIds.push(this._labelId),(void 0!==prefix||onRenderPrefix)&&labelIds.push(this._prefixId),(void 0!==suffix||onRenderSuffix)&&labelIds.push(this._suffixId);var inputProps=(0,tslib_es6.Cl)((0,tslib_es6.Cl)({type:this.state.isRevealingPassword?"text":type,id:this._id},(0,properties.G1)(this.props,properties.QQ,["defaultValue","type"])),{"aria-labelledby":this.props["aria-labelledby"]||(labelIds.length>0?labelIds.join(" "):void 0),ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-label":ariaLabel,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":invalid,onFocus:this._onFocus,onBlur:this._onBlur}),defaultRender=function(updatedInputProps){return react.createElement("input",(0,tslib_es6.Cl)({},updatedInputProps))};return(this.props.onRenderInput||defaultRender)(inputProps,defaultRender)},TextFieldBase.prototype._validate=function(value){var _this=this;if(this._latestValidateValue!==value||!_shouldValidateAllChanges(this.props)){this._latestValidateValue=value;var onGetErrorMessage=this.props.onGetErrorMessage,result=onGetErrorMessage&&onGetErrorMessage(value||"");if(void 0!==result)if("string"!=typeof result&&"then"in result){var currentValidation_1=++this._lastValidation;result.then((function(errorMessage){currentValidation_1===_this._lastValidation&&_this.setState({errorMessage}),_this._notifyAfterValidate(value,errorMessage)}))}else this.setState({errorMessage:result}),this._notifyAfterValidate(value,result);else this._notifyAfterValidate(value,"")}},TextFieldBase.prototype._notifyAfterValidate=function(value,errorMessage){value===this.value&&this.props.onNotifyValidationResult&&this.props.onNotifyValidationResult(errorMessage,value)},TextFieldBase.prototype._adjustInputHeight=function(){var _a,_b;if(this._textElement.current&&this.props.autoAdjustHeight&&this.props.multiline){var scrollTop=null===(_b=null===(_a=this.props.scrollContainerRef)||void 0===_a?void 0:_a.current)||void 0===_b?void 0:_b.scrollTop,textField=this._textElement.current;textField.style.height="",textField.style.height=textField.scrollHeight+"px",scrollTop&&(this.props.scrollContainerRef.current.scrollTop=scrollTop)}},TextFieldBase.defaultProps={resizable:!0,deferredValidationTime:200,validateOnLoad:!0},TextFieldBase}(react.Component);function _getValue(props,state){var _a=props.value,value=void 0===_a?state.uncontrolledValue:_a;return"number"==typeof value?String(value):value}function _shouldValidateAllChanges(props){return!(props.validateOnFocusIn||props.validateOnFocusOut)}var lib=__webpack_require__("./node_modules/@fluentui/style-utilities/lib/index.js"),globalClassNames={root:"ms-TextField",description:"ms-TextField-description",errorMessage:"ms-TextField-errorMessage",field:"ms-TextField-field",fieldGroup:"ms-TextField-fieldGroup",prefix:"ms-TextField-prefix",suffix:"ms-TextField-suffix",wrapper:"ms-TextField-wrapper",revealButton:"ms-TextField-reveal",multiline:"ms-TextField--multiline",borderless:"ms-TextField--borderless",underlined:"ms-TextField--underlined",unresizable:"ms-TextField--unresizable",required:"is-required",disabled:"is-disabled",active:"is-active"};function getLabelStyles(props){var underlined=props.underlined,disabled=props.disabled,focused=props.focused,theme=props.theme,palette=theme.palette,fonts=theme.fonts;return function(){var _a;return{root:[underlined&&disabled&&{color:palette.neutralTertiary},underlined&&{fontSize:fonts.medium.fontSize,marginRight:8,paddingLeft:12,paddingRight:0,lineHeight:"22px",height:32},underlined&&focused&&{selectors:(_a={},_a[lib.up]={height:31},_a)}]}}}var TextField=(0,styled.I)(TextFieldBase,(function getStyles(props){var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k,_l,_m,theme=props.theme,className=props.className,disabled=props.disabled,focused=props.focused,required=props.required,multiline=props.multiline,hasLabel=props.hasLabel,borderless=props.borderless,underlined=props.underlined,hasIcon=props.hasIcon,resizable=props.resizable,hasErrorMessage=props.hasErrorMessage,inputClassName=props.inputClassName,autoAdjustHeight=props.autoAdjustHeight,hasRevealButton=props.hasRevealButton,semanticColors=theme.semanticColors,effects=theme.effects,fonts=theme.fonts,classNames=(0,lib.Km)(globalClassNames,theme),fieldPrefixSuffix={background:semanticColors.disabledBackground,color:disabled?semanticColors.disabledText:semanticColors.inputPlaceholderText,display:"flex",alignItems:"center",padding:"0 10px",lineHeight:1,whiteSpace:"nowrap",flexShrink:0,selectors:(_a={},_a[lib.up]={background:"Window",color:disabled?"GrayText":"WindowText"},_a)},placeholderStyles=[{color:semanticColors.inputPlaceholderText,opacity:1,selectors:(_b={},_b[lib.up]={color:"GrayText"},_b)}],disabledPlaceholderStyles={color:semanticColors.disabledText,selectors:(_c={},_c[lib.up]={color:"GrayText"},_c)};return{root:[classNames.root,fonts.medium,required&&classNames.required,disabled&&classNames.disabled,focused&&classNames.active,multiline&&classNames.multiline,borderless&&classNames.borderless,underlined&&classNames.underlined,lib.S8,{position:"relative"},className],wrapper:[classNames.wrapper,underlined&&[{display:"flex",borderBottom:"1px solid ".concat(hasErrorMessage?semanticColors.errorText:semanticColors.inputBorder),width:"100%"},disabled&&{borderBottomColor:semanticColors.disabledBackground,selectors:(_d={},_d[lib.up]=(0,tslib_es6.Cl)({borderColor:"GrayText"},(0,lib.Qg)()),_d)},!disabled&&{selectors:{":hover":{borderBottomColor:hasErrorMessage?semanticColors.errorText:semanticColors.inputBorderHovered,selectors:(_e={},_e[lib.up]=(0,tslib_es6.Cl)({borderBottomColor:"Highlight"},(0,lib.Qg)()),_e)}}},focused&&[{position:"relative"},(0,lib.Sq)(hasErrorMessage?semanticColors.errorText:semanticColors.inputFocusBorderAlt,0,"borderBottom")]]],fieldGroup:[classNames.fieldGroup,lib.S8,{border:"1px solid ".concat(semanticColors.inputBorder),borderRadius:effects.roundedCorner2,background:semanticColors.inputBackground,cursor:"text",height:32,display:"flex",flexDirection:"row",alignItems:"stretch",position:"relative"},multiline&&{minHeight:"60px",height:"auto",display:"flex"},!focused&&!disabled&&{selectors:{":hover":{borderColor:semanticColors.inputBorderHovered,selectors:(_f={},_f[lib.up]=(0,tslib_es6.Cl)({borderColor:"Highlight"},(0,lib.Qg)()),_f)}}},focused&&!underlined&&(0,lib.Sq)(hasErrorMessage?semanticColors.errorText:semanticColors.inputFocusBorderAlt,effects.roundedCorner2),disabled&&{borderColor:semanticColors.disabledBackground,selectors:(_g={},_g[lib.up]=(0,tslib_es6.Cl)({borderColor:"GrayText"},(0,lib.Qg)()),_g),cursor:"default"},borderless&&{border:"none"},borderless&&focused&&{border:"none",selectors:{":after":{border:"none"}}},underlined&&{flex:"1 1 0px",border:"none",textAlign:"left"},underlined&&disabled&&{backgroundColor:"transparent"},hasErrorMessage&&!underlined&&{borderColor:semanticColors.errorText,selectors:{"&:hover":{borderColor:semanticColors.errorText}}},!hasLabel&&required&&{selectors:(_h={":before":{content:"'*'",color:semanticColors.errorText,position:"absolute",top:-5,right:-10}},_h[lib.up]={selectors:{":before":{color:"WindowText",right:-14}}},_h)}],field:[fonts.medium,classNames.field,lib.S8,{borderRadius:0,border:"none",background:"none",backgroundColor:"transparent",color:semanticColors.inputText,padding:"0 8px",width:"100%",minWidth:0,textOverflow:"ellipsis",outline:0,selectors:(_j={"&:active, &:focus, &:hover":{outline:0},"::-ms-clear":{display:"none"}},_j[lib.up]={background:"Window",color:disabled?"GrayText":"WindowText"},_j)},(0,lib.CX)(placeholderStyles),multiline&&!resizable&&[classNames.unresizable,{resize:"none"}],multiline&&{minHeight:"inherit",lineHeight:17,flexGrow:1,paddingTop:6,paddingBottom:6,overflow:"auto",width:"100%"},multiline&&autoAdjustHeight&&{overflow:"hidden"},hasIcon&&!hasRevealButton&&{paddingRight:24},multiline&&hasIcon&&{paddingRight:40},disabled&&[{backgroundColor:semanticColors.disabledBackground,color:semanticColors.disabledText,borderColor:semanticColors.disabledBackground},(0,lib.CX)(disabledPlaceholderStyles)],underlined&&{textAlign:"left"},focused&&!borderless&&{selectors:(_k={},_k[lib.up]={paddingLeft:11,paddingRight:11},_k)},focused&&multiline&&!borderless&&{selectors:(_l={},_l[lib.up]={paddingTop:4},_l)},inputClassName],icon:[multiline&&{paddingRight:24,alignItems:"flex-end"},{pointerEvents:"none",position:"absolute",bottom:6,right:8,top:"auto",fontSize:lib.fF.medium,lineHeight:18},disabled&&{color:semanticColors.disabledText}],description:[classNames.description,{color:semanticColors.bodySubtext,fontSize:fonts.xSmall.fontSize}],errorMessage:[classNames.errorMessage,lib.lw.slideDownIn20,fonts.small,{color:semanticColors.errorText,margin:0,paddingTop:5,display:"flex",alignItems:"center"}],prefix:[classNames.prefix,fieldPrefixSuffix],suffix:[classNames.suffix,fieldPrefixSuffix],revealButton:[classNames.revealButton,"ms-Button","ms-Button--icon",(0,lib.gm)(theme,{inset:1}),{height:30,width:32,border:"none",padding:"0px 4px",backgroundColor:"transparent",color:semanticColors.link,selectors:{":hover":{outline:0,color:semanticColors.primaryButtonBackgroundHovered,backgroundColor:semanticColors.buttonBackgroundHovered,selectors:(_m={},_m[lib.up]={borderColor:"Highlight",color:"Highlight"},_m)},":focus":{outline:0}}},hasIcon&&{marginRight:28}],revealSpan:{display:"flex",height:"100%",alignItems:"center"},revealIcon:{margin:"0px 4px",pointerEvents:"none",bottom:6,right:8,top:"auto",fontSize:lib.fF.medium,lineHeight:18},subComponentStyles:{label:getLabelStyles(props)}}}),void 0,{scope:"TextField"})},"./node_modules/@fluentui/utilities/lib/DelayedRender.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{P:()=>DelayedRender});var tslib__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/react/index.js"),_dom_getWindow__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("./node_modules/@fluentui/utilities/lib/dom/getWindow.js"),DelayedRender=function(_super){function DelayedRender(props){var _this=_super.call(this,props)||this;return _this.state={isRendered:void 0===(0,_dom_getWindow__WEBPACK_IMPORTED_MODULE_2__.z)()},_this}return(0,tslib__WEBPACK_IMPORTED_MODULE_1__.C6)(DelayedRender,_super),DelayedRender.prototype.componentDidMount=function(){var _this=this,delay=this.props.delay;this._timeoutId=window.setTimeout((function(){_this.setState({isRendered:!0})}),delay)},DelayedRender.prototype.componentWillUnmount=function(){this._timeoutId&&clearTimeout(this._timeoutId)},DelayedRender.prototype.render=function(){return this.state.isRendered?react__WEBPACK_IMPORTED_MODULE_0__.Children.only(this.props.children):null},DelayedRender.defaultProps={delay:0},DelayedRender}(react__WEBPACK_IMPORTED_MODULE_0__.Component)},"./node_modules/@fluentui/utilities/lib/ie11Detector.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{l:()=>isIE11});var _dom_getWindow__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("./node_modules/@fluentui/utilities/lib/dom/getWindow.js"),isIE11=function(){var _a,win=(0,_dom_getWindow__WEBPACK_IMPORTED_MODULE_0__.z)();return!!(null===(_a=null==win?void 0:win.navigator)||void 0===_a?void 0:_a.userAgent)&&win.navigator.userAgent.indexOf("rv:11.0")>-1}}}]);