@fle-ui/next 1.0.0-alpha.12 → 1.0.0-alpha.13
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/.history/package_20211011190148.json +141 -0
- package/.history/package_20211011193053.json +141 -0
- package/dist/@fle-ui/next.css +2 -2
- package/dist/@fle-ui/next.css.map +1 -1
- package/dist/@fle-ui/next.js +1 -1
- package/dist/@fle-ui/next.min.css +2 -2
- package/dist/@fle-ui/next.min.css.map +1 -1
- package/dist/@fle-ui/next.min.js +1 -1
- package/docs-dist/components__affix__affix.md.js +701 -1
- package/docs-dist/components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~components__au~00d1741d.js +22482 -1
- package/docs-dist/components__alert__alert.md.js +942 -1
- package/docs-dist/components__anchor__anchor.md.js +789 -1
- package/docs-dist/components__auto-complete__autoComplete.md.js +1145 -1
- package/docs-dist/components__avatar__avatar.md.js +854 -1
- package/docs-dist/components__back-top__backTop.md.js +581 -1
- package/docs-dist/components__badge__badge.md.js +972 -1
- package/docs-dist/components__breadcrumb__breadcrumb.md.js +914 -1
- package/docs-dist/components__button__button.md.js +1037 -1
- package/docs-dist/components__calendar__calendar.md.js +897 -1
- package/docs-dist/components__card__card.md.js +1106 -1
- package/docs-dist/components__carousel__carousel.md.js +770 -1
- package/docs-dist/components__cascader__cascader.md.js +1378 -1
- package/docs-dist/components__checkbox__checkbox.md.js +876 -1
- package/docs-dist/components__collapse__collapse.md.js +959 -1
- package/docs-dist/components__comment__comment.md.js +586 -1
- package/docs-dist/components__config-provider__configProvider.md.js +1055 -1
- package/docs-dist/components__date-picker__date-picker.md.js +2622 -1
- package/docs-dist/components__descriptions__descriptions.md.js +863 -1
- package/docs-dist/components__divider__divider.md.js +681 -1
- package/docs-dist/components__drawer__drawer.md.js +997 -1
- package/docs-dist/components__dropdown__dropdown.md.js +1170 -1
- package/docs-dist/components__empty__empty.md.js +692 -1
- package/docs-dist/components__form__form.md.js +4099 -1
- package/docs-dist/components__grid__grid.md.js +999 -1
- package/docs-dist/components__icon__icon.md.js +739 -1
- package/docs-dist/components__image__image.md.js +745 -1
- package/docs-dist/components__input-number__inputNumber.md.js +1006 -1
- package/docs-dist/components__input__input.md.js +1579 -1
- package/docs-dist/components__layout__layout.md.js +1220 -1
- package/docs-dist/components__list__list.md.js +1255 -1
- package/docs-dist/components__mentions__mentions.md.js +943 -1
- package/docs-dist/components__menu__menu.md.js +1370 -1
- package/docs-dist/components__message__message.md.js +1223 -1
- package/docs-dist/components__modal__modal.md.js +1808 -1
- package/docs-dist/components__notification__notification.md.js +1192 -1
- package/docs-dist/components__page-header__page-header.md.js +781 -1
- package/docs-dist/components__pagination__pagination.md.js +954 -1
- package/docs-dist/components__popconfirm__popconfirm.md.js +792 -1
- package/docs-dist/components__popover__popover.md.js +665 -1
- package/docs-dist/components__progress__progress.md.js +1139 -1
- package/docs-dist/components__radio__radio.md.js +999 -1
- package/docs-dist/components__rate__rate.md.js +851 -1
- package/docs-dist/components__result__result.md.js +681 -1
- package/docs-dist/components__select__select.md.js +2081 -1
- package/docs-dist/components__slider__slider.md.js +1053 -1
- package/docs-dist/components__space__space.md.js +746 -1
- package/docs-dist/components__spin__spin.md.js +730 -1
- package/docs-dist/components__statistic__statistic.md.js +827 -1
- package/docs-dist/components__steps__steps.md.js +1097 -1
- package/docs-dist/components__switch__switch.md.js +763 -1
- package/docs-dist/components__table__table.md.js +3692 -1
- package/docs-dist/components__tabs__tabs.md.js +1213 -1
- package/docs-dist/components__tag__tag.md.js +779 -1
- package/docs-dist/components__time-picker__time-picker.md.js +1232 -1
- package/docs-dist/components__timeline__timeline.md.js +799 -1
- package/docs-dist/components__tooltip__tooltip.md.js +888 -1
- package/docs-dist/components__transfer__transfer.md.js +1226 -1
- package/docs-dist/components__tree-select__tree-select.md.js +1042 -1
- package/docs-dist/components__typography__typography.md.js +1793 -1
- package/docs-dist/components__upload__upload.md.js +1798 -1
- package/docs-dist/demos_bmurcdaerb.js +603 -1
- package/docs-dist/demos_bmurcdaerb~demos_citsitats~demos_dirg~demos_drac~demos_ecaps~demos_egami~demos_egassem~demos_e~57973d2f.chunk.css +1 -1
- package/docs-dist/demos_bmurcdaerb~demos_citsitats~demos_dirg~demos_drac~demos_ecaps~demos_egami~demos_egassem~demos_e~57973d2f.js +21570 -1
- package/docs-dist/demos_citsitats.js +549 -1
- package/docs-dist/demos_daolpu.chunk.css +1 -1
- package/docs-dist/demos_daolpu.js +22680 -1
- package/docs-dist/demos_dirg.js +47 -1
- package/docs-dist/demos_drac.js +748 -1
- package/docs-dist/demos_ecaps.js +529 -1
- package/docs-dist/demos_egami.js +153 -1
- package/docs-dist/demos_egassem.js +187 -1
- package/docs-dist/demos_egdab.js +872 -1
- package/docs-dist/demos_elbat.chunk.css +1 -1
- package/docs-dist/demos_elbat.js +27626 -1
- package/docs-dist/demos_enilemit.js +627 -1
- package/docs-dist/demos_espalloc.js +705 -1
- package/docs-dist/demos_etar.js +547 -1
- package/docs-dist/demos_etelpmoc-otua.js +613 -1
- package/docs-dist/demos_gat.js +487 -1
- package/docs-dist/demos_hctiws.js +439 -1
- package/docs-dist/demos_ladom.js +791 -1
- package/docs-dist/demos_lesuorac.js +193 -1
- package/docs-dist/demos_mrifnocpop.js +671 -1
- package/docs-dist/demos_mrof.js +3082 -1
- package/docs-dist/demos_nips.js +461 -1
- package/docs-dist/demos_noitacifiton.js +765 -1
- package/docs-dist/demos_noitanigap.js +233 -1
- package/docs-dist/demos_nottub.js +847 -1
- package/docs-dist/demos_nwodpord.js +965 -1
- package/docs-dist/demos_oidar.js +340 -1
- package/docs-dist/demos_pitloot.js +204 -1
- package/docs-dist/demos_pot-kcab.js +62 -1
- package/docs-dist/demos_radnelac.js +285 -1
- package/docs-dist/demos_ratava.js +647 -1
- package/docs-dist/demos_rebmun-tupni.js +209 -1
- package/docs-dist/demos_redacsac.js +576 -1
- package/docs-dist/demos_redaeh-egap.js +761 -1
- package/docs-dist/demos_redils.js +659 -1
- package/docs-dist/demos_redivid.js +167 -1
- package/docs-dist/demos_redivorp-gifnoc.js +2154 -1
- package/docs-dist/demos_refsnart.js +774 -1
- package/docs-dist/demos_rekcip-emit.js +183 -1
- package/docs-dist/demos_rekcip-etad.js +469 -1
- package/docs-dist/demos_revopop.js +335 -1
- package/docs-dist/demos_reward.js +484 -1
- package/docs-dist/demos_rohcna.js +194 -1
- package/docs-dist/demos_sbat.chunk.css +1 -1
- package/docs-dist/demos_sbat.js +22358 -1
- package/docs-dist/demos_snoitnem.js +202 -1
- package/docs-dist/demos_snoitpircsed.js +351 -1
- package/docs-dist/demos_spets.js +910 -1
- package/docs-dist/demos_ssergorp.js +698 -1
- package/docs-dist/demos_tceles.js +1416 -1
- package/docs-dist/demos_tluser.js +530 -1
- package/docs-dist/demos_tnemmoc.js +560 -1
- package/docs-dist/demos_trela.js +341 -1
- package/docs-dist/demos_tsil.js +603 -1
- package/docs-dist/demos_tuoyal.js +872 -1
- package/docs-dist/demos_tupni.js +1245 -1
- package/docs-dist/demos_unem.js +1012 -1
- package/docs-dist/demos_xiffa.js +93 -1
- package/docs-dist/demos_xobkcehc.js +186 -1
- package/docs-dist/demos_yhpargopyt.js +798 -1
- package/docs-dist/demos_ytpme.js +433 -1
- package/docs-dist/docs__document__getting-started.md.js +193 -1
- package/docs-dist/docs__document__introduce.md.js +441 -1
- package/docs-dist/docs__document__practical-projects.md.js +117 -1
- package/docs-dist/docs__index.md.js +27 -1
- package/docs-dist/docs__story__index.md.js +89 -1
- package/docs-dist/dumi_demos.js +456 -1
- package/docs-dist/umi.js +28727 -1
- package/docs-dist/vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~3ba4f4a1.js +2590 -1
- package/docs-dist/vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~ac3aca9a.js +8970 -1
- package/docs-dist/vendors~components__affix__affix.md~components__alert__alert.md~components__anchor__anchor.md~compon~e29e5a37.js +2619 -1
- package/docs-dist/vendors~demos_bmurcdaerb~demos_citsitats~demos_daolpu~demos_dirg~demos_drac~demos_ecaps~demos_egami~~4cc402e9.js +57323 -1
- package/docs-dist/vendors~demos_daolpu~demos_elbat.js +1649 -1
- package/docs-dist/vendors~demos_daolpu~demos_elbat~demos_sbat.js +4169 -1
- package/docs-dist/vendors~demos_gat.js +4673 -1
- package/docs-dist/vendors~demos_ladom.js +1855 -1
- package/docs-dist/vendors~demos_redivorp-gifnoc.js +9666 -1
- package/docs-dist/vendors~demos_sbat.js +1601 -1
- package/docs-dist/vendors~demos_trela.js +1722 -1
- package/docs-dist/vendors~demos_tsil.js +4970 -1
- package/docs-dist/vendors~demos_tuoyal.js +748 -1
- package/docs-dist/vendors~wrappers.js +1360 -1
- package/docs-dist/wrappers.js +21 -1
- package/es/drawer/style/drawer.less +8 -4
- package/es/drawer/style/index.css +1 -1
- package/es/style/themes/default.less +57 -29
- package/lib/drawer/style/drawer.less +8 -4
- package/lib/drawer/style/index.css +1 -1
- package/lib/style/themes/default.less +57 -29
- package/package.json +1 -1
- package/report.html +1 -1
package/docs-dist/demos_mrof.js
CHANGED
@@ -1 +1,3082 @@
|
|
1
|
-
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[88],{"+YFz":function(e,a,t){"use strict";var r=t("VTBJ"),n=t("q1tI"),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},c=l,i=t("6VBw"),m=function(e,a){return n["createElement"](i["a"],Object(r["a"])(Object(r["a"])({},e),{},{ref:a,icon:c}))};m.displayName="InfoCircleOutlined";a["a"]=n["forwardRef"](m)},"1InY":function(e,a,t){"use strict";t.r(a);var r=t("tJVT"),n=t("q1tI"),l=t.n(n),c=t("m/eG"),i=t("cJ7L"),m=t("FY4R"),s=()=>{var e=c["y"].useForm(),a=Object(r["a"])(e,1),t=a[0],s=Object(n["useState"])({}),o=Object(r["a"])(s,2),u=o[1];Object(n["useEffect"])((()=>{u({})}),[]);var d=e=>{console.log("Finish:",e)};return l.a.createElement(c["y"],{form:t,name:"horizontal_login",layout:"inline",onFinish:d},l.a.createElement(c["y"].Item,{name:"username",rules:[{required:!0,message:"Please input your username!"}]},l.a.createElement(c["A"],{prefix:l.a.createElement(i["a"],{className:"site-form-item-icon"}),placeholder:"Username"})),l.a.createElement(c["y"].Item,{name:"password",rules:[{required:!0,message:"Please input your password!"}]},l.a.createElement(c["A"],{prefix:l.a.createElement(m["a"],{className:"site-form-item-icon"}),type:"password",placeholder:"Password"})),l.a.createElement(c["y"].Item,{shouldUpdate:!0},(()=>l.a.createElement(c["i"],{type:"primary",htmlType:"submit",disabled:!t.isFieldsTouched(!0)||!!t.getFieldsError().filter((e=>{var a=e.errors;return a.length})).length},"Log in"))))};a["default"]=s},"6VBw":function(e,a,t){"use strict";var r=t("VTBJ"),n=t("ODXe"),l=t("rePB"),c=t("Ff2n"),i=t("q1tI"),m=t.n(i),s=t("TSYQ"),o=t.n(s),u=Object(i["createContext"])({}),d=u,p=t("U8pU"),b=t("AJpP"),y=t("Kwbf"),h=t("MNnm"),E="rc-util-key";function f(e){if(e.attachTo)return e.attachTo;var a=document.querySelector("head");return a||document.body}function v(e){var a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Object(h["a"])())return null;var r,n=document.createElement("style");(null===(a=t.csp)||void 0===a?void 0:a.nonce)&&(n.nonce=null===(r=t.csp)||void 0===r?void 0:r.nonce);n.innerHTML=e;var l=f(t),c=l.firstChild;return t.prepend&&l.prepend?l.prepend(n):t.prepend&&c?l.insertBefore(n,c):l.appendChild(n),n}var g=new Map;function w(e,a){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=f(t);if(!g.has(r)){var n=v("",t),l=n.parentNode;g.set(r,l),l.removeChild(n)}var c=Array.from(g.get(r).children).find((function(e){return"STYLE"===e.tagName&&e[E]===a}));if(c){var i,m,s;if((null===(i=t.csp)||void 0===i?void 0:i.nonce)&&c.nonce!==(null===(m=t.csp)||void 0===m?void 0:m.nonce))c.nonce=null===(s=t.csp)||void 0===s?void 0:s.nonce;return c.innerHTML!==e&&(c.innerHTML=e),c}var o=v(e,t);return o[E]=a,o}function I(e,a){Object(y["a"])(e,"[@ant-design/icons] ".concat(a))}function C(e){return"object"===Object(p["a"])(e)&&"string"===typeof e.name&&"string"===typeof e.theme&&("object"===Object(p["a"])(e.icon)||"function"===typeof e.icon)}function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(a,t){var r=e[t];switch(t){case"class":a.className=r,delete a.class;break;default:a[t]=r}return a}),{})}function k(e,a,t){return t?m.a.createElement(e.tag,Object(r["a"])(Object(r["a"])({key:a},O(e.attrs)),t),(e.children||[]).map((function(t,r){return k(t,"".concat(a,"-").concat(e.tag,"-").concat(r))}))):m.a.createElement(e.tag,Object(r["a"])({key:a},O(e.attrs)),(e.children||[]).map((function(t,r){return k(t,"".concat(a,"-").concat(e.tag,"-").concat(r))})))}function j(e){return Object(b["generate"])(e)[0]}function F(e){return e?Array.isArray(e)?e:[e]:[]}var q="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n",S=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q,a=Object(i["useContext"])(d),t=a.csp;Object(i["useEffect"])((function(){w(e,"@ant-design-icons",{prepend:!0,csp:t})}),[])},T=["icon","className","onClick","style","primaryColor","secondaryColor"],A={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function x(e){var a=e.primaryColor,t=e.secondaryColor;A.primaryColor=a,A.secondaryColor=t||j(a),A.calculated=!!t}function P(){return Object(r["a"])({},A)}var M=function(e){var a=e.icon,t=e.className,n=e.onClick,l=e.style,i=e.primaryColor,m=e.secondaryColor,s=Object(c["a"])(e,T),o=A;if(i&&(o={primaryColor:i,secondaryColor:m||j(i)}),S(),I(C(a),"icon should be icon definiton, but got ".concat(a)),!C(a))return null;var u=a;return u&&"function"===typeof u.icon&&(u=Object(r["a"])(Object(r["a"])({},u),{},{icon:u.icon(o.primaryColor,o.secondaryColor)})),k(u.icon,"svg-".concat(u.name),Object(r["a"])({className:t,onClick:n,style:l,"data-icon":u.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},s))};M.displayName="IconReact",M.getTwoToneColors=P,M.setTwoToneColors=x;var V=M;function N(e){var a=F(e),t=Object(n["a"])(a,2),r=t[0],l=t[1];return V.setTwoToneColors({primaryColor:r,secondaryColor:l})}function B(){var e=V.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var z=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];N("#1890ff");var Y=i["forwardRef"]((function(e,a){var t,m=e.className,s=e.icon,u=e.spin,p=e.rotate,b=e.tabIndex,y=e.onClick,h=e.twoToneColor,E=Object(c["a"])(e,z),f=i["useContext"](d),v=f.prefixCls,g=void 0===v?"anticon":v,w=o()(g,(t={},Object(l["a"])(t,"".concat(g,"-").concat(s.name),!!s.name),Object(l["a"])(t,"".concat(g,"-spin"),!!u||"loading"===s.name),t),m),I=b;void 0===I&&y&&(I=-1);var C=p?{msTransform:"rotate(".concat(p,"deg)"),transform:"rotate(".concat(p,"deg)")}:void 0,O=F(h),k=Object(n["a"])(O,2),j=k[0],q=k[1];return i["createElement"]("span",Object(r["a"])(Object(r["a"])({role:"img","aria-label":s.name},E),{},{ref:a,tabIndex:I,onClick:y,className:w}),i["createElement"](V,{icon:s,primaryColor:j,secondaryColor:q,style:C}))}));Y.displayName="AntdIcon",Y.getTwoToneColor=B,Y.setTwoToneColor=N;a["a"]=Y},"6vYY":function(e,a,t){"use strict";t.r(a);var r=t("tJVT"),n=t("q1tI"),l=t.n(n),c=t("m/eG"),i=(t("PueU"),e=>{var a=e.visible,t=e.onCreate,n=e.onCancel,i=c["y"].useForm(),m=Object(r["a"])(i,1),s=m[0];return l.a.createElement(c["G"],{visible:a,title:"Create a new collection",okText:"Create",cancelText:"Cancel",onCancel:n,onOk:()=>{s.validateFields().then((e=>{s.resetFields(),t(e)})).catch((e=>{console.log("Validate Failed:",e)}))}},l.a.createElement(c["y"],{form:s,layout:"vertical",name:"form_in_modal",initialValues:{modifier:"public"}},l.a.createElement(c["y"].Item,{name:"title",label:"Title",rules:[{required:!0,message:"Please input the title of collection!"}]},l.a.createElement(c["A"],null)),l.a.createElement(c["y"].Item,{name:"description",label:"Description"},l.a.createElement(c["A"],{type:"textarea"})),l.a.createElement(c["y"].Item,{name:"modifier",className:"collection-create-form_last-form-item"},l.a.createElement(c["M"].Group,null,l.a.createElement(c["M"],{value:"public"},"Public"),l.a.createElement(c["M"],{value:"private"},"Private")))))}),m=()=>{var e=Object(n["useState"])(!1),a=Object(r["a"])(e,2),t=a[0],m=a[1],s=e=>{console.log("Received values of form: ",e),m(!1)};return l.a.createElement("div",null,l.a.createElement(c["i"],{type:"primary",onClick:()=>{m(!0)}},"New Collection"),l.a.createElement(i,{visible:t,onCreate:s,onCancel:()=>{m(!1)}}))};a["default"]=m},"8Skl":function(e,a,t){"use strict";var r=t("VTBJ"),n=t("q1tI"),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},c=l,i=t("6VBw"),m=function(e,a){return n["createElement"](i["a"],Object(r["a"])(Object(r["a"])({},e),{},{ref:a,icon:c}))};m.displayName="DownOutlined";a["a"]=n["forwardRef"](m)},BEK7:function(e,a,t){"use strict";t.r(a);var r=t("q1tI"),n=t.n(r),l=t("m/eG"),c=t("ePAT"),i=l["Q"].Option,m={labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:12}}},s=()=>n.a.createElement(l["y"],m,n.a.createElement(l["y"].Item,{label:"Fail",validateStatus:"error",help:"Should be combination of numbers & alphabets"},n.a.createElement(l["A"],{placeholder:"unavailable choice",id:"error"})),n.a.createElement(l["y"].Item,{label:"Warning",validateStatus:"warning"},n.a.createElement(l["A"],{placeholder:"Warning",id:"warning",prefix:n.a.createElement(c["a"],null)})),n.a.createElement(l["y"].Item,{label:"Validating",hasFeedback:!0,validateStatus:"validating",help:"The information is being validated..."},n.a.createElement(l["A"],{placeholder:"I'm the content is being validated",id:"validating"})),n.a.createElement(l["y"].Item,{label:"Success",hasFeedback:!0,validateStatus:"success"},n.a.createElement(l["A"],{placeholder:"I'm the content",id:"success"})),n.a.createElement(l["y"].Item,{label:"Warning",hasFeedback:!0,validateStatus:"warning"},n.a.createElement(l["A"],{placeholder:"Warning",id:"warning2"})),n.a.createElement(l["y"].Item,{label:"Fail",hasFeedback:!0,validateStatus:"error",help:"Should be combination of numbers & alphabets"},n.a.createElement(l["A"],{placeholder:"unavailable choice",id:"error2"})),n.a.createElement(l["y"].Item,{label:"Success",hasFeedback:!0,validateStatus:"success"},n.a.createElement(l["s"],{style:{width:"100%"}})),n.a.createElement(l["y"].Item,{label:"Warning",hasFeedback:!0,validateStatus:"warning"},n.a.createElement(l["bb"],{style:{width:"100%"}})),n.a.createElement(l["y"].Item,{label:"Error",hasFeedback:!0,validateStatus:"error"},n.a.createElement(l["Q"],{allowClear:!0},n.a.createElement(i,{value:"1"},"Option 1"),n.a.createElement(i,{value:"2"},"Option 2"),n.a.createElement(i,{value:"3"},"Option 3"))),n.a.createElement(l["y"].Item,{label:"Validating",hasFeedback:!0,validateStatus:"validating",help:"The information is being validated..."},n.a.createElement(l["m"],{options:[{value:"xx",label:"xx"}],allowClear:!0})),n.a.createElement(l["y"].Item,{label:"inline",style:{marginBottom:0}},n.a.createElement(l["y"].Item,{validateStatus:"error",help:"Please select the correct date",style:{display:"inline-block",width:"calc(50% - 12px)"}},n.a.createElement(l["s"],null)),n.a.createElement("span",{style:{display:"inline-block",width:"24px",lineHeight:"32px",textAlign:"center"}},"-"),n.a.createElement(l["y"].Item,{style:{display:"inline-block",width:"calc(50% - 12px)"}},n.a.createElement(l["s"],null))),n.a.createElement(l["y"].Item,{label:"Success",hasFeedback:!0,validateStatus:"success"},n.a.createElement(l["B"],{style:{width:"100%"}})),n.a.createElement(l["y"].Item,{label:"Success",hasFeedback:!0,validateStatus:"success"},n.a.createElement(l["A"],{allowClear:!0,placeholder:"with allowClear"})),n.a.createElement(l["y"].Item,{label:"Warning",hasFeedback:!0,validateStatus:"warning"},n.a.createElement(l["A"].Password,{placeholder:"with input password"})),n.a.createElement(l["y"].Item,{label:"Error",hasFeedback:!0,validateStatus:"error"},n.a.createElement(l["A"].Password,{allowClear:!0,placeholder:"with input password and allowClear"})));a["default"]=s},E5MK:function(e,a,t){"use strict";t.r(a);var r=t("0Owb"),n=t("9og8"),l=t("WmNS"),c=t.n(l),i=t("q1tI"),m=t.n(i),s=t("m/eG"),o=t("wlus"),u=t("xvlK"),d={labelCol:{xs:{span:24},sm:{span:4}},wrapperCol:{xs:{span:24},sm:{span:20}}},p={wrapperCol:{xs:{span:24,offset:0},sm:{span:20,offset:4}}},b=()=>{var e=e=>{console.log("Received values of form:",e)};return m.a.createElement(s["y"],Object(r["a"])({name:"dynamic_form_item"},p,{onFinish:e}),m.a.createElement(s["y"].List,{name:"names",rules:[{validator:function(){var e=Object(n["a"])(c.a.mark((function e(a,t){return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t&&!(t.length<2)){e.next=2;break}return e.abrupt("return",Promise.reject(new Error("At least 2 passengers")));case 2:case"end":return e.stop()}}),e)})));function a(a,t){return e.apply(this,arguments)}return a}()}]},((e,a,t)=>{var n=a.add,l=a.remove,c=t.errors;return m.a.createElement(m.a.Fragment,null,e.map(((a,t)=>m.a.createElement(s["y"].Item,Object(r["a"])({},0===t?d:p,{label:0===t?"Passengers":"",required:!1,key:a.key}),m.a.createElement(s["y"].Item,Object(r["a"])({},a,{validateTrigger:["onChange","onBlur"],rules:[{required:!0,whitespace:!0,message:"Please input passenger's name or delete this field."}],noStyle:!0}),m.a.createElement(s["A"],{placeholder:"passenger name",style:{width:"60%"}})),e.length>1?m.a.createElement(o["a"],{className:"dynamic-delete-button",onClick:()=>l(a.name)}):null))),m.a.createElement(s["y"].Item,null,m.a.createElement(s["i"],{type:"dashed",onClick:()=>n(),style:{width:"60%"},icon:m.a.createElement(u["a"],null)},"Add field"),m.a.createElement(s["i"],{type:"dashed",onClick:()=>{n("The head item",0)},style:{width:"60%",marginTop:"20px"},icon:m.a.createElement(u["a"],null)},"Add field at head"),m.a.createElement(s["y"].ErrorList,{errors:c})))})),m.a.createElement(s["y"].Item,null,m.a.createElement(s["i"],{type:"primary",htmlType:"submit"},"Submit")))};a["default"]=b},FY4R:function(e,a,t){"use strict";var r=t("VTBJ"),n=t("q1tI"),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"},c=l,i=t("6VBw"),m=function(e,a){return n["createElement"](i["a"],Object(r["a"])(Object(r["a"])({},e),{},{ref:a,icon:c}))};m.displayName="LockOutlined";a["a"]=n["forwardRef"](m)},FttP:function(e,a,t){"use strict";t.r(a);var r=t("0Owb"),n=t("k1fw"),l=t("q1tI"),c=t.n(l),i=t("m/eG"),m={labelCol:{span:8},wrapperCol:{span:16}},s={required:"${label} is required!",types:{email:"${label} is not a valid email!",number:"${label} is not a valid number!"},number:{range:"${label} must be between ${min} and ${max}"}},o=()=>{var e=e=>{console.log(e)};return c.a.createElement(i["y"],Object(r["a"])({},m,{name:"nest-messages",onFinish:e,validateMessages:s}),c.a.createElement(i["y"].Item,{name:["user","name"],label:"Name",rules:[{required:!0}]},c.a.createElement(i["A"],null)),c.a.createElement(i["y"].Item,{name:["user","email"],label:"Email",rules:[{type:"email"}]},c.a.createElement(i["A"],null)),c.a.createElement(i["y"].Item,{name:["user","age"],label:"Age",rules:[{type:"number",min:0,max:99}]},c.a.createElement(i["B"],null)),c.a.createElement(i["y"].Item,{name:["user","website"],label:"Website"},c.a.createElement(i["A"],null)),c.a.createElement(i["y"].Item,{name:["user","introduction"],label:"Introduction"},c.a.createElement(i["A"].TextArea,null)),c.a.createElement(i["y"].Item,{wrapperCol:Object(n["a"])(Object(n["a"])({},m.wrapperCol),{},{offset:8})},c.a.createElement(i["i"],{type:"primary",htmlType:"submit"},"Submit")))};a["default"]=o},GLHp:function(e,a,t){"use strict";t.r(a);var r=t("0Owb"),n=t("tJVT"),l=t("q1tI"),c=t.n(l),i=t("m/eG"),m=i["Q"].Option,s=[{value:"zhejiang",label:"Zhejiang",children:[{value:"hangzhou",label:"Hangzhou",children:[{value:"xihu",label:"West Lake"}]}]},{value:"jiangsu",label:"Jiangsu",children:[{value:"nanjing",label:"Nanjing",children:[{value:"zhonghuamen",label:"Zhong Hua Men"}]}]}],o={labelCol:{xs:{span:24},sm:{span:8}},wrapperCol:{xs:{span:24},sm:{span:16}}},u={wrapperCol:{xs:{span:24,offset:0},sm:{span:16,offset:8}}},d=()=>{var e=i["y"].useForm(),a=Object(n["a"])(e,1),t=a[0],d=e=>{console.log("Received values of form: ",e)},p=c.a.createElement(i["y"].Item,{name:"prefix",noStyle:!0},c.a.createElement(i["Q"],{style:{width:70}},c.a.createElement(m,{value:"86"},"+86"),c.a.createElement(m,{value:"87"},"+87"))),b=Object(l["useState"])([]),y=Object(n["a"])(b,2),h=y[0],E=y[1],f=e=>{E(e?[".com",".org",".net"].map((a=>"".concat(e).concat(a))):[])},v=h.map((e=>({label:e,value:e})));return c.a.createElement(i["y"],Object(r["a"])({},o,{form:t,name:"register",onFinish:d,initialValues:{residence:["zhejiang","hangzhou","xihu"],prefix:"86"},scrollToFirstError:!0}),c.a.createElement(i["y"].Item,{name:"email",label:"E-mail",rules:[{type:"email",message:"The input is not valid E-mail!"},{required:!0,message:"Please input your E-mail!"}]},c.a.createElement(i["A"],null)),c.a.createElement(i["y"].Item,{name:"password",label:"Password",rules:[{required:!0,message:"Please input your password!"}],hasFeedback:!0},c.a.createElement(i["A"].Password,null)),c.a.createElement(i["y"].Item,{name:"confirm",label:"Confirm Password",dependencies:["password"],hasFeedback:!0,rules:[{required:!0,message:"Please confirm your password!"},e=>{var a=e.getFieldValue;return{validator(e,t){return t&&a("password")!==t?Promise.reject(new Error("The two passwords that you entered do not match!")):Promise.resolve()}}}]},c.a.createElement(i["A"].Password,null)),c.a.createElement(i["y"].Item,{name:"nickname",label:"Nickname",tooltip:"What do you want others to call you?",rules:[{required:!0,message:"Please input your nickname!",whitespace:!0}]},c.a.createElement(i["A"],null)),c.a.createElement(i["y"].Item,{name:"residence",label:"Habitual Residence",rules:[{type:"array",required:!0,message:"Please select your habitual residence!"}]},c.a.createElement(i["m"],{options:s})),c.a.createElement(i["y"].Item,{name:"phone",label:"Phone Number",rules:[{required:!0,message:"Please input your phone number!"}]},c.a.createElement(i["A"],{addonBefore:p,style:{width:"100%"}})),c.a.createElement(i["y"].Item,{name:"website",label:"Website",rules:[{required:!0,message:"Please input website!"}]},c.a.createElement(i["d"],{options:v,onChange:f,placeholder:"website"},c.a.createElement(i["A"],null))),c.a.createElement(i["y"].Item,{name:"gender",label:"Gender",rules:[{required:!0,message:"Please select gender!"}]},c.a.createElement(i["Q"],{placeholder:"select your gender"},c.a.createElement(m,{value:"male"},"Male"),c.a.createElement(m,{value:"female"},"Female"),c.a.createElement(m,{value:"other"},"Other"))),c.a.createElement(i["y"].Item,{label:"Captcha",extra:"We must make sure that your are a human."},c.a.createElement(i["P"],{gutter:8},c.a.createElement(i["o"],{span:12},c.a.createElement(i["y"].Item,{name:"captcha",noStyle:!0,rules:[{required:!0,message:"Please input the captcha you got!"}]},c.a.createElement(i["A"],null))),c.a.createElement(i["o"],{span:12},c.a.createElement(i["i"],null,"Get captcha")))),c.a.createElement(i["y"].Item,Object(r["a"])({name:"agreement",valuePropName:"checked",rules:[{validator:(e,a)=>a?Promise.resolve():Promise.reject(new Error("Should accept agreement"))}]},u),c.a.createElement(i["n"],null,"I have read the ",c.a.createElement("a",{href:""},"agreement"))),c.a.createElement(i["y"].Item,u,c.a.createElement(i["i"],{type:"primary",htmlType:"submit"},"Register")))};a["default"]=d},PueU:function(e,a,t){},RAPb:function(e,a,t){"use strict";t.r(a);var r=t("0Owb"),n=t("k1fw"),l=t("tJVT"),c=t("q1tI"),i=t.n(c),m=t("m/eG");function s(e){return 11===e?{validateStatus:"success",errorMsg:null}:{validateStatus:"error",errorMsg:"The prime between 8 and 12 is 11!"}}var o={labelCol:{span:7},wrapperCol:{span:12}},u=()=>{var e=Object(c["useState"])({value:11}),a=Object(l["a"])(e,2),t=a[0],u=a[1],d="A prime is a natural number greater than 1 that has no positive divisors other than 1 and itself.",p=e=>{u(Object(n["a"])(Object(n["a"])({},s(e)),{},{value:e}))};return i.a.createElement(m["y"],null,i.a.createElement(m["y"].Item,Object(r["a"])({},o,{label:"Prime between 8 & 12",validateStatus:t.validateStatus,help:t.errorMsg||d}),i.a.createElement(m["B"],{min:8,max:12,value:t.value,onChange:p})))};a["default"]=u},SU6L:function(e,a,t){"use strict";t.r(a);var r=t("tJVT"),n=t("q1tI"),l=t.n(n),c=t("m/eG"),i=e=>{var a=e.onChange,t=e.fields;return l.a.createElement(c["y"],{name:"global_state",layout:"inline",fields:t,onFieldsChange:(e,t)=>{a(t)}},l.a.createElement(c["y"].Item,{name:"username",label:"Username",rules:[{required:!0,message:"Username is required!"}]},l.a.createElement(c["A"],null)))},m=()=>{var e=Object(n["useState"])([{name:["username"],value:"Ant Design"}]),a=Object(r["a"])(e,2),t=a[0],c=a[1];return l.a.createElement(l.a.Fragment,null,l.a.createElement(i,{fields:t,onChange:e=>{c(e)}}),l.a.createElement("pre",{className:"language-bash"},JSON.stringify(t,null,2)))};a["default"]=m},TnNY:function(e,a,t){"use strict";t.r(a);var r=t("0Owb"),n=t("tJVT"),l=t("q1tI"),c=t.n(l),i=t("m/eG"),m=t("wlus"),s=t("xvlK"),o=i["Q"].Option,u=[{label:"Beijing",value:"Beijing"},{label:"Shanghai",value:"Shanghai"}],d={Beijing:["Tiananmen","Great Wall"],Shanghai:["Oriental Pearl","The Bund"]},p=()=>{var e=i["y"].useForm(),a=Object(n["a"])(e,1),t=a[0],l=e=>{console.log("Received values of form:",e)},p=()=>{t.setFieldsValue({sights:[]})};return c.a.createElement(i["y"],{form:t,name:"dynamic_form_nest_item",onFinish:l,autoComplete:"off"},c.a.createElement(i["y"].Item,{name:"area",label:"Area",rules:[{required:!0,message:"Missing area"}]},c.a.createElement(i["Q"],{options:u,onChange:p})),c.a.createElement(i["y"].List,{name:"sights"},((e,a)=>{var n=a.add,l=a.remove;return c.a.createElement(c.a.Fragment,null,e.map((e=>c.a.createElement(i["T"],{key:e.key,align:"baseline"},c.a.createElement(i["y"].Item,{noStyle:!0,shouldUpdate:(e,a)=>e.area!==a.area||e.sights!==a.sights},(()=>c.a.createElement(i["y"].Item,Object(r["a"])({},e,{label:"Sight",name:[e.name,"sight"],fieldKey:[e.fieldKey,"sight"],rules:[{required:!0,message:"Missing sight"}]}),c.a.createElement(i["Q"],{disabled:!t.getFieldValue("area"),style:{width:130}},(d[t.getFieldValue("area")]||[]).map((e=>c.a.createElement(o,{key:e,value:e},e))))))),c.a.createElement(i["y"].Item,Object(r["a"])({},e,{label:"Price",name:[e.name,"price"],fieldKey:[e.fieldKey,"price"],rules:[{required:!0,message:"Missing price"}]}),c.a.createElement(i["A"],null)),c.a.createElement(m["a"],{onClick:()=>l(e.name)})))),c.a.createElement(i["y"].Item,null,c.a.createElement(i["i"],{type:"dashed",onClick:()=>n(),block:!0,icon:c.a.createElement(s["a"],null)},"Add sights")))})),c.a.createElement(i["y"].Item,null,c.a.createElement(i["i"],{type:"primary",htmlType:"submit"},"Submit")))};a["default"]=p},VDfA:function(e,a,t){"use strict";t.r(a);var r=t("0Owb"),n=t("tJVT"),l=t("q1tI"),c=t.n(l),i=t("m/eG"),m=t("cJ7L"),s=t("ePAT"),o={labelCol:{span:8},wrapperCol:{span:16}},u={wrapperCol:{offset:8,span:16}},d=e=>{var a=e.form,t=e.visible,r=Object(l["useRef"])();Object(l["useEffect"])((()=>{r.current=t}),[t]);var n=r.current;Object(l["useEffect"])((()=>{!t&&n&&a.resetFields()}),[t])},p=e=>{var a=e.visible,t=e.onCancel,r=i["y"].useForm(),l=Object(n["a"])(r,1),m=l[0];d({form:m,visible:a});var s=()=>{m.submit()};return c.a.createElement(i["G"],{title:"Basic Drawer",visible:a,onOk:s,onCancel:t},c.a.createElement(i["y"],{form:m,layout:"vertical",name:"userForm"},c.a.createElement(i["y"].Item,{name:"name",label:"User Name",rules:[{required:!0}]},c.a.createElement(i["A"],null)),c.a.createElement(i["y"].Item,{name:"age",label:"User Age",rules:[{required:!0}]},c.a.createElement(i["B"],null))))},b=()=>{var e=Object(l["useState"])(!1),a=Object(n["a"])(e,2),t=a[0],d=a[1],b=()=>{d(!0)},y=()=>{d(!1)},h=e=>{console.log("Finish:",e)};return c.a.createElement(c.a.Fragment,null,c.a.createElement(i["y"].Provider,{onFormFinish:(e,a)=>{var t=a.values,r=a.forms;if("userForm"===e){var n=r.basicForm,l=n.getFieldValue("users")||[];n.setFieldsValue({users:[...l,t]}),d(!1)}}},c.a.createElement(i["y"],Object(r["a"])({},o,{name:"basicForm",onFinish:h}),c.a.createElement(i["y"].Item,{name:"group",label:"Group Name",rules:[{required:!0}]},c.a.createElement(i["A"],null)),c.a.createElement(i["y"].Item,{label:"User List",shouldUpdate:(e,a)=>e.users!==a.users},(e=>{var a=e.getFieldValue,t=a("users")||[];return t.length?c.a.createElement("ul",null,t.map(((e,a)=>c.a.createElement("li",{key:a,className:"user"},c.a.createElement(i["e"],{icon:c.a.createElement(m["a"],null)}),e.name," - ",e.age)))):c.a.createElement(i["hb"].Text,{className:"ant-form-text",type:"secondary"},"( ",c.a.createElement(s["a"],null)," No user yet. )")})),c.a.createElement(i["y"].Item,u,c.a.createElement(i["i"],{htmlType:"submit",type:"primary"},"Submit"),c.a.createElement(i["i"],{htmlType:"button",style:{margin:"0 8px"},onClick:b},"Add User"))),c.a.createElement(p,{visible:t,onCancel:y})))};a["default"]=b},XDGf:function(e,a,t){"use strict";t.r(a);var r=t("0Owb"),n=t("tJVT"),l=t("q1tI"),c=t.n(l),i=t("m/eG"),m=i["Q"].Option,s={labelCol:{span:8},wrapperCol:{span:16}},o={wrapperCol:{offset:8,span:16}},u=()=>{var e=i["y"].useForm(),a=Object(n["a"])(e,1),t=a[0],l=e=>{switch(e){case"male":return void t.setFieldsValue({note:"Hi, man!"});case"female":return void t.setFieldsValue({note:"Hi, lady!"});case"other":t.setFieldsValue({note:"Hi there!"})}},u=e=>{console.log(e)},d=()=>{t.resetFields()},p=()=>{t.setFieldsValue({note:"Hello world!",gender:"male"})};return c.a.createElement(i["y"],Object(r["a"])({},s,{form:t,name:"control-hooks",onFinish:u}),c.a.createElement(i["y"].Item,{name:"note",label:"Note",rules:[{required:!0}]},c.a.createElement(i["A"],null)),c.a.createElement(i["y"].Item,{name:"gender",label:"Gender",rules:[{required:!0}]},c.a.createElement(i["Q"],{placeholder:"Select a option and change input text above",onChange:l,allowClear:!0},c.a.createElement(m,{value:"male"},"male"),c.a.createElement(m,{value:"female"},"female"),c.a.createElement(m,{value:"other"},"other"))),c.a.createElement(i["y"].Item,{noStyle:!0,shouldUpdate:(e,a)=>e.gender!==a.gender},(e=>{var a=e.getFieldValue;return"other"===a("gender")?c.a.createElement(i["y"].Item,{name:"customizeGender",label:"Customize Gender",rules:[{required:!0}]},c.a.createElement(i["A"],null)):null})),c.a.createElement(i["y"].Item,o,c.a.createElement(i["i"],{type:"primary",htmlType:"submit"},"Submit"),c.a.createElement(i["i"],{htmlType:"button",onClick:d},"Reset"),c.a.createElement(i["i"],{type:"link",htmlType:"button",onClick:p},"Fill form")))};a["default"]=u},cJ7L:function(e,a,t){"use strict";var r=t("VTBJ"),n=t("q1tI"),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"},c=l,i=t("6VBw"),m=function(e,a){return n["createElement"](i["a"],Object(r["a"])(Object(r["a"])({},e),{},{ref:a,icon:c}))};m.displayName="UserOutlined";a["a"]=n["forwardRef"](m)},ePAT:function(e,a,t){"use strict";var r=t("VTBJ"),n=t("q1tI"),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z"}}]},name:"smile",theme:"outlined"},c=l,i=t("6VBw"),m=function(e,a){return n["createElement"](i["a"],Object(r["a"])(Object(r["a"])({},e),{},{ref:a,icon:c}))};m.displayName="SmileOutlined";a["a"]=n["forwardRef"](m)},gIYN:function(e,a,t){"use strict";t.r(a);var r=t("0Owb"),n=t("k1fw"),l=t("q1tI"),c=t.n(l),i=t("m/eG"),m=i["s"].RangePicker,s={labelCol:{xs:{span:24},sm:{span:8}},wrapperCol:{xs:{span:24},sm:{span:16}}},o={rules:[{type:"object",required:!0,message:"Please select time!"}]},u={rules:[{type:"array",required:!0,message:"Please select time!"}]},d=()=>{var e=e=>{var a=e["range-picker"],t=e["range-time-picker"],r=Object(n["a"])(Object(n["a"])({},e),{},{"date-picker":e["date-picker"].format("YYYY-MM-DD"),"date-time-picker":e["date-time-picker"].format("YYYY-MM-DD HH:mm:ss"),"month-picker":e["month-picker"].format("YYYY-MM"),"range-picker":[a[0].format("YYYY-MM-DD"),a[1].format("YYYY-MM-DD")],"range-time-picker":[t[0].format("YYYY-MM-DD HH:mm:ss"),t[1].format("YYYY-MM-DD HH:mm:ss")],"time-picker":e["time-picker"].format("HH:mm:ss")});console.log("Received values of form: ",r)};return c.a.createElement(i["y"],Object(r["a"])({name:"time_related_controls"},s,{onFinish:e}),c.a.createElement(i["y"].Item,Object(r["a"])({name:"date-picker",label:"DatePicker"},o),c.a.createElement(i["s"],null)),c.a.createElement(i["y"].Item,Object(r["a"])({name:"date-time-picker",label:"DatePicker[showTime]"},o),c.a.createElement(i["s"],{showTime:!0,format:"YYYY-MM-DD HH:mm:ss"})),c.a.createElement(i["y"].Item,Object(r["a"])({name:"month-picker",label:"MonthPicker"},o),c.a.createElement(i["s"],{picker:"month"})),c.a.createElement(i["y"].Item,Object(r["a"])({name:"range-picker",label:"RangePicker"},u),c.a.createElement(m,null)),c.a.createElement(i["y"].Item,Object(r["a"])({name:"range-time-picker",label:"RangePicker[showTime]"},u),c.a.createElement(m,{showTime:!0,format:"YYYY-MM-DD HH:mm:ss"})),c.a.createElement(i["y"].Item,Object(r["a"])({name:"time-picker",label:"TimePicker"},o),c.a.createElement(i["bb"],null)),c.a.createElement(i["y"].Item,{wrapperCol:{xs:{span:24,offset:0},sm:{span:16,offset:8}}},c.a.createElement(i["i"],{type:"primary",htmlType:"submit"},"Submit")))};a["default"]=d},kK1p:function(e,a,t){"use strict";t.r(a);var r=t("0Owb"),n=t("PpiC"),l=t("q1tI"),c=t.n(l),i=t("m/eG"),m=t("wlus"),s=t("xvlK"),o=()=>{var e=e=>{console.log("Received values of form:",e)};return c.a.createElement(i["y"],{name:"dynamic_form_nest_item",onFinish:e,autoComplete:"off"},c.a.createElement(i["y"].List,{name:"users"},((e,a)=>{var t=a.add,l=a.remove;return c.a.createElement(c.a.Fragment,null,e.map((e=>{var a=e.key,t=e.name,s=e.fieldKey,o=Object(n["a"])(e,["key","name","fieldKey"]);return c.a.createElement(i["T"],{key:a,style:{display:"flex",marginBottom:8},align:"baseline"},c.a.createElement(i["y"].Item,Object(r["a"])({},o,{name:[t,"first"],fieldKey:[s,"first"],rules:[{required:!0,message:"Missing first name"}]}),c.a.createElement(i["A"],{placeholder:"First Name"})),c.a.createElement(i["y"].Item,Object(r["a"])({},o,{name:[t,"last"],fieldKey:[s,"last"],rules:[{required:!0,message:"Missing last name"}]}),c.a.createElement(i["A"],{placeholder:"Last Name"})),c.a.createElement(m["a"],{onClick:()=>l(t)}))})),c.a.createElement(i["y"].Item,null,c.a.createElement(i["i"],{type:"dashed",onClick:()=>t(),block:!0,icon:c.a.createElement(s["a"],null)},"Add field")))})),c.a.createElement(i["y"].Item,null,c.a.createElement(i["i"],{type:"primary",htmlType:"submit"},"Submit")))};a["default"]=o},koV8:function(e,a,t){"use strict";t.r(a);var r=t("q1tI"),n=t.n(r),l=t("m/eG"),c=()=>{var e=e=>{console.log("Success:",e)},a=e=>{console.log("Failed:",e)};return n.a.createElement(l["y"],{name:"basic",labelCol:{span:8},wrapperCol:{span:16},initialValues:{remember:!0},onFinish:e,onFinishFailed:a},n.a.createElement(l["y"].Item,{label:"Username",name:"username",rules:[{required:!0,message:"Please input your username!"}]},n.a.createElement(l["A"],null)),n.a.createElement(l["y"].Item,{label:"Password",name:"password",rules:[{required:!0,message:"Please input your password!"}]},n.a.createElement(l["A"].Password,null)),n.a.createElement(l["y"].Item,{name:"remember",valuePropName:"checked",wrapperCol:{offset:8,span:16}},n.a.createElement(l["n"],null,"Remember me")),n.a.createElement(l["y"].Item,{wrapperCol:{offset:8,span:16}},n.a.createElement(l["i"],{type:"primary",htmlType:"submit"},"Submit")))};a["default"]=c},msLY:function(e,a,t){"use strict";t.r(a);var r=t("tJVT"),n=t("q1tI"),l=t.n(n),c=t("m/eG"),i=()=>{var e=Object(n["useState"])("default"),a=Object(r["a"])(e,2),t=a[0],i=a[1],m=e=>{var a=e.size;i(a)};return l.a.createElement(l.a.Fragment,null,l.a.createElement(c["y"],{labelCol:{span:4},wrapperCol:{span:14},layout:"horizontal",initialValues:{size:t},onValuesChange:m,size:t},l.a.createElement(c["y"].Item,{label:"Form Size",name:"size"},l.a.createElement(c["M"].Group,null,l.a.createElement(c["M"].Button,{value:"small"},"Small"),l.a.createElement(c["M"].Button,{value:"default"},"Default"),l.a.createElement(c["M"].Button,{value:"large"},"Large"))),l.a.createElement(c["y"].Item,{label:"Input"},l.a.createElement(c["A"],null)),l.a.createElement(c["y"].Item,{label:"Select"},l.a.createElement(c["Q"],null,l.a.createElement(c["Q"].Option,{value:"demo"},"Demo"))),l.a.createElement(c["y"].Item,{label:"TreeSelect"},l.a.createElement(c["gb"],{treeData:[{title:"Light",value:"light",children:[{title:"Bamboo",value:"bamboo"}]}]})),l.a.createElement(c["y"].Item,{label:"Cascader"},l.a.createElement(c["m"],{options:[{value:"zhejiang",label:"Zhejiang",children:[{value:"hangzhou",label:"Hangzhou"}]}]})),l.a.createElement(c["y"].Item,{label:"DatePicker"},l.a.createElement(c["s"],null)),l.a.createElement(c["y"].Item,{label:"InputNumber"},l.a.createElement(c["B"],null)),l.a.createElement(c["y"].Item,{label:"Switch"},l.a.createElement(c["X"],null)),l.a.createElement(c["y"].Item,{label:"Button"},l.a.createElement(c["i"],null,"Button"))))};a["default"]=i},muou:function(e,a,t){"use strict";t.r(a);var r=t("q1tI"),n=t.n(r),l=t("m/eG"),c=t("cJ7L"),i=t("FY4R"),m=()=>{var e=e=>{console.log("Received values of form: ",e)};return n.a.createElement(l["y"],{name:"normal_login",className:"login-form",initialValues:{remember:!0},onFinish:e},n.a.createElement(l["y"].Item,{name:"username",rules:[{required:!0,message:"Please input your Username!"}]},n.a.createElement(l["A"],{prefix:n.a.createElement(c["a"],{className:"site-form-item-icon"}),placeholder:"Username"})),n.a.createElement(l["y"].Item,{name:"password",rules:[{required:!0,message:"Please input your Password!"}]},n.a.createElement(l["A"],{prefix:n.a.createElement(i["a"],{className:"site-form-item-icon"}),type:"password",placeholder:"Password"})),n.a.createElement(l["y"].Item,null,n.a.createElement(l["y"].Item,{name:"remember",valuePropName:"checked",noStyle:!0},n.a.createElement(l["n"],null,"Remember me")),n.a.createElement("a",{className:"login-form-forgot",href:""},"Forgot password")),n.a.createElement(l["y"].Item,null,n.a.createElement(l["i"],{type:"primary",htmlType:"submit",className:"login-form-button"},"Log in"),"Or ",n.a.createElement("a",{href:""},"register now!")))};a["default"]=m},nC7M:function(e,a,t){"use strict";t.r(a);var r=t("q1tI"),n=t.n(r),l=t("m/eG"),c=l["Q"].Option,i=()=>{var e=e=>{console.log("Received values of form: ",e)};return n.a.createElement(l["y"],{name:"complex-form",onFinish:e,labelCol:{span:8},wrapperCol:{span:16}},n.a.createElement(l["y"].Item,{label:"Username"},n.a.createElement(l["T"],null,n.a.createElement(l["y"].Item,{name:"username",noStyle:!0,rules:[{required:!0,message:"Username is required"}]},n.a.createElement(l["A"],{style:{width:160},placeholder:"Please input"})),n.a.createElement(l["db"],{title:"Useful information"},n.a.createElement(l["hb"].Link,{href:"#API"},"Need Help?")))),n.a.createElement(l["y"].Item,{label:"Address"},n.a.createElement(l["A"].Group,{compact:!0},n.a.createElement(l["y"].Item,{name:["address","province"],noStyle:!0,rules:[{required:!0,message:"Province is required"}]},n.a.createElement(l["Q"],{placeholder:"Select province"},n.a.createElement(c,{value:"Zhejiang"},"Zhejiang"),n.a.createElement(c,{value:"Jiangsu"},"Jiangsu"))),n.a.createElement(l["y"].Item,{name:["address","street"],noStyle:!0,rules:[{required:!0,message:"Street is required"}]},n.a.createElement(l["A"],{style:{width:"50%"},placeholder:"Input street"})))),n.a.createElement(l["y"].Item,{label:"BirthDate",style:{marginBottom:0}},n.a.createElement(l["y"].Item,{name:"year",rules:[{required:!0}],style:{display:"inline-block",width:"calc(50% - 8px)"}},n.a.createElement(l["A"],{placeholder:"Input birth year"})),n.a.createElement(l["y"].Item,{name:"month",rules:[{required:!0}],style:{display:"inline-block",width:"calc(50% - 8px)",margin:"0 8px"}},n.a.createElement(l["A"],{placeholder:"Input birth month"}))),n.a.createElement(l["y"].Item,{label:" ",colon:!1},n.a.createElement(l["i"],{type:"primary",htmlType:"submit"},"Submit")))};a["default"]=i},"o+L2":function(e,a,t){"use strict";t.r(a);var r=t("0Owb"),n=t("tJVT"),l=t("q1tI"),c=t.n(l),i=t("m/eG"),m=()=>{var e=i["y"].useForm(),a=Object(n["a"])(e,1),t=a[0],m=Object(l["useState"])("horizontal"),s=Object(n["a"])(m,2),o=s[0],u=s[1],d=e=>{var a=e.layout;u(a)},p="horizontal"===o?{labelCol:{span:4},wrapperCol:{span:14}}:null,b="horizontal"===o?{wrapperCol:{span:14,offset:4}}:null;return c.a.createElement(c.a.Fragment,null,c.a.createElement(i["y"],Object(r["a"])({},p,{layout:o,form:t,initialValues:{layout:o},onValuesChange:d}),c.a.createElement(i["y"].Item,{label:"Form Layout",name:"layout"},c.a.createElement(i["M"].Group,{value:o},c.a.createElement(i["M"].Button,{value:"horizontal"},"Horizontal"),c.a.createElement(i["M"].Button,{value:"vertical"},"Vertical"),c.a.createElement(i["M"].Button,{value:"inline"},"Inline"))),c.a.createElement(i["y"].Item,{label:"Field A"},c.a.createElement(i["A"],{placeholder:"input placeholder"})),c.a.createElement(i["y"].Item,{label:"Field B"},c.a.createElement(i["A"],{placeholder:"input placeholder"})),c.a.createElement(i["y"].Item,b,c.a.createElement(i["i"],{type:"primary"},"Submit"))))};a["default"]=m},"qu/w":function(e,a,t){},rMHt:function(e,a,t){"use strict";t.r(a);var r=t("tJVT"),n=t("q1tI"),l=t.n(n),c=t("m/eG"),i=t("VTBJ"),m={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},s=m,o=t("6VBw"),u=function(e,a){return n["createElement"](o["a"],Object(i["a"])(Object(i["a"])({},e),{},{ref:a,icon:s}))};u.displayName="UpOutlined";var d=n["forwardRef"](u),p=t("8Skl"),b=(t("qu/w"),()=>{var e=Object(n["useState"])(!1),a=Object(r["a"])(e,2),t=a[0],i=a[1],m=c["y"].useForm(),s=Object(r["a"])(m,1),o=s[0],u=()=>{for(var e=t?10:6,a=[],r=0;r<e;r++)a.push(l.a.createElement(c["o"],{span:8,key:r},l.a.createElement(c["y"].Item,{name:"field-".concat(r),label:"Field ".concat(r),rules:[{required:!0,message:"Input something!"}]},l.a.createElement(c["A"],{placeholder:"placeholder"}))));return a},b=e=>{console.log("Received values of form: ",e)};return l.a.createElement(c["y"],{form:o,name:"advanced_search",className:"ant-advanced-search-form",onFinish:b},l.a.createElement(c["P"],{gutter:24},u()),l.a.createElement(c["P"],null,l.a.createElement(c["o"],{span:24,style:{textAlign:"right"}},l.a.createElement(c["i"],{type:"primary",htmlType:"submit"},"Search"),l.a.createElement(c["i"],{style:{margin:"0 8px"},onClick:()=>{o.resetFields()}},"Clear"),l.a.createElement("a",{style:{fontSize:12},onClick:()=>{i(!t)}},t?l.a.createElement(d,null):l.a.createElement(p["a"],null)," Collapse"))))}),y=()=>l.a.createElement("div",null,l.a.createElement(b,null),l.a.createElement("div",{className:"search-result-list"},"Search Result List"));a["default"]=y},rzX8:function(e,a,t){"use strict";t.r(a);var r=t("0Owb"),n=t("q1tI"),l=t.n(n),c=t("m/eG"),i=c["Q"].Option,m={labelCol:{span:8},wrapperCol:{span:16}},s={wrapperCol:{offset:8,span:16}};class o extends l.a.Component{constructor(){super(...arguments),this.formRef=l.a.createRef(),this.onGenderChange=e=>{switch(e){case"male":return void this.formRef.current.setFieldsValue({note:"Hi, man!"});case"female":return void this.formRef.current.setFieldsValue({note:"Hi, lady!"});case"other":this.formRef.current.setFieldsValue({note:"Hi there!"})}},this.onFinish=e=>{console.log(e)},this.onReset=()=>{this.formRef.current.resetFields()},this.onFill=()=>{this.formRef.current.setFieldsValue({note:"Hello world!",gender:"male"})}}render(){return l.a.createElement(c["y"],Object(r["a"])({},m,{ref:this.formRef,name:"control-ref",onFinish:this.onFinish}),l.a.createElement(c["y"].Item,{name:"note",label:"Note",rules:[{required:!0}]},l.a.createElement(c["A"],null)),l.a.createElement(c["y"].Item,{name:"gender",label:"Gender",rules:[{required:!0}]},l.a.createElement(c["Q"],{placeholder:"Select a option and change input text above",onChange:this.onGenderChange,allowClear:!0},l.a.createElement(i,{value:"male"},"male"),l.a.createElement(i,{value:"female"},"female"),l.a.createElement(i,{value:"other"},"other"))),l.a.createElement(c["y"].Item,{noStyle:!0,shouldUpdate:(e,a)=>e.gender!==a.gender},(e=>{var a=e.getFieldValue;return"other"===a("gender")?l.a.createElement(c["y"].Item,{name:"customizeGender",label:"Customize Gender",rules:[{required:!0}]},l.a.createElement(c["A"],null)):null})),l.a.createElement(c["y"].Item,s,l.a.createElement(c["i"],{type:"primary",htmlType:"submit"},"Submit"),l.a.createElement(c["i"],{htmlType:"button",onClick:this.onReset},"Reset"),l.a.createElement(c["i"],{type:"link",htmlType:"button",onClick:this.onFill},"Fill form")))}}a["default"]=o},sr5T:function(e,a,t){"use strict";t.r(a);var r=t("k1fw"),n=t("tJVT"),l=t("q1tI"),c=t.n(l),i=t("m/eG"),m=i["Q"].Option,s=e=>{var a=e.value,t=void 0===a?{}:a,s=e.onChange,o=Object(l["useState"])(0),u=Object(n["a"])(o,2),d=u[0],p=u[1],b=Object(l["useState"])("rmb"),y=Object(n["a"])(b,2),h=y[0],E=y[1],f=e=>{null===s||void 0===s||s(Object(r["a"])(Object(r["a"])({number:d,currency:h},t),e))},v=e=>{var a=parseInt(e.target.value||"0",10);Number.isNaN(d)||("number"in t||p(a),f({number:a}))},g=e=>{"currency"in t||E(e),f({currency:e})};return c.a.createElement("span",null,c.a.createElement(i["A"],{type:"text",value:t.number||d,onChange:v,style:{width:100}}),c.a.createElement(i["Q"],{value:t.currency||h,style:{width:80,margin:"0 8px"},onChange:g},c.a.createElement(m,{value:"rmb"},"RMB"),c.a.createElement(m,{value:"dollar"},"Dollar")))},o=()=>{var e=e=>{console.log("Received values from form: ",e)},a=(e,a)=>a.number>0?Promise.resolve():Promise.reject(new Error("Price must be greater than zero!"));return c.a.createElement(i["y"],{name:"customized_form_controls",layout:"inline",onFinish:e,initialValues:{price:{number:0,currency:"rmb"}}},c.a.createElement(i["y"].Item,{name:"price",label:"Price",rules:[{validator:a}]},c.a.createElement(s,null)),c.a.createElement(i["y"].Item,null,c.a.createElement(i["i"],{type:"primary",htmlType:"submit"},"Submit")))};a["default"]=o},wFXQ:function(e,a,t){"use strict";t.r(a);var r=t("0Owb"),n=t("9og8"),l=t("tJVT"),c=t("WmNS"),i=t.n(c),m=t("q1tI"),s=t.n(m),o=t("m/eG"),u={labelCol:{span:4},wrapperCol:{span:8}},d={labelCol:{span:4},wrapperCol:{span:8,offset:4}},p=()=>{var e=o["y"].useForm(),a=Object(l["a"])(e,1),t=a[0],c=Object(m["useState"])(!1),p=Object(l["a"])(c,2),b=p[0],y=p[1];Object(m["useEffect"])((()=>{t.validateFields(["nickname"])}),[b]);var h=e=>{y(e.target.checked)},E=function(){var e=Object(n["a"])(i.a.mark((function e(){var a;return i.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t.validateFields();case 3:a=e.sent,console.log("Success:",a),e.next=10;break;case 7:e.prev=7,e.t0=e["catch"](0),console.log("Failed:",e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}();return s.a.createElement(o["y"],{form:t,name:"dynamic_rule"},s.a.createElement(o["y"].Item,Object(r["a"])({},u,{name:"username",label:"Name",rules:[{required:!0,message:"Please input your name"}]}),s.a.createElement(o["A"],{placeholder:"Please input your name"})),s.a.createElement(o["y"].Item,Object(r["a"])({},u,{name:"nickname",label:"Nickname",rules:[{required:b,message:"Please input your nickname"}]}),s.a.createElement(o["A"],{placeholder:"Please input your nickname"})),s.a.createElement(o["y"].Item,d,s.a.createElement(o["n"],{checked:b,onChange:h},"Nickname is required")),s.a.createElement(o["y"].Item,d,s.a.createElement(o["i"],{type:"primary",onClick:E},"Check")))};a["default"]=p},wlus:function(e,a,t){"use strict";var r=t("VTBJ"),n=t("q1tI"),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},c=l,i=t("6VBw"),m=function(e,a){return n["createElement"](i["a"],Object(r["a"])(Object(r["a"])({},e),{},{ref:a,icon:c}))};m.displayName="MinusCircleOutlined";a["a"]=n["forwardRef"](m)},xvlK:function(e,a,t){"use strict";var r=t("VTBJ"),n=t("q1tI"),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},c=l,i=t("6VBw"),m=function(e,a){return n["createElement"](i["a"],Object(r["a"])(Object(r["a"])({},e),{},{ref:a,icon:c}))};m.displayName="PlusOutlined";a["a"]=n["forwardRef"](m)},yNfo:function(e,a,t){"use strict";t.r(a);var r=t("tJVT"),n=t("q1tI"),l=t.n(n),c=t("m/eG"),i=t("+YFz"),m=()=>{var e=c["y"].useForm(),a=Object(r["a"])(e,1),t=a[0],m=Object(n["useState"])("optional"),s=Object(r["a"])(m,2),o=s[0],u=s[1],d=e=>{var a=e.requiredMarkValue;u(a)};return l.a.createElement(c["y"],{form:t,layout:"vertical",initialValues:{requiredMarkValue:o},onValuesChange:d,requiredMark:o},l.a.createElement(c["y"].Item,{label:"Required Mark",name:"requiredMarkValue"},l.a.createElement(c["M"].Group,null,l.a.createElement(c["M"].Button,{value:"optional"},"Optional"),l.a.createElement(c["M"].Button,{value:!0},"Required"),l.a.createElement(c["M"].Button,{value:!1},"Hidden"))),l.a.createElement(c["y"].Item,{label:"Field A",required:!0,tooltip:"This is a required field"},l.a.createElement(c["A"],{placeholder:"input placeholder"})),l.a.createElement(c["y"].Item,{label:"Field B",tooltip:{title:"Tooltip with customize icon",icon:l.a.createElement(i["a"],null)}},l.a.createElement(c["A"],{placeholder:"input placeholder"})),l.a.createElement(c["y"].Item,null,l.a.createElement(c["i"],{type:"primary"},"Submit")))};a["default"]=m}}]);
|
1
|
+
(window['webpackJsonp'] = window['webpackJsonp'] || []).push([
|
2
|
+
[88],
|
3
|
+
{
|
4
|
+
'+YFz': function (e, a, t) {
|
5
|
+
'use strict';
|
6
|
+
var r = t('VTBJ'),
|
7
|
+
n = t('q1tI'),
|
8
|
+
l = {
|
9
|
+
icon: {
|
10
|
+
tag: 'svg',
|
11
|
+
attrs: { viewBox: '64 64 896 896', focusable: 'false' },
|
12
|
+
children: [
|
13
|
+
{
|
14
|
+
tag: 'path',
|
15
|
+
attrs: {
|
16
|
+
d: 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z',
|
17
|
+
},
|
18
|
+
},
|
19
|
+
{
|
20
|
+
tag: 'path',
|
21
|
+
attrs: {
|
22
|
+
d: 'M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z',
|
23
|
+
},
|
24
|
+
},
|
25
|
+
],
|
26
|
+
},
|
27
|
+
name: 'info-circle',
|
28
|
+
theme: 'outlined',
|
29
|
+
},
|
30
|
+
c = l,
|
31
|
+
i = t('6VBw'),
|
32
|
+
m = function (e, a) {
|
33
|
+
return n['createElement'](
|
34
|
+
i['a'],
|
35
|
+
Object(r['a'])(Object(r['a'])({}, e), {}, { ref: a, icon: c }),
|
36
|
+
);
|
37
|
+
};
|
38
|
+
m.displayName = 'InfoCircleOutlined';
|
39
|
+
a['a'] = n['forwardRef'](m);
|
40
|
+
},
|
41
|
+
'1InY': function (e, a, t) {
|
42
|
+
'use strict';
|
43
|
+
t.r(a);
|
44
|
+
var r = t('tJVT'),
|
45
|
+
n = t('q1tI'),
|
46
|
+
l = t.n(n),
|
47
|
+
c = t('m/eG'),
|
48
|
+
i = t('cJ7L'),
|
49
|
+
m = t('FY4R'),
|
50
|
+
s = () => {
|
51
|
+
var e = c['y'].useForm(),
|
52
|
+
a = Object(r['a'])(e, 1),
|
53
|
+
t = a[0],
|
54
|
+
s = Object(n['useState'])({}),
|
55
|
+
o = Object(r['a'])(s, 2),
|
56
|
+
u = o[1];
|
57
|
+
Object(n['useEffect'])(() => {
|
58
|
+
u({});
|
59
|
+
}, []);
|
60
|
+
var d = (e) => {
|
61
|
+
console.log('Finish:', e);
|
62
|
+
};
|
63
|
+
return l.a.createElement(
|
64
|
+
c['y'],
|
65
|
+
{
|
66
|
+
form: t,
|
67
|
+
name: 'horizontal_login',
|
68
|
+
layout: 'inline',
|
69
|
+
onFinish: d,
|
70
|
+
},
|
71
|
+
l.a.createElement(
|
72
|
+
c['y'].Item,
|
73
|
+
{
|
74
|
+
name: 'username',
|
75
|
+
rules: [
|
76
|
+
{ required: !0, message: 'Please input your username!' },
|
77
|
+
],
|
78
|
+
},
|
79
|
+
l.a.createElement(c['A'], {
|
80
|
+
prefix: l.a.createElement(i['a'], {
|
81
|
+
className: 'site-form-item-icon',
|
82
|
+
}),
|
83
|
+
placeholder: 'Username',
|
84
|
+
}),
|
85
|
+
),
|
86
|
+
l.a.createElement(
|
87
|
+
c['y'].Item,
|
88
|
+
{
|
89
|
+
name: 'password',
|
90
|
+
rules: [
|
91
|
+
{ required: !0, message: 'Please input your password!' },
|
92
|
+
],
|
93
|
+
},
|
94
|
+
l.a.createElement(c['A'], {
|
95
|
+
prefix: l.a.createElement(m['a'], {
|
96
|
+
className: 'site-form-item-icon',
|
97
|
+
}),
|
98
|
+
type: 'password',
|
99
|
+
placeholder: 'Password',
|
100
|
+
}),
|
101
|
+
),
|
102
|
+
l.a.createElement(c['y'].Item, { shouldUpdate: !0 }, () =>
|
103
|
+
l.a.createElement(
|
104
|
+
c['i'],
|
105
|
+
{
|
106
|
+
type: 'primary',
|
107
|
+
htmlType: 'submit',
|
108
|
+
disabled:
|
109
|
+
!t.isFieldsTouched(!0) ||
|
110
|
+
!!t.getFieldsError().filter((e) => {
|
111
|
+
var a = e.errors;
|
112
|
+
return a.length;
|
113
|
+
}).length,
|
114
|
+
},
|
115
|
+
'Log in',
|
116
|
+
),
|
117
|
+
),
|
118
|
+
);
|
119
|
+
};
|
120
|
+
a['default'] = s;
|
121
|
+
},
|
122
|
+
'6VBw': function (e, a, t) {
|
123
|
+
'use strict';
|
124
|
+
var r = t('VTBJ'),
|
125
|
+
n = t('ODXe'),
|
126
|
+
l = t('rePB'),
|
127
|
+
c = t('Ff2n'),
|
128
|
+
i = t('q1tI'),
|
129
|
+
m = t.n(i),
|
130
|
+
s = t('TSYQ'),
|
131
|
+
o = t.n(s),
|
132
|
+
u = Object(i['createContext'])({}),
|
133
|
+
d = u,
|
134
|
+
p = t('U8pU'),
|
135
|
+
b = t('AJpP'),
|
136
|
+
y = t('Kwbf'),
|
137
|
+
h = t('MNnm'),
|
138
|
+
E = 'rc-util-key';
|
139
|
+
function f(e) {
|
140
|
+
if (e.attachTo) return e.attachTo;
|
141
|
+
var a = document.querySelector('head');
|
142
|
+
return a || document.body;
|
143
|
+
}
|
144
|
+
function v(e) {
|
145
|
+
var a,
|
146
|
+
t =
|
147
|
+
arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {};
|
148
|
+
if (!Object(h['a'])()) return null;
|
149
|
+
var r,
|
150
|
+
n = document.createElement('style');
|
151
|
+
(null === (a = t.csp) || void 0 === a ? void 0 : a.nonce) &&
|
152
|
+
(n.nonce = null === (r = t.csp) || void 0 === r ? void 0 : r.nonce);
|
153
|
+
n.innerHTML = e;
|
154
|
+
var l = f(t),
|
155
|
+
c = l.firstChild;
|
156
|
+
return (
|
157
|
+
t.prepend && l.prepend
|
158
|
+
? l.prepend(n)
|
159
|
+
: t.prepend && c
|
160
|
+
? l.insertBefore(n, c)
|
161
|
+
: l.appendChild(n),
|
162
|
+
n
|
163
|
+
);
|
164
|
+
}
|
165
|
+
var g = new Map();
|
166
|
+
function w(e, a) {
|
167
|
+
var t =
|
168
|
+
arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : {},
|
169
|
+
r = f(t);
|
170
|
+
if (!g.has(r)) {
|
171
|
+
var n = v('', t),
|
172
|
+
l = n.parentNode;
|
173
|
+
g.set(r, l), l.removeChild(n);
|
174
|
+
}
|
175
|
+
var c = Array.from(g.get(r).children).find(function (e) {
|
176
|
+
return 'STYLE' === e.tagName && e[E] === a;
|
177
|
+
});
|
178
|
+
if (c) {
|
179
|
+
var i, m, s;
|
180
|
+
if (
|
181
|
+
(null === (i = t.csp) || void 0 === i ? void 0 : i.nonce) &&
|
182
|
+
c.nonce !==
|
183
|
+
(null === (m = t.csp) || void 0 === m ? void 0 : m.nonce)
|
184
|
+
)
|
185
|
+
c.nonce = null === (s = t.csp) || void 0 === s ? void 0 : s.nonce;
|
186
|
+
return c.innerHTML !== e && (c.innerHTML = e), c;
|
187
|
+
}
|
188
|
+
var o = v(e, t);
|
189
|
+
return (o[E] = a), o;
|
190
|
+
}
|
191
|
+
function I(e, a) {
|
192
|
+
Object(y['a'])(e, '[@ant-design/icons] '.concat(a));
|
193
|
+
}
|
194
|
+
function C(e) {
|
195
|
+
return (
|
196
|
+
'object' === Object(p['a'])(e) &&
|
197
|
+
'string' === typeof e.name &&
|
198
|
+
'string' === typeof e.theme &&
|
199
|
+
('object' === Object(p['a'])(e.icon) || 'function' === typeof e.icon)
|
200
|
+
);
|
201
|
+
}
|
202
|
+
function O() {
|
203
|
+
var e =
|
204
|
+
arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {};
|
205
|
+
return Object.keys(e).reduce(function (a, t) {
|
206
|
+
var r = e[t];
|
207
|
+
switch (t) {
|
208
|
+
case 'class':
|
209
|
+
(a.className = r), delete a.class;
|
210
|
+
break;
|
211
|
+
default:
|
212
|
+
a[t] = r;
|
213
|
+
}
|
214
|
+
return a;
|
215
|
+
}, {});
|
216
|
+
}
|
217
|
+
function k(e, a, t) {
|
218
|
+
return t
|
219
|
+
? m.a.createElement(
|
220
|
+
e.tag,
|
221
|
+
Object(r['a'])(Object(r['a'])({ key: a }, O(e.attrs)), t),
|
222
|
+
(e.children || []).map(function (t, r) {
|
223
|
+
return k(t, ''.concat(a, '-').concat(e.tag, '-').concat(r));
|
224
|
+
}),
|
225
|
+
)
|
226
|
+
: m.a.createElement(
|
227
|
+
e.tag,
|
228
|
+
Object(r['a'])({ key: a }, O(e.attrs)),
|
229
|
+
(e.children || []).map(function (t, r) {
|
230
|
+
return k(t, ''.concat(a, '-').concat(e.tag, '-').concat(r));
|
231
|
+
}),
|
232
|
+
);
|
233
|
+
}
|
234
|
+
function j(e) {
|
235
|
+
return Object(b['generate'])(e)[0];
|
236
|
+
}
|
237
|
+
function F(e) {
|
238
|
+
return e ? (Array.isArray(e) ? e : [e]) : [];
|
239
|
+
}
|
240
|
+
var q =
|
241
|
+
'\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n',
|
242
|
+
S = function () {
|
243
|
+
var e =
|
244
|
+
arguments.length > 0 && void 0 !== arguments[0]
|
245
|
+
? arguments[0]
|
246
|
+
: q,
|
247
|
+
a = Object(i['useContext'])(d),
|
248
|
+
t = a.csp;
|
249
|
+
Object(i['useEffect'])(function () {
|
250
|
+
w(e, '@ant-design-icons', { prepend: !0, csp: t });
|
251
|
+
}, []);
|
252
|
+
},
|
253
|
+
T = [
|
254
|
+
'icon',
|
255
|
+
'className',
|
256
|
+
'onClick',
|
257
|
+
'style',
|
258
|
+
'primaryColor',
|
259
|
+
'secondaryColor',
|
260
|
+
],
|
261
|
+
A = { primaryColor: '#333', secondaryColor: '#E6E6E6', calculated: !1 };
|
262
|
+
function x(e) {
|
263
|
+
var a = e.primaryColor,
|
264
|
+
t = e.secondaryColor;
|
265
|
+
(A.primaryColor = a),
|
266
|
+
(A.secondaryColor = t || j(a)),
|
267
|
+
(A.calculated = !!t);
|
268
|
+
}
|
269
|
+
function P() {
|
270
|
+
return Object(r['a'])({}, A);
|
271
|
+
}
|
272
|
+
var M = function (e) {
|
273
|
+
var a = e.icon,
|
274
|
+
t = e.className,
|
275
|
+
n = e.onClick,
|
276
|
+
l = e.style,
|
277
|
+
i = e.primaryColor,
|
278
|
+
m = e.secondaryColor,
|
279
|
+
s = Object(c['a'])(e, T),
|
280
|
+
o = A;
|
281
|
+
if (
|
282
|
+
(i && (o = { primaryColor: i, secondaryColor: m || j(i) }),
|
283
|
+
S(),
|
284
|
+
I(C(a), 'icon should be icon definiton, but got '.concat(a)),
|
285
|
+
!C(a))
|
286
|
+
)
|
287
|
+
return null;
|
288
|
+
var u = a;
|
289
|
+
return (
|
290
|
+
u &&
|
291
|
+
'function' === typeof u.icon &&
|
292
|
+
(u = Object(r['a'])(
|
293
|
+
Object(r['a'])({}, u),
|
294
|
+
{},
|
295
|
+
{ icon: u.icon(o.primaryColor, o.secondaryColor) },
|
296
|
+
)),
|
297
|
+
k(
|
298
|
+
u.icon,
|
299
|
+
'svg-'.concat(u.name),
|
300
|
+
Object(r['a'])(
|
301
|
+
{
|
302
|
+
className: t,
|
303
|
+
onClick: n,
|
304
|
+
style: l,
|
305
|
+
'data-icon': u.name,
|
306
|
+
width: '1em',
|
307
|
+
height: '1em',
|
308
|
+
fill: 'currentColor',
|
309
|
+
'aria-hidden': 'true',
|
310
|
+
},
|
311
|
+
s,
|
312
|
+
),
|
313
|
+
)
|
314
|
+
);
|
315
|
+
};
|
316
|
+
(M.displayName = 'IconReact'),
|
317
|
+
(M.getTwoToneColors = P),
|
318
|
+
(M.setTwoToneColors = x);
|
319
|
+
var V = M;
|
320
|
+
function N(e) {
|
321
|
+
var a = F(e),
|
322
|
+
t = Object(n['a'])(a, 2),
|
323
|
+
r = t[0],
|
324
|
+
l = t[1];
|
325
|
+
return V.setTwoToneColors({ primaryColor: r, secondaryColor: l });
|
326
|
+
}
|
327
|
+
function B() {
|
328
|
+
var e = V.getTwoToneColors();
|
329
|
+
return e.calculated
|
330
|
+
? [e.primaryColor, e.secondaryColor]
|
331
|
+
: e.primaryColor;
|
332
|
+
}
|
333
|
+
var z = [
|
334
|
+
'className',
|
335
|
+
'icon',
|
336
|
+
'spin',
|
337
|
+
'rotate',
|
338
|
+
'tabIndex',
|
339
|
+
'onClick',
|
340
|
+
'twoToneColor',
|
341
|
+
];
|
342
|
+
N('#1890ff');
|
343
|
+
var Y = i['forwardRef'](function (e, a) {
|
344
|
+
var t,
|
345
|
+
m = e.className,
|
346
|
+
s = e.icon,
|
347
|
+
u = e.spin,
|
348
|
+
p = e.rotate,
|
349
|
+
b = e.tabIndex,
|
350
|
+
y = e.onClick,
|
351
|
+
h = e.twoToneColor,
|
352
|
+
E = Object(c['a'])(e, z),
|
353
|
+
f = i['useContext'](d),
|
354
|
+
v = f.prefixCls,
|
355
|
+
g = void 0 === v ? 'anticon' : v,
|
356
|
+
w = o()(
|
357
|
+
g,
|
358
|
+
((t = {}),
|
359
|
+
Object(l['a'])(t, ''.concat(g, '-').concat(s.name), !!s.name),
|
360
|
+
Object(l['a'])(
|
361
|
+
t,
|
362
|
+
''.concat(g, '-spin'),
|
363
|
+
!!u || 'loading' === s.name,
|
364
|
+
),
|
365
|
+
t),
|
366
|
+
m,
|
367
|
+
),
|
368
|
+
I = b;
|
369
|
+
void 0 === I && y && (I = -1);
|
370
|
+
var C = p
|
371
|
+
? {
|
372
|
+
msTransform: 'rotate('.concat(p, 'deg)'),
|
373
|
+
transform: 'rotate('.concat(p, 'deg)'),
|
374
|
+
}
|
375
|
+
: void 0,
|
376
|
+
O = F(h),
|
377
|
+
k = Object(n['a'])(O, 2),
|
378
|
+
j = k[0],
|
379
|
+
q = k[1];
|
380
|
+
return i['createElement'](
|
381
|
+
'span',
|
382
|
+
Object(r['a'])(
|
383
|
+
Object(r['a'])({ role: 'img', 'aria-label': s.name }, E),
|
384
|
+
{},
|
385
|
+
{ ref: a, tabIndex: I, onClick: y, className: w },
|
386
|
+
),
|
387
|
+
i['createElement'](V, {
|
388
|
+
icon: s,
|
389
|
+
primaryColor: j,
|
390
|
+
secondaryColor: q,
|
391
|
+
style: C,
|
392
|
+
}),
|
393
|
+
);
|
394
|
+
});
|
395
|
+
(Y.displayName = 'AntdIcon'),
|
396
|
+
(Y.getTwoToneColor = B),
|
397
|
+
(Y.setTwoToneColor = N);
|
398
|
+
a['a'] = Y;
|
399
|
+
},
|
400
|
+
'6vYY': function (e, a, t) {
|
401
|
+
'use strict';
|
402
|
+
t.r(a);
|
403
|
+
var r = t('tJVT'),
|
404
|
+
n = t('q1tI'),
|
405
|
+
l = t.n(n),
|
406
|
+
c = t('m/eG'),
|
407
|
+
i =
|
408
|
+
(t('PueU'),
|
409
|
+
(e) => {
|
410
|
+
var a = e.visible,
|
411
|
+
t = e.onCreate,
|
412
|
+
n = e.onCancel,
|
413
|
+
i = c['y'].useForm(),
|
414
|
+
m = Object(r['a'])(i, 1),
|
415
|
+
s = m[0];
|
416
|
+
return l.a.createElement(
|
417
|
+
c['G'],
|
418
|
+
{
|
419
|
+
visible: a,
|
420
|
+
title: 'Create a new collection',
|
421
|
+
okText: 'Create',
|
422
|
+
cancelText: 'Cancel',
|
423
|
+
onCancel: n,
|
424
|
+
onOk: () => {
|
425
|
+
s.validateFields()
|
426
|
+
.then((e) => {
|
427
|
+
s.resetFields(), t(e);
|
428
|
+
})
|
429
|
+
.catch((e) => {
|
430
|
+
console.log('Validate Failed:', e);
|
431
|
+
});
|
432
|
+
},
|
433
|
+
},
|
434
|
+
l.a.createElement(
|
435
|
+
c['y'],
|
436
|
+
{
|
437
|
+
form: s,
|
438
|
+
layout: 'vertical',
|
439
|
+
name: 'form_in_modal',
|
440
|
+
initialValues: { modifier: 'public' },
|
441
|
+
},
|
442
|
+
l.a.createElement(
|
443
|
+
c['y'].Item,
|
444
|
+
{
|
445
|
+
name: 'title',
|
446
|
+
label: 'Title',
|
447
|
+
rules: [
|
448
|
+
{
|
449
|
+
required: !0,
|
450
|
+
message: 'Please input the title of collection!',
|
451
|
+
},
|
452
|
+
],
|
453
|
+
},
|
454
|
+
l.a.createElement(c['A'], null),
|
455
|
+
),
|
456
|
+
l.a.createElement(
|
457
|
+
c['y'].Item,
|
458
|
+
{ name: 'description', label: 'Description' },
|
459
|
+
l.a.createElement(c['A'], { type: 'textarea' }),
|
460
|
+
),
|
461
|
+
l.a.createElement(
|
462
|
+
c['y'].Item,
|
463
|
+
{
|
464
|
+
name: 'modifier',
|
465
|
+
className: 'collection-create-form_last-form-item',
|
466
|
+
},
|
467
|
+
l.a.createElement(
|
468
|
+
c['M'].Group,
|
469
|
+
null,
|
470
|
+
l.a.createElement(c['M'], { value: 'public' }, 'Public'),
|
471
|
+
l.a.createElement(c['M'], { value: 'private' }, 'Private'),
|
472
|
+
),
|
473
|
+
),
|
474
|
+
),
|
475
|
+
);
|
476
|
+
}),
|
477
|
+
m = () => {
|
478
|
+
var e = Object(n['useState'])(!1),
|
479
|
+
a = Object(r['a'])(e, 2),
|
480
|
+
t = a[0],
|
481
|
+
m = a[1],
|
482
|
+
s = (e) => {
|
483
|
+
console.log('Received values of form: ', e), m(!1);
|
484
|
+
};
|
485
|
+
return l.a.createElement(
|
486
|
+
'div',
|
487
|
+
null,
|
488
|
+
l.a.createElement(
|
489
|
+
c['i'],
|
490
|
+
{
|
491
|
+
type: 'primary',
|
492
|
+
onClick: () => {
|
493
|
+
m(!0);
|
494
|
+
},
|
495
|
+
},
|
496
|
+
'New Collection',
|
497
|
+
),
|
498
|
+
l.a.createElement(i, {
|
499
|
+
visible: t,
|
500
|
+
onCreate: s,
|
501
|
+
onCancel: () => {
|
502
|
+
m(!1);
|
503
|
+
},
|
504
|
+
}),
|
505
|
+
);
|
506
|
+
};
|
507
|
+
a['default'] = m;
|
508
|
+
},
|
509
|
+
'8Skl': function (e, a, t) {
|
510
|
+
'use strict';
|
511
|
+
var r = t('VTBJ'),
|
512
|
+
n = t('q1tI'),
|
513
|
+
l = {
|
514
|
+
icon: {
|
515
|
+
tag: 'svg',
|
516
|
+
attrs: { viewBox: '64 64 896 896', focusable: 'false' },
|
517
|
+
children: [
|
518
|
+
{
|
519
|
+
tag: 'path',
|
520
|
+
attrs: {
|
521
|
+
d: 'M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z',
|
522
|
+
},
|
523
|
+
},
|
524
|
+
],
|
525
|
+
},
|
526
|
+
name: 'down',
|
527
|
+
theme: 'outlined',
|
528
|
+
},
|
529
|
+
c = l,
|
530
|
+
i = t('6VBw'),
|
531
|
+
m = function (e, a) {
|
532
|
+
return n['createElement'](
|
533
|
+
i['a'],
|
534
|
+
Object(r['a'])(Object(r['a'])({}, e), {}, { ref: a, icon: c }),
|
535
|
+
);
|
536
|
+
};
|
537
|
+
m.displayName = 'DownOutlined';
|
538
|
+
a['a'] = n['forwardRef'](m);
|
539
|
+
},
|
540
|
+
BEK7: function (e, a, t) {
|
541
|
+
'use strict';
|
542
|
+
t.r(a);
|
543
|
+
var r = t('q1tI'),
|
544
|
+
n = t.n(r),
|
545
|
+
l = t('m/eG'),
|
546
|
+
c = t('ePAT'),
|
547
|
+
i = l['Q'].Option,
|
548
|
+
m = {
|
549
|
+
labelCol: { xs: { span: 24 }, sm: { span: 5 } },
|
550
|
+
wrapperCol: { xs: { span: 24 }, sm: { span: 12 } },
|
551
|
+
},
|
552
|
+
s = () =>
|
553
|
+
n.a.createElement(
|
554
|
+
l['y'],
|
555
|
+
m,
|
556
|
+
n.a.createElement(
|
557
|
+
l['y'].Item,
|
558
|
+
{
|
559
|
+
label: 'Fail',
|
560
|
+
validateStatus: 'error',
|
561
|
+
help: 'Should be combination of numbers & alphabets',
|
562
|
+
},
|
563
|
+
n.a.createElement(l['A'], {
|
564
|
+
placeholder: 'unavailable choice',
|
565
|
+
id: 'error',
|
566
|
+
}),
|
567
|
+
),
|
568
|
+
n.a.createElement(
|
569
|
+
l['y'].Item,
|
570
|
+
{ label: 'Warning', validateStatus: 'warning' },
|
571
|
+
n.a.createElement(l['A'], {
|
572
|
+
placeholder: 'Warning',
|
573
|
+
id: 'warning',
|
574
|
+
prefix: n.a.createElement(c['a'], null),
|
575
|
+
}),
|
576
|
+
),
|
577
|
+
n.a.createElement(
|
578
|
+
l['y'].Item,
|
579
|
+
{
|
580
|
+
label: 'Validating',
|
581
|
+
hasFeedback: !0,
|
582
|
+
validateStatus: 'validating',
|
583
|
+
help: 'The information is being validated...',
|
584
|
+
},
|
585
|
+
n.a.createElement(l['A'], {
|
586
|
+
placeholder: "I'm the content is being validated",
|
587
|
+
id: 'validating',
|
588
|
+
}),
|
589
|
+
),
|
590
|
+
n.a.createElement(
|
591
|
+
l['y'].Item,
|
592
|
+
{ label: 'Success', hasFeedback: !0, validateStatus: 'success' },
|
593
|
+
n.a.createElement(l['A'], {
|
594
|
+
placeholder: "I'm the content",
|
595
|
+
id: 'success',
|
596
|
+
}),
|
597
|
+
),
|
598
|
+
n.a.createElement(
|
599
|
+
l['y'].Item,
|
600
|
+
{ label: 'Warning', hasFeedback: !0, validateStatus: 'warning' },
|
601
|
+
n.a.createElement(l['A'], {
|
602
|
+
placeholder: 'Warning',
|
603
|
+
id: 'warning2',
|
604
|
+
}),
|
605
|
+
),
|
606
|
+
n.a.createElement(
|
607
|
+
l['y'].Item,
|
608
|
+
{
|
609
|
+
label: 'Fail',
|
610
|
+
hasFeedback: !0,
|
611
|
+
validateStatus: 'error',
|
612
|
+
help: 'Should be combination of numbers & alphabets',
|
613
|
+
},
|
614
|
+
n.a.createElement(l['A'], {
|
615
|
+
placeholder: 'unavailable choice',
|
616
|
+
id: 'error2',
|
617
|
+
}),
|
618
|
+
),
|
619
|
+
n.a.createElement(
|
620
|
+
l['y'].Item,
|
621
|
+
{ label: 'Success', hasFeedback: !0, validateStatus: 'success' },
|
622
|
+
n.a.createElement(l['s'], { style: { width: '100%' } }),
|
623
|
+
),
|
624
|
+
n.a.createElement(
|
625
|
+
l['y'].Item,
|
626
|
+
{ label: 'Warning', hasFeedback: !0, validateStatus: 'warning' },
|
627
|
+
n.a.createElement(l['bb'], { style: { width: '100%' } }),
|
628
|
+
),
|
629
|
+
n.a.createElement(
|
630
|
+
l['y'].Item,
|
631
|
+
{ label: 'Error', hasFeedback: !0, validateStatus: 'error' },
|
632
|
+
n.a.createElement(
|
633
|
+
l['Q'],
|
634
|
+
{ allowClear: !0 },
|
635
|
+
n.a.createElement(i, { value: '1' }, 'Option 1'),
|
636
|
+
n.a.createElement(i, { value: '2' }, 'Option 2'),
|
637
|
+
n.a.createElement(i, { value: '3' }, 'Option 3'),
|
638
|
+
),
|
639
|
+
),
|
640
|
+
n.a.createElement(
|
641
|
+
l['y'].Item,
|
642
|
+
{
|
643
|
+
label: 'Validating',
|
644
|
+
hasFeedback: !0,
|
645
|
+
validateStatus: 'validating',
|
646
|
+
help: 'The information is being validated...',
|
647
|
+
},
|
648
|
+
n.a.createElement(l['m'], {
|
649
|
+
options: [{ value: 'xx', label: 'xx' }],
|
650
|
+
allowClear: !0,
|
651
|
+
}),
|
652
|
+
),
|
653
|
+
n.a.createElement(
|
654
|
+
l['y'].Item,
|
655
|
+
{ label: 'inline', style: { marginBottom: 0 } },
|
656
|
+
n.a.createElement(
|
657
|
+
l['y'].Item,
|
658
|
+
{
|
659
|
+
validateStatus: 'error',
|
660
|
+
help: 'Please select the correct date',
|
661
|
+
style: { display: 'inline-block', width: 'calc(50% - 12px)' },
|
662
|
+
},
|
663
|
+
n.a.createElement(l['s'], null),
|
664
|
+
),
|
665
|
+
n.a.createElement(
|
666
|
+
'span',
|
667
|
+
{
|
668
|
+
style: {
|
669
|
+
display: 'inline-block',
|
670
|
+
width: '24px',
|
671
|
+
lineHeight: '32px',
|
672
|
+
textAlign: 'center',
|
673
|
+
},
|
674
|
+
},
|
675
|
+
'-',
|
676
|
+
),
|
677
|
+
n.a.createElement(
|
678
|
+
l['y'].Item,
|
679
|
+
{
|
680
|
+
style: { display: 'inline-block', width: 'calc(50% - 12px)' },
|
681
|
+
},
|
682
|
+
n.a.createElement(l['s'], null),
|
683
|
+
),
|
684
|
+
),
|
685
|
+
n.a.createElement(
|
686
|
+
l['y'].Item,
|
687
|
+
{ label: 'Success', hasFeedback: !0, validateStatus: 'success' },
|
688
|
+
n.a.createElement(l['B'], { style: { width: '100%' } }),
|
689
|
+
),
|
690
|
+
n.a.createElement(
|
691
|
+
l['y'].Item,
|
692
|
+
{ label: 'Success', hasFeedback: !0, validateStatus: 'success' },
|
693
|
+
n.a.createElement(l['A'], {
|
694
|
+
allowClear: !0,
|
695
|
+
placeholder: 'with allowClear',
|
696
|
+
}),
|
697
|
+
),
|
698
|
+
n.a.createElement(
|
699
|
+
l['y'].Item,
|
700
|
+
{ label: 'Warning', hasFeedback: !0, validateStatus: 'warning' },
|
701
|
+
n.a.createElement(l['A'].Password, {
|
702
|
+
placeholder: 'with input password',
|
703
|
+
}),
|
704
|
+
),
|
705
|
+
n.a.createElement(
|
706
|
+
l['y'].Item,
|
707
|
+
{ label: 'Error', hasFeedback: !0, validateStatus: 'error' },
|
708
|
+
n.a.createElement(l['A'].Password, {
|
709
|
+
allowClear: !0,
|
710
|
+
placeholder: 'with input password and allowClear',
|
711
|
+
}),
|
712
|
+
),
|
713
|
+
);
|
714
|
+
a['default'] = s;
|
715
|
+
},
|
716
|
+
E5MK: function (e, a, t) {
|
717
|
+
'use strict';
|
718
|
+
t.r(a);
|
719
|
+
var r = t('0Owb'),
|
720
|
+
n = t('9og8'),
|
721
|
+
l = t('WmNS'),
|
722
|
+
c = t.n(l),
|
723
|
+
i = t('q1tI'),
|
724
|
+
m = t.n(i),
|
725
|
+
s = t('m/eG'),
|
726
|
+
o = t('wlus'),
|
727
|
+
u = t('xvlK'),
|
728
|
+
d = {
|
729
|
+
labelCol: { xs: { span: 24 }, sm: { span: 4 } },
|
730
|
+
wrapperCol: { xs: { span: 24 }, sm: { span: 20 } },
|
731
|
+
},
|
732
|
+
p = {
|
733
|
+
wrapperCol: {
|
734
|
+
xs: { span: 24, offset: 0 },
|
735
|
+
sm: { span: 20, offset: 4 },
|
736
|
+
},
|
737
|
+
},
|
738
|
+
b = () => {
|
739
|
+
var e = (e) => {
|
740
|
+
console.log('Received values of form:', e);
|
741
|
+
};
|
742
|
+
return m.a.createElement(
|
743
|
+
s['y'],
|
744
|
+
Object(r['a'])({ name: 'dynamic_form_item' }, p, { onFinish: e }),
|
745
|
+
m.a.createElement(
|
746
|
+
s['y'].List,
|
747
|
+
{
|
748
|
+
name: 'names',
|
749
|
+
rules: [
|
750
|
+
{
|
751
|
+
validator: (function () {
|
752
|
+
var e = Object(n['a'])(
|
753
|
+
c.a.mark(function e(a, t) {
|
754
|
+
return c.a.wrap(function (e) {
|
755
|
+
while (1)
|
756
|
+
switch ((e.prev = e.next)) {
|
757
|
+
case 0:
|
758
|
+
if (t && !(t.length < 2)) {
|
759
|
+
e.next = 2;
|
760
|
+
break;
|
761
|
+
}
|
762
|
+
return e.abrupt(
|
763
|
+
'return',
|
764
|
+
Promise.reject(
|
765
|
+
new Error('At least 2 passengers'),
|
766
|
+
),
|
767
|
+
);
|
768
|
+
case 2:
|
769
|
+
case 'end':
|
770
|
+
return e.stop();
|
771
|
+
}
|
772
|
+
}, e);
|
773
|
+
}),
|
774
|
+
);
|
775
|
+
function a(a, t) {
|
776
|
+
return e.apply(this, arguments);
|
777
|
+
}
|
778
|
+
return a;
|
779
|
+
})(),
|
780
|
+
},
|
781
|
+
],
|
782
|
+
},
|
783
|
+
(e, a, t) => {
|
784
|
+
var n = a.add,
|
785
|
+
l = a.remove,
|
786
|
+
c = t.errors;
|
787
|
+
return m.a.createElement(
|
788
|
+
m.a.Fragment,
|
789
|
+
null,
|
790
|
+
e.map((a, t) =>
|
791
|
+
m.a.createElement(
|
792
|
+
s['y'].Item,
|
793
|
+
Object(r['a'])({}, 0 === t ? d : p, {
|
794
|
+
label: 0 === t ? 'Passengers' : '',
|
795
|
+
required: !1,
|
796
|
+
key: a.key,
|
797
|
+
}),
|
798
|
+
m.a.createElement(
|
799
|
+
s['y'].Item,
|
800
|
+
Object(r['a'])({}, a, {
|
801
|
+
validateTrigger: ['onChange', 'onBlur'],
|
802
|
+
rules: [
|
803
|
+
{
|
804
|
+
required: !0,
|
805
|
+
whitespace: !0,
|
806
|
+
message:
|
807
|
+
"Please input passenger's name or delete this field.",
|
808
|
+
},
|
809
|
+
],
|
810
|
+
noStyle: !0,
|
811
|
+
}),
|
812
|
+
m.a.createElement(s['A'], {
|
813
|
+
placeholder: 'passenger name',
|
814
|
+
style: { width: '60%' },
|
815
|
+
}),
|
816
|
+
),
|
817
|
+
e.length > 1
|
818
|
+
? m.a.createElement(o['a'], {
|
819
|
+
className: 'dynamic-delete-button',
|
820
|
+
onClick: () => l(a.name),
|
821
|
+
})
|
822
|
+
: null,
|
823
|
+
),
|
824
|
+
),
|
825
|
+
m.a.createElement(
|
826
|
+
s['y'].Item,
|
827
|
+
null,
|
828
|
+
m.a.createElement(
|
829
|
+
s['i'],
|
830
|
+
{
|
831
|
+
type: 'dashed',
|
832
|
+
onClick: () => n(),
|
833
|
+
style: { width: '60%' },
|
834
|
+
icon: m.a.createElement(u['a'], null),
|
835
|
+
},
|
836
|
+
'Add field',
|
837
|
+
),
|
838
|
+
m.a.createElement(
|
839
|
+
s['i'],
|
840
|
+
{
|
841
|
+
type: 'dashed',
|
842
|
+
onClick: () => {
|
843
|
+
n('The head item', 0);
|
844
|
+
},
|
845
|
+
style: { width: '60%', marginTop: '20px' },
|
846
|
+
icon: m.a.createElement(u['a'], null),
|
847
|
+
},
|
848
|
+
'Add field at head',
|
849
|
+
),
|
850
|
+
m.a.createElement(s['y'].ErrorList, { errors: c }),
|
851
|
+
),
|
852
|
+
);
|
853
|
+
},
|
854
|
+
),
|
855
|
+
m.a.createElement(
|
856
|
+
s['y'].Item,
|
857
|
+
null,
|
858
|
+
m.a.createElement(
|
859
|
+
s['i'],
|
860
|
+
{ type: 'primary', htmlType: 'submit' },
|
861
|
+
'Submit',
|
862
|
+
),
|
863
|
+
),
|
864
|
+
);
|
865
|
+
};
|
866
|
+
a['default'] = b;
|
867
|
+
},
|
868
|
+
FY4R: function (e, a, t) {
|
869
|
+
'use strict';
|
870
|
+
var r = t('VTBJ'),
|
871
|
+
n = t('q1tI'),
|
872
|
+
l = {
|
873
|
+
icon: {
|
874
|
+
tag: 'svg',
|
875
|
+
attrs: { viewBox: '64 64 896 896', focusable: 'false' },
|
876
|
+
children: [
|
877
|
+
{
|
878
|
+
tag: 'path',
|
879
|
+
attrs: {
|
880
|
+
d: 'M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z',
|
881
|
+
},
|
882
|
+
},
|
883
|
+
],
|
884
|
+
},
|
885
|
+
name: 'lock',
|
886
|
+
theme: 'outlined',
|
887
|
+
},
|
888
|
+
c = l,
|
889
|
+
i = t('6VBw'),
|
890
|
+
m = function (e, a) {
|
891
|
+
return n['createElement'](
|
892
|
+
i['a'],
|
893
|
+
Object(r['a'])(Object(r['a'])({}, e), {}, { ref: a, icon: c }),
|
894
|
+
);
|
895
|
+
};
|
896
|
+
m.displayName = 'LockOutlined';
|
897
|
+
a['a'] = n['forwardRef'](m);
|
898
|
+
},
|
899
|
+
FttP: function (e, a, t) {
|
900
|
+
'use strict';
|
901
|
+
t.r(a);
|
902
|
+
var r = t('0Owb'),
|
903
|
+
n = t('k1fw'),
|
904
|
+
l = t('q1tI'),
|
905
|
+
c = t.n(l),
|
906
|
+
i = t('m/eG'),
|
907
|
+
m = { labelCol: { span: 8 }, wrapperCol: { span: 16 } },
|
908
|
+
s = {
|
909
|
+
required: '${label} is required!',
|
910
|
+
types: {
|
911
|
+
email: '${label} is not a valid email!',
|
912
|
+
number: '${label} is not a valid number!',
|
913
|
+
},
|
914
|
+
number: { range: '${label} must be between ${min} and ${max}' },
|
915
|
+
},
|
916
|
+
o = () => {
|
917
|
+
var e = (e) => {
|
918
|
+
console.log(e);
|
919
|
+
};
|
920
|
+
return c.a.createElement(
|
921
|
+
i['y'],
|
922
|
+
Object(r['a'])({}, m, {
|
923
|
+
name: 'nest-messages',
|
924
|
+
onFinish: e,
|
925
|
+
validateMessages: s,
|
926
|
+
}),
|
927
|
+
c.a.createElement(
|
928
|
+
i['y'].Item,
|
929
|
+
{
|
930
|
+
name: ['user', 'name'],
|
931
|
+
label: 'Name',
|
932
|
+
rules: [{ required: !0 }],
|
933
|
+
},
|
934
|
+
c.a.createElement(i['A'], null),
|
935
|
+
),
|
936
|
+
c.a.createElement(
|
937
|
+
i['y'].Item,
|
938
|
+
{
|
939
|
+
name: ['user', 'email'],
|
940
|
+
label: 'Email',
|
941
|
+
rules: [{ type: 'email' }],
|
942
|
+
},
|
943
|
+
c.a.createElement(i['A'], null),
|
944
|
+
),
|
945
|
+
c.a.createElement(
|
946
|
+
i['y'].Item,
|
947
|
+
{
|
948
|
+
name: ['user', 'age'],
|
949
|
+
label: 'Age',
|
950
|
+
rules: [{ type: 'number', min: 0, max: 99 }],
|
951
|
+
},
|
952
|
+
c.a.createElement(i['B'], null),
|
953
|
+
),
|
954
|
+
c.a.createElement(
|
955
|
+
i['y'].Item,
|
956
|
+
{ name: ['user', 'website'], label: 'Website' },
|
957
|
+
c.a.createElement(i['A'], null),
|
958
|
+
),
|
959
|
+
c.a.createElement(
|
960
|
+
i['y'].Item,
|
961
|
+
{ name: ['user', 'introduction'], label: 'Introduction' },
|
962
|
+
c.a.createElement(i['A'].TextArea, null),
|
963
|
+
),
|
964
|
+
c.a.createElement(
|
965
|
+
i['y'].Item,
|
966
|
+
{
|
967
|
+
wrapperCol: Object(n['a'])(
|
968
|
+
Object(n['a'])({}, m.wrapperCol),
|
969
|
+
{},
|
970
|
+
{ offset: 8 },
|
971
|
+
),
|
972
|
+
},
|
973
|
+
c.a.createElement(
|
974
|
+
i['i'],
|
975
|
+
{ type: 'primary', htmlType: 'submit' },
|
976
|
+
'Submit',
|
977
|
+
),
|
978
|
+
),
|
979
|
+
);
|
980
|
+
};
|
981
|
+
a['default'] = o;
|
982
|
+
},
|
983
|
+
GLHp: function (e, a, t) {
|
984
|
+
'use strict';
|
985
|
+
t.r(a);
|
986
|
+
var r = t('0Owb'),
|
987
|
+
n = t('tJVT'),
|
988
|
+
l = t('q1tI'),
|
989
|
+
c = t.n(l),
|
990
|
+
i = t('m/eG'),
|
991
|
+
m = i['Q'].Option,
|
992
|
+
s = [
|
993
|
+
{
|
994
|
+
value: 'zhejiang',
|
995
|
+
label: 'Zhejiang',
|
996
|
+
children: [
|
997
|
+
{
|
998
|
+
value: 'hangzhou',
|
999
|
+
label: 'Hangzhou',
|
1000
|
+
children: [{ value: 'xihu', label: 'West Lake' }],
|
1001
|
+
},
|
1002
|
+
],
|
1003
|
+
},
|
1004
|
+
{
|
1005
|
+
value: 'jiangsu',
|
1006
|
+
label: 'Jiangsu',
|
1007
|
+
children: [
|
1008
|
+
{
|
1009
|
+
value: 'nanjing',
|
1010
|
+
label: 'Nanjing',
|
1011
|
+
children: [{ value: 'zhonghuamen', label: 'Zhong Hua Men' }],
|
1012
|
+
},
|
1013
|
+
],
|
1014
|
+
},
|
1015
|
+
],
|
1016
|
+
o = {
|
1017
|
+
labelCol: { xs: { span: 24 }, sm: { span: 8 } },
|
1018
|
+
wrapperCol: { xs: { span: 24 }, sm: { span: 16 } },
|
1019
|
+
},
|
1020
|
+
u = {
|
1021
|
+
wrapperCol: {
|
1022
|
+
xs: { span: 24, offset: 0 },
|
1023
|
+
sm: { span: 16, offset: 8 },
|
1024
|
+
},
|
1025
|
+
},
|
1026
|
+
d = () => {
|
1027
|
+
var e = i['y'].useForm(),
|
1028
|
+
a = Object(n['a'])(e, 1),
|
1029
|
+
t = a[0],
|
1030
|
+
d = (e) => {
|
1031
|
+
console.log('Received values of form: ', e);
|
1032
|
+
},
|
1033
|
+
p = c.a.createElement(
|
1034
|
+
i['y'].Item,
|
1035
|
+
{ name: 'prefix', noStyle: !0 },
|
1036
|
+
c.a.createElement(
|
1037
|
+
i['Q'],
|
1038
|
+
{ style: { width: 70 } },
|
1039
|
+
c.a.createElement(m, { value: '86' }, '+86'),
|
1040
|
+
c.a.createElement(m, { value: '87' }, '+87'),
|
1041
|
+
),
|
1042
|
+
),
|
1043
|
+
b = Object(l['useState'])([]),
|
1044
|
+
y = Object(n['a'])(b, 2),
|
1045
|
+
h = y[0],
|
1046
|
+
E = y[1],
|
1047
|
+
f = (e) => {
|
1048
|
+
E(
|
1049
|
+
e
|
1050
|
+
? ['.com', '.org', '.net'].map((a) => ''.concat(e).concat(a))
|
1051
|
+
: [],
|
1052
|
+
);
|
1053
|
+
},
|
1054
|
+
v = h.map((e) => ({ label: e, value: e }));
|
1055
|
+
return c.a.createElement(
|
1056
|
+
i['y'],
|
1057
|
+
Object(r['a'])({}, o, {
|
1058
|
+
form: t,
|
1059
|
+
name: 'register',
|
1060
|
+
onFinish: d,
|
1061
|
+
initialValues: {
|
1062
|
+
residence: ['zhejiang', 'hangzhou', 'xihu'],
|
1063
|
+
prefix: '86',
|
1064
|
+
},
|
1065
|
+
scrollToFirstError: !0,
|
1066
|
+
}),
|
1067
|
+
c.a.createElement(
|
1068
|
+
i['y'].Item,
|
1069
|
+
{
|
1070
|
+
name: 'email',
|
1071
|
+
label: 'E-mail',
|
1072
|
+
rules: [
|
1073
|
+
{ type: 'email', message: 'The input is not valid E-mail!' },
|
1074
|
+
{ required: !0, message: 'Please input your E-mail!' },
|
1075
|
+
],
|
1076
|
+
},
|
1077
|
+
c.a.createElement(i['A'], null),
|
1078
|
+
),
|
1079
|
+
c.a.createElement(
|
1080
|
+
i['y'].Item,
|
1081
|
+
{
|
1082
|
+
name: 'password',
|
1083
|
+
label: 'Password',
|
1084
|
+
rules: [
|
1085
|
+
{ required: !0, message: 'Please input your password!' },
|
1086
|
+
],
|
1087
|
+
hasFeedback: !0,
|
1088
|
+
},
|
1089
|
+
c.a.createElement(i['A'].Password, null),
|
1090
|
+
),
|
1091
|
+
c.a.createElement(
|
1092
|
+
i['y'].Item,
|
1093
|
+
{
|
1094
|
+
name: 'confirm',
|
1095
|
+
label: 'Confirm Password',
|
1096
|
+
dependencies: ['password'],
|
1097
|
+
hasFeedback: !0,
|
1098
|
+
rules: [
|
1099
|
+
{ required: !0, message: 'Please confirm your password!' },
|
1100
|
+
(e) => {
|
1101
|
+
var a = e.getFieldValue;
|
1102
|
+
return {
|
1103
|
+
validator(e, t) {
|
1104
|
+
return t && a('password') !== t
|
1105
|
+
? Promise.reject(
|
1106
|
+
new Error(
|
1107
|
+
'The two passwords that you entered do not match!',
|
1108
|
+
),
|
1109
|
+
)
|
1110
|
+
: Promise.resolve();
|
1111
|
+
},
|
1112
|
+
};
|
1113
|
+
},
|
1114
|
+
],
|
1115
|
+
},
|
1116
|
+
c.a.createElement(i['A'].Password, null),
|
1117
|
+
),
|
1118
|
+
c.a.createElement(
|
1119
|
+
i['y'].Item,
|
1120
|
+
{
|
1121
|
+
name: 'nickname',
|
1122
|
+
label: 'Nickname',
|
1123
|
+
tooltip: 'What do you want others to call you?',
|
1124
|
+
rules: [
|
1125
|
+
{
|
1126
|
+
required: !0,
|
1127
|
+
message: 'Please input your nickname!',
|
1128
|
+
whitespace: !0,
|
1129
|
+
},
|
1130
|
+
],
|
1131
|
+
},
|
1132
|
+
c.a.createElement(i['A'], null),
|
1133
|
+
),
|
1134
|
+
c.a.createElement(
|
1135
|
+
i['y'].Item,
|
1136
|
+
{
|
1137
|
+
name: 'residence',
|
1138
|
+
label: 'Habitual Residence',
|
1139
|
+
rules: [
|
1140
|
+
{
|
1141
|
+
type: 'array',
|
1142
|
+
required: !0,
|
1143
|
+
message: 'Please select your habitual residence!',
|
1144
|
+
},
|
1145
|
+
],
|
1146
|
+
},
|
1147
|
+
c.a.createElement(i['m'], { options: s }),
|
1148
|
+
),
|
1149
|
+
c.a.createElement(
|
1150
|
+
i['y'].Item,
|
1151
|
+
{
|
1152
|
+
name: 'phone',
|
1153
|
+
label: 'Phone Number',
|
1154
|
+
rules: [
|
1155
|
+
{ required: !0, message: 'Please input your phone number!' },
|
1156
|
+
],
|
1157
|
+
},
|
1158
|
+
c.a.createElement(i['A'], {
|
1159
|
+
addonBefore: p,
|
1160
|
+
style: { width: '100%' },
|
1161
|
+
}),
|
1162
|
+
),
|
1163
|
+
c.a.createElement(
|
1164
|
+
i['y'].Item,
|
1165
|
+
{
|
1166
|
+
name: 'website',
|
1167
|
+
label: 'Website',
|
1168
|
+
rules: [{ required: !0, message: 'Please input website!' }],
|
1169
|
+
},
|
1170
|
+
c.a.createElement(
|
1171
|
+
i['d'],
|
1172
|
+
{ options: v, onChange: f, placeholder: 'website' },
|
1173
|
+
c.a.createElement(i['A'], null),
|
1174
|
+
),
|
1175
|
+
),
|
1176
|
+
c.a.createElement(
|
1177
|
+
i['y'].Item,
|
1178
|
+
{
|
1179
|
+
name: 'gender',
|
1180
|
+
label: 'Gender',
|
1181
|
+
rules: [{ required: !0, message: 'Please select gender!' }],
|
1182
|
+
},
|
1183
|
+
c.a.createElement(
|
1184
|
+
i['Q'],
|
1185
|
+
{ placeholder: 'select your gender' },
|
1186
|
+
c.a.createElement(m, { value: 'male' }, 'Male'),
|
1187
|
+
c.a.createElement(m, { value: 'female' }, 'Female'),
|
1188
|
+
c.a.createElement(m, { value: 'other' }, 'Other'),
|
1189
|
+
),
|
1190
|
+
),
|
1191
|
+
c.a.createElement(
|
1192
|
+
i['y'].Item,
|
1193
|
+
{
|
1194
|
+
label: 'Captcha',
|
1195
|
+
extra: 'We must make sure that your are a human.',
|
1196
|
+
},
|
1197
|
+
c.a.createElement(
|
1198
|
+
i['P'],
|
1199
|
+
{ gutter: 8 },
|
1200
|
+
c.a.createElement(
|
1201
|
+
i['o'],
|
1202
|
+
{ span: 12 },
|
1203
|
+
c.a.createElement(
|
1204
|
+
i['y'].Item,
|
1205
|
+
{
|
1206
|
+
name: 'captcha',
|
1207
|
+
noStyle: !0,
|
1208
|
+
rules: [
|
1209
|
+
{
|
1210
|
+
required: !0,
|
1211
|
+
message: 'Please input the captcha you got!',
|
1212
|
+
},
|
1213
|
+
],
|
1214
|
+
},
|
1215
|
+
c.a.createElement(i['A'], null),
|
1216
|
+
),
|
1217
|
+
),
|
1218
|
+
c.a.createElement(
|
1219
|
+
i['o'],
|
1220
|
+
{ span: 12 },
|
1221
|
+
c.a.createElement(i['i'], null, 'Get captcha'),
|
1222
|
+
),
|
1223
|
+
),
|
1224
|
+
),
|
1225
|
+
c.a.createElement(
|
1226
|
+
i['y'].Item,
|
1227
|
+
Object(r['a'])(
|
1228
|
+
{
|
1229
|
+
name: 'agreement',
|
1230
|
+
valuePropName: 'checked',
|
1231
|
+
rules: [
|
1232
|
+
{
|
1233
|
+
validator: (e, a) =>
|
1234
|
+
a
|
1235
|
+
? Promise.resolve()
|
1236
|
+
: Promise.reject(
|
1237
|
+
new Error('Should accept agreement'),
|
1238
|
+
),
|
1239
|
+
},
|
1240
|
+
],
|
1241
|
+
},
|
1242
|
+
u,
|
1243
|
+
),
|
1244
|
+
c.a.createElement(
|
1245
|
+
i['n'],
|
1246
|
+
null,
|
1247
|
+
'I have read the ',
|
1248
|
+
c.a.createElement('a', { href: '' }, 'agreement'),
|
1249
|
+
),
|
1250
|
+
),
|
1251
|
+
c.a.createElement(
|
1252
|
+
i['y'].Item,
|
1253
|
+
u,
|
1254
|
+
c.a.createElement(
|
1255
|
+
i['i'],
|
1256
|
+
{ type: 'primary', htmlType: 'submit' },
|
1257
|
+
'Register',
|
1258
|
+
),
|
1259
|
+
),
|
1260
|
+
);
|
1261
|
+
};
|
1262
|
+
a['default'] = d;
|
1263
|
+
},
|
1264
|
+
PueU: function (e, a, t) {},
|
1265
|
+
RAPb: function (e, a, t) {
|
1266
|
+
'use strict';
|
1267
|
+
t.r(a);
|
1268
|
+
var r = t('0Owb'),
|
1269
|
+
n = t('k1fw'),
|
1270
|
+
l = t('tJVT'),
|
1271
|
+
c = t('q1tI'),
|
1272
|
+
i = t.n(c),
|
1273
|
+
m = t('m/eG');
|
1274
|
+
function s(e) {
|
1275
|
+
return 11 === e
|
1276
|
+
? { validateStatus: 'success', errorMsg: null }
|
1277
|
+
: {
|
1278
|
+
validateStatus: 'error',
|
1279
|
+
errorMsg: 'The prime between 8 and 12 is 11!',
|
1280
|
+
};
|
1281
|
+
}
|
1282
|
+
var o = { labelCol: { span: 7 }, wrapperCol: { span: 12 } },
|
1283
|
+
u = () => {
|
1284
|
+
var e = Object(c['useState'])({ value: 11 }),
|
1285
|
+
a = Object(l['a'])(e, 2),
|
1286
|
+
t = a[0],
|
1287
|
+
u = a[1],
|
1288
|
+
d =
|
1289
|
+
'A prime is a natural number greater than 1 that has no positive divisors other than 1 and itself.',
|
1290
|
+
p = (e) => {
|
1291
|
+
u(Object(n['a'])(Object(n['a'])({}, s(e)), {}, { value: e }));
|
1292
|
+
};
|
1293
|
+
return i.a.createElement(
|
1294
|
+
m['y'],
|
1295
|
+
null,
|
1296
|
+
i.a.createElement(
|
1297
|
+
m['y'].Item,
|
1298
|
+
Object(r['a'])({}, o, {
|
1299
|
+
label: 'Prime between 8 & 12',
|
1300
|
+
validateStatus: t.validateStatus,
|
1301
|
+
help: t.errorMsg || d,
|
1302
|
+
}),
|
1303
|
+
i.a.createElement(m['B'], {
|
1304
|
+
min: 8,
|
1305
|
+
max: 12,
|
1306
|
+
value: t.value,
|
1307
|
+
onChange: p,
|
1308
|
+
}),
|
1309
|
+
),
|
1310
|
+
);
|
1311
|
+
};
|
1312
|
+
a['default'] = u;
|
1313
|
+
},
|
1314
|
+
SU6L: function (e, a, t) {
|
1315
|
+
'use strict';
|
1316
|
+
t.r(a);
|
1317
|
+
var r = t('tJVT'),
|
1318
|
+
n = t('q1tI'),
|
1319
|
+
l = t.n(n),
|
1320
|
+
c = t('m/eG'),
|
1321
|
+
i = (e) => {
|
1322
|
+
var a = e.onChange,
|
1323
|
+
t = e.fields;
|
1324
|
+
return l.a.createElement(
|
1325
|
+
c['y'],
|
1326
|
+
{
|
1327
|
+
name: 'global_state',
|
1328
|
+
layout: 'inline',
|
1329
|
+
fields: t,
|
1330
|
+
onFieldsChange: (e, t) => {
|
1331
|
+
a(t);
|
1332
|
+
},
|
1333
|
+
},
|
1334
|
+
l.a.createElement(
|
1335
|
+
c['y'].Item,
|
1336
|
+
{
|
1337
|
+
name: 'username',
|
1338
|
+
label: 'Username',
|
1339
|
+
rules: [{ required: !0, message: 'Username is required!' }],
|
1340
|
+
},
|
1341
|
+
l.a.createElement(c['A'], null),
|
1342
|
+
),
|
1343
|
+
);
|
1344
|
+
},
|
1345
|
+
m = () => {
|
1346
|
+
var e = Object(n['useState'])([
|
1347
|
+
{ name: ['username'], value: 'Ant Design' },
|
1348
|
+
]),
|
1349
|
+
a = Object(r['a'])(e, 2),
|
1350
|
+
t = a[0],
|
1351
|
+
c = a[1];
|
1352
|
+
return l.a.createElement(
|
1353
|
+
l.a.Fragment,
|
1354
|
+
null,
|
1355
|
+
l.a.createElement(i, {
|
1356
|
+
fields: t,
|
1357
|
+
onChange: (e) => {
|
1358
|
+
c(e);
|
1359
|
+
},
|
1360
|
+
}),
|
1361
|
+
l.a.createElement(
|
1362
|
+
'pre',
|
1363
|
+
{ className: 'language-bash' },
|
1364
|
+
JSON.stringify(t, null, 2),
|
1365
|
+
),
|
1366
|
+
);
|
1367
|
+
};
|
1368
|
+
a['default'] = m;
|
1369
|
+
},
|
1370
|
+
TnNY: function (e, a, t) {
|
1371
|
+
'use strict';
|
1372
|
+
t.r(a);
|
1373
|
+
var r = t('0Owb'),
|
1374
|
+
n = t('tJVT'),
|
1375
|
+
l = t('q1tI'),
|
1376
|
+
c = t.n(l),
|
1377
|
+
i = t('m/eG'),
|
1378
|
+
m = t('wlus'),
|
1379
|
+
s = t('xvlK'),
|
1380
|
+
o = i['Q'].Option,
|
1381
|
+
u = [
|
1382
|
+
{ label: 'Beijing', value: 'Beijing' },
|
1383
|
+
{ label: 'Shanghai', value: 'Shanghai' },
|
1384
|
+
],
|
1385
|
+
d = {
|
1386
|
+
Beijing: ['Tiananmen', 'Great Wall'],
|
1387
|
+
Shanghai: ['Oriental Pearl', 'The Bund'],
|
1388
|
+
},
|
1389
|
+
p = () => {
|
1390
|
+
var e = i['y'].useForm(),
|
1391
|
+
a = Object(n['a'])(e, 1),
|
1392
|
+
t = a[0],
|
1393
|
+
l = (e) => {
|
1394
|
+
console.log('Received values of form:', e);
|
1395
|
+
},
|
1396
|
+
p = () => {
|
1397
|
+
t.setFieldsValue({ sights: [] });
|
1398
|
+
};
|
1399
|
+
return c.a.createElement(
|
1400
|
+
i['y'],
|
1401
|
+
{
|
1402
|
+
form: t,
|
1403
|
+
name: 'dynamic_form_nest_item',
|
1404
|
+
onFinish: l,
|
1405
|
+
autoComplete: 'off',
|
1406
|
+
},
|
1407
|
+
c.a.createElement(
|
1408
|
+
i['y'].Item,
|
1409
|
+
{
|
1410
|
+
name: 'area',
|
1411
|
+
label: 'Area',
|
1412
|
+
rules: [{ required: !0, message: 'Missing area' }],
|
1413
|
+
},
|
1414
|
+
c.a.createElement(i['Q'], { options: u, onChange: p }),
|
1415
|
+
),
|
1416
|
+
c.a.createElement(i['y'].List, { name: 'sights' }, (e, a) => {
|
1417
|
+
var n = a.add,
|
1418
|
+
l = a.remove;
|
1419
|
+
return c.a.createElement(
|
1420
|
+
c.a.Fragment,
|
1421
|
+
null,
|
1422
|
+
e.map((e) =>
|
1423
|
+
c.a.createElement(
|
1424
|
+
i['T'],
|
1425
|
+
{ key: e.key, align: 'baseline' },
|
1426
|
+
c.a.createElement(
|
1427
|
+
i['y'].Item,
|
1428
|
+
{
|
1429
|
+
noStyle: !0,
|
1430
|
+
shouldUpdate: (e, a) =>
|
1431
|
+
e.area !== a.area || e.sights !== a.sights,
|
1432
|
+
},
|
1433
|
+
() =>
|
1434
|
+
c.a.createElement(
|
1435
|
+
i['y'].Item,
|
1436
|
+
Object(r['a'])({}, e, {
|
1437
|
+
label: 'Sight',
|
1438
|
+
name: [e.name, 'sight'],
|
1439
|
+
fieldKey: [e.fieldKey, 'sight'],
|
1440
|
+
rules: [{ required: !0, message: 'Missing sight' }],
|
1441
|
+
}),
|
1442
|
+
c.a.createElement(
|
1443
|
+
i['Q'],
|
1444
|
+
{
|
1445
|
+
disabled: !t.getFieldValue('area'),
|
1446
|
+
style: { width: 130 },
|
1447
|
+
},
|
1448
|
+
(d[t.getFieldValue('area')] || []).map((e) =>
|
1449
|
+
c.a.createElement(o, { key: e, value: e }, e),
|
1450
|
+
),
|
1451
|
+
),
|
1452
|
+
),
|
1453
|
+
),
|
1454
|
+
c.a.createElement(
|
1455
|
+
i['y'].Item,
|
1456
|
+
Object(r['a'])({}, e, {
|
1457
|
+
label: 'Price',
|
1458
|
+
name: [e.name, 'price'],
|
1459
|
+
fieldKey: [e.fieldKey, 'price'],
|
1460
|
+
rules: [{ required: !0, message: 'Missing price' }],
|
1461
|
+
}),
|
1462
|
+
c.a.createElement(i['A'], null),
|
1463
|
+
),
|
1464
|
+
c.a.createElement(m['a'], { onClick: () => l(e.name) }),
|
1465
|
+
),
|
1466
|
+
),
|
1467
|
+
c.a.createElement(
|
1468
|
+
i['y'].Item,
|
1469
|
+
null,
|
1470
|
+
c.a.createElement(
|
1471
|
+
i['i'],
|
1472
|
+
{
|
1473
|
+
type: 'dashed',
|
1474
|
+
onClick: () => n(),
|
1475
|
+
block: !0,
|
1476
|
+
icon: c.a.createElement(s['a'], null),
|
1477
|
+
},
|
1478
|
+
'Add sights',
|
1479
|
+
),
|
1480
|
+
),
|
1481
|
+
);
|
1482
|
+
}),
|
1483
|
+
c.a.createElement(
|
1484
|
+
i['y'].Item,
|
1485
|
+
null,
|
1486
|
+
c.a.createElement(
|
1487
|
+
i['i'],
|
1488
|
+
{ type: 'primary', htmlType: 'submit' },
|
1489
|
+
'Submit',
|
1490
|
+
),
|
1491
|
+
),
|
1492
|
+
);
|
1493
|
+
};
|
1494
|
+
a['default'] = p;
|
1495
|
+
},
|
1496
|
+
VDfA: function (e, a, t) {
|
1497
|
+
'use strict';
|
1498
|
+
t.r(a);
|
1499
|
+
var r = t('0Owb'),
|
1500
|
+
n = t('tJVT'),
|
1501
|
+
l = t('q1tI'),
|
1502
|
+
c = t.n(l),
|
1503
|
+
i = t('m/eG'),
|
1504
|
+
m = t('cJ7L'),
|
1505
|
+
s = t('ePAT'),
|
1506
|
+
o = { labelCol: { span: 8 }, wrapperCol: { span: 16 } },
|
1507
|
+
u = { wrapperCol: { offset: 8, span: 16 } },
|
1508
|
+
d = (e) => {
|
1509
|
+
var a = e.form,
|
1510
|
+
t = e.visible,
|
1511
|
+
r = Object(l['useRef'])();
|
1512
|
+
Object(l['useEffect'])(() => {
|
1513
|
+
r.current = t;
|
1514
|
+
}, [t]);
|
1515
|
+
var n = r.current;
|
1516
|
+
Object(l['useEffect'])(() => {
|
1517
|
+
!t && n && a.resetFields();
|
1518
|
+
}, [t]);
|
1519
|
+
},
|
1520
|
+
p = (e) => {
|
1521
|
+
var a = e.visible,
|
1522
|
+
t = e.onCancel,
|
1523
|
+
r = i['y'].useForm(),
|
1524
|
+
l = Object(n['a'])(r, 1),
|
1525
|
+
m = l[0];
|
1526
|
+
d({ form: m, visible: a });
|
1527
|
+
var s = () => {
|
1528
|
+
m.submit();
|
1529
|
+
};
|
1530
|
+
return c.a.createElement(
|
1531
|
+
i['G'],
|
1532
|
+
{ title: 'Basic Drawer', visible: a, onOk: s, onCancel: t },
|
1533
|
+
c.a.createElement(
|
1534
|
+
i['y'],
|
1535
|
+
{ form: m, layout: 'vertical', name: 'userForm' },
|
1536
|
+
c.a.createElement(
|
1537
|
+
i['y'].Item,
|
1538
|
+
{ name: 'name', label: 'User Name', rules: [{ required: !0 }] },
|
1539
|
+
c.a.createElement(i['A'], null),
|
1540
|
+
),
|
1541
|
+
c.a.createElement(
|
1542
|
+
i['y'].Item,
|
1543
|
+
{ name: 'age', label: 'User Age', rules: [{ required: !0 }] },
|
1544
|
+
c.a.createElement(i['B'], null),
|
1545
|
+
),
|
1546
|
+
),
|
1547
|
+
);
|
1548
|
+
},
|
1549
|
+
b = () => {
|
1550
|
+
var e = Object(l['useState'])(!1),
|
1551
|
+
a = Object(n['a'])(e, 2),
|
1552
|
+
t = a[0],
|
1553
|
+
d = a[1],
|
1554
|
+
b = () => {
|
1555
|
+
d(!0);
|
1556
|
+
},
|
1557
|
+
y = () => {
|
1558
|
+
d(!1);
|
1559
|
+
},
|
1560
|
+
h = (e) => {
|
1561
|
+
console.log('Finish:', e);
|
1562
|
+
};
|
1563
|
+
return c.a.createElement(
|
1564
|
+
c.a.Fragment,
|
1565
|
+
null,
|
1566
|
+
c.a.createElement(
|
1567
|
+
i['y'].Provider,
|
1568
|
+
{
|
1569
|
+
onFormFinish: (e, a) => {
|
1570
|
+
var t = a.values,
|
1571
|
+
r = a.forms;
|
1572
|
+
if ('userForm' === e) {
|
1573
|
+
var n = r.basicForm,
|
1574
|
+
l = n.getFieldValue('users') || [];
|
1575
|
+
n.setFieldsValue({ users: [...l, t] }), d(!1);
|
1576
|
+
}
|
1577
|
+
},
|
1578
|
+
},
|
1579
|
+
c.a.createElement(
|
1580
|
+
i['y'],
|
1581
|
+
Object(r['a'])({}, o, { name: 'basicForm', onFinish: h }),
|
1582
|
+
c.a.createElement(
|
1583
|
+
i['y'].Item,
|
1584
|
+
{
|
1585
|
+
name: 'group',
|
1586
|
+
label: 'Group Name',
|
1587
|
+
rules: [{ required: !0 }],
|
1588
|
+
},
|
1589
|
+
c.a.createElement(i['A'], null),
|
1590
|
+
),
|
1591
|
+
c.a.createElement(
|
1592
|
+
i['y'].Item,
|
1593
|
+
{
|
1594
|
+
label: 'User List',
|
1595
|
+
shouldUpdate: (e, a) => e.users !== a.users,
|
1596
|
+
},
|
1597
|
+
(e) => {
|
1598
|
+
var a = e.getFieldValue,
|
1599
|
+
t = a('users') || [];
|
1600
|
+
return t.length
|
1601
|
+
? c.a.createElement(
|
1602
|
+
'ul',
|
1603
|
+
null,
|
1604
|
+
t.map((e, a) =>
|
1605
|
+
c.a.createElement(
|
1606
|
+
'li',
|
1607
|
+
{ key: a, className: 'user' },
|
1608
|
+
c.a.createElement(i['e'], {
|
1609
|
+
icon: c.a.createElement(m['a'], null),
|
1610
|
+
}),
|
1611
|
+
e.name,
|
1612
|
+
' - ',
|
1613
|
+
e.age,
|
1614
|
+
),
|
1615
|
+
),
|
1616
|
+
)
|
1617
|
+
: c.a.createElement(
|
1618
|
+
i['hb'].Text,
|
1619
|
+
{ className: 'ant-form-text', type: 'secondary' },
|
1620
|
+
'( ',
|
1621
|
+
c.a.createElement(s['a'], null),
|
1622
|
+
' No user yet. )',
|
1623
|
+
);
|
1624
|
+
},
|
1625
|
+
),
|
1626
|
+
c.a.createElement(
|
1627
|
+
i['y'].Item,
|
1628
|
+
u,
|
1629
|
+
c.a.createElement(
|
1630
|
+
i['i'],
|
1631
|
+
{ htmlType: 'submit', type: 'primary' },
|
1632
|
+
'Submit',
|
1633
|
+
),
|
1634
|
+
c.a.createElement(
|
1635
|
+
i['i'],
|
1636
|
+
{
|
1637
|
+
htmlType: 'button',
|
1638
|
+
style: { margin: '0 8px' },
|
1639
|
+
onClick: b,
|
1640
|
+
},
|
1641
|
+
'Add User',
|
1642
|
+
),
|
1643
|
+
),
|
1644
|
+
),
|
1645
|
+
c.a.createElement(p, { visible: t, onCancel: y }),
|
1646
|
+
),
|
1647
|
+
);
|
1648
|
+
};
|
1649
|
+
a['default'] = b;
|
1650
|
+
},
|
1651
|
+
XDGf: function (e, a, t) {
|
1652
|
+
'use strict';
|
1653
|
+
t.r(a);
|
1654
|
+
var r = t('0Owb'),
|
1655
|
+
n = t('tJVT'),
|
1656
|
+
l = t('q1tI'),
|
1657
|
+
c = t.n(l),
|
1658
|
+
i = t('m/eG'),
|
1659
|
+
m = i['Q'].Option,
|
1660
|
+
s = { labelCol: { span: 8 }, wrapperCol: { span: 16 } },
|
1661
|
+
o = { wrapperCol: { offset: 8, span: 16 } },
|
1662
|
+
u = () => {
|
1663
|
+
var e = i['y'].useForm(),
|
1664
|
+
a = Object(n['a'])(e, 1),
|
1665
|
+
t = a[0],
|
1666
|
+
l = (e) => {
|
1667
|
+
switch (e) {
|
1668
|
+
case 'male':
|
1669
|
+
return void t.setFieldsValue({ note: 'Hi, man!' });
|
1670
|
+
case 'female':
|
1671
|
+
return void t.setFieldsValue({ note: 'Hi, lady!' });
|
1672
|
+
case 'other':
|
1673
|
+
t.setFieldsValue({ note: 'Hi there!' });
|
1674
|
+
}
|
1675
|
+
},
|
1676
|
+
u = (e) => {
|
1677
|
+
console.log(e);
|
1678
|
+
},
|
1679
|
+
d = () => {
|
1680
|
+
t.resetFields();
|
1681
|
+
},
|
1682
|
+
p = () => {
|
1683
|
+
t.setFieldsValue({ note: 'Hello world!', gender: 'male' });
|
1684
|
+
};
|
1685
|
+
return c.a.createElement(
|
1686
|
+
i['y'],
|
1687
|
+
Object(r['a'])({}, s, {
|
1688
|
+
form: t,
|
1689
|
+
name: 'control-hooks',
|
1690
|
+
onFinish: u,
|
1691
|
+
}),
|
1692
|
+
c.a.createElement(
|
1693
|
+
i['y'].Item,
|
1694
|
+
{ name: 'note', label: 'Note', rules: [{ required: !0 }] },
|
1695
|
+
c.a.createElement(i['A'], null),
|
1696
|
+
),
|
1697
|
+
c.a.createElement(
|
1698
|
+
i['y'].Item,
|
1699
|
+
{ name: 'gender', label: 'Gender', rules: [{ required: !0 }] },
|
1700
|
+
c.a.createElement(
|
1701
|
+
i['Q'],
|
1702
|
+
{
|
1703
|
+
placeholder: 'Select a option and change input text above',
|
1704
|
+
onChange: l,
|
1705
|
+
allowClear: !0,
|
1706
|
+
},
|
1707
|
+
c.a.createElement(m, { value: 'male' }, 'male'),
|
1708
|
+
c.a.createElement(m, { value: 'female' }, 'female'),
|
1709
|
+
c.a.createElement(m, { value: 'other' }, 'other'),
|
1710
|
+
),
|
1711
|
+
),
|
1712
|
+
c.a.createElement(
|
1713
|
+
i['y'].Item,
|
1714
|
+
{ noStyle: !0, shouldUpdate: (e, a) => e.gender !== a.gender },
|
1715
|
+
(e) => {
|
1716
|
+
var a = e.getFieldValue;
|
1717
|
+
return 'other' === a('gender')
|
1718
|
+
? c.a.createElement(
|
1719
|
+
i['y'].Item,
|
1720
|
+
{
|
1721
|
+
name: 'customizeGender',
|
1722
|
+
label: 'Customize Gender',
|
1723
|
+
rules: [{ required: !0 }],
|
1724
|
+
},
|
1725
|
+
c.a.createElement(i['A'], null),
|
1726
|
+
)
|
1727
|
+
: null;
|
1728
|
+
},
|
1729
|
+
),
|
1730
|
+
c.a.createElement(
|
1731
|
+
i['y'].Item,
|
1732
|
+
o,
|
1733
|
+
c.a.createElement(
|
1734
|
+
i['i'],
|
1735
|
+
{ type: 'primary', htmlType: 'submit' },
|
1736
|
+
'Submit',
|
1737
|
+
),
|
1738
|
+
c.a.createElement(
|
1739
|
+
i['i'],
|
1740
|
+
{ htmlType: 'button', onClick: d },
|
1741
|
+
'Reset',
|
1742
|
+
),
|
1743
|
+
c.a.createElement(
|
1744
|
+
i['i'],
|
1745
|
+
{ type: 'link', htmlType: 'button', onClick: p },
|
1746
|
+
'Fill form',
|
1747
|
+
),
|
1748
|
+
),
|
1749
|
+
);
|
1750
|
+
};
|
1751
|
+
a['default'] = u;
|
1752
|
+
},
|
1753
|
+
cJ7L: function (e, a, t) {
|
1754
|
+
'use strict';
|
1755
|
+
var r = t('VTBJ'),
|
1756
|
+
n = t('q1tI'),
|
1757
|
+
l = {
|
1758
|
+
icon: {
|
1759
|
+
tag: 'svg',
|
1760
|
+
attrs: { viewBox: '64 64 896 896', focusable: 'false' },
|
1761
|
+
children: [
|
1762
|
+
{
|
1763
|
+
tag: 'path',
|
1764
|
+
attrs: {
|
1765
|
+
d: 'M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z',
|
1766
|
+
},
|
1767
|
+
},
|
1768
|
+
],
|
1769
|
+
},
|
1770
|
+
name: 'user',
|
1771
|
+
theme: 'outlined',
|
1772
|
+
},
|
1773
|
+
c = l,
|
1774
|
+
i = t('6VBw'),
|
1775
|
+
m = function (e, a) {
|
1776
|
+
return n['createElement'](
|
1777
|
+
i['a'],
|
1778
|
+
Object(r['a'])(Object(r['a'])({}, e), {}, { ref: a, icon: c }),
|
1779
|
+
);
|
1780
|
+
};
|
1781
|
+
m.displayName = 'UserOutlined';
|
1782
|
+
a['a'] = n['forwardRef'](m);
|
1783
|
+
},
|
1784
|
+
ePAT: function (e, a, t) {
|
1785
|
+
'use strict';
|
1786
|
+
var r = t('VTBJ'),
|
1787
|
+
n = t('q1tI'),
|
1788
|
+
l = {
|
1789
|
+
icon: {
|
1790
|
+
tag: 'svg',
|
1791
|
+
attrs: { viewBox: '64 64 896 896', focusable: 'false' },
|
1792
|
+
children: [
|
1793
|
+
{
|
1794
|
+
tag: 'path',
|
1795
|
+
attrs: {
|
1796
|
+
d: 'M288 421a48 48 0 1096 0 48 48 0 10-96 0zm352 0a48 48 0 1096 0 48 48 0 10-96 0zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm263 711c-34.2 34.2-74 61-118.3 79.8C611 874.2 562.3 884 512 884c-50.3 0-99-9.8-144.8-29.2A370.4 370.4 0 01248.9 775c-34.2-34.2-61-74-79.8-118.3C149.8 611 140 562.3 140 512s9.8-99 29.2-144.8A370.4 370.4 0 01249 248.9c34.2-34.2 74-61 118.3-79.8C413 149.8 461.7 140 512 140c50.3 0 99 9.8 144.8 29.2A370.4 370.4 0 01775.1 249c34.2 34.2 61 74 79.8 118.3C874.2 413 884 461.7 884 512s-9.8 99-29.2 144.8A368.89 368.89 0 01775 775zM664 533h-48.1c-4.2 0-7.8 3.2-8.1 7.4C604 589.9 562.5 629 512 629s-92.1-39.1-95.8-88.6c-.3-4.2-3.9-7.4-8.1-7.4H360a8 8 0 00-8 8.4c4.4 84.3 74.5 151.6 160 151.6s155.6-67.3 160-151.6a8 8 0 00-8-8.4z',
|
1797
|
+
},
|
1798
|
+
},
|
1799
|
+
],
|
1800
|
+
},
|
1801
|
+
name: 'smile',
|
1802
|
+
theme: 'outlined',
|
1803
|
+
},
|
1804
|
+
c = l,
|
1805
|
+
i = t('6VBw'),
|
1806
|
+
m = function (e, a) {
|
1807
|
+
return n['createElement'](
|
1808
|
+
i['a'],
|
1809
|
+
Object(r['a'])(Object(r['a'])({}, e), {}, { ref: a, icon: c }),
|
1810
|
+
);
|
1811
|
+
};
|
1812
|
+
m.displayName = 'SmileOutlined';
|
1813
|
+
a['a'] = n['forwardRef'](m);
|
1814
|
+
},
|
1815
|
+
gIYN: function (e, a, t) {
|
1816
|
+
'use strict';
|
1817
|
+
t.r(a);
|
1818
|
+
var r = t('0Owb'),
|
1819
|
+
n = t('k1fw'),
|
1820
|
+
l = t('q1tI'),
|
1821
|
+
c = t.n(l),
|
1822
|
+
i = t('m/eG'),
|
1823
|
+
m = i['s'].RangePicker,
|
1824
|
+
s = {
|
1825
|
+
labelCol: { xs: { span: 24 }, sm: { span: 8 } },
|
1826
|
+
wrapperCol: { xs: { span: 24 }, sm: { span: 16 } },
|
1827
|
+
},
|
1828
|
+
o = {
|
1829
|
+
rules: [
|
1830
|
+
{ type: 'object', required: !0, message: 'Please select time!' },
|
1831
|
+
],
|
1832
|
+
},
|
1833
|
+
u = {
|
1834
|
+
rules: [
|
1835
|
+
{ type: 'array', required: !0, message: 'Please select time!' },
|
1836
|
+
],
|
1837
|
+
},
|
1838
|
+
d = () => {
|
1839
|
+
var e = (e) => {
|
1840
|
+
var a = e['range-picker'],
|
1841
|
+
t = e['range-time-picker'],
|
1842
|
+
r = Object(n['a'])(
|
1843
|
+
Object(n['a'])({}, e),
|
1844
|
+
{},
|
1845
|
+
{
|
1846
|
+
'date-picker': e['date-picker'].format('YYYY-MM-DD'),
|
1847
|
+
'date-time-picker': e['date-time-picker'].format(
|
1848
|
+
'YYYY-MM-DD HH:mm:ss',
|
1849
|
+
),
|
1850
|
+
'month-picker': e['month-picker'].format('YYYY-MM'),
|
1851
|
+
'range-picker': [
|
1852
|
+
a[0].format('YYYY-MM-DD'),
|
1853
|
+
a[1].format('YYYY-MM-DD'),
|
1854
|
+
],
|
1855
|
+
'range-time-picker': [
|
1856
|
+
t[0].format('YYYY-MM-DD HH:mm:ss'),
|
1857
|
+
t[1].format('YYYY-MM-DD HH:mm:ss'),
|
1858
|
+
],
|
1859
|
+
'time-picker': e['time-picker'].format('HH:mm:ss'),
|
1860
|
+
},
|
1861
|
+
);
|
1862
|
+
console.log('Received values of form: ', r);
|
1863
|
+
};
|
1864
|
+
return c.a.createElement(
|
1865
|
+
i['y'],
|
1866
|
+
Object(r['a'])({ name: 'time_related_controls' }, s, {
|
1867
|
+
onFinish: e,
|
1868
|
+
}),
|
1869
|
+
c.a.createElement(
|
1870
|
+
i['y'].Item,
|
1871
|
+
Object(r['a'])({ name: 'date-picker', label: 'DatePicker' }, o),
|
1872
|
+
c.a.createElement(i['s'], null),
|
1873
|
+
),
|
1874
|
+
c.a.createElement(
|
1875
|
+
i['y'].Item,
|
1876
|
+
Object(r['a'])(
|
1877
|
+
{ name: 'date-time-picker', label: 'DatePicker[showTime]' },
|
1878
|
+
o,
|
1879
|
+
),
|
1880
|
+
c.a.createElement(i['s'], {
|
1881
|
+
showTime: !0,
|
1882
|
+
format: 'YYYY-MM-DD HH:mm:ss',
|
1883
|
+
}),
|
1884
|
+
),
|
1885
|
+
c.a.createElement(
|
1886
|
+
i['y'].Item,
|
1887
|
+
Object(r['a'])({ name: 'month-picker', label: 'MonthPicker' }, o),
|
1888
|
+
c.a.createElement(i['s'], { picker: 'month' }),
|
1889
|
+
),
|
1890
|
+
c.a.createElement(
|
1891
|
+
i['y'].Item,
|
1892
|
+
Object(r['a'])({ name: 'range-picker', label: 'RangePicker' }, u),
|
1893
|
+
c.a.createElement(m, null),
|
1894
|
+
),
|
1895
|
+
c.a.createElement(
|
1896
|
+
i['y'].Item,
|
1897
|
+
Object(r['a'])(
|
1898
|
+
{ name: 'range-time-picker', label: 'RangePicker[showTime]' },
|
1899
|
+
u,
|
1900
|
+
),
|
1901
|
+
c.a.createElement(m, {
|
1902
|
+
showTime: !0,
|
1903
|
+
format: 'YYYY-MM-DD HH:mm:ss',
|
1904
|
+
}),
|
1905
|
+
),
|
1906
|
+
c.a.createElement(
|
1907
|
+
i['y'].Item,
|
1908
|
+
Object(r['a'])({ name: 'time-picker', label: 'TimePicker' }, o),
|
1909
|
+
c.a.createElement(i['bb'], null),
|
1910
|
+
),
|
1911
|
+
c.a.createElement(
|
1912
|
+
i['y'].Item,
|
1913
|
+
{
|
1914
|
+
wrapperCol: {
|
1915
|
+
xs: { span: 24, offset: 0 },
|
1916
|
+
sm: { span: 16, offset: 8 },
|
1917
|
+
},
|
1918
|
+
},
|
1919
|
+
c.a.createElement(
|
1920
|
+
i['i'],
|
1921
|
+
{ type: 'primary', htmlType: 'submit' },
|
1922
|
+
'Submit',
|
1923
|
+
),
|
1924
|
+
),
|
1925
|
+
);
|
1926
|
+
};
|
1927
|
+
a['default'] = d;
|
1928
|
+
},
|
1929
|
+
kK1p: function (e, a, t) {
|
1930
|
+
'use strict';
|
1931
|
+
t.r(a);
|
1932
|
+
var r = t('0Owb'),
|
1933
|
+
n = t('PpiC'),
|
1934
|
+
l = t('q1tI'),
|
1935
|
+
c = t.n(l),
|
1936
|
+
i = t('m/eG'),
|
1937
|
+
m = t('wlus'),
|
1938
|
+
s = t('xvlK'),
|
1939
|
+
o = () => {
|
1940
|
+
var e = (e) => {
|
1941
|
+
console.log('Received values of form:', e);
|
1942
|
+
};
|
1943
|
+
return c.a.createElement(
|
1944
|
+
i['y'],
|
1945
|
+
{
|
1946
|
+
name: 'dynamic_form_nest_item',
|
1947
|
+
onFinish: e,
|
1948
|
+
autoComplete: 'off',
|
1949
|
+
},
|
1950
|
+
c.a.createElement(i['y'].List, { name: 'users' }, (e, a) => {
|
1951
|
+
var t = a.add,
|
1952
|
+
l = a.remove;
|
1953
|
+
return c.a.createElement(
|
1954
|
+
c.a.Fragment,
|
1955
|
+
null,
|
1956
|
+
e.map((e) => {
|
1957
|
+
var a = e.key,
|
1958
|
+
t = e.name,
|
1959
|
+
s = e.fieldKey,
|
1960
|
+
o = Object(n['a'])(e, ['key', 'name', 'fieldKey']);
|
1961
|
+
return c.a.createElement(
|
1962
|
+
i['T'],
|
1963
|
+
{
|
1964
|
+
key: a,
|
1965
|
+
style: { display: 'flex', marginBottom: 8 },
|
1966
|
+
align: 'baseline',
|
1967
|
+
},
|
1968
|
+
c.a.createElement(
|
1969
|
+
i['y'].Item,
|
1970
|
+
Object(r['a'])({}, o, {
|
1971
|
+
name: [t, 'first'],
|
1972
|
+
fieldKey: [s, 'first'],
|
1973
|
+
rules: [
|
1974
|
+
{ required: !0, message: 'Missing first name' },
|
1975
|
+
],
|
1976
|
+
}),
|
1977
|
+
c.a.createElement(i['A'], { placeholder: 'First Name' }),
|
1978
|
+
),
|
1979
|
+
c.a.createElement(
|
1980
|
+
i['y'].Item,
|
1981
|
+
Object(r['a'])({}, o, {
|
1982
|
+
name: [t, 'last'],
|
1983
|
+
fieldKey: [s, 'last'],
|
1984
|
+
rules: [{ required: !0, message: 'Missing last name' }],
|
1985
|
+
}),
|
1986
|
+
c.a.createElement(i['A'], { placeholder: 'Last Name' }),
|
1987
|
+
),
|
1988
|
+
c.a.createElement(m['a'], { onClick: () => l(t) }),
|
1989
|
+
);
|
1990
|
+
}),
|
1991
|
+
c.a.createElement(
|
1992
|
+
i['y'].Item,
|
1993
|
+
null,
|
1994
|
+
c.a.createElement(
|
1995
|
+
i['i'],
|
1996
|
+
{
|
1997
|
+
type: 'dashed',
|
1998
|
+
onClick: () => t(),
|
1999
|
+
block: !0,
|
2000
|
+
icon: c.a.createElement(s['a'], null),
|
2001
|
+
},
|
2002
|
+
'Add field',
|
2003
|
+
),
|
2004
|
+
),
|
2005
|
+
);
|
2006
|
+
}),
|
2007
|
+
c.a.createElement(
|
2008
|
+
i['y'].Item,
|
2009
|
+
null,
|
2010
|
+
c.a.createElement(
|
2011
|
+
i['i'],
|
2012
|
+
{ type: 'primary', htmlType: 'submit' },
|
2013
|
+
'Submit',
|
2014
|
+
),
|
2015
|
+
),
|
2016
|
+
);
|
2017
|
+
};
|
2018
|
+
a['default'] = o;
|
2019
|
+
},
|
2020
|
+
koV8: function (e, a, t) {
|
2021
|
+
'use strict';
|
2022
|
+
t.r(a);
|
2023
|
+
var r = t('q1tI'),
|
2024
|
+
n = t.n(r),
|
2025
|
+
l = t('m/eG'),
|
2026
|
+
c = () => {
|
2027
|
+
var e = (e) => {
|
2028
|
+
console.log('Success:', e);
|
2029
|
+
},
|
2030
|
+
a = (e) => {
|
2031
|
+
console.log('Failed:', e);
|
2032
|
+
};
|
2033
|
+
return n.a.createElement(
|
2034
|
+
l['y'],
|
2035
|
+
{
|
2036
|
+
name: 'basic',
|
2037
|
+
labelCol: { span: 8 },
|
2038
|
+
wrapperCol: { span: 16 },
|
2039
|
+
initialValues: { remember: !0 },
|
2040
|
+
onFinish: e,
|
2041
|
+
onFinishFailed: a,
|
2042
|
+
},
|
2043
|
+
n.a.createElement(
|
2044
|
+
l['y'].Item,
|
2045
|
+
{
|
2046
|
+
label: 'Username',
|
2047
|
+
name: 'username',
|
2048
|
+
rules: [
|
2049
|
+
{ required: !0, message: 'Please input your username!' },
|
2050
|
+
],
|
2051
|
+
},
|
2052
|
+
n.a.createElement(l['A'], null),
|
2053
|
+
),
|
2054
|
+
n.a.createElement(
|
2055
|
+
l['y'].Item,
|
2056
|
+
{
|
2057
|
+
label: 'Password',
|
2058
|
+
name: 'password',
|
2059
|
+
rules: [
|
2060
|
+
{ required: !0, message: 'Please input your password!' },
|
2061
|
+
],
|
2062
|
+
},
|
2063
|
+
n.a.createElement(l['A'].Password, null),
|
2064
|
+
),
|
2065
|
+
n.a.createElement(
|
2066
|
+
l['y'].Item,
|
2067
|
+
{
|
2068
|
+
name: 'remember',
|
2069
|
+
valuePropName: 'checked',
|
2070
|
+
wrapperCol: { offset: 8, span: 16 },
|
2071
|
+
},
|
2072
|
+
n.a.createElement(l['n'], null, 'Remember me'),
|
2073
|
+
),
|
2074
|
+
n.a.createElement(
|
2075
|
+
l['y'].Item,
|
2076
|
+
{ wrapperCol: { offset: 8, span: 16 } },
|
2077
|
+
n.a.createElement(
|
2078
|
+
l['i'],
|
2079
|
+
{ type: 'primary', htmlType: 'submit' },
|
2080
|
+
'Submit',
|
2081
|
+
),
|
2082
|
+
),
|
2083
|
+
);
|
2084
|
+
};
|
2085
|
+
a['default'] = c;
|
2086
|
+
},
|
2087
|
+
msLY: function (e, a, t) {
|
2088
|
+
'use strict';
|
2089
|
+
t.r(a);
|
2090
|
+
var r = t('tJVT'),
|
2091
|
+
n = t('q1tI'),
|
2092
|
+
l = t.n(n),
|
2093
|
+
c = t('m/eG'),
|
2094
|
+
i = () => {
|
2095
|
+
var e = Object(n['useState'])('default'),
|
2096
|
+
a = Object(r['a'])(e, 2),
|
2097
|
+
t = a[0],
|
2098
|
+
i = a[1],
|
2099
|
+
m = (e) => {
|
2100
|
+
var a = e.size;
|
2101
|
+
i(a);
|
2102
|
+
};
|
2103
|
+
return l.a.createElement(
|
2104
|
+
l.a.Fragment,
|
2105
|
+
null,
|
2106
|
+
l.a.createElement(
|
2107
|
+
c['y'],
|
2108
|
+
{
|
2109
|
+
labelCol: { span: 4 },
|
2110
|
+
wrapperCol: { span: 14 },
|
2111
|
+
layout: 'horizontal',
|
2112
|
+
initialValues: { size: t },
|
2113
|
+
onValuesChange: m,
|
2114
|
+
size: t,
|
2115
|
+
},
|
2116
|
+
l.a.createElement(
|
2117
|
+
c['y'].Item,
|
2118
|
+
{ label: 'Form Size', name: 'size' },
|
2119
|
+
l.a.createElement(
|
2120
|
+
c['M'].Group,
|
2121
|
+
null,
|
2122
|
+
l.a.createElement(c['M'].Button, { value: 'small' }, 'Small'),
|
2123
|
+
l.a.createElement(
|
2124
|
+
c['M'].Button,
|
2125
|
+
{ value: 'default' },
|
2126
|
+
'Default',
|
2127
|
+
),
|
2128
|
+
l.a.createElement(c['M'].Button, { value: 'large' }, 'Large'),
|
2129
|
+
),
|
2130
|
+
),
|
2131
|
+
l.a.createElement(
|
2132
|
+
c['y'].Item,
|
2133
|
+
{ label: 'Input' },
|
2134
|
+
l.a.createElement(c['A'], null),
|
2135
|
+
),
|
2136
|
+
l.a.createElement(
|
2137
|
+
c['y'].Item,
|
2138
|
+
{ label: 'Select' },
|
2139
|
+
l.a.createElement(
|
2140
|
+
c['Q'],
|
2141
|
+
null,
|
2142
|
+
l.a.createElement(c['Q'].Option, { value: 'demo' }, 'Demo'),
|
2143
|
+
),
|
2144
|
+
),
|
2145
|
+
l.a.createElement(
|
2146
|
+
c['y'].Item,
|
2147
|
+
{ label: 'TreeSelect' },
|
2148
|
+
l.a.createElement(c['gb'], {
|
2149
|
+
treeData: [
|
2150
|
+
{
|
2151
|
+
title: 'Light',
|
2152
|
+
value: 'light',
|
2153
|
+
children: [{ title: 'Bamboo', value: 'bamboo' }],
|
2154
|
+
},
|
2155
|
+
],
|
2156
|
+
}),
|
2157
|
+
),
|
2158
|
+
l.a.createElement(
|
2159
|
+
c['y'].Item,
|
2160
|
+
{ label: 'Cascader' },
|
2161
|
+
l.a.createElement(c['m'], {
|
2162
|
+
options: [
|
2163
|
+
{
|
2164
|
+
value: 'zhejiang',
|
2165
|
+
label: 'Zhejiang',
|
2166
|
+
children: [{ value: 'hangzhou', label: 'Hangzhou' }],
|
2167
|
+
},
|
2168
|
+
],
|
2169
|
+
}),
|
2170
|
+
),
|
2171
|
+
l.a.createElement(
|
2172
|
+
c['y'].Item,
|
2173
|
+
{ label: 'DatePicker' },
|
2174
|
+
l.a.createElement(c['s'], null),
|
2175
|
+
),
|
2176
|
+
l.a.createElement(
|
2177
|
+
c['y'].Item,
|
2178
|
+
{ label: 'InputNumber' },
|
2179
|
+
l.a.createElement(c['B'], null),
|
2180
|
+
),
|
2181
|
+
l.a.createElement(
|
2182
|
+
c['y'].Item,
|
2183
|
+
{ label: 'Switch' },
|
2184
|
+
l.a.createElement(c['X'], null),
|
2185
|
+
),
|
2186
|
+
l.a.createElement(
|
2187
|
+
c['y'].Item,
|
2188
|
+
{ label: 'Button' },
|
2189
|
+
l.a.createElement(c['i'], null, 'Button'),
|
2190
|
+
),
|
2191
|
+
),
|
2192
|
+
);
|
2193
|
+
};
|
2194
|
+
a['default'] = i;
|
2195
|
+
},
|
2196
|
+
muou: function (e, a, t) {
|
2197
|
+
'use strict';
|
2198
|
+
t.r(a);
|
2199
|
+
var r = t('q1tI'),
|
2200
|
+
n = t.n(r),
|
2201
|
+
l = t('m/eG'),
|
2202
|
+
c = t('cJ7L'),
|
2203
|
+
i = t('FY4R'),
|
2204
|
+
m = () => {
|
2205
|
+
var e = (e) => {
|
2206
|
+
console.log('Received values of form: ', e);
|
2207
|
+
};
|
2208
|
+
return n.a.createElement(
|
2209
|
+
l['y'],
|
2210
|
+
{
|
2211
|
+
name: 'normal_login',
|
2212
|
+
className: 'login-form',
|
2213
|
+
initialValues: { remember: !0 },
|
2214
|
+
onFinish: e,
|
2215
|
+
},
|
2216
|
+
n.a.createElement(
|
2217
|
+
l['y'].Item,
|
2218
|
+
{
|
2219
|
+
name: 'username',
|
2220
|
+
rules: [
|
2221
|
+
{ required: !0, message: 'Please input your Username!' },
|
2222
|
+
],
|
2223
|
+
},
|
2224
|
+
n.a.createElement(l['A'], {
|
2225
|
+
prefix: n.a.createElement(c['a'], {
|
2226
|
+
className: 'site-form-item-icon',
|
2227
|
+
}),
|
2228
|
+
placeholder: 'Username',
|
2229
|
+
}),
|
2230
|
+
),
|
2231
|
+
n.a.createElement(
|
2232
|
+
l['y'].Item,
|
2233
|
+
{
|
2234
|
+
name: 'password',
|
2235
|
+
rules: [
|
2236
|
+
{ required: !0, message: 'Please input your Password!' },
|
2237
|
+
],
|
2238
|
+
},
|
2239
|
+
n.a.createElement(l['A'], {
|
2240
|
+
prefix: n.a.createElement(i['a'], {
|
2241
|
+
className: 'site-form-item-icon',
|
2242
|
+
}),
|
2243
|
+
type: 'password',
|
2244
|
+
placeholder: 'Password',
|
2245
|
+
}),
|
2246
|
+
),
|
2247
|
+
n.a.createElement(
|
2248
|
+
l['y'].Item,
|
2249
|
+
null,
|
2250
|
+
n.a.createElement(
|
2251
|
+
l['y'].Item,
|
2252
|
+
{ name: 'remember', valuePropName: 'checked', noStyle: !0 },
|
2253
|
+
n.a.createElement(l['n'], null, 'Remember me'),
|
2254
|
+
),
|
2255
|
+
n.a.createElement(
|
2256
|
+
'a',
|
2257
|
+
{ className: 'login-form-forgot', href: '' },
|
2258
|
+
'Forgot password',
|
2259
|
+
),
|
2260
|
+
),
|
2261
|
+
n.a.createElement(
|
2262
|
+
l['y'].Item,
|
2263
|
+
null,
|
2264
|
+
n.a.createElement(
|
2265
|
+
l['i'],
|
2266
|
+
{
|
2267
|
+
type: 'primary',
|
2268
|
+
htmlType: 'submit',
|
2269
|
+
className: 'login-form-button',
|
2270
|
+
},
|
2271
|
+
'Log in',
|
2272
|
+
),
|
2273
|
+
'Or ',
|
2274
|
+
n.a.createElement('a', { href: '' }, 'register now!'),
|
2275
|
+
),
|
2276
|
+
);
|
2277
|
+
};
|
2278
|
+
a['default'] = m;
|
2279
|
+
},
|
2280
|
+
nC7M: function (e, a, t) {
|
2281
|
+
'use strict';
|
2282
|
+
t.r(a);
|
2283
|
+
var r = t('q1tI'),
|
2284
|
+
n = t.n(r),
|
2285
|
+
l = t('m/eG'),
|
2286
|
+
c = l['Q'].Option,
|
2287
|
+
i = () => {
|
2288
|
+
var e = (e) => {
|
2289
|
+
console.log('Received values of form: ', e);
|
2290
|
+
};
|
2291
|
+
return n.a.createElement(
|
2292
|
+
l['y'],
|
2293
|
+
{
|
2294
|
+
name: 'complex-form',
|
2295
|
+
onFinish: e,
|
2296
|
+
labelCol: { span: 8 },
|
2297
|
+
wrapperCol: { span: 16 },
|
2298
|
+
},
|
2299
|
+
n.a.createElement(
|
2300
|
+
l['y'].Item,
|
2301
|
+
{ label: 'Username' },
|
2302
|
+
n.a.createElement(
|
2303
|
+
l['T'],
|
2304
|
+
null,
|
2305
|
+
n.a.createElement(
|
2306
|
+
l['y'].Item,
|
2307
|
+
{
|
2308
|
+
name: 'username',
|
2309
|
+
noStyle: !0,
|
2310
|
+
rules: [{ required: !0, message: 'Username is required' }],
|
2311
|
+
},
|
2312
|
+
n.a.createElement(l['A'], {
|
2313
|
+
style: { width: 160 },
|
2314
|
+
placeholder: 'Please input',
|
2315
|
+
}),
|
2316
|
+
),
|
2317
|
+
n.a.createElement(
|
2318
|
+
l['db'],
|
2319
|
+
{ title: 'Useful information' },
|
2320
|
+
n.a.createElement(
|
2321
|
+
l['hb'].Link,
|
2322
|
+
{ href: '#API' },
|
2323
|
+
'Need Help?',
|
2324
|
+
),
|
2325
|
+
),
|
2326
|
+
),
|
2327
|
+
),
|
2328
|
+
n.a.createElement(
|
2329
|
+
l['y'].Item,
|
2330
|
+
{ label: 'Address' },
|
2331
|
+
n.a.createElement(
|
2332
|
+
l['A'].Group,
|
2333
|
+
{ compact: !0 },
|
2334
|
+
n.a.createElement(
|
2335
|
+
l['y'].Item,
|
2336
|
+
{
|
2337
|
+
name: ['address', 'province'],
|
2338
|
+
noStyle: !0,
|
2339
|
+
rules: [{ required: !0, message: 'Province is required' }],
|
2340
|
+
},
|
2341
|
+
n.a.createElement(
|
2342
|
+
l['Q'],
|
2343
|
+
{ placeholder: 'Select province' },
|
2344
|
+
n.a.createElement(c, { value: 'Zhejiang' }, 'Zhejiang'),
|
2345
|
+
n.a.createElement(c, { value: 'Jiangsu' }, 'Jiangsu'),
|
2346
|
+
),
|
2347
|
+
),
|
2348
|
+
n.a.createElement(
|
2349
|
+
l['y'].Item,
|
2350
|
+
{
|
2351
|
+
name: ['address', 'street'],
|
2352
|
+
noStyle: !0,
|
2353
|
+
rules: [{ required: !0, message: 'Street is required' }],
|
2354
|
+
},
|
2355
|
+
n.a.createElement(l['A'], {
|
2356
|
+
style: { width: '50%' },
|
2357
|
+
placeholder: 'Input street',
|
2358
|
+
}),
|
2359
|
+
),
|
2360
|
+
),
|
2361
|
+
),
|
2362
|
+
n.a.createElement(
|
2363
|
+
l['y'].Item,
|
2364
|
+
{ label: 'BirthDate', style: { marginBottom: 0 } },
|
2365
|
+
n.a.createElement(
|
2366
|
+
l['y'].Item,
|
2367
|
+
{
|
2368
|
+
name: 'year',
|
2369
|
+
rules: [{ required: !0 }],
|
2370
|
+
style: { display: 'inline-block', width: 'calc(50% - 8px)' },
|
2371
|
+
},
|
2372
|
+
n.a.createElement(l['A'], { placeholder: 'Input birth year' }),
|
2373
|
+
),
|
2374
|
+
n.a.createElement(
|
2375
|
+
l['y'].Item,
|
2376
|
+
{
|
2377
|
+
name: 'month',
|
2378
|
+
rules: [{ required: !0 }],
|
2379
|
+
style: {
|
2380
|
+
display: 'inline-block',
|
2381
|
+
width: 'calc(50% - 8px)',
|
2382
|
+
margin: '0 8px',
|
2383
|
+
},
|
2384
|
+
},
|
2385
|
+
n.a.createElement(l['A'], { placeholder: 'Input birth month' }),
|
2386
|
+
),
|
2387
|
+
),
|
2388
|
+
n.a.createElement(
|
2389
|
+
l['y'].Item,
|
2390
|
+
{ label: ' ', colon: !1 },
|
2391
|
+
n.a.createElement(
|
2392
|
+
l['i'],
|
2393
|
+
{ type: 'primary', htmlType: 'submit' },
|
2394
|
+
'Submit',
|
2395
|
+
),
|
2396
|
+
),
|
2397
|
+
);
|
2398
|
+
};
|
2399
|
+
a['default'] = i;
|
2400
|
+
},
|
2401
|
+
'o+L2': function (e, a, t) {
|
2402
|
+
'use strict';
|
2403
|
+
t.r(a);
|
2404
|
+
var r = t('0Owb'),
|
2405
|
+
n = t('tJVT'),
|
2406
|
+
l = t('q1tI'),
|
2407
|
+
c = t.n(l),
|
2408
|
+
i = t('m/eG'),
|
2409
|
+
m = () => {
|
2410
|
+
var e = i['y'].useForm(),
|
2411
|
+
a = Object(n['a'])(e, 1),
|
2412
|
+
t = a[0],
|
2413
|
+
m = Object(l['useState'])('horizontal'),
|
2414
|
+
s = Object(n['a'])(m, 2),
|
2415
|
+
o = s[0],
|
2416
|
+
u = s[1],
|
2417
|
+
d = (e) => {
|
2418
|
+
var a = e.layout;
|
2419
|
+
u(a);
|
2420
|
+
},
|
2421
|
+
p =
|
2422
|
+
'horizontal' === o
|
2423
|
+
? { labelCol: { span: 4 }, wrapperCol: { span: 14 } }
|
2424
|
+
: null,
|
2425
|
+
b =
|
2426
|
+
'horizontal' === o
|
2427
|
+
? { wrapperCol: { span: 14, offset: 4 } }
|
2428
|
+
: null;
|
2429
|
+
return c.a.createElement(
|
2430
|
+
c.a.Fragment,
|
2431
|
+
null,
|
2432
|
+
c.a.createElement(
|
2433
|
+
i['y'],
|
2434
|
+
Object(r['a'])({}, p, {
|
2435
|
+
layout: o,
|
2436
|
+
form: t,
|
2437
|
+
initialValues: { layout: o },
|
2438
|
+
onValuesChange: d,
|
2439
|
+
}),
|
2440
|
+
c.a.createElement(
|
2441
|
+
i['y'].Item,
|
2442
|
+
{ label: 'Form Layout', name: 'layout' },
|
2443
|
+
c.a.createElement(
|
2444
|
+
i['M'].Group,
|
2445
|
+
{ value: o },
|
2446
|
+
c.a.createElement(
|
2447
|
+
i['M'].Button,
|
2448
|
+
{ value: 'horizontal' },
|
2449
|
+
'Horizontal',
|
2450
|
+
),
|
2451
|
+
c.a.createElement(
|
2452
|
+
i['M'].Button,
|
2453
|
+
{ value: 'vertical' },
|
2454
|
+
'Vertical',
|
2455
|
+
),
|
2456
|
+
c.a.createElement(
|
2457
|
+
i['M'].Button,
|
2458
|
+
{ value: 'inline' },
|
2459
|
+
'Inline',
|
2460
|
+
),
|
2461
|
+
),
|
2462
|
+
),
|
2463
|
+
c.a.createElement(
|
2464
|
+
i['y'].Item,
|
2465
|
+
{ label: 'Field A' },
|
2466
|
+
c.a.createElement(i['A'], { placeholder: 'input placeholder' }),
|
2467
|
+
),
|
2468
|
+
c.a.createElement(
|
2469
|
+
i['y'].Item,
|
2470
|
+
{ label: 'Field B' },
|
2471
|
+
c.a.createElement(i['A'], { placeholder: 'input placeholder' }),
|
2472
|
+
),
|
2473
|
+
c.a.createElement(
|
2474
|
+
i['y'].Item,
|
2475
|
+
b,
|
2476
|
+
c.a.createElement(i['i'], { type: 'primary' }, 'Submit'),
|
2477
|
+
),
|
2478
|
+
),
|
2479
|
+
);
|
2480
|
+
};
|
2481
|
+
a['default'] = m;
|
2482
|
+
},
|
2483
|
+
'qu/w': function (e, a, t) {},
|
2484
|
+
rMHt: function (e, a, t) {
|
2485
|
+
'use strict';
|
2486
|
+
t.r(a);
|
2487
|
+
var r = t('tJVT'),
|
2488
|
+
n = t('q1tI'),
|
2489
|
+
l = t.n(n),
|
2490
|
+
c = t('m/eG'),
|
2491
|
+
i = t('VTBJ'),
|
2492
|
+
m = {
|
2493
|
+
icon: {
|
2494
|
+
tag: 'svg',
|
2495
|
+
attrs: { viewBox: '64 64 896 896', focusable: 'false' },
|
2496
|
+
children: [
|
2497
|
+
{
|
2498
|
+
tag: 'path',
|
2499
|
+
attrs: {
|
2500
|
+
d: 'M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z',
|
2501
|
+
},
|
2502
|
+
},
|
2503
|
+
],
|
2504
|
+
},
|
2505
|
+
name: 'up',
|
2506
|
+
theme: 'outlined',
|
2507
|
+
},
|
2508
|
+
s = m,
|
2509
|
+
o = t('6VBw'),
|
2510
|
+
u = function (e, a) {
|
2511
|
+
return n['createElement'](
|
2512
|
+
o['a'],
|
2513
|
+
Object(i['a'])(Object(i['a'])({}, e), {}, { ref: a, icon: s }),
|
2514
|
+
);
|
2515
|
+
};
|
2516
|
+
u.displayName = 'UpOutlined';
|
2517
|
+
var d = n['forwardRef'](u),
|
2518
|
+
p = t('8Skl'),
|
2519
|
+
b =
|
2520
|
+
(t('qu/w'),
|
2521
|
+
() => {
|
2522
|
+
var e = Object(n['useState'])(!1),
|
2523
|
+
a = Object(r['a'])(e, 2),
|
2524
|
+
t = a[0],
|
2525
|
+
i = a[1],
|
2526
|
+
m = c['y'].useForm(),
|
2527
|
+
s = Object(r['a'])(m, 1),
|
2528
|
+
o = s[0],
|
2529
|
+
u = () => {
|
2530
|
+
for (var e = t ? 10 : 6, a = [], r = 0; r < e; r++)
|
2531
|
+
a.push(
|
2532
|
+
l.a.createElement(
|
2533
|
+
c['o'],
|
2534
|
+
{ span: 8, key: r },
|
2535
|
+
l.a.createElement(
|
2536
|
+
c['y'].Item,
|
2537
|
+
{
|
2538
|
+
name: 'field-'.concat(r),
|
2539
|
+
label: 'Field '.concat(r),
|
2540
|
+
rules: [
|
2541
|
+
{ required: !0, message: 'Input something!' },
|
2542
|
+
],
|
2543
|
+
},
|
2544
|
+
l.a.createElement(c['A'], {
|
2545
|
+
placeholder: 'placeholder',
|
2546
|
+
}),
|
2547
|
+
),
|
2548
|
+
),
|
2549
|
+
);
|
2550
|
+
return a;
|
2551
|
+
},
|
2552
|
+
b = (e) => {
|
2553
|
+
console.log('Received values of form: ', e);
|
2554
|
+
};
|
2555
|
+
return l.a.createElement(
|
2556
|
+
c['y'],
|
2557
|
+
{
|
2558
|
+
form: o,
|
2559
|
+
name: 'advanced_search',
|
2560
|
+
className: 'ant-advanced-search-form',
|
2561
|
+
onFinish: b,
|
2562
|
+
},
|
2563
|
+
l.a.createElement(c['P'], { gutter: 24 }, u()),
|
2564
|
+
l.a.createElement(
|
2565
|
+
c['P'],
|
2566
|
+
null,
|
2567
|
+
l.a.createElement(
|
2568
|
+
c['o'],
|
2569
|
+
{ span: 24, style: { textAlign: 'right' } },
|
2570
|
+
l.a.createElement(
|
2571
|
+
c['i'],
|
2572
|
+
{ type: 'primary', htmlType: 'submit' },
|
2573
|
+
'Search',
|
2574
|
+
),
|
2575
|
+
l.a.createElement(
|
2576
|
+
c['i'],
|
2577
|
+
{
|
2578
|
+
style: { margin: '0 8px' },
|
2579
|
+
onClick: () => {
|
2580
|
+
o.resetFields();
|
2581
|
+
},
|
2582
|
+
},
|
2583
|
+
'Clear',
|
2584
|
+
),
|
2585
|
+
l.a.createElement(
|
2586
|
+
'a',
|
2587
|
+
{
|
2588
|
+
style: { fontSize: 12 },
|
2589
|
+
onClick: () => {
|
2590
|
+
i(!t);
|
2591
|
+
},
|
2592
|
+
},
|
2593
|
+
t
|
2594
|
+
? l.a.createElement(d, null)
|
2595
|
+
: l.a.createElement(p['a'], null),
|
2596
|
+
' Collapse',
|
2597
|
+
),
|
2598
|
+
),
|
2599
|
+
),
|
2600
|
+
);
|
2601
|
+
}),
|
2602
|
+
y = () =>
|
2603
|
+
l.a.createElement(
|
2604
|
+
'div',
|
2605
|
+
null,
|
2606
|
+
l.a.createElement(b, null),
|
2607
|
+
l.a.createElement(
|
2608
|
+
'div',
|
2609
|
+
{ className: 'search-result-list' },
|
2610
|
+
'Search Result List',
|
2611
|
+
),
|
2612
|
+
);
|
2613
|
+
a['default'] = y;
|
2614
|
+
},
|
2615
|
+
rzX8: function (e, a, t) {
|
2616
|
+
'use strict';
|
2617
|
+
t.r(a);
|
2618
|
+
var r = t('0Owb'),
|
2619
|
+
n = t('q1tI'),
|
2620
|
+
l = t.n(n),
|
2621
|
+
c = t('m/eG'),
|
2622
|
+
i = c['Q'].Option,
|
2623
|
+
m = { labelCol: { span: 8 }, wrapperCol: { span: 16 } },
|
2624
|
+
s = { wrapperCol: { offset: 8, span: 16 } };
|
2625
|
+
class o extends l.a.Component {
|
2626
|
+
constructor() {
|
2627
|
+
super(...arguments),
|
2628
|
+
(this.formRef = l.a.createRef()),
|
2629
|
+
(this.onGenderChange = (e) => {
|
2630
|
+
switch (e) {
|
2631
|
+
case 'male':
|
2632
|
+
return void this.formRef.current.setFieldsValue({
|
2633
|
+
note: 'Hi, man!',
|
2634
|
+
});
|
2635
|
+
case 'female':
|
2636
|
+
return void this.formRef.current.setFieldsValue({
|
2637
|
+
note: 'Hi, lady!',
|
2638
|
+
});
|
2639
|
+
case 'other':
|
2640
|
+
this.formRef.current.setFieldsValue({ note: 'Hi there!' });
|
2641
|
+
}
|
2642
|
+
}),
|
2643
|
+
(this.onFinish = (e) => {
|
2644
|
+
console.log(e);
|
2645
|
+
}),
|
2646
|
+
(this.onReset = () => {
|
2647
|
+
this.formRef.current.resetFields();
|
2648
|
+
}),
|
2649
|
+
(this.onFill = () => {
|
2650
|
+
this.formRef.current.setFieldsValue({
|
2651
|
+
note: 'Hello world!',
|
2652
|
+
gender: 'male',
|
2653
|
+
});
|
2654
|
+
});
|
2655
|
+
}
|
2656
|
+
render() {
|
2657
|
+
return l.a.createElement(
|
2658
|
+
c['y'],
|
2659
|
+
Object(r['a'])({}, m, {
|
2660
|
+
ref: this.formRef,
|
2661
|
+
name: 'control-ref',
|
2662
|
+
onFinish: this.onFinish,
|
2663
|
+
}),
|
2664
|
+
l.a.createElement(
|
2665
|
+
c['y'].Item,
|
2666
|
+
{ name: 'note', label: 'Note', rules: [{ required: !0 }] },
|
2667
|
+
l.a.createElement(c['A'], null),
|
2668
|
+
),
|
2669
|
+
l.a.createElement(
|
2670
|
+
c['y'].Item,
|
2671
|
+
{ name: 'gender', label: 'Gender', rules: [{ required: !0 }] },
|
2672
|
+
l.a.createElement(
|
2673
|
+
c['Q'],
|
2674
|
+
{
|
2675
|
+
placeholder: 'Select a option and change input text above',
|
2676
|
+
onChange: this.onGenderChange,
|
2677
|
+
allowClear: !0,
|
2678
|
+
},
|
2679
|
+
l.a.createElement(i, { value: 'male' }, 'male'),
|
2680
|
+
l.a.createElement(i, { value: 'female' }, 'female'),
|
2681
|
+
l.a.createElement(i, { value: 'other' }, 'other'),
|
2682
|
+
),
|
2683
|
+
),
|
2684
|
+
l.a.createElement(
|
2685
|
+
c['y'].Item,
|
2686
|
+
{ noStyle: !0, shouldUpdate: (e, a) => e.gender !== a.gender },
|
2687
|
+
(e) => {
|
2688
|
+
var a = e.getFieldValue;
|
2689
|
+
return 'other' === a('gender')
|
2690
|
+
? l.a.createElement(
|
2691
|
+
c['y'].Item,
|
2692
|
+
{
|
2693
|
+
name: 'customizeGender',
|
2694
|
+
label: 'Customize Gender',
|
2695
|
+
rules: [{ required: !0 }],
|
2696
|
+
},
|
2697
|
+
l.a.createElement(c['A'], null),
|
2698
|
+
)
|
2699
|
+
: null;
|
2700
|
+
},
|
2701
|
+
),
|
2702
|
+
l.a.createElement(
|
2703
|
+
c['y'].Item,
|
2704
|
+
s,
|
2705
|
+
l.a.createElement(
|
2706
|
+
c['i'],
|
2707
|
+
{ type: 'primary', htmlType: 'submit' },
|
2708
|
+
'Submit',
|
2709
|
+
),
|
2710
|
+
l.a.createElement(
|
2711
|
+
c['i'],
|
2712
|
+
{ htmlType: 'button', onClick: this.onReset },
|
2713
|
+
'Reset',
|
2714
|
+
),
|
2715
|
+
l.a.createElement(
|
2716
|
+
c['i'],
|
2717
|
+
{ type: 'link', htmlType: 'button', onClick: this.onFill },
|
2718
|
+
'Fill form',
|
2719
|
+
),
|
2720
|
+
),
|
2721
|
+
);
|
2722
|
+
}
|
2723
|
+
}
|
2724
|
+
a['default'] = o;
|
2725
|
+
},
|
2726
|
+
sr5T: function (e, a, t) {
|
2727
|
+
'use strict';
|
2728
|
+
t.r(a);
|
2729
|
+
var r = t('k1fw'),
|
2730
|
+
n = t('tJVT'),
|
2731
|
+
l = t('q1tI'),
|
2732
|
+
c = t.n(l),
|
2733
|
+
i = t('m/eG'),
|
2734
|
+
m = i['Q'].Option,
|
2735
|
+
s = (e) => {
|
2736
|
+
var a = e.value,
|
2737
|
+
t = void 0 === a ? {} : a,
|
2738
|
+
s = e.onChange,
|
2739
|
+
o = Object(l['useState'])(0),
|
2740
|
+
u = Object(n['a'])(o, 2),
|
2741
|
+
d = u[0],
|
2742
|
+
p = u[1],
|
2743
|
+
b = Object(l['useState'])('rmb'),
|
2744
|
+
y = Object(n['a'])(b, 2),
|
2745
|
+
h = y[0],
|
2746
|
+
E = y[1],
|
2747
|
+
f = (e) => {
|
2748
|
+
null === s ||
|
2749
|
+
void 0 === s ||
|
2750
|
+
s(
|
2751
|
+
Object(r['a'])(
|
2752
|
+
Object(r['a'])({ number: d, currency: h }, t),
|
2753
|
+
e,
|
2754
|
+
),
|
2755
|
+
);
|
2756
|
+
},
|
2757
|
+
v = (e) => {
|
2758
|
+
var a = parseInt(e.target.value || '0', 10);
|
2759
|
+
Number.isNaN(d) || ('number' in t || p(a), f({ number: a }));
|
2760
|
+
},
|
2761
|
+
g = (e) => {
|
2762
|
+
'currency' in t || E(e), f({ currency: e });
|
2763
|
+
};
|
2764
|
+
return c.a.createElement(
|
2765
|
+
'span',
|
2766
|
+
null,
|
2767
|
+
c.a.createElement(i['A'], {
|
2768
|
+
type: 'text',
|
2769
|
+
value: t.number || d,
|
2770
|
+
onChange: v,
|
2771
|
+
style: { width: 100 },
|
2772
|
+
}),
|
2773
|
+
c.a.createElement(
|
2774
|
+
i['Q'],
|
2775
|
+
{
|
2776
|
+
value: t.currency || h,
|
2777
|
+
style: { width: 80, margin: '0 8px' },
|
2778
|
+
onChange: g,
|
2779
|
+
},
|
2780
|
+
c.a.createElement(m, { value: 'rmb' }, 'RMB'),
|
2781
|
+
c.a.createElement(m, { value: 'dollar' }, 'Dollar'),
|
2782
|
+
),
|
2783
|
+
);
|
2784
|
+
},
|
2785
|
+
o = () => {
|
2786
|
+
var e = (e) => {
|
2787
|
+
console.log('Received values from form: ', e);
|
2788
|
+
},
|
2789
|
+
a = (e, a) =>
|
2790
|
+
a.number > 0
|
2791
|
+
? Promise.resolve()
|
2792
|
+
: Promise.reject(new Error('Price must be greater than zero!'));
|
2793
|
+
return c.a.createElement(
|
2794
|
+
i['y'],
|
2795
|
+
{
|
2796
|
+
name: 'customized_form_controls',
|
2797
|
+
layout: 'inline',
|
2798
|
+
onFinish: e,
|
2799
|
+
initialValues: { price: { number: 0, currency: 'rmb' } },
|
2800
|
+
},
|
2801
|
+
c.a.createElement(
|
2802
|
+
i['y'].Item,
|
2803
|
+
{ name: 'price', label: 'Price', rules: [{ validator: a }] },
|
2804
|
+
c.a.createElement(s, null),
|
2805
|
+
),
|
2806
|
+
c.a.createElement(
|
2807
|
+
i['y'].Item,
|
2808
|
+
null,
|
2809
|
+
c.a.createElement(
|
2810
|
+
i['i'],
|
2811
|
+
{ type: 'primary', htmlType: 'submit' },
|
2812
|
+
'Submit',
|
2813
|
+
),
|
2814
|
+
),
|
2815
|
+
);
|
2816
|
+
};
|
2817
|
+
a['default'] = o;
|
2818
|
+
},
|
2819
|
+
wFXQ: function (e, a, t) {
|
2820
|
+
'use strict';
|
2821
|
+
t.r(a);
|
2822
|
+
var r = t('0Owb'),
|
2823
|
+
n = t('9og8'),
|
2824
|
+
l = t('tJVT'),
|
2825
|
+
c = t('WmNS'),
|
2826
|
+
i = t.n(c),
|
2827
|
+
m = t('q1tI'),
|
2828
|
+
s = t.n(m),
|
2829
|
+
o = t('m/eG'),
|
2830
|
+
u = { labelCol: { span: 4 }, wrapperCol: { span: 8 } },
|
2831
|
+
d = { labelCol: { span: 4 }, wrapperCol: { span: 8, offset: 4 } },
|
2832
|
+
p = () => {
|
2833
|
+
var e = o['y'].useForm(),
|
2834
|
+
a = Object(l['a'])(e, 1),
|
2835
|
+
t = a[0],
|
2836
|
+
c = Object(m['useState'])(!1),
|
2837
|
+
p = Object(l['a'])(c, 2),
|
2838
|
+
b = p[0],
|
2839
|
+
y = p[1];
|
2840
|
+
Object(m['useEffect'])(() => {
|
2841
|
+
t.validateFields(['nickname']);
|
2842
|
+
}, [b]);
|
2843
|
+
var h = (e) => {
|
2844
|
+
y(e.target.checked);
|
2845
|
+
},
|
2846
|
+
E = (function () {
|
2847
|
+
var e = Object(n['a'])(
|
2848
|
+
i.a.mark(function e() {
|
2849
|
+
var a;
|
2850
|
+
return i.a.wrap(
|
2851
|
+
function (e) {
|
2852
|
+
while (1)
|
2853
|
+
switch ((e.prev = e.next)) {
|
2854
|
+
case 0:
|
2855
|
+
return (
|
2856
|
+
(e.prev = 0), (e.next = 3), t.validateFields()
|
2857
|
+
);
|
2858
|
+
case 3:
|
2859
|
+
(a = e.sent),
|
2860
|
+
console.log('Success:', a),
|
2861
|
+
(e.next = 10);
|
2862
|
+
break;
|
2863
|
+
case 7:
|
2864
|
+
(e.prev = 7),
|
2865
|
+
(e.t0 = e['catch'](0)),
|
2866
|
+
console.log('Failed:', e.t0);
|
2867
|
+
case 10:
|
2868
|
+
case 'end':
|
2869
|
+
return e.stop();
|
2870
|
+
}
|
2871
|
+
},
|
2872
|
+
e,
|
2873
|
+
null,
|
2874
|
+
[[0, 7]],
|
2875
|
+
);
|
2876
|
+
}),
|
2877
|
+
);
|
2878
|
+
return function () {
|
2879
|
+
return e.apply(this, arguments);
|
2880
|
+
};
|
2881
|
+
})();
|
2882
|
+
return s.a.createElement(
|
2883
|
+
o['y'],
|
2884
|
+
{ form: t, name: 'dynamic_rule' },
|
2885
|
+
s.a.createElement(
|
2886
|
+
o['y'].Item,
|
2887
|
+
Object(r['a'])({}, u, {
|
2888
|
+
name: 'username',
|
2889
|
+
label: 'Name',
|
2890
|
+
rules: [{ required: !0, message: 'Please input your name' }],
|
2891
|
+
}),
|
2892
|
+
s.a.createElement(o['A'], {
|
2893
|
+
placeholder: 'Please input your name',
|
2894
|
+
}),
|
2895
|
+
),
|
2896
|
+
s.a.createElement(
|
2897
|
+
o['y'].Item,
|
2898
|
+
Object(r['a'])({}, u, {
|
2899
|
+
name: 'nickname',
|
2900
|
+
label: 'Nickname',
|
2901
|
+
rules: [{ required: b, message: 'Please input your nickname' }],
|
2902
|
+
}),
|
2903
|
+
s.a.createElement(o['A'], {
|
2904
|
+
placeholder: 'Please input your nickname',
|
2905
|
+
}),
|
2906
|
+
),
|
2907
|
+
s.a.createElement(
|
2908
|
+
o['y'].Item,
|
2909
|
+
d,
|
2910
|
+
s.a.createElement(
|
2911
|
+
o['n'],
|
2912
|
+
{ checked: b, onChange: h },
|
2913
|
+
'Nickname is required',
|
2914
|
+
),
|
2915
|
+
),
|
2916
|
+
s.a.createElement(
|
2917
|
+
o['y'].Item,
|
2918
|
+
d,
|
2919
|
+
s.a.createElement(
|
2920
|
+
o['i'],
|
2921
|
+
{ type: 'primary', onClick: E },
|
2922
|
+
'Check',
|
2923
|
+
),
|
2924
|
+
),
|
2925
|
+
);
|
2926
|
+
};
|
2927
|
+
a['default'] = p;
|
2928
|
+
},
|
2929
|
+
wlus: function (e, a, t) {
|
2930
|
+
'use strict';
|
2931
|
+
var r = t('VTBJ'),
|
2932
|
+
n = t('q1tI'),
|
2933
|
+
l = {
|
2934
|
+
icon: {
|
2935
|
+
tag: 'svg',
|
2936
|
+
attrs: { viewBox: '64 64 896 896', focusable: 'false' },
|
2937
|
+
children: [
|
2938
|
+
{
|
2939
|
+
tag: 'path',
|
2940
|
+
attrs: {
|
2941
|
+
d: 'M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z',
|
2942
|
+
},
|
2943
|
+
},
|
2944
|
+
{
|
2945
|
+
tag: 'path',
|
2946
|
+
attrs: {
|
2947
|
+
d: 'M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z',
|
2948
|
+
},
|
2949
|
+
},
|
2950
|
+
],
|
2951
|
+
},
|
2952
|
+
name: 'minus-circle',
|
2953
|
+
theme: 'outlined',
|
2954
|
+
},
|
2955
|
+
c = l,
|
2956
|
+
i = t('6VBw'),
|
2957
|
+
m = function (e, a) {
|
2958
|
+
return n['createElement'](
|
2959
|
+
i['a'],
|
2960
|
+
Object(r['a'])(Object(r['a'])({}, e), {}, { ref: a, icon: c }),
|
2961
|
+
);
|
2962
|
+
};
|
2963
|
+
m.displayName = 'MinusCircleOutlined';
|
2964
|
+
a['a'] = n['forwardRef'](m);
|
2965
|
+
},
|
2966
|
+
xvlK: function (e, a, t) {
|
2967
|
+
'use strict';
|
2968
|
+
var r = t('VTBJ'),
|
2969
|
+
n = t('q1tI'),
|
2970
|
+
l = {
|
2971
|
+
icon: {
|
2972
|
+
tag: 'svg',
|
2973
|
+
attrs: { viewBox: '64 64 896 896', focusable: 'false' },
|
2974
|
+
children: [
|
2975
|
+
{
|
2976
|
+
tag: 'defs',
|
2977
|
+
attrs: {},
|
2978
|
+
children: [{ tag: 'style', attrs: {} }],
|
2979
|
+
},
|
2980
|
+
{
|
2981
|
+
tag: 'path',
|
2982
|
+
attrs: {
|
2983
|
+
d: 'M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z',
|
2984
|
+
},
|
2985
|
+
},
|
2986
|
+
{
|
2987
|
+
tag: 'path',
|
2988
|
+
attrs: {
|
2989
|
+
d: 'M176 474h672q8 0 8 8v60q0 8-8 8H176q-8 0-8-8v-60q0-8 8-8z',
|
2990
|
+
},
|
2991
|
+
},
|
2992
|
+
],
|
2993
|
+
},
|
2994
|
+
name: 'plus',
|
2995
|
+
theme: 'outlined',
|
2996
|
+
},
|
2997
|
+
c = l,
|
2998
|
+
i = t('6VBw'),
|
2999
|
+
m = function (e, a) {
|
3000
|
+
return n['createElement'](
|
3001
|
+
i['a'],
|
3002
|
+
Object(r['a'])(Object(r['a'])({}, e), {}, { ref: a, icon: c }),
|
3003
|
+
);
|
3004
|
+
};
|
3005
|
+
m.displayName = 'PlusOutlined';
|
3006
|
+
a['a'] = n['forwardRef'](m);
|
3007
|
+
},
|
3008
|
+
yNfo: function (e, a, t) {
|
3009
|
+
'use strict';
|
3010
|
+
t.r(a);
|
3011
|
+
var r = t('tJVT'),
|
3012
|
+
n = t('q1tI'),
|
3013
|
+
l = t.n(n),
|
3014
|
+
c = t('m/eG'),
|
3015
|
+
i = t('+YFz'),
|
3016
|
+
m = () => {
|
3017
|
+
var e = c['y'].useForm(),
|
3018
|
+
a = Object(r['a'])(e, 1),
|
3019
|
+
t = a[0],
|
3020
|
+
m = Object(n['useState'])('optional'),
|
3021
|
+
s = Object(r['a'])(m, 2),
|
3022
|
+
o = s[0],
|
3023
|
+
u = s[1],
|
3024
|
+
d = (e) => {
|
3025
|
+
var a = e.requiredMarkValue;
|
3026
|
+
u(a);
|
3027
|
+
};
|
3028
|
+
return l.a.createElement(
|
3029
|
+
c['y'],
|
3030
|
+
{
|
3031
|
+
form: t,
|
3032
|
+
layout: 'vertical',
|
3033
|
+
initialValues: { requiredMarkValue: o },
|
3034
|
+
onValuesChange: d,
|
3035
|
+
requiredMark: o,
|
3036
|
+
},
|
3037
|
+
l.a.createElement(
|
3038
|
+
c['y'].Item,
|
3039
|
+
{ label: 'Required Mark', name: 'requiredMarkValue' },
|
3040
|
+
l.a.createElement(
|
3041
|
+
c['M'].Group,
|
3042
|
+
null,
|
3043
|
+
l.a.createElement(
|
3044
|
+
c['M'].Button,
|
3045
|
+
{ value: 'optional' },
|
3046
|
+
'Optional',
|
3047
|
+
),
|
3048
|
+
l.a.createElement(c['M'].Button, { value: !0 }, 'Required'),
|
3049
|
+
l.a.createElement(c['M'].Button, { value: !1 }, 'Hidden'),
|
3050
|
+
),
|
3051
|
+
),
|
3052
|
+
l.a.createElement(
|
3053
|
+
c['y'].Item,
|
3054
|
+
{
|
3055
|
+
label: 'Field A',
|
3056
|
+
required: !0,
|
3057
|
+
tooltip: 'This is a required field',
|
3058
|
+
},
|
3059
|
+
l.a.createElement(c['A'], { placeholder: 'input placeholder' }),
|
3060
|
+
),
|
3061
|
+
l.a.createElement(
|
3062
|
+
c['y'].Item,
|
3063
|
+
{
|
3064
|
+
label: 'Field B',
|
3065
|
+
tooltip: {
|
3066
|
+
title: 'Tooltip with customize icon',
|
3067
|
+
icon: l.a.createElement(i['a'], null),
|
3068
|
+
},
|
3069
|
+
},
|
3070
|
+
l.a.createElement(c['A'], { placeholder: 'input placeholder' }),
|
3071
|
+
),
|
3072
|
+
l.a.createElement(
|
3073
|
+
c['y'].Item,
|
3074
|
+
null,
|
3075
|
+
l.a.createElement(c['i'], { type: 'primary' }, 'Submit'),
|
3076
|
+
),
|
3077
|
+
);
|
3078
|
+
};
|
3079
|
+
a['default'] = m;
|
3080
|
+
},
|
3081
|
+
},
|
3082
|
+
]);
|