@para-ui/core 1.1.15 → 1.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion/index.d.ts +9 -0
- package/AutoBox/index.d.ts +26 -0
- package/AutoBox/index.js +16 -1
- package/AutoTips/index.d.ts +16 -0
- package/AutoTips/index.js +16 -1
- package/Breadcrumbs/index.d.ts +30 -0
- package/Breadcrumbs/index.js +16 -1
- package/Breadcrumbs/theme.d.ts +42 -0
- package/Button/index.d.ts +33 -0
- package/Button/index.js +16 -1
- package/Button/theme.d.ts +216 -0
- package/ButtonGroup/SplitButton.d.ts +17 -0
- package/ButtonGroup/index.d.ts +36 -0
- package/ButtonGroup/index.js +16 -1
- package/Checkbox/iconMapping.d.ts +2 -0
- package/Checkbox/index.d.ts +19 -0
- package/Checkbox/index.js +16 -1
- package/CheckboxGroup/index.d.ts +38 -0
- package/CheckboxGroup/index.js +16 -1
- package/ColorPicker/index.d.ts +4 -0
- package/ComboSelect/WithTabsCombo/index.d.ts +10 -0
- package/ComboSelect/WithTabsCombo/interface.d.ts +134 -0
- package/ComboSelect/index.d.ts +10 -0
- package/ComboSelect/index.js +14 -1
- package/ComboSelect/interface.d.ts +96 -0
- package/ComboSelect/styles.d.ts +6 -0
- package/Container/index.d.ts +77 -0
- package/Container/index.js +15 -1
- package/DatePicker/PickerButton.d.ts +3 -0
- package/DatePicker/PickerTag.d.ts +3 -0
- package/DatePicker/generatePicker/generateRangePicker.d.ts +4 -0
- package/DatePicker/generatePicker/generateSinglePicker.d.ts +11 -0
- package/DatePicker/generatePicker/index.d.ts +64 -0
- package/DatePicker/index.d.ts +17 -0
- package/DatePicker/index.js +14 -1
- package/DatePicker/locale/en_US.d.ts +3 -0
- package/DatePicker/locale/zh_CN.d.ts +3 -0
- package/DatePicker/util.d.ts +12 -0
- package/Desktop/index.d.ts +55 -0
- package/Desktop/index.js +14 -1
- package/Drawer/index.d.ts +5 -0
- package/Form/index.d.ts +134 -0
- package/Form/index.js +16 -1
- package/FormItem/compoments/formCheckboxGroup/index.d.ts +8 -0
- package/FormItem/compoments/formFile/index.d.ts +37 -0
- package/FormItem/compoments/formRadioGroup/index.d.ts +8 -0
- package/FormItem/compoments/formSelect/index.d.ts +18 -0
- package/FormItem/errorTips.d.ts +10 -0
- package/FormItem/index.d.ts +104 -0
- package/FormItem/index.js +16 -1
- package/FormItem/itemType.d.ts +42 -0
- package/FormItem/validateFunction.d.ts +15 -0
- package/FunctionModal/dialog.d.ts +58 -0
- package/FunctionModal/index.d.ts +8 -0
- package/FunctionModal/index.js +14 -1
- package/FunctionModal/modalContext.d.ts +14 -0
- package/Help/index.d.ts +17 -0
- package/Help/index.js +16 -1
- package/IconList/index.d.ts +10 -0
- package/IconList/index.js +15 -1
- package/InputLang/index.d.ts +41 -0
- package/InputLang/index.js +16 -1
- package/InputNumber/index.d.ts +50 -0
- package/InputNumber/index.js +16 -1
- package/Menu/footerExpansion.d.ts +9 -0
- package/Menu/horizontalMenu.d.ts +9 -0
- package/Menu/horizontalMeunList.d.ts +9 -0
- package/Menu/horizontalMeunRight.d.ts +9 -0
- package/Menu/index.d.ts +9 -0
- package/Menu/index.js +16 -1
- package/Menu/interface.d.ts +242 -0
- package/Menu/logo.d.ts +9 -0
- package/Menu/verticalFooter.d.ts +9 -0
- package/Menu/verticalMenu.d.ts +9 -0
- package/Menu/verticalMenuList.d.ts +14 -0
- package/Message/index.d.ts +36 -0
- package/Message/index.js +15 -1
- package/Modal/Confirm/index.d.ts +60 -0
- package/Modal/index.d.ts +51 -0
- package/Modal/index.js +16 -1
- package/MultiBox/index.d.ts +44 -0
- package/MultiBox/index.js +16 -1
- package/Pagination/index.d.ts +14 -0
- package/Pagination/index.js +16 -1
- package/ParauiProvider/index.d.ts +10 -0
- package/ParauiProvider/index.js +16 -1
- package/ParauiProvider/theme/paraTheme.d.ts +3 -0
- package/ParauiProvider/theme/styleConfig.d.ts +74 -0
- package/PopConfirm/index.d.ts +39 -0
- package/PopConfirm/index.js +16 -1
- package/Popover/index.d.ts +13 -0
- package/Popover/index.js +16 -1
- package/Radio/iconMapping.d.ts +2 -0
- package/Radio/index.d.ts +19 -0
- package/Radio/index.js +16 -1
- package/RadioGroup/index.d.ts +38 -0
- package/RadioGroup/index.js +16 -1
- package/Search/index.d.ts +45 -0
- package/Search/index.js +16 -1
- package/Select/index.d.ts +59 -0
- package/Select/index.js +16 -1
- package/SingleBox/index.d.ts +30 -0
- package/SingleBox/index.js +16 -1
- package/Slider/index.d.ts +3 -0
- package/Split/index.d.ts +7 -0
- package/Split/index.js +15 -1
- package/Stepper/icons.d.ts +5 -0
- package/Stepper/index.d.ts +38 -0
- package/Stepper/index.js +16 -1
- package/Stepper/theme.d.ts +56 -0
- package/Styles/index.d.ts +1 -0
- package/Switch/index.d.ts +19 -0
- package/Switch/index.js +16 -1
- package/Table/index.d.ts +9 -0
- package/Table/index.js +16 -1
- package/Table/interface.d.ts +159 -0
- package/Table/tableBody.d.ts +9 -0
- package/Table/tableBodyInterface.d.ts +54 -0
- package/Table/tableHead.d.ts +9 -0
- package/Table/tableHeadInterface.d.ts +32 -0
- package/Table/tablePagination.d.ts +9 -0
- package/Table/tablePaginationInterFace.d.ts +20 -0
- package/Tabs/index.d.ts +38 -0
- package/Tabs/index.js +16 -1
- package/Tabs/theme.d.ts +53 -0
- package/TextField/index.d.ts +83 -0
- package/TextField/index.js +16 -1
- package/TimePicker/index.d.ts +21 -0
- package/TimePicker/index.js +14 -1
- package/TimePicker/locale/en_US.d.ts +3 -0
- package/TimePicker/locale/zh_CN.d.ts +3 -0
- package/TimePicker/style/index.d.ts +1 -0
- package/Timeline/index.d.ts +19 -0
- package/Timeline/index.js +16 -1
- package/ToolTip/index.d.ts +10 -0
- package/ToolTip/index.js +16 -1
- package/Tree/OperateBar/index.d.ts +4 -0
- package/Tree/Tree.d.ts +148 -0
- package/Tree/index.d.ts +4 -0
- package/Tree/index.js +14 -1
- package/Tree/utils/tools.d.ts +17 -0
- package/Tree/utils/treeUtil.d.ts +15 -0
- package/Upload/ImageUpload/index.d.ts +8 -0
- package/Upload/UploadList/index.d.ts +4 -0
- package/Upload/index.d.ts +11 -0
- package/Upload/index.js +16 -1
- package/Upload/interface.d.ts +122 -0
- package/index.d.ts +46 -0
- package/index.js +14 -1
- package/package.json +13 -5
- package/Styles/fonts/SourceHanSansCN-Normal.css +0 -8
- package/Styles/fonts/SourceHanSansCN-Normal.otf +0 -0
package/Form/index.js
CHANGED
|
@@ -1 +1,16 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@para-ui/icons/WarningCircle"),require("@material-ui/core/styles"),require("@material-ui/core"),require("@para-ui/icons/PreviewOpen"),require("@para-ui/icons/PreviewClose"),require("@para-ui/icons/LoadingF"),require("para-lib"),require("@para-ui/icons/Down"),require("@para-ui/icons/Search"),require("@para-ui/icons/Check"),require("@para-ui/icons/Close"),require("@para-ui/icons/Delete"),require("@para-ui/icons/LinkGroup")):"function"==typeof define&&define.amd?define(["react","@para-ui/icons/WarningCircle","@material-ui/core/styles","@material-ui/core","@para-ui/icons/PreviewOpen","@para-ui/icons/PreviewClose","@para-ui/icons/LoadingF","para-lib","@para-ui/icons/Down","@para-ui/icons/Search","@para-ui/icons/Check","@para-ui/icons/Close","@para-ui/icons/Delete","@para-ui/icons/LinkGroup"],t):"object"==typeof exports?exports.ParaUI=t(require("react"),require("@para-ui/icons/WarningCircle"),require("@material-ui/core/styles"),require("@material-ui/core"),require("@para-ui/icons/PreviewOpen"),require("@para-ui/icons/PreviewClose"),require("@para-ui/icons/LoadingF"),require("para-lib"),require("@para-ui/icons/Down"),require("@para-ui/icons/Search"),require("@para-ui/icons/Check"),require("@para-ui/icons/Close"),require("@para-ui/icons/Delete"),require("@para-ui/icons/LinkGroup")):e.ParaUI=t(e.react,e["@para-ui/icons/WarningCircle"],e["@material-ui/core/styles"],e["@material-ui/core"],e["@para-ui/icons/PreviewOpen"],e["@para-ui/icons/PreviewClose"],e["@para-ui/icons/LoadingF"],e["para-lib"],e["@para-ui/icons/Down"],e["@para-ui/icons/Search"],e["@para-ui/icons/Check"],e["@para-ui/icons/Close"],e["@para-ui/icons/Delete"],e["@para-ui/icons/LinkGroup"])}(self,(function(e,t,r,n,o,i,l,a,c,s,d,u,p,f){return function(){"use strict";var m={4927:function(e,t,r){function n(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=n(e[t]))&&(o&&(o+=" "),o+=r);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function o(){for(var e,t,r=0,o="";r<arguments.length;)(e=arguments[r++])&&(t=n(e))&&(o&&(o+=" "),o+=t);return o}r.d(t,{Z:function(){return o}})},4861:function(e,t,r){var n=r(9297),o=r.n(n),i=r(1731),l=r(8604);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(0,r(9177).Z)();var c=(0,l.makeStyles)((function(e){return(0,l.createStyles)({"auto-tips":{maxWidth:"100%",display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > .auto-tips-content":{display:"inline",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}})}));t.default=function(e){var t=e.children,r=e.placement,l=void 0===r?"bottom-start":r,s=e.tips,d=void 0===s?"":s,u=e.className,p=void 0===u?"":u,f=(0,n.useRef)(),m=c(),h=a((0,n.useState)(""),2),v=h[0],g=h[1];(0,n.useEffect)((function(){g(d)}),[d]);var x;return o().createElement("div",{ref:function(e){e&&(f.current=e)},className:(x=m["auto-tips"],x+=" paraui-auto-tips",p&&(x+=" "+p),x),onMouseOver:function(){f.current.scrollWidth>f.current.offsetWidth?g(v||f.current.innerText):g("")}},o().createElement(i.Tooltip,{title:v,placement:l},o().createElement("div",{className:"auto-tips-content"},t)))}},8955:function(e,t,r){var n=r(9297),o=r.n(n),i=r(1731),l=r(8604),a=r(4927),c=r(1102),s=r.n(c);function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var f=(0,r(9177).Z)(),m=(0,l.makeStyles)((function(e){return(0,l.createStyles)({"@keyframes loadingCircle":{"100%":{transform:"rotate(1turn)"}},radius:{borderRadius:15},btnIcon:{"& .btn-icon":{display:"inline-flex",alignItems:"center"},"& .btn-icon svg":{color:"currentColor"}},outlinedBtn:{"& .btn-icon svg":{color:f.thmemColor.primary},"&:disabled":{"& .btn-icon svg":{color:"currentColor"}}},iconButtonToolTip:{display:"inline-block",cursor:"not-allowed","& .iconButton-disabled":{cursor:"not-allowed",pointerEvents:"none"}},loadingBtn:{position:"relative",pointerEvents:"none","&:before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:1,transition:"opacity .2s",pointerEvents:"none"},"& .loading-icon":{animation:"$loadingCircle 1s infinite linear"}}})})),h=(0,l.withStyles)((function(e){return{tooltip:{margin:"6px 0",backgroundColor:f.bgBorderColor.bg4}}}))(i.Tooltip),v=function(e){var t=m(),r=e.radius,l=e.className,c=e.disabled,f=void 0!==c&&c,h=e.children,v=e.startIcon,g=e.endIcon,x=e.loading,b=void 0!==x&&x,y=u(e,["radius","className","disabled","children","startIcon","endIcon","loading"]);"text"===y.variant&&(y.disableRipple=!0);var w=p((0,n.useState)(!1),2),C=w[0],E=w[1];return(0,n.useEffect)((function(){E(!!b)}),[b]),o().createElement(i.Button,d({disabled:f,className:(0,a.Z)("paraui-button",l,t.btnIcon,r&&t.radius,"outlined"===y.variant&&t.outlinedBtn,C&&t.loadingBtn),startIcon:function(){if(!C)return o().createElement("span",{className:"btn-icon"},v);if("object"==typeof b){var e=b.delay||0;setTimeout((function(){return E(!1)}),e)}return o().createElement("span",{className:"btn-icon loading-icon"},o().createElement(s(),null))}(),endIcon:o().createElement("span",{className:"btn-icon"},g)},y),h)};v.IconButton=function(e){var t=m(),r=e.showToolTip,l=void 0===r||r,c=e.toolTipTitle,f=void 0===c?"":c,v=e.children,g=e.className,x=e.disabled,b=void 0!==x&&x,y=e.loading,w=void 0!==y&&y,C=e.TooltipProps,E=u(e,["showToolTip","toolTipTitle","children","className","disabled","loading","TooltipProps"]),k=p((0,n.useState)(!1),2),S=k[0],F=k[1],O=o().createElement(i.IconButton,d({},E,{disabled:b,disableRipple:!0,className:(0,a.Z)("paraui-icon-button",g,l&&b&&"iconButton-disabled",S&&t.loadingBtn)}),function(){if(!S)return v;if("object"==typeof w){var e=w.delay||0;setTimeout((function(){return F(!1)}),e)}return o().createElement("span",{className:"loading-icon"},o().createElement(s(),null))}());return(0,n.useEffect)((function(){F(!!w)}),[w]),l?o().createElement(h,d({title:f},C),o().createElement("span",{className:(0,a.Z)(b&&t.iconButtonToolTip)},O)):O},t.default=v},6142:function(e,t,r){r.d(t,{default:function(){return m}});var n=r(9297),o=r.n(n),i=r(1731),l=r(8604),a=r(9177),c={icon:{icon:o().createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},o().createElement("path",{d:"M78.769231 78.769231m118.153846 0l630.153846 0q118.153846 0 118.153846 118.153846l0 630.153846q0 118.153846-118.153846 118.153846l-630.153846 0q-118.153846 0-118.153846-118.153846l0-630.153846q0-118.153846 118.153846-118.153846Z",fill:"#FFFFFF"}),o().createElement("path",{d:"M827.076923 0h-630.153846A196.923077 196.923077 0 0 0 0 196.923077v630.153846A196.923077 196.923077 0 0 0 196.923077 1024h630.153846a196.923077 196.923077 0 0 0 196.923077-196.923077v-630.153846A196.923077 196.923077 0 0 0 827.076923 0zM945.230769 827.076923a118.153846 118.153846 0 0 1-118.153846 118.153846h-630.153846A118.153846 118.153846 0 0 1 78.769231 827.076923v-630.153846A118.153846 118.153846 0 0 1 196.923077 78.769231h630.153846A118.153846 118.153846 0 0 1 945.230769 196.923077z",className:"line-rect",fill:"currentColor"})),iconDisabled:o().createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},o().createElement("path",{d:"M78.769231 78.769231m118.153846 0l630.153846 0q118.153846 0 118.153846 118.153846l0 630.153846q0 118.153846-118.153846 118.153846l-630.153846 0q-118.153846 0-118.153846-118.153846l0-630.153846q0-118.153846 118.153846-118.153846Z",fill:"currentColor",className:"fill-bg"}),o().createElement("path",{d:"M827.076923 0h-630.153846A196.923077 196.923077 0 0 0 0 196.923077v630.153846A196.923077 196.923077 0 0 0 196.923077 1024h630.153846a196.923077 196.923077 0 0 0 196.923077-196.923077v-630.153846A196.923077 196.923077 0 0 0 827.076923 0zM945.230769 827.076923a118.153846 118.153846 0 0 1-118.153846 118.153846h-630.153846A118.153846 118.153846 0 0 1 78.769231 827.076923v-630.153846A118.153846 118.153846 0 0 1 196.923077 78.769231h630.153846A118.153846 118.153846 0 0 1 945.230769 196.923077z",className:"line-rect",fill:"currentColor"}))},checkedIcon:{icon:o().createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},o().createElement("path",{d:"M0 0m196.923077 0l630.153846 0q196.923077 0 196.923077 196.923077l0 630.153846q0 196.923077-196.923077 196.923077l-630.153846 0q-196.923077 0-196.923077-196.923077l0-630.153846q0-196.923077 196.923077-196.923077Z",fill:"currentColor"}),o().createElement("path",{d:"M852.834462 284.356923a46.710154 46.710154 0 0 0-66.008616 0L430.710154 640.472615 237.331692 447.172923a46.710154 46.710154 0 0 0-66.087384 66.087385l226.382769 226.304a46.710154 46.710154 0 0 0 66.087385 0c0.472615-0.551385 0.708923-1.260308 1.181538-1.811693s1.260308-0.708923 1.811692-1.181538l385.969231-385.969231a46.710154 46.710154 0 0 0 0-66.244923z",fill:"#FFFFFF"})),iconDisabled:o().createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},o().createElement("path",{className:"fill-bg",d:"M78.769231 78.769231m118.153846 0l630.153846 0q118.153846 0 118.153846 118.153846l0 630.153846q0 118.153846-118.153846 118.153846l-630.153846 0q-118.153846 0-118.153846-118.153846l0-630.153846q0-118.153846 118.153846-118.153846Z",fill:"currentColor"}),o().createElement("path",{d:"M827.076923 0h-630.153846A196.923077 196.923077 0 0 0 0 196.923077v630.153846A196.923077 196.923077 0 0 0 196.923077 1024h630.153846a196.923077 196.923077 0 0 0 196.923077-196.923077v-630.153846A196.923077 196.923077 0 0 0 827.076923 0zM945.230769 827.076923a118.153846 118.153846 0 0 1-118.153846 118.153846h-630.153846A118.153846 118.153846 0 0 1 78.769231 827.076923v-630.153846A118.153846 118.153846 0 0 1 196.923077 78.769231h630.153846A118.153846 118.153846 0 0 1 945.230769 196.923077z",className:"line-rect",fill:"currentColor"}),o().createElement("path",{d:"M852.834462 284.356923a46.710154 46.710154 0 0 0-66.008616 0L430.710154 640.472615 237.331692 447.172923a46.710154 46.710154 0 0 0-66.087384 66.087385l226.382769 226.304a46.710154 46.710154 0 0 0 66.087385 0c0.472615-0.551385 0.708923-1.260308 1.181538-1.811693s1.260308-0.708923 1.811692-1.181538l385.969231-385.969231a46.710154 46.710154 0 0 0 0-66.244923z",className:"char-path",fill:"currentColor"}))},indeterminateIcon:{icon:o().createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},o().createElement("path",{d:"M0 0m196.923077 0l630.153846 0q196.923077 0 196.923077 196.923077l0 630.153846q0 196.923077-196.923077 196.923077l-630.153846 0q-196.923077 0-196.923077-196.923077l0-630.153846q0-196.923077 196.923077-196.923077Z",fill:"currentColor"}),o().createElement("path",{d:"M785.171692 564.224h-546.422154a52.696615 52.696615 0 0 1 0-104.448h546.422154a52.696615 52.696615 0 0 1 0 104.448z",fill:"#FFFFFF"})),iconDisabled:o().createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},o().createElement("path",{d:"M78.769231 78.769231m118.153846 0l630.153846 0q118.153846 0 118.153846 118.153846l0 630.153846q0 118.153846-118.153846 118.153846l-630.153846 0q-118.153846 0-118.153846-118.153846l0-630.153846q0-118.153846 118.153846-118.153846Z",className:"fill-bg",fill:"currentColor"}),o().createElement("path",{d:"M827.076923 0h-630.153846A196.923077 196.923077 0 0 0 0 196.923077v630.153846A196.923077 196.923077 0 0 0 196.923077 1024h630.153846a196.923077 196.923077 0 0 0 196.923077-196.923077v-630.153846A196.923077 196.923077 0 0 0 827.076923 0zM945.230769 827.076923a118.153846 118.153846 0 0 1-118.153846 118.153846h-630.153846A118.153846 118.153846 0 0 1 78.769231 827.076923v-630.153846A118.153846 118.153846 0 0 1 196.923077 78.769231h630.153846A118.153846 118.153846 0 0 1 945.230769 196.923077z",className:"line-rect",fill:"currentColor"}),o().createElement("path",{d:"M785.171692 564.224H238.749538a52.696615 52.696615 0 0 1 0-104.448h546.422154a52.696615 52.696615 0 0 1 0 104.448z",className:"char-path",fill:"currentColor"}))}};function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function d(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var p=(0,a.Z)(),f=(0,l.makeStyles)((function(){return(0,l.createStyles)({"check-box":{margin:"0","&:hover":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:p.thmemColor.primary,"& > .line-rect":{color:p.thmemColor.primary}}}},"& > span:last-child":{color:p.thmemColor.primary}},"& > span:first-child":{padding:"8px","& > span:first-child":{"& > svg":{color:p.textColor.thirdary,"& > .line-rect":{color:p.textColor.thirdary}}}},"& > span:last-child":{color:p.textColor.primary},"&.check-box-checked":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:p.thmemColor.primary}}},"& > span:last-child":{color:p.thmemColor.primary}},"&.check-box-indeterminate":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:p.thmemColor.primary}}},"& > span:last-child":{color:p.thmemColor.primary}},"&.check-box-disabled":{"&:hover":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:p.textColor.thirdary,"& > .line-rect":{color:p.textColor.thirdary}}}},"& > span:last-child":{color:p.textColor.thirdary}},cursor:"not-allowed","& > span:first-child":{"& > span:first-child":{"& > svg":{color:p.textColor.thirdary+" !important","& > .fill-bg":{color:p.bgBorderColor.bg1},"& > .char-path":{color:p.bgBorderColor.bg4}}}},"& > span:last-child":{color:p.textColor.secondary+" !important"}},"&.check-box-small":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"12px"}}},"& > span:last-child":{fontSize:"12px",lineHeight:"12px"}},"&.check-box-medium":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"14px"}}},"& > span:last-child":{fontSize:"14px",lineHeight:"14px"}},"&.check-box-large":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"16px"}}},"& > span:last-child":{fontSize:"16px",lineHeight:"16px"}}}})})),m=function(e){var t=e.className,r=void 0===t?"":t,l=e.color,a=void 0===l?"primary":l,p=e.size,m=void 0===p?"small":p,h=e.label,v=void 0===h?"":h,g=e.labelPlacement,x=void 0===g?"end":g,b=(e.checkedIcon,e.indeterminateIcon,e.icon,e.disabled),y=void 0!==b&&b,w=e.checked,C=void 0!==w&&w,E=e.indeterminate,k=void 0!==E&&E,S=e.onChange,F=d(e,["className","color","size","label","labelPlacement","checkedIcon","indeterminateIcon","icon","disabled","checked","indeterminate","onChange"]),O=f(e),N=u((0,n.useState)(!1),2),z=N[0],T=N[1];(0,n.useEffect)((function(){C!==z&&T(C)}),[C]);var A,q=function(e){return y?c[e].iconDisabled:c[e].icon},B=function(t,r){void 0===e.checked&&void 0===e.indeterminate&&T(t.target.checked),S&&S(t,r)};return o().createElement(i.FormControlLabel,{className:(A=O["check-box"]+" paraui-check-box",r&&(A+=" "+r),m&&(A+=" check-box-"+m),y&&(A+=" check-box-disabled"),k?A+=" check-box-indeterminate":z&&(A+=" check-box-checked"),A),control:o().createElement(i.Checkbox,s({size:"small",color:a,disabled:y,icon:q("icon"),checkedIcon:q("checkedIcon"),indeterminateIcon:q("indeterminateIcon"),onChange:B,checked:z,indeterminate:k},F)),label:v,labelPlacement:x})}},982:function(e,t,r){var n=r(9297),o=r.n(n),i=r(1731),l=r(6142),a=r(8604),c=r(9177),s=r(3475);function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var u=(0,c.Z)(),p=(0,a.makeStyles)((function(){return(0,a.createStyles)({"check-box-group":{"& > label":{fontSize:"12px",color:u.textColor.secondary,"& > .required-char":{marginLeft:"3px",color:u.thmemColor.primary}},"& > div":{margin:"5px 0"},"& > p":{fontSize:"12px",lineHeight:"12px",margin:"0",color:u.stateColor.error},"&.check-box-group-disabled":{},"&.check-box-group-small":{},"&.check-box-group-medium":{},"&.check-box-group-large":{}}})}));t.default=function(e){var t,r=e.label,n=void 0===r?"":r,a=e.size,c=void 0===a?"small":a,u=e.row,f=void 0===u||u,m=e.disabled,h=void 0!==m&&m,v=e.required,g=void 0!==v&&v,x=e.error,b=void 0!==x&&x,y=e.helperText,w=void 0===y?"":y,C=e.id,E=void 0===C?"name":C,k=e.value,S=void 0===k?[]:k,F=e.list,O=e.className,N=void 0===O?"":O,z=e.onChange,T=p(e),A=function(e){return function(t,r){var n=e[E],o=(0,s.DeepClone)(S);if(r)o.push(n);else{var i=o.indexOf(n);o.splice(i,1)}z&&z(o)}};return o().createElement(i.FormControl,{className:(t=T["check-box-group"]+" paraui-check-box-group",N&&(t+=" "+N),c&&(t+=" check-box-group-"+c),b&&(t+=" check-box-group-error"),h&&(t+=" check-box-group-disabled"),t)},o().createElement(i.FormLabel,null,n,g&&o().createElement("span",{className:"required-char"},"(必填)")),o().createElement(i.FormGroup,{row:f},F.map((function(e,t){return o().createElement(l.default,d({},e,{checked:-1!==S.indexOf(e[E]),size:c,disabled:Boolean(h||e.disabled),key:t,onChange:A(e)}))}))),w&&o().createElement(i.FormHelperText,null,w))}},3504:function(e,t,r){r.d(t,{default:function(){return K}});var n=r(9297),o=r.n(n),i=r(6897),l=r.n(i),a=r(8604),c=r(1731),s=r(4923),d=r(9103);function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var f=function(e){var t=e.defaultValue,r=e.change,n=p(o().useState(t||""),2),i=n[0],l=n[1];return o().createElement(d.default,u({value:i,onChange:function(e){l(e),r&&r(e)}},e))},m=r(8121);function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function v(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var g=function(e){var t=e.defaultValue,r=void 0===t?"":t,n=e.change,i=e.value,l=v(o().useState(void 0!==i?i:r),2),a=l[0],c=l[1];return o().useEffect((function(){c(i)}),[i]),o().createElement(m.default,h({labelMode:"inside",onChange:function(e){c(e),n&&n(e)}},e,{value:a}))},x=r(982);function b(){return(b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var w=function(e){var t=e.defaultValue,r=e.change,n=y(o().useState(t||[]),2),i=n[0],l=n[1];return o().createElement(x.default,b({value:i,onChange:function(e){l(e),r&&r(e)}},e))},C=r(5836),E=r(6203),k=r(6243),S=r.n(k),F=r(9973),O=r.n(F),N=r(4861),z=r(8955),T=r(9177);function A(){return(A=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var B=(0,T.Z)(),j=(0,a.makeStyles)((function(e){return(0,a.createStyles)({"para-file-box":{padding:"6px","& .para-file-tips":{"&-disabled":{"& .file-tips-context,& .svg-icon-primary":{color:"".concat(B.textColor.thirdary," !important")}},minHeight:"20px",position:"relative",padding:"6px","& .file-tips-item":{position:"relative",height:"20px",lineHeight:"16px",paddingRight:"20px",'&>[data-name="LinkGroup"]':{verticalAlign:"middle",marginRight:"9px"},"& .file-tips-context":{display:"inline-block",verticalAlign:"middle",width:"calc(100% - 45px)",color:B.thmemColor.primary},'&>[data-name="Delete"]':{display:"none",verticalAlign:"middle",cursor:"pointer",position:"absolute",right:"3px",top:"2px","&:hover":{opacity:"0.8"}},"&:hover":{backgroundColor:"#f5f5f5",'&>[data-name="Delete"]':{display:"inline-block"}}}}}})})),I=function(e){var t=e.fileType,r=void 0===t?"":t,n=e.defaultValue,i=e.onChange,l=e.disabled,a=e.buttonLabel,c=e.inputProps,s=e.buttonProps,d=j(),u=o().useRef(null),p=function(e){var t=void 0!==e?e:u.current.files;h(t),i&&i(t),null===e&&(u.current.value=null)},f=q(o().useState(),2),m=f[0],h=f[1];return o().useEffect((function(){n&&h(n)}),[n]),o().createElement("div",{className:d["para-file-box"]},!l&&o().createElement(z.default,A({variant:"outlined"},s,{onClick:function(){var e;console.log("inputFileClick",u.current),null===(e=u.current)||void 0===e||e.click()}}),a||"选择文件"),o().createElement("input",A({},c,{ref:u,type:"file",onInput:function(){return p()},hidden:!0,accept:"string"==typeof r?r:r.join(",")})),m&&m[0]&&o().createElement("div",{className:"para-file-tips ".concat(l?"para-file-tips-disabled":"")},o().createElement("div",{className:"file-tips-item"},o().createElement(O(),null),o().createElement("span",{className:"file-tips-context"},o().createElement(N.default,null,"string"==typeof m?m:m[0].name)),!l&&o().createElement(S(),{onClick:function(){return p(null)}}))))};function M(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L(){return(L=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){M(e,t,r[t])}))}return e}function P(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var H=function(e){var t=e.ItemType,r=e.error,n=e.placeholder,i=e.label,l=e.inputProps,a=e.name,c=e.rules,d=e.setValue,u=e.setError,p=e.backData,m=e.disabled,h=e.change,v=n||"".concat(i),x=P(o().useState(!!r),2),b=x[0],y=x[1],k=function(t){if(d&&d(a,"value",t),h&&h(t),c){var r=(0,C.Z)(e,t)||"";S(r)}},S=o().useCallback((function(e){u&&u(e),y(!!e),d&&d(a,"message",e)}),[a,u,d]);o().useEffect((function(){var t=D({},e,{setErrorMsg:S});d&&d(a,"item",t)}),[a,e,S,d]);return function(){if(t&&"string"!=typeof t){var r=D({},e,{setErrorMsg:S});return t(r)}switch(t){case"file":return o().createElement(I,L({},e,{defaultValue:p[a],disabled:m,onChange:function(e){k(e)}}));case"switch":return void 0===p[a]&&d&&d(a,"initValue",!!p[a]),o().createElement(E.default,L({type:"compact",size:"small",defaultChecked:!!p[a],onChange:function(e){k(e.target.checked)}},D({},l,{disabled:m})));case"checkGroup":return o().createElement(w,L({error:b,defaultValue:p[a],size:"small",change:function(e){k(e)},list:e.list},D({},l,{disabled:m})));case"select":return o().createElement(g,L({placeholder:v,defaultValue:p[a],error:b,size:"medium",change:function(e){k(e)},list:e.list},D({disabled:m},l)));case"radioGroup":return o().createElement(f,L({error:b,defaultValue:p[a],size:"small",change:function(e){k(e)},list:e.list},D({disabled:m},l)));case"textarea":return o().createElement(s.default,L({error:b,placeholder:v,value:p[a],disabled:m,multiline:!0,rows:3,size:"medium",name:a,onChange:function(e){k(e.target.value)}},l));default:return o().createElement(s.default,L({value:p[a],error:b,placeholder:v,onChange:function(e){k(e.target.value)},name:a,size:"medium",disabled:m},l))}}()};function R(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var W=function(e){var t=e.getSetError,r=e.errorMessage,n=R(o().useState(r||""),2),i=n[0],l=n[1];return o().useEffect((function(){l(r||"")}),[r]),o().useEffect((function(){t&&t(l)}),[t]),o().createElement(N.default,null,i," ")},Z=r(4927);function V(){return(V=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var U=(0,T.Z)(),G=(0,a.makeStyles)((function(e){return(0,a.createStyles)({"para-form-item":{"& .para-form-label":{height:"20px",lineHeight:"20px",fontSize:"12px",textAlign:"left",fontWeight:"400",display:"inline-block",marginBottom:"8px",verticalAlign:"top",width:"100%","&-vertical":{marginTop:"6px",textAlign:"right",paddingRight:"3px",position:"relative","& .para-form-labe-tips":{position:"absolute",left:"0px",top:"1px"}},"& .para-form-labe-text":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"inline-block",maxWidth:"100%",verticalAlign:"middle","&-hastips":{maxWidth:"calc(100% - 25px)"}},"& .para-form-labe-tips":{height:"20px",cursor:"pointer",display:"inline-block",verticalAlign:"middle",lineHeight:"27px",marginLeft:"5px"}},"& .para-form-edit":{minHeight:"34px","&>div":{padding:"0px"},"& .MuiSwitch-root":{marginTop:"12px"}},"& .para-form-error":{height:"17px",lineHeight:"17px",color:U.stateColor.error},"& .para-form-content-vertical":{display:"inline-block",width:"100%"}}})})),K=function(e){var t=e.type,r=void 0===t?"horizontal":t,n=e.labelWidth,i=void 0===n?60:n,a=e.tips,s=e.label,d=e.InputType,u=e.setValue,p=e.errorMessage,f=(e.rules,e.backData),m=void 0===f?{}:f,h=G(),v=o().useRef(),g=function(e){return"vertical"===r?o().createElement("div",{className:"para-form-content-vertical",style:{width:"calc(100% - ".concat(i,"px)")}},e.children):e.children};return o().createElement("div",{className:h["para-form-item"]},o().createElement("div",{className:(0,Z.Z)("para-form-label","vertical"===r&&"para-form-label-vertical"),style:{width:"vertical"===r?"".concat(i,"px"):""}},o().createElement("span",{className:(0,Z.Z)("para-form-labe-text",a&&"para-form-labe-text-hastips")},s),a&&o().createElement(c.Tooltip,{title:a,placement:"top"},o().createElement("span",{className:"para-form-labe-tips"},o().createElement(l(),null)))),o().createElement(g,null,o().createElement("div",{className:"para-form-edit"},e.children?e.children:o().createElement(H,V({setError:function(e){v.current&&v.current(e)},error:!!p,ItemType:d,backData:m},e,{setValue:u}))),o().createElement("div",{className:"para-form-error"},o().createElement(W,{getSetError:function(e){return v.current=e},errorMessage:p}))))}},5836:function(e,t){var r=function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},n={required:function(e,t){var n,o,i=void 0===t?"undefined":r(t),l=(null===(n=e.rules)||void 0===n||null===(o=n.message)||void 0===o?void 0:o.required)||"".concat(e.label,"不能为空"),a=!1;switch(i){case"string":a=!!t;break;case"number":a=t+1>t;break;case"object":var c=JSON.stringify(t);a="null"!==c&&"[]"!==c&&"{}"!==c;break;case"boolean":a=void 0!==t;break;default:a=!!t}return a||l},maxlength:function(e,t){var n,o,i,l,a,c,s=void 0===t?"undefined":r(t),d=(null===(n=e.rules)||void 0===n||null===(o=n.message)||void 0===o?void 0:o.maxlength)||"最大长度不能超过".concat(null===(i=e.rules)||void 0===i||null===(l=i.validate)||void 0===l?void 0:l.maxlength),u=!1;"string"===s||"number"===s&&t+1>t?u=!("".concat(t).length>((null===(a=e.rules)||void 0===a||null===(c=a.validate)||void 0===c?void 0:c.maxlength)||NaN)):u=!t;return u||d},minLength:function(e,t){var n,o,i,l,a,c,s=void 0===t?"undefined":r(t),d=(null===(n=e.rules)||void 0===n||null===(o=n.message)||void 0===o?void 0:o.minLength)||"最小长度为".concat(null===(i=e.rules)||void 0===i||null===(l=i.validate)||void 0===l?void 0:l.minLength),u=!1;"string"===s||"number"===s&&t+1>t?u="".concat(t).length>=((null===(a=e.rules)||void 0===a||null===(c=a.validate)||void 0===c?void 0:c.minLength)||-1):u=!t;return u||d},pattern:function(e,t){var r,n,o,i,l=null===(r=e.rules)||void 0===r||null===(n=r.validate)||void 0===n?void 0:n.pattern,a=(null===(o=e.rules)||void 0===o||null===(i=o.message)||void 0===i?void 0:i.pattern)||"参数不符合校验规则: ".concat(l),c=!t;return l&&t&&"function"!=typeof l&&(c=l.test(t)),c||a},min:function(e,t){var n,o,i,l,a,c,s=void 0===t?"undefined":r(t),d=(null===(n=e.rules)||void 0===n||null===(o=n.message)||void 0===o?void 0:o.min)||"最小值为".concat(null===(i=e.rules)||void 0===i||null===(l=i.validate)||void 0===l?void 0:l.min),u=!t;"string"!==s&&"number"!==s||(u=t>((null===(a=e.rules)||void 0===a||null===(c=a.validate)||void 0===c?void 0:c.min)||-1/0));return u||d},max:function(e,t){var n,o,i,l,a,c,s=void 0===t?"undefined":r(t),d=(null===(n=e.rules)||void 0===n||null===(o=n.message)||void 0===o?void 0:o.max)||"最大值为".concat(null===(i=e.rules)||void 0===i||null===(l=i.validate)||void 0===l?void 0:l.max),u=!t;"string"!==s&&"number"!==s||(u=t<((null===(a=e.rules)||void 0===a||null===(c=a.validate)||void 0===c?void 0:c.max)||1/0));return u||d}};t.Z=function(e,t){var r=null===(o=e.rules)||void 0===o?void 0:o.validate;if(r){var o,i=null===(o=e.rules)||void 0===o?void 0:o.message;for(var l in console.log("validateObj"),r){var a=r[l],c="";if("function"==typeof a?!1===(c=a(e,t))&&i&&(c=i[l]):n[l]?c=n[l](e,t):(console.log("项目: ".concat(e.label,", 自定义校验规则: ").concat(l,", 方法未定义")),c=!0),!0!==c)return c||""}}return!1}},9177:function(e,t){var r={thmemColor:{primary:"#3D66F8",secondary:"#7E98F5",thirdary:"#D6DFFD"},textColor:{primary:"#191919",secondary:"#6E7488",thirdary:"#BBBECB",white:"#FFFFFF"},bgBorderColor:{bg1:"#DCDDE3",bg2:"#F5F5F5",bg3:"#EDEDED",bg4:"#6E7488",line1:"#E5E9EF",universal:"#FFFFFF"},stateColor:{info:"#3D66F8",success:"#41D658",warning:"#FFA150",error:"#F46B53"},gradientColor:{gradient1:"linear-gradient(#3D66F8, #4F93F0)",gradient2:"linear-gradient(#0093FF, #4EB4FF)",gradient3:"linear-gradient(#844EFF, #A796FF)",gradient4:"linear-gradient(#FD7300, #FFBF69)",gradient5:"linear-gradient(#3D66F8, #D8DFFA)"},fontFamily:{zh:"Microsoft Yahei, Helvetica, sans-serif",en:"Microsoft Yahei, Helvetica, sans-serif"},fontSize:12,borderRadius:4,boxShadow:"4px 4px 6px rgba(70,75,105,0.2), -4px -4px 6px rgba(0,0,0,0.06)",buttonShadow:"4px 4px 6px rgba(70,75,105,0.1), -4px -4px 6px rgba(0,0,0,0.03)",standardFont:{standardFont1:{fontSize:"12px",fontWeight:"400"},standardFont2:{fontSize:"12px",fontWeight:"700"}},titleFont:{titleFont1:{fontSize:"14px",fontWeight:"400"},titleFont2:{fontSize:"14px",fontWeight:"700"}},visualLargeFont:{visualLargeFont1:{fontSize:"40px",fontWeight:"700"},visualLargeFont2:{fontSize:"40px",fontWeight:"700"}}};t.Z=function(){return r}},4877:function(e,t,r){r.d(t,{default:function(){return m}});var n=r(9297),o=r.n(n),i=r(1731),l=r(8604),a=r(9177),c={icon:{icon:o().createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},o().createElement("path",{d:"M512 981.333333A469.333333 469.333333 0 1 0 42.666667 512a469.845333 469.845333 0 0 0 469.333333 469.333333z m0-853.333333a384 384 0 1 1-384 384 384.426667 384.426667 0 0 1 384-384z",fill:"currentColor"})),iconDisabled:o().createElement("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},o().createElement("path",{d:"M512.213333 128.128a384 384 0 1 0 384 384 384 384 0 0 0-384-384z",fill:"currentColor"}),o().createElement("path",{d:"M512 981.333333A469.333333 469.333333 0 1 0 42.666667 512a469.845333 469.845333 0 0 0 469.333333 469.333333z m0-853.333333a384 384 0 1 1-384 384 384.426667 384.426667 0 0 1 384-384z",className:"line-round",fill:"currentColor"}))},checkedIcon:{icon:o().createElement("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},o().createElement("path",{d:"M512 42.837333a469.333333 469.333333 0 1 0 469.333333 469.333334 469.802667 469.802667 0 0 0-469.333333-469.333334z m0 853.333334a384 384 0 1 1 384-384 384.426667 384.426667 0 0 1-384 384z",fill:"currentColor"}),o().createElement("path",{d:"M512 278.272A233.728 233.728 0 1 0 745.728 512 233.728 233.728 0 0 0 512 278.272z",fill:"currentColor"})),iconDisabled:o().createElement("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},o().createElement("path",{d:"M512 128.170667a384 384 0 1 0 384 384 384.384 384.384 0 0 0-384-384z m0 617.728a233.728 233.728 0 1 1 233.728-233.728A233.770667 233.770667 0 0 1 512 745.728z",fill:"currentColor"}),o().createElement("path",{d:"M512 42.837333a469.333333 469.333333 0 1 0 469.333333 469.333334 469.802667 469.802667 0 0 0-469.333333-469.333334z m0 853.333334a384 384 0 1 1 384-384 384.426667 384.426667 0 0 1-384 384z",className:"line-round",fill:"currentColor"}),o().createElement("path",{d:"M512 278.272A233.728 233.728 0 1 0 745.728 512 233.728 233.728 0 0 0 512 278.272z",className:"line-round",fill:"currentColor"}))}};function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function d(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var p=(0,a.Z)(),f=(0,l.makeStyles)((function(){return(0,l.createStyles)({radio:{margin:"0","&:hover":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:p.thmemColor.primary}}},"& > span:last-child":{color:p.thmemColor.primary}},"& > span:first-child":{padding:"8px","& > span:first-child":{"& > svg":{color:p.textColor.thirdary,"& > .line-rect":{color:p.textColor.thirdary}}}},"& > span:last-child":{color:p.textColor.primary},"&.radio-checked":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:p.thmemColor.primary}}},"& > span:last-child":{color:p.thmemColor.primary}},"&.radio-disabled":{"&:hover":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:p.bgBorderColor.bg1,"& > .line-round":{color:p.textColor.thirdary}}}},"& > span:last-child":{color:p.textColor.thirdary}},cursor:"not-allowed","& > span:first-child":{"& > span:first-child":{"& > svg":{color:p.bgBorderColor.bg1+" !important","& > .line-round":{color:p.textColor.thirdary+" !important"}}}},"& > span:last-child":{color:p.textColor.secondary+" !important"}},"&.radio-small":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"12px"}}},"& > span:last-child":{fontSize:"12px",lineHeight:"12px"}},"&.radio-medium":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"14px"}}},"& > span:last-child":{fontSize:"14px",lineHeight:"14px"}},"&.radio-large":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"16px"}}},"& > span:last-child":{fontSize:"16px",lineHeight:"16px"}}}})})),m=function(e){var t=e.color,r=void 0===t?"primary":t,l=e.size,a=void 0===l?"small":l,p=e.label,m=void 0===p?"":p,h=e.labelPlacement,v=void 0===h?"end":h,g=(e.checkedIcon,e.icon,e.disabled),x=void 0!==g&&g,b=e.checked,y=void 0!==b&&b,w=e.onChange,C=e.className,E=void 0===C?"":C,k=d(e,["color","size","label","labelPlacement","checkedIcon","icon","disabled","checked","onChange","className"]),S=f(e),F=u((0,n.useState)(!1),2),O=F[0],N=F[1];(0,n.useEffect)((function(){y!==O&&N(y)}),[y]);var z,T=function(e){return x?c[e].iconDisabled:c[e].icon},A=function(t,r){void 0===e.checked&&N(t.target.checked),w&&w(t,r)};return o().createElement(i.FormControlLabel,{className:(z=S.radio+" paraui-radio",E&&(z+=" "+E),a&&(z+=" radio-"+a),x&&(z+=" radio-disabled"),O&&(z+=" radio-checked"),z),control:o().createElement(i.Radio,s({size:"small",color:r,disabled:x,icon:T("icon"),checkedIcon:T("checkedIcon"),onChange:A,checked:O},k)),label:m,labelPlacement:v})}},9103:function(e,t,r){var n=r(9297),o=r.n(n),i=r(1731),l=r(4877),a=r(8604);function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var s=(0,r(9177).Z)(),d=(0,a.makeStyles)((function(){return(0,a.createStyles)({"radio-group":{"& > label":{fontSize:"12px",color:s.textColor.secondary,"& > .required-char":{marginLeft:"3px",color:s.thmemColor.primary}},"& > div":{margin:"5px 0"},"& > p":{fontSize:"12px",lineHeight:"12px",margin:"0",color:s.stateColor.error},"&.radio-group-disabled":{},"&.radio-group-small":{},"&.radio-group-medium":{},"&.radio-group-large":{}}})}));t.default=function(e){var t,r=e.className,n=void 0===r?"":r,a=e.label,s=void 0===a?"":a,u=e.size,p=void 0===u?"small":u,f=e.row,m=void 0===f||f,h=e.disabled,v=void 0!==h&&h,g=e.required,x=void 0!==g&&g,b=e.error,y=void 0!==b&&b,w=e.helperText,C=void 0===w?"":w,E=e.id,k=void 0===E?"name":E,S=e.value,F=e.list,O=e.onChange,N=d(e),z=function(e){return function(){var t=e[k];O&&O(t)}};return o().createElement(i.FormControl,{className:(t=N["radio-group"]+" paraui-radio-group",n&&(t+=" "+n),p&&(t+=" radio-group-"+p),y&&(t+=" radio-group-error"),v&&(t+=" radio-group-disabled"),t)},o().createElement(i.FormLabel,null,s,x&&o().createElement("span",{className:"required-char"},"(必填)")),o().createElement(i.FormGroup,{row:m},F.map((function(e,t){return o().createElement(l.default,c({},e,{checked:S===e[k],size:p,disabled:Boolean(v||e.disabled),key:t,onChange:z(e)}))}))),C&&o().createElement(i.FormHelperText,null,C))}},8121:function(e,t,r){var n=r(9297),o=r.n(n),i=r(1731),l=r(6028),a=r.n(l),c=r(4115),s=r.n(c),d=r(6110),u=r.n(d),p=r(19),f=r.n(p),m=r(4861),h=r(8604),v=r(9177),g=r(3475);function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function b(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var y=(0,v.Z)(),w=(0,h.makeStyles)((function(){return(0,h.createStyles)({select:{"& *":{boxSizing:"border-box"},fontFamily:y.fontFamily.zh,display:"inline-block",fontSize:y.standardFont.standardFont1.fontSize,width:"100%",paddingBottom:"20px","& > .select-label":{color:y.textColor.secondary,marginBottom:"9px",display:"inline-block"},"& > .select-content":{lineHeight:"0",border:"1px solid",borderColor:y.textColor.thirdary,borderRadius:y.borderRadius,paddingRight:"30px",position:"relative",cursor:"pointer","&:hover":{borderColor:y.thmemColor.primary,"& > .select-svg":{"& > svg":{color:y.thmemColor.primary}}},"& > .select-label-placeholder":{width:"100%",height:"100%",padding:"0 10px",boxSizing:"border-box",color:y.textColor.thirdary,display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",position:"absolute",left:"0",top:"0"},"& > .select-svg":{position:"absolute",right:"8px",top:"0","& > svg":{fontSize:"16px",transition:"all .3s",color:y.textColor.secondary}},"& > .radio-select-content":{paddingLeft:"10px",color:y.textColor.primary,fontSize:"12px",lineHeight:"16px"},"& > .radio-search-outside":{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",padding:"0 30px 0 10px",fontSize:"12px",cursor:"pointer","& > div":{height:"100%",cursor:"pointer","& > input":{height:"100%",padding:"0",color:y.textColor.primary,fontSize:"12px",cursor:"pointer"},"& fieldset":{display:"none"}}},"& > .check-select-content":{paddingLeft:"10px",height:"100%",overflow:"hidden","& > .check-select-content-item":{display:"inline-block",backgroundColor:y.bgBorderColor.bg2,borderRadius:y.borderRadius,padding:"0 10px",color:y.textColor.primary,fontSize:"12px",marginRight:"10px",verticalAlign:"top",maxWidth:"100%",whiteSpace:"nowrap","&.check-select-content-item-more":{color:y.thmemColor.primary,cursor:"pointer","& > span":{maxWidth:"none"}},"& > span":{display:"inline-block",hieght:"100%",verticalAlign:"top",maxWidth:"calc(100% - 20px)",overflow:"hidden",textOverflow:"ellipsis"},"& > svg":{cursor:"pointer",marginLeft:"8px",color:y.textColor.secondary,fontSize:"16px",position:"relative",top:"2px","&:hover":{color:y.thmemColor.primary}}},"& > .check-search-outside":{width:"10px",maxWidth:"100% !important",display:"none","& > div":{width:"100%","& > input":{width:"100%",padding:"0",color:y.textColor.primary,fontSize:"12px",cursor:"pointer"},"& fieldset":{display:"none"}}}}},"& > .select-error-text":{margin:0,paddingLeft:"10px",height:"20px",lineHeight:"20px"},"&.select-disabled":{"& > .select-content":{backgroundColor:y.bgBorderColor.bg2,cursor:"not-allowed","&:hover":{borderColor:y.textColor.thirdary,"& > .select-svg":{"& > svg":{color:y.textColor.secondary}}},"& > .check-select-content":{"& > .check-select-content-item":{backgroundColor:y.bgBorderColor.bg3,"& > span":{maxWidth:"none"}}}}},"&.select-error":{"& > .select-content":{borderColor:y.stateColor.error+"!important"},"& > .select-error-text":{color:y.stateColor.error+"!important"}},"&.select-multiple":{},"&.select-open":{"& > .select-content":{borderColor:y.thmemColor.primary,"& > .select-svg":{"& > svg":{transform:"rotate(180deg)",color:y.thmemColor.primary}},"& > .check-select-content":{"& > .check-search-outside":{display:"inline-block"}}}},"&.select-small":{"& > .select-content":{height:"28px","& > .select-label-placeholder":{lineHeight:"26px"},"& > .select-svg":{top:"5px"},"& > .radio-select-content":{paddingTop:"5px",paddingBottom:"5px"},"& > .radio-search-outside":{"& > div":{paddingTop:"5px",paddingBottom:"5px"}},"& > .check-select-content":{paddingBottom:"3px","& > .check-select-content-item":{marginTop:"3px",height:"20px",lineHeight:"20px"},"& > .check-search-outside":{marginTop:"3px","& input":{height:"20px"}}}}},"&.select-medium":{"& > .select-content":{height:"34px","& > .select-label-placeholder":{lineHeight:"32px"},"& > .select-svg":{top:"8px"},"& > .radio-select-content":{paddingTop:"8px",paddingBottom:"8px"},"& > .radio-search-outside":{"& > div":{paddingTop:"8px",paddingBottom:"8px"}},"& > .check-select-content":{paddingBottom:"4px","& > .check-select-content-item":{marginTop:"4px",height:"24px",lineHeight:"24px"},"& > .check-search-outside":{marginTop:"4px","& input":{height:"24px"}}}}},"&.select-large":{"& > .select-content":{height:"40px","& > .select-label-placeholder":{lineHeight:"38px"},"& > .select-svg":{top:"11px"},"& > .radio-select-content":{paddingTop:"11px",paddingBottom:"11px"},"& > .radio-search-outside":{"& > div":{paddingTop:"11px",paddingBottom:"11px"}},"& > .check-select-content":{paddingBottom:"7px","& > .check-select-content-item":{marginTop:"7px",height:"24px",lineHeight:"24px"},"& > .check-search-outside":{marginTop:"7px","& input":{height:"24px"}}}}},"&.select-over-line":{"&.select-small":{"& > .select-content":{height:"inherit",minHeight:"28px","& > .radio-select-content":{}}},"&.select-medium":{"& > .select-content":{height:"inherit",minHeight:"34px","& > .radio-select-content":{}}},"&.select-large":{"& > .select-content":{height:"inherit",minHeight:"40px","& > .radio-select-content":{}}}}},"select-popover":{"& *":{boxSizing:"border-box"},"& > div":{maxWidth:"none",padding:"0",backgroundColor:y.textColor.white,boxShadow:y.boxShadow,borderRadius:y.borderRadius,"& > span":{color:y.textColor.white},"& .select-popover-content":{maxHeight:"300px",overflow:"auto","& > .select-popover-search":{height:"30px",borderBottom:"1px solid "+y.bgBorderColor.bg3,padding:"0 10px",display:"flex","& > div":{width:"100%","& input":{padding:"0",height:"28px",fontSize:"12px",color:y.textColor.primary,"&::placeholder":{fontSize:"12px",color:y.textColor.thirdary,opacity:1}},"& fieldset":{display:"none"}},"& > svg":{color:y.thmemColor.primary,fontSize:"16px",marginTop:"7px",cursor:"pointer"}},"& > .select-popover-list":{"& .select-popover-list-item":{display:"flex",padding:"7px 10px",cursor:"pointer",lineHeight:"16px","& > .select-popover-list-item-label":{width:"calc(100% - 25px)",color:y.textColor.secondary,fontSize:"12px"},"& > .select-popover-list-item-svg":{lineHeight:"0",display:"none","& > svg":{fontSize:"16px",color:y.thmemColor.primary}},"&.select-popover-list-item-select":{"& > .select-popover-list-item-label":{color:y.thmemColor.primary},"& > .select-popover-list-item-svg":{display:"inline-block"}},"&.select-popover-list-item-hover":{backgroundColor:y.bgBorderColor.bg2,"& > .select-popover-list-item-label":{color:y.thmemColor.primary}},"&.select-popover-list-item-keydown":{backgroundColor:y.bgBorderColor.bg2,"& > .select-popover-list-item-label":{color:y.thmemColor.primary}}},"& > .select-popover-list-group":{"& .select-popover-list-group-label":{display:"inline-block",width:"100%",padding:"7px 10px",color:y.textColor.thirdary,fontSize:"12px"},"& .select-popover-list-item":{padding:"7px 10px 7px 20px"}},"& > .select-nodata":{textAlign:"center",fontSize:"12px",color:y.textColor.primary,padding:"10px"}}}}},"select-more-popover":{"& *":{boxSizing:"border-box"},"& > div:nth-of-type(3),& > div:nth-of-type(2)":{marginLeft:"10px"},"& .select-more":{width:"200px",maxHeight:"300px",overflow:"auto","& > .select-more-title":{height:"30px",padding:"0 10px",color:y.textColor.secondary,borderBottom:"1px solid "+y.bgBorderColor.bg2,lineHeight:"30px",fontSize:"12px",display:"flex",justifyContent:"space-between"},"& > .select-more-content":{"& > .select-more-content-item":{padding:"7px 7px 7px 10px",display:"flex",justifyContent:"space-around","& > span":{width:"calc(100% - 25px)",display:"inline-block",fontSize:"12px"},"& > svg":{color:y.textColor.secondary,fontSize:"16px",position:"relative",top:"1px",cursor:"pointer","&:hover":{color:y.thmemColor.primary}}}}}}})}));t.default=function(e){var t=e.className,r=e.size,l=void 0===r?"small":r,c=e.labelMode,d=void 0===c?"outside":c,p=e.placeholder,h=void 0===p?"":p,v=e.label,y=void 0===v?"":v,C=e.disabled,E=void 0!==C&&C,k=e.multiple,S=void 0!==k&&k,F=e.required,O=void 0!==F&&F,N=e.showLabelSign,z=void 0===N||N,T=e.labelSign,A=e.error,q=void 0!==A&&A,B=e.helperText,j=void 0===B?"":B,I=e.list,M=e.showName,L=void 0===M?"label":M,D=e.showValue,P=void 0===D?"value":D,H=e.childrenName,R=void 0===H?"children":H,W=e.value,Z=e.onChange,V=e.overLine,U=void 0!==V&&V,G=e.search,K=void 0!==G&&G,$=e.searchModel,_=void 0===$?"inside":$,J=e.selectPopoverClassName,Y=e.morePopoverClassName,X=e.onEnter,Q=w(e),ee=(0,n.useRef)(null),te=x((0,n.useState)("select-"+(0,g.UUID)()),1)[0],re=x((0,n.useState)("select-popover-"+(0,g.UUID)()),1)[0],ne=x((0,n.useState)(!1),2),oe=ne[0],ie=ne[1],le=x((0,n.useState)(!1),2),ae=le[0],ce=le[1],se=x((0,n.useState)([]),2),de=se[0],ue=se[1],pe=x((0,n.useState)([]),2),fe=pe[0],me=pe[1],he=x((0,n.useState)({}),2),ve=he[0],ge=he[1],xe=x((0,n.useState)(null),2),be=xe[0],ye=xe[1],we=x((0,n.useState)({}),1)[0],Ce=x((0,n.useState)(!1),2),Ee=Ce[0],ke=Ce[1],Se=x((0,n.useState)(""),2),Fe=Se[0],Oe=Se[1],Ne=x((0,n.useState)(!1),2),ze=Ne[0],Te=Ne[1],Ae=(0,n.useRef)(null);(0,n.useEffect)((function(){void 0!==W&&ue(S?(0,g.DeepClone)(W||[]):""===W?[]:[W])}),[W,S]),(0,n.useEffect)((function(){if(K&&"outside"===_)return Te(!!S);Te(U)}),[U,K,_,S]),(0,n.useEffect)((function(){for(var e={},t=0,r=I.length;t<r;t++){var n=I[t];if(n[R]&&n[R].length>0)for(var o=n[R],i=0,l=o.length;i<l;i++){var a=o[i];e[a[P]]=a}else e[n[P]]=n}ge(e)}),[I]),(0,n.useEffect)((function(){S&&(ze||ye(de.length))}),[ze,S,de]),(0,n.useEffect)((function(){return ze?ye(de.length):(setTimeout((function(){Le(de.length)})),window.addEventListener("resize",De)),function(){window.removeEventListener("resize",De)}}),[de,ze]),(0,n.useEffect)((function(){de&&de.length>0?ce(!0):(ce(!1),K&&"outside"===_&&ce(""!==Fe))}),[K,Fe,_,de]),(0,n.useEffect)((function(){clearTimeout(we.searchTimer),K&&""!==Fe.trim()?we.searchTimer=setTimeout((function(){for(var e=[],t=(0,g.DeepClone)(I),r=0,n=t.length;r<n;r++){var o=t[r];if(o[R]&&o[R].length>0){for(var i=o[R],l=[],a=0,c=i.length;a<c;a++){var s=i[a];Me(s)&&l.push(s)}l.length>0&&(o[R]=l,e.push(o))}else{Me(o)&&e.push(o)}}me(e)}),100):me((0,g.DeepClone)(I))}),[K,Fe,I]),(0,n.useEffect)((function(){return oe?setTimeout((function(){Be(),window.addEventListener("click",Ie),window.addEventListener("keydown",_e)})):(Oe(""),window.removeEventListener("click",Ie),window.removeEventListener("keydown",_e)),function(){window.removeEventListener("click",Ie),window.removeEventListener("keydown",_e)}}),[oe]),(0,n.useEffect)((function(){Fe&&ie(!0)}),[Fe]),(0,n.useEffect)((function(){S&&"outside"===_&&!E&&Ge(Fe)}),[Fe,S,E,_]);var qe,Be=function(){var e=Ae&&Ae.current,t=e&&e.querySelector("input");t&&t.focus()},je=function(e,t){for(var r=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;e&&!r.call(e,t);)e=e.parentElement;return e},Ie=function(e){je(e.target,"."+re)||ie(!1)},Me=function(e){var t=!1;return-1!==e[L].indexOf(Fe)&&(t=!0),t},Le=function(e){if(null!==e&&0!==e){void 0===e&&(e=de.length);var t=document.querySelector("."+te+" > .select-content > .check-select-content");if(t)if(t.scrollHeight>t.clientHeight){var r=Number(e)-1;ye(r),Le(r)}else de.length<=e&&We()}},De=function(){clearTimeout(we.timer),we.timer=setTimeout((function(){ye(de.length),Le()}),100)},Pe=function(){E||ie(!0)},He=function(){ie(!1)},Re=function(e){ke(!0),ie(!1),e.stopPropagation()},We=function(){ke(!1)},Ze=function(e,t){return function(r){var n=e[P];if(S){var o=de.indexOf(n);-1!==o?de.splice(o,1):de.push(n),Z&&Z(b(de),r),t&&X&&X(b(de)),Be()}else Z&&Z(n,r),t&&X&&X(n),He(),Oe("")}},Ve=function(e,t){return function(r){e||(e=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},P,t)),Ze(e)(r),r.stopPropagation()}},Ue=function(e){Oe(e.target.value)},Ge=function(e){var t=Ae&&Ae.current,r=t&&t.querySelector("input");if(!r)return null;var n=window.getComputedStyle(r),o=n.fontFamily,i=function(e,t,r){var n=document.createElement("span");n.id="referenceSpan";var o={};o.width=n.offsetWidth,o.height=n.offsetHeight,n.style.visibility="hidden",n.style.fontSize=e,n.style.fontFamily=t,n.style.display="inline-block";var i=document.getElementById("referenceSpan");return i&&document.body.removeChild(i),document.body.appendChild(n),void 0!==n.textContent?n.textContent=r:n.innerText=r,o.width=parseFloat(window.getComputedStyle(n).width)-o.width,o.height=parseFloat(window.getComputedStyle(n).height)-o.height,document.body.removeChild(n),o}(n.fontSize,o,e).width;i<10&&(i=10),t.style.width=i+"px"},Ke=function(e){var t=e.selectDom,r=e.keyCode,n=e.currentKeydownDom,o=null,i="nextSibling",l=".select-popover-list > div",a=".select-popover-list-item";if(38===r&&(i="previousSibling",l=".select-popover-list > div:last-child",a=".select-popover-list-item:last-child"),n)if(o=n[i])-1!==o.className.indexOf("select-popover-list-group-label")&&((o=(o=n.parentNode)[i])||(o=t.querySelector(l)));else{var c=n.parentNode;c&&c.className&&-1!==c.className.indexOf("select-popover-list-group")&&(o=(o=n.parentNode)[i])||(o=t.querySelector(l))}else o=t.querySelector(l);if(o)if(-1!==o.className.indexOf("select-popover-list-group")){var s=o.querySelector(a);s&&(s.classList.add("select-popover-list-item-keydown"),$e(s,t))}else o.classList.add("select-popover-list-item-keydown"),$e(o,t)},$e=function(e,t){clearTimeout(we.scrollTimer);var r=t.clientHeight,n=e.offsetTop+e.clientHeight-r;we.scroll=!0,t.scrollTop=n>0?n:0,we.scrollTimer=setTimeout((function(){we.scroll=!1}),100)},_e=function(e){var t=document.querySelector("."+re);if(t){var r=t.querySelector(".select-popover-list-item-select"),n=t.querySelector(".select-popover-list-item-hover"),o=t.querySelector(".select-popover-list-item-keydown"),i=r;if(n&&(i=n),13===e.keyCode){var l=o||n;if(l){var a=l.dataset.val;Ze(ve[a],!0)({target:o})}else X&&X(W)}o&&(i=o,o.classList.remove("select-popover-list-item-keydown")),40===e.keyCode&&Ke({selectDom:t,keyCode:e.keyCode,currentKeydownDom:i}),38===e.keyCode&&Ke({selectDom:t,keyCode:e.keyCode,currentKeydownDom:i})}},Je=function(e){if(!we.scroll){var t=je(e.target,".select-popover-list-item");if(t){t.classList.add("select-popover-list-item-hover");var r=document.querySelector("."+re).querySelector(".select-popover-list-item-keydown");r&&r.classList.remove("select-popover-list-item-keydown")}}},Ye=function(e){var t=je(e.target,".select-popover-list-item");t&&t.classList.remove("select-popover-list-item-hover")},Xe=(0,n.useMemo)((function(){return o().createElement(o().Fragment,null,"outside"===d&&o().createElement("label",{className:"select-label"},y,z&&o().createElement("span",{className:"identification-label"},T||o().createElement(o().Fragment,null,O?"(必填)":""))))}),[d,y,z,T,O]),Qe=(0,n.useMemo)((function(){return o().createElement(o().Fragment,null,!ae&&o().createElement("span",{className:"select-label-placeholder"},"outside"===d?h:o().createElement(o().Fragment,null,y||h,z&&o().createElement("span",{className:"identification-label"},T||o().createElement(o().Fragment,null,O?"(必填)":"")))))}),[ae,d,h,y,z,T,O]),et=(0,n.useMemo)((function(){return o().createElement(o().Fragment,null,!S&&o().createElement(o().Fragment,null,o().createElement("div",{className:"radio-select-content"},function(){if(""!==Fe)return null;var e=ve[de[0]]&&ve[de[0]][L]||de[0];return ze?e:o().createElement(m.default,null,e)}()),K&&"outside"===_&&!E&&o().createElement(i.TextField,{variant:"outlined",className:"radio-search-outside",value:Fe,onChange:Ue,ref:Ae})))}),[S,ae,ze,ve,de,L,K,_,Fe,E]),tt=(0,n.useMemo)((function(){return o().createElement(o().Fragment,null,S&&o().createElement("div",{className:"check-select-content"},de&&de.map((function(e,t){return null!==be&&be<=t?null:o().createElement("div",{className:"check-select-content-item",key:t},o().createElement("span",null,function(e){return ve[de[e]]&&ve[de[e]][L]||de[e]}(t)),!E&&o().createElement(f(),{onClick:Ve(ve[de[t]],de[t])}))})),function(){if(null!==be&&de.length>be)return o().createElement("div",{className:"check-select-content-item check-select-content-item-more",onClick:Re},o().createElement("span",null,"+",de.length-be))}(),K&&"outside"===_&&!E&&o().createElement(i.TextField,{variant:"outlined",className:"check-search-outside",value:Fe,onChange:Ue,ref:Ae})))}),[S,ae,de,be,ve,E,Z,Fe,K,_]),rt=(0,n.useMemo)((function(){return o().createElement("div",{className:"select-content",onClick:Pe,ref:ee},Qe,o().createElement("span",{className:"select-svg"},o().createElement(a(),null)),et,tt)}),[ee,ae,d,h,y,z,T,O,ze,ve,de,L,S,be,E,Z,Fe,_]),nt=(0,n.useMemo)((function(){return o().createElement("div",{className:"select-popover-list"},fe&&fe.length>0?o().createElement(o().Fragment,null,fe.map((function(e,t){if(e[R]&&e[R].length>0){var r=e[R];return o().createElement("div",{className:"select-popover-list-group",key:t},o().createElement("span",{className:"select-popover-list-group-label"},e[L]),r.map((function(e,t){var r=e[P],n="select-popover-list-item";return-1!==de.indexOf(r)&&(n+=" select-popover-list-item-select"),o().createElement("div",{onClick:Ze(e),className:n,onMouseEnter:Je,onMouseLeave:Ye,"data-val":r,key:t},o().createElement("span",{className:"select-popover-list-item-label"},o().createElement(m.default,null,e[L])),o().createElement("span",{className:"select-popover-list-item-svg"},o().createElement(u(),null)))})))}var n=e[P],i="select-popover-list-item";return-1!==de.indexOf(n)&&(i+=" select-popover-list-item-select"),o().createElement("div",{onClick:Ze(e),className:i,onMouseEnter:Je,onMouseLeave:Ye,"data-val":n,key:t},o().createElement("span",{className:"select-popover-list-item-label"},o().createElement(m.default,null,e[L])),o().createElement("span",{className:"select-popover-list-item-svg"},o().createElement(u(),null)))}))):o().createElement("div",{className:"select-nodata"},"暂无选项"))}),[fe,L,P,de,Z]),ot=(0,n.useMemo)((function(){var e="select-popover-content "+re;return o().createElement("div",{style:{width:(ee&&ee.current?ee.current.offsetWidth:0)+"px"},className:e},K&&"inside"===_&&o().createElement("div",{className:"select-popover-search"},o().createElement(i.TextField,{variant:"outlined",placeholder:"请输入搜索名",value:Fe,onChange:Ue,ref:Ae}),o().createElement(s(),null)),nt)}),[oe,ee,fe,R,P,L,de,Fe,K,re,_]),it=(0,n.useMemo)((function(){var e;return o().createElement(i.Popover,{open:Ee,anchorEl:ee&&ee.current,onClose:We,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},className:(e=Q["select-more-popover"],Y&&(e+=" "+Y),e)},o().createElement("div",{className:"select-more"},o().createElement("div",{className:"select-more-title"},o().createElement("span",null,"已选中"),o().createElement("span",null,de.length-Number(be))),o().createElement("div",{className:"select-more-content"},de&&de.map((function(e,t){return null!==be&&be>t?null:o().createElement("div",{className:"select-more-content-item",key:t},o().createElement("span",null,o().createElement(m.default,null,function(e){return ve[de[e]]&&ve[de[e]][L]||de[e]}(t))),!E&&o().createElement(f(),{onClick:Ve(ve[de[t]],de[t])}))})))))}),[Ee,de,be,ve,E,L,Y]);return o().createElement("div",{className:(qe=Q.select,qe+=" select",S&&!ze&&(qe+=" "+te),t&&(qe+=" "+t),l&&(qe+=" select-"+l),q&&(qe+=" select-error"),E&&(qe+=" select-disabled"),oe&&(qe+=" select-open"),S&&(qe+=" select-multiple"),ze&&(qe+=" select-over-line"),qe)},Xe,o().createElement(i.Tooltip,{open:oe,title:ot,onClose:He,interactive:!0,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,arrow:!0,classes:{popper:function(){var e=Q["select-popover"];return J&&(e+=" "+J),e}()},placement:"bottom-start"},rt),j&&o().createElement("p",{className:"select-error-text"},j),it)}},6203:function(e,t,r){var n=r(9297),o=r.n(n),i=r(1731),l=r(8604),a=r(9177),c=r(4927);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function d(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var u=(0,a.Z)(),p=(0,l.withStyles)((function(e){return(0,l.createStyles)({root:{width:"auto",height:"auto",padding:0,overflow:"visible"},switchBase:{padding:0,top:-2,color:u.bgBorderColor.bg4,"&$checked":{color:u.thmemColor.primary},"&$checked + $track":{backgroundColor:u.thmemColor.thirdary,opacity:1}},checked:{},thumb:{width:18,height:18},track:{width:32,height:14,borderRadius:7,backgroundColor:u.bgBorderColor.bg1,opacity:1},input:{left:"auto",width:"auto"}})}),{name:"SwitchCompact"})(i.Switch),f=(0,l.withStyles)((function(e){return(0,l.createStyles)({root:{width:"auto",height:"auto",padding:0},switchBase:{padding:2,color:u.textColor.white,"&$checked":{transform:"translateX(14px)",color:u.textColor.white,"& + $track":{backgroundColor:u.thmemColor.primary,opacity:1}}},thumb:{width:14,height:14},track:{width:32,height:18,borderRadius:9,backgroundColor:u.bgBorderColor.bg4,opacity:1},input:{left:"auto",width:"auto"},checked:{}})}),{name:"SwitchNormal"})(i.Switch),m=(0,l.makeStyles)((function(){return(0,l.createStyles)({smallThumb:function(e){return"compact"===e.type?{width:16,height:16,borderRadius:8}:{width:12,height:12,borderRadius:6}},smallTrack:function(e){return"compact"===e.type?{width:30,height:12,borderRadius:6}:{width:30,height:16,borderRadius:8}},largeThumb:function(e){return"compact"===e.type?{width:20,height:20,borderRadius:10}:{width:16,height:16,borderRadius:8}},largeTrack:function(e){return"compact"===e.type?{width:34,height:16,borderRadius:8}:{width:34,height:20,borderRadius:10}}})}));t.default=function(e){var t=e.type,r=void 0===t?"normal":t,n=e.size,i=void 0===n?"medium":n,l=e.className,a=d(e,["type","size","className"]),u=m({type:r});return o().createElement(o().Fragment,null,function(){if("compact"===r){var e="medium"===i?{}:{thumb:u["".concat(i,"Thumb")],track:u["".concat(i,"Track")]};return o().createElement(p,s({},a,{classes:e,className:(0,c.Z)("paraui-switch",l)}))}e="medium"===i?{}:{thumb:u["".concat(i,"Thumb")],track:u["".concat(i,"Track")]};return o().createElement(f,s({},a,{classes:e,className:(0,c.Z)("paraui-switch",l)}))}())}},4923:function(e,t,r){var n=r(9297),o=r.n(n),i=r(1731),l=r(4861),a=r(8528),c=r.n(a),s=r(6570),d=r.n(s),u=r(1102),p=r.n(u),f=r(8604),m=r(9177),h=r(3475);function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function g(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var b=(0,m.Z)(),y=(0,f.makeStyles)((function(){return(0,f.createStyles)({"@keyframes rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"text-field":{fontFamily:b.fontFamily.zh,display:"inline-block",fontSize:b.standardFont.standardFont1.fontSize,width:"100%",paddingBottom:"20px","& fieldset":{border:0},"& .text-field-error-text":{margin:0,paddingLeft:"10px",height:"20px",lineHeight:"20px"},"& .text-field-label":{color:b.textColor.secondary,marginBottom:"9px",display:"inline-block"},"& .text-field-content":{border:"1px solid",borderColor:b.textColor.thirdary,borderRadius:b.borderRadius,position:"relative",display:"table",width:"100%",boxSizing:"border-box","&:hover":{borderColor:b.thmemColor.primary},"& > div":{display:"table-cell",height:"100%",verticalAlign:"top"},"& .text-field-content-before":{color:b.textColor.primary,padding:"0 10px",borderRight:"1px solid "+b.textColor.thirdary,backgroundColor:b.bgBorderColor.bg2,borderBottomLeftRadius:b.borderRadius,borderTopLeftRadius:b.borderRadius,whiteSpace:"nowrap","& svg":{fontSize:"20px",verticalAlign:"top",position:"relative"}},"& .text-field-content-within":{position:"relative",width:"100%","& > *":{display:"table-cell",verticalAlign:"top"},"& svg":{fontSize:"20px",color:b.textColor.secondary,cursor:"pointer"},"& .right-icon":{zIndex:"1",position:"relative",whiteSpace:"nowrap","& > svg":{marginRight:"10px"}},"& .length-limit":{zIndex:"1",position:"relative",paddingRight:"10px",color:b.textColor.secondary},"& .text-field-content-within-input":{width:"100vw","& > div":{width:"100%"},"& input":{height:"100%"},"& input,textarea":{fontSize:b.standardFont.standardFont1.fontSize,color:b.textColor.primary,"&:-ms-clear":{display:"none"},"&:-ms-reveal":{display:"none"}},"& .text-field-label-placeholder":{width:"100%",position:"absolute",left:"0",height:"100%",padding:"0 10px",boxSizing:"border-box",color:b.textColor.thirdary,cursor:"text",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},"& .text-field-content-after":{color:b.textColor.primary,padding:"0 10px",borderLeft:"1px solid",borderColor:b.textColor.thirdary,backgroundColor:b.bgBorderColor.bg2,borderBottomRightRadius:b.borderRadius,borderTopRightRadius:b.borderRadius,whiteSpace:"nowrap","& svg":{fontSize:"20px",verticalAlign:"top",position:"relative"}}},"& .identification-label":{marginLeft:"3px"},"&.text-field-multiline":{"& .text-field-content":{"& .text-field-content-within":{"& > *":{display:"inline-block"},"& .length-limit":{width:"100%",boxSizing:"border-box",textAlign:"right",paddingBottom:"5px"},"& .text-field-content-within-input":{width:"100%","& > div:first-child":{width:"100%","& > div:first-child":{padding:"10px"}},"& .text-field-label-placeholder":{paddingTop:"10px"}}}}},"&.text-field-disabled":{"& .text-field-content":{backgroundColor:b.bgBorderColor.bg3,"&:hover":{borderColor:b.textColor.thirdary},"& .text-field-content-within":{"& .text-field-content-within-input":{"& .text-field-label-placeholder":{cursor:"not-allowed"},"& input":{cursor:"not-allowed",color:b.textColor.thirdary}}}}},"&.text-field-error":{"& .text-field-error-text":{color:b.stateColor.error},"& .text-field-content":{borderColor:b.stateColor.error,"&:hover":{borderColor:b.stateColor.error},"& .text-field-content-before":{borderColor:b.stateColor.error},"& .text-field-content-after":{borderColor:b.stateColor.error}}},"&.text-field-focus":{"& .text-field-content":{borderColor:b.thmemColor.primary,"& .text-field-content-before":{borderColor:b.thmemColor.primary},"& .text-field-content-after":{borderColor:b.thmemColor.primary}}},"&.text-field-small":{"& .text-field-content":{height:"28px","& .text-field-content-before":{lineHeight:"26px","& svg":{top:"3px"}},"& .text-field-content-within":{"& .text-field-content-within-input":{"& > div":{height:"26px","& > div":{height:"100%"}}},"& input":{padding:"5px 10px"},"& .text-field-label-placeholder":{lineHeight:"26px"},"& .right-icon":{paddingTop:"3px"},"& .length-limit":{lineHeight:"26px"}},"& .text-field-content-after":{lineHeight:"26px","& svg":{top:"3px"}}}},"&.text-field-medium":{"& .text-field-content":{height:"34px","& .text-field-content-before":{lineHeight:"32px","& svg":{top:"6px"}},"& .text-field-content-within":{"& .text-field-content-within-input":{"& > div":{height:"32px","& > div":{height:"100%"}}},"& input":{padding:"8px 10px"},"& .text-field-label-placeholder":{lineHeight:"32px"},"& .right-icon":{paddingTop:"7px"},"& .length-limit":{lineHeight:"32px","& svg":{top:"6px"}}},"& .text-field-content-after":{lineHeight:"32px","& svg":{top:"6px"}}}},"&.text-field-large":{"& .text-field-content":{height:"40px","& .text-field-content-before":{lineHeight:"38px","& svg":{top:"9px"}},"& .text-field-content-within":{"& .text-field-content-within-input":{"& > div":{height:"38px","& > div":{height:"100%"}}},"& input":{padding:"11px 10px"},"& .text-field-label-placeholder":{lineHeight:"38px"},"& .right-icon":{paddingTop:"10px"},"& .length-limit":{lineHeight:"38px"}},"& .text-field-content-after":{lineHeight:"38px","& svg":{top:"9px"}}}}},"text-field-select":{"& > div":{maxWidth:"none",padding:"0",backgroundColor:b.textColor.white,boxShadow:b.boxShadow,borderRadius:b.borderRadius,"& > span":{color:b.textColor.white},"& .text-field-select-content":{maxHeight:"300px",overflow:"auto","& > .text-field-select-content-item":{display:"flex",padding:"7px 10px",cursor:"pointer",lineHeight:"16px",color:b.textColor.secondary,"&:hover":{backgroundColor:b.bgBorderColor.bg2,color:b.thmemColor.primary},"&.text-field-select-content-item-keydown":{backgroundColor:b.bgBorderColor.bg2,color:b.thmemColor.primary}},"&.text-field-select-content-loading":{height:"100px",position:"relative",overflow:"hidden","& > .loading-box":{position:"absolute",left:"0",top:"0",width:"100%",height:"100%",backgroundColor:"white",display:"flex",justifyContent:"center",alignItems:"center","& > svg":{transition:"all .3s ease-in-out",animation:"$rotate 1s infinite linear",fontSzie:"20px"}}}}}}})}));t.default=function(e){var t=e.className,r=e.size,a=void 0===r?"small":r,s=e.labelMode,u=void 0===s?"outside":s,f=e.placeholder,m=void 0===f?"":f,b=e.label,w=void 0===b?"":b,C=e.disabled,E=void 0!==C&&C,k=e.multiline,S=void 0!==k&&k,F=e.required,O=void 0!==F&&F,N=e.showLabelSign,z=void 0===N||N,T=e.labelSign,A=e.rows,q=void 0===A?2:A,B=e.error,j=void 0!==B&&B,I=e.helperText,M=void 0===I?"":I,L=e.addonBefore,D=void 0===L?"":L,P=e.addonAfter,H=void 0===P?"":P,R=e.value,W=e.controlled,Z=void 0!==W&&W,V=e.autoFocus,U=void 0!==V&&V,G=e.type,K=void 0===G?"text":G,$=e.onClickIcon,_=e.rightIcon,J=e.showRightIcon,Y=void 0===J||J,X=e.limitLength,Q=e.fetchSuggestions,ee=e.selectPopoverClass,te=e.renderSelectItem,re=e.showSelectName,ne=void 0===re?"value":re,oe=e.onBlur,ie=e.onFocus,le=e.onChange,ae=e.onKeydown,ce=e.onKeyUp,se=e.onEnter,de=e.onClickAddonBefore,ue=e.onClickAddonAfter,pe=e.onSelect,fe=g(e,["className","size","labelMode","placeholder","label","disabled","multiline","required","showLabelSign","labelSign","rows","error","helperText","addonBefore","addonAfter","value","controlled","autoFocus","type","onClickIcon","rightIcon","showRightIcon","limitLength","fetchSuggestions","selectPopoverClass","renderSelectItem","showSelectName","onBlur","onFocus","onChange","onKeydown","onKeyUp","onEnter","onClickAddonBefore","onClickAddonAfter","onSelect"]),me=y(e),he=x((0,n.useState)("text-field-select-content-"+(0,h.UUID)()),1)[0],ve=x((0,n.useState)(!0),2),ge=ve[0],xe=ve[1],be=x((0,n.useState)(),2),ye=be[0],we=be[1],Ce=x((0,n.useState)(!1),2),Ee=Ce[0],ke=Ce[1],Se=x((0,n.useState)(0),2),Fe=Se[0],Oe=Se[1],Ne=x((0,n.useState)("text"),2),ze=Ne[0],Te=Ne[1],Ae=x((0,n.useState)(!1),2),qe=Ae[0],Be=Ae[1],je=x((0,n.useState)(!1),2),Ie=je[0],Me=je[1],Le=x((0,n.useState)([]),2),De=Le[0],Pe=Le[1],He=(x((0,n.useState)({}),1)[0],(0,n.useRef)(null)),Re=(0,n.useRef)(null),We=(0,n.useRef)(null);(0,n.useEffect)((function(){He&&He.current&&Oe(He.current.offsetWidth)}),[]),(0,n.useEffect)((function(){K!==ze&&Te(K)}),[K]),(0,n.useEffect)((function(){we(R)}),[R]),(0,n.useEffect)((function(){xe(""===ye||void 0===ye)}),[ye]),(0,n.useEffect)((function(){Q&&Be(Ee)}),[Ee,Q]),(0,n.useEffect)((function(){return qe?window.addEventListener("keydown",Ke):window.removeEventListener("keydown",Ke),function(){window.removeEventListener("keydown",Ke)}}),[qe]);var Ze,Ve=function(){E||(xe(!1),(Re&&Re.current&&Re.current.querySelector(S?"textarea":"input")).focus())},Ue=function(e){var t=e.selectDom,r=e.keyCode,n=e.currentDom,o="nextSibling",i=".text-field-select-content-item";38===r&&(o="previousSibling",i=".text-field-select-content-item:last-child"),n?(n=n[o])||(n=t.querySelector(i)):n=t.querySelector(".text-field-select-content-item"),n&&(n.classList.add("text-field-select-content-item-keydown"),Ge(n,t))},Ge=function(e,t){var r=t.clientHeight,n=e.offsetTop+e.clientHeight-r;t.scrollTop=n>0?n:0},Ke=function(e){var t=document.querySelector("."+he),r=null,n=t.querySelector(".text-field-select-content-item-keydown");if(13===e.keyCode&&n){var o=n.dataset.val;rt(JSON.parse(o))(e),(Re&&Re.current&&Re.current.querySelector(S?"textarea":"input")).blur()}n&&(r=n,n.classList.remove("text-field-select-content-item-keydown")),40===e.keyCode&&Ue({selectDom:t,keyCode:e.keyCode,currentDom:r}),38===e.keyCode&&Ue({selectDom:t,keyCode:e.keyCode,currentDom:r})},$e=function(e){ke(!1),""===e.target.value&&xe(!0),oe&&oe(e)},_e=function(e){Me(!0),Q&&Q(e,(function(e){Pe(e||[]),Me(!1)}))},Je=function(e){ke(!0),ie&&ie(e),_e(e.target.value)},Ye=function(e){var t=e.target.value;X&&void 0!==t&&""!==t&&t.toString().length>X||(Z||we(t),le&&le(e),_e(e.target.value))},Xe=function(e){13===e.keyCode&&se&&se(e),ae&&ae(e)},Qe=function(e){ce&&ce(e)},et=function(e){"password"===K&&("text"===ze&&Te("password"),"password"===ze&&Te("text")),$&&$(e)},tt=function(){Be(!1)},rt=function(e){return function(t){pe&&pe(e)}},nt=(0,n.useMemo)((function(){return o().createElement(o().Fragment,null,void 0!==X&&o().createElement("span",{className:"length-limit"},(ye?ye.toString().length:0)+"/"+X))}),[X,ye]),ot=(0,n.useMemo)((function(){return o().createElement(o().Fragment,null,Y&&o().createElement("span",{className:"right-icon",onClick:et},_||("password"===K?"password"===ze?o().createElement(c(),null):o().createElement(d(),null):null)))}),[Y,_,K,ze]),it=(0,n.useMemo)((function(){return o().createElement("div",{className:"text-field-content-within",ref:We},o().createElement("div",{className:"text-field-content-within-input"},o().createElement(i.TextField,v({size:"small",variant:"outlined",autoFocus:U,ref:Re,type:ze,value:ye||"",disabled:E,multiline:S,rows:q,onBlur:$e,onFocus:Je,onChange:Ye,onKeyDown:Xe,onKeyUp:Qe},fe)),ge&&o().createElement("span",{className:"text-field-label-placeholder",onClick:Ve},"outside"===u?m:o().createElement(o().Fragment,null,w||m,z&&o().createElement("span",{className:"identification-label"},T||o().createElement(o().Fragment,null,O?"(必填)":""))))),nt,ot)}),[ge,U,ze,ye,nt,ot,u,m,w,E,S,q,fe,le,Q]),lt=(0,n.useMemo)((function(){var e;return o().createElement("div",{className:(e="text-field-select-content",Ie&&(e+=" text-field-select-content-loading"),he&&(e+=" "+he),e),style:{width:(We&&We.current?We.current.offsetWidth:0)+"px"}},De&&De.map((function(e,t){return o().createElement("div",{className:"text-field-select-content-item",key:t,onMouseDown:rt(e),"data-val":JSON.stringify(e)},te?te(e):o().createElement(l.default,null,e[ne]))})),Ie&&o().createElement("div",{className:"loading-box"},o().createElement(p(),null)))}),[We,qe,De,te,ne,pe,Ie,he]),at=(0,n.useMemo)((function(){return o().createElement(i.Tooltip,{open:qe,title:lt,onClose:tt,interactive:!0,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,arrow:!0,classes:{popper:(e=me["text-field-select"],ee&&(e+=" "+ee),e)}},it);var e}),[ge,U,ze,ye,nt,ot,u,m,w,E,S,q,fe,le,Q,pe,We,qe,ee]),ct=(0,n.useMemo)((function(){var e=Boolean(z&&(T||O));if("outside"===u&&(w||e))return o().createElement("label",{className:"text-field-label"},w,z&&o().createElement("span",{className:"identification-label"},T||o().createElement(o().Fragment,null,O?"(必填)":"")))}),[u,w,z,T,O]);return o().createElement("div",{className:(Ze=me["text-field"],Ze+=" text-field",a&&!S&&(Ze+=" text-field-"+a),t&&(Ze+=" "+t),j&&(Ze+=" text-field-error"),Ee&&(Ze+=" text-field-focus"),E&&(Ze+=" text-field-disabled"),S&&(Ze+=" text-field-multiline"),Ze)},ct,o().createElement("div",{className:"text-field-content"},D&&o().createElement("div",{className:"text-field-content-before",ref:He,onClick:function(e){de&&de(e)}},D),Q?at:it,H&&o().createElement("div",{className:"text-field-content-after",onClick:function(e){ue&&ue(e)}},H)),M&&o().createElement("p",{className:"text-field-error-text",style:{marginLeft:Fe+"px"}},M))}},1731:function(e){e.exports=n},8604:function(e){e.exports=r},6110:function(e){e.exports=d},19:function(e){e.exports=u},6243:function(e){e.exports=p},6028:function(e){e.exports=c},9973:function(e){e.exports=f},1102:function(e){e.exports=l},6570:function(e){e.exports=i},8528:function(e){e.exports=o},4115:function(e){e.exports=s},6897:function(e){e.exports=t},3475:function(e){e.exports=a},9297:function(t){t.exports=e}},h={};function v(e){var t=h[e];if(void 0!==t)return t.exports;var r=h[e]={exports:{}};return m[e](r,r.exports,v),r.exports}v.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return v.d(t,{a:t}),t},v.d=function(e,t){for(var r in t)v.o(t,r)&&!v.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},v.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},v.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var g={};return function(){v.r(g);var e=v(9297),t=v.n(e),r=v(3504),n=v(5836);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function l(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}g.default=function(e){var a=e.FormProps,c=e.configList,s=e.type,d=e.getCheckForm,u=e.backData,p=void 0===u?{}:u,f=e.disabled,m=e.onChange,h=e.getForcedRefresh,v=e.form,g=i(t().useState(c),2),x=g[0],b=g[1],y=t().useRef({allItems:{},itemsCheckStatus:{},itemsCheckMessage:{},allValues:p}),w=function(e,t){if(t)for(var r in t)y.current.allValues[r]=t[r];b(e||x&&l(x))},C=function(e,t,r){switch(t){case"status":y.current.itemsCheckStatus[e]=r;break;case"message":y.current.itemsCheckMessage[e]=r;break;case"item":y.current.allItems[e]=r;break;case"initValue":y.current.allValues[e]=r;break;default:y.current.allValues[e]=r,m&&m(e,r)}},E=function(){var e=0;for(var t in y.current.allItems){var r=y.current.allItems[t];if(!r.disabled&&!r.hide&&!0!==y.current.itemsCheckStatus[t])if(!1!==y.current.itemsCheckStatus[t]){var o=(0,n.Z)(r,y.current.allValues[t]);o&&(e++,"string"==typeof o&&(y.current.itemsCheckMessage[t]=o),r.setErrorMsg&&r.setErrorMsg(o))}else e++}return console.log("checkFrom",e),!e&&y.current.allValues};return t().useEffect((function(){d&&d(E),h&&h(w)}),[d,h]),t().useEffect((function(){for(var e in p)y.current.allValues[e]=p[e]}),[p]),t().useEffect((function(){b(c)}),[c]),t().useEffect((function(){v&&(v.current={get refreshForm(){return w},get check(){return E},get items(){return y.current.allItems},get values(){return y.current.allValues},get refData(){return y.current}})}),[v]),t().createElement("form",o({},a),t().createElement("div",{className:"para-form-content"},x&&x.length>0&&x.map((function(e,n){return e.hide&&C(e.name,"item",e),!e.hide&&t().createElement(r.default,o({key:"para-form-item-".concat(n),type:s,disabled:f,errorMessage:y.current.itemsCheckMessage[e.name]},e,{backData:y.current.allValues,setValue:C}))}))))}}(),g}()}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@para-ui/icons/WarningCircle"),require("@material-ui/core/styles"),require("@material-ui/core"),require("@para-ui/icons/PreviewOpen"),require("@para-ui/icons/PreviewClose"),require("@para-ui/icons/LoadingF"),require("para-lib"),require("@para-ui/icons/Down"),require("@para-ui/icons/Search"),require("@para-ui/icons/Check"),require("@para-ui/icons/Close"),require("@para-ui/icons/Delete"),require("@para-ui/icons/LinkGroup")):"function"==typeof define&&define.amd?define(["react","@para-ui/icons/WarningCircle","@material-ui/core/styles","@material-ui/core","@para-ui/icons/PreviewOpen","@para-ui/icons/PreviewClose","@para-ui/icons/LoadingF","para-lib","@para-ui/icons/Down","@para-ui/icons/Search","@para-ui/icons/Check","@para-ui/icons/Close","@para-ui/icons/Delete","@para-ui/icons/LinkGroup"],t):"object"==typeof exports?exports.ParaUI=t(require("react"),require("@para-ui/icons/WarningCircle"),require("@material-ui/core/styles"),require("@material-ui/core"),require("@para-ui/icons/PreviewOpen"),require("@para-ui/icons/PreviewClose"),require("@para-ui/icons/LoadingF"),require("para-lib"),require("@para-ui/icons/Down"),require("@para-ui/icons/Search"),require("@para-ui/icons/Check"),require("@para-ui/icons/Close"),require("@para-ui/icons/Delete"),require("@para-ui/icons/LinkGroup")):e.ParaUI=t(e.react,e["@para-ui/icons/WarningCircle"],e["@material-ui/core/styles"],e["@material-ui/core"],e["@para-ui/icons/PreviewOpen"],e["@para-ui/icons/PreviewClose"],e["@para-ui/icons/LoadingF"],e["para-lib"],e["@para-ui/icons/Down"],e["@para-ui/icons/Search"],e["@para-ui/icons/Check"],e["@para-ui/icons/Close"],e["@para-ui/icons/Delete"],e["@para-ui/icons/LinkGroup"])}(self,(function(e,t,o,i,r,n,l,a,s,c,d,p,u,h){return function(){"use strict";var f={4927:function(e,t,o){function i(e){var t,o,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(o=i(e[t]))&&(r&&(r+=" "),r+=o);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function r(){for(var e,t,o=0,r="";o<arguments.length;)(e=arguments[o++])&&(t=i(e))&&(r&&(r+=" "),r+=t);return r}o.d(t,{Z:function(){return r}})},4126:function(e){
|
|
2
|
+
/*
|
|
3
|
+
object-assign
|
|
4
|
+
(c) Sindre Sorhus
|
|
5
|
+
@license MIT
|
|
6
|
+
*/
|
|
7
|
+
var t=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function r(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},o=0;o<10;o++)t["_"+String.fromCharCode(o)]=o;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,n){for(var l,a,s=r(e),c=1;c<arguments.length;c++){for(var d in l=Object(arguments[c]))o.call(l,d)&&(s[d]=l[d]);if(t){a=t(l);for(var p=0;p<a.length;p++)i.call(l,a[p])&&(s[a[p]]=l[a[p]])}}return s}},9524:function(e,t,o){
|
|
8
|
+
/** @license React v17.0.2
|
|
9
|
+
* react-jsx-runtime.production.min.js
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
|
+
*
|
|
13
|
+
* This source code is licensed under the MIT license found in the
|
|
14
|
+
* LICENSE file in the root directory of this source tree.
|
|
15
|
+
*/
|
|
16
|
+
o(4126);var i=o(9297),r=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var n=Symbol.for;r=n("react.element"),t.Fragment=n("react.fragment")}var l=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,o){var i,n={},c=null,d=null;for(i in void 0!==o&&(c=""+o),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)a.call(t,i)&&!s.hasOwnProperty(i)&&(n[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps)void 0===n[i]&&(n[i]=t[i]);return{$$typeof:r,type:e,key:c,ref:d,props:n,_owner:l.current}}t.jsx=c,t.jsxs=c},7712:function(e,t,o){e.exports=o(9524)},115:function(e,t,o){var i=o(7712),r=o(9297),n=o(1731),l=o(8604),a=o(853),s=function(){return s=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},s.apply(this,arguments)},c=((0,a.Z)(),(0,l.makeStyles)((function(e){return(0,l.createStyles)({"auto-tips":{maxWidth:"100%",display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > .auto-tips-content":{display:"inline",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}})})));t.default=function(e){var t=e.children,o=e.placement,l=void 0===o?"bottom-start":o,a=e.tips,d=void 0===a?"":a,p=e.className,u=void 0===p?"":p,h=(0,r.useRef)(),f=c(),v=(0,r.useState)(""),m=v[0],x=v[1];(0,r.useEffect)((function(){x(d)}),[d]);var g;return(0,i.jsx)("div",s({ref:function(e){e&&(h.current=e)},className:(g=f["auto-tips"],g+=" paraui-auto-tips",u&&(g+=" "+u),g),onMouseOver:function(){h.current.scrollWidth>h.current.offsetWidth?x(m||h.current.innerText):x("")}},{children:(0,i.jsx)(n.Tooltip,s({title:m,placement:l},{children:(0,i.jsx)("div",s({className:"auto-tips-content"},{children:t}),void 0)}),void 0)}),void 0)}},5794:function(e,t,o){var i=o(7712),r=o(9297),n=o(1731),l=o(8604),a=o(4927),s=o(1102),c=o.n(s),d=o(853),p=function(){return p=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},p.apply(this,arguments)},u=function(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(o[i[r]]=e[i[r]])}return o},h=(0,d.Z)(),f=(0,l.makeStyles)((function(e){return(0,l.createStyles)({"@keyframes loadingCircle":{"100%":{transform:"rotate(1turn)"}},radius:{borderRadius:15},btnIcon:{"& .btn-icon":{display:"inline-flex",alignItems:"center"},"& .btn-icon svg":{color:"currentColor"}},outlinedBtn:{"& .btn-icon svg":{color:h.thmemColor.primary},"&:disabled":{"& .btn-icon svg":{color:"currentColor"}}},iconButtonToolTip:{display:"inline-block",cursor:"not-allowed","& .iconButton-disabled":{cursor:"not-allowed",pointerEvents:"none"}},loadingBtn:{position:"relative",pointerEvents:"none","&:before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:1,transition:"opacity .2s",pointerEvents:"none"},"& .loading-icon":{animation:"$loadingCircle 1s infinite linear"}}})})),v=(0,l.withStyles)((function(e){return{tooltip:{margin:"6px 0",backgroundColor:h.bgBorderColor.bg4}}}))(n.Tooltip),m=function(e){var t=f(),o=e.radius,l=e.className,s=e.disabled,d=void 0!==s&&s,h=e.children,v=e.startIcon,m=e.endIcon,x=e.loading,g=void 0!==x&&x,b=u(e,["radius","className","disabled","children","startIcon","endIcon","loading"]);"text"===b.variant&&(b.disableRipple=!0);var y=(0,r.useState)(!1),C=y[0],w=y[1];return(0,r.useEffect)((function(){w(!!g)}),[g]),(0,i.jsx)(n.Button,p({disabled:d,className:(0,a.Z)("paraui-button",l,t.btnIcon,o&&t.radius,"outlined"===b.variant&&t.outlinedBtn,C&&t.loadingBtn),startIcon:function(){if(!C)return(0,i.jsx)("span",p({className:"btn-icon"},{children:v}),void 0);if("object"==typeof g){var e=g.delay||0;setTimeout((function(){return w(!1)}),e)}return(0,i.jsx)("span",p({className:"btn-icon loading-icon"},{children:(0,i.jsx)(c(),{},void 0)}),void 0)}(),endIcon:(0,i.jsx)("span",p({className:"btn-icon"},{children:m}),void 0)},b,{children:h}),void 0)};m.IconButton=function(e){var t=f(),o=e.showToolTip,l=void 0===o||o,s=e.toolTipTitle,d=void 0===s?"":s,h=e.children,m=e.className,x=e.disabled,g=void 0!==x&&x,b=e.loading,y=void 0!==b&&b,C=e.TooltipProps,w=u(e,["showToolTip","toolTipTitle","children","className","disabled","loading","TooltipProps"]),j=(0,r.useState)(!1),k=j[0],S=j[1],O=(0,i.jsx)(n.IconButton,p({},w,{disabled:g,disableRipple:!0,className:(0,a.Z)("paraui-icon-button",m,l&&g&&"iconButton-disabled",k&&t.loadingBtn)},{children:function(){if(!k)return h;if("object"==typeof y){var e=y.delay||0;setTimeout((function(){return S(!1)}),e)}return(0,i.jsx)("span",p({className:"loading-icon"},{children:(0,i.jsx)(c(),{},void 0)}),void 0)}()}),void 0);return(0,r.useEffect)((function(){S(!!y)}),[y]),l?(0,i.jsx)(v,p({title:d},C,{children:(0,i.jsx)("span",p({className:(0,a.Z)(g&&t.iconButtonToolTip)},{children:O}),void 0)}),void 0):O},t.default=m},193:function(e,t,o){o.d(t,{default:function(){return f}});var i=o(7712),r=o(9297),n=o(1731),l=o(8604),a=o(853),s=function(){return s=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},s.apply(this,arguments)},c={icon:{icon:(0,i.jsxs)("svg",s({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,i.jsx)("path",{d:"M78.769231 78.769231m118.153846 0l630.153846 0q118.153846 0 118.153846 118.153846l0 630.153846q0 118.153846-118.153846 118.153846l-630.153846 0q-118.153846 0-118.153846-118.153846l0-630.153846q0-118.153846 118.153846-118.153846Z",fill:"#FFFFFF"},void 0),(0,i.jsx)("path",{d:"M827.076923 0h-630.153846A196.923077 196.923077 0 0 0 0 196.923077v630.153846A196.923077 196.923077 0 0 0 196.923077 1024h630.153846a196.923077 196.923077 0 0 0 196.923077-196.923077v-630.153846A196.923077 196.923077 0 0 0 827.076923 0zM945.230769 827.076923a118.153846 118.153846 0 0 1-118.153846 118.153846h-630.153846A118.153846 118.153846 0 0 1 78.769231 827.076923v-630.153846A118.153846 118.153846 0 0 1 196.923077 78.769231h630.153846A118.153846 118.153846 0 0 1 945.230769 196.923077z",className:"line-rect",fill:"currentColor"},void 0)]}),void 0),iconDisabled:(0,i.jsxs)("svg",s({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,i.jsx)("path",{d:"M78.769231 78.769231m118.153846 0l630.153846 0q118.153846 0 118.153846 118.153846l0 630.153846q0 118.153846-118.153846 118.153846l-630.153846 0q-118.153846 0-118.153846-118.153846l0-630.153846q0-118.153846 118.153846-118.153846Z",fill:"currentColor",className:"fill-bg"},void 0),(0,i.jsx)("path",{d:"M827.076923 0h-630.153846A196.923077 196.923077 0 0 0 0 196.923077v630.153846A196.923077 196.923077 0 0 0 196.923077 1024h630.153846a196.923077 196.923077 0 0 0 196.923077-196.923077v-630.153846A196.923077 196.923077 0 0 0 827.076923 0zM945.230769 827.076923a118.153846 118.153846 0 0 1-118.153846 118.153846h-630.153846A118.153846 118.153846 0 0 1 78.769231 827.076923v-630.153846A118.153846 118.153846 0 0 1 196.923077 78.769231h630.153846A118.153846 118.153846 0 0 1 945.230769 196.923077z",className:"line-rect",fill:"currentColor"},void 0)]}),void 0)},checkedIcon:{icon:(0,i.jsxs)("svg",s({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,i.jsx)("path",{d:"M0 0m196.923077 0l630.153846 0q196.923077 0 196.923077 196.923077l0 630.153846q0 196.923077-196.923077 196.923077l-630.153846 0q-196.923077 0-196.923077-196.923077l0-630.153846q0-196.923077 196.923077-196.923077Z",fill:"currentColor"},void 0),(0,i.jsx)("path",{d:"M852.834462 284.356923a46.710154 46.710154 0 0 0-66.008616 0L430.710154 640.472615 237.331692 447.172923a46.710154 46.710154 0 0 0-66.087384 66.087385l226.382769 226.304a46.710154 46.710154 0 0 0 66.087385 0c0.472615-0.551385 0.708923-1.260308 1.181538-1.811693s1.260308-0.708923 1.811692-1.181538l385.969231-385.969231a46.710154 46.710154 0 0 0 0-66.244923z",fill:"#FFFFFF"},void 0)]}),void 0),iconDisabled:(0,i.jsxs)("svg",s({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,i.jsx)("path",{className:"fill-bg",d:"M78.769231 78.769231m118.153846 0l630.153846 0q118.153846 0 118.153846 118.153846l0 630.153846q0 118.153846-118.153846 118.153846l-630.153846 0q-118.153846 0-118.153846-118.153846l0-630.153846q0-118.153846 118.153846-118.153846Z",fill:"currentColor"},void 0),(0,i.jsx)("path",{d:"M827.076923 0h-630.153846A196.923077 196.923077 0 0 0 0 196.923077v630.153846A196.923077 196.923077 0 0 0 196.923077 1024h630.153846a196.923077 196.923077 0 0 0 196.923077-196.923077v-630.153846A196.923077 196.923077 0 0 0 827.076923 0zM945.230769 827.076923a118.153846 118.153846 0 0 1-118.153846 118.153846h-630.153846A118.153846 118.153846 0 0 1 78.769231 827.076923v-630.153846A118.153846 118.153846 0 0 1 196.923077 78.769231h630.153846A118.153846 118.153846 0 0 1 945.230769 196.923077z",className:"line-rect",fill:"currentColor"},void 0),(0,i.jsx)("path",{d:"M852.834462 284.356923a46.710154 46.710154 0 0 0-66.008616 0L430.710154 640.472615 237.331692 447.172923a46.710154 46.710154 0 0 0-66.087384 66.087385l226.382769 226.304a46.710154 46.710154 0 0 0 66.087385 0c0.472615-0.551385 0.708923-1.260308 1.181538-1.811693s1.260308-0.708923 1.811692-1.181538l385.969231-385.969231a46.710154 46.710154 0 0 0 0-66.244923z",className:"char-path",fill:"currentColor"},void 0)]}),void 0)},indeterminateIcon:{icon:(0,i.jsxs)("svg",s({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,i.jsx)("path",{d:"M0 0m196.923077 0l630.153846 0q196.923077 0 196.923077 196.923077l0 630.153846q0 196.923077-196.923077 196.923077l-630.153846 0q-196.923077 0-196.923077-196.923077l0-630.153846q0-196.923077 196.923077-196.923077Z",fill:"currentColor"},void 0),(0,i.jsx)("path",{d:"M785.171692 564.224h-546.422154a52.696615 52.696615 0 0 1 0-104.448h546.422154a52.696615 52.696615 0 0 1 0 104.448z",fill:"#FFFFFF"},void 0)]}),void 0),iconDisabled:(0,i.jsxs)("svg",s({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,i.jsx)("path",{d:"M78.769231 78.769231m118.153846 0l630.153846 0q118.153846 0 118.153846 118.153846l0 630.153846q0 118.153846-118.153846 118.153846l-630.153846 0q-118.153846 0-118.153846-118.153846l0-630.153846q0-118.153846 118.153846-118.153846Z",className:"fill-bg",fill:"currentColor"},void 0),(0,i.jsx)("path",{d:"M827.076923 0h-630.153846A196.923077 196.923077 0 0 0 0 196.923077v630.153846A196.923077 196.923077 0 0 0 196.923077 1024h630.153846a196.923077 196.923077 0 0 0 196.923077-196.923077v-630.153846A196.923077 196.923077 0 0 0 827.076923 0zM945.230769 827.076923a118.153846 118.153846 0 0 1-118.153846 118.153846h-630.153846A118.153846 118.153846 0 0 1 78.769231 827.076923v-630.153846A118.153846 118.153846 0 0 1 196.923077 78.769231h630.153846A118.153846 118.153846 0 0 1 945.230769 196.923077z",className:"line-rect",fill:"currentColor"},void 0),(0,i.jsx)("path",{d:"M785.171692 564.224H238.749538a52.696615 52.696615 0 0 1 0-104.448h546.422154a52.696615 52.696615 0 0 1 0 104.448z",className:"char-path",fill:"currentColor"},void 0)]}),void 0)}},d=function(){return d=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},d.apply(this,arguments)},p=function(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(o[i[r]]=e[i[r]])}return o},u=(0,a.Z)(),h=(0,l.makeStyles)((function(){return(0,l.createStyles)({"check-box":{margin:"0","&:hover":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:u.thmemColor.primary,"& > .line-rect":{color:u.thmemColor.primary}}}},"& > span:last-child":{color:u.thmemColor.primary}},"& > span:first-child":{padding:"8px","& > span:first-child":{"& > svg":{color:u.textColor.thirdary,"& > .line-rect":{color:u.textColor.thirdary}}}},"& > span:last-child":{color:u.textColor.primary},"&.check-box-checked":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:u.thmemColor.primary}}},"& > span:last-child":{color:u.thmemColor.primary}},"&.check-box-indeterminate":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:u.thmemColor.primary}}},"& > span:last-child":{color:u.thmemColor.primary}},"&.check-box-disabled":{"&:hover":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:u.textColor.thirdary,"& > .line-rect":{color:u.textColor.thirdary}}}},"& > span:last-child":{color:u.textColor.thirdary}},cursor:"not-allowed","& > span:first-child":{"& > span:first-child":{"& > svg":{color:u.textColor.thirdary+" !important","& > .fill-bg":{color:u.bgBorderColor.bg1},"& > .char-path":{color:u.bgBorderColor.bg4}}}},"& > span:last-child":{color:u.textColor.secondary+" !important"}},"&.check-box-small":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"12px"}}},"& > span:last-child":{fontSize:"12px",lineHeight:"12px"}},"&.check-box-medium":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"14px"}}},"& > span:last-child":{fontSize:"14px",lineHeight:"14px"}},"&.check-box-large":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"16px"}}},"& > span:last-child":{fontSize:"16px",lineHeight:"16px"}}}})})),f=function(e){var t=e.className,o=void 0===t?"":t,l=e.color,a=void 0===l?"primary":l,s=e.size,u=void 0===s?"small":s,f=e.label,v=void 0===f?"":f,m=e.labelPlacement,x=void 0===m?"end":m,g=(e.checkedIcon,e.indeterminateIcon,e.icon,e.disabled),b=void 0!==g&&g,y=e.checked,C=void 0!==y&&y,w=e.indeterminate,j=void 0!==w&&w,k=e.onChange,S=p(e,["className","color","size","label","labelPlacement","checkedIcon","indeterminateIcon","icon","disabled","checked","indeterminate","onChange"]),O=h(e),F=(0,r.useState)(!1),N=F[0],z=F[1];(0,r.useEffect)((function(){C!==N&&z(C)}),[C]);var T,E=function(e){return b?c[e].iconDisabled:c[e].icon},q=function(t,o){void 0===e.checked&&void 0===e.indeterminate&&z(t.target.checked),k&&k(t,o)};return(0,i.jsx)(n.FormControlLabel,{className:(T=O["check-box"]+" paraui-check-box",o&&(T+=" "+o),u&&(T+=" check-box-"+u),b&&(T+=" check-box-disabled"),j?T+=" check-box-indeterminate":N&&(T+=" check-box-checked"),T),control:(0,i.jsx)(n.Checkbox,d({size:"small",color:a,disabled:b,icon:E("icon"),checkedIcon:E("checkedIcon"),indeterminateIcon:E("indeterminateIcon"),onChange:q,checked:N,indeterminate:j},S),void 0),label:v,labelPlacement:x},void 0)}},1863:function(e,t,o){var i=o(9297),r=o(7712),n=o(1731),l=o(193),a=o(8604),s=o(853),c=o(3475),d=function(){return d=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},d.apply(this,arguments)},p=(0,s.Z)(),u=(0,a.makeStyles)((function(){return(0,a.createStyles)({"check-box-group":{"& > label":{fontSize:"12px",color:p.textColor.secondary,"& > .required-char":{marginLeft:"3px",color:p.thmemColor.primary}},"& > div":{margin:"5px 0"},"& > p":{fontSize:"12px",lineHeight:"12px",margin:"0",color:p.stateColor.error},"&.check-box-group-disabled":{},"&.check-box-group-small":{},"&.check-box-group-medium":{},"&.check-box-group-large":{}}})}));t.default=function(e){var t,o=e.label,a=void 0===o?"":o,s=e.size,p=void 0===s?"small":s,h=e.row,f=void 0===h||h,v=e.disabled,m=void 0!==v&&v,x=e.required,g=void 0!==x&&x,b=e.error,y=void 0!==b&&b,C=e.helperText,w=void 0===C?"":C,j=e.id,k=void 0===j?"name":j,S=e.value,O=void 0===S?[]:S,F=e.list,N=e.className,z=void 0===N?"":N,T=e.onChange,E=u(e),q=function(e){return function(t,o){var i=e[k],r=(0,c.DeepClone)(O);if(o)r.push(i);else{var n=r.indexOf(i);r.splice(n,1)}T&&T(r)}};return(0,r.jsxs)(n.FormControl,d({className:(t=E["check-box-group"]+" paraui-check-box-group",z&&(t+=" "+z),p&&(t+=" check-box-group-"+p),y&&(t+=" check-box-group-error"),m&&(t+=" check-box-group-disabled"),t)},{children:[(0,r.jsxs)(n.FormLabel,{children:[a,g&&(0,r.jsx)("span",d({className:"required-char"},{children:"(必填)"}),void 0)]},void 0),(0,r.jsx)(n.FormGroup,d({row:f},{children:F.map((function(e,t){return(0,i.createElement)(l.default,d({},e,{checked:-1!==O.indexOf(e[k]),size:p,disabled:Boolean(m||e.disabled),key:t,onChange:q(e)}))}))}),void 0),w&&(0,r.jsx)(n.FormHelperText,{children:w},void 0)]}),void 0)}},6816:function(e,t,o){o.d(t,{default:function(){return H}});var i=o(7712),r=o(9297),n=o.n(r),l=o(6897),a=o.n(l),s=o(8604),c=o(1731),d=o(4661),p=o(2162),u=function(){return u=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},u.apply(this,arguments)},h=function(e){var t=e.defaultValue,o=e.change,r=n().useState(t||""),l=r[0],a=r[1];return(0,i.jsx)(p.default,u({value:l,onChange:function(e){a(e),o&&o(e)}},e),void 0)},f=o(3006),v=function(){return v=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},v.apply(this,arguments)},m=function(e){var t=e.defaultValue,o=void 0===t?"":t,r=e.change,l=e.value,a=n().useState(void 0!==l?l:o),s=a[0],c=a[1];return n().useEffect((function(){c(l)}),[l]),(0,i.jsx)(f.default,v({labelMode:"inside",onChange:function(e){c(e),r&&r(e)}},e,{value:s}),void 0)},x=o(1863),g=function(){return g=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},g.apply(this,arguments)},b=function(e){var t=e.defaultValue,o=e.change,r=n().useState(t||[]),l=r[0],a=r[1];return(0,i.jsx)(x.default,g({value:l,onChange:function(e){a(e),o&&o(e)}},e),void 0)},y=o(2963),C=o(5939),w=o(6243),j=o.n(w),k=o(9973),S=o.n(k),O=o(115),F=o(5794),N=o(853),z=function(){return z=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},z.apply(this,arguments)},T=(0,N.Z)(),E=(0,s.makeStyles)((function(e){return(0,s.createStyles)({"para-file-box":{padding:"6px","& .para-file-tips":{"&-disabled":{"& .file-tips-context,& .svg-icon-primary":{color:T.textColor.thirdary+" !important"}},minHeight:"20px",position:"relative",padding:"6px","& .file-tips-item":{position:"relative",height:"20px",lineHeight:"16px",paddingRight:"20px",'&>[data-name="LinkGroup"]':{verticalAlign:"middle",marginRight:"9px"},"& .file-tips-context":{display:"inline-block",verticalAlign:"middle",width:"calc(100% - 45px)",color:T.thmemColor.primary},'&>[data-name="Delete"]':{display:"none",verticalAlign:"middle",cursor:"pointer",position:"absolute",right:"3px",top:"2px","&:hover":{opacity:"0.8"}},"&:hover":{backgroundColor:"#f5f5f5",'&>[data-name="Delete"]':{display:"inline-block"}}}}}})})),q=function(e){var t=e.fileType,o=void 0===t?"":t,r=e.defaultValue,l=e.onChange,a=e.disabled,s=e.buttonLabel,c=e.inputProps,d=e.buttonProps,p=E(),u=n().useRef(null),h=function(e){var t=void 0!==e?e:u.current.files;m(t),l&&l(t),null===e&&(u.current.value=null)},f=n().useState(),v=f[0],m=f[1];return n().useEffect((function(){r&&m(r)}),[r]),(0,i.jsxs)("div",z({className:p["para-file-box"]},{children:[!a&&(0,i.jsx)(F.default,z({variant:"outlined"},d,{onClick:function(){var e;console.log("inputFileClick",u.current),null===(e=u.current)||void 0===e||e.click()}},{children:s||"选择文件"}),void 0),(0,i.jsx)("input",z({},c,{ref:u,type:"file",onInput:function(){return h()},hidden:!0,accept:"string"==typeof o?o:o.join(",")}),void 0),v&&v[0]&&(0,i.jsx)("div",z({className:"para-file-tips "+(a?"para-file-tips-disabled":"")},{children:(0,i.jsxs)("div",z({className:"file-tips-item"},{children:[(0,i.jsx)(S(),{},void 0),(0,i.jsx)("span",z({className:"file-tips-context"},{children:(0,i.jsx)(O.default,{children:"string"==typeof v?v:v[0].name},void 0)}),void 0),!a&&(0,i.jsx)(j(),{onClick:function(){return h(null)}},void 0)]}),void 0)}),void 0)]}),void 0)},B=function(){return B=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},B.apply(this,arguments)},L=function(e){var t=e.ItemType,o=e.error,r=e.placeholder,l=e.label,a=e.inputProps,s=e.name,c=e.rules,p=e.setValue,u=e.setError,f=e.backData,v=e.disabled,x=e.change,g=r||""+l,w=n().useState(!!o),j=w[0],k=w[1],S=function(t){if(p&&p(s,"value",t),x&&x(t),c){var o=(0,y.Z)(e,t)||"";O(o)}},O=n().useCallback((function(e){u&&u(e),k(!!e),p&&p(s,"message",e)}),[s,u,p]);n().useEffect((function(){var t=B(B({},e),{setErrorMsg:O});p&&p(s,"item",t)}),[s,e,O,p]);return function(){if(t&&"string"!=typeof t){var o=B(B({},e),{setErrorMsg:O});return t(o)}switch(t){case"file":return(0,i.jsx)(q,B({},e,{defaultValue:f[s],disabled:v,onChange:function(e){S(e)}}),void 0);case"switch":return void 0===f[s]&&p&&p(s,"initValue",!!f[s]),(0,i.jsx)(C.default,B({type:"compact",size:"small",defaultChecked:!!f[s],onChange:function(e){S(e.target.checked)}},B(B({},a),{disabled:v})),void 0);case"checkGroup":return(0,i.jsx)(b,B({error:j,defaultValue:f[s],size:"small",change:function(e){S(e)},list:e.list},B(B({},a),{disabled:v})),void 0);case"select":return(0,i.jsx)(m,B({placeholder:g,defaultValue:f[s],error:j,size:"medium",change:function(e){S(e)},list:e.list},B({disabled:v},a)),void 0);case"radioGroup":return(0,i.jsx)(h,B({error:j,defaultValue:f[s],size:"small",change:function(e){S(e)},list:e.list},B({disabled:v},a)),void 0);case"textarea":return(0,i.jsx)(d.default,B({error:j,placeholder:g,value:f[s],disabled:v,multiline:!0,rows:3,size:"medium",name:s,onChange:function(e){S(e.target.value)}},a),void 0);default:return(0,i.jsx)(d.default,B({value:f[s],error:j,placeholder:g,onChange:function(e){S(e.target.value)},name:s,size:"medium",disabled:v},a),void 0)}}()},P=function(e){var t=e.getSetError,o=e.errorMessage,r=n().useState(o||""),l=r[0],a=r[1];return n().useEffect((function(){a(o||"")}),[o]),n().useEffect((function(){t&&t(a)}),[t]),(0,i.jsxs)(O.default,{children:[l," "]},void 0)},M=o(4927),A=function(){return A=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},A.apply(this,arguments)},D=(0,N.Z)(),I=(0,s.makeStyles)((function(e){return(0,s.createStyles)({"para-form-item":{"& .para-form-label":{height:"20px",lineHeight:"20px",fontSize:"12px",textAlign:"left",fontWeight:"400",display:"inline-block",marginBottom:"8px",verticalAlign:"top",width:"100%","&-vertical":{marginTop:"6px",textAlign:"right",paddingRight:"3px",position:"relative","& .para-form-labe-tips":{position:"absolute",left:"0px",top:"1px"}},"& .para-form-labe-text":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"inline-block",maxWidth:"100%",verticalAlign:"middle","&-hastips":{maxWidth:"calc(100% - 25px)"}},"& .para-form-labe-tips":{height:"20px",cursor:"pointer",display:"inline-block",verticalAlign:"middle",lineHeight:"27px",marginLeft:"5px"}},"& .para-form-edit":{minHeight:"34px","&>div":{padding:"0px"},"& .MuiSwitch-root":{marginTop:"12px"}},"& .para-form-error":{height:"17px",lineHeight:"17px",color:D.stateColor.error},"& .para-form-content-vertical":{display:"inline-block",width:"100%"}}})})),H=function(e){var t=e.type,o=void 0===t?"horizontal":t,r=e.labelWidth,l=void 0===r?60:r,s=e.tips,d=e.label,p=e.InputType,u=e.setValue,h=e.errorMessage,f=(e.rules,e.backData),v=void 0===f?{}:f,m=I(),x=n().useRef();return(0,i.jsxs)("div",A({className:m["para-form-item"]},{children:[(0,i.jsxs)("div",A({className:(0,M.Z)("para-form-label","vertical"===o&&"para-form-label-vertical"),style:{width:"vertical"===o?l+"px":""}},{children:[(0,i.jsx)("span",A({className:(0,M.Z)("para-form-labe-text",s&&"para-form-labe-text-hastips")},{children:d}),void 0),s&&(0,i.jsx)(c.Tooltip,A({title:s,placement:"top"},{children:(0,i.jsx)("span",A({className:"para-form-labe-tips"},{children:(0,i.jsx)(a(),{},void 0)}),void 0)}),void 0)]}),void 0),(0,i.jsxs)((function(e){return"vertical"===o?(0,i.jsx)("div",A({className:"para-form-content-vertical",style:{width:"calc(100% - "+l+"px)"}},{children:e.children}),void 0):e.children}),{children:[(0,i.jsx)("div",A({className:"para-form-edit"},{children:e.children?e.children:(0,i.jsx)(L,A({setError:function(e){x.current&&x.current(e)},error:!!h,ItemType:p,backData:v},e,{setValue:u}),void 0)}),void 0),(0,i.jsx)("div",A({className:"para-form-error"},{children:(0,i.jsx)(P,{getSetError:function(e){return x.current=e},errorMessage:h},void 0)}),void 0)]},void 0)]}),void 0)}},2963:function(e,t){var o={required:function(e,t){var o,i,r=typeof t,n=(null===(i=null===(o=e.rules)||void 0===o?void 0:o.message)||void 0===i?void 0:i.required)||e.label+"不能为空",l=!1;switch(r){case"string":l=!!t;break;case"number":l=t+1>t;break;case"object":var a=JSON.stringify(t);l="null"!==a&&"[]"!==a&&"{}"!==a;break;case"boolean":l=void 0!==t;break;default:l=!!t}return l||n},maxlength:function(e,t){var o,i,r,n,l,a,s=typeof t,c=(null===(i=null===(o=e.rules)||void 0===o?void 0:o.message)||void 0===i?void 0:i.maxlength)||"最大长度不能超过"+(null===(n=null===(r=e.rules)||void 0===r?void 0:r.validate)||void 0===n?void 0:n.maxlength);return("string"===s||"number"===s&&t+1>t?!((""+t).length>((null===(a=null===(l=e.rules)||void 0===l?void 0:l.validate)||void 0===a?void 0:a.maxlength)||NaN)):!t)||c},minLength:function(e,t){var o,i,r,n,l,a,s=typeof t,c=(null===(i=null===(o=e.rules)||void 0===o?void 0:o.message)||void 0===i?void 0:i.minLength)||"最小长度为"+(null===(n=null===(r=e.rules)||void 0===r?void 0:r.validate)||void 0===n?void 0:n.minLength);return("string"===s||"number"===s&&t+1>t?(""+t).length>=((null===(a=null===(l=e.rules)||void 0===l?void 0:l.validate)||void 0===a?void 0:a.minLength)||-1):!t)||c},pattern:function(e,t){var o,i,r,n,l=null===(i=null===(o=e.rules)||void 0===o?void 0:o.validate)||void 0===i?void 0:i.pattern,a=(null===(n=null===(r=e.rules)||void 0===r?void 0:r.message)||void 0===n?void 0:n.pattern)||"参数不符合校验规则: "+l,s=!t;return l&&t&&"function"!=typeof l&&(s=l.test(t)),s||a},min:function(e,t){var o,i,r,n,l,a,s=typeof t,c=(null===(i=null===(o=e.rules)||void 0===o?void 0:o.message)||void 0===i?void 0:i.min)||"最小值为"+(null===(n=null===(r=e.rules)||void 0===r?void 0:r.validate)||void 0===n?void 0:n.min),d=!t;return"string"!==s&&"number"!==s||(d=t>((null===(a=null===(l=e.rules)||void 0===l?void 0:l.validate)||void 0===a?void 0:a.min)||-1/0)),d||c},max:function(e,t){var o,i,r,n,l,a,s=typeof t,c=(null===(i=null===(o=e.rules)||void 0===o?void 0:o.message)||void 0===i?void 0:i.max)||"最大值为"+(null===(n=null===(r=e.rules)||void 0===r?void 0:r.validate)||void 0===n?void 0:n.max),d=!t;return"string"!==s&&"number"!==s||(d=t<((null===(a=null===(l=e.rules)||void 0===l?void 0:l.validate)||void 0===a?void 0:a.max)||1/0)),d||c}};t.Z=function(e,t){var i,r,n=null===(i=e.rules)||void 0===i?void 0:i.validate;if(n){var l=null===(r=e.rules)||void 0===r?void 0:r.message;for(var a in console.log("validateObj"),n){var s=n[a],c="";if("function"==typeof s?!1===(c=s(e,t))&&l&&(c=l[a]):o[a]?c=o[a](e,t):(console.log("项目: "+e.label+", 自定义校验规则: "+a+", 方法未定义"),c=!0),!0!==c)return c||""}}return!1}},853:function(e,t){var o={thmemColor:{primary:"#3D66F8",secondary:"#7E98F5",thirdary:"#D6DFFD"},textColor:{primary:"#191919",secondary:"#6E7488",thirdary:"#BBBECB",white:"#FFFFFF"},bgBorderColor:{bg1:"#DCDDE3",bg2:"#F5F5F5",bg3:"#EDEDED",bg4:"#6E7488",line1:"#E5E9EF",universal:"#FFFFFF"},stateColor:{info:"#3D66F8",success:"#41D658",warning:"#FFA150",error:"#F46B53"},gradientColor:{gradient1:"linear-gradient(#3D66F8, #4F93F0)",gradient2:"linear-gradient(#0093FF, #4EB4FF)",gradient3:"linear-gradient(#844EFF, #A796FF)",gradient4:"linear-gradient(#FD7300, #FFBF69)",gradient5:"linear-gradient(#3D66F8, #D8DFFA)"},fontFamily:{zh:"Microsoft Yahei, Helvetica, sans-serif",en:"Microsoft Yahei, Helvetica, sans-serif"},fontSize:12,borderRadius:4,boxShadow:"4px 4px 6px rgba(70,75,105,0.2), -4px -4px 6px rgba(0,0,0,0.06)",buttonShadow:"4px 4px 6px rgba(70,75,105,0.1), -4px -4px 6px rgba(0,0,0,0.03)",standardFont:{standardFont1:{fontSize:"12px",fontWeight:"400"},standardFont2:{fontSize:"12px",fontWeight:"700"}},titleFont:{titleFont1:{fontSize:"14px",fontWeight:"400"},titleFont2:{fontSize:"14px",fontWeight:"700"}},visualLargeFont:{visualLargeFont1:{fontSize:"40px",fontWeight:"700"},visualLargeFont2:{fontSize:"40px",fontWeight:"700"}}};t.Z=function(){return o}},4286:function(e,t,o){o.d(t,{default:function(){return f}});var i=o(7712),r=o(9297),n=o(1731),l=o(8604),a=o(853),s=function(){return s=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},s.apply(this,arguments)},c={icon:{icon:(0,i.jsx)("svg",s({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:(0,i.jsx)("path",{d:"M512 981.333333A469.333333 469.333333 0 1 0 42.666667 512a469.845333 469.845333 0 0 0 469.333333 469.333333z m0-853.333333a384 384 0 1 1-384 384 384.426667 384.426667 0 0 1 384-384z",fill:"currentColor"},void 0)}),void 0),iconDisabled:(0,i.jsxs)("svg",s({viewBox:"0 0 1024 1024",width:"1em",height:"1em"},{children:[(0,i.jsx)("path",{d:"M512.213333 128.128a384 384 0 1 0 384 384 384 384 0 0 0-384-384z",fill:"currentColor"},void 0),(0,i.jsx)("path",{d:"M512 981.333333A469.333333 469.333333 0 1 0 42.666667 512a469.845333 469.845333 0 0 0 469.333333 469.333333z m0-853.333333a384 384 0 1 1-384 384 384.426667 384.426667 0 0 1 384-384z",className:"line-round",fill:"currentColor"},void 0)]}),void 0)},checkedIcon:{icon:(0,i.jsxs)("svg",s({viewBox:"0 0 1024 1024",width:"1em",height:"1em"},{children:[(0,i.jsx)("path",{d:"M512 42.837333a469.333333 469.333333 0 1 0 469.333333 469.333334 469.802667 469.802667 0 0 0-469.333333-469.333334z m0 853.333334a384 384 0 1 1 384-384 384.426667 384.426667 0 0 1-384 384z",fill:"currentColor"},void 0),(0,i.jsx)("path",{d:"M512 278.272A233.728 233.728 0 1 0 745.728 512 233.728 233.728 0 0 0 512 278.272z",fill:"currentColor"},void 0)]}),void 0),iconDisabled:(0,i.jsxs)("svg",s({viewBox:"0 0 1024 1024",width:"1em",height:"1em"},{children:[(0,i.jsx)("path",{d:"M512 128.170667a384 384 0 1 0 384 384 384.384 384.384 0 0 0-384-384z m0 617.728a233.728 233.728 0 1 1 233.728-233.728A233.770667 233.770667 0 0 1 512 745.728z",fill:"currentColor"},void 0),(0,i.jsx)("path",{d:"M512 42.837333a469.333333 469.333333 0 1 0 469.333333 469.333334 469.802667 469.802667 0 0 0-469.333333-469.333334z m0 853.333334a384 384 0 1 1 384-384 384.426667 384.426667 0 0 1-384 384z",className:"line-round",fill:"currentColor"},void 0),(0,i.jsx)("path",{d:"M512 278.272A233.728 233.728 0 1 0 745.728 512 233.728 233.728 0 0 0 512 278.272z",className:"line-round",fill:"currentColor"},void 0)]}),void 0)}},d=function(){return d=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},d.apply(this,arguments)},p=function(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(o[i[r]]=e[i[r]])}return o},u=(0,a.Z)(),h=(0,l.makeStyles)((function(){return(0,l.createStyles)({radio:{margin:"0","&:hover":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:u.thmemColor.primary}}},"& > span:last-child":{color:u.thmemColor.primary}},"& > span:first-child":{padding:"8px","& > span:first-child":{"& > svg":{color:u.textColor.thirdary,"& > .line-rect":{color:u.textColor.thirdary}}}},"& > span:last-child":{color:u.textColor.primary},"&.radio-checked":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:u.thmemColor.primary}}},"& > span:last-child":{color:u.thmemColor.primary}},"&.radio-disabled":{"&:hover":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:u.bgBorderColor.bg1,"& > .line-round":{color:u.textColor.thirdary}}}},"& > span:last-child":{color:u.textColor.thirdary}},cursor:"not-allowed","& > span:first-child":{"& > span:first-child":{"& > svg":{color:u.bgBorderColor.bg1+" !important","& > .line-round":{color:u.textColor.thirdary+" !important"}}}},"& > span:last-child":{color:u.textColor.secondary+" !important"}},"&.radio-small":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"12px"}}},"& > span:last-child":{fontSize:"12px",lineHeight:"12px"}},"&.radio-medium":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"14px"}}},"& > span:last-child":{fontSize:"14px",lineHeight:"14px"}},"&.radio-large":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"16px"}}},"& > span:last-child":{fontSize:"16px",lineHeight:"16px"}}}})})),f=function(e){var t=e.color,o=void 0===t?"primary":t,l=e.size,a=void 0===l?"small":l,s=e.label,u=void 0===s?"":s,f=e.labelPlacement,v=void 0===f?"end":f,m=(e.checkedIcon,e.icon,e.disabled),x=void 0!==m&&m,g=e.checked,b=void 0!==g&&g,y=e.onChange,C=e.className,w=void 0===C?"":C,j=p(e,["color","size","label","labelPlacement","checkedIcon","icon","disabled","checked","onChange","className"]),k=h(e),S=(0,r.useState)(!1),O=S[0],F=S[1];(0,r.useEffect)((function(){b!==O&&F(b)}),[b]);var N,z=function(e){return x?c[e].iconDisabled:c[e].icon},T=function(t,o){void 0===e.checked&&F(t.target.checked),y&&y(t,o)};return(0,i.jsx)(n.FormControlLabel,{className:(N=k.radio+" paraui-radio",w&&(N+=" "+w),a&&(N+=" radio-"+a),x&&(N+=" radio-disabled"),O&&(N+=" radio-checked"),N),control:(0,i.jsx)(n.Radio,d({size:"small",color:o,disabled:x,icon:z("icon"),checkedIcon:z("checkedIcon"),onChange:T,checked:O},j),void 0),label:u,labelPlacement:v},void 0)}},2162:function(e,t,o){var i=o(9297),r=o(7712),n=o(1731),l=o(4286),a=o(8604),s=o(853),c=function(){return c=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},c.apply(this,arguments)},d=(0,s.Z)(),p=(0,a.makeStyles)((function(){return(0,a.createStyles)({"radio-group":{"& > label":{fontSize:"12px",color:d.textColor.secondary,"& > .required-char":{marginLeft:"3px",color:d.thmemColor.primary}},"& > div":{margin:"5px 0"},"& > p":{fontSize:"12px",lineHeight:"12px",margin:"0",color:d.stateColor.error},"&.radio-group-disabled":{},"&.radio-group-small":{},"&.radio-group-medium":{},"&.radio-group-large":{}}})}));t.default=function(e){var t,o=e.className,a=void 0===o?"":o,s=e.label,d=void 0===s?"":s,u=e.size,h=void 0===u?"small":u,f=e.row,v=void 0===f||f,m=e.disabled,x=void 0!==m&&m,g=e.required,b=void 0!==g&&g,y=e.error,C=void 0!==y&&y,w=e.helperText,j=void 0===w?"":w,k=e.id,S=void 0===k?"name":k,O=e.value,F=e.list,N=e.onChange,z=p(e),T=function(e){return function(){var t=e[S];N&&N(t)}};return(0,r.jsxs)(n.FormControl,c({className:(t=z["radio-group"]+" paraui-radio-group",a&&(t+=" "+a),h&&(t+=" radio-group-"+h),C&&(t+=" radio-group-error"),x&&(t+=" radio-group-disabled"),t)},{children:[(0,r.jsxs)(n.FormLabel,{children:[d,b&&(0,r.jsx)("span",c({className:"required-char"},{children:"(必填)"}),void 0)]},void 0),(0,r.jsx)(n.FormGroup,c({row:v},{children:F.map((function(e,t){return(0,i.createElement)(l.default,c({},e,{checked:O===e[S],size:h,disabled:Boolean(x||e.disabled),key:t,onChange:T(e)}))}))}),void 0),j&&(0,r.jsx)(n.FormHelperText,{children:j},void 0)]}),void 0)}},3006:function(e,t,o){var i=o(7712),r=o(9297),n=o(1731),l=o(6028),a=o.n(l),s=o(4115),c=o.n(s),d=o(6110),p=o.n(d),u=o(19),h=o.n(u),f=o(115),v=o(8604),m=o(853),x=o(3475),g=function(){return g=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},g.apply(this,arguments)},b=function(e,t,o){if(o||2===arguments.length)for(var i,r=0,n=t.length;r<n;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},y=(0,m.Z)(),C=(0,v.makeStyles)((function(){return(0,v.createStyles)({select:{"& *":{boxSizing:"border-box"},fontFamily:y.fontFamily.zh,display:"inline-block",fontSize:y.standardFont.standardFont1.fontSize,width:"100%",paddingBottom:"20px","& > .select-label":{color:y.textColor.secondary,marginBottom:"9px",display:"inline-block"},"& > .select-content":{lineHeight:"0",border:"1px solid",borderColor:y.textColor.thirdary,borderRadius:y.borderRadius,paddingRight:"30px",position:"relative",cursor:"pointer","&:hover":{borderColor:y.thmemColor.primary,"& > .select-svg":{"& > svg":{color:y.thmemColor.primary}}},"& > .select-label-placeholder":{width:"100%",height:"100%",padding:"0 10px",boxSizing:"border-box",color:y.textColor.thirdary,display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",position:"absolute",left:"0",top:"0"},"& > .select-svg":{position:"absolute",right:"8px",top:"0","& > svg":{fontSize:"16px",transition:"all .3s",color:y.textColor.secondary}},"& > .radio-select-content":{paddingLeft:"10px",color:y.textColor.primary,fontSize:"12px",lineHeight:"16px"},"& > .radio-search-outside":{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",padding:"0 30px 0 10px",fontSize:"12px",cursor:"pointer","& > div":{height:"100%",cursor:"pointer","& > input":{height:"100%",padding:"0",color:y.textColor.primary,fontSize:"12px",cursor:"pointer"},"& fieldset":{display:"none"}}},"& > .check-select-content":{paddingLeft:"10px",height:"100%",overflow:"hidden","& > .check-select-content-item":{display:"inline-block",backgroundColor:y.bgBorderColor.bg2,borderRadius:y.borderRadius,padding:"0 10px",color:y.textColor.primary,fontSize:"12px",marginRight:"10px",verticalAlign:"top",maxWidth:"100%",whiteSpace:"nowrap","&.check-select-content-item-more":{color:y.thmemColor.primary,cursor:"pointer","& > span":{maxWidth:"none"}},"& > span":{display:"inline-block",hieght:"100%",verticalAlign:"top",maxWidth:"calc(100% - 20px)",overflow:"hidden",textOverflow:"ellipsis"},"& > svg":{cursor:"pointer",marginLeft:"8px",color:y.textColor.secondary,fontSize:"16px",position:"relative",top:"2px","&:hover":{color:y.thmemColor.primary}}},"& > .check-search-outside":{width:"10px",maxWidth:"100% !important",display:"none","& > div":{width:"100%","& > input":{width:"100%",padding:"0",color:y.textColor.primary,fontSize:"12px",cursor:"pointer"},"& fieldset":{display:"none"}}}}},"& > .select-error-text":{margin:0,paddingLeft:"10px",height:"20px",lineHeight:"20px"},"&.select-disabled":{"& > .select-content":{backgroundColor:y.bgBorderColor.bg2,cursor:"not-allowed","&:hover":{borderColor:y.textColor.thirdary,"& > .select-svg":{"& > svg":{color:y.textColor.secondary}}},"& > .check-select-content":{"& > .check-select-content-item":{backgroundColor:y.bgBorderColor.bg3,"& > span":{maxWidth:"none"}}}}},"&.select-error":{"& > .select-content":{borderColor:y.stateColor.error+"!important"},"& > .select-error-text":{color:y.stateColor.error+"!important"}},"&.select-multiple":{},"&.select-open":{"& > .select-content":{borderColor:y.thmemColor.primary,"& > .select-svg":{"& > svg":{transform:"rotate(180deg)",color:y.thmemColor.primary}},"& > .check-select-content":{"& > .check-search-outside":{display:"inline-block"}}}},"&.select-small":{"& > .select-content":{height:"28px","& > .select-label-placeholder":{lineHeight:"26px"},"& > .select-svg":{top:"5px"},"& > .radio-select-content":{paddingTop:"5px",paddingBottom:"5px"},"& > .radio-search-outside":{"& > div":{paddingTop:"5px",paddingBottom:"5px"}},"& > .check-select-content":{paddingBottom:"3px","& > .check-select-content-item":{marginTop:"3px",height:"20px",lineHeight:"20px"},"& > .check-search-outside":{marginTop:"3px","& input":{height:"20px"}}}}},"&.select-medium":{"& > .select-content":{height:"34px","& > .select-label-placeholder":{lineHeight:"32px"},"& > .select-svg":{top:"8px"},"& > .radio-select-content":{paddingTop:"8px",paddingBottom:"8px"},"& > .radio-search-outside":{"& > div":{paddingTop:"8px",paddingBottom:"8px"}},"& > .check-select-content":{paddingBottom:"4px","& > .check-select-content-item":{marginTop:"4px",height:"24px",lineHeight:"24px"},"& > .check-search-outside":{marginTop:"4px","& input":{height:"24px"}}}}},"&.select-large":{"& > .select-content":{height:"40px","& > .select-label-placeholder":{lineHeight:"38px"},"& > .select-svg":{top:"11px"},"& > .radio-select-content":{paddingTop:"11px",paddingBottom:"11px"},"& > .radio-search-outside":{"& > div":{paddingTop:"11px",paddingBottom:"11px"}},"& > .check-select-content":{paddingBottom:"7px","& > .check-select-content-item":{marginTop:"7px",height:"24px",lineHeight:"24px"},"& > .check-search-outside":{marginTop:"7px","& input":{height:"24px"}}}}},"&.select-over-line":{"&.select-small":{"& > .select-content":{height:"inherit",minHeight:"28px","& > .radio-select-content":{}}},"&.select-medium":{"& > .select-content":{height:"inherit",minHeight:"34px","& > .radio-select-content":{}}},"&.select-large":{"& > .select-content":{height:"inherit",minHeight:"40px","& > .radio-select-content":{}}}}},"select-popover":{"& *":{boxSizing:"border-box"},"& > div":{maxWidth:"none",padding:"0",backgroundColor:y.textColor.white,boxShadow:y.boxShadow,borderRadius:y.borderRadius,"& > span":{color:y.textColor.white},"& .select-popover-content":{maxHeight:"300px",overflow:"auto","& > .select-popover-search":{height:"30px",borderBottom:"1px solid "+y.bgBorderColor.bg3,padding:"0 10px",display:"flex","& > div":{width:"100%","& input":{padding:"0",height:"28px",fontSize:"12px",color:y.textColor.primary,"&::placeholder":{fontSize:"12px",color:y.textColor.thirdary,opacity:1}},"& fieldset":{display:"none"}},"& > svg":{color:y.thmemColor.primary,fontSize:"16px",marginTop:"7px",cursor:"pointer"}},"& > .select-popover-list":{"& .select-popover-list-item":{display:"flex",padding:"7px 10px",cursor:"pointer",lineHeight:"16px","& > .select-popover-list-item-label":{width:"calc(100% - 25px)",color:y.textColor.secondary,fontSize:"12px"},"& > .select-popover-list-item-svg":{lineHeight:"0",display:"none","& > svg":{fontSize:"16px",color:y.thmemColor.primary}},"&.select-popover-list-item-select":{"& > .select-popover-list-item-label":{color:y.thmemColor.primary},"& > .select-popover-list-item-svg":{display:"inline-block"}},"&.select-popover-list-item-hover":{backgroundColor:y.bgBorderColor.bg2,"& > .select-popover-list-item-label":{color:y.thmemColor.primary}},"&.select-popover-list-item-keydown":{backgroundColor:y.bgBorderColor.bg2,"& > .select-popover-list-item-label":{color:y.thmemColor.primary}}},"& > .select-popover-list-group":{"& .select-popover-list-group-label":{display:"inline-block",width:"100%",padding:"7px 10px",color:y.textColor.thirdary,fontSize:"12px"},"& .select-popover-list-item":{padding:"7px 10px 7px 20px"}},"& > .select-nodata":{textAlign:"center",fontSize:"12px",color:y.textColor.primary,padding:"10px"}}}}},"select-more-popover":{"& *":{boxSizing:"border-box"},"& > div:nth-of-type(3),& > div:nth-of-type(2)":{marginLeft:"10px"},"& .select-more":{width:"200px",maxHeight:"300px",overflow:"auto","& > .select-more-title":{height:"30px",padding:"0 10px",color:y.textColor.secondary,borderBottom:"1px solid "+y.bgBorderColor.bg2,lineHeight:"30px",fontSize:"12px",display:"flex",justifyContent:"space-between"},"& > .select-more-content":{"& > .select-more-content-item":{padding:"7px 7px 7px 10px",display:"flex",justifyContent:"space-around","& > span":{width:"calc(100% - 25px)",display:"inline-block",fontSize:"12px"},"& > svg":{color:y.textColor.secondary,fontSize:"16px",position:"relative",top:"1px",cursor:"pointer","&:hover":{color:y.thmemColor.primary}}}}}}})}));t.default=function(e){var t=e.className,o=e.size,l=void 0===o?"small":o,s=e.labelMode,d=void 0===s?"outside":s,u=e.placeholder,v=void 0===u?"":u,m=e.label,y=void 0===m?"":m,w=e.disabled,j=void 0!==w&&w,k=e.multiple,S=void 0!==k&&k,O=e.required,F=void 0!==O&&O,N=e.showLabelSign,z=void 0===N||N,T=e.labelSign,E=e.error,q=void 0!==E&&E,B=e.helperText,L=void 0===B?"":B,P=e.list,M=e.showName,A=void 0===M?"label":M,D=e.showValue,I=void 0===D?"value":D,H=e.childrenName,R=void 0===H?"children":H,W=e.value,Z=e.onChange,V=e.overLine,_=void 0!==V&&V,U=e.search,G=void 0!==U&&U,K=e.searchModel,$=void 0===K?"inside":K,J=e.selectPopoverClassName,Y=e.morePopoverClassName,X=e.onEnter,Q=C(e),ee=(0,r.useRef)(null),te=(0,r.useState)("select-"+(0,x.UUID)())[0],oe=(0,r.useState)("select-popover-"+(0,x.UUID)())[0],ie=(0,r.useState)(!1),re=ie[0],ne=ie[1],le=(0,r.useState)(!1),ae=le[0],se=le[1],ce=(0,r.useState)([]),de=ce[0],pe=ce[1],ue=(0,r.useState)([]),he=ue[0],fe=ue[1],ve=(0,r.useState)({}),me=ve[0],xe=ve[1],ge=(0,r.useState)(null),be=ge[0],ye=ge[1],Ce=(0,r.useState)({})[0],we=(0,r.useState)(!1),je=we[0],ke=we[1],Se=(0,r.useState)(""),Oe=Se[0],Fe=Se[1],Ne=(0,r.useState)(!1),ze=Ne[0],Te=Ne[1],Ee=(0,r.useRef)(null);(0,r.useEffect)((function(){void 0!==W&&pe(S?(0,x.DeepClone)(W||[]):""===W?[]:[W])}),[W,S]),(0,r.useEffect)((function(){if(G&&"outside"===$)return Te(!!S);Te(_)}),[_,G,$,S]),(0,r.useEffect)((function(){for(var e={},t=0,o=P.length;t<o;t++){var i=P[t];if(i[R]&&i[R].length>0)for(var r=i[R],n=0,l=r.length;n<l;n++){var a=r[n];e[a[I]]=a}else e[i[I]]=i}xe(e)}),[P]),(0,r.useEffect)((function(){S&&(ze||ye(de.length))}),[ze,S,de]),(0,r.useEffect)((function(){return ze?ye(de.length):(setTimeout((function(){Ae(de.length)})),window.addEventListener("resize",De)),function(){window.removeEventListener("resize",De)}}),[de,ze]),(0,r.useEffect)((function(){de&&de.length>0?se(!0):(se(!1),G&&"outside"===$&&se(""!==Oe))}),[G,Oe,$,de]),(0,r.useEffect)((function(){clearTimeout(Ce.searchTimer),G&&""!==Oe.trim()?Ce.searchTimer=setTimeout((function(){for(var e=[],t=(0,x.DeepClone)(P),o=0,i=t.length;o<i;o++){var r=t[o];if(r[R]&&r[R].length>0){for(var n=r[R],l=[],a=0,s=n.length;a<s;a++){var c=n[a];Me(c)&&l.push(c)}l.length>0&&(r[R]=l,e.push(r))}else{Me(r)&&e.push(r)}}fe(e)}),100):fe((0,x.DeepClone)(P))}),[G,Oe,P]),(0,r.useEffect)((function(){return re?setTimeout((function(){Be(),window.addEventListener("click",Pe),window.addEventListener("keydown",$e)})):(Fe(""),window.removeEventListener("click",Pe),window.removeEventListener("keydown",$e)),function(){window.removeEventListener("click",Pe),window.removeEventListener("keydown",$e)}}),[re]),(0,r.useEffect)((function(){Oe&&ne(!0)}),[Oe]),(0,r.useEffect)((function(){S&&"outside"===$&&!j&&Ue(Oe)}),[Oe,S,j,$]);var qe,Be=function(){var e=Ee&&Ee.current,t=e&&e.querySelector("input");t&&t.focus()},Le=function(e,t){for(var o=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;e&&!o.call(e,t);)e=e.parentElement;return e},Pe=function(e){Le(e.target,"."+oe)||ne(!1)},Me=function(e){var t=!1;return-1!==e[A].indexOf(Oe)&&(t=!0),t},Ae=function(e){if(null!==e&&0!==e){void 0===e&&(e=de.length);var t=document.querySelector("."+te+" > .select-content > .check-select-content");if(t)if(t.scrollHeight>t.clientHeight){var o=Number(e)-1;ye(o),Ae(o)}else de.length<=e&&We()}},De=function(){clearTimeout(Ce.timer),Ce.timer=setTimeout((function(){ye(de.length),Ae()}),100)},Ie=function(){j||ne(!0)},He=function(){ne(!1)},Re=function(e){ke(!0),ne(!1),e.stopPropagation()},We=function(){ke(!1)},Ze=function(e,t){return function(o){var i=e[I];if(S){var r=de.indexOf(i);-1!==r?de.splice(r,1):de.push(i),Z&&Z(b([],de,!0),o),t&&X&&X(b([],de,!0)),Be()}else Z&&Z(i,o),t&&X&&X(i),He(),Fe("")}},Ve=function(e,t){return function(o){var i;e||((i={})[I]=t,e=i),Ze(e)(o),o.stopPropagation()}},_e=function(e){Fe(e.target.value)},Ue=function(e){var t=Ee&&Ee.current,o=t&&t.querySelector("input");if(!o)return null;var i=window.getComputedStyle(o),r=i.fontFamily,n=function(e,t,o){var i=document.createElement("span");i.id="referenceSpan";var r={};r.width=i.offsetWidth,r.height=i.offsetHeight,i.style.visibility="hidden",i.style.fontSize=e,i.style.fontFamily=t,i.style.display="inline-block";var n=document.getElementById("referenceSpan");return n&&document.body.removeChild(n),document.body.appendChild(i),void 0!==i.textContent?i.textContent=o:i.innerText=o,r.width=parseFloat(window.getComputedStyle(i).width)-r.width,r.height=parseFloat(window.getComputedStyle(i).height)-r.height,document.body.removeChild(i),r}(i.fontSize,r,e),l=n.width;l<10&&(l=10),t.style.width=l+"px"},Ge=function(e){var t=e.selectDom,o=e.keyCode,i=e.currentKeydownDom,r=null,n="nextSibling",l=".select-popover-list > div",a=".select-popover-list-item";if(38===o&&(n="previousSibling",l=".select-popover-list > div:last-child",a=".select-popover-list-item:last-child"),i)if(r=i[n])-1!==r.className.indexOf("select-popover-list-group-label")&&((r=(r=i.parentNode)[n])||(r=t.querySelector(l)));else{var s=i.parentNode;s&&s.className&&-1!==s.className.indexOf("select-popover-list-group")&&(r=(r=i.parentNode)[n])||(r=t.querySelector(l))}else r=t.querySelector(l);if(r)if(-1!==r.className.indexOf("select-popover-list-group")){var c=r.querySelector(a);c&&(c.classList.add("select-popover-list-item-keydown"),Ke(c,t))}else r.classList.add("select-popover-list-item-keydown"),Ke(r,t)},Ke=function(e,t){clearTimeout(Ce.scrollTimer);var o=t.clientHeight,i=e.offsetTop+e.clientHeight-o;Ce.scroll=!0,t.scrollTop=i>0?i:0,Ce.scrollTimer=setTimeout((function(){Ce.scroll=!1}),100)},$e=function(e){var t=document.querySelector("."+oe);if(t){var o=t.querySelector(".select-popover-list-item-select"),i=t.querySelector(".select-popover-list-item-hover"),r=t.querySelector(".select-popover-list-item-keydown"),n=o;if(i&&(n=i),13===e.keyCode){var l=r||i;if(l){var a=l.dataset.val;Ze(me[a],!0)({target:r})}else X&&X(W)}r&&(n=r,r.classList.remove("select-popover-list-item-keydown")),40===e.keyCode&&Ge({selectDom:t,keyCode:e.keyCode,currentKeydownDom:n}),38===e.keyCode&&Ge({selectDom:t,keyCode:e.keyCode,currentKeydownDom:n})}},Je=function(e){if(!Ce.scroll){var t=Le(e.target,".select-popover-list-item");if(t){t.classList.add("select-popover-list-item-hover");var o=document.querySelector("."+oe).querySelector(".select-popover-list-item-keydown");o&&o.classList.remove("select-popover-list-item-keydown")}}},Ye=function(e){var t=Le(e.target,".select-popover-list-item");t&&t.classList.remove("select-popover-list-item-hover")},Xe=(0,r.useMemo)((function(){return(0,i.jsx)(i.Fragment,{children:"outside"===d&&(0,i.jsxs)("label",g({className:"select-label"},{children:[y,z&&(0,i.jsx)("span",g({className:"identification-label"},{children:T||(0,i.jsx)(i.Fragment,{children:F?"(必填)":""},void 0)}),void 0)]}),void 0)},void 0)}),[d,y,z,T,F]),Qe=(0,r.useMemo)((function(){return(0,i.jsx)(i.Fragment,{children:!ae&&(0,i.jsx)("span",g({className:"select-label-placeholder"},{children:"outside"===d?v:(0,i.jsxs)(i.Fragment,{children:[y||v,z&&(0,i.jsx)("span",g({className:"identification-label"},{children:T||(0,i.jsx)(i.Fragment,{children:F?"(必填)":""},void 0)}),void 0)]},void 0)}),void 0)},void 0)}),[ae,d,v,y,z,T,F]),et=(0,r.useMemo)((function(){return(0,i.jsx)(i.Fragment,{children:!S&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",g({className:"radio-select-content"},{children:function(){if(""!==Oe)return null;var e=me[de[0]]&&me[de[0]][A]||de[0];return ze?e:(0,i.jsx)(f.default,{children:e},void 0)}()}),void 0),G&&"outside"===$&&!j&&(0,i.jsx)(n.TextField,{variant:"outlined",className:"radio-search-outside",value:Oe,onChange:_e,ref:Ee},void 0)]},void 0)},void 0)}),[S,ae,ze,me,de,A,G,$,Oe,j]),tt=(0,r.useMemo)((function(){var e=function(e){return me[de[e]]&&me[de[e]][A]||de[e]};return(0,i.jsx)(i.Fragment,{children:S&&(0,i.jsxs)("div",g({className:"check-select-content"},{children:[de&&de.map((function(t,o){return null!==be&&be<=o?null:(0,i.jsxs)("div",g({className:"check-select-content-item"},{children:[(0,i.jsx)("span",{children:e(o)},void 0),!j&&(0,i.jsx)(h(),{onClick:Ve(me[de[o]],de[o])},void 0)]}),o)})),function(){if(null!==be&&de.length>be)return(0,i.jsx)("div",g({className:"check-select-content-item check-select-content-item-more",onClick:Re},{children:(0,i.jsxs)("span",{children:["+",de.length-be]},void 0)}),void 0)}(),G&&"outside"===$&&!j&&(0,i.jsx)(n.TextField,{variant:"outlined",className:"check-search-outside",value:Oe,onChange:_e,ref:Ee},void 0)]}),void 0)},void 0)}),[S,ae,de,be,me,j,Z,Oe,G,$]),ot=(0,r.useMemo)((function(){return(0,i.jsxs)("div",g({className:"select-content",onClick:Ie,ref:ee},{children:[Qe,(0,i.jsx)("span",g({className:"select-svg"},{children:(0,i.jsx)(a(),{},void 0)}),void 0),et,tt]}),void 0)}),[ee,ae,d,v,y,z,T,F,ze,me,de,A,S,be,j,Z,Oe,$]),it=(0,r.useMemo)((function(){return(0,i.jsx)("div",g({className:"select-popover-list"},{children:he&&he.length>0?(0,i.jsx)(i.Fragment,{children:he.map((function(e,t){if(e[R]&&e[R].length>0){var o=e[R];return(0,i.jsxs)("div",g({className:"select-popover-list-group"},{children:[(0,i.jsx)("span",g({className:"select-popover-list-group-label"},{children:e[A]}),void 0),o.map((function(e,t){var o=e[I],r="select-popover-list-item";return-1!==de.indexOf(o)&&(r+=" select-popover-list-item-select"),(0,i.jsxs)("div",g({onClick:Ze(e),className:r,onMouseEnter:Je,onMouseLeave:Ye,"data-val":o},{children:[(0,i.jsx)("span",g({className:"select-popover-list-item-label"},{children:(0,i.jsx)(f.default,{children:e[A]},void 0)}),void 0),(0,i.jsx)("span",g({className:"select-popover-list-item-svg"},{children:(0,i.jsx)(p(),{},void 0)}),void 0)]}),t)}))]}),t)}var r=e[I],n="select-popover-list-item";return-1!==de.indexOf(r)&&(n+=" select-popover-list-item-select"),(0,i.jsxs)("div",g({onClick:Ze(e),className:n,onMouseEnter:Je,onMouseLeave:Ye,"data-val":r},{children:[(0,i.jsx)("span",g({className:"select-popover-list-item-label"},{children:(0,i.jsx)(f.default,{children:e[A]},void 0)}),void 0),(0,i.jsx)("span",g({className:"select-popover-list-item-svg"},{children:(0,i.jsx)(p(),{},void 0)}),void 0)]}),t)}))},void 0):(0,i.jsx)("div",g({className:"select-nodata"},{children:"暂无选项"}),void 0)}),void 0)}),[he,A,I,de,Z]),rt=(0,r.useMemo)((function(){var e="select-popover-content "+oe;return(0,i.jsxs)("div",g({style:{width:(ee&&ee.current?ee.current.offsetWidth:0)+"px"},className:e},{children:[G&&"inside"===$&&(0,i.jsxs)("div",g({className:"select-popover-search"},{children:[(0,i.jsx)(n.TextField,{variant:"outlined",placeholder:"请输入搜索名",value:Oe,onChange:_e,ref:Ee},void 0),(0,i.jsx)(c(),{},void 0)]}),void 0),it]}),void 0)}),[re,ee,he,R,I,A,de,Oe,G,oe,$]),nt=(0,r.useMemo)((function(){var e,t=function(e){return me[de[e]]&&me[de[e]][A]||de[e]};return(0,i.jsx)(n.Popover,g({open:je,anchorEl:ee&&ee.current,onClose:We,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},className:(e=Q["select-more-popover"],Y&&(e+=" "+Y),e)},{children:(0,i.jsxs)("div",g({className:"select-more"},{children:[(0,i.jsxs)("div",g({className:"select-more-title"},{children:[(0,i.jsx)("span",{children:"已选中"},void 0),(0,i.jsx)("span",{children:de.length-Number(be)},void 0)]}),void 0),(0,i.jsx)("div",g({className:"select-more-content"},{children:de&&de.map((function(e,o){return null!==be&&be>o?null:(0,i.jsxs)("div",g({className:"select-more-content-item"},{children:[(0,i.jsx)("span",{children:(0,i.jsx)(f.default,{children:t(o)},void 0)},void 0),!j&&(0,i.jsx)(h(),{onClick:Ve(me[de[o]],de[o])},void 0)]}),o)}))}),void 0)]}),void 0)}),void 0)}),[je,de,be,me,j,A,Y]);return(0,i.jsxs)("div",g({className:(qe=Q.select,qe+=" select",S&&!ze&&(qe+=" "+te),t&&(qe+=" "+t),l&&(qe+=" select-"+l),q&&(qe+=" select-error"),j&&(qe+=" select-disabled"),re&&(qe+=" select-open"),S&&(qe+=" select-multiple"),ze&&(qe+=" select-over-line"),qe)},{children:[Xe,(0,i.jsx)(n.Tooltip,g({open:re,title:rt,onClose:He,interactive:!0,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,arrow:!0,classes:{popper:function(){var e=Q["select-popover"];return J&&(e+=" "+J),e}()},placement:"bottom-start"},{children:ot}),void 0),L&&(0,i.jsx)("p",g({className:"select-error-text"},{children:L}),void 0),nt]}),void 0)}},5939:function(e,t,o){var i=o(7712),r=o(1731),n=o(8604),l=o(853),a=o(4927),s=function(){return s=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},s.apply(this,arguments)},c=function(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(o[i[r]]=e[i[r]])}return o},d=(0,l.Z)(),p=(0,n.withStyles)((function(e){return(0,n.createStyles)({root:{width:"auto",height:"auto",padding:0,overflow:"visible"},switchBase:{padding:0,top:-2,color:d.bgBorderColor.bg4,"&$checked":{color:d.thmemColor.primary},"&$checked + $track":{backgroundColor:d.thmemColor.thirdary,opacity:1}},checked:{},thumb:{width:18,height:18},track:{width:32,height:14,borderRadius:7,backgroundColor:d.bgBorderColor.bg1,opacity:1},input:{left:"auto",width:"auto"}})}),{name:"SwitchCompact"})(r.Switch),u=(0,n.withStyles)((function(e){return(0,n.createStyles)({root:{width:"auto",height:"auto",padding:0},switchBase:{padding:2,color:d.textColor.white,"&$checked":{transform:"translateX(14px)",color:d.textColor.white,"& + $track":{backgroundColor:d.thmemColor.primary,opacity:1}}},thumb:{width:14,height:14},track:{width:32,height:18,borderRadius:9,backgroundColor:d.bgBorderColor.bg4,opacity:1},input:{left:"auto",width:"auto"},checked:{}})}),{name:"SwitchNormal"})(r.Switch),h=(0,n.makeStyles)((function(){return(0,n.createStyles)({smallThumb:function(e){return"compact"===e.type?{width:16,height:16,borderRadius:8}:{width:12,height:12,borderRadius:6}},smallTrack:function(e){return"compact"===e.type?{width:30,height:12,borderRadius:6}:{width:30,height:16,borderRadius:8}},largeThumb:function(e){return"compact"===e.type?{width:20,height:20,borderRadius:10}:{width:16,height:16,borderRadius:8}},largeTrack:function(e){return"compact"===e.type?{width:34,height:16,borderRadius:8}:{width:34,height:20,borderRadius:10}}})}));t.default=function(e){var t=e.type,o=void 0===t?"normal":t,r=e.size,n=void 0===r?"medium":r,l=e.className,d=c(e,["type","size","className"]),f=h({type:o});return(0,i.jsx)(i.Fragment,{children:function(){if("compact"===o){var e="medium"===n?{}:{thumb:f[n+"Thumb"],track:f[n+"Track"]};return(0,i.jsx)(p,s({},d,{classes:e,className:(0,a.Z)("paraui-switch",l)}),void 0)}var t="medium"===n?{}:{thumb:f[n+"Thumb"],track:f[n+"Track"]};return(0,i.jsx)(u,s({},d,{classes:t,className:(0,a.Z)("paraui-switch",l)}),void 0)}()},void 0)}},4661:function(e,t,o){var i=o(7712),r=o(9297),n=o(1731),l=o(115),a=o(8528),s=o.n(a),c=o(6570),d=o.n(c),p=o(1102),u=o.n(p),h=o(8604),f=o(853),v=o(3475),m=function(){return m=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},m.apply(this,arguments)},x=function(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(o[i[r]]=e[i[r]])}return o},g=(0,f.Z)(),b=(0,h.makeStyles)((function(){return(0,h.createStyles)({"@keyframes rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"text-field":{fontFamily:g.fontFamily.zh,display:"inline-block",fontSize:g.standardFont.standardFont1.fontSize,width:"100%",paddingBottom:"20px","& fieldset":{border:0},"& .text-field-error-text":{margin:0,paddingLeft:"10px",height:"20px",lineHeight:"20px"},"& .text-field-label":{color:g.textColor.secondary,marginBottom:"9px",display:"inline-block"},"& .text-field-content":{border:"1px solid",borderColor:g.textColor.thirdary,borderRadius:g.borderRadius,position:"relative",display:"table",width:"100%",boxSizing:"border-box","&:hover":{borderColor:g.thmemColor.primary},"& > div":{display:"table-cell",height:"100%",verticalAlign:"top"},"& .text-field-content-before":{color:g.textColor.primary,padding:"0 10px",borderRight:"1px solid "+g.textColor.thirdary,backgroundColor:g.bgBorderColor.bg2,borderBottomLeftRadius:g.borderRadius,borderTopLeftRadius:g.borderRadius,whiteSpace:"nowrap","& svg":{fontSize:"20px",verticalAlign:"top",position:"relative"}},"& .text-field-content-within":{position:"relative",width:"100%","& > *":{display:"table-cell",verticalAlign:"top"},"& svg":{fontSize:"20px",color:g.textColor.secondary,cursor:"pointer"},"& .right-icon":{zIndex:"1",position:"relative",whiteSpace:"nowrap","& > svg":{marginRight:"10px"}},"& .length-limit":{zIndex:"1",position:"relative",paddingRight:"10px",color:g.textColor.secondary},"& .text-field-content-within-input":{width:"100vw","& > div":{width:"100%"},"& input":{height:"100%"},"& input,textarea":{fontSize:g.standardFont.standardFont1.fontSize,color:g.textColor.primary,"&:-ms-clear":{display:"none"},"&:-ms-reveal":{display:"none"}},"& .text-field-label-placeholder":{width:"100%",position:"absolute",left:"0",height:"100%",padding:"0 10px",boxSizing:"border-box",color:g.textColor.thirdary,cursor:"text",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},"& .text-field-content-after":{color:g.textColor.primary,padding:"0 10px",borderLeft:"1px solid",borderColor:g.textColor.thirdary,backgroundColor:g.bgBorderColor.bg2,borderBottomRightRadius:g.borderRadius,borderTopRightRadius:g.borderRadius,whiteSpace:"nowrap","& svg":{fontSize:"20px",verticalAlign:"top",position:"relative"}}},"& .identification-label":{marginLeft:"3px"},"&.text-field-multiline":{"& .text-field-content":{"& .text-field-content-within":{"& > *":{display:"inline-block"},"& .length-limit":{width:"100%",boxSizing:"border-box",textAlign:"right",paddingBottom:"5px"},"& .text-field-content-within-input":{width:"100%","& > div:first-child":{width:"100%","& > div:first-child":{padding:"10px"}},"& .text-field-label-placeholder":{paddingTop:"10px"}}}}},"&.text-field-disabled":{"& .text-field-content":{backgroundColor:g.bgBorderColor.bg3,"&:hover":{borderColor:g.textColor.thirdary},"& .text-field-content-within":{"& .text-field-content-within-input":{"& .text-field-label-placeholder":{cursor:"not-allowed"},"& input":{cursor:"not-allowed",color:g.textColor.thirdary}}}}},"&.text-field-error":{"& .text-field-error-text":{color:g.stateColor.error},"& .text-field-content":{borderColor:g.stateColor.error,"&:hover":{borderColor:g.stateColor.error},"& .text-field-content-before":{borderColor:g.stateColor.error},"& .text-field-content-after":{borderColor:g.stateColor.error}}},"&.text-field-focus":{"& .text-field-content":{borderColor:g.thmemColor.primary,"& .text-field-content-before":{borderColor:g.thmemColor.primary},"& .text-field-content-after":{borderColor:g.thmemColor.primary}}},"&.text-field-small":{"& .text-field-content":{height:"28px","& .text-field-content-before":{lineHeight:"26px","& svg":{top:"3px"}},"& .text-field-content-within":{"& .text-field-content-within-input":{"& > div":{height:"26px","& > div":{height:"100%"}}},"& input":{padding:"5px 10px"},"& .text-field-label-placeholder":{lineHeight:"26px"},"& .right-icon":{paddingTop:"3px"},"& .length-limit":{lineHeight:"26px"}},"& .text-field-content-after":{lineHeight:"26px","& svg":{top:"3px"}}}},"&.text-field-medium":{"& .text-field-content":{height:"34px","& .text-field-content-before":{lineHeight:"32px","& svg":{top:"6px"}},"& .text-field-content-within":{"& .text-field-content-within-input":{"& > div":{height:"32px","& > div":{height:"100%"}}},"& input":{padding:"8px 10px"},"& .text-field-label-placeholder":{lineHeight:"32px"},"& .right-icon":{paddingTop:"7px"},"& .length-limit":{lineHeight:"32px","& svg":{top:"6px"}}},"& .text-field-content-after":{lineHeight:"32px","& svg":{top:"6px"}}}},"&.text-field-large":{"& .text-field-content":{height:"40px","& .text-field-content-before":{lineHeight:"38px","& svg":{top:"9px"}},"& .text-field-content-within":{"& .text-field-content-within-input":{"& > div":{height:"38px","& > div":{height:"100%"}}},"& input":{padding:"11px 10px"},"& .text-field-label-placeholder":{lineHeight:"38px"},"& .right-icon":{paddingTop:"10px"},"& .length-limit":{lineHeight:"38px"}},"& .text-field-content-after":{lineHeight:"38px","& svg":{top:"9px"}}}}},"text-field-select":{"& > div":{maxWidth:"none",padding:"0",backgroundColor:g.textColor.white,boxShadow:g.boxShadow,borderRadius:g.borderRadius,"& > span":{color:g.textColor.white},"& .text-field-select-content":{maxHeight:"300px",overflow:"auto","& > .text-field-select-content-item":{display:"flex",padding:"7px 10px",cursor:"pointer",lineHeight:"16px",color:g.textColor.secondary,"&:hover":{backgroundColor:g.bgBorderColor.bg2,color:g.thmemColor.primary},"&.text-field-select-content-item-keydown":{backgroundColor:g.bgBorderColor.bg2,color:g.thmemColor.primary}},"&.text-field-select-content-loading":{height:"100px",position:"relative",overflow:"hidden","& > .loading-box":{position:"absolute",left:"0",top:"0",width:"100%",height:"100%",backgroundColor:"white",display:"flex",justifyContent:"center",alignItems:"center","& > svg":{transition:"all .3s ease-in-out",animation:"$rotate 1s infinite linear",fontSzie:"20px"}}}}}}})}));t.default=function(e){var t=e.className,o=e.size,a=void 0===o?"small":o,c=e.labelMode,p=void 0===c?"outside":c,h=e.placeholder,f=void 0===h?"":h,g=e.label,y=void 0===g?"":g,C=e.disabled,w=void 0!==C&&C,j=e.multiline,k=void 0!==j&&j,S=e.required,O=void 0!==S&&S,F=e.showLabelSign,N=void 0===F||F,z=e.labelSign,T=e.rows,E=void 0===T?2:T,q=e.error,B=void 0!==q&&q,L=e.helperText,P=void 0===L?"":L,M=e.addonBefore,A=void 0===M?"":M,D=e.addonAfter,I=void 0===D?"":D,H=e.value,R=e.controlled,W=void 0!==R&&R,Z=e.autoFocus,V=void 0!==Z&&Z,_=e.type,U=void 0===_?"text":_,G=e.onClickIcon,K=e.rightIcon,$=e.showRightIcon,J=void 0===$||$,Y=e.limitLength,X=e.fetchSuggestions,Q=e.selectPopoverClass,ee=e.renderSelectItem,te=e.showSelectName,oe=void 0===te?"value":te,ie=e.onBlur,re=e.onFocus,ne=e.onChange,le=e.onKeydown,ae=e.onKeyUp,se=e.onEnter,ce=e.onClickAddonBefore,de=e.onClickAddonAfter,pe=e.onSelect,ue=x(e,["className","size","labelMode","placeholder","label","disabled","multiline","required","showLabelSign","labelSign","rows","error","helperText","addonBefore","addonAfter","value","controlled","autoFocus","type","onClickIcon","rightIcon","showRightIcon","limitLength","fetchSuggestions","selectPopoverClass","renderSelectItem","showSelectName","onBlur","onFocus","onChange","onKeydown","onKeyUp","onEnter","onClickAddonBefore","onClickAddonAfter","onSelect"]),he=b(e),fe=(0,r.useState)("text-field-select-content-"+(0,v.UUID)())[0],ve=(0,r.useState)(!0),me=ve[0],xe=ve[1],ge=(0,r.useState)(),be=ge[0],ye=ge[1],Ce=(0,r.useState)(!1),we=Ce[0],je=Ce[1],ke=(0,r.useState)(0),Se=ke[0],Oe=ke[1],Fe=(0,r.useState)("text"),Ne=Fe[0],ze=Fe[1],Te=(0,r.useState)(!1),Ee=Te[0],qe=Te[1],Be=(0,r.useState)(!1),Le=Be[0],Pe=Be[1],Me=(0,r.useState)([]),Ae=Me[0],De=Me[1],Ie=((0,r.useState)({})[0],(0,r.useRef)(null)),He=(0,r.useRef)(null),Re=(0,r.useRef)(null);(0,r.useEffect)((function(){Ie&&Ie.current&&Oe(Ie.current.offsetWidth)}),[]),(0,r.useEffect)((function(){U!==Ne&&ze(U)}),[U]),(0,r.useEffect)((function(){ye(H)}),[H]),(0,r.useEffect)((function(){xe(""===be||void 0===be)}),[be]),(0,r.useEffect)((function(){X&&qe(we)}),[we,X]),(0,r.useEffect)((function(){return Ee?window.addEventListener("keydown",Ue):window.removeEventListener("keydown",Ue),function(){window.removeEventListener("keydown",Ue)}}),[Ee]);var We,Ze=function(){w||(xe(!1),(He&&He.current&&He.current.querySelector(k?"textarea":"input")).focus())},Ve=function(e){var t=e.selectDom,o=e.keyCode,i=e.currentDom,r="nextSibling",n=".text-field-select-content-item";38===o&&(r="previousSibling",n=".text-field-select-content-item:last-child"),i?(i=i[r])||(i=t.querySelector(n)):i=t.querySelector(".text-field-select-content-item"),i&&(i.classList.add("text-field-select-content-item-keydown"),_e(i,t))},_e=function(e,t){var o=t.clientHeight,i=e.offsetTop+e.clientHeight-o;t.scrollTop=i>0?i:0},Ue=function(e){var t=document.querySelector("."+fe),o=null,i=t.querySelector(".text-field-select-content-item-keydown");if(13===e.keyCode&&i){var r=i.dataset.val;tt(JSON.parse(r))(e),(He&&He.current&&He.current.querySelector(k?"textarea":"input")).blur()}i&&(o=i,i.classList.remove("text-field-select-content-item-keydown")),40===e.keyCode&&Ve({selectDom:t,keyCode:e.keyCode,currentDom:o}),38===e.keyCode&&Ve({selectDom:t,keyCode:e.keyCode,currentDom:o})},Ge=function(e){je(!1),""===e.target.value&&xe(!0),ie&&ie(e)},Ke=function(e){Pe(!0),X&&X(e,(function(e){De(e||[]),Pe(!1)}))},$e=function(e){je(!0),re&&re(e),Ke(e.target.value)},Je=function(e){var t=e.target.value;Y&&void 0!==t&&""!==t&&t.toString().length>Y||(W||ye(t),ne&&ne(e),Ke(e.target.value))},Ye=function(e){13===e.keyCode&&se&&se(e),le&&le(e)},Xe=function(e){ae&&ae(e)},Qe=function(e){"password"===U&&("text"===Ne&&ze("password"),"password"===Ne&&ze("text")),G&&G(e)},et=function(){qe(!1)},tt=function(e){return function(t){pe&&pe(e)}},ot=(0,r.useMemo)((function(){return(0,i.jsx)(i.Fragment,{children:void 0!==Y&&(0,i.jsx)("span",m({className:"length-limit"},{children:(be?be.toString().length:0)+"/"+Y}),void 0)},void 0)}),[Y,be]),it=(0,r.useMemo)((function(){return(0,i.jsx)(i.Fragment,{children:J&&(0,i.jsx)("span",m({className:"right-icon",onClick:Qe},{children:K||("password"===U?"password"===Ne?(0,i.jsx)(s(),{},void 0):(0,i.jsx)(d(),{},void 0):null)}),void 0)},void 0)}),[J,K,U,Ne]),rt=(0,r.useMemo)((function(){return(0,i.jsxs)("div",m({className:"text-field-content-within",ref:Re},{children:[(0,i.jsxs)("div",m({className:"text-field-content-within-input"},{children:[(0,i.jsx)(n.TextField,m({size:"small",variant:"outlined",autoFocus:V,ref:He,type:Ne,value:be||"",disabled:w,multiline:k,rows:E,onBlur:Ge,onFocus:$e,onChange:Je,onKeyDown:Ye,onKeyUp:Xe},ue),void 0),me&&(0,i.jsx)("span",m({className:"text-field-label-placeholder",onClick:Ze},{children:"outside"===p?f:(0,i.jsxs)(i.Fragment,{children:[y||f,N&&(0,i.jsx)("span",m({className:"identification-label"},{children:z||(0,i.jsx)(i.Fragment,{children:O?"(必填)":""},void 0)}),void 0)]},void 0)}),void 0)]}),void 0),ot,it]}),void 0)}),[me,V,Ne,be,ot,it,p,f,y,w,k,E,ue,ne,X]),nt=(0,r.useMemo)((function(){var e;return(0,i.jsxs)("div",m({className:(e="text-field-select-content",Le&&(e+=" text-field-select-content-loading"),fe&&(e+=" "+fe),e),style:{width:(Re&&Re.current?Re.current.offsetWidth:0)+"px"}},{children:[Ae&&Ae.map((function(e,t){return(0,i.jsx)("div",m({className:"text-field-select-content-item",onMouseDown:tt(e),"data-val":JSON.stringify(e)},{children:ee?ee(e):(0,i.jsx)(l.default,{children:e[oe]},void 0)}),t)})),Le&&(0,i.jsx)("div",m({className:"loading-box"},{children:(0,i.jsx)(u(),{},void 0)}),void 0)]}),void 0)}),[Re,Ee,Ae,ee,oe,pe,Le,fe]),lt=(0,r.useMemo)((function(){return(0,i.jsx)(n.Tooltip,m({open:Ee,title:nt,onClose:et,interactive:!0,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,arrow:!0,classes:{popper:(e=he["text-field-select"],Q&&(e+=" "+Q),e)}},{children:rt}),void 0);var e}),[me,V,Ne,be,ot,it,p,f,y,w,k,E,ue,ne,X,pe,Re,Ee,Q]),at=(0,r.useMemo)((function(){var e=Boolean(N&&(z||O));if("outside"===p&&(y||e))return(0,i.jsxs)("label",m({className:"text-field-label"},{children:[y,N&&(0,i.jsx)("span",m({className:"identification-label"},{children:z||(0,i.jsx)(i.Fragment,{children:O?"(必填)":""},void 0)}),void 0)]}),void 0)}),[p,y,N,z,O]);return(0,i.jsxs)("div",m({className:(We=he["text-field"],We+=" text-field",a&&!k&&(We+=" text-field-"+a),t&&(We+=" "+t),B&&(We+=" text-field-error"),we&&(We+=" text-field-focus"),w&&(We+=" text-field-disabled"),k&&(We+=" text-field-multiline"),We)},{children:[at,(0,i.jsxs)("div",m({className:"text-field-content"},{children:[A&&(0,i.jsx)("div",m({className:"text-field-content-before",ref:Ie,onClick:function(e){ce&&ce(e)}},{children:A}),void 0),X?lt:rt,I&&(0,i.jsx)("div",m({className:"text-field-content-after",onClick:function(e){de&&de(e)}},{children:I}),void 0)]}),void 0),P&&(0,i.jsx)("p",m({className:"text-field-error-text",style:{marginLeft:Se+"px"}},{children:P}),void 0)]}),void 0)}},1731:function(e){e.exports=i},8604:function(e){e.exports=o},6110:function(e){e.exports=d},19:function(e){e.exports=p},6243:function(e){e.exports=u},6028:function(e){e.exports=s},9973:function(e){e.exports=h},1102:function(e){e.exports=l},6570:function(e){e.exports=n},8528:function(e){e.exports=r},4115:function(e){e.exports=c},6897:function(e){e.exports=t},3475:function(e){e.exports=a},9297:function(t){t.exports=e}},v={};function m(e){var t=v[e];if(void 0!==t)return t.exports;var o=v[e]={exports:{}};return f[e](o,o.exports,m),o.exports}m.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return m.d(t,{a:t}),t},m.d=function(e,t){for(var o in t)m.o(t,o)&&!m.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},m.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},m.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var x={};return function(){m.r(x);var e=m(7712),t=m(9297),o=m.n(t),i=m(6816),r=m(2963),n=function(){return n=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},n.apply(this,arguments)},l=function(e,t,o){if(o||2===arguments.length)for(var i,r=0,n=t.length;r<n;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))};x.default=function(t){var a=t.FormProps,s=t.configList,c=t.type,d=t.getCheckForm,p=t.backData,u=void 0===p?{}:p,h=t.disabled,f=t.onChange,v=t.getForcedRefresh,m=t.form,x=o().useState(s),g=x[0],b=x[1],y=o().useRef({allItems:{},itemsCheckStatus:{},itemsCheckMessage:{},allValues:u}),C=function(e,t){if(t)for(var o in t)y.current.allValues[o]=t[o];b(e||g&&l([],g,!0))},w=function(e,t,o){switch(t){case"status":y.current.itemsCheckStatus[e]=o;break;case"message":y.current.itemsCheckMessage[e]=o;break;case"item":y.current.allItems[e]=o;break;case"initValue":y.current.allValues[e]=o;break;default:y.current.allValues[e]=o,f&&f(e,o)}},j=function(){var e=0;for(var t in y.current.allItems){var o=y.current.allItems[t];if(!o.disabled&&!o.hide&&!0!==y.current.itemsCheckStatus[t])if(!1!==y.current.itemsCheckStatus[t]){var i=(0,r.Z)(o,y.current.allValues[t]);i&&(e++,"string"==typeof i&&(y.current.itemsCheckMessage[t]=i),o.setErrorMsg&&o.setErrorMsg(i))}else e++}return console.log("checkFrom",e),!e&&y.current.allValues};return o().useEffect((function(){d&&d(j),v&&v(C)}),[d,v]),o().useEffect((function(){for(var e in u)y.current.allValues[e]=u[e]}),[u]),o().useEffect((function(){b(s)}),[s]),o().useEffect((function(){m&&(m.current={get refreshForm(){return C},get check(){return j},get items(){return y.current.allItems},get values(){return y.current.allValues},get refData(){return y.current}})}),[m]),(0,e.jsx)("form",n({},a,{children:(0,e.jsx)("div",n({className:"para-form-content"},{children:g&&g.length>0&&g.map((function(t,o){return t.hide&&w(t.name,"item",t),!t.hide&&(0,e.jsx)(i.default,n({type:c,disabled:h,errorMessage:y.current.itemsCheckMessage[t.name]},t,{backData:y.current.allValues,setValue:w}),"para-form-item-"+o)}))}),void 0)}),void 0)}}(),x}()}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { CheckboxGroupProps } from '../../../CheckboxGroup';
|
|
3
|
+
export interface FormCheckboxGroupProps extends CheckboxGroupProps {
|
|
4
|
+
defaultValue?: any[];
|
|
5
|
+
change?: (value: any) => any;
|
|
6
|
+
}
|
|
7
|
+
declare const FormCheckboxGroup: FC<FormCheckboxGroupProps>;
|
|
8
|
+
export default FormCheckboxGroup;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { FC, InputHTMLAttributes } from "react";
|
|
2
|
+
import { ButtonProps } from "../../../Button";
|
|
3
|
+
export interface FormFileProps {
|
|
4
|
+
/**
|
|
5
|
+
* 禁用
|
|
6
|
+
*/
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* 文件类型 可接受字符串 或数组
|
|
10
|
+
*/
|
|
11
|
+
fileType?: string | Array<string>;
|
|
12
|
+
/**
|
|
13
|
+
* 按钮名称 默认 选择文件
|
|
14
|
+
*/
|
|
15
|
+
buttonLabel?: string;
|
|
16
|
+
/**
|
|
17
|
+
* 值改变传出
|
|
18
|
+
*/
|
|
19
|
+
onChange?: (value: FileList) => any;
|
|
20
|
+
/**
|
|
21
|
+
* 默认值
|
|
22
|
+
*/
|
|
23
|
+
defaultValue?: string | FileList;
|
|
24
|
+
/**
|
|
25
|
+
* input 其他属性
|
|
26
|
+
*/
|
|
27
|
+
inputProps?: InputHTMLAttributes<HTMLInputElement>;
|
|
28
|
+
/**
|
|
29
|
+
* 按钮配置
|
|
30
|
+
*/
|
|
31
|
+
buttonProps?: ButtonProps;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* 文件组件
|
|
35
|
+
*/
|
|
36
|
+
declare const FormFile: FC<FormFileProps>;
|
|
37
|
+
export default FormFile;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { RadioGroupProps } from '../../../RadioGroup';
|
|
3
|
+
export interface FormRadioGroupProps extends RadioGroupProps {
|
|
4
|
+
defaultValue?: string;
|
|
5
|
+
change?: (value: any) => any;
|
|
6
|
+
}
|
|
7
|
+
declare const FormRadioGroup: FC<FormRadioGroupProps>;
|
|
8
|
+
export default FormRadioGroup;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
import { SelectProps } from '../../../Select';
|
|
3
|
+
export interface FormSelectProps extends SelectProps {
|
|
4
|
+
/**
|
|
5
|
+
* 默认值
|
|
6
|
+
*/
|
|
7
|
+
defaultValue?: string;
|
|
8
|
+
/**
|
|
9
|
+
* 改变方法
|
|
10
|
+
*/
|
|
11
|
+
change?: (value: any) => any;
|
|
12
|
+
/**
|
|
13
|
+
* 绑定值
|
|
14
|
+
*/
|
|
15
|
+
value?: string;
|
|
16
|
+
}
|
|
17
|
+
declare const FormSelect: FC<FormSelectProps>;
|
|
18
|
+
export default FormSelect;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { ItemTypeProps } from './itemType';
|
|
3
|
+
import { validateFunctionType } from './validateFunction';
|
|
4
|
+
/**
|
|
5
|
+
* 表单操作项的其他配置
|
|
6
|
+
*/
|
|
7
|
+
interface inputProps {
|
|
8
|
+
[name: string]: any;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 校验规则
|
|
12
|
+
* 一条校验规则对应一个错误提示
|
|
13
|
+
*/
|
|
14
|
+
export interface ruleType {
|
|
15
|
+
/**
|
|
16
|
+
* 校验方法
|
|
17
|
+
* @return {boolean | string}, 子定义校验方法时 返回 false 或 字符串 均为校验失败 true为校验通过
|
|
18
|
+
*/
|
|
19
|
+
validate?: {
|
|
20
|
+
'required'?: boolean | validateFunctionType;
|
|
21
|
+
'maxlength'?: number | validateFunctionType;
|
|
22
|
+
'minLength'?: number | validateFunctionType;
|
|
23
|
+
'pattern'?: RegExp | validateFunctionType;
|
|
24
|
+
[name: string]: validateFunctionType | boolean | number | RegExp | undefined;
|
|
25
|
+
};
|
|
26
|
+
message?: {
|
|
27
|
+
[name: string]: string;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* form 表单组件属性
|
|
32
|
+
* @typedef {Object} FormItemProps
|
|
33
|
+
*/
|
|
34
|
+
export interface FormItemProps {
|
|
35
|
+
/**
|
|
36
|
+
* 表单项形态,默认 horizontal
|
|
37
|
+
*/
|
|
38
|
+
type?: 'vertical' | 'horizontal';
|
|
39
|
+
/**
|
|
40
|
+
* 输入框类型
|
|
41
|
+
*/
|
|
42
|
+
InputType?: 'checkGroup' | 'select' | 'radioGroup' | 'textarea' | 'default' | 'switch' | 'file' | FC<ItemTypeProps>;
|
|
43
|
+
/**
|
|
44
|
+
* 输入框其他属性配置
|
|
45
|
+
*/
|
|
46
|
+
inputProps?: inputProps;
|
|
47
|
+
/**
|
|
48
|
+
* 文字宽度, 只对 type === vertical,状态下生效
|
|
49
|
+
*/
|
|
50
|
+
labelWidth?: number;
|
|
51
|
+
/**
|
|
52
|
+
* 是否禁用
|
|
53
|
+
*/
|
|
54
|
+
disabled?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* 值改变传出
|
|
57
|
+
*/
|
|
58
|
+
change?: (value: any) => void;
|
|
59
|
+
/**
|
|
60
|
+
* 不显示 该选项
|
|
61
|
+
*/
|
|
62
|
+
hide?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* 提示。会有label上出现个图标提示
|
|
65
|
+
*/
|
|
66
|
+
tips?: string;
|
|
67
|
+
/**
|
|
68
|
+
* 文字描述
|
|
69
|
+
*/
|
|
70
|
+
label?: string;
|
|
71
|
+
/**
|
|
72
|
+
* name,一般对应后台属性,需要唯一性
|
|
73
|
+
*/
|
|
74
|
+
name: string;
|
|
75
|
+
/**
|
|
76
|
+
* 校验规则
|
|
77
|
+
*/
|
|
78
|
+
rules?: ruleType;
|
|
79
|
+
/**
|
|
80
|
+
* 设置值的方法
|
|
81
|
+
*/
|
|
82
|
+
setValue?: Function;
|
|
83
|
+
/**
|
|
84
|
+
* 报错信息
|
|
85
|
+
*/
|
|
86
|
+
errorMessage?: string;
|
|
87
|
+
/**
|
|
88
|
+
* 回填数据
|
|
89
|
+
*/
|
|
90
|
+
backData?: {
|
|
91
|
+
[name: string]: any;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* 其他配置
|
|
95
|
+
*/
|
|
96
|
+
[name: string]: any;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* form 表单单行组件
|
|
100
|
+
* @author zhanzl
|
|
101
|
+
* @description 用于根据配置自动生成表单
|
|
102
|
+
*/
|
|
103
|
+
declare const FormItem: FC<FormItemProps>;
|
|
104
|
+
export default FormItem;
|
package/FormItem/index.js
CHANGED
|
@@ -1 +1,16 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@para-ui/icons/WarningCircle"),require("@material-ui/core/styles"),require("@material-ui/core"),require("@para-ui/icons/PreviewOpen"),require("@para-ui/icons/PreviewClose"),require("@para-ui/icons/LoadingF"),require("para-lib"),require("@para-ui/icons/Down"),require("@para-ui/icons/Search"),require("@para-ui/icons/Check"),require("@para-ui/icons/Close"),require("@para-ui/icons/Delete"),require("@para-ui/icons/LinkGroup")):"function"==typeof define&&define.amd?define(["react","@para-ui/icons/WarningCircle","@material-ui/core/styles","@material-ui/core","@para-ui/icons/PreviewOpen","@para-ui/icons/PreviewClose","@para-ui/icons/LoadingF","para-lib","@para-ui/icons/Down","@para-ui/icons/Search","@para-ui/icons/Check","@para-ui/icons/Close","@para-ui/icons/Delete","@para-ui/icons/LinkGroup"],t):"object"==typeof exports?exports.ParaUI=t(require("react"),require("@para-ui/icons/WarningCircle"),require("@material-ui/core/styles"),require("@material-ui/core"),require("@para-ui/icons/PreviewOpen"),require("@para-ui/icons/PreviewClose"),require("@para-ui/icons/LoadingF"),require("para-lib"),require("@para-ui/icons/Down"),require("@para-ui/icons/Search"),require("@para-ui/icons/Check"),require("@para-ui/icons/Close"),require("@para-ui/icons/Delete"),require("@para-ui/icons/LinkGroup")):e.ParaUI=t(e.react,e["@para-ui/icons/WarningCircle"],e["@material-ui/core/styles"],e["@material-ui/core"],e["@para-ui/icons/PreviewOpen"],e["@para-ui/icons/PreviewClose"],e["@para-ui/icons/LoadingF"],e["para-lib"],e["@para-ui/icons/Down"],e["@para-ui/icons/Search"],e["@para-ui/icons/Check"],e["@para-ui/icons/Close"],e["@para-ui/icons/Delete"],e["@para-ui/icons/LinkGroup"])}(self,(function(e,t,r,n,o,i,l,a,c,s,d,u,p,f){return function(){"use strict";var m={4927:function(e,t,r){function n(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(r=n(e[t]))&&(o&&(o+=" "),o+=r);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function o(){for(var e,t,r=0,o="";r<arguments.length;)(e=arguments[r++])&&(t=n(e))&&(o&&(o+=" "),o+=t);return o}r.d(t,{Z:function(){return o}})},4861:function(e,t,r){var n=r(9297),o=r.n(n),i=r(1731),l=r(8604);function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}(0,r(9177).Z)();var c=(0,l.makeStyles)((function(e){return(0,l.createStyles)({"auto-tips":{maxWidth:"100%",display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > .auto-tips-content":{display:"inline",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}})}));t.default=function(e){var t=e.children,r=e.placement,l=void 0===r?"bottom-start":r,s=e.tips,d=void 0===s?"":s,u=e.className,p=void 0===u?"":u,f=(0,n.useRef)(),m=c(),h=a((0,n.useState)(""),2),v=h[0],g=h[1];(0,n.useEffect)((function(){g(d)}),[d]);var x;return o().createElement("div",{ref:function(e){e&&(f.current=e)},className:(x=m["auto-tips"],x+=" paraui-auto-tips",p&&(x+=" "+p),x),onMouseOver:function(){f.current.scrollWidth>f.current.offsetWidth?g(v||f.current.innerText):g("")}},o().createElement(i.Tooltip,{title:v,placement:l},o().createElement("div",{className:"auto-tips-content"},t)))}},8955:function(e,t,r){var n=r(9297),o=r.n(n),i=r(1731),l=r(8604),a=r(4927),c=r(1102),s=r.n(c);function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var f=(0,r(9177).Z)(),m=(0,l.makeStyles)((function(e){return(0,l.createStyles)({"@keyframes loadingCircle":{"100%":{transform:"rotate(1turn)"}},radius:{borderRadius:15},btnIcon:{"& .btn-icon":{display:"inline-flex",alignItems:"center"},"& .btn-icon svg":{color:"currentColor"}},outlinedBtn:{"& .btn-icon svg":{color:f.thmemColor.primary},"&:disabled":{"& .btn-icon svg":{color:"currentColor"}}},iconButtonToolTip:{display:"inline-block",cursor:"not-allowed","& .iconButton-disabled":{cursor:"not-allowed",pointerEvents:"none"}},loadingBtn:{position:"relative",pointerEvents:"none","&:before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:1,transition:"opacity .2s",pointerEvents:"none"},"& .loading-icon":{animation:"$loadingCircle 1s infinite linear"}}})})),h=(0,l.withStyles)((function(e){return{tooltip:{margin:"6px 0",backgroundColor:f.bgBorderColor.bg4}}}))(i.Tooltip),v=function(e){var t=m(),r=e.radius,l=e.className,c=e.disabled,f=void 0!==c&&c,h=e.children,v=e.startIcon,g=e.endIcon,x=e.loading,b=void 0!==x&&x,y=u(e,["radius","className","disabled","children","startIcon","endIcon","loading"]);"text"===y.variant&&(y.disableRipple=!0);var w=p((0,n.useState)(!1),2),C=w[0],E=w[1];return(0,n.useEffect)((function(){E(!!b)}),[b]),o().createElement(i.Button,d({disabled:f,className:(0,a.Z)("paraui-button",l,t.btnIcon,r&&t.radius,"outlined"===y.variant&&t.outlinedBtn,C&&t.loadingBtn),startIcon:function(){if(!C)return o().createElement("span",{className:"btn-icon"},v);if("object"==typeof b){var e=b.delay||0;setTimeout((function(){return E(!1)}),e)}return o().createElement("span",{className:"btn-icon loading-icon"},o().createElement(s(),null))}(),endIcon:o().createElement("span",{className:"btn-icon"},g)},y),h)};v.IconButton=function(e){var t=m(),r=e.showToolTip,l=void 0===r||r,c=e.toolTipTitle,f=void 0===c?"":c,v=e.children,g=e.className,x=e.disabled,b=void 0!==x&&x,y=e.loading,w=void 0!==y&&y,C=e.TooltipProps,E=u(e,["showToolTip","toolTipTitle","children","className","disabled","loading","TooltipProps"]),k=p((0,n.useState)(!1),2),S=k[0],F=k[1],N=o().createElement(i.IconButton,d({},E,{disabled:b,disableRipple:!0,className:(0,a.Z)("paraui-icon-button",g,l&&b&&"iconButton-disabled",S&&t.loadingBtn)}),function(){if(!S)return v;if("object"==typeof w){var e=w.delay||0;setTimeout((function(){return F(!1)}),e)}return o().createElement("span",{className:"loading-icon"},o().createElement(s(),null))}());return(0,n.useEffect)((function(){F(!!w)}),[w]),l?o().createElement(h,d({title:f},C),o().createElement("span",{className:(0,a.Z)(b&&t.iconButtonToolTip)},N)):N},t.default=v},6142:function(e,t,r){r.d(t,{default:function(){return m}});var n=r(9297),o=r.n(n),i=r(1731),l=r(8604),a=r(9177),c={icon:{icon:o().createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},o().createElement("path",{d:"M78.769231 78.769231m118.153846 0l630.153846 0q118.153846 0 118.153846 118.153846l0 630.153846q0 118.153846-118.153846 118.153846l-630.153846 0q-118.153846 0-118.153846-118.153846l0-630.153846q0-118.153846 118.153846-118.153846Z",fill:"#FFFFFF"}),o().createElement("path",{d:"M827.076923 0h-630.153846A196.923077 196.923077 0 0 0 0 196.923077v630.153846A196.923077 196.923077 0 0 0 196.923077 1024h630.153846a196.923077 196.923077 0 0 0 196.923077-196.923077v-630.153846A196.923077 196.923077 0 0 0 827.076923 0zM945.230769 827.076923a118.153846 118.153846 0 0 1-118.153846 118.153846h-630.153846A118.153846 118.153846 0 0 1 78.769231 827.076923v-630.153846A118.153846 118.153846 0 0 1 196.923077 78.769231h630.153846A118.153846 118.153846 0 0 1 945.230769 196.923077z",className:"line-rect",fill:"currentColor"})),iconDisabled:o().createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},o().createElement("path",{d:"M78.769231 78.769231m118.153846 0l630.153846 0q118.153846 0 118.153846 118.153846l0 630.153846q0 118.153846-118.153846 118.153846l-630.153846 0q-118.153846 0-118.153846-118.153846l0-630.153846q0-118.153846 118.153846-118.153846Z",fill:"currentColor",className:"fill-bg"}),o().createElement("path",{d:"M827.076923 0h-630.153846A196.923077 196.923077 0 0 0 0 196.923077v630.153846A196.923077 196.923077 0 0 0 196.923077 1024h630.153846a196.923077 196.923077 0 0 0 196.923077-196.923077v-630.153846A196.923077 196.923077 0 0 0 827.076923 0zM945.230769 827.076923a118.153846 118.153846 0 0 1-118.153846 118.153846h-630.153846A118.153846 118.153846 0 0 1 78.769231 827.076923v-630.153846A118.153846 118.153846 0 0 1 196.923077 78.769231h630.153846A118.153846 118.153846 0 0 1 945.230769 196.923077z",className:"line-rect",fill:"currentColor"}))},checkedIcon:{icon:o().createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},o().createElement("path",{d:"M0 0m196.923077 0l630.153846 0q196.923077 0 196.923077 196.923077l0 630.153846q0 196.923077-196.923077 196.923077l-630.153846 0q-196.923077 0-196.923077-196.923077l0-630.153846q0-196.923077 196.923077-196.923077Z",fill:"currentColor"}),o().createElement("path",{d:"M852.834462 284.356923a46.710154 46.710154 0 0 0-66.008616 0L430.710154 640.472615 237.331692 447.172923a46.710154 46.710154 0 0 0-66.087384 66.087385l226.382769 226.304a46.710154 46.710154 0 0 0 66.087385 0c0.472615-0.551385 0.708923-1.260308 1.181538-1.811693s1.260308-0.708923 1.811692-1.181538l385.969231-385.969231a46.710154 46.710154 0 0 0 0-66.244923z",fill:"#FFFFFF"})),iconDisabled:o().createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},o().createElement("path",{className:"fill-bg",d:"M78.769231 78.769231m118.153846 0l630.153846 0q118.153846 0 118.153846 118.153846l0 630.153846q0 118.153846-118.153846 118.153846l-630.153846 0q-118.153846 0-118.153846-118.153846l0-630.153846q0-118.153846 118.153846-118.153846Z",fill:"currentColor"}),o().createElement("path",{d:"M827.076923 0h-630.153846A196.923077 196.923077 0 0 0 0 196.923077v630.153846A196.923077 196.923077 0 0 0 196.923077 1024h630.153846a196.923077 196.923077 0 0 0 196.923077-196.923077v-630.153846A196.923077 196.923077 0 0 0 827.076923 0zM945.230769 827.076923a118.153846 118.153846 0 0 1-118.153846 118.153846h-630.153846A118.153846 118.153846 0 0 1 78.769231 827.076923v-630.153846A118.153846 118.153846 0 0 1 196.923077 78.769231h630.153846A118.153846 118.153846 0 0 1 945.230769 196.923077z",className:"line-rect",fill:"currentColor"}),o().createElement("path",{d:"M852.834462 284.356923a46.710154 46.710154 0 0 0-66.008616 0L430.710154 640.472615 237.331692 447.172923a46.710154 46.710154 0 0 0-66.087384 66.087385l226.382769 226.304a46.710154 46.710154 0 0 0 66.087385 0c0.472615-0.551385 0.708923-1.260308 1.181538-1.811693s1.260308-0.708923 1.811692-1.181538l385.969231-385.969231a46.710154 46.710154 0 0 0 0-66.244923z",className:"char-path",fill:"currentColor"}))},indeterminateIcon:{icon:o().createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},o().createElement("path",{d:"M0 0m196.923077 0l630.153846 0q196.923077 0 196.923077 196.923077l0 630.153846q0 196.923077-196.923077 196.923077l-630.153846 0q-196.923077 0-196.923077-196.923077l0-630.153846q0-196.923077 196.923077-196.923077Z",fill:"currentColor"}),o().createElement("path",{d:"M785.171692 564.224h-546.422154a52.696615 52.696615 0 0 1 0-104.448h546.422154a52.696615 52.696615 0 0 1 0 104.448z",fill:"#FFFFFF"})),iconDisabled:o().createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},o().createElement("path",{d:"M78.769231 78.769231m118.153846 0l630.153846 0q118.153846 0 118.153846 118.153846l0 630.153846q0 118.153846-118.153846 118.153846l-630.153846 0q-118.153846 0-118.153846-118.153846l0-630.153846q0-118.153846 118.153846-118.153846Z",className:"fill-bg",fill:"currentColor"}),o().createElement("path",{d:"M827.076923 0h-630.153846A196.923077 196.923077 0 0 0 0 196.923077v630.153846A196.923077 196.923077 0 0 0 196.923077 1024h630.153846a196.923077 196.923077 0 0 0 196.923077-196.923077v-630.153846A196.923077 196.923077 0 0 0 827.076923 0zM945.230769 827.076923a118.153846 118.153846 0 0 1-118.153846 118.153846h-630.153846A118.153846 118.153846 0 0 1 78.769231 827.076923v-630.153846A118.153846 118.153846 0 0 1 196.923077 78.769231h630.153846A118.153846 118.153846 0 0 1 945.230769 196.923077z",className:"line-rect",fill:"currentColor"}),o().createElement("path",{d:"M785.171692 564.224H238.749538a52.696615 52.696615 0 0 1 0-104.448h546.422154a52.696615 52.696615 0 0 1 0 104.448z",className:"char-path",fill:"currentColor"}))}};function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function d(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var p=(0,a.Z)(),f=(0,l.makeStyles)((function(){return(0,l.createStyles)({"check-box":{margin:"0","&:hover":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:p.thmemColor.primary,"& > .line-rect":{color:p.thmemColor.primary}}}},"& > span:last-child":{color:p.thmemColor.primary}},"& > span:first-child":{padding:"8px","& > span:first-child":{"& > svg":{color:p.textColor.thirdary,"& > .line-rect":{color:p.textColor.thirdary}}}},"& > span:last-child":{color:p.textColor.primary},"&.check-box-checked":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:p.thmemColor.primary}}},"& > span:last-child":{color:p.thmemColor.primary}},"&.check-box-indeterminate":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:p.thmemColor.primary}}},"& > span:last-child":{color:p.thmemColor.primary}},"&.check-box-disabled":{"&:hover":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:p.textColor.thirdary,"& > .line-rect":{color:p.textColor.thirdary}}}},"& > span:last-child":{color:p.textColor.thirdary}},cursor:"not-allowed","& > span:first-child":{"& > span:first-child":{"& > svg":{color:p.textColor.thirdary+" !important","& > .fill-bg":{color:p.bgBorderColor.bg1},"& > .char-path":{color:p.bgBorderColor.bg4}}}},"& > span:last-child":{color:p.textColor.secondary+" !important"}},"&.check-box-small":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"12px"}}},"& > span:last-child":{fontSize:"12px",lineHeight:"12px"}},"&.check-box-medium":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"14px"}}},"& > span:last-child":{fontSize:"14px",lineHeight:"14px"}},"&.check-box-large":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"16px"}}},"& > span:last-child":{fontSize:"16px",lineHeight:"16px"}}}})})),m=function(e){var t=e.className,r=void 0===t?"":t,l=e.color,a=void 0===l?"primary":l,p=e.size,m=void 0===p?"small":p,h=e.label,v=void 0===h?"":h,g=e.labelPlacement,x=void 0===g?"end":g,b=(e.checkedIcon,e.indeterminateIcon,e.icon,e.disabled),y=void 0!==b&&b,w=e.checked,C=void 0!==w&&w,E=e.indeterminate,k=void 0!==E&&E,S=e.onChange,F=d(e,["className","color","size","label","labelPlacement","checkedIcon","indeterminateIcon","icon","disabled","checked","indeterminate","onChange"]),N=f(e),O=u((0,n.useState)(!1),2),z=O[0],T=O[1];(0,n.useEffect)((function(){C!==z&&T(C)}),[C]);var A,q=function(e){return y?c[e].iconDisabled:c[e].icon},B=function(t,r){void 0===e.checked&&void 0===e.indeterminate&&T(t.target.checked),S&&S(t,r)};return o().createElement(i.FormControlLabel,{className:(A=N["check-box"]+" paraui-check-box",r&&(A+=" "+r),m&&(A+=" check-box-"+m),y&&(A+=" check-box-disabled"),k?A+=" check-box-indeterminate":z&&(A+=" check-box-checked"),A),control:o().createElement(i.Checkbox,s({size:"small",color:a,disabled:y,icon:q("icon"),checkedIcon:q("checkedIcon"),indeterminateIcon:q("indeterminateIcon"),onChange:B,checked:z,indeterminate:k},F)),label:v,labelPlacement:x})}},982:function(e,t,r){var n=r(9297),o=r.n(n),i=r(1731),l=r(6142),a=r(8604),c=r(9177),s=r(3475);function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var u=(0,c.Z)(),p=(0,a.makeStyles)((function(){return(0,a.createStyles)({"check-box-group":{"& > label":{fontSize:"12px",color:u.textColor.secondary,"& > .required-char":{marginLeft:"3px",color:u.thmemColor.primary}},"& > div":{margin:"5px 0"},"& > p":{fontSize:"12px",lineHeight:"12px",margin:"0",color:u.stateColor.error},"&.check-box-group-disabled":{},"&.check-box-group-small":{},"&.check-box-group-medium":{},"&.check-box-group-large":{}}})}));t.default=function(e){var t,r=e.label,n=void 0===r?"":r,a=e.size,c=void 0===a?"small":a,u=e.row,f=void 0===u||u,m=e.disabled,h=void 0!==m&&m,v=e.required,g=void 0!==v&&v,x=e.error,b=void 0!==x&&x,y=e.helperText,w=void 0===y?"":y,C=e.id,E=void 0===C?"name":C,k=e.value,S=void 0===k?[]:k,F=e.list,N=e.className,O=void 0===N?"":N,z=e.onChange,T=p(e),A=function(e){return function(t,r){var n=e[E],o=(0,s.DeepClone)(S);if(r)o.push(n);else{var i=o.indexOf(n);o.splice(i,1)}z&&z(o)}};return o().createElement(i.FormControl,{className:(t=T["check-box-group"]+" paraui-check-box-group",O&&(t+=" "+O),c&&(t+=" check-box-group-"+c),b&&(t+=" check-box-group-error"),h&&(t+=" check-box-group-disabled"),t)},o().createElement(i.FormLabel,null,n,g&&o().createElement("span",{className:"required-char"},"(必填)")),o().createElement(i.FormGroup,{row:f},F.map((function(e,t){return o().createElement(l.default,d({},e,{checked:-1!==S.indexOf(e[E]),size:c,disabled:Boolean(h||e.disabled),key:t,onChange:A(e)}))}))),w&&o().createElement(i.FormHelperText,null,w))}},5836:function(e,t){var r=function(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},n={required:function(e,t){var n,o,i=void 0===t?"undefined":r(t),l=(null===(n=e.rules)||void 0===n||null===(o=n.message)||void 0===o?void 0:o.required)||"".concat(e.label,"不能为空"),a=!1;switch(i){case"string":a=!!t;break;case"number":a=t+1>t;break;case"object":var c=JSON.stringify(t);a="null"!==c&&"[]"!==c&&"{}"!==c;break;case"boolean":a=void 0!==t;break;default:a=!!t}return a||l},maxlength:function(e,t){var n,o,i,l,a,c,s=void 0===t?"undefined":r(t),d=(null===(n=e.rules)||void 0===n||null===(o=n.message)||void 0===o?void 0:o.maxlength)||"最大长度不能超过".concat(null===(i=e.rules)||void 0===i||null===(l=i.validate)||void 0===l?void 0:l.maxlength),u=!1;"string"===s||"number"===s&&t+1>t?u=!("".concat(t).length>((null===(a=e.rules)||void 0===a||null===(c=a.validate)||void 0===c?void 0:c.maxlength)||NaN)):u=!t;return u||d},minLength:function(e,t){var n,o,i,l,a,c,s=void 0===t?"undefined":r(t),d=(null===(n=e.rules)||void 0===n||null===(o=n.message)||void 0===o?void 0:o.minLength)||"最小长度为".concat(null===(i=e.rules)||void 0===i||null===(l=i.validate)||void 0===l?void 0:l.minLength),u=!1;"string"===s||"number"===s&&t+1>t?u="".concat(t).length>=((null===(a=e.rules)||void 0===a||null===(c=a.validate)||void 0===c?void 0:c.minLength)||-1):u=!t;return u||d},pattern:function(e,t){var r,n,o,i,l=null===(r=e.rules)||void 0===r||null===(n=r.validate)||void 0===n?void 0:n.pattern,a=(null===(o=e.rules)||void 0===o||null===(i=o.message)||void 0===i?void 0:i.pattern)||"参数不符合校验规则: ".concat(l),c=!t;return l&&t&&"function"!=typeof l&&(c=l.test(t)),c||a},min:function(e,t){var n,o,i,l,a,c,s=void 0===t?"undefined":r(t),d=(null===(n=e.rules)||void 0===n||null===(o=n.message)||void 0===o?void 0:o.min)||"最小值为".concat(null===(i=e.rules)||void 0===i||null===(l=i.validate)||void 0===l?void 0:l.min),u=!t;"string"!==s&&"number"!==s||(u=t>((null===(a=e.rules)||void 0===a||null===(c=a.validate)||void 0===c?void 0:c.min)||-1/0));return u||d},max:function(e,t){var n,o,i,l,a,c,s=void 0===t?"undefined":r(t),d=(null===(n=e.rules)||void 0===n||null===(o=n.message)||void 0===o?void 0:o.max)||"最大值为".concat(null===(i=e.rules)||void 0===i||null===(l=i.validate)||void 0===l?void 0:l.max),u=!t;"string"!==s&&"number"!==s||(u=t<((null===(a=e.rules)||void 0===a||null===(c=a.validate)||void 0===c?void 0:c.max)||1/0));return u||d}};t.Z=function(e,t){var r=null===(o=e.rules)||void 0===o?void 0:o.validate;if(r){var o,i=null===(o=e.rules)||void 0===o?void 0:o.message;for(var l in console.log("validateObj"),r){var a=r[l],c="";if("function"==typeof a?!1===(c=a(e,t))&&i&&(c=i[l]):n[l]?c=n[l](e,t):(console.log("项目: ".concat(e.label,", 自定义校验规则: ").concat(l,", 方法未定义")),c=!0),!0!==c)return c||""}}return!1}},9177:function(e,t){var r={thmemColor:{primary:"#3D66F8",secondary:"#7E98F5",thirdary:"#D6DFFD"},textColor:{primary:"#191919",secondary:"#6E7488",thirdary:"#BBBECB",white:"#FFFFFF"},bgBorderColor:{bg1:"#DCDDE3",bg2:"#F5F5F5",bg3:"#EDEDED",bg4:"#6E7488",line1:"#E5E9EF",universal:"#FFFFFF"},stateColor:{info:"#3D66F8",success:"#41D658",warning:"#FFA150",error:"#F46B53"},gradientColor:{gradient1:"linear-gradient(#3D66F8, #4F93F0)",gradient2:"linear-gradient(#0093FF, #4EB4FF)",gradient3:"linear-gradient(#844EFF, #A796FF)",gradient4:"linear-gradient(#FD7300, #FFBF69)",gradient5:"linear-gradient(#3D66F8, #D8DFFA)"},fontFamily:{zh:"Microsoft Yahei, Helvetica, sans-serif",en:"Microsoft Yahei, Helvetica, sans-serif"},fontSize:12,borderRadius:4,boxShadow:"4px 4px 6px rgba(70,75,105,0.2), -4px -4px 6px rgba(0,0,0,0.06)",buttonShadow:"4px 4px 6px rgba(70,75,105,0.1), -4px -4px 6px rgba(0,0,0,0.03)",standardFont:{standardFont1:{fontSize:"12px",fontWeight:"400"},standardFont2:{fontSize:"12px",fontWeight:"700"}},titleFont:{titleFont1:{fontSize:"14px",fontWeight:"400"},titleFont2:{fontSize:"14px",fontWeight:"700"}},visualLargeFont:{visualLargeFont1:{fontSize:"40px",fontWeight:"700"},visualLargeFont2:{fontSize:"40px",fontWeight:"700"}}};t.Z=function(){return r}},4877:function(e,t,r){r.d(t,{default:function(){return m}});var n=r(9297),o=r.n(n),i=r(1731),l=r(8604),a=r(9177),c={icon:{icon:o().createElement("svg",{viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},o().createElement("path",{d:"M512 981.333333A469.333333 469.333333 0 1 0 42.666667 512a469.845333 469.845333 0 0 0 469.333333 469.333333z m0-853.333333a384 384 0 1 1-384 384 384.426667 384.426667 0 0 1 384-384z",fill:"currentColor"})),iconDisabled:o().createElement("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},o().createElement("path",{d:"M512.213333 128.128a384 384 0 1 0 384 384 384 384 0 0 0-384-384z",fill:"currentColor"}),o().createElement("path",{d:"M512 981.333333A469.333333 469.333333 0 1 0 42.666667 512a469.845333 469.845333 0 0 0 469.333333 469.333333z m0-853.333333a384 384 0 1 1-384 384 384.426667 384.426667 0 0 1 384-384z",className:"line-round",fill:"currentColor"}))},checkedIcon:{icon:o().createElement("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},o().createElement("path",{d:"M512 42.837333a469.333333 469.333333 0 1 0 469.333333 469.333334 469.802667 469.802667 0 0 0-469.333333-469.333334z m0 853.333334a384 384 0 1 1 384-384 384.426667 384.426667 0 0 1-384 384z",fill:"currentColor"}),o().createElement("path",{d:"M512 278.272A233.728 233.728 0 1 0 745.728 512 233.728 233.728 0 0 0 512 278.272z",fill:"currentColor"})),iconDisabled:o().createElement("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},o().createElement("path",{d:"M512 128.170667a384 384 0 1 0 384 384 384.384 384.384 0 0 0-384-384z m0 617.728a233.728 233.728 0 1 1 233.728-233.728A233.770667 233.770667 0 0 1 512 745.728z",fill:"currentColor"}),o().createElement("path",{d:"M512 42.837333a469.333333 469.333333 0 1 0 469.333333 469.333334 469.802667 469.802667 0 0 0-469.333333-469.333334z m0 853.333334a384 384 0 1 1 384-384 384.426667 384.426667 0 0 1-384 384z",className:"line-round",fill:"currentColor"}),o().createElement("path",{d:"M512 278.272A233.728 233.728 0 1 0 745.728 512 233.728 233.728 0 0 0 512 278.272z",className:"line-round",fill:"currentColor"}))}};function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function d(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var p=(0,a.Z)(),f=(0,l.makeStyles)((function(){return(0,l.createStyles)({radio:{margin:"0","&:hover":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:p.thmemColor.primary}}},"& > span:last-child":{color:p.thmemColor.primary}},"& > span:first-child":{padding:"8px","& > span:first-child":{"& > svg":{color:p.textColor.thirdary,"& > .line-rect":{color:p.textColor.thirdary}}}},"& > span:last-child":{color:p.textColor.primary},"&.radio-checked":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:p.thmemColor.primary}}},"& > span:last-child":{color:p.thmemColor.primary}},"&.radio-disabled":{"&:hover":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:p.bgBorderColor.bg1,"& > .line-round":{color:p.textColor.thirdary}}}},"& > span:last-child":{color:p.textColor.thirdary}},cursor:"not-allowed","& > span:first-child":{"& > span:first-child":{"& > svg":{color:p.bgBorderColor.bg1+" !important","& > .line-round":{color:p.textColor.thirdary+" !important"}}}},"& > span:last-child":{color:p.textColor.secondary+" !important"}},"&.radio-small":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"12px"}}},"& > span:last-child":{fontSize:"12px",lineHeight:"12px"}},"&.radio-medium":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"14px"}}},"& > span:last-child":{fontSize:"14px",lineHeight:"14px"}},"&.radio-large":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"16px"}}},"& > span:last-child":{fontSize:"16px",lineHeight:"16px"}}}})})),m=function(e){var t=e.color,r=void 0===t?"primary":t,l=e.size,a=void 0===l?"small":l,p=e.label,m=void 0===p?"":p,h=e.labelPlacement,v=void 0===h?"end":h,g=(e.checkedIcon,e.icon,e.disabled),x=void 0!==g&&g,b=e.checked,y=void 0!==b&&b,w=e.onChange,C=e.className,E=void 0===C?"":C,k=d(e,["color","size","label","labelPlacement","checkedIcon","icon","disabled","checked","onChange","className"]),S=f(e),F=u((0,n.useState)(!1),2),N=F[0],O=F[1];(0,n.useEffect)((function(){y!==N&&O(y)}),[y]);var z,T=function(e){return x?c[e].iconDisabled:c[e].icon},A=function(t,r){void 0===e.checked&&O(t.target.checked),w&&w(t,r)};return o().createElement(i.FormControlLabel,{className:(z=S.radio+" paraui-radio",E&&(z+=" "+E),a&&(z+=" radio-"+a),x&&(z+=" radio-disabled"),N&&(z+=" radio-checked"),z),control:o().createElement(i.Radio,s({size:"small",color:r,disabled:x,icon:T("icon"),checkedIcon:T("checkedIcon"),onChange:A,checked:N},k)),label:m,labelPlacement:v})}},9103:function(e,t,r){var n=r(9297),o=r.n(n),i=r(1731),l=r(4877),a=r(8604);function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var s=(0,r(9177).Z)(),d=(0,a.makeStyles)((function(){return(0,a.createStyles)({"radio-group":{"& > label":{fontSize:"12px",color:s.textColor.secondary,"& > .required-char":{marginLeft:"3px",color:s.thmemColor.primary}},"& > div":{margin:"5px 0"},"& > p":{fontSize:"12px",lineHeight:"12px",margin:"0",color:s.stateColor.error},"&.radio-group-disabled":{},"&.radio-group-small":{},"&.radio-group-medium":{},"&.radio-group-large":{}}})}));t.default=function(e){var t,r=e.className,n=void 0===r?"":r,a=e.label,s=void 0===a?"":a,u=e.size,p=void 0===u?"small":u,f=e.row,m=void 0===f||f,h=e.disabled,v=void 0!==h&&h,g=e.required,x=void 0!==g&&g,b=e.error,y=void 0!==b&&b,w=e.helperText,C=void 0===w?"":w,E=e.id,k=void 0===E?"name":E,S=e.value,F=e.list,N=e.onChange,O=d(e),z=function(e){return function(){var t=e[k];N&&N(t)}};return o().createElement(i.FormControl,{className:(t=O["radio-group"]+" paraui-radio-group",n&&(t+=" "+n),p&&(t+=" radio-group-"+p),y&&(t+=" radio-group-error"),v&&(t+=" radio-group-disabled"),t)},o().createElement(i.FormLabel,null,s,x&&o().createElement("span",{className:"required-char"},"(必填)")),o().createElement(i.FormGroup,{row:m},F.map((function(e,t){return o().createElement(l.default,c({},e,{checked:S===e[k],size:p,disabled:Boolean(v||e.disabled),key:t,onChange:z(e)}))}))),C&&o().createElement(i.FormHelperText,null,C))}},8121:function(e,t,r){var n=r(9297),o=r.n(n),i=r(1731),l=r(6028),a=r.n(l),c=r(4115),s=r.n(c),d=r(6110),u=r.n(d),p=r(19),f=r.n(p),m=r(4861),h=r(8604),v=r(9177),g=r(3475);function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function b(e){return function(e){if(Array.isArray(e)){for(var t=0,r=new Array(e.length);t<e.length;t++)r[t]=e[t];return r}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var y=(0,v.Z)(),w=(0,h.makeStyles)((function(){return(0,h.createStyles)({select:{"& *":{boxSizing:"border-box"},fontFamily:y.fontFamily.zh,display:"inline-block",fontSize:y.standardFont.standardFont1.fontSize,width:"100%",paddingBottom:"20px","& > .select-label":{color:y.textColor.secondary,marginBottom:"9px",display:"inline-block"},"& > .select-content":{lineHeight:"0",border:"1px solid",borderColor:y.textColor.thirdary,borderRadius:y.borderRadius,paddingRight:"30px",position:"relative",cursor:"pointer","&:hover":{borderColor:y.thmemColor.primary,"& > .select-svg":{"& > svg":{color:y.thmemColor.primary}}},"& > .select-label-placeholder":{width:"100%",height:"100%",padding:"0 10px",boxSizing:"border-box",color:y.textColor.thirdary,display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",position:"absolute",left:"0",top:"0"},"& > .select-svg":{position:"absolute",right:"8px",top:"0","& > svg":{fontSize:"16px",transition:"all .3s",color:y.textColor.secondary}},"& > .radio-select-content":{paddingLeft:"10px",color:y.textColor.primary,fontSize:"12px",lineHeight:"16px"},"& > .radio-search-outside":{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",padding:"0 30px 0 10px",fontSize:"12px",cursor:"pointer","& > div":{height:"100%",cursor:"pointer","& > input":{height:"100%",padding:"0",color:y.textColor.primary,fontSize:"12px",cursor:"pointer"},"& fieldset":{display:"none"}}},"& > .check-select-content":{paddingLeft:"10px",height:"100%",overflow:"hidden","& > .check-select-content-item":{display:"inline-block",backgroundColor:y.bgBorderColor.bg2,borderRadius:y.borderRadius,padding:"0 10px",color:y.textColor.primary,fontSize:"12px",marginRight:"10px",verticalAlign:"top",maxWidth:"100%",whiteSpace:"nowrap","&.check-select-content-item-more":{color:y.thmemColor.primary,cursor:"pointer","& > span":{maxWidth:"none"}},"& > span":{display:"inline-block",hieght:"100%",verticalAlign:"top",maxWidth:"calc(100% - 20px)",overflow:"hidden",textOverflow:"ellipsis"},"& > svg":{cursor:"pointer",marginLeft:"8px",color:y.textColor.secondary,fontSize:"16px",position:"relative",top:"2px","&:hover":{color:y.thmemColor.primary}}},"& > .check-search-outside":{width:"10px",maxWidth:"100% !important",display:"none","& > div":{width:"100%","& > input":{width:"100%",padding:"0",color:y.textColor.primary,fontSize:"12px",cursor:"pointer"},"& fieldset":{display:"none"}}}}},"& > .select-error-text":{margin:0,paddingLeft:"10px",height:"20px",lineHeight:"20px"},"&.select-disabled":{"& > .select-content":{backgroundColor:y.bgBorderColor.bg2,cursor:"not-allowed","&:hover":{borderColor:y.textColor.thirdary,"& > .select-svg":{"& > svg":{color:y.textColor.secondary}}},"& > .check-select-content":{"& > .check-select-content-item":{backgroundColor:y.bgBorderColor.bg3,"& > span":{maxWidth:"none"}}}}},"&.select-error":{"& > .select-content":{borderColor:y.stateColor.error+"!important"},"& > .select-error-text":{color:y.stateColor.error+"!important"}},"&.select-multiple":{},"&.select-open":{"& > .select-content":{borderColor:y.thmemColor.primary,"& > .select-svg":{"& > svg":{transform:"rotate(180deg)",color:y.thmemColor.primary}},"& > .check-select-content":{"& > .check-search-outside":{display:"inline-block"}}}},"&.select-small":{"& > .select-content":{height:"28px","& > .select-label-placeholder":{lineHeight:"26px"},"& > .select-svg":{top:"5px"},"& > .radio-select-content":{paddingTop:"5px",paddingBottom:"5px"},"& > .radio-search-outside":{"& > div":{paddingTop:"5px",paddingBottom:"5px"}},"& > .check-select-content":{paddingBottom:"3px","& > .check-select-content-item":{marginTop:"3px",height:"20px",lineHeight:"20px"},"& > .check-search-outside":{marginTop:"3px","& input":{height:"20px"}}}}},"&.select-medium":{"& > .select-content":{height:"34px","& > .select-label-placeholder":{lineHeight:"32px"},"& > .select-svg":{top:"8px"},"& > .radio-select-content":{paddingTop:"8px",paddingBottom:"8px"},"& > .radio-search-outside":{"& > div":{paddingTop:"8px",paddingBottom:"8px"}},"& > .check-select-content":{paddingBottom:"4px","& > .check-select-content-item":{marginTop:"4px",height:"24px",lineHeight:"24px"},"& > .check-search-outside":{marginTop:"4px","& input":{height:"24px"}}}}},"&.select-large":{"& > .select-content":{height:"40px","& > .select-label-placeholder":{lineHeight:"38px"},"& > .select-svg":{top:"11px"},"& > .radio-select-content":{paddingTop:"11px",paddingBottom:"11px"},"& > .radio-search-outside":{"& > div":{paddingTop:"11px",paddingBottom:"11px"}},"& > .check-select-content":{paddingBottom:"7px","& > .check-select-content-item":{marginTop:"7px",height:"24px",lineHeight:"24px"},"& > .check-search-outside":{marginTop:"7px","& input":{height:"24px"}}}}},"&.select-over-line":{"&.select-small":{"& > .select-content":{height:"inherit",minHeight:"28px","& > .radio-select-content":{}}},"&.select-medium":{"& > .select-content":{height:"inherit",minHeight:"34px","& > .radio-select-content":{}}},"&.select-large":{"& > .select-content":{height:"inherit",minHeight:"40px","& > .radio-select-content":{}}}}},"select-popover":{"& *":{boxSizing:"border-box"},"& > div":{maxWidth:"none",padding:"0",backgroundColor:y.textColor.white,boxShadow:y.boxShadow,borderRadius:y.borderRadius,"& > span":{color:y.textColor.white},"& .select-popover-content":{maxHeight:"300px",overflow:"auto","& > .select-popover-search":{height:"30px",borderBottom:"1px solid "+y.bgBorderColor.bg3,padding:"0 10px",display:"flex","& > div":{width:"100%","& input":{padding:"0",height:"28px",fontSize:"12px",color:y.textColor.primary,"&::placeholder":{fontSize:"12px",color:y.textColor.thirdary,opacity:1}},"& fieldset":{display:"none"}},"& > svg":{color:y.thmemColor.primary,fontSize:"16px",marginTop:"7px",cursor:"pointer"}},"& > .select-popover-list":{"& .select-popover-list-item":{display:"flex",padding:"7px 10px",cursor:"pointer",lineHeight:"16px","& > .select-popover-list-item-label":{width:"calc(100% - 25px)",color:y.textColor.secondary,fontSize:"12px"},"& > .select-popover-list-item-svg":{lineHeight:"0",display:"none","& > svg":{fontSize:"16px",color:y.thmemColor.primary}},"&.select-popover-list-item-select":{"& > .select-popover-list-item-label":{color:y.thmemColor.primary},"& > .select-popover-list-item-svg":{display:"inline-block"}},"&.select-popover-list-item-hover":{backgroundColor:y.bgBorderColor.bg2,"& > .select-popover-list-item-label":{color:y.thmemColor.primary}},"&.select-popover-list-item-keydown":{backgroundColor:y.bgBorderColor.bg2,"& > .select-popover-list-item-label":{color:y.thmemColor.primary}}},"& > .select-popover-list-group":{"& .select-popover-list-group-label":{display:"inline-block",width:"100%",padding:"7px 10px",color:y.textColor.thirdary,fontSize:"12px"},"& .select-popover-list-item":{padding:"7px 10px 7px 20px"}},"& > .select-nodata":{textAlign:"center",fontSize:"12px",color:y.textColor.primary,padding:"10px"}}}}},"select-more-popover":{"& *":{boxSizing:"border-box"},"& > div:nth-of-type(3),& > div:nth-of-type(2)":{marginLeft:"10px"},"& .select-more":{width:"200px",maxHeight:"300px",overflow:"auto","& > .select-more-title":{height:"30px",padding:"0 10px",color:y.textColor.secondary,borderBottom:"1px solid "+y.bgBorderColor.bg2,lineHeight:"30px",fontSize:"12px",display:"flex",justifyContent:"space-between"},"& > .select-more-content":{"& > .select-more-content-item":{padding:"7px 7px 7px 10px",display:"flex",justifyContent:"space-around","& > span":{width:"calc(100% - 25px)",display:"inline-block",fontSize:"12px"},"& > svg":{color:y.textColor.secondary,fontSize:"16px",position:"relative",top:"1px",cursor:"pointer","&:hover":{color:y.thmemColor.primary}}}}}}})}));t.default=function(e){var t=e.className,r=e.size,l=void 0===r?"small":r,c=e.labelMode,d=void 0===c?"outside":c,p=e.placeholder,h=void 0===p?"":p,v=e.label,y=void 0===v?"":v,C=e.disabled,E=void 0!==C&&C,k=e.multiple,S=void 0!==k&&k,F=e.required,N=void 0!==F&&F,O=e.showLabelSign,z=void 0===O||O,T=e.labelSign,A=e.error,q=void 0!==A&&A,B=e.helperText,j=void 0===B?"":B,L=e.list,I=e.showName,M=void 0===I?"label":I,H=e.showValue,P=void 0===H?"value":H,D=e.childrenName,R=void 0===D?"children":D,W=e.value,Z=e.onChange,V=e.overLine,U=void 0!==V&&V,G=e.search,K=void 0!==G&&G,$=e.searchModel,_=void 0===$?"inside":$,J=e.selectPopoverClassName,Y=e.morePopoverClassName,X=e.onEnter,Q=w(e),ee=(0,n.useRef)(null),te=x((0,n.useState)("select-"+(0,g.UUID)()),1)[0],re=x((0,n.useState)("select-popover-"+(0,g.UUID)()),1)[0],ne=x((0,n.useState)(!1),2),oe=ne[0],ie=ne[1],le=x((0,n.useState)(!1),2),ae=le[0],ce=le[1],se=x((0,n.useState)([]),2),de=se[0],ue=se[1],pe=x((0,n.useState)([]),2),fe=pe[0],me=pe[1],he=x((0,n.useState)({}),2),ve=he[0],ge=he[1],xe=x((0,n.useState)(null),2),be=xe[0],ye=xe[1],we=x((0,n.useState)({}),1)[0],Ce=x((0,n.useState)(!1),2),Ee=Ce[0],ke=Ce[1],Se=x((0,n.useState)(""),2),Fe=Se[0],Ne=Se[1],Oe=x((0,n.useState)(!1),2),ze=Oe[0],Te=Oe[1],Ae=(0,n.useRef)(null);(0,n.useEffect)((function(){void 0!==W&&ue(S?(0,g.DeepClone)(W||[]):""===W?[]:[W])}),[W,S]),(0,n.useEffect)((function(){if(K&&"outside"===_)return Te(!!S);Te(U)}),[U,K,_,S]),(0,n.useEffect)((function(){for(var e={},t=0,r=L.length;t<r;t++){var n=L[t];if(n[R]&&n[R].length>0)for(var o=n[R],i=0,l=o.length;i<l;i++){var a=o[i];e[a[P]]=a}else e[n[P]]=n}ge(e)}),[L]),(0,n.useEffect)((function(){S&&(ze||ye(de.length))}),[ze,S,de]),(0,n.useEffect)((function(){return ze?ye(de.length):(setTimeout((function(){Me(de.length)})),window.addEventListener("resize",He)),function(){window.removeEventListener("resize",He)}}),[de,ze]),(0,n.useEffect)((function(){de&&de.length>0?ce(!0):(ce(!1),K&&"outside"===_&&ce(""!==Fe))}),[K,Fe,_,de]),(0,n.useEffect)((function(){clearTimeout(we.searchTimer),K&&""!==Fe.trim()?we.searchTimer=setTimeout((function(){for(var e=[],t=(0,g.DeepClone)(L),r=0,n=t.length;r<n;r++){var o=t[r];if(o[R]&&o[R].length>0){for(var i=o[R],l=[],a=0,c=i.length;a<c;a++){var s=i[a];Ie(s)&&l.push(s)}l.length>0&&(o[R]=l,e.push(o))}else{Ie(o)&&e.push(o)}}me(e)}),100):me((0,g.DeepClone)(L))}),[K,Fe,L]),(0,n.useEffect)((function(){return oe?setTimeout((function(){Be(),window.addEventListener("click",Le),window.addEventListener("keydown",_e)})):(Ne(""),window.removeEventListener("click",Le),window.removeEventListener("keydown",_e)),function(){window.removeEventListener("click",Le),window.removeEventListener("keydown",_e)}}),[oe]),(0,n.useEffect)((function(){Fe&&ie(!0)}),[Fe]),(0,n.useEffect)((function(){S&&"outside"===_&&!E&&Ge(Fe)}),[Fe,S,E,_]);var qe,Be=function(){var e=Ae&&Ae.current,t=e&&e.querySelector("input");t&&t.focus()},je=function(e,t){for(var r=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;e&&!r.call(e,t);)e=e.parentElement;return e},Le=function(e){je(e.target,"."+re)||ie(!1)},Ie=function(e){var t=!1;return-1!==e[M].indexOf(Fe)&&(t=!0),t},Me=function(e){if(null!==e&&0!==e){void 0===e&&(e=de.length);var t=document.querySelector("."+te+" > .select-content > .check-select-content");if(t)if(t.scrollHeight>t.clientHeight){var r=Number(e)-1;ye(r),Me(r)}else de.length<=e&&We()}},He=function(){clearTimeout(we.timer),we.timer=setTimeout((function(){ye(de.length),Me()}),100)},Pe=function(){E||ie(!0)},De=function(){ie(!1)},Re=function(e){ke(!0),ie(!1),e.stopPropagation()},We=function(){ke(!1)},Ze=function(e,t){return function(r){var n=e[P];if(S){var o=de.indexOf(n);-1!==o?de.splice(o,1):de.push(n),Z&&Z(b(de),r),t&&X&&X(b(de)),Be()}else Z&&Z(n,r),t&&X&&X(n),De(),Ne("")}},Ve=function(e,t){return function(r){e||(e=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},P,t)),Ze(e)(r),r.stopPropagation()}},Ue=function(e){Ne(e.target.value)},Ge=function(e){var t=Ae&&Ae.current,r=t&&t.querySelector("input");if(!r)return null;var n=window.getComputedStyle(r),o=n.fontFamily,i=function(e,t,r){var n=document.createElement("span");n.id="referenceSpan";var o={};o.width=n.offsetWidth,o.height=n.offsetHeight,n.style.visibility="hidden",n.style.fontSize=e,n.style.fontFamily=t,n.style.display="inline-block";var i=document.getElementById("referenceSpan");return i&&document.body.removeChild(i),document.body.appendChild(n),void 0!==n.textContent?n.textContent=r:n.innerText=r,o.width=parseFloat(window.getComputedStyle(n).width)-o.width,o.height=parseFloat(window.getComputedStyle(n).height)-o.height,document.body.removeChild(n),o}(n.fontSize,o,e).width;i<10&&(i=10),t.style.width=i+"px"},Ke=function(e){var t=e.selectDom,r=e.keyCode,n=e.currentKeydownDom,o=null,i="nextSibling",l=".select-popover-list > div",a=".select-popover-list-item";if(38===r&&(i="previousSibling",l=".select-popover-list > div:last-child",a=".select-popover-list-item:last-child"),n)if(o=n[i])-1!==o.className.indexOf("select-popover-list-group-label")&&((o=(o=n.parentNode)[i])||(o=t.querySelector(l)));else{var c=n.parentNode;c&&c.className&&-1!==c.className.indexOf("select-popover-list-group")&&(o=(o=n.parentNode)[i])||(o=t.querySelector(l))}else o=t.querySelector(l);if(o)if(-1!==o.className.indexOf("select-popover-list-group")){var s=o.querySelector(a);s&&(s.classList.add("select-popover-list-item-keydown"),$e(s,t))}else o.classList.add("select-popover-list-item-keydown"),$e(o,t)},$e=function(e,t){clearTimeout(we.scrollTimer);var r=t.clientHeight,n=e.offsetTop+e.clientHeight-r;we.scroll=!0,t.scrollTop=n>0?n:0,we.scrollTimer=setTimeout((function(){we.scroll=!1}),100)},_e=function(e){var t=document.querySelector("."+re);if(t){var r=t.querySelector(".select-popover-list-item-select"),n=t.querySelector(".select-popover-list-item-hover"),o=t.querySelector(".select-popover-list-item-keydown"),i=r;if(n&&(i=n),13===e.keyCode){var l=o||n;if(l){var a=l.dataset.val;Ze(ve[a],!0)({target:o})}else X&&X(W)}o&&(i=o,o.classList.remove("select-popover-list-item-keydown")),40===e.keyCode&&Ke({selectDom:t,keyCode:e.keyCode,currentKeydownDom:i}),38===e.keyCode&&Ke({selectDom:t,keyCode:e.keyCode,currentKeydownDom:i})}},Je=function(e){if(!we.scroll){var t=je(e.target,".select-popover-list-item");if(t){t.classList.add("select-popover-list-item-hover");var r=document.querySelector("."+re).querySelector(".select-popover-list-item-keydown");r&&r.classList.remove("select-popover-list-item-keydown")}}},Ye=function(e){var t=je(e.target,".select-popover-list-item");t&&t.classList.remove("select-popover-list-item-hover")},Xe=(0,n.useMemo)((function(){return o().createElement(o().Fragment,null,"outside"===d&&o().createElement("label",{className:"select-label"},y,z&&o().createElement("span",{className:"identification-label"},T||o().createElement(o().Fragment,null,N?"(必填)":""))))}),[d,y,z,T,N]),Qe=(0,n.useMemo)((function(){return o().createElement(o().Fragment,null,!ae&&o().createElement("span",{className:"select-label-placeholder"},"outside"===d?h:o().createElement(o().Fragment,null,y||h,z&&o().createElement("span",{className:"identification-label"},T||o().createElement(o().Fragment,null,N?"(必填)":"")))))}),[ae,d,h,y,z,T,N]),et=(0,n.useMemo)((function(){return o().createElement(o().Fragment,null,!S&&o().createElement(o().Fragment,null,o().createElement("div",{className:"radio-select-content"},function(){if(""!==Fe)return null;var e=ve[de[0]]&&ve[de[0]][M]||de[0];return ze?e:o().createElement(m.default,null,e)}()),K&&"outside"===_&&!E&&o().createElement(i.TextField,{variant:"outlined",className:"radio-search-outside",value:Fe,onChange:Ue,ref:Ae})))}),[S,ae,ze,ve,de,M,K,_,Fe,E]),tt=(0,n.useMemo)((function(){return o().createElement(o().Fragment,null,S&&o().createElement("div",{className:"check-select-content"},de&&de.map((function(e,t){return null!==be&&be<=t?null:o().createElement("div",{className:"check-select-content-item",key:t},o().createElement("span",null,function(e){return ve[de[e]]&&ve[de[e]][M]||de[e]}(t)),!E&&o().createElement(f(),{onClick:Ve(ve[de[t]],de[t])}))})),function(){if(null!==be&&de.length>be)return o().createElement("div",{className:"check-select-content-item check-select-content-item-more",onClick:Re},o().createElement("span",null,"+",de.length-be))}(),K&&"outside"===_&&!E&&o().createElement(i.TextField,{variant:"outlined",className:"check-search-outside",value:Fe,onChange:Ue,ref:Ae})))}),[S,ae,de,be,ve,E,Z,Fe,K,_]),rt=(0,n.useMemo)((function(){return o().createElement("div",{className:"select-content",onClick:Pe,ref:ee},Qe,o().createElement("span",{className:"select-svg"},o().createElement(a(),null)),et,tt)}),[ee,ae,d,h,y,z,T,N,ze,ve,de,M,S,be,E,Z,Fe,_]),nt=(0,n.useMemo)((function(){return o().createElement("div",{className:"select-popover-list"},fe&&fe.length>0?o().createElement(o().Fragment,null,fe.map((function(e,t){if(e[R]&&e[R].length>0){var r=e[R];return o().createElement("div",{className:"select-popover-list-group",key:t},o().createElement("span",{className:"select-popover-list-group-label"},e[M]),r.map((function(e,t){var r=e[P],n="select-popover-list-item";return-1!==de.indexOf(r)&&(n+=" select-popover-list-item-select"),o().createElement("div",{onClick:Ze(e),className:n,onMouseEnter:Je,onMouseLeave:Ye,"data-val":r,key:t},o().createElement("span",{className:"select-popover-list-item-label"},o().createElement(m.default,null,e[M])),o().createElement("span",{className:"select-popover-list-item-svg"},o().createElement(u(),null)))})))}var n=e[P],i="select-popover-list-item";return-1!==de.indexOf(n)&&(i+=" select-popover-list-item-select"),o().createElement("div",{onClick:Ze(e),className:i,onMouseEnter:Je,onMouseLeave:Ye,"data-val":n,key:t},o().createElement("span",{className:"select-popover-list-item-label"},o().createElement(m.default,null,e[M])),o().createElement("span",{className:"select-popover-list-item-svg"},o().createElement(u(),null)))}))):o().createElement("div",{className:"select-nodata"},"暂无选项"))}),[fe,M,P,de,Z]),ot=(0,n.useMemo)((function(){var e="select-popover-content "+re;return o().createElement("div",{style:{width:(ee&&ee.current?ee.current.offsetWidth:0)+"px"},className:e},K&&"inside"===_&&o().createElement("div",{className:"select-popover-search"},o().createElement(i.TextField,{variant:"outlined",placeholder:"请输入搜索名",value:Fe,onChange:Ue,ref:Ae}),o().createElement(s(),null)),nt)}),[oe,ee,fe,R,P,M,de,Fe,K,re,_]),it=(0,n.useMemo)((function(){var e;return o().createElement(i.Popover,{open:Ee,anchorEl:ee&&ee.current,onClose:We,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},className:(e=Q["select-more-popover"],Y&&(e+=" "+Y),e)},o().createElement("div",{className:"select-more"},o().createElement("div",{className:"select-more-title"},o().createElement("span",null,"已选中"),o().createElement("span",null,de.length-Number(be))),o().createElement("div",{className:"select-more-content"},de&&de.map((function(e,t){return null!==be&&be>t?null:o().createElement("div",{className:"select-more-content-item",key:t},o().createElement("span",null,o().createElement(m.default,null,function(e){return ve[de[e]]&&ve[de[e]][M]||de[e]}(t))),!E&&o().createElement(f(),{onClick:Ve(ve[de[t]],de[t])}))})))))}),[Ee,de,be,ve,E,M,Y]);return o().createElement("div",{className:(qe=Q.select,qe+=" select",S&&!ze&&(qe+=" "+te),t&&(qe+=" "+t),l&&(qe+=" select-"+l),q&&(qe+=" select-error"),E&&(qe+=" select-disabled"),oe&&(qe+=" select-open"),S&&(qe+=" select-multiple"),ze&&(qe+=" select-over-line"),qe)},Xe,o().createElement(i.Tooltip,{open:oe,title:ot,onClose:De,interactive:!0,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,arrow:!0,classes:{popper:function(){var e=Q["select-popover"];return J&&(e+=" "+J),e}()},placement:"bottom-start"},rt),j&&o().createElement("p",{className:"select-error-text"},j),it)}},6203:function(e,t,r){var n=r(9297),o=r.n(n),i=r(1731),l=r(8604),a=r(9177),c=r(4927);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function d(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var u=(0,a.Z)(),p=(0,l.withStyles)((function(e){return(0,l.createStyles)({root:{width:"auto",height:"auto",padding:0,overflow:"visible"},switchBase:{padding:0,top:-2,color:u.bgBorderColor.bg4,"&$checked":{color:u.thmemColor.primary},"&$checked + $track":{backgroundColor:u.thmemColor.thirdary,opacity:1}},checked:{},thumb:{width:18,height:18},track:{width:32,height:14,borderRadius:7,backgroundColor:u.bgBorderColor.bg1,opacity:1},input:{left:"auto",width:"auto"}})}),{name:"SwitchCompact"})(i.Switch),f=(0,l.withStyles)((function(e){return(0,l.createStyles)({root:{width:"auto",height:"auto",padding:0},switchBase:{padding:2,color:u.textColor.white,"&$checked":{transform:"translateX(14px)",color:u.textColor.white,"& + $track":{backgroundColor:u.thmemColor.primary,opacity:1}}},thumb:{width:14,height:14},track:{width:32,height:18,borderRadius:9,backgroundColor:u.bgBorderColor.bg4,opacity:1},input:{left:"auto",width:"auto"},checked:{}})}),{name:"SwitchNormal"})(i.Switch),m=(0,l.makeStyles)((function(){return(0,l.createStyles)({smallThumb:function(e){return"compact"===e.type?{width:16,height:16,borderRadius:8}:{width:12,height:12,borderRadius:6}},smallTrack:function(e){return"compact"===e.type?{width:30,height:12,borderRadius:6}:{width:30,height:16,borderRadius:8}},largeThumb:function(e){return"compact"===e.type?{width:20,height:20,borderRadius:10}:{width:16,height:16,borderRadius:8}},largeTrack:function(e){return"compact"===e.type?{width:34,height:16,borderRadius:8}:{width:34,height:20,borderRadius:10}}})}));t.default=function(e){var t=e.type,r=void 0===t?"normal":t,n=e.size,i=void 0===n?"medium":n,l=e.className,a=d(e,["type","size","className"]),u=m({type:r});return o().createElement(o().Fragment,null,function(){if("compact"===r){var e="medium"===i?{}:{thumb:u["".concat(i,"Thumb")],track:u["".concat(i,"Track")]};return o().createElement(p,s({},a,{classes:e,className:(0,c.Z)("paraui-switch",l)}))}e="medium"===i?{}:{thumb:u["".concat(i,"Thumb")],track:u["".concat(i,"Track")]};return o().createElement(f,s({},a,{classes:e,className:(0,c.Z)("paraui-switch",l)}))}())}},4923:function(e,t,r){var n=r(9297),o=r.n(n),i=r(1731),l=r(4861),a=r(8528),c=r.n(a),s=r(6570),d=r.n(s),u=r(1102),p=r.n(u),f=r(8604),m=r(9177),h=r(3475);function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function g(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function x(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var b=(0,m.Z)(),y=(0,f.makeStyles)((function(){return(0,f.createStyles)({"@keyframes rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"text-field":{fontFamily:b.fontFamily.zh,display:"inline-block",fontSize:b.standardFont.standardFont1.fontSize,width:"100%",paddingBottom:"20px","& fieldset":{border:0},"& .text-field-error-text":{margin:0,paddingLeft:"10px",height:"20px",lineHeight:"20px"},"& .text-field-label":{color:b.textColor.secondary,marginBottom:"9px",display:"inline-block"},"& .text-field-content":{border:"1px solid",borderColor:b.textColor.thirdary,borderRadius:b.borderRadius,position:"relative",display:"table",width:"100%",boxSizing:"border-box","&:hover":{borderColor:b.thmemColor.primary},"& > div":{display:"table-cell",height:"100%",verticalAlign:"top"},"& .text-field-content-before":{color:b.textColor.primary,padding:"0 10px",borderRight:"1px solid "+b.textColor.thirdary,backgroundColor:b.bgBorderColor.bg2,borderBottomLeftRadius:b.borderRadius,borderTopLeftRadius:b.borderRadius,whiteSpace:"nowrap","& svg":{fontSize:"20px",verticalAlign:"top",position:"relative"}},"& .text-field-content-within":{position:"relative",width:"100%","& > *":{display:"table-cell",verticalAlign:"top"},"& svg":{fontSize:"20px",color:b.textColor.secondary,cursor:"pointer"},"& .right-icon":{zIndex:"1",position:"relative",whiteSpace:"nowrap","& > svg":{marginRight:"10px"}},"& .length-limit":{zIndex:"1",position:"relative",paddingRight:"10px",color:b.textColor.secondary},"& .text-field-content-within-input":{width:"100vw","& > div":{width:"100%"},"& input":{height:"100%"},"& input,textarea":{fontSize:b.standardFont.standardFont1.fontSize,color:b.textColor.primary,"&:-ms-clear":{display:"none"},"&:-ms-reveal":{display:"none"}},"& .text-field-label-placeholder":{width:"100%",position:"absolute",left:"0",height:"100%",padding:"0 10px",boxSizing:"border-box",color:b.textColor.thirdary,cursor:"text",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},"& .text-field-content-after":{color:b.textColor.primary,padding:"0 10px",borderLeft:"1px solid",borderColor:b.textColor.thirdary,backgroundColor:b.bgBorderColor.bg2,borderBottomRightRadius:b.borderRadius,borderTopRightRadius:b.borderRadius,whiteSpace:"nowrap","& svg":{fontSize:"20px",verticalAlign:"top",position:"relative"}}},"& .identification-label":{marginLeft:"3px"},"&.text-field-multiline":{"& .text-field-content":{"& .text-field-content-within":{"& > *":{display:"inline-block"},"& .length-limit":{width:"100%",boxSizing:"border-box",textAlign:"right",paddingBottom:"5px"},"& .text-field-content-within-input":{width:"100%","& > div:first-child":{width:"100%","& > div:first-child":{padding:"10px"}},"& .text-field-label-placeholder":{paddingTop:"10px"}}}}},"&.text-field-disabled":{"& .text-field-content":{backgroundColor:b.bgBorderColor.bg3,"&:hover":{borderColor:b.textColor.thirdary},"& .text-field-content-within":{"& .text-field-content-within-input":{"& .text-field-label-placeholder":{cursor:"not-allowed"},"& input":{cursor:"not-allowed",color:b.textColor.thirdary}}}}},"&.text-field-error":{"& .text-field-error-text":{color:b.stateColor.error},"& .text-field-content":{borderColor:b.stateColor.error,"&:hover":{borderColor:b.stateColor.error},"& .text-field-content-before":{borderColor:b.stateColor.error},"& .text-field-content-after":{borderColor:b.stateColor.error}}},"&.text-field-focus":{"& .text-field-content":{borderColor:b.thmemColor.primary,"& .text-field-content-before":{borderColor:b.thmemColor.primary},"& .text-field-content-after":{borderColor:b.thmemColor.primary}}},"&.text-field-small":{"& .text-field-content":{height:"28px","& .text-field-content-before":{lineHeight:"26px","& svg":{top:"3px"}},"& .text-field-content-within":{"& .text-field-content-within-input":{"& > div":{height:"26px","& > div":{height:"100%"}}},"& input":{padding:"5px 10px"},"& .text-field-label-placeholder":{lineHeight:"26px"},"& .right-icon":{paddingTop:"3px"},"& .length-limit":{lineHeight:"26px"}},"& .text-field-content-after":{lineHeight:"26px","& svg":{top:"3px"}}}},"&.text-field-medium":{"& .text-field-content":{height:"34px","& .text-field-content-before":{lineHeight:"32px","& svg":{top:"6px"}},"& .text-field-content-within":{"& .text-field-content-within-input":{"& > div":{height:"32px","& > div":{height:"100%"}}},"& input":{padding:"8px 10px"},"& .text-field-label-placeholder":{lineHeight:"32px"},"& .right-icon":{paddingTop:"7px"},"& .length-limit":{lineHeight:"32px","& svg":{top:"6px"}}},"& .text-field-content-after":{lineHeight:"32px","& svg":{top:"6px"}}}},"&.text-field-large":{"& .text-field-content":{height:"40px","& .text-field-content-before":{lineHeight:"38px","& svg":{top:"9px"}},"& .text-field-content-within":{"& .text-field-content-within-input":{"& > div":{height:"38px","& > div":{height:"100%"}}},"& input":{padding:"11px 10px"},"& .text-field-label-placeholder":{lineHeight:"38px"},"& .right-icon":{paddingTop:"10px"},"& .length-limit":{lineHeight:"38px"}},"& .text-field-content-after":{lineHeight:"38px","& svg":{top:"9px"}}}}},"text-field-select":{"& > div":{maxWidth:"none",padding:"0",backgroundColor:b.textColor.white,boxShadow:b.boxShadow,borderRadius:b.borderRadius,"& > span":{color:b.textColor.white},"& .text-field-select-content":{maxHeight:"300px",overflow:"auto","& > .text-field-select-content-item":{display:"flex",padding:"7px 10px",cursor:"pointer",lineHeight:"16px",color:b.textColor.secondary,"&:hover":{backgroundColor:b.bgBorderColor.bg2,color:b.thmemColor.primary},"&.text-field-select-content-item-keydown":{backgroundColor:b.bgBorderColor.bg2,color:b.thmemColor.primary}},"&.text-field-select-content-loading":{height:"100px",position:"relative",overflow:"hidden","& > .loading-box":{position:"absolute",left:"0",top:"0",width:"100%",height:"100%",backgroundColor:"white",display:"flex",justifyContent:"center",alignItems:"center","& > svg":{transition:"all .3s ease-in-out",animation:"$rotate 1s infinite linear",fontSzie:"20px"}}}}}}})}));t.default=function(e){var t=e.className,r=e.size,a=void 0===r?"small":r,s=e.labelMode,u=void 0===s?"outside":s,f=e.placeholder,m=void 0===f?"":f,b=e.label,w=void 0===b?"":b,C=e.disabled,E=void 0!==C&&C,k=e.multiline,S=void 0!==k&&k,F=e.required,N=void 0!==F&&F,O=e.showLabelSign,z=void 0===O||O,T=e.labelSign,A=e.rows,q=void 0===A?2:A,B=e.error,j=void 0!==B&&B,L=e.helperText,I=void 0===L?"":L,M=e.addonBefore,H=void 0===M?"":M,P=e.addonAfter,D=void 0===P?"":P,R=e.value,W=e.controlled,Z=void 0!==W&&W,V=e.autoFocus,U=void 0!==V&&V,G=e.type,K=void 0===G?"text":G,$=e.onClickIcon,_=e.rightIcon,J=e.showRightIcon,Y=void 0===J||J,X=e.limitLength,Q=e.fetchSuggestions,ee=e.selectPopoverClass,te=e.renderSelectItem,re=e.showSelectName,ne=void 0===re?"value":re,oe=e.onBlur,ie=e.onFocus,le=e.onChange,ae=e.onKeydown,ce=e.onKeyUp,se=e.onEnter,de=e.onClickAddonBefore,ue=e.onClickAddonAfter,pe=e.onSelect,fe=g(e,["className","size","labelMode","placeholder","label","disabled","multiline","required","showLabelSign","labelSign","rows","error","helperText","addonBefore","addonAfter","value","controlled","autoFocus","type","onClickIcon","rightIcon","showRightIcon","limitLength","fetchSuggestions","selectPopoverClass","renderSelectItem","showSelectName","onBlur","onFocus","onChange","onKeydown","onKeyUp","onEnter","onClickAddonBefore","onClickAddonAfter","onSelect"]),me=y(e),he=x((0,n.useState)("text-field-select-content-"+(0,h.UUID)()),1)[0],ve=x((0,n.useState)(!0),2),ge=ve[0],xe=ve[1],be=x((0,n.useState)(),2),ye=be[0],we=be[1],Ce=x((0,n.useState)(!1),2),Ee=Ce[0],ke=Ce[1],Se=x((0,n.useState)(0),2),Fe=Se[0],Ne=Se[1],Oe=x((0,n.useState)("text"),2),ze=Oe[0],Te=Oe[1],Ae=x((0,n.useState)(!1),2),qe=Ae[0],Be=Ae[1],je=x((0,n.useState)(!1),2),Le=je[0],Ie=je[1],Me=x((0,n.useState)([]),2),He=Me[0],Pe=Me[1],De=(x((0,n.useState)({}),1)[0],(0,n.useRef)(null)),Re=(0,n.useRef)(null),We=(0,n.useRef)(null);(0,n.useEffect)((function(){De&&De.current&&Ne(De.current.offsetWidth)}),[]),(0,n.useEffect)((function(){K!==ze&&Te(K)}),[K]),(0,n.useEffect)((function(){we(R)}),[R]),(0,n.useEffect)((function(){xe(""===ye||void 0===ye)}),[ye]),(0,n.useEffect)((function(){Q&&Be(Ee)}),[Ee,Q]),(0,n.useEffect)((function(){return qe?window.addEventListener("keydown",Ke):window.removeEventListener("keydown",Ke),function(){window.removeEventListener("keydown",Ke)}}),[qe]);var Ze,Ve=function(){E||(xe(!1),(Re&&Re.current&&Re.current.querySelector(S?"textarea":"input")).focus())},Ue=function(e){var t=e.selectDom,r=e.keyCode,n=e.currentDom,o="nextSibling",i=".text-field-select-content-item";38===r&&(o="previousSibling",i=".text-field-select-content-item:last-child"),n?(n=n[o])||(n=t.querySelector(i)):n=t.querySelector(".text-field-select-content-item"),n&&(n.classList.add("text-field-select-content-item-keydown"),Ge(n,t))},Ge=function(e,t){var r=t.clientHeight,n=e.offsetTop+e.clientHeight-r;t.scrollTop=n>0?n:0},Ke=function(e){var t=document.querySelector("."+he),r=null,n=t.querySelector(".text-field-select-content-item-keydown");if(13===e.keyCode&&n){var o=n.dataset.val;rt(JSON.parse(o))(e),(Re&&Re.current&&Re.current.querySelector(S?"textarea":"input")).blur()}n&&(r=n,n.classList.remove("text-field-select-content-item-keydown")),40===e.keyCode&&Ue({selectDom:t,keyCode:e.keyCode,currentDom:r}),38===e.keyCode&&Ue({selectDom:t,keyCode:e.keyCode,currentDom:r})},$e=function(e){ke(!1),""===e.target.value&&xe(!0),oe&&oe(e)},_e=function(e){Ie(!0),Q&&Q(e,(function(e){Pe(e||[]),Ie(!1)}))},Je=function(e){ke(!0),ie&&ie(e),_e(e.target.value)},Ye=function(e){var t=e.target.value;X&&void 0!==t&&""!==t&&t.toString().length>X||(Z||we(t),le&&le(e),_e(e.target.value))},Xe=function(e){13===e.keyCode&&se&&se(e),ae&&ae(e)},Qe=function(e){ce&&ce(e)},et=function(e){"password"===K&&("text"===ze&&Te("password"),"password"===ze&&Te("text")),$&&$(e)},tt=function(){Be(!1)},rt=function(e){return function(t){pe&&pe(e)}},nt=(0,n.useMemo)((function(){return o().createElement(o().Fragment,null,void 0!==X&&o().createElement("span",{className:"length-limit"},(ye?ye.toString().length:0)+"/"+X))}),[X,ye]),ot=(0,n.useMemo)((function(){return o().createElement(o().Fragment,null,Y&&o().createElement("span",{className:"right-icon",onClick:et},_||("password"===K?"password"===ze?o().createElement(c(),null):o().createElement(d(),null):null)))}),[Y,_,K,ze]),it=(0,n.useMemo)((function(){return o().createElement("div",{className:"text-field-content-within",ref:We},o().createElement("div",{className:"text-field-content-within-input"},o().createElement(i.TextField,v({size:"small",variant:"outlined",autoFocus:U,ref:Re,type:ze,value:ye||"",disabled:E,multiline:S,rows:q,onBlur:$e,onFocus:Je,onChange:Ye,onKeyDown:Xe,onKeyUp:Qe},fe)),ge&&o().createElement("span",{className:"text-field-label-placeholder",onClick:Ve},"outside"===u?m:o().createElement(o().Fragment,null,w||m,z&&o().createElement("span",{className:"identification-label"},T||o().createElement(o().Fragment,null,N?"(必填)":""))))),nt,ot)}),[ge,U,ze,ye,nt,ot,u,m,w,E,S,q,fe,le,Q]),lt=(0,n.useMemo)((function(){var e;return o().createElement("div",{className:(e="text-field-select-content",Le&&(e+=" text-field-select-content-loading"),he&&(e+=" "+he),e),style:{width:(We&&We.current?We.current.offsetWidth:0)+"px"}},He&&He.map((function(e,t){return o().createElement("div",{className:"text-field-select-content-item",key:t,onMouseDown:rt(e),"data-val":JSON.stringify(e)},te?te(e):o().createElement(l.default,null,e[ne]))})),Le&&o().createElement("div",{className:"loading-box"},o().createElement(p(),null)))}),[We,qe,He,te,ne,pe,Le,he]),at=(0,n.useMemo)((function(){return o().createElement(i.Tooltip,{open:qe,title:lt,onClose:tt,interactive:!0,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,arrow:!0,classes:{popper:(e=me["text-field-select"],ee&&(e+=" "+ee),e)}},it);var e}),[ge,U,ze,ye,nt,ot,u,m,w,E,S,q,fe,le,Q,pe,We,qe,ee]),ct=(0,n.useMemo)((function(){var e=Boolean(z&&(T||N));if("outside"===u&&(w||e))return o().createElement("label",{className:"text-field-label"},w,z&&o().createElement("span",{className:"identification-label"},T||o().createElement(o().Fragment,null,N?"(必填)":"")))}),[u,w,z,T,N]);return o().createElement("div",{className:(Ze=me["text-field"],Ze+=" text-field",a&&!S&&(Ze+=" text-field-"+a),t&&(Ze+=" "+t),j&&(Ze+=" text-field-error"),Ee&&(Ze+=" text-field-focus"),E&&(Ze+=" text-field-disabled"),S&&(Ze+=" text-field-multiline"),Ze)},ct,o().createElement("div",{className:"text-field-content"},H&&o().createElement("div",{className:"text-field-content-before",ref:De,onClick:function(e){de&&de(e)}},H),Q?at:it,D&&o().createElement("div",{className:"text-field-content-after",onClick:function(e){ue&&ue(e)}},D)),I&&o().createElement("p",{className:"text-field-error-text",style:{marginLeft:Fe+"px"}},I))}},1731:function(e){e.exports=n},8604:function(e){e.exports=r},6110:function(e){e.exports=d},19:function(e){e.exports=u},6243:function(e){e.exports=p},6028:function(e){e.exports=c},9973:function(e){e.exports=f},1102:function(e){e.exports=l},6570:function(e){e.exports=i},8528:function(e){e.exports=o},4115:function(e){e.exports=s},6897:function(e){e.exports=t},3475:function(e){e.exports=a},9297:function(t){t.exports=e}},h={};function v(e){var t=h[e];if(void 0!==t)return t.exports;var r=h[e]={exports:{}};return m[e](r,r.exports,v),r.exports}v.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return v.d(t,{a:t}),t},v.d=function(e,t){for(var r in t)v.o(t,r)&&!v.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},v.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},v.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var g={};return function(){v.r(g),v.d(g,{default:function(){return G}});var e=v(9297),t=v.n(e),r=v(6897),n=v.n(r),o=v(8604),i=v(1731),l=v(4923),a=v(9103);function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var d=function(e){var r=e.defaultValue,n=e.change,o=s(t().useState(r||""),2),i=o[0],l=o[1];return t().createElement(a.default,c({value:i,onChange:function(e){l(e),n&&n(e)}},e))},u=v(8121);function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var m=function(e){var r=e.defaultValue,n=void 0===r?"":r,o=e.change,i=e.value,l=f(t().useState(void 0!==i?i:n),2),a=l[0],c=l[1];return t().useEffect((function(){c(i)}),[i]),t().createElement(u.default,p({labelMode:"inside",onChange:function(e){c(e),o&&o(e)}},e,{value:a}))},h=v(982);function x(){return(x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var y=function(e){var r=e.defaultValue,n=e.change,o=b(t().useState(r||[]),2),i=o[0],l=o[1];return t().createElement(h.default,x({value:i,onChange:function(e){l(e),n&&n(e)}},e))},w=v(5836),C=v(6203),E=v(6243),k=v.n(E),S=v(9973),F=v.n(S),N=v(4861),O=v(8955),z=v(9177);function T(){return(T=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var q=(0,z.Z)(),B=(0,o.makeStyles)((function(e){return(0,o.createStyles)({"para-file-box":{padding:"6px","& .para-file-tips":{"&-disabled":{"& .file-tips-context,& .svg-icon-primary":{color:"".concat(q.textColor.thirdary," !important")}},minHeight:"20px",position:"relative",padding:"6px","& .file-tips-item":{position:"relative",height:"20px",lineHeight:"16px",paddingRight:"20px",'&>[data-name="LinkGroup"]':{verticalAlign:"middle",marginRight:"9px"},"& .file-tips-context":{display:"inline-block",verticalAlign:"middle",width:"calc(100% - 45px)",color:q.thmemColor.primary},'&>[data-name="Delete"]':{display:"none",verticalAlign:"middle",cursor:"pointer",position:"absolute",right:"3px",top:"2px","&:hover":{opacity:"0.8"}},"&:hover":{backgroundColor:"#f5f5f5",'&>[data-name="Delete"]':{display:"inline-block"}}}}}})})),j=function(e){var r=e.fileType,n=void 0===r?"":r,o=e.defaultValue,i=e.onChange,l=e.disabled,a=e.buttonLabel,c=e.inputProps,s=e.buttonProps,d=B(),u=t().useRef(null),p=function(e){var t=void 0!==e?e:u.current.files;h(t),i&&i(t),null===e&&(u.current.value=null)},f=A(t().useState(),2),m=f[0],h=f[1];return t().useEffect((function(){o&&h(o)}),[o]),t().createElement("div",{className:d["para-file-box"]},!l&&t().createElement(O.default,T({variant:"outlined"},s,{onClick:function(){var e;console.log("inputFileClick",u.current),null===(e=u.current)||void 0===e||e.click()}}),a||"选择文件"),t().createElement("input",T({},c,{ref:u,type:"file",onInput:function(){return p()},hidden:!0,accept:"string"==typeof n?n:n.join(",")})),m&&m[0]&&t().createElement("div",{className:"para-file-tips ".concat(l?"para-file-tips-disabled":"")},t().createElement("div",{className:"file-tips-item"},t().createElement(F(),null),t().createElement("span",{className:"file-tips-context"},t().createElement(N.default,null,"string"==typeof m?m:m[0].name)),!l&&t().createElement(k(),{onClick:function(){return p(null)}}))))};function L(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I(){return(I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function M(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable})))),n.forEach((function(t){L(e,t,r[t])}))}return e}function H(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var P=function(e){var r=e.ItemType,n=e.error,o=e.placeholder,i=e.label,a=e.inputProps,c=e.name,s=e.rules,u=e.setValue,p=e.setError,f=e.backData,h=e.disabled,v=e.change,g=o||"".concat(i),x=H(t().useState(!!n),2),b=x[0],E=x[1],k=function(t){if(u&&u(c,"value",t),v&&v(t),s){var r=(0,w.Z)(e,t)||"";S(r)}},S=t().useCallback((function(e){p&&p(e),E(!!e),u&&u(c,"message",e)}),[c,p,u]);t().useEffect((function(){var t=M({},e,{setErrorMsg:S});u&&u(c,"item",t)}),[c,e,S,u]);return function(){if(r&&"string"!=typeof r){var n=M({},e,{setErrorMsg:S});return r(n)}switch(r){case"file":return t().createElement(j,I({},e,{defaultValue:f[c],disabled:h,onChange:function(e){k(e)}}));case"switch":return void 0===f[c]&&u&&u(c,"initValue",!!f[c]),t().createElement(C.default,I({type:"compact",size:"small",defaultChecked:!!f[c],onChange:function(e){k(e.target.checked)}},M({},a,{disabled:h})));case"checkGroup":return t().createElement(y,I({error:b,defaultValue:f[c],size:"small",change:function(e){k(e)},list:e.list},M({},a,{disabled:h})));case"select":return t().createElement(m,I({placeholder:g,defaultValue:f[c],error:b,size:"medium",change:function(e){k(e)},list:e.list},M({disabled:h},a)));case"radioGroup":return t().createElement(d,I({error:b,defaultValue:f[c],size:"small",change:function(e){k(e)},list:e.list},M({disabled:h},a)));case"textarea":return t().createElement(l.default,I({error:b,placeholder:g,value:f[c],disabled:h,multiline:!0,rows:3,size:"medium",name:c,onChange:function(e){k(e.target.value)}},a));default:return t().createElement(l.default,I({value:f[c],error:b,placeholder:g,onChange:function(e){k(e.target.value)},name:c,size:"medium",disabled:h},a))}}()};function D(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var l,a=e[Symbol.iterator]();!(n=(l=a.next()).done)&&(r.push(l.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(o)throw i}}return r}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var R=function(e){var r=e.getSetError,n=e.errorMessage,o=D(t().useState(n||""),2),i=o[0],l=o[1];return t().useEffect((function(){l(n||"")}),[n]),t().useEffect((function(){r&&r(l)}),[r]),t().createElement(N.default,null,i," ")},W=v(4927);function Z(){return(Z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var V=(0,z.Z)(),U=(0,o.makeStyles)((function(e){return(0,o.createStyles)({"para-form-item":{"& .para-form-label":{height:"20px",lineHeight:"20px",fontSize:"12px",textAlign:"left",fontWeight:"400",display:"inline-block",marginBottom:"8px",verticalAlign:"top",width:"100%","&-vertical":{marginTop:"6px",textAlign:"right",paddingRight:"3px",position:"relative","& .para-form-labe-tips":{position:"absolute",left:"0px",top:"1px"}},"& .para-form-labe-text":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"inline-block",maxWidth:"100%",verticalAlign:"middle","&-hastips":{maxWidth:"calc(100% - 25px)"}},"& .para-form-labe-tips":{height:"20px",cursor:"pointer",display:"inline-block",verticalAlign:"middle",lineHeight:"27px",marginLeft:"5px"}},"& .para-form-edit":{minHeight:"34px","&>div":{padding:"0px"},"& .MuiSwitch-root":{marginTop:"12px"}},"& .para-form-error":{height:"17px",lineHeight:"17px",color:V.stateColor.error},"& .para-form-content-vertical":{display:"inline-block",width:"100%"}}})})),G=function(e){var r=e.type,o=void 0===r?"horizontal":r,l=e.labelWidth,a=void 0===l?60:l,c=e.tips,s=e.label,d=e.InputType,u=e.setValue,p=e.errorMessage,f=(e.rules,e.backData),m=void 0===f?{}:f,h=U(),v=t().useRef(),g=function(e){return"vertical"===o?t().createElement("div",{className:"para-form-content-vertical",style:{width:"calc(100% - ".concat(a,"px)")}},e.children):e.children};return t().createElement("div",{className:h["para-form-item"]},t().createElement("div",{className:(0,W.Z)("para-form-label","vertical"===o&&"para-form-label-vertical"),style:{width:"vertical"===o?"".concat(a,"px"):""}},t().createElement("span",{className:(0,W.Z)("para-form-labe-text",c&&"para-form-labe-text-hastips")},s),c&&t().createElement(i.Tooltip,{title:c,placement:"top"},t().createElement("span",{className:"para-form-labe-tips"},t().createElement(n(),null)))),t().createElement(g,null,t().createElement("div",{className:"para-form-edit"},e.children?e.children:t().createElement(P,Z({setError:function(e){v.current&&v.current(e)},error:!!p,ItemType:d,backData:m},e,{setValue:u}))),t().createElement("div",{className:"para-form-error"},t().createElement(R,{getSetError:function(e){return v.current=e},errorMessage:p}))))}}(),g}()}));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@para-ui/icons/WarningCircle"),require("@material-ui/core/styles"),require("@material-ui/core"),require("@para-ui/icons/PreviewOpen"),require("@para-ui/icons/PreviewClose"),require("@para-ui/icons/LoadingF"),require("para-lib"),require("@para-ui/icons/Down"),require("@para-ui/icons/Search"),require("@para-ui/icons/Check"),require("@para-ui/icons/Close"),require("@para-ui/icons/Delete"),require("@para-ui/icons/LinkGroup")):"function"==typeof define&&define.amd?define(["react","@para-ui/icons/WarningCircle","@material-ui/core/styles","@material-ui/core","@para-ui/icons/PreviewOpen","@para-ui/icons/PreviewClose","@para-ui/icons/LoadingF","para-lib","@para-ui/icons/Down","@para-ui/icons/Search","@para-ui/icons/Check","@para-ui/icons/Close","@para-ui/icons/Delete","@para-ui/icons/LinkGroup"],t):"object"==typeof exports?exports.ParaUI=t(require("react"),require("@para-ui/icons/WarningCircle"),require("@material-ui/core/styles"),require("@material-ui/core"),require("@para-ui/icons/PreviewOpen"),require("@para-ui/icons/PreviewClose"),require("@para-ui/icons/LoadingF"),require("para-lib"),require("@para-ui/icons/Down"),require("@para-ui/icons/Search"),require("@para-ui/icons/Check"),require("@para-ui/icons/Close"),require("@para-ui/icons/Delete"),require("@para-ui/icons/LinkGroup")):e.ParaUI=t(e.react,e["@para-ui/icons/WarningCircle"],e["@material-ui/core/styles"],e["@material-ui/core"],e["@para-ui/icons/PreviewOpen"],e["@para-ui/icons/PreviewClose"],e["@para-ui/icons/LoadingF"],e["para-lib"],e["@para-ui/icons/Down"],e["@para-ui/icons/Search"],e["@para-ui/icons/Check"],e["@para-ui/icons/Close"],e["@para-ui/icons/Delete"],e["@para-ui/icons/LinkGroup"])}(self,(function(e,t,o,i,r,n,l,a,s,c,d,p,u,h){return function(){"use strict";var f={4927:function(e,t,o){function i(e){var t,o,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(o=i(e[t]))&&(r&&(r+=" "),r+=o);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function r(){for(var e,t,o=0,r="";o<arguments.length;)(e=arguments[o++])&&(t=i(e))&&(r&&(r+=" "),r+=t);return r}o.d(t,{Z:function(){return r}})},4126:function(e){
|
|
2
|
+
/*
|
|
3
|
+
object-assign
|
|
4
|
+
(c) Sindre Sorhus
|
|
5
|
+
@license MIT
|
|
6
|
+
*/
|
|
7
|
+
var t=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function r(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},o=0;o<10;o++)t["_"+String.fromCharCode(o)]=o;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,n){for(var l,a,s=r(e),c=1;c<arguments.length;c++){for(var d in l=Object(arguments[c]))o.call(l,d)&&(s[d]=l[d]);if(t){a=t(l);for(var p=0;p<a.length;p++)i.call(l,a[p])&&(s[a[p]]=l[a[p]])}}return s}},9524:function(e,t,o){
|
|
8
|
+
/** @license React v17.0.2
|
|
9
|
+
* react-jsx-runtime.production.min.js
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
|
+
*
|
|
13
|
+
* This source code is licensed under the MIT license found in the
|
|
14
|
+
* LICENSE file in the root directory of this source tree.
|
|
15
|
+
*/
|
|
16
|
+
o(4126);var i=o(9297),r=60103;if(t.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var n=Symbol.for;r=n("react.element"),t.Fragment=n("react.fragment")}var l=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a=Object.prototype.hasOwnProperty,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,o){var i,n={},c=null,d=null;for(i in void 0!==o&&(c=""+o),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)a.call(t,i)&&!s.hasOwnProperty(i)&&(n[i]=t[i]);if(e&&e.defaultProps)for(i in t=e.defaultProps)void 0===n[i]&&(n[i]=t[i]);return{$$typeof:r,type:e,key:c,ref:d,props:n,_owner:l.current}}t.jsx=c,t.jsxs=c},7712:function(e,t,o){e.exports=o(9524)},115:function(e,t,o){var i=o(7712),r=o(9297),n=o(1731),l=o(8604),a=o(853),s=function(){return s=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},s.apply(this,arguments)},c=((0,a.Z)(),(0,l.makeStyles)((function(e){return(0,l.createStyles)({"auto-tips":{maxWidth:"100%",display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap","& > .auto-tips-content":{display:"inline",maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}})})));t.default=function(e){var t=e.children,o=e.placement,l=void 0===o?"bottom-start":o,a=e.tips,d=void 0===a?"":a,p=e.className,u=void 0===p?"":p,h=(0,r.useRef)(),f=c(),v=(0,r.useState)(""),m=v[0],x=v[1];(0,r.useEffect)((function(){x(d)}),[d]);var g;return(0,i.jsx)("div",s({ref:function(e){e&&(h.current=e)},className:(g=f["auto-tips"],g+=" paraui-auto-tips",u&&(g+=" "+u),g),onMouseOver:function(){h.current.scrollWidth>h.current.offsetWidth?x(m||h.current.innerText):x("")}},{children:(0,i.jsx)(n.Tooltip,s({title:m,placement:l},{children:(0,i.jsx)("div",s({className:"auto-tips-content"},{children:t}),void 0)}),void 0)}),void 0)}},5794:function(e,t,o){var i=o(7712),r=o(9297),n=o(1731),l=o(8604),a=o(4927),s=o(1102),c=o.n(s),d=o(853),p=function(){return p=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},p.apply(this,arguments)},u=function(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(o[i[r]]=e[i[r]])}return o},h=(0,d.Z)(),f=(0,l.makeStyles)((function(e){return(0,l.createStyles)({"@keyframes loadingCircle":{"100%":{transform:"rotate(1turn)"}},radius:{borderRadius:15},btnIcon:{"& .btn-icon":{display:"inline-flex",alignItems:"center"},"& .btn-icon svg":{color:"currentColor"}},outlinedBtn:{"& .btn-icon svg":{color:h.thmemColor.primary},"&:disabled":{"& .btn-icon svg":{color:"currentColor"}}},iconButtonToolTip:{display:"inline-block",cursor:"not-allowed","& .iconButton-disabled":{cursor:"not-allowed",pointerEvents:"none"}},loadingBtn:{position:"relative",pointerEvents:"none","&:before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:1,transition:"opacity .2s",pointerEvents:"none"},"& .loading-icon":{animation:"$loadingCircle 1s infinite linear"}}})})),v=(0,l.withStyles)((function(e){return{tooltip:{margin:"6px 0",backgroundColor:h.bgBorderColor.bg4}}}))(n.Tooltip),m=function(e){var t=f(),o=e.radius,l=e.className,s=e.disabled,d=void 0!==s&&s,h=e.children,v=e.startIcon,m=e.endIcon,x=e.loading,g=void 0!==x&&x,b=u(e,["radius","className","disabled","children","startIcon","endIcon","loading"]);"text"===b.variant&&(b.disableRipple=!0);var y=(0,r.useState)(!1),C=y[0],w=y[1];return(0,r.useEffect)((function(){w(!!g)}),[g]),(0,i.jsx)(n.Button,p({disabled:d,className:(0,a.Z)("paraui-button",l,t.btnIcon,o&&t.radius,"outlined"===b.variant&&t.outlinedBtn,C&&t.loadingBtn),startIcon:function(){if(!C)return(0,i.jsx)("span",p({className:"btn-icon"},{children:v}),void 0);if("object"==typeof g){var e=g.delay||0;setTimeout((function(){return w(!1)}),e)}return(0,i.jsx)("span",p({className:"btn-icon loading-icon"},{children:(0,i.jsx)(c(),{},void 0)}),void 0)}(),endIcon:(0,i.jsx)("span",p({className:"btn-icon"},{children:m}),void 0)},b,{children:h}),void 0)};m.IconButton=function(e){var t=f(),o=e.showToolTip,l=void 0===o||o,s=e.toolTipTitle,d=void 0===s?"":s,h=e.children,m=e.className,x=e.disabled,g=void 0!==x&&x,b=e.loading,y=void 0!==b&&b,C=e.TooltipProps,w=u(e,["showToolTip","toolTipTitle","children","className","disabled","loading","TooltipProps"]),j=(0,r.useState)(!1),k=j[0],S=j[1],O=(0,i.jsx)(n.IconButton,p({},w,{disabled:g,disableRipple:!0,className:(0,a.Z)("paraui-icon-button",m,l&&g&&"iconButton-disabled",k&&t.loadingBtn)},{children:function(){if(!k)return h;if("object"==typeof y){var e=y.delay||0;setTimeout((function(){return S(!1)}),e)}return(0,i.jsx)("span",p({className:"loading-icon"},{children:(0,i.jsx)(c(),{},void 0)}),void 0)}()}),void 0);return(0,r.useEffect)((function(){S(!!y)}),[y]),l?(0,i.jsx)(v,p({title:d},C,{children:(0,i.jsx)("span",p({className:(0,a.Z)(g&&t.iconButtonToolTip)},{children:O}),void 0)}),void 0):O},t.default=m},193:function(e,t,o){o.d(t,{default:function(){return f}});var i=o(7712),r=o(9297),n=o(1731),l=o(8604),a=o(853),s=function(){return s=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},s.apply(this,arguments)},c={icon:{icon:(0,i.jsxs)("svg",s({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,i.jsx)("path",{d:"M78.769231 78.769231m118.153846 0l630.153846 0q118.153846 0 118.153846 118.153846l0 630.153846q0 118.153846-118.153846 118.153846l-630.153846 0q-118.153846 0-118.153846-118.153846l0-630.153846q0-118.153846 118.153846-118.153846Z",fill:"#FFFFFF"},void 0),(0,i.jsx)("path",{d:"M827.076923 0h-630.153846A196.923077 196.923077 0 0 0 0 196.923077v630.153846A196.923077 196.923077 0 0 0 196.923077 1024h630.153846a196.923077 196.923077 0 0 0 196.923077-196.923077v-630.153846A196.923077 196.923077 0 0 0 827.076923 0zM945.230769 827.076923a118.153846 118.153846 0 0 1-118.153846 118.153846h-630.153846A118.153846 118.153846 0 0 1 78.769231 827.076923v-630.153846A118.153846 118.153846 0 0 1 196.923077 78.769231h630.153846A118.153846 118.153846 0 0 1 945.230769 196.923077z",className:"line-rect",fill:"currentColor"},void 0)]}),void 0),iconDisabled:(0,i.jsxs)("svg",s({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,i.jsx)("path",{d:"M78.769231 78.769231m118.153846 0l630.153846 0q118.153846 0 118.153846 118.153846l0 630.153846q0 118.153846-118.153846 118.153846l-630.153846 0q-118.153846 0-118.153846-118.153846l0-630.153846q0-118.153846 118.153846-118.153846Z",fill:"currentColor",className:"fill-bg"},void 0),(0,i.jsx)("path",{d:"M827.076923 0h-630.153846A196.923077 196.923077 0 0 0 0 196.923077v630.153846A196.923077 196.923077 0 0 0 196.923077 1024h630.153846a196.923077 196.923077 0 0 0 196.923077-196.923077v-630.153846A196.923077 196.923077 0 0 0 827.076923 0zM945.230769 827.076923a118.153846 118.153846 0 0 1-118.153846 118.153846h-630.153846A118.153846 118.153846 0 0 1 78.769231 827.076923v-630.153846A118.153846 118.153846 0 0 1 196.923077 78.769231h630.153846A118.153846 118.153846 0 0 1 945.230769 196.923077z",className:"line-rect",fill:"currentColor"},void 0)]}),void 0)},checkedIcon:{icon:(0,i.jsxs)("svg",s({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,i.jsx)("path",{d:"M0 0m196.923077 0l630.153846 0q196.923077 0 196.923077 196.923077l0 630.153846q0 196.923077-196.923077 196.923077l-630.153846 0q-196.923077 0-196.923077-196.923077l0-630.153846q0-196.923077 196.923077-196.923077Z",fill:"currentColor"},void 0),(0,i.jsx)("path",{d:"M852.834462 284.356923a46.710154 46.710154 0 0 0-66.008616 0L430.710154 640.472615 237.331692 447.172923a46.710154 46.710154 0 0 0-66.087384 66.087385l226.382769 226.304a46.710154 46.710154 0 0 0 66.087385 0c0.472615-0.551385 0.708923-1.260308 1.181538-1.811693s1.260308-0.708923 1.811692-1.181538l385.969231-385.969231a46.710154 46.710154 0 0 0 0-66.244923z",fill:"#FFFFFF"},void 0)]}),void 0),iconDisabled:(0,i.jsxs)("svg",s({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,i.jsx)("path",{className:"fill-bg",d:"M78.769231 78.769231m118.153846 0l630.153846 0q118.153846 0 118.153846 118.153846l0 630.153846q0 118.153846-118.153846 118.153846l-630.153846 0q-118.153846 0-118.153846-118.153846l0-630.153846q0-118.153846 118.153846-118.153846Z",fill:"currentColor"},void 0),(0,i.jsx)("path",{d:"M827.076923 0h-630.153846A196.923077 196.923077 0 0 0 0 196.923077v630.153846A196.923077 196.923077 0 0 0 196.923077 1024h630.153846a196.923077 196.923077 0 0 0 196.923077-196.923077v-630.153846A196.923077 196.923077 0 0 0 827.076923 0zM945.230769 827.076923a118.153846 118.153846 0 0 1-118.153846 118.153846h-630.153846A118.153846 118.153846 0 0 1 78.769231 827.076923v-630.153846A118.153846 118.153846 0 0 1 196.923077 78.769231h630.153846A118.153846 118.153846 0 0 1 945.230769 196.923077z",className:"line-rect",fill:"currentColor"},void 0),(0,i.jsx)("path",{d:"M852.834462 284.356923a46.710154 46.710154 0 0 0-66.008616 0L430.710154 640.472615 237.331692 447.172923a46.710154 46.710154 0 0 0-66.087384 66.087385l226.382769 226.304a46.710154 46.710154 0 0 0 66.087385 0c0.472615-0.551385 0.708923-1.260308 1.181538-1.811693s1.260308-0.708923 1.811692-1.181538l385.969231-385.969231a46.710154 46.710154 0 0 0 0-66.244923z",className:"char-path",fill:"currentColor"},void 0)]}),void 0)},indeterminateIcon:{icon:(0,i.jsxs)("svg",s({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,i.jsx)("path",{d:"M0 0m196.923077 0l630.153846 0q196.923077 0 196.923077 196.923077l0 630.153846q0 196.923077-196.923077 196.923077l-630.153846 0q-196.923077 0-196.923077-196.923077l0-630.153846q0-196.923077 196.923077-196.923077Z",fill:"currentColor"},void 0),(0,i.jsx)("path",{d:"M785.171692 564.224h-546.422154a52.696615 52.696615 0 0 1 0-104.448h546.422154a52.696615 52.696615 0 0 1 0 104.448z",fill:"#FFFFFF"},void 0)]}),void 0),iconDisabled:(0,i.jsxs)("svg",s({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:[(0,i.jsx)("path",{d:"M78.769231 78.769231m118.153846 0l630.153846 0q118.153846 0 118.153846 118.153846l0 630.153846q0 118.153846-118.153846 118.153846l-630.153846 0q-118.153846 0-118.153846-118.153846l0-630.153846q0-118.153846 118.153846-118.153846Z",className:"fill-bg",fill:"currentColor"},void 0),(0,i.jsx)("path",{d:"M827.076923 0h-630.153846A196.923077 196.923077 0 0 0 0 196.923077v630.153846A196.923077 196.923077 0 0 0 196.923077 1024h630.153846a196.923077 196.923077 0 0 0 196.923077-196.923077v-630.153846A196.923077 196.923077 0 0 0 827.076923 0zM945.230769 827.076923a118.153846 118.153846 0 0 1-118.153846 118.153846h-630.153846A118.153846 118.153846 0 0 1 78.769231 827.076923v-630.153846A118.153846 118.153846 0 0 1 196.923077 78.769231h630.153846A118.153846 118.153846 0 0 1 945.230769 196.923077z",className:"line-rect",fill:"currentColor"},void 0),(0,i.jsx)("path",{d:"M785.171692 564.224H238.749538a52.696615 52.696615 0 0 1 0-104.448h546.422154a52.696615 52.696615 0 0 1 0 104.448z",className:"char-path",fill:"currentColor"},void 0)]}),void 0)}},d=function(){return d=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},d.apply(this,arguments)},p=function(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(o[i[r]]=e[i[r]])}return o},u=(0,a.Z)(),h=(0,l.makeStyles)((function(){return(0,l.createStyles)({"check-box":{margin:"0","&:hover":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:u.thmemColor.primary,"& > .line-rect":{color:u.thmemColor.primary}}}},"& > span:last-child":{color:u.thmemColor.primary}},"& > span:first-child":{padding:"8px","& > span:first-child":{"& > svg":{color:u.textColor.thirdary,"& > .line-rect":{color:u.textColor.thirdary}}}},"& > span:last-child":{color:u.textColor.primary},"&.check-box-checked":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:u.thmemColor.primary}}},"& > span:last-child":{color:u.thmemColor.primary}},"&.check-box-indeterminate":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:u.thmemColor.primary}}},"& > span:last-child":{color:u.thmemColor.primary}},"&.check-box-disabled":{"&:hover":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:u.textColor.thirdary,"& > .line-rect":{color:u.textColor.thirdary}}}},"& > span:last-child":{color:u.textColor.thirdary}},cursor:"not-allowed","& > span:first-child":{"& > span:first-child":{"& > svg":{color:u.textColor.thirdary+" !important","& > .fill-bg":{color:u.bgBorderColor.bg1},"& > .char-path":{color:u.bgBorderColor.bg4}}}},"& > span:last-child":{color:u.textColor.secondary+" !important"}},"&.check-box-small":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"12px"}}},"& > span:last-child":{fontSize:"12px",lineHeight:"12px"}},"&.check-box-medium":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"14px"}}},"& > span:last-child":{fontSize:"14px",lineHeight:"14px"}},"&.check-box-large":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"16px"}}},"& > span:last-child":{fontSize:"16px",lineHeight:"16px"}}}})})),f=function(e){var t=e.className,o=void 0===t?"":t,l=e.color,a=void 0===l?"primary":l,s=e.size,u=void 0===s?"small":s,f=e.label,v=void 0===f?"":f,m=e.labelPlacement,x=void 0===m?"end":m,g=(e.checkedIcon,e.indeterminateIcon,e.icon,e.disabled),b=void 0!==g&&g,y=e.checked,C=void 0!==y&&y,w=e.indeterminate,j=void 0!==w&&w,k=e.onChange,S=p(e,["className","color","size","label","labelPlacement","checkedIcon","indeterminateIcon","icon","disabled","checked","indeterminate","onChange"]),O=h(e),F=(0,r.useState)(!1),N=F[0],z=F[1];(0,r.useEffect)((function(){C!==N&&z(C)}),[C]);var T,q=function(e){return b?c[e].iconDisabled:c[e].icon},E=function(t,o){void 0===e.checked&&void 0===e.indeterminate&&z(t.target.checked),k&&k(t,o)};return(0,i.jsx)(n.FormControlLabel,{className:(T=O["check-box"]+" paraui-check-box",o&&(T+=" "+o),u&&(T+=" check-box-"+u),b&&(T+=" check-box-disabled"),j?T+=" check-box-indeterminate":N&&(T+=" check-box-checked"),T),control:(0,i.jsx)(n.Checkbox,d({size:"small",color:a,disabled:b,icon:q("icon"),checkedIcon:q("checkedIcon"),indeterminateIcon:q("indeterminateIcon"),onChange:E,checked:N,indeterminate:j},S),void 0),label:v,labelPlacement:x},void 0)}},1863:function(e,t,o){var i=o(9297),r=o(7712),n=o(1731),l=o(193),a=o(8604),s=o(853),c=o(3475),d=function(){return d=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},d.apply(this,arguments)},p=(0,s.Z)(),u=(0,a.makeStyles)((function(){return(0,a.createStyles)({"check-box-group":{"& > label":{fontSize:"12px",color:p.textColor.secondary,"& > .required-char":{marginLeft:"3px",color:p.thmemColor.primary}},"& > div":{margin:"5px 0"},"& > p":{fontSize:"12px",lineHeight:"12px",margin:"0",color:p.stateColor.error},"&.check-box-group-disabled":{},"&.check-box-group-small":{},"&.check-box-group-medium":{},"&.check-box-group-large":{}}})}));t.default=function(e){var t,o=e.label,a=void 0===o?"":o,s=e.size,p=void 0===s?"small":s,h=e.row,f=void 0===h||h,v=e.disabled,m=void 0!==v&&v,x=e.required,g=void 0!==x&&x,b=e.error,y=void 0!==b&&b,C=e.helperText,w=void 0===C?"":C,j=e.id,k=void 0===j?"name":j,S=e.value,O=void 0===S?[]:S,F=e.list,N=e.className,z=void 0===N?"":N,T=e.onChange,q=u(e),E=function(e){return function(t,o){var i=e[k],r=(0,c.DeepClone)(O);if(o)r.push(i);else{var n=r.indexOf(i);r.splice(n,1)}T&&T(r)}};return(0,r.jsxs)(n.FormControl,d({className:(t=q["check-box-group"]+" paraui-check-box-group",z&&(t+=" "+z),p&&(t+=" check-box-group-"+p),y&&(t+=" check-box-group-error"),m&&(t+=" check-box-group-disabled"),t)},{children:[(0,r.jsxs)(n.FormLabel,{children:[a,g&&(0,r.jsx)("span",d({className:"required-char"},{children:"(必填)"}),void 0)]},void 0),(0,r.jsx)(n.FormGroup,d({row:f},{children:F.map((function(e,t){return(0,i.createElement)(l.default,d({},e,{checked:-1!==O.indexOf(e[k]),size:p,disabled:Boolean(m||e.disabled),key:t,onChange:E(e)}))}))}),void 0),w&&(0,r.jsx)(n.FormHelperText,{children:w},void 0)]}),void 0)}},2963:function(e,t){var o={required:function(e,t){var o,i,r=typeof t,n=(null===(i=null===(o=e.rules)||void 0===o?void 0:o.message)||void 0===i?void 0:i.required)||e.label+"不能为空",l=!1;switch(r){case"string":l=!!t;break;case"number":l=t+1>t;break;case"object":var a=JSON.stringify(t);l="null"!==a&&"[]"!==a&&"{}"!==a;break;case"boolean":l=void 0!==t;break;default:l=!!t}return l||n},maxlength:function(e,t){var o,i,r,n,l,a,s=typeof t,c=(null===(i=null===(o=e.rules)||void 0===o?void 0:o.message)||void 0===i?void 0:i.maxlength)||"最大长度不能超过"+(null===(n=null===(r=e.rules)||void 0===r?void 0:r.validate)||void 0===n?void 0:n.maxlength);return("string"===s||"number"===s&&t+1>t?!((""+t).length>((null===(a=null===(l=e.rules)||void 0===l?void 0:l.validate)||void 0===a?void 0:a.maxlength)||NaN)):!t)||c},minLength:function(e,t){var o,i,r,n,l,a,s=typeof t,c=(null===(i=null===(o=e.rules)||void 0===o?void 0:o.message)||void 0===i?void 0:i.minLength)||"最小长度为"+(null===(n=null===(r=e.rules)||void 0===r?void 0:r.validate)||void 0===n?void 0:n.minLength);return("string"===s||"number"===s&&t+1>t?(""+t).length>=((null===(a=null===(l=e.rules)||void 0===l?void 0:l.validate)||void 0===a?void 0:a.minLength)||-1):!t)||c},pattern:function(e,t){var o,i,r,n,l=null===(i=null===(o=e.rules)||void 0===o?void 0:o.validate)||void 0===i?void 0:i.pattern,a=(null===(n=null===(r=e.rules)||void 0===r?void 0:r.message)||void 0===n?void 0:n.pattern)||"参数不符合校验规则: "+l,s=!t;return l&&t&&"function"!=typeof l&&(s=l.test(t)),s||a},min:function(e,t){var o,i,r,n,l,a,s=typeof t,c=(null===(i=null===(o=e.rules)||void 0===o?void 0:o.message)||void 0===i?void 0:i.min)||"最小值为"+(null===(n=null===(r=e.rules)||void 0===r?void 0:r.validate)||void 0===n?void 0:n.min),d=!t;return"string"!==s&&"number"!==s||(d=t>((null===(a=null===(l=e.rules)||void 0===l?void 0:l.validate)||void 0===a?void 0:a.min)||-1/0)),d||c},max:function(e,t){var o,i,r,n,l,a,s=typeof t,c=(null===(i=null===(o=e.rules)||void 0===o?void 0:o.message)||void 0===i?void 0:i.max)||"最大值为"+(null===(n=null===(r=e.rules)||void 0===r?void 0:r.validate)||void 0===n?void 0:n.max),d=!t;return"string"!==s&&"number"!==s||(d=t<((null===(a=null===(l=e.rules)||void 0===l?void 0:l.validate)||void 0===a?void 0:a.max)||1/0)),d||c}};t.Z=function(e,t){var i,r,n=null===(i=e.rules)||void 0===i?void 0:i.validate;if(n){var l=null===(r=e.rules)||void 0===r?void 0:r.message;for(var a in console.log("validateObj"),n){var s=n[a],c="";if("function"==typeof s?!1===(c=s(e,t))&&l&&(c=l[a]):o[a]?c=o[a](e,t):(console.log("项目: "+e.label+", 自定义校验规则: "+a+", 方法未定义"),c=!0),!0!==c)return c||""}}return!1}},853:function(e,t){var o={thmemColor:{primary:"#3D66F8",secondary:"#7E98F5",thirdary:"#D6DFFD"},textColor:{primary:"#191919",secondary:"#6E7488",thirdary:"#BBBECB",white:"#FFFFFF"},bgBorderColor:{bg1:"#DCDDE3",bg2:"#F5F5F5",bg3:"#EDEDED",bg4:"#6E7488",line1:"#E5E9EF",universal:"#FFFFFF"},stateColor:{info:"#3D66F8",success:"#41D658",warning:"#FFA150",error:"#F46B53"},gradientColor:{gradient1:"linear-gradient(#3D66F8, #4F93F0)",gradient2:"linear-gradient(#0093FF, #4EB4FF)",gradient3:"linear-gradient(#844EFF, #A796FF)",gradient4:"linear-gradient(#FD7300, #FFBF69)",gradient5:"linear-gradient(#3D66F8, #D8DFFA)"},fontFamily:{zh:"Microsoft Yahei, Helvetica, sans-serif",en:"Microsoft Yahei, Helvetica, sans-serif"},fontSize:12,borderRadius:4,boxShadow:"4px 4px 6px rgba(70,75,105,0.2), -4px -4px 6px rgba(0,0,0,0.06)",buttonShadow:"4px 4px 6px rgba(70,75,105,0.1), -4px -4px 6px rgba(0,0,0,0.03)",standardFont:{standardFont1:{fontSize:"12px",fontWeight:"400"},standardFont2:{fontSize:"12px",fontWeight:"700"}},titleFont:{titleFont1:{fontSize:"14px",fontWeight:"400"},titleFont2:{fontSize:"14px",fontWeight:"700"}},visualLargeFont:{visualLargeFont1:{fontSize:"40px",fontWeight:"700"},visualLargeFont2:{fontSize:"40px",fontWeight:"700"}}};t.Z=function(){return o}},4286:function(e,t,o){o.d(t,{default:function(){return f}});var i=o(7712),r=o(9297),n=o(1731),l=o(8604),a=o(853),s=function(){return s=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},s.apply(this,arguments)},c={icon:{icon:(0,i.jsx)("svg",s({viewBox:"0 0 1024 1024",version:"1.1",width:"1em",height:"1em"},{children:(0,i.jsx)("path",{d:"M512 981.333333A469.333333 469.333333 0 1 0 42.666667 512a469.845333 469.845333 0 0 0 469.333333 469.333333z m0-853.333333a384 384 0 1 1-384 384 384.426667 384.426667 0 0 1 384-384z",fill:"currentColor"},void 0)}),void 0),iconDisabled:(0,i.jsxs)("svg",s({viewBox:"0 0 1024 1024",width:"1em",height:"1em"},{children:[(0,i.jsx)("path",{d:"M512.213333 128.128a384 384 0 1 0 384 384 384 384 0 0 0-384-384z",fill:"currentColor"},void 0),(0,i.jsx)("path",{d:"M512 981.333333A469.333333 469.333333 0 1 0 42.666667 512a469.845333 469.845333 0 0 0 469.333333 469.333333z m0-853.333333a384 384 0 1 1-384 384 384.426667 384.426667 0 0 1 384-384z",className:"line-round",fill:"currentColor"},void 0)]}),void 0)},checkedIcon:{icon:(0,i.jsxs)("svg",s({viewBox:"0 0 1024 1024",width:"1em",height:"1em"},{children:[(0,i.jsx)("path",{d:"M512 42.837333a469.333333 469.333333 0 1 0 469.333333 469.333334 469.802667 469.802667 0 0 0-469.333333-469.333334z m0 853.333334a384 384 0 1 1 384-384 384.426667 384.426667 0 0 1-384 384z",fill:"currentColor"},void 0),(0,i.jsx)("path",{d:"M512 278.272A233.728 233.728 0 1 0 745.728 512 233.728 233.728 0 0 0 512 278.272z",fill:"currentColor"},void 0)]}),void 0),iconDisabled:(0,i.jsxs)("svg",s({viewBox:"0 0 1024 1024",width:"1em",height:"1em"},{children:[(0,i.jsx)("path",{d:"M512 128.170667a384 384 0 1 0 384 384 384.384 384.384 0 0 0-384-384z m0 617.728a233.728 233.728 0 1 1 233.728-233.728A233.770667 233.770667 0 0 1 512 745.728z",fill:"currentColor"},void 0),(0,i.jsx)("path",{d:"M512 42.837333a469.333333 469.333333 0 1 0 469.333333 469.333334 469.802667 469.802667 0 0 0-469.333333-469.333334z m0 853.333334a384 384 0 1 1 384-384 384.426667 384.426667 0 0 1-384 384z",className:"line-round",fill:"currentColor"},void 0),(0,i.jsx)("path",{d:"M512 278.272A233.728 233.728 0 1 0 745.728 512 233.728 233.728 0 0 0 512 278.272z",className:"line-round",fill:"currentColor"},void 0)]}),void 0)}},d=function(){return d=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},d.apply(this,arguments)},p=function(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(o[i[r]]=e[i[r]])}return o},u=(0,a.Z)(),h=(0,l.makeStyles)((function(){return(0,l.createStyles)({radio:{margin:"0","&:hover":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:u.thmemColor.primary}}},"& > span:last-child":{color:u.thmemColor.primary}},"& > span:first-child":{padding:"8px","& > span:first-child":{"& > svg":{color:u.textColor.thirdary,"& > .line-rect":{color:u.textColor.thirdary}}}},"& > span:last-child":{color:u.textColor.primary},"&.radio-checked":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:u.thmemColor.primary}}},"& > span:last-child":{color:u.thmemColor.primary}},"&.radio-disabled":{"&:hover":{"& > span:first-child":{"& > span:first-child":{"& > svg":{color:u.bgBorderColor.bg1,"& > .line-round":{color:u.textColor.thirdary}}}},"& > span:last-child":{color:u.textColor.thirdary}},cursor:"not-allowed","& > span:first-child":{"& > span:first-child":{"& > svg":{color:u.bgBorderColor.bg1+" !important","& > .line-round":{color:u.textColor.thirdary+" !important"}}}},"& > span:last-child":{color:u.textColor.secondary+" !important"}},"&.radio-small":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"12px"}}},"& > span:last-child":{fontSize:"12px",lineHeight:"12px"}},"&.radio-medium":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"14px"}}},"& > span:last-child":{fontSize:"14px",lineHeight:"14px"}},"&.radio-large":{"& > span:first-child":{"& > span:first-child":{"& > svg":{fontSize:"16px"}}},"& > span:last-child":{fontSize:"16px",lineHeight:"16px"}}}})})),f=function(e){var t=e.color,o=void 0===t?"primary":t,l=e.size,a=void 0===l?"small":l,s=e.label,u=void 0===s?"":s,f=e.labelPlacement,v=void 0===f?"end":f,m=(e.checkedIcon,e.icon,e.disabled),x=void 0!==m&&m,g=e.checked,b=void 0!==g&&g,y=e.onChange,C=e.className,w=void 0===C?"":C,j=p(e,["color","size","label","labelPlacement","checkedIcon","icon","disabled","checked","onChange","className"]),k=h(e),S=(0,r.useState)(!1),O=S[0],F=S[1];(0,r.useEffect)((function(){b!==O&&F(b)}),[b]);var N,z=function(e){return x?c[e].iconDisabled:c[e].icon},T=function(t,o){void 0===e.checked&&F(t.target.checked),y&&y(t,o)};return(0,i.jsx)(n.FormControlLabel,{className:(N=k.radio+" paraui-radio",w&&(N+=" "+w),a&&(N+=" radio-"+a),x&&(N+=" radio-disabled"),O&&(N+=" radio-checked"),N),control:(0,i.jsx)(n.Radio,d({size:"small",color:o,disabled:x,icon:z("icon"),checkedIcon:z("checkedIcon"),onChange:T,checked:O},j),void 0),label:u,labelPlacement:v},void 0)}},2162:function(e,t,o){var i=o(9297),r=o(7712),n=o(1731),l=o(4286),a=o(8604),s=o(853),c=function(){return c=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},c.apply(this,arguments)},d=(0,s.Z)(),p=(0,a.makeStyles)((function(){return(0,a.createStyles)({"radio-group":{"& > label":{fontSize:"12px",color:d.textColor.secondary,"& > .required-char":{marginLeft:"3px",color:d.thmemColor.primary}},"& > div":{margin:"5px 0"},"& > p":{fontSize:"12px",lineHeight:"12px",margin:"0",color:d.stateColor.error},"&.radio-group-disabled":{},"&.radio-group-small":{},"&.radio-group-medium":{},"&.radio-group-large":{}}})}));t.default=function(e){var t,o=e.className,a=void 0===o?"":o,s=e.label,d=void 0===s?"":s,u=e.size,h=void 0===u?"small":u,f=e.row,v=void 0===f||f,m=e.disabled,x=void 0!==m&&m,g=e.required,b=void 0!==g&&g,y=e.error,C=void 0!==y&&y,w=e.helperText,j=void 0===w?"":w,k=e.id,S=void 0===k?"name":k,O=e.value,F=e.list,N=e.onChange,z=p(e),T=function(e){return function(){var t=e[S];N&&N(t)}};return(0,r.jsxs)(n.FormControl,c({className:(t=z["radio-group"]+" paraui-radio-group",a&&(t+=" "+a),h&&(t+=" radio-group-"+h),C&&(t+=" radio-group-error"),x&&(t+=" radio-group-disabled"),t)},{children:[(0,r.jsxs)(n.FormLabel,{children:[d,b&&(0,r.jsx)("span",c({className:"required-char"},{children:"(必填)"}),void 0)]},void 0),(0,r.jsx)(n.FormGroup,c({row:v},{children:F.map((function(e,t){return(0,i.createElement)(l.default,c({},e,{checked:O===e[S],size:h,disabled:Boolean(x||e.disabled),key:t,onChange:T(e)}))}))}),void 0),j&&(0,r.jsx)(n.FormHelperText,{children:j},void 0)]}),void 0)}},3006:function(e,t,o){var i=o(7712),r=o(9297),n=o(1731),l=o(6028),a=o.n(l),s=o(4115),c=o.n(s),d=o(6110),p=o.n(d),u=o(19),h=o.n(u),f=o(115),v=o(8604),m=o(853),x=o(3475),g=function(){return g=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},g.apply(this,arguments)},b=function(e,t,o){if(o||2===arguments.length)for(var i,r=0,n=t.length;r<n;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},y=(0,m.Z)(),C=(0,v.makeStyles)((function(){return(0,v.createStyles)({select:{"& *":{boxSizing:"border-box"},fontFamily:y.fontFamily.zh,display:"inline-block",fontSize:y.standardFont.standardFont1.fontSize,width:"100%",paddingBottom:"20px","& > .select-label":{color:y.textColor.secondary,marginBottom:"9px",display:"inline-block"},"& > .select-content":{lineHeight:"0",border:"1px solid",borderColor:y.textColor.thirdary,borderRadius:y.borderRadius,paddingRight:"30px",position:"relative",cursor:"pointer","&:hover":{borderColor:y.thmemColor.primary,"& > .select-svg":{"& > svg":{color:y.thmemColor.primary}}},"& > .select-label-placeholder":{width:"100%",height:"100%",padding:"0 10px",boxSizing:"border-box",color:y.textColor.thirdary,display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",position:"absolute",left:"0",top:"0"},"& > .select-svg":{position:"absolute",right:"8px",top:"0","& > svg":{fontSize:"16px",transition:"all .3s",color:y.textColor.secondary}},"& > .radio-select-content":{paddingLeft:"10px",color:y.textColor.primary,fontSize:"12px",lineHeight:"16px"},"& > .radio-search-outside":{position:"absolute",top:"0",left:"0",width:"100%",height:"100%",padding:"0 30px 0 10px",fontSize:"12px",cursor:"pointer","& > div":{height:"100%",cursor:"pointer","& > input":{height:"100%",padding:"0",color:y.textColor.primary,fontSize:"12px",cursor:"pointer"},"& fieldset":{display:"none"}}},"& > .check-select-content":{paddingLeft:"10px",height:"100%",overflow:"hidden","& > .check-select-content-item":{display:"inline-block",backgroundColor:y.bgBorderColor.bg2,borderRadius:y.borderRadius,padding:"0 10px",color:y.textColor.primary,fontSize:"12px",marginRight:"10px",verticalAlign:"top",maxWidth:"100%",whiteSpace:"nowrap","&.check-select-content-item-more":{color:y.thmemColor.primary,cursor:"pointer","& > span":{maxWidth:"none"}},"& > span":{display:"inline-block",hieght:"100%",verticalAlign:"top",maxWidth:"calc(100% - 20px)",overflow:"hidden",textOverflow:"ellipsis"},"& > svg":{cursor:"pointer",marginLeft:"8px",color:y.textColor.secondary,fontSize:"16px",position:"relative",top:"2px","&:hover":{color:y.thmemColor.primary}}},"& > .check-search-outside":{width:"10px",maxWidth:"100% !important",display:"none","& > div":{width:"100%","& > input":{width:"100%",padding:"0",color:y.textColor.primary,fontSize:"12px",cursor:"pointer"},"& fieldset":{display:"none"}}}}},"& > .select-error-text":{margin:0,paddingLeft:"10px",height:"20px",lineHeight:"20px"},"&.select-disabled":{"& > .select-content":{backgroundColor:y.bgBorderColor.bg2,cursor:"not-allowed","&:hover":{borderColor:y.textColor.thirdary,"& > .select-svg":{"& > svg":{color:y.textColor.secondary}}},"& > .check-select-content":{"& > .check-select-content-item":{backgroundColor:y.bgBorderColor.bg3,"& > span":{maxWidth:"none"}}}}},"&.select-error":{"& > .select-content":{borderColor:y.stateColor.error+"!important"},"& > .select-error-text":{color:y.stateColor.error+"!important"}},"&.select-multiple":{},"&.select-open":{"& > .select-content":{borderColor:y.thmemColor.primary,"& > .select-svg":{"& > svg":{transform:"rotate(180deg)",color:y.thmemColor.primary}},"& > .check-select-content":{"& > .check-search-outside":{display:"inline-block"}}}},"&.select-small":{"& > .select-content":{height:"28px","& > .select-label-placeholder":{lineHeight:"26px"},"& > .select-svg":{top:"5px"},"& > .radio-select-content":{paddingTop:"5px",paddingBottom:"5px"},"& > .radio-search-outside":{"& > div":{paddingTop:"5px",paddingBottom:"5px"}},"& > .check-select-content":{paddingBottom:"3px","& > .check-select-content-item":{marginTop:"3px",height:"20px",lineHeight:"20px"},"& > .check-search-outside":{marginTop:"3px","& input":{height:"20px"}}}}},"&.select-medium":{"& > .select-content":{height:"34px","& > .select-label-placeholder":{lineHeight:"32px"},"& > .select-svg":{top:"8px"},"& > .radio-select-content":{paddingTop:"8px",paddingBottom:"8px"},"& > .radio-search-outside":{"& > div":{paddingTop:"8px",paddingBottom:"8px"}},"& > .check-select-content":{paddingBottom:"4px","& > .check-select-content-item":{marginTop:"4px",height:"24px",lineHeight:"24px"},"& > .check-search-outside":{marginTop:"4px","& input":{height:"24px"}}}}},"&.select-large":{"& > .select-content":{height:"40px","& > .select-label-placeholder":{lineHeight:"38px"},"& > .select-svg":{top:"11px"},"& > .radio-select-content":{paddingTop:"11px",paddingBottom:"11px"},"& > .radio-search-outside":{"& > div":{paddingTop:"11px",paddingBottom:"11px"}},"& > .check-select-content":{paddingBottom:"7px","& > .check-select-content-item":{marginTop:"7px",height:"24px",lineHeight:"24px"},"& > .check-search-outside":{marginTop:"7px","& input":{height:"24px"}}}}},"&.select-over-line":{"&.select-small":{"& > .select-content":{height:"inherit",minHeight:"28px","& > .radio-select-content":{}}},"&.select-medium":{"& > .select-content":{height:"inherit",minHeight:"34px","& > .radio-select-content":{}}},"&.select-large":{"& > .select-content":{height:"inherit",minHeight:"40px","& > .radio-select-content":{}}}}},"select-popover":{"& *":{boxSizing:"border-box"},"& > div":{maxWidth:"none",padding:"0",backgroundColor:y.textColor.white,boxShadow:y.boxShadow,borderRadius:y.borderRadius,"& > span":{color:y.textColor.white},"& .select-popover-content":{maxHeight:"300px",overflow:"auto","& > .select-popover-search":{height:"30px",borderBottom:"1px solid "+y.bgBorderColor.bg3,padding:"0 10px",display:"flex","& > div":{width:"100%","& input":{padding:"0",height:"28px",fontSize:"12px",color:y.textColor.primary,"&::placeholder":{fontSize:"12px",color:y.textColor.thirdary,opacity:1}},"& fieldset":{display:"none"}},"& > svg":{color:y.thmemColor.primary,fontSize:"16px",marginTop:"7px",cursor:"pointer"}},"& > .select-popover-list":{"& .select-popover-list-item":{display:"flex",padding:"7px 10px",cursor:"pointer",lineHeight:"16px","& > .select-popover-list-item-label":{width:"calc(100% - 25px)",color:y.textColor.secondary,fontSize:"12px"},"& > .select-popover-list-item-svg":{lineHeight:"0",display:"none","& > svg":{fontSize:"16px",color:y.thmemColor.primary}},"&.select-popover-list-item-select":{"& > .select-popover-list-item-label":{color:y.thmemColor.primary},"& > .select-popover-list-item-svg":{display:"inline-block"}},"&.select-popover-list-item-hover":{backgroundColor:y.bgBorderColor.bg2,"& > .select-popover-list-item-label":{color:y.thmemColor.primary}},"&.select-popover-list-item-keydown":{backgroundColor:y.bgBorderColor.bg2,"& > .select-popover-list-item-label":{color:y.thmemColor.primary}}},"& > .select-popover-list-group":{"& .select-popover-list-group-label":{display:"inline-block",width:"100%",padding:"7px 10px",color:y.textColor.thirdary,fontSize:"12px"},"& .select-popover-list-item":{padding:"7px 10px 7px 20px"}},"& > .select-nodata":{textAlign:"center",fontSize:"12px",color:y.textColor.primary,padding:"10px"}}}}},"select-more-popover":{"& *":{boxSizing:"border-box"},"& > div:nth-of-type(3),& > div:nth-of-type(2)":{marginLeft:"10px"},"& .select-more":{width:"200px",maxHeight:"300px",overflow:"auto","& > .select-more-title":{height:"30px",padding:"0 10px",color:y.textColor.secondary,borderBottom:"1px solid "+y.bgBorderColor.bg2,lineHeight:"30px",fontSize:"12px",display:"flex",justifyContent:"space-between"},"& > .select-more-content":{"& > .select-more-content-item":{padding:"7px 7px 7px 10px",display:"flex",justifyContent:"space-around","& > span":{width:"calc(100% - 25px)",display:"inline-block",fontSize:"12px"},"& > svg":{color:y.textColor.secondary,fontSize:"16px",position:"relative",top:"1px",cursor:"pointer","&:hover":{color:y.thmemColor.primary}}}}}}})}));t.default=function(e){var t=e.className,o=e.size,l=void 0===o?"small":o,s=e.labelMode,d=void 0===s?"outside":s,u=e.placeholder,v=void 0===u?"":u,m=e.label,y=void 0===m?"":m,w=e.disabled,j=void 0!==w&&w,k=e.multiple,S=void 0!==k&&k,O=e.required,F=void 0!==O&&O,N=e.showLabelSign,z=void 0===N||N,T=e.labelSign,q=e.error,E=void 0!==q&&q,B=e.helperText,L=void 0===B?"":B,P=e.list,M=e.showName,A=void 0===M?"label":M,D=e.showValue,H=void 0===D?"value":D,R=e.childrenName,I=void 0===R?"children":R,W=e.value,Z=e.onChange,_=e.overLine,U=void 0!==_&&_,V=e.search,G=void 0!==V&&V,K=e.searchModel,$=void 0===K?"inside":K,J=e.selectPopoverClassName,Y=e.morePopoverClassName,X=e.onEnter,Q=C(e),ee=(0,r.useRef)(null),te=(0,r.useState)("select-"+(0,x.UUID)())[0],oe=(0,r.useState)("select-popover-"+(0,x.UUID)())[0],ie=(0,r.useState)(!1),re=ie[0],ne=ie[1],le=(0,r.useState)(!1),ae=le[0],se=le[1],ce=(0,r.useState)([]),de=ce[0],pe=ce[1],ue=(0,r.useState)([]),he=ue[0],fe=ue[1],ve=(0,r.useState)({}),me=ve[0],xe=ve[1],ge=(0,r.useState)(null),be=ge[0],ye=ge[1],Ce=(0,r.useState)({})[0],we=(0,r.useState)(!1),je=we[0],ke=we[1],Se=(0,r.useState)(""),Oe=Se[0],Fe=Se[1],Ne=(0,r.useState)(!1),ze=Ne[0],Te=Ne[1],qe=(0,r.useRef)(null);(0,r.useEffect)((function(){void 0!==W&&pe(S?(0,x.DeepClone)(W||[]):""===W?[]:[W])}),[W,S]),(0,r.useEffect)((function(){if(G&&"outside"===$)return Te(!!S);Te(U)}),[U,G,$,S]),(0,r.useEffect)((function(){for(var e={},t=0,o=P.length;t<o;t++){var i=P[t];if(i[I]&&i[I].length>0)for(var r=i[I],n=0,l=r.length;n<l;n++){var a=r[n];e[a[H]]=a}else e[i[H]]=i}xe(e)}),[P]),(0,r.useEffect)((function(){S&&(ze||ye(de.length))}),[ze,S,de]),(0,r.useEffect)((function(){return ze?ye(de.length):(setTimeout((function(){Ae(de.length)})),window.addEventListener("resize",De)),function(){window.removeEventListener("resize",De)}}),[de,ze]),(0,r.useEffect)((function(){de&&de.length>0?se(!0):(se(!1),G&&"outside"===$&&se(""!==Oe))}),[G,Oe,$,de]),(0,r.useEffect)((function(){clearTimeout(Ce.searchTimer),G&&""!==Oe.trim()?Ce.searchTimer=setTimeout((function(){for(var e=[],t=(0,x.DeepClone)(P),o=0,i=t.length;o<i;o++){var r=t[o];if(r[I]&&r[I].length>0){for(var n=r[I],l=[],a=0,s=n.length;a<s;a++){var c=n[a];Me(c)&&l.push(c)}l.length>0&&(r[I]=l,e.push(r))}else{Me(r)&&e.push(r)}}fe(e)}),100):fe((0,x.DeepClone)(P))}),[G,Oe,P]),(0,r.useEffect)((function(){return re?setTimeout((function(){Be(),window.addEventListener("click",Pe),window.addEventListener("keydown",$e)})):(Fe(""),window.removeEventListener("click",Pe),window.removeEventListener("keydown",$e)),function(){window.removeEventListener("click",Pe),window.removeEventListener("keydown",$e)}}),[re]),(0,r.useEffect)((function(){Oe&&ne(!0)}),[Oe]),(0,r.useEffect)((function(){S&&"outside"===$&&!j&&Ve(Oe)}),[Oe,S,j,$]);var Ee,Be=function(){var e=qe&&qe.current,t=e&&e.querySelector("input");t&&t.focus()},Le=function(e,t){for(var o=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector;e&&!o.call(e,t);)e=e.parentElement;return e},Pe=function(e){Le(e.target,"."+oe)||ne(!1)},Me=function(e){var t=!1;return-1!==e[A].indexOf(Oe)&&(t=!0),t},Ae=function(e){if(null!==e&&0!==e){void 0===e&&(e=de.length);var t=document.querySelector("."+te+" > .select-content > .check-select-content");if(t)if(t.scrollHeight>t.clientHeight){var o=Number(e)-1;ye(o),Ae(o)}else de.length<=e&&We()}},De=function(){clearTimeout(Ce.timer),Ce.timer=setTimeout((function(){ye(de.length),Ae()}),100)},He=function(){j||ne(!0)},Re=function(){ne(!1)},Ie=function(e){ke(!0),ne(!1),e.stopPropagation()},We=function(){ke(!1)},Ze=function(e,t){return function(o){var i=e[H];if(S){var r=de.indexOf(i);-1!==r?de.splice(r,1):de.push(i),Z&&Z(b([],de,!0),o),t&&X&&X(b([],de,!0)),Be()}else Z&&Z(i,o),t&&X&&X(i),Re(),Fe("")}},_e=function(e,t){return function(o){var i;e||((i={})[H]=t,e=i),Ze(e)(o),o.stopPropagation()}},Ue=function(e){Fe(e.target.value)},Ve=function(e){var t=qe&&qe.current,o=t&&t.querySelector("input");if(!o)return null;var i=window.getComputedStyle(o),r=i.fontFamily,n=function(e,t,o){var i=document.createElement("span");i.id="referenceSpan";var r={};r.width=i.offsetWidth,r.height=i.offsetHeight,i.style.visibility="hidden",i.style.fontSize=e,i.style.fontFamily=t,i.style.display="inline-block";var n=document.getElementById("referenceSpan");return n&&document.body.removeChild(n),document.body.appendChild(i),void 0!==i.textContent?i.textContent=o:i.innerText=o,r.width=parseFloat(window.getComputedStyle(i).width)-r.width,r.height=parseFloat(window.getComputedStyle(i).height)-r.height,document.body.removeChild(i),r}(i.fontSize,r,e),l=n.width;l<10&&(l=10),t.style.width=l+"px"},Ge=function(e){var t=e.selectDom,o=e.keyCode,i=e.currentKeydownDom,r=null,n="nextSibling",l=".select-popover-list > div",a=".select-popover-list-item";if(38===o&&(n="previousSibling",l=".select-popover-list > div:last-child",a=".select-popover-list-item:last-child"),i)if(r=i[n])-1!==r.className.indexOf("select-popover-list-group-label")&&((r=(r=i.parentNode)[n])||(r=t.querySelector(l)));else{var s=i.parentNode;s&&s.className&&-1!==s.className.indexOf("select-popover-list-group")&&(r=(r=i.parentNode)[n])||(r=t.querySelector(l))}else r=t.querySelector(l);if(r)if(-1!==r.className.indexOf("select-popover-list-group")){var c=r.querySelector(a);c&&(c.classList.add("select-popover-list-item-keydown"),Ke(c,t))}else r.classList.add("select-popover-list-item-keydown"),Ke(r,t)},Ke=function(e,t){clearTimeout(Ce.scrollTimer);var o=t.clientHeight,i=e.offsetTop+e.clientHeight-o;Ce.scroll=!0,t.scrollTop=i>0?i:0,Ce.scrollTimer=setTimeout((function(){Ce.scroll=!1}),100)},$e=function(e){var t=document.querySelector("."+oe);if(t){var o=t.querySelector(".select-popover-list-item-select"),i=t.querySelector(".select-popover-list-item-hover"),r=t.querySelector(".select-popover-list-item-keydown"),n=o;if(i&&(n=i),13===e.keyCode){var l=r||i;if(l){var a=l.dataset.val;Ze(me[a],!0)({target:r})}else X&&X(W)}r&&(n=r,r.classList.remove("select-popover-list-item-keydown")),40===e.keyCode&&Ge({selectDom:t,keyCode:e.keyCode,currentKeydownDom:n}),38===e.keyCode&&Ge({selectDom:t,keyCode:e.keyCode,currentKeydownDom:n})}},Je=function(e){if(!Ce.scroll){var t=Le(e.target,".select-popover-list-item");if(t){t.classList.add("select-popover-list-item-hover");var o=document.querySelector("."+oe).querySelector(".select-popover-list-item-keydown");o&&o.classList.remove("select-popover-list-item-keydown")}}},Ye=function(e){var t=Le(e.target,".select-popover-list-item");t&&t.classList.remove("select-popover-list-item-hover")},Xe=(0,r.useMemo)((function(){return(0,i.jsx)(i.Fragment,{children:"outside"===d&&(0,i.jsxs)("label",g({className:"select-label"},{children:[y,z&&(0,i.jsx)("span",g({className:"identification-label"},{children:T||(0,i.jsx)(i.Fragment,{children:F?"(必填)":""},void 0)}),void 0)]}),void 0)},void 0)}),[d,y,z,T,F]),Qe=(0,r.useMemo)((function(){return(0,i.jsx)(i.Fragment,{children:!ae&&(0,i.jsx)("span",g({className:"select-label-placeholder"},{children:"outside"===d?v:(0,i.jsxs)(i.Fragment,{children:[y||v,z&&(0,i.jsx)("span",g({className:"identification-label"},{children:T||(0,i.jsx)(i.Fragment,{children:F?"(必填)":""},void 0)}),void 0)]},void 0)}),void 0)},void 0)}),[ae,d,v,y,z,T,F]),et=(0,r.useMemo)((function(){return(0,i.jsx)(i.Fragment,{children:!S&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",g({className:"radio-select-content"},{children:function(){if(""!==Oe)return null;var e=me[de[0]]&&me[de[0]][A]||de[0];return ze?e:(0,i.jsx)(f.default,{children:e},void 0)}()}),void 0),G&&"outside"===$&&!j&&(0,i.jsx)(n.TextField,{variant:"outlined",className:"radio-search-outside",value:Oe,onChange:Ue,ref:qe},void 0)]},void 0)},void 0)}),[S,ae,ze,me,de,A,G,$,Oe,j]),tt=(0,r.useMemo)((function(){var e=function(e){return me[de[e]]&&me[de[e]][A]||de[e]};return(0,i.jsx)(i.Fragment,{children:S&&(0,i.jsxs)("div",g({className:"check-select-content"},{children:[de&&de.map((function(t,o){return null!==be&&be<=o?null:(0,i.jsxs)("div",g({className:"check-select-content-item"},{children:[(0,i.jsx)("span",{children:e(o)},void 0),!j&&(0,i.jsx)(h(),{onClick:_e(me[de[o]],de[o])},void 0)]}),o)})),function(){if(null!==be&&de.length>be)return(0,i.jsx)("div",g({className:"check-select-content-item check-select-content-item-more",onClick:Ie},{children:(0,i.jsxs)("span",{children:["+",de.length-be]},void 0)}),void 0)}(),G&&"outside"===$&&!j&&(0,i.jsx)(n.TextField,{variant:"outlined",className:"check-search-outside",value:Oe,onChange:Ue,ref:qe},void 0)]}),void 0)},void 0)}),[S,ae,de,be,me,j,Z,Oe,G,$]),ot=(0,r.useMemo)((function(){return(0,i.jsxs)("div",g({className:"select-content",onClick:He,ref:ee},{children:[Qe,(0,i.jsx)("span",g({className:"select-svg"},{children:(0,i.jsx)(a(),{},void 0)}),void 0),et,tt]}),void 0)}),[ee,ae,d,v,y,z,T,F,ze,me,de,A,S,be,j,Z,Oe,$]),it=(0,r.useMemo)((function(){return(0,i.jsx)("div",g({className:"select-popover-list"},{children:he&&he.length>0?(0,i.jsx)(i.Fragment,{children:he.map((function(e,t){if(e[I]&&e[I].length>0){var o=e[I];return(0,i.jsxs)("div",g({className:"select-popover-list-group"},{children:[(0,i.jsx)("span",g({className:"select-popover-list-group-label"},{children:e[A]}),void 0),o.map((function(e,t){var o=e[H],r="select-popover-list-item";return-1!==de.indexOf(o)&&(r+=" select-popover-list-item-select"),(0,i.jsxs)("div",g({onClick:Ze(e),className:r,onMouseEnter:Je,onMouseLeave:Ye,"data-val":o},{children:[(0,i.jsx)("span",g({className:"select-popover-list-item-label"},{children:(0,i.jsx)(f.default,{children:e[A]},void 0)}),void 0),(0,i.jsx)("span",g({className:"select-popover-list-item-svg"},{children:(0,i.jsx)(p(),{},void 0)}),void 0)]}),t)}))]}),t)}var r=e[H],n="select-popover-list-item";return-1!==de.indexOf(r)&&(n+=" select-popover-list-item-select"),(0,i.jsxs)("div",g({onClick:Ze(e),className:n,onMouseEnter:Je,onMouseLeave:Ye,"data-val":r},{children:[(0,i.jsx)("span",g({className:"select-popover-list-item-label"},{children:(0,i.jsx)(f.default,{children:e[A]},void 0)}),void 0),(0,i.jsx)("span",g({className:"select-popover-list-item-svg"},{children:(0,i.jsx)(p(),{},void 0)}),void 0)]}),t)}))},void 0):(0,i.jsx)("div",g({className:"select-nodata"},{children:"暂无选项"}),void 0)}),void 0)}),[he,A,H,de,Z]),rt=(0,r.useMemo)((function(){var e="select-popover-content "+oe;return(0,i.jsxs)("div",g({style:{width:(ee&&ee.current?ee.current.offsetWidth:0)+"px"},className:e},{children:[G&&"inside"===$&&(0,i.jsxs)("div",g({className:"select-popover-search"},{children:[(0,i.jsx)(n.TextField,{variant:"outlined",placeholder:"请输入搜索名",value:Oe,onChange:Ue,ref:qe},void 0),(0,i.jsx)(c(),{},void 0)]}),void 0),it]}),void 0)}),[re,ee,he,I,H,A,de,Oe,G,oe,$]),nt=(0,r.useMemo)((function(){var e,t=function(e){return me[de[e]]&&me[de[e]][A]||de[e]};return(0,i.jsx)(n.Popover,g({open:je,anchorEl:ee&&ee.current,onClose:We,anchorOrigin:{vertical:"top",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"left"},className:(e=Q["select-more-popover"],Y&&(e+=" "+Y),e)},{children:(0,i.jsxs)("div",g({className:"select-more"},{children:[(0,i.jsxs)("div",g({className:"select-more-title"},{children:[(0,i.jsx)("span",{children:"已选中"},void 0),(0,i.jsx)("span",{children:de.length-Number(be)},void 0)]}),void 0),(0,i.jsx)("div",g({className:"select-more-content"},{children:de&&de.map((function(e,o){return null!==be&&be>o?null:(0,i.jsxs)("div",g({className:"select-more-content-item"},{children:[(0,i.jsx)("span",{children:(0,i.jsx)(f.default,{children:t(o)},void 0)},void 0),!j&&(0,i.jsx)(h(),{onClick:_e(me[de[o]],de[o])},void 0)]}),o)}))}),void 0)]}),void 0)}),void 0)}),[je,de,be,me,j,A,Y]);return(0,i.jsxs)("div",g({className:(Ee=Q.select,Ee+=" select",S&&!ze&&(Ee+=" "+te),t&&(Ee+=" "+t),l&&(Ee+=" select-"+l),E&&(Ee+=" select-error"),j&&(Ee+=" select-disabled"),re&&(Ee+=" select-open"),S&&(Ee+=" select-multiple"),ze&&(Ee+=" select-over-line"),Ee)},{children:[Xe,(0,i.jsx)(n.Tooltip,g({open:re,title:rt,onClose:Re,interactive:!0,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,arrow:!0,classes:{popper:function(){var e=Q["select-popover"];return J&&(e+=" "+J),e}()},placement:"bottom-start"},{children:ot}),void 0),L&&(0,i.jsx)("p",g({className:"select-error-text"},{children:L}),void 0),nt]}),void 0)}},5939:function(e,t,o){var i=o(7712),r=o(1731),n=o(8604),l=o(853),a=o(4927),s=function(){return s=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},s.apply(this,arguments)},c=function(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(o[i[r]]=e[i[r]])}return o},d=(0,l.Z)(),p=(0,n.withStyles)((function(e){return(0,n.createStyles)({root:{width:"auto",height:"auto",padding:0,overflow:"visible"},switchBase:{padding:0,top:-2,color:d.bgBorderColor.bg4,"&$checked":{color:d.thmemColor.primary},"&$checked + $track":{backgroundColor:d.thmemColor.thirdary,opacity:1}},checked:{},thumb:{width:18,height:18},track:{width:32,height:14,borderRadius:7,backgroundColor:d.bgBorderColor.bg1,opacity:1},input:{left:"auto",width:"auto"}})}),{name:"SwitchCompact"})(r.Switch),u=(0,n.withStyles)((function(e){return(0,n.createStyles)({root:{width:"auto",height:"auto",padding:0},switchBase:{padding:2,color:d.textColor.white,"&$checked":{transform:"translateX(14px)",color:d.textColor.white,"& + $track":{backgroundColor:d.thmemColor.primary,opacity:1}}},thumb:{width:14,height:14},track:{width:32,height:18,borderRadius:9,backgroundColor:d.bgBorderColor.bg4,opacity:1},input:{left:"auto",width:"auto"},checked:{}})}),{name:"SwitchNormal"})(r.Switch),h=(0,n.makeStyles)((function(){return(0,n.createStyles)({smallThumb:function(e){return"compact"===e.type?{width:16,height:16,borderRadius:8}:{width:12,height:12,borderRadius:6}},smallTrack:function(e){return"compact"===e.type?{width:30,height:12,borderRadius:6}:{width:30,height:16,borderRadius:8}},largeThumb:function(e){return"compact"===e.type?{width:20,height:20,borderRadius:10}:{width:16,height:16,borderRadius:8}},largeTrack:function(e){return"compact"===e.type?{width:34,height:16,borderRadius:8}:{width:34,height:20,borderRadius:10}}})}));t.default=function(e){var t=e.type,o=void 0===t?"normal":t,r=e.size,n=void 0===r?"medium":r,l=e.className,d=c(e,["type","size","className"]),f=h({type:o});return(0,i.jsx)(i.Fragment,{children:function(){if("compact"===o){var e="medium"===n?{}:{thumb:f[n+"Thumb"],track:f[n+"Track"]};return(0,i.jsx)(p,s({},d,{classes:e,className:(0,a.Z)("paraui-switch",l)}),void 0)}var t="medium"===n?{}:{thumb:f[n+"Thumb"],track:f[n+"Track"]};return(0,i.jsx)(u,s({},d,{classes:t,className:(0,a.Z)("paraui-switch",l)}),void 0)}()},void 0)}},4661:function(e,t,o){var i=o(7712),r=o(9297),n=o(1731),l=o(115),a=o(8528),s=o.n(a),c=o(6570),d=o.n(c),p=o(1102),u=o.n(p),h=o(8604),f=o(853),v=o(3475),m=function(){return m=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},m.apply(this,arguments)},x=function(e,t){var o={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(o[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(o[i[r]]=e[i[r]])}return o},g=(0,f.Z)(),b=(0,h.makeStyles)((function(){return(0,h.createStyles)({"@keyframes rotate":{"0%":{transformOrigin:"50% 50%"},"100%":{transform:"rotate(360deg)"}},"text-field":{fontFamily:g.fontFamily.zh,display:"inline-block",fontSize:g.standardFont.standardFont1.fontSize,width:"100%",paddingBottom:"20px","& fieldset":{border:0},"& .text-field-error-text":{margin:0,paddingLeft:"10px",height:"20px",lineHeight:"20px"},"& .text-field-label":{color:g.textColor.secondary,marginBottom:"9px",display:"inline-block"},"& .text-field-content":{border:"1px solid",borderColor:g.textColor.thirdary,borderRadius:g.borderRadius,position:"relative",display:"table",width:"100%",boxSizing:"border-box","&:hover":{borderColor:g.thmemColor.primary},"& > div":{display:"table-cell",height:"100%",verticalAlign:"top"},"& .text-field-content-before":{color:g.textColor.primary,padding:"0 10px",borderRight:"1px solid "+g.textColor.thirdary,backgroundColor:g.bgBorderColor.bg2,borderBottomLeftRadius:g.borderRadius,borderTopLeftRadius:g.borderRadius,whiteSpace:"nowrap","& svg":{fontSize:"20px",verticalAlign:"top",position:"relative"}},"& .text-field-content-within":{position:"relative",width:"100%","& > *":{display:"table-cell",verticalAlign:"top"},"& svg":{fontSize:"20px",color:g.textColor.secondary,cursor:"pointer"},"& .right-icon":{zIndex:"1",position:"relative",whiteSpace:"nowrap","& > svg":{marginRight:"10px"}},"& .length-limit":{zIndex:"1",position:"relative",paddingRight:"10px",color:g.textColor.secondary},"& .text-field-content-within-input":{width:"100vw","& > div":{width:"100%"},"& input":{height:"100%"},"& input,textarea":{fontSize:g.standardFont.standardFont1.fontSize,color:g.textColor.primary,"&:-ms-clear":{display:"none"},"&:-ms-reveal":{display:"none"}},"& .text-field-label-placeholder":{width:"100%",position:"absolute",left:"0",height:"100%",padding:"0 10px",boxSizing:"border-box",color:g.textColor.thirdary,cursor:"text",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}},"& .text-field-content-after":{color:g.textColor.primary,padding:"0 10px",borderLeft:"1px solid",borderColor:g.textColor.thirdary,backgroundColor:g.bgBorderColor.bg2,borderBottomRightRadius:g.borderRadius,borderTopRightRadius:g.borderRadius,whiteSpace:"nowrap","& svg":{fontSize:"20px",verticalAlign:"top",position:"relative"}}},"& .identification-label":{marginLeft:"3px"},"&.text-field-multiline":{"& .text-field-content":{"& .text-field-content-within":{"& > *":{display:"inline-block"},"& .length-limit":{width:"100%",boxSizing:"border-box",textAlign:"right",paddingBottom:"5px"},"& .text-field-content-within-input":{width:"100%","& > div:first-child":{width:"100%","& > div:first-child":{padding:"10px"}},"& .text-field-label-placeholder":{paddingTop:"10px"}}}}},"&.text-field-disabled":{"& .text-field-content":{backgroundColor:g.bgBorderColor.bg3,"&:hover":{borderColor:g.textColor.thirdary},"& .text-field-content-within":{"& .text-field-content-within-input":{"& .text-field-label-placeholder":{cursor:"not-allowed"},"& input":{cursor:"not-allowed",color:g.textColor.thirdary}}}}},"&.text-field-error":{"& .text-field-error-text":{color:g.stateColor.error},"& .text-field-content":{borderColor:g.stateColor.error,"&:hover":{borderColor:g.stateColor.error},"& .text-field-content-before":{borderColor:g.stateColor.error},"& .text-field-content-after":{borderColor:g.stateColor.error}}},"&.text-field-focus":{"& .text-field-content":{borderColor:g.thmemColor.primary,"& .text-field-content-before":{borderColor:g.thmemColor.primary},"& .text-field-content-after":{borderColor:g.thmemColor.primary}}},"&.text-field-small":{"& .text-field-content":{height:"28px","& .text-field-content-before":{lineHeight:"26px","& svg":{top:"3px"}},"& .text-field-content-within":{"& .text-field-content-within-input":{"& > div":{height:"26px","& > div":{height:"100%"}}},"& input":{padding:"5px 10px"},"& .text-field-label-placeholder":{lineHeight:"26px"},"& .right-icon":{paddingTop:"3px"},"& .length-limit":{lineHeight:"26px"}},"& .text-field-content-after":{lineHeight:"26px","& svg":{top:"3px"}}}},"&.text-field-medium":{"& .text-field-content":{height:"34px","& .text-field-content-before":{lineHeight:"32px","& svg":{top:"6px"}},"& .text-field-content-within":{"& .text-field-content-within-input":{"& > div":{height:"32px","& > div":{height:"100%"}}},"& input":{padding:"8px 10px"},"& .text-field-label-placeholder":{lineHeight:"32px"},"& .right-icon":{paddingTop:"7px"},"& .length-limit":{lineHeight:"32px","& svg":{top:"6px"}}},"& .text-field-content-after":{lineHeight:"32px","& svg":{top:"6px"}}}},"&.text-field-large":{"& .text-field-content":{height:"40px","& .text-field-content-before":{lineHeight:"38px","& svg":{top:"9px"}},"& .text-field-content-within":{"& .text-field-content-within-input":{"& > div":{height:"38px","& > div":{height:"100%"}}},"& input":{padding:"11px 10px"},"& .text-field-label-placeholder":{lineHeight:"38px"},"& .right-icon":{paddingTop:"10px"},"& .length-limit":{lineHeight:"38px"}},"& .text-field-content-after":{lineHeight:"38px","& svg":{top:"9px"}}}}},"text-field-select":{"& > div":{maxWidth:"none",padding:"0",backgroundColor:g.textColor.white,boxShadow:g.boxShadow,borderRadius:g.borderRadius,"& > span":{color:g.textColor.white},"& .text-field-select-content":{maxHeight:"300px",overflow:"auto","& > .text-field-select-content-item":{display:"flex",padding:"7px 10px",cursor:"pointer",lineHeight:"16px",color:g.textColor.secondary,"&:hover":{backgroundColor:g.bgBorderColor.bg2,color:g.thmemColor.primary},"&.text-field-select-content-item-keydown":{backgroundColor:g.bgBorderColor.bg2,color:g.thmemColor.primary}},"&.text-field-select-content-loading":{height:"100px",position:"relative",overflow:"hidden","& > .loading-box":{position:"absolute",left:"0",top:"0",width:"100%",height:"100%",backgroundColor:"white",display:"flex",justifyContent:"center",alignItems:"center","& > svg":{transition:"all .3s ease-in-out",animation:"$rotate 1s infinite linear",fontSzie:"20px"}}}}}}})}));t.default=function(e){var t=e.className,o=e.size,a=void 0===o?"small":o,c=e.labelMode,p=void 0===c?"outside":c,h=e.placeholder,f=void 0===h?"":h,g=e.label,y=void 0===g?"":g,C=e.disabled,w=void 0!==C&&C,j=e.multiline,k=void 0!==j&&j,S=e.required,O=void 0!==S&&S,F=e.showLabelSign,N=void 0===F||F,z=e.labelSign,T=e.rows,q=void 0===T?2:T,E=e.error,B=void 0!==E&&E,L=e.helperText,P=void 0===L?"":L,M=e.addonBefore,A=void 0===M?"":M,D=e.addonAfter,H=void 0===D?"":D,R=e.value,I=e.controlled,W=void 0!==I&&I,Z=e.autoFocus,_=void 0!==Z&&Z,U=e.type,V=void 0===U?"text":U,G=e.onClickIcon,K=e.rightIcon,$=e.showRightIcon,J=void 0===$||$,Y=e.limitLength,X=e.fetchSuggestions,Q=e.selectPopoverClass,ee=e.renderSelectItem,te=e.showSelectName,oe=void 0===te?"value":te,ie=e.onBlur,re=e.onFocus,ne=e.onChange,le=e.onKeydown,ae=e.onKeyUp,se=e.onEnter,ce=e.onClickAddonBefore,de=e.onClickAddonAfter,pe=e.onSelect,ue=x(e,["className","size","labelMode","placeholder","label","disabled","multiline","required","showLabelSign","labelSign","rows","error","helperText","addonBefore","addonAfter","value","controlled","autoFocus","type","onClickIcon","rightIcon","showRightIcon","limitLength","fetchSuggestions","selectPopoverClass","renderSelectItem","showSelectName","onBlur","onFocus","onChange","onKeydown","onKeyUp","onEnter","onClickAddonBefore","onClickAddonAfter","onSelect"]),he=b(e),fe=(0,r.useState)("text-field-select-content-"+(0,v.UUID)())[0],ve=(0,r.useState)(!0),me=ve[0],xe=ve[1],ge=(0,r.useState)(),be=ge[0],ye=ge[1],Ce=(0,r.useState)(!1),we=Ce[0],je=Ce[1],ke=(0,r.useState)(0),Se=ke[0],Oe=ke[1],Fe=(0,r.useState)("text"),Ne=Fe[0],ze=Fe[1],Te=(0,r.useState)(!1),qe=Te[0],Ee=Te[1],Be=(0,r.useState)(!1),Le=Be[0],Pe=Be[1],Me=(0,r.useState)([]),Ae=Me[0],De=Me[1],He=((0,r.useState)({})[0],(0,r.useRef)(null)),Re=(0,r.useRef)(null),Ie=(0,r.useRef)(null);(0,r.useEffect)((function(){He&&He.current&&Oe(He.current.offsetWidth)}),[]),(0,r.useEffect)((function(){V!==Ne&&ze(V)}),[V]),(0,r.useEffect)((function(){ye(R)}),[R]),(0,r.useEffect)((function(){xe(""===be||void 0===be)}),[be]),(0,r.useEffect)((function(){X&&Ee(we)}),[we,X]),(0,r.useEffect)((function(){return qe?window.addEventListener("keydown",Ve):window.removeEventListener("keydown",Ve),function(){window.removeEventListener("keydown",Ve)}}),[qe]);var We,Ze=function(){w||(xe(!1),(Re&&Re.current&&Re.current.querySelector(k?"textarea":"input")).focus())},_e=function(e){var t=e.selectDom,o=e.keyCode,i=e.currentDom,r="nextSibling",n=".text-field-select-content-item";38===o&&(r="previousSibling",n=".text-field-select-content-item:last-child"),i?(i=i[r])||(i=t.querySelector(n)):i=t.querySelector(".text-field-select-content-item"),i&&(i.classList.add("text-field-select-content-item-keydown"),Ue(i,t))},Ue=function(e,t){var o=t.clientHeight,i=e.offsetTop+e.clientHeight-o;t.scrollTop=i>0?i:0},Ve=function(e){var t=document.querySelector("."+fe),o=null,i=t.querySelector(".text-field-select-content-item-keydown");if(13===e.keyCode&&i){var r=i.dataset.val;tt(JSON.parse(r))(e),(Re&&Re.current&&Re.current.querySelector(k?"textarea":"input")).blur()}i&&(o=i,i.classList.remove("text-field-select-content-item-keydown")),40===e.keyCode&&_e({selectDom:t,keyCode:e.keyCode,currentDom:o}),38===e.keyCode&&_e({selectDom:t,keyCode:e.keyCode,currentDom:o})},Ge=function(e){je(!1),""===e.target.value&&xe(!0),ie&&ie(e)},Ke=function(e){Pe(!0),X&&X(e,(function(e){De(e||[]),Pe(!1)}))},$e=function(e){je(!0),re&&re(e),Ke(e.target.value)},Je=function(e){var t=e.target.value;Y&&void 0!==t&&""!==t&&t.toString().length>Y||(W||ye(t),ne&&ne(e),Ke(e.target.value))},Ye=function(e){13===e.keyCode&&se&&se(e),le&&le(e)},Xe=function(e){ae&&ae(e)},Qe=function(e){"password"===V&&("text"===Ne&&ze("password"),"password"===Ne&&ze("text")),G&&G(e)},et=function(){Ee(!1)},tt=function(e){return function(t){pe&&pe(e)}},ot=(0,r.useMemo)((function(){return(0,i.jsx)(i.Fragment,{children:void 0!==Y&&(0,i.jsx)("span",m({className:"length-limit"},{children:(be?be.toString().length:0)+"/"+Y}),void 0)},void 0)}),[Y,be]),it=(0,r.useMemo)((function(){return(0,i.jsx)(i.Fragment,{children:J&&(0,i.jsx)("span",m({className:"right-icon",onClick:Qe},{children:K||("password"===V?"password"===Ne?(0,i.jsx)(s(),{},void 0):(0,i.jsx)(d(),{},void 0):null)}),void 0)},void 0)}),[J,K,V,Ne]),rt=(0,r.useMemo)((function(){return(0,i.jsxs)("div",m({className:"text-field-content-within",ref:Ie},{children:[(0,i.jsxs)("div",m({className:"text-field-content-within-input"},{children:[(0,i.jsx)(n.TextField,m({size:"small",variant:"outlined",autoFocus:_,ref:Re,type:Ne,value:be||"",disabled:w,multiline:k,rows:q,onBlur:Ge,onFocus:$e,onChange:Je,onKeyDown:Ye,onKeyUp:Xe},ue),void 0),me&&(0,i.jsx)("span",m({className:"text-field-label-placeholder",onClick:Ze},{children:"outside"===p?f:(0,i.jsxs)(i.Fragment,{children:[y||f,N&&(0,i.jsx)("span",m({className:"identification-label"},{children:z||(0,i.jsx)(i.Fragment,{children:O?"(必填)":""},void 0)}),void 0)]},void 0)}),void 0)]}),void 0),ot,it]}),void 0)}),[me,_,Ne,be,ot,it,p,f,y,w,k,q,ue,ne,X]),nt=(0,r.useMemo)((function(){var e;return(0,i.jsxs)("div",m({className:(e="text-field-select-content",Le&&(e+=" text-field-select-content-loading"),fe&&(e+=" "+fe),e),style:{width:(Ie&&Ie.current?Ie.current.offsetWidth:0)+"px"}},{children:[Ae&&Ae.map((function(e,t){return(0,i.jsx)("div",m({className:"text-field-select-content-item",onMouseDown:tt(e),"data-val":JSON.stringify(e)},{children:ee?ee(e):(0,i.jsx)(l.default,{children:e[oe]},void 0)}),t)})),Le&&(0,i.jsx)("div",m({className:"loading-box"},{children:(0,i.jsx)(u(),{},void 0)}),void 0)]}),void 0)}),[Ie,qe,Ae,ee,oe,pe,Le,fe]),lt=(0,r.useMemo)((function(){return(0,i.jsx)(n.Tooltip,m({open:qe,title:nt,onClose:et,interactive:!0,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,arrow:!0,classes:{popper:(e=he["text-field-select"],Q&&(e+=" "+Q),e)}},{children:rt}),void 0);var e}),[me,_,Ne,be,ot,it,p,f,y,w,k,q,ue,ne,X,pe,Ie,qe,Q]),at=(0,r.useMemo)((function(){var e=Boolean(N&&(z||O));if("outside"===p&&(y||e))return(0,i.jsxs)("label",m({className:"text-field-label"},{children:[y,N&&(0,i.jsx)("span",m({className:"identification-label"},{children:z||(0,i.jsx)(i.Fragment,{children:O?"(必填)":""},void 0)}),void 0)]}),void 0)}),[p,y,N,z,O]);return(0,i.jsxs)("div",m({className:(We=he["text-field"],We+=" text-field",a&&!k&&(We+=" text-field-"+a),t&&(We+=" "+t),B&&(We+=" text-field-error"),we&&(We+=" text-field-focus"),w&&(We+=" text-field-disabled"),k&&(We+=" text-field-multiline"),We)},{children:[at,(0,i.jsxs)("div",m({className:"text-field-content"},{children:[A&&(0,i.jsx)("div",m({className:"text-field-content-before",ref:He,onClick:function(e){ce&&ce(e)}},{children:A}),void 0),X?lt:rt,H&&(0,i.jsx)("div",m({className:"text-field-content-after",onClick:function(e){de&&de(e)}},{children:H}),void 0)]}),void 0),P&&(0,i.jsx)("p",m({className:"text-field-error-text",style:{marginLeft:Se+"px"}},{children:P}),void 0)]}),void 0)}},1731:function(e){e.exports=i},8604:function(e){e.exports=o},6110:function(e){e.exports=d},19:function(e){e.exports=p},6243:function(e){e.exports=u},6028:function(e){e.exports=s},9973:function(e){e.exports=h},1102:function(e){e.exports=l},6570:function(e){e.exports=n},8528:function(e){e.exports=r},4115:function(e){e.exports=c},6897:function(e){e.exports=t},3475:function(e){e.exports=a},9297:function(t){t.exports=e}},v={};function m(e){var t=v[e];if(void 0!==t)return t.exports;var o=v[e]={exports:{}};return f[e](o,o.exports,m),o.exports}m.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return m.d(t,{a:t}),t},m.d=function(e,t){for(var o in t)m.o(t,o)&&!m.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},m.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},m.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var x={};return function(){m.r(x),m.d(x,{default:function(){return H}});var e=m(7712),t=m(9297),o=m.n(t),i=m(6897),r=m.n(i),n=m(8604),l=m(1731),a=m(4661),s=m(2162),c=function(){return c=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},c.apply(this,arguments)},d=function(t){var i=t.defaultValue,r=t.change,n=o().useState(i||""),l=n[0],a=n[1];return(0,e.jsx)(s.default,c({value:l,onChange:function(e){a(e),r&&r(e)}},t),void 0)},p=m(3006),u=function(){return u=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},u.apply(this,arguments)},h=function(t){var i=t.defaultValue,r=void 0===i?"":i,n=t.change,l=t.value,a=o().useState(void 0!==l?l:r),s=a[0],c=a[1];return o().useEffect((function(){c(l)}),[l]),(0,e.jsx)(p.default,u({labelMode:"inside",onChange:function(e){c(e),n&&n(e)}},t,{value:s}),void 0)},f=m(1863),v=function(){return v=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},v.apply(this,arguments)},g=function(t){var i=t.defaultValue,r=t.change,n=o().useState(i||[]),l=n[0],a=n[1];return(0,e.jsx)(f.default,v({value:l,onChange:function(e){a(e),r&&r(e)}},t),void 0)},b=m(2963),y=m(5939),C=m(6243),w=m.n(C),j=m(9973),k=m.n(j),S=m(115),O=m(5794),F=m(853),N=function(){return N=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},N.apply(this,arguments)},z=(0,F.Z)(),T=(0,n.makeStyles)((function(e){return(0,n.createStyles)({"para-file-box":{padding:"6px","& .para-file-tips":{"&-disabled":{"& .file-tips-context,& .svg-icon-primary":{color:z.textColor.thirdary+" !important"}},minHeight:"20px",position:"relative",padding:"6px","& .file-tips-item":{position:"relative",height:"20px",lineHeight:"16px",paddingRight:"20px",'&>[data-name="LinkGroup"]':{verticalAlign:"middle",marginRight:"9px"},"& .file-tips-context":{display:"inline-block",verticalAlign:"middle",width:"calc(100% - 45px)",color:z.thmemColor.primary},'&>[data-name="Delete"]':{display:"none",verticalAlign:"middle",cursor:"pointer",position:"absolute",right:"3px",top:"2px","&:hover":{opacity:"0.8"}},"&:hover":{backgroundColor:"#f5f5f5",'&>[data-name="Delete"]':{display:"inline-block"}}}}}})})),q=function(t){var i=t.fileType,r=void 0===i?"":i,n=t.defaultValue,l=t.onChange,a=t.disabled,s=t.buttonLabel,c=t.inputProps,d=t.buttonProps,p=T(),u=o().useRef(null),h=function(e){var t=void 0!==e?e:u.current.files;m(t),l&&l(t),null===e&&(u.current.value=null)},f=o().useState(),v=f[0],m=f[1];return o().useEffect((function(){n&&m(n)}),[n]),(0,e.jsxs)("div",N({className:p["para-file-box"]},{children:[!a&&(0,e.jsx)(O.default,N({variant:"outlined"},d,{onClick:function(){var e;console.log("inputFileClick",u.current),null===(e=u.current)||void 0===e||e.click()}},{children:s||"选择文件"}),void 0),(0,e.jsx)("input",N({},c,{ref:u,type:"file",onInput:function(){return h()},hidden:!0,accept:"string"==typeof r?r:r.join(",")}),void 0),v&&v[0]&&(0,e.jsx)("div",N({className:"para-file-tips "+(a?"para-file-tips-disabled":"")},{children:(0,e.jsxs)("div",N({className:"file-tips-item"},{children:[(0,e.jsx)(k(),{},void 0),(0,e.jsx)("span",N({className:"file-tips-context"},{children:(0,e.jsx)(S.default,{children:"string"==typeof v?v:v[0].name},void 0)}),void 0),!a&&(0,e.jsx)(w(),{onClick:function(){return h(null)}},void 0)]}),void 0)}),void 0)]}),void 0)},E=function(){return E=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},E.apply(this,arguments)},B=function(t){var i=t.ItemType,r=t.error,n=t.placeholder,l=t.label,s=t.inputProps,c=t.name,p=t.rules,u=t.setValue,f=t.setError,v=t.backData,m=t.disabled,x=t.change,C=n||""+l,w=o().useState(!!r),j=w[0],k=w[1],S=function(e){if(u&&u(c,"value",e),x&&x(e),p){var o=(0,b.Z)(t,e)||"";O(o)}},O=o().useCallback((function(e){f&&f(e),k(!!e),u&&u(c,"message",e)}),[c,f,u]);o().useEffect((function(){var e=E(E({},t),{setErrorMsg:O});u&&u(c,"item",e)}),[c,t,O,u]);return function(){if(i&&"string"!=typeof i){var o=E(E({},t),{setErrorMsg:O});return i(o)}switch(i){case"file":return(0,e.jsx)(q,E({},t,{defaultValue:v[c],disabled:m,onChange:function(e){S(e)}}),void 0);case"switch":return void 0===v[c]&&u&&u(c,"initValue",!!v[c]),(0,e.jsx)(y.default,E({type:"compact",size:"small",defaultChecked:!!v[c],onChange:function(e){S(e.target.checked)}},E(E({},s),{disabled:m})),void 0);case"checkGroup":return(0,e.jsx)(g,E({error:j,defaultValue:v[c],size:"small",change:function(e){S(e)},list:t.list},E(E({},s),{disabled:m})),void 0);case"select":return(0,e.jsx)(h,E({placeholder:C,defaultValue:v[c],error:j,size:"medium",change:function(e){S(e)},list:t.list},E({disabled:m},s)),void 0);case"radioGroup":return(0,e.jsx)(d,E({error:j,defaultValue:v[c],size:"small",change:function(e){S(e)},list:t.list},E({disabled:m},s)),void 0);case"textarea":return(0,e.jsx)(a.default,E({error:j,placeholder:C,value:v[c],disabled:m,multiline:!0,rows:3,size:"medium",name:c,onChange:function(e){S(e.target.value)}},s),void 0);default:return(0,e.jsx)(a.default,E({value:v[c],error:j,placeholder:C,onChange:function(e){S(e.target.value)},name:c,size:"medium",disabled:m},s),void 0)}}()},L=function(t){var i=t.getSetError,r=t.errorMessage,n=o().useState(r||""),l=n[0],a=n[1];return o().useEffect((function(){a(r||"")}),[r]),o().useEffect((function(){i&&i(a)}),[i]),(0,e.jsxs)(S.default,{children:[l," "]},void 0)},P=m(4927),M=function(){return M=Object.assign||function(e){for(var t,o=1,i=arguments.length;o<i;o++)for(var r in t=arguments[o])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},M.apply(this,arguments)},A=(0,F.Z)(),D=(0,n.makeStyles)((function(e){return(0,n.createStyles)({"para-form-item":{"& .para-form-label":{height:"20px",lineHeight:"20px",fontSize:"12px",textAlign:"left",fontWeight:"400",display:"inline-block",marginBottom:"8px",verticalAlign:"top",width:"100%","&-vertical":{marginTop:"6px",textAlign:"right",paddingRight:"3px",position:"relative","& .para-form-labe-tips":{position:"absolute",left:"0px",top:"1px"}},"& .para-form-labe-text":{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"inline-block",maxWidth:"100%",verticalAlign:"middle","&-hastips":{maxWidth:"calc(100% - 25px)"}},"& .para-form-labe-tips":{height:"20px",cursor:"pointer",display:"inline-block",verticalAlign:"middle",lineHeight:"27px",marginLeft:"5px"}},"& .para-form-edit":{minHeight:"34px","&>div":{padding:"0px"},"& .MuiSwitch-root":{marginTop:"12px"}},"& .para-form-error":{height:"17px",lineHeight:"17px",color:A.stateColor.error},"& .para-form-content-vertical":{display:"inline-block",width:"100%"}}})})),H=function(t){var i=t.type,n=void 0===i?"horizontal":i,a=t.labelWidth,s=void 0===a?60:a,c=t.tips,d=t.label,p=t.InputType,u=t.setValue,h=t.errorMessage,f=(t.rules,t.backData),v=void 0===f?{}:f,m=D(),x=o().useRef();return(0,e.jsxs)("div",M({className:m["para-form-item"]},{children:[(0,e.jsxs)("div",M({className:(0,P.Z)("para-form-label","vertical"===n&&"para-form-label-vertical"),style:{width:"vertical"===n?s+"px":""}},{children:[(0,e.jsx)("span",M({className:(0,P.Z)("para-form-labe-text",c&&"para-form-labe-text-hastips")},{children:d}),void 0),c&&(0,e.jsx)(l.Tooltip,M({title:c,placement:"top"},{children:(0,e.jsx)("span",M({className:"para-form-labe-tips"},{children:(0,e.jsx)(r(),{},void 0)}),void 0)}),void 0)]}),void 0),(0,e.jsxs)((function(t){return"vertical"===n?(0,e.jsx)("div",M({className:"para-form-content-vertical",style:{width:"calc(100% - "+s+"px)"}},{children:t.children}),void 0):t.children}),{children:[(0,e.jsx)("div",M({className:"para-form-edit"},{children:t.children?t.children:(0,e.jsx)(B,M({setError:function(e){x.current&&x.current(e)},error:!!h,ItemType:p,backData:v},t,{setValue:u}),void 0)}),void 0),(0,e.jsx)("div",M({className:"para-form-error"},{children:(0,e.jsx)(L,{getSetError:function(e){return x.current=e},errorMessage:h},void 0)}),void 0)]},void 0)]}),void 0)}}(),x}()}));
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { FormItemProps } from './index';
|
|
3
|
+
export interface ItemTypeProps extends FormItemProps {
|
|
4
|
+
/**
|
|
5
|
+
* 输入框类型
|
|
6
|
+
*/
|
|
7
|
+
ItemType?: 'checkGroup' | 'select' | 'radioGroup' | 'textarea' | 'default' | 'switch' | 'file' | FC<ItemTypeProps>;
|
|
8
|
+
/**
|
|
9
|
+
* 状态
|
|
10
|
+
*/
|
|
11
|
+
error?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* 设置错误提示
|
|
14
|
+
*/
|
|
15
|
+
setError?: Function;
|
|
16
|
+
/**
|
|
17
|
+
* 输入框提示
|
|
18
|
+
*/
|
|
19
|
+
placeholder?: string;
|
|
20
|
+
/**
|
|
21
|
+
* 输入框其他配置
|
|
22
|
+
*/
|
|
23
|
+
inputProps?: {
|
|
24
|
+
[name: string]: any;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* 设置值的方法
|
|
28
|
+
*/
|
|
29
|
+
setValue?: Function;
|
|
30
|
+
[name: string]: any;
|
|
31
|
+
/**
|
|
32
|
+
* 回填数据
|
|
33
|
+
*/
|
|
34
|
+
backData: {
|
|
35
|
+
[name: string]: any;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* form 表单操作项 类型
|
|
40
|
+
*/
|
|
41
|
+
declare const ItemType: FC<ItemTypeProps>;
|
|
42
|
+
export default ItemType;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FormItemProps } from './index';
|
|
2
|
+
/**
|
|
3
|
+
* 校验表单字段类型的方法
|
|
4
|
+
* @typedef {Function} validateFunctionType
|
|
5
|
+
* @param {FormItemProps} item 校验表单项的所有配置信息
|
|
6
|
+
* @param {any} val 校验项的值
|
|
7
|
+
* @return {boolean | string} 返回校验结果或报错信息
|
|
8
|
+
*/
|
|
9
|
+
export declare type validateFunctionType = (item: FormItemProps, val: any) => boolean | string;
|
|
10
|
+
/**
|
|
11
|
+
* 表单rules校验方法
|
|
12
|
+
* @type {validateFunctionType}
|
|
13
|
+
*/
|
|
14
|
+
declare const validate: validateFunctionType;
|
|
15
|
+
export default validate;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React, { ReactElement } from "react";
|
|
2
|
+
import { ModalProps } from '../Modal';
|
|
3
|
+
import { JsxElement } from "typescript";
|
|
4
|
+
import './index.scss';
|
|
5
|
+
/**
|
|
6
|
+
* 弹窗配置
|
|
7
|
+
*/
|
|
8
|
+
export interface modalOptions extends ModalProps {
|
|
9
|
+
/**
|
|
10
|
+
* 非正常关闭仍然返回true
|
|
11
|
+
*/
|
|
12
|
+
disCatchOnCancel?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* 模态框大小
|
|
15
|
+
*/
|
|
16
|
+
size?: 'sm' | 'md' | 'lg' | 'auto' | 'fullScreen';
|
|
17
|
+
/**
|
|
18
|
+
* 模态框标题
|
|
19
|
+
*/
|
|
20
|
+
title?: string;
|
|
21
|
+
context?: ReactElement | JsxElement;
|
|
22
|
+
/**
|
|
23
|
+
* 内容
|
|
24
|
+
*/
|
|
25
|
+
content?: ReactElement | JsxElement;
|
|
26
|
+
/**
|
|
27
|
+
* 检查方法,根据返回值判断是否关闭模态框
|
|
28
|
+
*/
|
|
29
|
+
checkFunction?: () => boolean | Promise<boolean>;
|
|
30
|
+
/**
|
|
31
|
+
* 获得关闭模态框方法
|
|
32
|
+
*/
|
|
33
|
+
getClose?: (close: Function) => void;
|
|
34
|
+
/**
|
|
35
|
+
* 模态框其他配置
|
|
36
|
+
*/
|
|
37
|
+
ModalProps?: ModalProps;
|
|
38
|
+
}
|
|
39
|
+
interface DialogProps extends modalOptions {
|
|
40
|
+
/**
|
|
41
|
+
* 模态框状态
|
|
42
|
+
*/
|
|
43
|
+
open: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* 提交方法
|
|
46
|
+
*/
|
|
47
|
+
onSubmit: (idx: number) => void;
|
|
48
|
+
/**
|
|
49
|
+
* 关闭方法
|
|
50
|
+
*/
|
|
51
|
+
onClose: (idx: number) => void;
|
|
52
|
+
/**
|
|
53
|
+
* 模态框组下标
|
|
54
|
+
*/
|
|
55
|
+
listIndex: number;
|
|
56
|
+
}
|
|
57
|
+
export declare const FDialog: React.FC<DialogProps>;
|
|
58
|
+
export {};
|
package/FunctionModal/index.js
CHANGED
|
@@ -1 +1,14 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("@material-ui/core/styles"),require("@material-ui/core"),require("@para-ui/icons/LoadingF"),require("@para-ui/icons/Close"),require("@para-ui/icons/CloseCircleF"),require("@para-ui/icons/CheckCircleF"),require("react-dom"),require("@para-ui/icons/WarningCircle")):"function"==typeof define&&define.amd?define(["react","@material-ui/core/styles","@material-ui/core","@para-ui/icons/LoadingF","@para-ui/icons/Close","@para-ui/icons/CloseCircleF","@para-ui/icons/CheckCircleF","react-dom","@para-ui/icons/WarningCircle"],e):"object"==typeof exports?exports.ParaUI=e(require("react"),require("@material-ui/core/styles"),require("@material-ui/core"),require("@para-ui/icons/LoadingF"),require("@para-ui/icons/Close"),require("@para-ui/icons/CloseCircleF"),require("@para-ui/icons/CheckCircleF"),require("react-dom"),require("@para-ui/icons/WarningCircle")):t.ParaUI=e(t.react,t["@material-ui/core/styles"],t["@material-ui/core"],t["@para-ui/icons/LoadingF"],t["@para-ui/icons/Close"],t["@para-ui/icons/CloseCircleF"],t["@para-ui/icons/CheckCircleF"],t["react-dom"],t["@para-ui/icons/WarningCircle"])}(self,(function(t,e,r,o,n,i,a,c,l){return function(){var u={4927:function(t,e,r){"use strict";function o(t){var e,r,n="";if("string"==typeof t||"number"==typeof t)n+=t;else if("object"==typeof t)if(Array.isArray(t))for(e=0;e<t.length;e++)t[e]&&(r=o(t[e]))&&(n&&(n+=" "),n+=r);else for(e in t)t[e]&&(n&&(n+=" "),n+=e);return n}function n(){for(var t,e,r=0,n="";r<arguments.length;)(t=arguments[r++])&&(e=o(t))&&(n&&(n+=" "),n+=e);return n}r.d(e,{Z:function(){return n}})},1765:function(t,e,r){(e=r(9937)(!1)).push([t.id,'.function-modal-default [class*="makeStyles-md"]{width:440px;height:auto;max-height:initial}\n',""]),t.exports=e},9937:function(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var r=function(t,e){var r=t[1]||"",o=t[3];if(!o)return r;if(e&&"function"==typeof btoa){var n=(a=o,c=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),l="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(c),"/*# ".concat(l," */")),i=o.sources.map((function(t){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(t," */")}));return[r].concat(i).concat([n]).join("\n")}var a,c,l;return[r].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(r,"}"):r})).join("")},e.i=function(t,r,o){"string"==typeof t&&(t=[[null,t,""]]);var n={};if(o)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(n[a]=!0)}for(var c=0;c<t.length;c++){var l=[].concat(t[c]);o&&n[l[0]]||(r&&(l[2]?l[2]="".concat(r," and ").concat(l[2]):l[2]=r),e.push(l))}},e}},405:function(t){var e=function(t){"use strict";var e,r=Object.prototype,o=r.hasOwnProperty,n="function"==typeof Symbol?Symbol:{},i=n.iterator||"@@iterator",a=n.asyncIterator||"@@asyncIterator",c=n.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,r){return t[e]=r}}function u(t,e,r,o){var n=e&&e.prototype instanceof g?e:g,i=Object.create(n.prototype),a=new j(o||[]);return i._invoke=function(t,e,r){var o=d;return function(n,i){if(o===p)throw new Error("Generator is already running");if(o===h){if("throw"===n)throw i;return P()}for(r.method=n,r.arg=i;;){var a=r.delegate;if(a){var c=F(a,r);if(c){if(c===m)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===d)throw o=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=p;var l=s(t,e,r);if("normal"===l.type){if(o=r.done?h:f,l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o=h,r.method="throw",r.arg=l.arg)}}}(t,r,a),i}function s(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var d="suspendedStart",f="suspendedYield",p="executing",h="completed",m={};function g(){}function y(){}function b(){}var v={};l(v,i,(function(){return this}));var x=Object.getPrototypeOf,C=x&&x(x(T([])));C&&C!==r&&o.call(C,i)&&(v=C);var w=b.prototype=g.prototype=Object.create(v);function S(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function E(t,e){function r(n,i,a,c){var l=s(t[n],t,i);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==typeof d&&o.call(d,"__await")?e.resolve(d.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(d).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(l.arg)}var n;this._invoke=function(t,o){function i(){return new e((function(e,n){r(t,o,e,n)}))}return n=n?n.then(i,i):i()}}function F(t,r){var o=t.iterator[r.method];if(o===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=e,F(t,r),"throw"===r.method))return m;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var n=s(o,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,m;var i=n.arg;return i?i.done?(r[t.resultName]=i.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,m):i:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function T(t){if(t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,a=function r(){for(;++n<t.length;)if(o.call(t,n))return r.value=t[n],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}return{next:P}}function P(){return{value:e,done:!0}}return y.prototype=b,l(w,"constructor",b),l(b,"constructor",y),y.displayName=l(b,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,l(t,c,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},S(E.prototype),l(E.prototype,a,(function(){return this})),t.AsyncIterator=E,t.async=function(e,r,o,n,i){void 0===i&&(i=Promise);var a=new E(u(e,r,o,n),i);return t.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(w),l(w,c,"Generator"),l(w,i,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var o=e.pop();if(o in t)return r.value=o,r.done=!1,r}return r.done=!0,r}},t.values=T,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&o.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(o,n){return c.type="throw",c.arg=t,r.next=o,n&&(r.method="next",r.arg=e),!!n}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var o=r.completion;if("throw"===o.type){var n=o.arg;k(r)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,o){return this.delegate={iterator:T(t),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=e),m}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},860:function(t,e,r){var o=r(2387),n=r(1765);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[t.id,n,""]]);var i={insert:"head",singleton:!1};o(n,i);t.exports=n.locals||{}},2387:function(t,e,r){"use strict";var o,n=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},i=function(){var t={};return function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(t){r=null}t[e]=r}return t[e]}}(),a=[];function c(t){for(var e=-1,r=0;r<a.length;r++)if(a[r].identifier===t){e=r;break}return e}function l(t,e){for(var r={},o=[],n=0;n<t.length;n++){var i=t[n],l=e.base?i[0]+e.base:i[0],u=r[l]||0,s="".concat(l," ").concat(u);r[l]=u+1;var d=c(s),f={css:i[1],media:i[2],sourceMap:i[3]};-1!==d?(a[d].references++,a[d].updater(f)):a.push({identifier:s,updater:g(f,e),references:1}),o.push(s)}return o}function u(t){var e=document.createElement("style"),o=t.attributes||{};if(void 0===o.nonce){var n=r.nc;n&&(o.nonce=n)}if(Object.keys(o).forEach((function(t){e.setAttribute(t,o[t])})),"function"==typeof t.insert)t.insert(e);else{var a=i(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var s,d=(s=[],function(t,e){return s[t]=e,s.filter(Boolean).join("\n")});function f(t,e,r,o){var n=r?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(t.styleSheet)t.styleSheet.cssText=d(e,n);else{var i=document.createTextNode(n),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(i,a[e]):t.appendChild(i)}}function p(t,e,r){var o=r.css,n=r.media,i=r.sourceMap;if(n?t.setAttribute("media",n):t.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleSheet)t.styleSheet.cssText=o;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(o))}}var h=null,m=0;function g(t,e){var r,o,n;if(e.singleton){var i=m++;r=h||(h=u(e)),o=f.bind(null,r,i,!1),n=f.bind(null,r,i,!0)}else r=u(e),o=p.bind(null,r,e),n=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(r)};return o(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;o(t=e)}else n()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=n());var r=l(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var o=0;o<r.length;o++){var n=c(r[o]);a[n].references--}for(var i=l(t,e),u=0;u<r.length;u++){var s=c(r[u]);0===a[s].references&&(a[s].updater(),a.splice(s,1))}r=i}}}},8955:function(t,e,r){"use strict";var o=r(9297),n=r.n(o),i=r(1731),a=r(8604),c=r(4927),l=r(1102),u=r.n(l);function s(){return(s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t}).apply(this,arguments)}function d(t,e){if(null==t)return{};var r,o,n=function(t,e){if(null==t)return{};var r,o,n={},i=Object.keys(t);for(o=0;o<i.length;o++)r=i[o],e.indexOf(r)>=0||(n[r]=t[r]);return n}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],o=!0,n=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(o=(a=c.next()).done)&&(r.push(a.value),!e||r.length!==e);o=!0);}catch(t){n=!0,i=t}finally{try{o||null==c.return||c.return()}finally{if(n)throw i}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var p=(0,r(9177).Z)(),h=(0,a.makeStyles)((function(t){return(0,a.createStyles)({"@keyframes loadingCircle":{"100%":{transform:"rotate(1turn)"}},radius:{borderRadius:15},btnIcon:{"& .btn-icon":{display:"inline-flex",alignItems:"center"},"& .btn-icon svg":{color:"currentColor"}},outlinedBtn:{"& .btn-icon svg":{color:p.thmemColor.primary},"&:disabled":{"& .btn-icon svg":{color:"currentColor"}}},iconButtonToolTip:{display:"inline-block",cursor:"not-allowed","& .iconButton-disabled":{cursor:"not-allowed",pointerEvents:"none"}},loadingBtn:{position:"relative",pointerEvents:"none","&:before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:1,transition:"opacity .2s",pointerEvents:"none"},"& .loading-icon":{animation:"$loadingCircle 1s infinite linear"}}})})),m=(0,a.withStyles)((function(t){return{tooltip:{margin:"6px 0",backgroundColor:p.bgBorderColor.bg4}}}))(i.Tooltip),g=function(t){var e=h(),r=t.radius,a=t.className,l=t.disabled,p=void 0!==l&&l,m=t.children,g=t.startIcon,y=t.endIcon,b=t.loading,v=void 0!==b&&b,x=d(t,["radius","className","disabled","children","startIcon","endIcon","loading"]);"text"===x.variant&&(x.disableRipple=!0);var C=f((0,o.useState)(!1),2),w=C[0],S=C[1];return(0,o.useEffect)((function(){S(!!v)}),[v]),n().createElement(i.Button,s({disabled:p,className:(0,c.Z)("paraui-button",a,e.btnIcon,r&&e.radius,"outlined"===x.variant&&e.outlinedBtn,w&&e.loadingBtn),startIcon:function(){if(!w)return n().createElement("span",{className:"btn-icon"},g);if("object"==typeof v){var t=v.delay||0;setTimeout((function(){return S(!1)}),t)}return n().createElement("span",{className:"btn-icon loading-icon"},n().createElement(u(),null))}(),endIcon:n().createElement("span",{className:"btn-icon"},y)},x),m)};g.IconButton=function(t){var e=h(),r=t.showToolTip,a=void 0===r||r,l=t.toolTipTitle,p=void 0===l?"":l,g=t.children,y=t.className,b=t.disabled,v=void 0!==b&&b,x=t.loading,C=void 0!==x&&x,w=t.TooltipProps,S=d(t,["showToolTip","toolTipTitle","children","className","disabled","loading","TooltipProps"]),E=f((0,o.useState)(!1),2),F=E[0],O=E[1],k=n().createElement(i.IconButton,s({},S,{disabled:v,disableRipple:!0,className:(0,c.Z)("paraui-icon-button",y,a&&v&&"iconButton-disabled",F&&e.loadingBtn)}),function(){if(!F)return g;if("object"==typeof C){var t=C.delay||0;setTimeout((function(){return O(!1)}),t)}return n().createElement("span",{className:"loading-icon"},n().createElement(u(),null))}());return(0,o.useEffect)((function(){O(!!C)}),[C]),a?n().createElement(m,s({title:p},w),n().createElement("span",{className:(0,c.Z)(v&&e.iconButtonToolTip)},k)):k},e.default=g},8206:function(t,e,r){"use strict";r.d(e,{default:function(){return j}});var o=r(9297),n=r.n(o),i=r(8604),a=r(1731),c=r(8955),l=r(19),u=r.n(l),s=r(20),d=r.n(s),f=r(3285),p=r.n(f),h=r(4927),m=(r(2268),r(6897)),g=r.n(m),y=r(9177);r(2179);var b=(0,y.Z)(),v=(p(),g(),g(),d(),g(),{success:b.stateColor.success,warn:b.stateColor.warning,warning:b.stateColor.warning,error:b.stateColor.error,info:b.stateColor.info});(0,a.makeStyles)((function(t){return(0,a.createStyles)({modalPaper:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",outline:"none","& .confirm-wrapper":{position:"relative",width:function(t){return t.width},padding:"32px 32px 24px 32px","& .confirm-close":{position:"absolute",right:20,top:20,"& svg":{fontSize:20}},"& .confirm-icon":{float:"left",marginRight:"16px",marginTop:function(t){return t.title?"2px":"1px"},color:function(t){return v[t.type]},"& svg":{color:"currentColor"}},"& .confirm-body":{overflow:"hidden","& span":{display:"block",color:b.textColor.primary,fontSize:14,fontWeight:700,marginBottom:8},"& div":{color:b.textColor.primary,fontSize:12,marginLeft:1}},"& .confirm-btns":{marginTop:24,textAlign:"right","& button":{minWidth:50,padding:0,marginLeft:10},"& svg.action-icon":{fontSize:16,"&.action-icon-cancel":{color:b.textColor.thirdary}}}}}})}));function x(){return(x=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t}).apply(this,arguments)}function C(t,e){if(null==t)return{};var r,o,n=function(t,e){if(null==t)return{};var r,o,n={},i=Object.keys(t);for(o=0;o<i.length;o++)r=i[o],e.indexOf(r)>=0||(n[r]=t[r]);return n}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function w(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],o=!0,n=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(o=(a=c.next()).done)&&(r.push(a.value),!e||r.length!==e);o=!0);}catch(t){n=!0,i=t}finally{try{o||null==c.return||c.return()}finally{if(n)throw i}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var S=(0,y.Z)(),E=(0,i.withStyles)((function(){return(0,i.createStyles)({root:{height:"40px",padding:"0 20px",backgroundColor:S.bgBorderColor.bg2,"& h6":{fontWeight:700,fontSize:12,lineHeight:"40px"},"& .close-btn":{position:"absolute",right:20,top:10,color:S.bgBorderColor.bg4,"& svg":{fontSize:20,color:"currentColor"}}}})}))((function(t){var e=t.children,r=t.onClose,o=t.classes;return n().createElement(a.DialogTitle,{disableTypography:!0,className:o.root},n().createElement(a.Typography,{variant:"h6"},e),r?n().createElement(c.default.IconButton,{onClick:r,className:"close-btn",showToolTip:!1},n().createElement(u(),null)):null)})),F=(0,i.withStyles)((function(){return{root:{maxHeight:"800px",padding:"8px 20px"}}}))(a.DialogContent),O=(0,i.withStyles)((function(t){return{root:{height:50,padding:"0 18px",borderTop:"1px solid ".concat(S.bgBorderColor.line1),"& > button:not(:first-child)":{marginLeft:20},"& > button":{color:S.textColor.primary,"& .btn-icon svg":{color:S.thmemColor.primary},"&.text-btn":{marginLeft:0}}}}}))(a.DialogActions),k=(0,i.makeStyles)((function(){return(0,i.createStyles)({sm:{width:"360px",maxHeight:"220px"},md:{width:"440px",maxHeight:"460px"},lg:{width:"840px",maxHeight:"540px"},customizeSize:function(t){return t?{width:t.width,maxHeight:t.height}:{}},auto:{width:"auto"},fullScreen:{width:"100%"},actionWrapper:{"& svg.action-icon":{fontSize:16,"&.action-icon-cancel":{color:S.textColor.thirdary}}},content:{maxHeight:"none"}})})),j=function(t){var e=t.open,r=void 0!==e&&e,i=t.title,l=void 0===i?"":i,u=t.children,s=void 0===u?null:u,f=t.actions,m=void 0===f?null:f,g=t.showActions,y=void 0===g||g,b=t.onOk,v=t.onCancel,S=t.okText,j=t.cancelText,T=t.okButtonProps,P=t.cancelButtonProps,L=t.showCancel,z=void 0===L||L,B=t.className,N=t.size,I=void 0===N?"auto":N,D=t.disableBackdropClick,M=void 0===D||D,A=t.disableEscapeKeyDown,W=void 0===A||A,$=t.disableEnforceFocus,R=void 0===$||$,_=t.fullScreen,q=void 0!==_&&_,Z=t.customizeSize,H=C(t,["open","title","children","actions","showActions","onOk","onCancel","okText","cancelText","okButtonProps","cancelButtonProps","showCancel","className","size","disableBackdropClick","disableEscapeKeyDown","disableEnforceFocus","fullScreen","customizeSize"]),G=w((0,o.useState)(!1),2),U=G[0],Y=G[1],K=k(Z||{}),J=q||"fullScreen"===I,V=function(){Y(!1),null==v||v()},Q=function(){null==b||b()};(0,o.useEffect)((function(){Y(r)}),[r]);var X;return n().createElement(a.Dialog,x({className:(0,h.Z)("modal-presentation","paraui-modal",B),scroll:"paper",onClose:function(t,e){M||V()},open:U,maxWidth:!1,disableEscapeKeyDown:W,disableEnforceFocus:R,fullScreen:J},H,{classes:(X=I,Z&&(X="customizeSize"),J?{}:{paper:K[X]})}),n().createElement(E,{onClose:V},l),n().createElement(F,{className:(0,h.Z)(J&&K.content)},s),y?m?n().createElement(O,{className:K.actionWrapper},m):n().createElement(O,{className:K.actionWrapper},z&&n().createElement(c.default,x({onClick:V,variant:"outlined",color:"primary",startIcon:n().createElement(d(),{className:"action-icon action-icon-cancel"})},P),j||"取消"),n().createElement(c.default,x({variant:"outlined",color:"primary",onClick:Q,startIcon:n().createElement(p(),{className:"action-icon"})},T,{className:(0,h.Z)("text"===(null==T?void 0:T.variant)&&"text-btn")}),S||"完成")):null)}},2179:function(t,e,r){"use strict";r.d(e,{default:function(){return F}});var o=r(9297),n=r.n(o),i=r(8604),a=r(9177),c=(0,a.Z)(),l={root:{minWidth:84,height:30,textTransform:"none",color:c.textColor.primary,lineHeight:"normal"},disabled:{},label:{},text:{padding:"7px 20px","&:hover":{backgroundColor:"transparent",color:c.thmemColor.secondary},"&$disabled":{color:c.textColor.secondary,pointerEvents:"auto",cursor:"not-allowed"}},textPrimary:{"&:hover":{backgroundColor:"transparent",color:c.thmemColor.secondary},"&$disabled":{color:c.textColor.secondary,pointerEvents:"auto",cursor:"not-allowed"}},textSecondary:{color:c.textColor.secondary},outlined:{padding:"7px 20px",color:c.textColor.primary,boxShadow:c.buttonShadow,border:0,backgroundColor:c.textColor.white,"&$disabled":{color:c.textColor.secondary,padding:"7px 20px",border:0,pointerEvents:"auto",cursor:"not-allowed"},"&:hover":{color:c.thmemColor.primary,backgroundColor:c.textColor.white,border:0,"&$disabled":{color:c.textColor.secondary,padding:"7px 20px",backgroundColor:c.textColor.white,border:0,pointerEvents:"auto",cursor:"not-allowed"}}},outlinedPrimary:{padding:"7px 20px",color:c.textColor.primary,border:0,"&$disabled":{color:c.textColor.secondary,padding:"7px 20px",border:0,pointerEvents:"auto",cursor:"not-allowed"},"&:hover":{color:c.thmemColor.primary,backgroundColor:c.textColor.white,border:0,"&$disabled":{color:c.textColor.secondary,padding:"7px 20px",backgroundColor:c.textColor.white,border:0,pointerEvents:"auto",cursor:"not-allowed"}}},outlinedSecondary:{padding:"7px 20px",color:c.textColor.secondary,border:0,"&$disabled":{color:c.textColor.secondary,padding:"7px 20px",border:0,pointerEvents:"auto",cursor:"not-allowed"},"&:hover":{color:c.thmemColor.primary,backgroundColor:c.textColor.white,border:0,"&$disabled":{color:c.textColor.secondary,padding:"7px 20px",backgroundColor:c.textColor.white,border:0,pointerEvents:"auto",cursor:"not-allowed"}}},contained:{padding:"7px 20px",backgroundColor:c.thmemColor.primary,color:c.textColor.white,boxShadow:c.buttonShadow,"&$disabled":{color:c.textColor.white,backgroundColor:c.textColor.secondary,pointerEvents:"auto",cursor:"not-allowed"},"&:hover":{color:c.thmemColor.thirdary,backgroundColor:c.thmemColor.primary,boxShadow:c.buttonShadow,"&$disabled":{color:c.textColor.white,backgroundColor:c.textColor.secondary,pointerEvents:"auto",cursor:"not-allowed"}}},containedPrimary:{"&$disabled":{color:c.textColor.white,backgroundColor:c.textColor.secondary,pointerEvents:"auto",cursor:"not-allowed"},"&:hover":{color:c.thmemColor.thirdary,backgroundColor:c.thmemColor.primary,boxShadow:c.buttonShadow,"&$disabled":{color:c.textColor.white,backgroundColor:c.textColor.secondary,boxShadow:"none"}}},containedSecondary:{},textSizeSmall:{},textSizeLarge:{},outlinedSizeSmall:{height:24,padding:"7px 20px"},outlinedSizeLarge:{height:36,padding:"7px 20px"},containedSizeSmall:{height:24,padding:"7px 20px"},containedSizeLarge:{height:36,padding:"7px 20px"},sizeSmall:{},sizeLarge:{},startIcon:{},endIcon:{},iconSizeSmall:{},iconSizeMedium:{},iconSizeLarge:{}},u={root:{padding:0,"&:hover":{backgroundColor:"transparent"},"&$disabled":{color:c.textColor.thirdary,pointerEvents:"auto",cursor:"not-allowed"}},colorPrimary:{"&:hover":{backgroundColor:"transparent"},"&$disabled":{color:c.textColor.thirdary,pointerEvents:"auto",cursor:"not-allowed"}},colorSecondary:{"&:hover":{backgroundColor:"transparent"},"&$disabled":{color:c.textColor.thirdary,pointerEvents:"auto",cursor:"not-allowed"}},disabled:{}},s=(0,a.Z)(),d={root:{display:"inline-block",padding:"0 8px"},ol:{flexWrap:"nowrap"},li:{"& a":{whiteSpace:"nowrap",fontSize:s.standardFont.standardFont1.fontSize,color:s.textColor.secondary,"&:hover":{textDecoration:"none",color:s.thmemColor.primary},"& svg":{fontSize:s.standardFont.standardFont1.fontSize,position:"relative",top:"1px",marginRight:"4px"}},"& .current-breadcrumbs":{fontWeight:"700",color:s.textColor.primary},"& .more-breadcrumbs":{"& svg":{fontSize:s.standardFont.standardFont1.fontSize,position:"relative",top:"2px"}}},separator:{marginLeft:"4px",marginRight:"4px"}},f=(0,a.Z)(),p={vertical:{padding:"8px 0"},alternativeLabel:{top:15,left:"calc(-50% + 15px)",right:"calc(50% + 15px)",margin:"0 10px"},active:{"& $line":{border:0,height:1,backgroundColor:f.bgBorderColor.line1}},completed:{"& $line":{border:0,height:1,backgroundColor:f.bgBorderColor.line1}},line:{borderColor:f.bgBorderColor.line1,borderRadius:1,borderTopStyle:"dashed"},lineHorizontal:{borderTopStyle:"dashed"},lineVertical:{minHeight:100,borderTop:0,borderLeftStyle:"dashed"}},h={label:{color:f.textColor.secondary,"&$active":{color:f.thmemColor.primary},"&$completed":{color:f.textColor.secondary},"&$alternativeLabel":{marginTop:"8px"}}};function m(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function g(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){m(t,e,r[e])}))}return t}var y=(0,a.Z)(),b={root:{position:"relative",boxSizing:"border-box",minHeight:"auto","&:before":{content:'""',position:"absolute",right:0,left:0,bottom:0,borderBottom:"1px solid ".concat(y.bgBorderColor.line1)}},vertical:{"&:before":{right:0,top:0,bottom:0,borderBottom:0,borderRight:"1px solid ".concat(y.bgBorderColor.line1)}},indicator:{display:"flex",justifyContent:"center",backgroundColor:"transparent",height:1,"& > span":{maxWidth:40,width:"100%",backgroundColor:y.thmemColor.primary}}},v={root:g({position:"relative",height:30,minHeight:"auto",minWidth:"auto",textTransform:"none",overflow:"visible"},y.standardFont.standardFont1,{color:y.textColor.secondary,"&$selected":g({},y.standardFont.standardFont2)})};function x(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var C=(0,a.Z)(),w={palette:{primary:{main:C.thmemColor.primary},secondary:{main:C.thmemColor.secondary},success:{main:C.stateColor.success},info:{main:C.stateColor.info},warning:{main:C.stateColor.warning},error:{main:C.stateColor.error}},typography:{fontFamily:C.fontFamily.zh,fontSize:C.fontSize},shape:{borderRadius:C.borderRadius},overrides:{MuiCssBaseline:{"@global":{body:function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){x(t,e,r[e])}))}return t}({fontFamily:C.fontFamily.zh,color:C.textColor.primary},C.standardFont.standardFont1),ul:{margin:0,listStyle:"none"},a:{cursor:"pointer",textDecoration:"none",outline:"none"}}},MuiButton:l,MuiIconButton:u,MuiBreadcrumbs:d,MuiStepConnector:p,MuiStepLabel:h,MuiTabs:b,MuiTab:v}},S=r(1731);function E(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var F=function(t){var e,r=(0,i.createGenerateClassName)({seed:t.seed||"",productionPrefix:t.productionPrefix||"paraui"});return e=t.theme?(0,i.createMuiTheme)(function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable})))),o.forEach((function(e){E(t,e,r[e])}))}return t}({},w,t.theme)):(0,i.createMuiTheme)(w),n().createElement(i.StylesProvider,{generateClassName:r},n().createElement(i.ThemeProvider,{theme:e},n().createElement(S.CssBaseline,null),t.children))}},9177:function(t,e){"use strict";var r={thmemColor:{primary:"#3D66F8",secondary:"#7E98F5",thirdary:"#D6DFFD"},textColor:{primary:"#191919",secondary:"#6E7488",thirdary:"#BBBECB",white:"#FFFFFF"},bgBorderColor:{bg1:"#DCDDE3",bg2:"#F5F5F5",bg3:"#EDEDED",bg4:"#6E7488",line1:"#E5E9EF",universal:"#FFFFFF"},stateColor:{info:"#3D66F8",success:"#41D658",warning:"#FFA150",error:"#F46B53"},gradientColor:{gradient1:"linear-gradient(#3D66F8, #4F93F0)",gradient2:"linear-gradient(#0093FF, #4EB4FF)",gradient3:"linear-gradient(#844EFF, #A796FF)",gradient4:"linear-gradient(#FD7300, #FFBF69)",gradient5:"linear-gradient(#3D66F8, #D8DFFA)"},fontFamily:{zh:"Microsoft Yahei, Helvetica, sans-serif",en:"Microsoft Yahei, Helvetica, sans-serif"},fontSize:12,borderRadius:4,boxShadow:"4px 4px 6px rgba(70,75,105,0.2), -4px -4px 6px rgba(0,0,0,0.06)",buttonShadow:"4px 4px 6px rgba(70,75,105,0.1), -4px -4px 6px rgba(0,0,0,0.03)",standardFont:{standardFont1:{fontSize:"12px",fontWeight:"400"},standardFont2:{fontSize:"12px",fontWeight:"700"}},titleFont:{titleFont1:{fontSize:"14px",fontWeight:"400"},titleFont2:{fontSize:"14px",fontWeight:"700"}},visualLargeFont:{visualLargeFont1:{fontSize:"40px",fontWeight:"700"},visualLargeFont2:{fontSize:"40px",fontWeight:"700"}}};e.Z=function(){return r}},1731:function(t){"use strict";t.exports=r},8604:function(t){"use strict";t.exports=e},3285:function(t){"use strict";t.exports=a},19:function(t){"use strict";t.exports=n},20:function(t){"use strict";t.exports=i},1102:function(t){"use strict";t.exports=o},6897:function(t){"use strict";t.exports=l},9297:function(e){"use strict";e.exports=t},2268:function(t){"use strict";t.exports=c}},s={};function d(t){var e=s[t];if(void 0!==e)return e.exports;var r=s[t]={id:t,exports:{}};return u[t](r,r.exports,d),r.exports}d.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return d.d(e,{a:e}),e},d.d=function(t,e){for(var r in e)d.o(e,r)&&!d.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},d.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},d.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var f={};return function(){"use strict";d.r(f),d.d(f,{FunctionModalProvider:function(){return g},default:function(){return b},useClose:function(){return y}});var t=d(405),e=d.n(t),r=d(9297),o=d.n(r),n=d(8206),i=d(4927);d(860);function a(){return(a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t}).apply(this,arguments)}var c=function(t){var e=t.open,r=t.title,c=t.size,l=t.context,u=t.content,s=t.onSubmit,d=t.onClose,f=t.getClose,p=t.listIndex,h=t.ModalProps;return o().useEffect((function(){f&&f((function(){return d(p)}))}),[f,p,d]),o().createElement(n.default,a({},h,{className:(0,i.Z)("function-modal",!c&&"function-modal-default"),open:e,title:r,onCancel:function(){return d(p)},onOk:function(){return s(p)},size:c||"md",children:u||l,okButtonProps:{onClick:function(){return s(p)}},cancelButtonProps:{onClick:function(){return d(p)}}}))};function l(t,e,r,o,n,i,a){try{var c=t[i](a),l=c.value}catch(t){return void r(t)}c.done?e(l):Promise.resolve(l).then(o,n)}function u(){return(u=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t}).apply(this,arguments)}function s(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=[],o=!0,n=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(o=(a=c.next()).done)&&(r.push(a.value),!e||r.length!==e);o=!0);}catch(t){n=!0,i=t}finally{try{o||null==c.return||c.return()}finally{if(n)throw i}}return r}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function p(t){return function(t){if(Array.isArray(t)){for(var e=0,r=new Array(t.length);e<t.length;e++)r[e]=t[e];return r}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var h,m=o().createContext(Promise.reject),g=function(t){var r=t.children,n=s(o().useState([]),2),i=n[0],a=n[1];h=function(){a([]),f.current=[]};var d,f=o().useRef([]),g=function(t){i[t]&&!i[t].disCatchOnCancel&&f.current[t]?f.current[t].resolve(!1):f.current[t]&&f.current[t].resolve(!0),v(t),b(t)},y=(d=e().mark((function t(r){var o,n,a;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=i&&i[r]&&i[r].checkFunction,n=!0,!o){t.next=6;break}return t.next=5,o();case 5:n=t.sent;case 6:if(n){t.next=8;break}return t.abrupt("return");case 8:v(r),a=f.current[r],b(r,a);case 11:case"end":return t.stop()}}),t)})),function(){var t=this,e=arguments;return new Promise((function(r,o){var n=d.apply(t,e);function i(t){l(n,r,o,i,a,"next",t)}function a(t){l(n,r,o,i,a,"throw",t)}i(void 0)}))}),b=function(t,e){setTimeout((function(){e&&e.resolve(!0),a((function(e){return e.splice(t,1),f.current.splice(t,1),p(e)}))}),200)},v=function(t){var e=document.querySelectorAll(".function-modal .MuiDialog-container")[t];e&&(e.style.opacity="0")};return o().createElement(o().Fragment,null,o().createElement(m.Provider,{value:function(t){return a((function(e){return e.push(t),p(e)})),new Promise((function(t,e){f.current.push({resolve:t,reject:e})}))},children:r}),i&&i.map((function(t,e){return o().createElement(c,u({key:"modal-item-".concat(e),listIndex:e,open:Boolean(t),onSubmit:y,onClose:g},t))})))},y=function(){return h},b=function(){return o().useContext(m)}}(),f}()}));
|
|
1
|
+
!function(o,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("@material-ui/core/styles"),require("@material-ui/core"),require("@para-ui/icons/LoadingF"),require("@para-ui/icons/Close"),require("@para-ui/icons/CloseCircleF"),require("@para-ui/icons/CheckCircleF"),require("react-dom"),require("@para-ui/icons/WarningCircle")):"function"==typeof define&&define.amd?define(["react","@material-ui/core/styles","@material-ui/core","@para-ui/icons/LoadingF","@para-ui/icons/Close","@para-ui/icons/CloseCircleF","@para-ui/icons/CheckCircleF","react-dom","@para-ui/icons/WarningCircle"],e):"object"==typeof exports?exports.ParaUI=e(require("react"),require("@material-ui/core/styles"),require("@material-ui/core"),require("@para-ui/icons/LoadingF"),require("@para-ui/icons/Close"),require("@para-ui/icons/CloseCircleF"),require("@para-ui/icons/CheckCircleF"),require("react-dom"),require("@para-ui/icons/WarningCircle")):o.ParaUI=e(o.react,o["@material-ui/core/styles"],o["@material-ui/core"],o["@para-ui/icons/LoadingF"],o["@para-ui/icons/Close"],o["@para-ui/icons/CloseCircleF"],o["@para-ui/icons/CheckCircleF"],o["react-dom"],o["@para-ui/icons/WarningCircle"])}(self,(function(o,e,t,r,n,i,a,l,c){return function(){var s={4927:function(o,e,t){"use strict";function r(o){var e,t,n="";if("string"==typeof o||"number"==typeof o)n+=o;else if("object"==typeof o)if(Array.isArray(o))for(e=0;e<o.length;e++)o[e]&&(t=r(o[e]))&&(n&&(n+=" "),n+=t);else for(e in o)o[e]&&(n&&(n+=" "),n+=e);return n}function n(){for(var o,e,t=0,n="";t<arguments.length;)(o=arguments[t++])&&(e=r(o))&&(n&&(n+=" "),n+=e);return n}t.d(e,{Z:function(){return n}})},1765:function(o,e,t){(e=t(9937)(!1)).push([o.id,'.function-modal-default [class*="makeStyles-md"]{width:440px;height:auto;max-height:initial}\n',""]),o.exports=e},9937:function(o){"use strict";o.exports=function(o){var e=[];return e.toString=function(){return this.map((function(e){var t=function(o,e){var t=o[1]||"",r=o[3];if(!r)return t;if(e&&"function"==typeof btoa){var n=(a=r,l=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),"/*# ".concat(c," */")),i=r.sources.map((function(o){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(o," */")}));return[t].concat(i).concat([n]).join("\n")}var a,l,c;return[t].join("\n")}(e,o);return e[2]?"@media ".concat(e[2]," {").concat(t,"}"):t})).join("")},e.i=function(o,t,r){"string"==typeof o&&(o=[[null,o,""]]);var n={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(n[a]=!0)}for(var l=0;l<o.length;l++){var c=[].concat(o[l]);r&&n[c[0]]||(t&&(c[2]?c[2]="".concat(t," and ").concat(c[2]):c[2]=t),e.push(c))}},e}},4126:function(o){"use strict";
|
|
2
|
+
/*
|
|
3
|
+
object-assign
|
|
4
|
+
(c) Sindre Sorhus
|
|
5
|
+
@license MIT
|
|
6
|
+
*/var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(o){if(null==o)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(o)}o.exports=function(){try{if(!Object.assign)return!1;var o=new String("abc");if(o[5]="de","5"===Object.getOwnPropertyNames(o)[0])return!1;for(var e={},t=0;t<10;t++)e["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(e).map((function(o){return e[o]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(o){r[o]=o})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(o){return!1}}()?Object.assign:function(o,i){for(var a,l,c=n(o),s=1;s<arguments.length;s++){for(var u in a=Object(arguments[s]))t.call(a,u)&&(c[u]=a[u]);if(e){l=e(a);for(var d=0;d<l.length;d++)r.call(a,l[d])&&(c[l[d]]=a[l[d]])}}return c}},9524:function(o,e,t){"use strict";
|
|
7
|
+
/** @license React v17.0.2
|
|
8
|
+
* react-jsx-runtime.production.min.js
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
11
|
+
*
|
|
12
|
+
* This source code is licensed under the MIT license found in the
|
|
13
|
+
* LICENSE file in the root directory of this source tree.
|
|
14
|
+
*/t(4126);var r=t(9297),n=60103;if(e.Fragment=60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;n=i("react.element"),e.Fragment=i("react.fragment")}var a=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l=Object.prototype.hasOwnProperty,c={key:!0,ref:!0,__self:!0,__source:!0};function s(o,e,t){var r,i={},s=null,u=null;for(r in void 0!==t&&(s=""+t),void 0!==e.key&&(s=""+e.key),void 0!==e.ref&&(u=e.ref),e)l.call(e,r)&&!c.hasOwnProperty(r)&&(i[r]=e[r]);if(o&&o.defaultProps)for(r in e=o.defaultProps)void 0===i[r]&&(i[r]=e[r]);return{$$typeof:n,type:o,key:s,ref:u,props:i,_owner:a.current}}e.jsx=s,e.jsxs=s},7712:function(o,e,t){"use strict";o.exports=t(9524)},860:function(o,e,t){var r=t(2387),n=t(1765);"string"==typeof(n=n.__esModule?n.default:n)&&(n=[[o.id,n,""]]);var i={insert:"head",singleton:!1};r(n,i);o.exports=n.locals||{}},2387:function(o,e,t){"use strict";var r,n=function(){return void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r},i=function(){var o={};return function(e){if(void 0===o[e]){var t=document.querySelector(e);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(o){t=null}o[e]=t}return o[e]}}(),a=[];function l(o){for(var e=-1,t=0;t<a.length;t++)if(a[t].identifier===o){e=t;break}return e}function c(o,e){for(var t={},r=[],n=0;n<o.length;n++){var i=o[n],c=e.base?i[0]+e.base:i[0],s=t[c]||0,u="".concat(c," ").concat(s);t[c]=s+1;var d=l(u),p={css:i[1],media:i[2],sourceMap:i[3]};-1!==d?(a[d].references++,a[d].updater(p)):a.push({identifier:u,updater:m(p,e),references:1}),r.push(u)}return r}function s(o){var e=document.createElement("style"),r=o.attributes||{};if(void 0===r.nonce){var n=t.nc;n&&(r.nonce=n)}if(Object.keys(r).forEach((function(o){e.setAttribute(o,r[o])})),"function"==typeof o.insert)o.insert(e);else{var a=i(o.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var u,d=(u=[],function(o,e){return u[o]=e,u.filter(Boolean).join("\n")});function p(o,e,t,r){var n=t?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(o.styleSheet)o.styleSheet.cssText=d(e,n);else{var i=document.createTextNode(n),a=o.childNodes;a[e]&&o.removeChild(a[e]),a.length?o.insertBefore(i,a[e]):o.appendChild(i)}}function f(o,e,t){var r=t.css,n=t.media,i=t.sourceMap;if(n?o.setAttribute("media",n):o.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),o.styleSheet)o.styleSheet.cssText=r;else{for(;o.firstChild;)o.removeChild(o.firstChild);o.appendChild(document.createTextNode(r))}}var h=null,b=0;function m(o,e){var t,r,n;if(e.singleton){var i=b++;t=h||(h=s(e)),r=p.bind(null,t,i,!1),n=p.bind(null,t,i,!0)}else t=s(e),r=f.bind(null,t,e),n=function(){!function(o){if(null===o.parentNode)return!1;o.parentNode.removeChild(o)}(t)};return r(o),function(e){if(e){if(e.css===o.css&&e.media===o.media&&e.sourceMap===o.sourceMap)return;r(o=e)}else n()}}o.exports=function(o,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=n());var t=c(o=o||[],e);return function(o){if(o=o||[],"[object Array]"===Object.prototype.toString.call(o)){for(var r=0;r<t.length;r++){var n=l(t[r]);a[n].references--}for(var i=c(o,e),s=0;s<t.length;s++){var u=l(t[s]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}t=i}}}},5794:function(o,e,t){"use strict";var r=t(7712),n=t(9297),i=t(1731),a=t(8604),l=t(4927),c=t(1102),s=t.n(c),u=t(853),d=function(){return d=Object.assign||function(o){for(var e,t=1,r=arguments.length;t<r;t++)for(var n in e=arguments[t])Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o},d.apply(this,arguments)},p=function(o,e){var t={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(t[r]=o[r]);if(null!=o&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(o);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(o,r[n])&&(t[r[n]]=o[r[n]])}return t},f=(0,u.Z)(),h=(0,a.makeStyles)((function(o){return(0,a.createStyles)({"@keyframes loadingCircle":{"100%":{transform:"rotate(1turn)"}},radius:{borderRadius:15},btnIcon:{"& .btn-icon":{display:"inline-flex",alignItems:"center"},"& .btn-icon svg":{color:"currentColor"}},outlinedBtn:{"& .btn-icon svg":{color:f.thmemColor.primary},"&:disabled":{"& .btn-icon svg":{color:"currentColor"}}},iconButtonToolTip:{display:"inline-block",cursor:"not-allowed","& .iconButton-disabled":{cursor:"not-allowed",pointerEvents:"none"}},loadingBtn:{position:"relative",pointerEvents:"none","&:before":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:1,transition:"opacity .2s",pointerEvents:"none"},"& .loading-icon":{animation:"$loadingCircle 1s infinite linear"}}})})),b=(0,a.withStyles)((function(o){return{tooltip:{margin:"6px 0",backgroundColor:f.bgBorderColor.bg4}}}))(i.Tooltip),m=function(o){var e=h(),t=o.radius,a=o.className,c=o.disabled,u=void 0!==c&&c,f=o.children,b=o.startIcon,m=o.endIcon,g=o.loading,v=void 0!==g&&g,x=p(o,["radius","className","disabled","children","startIcon","endIcon","loading"]);"text"===x.variant&&(x.disableRipple=!0);var y=(0,n.useState)(!1),C=y[0],w=y[1];return(0,n.useEffect)((function(){w(!!v)}),[v]),(0,r.jsx)(i.Button,d({disabled:u,className:(0,l.Z)("paraui-button",a,e.btnIcon,t&&e.radius,"outlined"===x.variant&&e.outlinedBtn,C&&e.loadingBtn),startIcon:function(){if(!C)return(0,r.jsx)("span",d({className:"btn-icon"},{children:b}),void 0);if("object"==typeof v){var o=v.delay||0;setTimeout((function(){return w(!1)}),o)}return(0,r.jsx)("span",d({className:"btn-icon loading-icon"},{children:(0,r.jsx)(s(),{},void 0)}),void 0)}(),endIcon:(0,r.jsx)("span",d({className:"btn-icon"},{children:m}),void 0)},x,{children:f}),void 0)};m.IconButton=function(o){var e=h(),t=o.showToolTip,a=void 0===t||t,c=o.toolTipTitle,u=void 0===c?"":c,f=o.children,m=o.className,g=o.disabled,v=void 0!==g&&g,x=o.loading,y=void 0!==x&&x,C=o.TooltipProps,w=p(o,["showToolTip","toolTipTitle","children","className","disabled","loading","TooltipProps"]),S=(0,n.useState)(!1),j=S[0],F=S[1],O=(0,r.jsx)(i.IconButton,d({},w,{disabled:v,disableRipple:!0,className:(0,l.Z)("paraui-icon-button",m,a&&v&&"iconButton-disabled",j&&e.loadingBtn)},{children:function(){if(!j)return f;if("object"==typeof y){var o=y.delay||0;setTimeout((function(){return F(!1)}),o)}return(0,r.jsx)("span",d({className:"loading-icon"},{children:(0,r.jsx)(s(),{},void 0)}),void 0)}()}),void 0);return(0,n.useEffect)((function(){F(!!y)}),[y]),a?(0,r.jsx)(b,d({title:u},C,{children:(0,r.jsx)("span",d({className:(0,l.Z)(v&&e.iconButtonToolTip)},{children:O}),void 0)}),void 0):O},e.default=m},6568:function(o,e,t){"use strict";t.d(e,{default:function(){return k}});var r=t(7712),n=t(9297),i=t(8604),a=t(1731),l=t(5794),c=t(19),s=t.n(c),u=t(20),d=t.n(u),p=t(3285),f=t.n(p),h=t(4927),b=(t(2268),t(6897)),m=t.n(b),g=t(853),v=(t(956),(0,g.Z)()),x=((0,r.jsx)(f(),{},void 0),(0,r.jsx)(m(),{},void 0),(0,r.jsx)(m(),{},void 0),(0,r.jsx)(d(),{},void 0),(0,r.jsx)(m(),{},void 0),{success:v.stateColor.success,warn:v.stateColor.warning,warning:v.stateColor.warning,error:v.stateColor.error,info:v.stateColor.info}),y=((0,a.makeStyles)((function(o){return(0,a.createStyles)({modalPaper:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",outline:"none","& .confirm-wrapper":{position:"relative",width:function(o){return o.width},padding:"32px 32px 24px 32px","& .confirm-close":{position:"absolute",right:20,top:20,"& svg":{fontSize:20}},"& .confirm-icon":{float:"left",marginRight:"16px",marginTop:function(o){return o.title?"2px":"1px"},color:function(o){return x[o.type]},"& svg":{color:"currentColor"}},"& .confirm-body":{overflow:"hidden","& span":{display:"block",color:v.textColor.primary,fontSize:14,fontWeight:700,marginBottom:8},"& div":{color:v.textColor.primary,fontSize:12,marginLeft:1}},"& .confirm-btns":{marginTop:24,textAlign:"right","& button":{minWidth:50,padding:0,marginLeft:10},"& svg.action-icon":{fontSize:16,"&.action-icon-cancel":{color:v.textColor.thirdary}}}}}})})),function(){return y=Object.assign||function(o){for(var e,t=1,r=arguments.length;t<r;t++)for(var n in e=arguments[t])Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o},y.apply(this,arguments)}),C=function(o,e){var t={};for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&e.indexOf(r)<0&&(t[r]=o[r]);if(null!=o&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(o);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(o,r[n])&&(t[r[n]]=o[r[n]])}return t},w=(0,g.Z)(),S=(0,i.withStyles)((function(){return(0,i.createStyles)({root:{height:"40px",padding:"0 20px",backgroundColor:w.bgBorderColor.bg2,"& h6":{fontWeight:700,fontSize:12,lineHeight:"40px"},"& .close-btn":{position:"absolute",right:20,top:10,color:w.bgBorderColor.bg4,"& svg":{fontSize:20,color:"currentColor"}}}})}))((function(o){var e=o.children,t=o.onClose,n=o.classes;return(0,r.jsxs)(a.DialogTitle,y({disableTypography:!0,className:n.root},{children:[(0,r.jsx)(a.Typography,y({variant:"h6"},{children:e}),void 0),t?(0,r.jsx)(l.default.IconButton,y({onClick:t,className:"close-btn",showToolTip:!1},{children:(0,r.jsx)(s(),{},void 0)}),void 0):null]}),void 0)})),j=(0,i.withStyles)((function(){return{root:{maxHeight:"800px",padding:"8px 20px"}}}))(a.DialogContent),F=(0,i.withStyles)((function(o){return{root:{height:50,padding:"0 18px",borderTop:"1px solid "+w.bgBorderColor.line1,"& > button:not(:first-child)":{marginLeft:20},"& > button":{color:w.textColor.primary,"& .btn-icon svg":{color:w.thmemColor.primary},"&.text-btn":{marginLeft:0}}}}}))(a.DialogActions),O=(0,i.makeStyles)((function(){return(0,i.createStyles)({sm:{width:"360px",maxHeight:"220px"},md:{width:"440px",maxHeight:"460px"},lg:{width:"840px",maxHeight:"540px"},customizeSize:function(o){return o?{width:o.width,maxHeight:o.height}:{}},auto:{width:"auto"},fullScreen:{width:"100%"},actionWrapper:{"& svg.action-icon":{fontSize:16,"&.action-icon-cancel":{color:w.textColor.thirdary}}},content:{maxHeight:"none"}})})),k=function(o){var e=o.open,t=void 0!==e&&e,i=o.title,c=void 0===i?"":i,s=o.children,u=void 0===s?null:s,p=o.actions,b=void 0===p?null:p,m=o.showActions,g=void 0===m||m,v=o.onOk,x=o.onCancel,w=o.okText,k=o.cancelText,E=o.okButtonProps,T=o.cancelButtonProps,z=o.showCancel,B=void 0===z||z,P=o.className,N=o.size,I=void 0===N?"auto":N,D=o.disableBackdropClick,L=void 0===D||D,M=o.disableEscapeKeyDown,$=void 0===M||M,R=o.disableEnforceFocus,W=void 0===R||R,_=o.fullScreen,q=void 0!==_&&_,A=o.customizeSize,Z=C(o,["open","title","children","actions","showActions","onOk","onCancel","okText","cancelText","okButtonProps","cancelButtonProps","showCancel","className","size","disableBackdropClick","disableEscapeKeyDown","disableEnforceFocus","fullScreen","customizeSize"]),H=(0,n.useState)(!1),U=H[0],K=H[1],Y=O(A||{}),G=q||"fullScreen"===I,J=function(){K(!1),null==x||x()},V=function(){null==v||v()};(0,n.useEffect)((function(){K(t)}),[t]);var Q;return(0,r.jsxs)(a.Dialog,y({className:(0,h.Z)("modal-presentation","paraui-modal",P),scroll:"paper",onClose:function(o,e){L||J()},open:U,maxWidth:!1,disableEscapeKeyDown:$,disableEnforceFocus:W,fullScreen:G},Z,{classes:(Q=I,A&&(Q="customizeSize"),G?{}:{paper:Y[Q]})},{children:[(0,r.jsx)(S,y({onClose:J},{children:c}),void 0),(0,r.jsx)(j,y({className:(0,h.Z)(G&&Y.content)},{children:u}),void 0),g?b?(0,r.jsx)(F,y({className:Y.actionWrapper},{children:b}),void 0):(0,r.jsxs)(F,y({className:Y.actionWrapper},{children:[B&&(0,r.jsx)(l.default,y({onClick:J,variant:"outlined",color:"primary",startIcon:(0,r.jsx)(d(),{className:"action-icon action-icon-cancel"},void 0)},T,{children:k||"取消"}),void 0),(0,r.jsx)(l.default,y({variant:"outlined",color:"primary",onClick:V,startIcon:(0,r.jsx)(f(),{className:"action-icon"},void 0)},E,{className:(0,h.Z)("text"===(null==E?void 0:E.variant)&&"text-btn")},{children:w||"完成"}),void 0)]}),void 0):null]}),void 0)}},956:function(o,e,t){"use strict";t.d(e,{default:function(){return S}});var r=t(7712),n=t(8604),i=t(853),a=(0,i.Z)(),l={root:{minWidth:84,height:30,textTransform:"none",color:a.textColor.primary,lineHeight:"normal"},disabled:{},label:{},text:{padding:"7px 20px","&:hover":{backgroundColor:"transparent",color:a.thmemColor.secondary},"&$disabled":{color:a.textColor.secondary,pointerEvents:"auto",cursor:"not-allowed"}},textPrimary:{"&:hover":{backgroundColor:"transparent",color:a.thmemColor.secondary},"&$disabled":{color:a.textColor.secondary,pointerEvents:"auto",cursor:"not-allowed"}},textSecondary:{color:a.textColor.secondary},outlined:{padding:"7px 20px",color:a.textColor.primary,boxShadow:a.buttonShadow,border:0,backgroundColor:a.textColor.white,"&$disabled":{color:a.textColor.secondary,padding:"7px 20px",border:0,pointerEvents:"auto",cursor:"not-allowed"},"&:hover":{color:a.thmemColor.primary,backgroundColor:a.textColor.white,border:0,"&$disabled":{color:a.textColor.secondary,padding:"7px 20px",backgroundColor:a.textColor.white,border:0,pointerEvents:"auto",cursor:"not-allowed"}}},outlinedPrimary:{padding:"7px 20px",color:a.textColor.primary,border:0,"&$disabled":{color:a.textColor.secondary,padding:"7px 20px",border:0,pointerEvents:"auto",cursor:"not-allowed"},"&:hover":{color:a.thmemColor.primary,backgroundColor:a.textColor.white,border:0,"&$disabled":{color:a.textColor.secondary,padding:"7px 20px",backgroundColor:a.textColor.white,border:0,pointerEvents:"auto",cursor:"not-allowed"}}},outlinedSecondary:{padding:"7px 20px",color:a.textColor.secondary,border:0,"&$disabled":{color:a.textColor.secondary,padding:"7px 20px",border:0,pointerEvents:"auto",cursor:"not-allowed"},"&:hover":{color:a.thmemColor.primary,backgroundColor:a.textColor.white,border:0,"&$disabled":{color:a.textColor.secondary,padding:"7px 20px",backgroundColor:a.textColor.white,border:0,pointerEvents:"auto",cursor:"not-allowed"}}},contained:{padding:"7px 20px",backgroundColor:a.thmemColor.primary,color:a.textColor.white,boxShadow:a.buttonShadow,"&$disabled":{color:a.textColor.white,backgroundColor:a.textColor.secondary,pointerEvents:"auto",cursor:"not-allowed"},"&:hover":{color:a.thmemColor.thirdary,backgroundColor:a.thmemColor.primary,boxShadow:a.buttonShadow,"&$disabled":{color:a.textColor.white,backgroundColor:a.textColor.secondary,pointerEvents:"auto",cursor:"not-allowed"}}},containedPrimary:{"&$disabled":{color:a.textColor.white,backgroundColor:a.textColor.secondary,pointerEvents:"auto",cursor:"not-allowed"},"&:hover":{color:a.thmemColor.thirdary,backgroundColor:a.thmemColor.primary,boxShadow:a.buttonShadow,"&$disabled":{color:a.textColor.white,backgroundColor:a.textColor.secondary,boxShadow:"none"}}},containedSecondary:{},textSizeSmall:{},textSizeLarge:{},outlinedSizeSmall:{height:24,padding:"7px 20px"},outlinedSizeLarge:{height:36,padding:"7px 20px"},containedSizeSmall:{height:24,padding:"7px 20px"},containedSizeLarge:{height:36,padding:"7px 20px"},sizeSmall:{},sizeLarge:{},startIcon:{},endIcon:{},iconSizeSmall:{},iconSizeMedium:{},iconSizeLarge:{}},c={root:{padding:0,"&:hover":{backgroundColor:"transparent"},"&$disabled":{color:a.textColor.thirdary,pointerEvents:"auto",cursor:"not-allowed"}},colorPrimary:{"&:hover":{backgroundColor:"transparent"},"&$disabled":{color:a.textColor.thirdary,pointerEvents:"auto",cursor:"not-allowed"}},colorSecondary:{"&:hover":{backgroundColor:"transparent"},"&$disabled":{color:a.textColor.thirdary,pointerEvents:"auto",cursor:"not-allowed"}},disabled:{}},s=(0,i.Z)(),u={root:{display:"inline-block",padding:"0 8px"},ol:{flexWrap:"nowrap"},li:{"& a":{whiteSpace:"nowrap",fontSize:s.standardFont.standardFont1.fontSize,color:s.textColor.secondary,"&:hover":{textDecoration:"none",color:s.thmemColor.primary},"& svg":{fontSize:s.standardFont.standardFont1.fontSize,position:"relative",top:"1px",marginRight:"4px"}},"& .current-breadcrumbs":{fontWeight:"700",color:s.textColor.primary},"& .more-breadcrumbs":{"& svg":{fontSize:s.standardFont.standardFont1.fontSize,position:"relative",top:"2px"}}},separator:{marginLeft:"4px",marginRight:"4px"}},d=(0,i.Z)(),p={vertical:{padding:"8px 0"},alternativeLabel:{top:15,left:"calc(-50% + 15px)",right:"calc(50% + 15px)",margin:"0 10px"},active:{"& $line":{border:0,height:1,backgroundColor:d.bgBorderColor.line1}},completed:{"& $line":{border:0,height:1,backgroundColor:d.bgBorderColor.line1}},line:{borderColor:d.bgBorderColor.line1,borderRadius:1,borderTopStyle:"dashed"},lineHorizontal:{borderTopStyle:"dashed"},lineVertical:{minHeight:100,borderTop:0,borderLeftStyle:"dashed"}},f={label:{color:d.textColor.secondary,"&$active":{color:d.thmemColor.primary},"&$completed":{color:d.textColor.secondary},"&$alternativeLabel":{marginTop:"8px"}}},h=function(){return h=Object.assign||function(o){for(var e,t=1,r=arguments.length;t<r;t++)for(var n in e=arguments[t])Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o},h.apply(this,arguments)},b=(0,i.Z)(),m={root:{position:"relative",boxSizing:"border-box",minHeight:"auto","&:before":{content:'""',position:"absolute",right:0,left:0,bottom:0,borderBottom:"1px solid "+b.bgBorderColor.line1}},vertical:{"&:before":{right:0,top:0,bottom:0,borderBottom:0,borderRight:"1px solid "+b.bgBorderColor.line1}},indicator:{display:"flex",justifyContent:"center",backgroundColor:"transparent",height:1,"& > span":{maxWidth:40,width:"100%",backgroundColor:b.thmemColor.primary}}},g={root:h(h({position:"relative",height:30,minHeight:"auto",minWidth:"auto",textTransform:"none",overflow:"visible"},b.standardFont.standardFont1),{color:b.textColor.secondary,"&$selected":h({},b.standardFont.standardFont2)})},v=function(){return v=Object.assign||function(o){for(var e,t=1,r=arguments.length;t<r;t++)for(var n in e=arguments[t])Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o},v.apply(this,arguments)},x=(0,i.Z)(),y={palette:{primary:{main:x.thmemColor.primary},secondary:{main:x.thmemColor.secondary},success:{main:x.stateColor.success},info:{main:x.stateColor.info},warning:{main:x.stateColor.warning},error:{main:x.stateColor.error}},typography:{fontFamily:x.fontFamily.zh,fontSize:x.fontSize},shape:{borderRadius:x.borderRadius},overrides:{MuiCssBaseline:{"@global":{body:v({fontFamily:x.fontFamily.zh,color:x.textColor.primary},x.standardFont.standardFont1),ul:{margin:0,listStyle:"none"},a:{cursor:"pointer",textDecoration:"none",outline:"none"}}},MuiButton:l,MuiIconButton:c,MuiBreadcrumbs:u,MuiStepConnector:p,MuiStepLabel:f,MuiTabs:m,MuiTab:g}},C=t(1731),w=function(){return w=Object.assign||function(o){for(var e,t=1,r=arguments.length;t<r;t++)for(var n in e=arguments[t])Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o},w.apply(this,arguments)},S=function(o){var e,t=(0,n.createGenerateClassName)({seed:o.seed||"",productionPrefix:o.productionPrefix||"paraui"});return e=o.theme?(0,n.createMuiTheme)(w(w({},y),o.theme)):(0,n.createMuiTheme)(y),(0,r.jsx)(n.StylesProvider,w({generateClassName:t},{children:(0,r.jsxs)(n.ThemeProvider,w({theme:e},{children:[(0,r.jsx)(C.CssBaseline,{},void 0),o.children]}),void 0)}),void 0)}},853:function(o,e){"use strict";var t={thmemColor:{primary:"#3D66F8",secondary:"#7E98F5",thirdary:"#D6DFFD"},textColor:{primary:"#191919",secondary:"#6E7488",thirdary:"#BBBECB",white:"#FFFFFF"},bgBorderColor:{bg1:"#DCDDE3",bg2:"#F5F5F5",bg3:"#EDEDED",bg4:"#6E7488",line1:"#E5E9EF",universal:"#FFFFFF"},stateColor:{info:"#3D66F8",success:"#41D658",warning:"#FFA150",error:"#F46B53"},gradientColor:{gradient1:"linear-gradient(#3D66F8, #4F93F0)",gradient2:"linear-gradient(#0093FF, #4EB4FF)",gradient3:"linear-gradient(#844EFF, #A796FF)",gradient4:"linear-gradient(#FD7300, #FFBF69)",gradient5:"linear-gradient(#3D66F8, #D8DFFA)"},fontFamily:{zh:"Microsoft Yahei, Helvetica, sans-serif",en:"Microsoft Yahei, Helvetica, sans-serif"},fontSize:12,borderRadius:4,boxShadow:"4px 4px 6px rgba(70,75,105,0.2), -4px -4px 6px rgba(0,0,0,0.06)",buttonShadow:"4px 4px 6px rgba(70,75,105,0.1), -4px -4px 6px rgba(0,0,0,0.03)",standardFont:{standardFont1:{fontSize:"12px",fontWeight:"400"},standardFont2:{fontSize:"12px",fontWeight:"700"}},titleFont:{titleFont1:{fontSize:"14px",fontWeight:"400"},titleFont2:{fontSize:"14px",fontWeight:"700"}},visualLargeFont:{visualLargeFont1:{fontSize:"40px",fontWeight:"700"},visualLargeFont2:{fontSize:"40px",fontWeight:"700"}}};e.Z=function(){return t}},1731:function(o){"use strict";o.exports=t},8604:function(o){"use strict";o.exports=e},3285:function(o){"use strict";o.exports=a},19:function(o){"use strict";o.exports=n},20:function(o){"use strict";o.exports=i},1102:function(o){"use strict";o.exports=r},6897:function(o){"use strict";o.exports=c},9297:function(e){"use strict";e.exports=o},2268:function(o){"use strict";o.exports=l}},u={};function d(o){var e=u[o];if(void 0!==e)return e.exports;var t=u[o]={id:o,exports:{}};return s[o](t,t.exports,d),t.exports}d.n=function(o){var e=o&&o.__esModule?function(){return o.default}:function(){return o};return d.d(e,{a:e}),e},d.d=function(o,e){for(var t in e)d.o(e,t)&&!d.o(o,t)&&Object.defineProperty(o,t,{enumerable:!0,get:e[t]})},d.o=function(o,e){return Object.prototype.hasOwnProperty.call(o,e)},d.r=function(o){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var p={};return function(){"use strict";d.r(p),d.d(p,{FunctionModalProvider:function(){return b},default:function(){return g},useClose:function(){return m}});var o,e=d(7712),t=d(9297),r=d.n(t),n=d(6568),i=d(4927),a=(d(860),function(){return a=Object.assign||function(o){for(var e,t=1,r=arguments.length;t<r;t++)for(var n in e=arguments[t])Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o},a.apply(this,arguments)}),l=function(o){var t=o.open,l=o.title,c=o.size,s=o.context,u=o.content,d=o.onSubmit,p=o.onClose,f=o.getClose,h=o.listIndex,b=o.ModalProps;return r().useEffect((function(){f&&f((function(){return p(h)}))}),[f,h,p]),(0,e.jsx)(n.default,a({},b,{className:(0,i.Z)("function-modal",!c&&"function-modal-default"),open:t,title:l,onCancel:function(){return p(h)},onOk:function(){return d(h)},size:c||"md",children:u||s,okButtonProps:{onClick:function(){return d(h)}},cancelButtonProps:{onClick:function(){return p(h)}}}),void 0)},c=function(){return c=Object.assign||function(o){for(var e,t=1,r=arguments.length;t<r;t++)for(var n in e=arguments[t])Object.prototype.hasOwnProperty.call(e,n)&&(o[n]=e[n]);return o},c.apply(this,arguments)},s=function(o,e,t,r){return new(t||(t=Promise))((function(n,i){function a(o){try{c(r.next(o))}catch(o){i(o)}}function l(o){try{c(r.throw(o))}catch(o){i(o)}}function c(o){var e;o.done?n(o.value):(e=o.value,e instanceof t?e:new t((function(o){o(e)}))).then(a,l)}c((r=r.apply(o,e||[])).next())}))},u=function(o,e){var t,r,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(t)throw new TypeError("Generator is already executing.");for(;a;)try{if(t=1,r&&(n=2&i[0]?r.return:i[0]?r.throw||((n=r.return)&&n.call(r),0):r.next)&&!(n=n.call(r,i[1])).done)return n;switch(r=0,n&&(i=[2&i[0],n.value]),i[0]){case 0:case 1:n=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(n=a.trys,(n=n.length>0&&n[n.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!n||i[1]>n[0]&&i[1]<n[3])){a.label=i[1];break}if(6===i[0]&&a.label<n[1]){a.label=n[1],n=i;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(i);break}n[2]&&a.ops.pop(),a.trys.pop();continue}i=e.call(o,a)}catch(o){i=[6,o],r=0}finally{t=n=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}},f=function(o,e,t){if(t||2===arguments.length)for(var r,n=0,i=e.length;n<i;n++)!r&&n in e||(r||(r=Array.prototype.slice.call(e,0,n)),r[n]=e[n]);return o.concat(r||Array.prototype.slice.call(e))},h=r().createContext(Promise.reject),b=function(t){var n=t.children,i=r().useState([]),a=i[0],d=i[1];o=function(){d([]),p.current=[]};var p=r().useRef([]),b=function(o){a[o]&&!a[o].disCatchOnCancel&&p.current[o]?p.current[o].resolve(!1):p.current[o]&&p.current[o].resolve(!0),v(o),g(o)},m=function(o){return s(void 0,void 0,void 0,(function(){var e,t,r;return u(this,(function(n){switch(n.label){case 0:return e=a&&a[o]&&a[o].checkFunction,t=!0,e?[4,e()]:[3,2];case 1:t=n.sent(),n.label=2;case 2:return t?(v(o),r=p.current[o],g(o,r),[2]):[2]}}))}))},g=function(o,e){setTimeout((function(){e&&e.resolve(!0),d((function(e){return e.splice(o,1),p.current.splice(o,1),f([],e,!0)}))}),200)},v=function(o){var e=document.querySelectorAll(".function-modal .MuiDialog-container")[o];e&&(e.style.opacity="0")};return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(h.Provider,{value:function(o){return d((function(e){return e.push(o),f([],e,!0)})),new Promise((function(o,e){p.current.push({resolve:o,reject:e})}))},children:n},void 0),a&&a.map((function(o,t){return(0,e.jsx)(l,c({listIndex:t,open:Boolean(o),onSubmit:m,onClose:b},o),"modal-item-"+t)}))]},void 0)},m=function(){return o},g=function(){return r().useContext(h)}}(),p}()}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { modalOptions } from "./dialog";
|
|
2
|
+
/**
|
|
3
|
+
* 弹出框组件
|
|
4
|
+
* @param context 主体内容
|
|
5
|
+
* @param title 弹出框标题
|
|
6
|
+
* @param hideClose 隐藏右上角关闭图标 boolean 默认 false
|
|
7
|
+
* @param checkFunction 检查方法,返回 boolean 值,true则关闭弹窗,false反之
|
|
8
|
+
**/
|
|
9
|
+
export declare const useModal: () => (options: modalOptions) => Promise<boolean>;
|
|
10
|
+
/**
|
|
11
|
+
* 函数弹窗组件Provider
|
|
12
|
+
*/
|
|
13
|
+
export declare const FunctionModalProvider: ({ children }: any) => JSX.Element;
|
|
14
|
+
export declare const useClose: () => Function;
|
package/Help/index.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @author Hanz
|
|
3
|
+
* @date 2021/8/27 下午1:29
|
|
4
|
+
* @description help
|
|
5
|
+
*/
|
|
6
|
+
import React, { FunctionComponent } from 'react';
|
|
7
|
+
export interface HelpProps {
|
|
8
|
+
title: NonNullable<React.ReactNode>;
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
arrow?: boolean;
|
|
11
|
+
interactive?: boolean;
|
|
12
|
+
leaveDelay?: number;
|
|
13
|
+
placement?: 'bottom-end' | 'bottom-start' | 'bottom' | 'left-end' | 'left-start' | 'left' | 'right-end' | 'right-start' | 'right' | 'top-end' | 'top-start' | 'top';
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
declare const Help: FunctionComponent<HelpProps>;
|
|
17
|
+
export default Help;
|
package/Help/index.js
CHANGED
|
@@ -1 +1,16 @@
|
|
|
1
|
-
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("@material-ui/core"),require("@para-ui/icons/Help")):"function"==typeof define&&define.amd?define(["react","@material-ui/core","@para-ui/icons/Help"],r):"object"==typeof exports?exports.ParaUI=r(require("react"),require("@material-ui/core"),require("@para-ui/icons/Help")):e.ParaUI=r(e.react,e["@material-ui/core"],e["@para-ui/icons/Help"])}(self,(function(e,r,t){return function(){"use strict";var n={4927:function(e,r,t){function n(e){var r,t,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(t=n(e[r]))&&(o&&(o+=" "),o+=t);else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function o(){for(var e,r,t=0,o="";t<arguments.length;)(e=arguments[t++])&&(r=n(e))&&(o&&(o+=" "),o+=r);return o}t.d(r,{Z:function(){return o}})},
|
|
1
|
+
!function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("@material-ui/core"),require("@para-ui/icons/Help")):"function"==typeof define&&define.amd?define(["react","@material-ui/core","@para-ui/icons/Help"],r):"object"==typeof exports?exports.ParaUI=r(require("react"),require("@material-ui/core"),require("@para-ui/icons/Help")):e.ParaUI=r(e.react,e["@material-ui/core"],e["@para-ui/icons/Help"])}(self,(function(e,r,t){return function(){"use strict";var n={4927:function(e,r,t){function n(e){var r,t,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(r=0;r<e.length;r++)e[r]&&(t=n(e[r]))&&(o&&(o+=" "),o+=t);else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function o(){for(var e,r,t=0,o="";t<arguments.length;)(e=arguments[t++])&&(r=n(e))&&(o&&(o+=" "),o+=r);return o}t.d(r,{Z:function(){return o}})},4126:function(e){
|
|
2
|
+
/*
|
|
3
|
+
object-assign
|
|
4
|
+
(c) Sindre Sorhus
|
|
5
|
+
@license MIT
|
|
6
|
+
*/
|
|
7
|
+
var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function o(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,i){for(var a,c,u=o(e),f=1;f<arguments.length;f++){for(var l in a=Object(arguments[f]))t.call(a,l)&&(u[l]=a[l]);if(r){c=r(a);for(var p=0;p<c.length;p++)n.call(a,c[p])&&(u[c[p]]=a[c[p]])}}return u}},9524:function(e,r,t){
|
|
8
|
+
/** @license React v17.0.2
|
|
9
|
+
* react-jsx-runtime.production.min.js
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
12
|
+
*
|
|
13
|
+
* This source code is licensed under the MIT license found in the
|
|
14
|
+
* LICENSE file in the root directory of this source tree.
|
|
15
|
+
*/
|
|
16
|
+
t(4126);var n=t(9297),o=60103;if(60107,"function"==typeof Symbol&&Symbol.for){var i=Symbol.for;o=i("react.element"),i("react.fragment")}var a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,u={key:!0,ref:!0,__self:!0,__source:!0};function f(e,r,t){var n,i={},f=null,l=null;for(n in void 0!==t&&(f=""+t),void 0!==r.key&&(f=""+r.key),void 0!==r.ref&&(l=r.ref),r)c.call(r,n)&&!u.hasOwnProperty(n)&&(i[n]=r[n]);if(e&&e.defaultProps)for(n in r=e.defaultProps)void 0===i[n]&&(i[n]=r[n]);return{$$typeof:o,type:e,key:f,ref:l,props:i,_owner:a.current}}r.jsx=f},7712:function(e,r,t){e.exports=t(9524)},1731:function(e){e.exports=r},7437:function(e){e.exports=t},9297:function(r){r.exports=e}},o={};function i(e){var r=o[e];if(void 0!==r)return r.exports;var t=o[e]={exports:{}};return n[e](t,t.exports,i),t.exports}i.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(r,{a:r}),r},i.d=function(e,r){for(var t in r)i.o(r,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},i.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return function(){i.r(a);var e=i(7712),r=i(1731),t=i(7437),n=i.n(t),o=i(4927),c=function(){return c=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},c.apply(this,arguments)},u=function(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t};a.default=function(t){var i=t.title,a=void 0===i?"":i,f=t.children,l=t.arrow,p=void 0===l||l,s=t.interactive,y=void 0===s||s,d=t.className,b=u(t,["title","children","arrow","interactive","className"]);return(0,e.jsx)(r.Tooltip,c({title:a,arrow:p,interactive:y},b,{children:(0,e.jsx)("span",c({className:(0,o.Z)("paraui-help",d)},{children:f||(0,e.jsx)(n(),{},void 0)}),void 0)}),void 0)}}(),a}()}));
|