-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path61.86e95a3b.iframe.bundle.js
1 lines (1 loc) · 52.5 KB
/
61.86e95a3b.iframe.bundle.js
1
"use strict";(self.webpackChunkbuildcorp_uikits=self.webpackChunkbuildcorp_uikits||[]).push([[61],{"./node_modules/@fluentui/react/lib/components/Button/CommandButton/CommandButton.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{c:()=>CommandButton});var tslib_es6=__webpack_require__("./node_modules/tslib/tslib.es6.mjs"),react=__webpack_require__("./node_modules/react/index.js"),BaseButton=__webpack_require__("./node_modules/@fluentui/react/lib/components/Button/BaseButton.js"),BaseComponent=__webpack_require__("./node_modules/@fluentui/utilities/lib/BaseComponent.js"),customizable=__webpack_require__("./node_modules/@fluentui/utilities/lib/customizations/customizable.js"),lib=__webpack_require__("./node_modules/@fluentui/style-utilities/lib/index.js"),memoize=__webpack_require__("./node_modules/@fluentui/utilities/lib/memoize.js"),BaseButton_styles=__webpack_require__("./node_modules/@fluentui/react/lib/components/Button/BaseButton.styles.js"),getStyles=(0,memoize.J9)((function(theme,customStyles){var _a,_b,_c,baseButtonStyles=(0,BaseButton_styles.$)(theme),actionButtonStyles={root:(_a={padding:"0 4px",height:"40px",color:theme.palette.neutralPrimary,backgroundColor:"transparent",border:"1px solid transparent"},_a[lib.up]={borderColor:"Window"},_a),rootHovered:(_b={color:theme.palette.themePrimary},_b[lib.up]={color:"Highlight"},_b),iconHovered:{color:theme.palette.themePrimary},rootPressed:{color:theme.palette.black},rootExpanded:{color:theme.palette.themePrimary},iconPressed:{color:theme.palette.themeDarker},rootDisabled:(_c={color:theme.palette.neutralTertiary,backgroundColor:"transparent",borderColor:"transparent"},_c[lib.up]={color:"GrayText"},_c),rootChecked:{color:theme.palette.black},iconChecked:{color:theme.palette.themeDarker},flexContainer:{justifyContent:"flex-start"},icon:{color:theme.palette.themeDarkAlt},iconDisabled:{color:"inherit"},menuIcon:{color:theme.palette.neutralSecondary},textContainer:{flexGrow:0}};return(0,lib.TW)(baseButtonStyles,actionButtonStyles,customStyles)})),CommandButton=function(_super){function ActionButton(){return null!==_super&&_super.apply(this,arguments)||this}return(0,tslib_es6.C6)(ActionButton,_super),ActionButton.prototype.render=function(){var _a,styles=(_a=this.props).styles,theme=_a.theme;return react.createElement(BaseButton.S,(0,tslib_es6.Cl)({},this.props,{variantClassName:"ms-Button--action ms-Button--command",styles:getStyles(theme,styles),onRenderDescription:BaseComponent.K}))},ActionButton=(0,tslib_es6.Cg)([(0,customizable.T)("ActionButton",["theme","styles"],!0)],ActionButton)}(react.Component)},"./node_modules/@fluentui/react/lib/components/Dropdown/Dropdown.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{__webpack_require__.d(__webpack_exports__,{m:()=>Dropdown});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"),classNamesFunction=__webpack_require__("./node_modules/@fluentui/utilities/lib/classNamesFunction.js"),array=__webpack_require__("./node_modules/@fluentui/utilities/lib/array.js"),extendComponent=__webpack_require__("./node_modules/@fluentui/utilities/lib/extendComponent.js"),css=__webpack_require__("./node_modules/@fluentui/utilities/lib/css.js"),getDocument=__webpack_require__("./node_modules/@fluentui/utilities/lib/dom/getDocument.js"),KeyCodes=__webpack_require__("./node_modules/@fluentui/utilities/lib/KeyCodes.js"),lib_focus=__webpack_require__("./node_modules/@fluentui/utilities/lib/focus.js"),initializeComponentRef=__webpack_require__("./node_modules/@fluentui/utilities/lib/initializeComponentRef.js"),getId=__webpack_require__("./node_modules/@fluentui/utilities/lib/getId.js"),properties=__webpack_require__("./node_modules/@fluentui/utilities/lib/properties.js"),aria=__webpack_require__("./node_modules/@fluentui/utilities/lib/aria.js"),osDetector=__webpack_require__("./node_modules/@fluentui/utilities/lib/osDetector.js"),mobileDetector=__webpack_require__("./node_modules/@fluentui/utilities/lib/mobileDetector.js"),Callout=__webpack_require__("./node_modules/@fluentui/react/lib/components/Callout/Callout.js"),DirectionalHint=__webpack_require__("./node_modules/@fluentui/react/lib/common/DirectionalHint.js"),CommandButton=__webpack_require__("./node_modules/@fluentui/react/lib/components/Button/CommandButton/CommandButton.js"),SelectableOption_types=__webpack_require__("./node_modules/@fluentui/react/lib/utilities/selectableOption/SelectableOption.types.js"),DropdownSizePosCache=function(){function DropdownSizePosCache(){this._size=0}return DropdownSizePosCache.prototype.updateOptions=function(options){for(var displayOnlyOptionsCache=[],notSelectableOptionsCache=[],size=0,i=0;i<options.length;i++){var _a=options[i],itemType=_a.itemType,hidden=_a.hidden;itemType===SelectableOption_types.W.Divider||itemType===SelectableOption_types.W.Header?(displayOnlyOptionsCache.push(i),notSelectableOptionsCache.push(i)):hidden?notSelectableOptionsCache.push(i):size++}this._size=size,this._displayOnlyOptionsCache=displayOnlyOptionsCache,this._notSelectableOptionsCache=notSelectableOptionsCache,this._cachedOptions=(0,tslib_es6.fX)([],options,!0)},Object.defineProperty(DropdownSizePosCache.prototype,"optionSetSize",{get:function(){return this._size},enumerable:!1,configurable:!0}),Object.defineProperty(DropdownSizePosCache.prototype,"cachedOptions",{get:function(){return this._cachedOptions},enumerable:!1,configurable:!0}),DropdownSizePosCache.prototype.positionInSet=function(index){if(void 0!==index){for(var offset=0;index>this._notSelectableOptionsCache[offset];)offset++;if(this._displayOnlyOptionsCache[offset]===index)throw new Error("Unexpected: Option at index ".concat(index," is not a selectable element."));if(this._notSelectableOptionsCache[offset]!==index)return index-offset+1}},DropdownSizePosCache}(),FocusZone=__webpack_require__("./node_modules/@fluentui/react-focus/lib/components/FocusZone/FocusZone.js"),FocusZone_types=__webpack_require__("./node_modules/@fluentui/react-focus/lib/components/FocusZone/FocusZone.types.js"),Icon=__webpack_require__("./node_modules/@fluentui/react/lib/components/Icon/Icon.js"),Label=__webpack_require__("./node_modules/@fluentui/react/lib/components/Label/Label.js"),Panel=__webpack_require__("./node_modules/@fluentui/react/lib/components/Panel/Panel.js"),useResponsiveMode=__webpack_require__("./node_modules/@fluentui/react/lib/utilities/hooks/useResponsiveMode.js"),withResponsiveMode=__webpack_require__("./node_modules/@fluentui/react/lib/utilities/decorators/withResponsiveMode.js"),SelectableOption=__webpack_require__("./node_modules/@fluentui/react/lib/utilities/selectableOption/SelectableOption.js"),Checkbox=__webpack_require__("./node_modules/@fluentui/react/lib/components/Checkbox/Checkbox.js"),getPropsWithDefaults=__webpack_require__("./node_modules/@fluentui/utilities/lib/getPropsWithDefaults.js"),usePrevious=__webpack_require__("./node_modules/@fluentui/react-hooks/lib/usePrevious.js"),useMergedRefs=__webpack_require__("./node_modules/@fluentui/react-hooks/lib/useMergedRefs.js"),WindowProvider=__webpack_require__("./node_modules/@fluentui/react-window-provider/lib/WindowProvider.js"),dom=__webpack_require__("./node_modules/@fluentui/react/lib/utilities/dom.js"),getClassNames=(0,classNamesFunction.Z)(),DEFAULT_PROPS={options:[]};var DropdownBase=react.forwardRef((function(propsWithoutDefaults,forwardedRef){var props=(0,getPropsWithDefaults.N)(DEFAULT_PROPS,propsWithoutDefaults),rootRef=react.useRef(null),mergedRootRef=(0,useMergedRefs.a)(forwardedRef,rootRef),responsiveMode=(0,useResponsiveMode.z)(rootRef,props.responsiveMode),_a=function useSelectedItemsState(_a){var selectedKeyPropToUse,defaultSelectedKeys=_a.defaultSelectedKeys,selectedKeys=_a.selectedKeys,defaultSelectedKey=_a.defaultSelectedKey,selectedKey=_a.selectedKey,options=_a.options,multiSelect=_a.multiSelect,oldOptions=(0,usePrevious.Z)(options),_b=react.useState([]),selectedIndices=_b[0],setSelectedIndices=_b[1],didOptionsChange=options!==oldOptions;selectedKeyPropToUse=multiSelect?didOptionsChange&&void 0!==defaultSelectedKeys?defaultSelectedKeys:selectedKeys:didOptionsChange&&void 0!==defaultSelectedKey?defaultSelectedKey:selectedKey;var oldSelectedKeyProp=(0,usePrevious.Z)(selectedKeyPropToUse);return react.useEffect((function(){var getAllSelectedIndices=function(){return options.map((function(option,index){return option.selected?index:-1})).filter((function(index){return-1!==index}))},getSelectedIndex=function(searchKey){return(0,array.SL)(options,(function(option){return null!=searchKey?option.key===searchKey:!!option.selected||!!option.isSelected}))};void 0===selectedKeyPropToUse&&oldOptions||selectedKeyPropToUse===oldSelectedKeyProp&&!didOptionsChange||setSelectedIndices(function(){if(void 0===selectedKeyPropToUse)return multiSelect?getAllSelectedIndices():-1!==(selectedIndex=getSelectedIndex(null))?[selectedIndex]:[];if(!Array.isArray(selectedKeyPropToUse))return-1!==(selectedIndex=getSelectedIndex(selectedKeyPropToUse))?[selectedIndex]:[];for(var returnValue=[],_i=0,selectedKeyPropToUse_1=selectedKeyPropToUse;_i<selectedKeyPropToUse_1.length;_i++){var selectedIndex,key=selectedKeyPropToUse_1[_i];-1!==(selectedIndex=getSelectedIndex(key))&&returnValue.push(selectedIndex)}return returnValue}())}),[didOptionsChange,multiSelect,oldOptions,oldSelectedKeyProp,options,selectedKeyPropToUse]),[selectedIndices,setSelectedIndices]}(props),selectedIndices=_a[0],setSelectedIndices=_a[1];return react.createElement(DropdownInternal,(0,tslib_es6.Cl)({},props,{responsiveMode,hoisted:{rootRef:mergedRootRef,selectedIndices,setSelectedIndices}}))}));DropdownBase.displayName="DropdownBase";var _a,_b,_c,_d,_e,DropdownInternal=function(_super){function DropdownInternal(props){var component,activeTimeouts,_this=_super.call(this,props)||this;_this._host=react.createRef(),_this._focusZone=react.createRef(),_this._dropDown=react.createRef(),_this._scrollIdleDelay=250,_this._sizePosCache=new DropdownSizePosCache,_this._requestAnimationFrame=(component=_this,function(cb){activeTimeouts||(activeTimeouts=new Set,(0,extendComponent.i)(component,{componentWillUnmount:function(){activeTimeouts.forEach((function(id){return cancelAnimationFrame(id)}))}}));var timeoutId=requestAnimationFrame((function(){activeTimeouts.delete(timeoutId),cb()}));activeTimeouts.add(timeoutId)}),_this.dismissMenu=function(){_this.state.isOpen&&_this.setState({isOpen:!1})},_this._onChange=function(event,options,index,checked,multiSelect){var _a=_this.props,onChange=_a.onChange,onChanged=_a.onChanged;if(onChange||onChanged){var changedOpt=multiSelect?(0,tslib_es6.Cl)((0,tslib_es6.Cl)({},options[index]),{selected:!checked}):options[index];onChange&&onChange((0,tslib_es6.Cl)((0,tslib_es6.Cl)({},event),{target:_this._dropDown.current}),changedOpt,index),onChanged&&onChanged(changedOpt,index)}},_this._getPlaceholder=function(){return _this.props.placeholder||_this.props.placeHolder},_this._getTitle=function(items,_unused){var _a=_this.props.multiSelectDelimiter,multiSelectDelimiter=void 0===_a?", ":_a;return items.map((function(i){return i.text})).join(multiSelectDelimiter)},_this._onRenderTitle=function(items){return react.createElement(react.Fragment,null,_this._getTitle(items))},_this._onRenderPlaceholder=function(props){return _this._getPlaceholder()?react.createElement(react.Fragment,null,_this._getPlaceholder()):null},_this._onRenderContainer=function(props){var calloutProps=props.calloutProps,panelProps=props.panelProps,_a=_this.props,responsiveMode=_a.responsiveMode,dropdownWidth=_a.dropdownWidth,isSmall=responsiveMode<=withResponsiveMode.AR.medium,focusTrapZoneProps={firstFocusableTarget:"#".concat(_this._listId,"1")},panelStyles=_this._classNames.subComponentStyles?_this._classNames.subComponentStyles.panel:void 0,calloutWidth=void 0,calloutMinWidth=void 0;return"auto"===dropdownWidth?calloutMinWidth=_this._dropDown.current?_this._dropDown.current.clientWidth:0:calloutWidth=dropdownWidth||(_this._dropDown.current?_this._dropDown.current.clientWidth:0),isSmall?react.createElement(Panel.Z,(0,tslib_es6.Cl)({closeButtonAriaLabel:"Close",focusTrapZoneProps,hasCloseButton:!0,isOpen:!0,isLightDismiss:!0,onDismiss:_this._onDismiss,styles:panelStyles},panelProps),_this._renderFocusableList(props)):react.createElement(Callout.P,(0,tslib_es6.Cl)({isBeakVisible:!1,gapSpace:0,doNotLayer:!1,directionalHintFixed:!1,directionalHint:DirectionalHint.A.bottomLeftEdge,calloutWidth,calloutMinWidth},calloutProps,{className:_this._classNames.callout,target:_this._dropDown.current,onDismiss:_this._onDismiss,onScroll:_this._onScroll,onPositioned:_this._onPositioned}),_this._renderFocusableList(props))},_this._onRenderCaretDown=function(props){return react.createElement(Icon.I,{className:_this._classNames.caretDown,iconName:"ChevronDown","aria-hidden":!0})},_this._onRenderList=function(props){var _a=props.onRenderItem,onRenderItem=void 0===_a?_this._onRenderItem:_a,queue={items:[]},renderedList=[],emptyQueue=function(){var newGroup=queue.id?[react.createElement("div",{role:"group",key:queue.id,"aria-labelledby":queue.id},queue.items)]:queue.items;renderedList=(0,tslib_es6.fX)((0,tslib_es6.fX)([],renderedList,!0),newGroup,!0),queue={items:[]}};return props.options.forEach((function(item,index){!function(item,index){switch(item.itemType){case SelectableOption_types.W.Header:queue.items.length>0&&emptyQueue();var id=_this._id+item.key;queue.items.push(onRenderItem((0,tslib_es6.Cl)((0,tslib_es6.Cl)({id},item),{index}),_this._onRenderItem)),queue.id=id;break;case SelectableOption_types.W.Divider:index>0&&queue.items.push(onRenderItem((0,tslib_es6.Cl)((0,tslib_es6.Cl)({},item),{index}),_this._onRenderItem)),queue.items.length>0&&emptyQueue();break;default:queue.items.push(onRenderItem((0,tslib_es6.Cl)((0,tslib_es6.Cl)({},item),{index}),_this._onRenderItem))}}(item,index)})),queue.items.length>0&&emptyQueue(),react.createElement(react.Fragment,null,renderedList)},_this._onRenderItem=function(item){switch(item.itemType){case SelectableOption_types.W.Divider:return _this._renderSeparator(item);case SelectableOption_types.W.Header:return _this._renderHeader(item);default:return _this._renderOption(item)}},_this._renderOption=function(item){var _a,_b=_this.props,_c=_b.onRenderOption,onRenderOption=void 0===_c?_this._onRenderOption:_c,_d=_b.hoisted.selectedIndices,selectedIndices=void 0===_d?[]:_d,isItemSelected=!(void 0===item.index||!selectedIndices)&&selectedIndices.indexOf(item.index)>-1,itemClassName=item.hidden?_this._classNames.dropdownItemHidden:isItemSelected&&!0===item.disabled?_this._classNames.dropdownItemSelectedAndDisabled:isItemSelected?_this._classNames.dropdownItemSelected:!0===item.disabled?_this._classNames.dropdownItemDisabled:_this._classNames.dropdownItem,title=item.title,id=_this._listId+item.index,labelId=null!==(_a=item.id)&&void 0!==_a?_a:id+"-label",multiSelectItemStyles=_this._classNames.subComponentStyles?_this._classNames.subComponentStyles.multiSelectItem:void 0;return _this.props.multiSelect?react.createElement(Checkbox.S,{id,key:item.key,disabled:item.disabled,onChange:_this._onItemClick(item),inputProps:(0,tslib_es6.Cl)({"aria-selected":isItemSelected,onMouseEnter:_this._onItemMouseEnter.bind(_this,item),onMouseLeave:_this._onMouseItemLeave.bind(_this,item),onMouseMove:_this._onItemMouseMove.bind(_this,item),role:"option"},{"data-index":item.index,"data-is-focusable":!(item.disabled||item.hidden)}),label:item.text,title,onRenderLabel:_this._onRenderItemLabel.bind(_this,(0,tslib_es6.Cl)((0,tslib_es6.Cl)({},item),{id:labelId})),className:(0,css.A)(itemClassName,"is-multi-select"),checked:isItemSelected,styles:multiSelectItemStyles,ariaPositionInSet:item.hidden?void 0:_this._sizePosCache.positionInSet(item.index),ariaSetSize:item.hidden?void 0:_this._sizePosCache.optionSetSize,ariaLabel:item.ariaLabel,ariaLabelledBy:item.ariaLabel?void 0:labelId}):react.createElement(CommandButton.c,{id,key:item.key,"data-index":item.index,"data-is-focusable":!item.disabled,disabled:item.disabled,className:itemClassName,onClick:_this._onItemClick(item),onMouseEnter:_this._onItemMouseEnter.bind(_this,item),onMouseLeave:_this._onMouseItemLeave.bind(_this,item),onMouseMove:_this._onItemMouseMove.bind(_this,item),role:"option","aria-selected":isItemSelected?"true":"false",ariaLabel:item.ariaLabel,title,"aria-posinset":_this._sizePosCache.positionInSet(item.index),"aria-setsize":_this._sizePosCache.optionSetSize},onRenderOption(item,_this._onRenderOption))},_this._onRenderOption=function(item){return react.createElement("span",{className:_this._classNames.dropdownOptionText},item.text)},_this._onRenderMultiselectOption=function(item){return react.createElement("span",{id:item.id,"aria-hidden":"true",className:_this._classNames.dropdownOptionText},item.text)},_this._onRenderItemLabel=function(item){var _a=_this.props.onRenderOption;return(void 0===_a?_this._onRenderMultiselectOption:_a)(item,_this._onRenderMultiselectOption)},_this._onPositioned=function(positions){_this._focusZone.current&&_this._requestAnimationFrame((function(){var selectedIndices=_this.props.hoisted.selectedIndices;if(_this._focusZone.current)if(!_this._hasBeenPositioned&&selectedIndices&&selectedIndices[0]&&!_this.props.options[selectedIndices[0]].disabled){var element=(0,getDocument.Y)().getElementById("".concat(_this._id,"-list").concat(selectedIndices[0]));element&&_this._focusZone.current.focusElement(element),_this._hasBeenPositioned=!0}else _this._focusZone.current.focus()})),_this.state.calloutRenderEdge&&_this.state.calloutRenderEdge===positions.targetEdge||_this.setState({calloutRenderEdge:positions.targetEdge})},_this._onItemClick=function(item){return function(event){item.disabled||(_this.setSelectedIndex(event,item.index),_this.props.multiSelect||_this.setState({isOpen:!1}))}},_this._onScroll=function(){var win=(0,dom.k_)(_this.context);_this._isScrollIdle||void 0===_this._scrollIdleTimeoutId?_this._isScrollIdle=!1:(win.clearTimeout(_this._scrollIdleTimeoutId),_this._scrollIdleTimeoutId=void 0),_this._scrollIdleTimeoutId=win.setTimeout((function(){_this._isScrollIdle=!0}),_this._scrollIdleDelay)},_this._onMouseItemLeave=function(item,ev){if(!_this._shouldIgnoreMouseEvent()&&_this._host.current)if(_this._host.current.setActive)try{_this._host.current.setActive()}catch(e){}else _this._host.current.focus()},_this._onDismiss=function(){_this.setState({isOpen:!1})},_this._onDropdownBlur=function(ev){_this._isDisabled()||_this.state.isOpen||(_this.setState({hasFocus:!1}),_this.props.onBlur&&_this.props.onBlur(ev))},_this._onDropdownKeyDown=function(ev){if(!_this._isDisabled()&&(_this._lastKeyDownWasAltOrMeta=_this._isAltOrMeta(ev),!_this.props.onKeyDown||(_this.props.onKeyDown(ev),!ev.defaultPrevented))){var newIndex,selectedIndex=_this.props.hoisted.selectedIndices.length?_this.props.hoisted.selectedIndices[0]:-1,containsExpandCollapseModifier=ev.altKey||ev.metaKey,isOpen=_this.state.isOpen;switch(ev.which){case KeyCodes.c.enter:_this.setState({isOpen:!isOpen});break;case KeyCodes.c.escape:if(!isOpen)return;_this.setState({isOpen:!1});break;case KeyCodes.c.up:if(containsExpandCollapseModifier){if(isOpen){_this.setState({isOpen:!1});break}return}_this.props.multiSelect?_this.setState({isOpen:!0}):_this._isDisabled()||(newIndex=_this._moveIndex(ev,-1,selectedIndex-1,selectedIndex));break;case KeyCodes.c.down:containsExpandCollapseModifier&&(ev.stopPropagation(),ev.preventDefault()),containsExpandCollapseModifier&&!isOpen||_this.props.multiSelect?_this.setState({isOpen:!0}):_this._isDisabled()||(newIndex=_this._moveIndex(ev,1,selectedIndex+1,selectedIndex));break;case KeyCodes.c.home:_this.props.multiSelect||(newIndex=_this._moveIndex(ev,1,0,selectedIndex));break;case KeyCodes.c.end:_this.props.multiSelect||(newIndex=_this._moveIndex(ev,-1,_this.props.options.length-1,selectedIndex));break;case KeyCodes.c.space:break;default:return}newIndex!==selectedIndex&&(ev.stopPropagation(),ev.preventDefault())}},_this._onDropdownKeyUp=function(ev){if(!_this._isDisabled()){var shouldHandleKey=_this._shouldHandleKeyUp(ev),isOpen=_this.state.isOpen;_this.props.onKeyUp&&(_this.props.onKeyUp(ev),ev.defaultPrevented)||(ev.which===KeyCodes.c.space?(_this.setState({isOpen:!isOpen}),ev.stopPropagation(),ev.preventDefault()):shouldHandleKey&&isOpen&&_this.setState({isOpen:!1}))}},_this._onZoneKeyDown=function(ev){var _a,_b,elementToFocus;_this._lastKeyDownWasAltOrMeta=_this._isAltOrMeta(ev);var containsExpandCollapseModifier=ev.altKey||ev.metaKey;switch(ev.which){case KeyCodes.c.up:containsExpandCollapseModifier?_this.setState({isOpen:!1}):_this._host.current&&(elementToFocus=(0,lib_focus.dm)(_this._host.current,_this._host.current.lastChild,!0));break;case KeyCodes.c.home:case KeyCodes.c.end:case KeyCodes.c.pageUp:case KeyCodes.c.pageDown:break;case KeyCodes.c.down:!containsExpandCollapseModifier&&_this._host.current&&(elementToFocus=(0,lib_focus.j5)(_this._host.current,_this._host.current.firstChild,!0));break;case KeyCodes.c.escape:_this.setState({isOpen:!1});break;case KeyCodes.c.tab:_this.setState({isOpen:!1});var document_1=(0,getDocument.Y)();document_1&&(ev.shiftKey?null===(_a=(0,lib_focus.yv)(document_1.body,_this._dropDown.current,!1,!1,!0,!0))||void 0===_a||_a.focus():null===(_b=(0,lib_focus.eX)(document_1.body,_this._dropDown.current,!1,!1,!0,!0))||void 0===_b||_b.focus());break;default:return}elementToFocus&&elementToFocus.focus(),ev.stopPropagation(),ev.preventDefault()},_this._onZoneKeyUp=function(ev){_this._shouldHandleKeyUp(ev)&&_this.state.isOpen&&(_this.setState({isOpen:!1}),ev.preventDefault())},_this._onDropdownClick=function(ev){if(!_this.props.onClick||(_this.props.onClick(ev),!ev.defaultPrevented)){var isOpen=_this.state.isOpen;_this._isDisabled()||_this._shouldOpenOnFocus()||_this.setState({isOpen:!isOpen}),_this._isFocusedByClick=!1}},_this._onDropdownMouseDown=function(){_this._isFocusedByClick=!0},_this._onFocus=function(ev){if(!_this._isDisabled()){_this.props.onFocus&&_this.props.onFocus(ev);var state={hasFocus:!0};_this._shouldOpenOnFocus()&&(state.isOpen=!0),_this.setState(state)}},_this._isDisabled=function(){var disabled=_this.props.disabled,isDisabled=_this.props.isDisabled;return void 0===disabled&&(disabled=isDisabled),disabled},_this._onRenderLabel=function(props){var label=props.label,required=props.required,disabled=props.disabled,labelStyles=_this._classNames.subComponentStyles?_this._classNames.subComponentStyles.label:void 0;return label?react.createElement(Label.J,{className:_this._classNames.label,id:_this._labelId,required,styles:labelStyles,disabled},label):null},(0,initializeComponentRef.f)(_this);props.multiSelect,props.selectedKey,props.selectedKeys,props.defaultSelectedKey,props.defaultSelectedKeys;var options=props.options;return _this._id=props.id||(0,getId.O)("Dropdown"),_this._labelId=_this._id+"-label",_this._listId=_this._id+"-list",_this._optionId=_this._id+"-option",_this._isScrollIdle=!0,_this._hasBeenPositioned=!1,_this._sizePosCache.updateOptions(options),_this.state={isOpen:!1,hasFocus:!1,calloutRenderEdge:void 0},_this}return(0,tslib_es6.C6)(DropdownInternal,_super),Object.defineProperty(DropdownInternal.prototype,"selectedOptions",{get:function(){var _a=this.props,options=_a.options,selectedIndices=_a.hoisted.selectedIndices;return(0,SelectableOption.D)(options,selectedIndices)},enumerable:!1,configurable:!0}),DropdownInternal.prototype.componentWillUnmount=function(){clearTimeout(this._scrollIdleTimeoutId)},DropdownInternal.prototype.componentDidUpdate=function(prevProps,prevState){!0===prevState.isOpen&&!1===this.state.isOpen&&(this._gotMouseMove=!1,this._hasBeenPositioned=!1,this.props.onDismiss&&this.props.onDismiss())},DropdownInternal.prototype.render=function(){var id=this._id,props=this.props,className=props.className,label=props.label,options=props.options,ariaLabel=props.ariaLabel,required=props.required,errorMessage=props.errorMessage,propStyles=props.styles,theme=props.theme,panelProps=props.panelProps,calloutProps=props.calloutProps,_a=props.onRenderTitle,onRenderTitle=void 0===_a?this._getTitle:_a,_b=props.onRenderContainer,onRenderContainer=void 0===_b?this._onRenderContainer:_b,_c=props.onRenderCaretDown,onRenderCaretDown=void 0===_c?this._onRenderCaretDown:_c,_d=props.onRenderLabel,onRenderLabel=void 0===_d?this._onRenderLabel:_d,_e=props.onRenderItem,onRenderItem=void 0===_e?this._onRenderItem:_e,selectedIndices=props.hoisted.selectedIndices,_f=this.state,isOpen=_f.isOpen,calloutRenderEdge=_f.calloutRenderEdge,hasFocus=_f.hasFocus,onRenderPlaceholder=props.onRenderPlaceholder||props.onRenderPlaceHolder||this._getPlaceholder;options!==this._sizePosCache.cachedOptions&&this._sizePosCache.updateOptions(options);var selectedOptions=(0,SelectableOption.D)(options,selectedIndices),divProps=(0,properties.G1)(props,properties.JM),disabled=this._isDisabled(),errorMessageId=id+"-errorMessage";this._classNames=getClassNames(propStyles,{theme,className,hasError:!!(errorMessage&&errorMessage.length>0),hasLabel:!!label,isOpen,required,disabled,isRenderingPlaceholder:!selectedOptions.length,panelClassName:panelProps?panelProps.className:void 0,calloutClassName:calloutProps?calloutProps.className:void 0,calloutRenderEdge});var hasErrorMessage=!!errorMessage&&errorMessage.length>0;return react.createElement("div",{className:this._classNames.root,ref:this.props.hoisted.rootRef,"aria-owns":isOpen?this._listId:void 0},onRenderLabel(this.props,this._onRenderLabel),react.createElement("div",(0,tslib_es6.Cl)({"data-is-focusable":!disabled,"data-ktp-target":!0,ref:this._dropDown,id,tabIndex:disabled?-1:0,role:"combobox","aria-haspopup":"listbox","aria-expanded":isOpen?"true":"false","aria-label":ariaLabel,"aria-labelledby":label&&!ariaLabel?(0,aria._)(this._labelId,this._optionId):void 0,"aria-describedby":hasErrorMessage?this._id+"-errorMessage":void 0,"aria-required":required,"aria-disabled":disabled,"aria-controls":isOpen?this._listId:void 0},divProps,{className:this._classNames.dropdown,onBlur:this._onDropdownBlur,onKeyDown:this._onDropdownKeyDown,onKeyUp:this._onDropdownKeyUp,onClick:this._onDropdownClick,onMouseDown:this._onDropdownMouseDown,onFocus:this._onFocus}),react.createElement("span",{id:this._optionId,className:this._classNames.title,"aria-live":hasFocus?"polite":void 0,"aria-atomic":!!hasFocus||void 0,"aria-invalid":hasErrorMessage},selectedOptions.length?onRenderTitle(selectedOptions,this._onRenderTitle):onRenderPlaceholder(props,this._onRenderPlaceholder)),react.createElement("span",{className:this._classNames.caretDownWrapper},onRenderCaretDown(props,this._onRenderCaretDown))),isOpen&&onRenderContainer((0,tslib_es6.Cl)((0,tslib_es6.Cl)({},props),{onDismiss:this._onDismiss,onRenderItem}),this._onRenderContainer),hasErrorMessage&&react.createElement("div",{role:"alert",id:errorMessageId,className:this._classNames.errorMessage},errorMessage))},DropdownInternal.prototype.focus=function(shouldOpenOnFocus){this._dropDown.current&&(this._dropDown.current.focus(),shouldOpenOnFocus&&this.setState({isOpen:!0}))},DropdownInternal.prototype.setSelectedIndex=function(event,index){var _a=this.props,options=_a.options,selectedKey=_a.selectedKey,selectedKeys=_a.selectedKeys,multiSelect=_a.multiSelect,notifyOnReselect=_a.notifyOnReselect,_b=_a.hoisted.selectedIndices,selectedIndices=void 0===_b?[]:_b,checked=!!selectedIndices&&selectedIndices.indexOf(index)>-1,newIndexes=[];if(index=Math.max(0,Math.min(options.length-1,index)),void 0===selectedKey&&void 0===selectedKeys){if(multiSelect||notifyOnReselect||index!==selectedIndices[0]){if(multiSelect)if(newIndexes=selectedIndices?this._copyArray(selectedIndices):[],checked){var position=newIndexes.indexOf(index);position>-1&&newIndexes.splice(position,1)}else newIndexes.push(index);else newIndexes=[index];event.persist(),this.props.hoisted.setSelectedIndices(newIndexes),this._onChange(event,options,index,checked,multiSelect)}}else this._onChange(event,options,index,checked,multiSelect)},DropdownInternal.prototype._copyArray=function(array){for(var newArray=[],_i=0,array_1=array;_i<array_1.length;_i++){var element=array_1[_i];newArray.push(element)}return newArray},DropdownInternal.prototype._moveIndex=function(event,stepValue,index,selectedIndex){var options=this.props.options;if(selectedIndex===index||0===options.length)return selectedIndex;index>=options.length?index=0:index<0&&(index=options.length-1);for(var stepCounter=0;options[index].itemType===SelectableOption_types.W.Header||options[index].itemType===SelectableOption_types.W.Divider||options[index].disabled;){if(stepCounter>=options.length)return selectedIndex;index+stepValue<0?index=options.length:index+stepValue>=options.length&&(index=-1),index+=stepValue,stepCounter++}return this.setSelectedIndex(event,index),index},DropdownInternal.prototype._renderFocusableList=function(props){var _a=props.onRenderList,onRenderList=void 0===_a?this._onRenderList:_a,label=props.label,ariaLabel=props.ariaLabel,multiSelect=props.multiSelect;return react.createElement("div",{className:this._classNames.dropdownItemsWrapper,onKeyDown:this._onZoneKeyDown,onKeyUp:this._onZoneKeyUp,ref:this._host,tabIndex:0},react.createElement(FocusZone.R,{ref:this._focusZone,direction:FocusZone_types.E.vertical,id:this._listId,className:this._classNames.dropdownItems,role:"listbox","aria-label":ariaLabel,"aria-labelledby":label&&!ariaLabel?this._labelId:void 0,"aria-multiselectable":multiSelect},onRenderList(props,this._onRenderList)))},DropdownInternal.prototype._renderSeparator=function(item){var index=item.index,key=item.key,separatorClassName=item.hidden?this._classNames.dropdownDividerHidden:this._classNames.dropdownDivider;return index>0?react.createElement("div",{role:"presentation",key,className:separatorClassName}):null},DropdownInternal.prototype._renderHeader=function(item){var _a=this.props.onRenderOption,onRenderOption=void 0===_a?this._onRenderOption:_a,key=item.key,id=item.id,headerClassName=item.hidden?this._classNames.dropdownItemHeaderHidden:this._classNames.dropdownItemHeader;return react.createElement("div",{id,key,className:headerClassName},onRenderOption(item,this._onRenderOption))},DropdownInternal.prototype._onItemMouseEnter=function(item,ev){this._shouldIgnoreMouseEvent()||ev.currentTarget.focus()},DropdownInternal.prototype._onItemMouseMove=function(item,ev){var doc=(0,dom.LW)(this.context),targetElement=ev.currentTarget;this._gotMouseMove=!0,this._isScrollIdle&&doc.activeElement!==targetElement&&targetElement.focus()},DropdownInternal.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},DropdownInternal.prototype._isAltOrMeta=function(ev){return ev.which===KeyCodes.c.alt||"Meta"===ev.key},DropdownInternal.prototype._shouldHandleKeyUp=function(ev){var keyPressIsAltOrMetaAlone=this._lastKeyDownWasAltOrMeta&&this._isAltOrMeta(ev);return this._lastKeyDownWasAltOrMeta=!1,!!keyPressIsAltOrMetaAlone&&!((0,osDetector.c)()||(0,mobileDetector.u)())},DropdownInternal.prototype._shouldOpenOnFocus=function(){var hasFocus=this.state.hasFocus,openOnKeyboardFocus=this.props.openOnKeyboardFocus;return!this._isFocusedByClick&&!0===openOnKeyboardFocus&&!hasFocus},DropdownInternal.defaultProps={options:[]},DropdownInternal.contextType=WindowProvider._0,DropdownInternal}(react.Component),setFocusVisibility=__webpack_require__("./node_modules/@fluentui/utilities/lib/setFocusVisibility.js"),positioning_types=__webpack_require__("./node_modules/@fluentui/react/lib/utilities/positioning/positioning.types.js"),lib=__webpack_require__("./node_modules/@fluentui/style-utilities/lib/index.js"),GlobalClassNames={root:"ms-Dropdown-container",label:"ms-Dropdown-label",dropdown:"ms-Dropdown",title:"ms-Dropdown-title",caretDownWrapper:"ms-Dropdown-caretDownWrapper",caretDown:"ms-Dropdown-caretDown",callout:"ms-Dropdown-callout",panel:"ms-Dropdown-panel",dropdownItems:"ms-Dropdown-items",dropdownItem:"ms-Dropdown-item",dropdownDivider:"ms-Dropdown-divider",dropdownOptionText:"ms-Dropdown-optionText",dropdownItemHeader:"ms-Dropdown-header",titleIsPlaceHolder:"ms-Dropdown-titleIsPlaceHolder",titleHasError:"ms-Dropdown-title--hasError"},highContrastAdjustMixin=((_a={})["".concat(lib.up,", ").concat(lib.hT.replace("@media ",""))]=(0,tslib_es6.Cl)({},(0,lib.Qg)()),_a),highContrastItemAndTitleStateMixin={selectors:(0,tslib_es6.Cl)((_b={},_b[lib.up]=(_c={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},_c[".".concat(setFocusVisibility.Y2," &:focus:after")]={borderColor:"HighlightText"},_c),_b[".ms-Checkbox-checkbox"]=(_d={},_d[lib.up]={borderColor:"HighlightText"},_d),_b),highContrastAdjustMixin)},highContrastBorderState={selectors:(_e={},_e[lib.up]={borderColor:"Highlight"},_e)},MinimumScreenSelector=(0,lib.L6)(0,lib.O7),Dropdown=(0,styled.I)(DropdownBase,(function(props){var _a,_b,_c,_d,_e,_f,_g,_h,_j,_k,_l,_m,theme=props.theme,hasError=props.hasError,hasLabel=props.hasLabel,className=props.className,isOpen=props.isOpen,disabled=props.disabled,required=props.required,isRenderingPlaceholder=props.isRenderingPlaceholder,panelClassName=props.panelClassName,calloutClassName=props.calloutClassName,calloutRenderEdge=props.calloutRenderEdge;if(!theme)throw new Error("theme is undefined or null in base Dropdown getStyles function.");var globalClassnames=(0,lib.Km)(GlobalClassNames,theme),palette=theme.palette,semanticColors=theme.semanticColors,effects=theme.effects,fonts=theme.fonts,rootHoverFocusActiveSelectorNeutralDarkMixin={color:semanticColors.menuItemTextHovered},rootHoverFocusActiveSelectorNeutralPrimaryMixin={color:semanticColors.menuItemText},borderColorError={borderColor:semanticColors.errorText},dropdownItemStyle=[globalClassnames.dropdownItem,{backgroundColor:"transparent",boxSizing:"border-box",cursor:"pointer",display:"flex",alignItems:"center",padding:"0 8px",width:"100%",minHeight:36,lineHeight:20,height:0,position:"relative",border:"1px solid transparent",borderRadius:0,wordWrap:"break-word",overflowWrap:"break-word",textAlign:"left",".ms-Button-flexContainer":{width:"100%"}}],dropdownHeaderStyle=[globalClassnames.dropdownItemHeader,(0,tslib_es6.Cl)((0,tslib_es6.Cl)({},fonts.medium),{fontWeight:lib.BO.semibold,color:semanticColors.menuHeader,background:"none",backgroundColor:"transparent",border:"none",height:36,lineHeight:36,cursor:"default",padding:"0 8px",userSelect:"none",textAlign:"left",selectors:(_a={},_a[lib.up]=(0,tslib_es6.Cl)({color:"GrayText"},(0,lib.Qg)()),_a)})],selectedItemBackgroundColor=semanticColors.menuItemBackgroundPressed,itemSelectors=function(isSelected){var _a,_b;return void 0===isSelected&&(isSelected=!1),{selectors:(_a={"&:hover":[{color:semanticColors.menuItemTextHovered,backgroundColor:isSelected?selectedItemBackgroundColor:semanticColors.menuItemBackgroundHovered},highContrastItemAndTitleStateMixin],"&.is-multi-select:hover":[{backgroundColor:isSelected?selectedItemBackgroundColor:"transparent"},highContrastItemAndTitleStateMixin],"&:active:hover":[{color:semanticColors.menuItemTextHovered,backgroundColor:isSelected?semanticColors.menuItemBackgroundHovered:semanticColors.menuItemBackgroundPressed},highContrastItemAndTitleStateMixin]},_a[".".concat(setFocusVisibility.Y2," &:focus:after, :host(.").concat(setFocusVisibility.Y2,") &:focus:after")]=(_b={left:0,top:0,bottom:0,right:0},_b[lib.up]={inset:"2px"},_b),_a[lib.up]={border:"none"},_a)}},dropdownItemSelected=(0,tslib_es6.fX)((0,tslib_es6.fX)([],dropdownItemStyle,!0),[{backgroundColor:selectedItemBackgroundColor,color:semanticColors.menuItemTextHovered},itemSelectors(!0),highContrastItemAndTitleStateMixin],!1),dropdownItemDisabled=(0,tslib_es6.fX)((0,tslib_es6.fX)([],dropdownItemStyle,!0),[{color:semanticColors.disabledText,cursor:"default",selectors:(_b={},_b[lib.up]={color:"GrayText",border:"none"},_b)}],!1),titleOpenBorderRadius=calloutRenderEdge===positioning_types.x.bottom?"".concat(effects.roundedCorner2," ").concat(effects.roundedCorner2," 0 0"):"0 0 ".concat(effects.roundedCorner2," ").concat(effects.roundedCorner2),calloutOpenBorderRadius=calloutRenderEdge===positioning_types.x.bottom?"0 0 ".concat(effects.roundedCorner2," ").concat(effects.roundedCorner2):"".concat(effects.roundedCorner2," ").concat(effects.roundedCorner2," 0 0");return{root:[globalClassnames.root,className],label:globalClassnames.label,dropdown:[globalClassnames.dropdown,lib.S8,fonts.medium,{color:semanticColors.menuItemText,borderColor:semanticColors.focusBorder,position:"relative",outline:0,userSelect:"none",selectors:(_c={},_c["&:hover ."+globalClassnames.title]=[!disabled&&rootHoverFocusActiveSelectorNeutralDarkMixin,{borderColor:isOpen?palette.neutralSecondary:palette.neutralPrimary},highContrastBorderState],_c["&:focus ."+globalClassnames.title]=[!disabled&&rootHoverFocusActiveSelectorNeutralDarkMixin,{selectors:(_d={},_d[lib.up]={color:"Highlight"},_d)}],_c["&:focus:after"]=[{pointerEvents:"none",content:"''",position:"absolute",boxSizing:"border-box",top:"0px",left:"0px",width:"100%",height:"100%",border:disabled?"none":"2px solid ".concat(palette.themePrimary),borderRadius:"2px",selectors:(_e={},_e[lib.up]={color:"Highlight"},_e)}],_c["&:active ."+globalClassnames.title]=[!disabled&&rootHoverFocusActiveSelectorNeutralDarkMixin,{borderColor:palette.themePrimary},highContrastBorderState],_c["&:hover ."+globalClassnames.caretDown]=!disabled&&rootHoverFocusActiveSelectorNeutralPrimaryMixin,_c["&:focus ."+globalClassnames.caretDown]=[!disabled&&rootHoverFocusActiveSelectorNeutralPrimaryMixin,{selectors:(_f={},_f[lib.up]={color:"Highlight"},_f)}],_c["&:active ."+globalClassnames.caretDown]=!disabled&&rootHoverFocusActiveSelectorNeutralPrimaryMixin,_c["&:hover ."+globalClassnames.titleIsPlaceHolder]=!disabled&&rootHoverFocusActiveSelectorNeutralPrimaryMixin,_c["&:focus ."+globalClassnames.titleIsPlaceHolder]=!disabled&&rootHoverFocusActiveSelectorNeutralPrimaryMixin,_c["&:active ."+globalClassnames.titleIsPlaceHolder]=!disabled&&rootHoverFocusActiveSelectorNeutralPrimaryMixin,_c["&:hover ."+globalClassnames.titleHasError]=borderColorError,_c["&:active ."+globalClassnames.titleHasError]=borderColorError,_c)},isOpen&&"is-open",disabled&&"is-disabled",required&&"is-required",required&&!hasLabel&&{selectors:(_g={":before":{content:"'*'",color:semanticColors.errorText,position:"absolute",top:-5,right:-10}},_g[lib.up]={selectors:{":after":{right:-14}}},_g)}],title:[globalClassnames.title,lib.S8,{backgroundColor:semanticColors.inputBackground,borderWidth:1,borderStyle:"solid",borderColor:semanticColors.inputBorder,borderRadius:isOpen?titleOpenBorderRadius:effects.roundedCorner2,cursor:"pointer",display:"block",height:32,lineHeight:30,padding:"0 28px 0 8px",position:"relative",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},isRenderingPlaceholder&&[globalClassnames.titleIsPlaceHolder,{color:semanticColors.inputPlaceholderText}],hasError&&[globalClassnames.titleHasError,borderColorError],disabled&&{backgroundColor:semanticColors.disabledBackground,border:"none",color:semanticColors.disabledText,cursor:"default",selectors:(_h={},_h[lib.up]=(0,tslib_es6.Cl)({border:"1px solid GrayText",color:"GrayText",backgroundColor:"Window"},(0,lib.Qg)()),_h)}],caretDownWrapper:[globalClassnames.caretDownWrapper,{height:32,lineHeight:30,paddingTop:1,position:"absolute",right:8,top:0},!disabled&&{cursor:"pointer"}],caretDown:[globalClassnames.caretDown,{color:palette.neutralSecondary,fontSize:fonts.small.fontSize,pointerEvents:"none"},disabled&&{color:semanticColors.disabledText,selectors:(_j={},_j[lib.up]=(0,tslib_es6.Cl)({color:"GrayText"},(0,lib.Qg)()),_j)}],errorMessage:(0,tslib_es6.Cl)((0,tslib_es6.Cl)({color:semanticColors.errorText},theme.fonts.small),{paddingTop:5}),callout:[globalClassnames.callout,{boxShadow:effects.elevation8,borderRadius:calloutOpenBorderRadius,selectors:(_k={},_k[".ms-Callout-main"]={borderRadius:calloutOpenBorderRadius},_k)},calloutClassName],dropdownItemsWrapper:{selectors:{"&:focus":{outline:0}}},dropdownItems:[globalClassnames.dropdownItems,{display:"block"}],dropdownItem:(0,tslib_es6.fX)((0,tslib_es6.fX)([],dropdownItemStyle,!0),[itemSelectors()],!1),dropdownItemSelected,dropdownItemDisabled,dropdownItemSelectedAndDisabled:[dropdownItemSelected,dropdownItemDisabled,{backgroundColor:"transparent"}],dropdownItemHidden:(0,tslib_es6.fX)((0,tslib_es6.fX)([],dropdownItemStyle,!0),[{display:"none"}],!1),dropdownDivider:[globalClassnames.dropdownDivider,{height:1,backgroundColor:semanticColors.bodyDivider}],dropdownDividerHidden:[globalClassnames.dropdownDivider,{display:"none"}],dropdownOptionText:[globalClassnames.dropdownOptionText,{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minWidth:0,maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",margin:"1px"}],dropdownItemHeader:dropdownHeaderStyle,dropdownItemHeaderHidden:(0,tslib_es6.fX)((0,tslib_es6.fX)([],dropdownHeaderStyle,!0),[{display:"none"}],!1),subComponentStyles:{label:{root:{display:"inline-block"}},multiSelectItem:{root:{padding:0},label:{alignSelf:"stretch",padding:"0 8px",width:"100%"},input:{selectors:(_l={},_l[".".concat(setFocusVisibility.Y2," &:focus + label::before, :host(.").concat(setFocusVisibility.Y2,") &:focus + label::before")]={outlineOffset:"0px"},_l)}},panel:{root:[panelClassName],main:{selectors:(_m={},_m[MinimumScreenSelector]={width:272},_m)},contentInner:{padding:"0 0 20px"}}}}}),void 0,{scope:"Dropdown"});Dropdown.displayName="Dropdown"},"./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/utilities/selectableOption/SelectableOption.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{function getAllSelectedOptions(options,selectedIndices){for(var selectedOptions=[],_i=0,selectedIndices_1=selectedIndices;_i<selectedIndices_1.length;_i++){var option=options[selectedIndices_1[_i]];option&&selectedOptions.push(option)}return selectedOptions}__webpack_require__.d(__webpack_exports__,{D:()=>getAllSelectedOptions})},"./node_modules/@fluentui/react/lib/utilities/selectableOption/SelectableOption.types.js":(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{var SelectableOptionMenuItemType;__webpack_require__.d(__webpack_exports__,{W:()=>SelectableOptionMenuItemType}),function(SelectableOptionMenuItemType){SelectableOptionMenuItemType[SelectableOptionMenuItemType.Normal=0]="Normal",SelectableOptionMenuItemType[SelectableOptionMenuItemType.Divider=1]="Divider",SelectableOptionMenuItemType[SelectableOptionMenuItemType.Header=2]="Header",SelectableOptionMenuItemType[SelectableOptionMenuItemType.SelectAll=3]="SelectAll"}(SelectableOptionMenuItemType||(SelectableOptionMenuItemType={}))}}]);