UNPKG

k-form-design

Version:

基于vue、ant-design-vue的表单设计器,可视化开发表单

1 lines 97.6 kB
(("undefined"!==typeof self?self:this)["webpackJsonpk_form_design"]=("undefined"!==typeof self?self:this)["webpackJsonpk_form_design"]||[]).push([[6],{"133a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.svgBaseProps=void 0,t.getThemeFromTypeName=u,t.removeTypeTheme=d,t.withThemeSuffix=f,t.alias=c;var o=n("a7e2"),i=r(o);function r(e){return e&&e.__esModule?e:{default:e}}t.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var a=/-fill$/,l=/-o$/,s=/-twotone$/;function u(e){var t=null;return a.test(e)?t="filled":l.test(e)?t="outlined":s.test(e)&&(t="twoTone"),t}function d(e){return e.replace(a,"").replace(l,"").replace(s,"")}function f(e,t){var n=e;return"filled"===t?n+="-fill":"outlined"===t?n+="-o":"twoTone"===t?n+="-twotone":(0,i["default"])(!1,"Icon","This icon '"+e+"' has unknown theme '"+t+"'"),n}function c(e){var t=e;switch(e){case"cross":t="close";break;case"interation":t="interaction";break;case"canlendar":t="calendar";break;case"colum-height":t="column-height";break;default:}return(0,i["default"])(t===e,"Icon","Icon '"+e+"' was a typo and is now deprecated, please use '"+t+"' instead."),t}},"148f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SelectPropTypes=t.OptGroup=t.Option=t.Select=void 0;var o=n("2649"),i=d(o),r=n("b063"),a=d(r),l=n("87fc"),s=n("4913"),u=d(s);function d(e){return e&&e.__esModule?e:{default:e}}o.Select.Option=a["default"],o.Select.OptGroup=u["default"],i["default"].Option=a["default"],i["default"].OptGroup=u["default"],t.Select=o.Select,t.Option=a["default"],t.OptGroup=u["default"],t.SelectPropTypes=l.SelectPropTypes,t["default"]=i["default"]},"23f0":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("aef2");t["default"]={name:"StoreProvider",props:{store:o.storeShape.isRequired},provide:function(){return{storeContext:this.$props}},render:function(){return this.$slots["default"][0]}}},"24ba":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("6042"),i=S(o),r=n("41b2"),a=S(r),l=n("4d26"),s=S(l),u=n("c449"),d=S(u),f=n("2f52"),c=S(f),p=n("7b44"),h=S(p),v=n("6945"),m=S(v),b=n("d938"),g=n("48bb"),y=S(g),_=n("73c8");function S(e){return e&&e.__esModule?e:{default:e}}var O={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:0,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};t["default"]={name:"SelectTrigger",mixins:[y["default"]],props:{dropdownMatchSelectWidth:h["default"].bool,defaultActiveFirstOption:h["default"].bool,dropdownAlign:h["default"].object,visible:h["default"].bool,disabled:h["default"].bool,showSearch:h["default"].bool,dropdownClassName:h["default"].string,dropdownStyle:h["default"].object,dropdownMenuStyle:h["default"].object,multiple:h["default"].bool,inputValue:h["default"].string,filterOption:h["default"].any,empty:h["default"].bool,options:h["default"].any,prefixCls:h["default"].string,popupClassName:h["default"].string,value:h["default"].array,showAction:h["default"].arrayOf(h["default"].string),combobox:h["default"].bool,animation:h["default"].string,transitionName:h["default"].string,getPopupContainer:h["default"].func,backfillValue:h["default"].any,menuItemSelectedIcon:h["default"].any,dropdownRender:h["default"].func,ariaId:h["default"].string},data:function(){return{dropdownWidth:0}},created:function(){this.rafInstance=null,this.saveDropdownMenuRef=(0,b.saveRef)(this,"dropdownMenuRef"),this.saveTriggerRef=(0,b.saveRef)(this,"triggerRef")},mounted:function(){var e=this;this.$nextTick((function(){e.setDropdownWidth()}))},updated:function(){var e=this;this.$nextTick((function(){e.setDropdownWidth()}))},beforeDestroy:function(){this.cancelRafInstance()},methods:{setDropdownWidth:function(){var e=this;this.cancelRafInstance(),this.rafInstance=(0,d["default"])((function(){var t=e.$el.offsetWidth;t!==e.dropdownWidth&&e.setState({dropdownWidth:t})}))},cancelRafInstance:function(){this.rafInstance&&d["default"].cancel(this.rafInstance)},getInnerMenu:function(){return this.dropdownMenuRef&&this.dropdownMenuRef.$refs.menuRef},getPopupDOMNode:function(){return this.triggerRef.getPopupDomNode()},getDropdownElement:function(e){var t=this.$createElement,n=this.value,o=this.firstActiveValue,i=this.defaultActiveFirstOption,r=this.dropdownMenuStyle,l=this.getDropdownPrefixCls,s=this.backfillValue,u=this.menuItemSelectedIcon,d=(0,_.getListeners)(this),f=d.menuSelect,c=d.menuDeselect,p=d.popupScroll,h=this.$props,v=h.dropdownRender,b=h.ariaId,g={props:(0,a["default"])({},e.props,{ariaId:b,prefixCls:l(),value:n,firstActiveValue:o,defaultActiveFirstOption:i,dropdownMenuStyle:r,backfillValue:s,menuItemSelectedIcon:u}),on:(0,a["default"])({},e.on,{menuSelect:f,menuDeselect:c,popupScroll:p}),directives:[{name:"ant-ref",value:this.saveDropdownMenuRef}]},y=t(m["default"],g);return v?v(y,h):null},getDropdownTransitionName:function(){var e=this.$props,t=e.transitionName;return!t&&e.animation&&(t=this.getDropdownPrefixCls()+"-"+e.animation),t},getDropdownPrefixCls:function(){return this.prefixCls+"-dropdown"}},render:function(){var e,t=arguments[0],n=this.$props,o=this.$slots,r=n.multiple,l=n.visible,u=n.inputValue,d=n.dropdownAlign,f=n.disabled,p=n.showSearch,h=n.dropdownClassName,v=n.dropdownStyle,m=n.dropdownMatchSelectWidth,g=n.options,y=n.getPopupContainer,S=n.showAction,C=n.empty,I=(0,_.getListeners)(this),M=I.mouseenter,T=I.mouseleave,E=I.popupFocus,P=I.dropdownVisibleChange,w=this.getDropdownPrefixCls(),x=(e={},(0,i["default"])(e,h,!!h),(0,i["default"])(e,w+"--"+(r?"multiple":"single"),1),(0,i["default"])(e,w+"--empty",C),e),A=this.getDropdownElement({props:{menuItems:g,multiple:r,inputValue:u,visible:l},on:{popupFocus:E}}),$=void 0;$=f?[]:(0,b.isSingleMode)(n)&&!p?["click"]:["blur"];var N=(0,a["default"])({},v),R=m?"width":"minWidth";this.dropdownWidth&&(N[R]=this.dropdownWidth+"px");var k={props:(0,a["default"])({},n,{showAction:f?[]:S,hideAction:$,ref:"triggerRef",popupPlacement:"bottomLeft",builtinPlacements:O,prefixCls:w,popupTransitionName:this.getDropdownTransitionName(),popupAlign:d,popupVisible:l,getPopupContainer:y,popupClassName:(0,s["default"])(x),popupStyle:N}),on:{popupVisibleChange:P},directives:[{name:"ant-ref",value:this.saveTriggerRef}]};return M&&(k.on.mouseenter=M),T&&(k.on.mouseleave=T),t(c["default"],k,[o["default"],t("template",{slot:"popup"},[A])])}}},2649:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Select=void 0;var o=n("92fa"),i=j(o),r=n("6042"),a=j(r),l=n("41b2"),s=j(l),u=n("af09"),d=j(u),f=n("7b44"),c=j(f),p=n("4d26"),h=j(p),v=n("3c55"),m=j(v),b=n("432f"),g=n("d96e"),y=j(g),_=n("8bbf"),S=j(_),O=n("b063"),C=j(O),I=n("4913"),M=j(I),T=n("73c8"),E=n("5c25"),P=j(E),w=n("d2f9"),x=n("48bb"),A=j(x),$=n("5c06"),N=j($),R=n("46cf"),k=j(R),V=n("24ba"),K=j(V),F=n("d938"),D=n("87fc"),L=n("af8e"),B=j(L),U=n("a9eb");function j(e){return e&&e.__esModule?e:{default:e}}S["default"].use(k["default"],{name:"ant-ref"});var W="RC_SELECT_EMPTY_VALUE_KEY",G=function(){return null};function z(e){return!e||null===e.offsetParent}function H(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){for(var e=arguments.length,n=Array(e),o=0;o<e;o++)n[o]=arguments[o];for(var i=0;i<t.length;i++)t[i]&&"function"===typeof t[i]&&t[i].apply(H,n)}}var Y={inheritAttrs:!1,Option:C["default"],OptGroup:M["default"],name:"Select",mixins:[A["default"]],props:(0,s["default"])({},D.SelectPropTypes,{prefixCls:D.SelectPropTypes.prefixCls.def("rc-select"),defaultOpen:c["default"].bool.def(!1),labelInValue:D.SelectPropTypes.labelInValue.def(!1),defaultActiveFirstOption:D.SelectPropTypes.defaultActiveFirstOption.def(!0),showSearch:D.SelectPropTypes.showSearch.def(!0),allowClear:D.SelectPropTypes.allowClear.def(!1),placeholder:D.SelectPropTypes.placeholder.def(""),dropdownMatchSelectWidth:c["default"].bool.def(!0),dropdownStyle:D.SelectPropTypes.dropdownStyle.def((function(){return{}})),dropdownMenuStyle:c["default"].object.def((function(){return{}})),optionFilterProp:D.SelectPropTypes.optionFilterProp.def("value"),optionLabelProp:D.SelectPropTypes.optionLabelProp.def("value"),notFoundContent:c["default"].any.def("Not Found"),backfill:c["default"].bool.def(!1),showAction:D.SelectPropTypes.showAction.def(["click"]),combobox:c["default"].bool.def(!1),tokenSeparators:c["default"].arrayOf(c["default"].string).def([]),autoClearSearchValue:c["default"].bool.def(!0),tabIndex:c["default"].any.def(0),dropdownRender:c["default"].func.def((function(e){return e}))}),model:{prop:"value",event:"change"},created:function(){this.saveInputRef=(0,F.saveRef)(this,"inputRef"),this.saveInputMirrorRef=(0,F.saveRef)(this,"inputMirrorRef"),this.saveTopCtrlRef=(0,F.saveRef)(this,"topCtrlRef"),this.saveSelectTriggerRef=(0,F.saveRef)(this,"selectTriggerRef"),this.saveRootRef=(0,F.saveRef)(this,"rootRef"),this.saveSelectionRef=(0,F.saveRef)(this,"selectionRef"),this._focused=!1,this._mouseDown=!1,this._options=[],this._empty=!1},data:function(){var e=(0,T.getOptionProps)(this),t=this.getOptionsInfoFromProps(e);if((0,y["default"])(this.__propsSymbol__,"Replace slots.default with props.children and pass props.__propsSymbol__"),e.tags&&"function"!==typeof e.filterOption){var n=Object.keys(t).some((function(e){return t[e].disabled}));(0,y["default"])(!n,"Please avoid setting option to disabled in tags mode since user can always type text as tag.")}var o={_value:this.getValueFromProps(e,!0),_inputValue:e.combobox?this.getInputValueForCombobox(e,t,!0):"",_open:e.defaultOpen,_optionsInfo:t,_backfillValue:"",_skipBuildOptionsInfo:!0,_ariaId:(0,F.generateUUID)()};return(0,s["default"])({},o,{_mirrorInputValue:o._inputValue},this.getDerivedState(e,o))},mounted:function(){var e=this;this.$nextTick((function(){(e.autoFocus||e._open)&&e.focus()}))},watch:{__propsSymbol__:function(){(0,s["default"])(this.$data,this.getDerivedState((0,T.getOptionProps)(this),this.$data))},"$data._inputValue":function(e){this.$data._mirrorInputValue=e}},updated:function(){var e=this;this.$nextTick((function(){if((0,F.isMultipleOrTags)(e.$props)){var t=e.getInputDOMNode(),n=e.getInputMirrorDOMNode();t&&t.value&&n?(t.style.width="",t.style.width=n.clientWidth+10+"px"):t&&(t.style.width="")}e.forcePopupAlign()}))},beforeDestroy:function(){this.clearFocusTime(),this.clearBlurTime(),this.clearComboboxTime(),this.dropdownContainer&&(document.body.removeChild(this.dropdownContainer),this.dropdownContainer=null)},methods:{getDerivedState:function(e,t){var n=t._skipBuildOptionsInfo?t._optionsInfo:this.getOptionsInfoFromProps(e,t),o={_optionsInfo:n,_skipBuildOptionsInfo:!1};if("open"in e&&(o._open=e.open),"value"in e){var i=this.getValueFromProps(e);o._value=i,e.combobox&&(o._inputValue=this.getInputValueForCombobox(e,n))}return o},getOptionsFromChildren:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach((function(t){t.data&&void 0===t.data.slot&&((0,T.getSlotOptions)(t).isSelectOptGroup?e.getOptionsFromChildren(t.componentOptions.children,n):n.push(t))})),n},getInputValueForCombobox:function(e,t,n){var o=[];if("value"in e&&!n&&(o=(0,F.toArray)(e.value)),"defaultValue"in e&&n&&(o=(0,F.toArray)(e.defaultValue)),!o.length)return"";o=o[0];var i=o;return e.labelInValue?i=o.label:t[(0,F.getMapKey)(o)]&&(i=t[(0,F.getMapKey)(o)].label),void 0===i&&(i=""),i},getLabelFromOption:function(e,t){return(0,F.getPropValue)(t,e.optionLabelProp)},getOptionsInfoFromProps:function(e,t){var n=this,o=this.getOptionsFromChildren(this.$props.children),i={};if(o.forEach((function(t){var o=(0,F.getValuePropValue)(t);i[(0,F.getMapKey)(o)]={option:t,value:o,label:n.getLabelFromOption(e,t),title:(0,T.getValueByProp)(t,"title"),disabled:(0,T.getValueByProp)(t,"disabled")}})),t){var r=t._optionsInfo,a=t._value;a&&a.forEach((function(e){var t=(0,F.getMapKey)(e);i[t]||void 0===r[t]||(i[t]=r[t])}))}return i},getValueFromProps:function(e,t){var n=[];return"value"in e&&!t&&(n=(0,F.toArray)(e.value)),"defaultValue"in e&&t&&(n=(0,F.toArray)(e.defaultValue)),e.labelInValue&&(n=n.map((function(e){return e.key}))),n},onInputChange:function(e){var t=e.target,n=t.value,o=t.composing,i=this.$data._inputValue,r=void 0===i?"":i;if(e.isComposing||o||r===n)this.setState({_mirrorInputValue:n});else{var a=this.$props.tokenSeparators;if((0,F.isMultipleOrTags)(this.$props)&&a.length&&(0,F.includesSeparators)(n,a)){var l=this.getValueByInput(n);return void 0!==l&&this.fireChange(l),this.setOpenState(!1,{needFocus:!0}),void this.setInputValue("",!1)}this.setInputValue(n),this.setState({_open:!0}),(0,F.isCombobox)(this.$props)&&this.fireChange([n])}},onDropdownVisibleChange:function(e){e&&!this._focused&&(this.clearBlurTime(),this.timeoutFocus(),this._focused=!0,this.updateFocusClassName()),this.setOpenState(e)},onKeyDown:function(e){var t=this.$data._open,n=this.$props.disabled;if(!n){var o=e.keyCode;t&&!this.getInputDOMNode()?this.onInputKeydown(e):o===d["default"].ENTER||o===d["default"].DOWN?(o!==d["default"].ENTER||(0,F.isMultipleOrTags)(this.$props)?t||this.setOpenState(!0):this.maybeFocus(!0),e.preventDefault()):o===d["default"].SPACE&&(t||(this.setOpenState(!0),e.preventDefault()))}},onInputKeydown:function(e){var t=this,n=this.$props,o=n.disabled,i=n.combobox,r=n.defaultActiveFirstOption;if(!o){var a=this.$data,l=this.getRealOpenState(a),s=e.keyCode;if(!(0,F.isMultipleOrTags)(this.$props)||e.target.value||s!==d["default"].BACKSPACE){if(s===d["default"].DOWN){if(!a._open)return this.openIfHasChildren(),e.preventDefault(),void e.stopPropagation()}else if(s===d["default"].ENTER&&a._open)!l&&i||e.preventDefault(),l&&i&&!1===r&&(this.comboboxTimer=setTimeout((function(){t.setOpenState(!1)})));else if(s===d["default"].ESC)return void(a._open&&(this.setOpenState(!1),e.preventDefault(),e.stopPropagation()));if(l&&this.selectTriggerRef){var u=this.selectTriggerRef.getInnerMenu();u&&u.onKeyDown(e,this.handleBackfill)&&(e.preventDefault(),e.stopPropagation())}}else{e.preventDefault();var f=a._value;f.length&&this.removeSelected(f[f.length-1])}}},onMenuSelect:function(e){var t=e.item;if(t){var n=this.$data._value,o=this.$props,i=(0,F.getValuePropValue)(t),r=n[n.length-1],a=!1;if((0,F.isMultipleOrTags)(o)?-1!==(0,F.findIndexInValueBySingleValue)(n,i)?a=!0:n=n.concat([i]):(0,F.isCombobox)(o)||void 0===r||r!==i||i===this.$data._backfillValue?(n=[i],this.setOpenState(!1,{needFocus:!0,fireSearch:!1})):(this.setOpenState(!1,{needFocus:!0,fireSearch:!1}),a=!0),a||this.fireChange(n),!a){this.fireSelect(i);var l=(0,F.isCombobox)(o)?(0,F.getPropValue)(t,o.optionLabelProp):"";o.autoClearSearchValue&&this.setInputValue(l,!1)}}},onMenuDeselect:function(e){var t=e.item,n=e.domEvent;if("keydown"!==n.type||n.keyCode!==d["default"].ENTER)"click"===n.type&&this.removeSelected((0,F.getValuePropValue)(t)),this.autoClearSearchValue&&this.setInputValue("");else{var o=t.$el;z(o)||this.removeSelected((0,F.getValuePropValue)(t))}},onArrowClick:function(e){e.stopPropagation(),e.preventDefault(),this.clearBlurTime(),this.disabled||this.setOpenState(!this.$data._open,{needFocus:!this.$data._open})},onPlaceholderClick:function(){this.getInputDOMNode()&&this.getInputDOMNode()&&this.getInputDOMNode().focus()},onPopupFocus:function(){this.maybeFocus(!0,!0)},onClearSelection:function(e){var t=this.$props,n=this.$data;if(!t.disabled){var o=n._inputValue,i=n._value;e.stopPropagation(),(o||i.length)&&(i.length&&this.fireChange([]),this.setOpenState(!1,{needFocus:!0}),o&&this.setInputValue(""))}},onChoiceAnimationLeave:function(){this.forcePopupAlign()},getOptionInfoBySingleValue:function(e,t){var n=this.$createElement,o=void 0;if(t=t||this.$data._optionsInfo,t[(0,F.getMapKey)(e)]&&(o=t[(0,F.getMapKey)(e)]),o)return o;var i=e;if(this.$props.labelInValue){var r=(0,F.getLabelFromPropsValue)(this.$props.value,e),a=(0,F.getLabelFromPropsValue)(this.$props.defaultValue,e);void 0!==r?i=r:void 0!==a&&(i=a)}var l={option:n(C["default"],{attrs:{value:e},key:e},[e]),value:e,label:i};return l},getOptionBySingleValue:function(e){var t=this.getOptionInfoBySingleValue(e),n=t.option;return n},getOptionsBySingleValue:function(e){var t=this;return e.map((function(e){return t.getOptionBySingleValue(e)}))},getValueByLabel:function(e){var t=this;if(void 0===e)return null;var n=null;return Object.keys(this.$data._optionsInfo).forEach((function(o){var i=t.$data._optionsInfo[o],r=i.disabled;if(!r){var a=(0,F.toArray)(i.label);a&&a.join("")===e&&(n=i.value)}})),n},getVLBySingleValue:function(e){return this.$props.labelInValue?{key:e,label:this.getLabelBySingleValue(e)}:e},getVLForOnChange:function(e){var t=this,n=e;return void 0!==n?(n=this.labelInValue?n.map((function(e){return{key:e,label:t.getLabelBySingleValue(e)}})):n.map((function(e){return e})),(0,F.isMultipleOrTags)(this.$props)?n:n[0]):n},getLabelBySingleValue:function(e,t){var n=this.getOptionInfoBySingleValue(e,t),o=n.label;return o},getDropdownContainer:function(){return this.dropdownContainer||(this.dropdownContainer=document.createElement("div"),document.body.appendChild(this.dropdownContainer)),this.dropdownContainer},getPlaceholderElement:function(){var e=this.$createElement,t=this.$props,n=this.$data,o=!1;n._mirrorInputValue&&(o=!0);var i=n._value;i.length&&(o=!0),!n._mirrorInputValue&&(0,F.isCombobox)(t)&&1===i.length&&n._value&&!n._value[0]&&(o=!1);var r=t.placeholder;if(r){var a={on:{mousedown:F.preventDefaultEvent,click:this.onPlaceholderClick},attrs:F.UNSELECTABLE_ATTRIBUTE,style:(0,s["default"])({display:o?"none":"block"},F.UNSELECTABLE_STYLE),class:t.prefixCls+"-selection__placeholder"};return e("div",a,[r])}return null},inputClick:function(e){this.$data._open?(this.clearBlurTime(),e.stopPropagation()):this._focused=!1},inputBlur:function(e){var t=this,n=e.relatedTarget||document.activeElement;if((U.isIE||U.isEdge)&&(e.relatedTarget===this.$refs.arrow||n&&this.selectTriggerRef&&this.selectTriggerRef.getInnerMenu()&&this.selectTriggerRef.getInnerMenu().$el===n||(0,B["default"])(e.target,n)))return e.target.focus(),void e.preventDefault();this.clearBlurTime(),this.disabled?e.preventDefault():this.blurTimer=setTimeout((function(){t._focused=!1,t.updateFocusClassName();var e=t.$props,n=t.$data._value,o=t.$data._inputValue;if((0,F.isSingleMode)(e)&&e.showSearch&&o&&e.defaultActiveFirstOption){var i=t._options||[];if(i.length){var r=(0,F.findFirstMenuItem)(i);r&&(n=[(0,F.getValuePropValue)(r)],t.fireChange(n))}}else if((0,F.isMultipleOrTags)(e)&&o){t._mouseDown?t.setInputValue(""):(t.$data._inputValue="",t.getInputDOMNode&&t.getInputDOMNode()&&(t.getInputDOMNode().value=""));var a=t.getValueByInput(o);void 0!==a&&(n=a,t.fireChange(n))}if((0,F.isMultipleOrTags)(e)&&t._mouseDown)return t.maybeFocus(!0,!0),void(t._mouseDown=!1);t.setOpenState(!1),t.$emit("blur",t.getVLForOnChange(n))}),200)},inputFocus:function(e){if(this.$props.disabled)e.preventDefault();else{this.clearBlurTime();var t=this.getInputDOMNode();t&&e.target===this.rootRef||((0,F.isMultipleOrTagsOrCombobox)(this.$props)||e.target!==t)&&(this._focused||(this._focused=!0,this.updateFocusClassName(),(0,F.isMultipleOrTags)(this.$props)&&this._mouseDown||this.timeoutFocus()))}},_getInputElement:function(){var e=this.$createElement,t=this.$props,n=this.$data,o=n._inputValue,r=n._mirrorInputValue,l=(0,T.getAttrs)(this),u=e("input",{attrs:{id:l.id,autoComplete:"off"}}),d=t.getInputElement?t.getInputElement():u,f=(0,h["default"])((0,T.getClass)(d),(0,a["default"])({},t.prefixCls+"-search__field",!0)),c=(0,T.getEvents)(d);return d.data=d.data||{},e("div",{class:t.prefixCls+"-search__field__wrap",on:{click:this.inputClick}},[(0,w.cloneElement)(d,{props:{disabled:t.disabled,value:o},attrs:(0,s["default"])({},d.data.attrs||{},{disabled:t.disabled,value:o}),domProps:{value:o},class:f,directives:[{name:"ant-ref",value:this.saveInputRef},{name:"ant-input"}],on:{input:this.onInputChange,keydown:H(this.onInputKeydown,c.keydown,(0,T.getListeners)(this).inputKeydown),focus:H(this.inputFocus,c.focus),blur:H(this.inputBlur,c.blur)}}),e("span",(0,i["default"])([{directives:[{name:"ant-ref",value:this.saveInputMirrorRef}]},{class:t.prefixCls+"-search__field__mirror"}]),[r," "])])},getInputDOMNode:function(){return this.topCtrlRef?this.topCtrlRef.querySelector("input,textarea,div[contentEditable]"):this.inputRef},getInputMirrorDOMNode:function(){return this.inputMirrorRef},getPopupDOMNode:function(){if(this.selectTriggerRef)return this.selectTriggerRef.getPopupDOMNode()},getPopupMenuComponent:function(){if(this.selectTriggerRef)return this.selectTriggerRef.getInnerMenu()},setOpenState:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.$props,i=this.$data,r=n.needFocus,a=n.fireSearch;if(i._open!==e){this.__emit("dropdownVisibleChange",e);var l={_open:e,_backfillValue:""};!e&&(0,F.isSingleMode)(o)&&o.showSearch&&this.setInputValue("",a),e||this.maybeFocus(e,!!r),this.setState(l,(function(){e&&t.maybeFocus(e,!!r)}))}else this.maybeFocus(e,!!r)},setInputValue:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e!==this.$data._inputValue&&(this.setState({_inputValue:e},this.forcePopupAlign),t&&this.$emit("search",e))},getValueByInput:function(e){var t=this,n=this.$props,o=n.multiple,i=n.tokenSeparators,r=this.$data._value,a=!1;return(0,F.splitBySeparators)(e,i).forEach((function(e){var n=[e];if(o){var i=t.getValueByLabel(e);i&&-1===(0,F.findIndexInValueBySingleValue)(r,i)&&(r=r.concat(i),a=!0,t.fireSelect(i))}else-1===(0,F.findIndexInValueBySingleValue)(r,e)&&(r=r.concat(n),a=!0,t.fireSelect(e))})),a?r:void 0},getRealOpenState:function(e){var t=this.$props.open;if("boolean"===typeof t)return t;var n=(e||this.$data)._open,o=this._options||[];return!(0,F.isMultipleOrTagsOrCombobox)(this.$props)&&this.$props.showSearch||n&&!o.length&&(n=!1),n},focus:function(){(0,F.isSingleMode)(this.$props)&&this.selectionRef?this.selectionRef.focus():this.getInputDOMNode()&&this.getInputDOMNode().focus()},blur:function(){(0,F.isSingleMode)(this.$props)&&this.selectionRef?this.selectionRef.blur():this.getInputDOMNode()&&this.getInputDOMNode().blur()},markMouseDown:function(){this._mouseDown=!0},markMouseLeave:function(){this._mouseDown=!1},handleBackfill:function(e){if(this.backfill&&((0,F.isSingleMode)(this.$props)||(0,F.isCombobox)(this.$props))){var t=(0,F.getValuePropValue)(e);(0,F.isCombobox)(this.$props)&&this.setInputValue(t,!1),this.setState({_value:[t],_backfillValue:t})}},_filterOption:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:F.defaultFilterFn,o=this.$data,i=o._value,r=o._backfillValue,a=i[i.length-1];if(!e||a&&a===r)return!0;var l=this.$props.filterOption;return(0,T.hasProp)(this,"filterOption")?!0===l&&(l=n.bind(this)):l=n.bind(this),!l||("function"===typeof l?l.call(this,e,t):!(0,T.getValueByProp)(t,"disabled"))},timeoutFocus:function(){var e=this;this.focusTimer&&this.clearFocusTime(),this.focusTimer=window.setTimeout((function(){e.$emit("focus")}),10)},clearFocusTime:function(){this.focusTimer&&(clearTimeout(this.focusTimer),this.focusTimer=null)},clearBlurTime:function(){this.blurTimer&&(clearTimeout(this.blurTimer),this.blurTimer=null)},clearComboboxTime:function(){this.comboboxTimer&&(clearTimeout(this.comboboxTimer),this.comboboxTimer=null)},updateFocusClassName:function(){var e=this.rootRef,t=this.prefixCls;this._focused?(0,m["default"])(e).add(t+"-focused"):(0,m["default"])(e).remove(t+"-focused")},maybeFocus:function(e,t){if(t||e){var n=this.getInputDOMNode(),o=document,i=o.activeElement;n&&(e||(0,F.isMultipleOrTagsOrCombobox)(this.$props))?i!==n&&(n.focus(),this._focused=!0):i!==this.selectionRef&&this.selectionRef&&(this.selectionRef.focus(),this._focused=!0)}},removeSelected:function(e,t){var n=this.$props;if(!n.disabled&&!this.isChildDisabled(e)){t&&t.stopPropagation&&t.stopPropagation();var o=this.$data._value,i=o.filter((function(t){return t!==e})),r=(0,F.isMultipleOrTags)(n);if(r){var a=e;n.labelInValue&&(a={key:e,label:this.getLabelBySingleValue(e)}),this.$emit("deselect",a,this.getOptionBySingleValue(e))}this.fireChange(i)}},openIfHasChildren:function(){var e=this.$props;(e.children&&e.children.length||(0,F.isSingleMode)(e))&&this.setOpenState(!0)},fireSelect:function(e){this.$emit("select",this.getVLBySingleValue(e),this.getOptionBySingleValue(e))},fireChange:function(e){(0,T.hasProp)(this,"value")||this.setState({_value:e},this.forcePopupAlign);var t=this.getVLForOnChange(e),n=this.getOptionsBySingleValue(e);this._valueOptions=n,this.$emit("change",t,(0,F.isMultipleOrTags)(this.$props)?n:n[0])},isChildDisabled:function(e){return(this.$props.children||[]).some((function(t){var n=(0,F.getValuePropValue)(t);return n===e&&(0,T.getValueByProp)(t,"disabled")}))},forcePopupAlign:function(){this.$data._open&&this.selectTriggerRef&&this.selectTriggerRef.triggerRef&&this.selectTriggerRef.triggerRef.forcePopupAlign()},renderFilterOptions:function(){var e=this.$createElement,t=this.$data._inputValue,n=this.$props,o=n.children,r=n.tags,a=n.notFoundContent,l=[],u=[],d=!1,f=this.renderFilterOptionsFromChildren(o,u,l);if(r){var c=this.$data._value;if(c=c.filter((function(e){return-1===u.indexOf(e)&&(!t||String(e).indexOf(String(t))>-1)})),c.sort((function(e,t){return e.length-t.length})),c.forEach((function(t){var n=t,o=(0,s["default"])({},F.UNSELECTABLE_ATTRIBUTE,{role:"option"}),r=e(b.Item,(0,i["default"])([{style:F.UNSELECTABLE_STYLE},{attrs:o},{attrs:{value:n},key:n}]),[n]);f.push(r),l.push(r)})),t&&l.every((function(e){return(0,F.getValuePropValue)(e)!==t}))){var p={attrs:F.UNSELECTABLE_ATTRIBUTE,key:t,props:{value:t,role:"option"},style:F.UNSELECTABLE_STYLE};f.unshift(e(b.Item,p,[t]))}}if(!f.length&&a){d=!0;var h={attrs:F.UNSELECTABLE_ATTRIBUTE,key:"NOT_FOUND",props:{value:"NOT_FOUND",disabled:!0,role:"option"},style:F.UNSELECTABLE_STYLE};f=[e(b.Item,h,[a])]}return{empty:d,options:f}},renderFilterOptionsFromChildren:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=this,n=arguments[1],o=arguments[2],r=this.$createElement,a=[],l=this.$props,u=this.$data._inputValue,d=l.tags;return e.forEach((function(e){if(e.data&&void 0===e.data.slot)if((0,T.getSlotOptions)(e).isSelectOptGroup){var l=(0,T.getComponentFromProp)(e,"label"),f=e.key;f||"string"!==typeof l?!l&&f&&(l=f):f=l;var c=(0,T.getSlots)(e)["default"];if(c="function"===typeof c?c():c,u&&t._filterOption(u,e)){var p=c.map((function(e){var t=(0,F.getValuePropValue)(e)||e.key;return r(b.Item,(0,i["default"])([{key:t,attrs:{value:t}},e.data]),[e.componentOptions.children])}));a.push(r(b.ItemGroup,{key:f,attrs:{title:l},class:(0,T.getClass)(e)},[p]))}else{var h=t.renderFilterOptionsFromChildren(c,n,o);h.length&&a.push(r(b.ItemGroup,(0,i["default"])([{key:f,attrs:{title:l}},e.data]),[h]))}}else{(0,y["default"])((0,T.getSlotOptions)(e).isSelectOption,"the children of `Select` should be `Select.Option` or `Select.OptGroup`, instead of `"+((0,T.getSlotOptions)(e).name||(0,T.getSlotOptions)(e))+"`.");var v=(0,F.getValuePropValue)(e);if((0,F.validateOptionValue)(v,t.$props),t._filterOption(u,e)){var m={attrs:(0,s["default"])({},F.UNSELECTABLE_ATTRIBUTE,(0,T.getAttrs)(e)),key:v,props:(0,s["default"])({value:v},(0,T.getPropsData)(e),{role:"option"}),style:F.UNSELECTABLE_STYLE,on:(0,T.getEvents)(e),class:(0,T.getClass)(e)},g=r(b.Item,m,[e.componentOptions.children]);a.push(g),o.push(g)}d&&n.push(v)}})),a},renderTopControlNode:function(){var e=this,t=this.$createElement,n=this.$props,o=this.$data,r=o._value,a=o._inputValue,l=o._open,u=n.choiceTransitionName,d=n.prefixCls,f=n.maxTagTextLength,c=n.maxTagCount,p=n.maxTagPlaceholder,h=n.showSearch,v=(0,T.getComponentFromProp)(this,"removeIcon"),m=d+"-selection__rendered",b=null;if((0,F.isSingleMode)(n)){var g=null;if(r.length){var y=!1,_=1;h&&l?(y=!a,y&&(_=.4)):y=!0;var S=r[0],O=this.getOptionInfoBySingleValue(S),C=O.label,I=O.title;g=t("div",{key:"value",class:d+"-selection-selected-value",attrs:{title:(0,F.toTitle)(I||C)},style:{display:y?"block":"none",opacity:_}},[C])}b=h?[g,t("div",{class:d+"-search "+d+"-search--inline",key:"input",style:{display:l?"block":"none"}},[this._getInputElement()])]:[g]}else{var M=[],E=r,w=void 0;if(void 0!==c&&r.length>c){E=E.slice(0,c);var x=this.getVLForOnChange(r.slice(c,r.length)),A="+ "+(r.length-c)+" ...";p&&(A="function"===typeof p?p(x):p);var $=(0,s["default"])({},F.UNSELECTABLE_ATTRIBUTE,{role:"presentation",title:(0,F.toTitle)(A)});w=t("li",(0,i["default"])([{style:F.UNSELECTABLE_STYLE},{attrs:$},{on:{mousedown:F.preventDefaultEvent},class:d+"-selection__choice "+d+"-selection__choice__disabled",key:"maxTagPlaceholder"}]),[t("div",{class:d+"-selection__choice__content"},[A])])}if((0,F.isMultipleOrTags)(n)&&(M=E.map((function(n){var o=e.getOptionInfoBySingleValue(n),r=o.label,a=o.title||r;f&&"string"===typeof r&&r.length>f&&(r=r.slice(0,f)+"...");var l=e.isChildDisabled(n),u=l?d+"-selection__choice "+d+"-selection__choice__disabled":d+"-selection__choice",c=(0,s["default"])({},F.UNSELECTABLE_ATTRIBUTE,{role:"presentation",title:(0,F.toTitle)(a)});return t("li",(0,i["default"])([{style:F.UNSELECTABLE_STYLE},{attrs:c},{on:{mousedown:F.preventDefaultEvent},class:u,key:n||W}]),[t("div",{class:d+"-selection__choice__content"},[r]),l?null:t("span",{on:{click:function(t){e.removeSelected(n,t)}},class:d+"-selection__choice__remove"},[v||t("i",{class:d+"-selection__choice__remove-icon"},["×"])])])}))),w&&M.push(w),M.push(t("li",{class:d+"-search "+d+"-search--inline",key:"__input"},[this._getInputElement()])),(0,F.isMultipleOrTags)(n)&&u){var N=(0,P["default"])(u,{tag:"ul",afterLeave:this.onChoiceAnimationLeave});b=t("transition-group",N,[M])}else b=t("ul",[M])}return t("div",(0,i["default"])([{class:m},{directives:[{name:"ant-ref",value:this.saveTopCtrlRef}]},{on:{click:this.topCtrlContainerClick}}]),[this.getPlaceholderElement(),b])},renderArrow:function(e){var t=this.$createElement,n=this.$props,o=n.showArrow,r=void 0===o?!e:o,a=n.loading,l=n.prefixCls,s=(0,T.getComponentFromProp)(this,"inputIcon");if(!r&&!a)return null;var u=t("i",a?{class:l+"-arrow-loading"}:{class:l+"-arrow-icon"});return t("span",(0,i["default"])([{key:"arrow",class:l+"-arrow",style:F.UNSELECTABLE_STYLE},{attrs:F.UNSELECTABLE_ATTRIBUTE},{on:{click:this.onArrowClick},ref:"arrow"}]),[s||u])},topCtrlContainerClick:function(e){this.$data._open&&!(0,F.isSingleMode)(this.$props)&&e.stopPropagation()},renderClear:function(){var e=this.$createElement,t=this.$props,n=t.prefixCls,o=t.allowClear,r=this.$data,a=r._value,l=r._inputValue,s=(0,T.getComponentFromProp)(this,"clearIcon"),u=e("span",(0,i["default"])([{key:"clear",class:n+"-selection__clear",on:{mousedown:F.preventDefaultEvent},style:F.UNSELECTABLE_STYLE},{attrs:F.UNSELECTABLE_ATTRIBUTE},{on:{click:this.onClearSelection}}]),[s||e("i",{class:n+"-selection__clear-icon"},["×"])]);return o?(0,F.isCombobox)(this.$props)?l?u:null:l||a.length?u:null:null},selectionRefClick:function(){if(!this.disabled){var e=this.getInputDOMNode();this._focused&&this.$data._open?(this.setOpenState(!1,!1),e&&e.blur()):(this.clearBlurTime(),this.setOpenState(!0,!0),e&&e.focus())}},selectionRefFocus:function(e){this._focused||this.disabled||(0,F.isMultipleOrTagsOrCombobox)(this.$props)?e.preventDefault():(this._focused=!0,this.updateFocusClassName(),this.$emit("focus"))},selectionRefBlur:function(e){(0,F.isMultipleOrTagsOrCombobox)(this.$props)?e.preventDefault():this.inputBlur(e)}},render:function(){var e,t=arguments[0],n=this.$props,o=(0,F.isMultipleOrTags)(n),r=n.showArrow,l=void 0===r||r,s=this.$data,u=n.disabled,d=n.prefixCls,f=n.loading,c=this.renderTopControlNode(),p=this.$data,v=p._open,m=p._inputValue,b=p._value;if(v){var g=this.renderFilterOptions();this._empty=g.empty,this._options=g.options}var y=this.getRealOpenState(),_=this._empty,S=this._options||[],O=(0,T.getListeners)(this),C=O.mouseenter,I=void 0===C?G:C,M=O.mouseleave,E=void 0===M?G:M,P=O.popupScroll,w=void 0===P?G:P,x={props:{},attrs:{role:"combobox","aria-autocomplete":"list","aria-haspopup":"true","aria-expanded":y,"aria-controls":this.$data._ariaId},on:{},class:d+"-selection "+d+"-selection--"+(o?"multiple":"single"),key:"selection"},A={attrs:{tabIndex:-1}};(0,F.isMultipleOrTagsOrCombobox)(n)||(A.attrs.tabIndex=n.disabled?-1:n.tabIndex);var $=(e={},(0,a["default"])(e,d,!0),(0,a["default"])(e,d+"-open",v),(0,a["default"])(e,d+"-focused",v||!!this._focused),(0,a["default"])(e,d+"-combobox",(0,F.isCombobox)(n)),(0,a["default"])(e,d+"-disabled",u),(0,a["default"])(e,d+"-enabled",!u),(0,a["default"])(e,d+"-allow-clear",!!n.allowClear),(0,a["default"])(e,d+"-no-arrow",!l),(0,a["default"])(e,d+"-loading",!!f),e);return t(K["default"],(0,i["default"])([{attrs:{dropdownAlign:n.dropdownAlign,dropdownClassName:n.dropdownClassName,dropdownMatchSelectWidth:n.dropdownMatchSelectWidth,defaultActiveFirstOption:n.defaultActiveFirstOption,dropdownMenuStyle:n.dropdownMenuStyle,transitionName:n.transitionName,animation:n.animation,prefixCls:n.prefixCls,dropdownStyle:n.dropdownStyle,combobox:n.combobox,showSearch:n.showSearch,options:S,empty:_,multiple:o,disabled:u,visible:y,inputValue:m,value:b,backfillValue:s._backfillValue,firstActiveValue:n.firstActiveValue,getPopupContainer:n.getPopupContainer,showAction:n.showAction,menuItemSelectedIcon:(0,T.getComponentFromProp)(this,"menuItemSelectedIcon")},on:{dropdownVisibleChange:this.onDropdownVisibleChange,menuSelect:this.onMenuSelect,menuDeselect:this.onMenuDeselect,popupScroll:w,popupFocus:this.onPopupFocus,mouseenter:I,mouseleave:E}},{directives:[{name:"ant-ref",value:this.saveSelectTriggerRef}]},{attrs:{dropdownRender:n.dropdownRender,ariaId:this.$data._ariaId}}]),[t("div",(0,i["default"])([{directives:[{name:"ant-ref",value:H(this.saveRootRef,this.saveSelectionRef)}]},{style:(0,T.getStyle)(this),class:(0,h["default"])($),on:{mousedown:this.markMouseDown,mouseup:this.markMouseLeave,mouseout:this.markMouseLeave}},A,{on:{blur:this.selectionRefBlur,focus:this.selectionRefFocus,click:this.selectionRefClick,keydown:(0,F.isMultipleOrTagsOrCombobox)(n)?G:this.onKeyDown}}]),[t("div",x,[c,this.renderClear(),this.renderArrow(!!o)])])])}};t.Select=Y,t["default"]=(0,N["default"])(Y)},"432f":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Divider=t.ItemGroup=t.MenuItemGroup=t.MenuItem=t.itemProps=t.Item=t.SubMenu=void 0;var o=n("94cd"),i=p(o),r=n("695d"),a=p(r),l=n("ced9"),s=p(l),u=n("e98d"),d=p(u),f=n("d937"),c=p(f);function p(e){return e&&e.__esModule?e:{default:e}}t.SubMenu=a["default"],t.Item=s["default"],t.itemProps=l.menuItemProps,t.MenuItem=s["default"],t.MenuItemGroup=d["default"],t.ItemGroup=d["default"],t.Divider=c["default"],t["default"]=i["default"]},4913:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("7b44"),i=r(o);function r(e){return e&&e.__esModule?e:{default:e}}t["default"]={props:{value:i["default"].oneOfType([i["default"].string,i["default"].number]),label:i["default"].oneOfType([i["default"].string,i["default"].number])},isSelectOptGroup:!0}},"50f6":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("92fa"),i=A(o),r=n("41b2"),a=A(r),l=n("6042"),s=A(l),u=n("9b57"),d=A(u),f=n("4d26"),c=A(f),p=n("3a9b"),h=x(p),v=n("8520"),m=A(v),b=n("7b44"),g=A(b),y=n("bbf5"),_=A(y),S=n("133a"),O=n("a7e2"),C=A(O),I=n("3f5f"),M=A(I),T=n("f3dc"),E=n("73c8"),P=n("baff"),w=A(P);function x(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t}function A(e){return e&&e.__esModule?e:{default:e}}m["default"].add.apply(m["default"],(0,d["default"])(Object.keys(h).filter((function(e){return"default"!==e})).map((function(e){return h[e]})))),(0,T.setTwoToneColor)("#1890ff");var $="outlined",N=void 0;function R(e,t,n){var o,r=n.$props,l=n.$slots,u=(0,E.getListeners)(n),d=r.type,f=r.component,p=r.viewBox,h=r.spin,v=r.theme,b=r.twoToneColor,g=r.rotate,y=r.tabIndex,_=(0,E.filterEmpty)(l["default"]);_=0===_.length?void 0:_,(0,C["default"])(Boolean(d||f||_),"Icon","Icon should have `type` prop or `component` prop or `children`.");var O=(0,c["default"])((o={},(0,s["default"])(o,"anticon",!0),(0,s["default"])(o,"anticon-"+d,!!d),o)),I=(0,c["default"])((0,s["default"])({},"anticon-spin",!!h||"loading"===d)),M=g?{msTransform:"rotate("+g+"deg)",transform:"rotate("+g+"deg)"}:void 0,T={attrs:(0,a["default"])({},S.svgBaseProps,{viewBox:p}),class:I,style:M};p||delete T.attrs.viewBox;var P=function(){if(f)return e(f,T,[_]);if(_){(0,C["default"])(Boolean(p)||1===_.length&&"use"===_[0].tag,"Icon","Make sure that you provide correct `viewBox` prop (default `0 0 1024 1024`) to the icon.");var t={attrs:(0,a["default"])({},S.svgBaseProps),class:I,style:M};return e("svg",(0,i["default"])([t,{attrs:{viewBox:p}}]),[_])}if("string"===typeof d){var n=d;if(v){var o=(0,S.getThemeFromTypeName)(d);(0,C["default"])(!o||v===o,"Icon","The icon name '"+d+"' already specify a theme '"+o+"', the 'theme' prop '"+v+"' will be ignored.")}return n=(0,S.withThemeSuffix)((0,S.removeTypeTheme)((0,S.alias)(n)),N||v||$),e(m["default"],{attrs:{focusable:"false",type:n,primaryColor:b},class:I,style:M})}},w=y;void 0===w&&"click"in u&&(w=-1);var x={attrs:{"aria-label":d&&t.icon+": "+d,tabIndex:w},on:u,class:O,staticClass:""};return e("i",x,[P()])}var k={name:"AIcon",props:{tabIndex:g["default"].number,type:g["default"].string,component:g["default"].any,viewBox:g["default"].any,spin:g["default"].bool.def(!1),rotate:g["default"].number,theme:g["default"].oneOf(["filled","outlined","twoTone"]),twoToneColor:g["default"].string,role:g["default"].string},render:function(e){var t=this;return e(M["default"],{attrs:{componentName:"Icon"},scopedSlots:{default:function(n){return R(e,n,t)}}})}};k.createFromIconfontCN=_["default"],k.getTwoToneColor=T.getTwoToneColor,k.setTwoToneColor=T.setTwoToneColor,k.install=function(e){e.use(w["default"]),e.component(k.name,k)},t["default"]=k},"5c06":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("92fa"),i=d(o),r=n("41b2"),a=d(r);t["default"]=c;var l=n("7b44"),s=d(l),u=n("73c8");function d(e){return e&&e.__esModule?e:{default:e}}function f(e){return e.name||"Component"}function c(e){var t=e.props||{},n=e.methods||{},o={};Object.keys(t).forEach((function(e){o[e]=(0,a["default"])({},t[e],{required:!1})})),e.props.__propsSymbol__=s["default"].any,e.props.children=s["default"].array.def([]);var r={props:o,model:e.model,name:"Proxy_"+f(e),methods:{getProxyWrappedInstance:function(){return this.$refs.wrappedInstance}},render:function(){var t=arguments[0],n=this.$slots,o=void 0===n?{}:n,r=this.$scopedSlots,l=(0,u.getOptionProps)(this),s={props:(0,a["default"])({},l,{__propsSymbol__:Symbol(),componentWillReceiveProps:(0,a["default"])({},l),children:o["default"]||l.children||[]}),on:(0,u.getListeners)(this)};Object.keys(r).length&&(s.scopedSlots=r);var d=Object.keys(o);return t(e,(0,i["default"])([s,{ref:"wrappedInstance"}]),[d.length?d.map((function(e){return t("template",{slot:e},[o[e]])})):null])}};return Object.keys(n).map((function(e){r.methods[e]=function(){var t;return(t=this.getProxyWrappedInstance())[e].apply(t,arguments)}})),r}},"5c25":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("401b"),i=r(o);function r(e){return e&&e.__esModule?e:{default:e}}var a=function(){},l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.beforeEnter,o=t.enter,r=t.afterEnter,l=t.leave,s=t.afterLeave,u=t.appear,d=void 0===u||u,f=t.tag,c=t.nativeOn,p={props:{appear:d,css:!1},on:{beforeEnter:n||a,enter:o||function(t,n){(0,i["default"])(t,e+"-enter",n)},afterEnter:r||a,leave:l||function(t,n){(0,i["default"])(t,e+"-leave",n)},afterLeave:s||a},nativeOn:c};return f&&(p.tag=f),p};t["default"]=l},6945:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("41b2"),i=g(o),r=n("c449"),a=g(r),l=n("7b44"),s=g(l),u=n("432f"),d=g(u),f=n("ec44"),c=g(f),p=n("d938"),h=n("d2f9"),v=n("48bb"),m=g(v),b=n("73c8");function g(e){return e&&e.__esModule?e:{default:e}}t["default"]={name:"DropdownMenu",mixins:[m["default"]],props:{ariaId:s["default"].string,defaultActiveFirstOption:s["default"].bool,value:s["default"].any,dropdownMenuStyle:s["default"].object,multiple:s["default"].bool,prefixCls:s["default"].string,menuItems:s["default"].any,inputValue:s["default"].string,visible:s["default"].bool,backfillValue:s["default"].any,firstActiveValue:s["default"].string,menuItemSelectedIcon:s["default"].any},watch:{visible:function(e){var t=this;e?this.$nextTick((function(){t.scrollActiveItemToView()})):this.lastVisible=e}},created:function(){this.rafInstance=null,this.lastInputValue=this.$props.inputValue,this.lastVisible=!1},mounted:function(){var e=this;this.$nextTick((function(){e.scrollActiveItemToView()})),this.lastVisible=this.$props.visible},updated:function(){var e=this.$props;this.lastVisible=e.visible,this.lastInputValue=e.inputValue,this.prevVisible=this.visible},beforeDestroy:function(){this.rafInstance&&a["default"].cancel(this.rafInstance)},methods:{scrollActiveItemToView:function(){var e=this,t=this.firstActiveItem&&this.firstActiveItem.$el,n=this.$props,o=n.value,i=n.visible,r=n.firstActiveValue;if(t&&i){var l={onlyScrollIfNeeded:!0};o&&0!==o.length||!r||(l.alignWithTop=!0),this.rafInstance=(0,a["default"])((function(){(0,c["default"])(t,e.$refs.menuRef.$el,l)}))}},renderMenu:function(){var e=this,t=this.$createElement,n=this.$props,o=n.menuItems,r=n.defaultActiveFirstOption,a=n.value,l=n.prefixCls,s=n.multiple,u=n.inputValue,f=n.firstActiveValue,c=n.dropdownMenuStyle,v=n.backfillValue,m=n.visible,g=(0,b.getComponentFromProp)(this,"menuItemSelectedIcon"),y=(0,b.getListeners)(this),_=y.menuDeselect,S=y.menuSelect,O=y.popupScroll;if(o&&o.length){var C=(0,p.getSelectKeys)(o,a),I={props:{multiple:s,itemIcon:s?g:null,selectedKeys:C,prefixCls:l+"-menu"},on:{},style:c,ref:"menuRef",attrs:{role:"listbox"}};O&&(I.on.scroll=O),s?(I.on.deselect=_,I.on.select=S):I.on.click=S;var M={},T=r,E=o;if(C.length||f){n.visible&&!this.lastVisible?M.activeKey=C[0]||f:m||(C[0]&&(T=!1),M.activeKey=void 0);var P=!1,w=function(t){return!P&&-1!==C.indexOf(t.key)||!P&&!C.length&&-1!==f.indexOf(t.key)?(P=!0,(0,h.cloneElement)(t,{directives:[{name:"ant-ref",value:function(t){e.firstActiveItem=t}}]})):t};E=o.map((function(e){if((0,b.getSlotOptions)(e).isMenuItemGroup){var t=e.componentOptions.children.map(w);return(0,h.cloneElement)(e,{children:t})}return w(e)}))}else this.firstActiveItem=null;var x=a&&a[a.length-1];return u===this.lastInputValue||x&&x===v||(M.activeKey=""),I.props=(0,i["default"])({},M,I.props,{defaultActiveFirst:T}),t(d["default"],I,[E])}return null}},render:function(){var e=arguments[0],t=this.renderMenu(),n=(0,b.getListeners)(this),o=n.popupFocus,i=n.popupScroll;return t?e("div",{style:{overflow:"auto",transform:"translateZ(0)"},attrs:{id:this.$props.ariaId,tabIndex:"-1"},on:{focus:o,mousedown:p.preventDefaultEvent,scroll:i},ref:"menuContainer"},[t]):null}}},"695d":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n("92fa"),i=A(o),r=n("1098"),a=A(r),l=n("6042"),s=A(l),u=n("41b2"),d=A(u),f=n("0464"),c=A(f),p=n("7b44"),h=A(p),v=n("2f52"),m=A(v),b=n("af09"),g=A(b),y=n("e8a7"),_=n("b733"),S=A(_),O=n("ebf1"),C=A(O),I=n("48bb"),M=A(I),T=n("73c8"),E=n("31f2"),P=n("7c18"),w=n("5c25"),x=A(w);function A(e){return e&&e.__esModule?e:{default:e}}var $=0,N={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},R=function(e,t,n){var o=(0,P.getMenuIdFromSubMenuEventKey)(t),i=e.getState();e.setState({defaultActiveFirst:(0,d["default"])({},i.defaultActiveFirst,(0,s["default"])({},o,n))})},k={name:"SubMenu",props:{parentMenu:h["default"].object,title:h["default"].any,selectedKeys:h["default"].array.def([]),openKeys:h["default"].array.def([]),openChange:h["default"].func.def(P.noop),rootPrefixCls:h["default"].string,eventKey:h["default"].oneOfType([h["default"].string,h["default"].number]),multiple:h["default"].bool,active:h["default"].bool,isRootMenu:h["default"].bool.def(!1),index:h["default"].number,triggerSubMenuAction:h["default"].string,popupClassName:h["default"].string,getPopupContainer:h["default"].func,forceSubMenuRender:h["default"].bool,openAnimation:h["default"].oneOfType([h["default"].string,h["default"].object]),disabled:h["default"].bool,subMenuOpenDelay:h["default"].number.def(.1),subMenuCloseDelay:h["default"].number.def(.1),level:h["default"].number.def(1),inlineIndent:h["default"].number.def(24),openTransitionName:h["default"].string,popupOffset:h["default"].array,isOpen:h["default"].bool,store:h["default"].object,mode:h["default"].oneOf(["horizontal","vertical","vertical-left","vertical-right","inline"]).def("vertical"),manualRef:h["default"].func.def(P.noop),builtinPlacements:h["default"].object.def((function(){return{}})),itemIcon:h["default"].any,expandIcon:h["default"].any,subMenuKey:h["default"].string},mixins:[M["default"]],isSubMenu:!0,data:function(){var e=this.$props,t=e.store,n=e.eventKey,o=t.getState().defaultActiveFirst,i=!1;return o&&(i=o[n]),R(t,n,i),{}},mounted:function(){var e=this;this.$nextTick((function(){e.handleUpdated()}))},updated:function(){var e=this;this.$nextTick((function(){e.handleUpdated()}))},beforeDestroy:function(){var e=this.eventKey;this.__emit("destroy",e),this.minWidthTimeout&&((0,E.cancelAnimationTimeout)(this.minWidthTimeout),this.minWidthTimeout=null),this.mouseenterTimeout&&((0,E.cancelAnimationTimeout)(this.mouseenterTimeout),this.mouseenterTimeout=null)},methods:{handleUpdated:function(){var e=this,t=this.$props,n=t.mode,o=t.parentMenu,i=t.manualRef;i&&i(this),"horizontal"===n&&o.isRootMenu&&this.isOpen&&(this.minWidthTimeout=(0,E.requestAnimationTimeout)((function(){return e.adjustWidth()}),0))},onKeyDown:function(e){var t=e.keyCode,n=this.menuInstance,o=this.$props,i=o.store,r=o.isOpen;if(t===g["default"].ENTER)return this.onTitleClick(e),R(i,this.eventKey,!0),!0;if(t===g["default"].RIGHT)return r?n.onKeyDown(e):(this.triggerOpenChange(!0),R(i,this.eventKey,!0)),!0;if(t===g["default"].LEFT){var a=void 0;if(!r)return;return a=n.onKeyDown(e),a||(this.triggerOpenChange(!1),a=!0),a}return!r||t!==g["default"].UP&&t!==g["default"].DOWN?void 0:n.onKeyDown(e)},onPopupVisibleChange:function(e){this.triggerOpenChange(e,e?"mouseenter":"mouseleave")},onMouseEnter:function(e){var t=this.$props,n=t.eventKey,o=t.store;R(o,n,!1),this.__emit("mouseenter",{key:n,domEvent:e})},onMouseLeave:function(e){var t=this.eventKey,n=this.parentMenu;n.subMenuInstance=this,this.__emit("mouseleave",{key:t,domEvent:e})},onTitleMouseEnter:function(e){var t=this.$props.eventKey;this.__emit("itemHover",{key:t,hover:!0}),this.__emit("titleMouseenter",{key:t,domEvent:e})},onTitleMouseLeave:function(e){var t=this.eventKey,n=this.parentMenu;n.subMenuInstance=this,this.__emit("itemHover",{key:t,hover:!1}),this.__emit("titleMouseleave",{key:t,domEvent:e})},onTitleClick:function(e){var t=this.$props,n=t.triggerSubMenuAction,o=t.eventKey,i=t.isOpen,r=t.store;this.__emit("titleClick",{key:o,domEvent:e}),"hover"!==n&&(this.triggerOpenChange(!i,"click"),R(r,o,!1))},onSubMenuClick:function(e){this.__emit("click",this.addKeyPath(e))},getPrefixCls:function(){return this.$props.rootPrefixCls+"-submenu"},getActiveClassName:function(){return this.getPrefixCls()+"-active"},getDisabledClassName:function(){return this.getPrefixCls()+"-disabled"},getSelectedClassName:function(){return this.getPrefixCls()+"-selected"},getOpenClassName:function(){return this.$props.rootPrefixCls+"-submenu-open"},saveMenuInstance:function(e){this.menuInstance=e},addKeyPath:function(e){return(0,d["default"])({},e,{keyPath:(e.keyPath||[]).concat(this.$props.eventKey)})},triggerOpenChange:function(e,t){var n=this,o=this.$props.eventKey,i=function(){n.__emit("openChange",{key:o,item:n,trigger:t,open:e})};"mouseenter"===t?this.mouseenterTimeout=(0,E.requestAnimationTimeout)((function(){i()}),0):i()},isChildrenSelected:function(){var e={find:!1};return(0,P.loopMenuItemRecursively)(this.$slots["default"],this.$props.selectedKeys,e),e.find},adjustWidth:function(){if(this.$refs.subMenuTitle&&this.menuInstance){var e=this.menuInstance.$el;e.offsetWidth>=this.$refs.subMenuTitle.offsetWidth||(e.style.minWidth=this.$refs.subMenuTitle.offsetWidth+"px")}},renderChildren:function(e){var t=this.$createElement,n=this.$props,o=(0,T.getListeners)(this),r=o.select,l=o.deselect,s=o.openChange,u={props:{mode:"horizontal"===n.mode?"vertical":n.mode,visible:n.isOpen,level:n.level+1,inlineIndent:n.inlineIndent,focusable:!1,selectedKeys:n.selectedKeys,eventKey:n.eventKey+"-menu-",openKeys:n.openKeys,openTransitionName:n.openTransitionName,openAnimation:n.openAnimation,subMenuOpenDelay:n.subMenuOpenDelay,parentMenu:this,subMenuCloseDelay:n.subMenuCloseDelay,forceSubMenuRender:n.forceSubMenuRender,triggerSubMenuAction:n.triggerSubMenuAction,builtinPlacements:n.builtinPlacements,defaultActiveFirst:n.store.getState().defaultActiveFirst[(0,P.getMenuIdFromSubMenuEventKey)(n.eventKey)],multiple:n.multiple,prefixCls:n.rootPrefixCls,manualRef:this.saveMenuInstance,itemIcon:(0,T.getComponentFromProp)(this,"itemIcon"),expandIcon:(0,T.getComponentFromProp)(this,"expandIcon"),children:e},on:{click:this.onSubMenuClick,select:r,deselect:l,openChange:s},id:this.internalMenuId},f=u.props,c=this.haveRendered;if(this.haveRendered=!0,this.haveOpened=this.haveOpened||f.visible||f.forceSubMenuRender,!this.haveOpened)return t("div");var p=c||!f.visible||"inline"===!f.mode;u["class"]=" "+f.prefixCls+"-sub";var h={appear:p,css:!1},v={props:h,on:{}};return f.openTransitionName?v=(0,x["default"])(f.openTransitionName,{appear:p}):"object"===(0,a["default"])(f.openAnimation)?(h=(0,d["default"])({},h,f.openAnimation.props||{}),p||(h.appear=!1)):"str