skyline-console/skyline_console/static/basic.bundle.1663167892.js
zhangjingwei 49dca85560 feat: update dist for rc1 release
1. Update dist for rc1 release
2. Update version in the package.json

Change-Id: Iaf7c0f5261f0e89b7a38acc1d2be5482bc2384a2
2022-09-14 23:08:02 +08:00

1 line
304 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window.webpackJsonp=window.webpackJsonp||[]).push([[5],{1191:function(e,t,a){"use strict";var n=a(19),r=a(21);n(t,"__esModule",{value:!0}),t.default=void 0;var l=r(a(413)),i=r(a(1704)),o=e=>(0,l.default)(i.default,e);t.default=o},1193:function(e,t,a){"use strict";var n=a(19),r=a(21);n(t,"__esModule",{value:!0}),n(t,"FormAction",{enumerable:!0,get:function(){return l.default}}),n(t,"StepAction",{enumerable:!0,get:function(){return i.default}}),n(t,"ConfirmAction",{enumerable:!0,get:function(){return o.default}}),n(t,"ModalAction",{enumerable:!0,get:function(){return u.default}});var l=r(a(1730)),i=r(a(1928)),o=r(a(1954)),u=r(a(1325))},1201:function(e,a,n){"use strict";var r=n(33),l=n(44),i=n(32),o=n(25),u=n(27),s=n(45),d=n(46),c=n(19),f=n(21);c(a,"__esModule",{value:!0}),a.default=void 0;var p=f(n(65)),h=f(n(32)),m=f(n(57)),g=f(n(27)),v=f(n(200)),y=f(n(1204)),b=f(n(90)),x=f(n(102)),w=f(n(335));n(337);var k=f(n(338));n(1222);var _=f(n(1223));n(1216);var C=f(n(1217));n(1198);var M=f(n(1199));n(1196);var N=f(n(1197)),S=f(n(409)),I=f(n(62));n(333);var E=f(n(332)),T=f(n(591)),j=f(n(36)),A=f(n(199)),D=f(n(99)),P=f(n(559)),L=f(n(346)),O=f(n(0)),z=f(n(1228)),R=(n(173),f(n(4))),U=(n(555),n(161)),F=n(341),V=f(n(1741)),B=n(648),K=n(558),Y=f(n(1501)),Q=f(n(1504)),G=f(n(1926));function H(e,t){var a=r(e);if(l){var n=l(e);t&&(n=i(n).call(n,(function(t){return o(e,t).enumerable}))),a.push.apply(a,n)}return a}function W(e){for(var t=1;t<arguments.length;t++){var a,n=null!=arguments[t]?arguments[t]:{};if(t%2)u(a=H(Object(n),!0)).call(a,(function(t){(0,j.default)(e,t,n[t])}));else if(s)d(e,s(n));else{var r;u(r=H(Object(n))).call(r,(function(t){c(e,t,o(n,t))}))}}return e}class q extends O.default.Component{constructor(e){var a,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(e),a=this,(0,j.default)(this,"updateContext",(e=>{var{updateContext:t}=this.props;t&&t(e)})),(0,j.default)(this,"unescape",(e=>(0,U.unescapeHtml)(e))),(0,j.default)(this,"getFormInstance",(()=>this.formRef.current)),(0,j.default)(this,"onSubmit",(e=>p.default.resolve())),(0,j.default)(this,"updateSubmitting",(e=>{this.setState({isSubmitting:e||!1})})),(0,j.default)(this,"onOk",((e,n,r)=>{if(this.values=e,!this.codeError){if(this.updateSubmitting(!0),!this.onSubmit)return r(!0,!1);var l=this.getSubmitData(e);return this.onSubmit(l,n).then((e=>{if(this.updateSubmitting(!1),!this.isModal&&this.routing.push(this.listUrl),this.response=e,r&&(0,L.default)(r)&&r(!0,!1),e instanceof Array){var a,n=this.instanceName?this.instanceName.split(", "):null,l=(0,h.default)(a=(0,m.default)(e).call(e,((e,t)=>"rejected"===e.status?{reason:e.reason,name:n?n[t]:""}:null))).call(a,(e=>!!e));0!==l.length?(0,g.default)(l).call(l,(e=>{var{response:{data:a}={}}=e.reason;this.showNotice&&z.default.errorWithDetail(a,t("Unable to {action}, instance: {name}.",{action:this.name.toLowerCase(),name:e.name}))})):this.showNotice&&z.default.success(this.successText)}else this.showNotice&&z.default.success(this.successText)}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a.updateSubmitting(!1),a.responseError=e;var{response:{data:t}={}}=e;a.showNotice&&z.default.errorWithDetail(t,a.errorText),r&&(0,L.default)(r)&&r(!1,!0)}))}})),(0,j.default)(this,"onCancel",(()=>{this.isSubmitting&&this.cancel&&(this.cancel(),z.default.success(t("Cancel upload successfully.")))})),(0,j.default)(this,"getChangedFieldsValue",((e,t)=>{var a=e[t];return(0,D.default)(a)&&a.value?a.value:(0,D.default)(a)&&a.selectedRows?a.selectedRows[0]:a})),(0,j.default)(this,"onValuesChange",((e,t)=>{})),(0,j.default)(this,"onValuesChangeForm",((e,t)=>{var a,n={};this.currentFormValue=t,(0,g.default)(a=this.nameForStateUpdate).call(a,(t=>{if((0,P.default)(e,t)){var a=this.getChangedFieldsValue(e,t);n[t]=a}})),(0,A.default)(n)||this.setState(W({},n)),this.onValuesChange(e,t)})),(0,j.default)(this,"checkFormInput",((e,t)=>{this.formRef.current&&this.formRef.current.validateFields().then((t=>{e&&e(t),this.updateContext(t)}),(e=>{var{values:a,errorFields:n}=e;n&&n.length&&t&&t(a,n)}))})),(0,j.default)(this,"onClickSubmit",((e,t,a)=>{this.codeError||this.checkFormInput((n=>{t&&t(n),this.onOk(n,a,e)}))})),(0,j.default)(this,"onClickCancel",(()=>{this.onCancel(),this.listUrl&&this.routing.push(this.listUrl)})),(0,j.default)(this,"updateDefaultValue",(()=>{this.resetFormValue(),this.updateContext(this.defaultValue)})),(0,j.default)(this,"resetFormValue",(e=>{this.formRef.current&&this.formRef.current.resetFields&&(e?this.formRef.current.resetFields(e):this.formRef.current.resetFields())})),(0,j.default)(this,"updateFormValue",((e,t)=>{this.formRef.current&&this.formRef.current.setFieldsValue({[e]:t})})),(0,j.default)(this,"onUploadProgress",(e=>{var{loaded:t,total:a}=e,n=Math.floor(t/a*100);this.setState({percent:n})})),(0,j.default)(this,"getUploadRequestConf",(()=>({onUploadProgress:this.onUploadProgress,cancelToken:this.cancelToken}))),this.options=n,this.state={defaultValue:{},formData:{},isSubmitting:!1,percent:""},this.values={},this.response=null,this.responseError=null,this.formRef=O.default.createRef(),this.tipRef=O.default.createRef(),this.codeError=!1,this.currentFormValue={},this.cancel=null,this.cancelToken=this.hasRequestCancelCallback?new B.CancelToken((e=>{this.cancel=e})):null,this.init()}componentDidMount(){try{this.updateState()}catch(e){}}componentWillUnmount(){this.unsubscribe&&this.unsubscribe(),this.disposer&&this.disposer(),this.unMountActions&&this.unMountActions()}get path(){var{location:{pathname:e=""}={}}=this.props;return e||""}get disableSubmit(){return!1}get name(){return""}get title(){return""}get className(){return""}get prefix(){return this.props.match.url}get routing(){return this.props.rootStore.routing}get params(){return this.props.match.params||{}}get location(){return this.props.location||{}}get locationParams(){var e;return(0,F.parse)((0,v.default)(e=this.location.search).call(e,1))}get listUrl(){return""}get currentUser(){var{user:e}=this.props.rootStore||{};return e||{}}get isAdminPage(){var{pathname:e=""}=this.props.location||{};return(0,U.isAdminPage)(e)}get hasAdminRole(){return this.props.rootStore.hasAdminRole}get currentProjectId(){return this.props.rootStore.projectId}get currentProjectName(){return this.props.rootStore.projectName}getRouteName(e){return this.isAdminPage?"".concat(e,"Admin"):e}getRoutePath(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRouteName(e);return(0,K.getPath)({key:n,params:t,query:a})}getLinkRender(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=this.getRouteName(e);return(0,K.getLinkRender)({key:r,params:a,query:n,value:t})}get isStep(){return!1}get isModal(){return!1}get labelCol(){return{xs:{span:5},sm:{span:3}}}get wrapperCol(){return{xs:{span:10},sm:{span:8}}}get defaultValue(){return null}get formDefaultValue(){var{context:e={}}=this.props,{defaultValue:t}=this;return W(W({},t),e)}get okBtnText(){return t("Confirm")}get instanceName(){var{name:e}=(0,y.default)(this)||{};return e}get successText(){return this.instanceName?(0,U.firstUpperCase)(t("{action} successfully, instance: {name}.",{action:this.name.toLowerCase(),name:this.instanceName})):(0,U.firstUpperCase)(t("{action} successfully.",{action:this.name.toLowerCase()}))}get errorText(){return this.instanceName?t("Unable to {action}, instance: {name}.",{action:this.name.toLowerCase(),name:this.instanceName}):t("Unable to {action}.",{action:this.name.toLowerCase()})}get isSubmitting(){var{isSubmitting:e=!1}=this.state;return e}get formItems(){return[]}get validateMessages(){return[]}get tips(){return""}get showNotice(){return!0}get nameForStateUpdate(){var e,t,a=["radio","more"];return(0,m.default)(e=(0,h.default)(t=this.formItems).call(t,(e=>(0,b.default)(a).call(a,e.type)>=0))).call(e,(e=>e.name))}get hasRequestCancelCallback(){return!1}get showQuota(){return!1}get quotaInfo(){return null}getRightExtraSpan(){return{left:18,right:6}}getSubmitData(e){return W({},e)}checkContextValue(){var{context:e}=this.props,t=this.nameForStateUpdate;return!(0,A.default)(e)&&!!(0,x.default)(t).call(t,(t=>(0,P.default)(e,t)))}updateState(){var{context:e}=this.props,t=this.nameForStateUpdate;if(0!==t.length){var a={};this.checkContextValue()?(0,g.default)(t).call(t,(t=>{a[t]=this.getChangedFieldsValue(e,t)})):(0,g.default)(t).call(t,(e=>{a[e]=this.getChangedFieldsValue(this.defaultValue,e)})),this.setState(W({},a))}}init(){this.store={}}renderTips(){return this.tips?O.default.createElement("div",{className:G.default.tips,ref:this.tipRef,id:"tips"},O.default.createElement(T.default,{className:G.default["tips-icon"]}),this.tips):null}renderFooterLeft(){return null}renderFooter(){if(this.isStep||this.isModal)return null;var e={};if(this.tips){var a=((document.getElementById("tips")||{}).clientHeight||35)+16;e.bottom=a}return O.default.createElement("div",{className:G.default.footer,style:e},O.default.createElement("div",{className:G.default["footer-left"]},this.renderFooterLeft()),O.default.createElement("div",{className:(0,R.default)(G.default.btns,"footer-btns")},O.default.createElement(E.default,{className:G.default.cancel,onClick:this.onClickCancel,loading:this.isSubmitting},t("Cancel")),O.default.createElement(E.default,{disabled:this.disableSubmit,type:"primary",className:G.default.submit,onClick:this.onClickSubmit,loading:this.isSubmitting},this.okBtnText)))}renderFormItems(){try{var e;return(0,m.default)(e=this.formItems).call(e,((e,t)=>{var{name:a,display:n=!0}=e,r=(0,I.default)(e,["name","display"]);return n?(this.codeError=!1,O.default.createElement(N.default,{span:24/(e.colNum||1),key:"form-item-col-".concat(t),id:"form-item-col-".concat(a)},O.default.createElement(V.default,(0,S.default)({},r,{name:a,key:"form-item-".concat(t),formref:this.formRef})))):""}))}catch(e){var a={type:"label",label:t("Error"),content:"Can Not Submit"===e.message?this.errorText:t("Unable to render form")};return this.codeError=!0,O.default.createElement(N.default,{span:24/(a.colNum||1),key:"form-item-col-".concat(0),id:"form-item-col-".concat("error")},O.default.createElement(V.default,(0,S.default)({},a,{key:"form-item-".concat(0),formref:this.formRef})))}}renderForms(){return O.default.createElement(C.default,{ref:this.formRef,labelCol:this.labelCol,colon:!1,labelAlign:"left",wrapperCol:this.wrapperCol,name:this.name,initialValues:this.formDefaultValue,onValuesChange:this.onValuesChangeForm,scrollToFirstError:!0},O.default.createElement("input",{type:"password",hidden:!0,autoComplete:"new-password"}),O.default.createElement(M.default,null,this.renderFormItems()))}renderAbortButton(){return!this.isSubmitting||this.isModal?null:O.default.createElement(E.default,{className:G.default.cancel,onClick:this.onClickCancel},t("Abort Upload"))}renderSubmittingTip(){if(this.hasRequestCancelCallback){var{percent:e}=this.state;return O.default.createElement("div",{className:G.default["submit-tip"]},t("Upload progress"),O.default.createElement("div",{className:G.default["progress-wrapper"]},O.default.createElement(_.default,{percent:e,size:"small"})),this.renderAbortButton())}}renderQuota(){if(!this.showQuota)return null;var e={};return this.quotaInfo&&this.quotaInfo.length?e={loading:!1,quotas:this.quotaInfo}:e.loading=!0,O.default.createElement(Q.default,e)}renderRightTopExtra(){if(this.isModal)return null;var e=this.renderQuota();if(!e)return null;var t=(0,w.default)(this.quotaInfo);return O.default.createElement("div",{className:G.default["right-top-extra-wrapper"]},O.default.createElement(Y.default,{content:e,checkValue:t}))}renderModalRightExtra(){if(!this.isModal)return null;var e=this.renderQuota();return e?O.default.createElement("div",{className:G.default["modal-right-extra-wrapper"]},e):null}render(){var e=this.listUrl||this.isStep||this.isModal&&this.tips?G.default["wrapper-page-padding"]:"",t=this.renderTips(),a={};if((this.listUrl||this.isStep)&&this.tips&&this.tipRef.current)if(this.isStep){var n=this.tipRef.current.clientHeight+219;a.height="calc(100vh - ".concat(n,"px)")}else{var r=this.tipRef.current.clientHeight+66;a.height="calc(100% - ".concat(r,"px)")}var l=O.default.createElement(k.default,{spinning:this.isSubmitting,tip:this.renderSubmittingTip()},this.renderRightTopExtra(),O.default.createElement("div",{className:(0,R.default)(G.default.form,"sl-form"),style:a},this.renderForms()),this.renderFooter()),i=!this.isModal||this.isModal&&!this.showQuota,{left:o,right:u}=this.getRightExtraSpan(),s=this.isModal&&!i?O.default.createElement(M.default,{justify:"space-between",align:"top"},O.default.createElement(N.default,{span:o},l),O.default.createElement(N.default,{span:u},this.renderModalRightExtra())):null;return O.default.createElement("div",{className:(0,R.default)(G.default.wrapper,e,this.className)},t,i&&l,s)}}a.default=q},1203:function(e,t,a){"use strict";var n=a(19),r=a(21);n(t,"__esModule",{value:!0}),t.checkSystemAdmin=t.onlyAdminCanChangePolicy=t.onlyAdminCanReadPolicy=t.allCanChangePolicy=t.allCanReadPolicy=t.default=t.systemRoleIsReader=t.checkPolicyRule=t.changeToActualPolicy=t.convertPolicyMap=t.policyMap=void 0;var l=r(a(27)),i=r(a(1265)),o=r(a(81)),u=r(a(32)),s=r(a(33)),d=r(a(198)),c=r(a(102)),f=r(a(1233)),p=r(a(226)),h=r(a(559)),m=r(a(131)),g=r(a(346)),v=r(a(99)),y=r(a(91)),b=r(a(140)),x={nova:["os_compute_api"],ironic:["baremetal:"],cinder:["volume:","volume_extension","backup:get","backup:restore","scheduler_extension"],glance:["get_image","add_image","delete_image","modify_image","get_members","add_member","delete_member","metadef"],neutron:["get_network","create_network","update_network","delete_network","get_agent","delete_agent","update_agent","get_dhcp-agents","get_l3-agents","create_subnet","get_subnet","update_subnet","delete_subnet","create_port","get_port","update_port","delete_port","router","policy_bandwidth_limit_rule","policy_dscp_marking_rule","security_group","floatingip","vpnservice","ipsec_site_connection"],octavia:["os_load-balancer_api"],heat:["stacks:","resource:index"],magnum:["cluster","clustertemplate"],barbican:["secret:get","secret:decrypt","secret:delete","containers:post"],zun:["capsule:","container:","host:get"],panko:["segregation","telemetry:events:index"],manila:["share:","share_","scheduler_stats:pools"],trove:["instance:create","instance:delete","instance:update","instance:backups","instance:restart","instance:resize","instance:extension","instance:guest_log_list","configuration:","backup:index","backup:show"]};t.policyMap=x;var w=e=>{var t,a={};return(0,l.default)(t=(0,i.default)(e)).call(t,(e=>{var[t,n]=e;(0,l.default)(n).call(n,(e=>{if(a[e]);a[e]=t}))})),a};t.convertPolicyMap=w;var k=(e,t)=>{var a,n,r,i=w(t);if(i[e])return(0,o.default)(r="".concat(i[e],":")).call(r,e);var c=(0,u.default)(a=(0,s.default)(i)).call(a,(t=>(0,d.default)(e).call(e,t)));c.length>1&&(0,l.default)(c).call(c,(e=>{}));var f=c.length&&i[c[0]];return f?(0,o.default)(n="".concat(f,":")).call(n,e):e};t.changeToActualPolicy=k;var _=(e,t,a)=>{var n;if(!e)return!0;var r=a?e:k(e,x),l=(0,c.default)(n=b.default.policies).call(n,(e=>e.rule===r));return!l||l.allowed};t.checkPolicyRule=_;var C=()=>{var{roles:e=[]}=b.default.user||{},t=["admin"],a=(0,p.default)(e).call(e,(e=>"reader"===e.name));if(!a)return!1;var n=(0,p.default)(e).call(e,(e=>(0,d.default)(t).call(t,e.name)));return a&&!n};t.systemRoleIsReader=C;var M=e=>{var{policy:t,aliasPolicy:a,item:n,actionName:r,isAdminPage:l,enableSystemReader:i}=e;if(0===b.default.policies.length)return!1;if(l&&!i&&C())return!1;if(l&&!i&&C())return!1;if(!t&&!a)return!0;var o=a||t,u=(0,g.default)(o)?o(n):o,s=[],d=!0;return(0,y.default)(u)?s=u:(0,v.default)(u)?(s=u.rules,(0,h.default)(u,"every")&&(d=(0,f.default)(u))):(0,m.default)(u)&&(s=[u]),!s||((e,t,a,n)=>0===e.length||(t?(0,f.default)(e).call(e,(e=>_(e,0,n))):(0,p.default)(e).call(e,(e=>_(e,0,n)))))(s,d,0,!!a)};t.default=M;t.allCanReadPolicy={rules:["admin","reader","member"],every:!1};t.allCanChangePolicy={rules:["admin","member"],every:!1};t.onlyAdminCanReadPolicy={rules:["admin","reader"],every:!1};t.onlyAdminCanChangePolicy={rules:["admin"],every:!1};t.checkSystemAdmin=()=>b.default.hasAdminRole},1249:function(e,a,n){"use strict";var r=n(33),l=n(44),i=n(32),o=n(25),u=n(27),s=n(45),d=n(46),c=n(19),f=n(160),p=n(21);c(a,"__esModule",{value:!0}),a.default=a.ItemActionButtons=void 0;var h=p(n(1233)),m=p(n(57)),g=p(n(81)),v=p(n(27)),y=p(n(51)),b=p(n(36));n(573);var x=p(n(421));n(333);var w=p(n(332)),k=p(n(596));n(1250);var _=p(n(1251)),C=p(n(409));n(1227);var M=p(n(418)),N=p(n(202)),S=p(n(91)),I=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=P(t);if(a&&a.has(e))return a.get(e);var n={},r=c&&o;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?o(e,l):null;i&&(i.get||i.set)?c(n,l,i):n[l]=e[l]}n.default=e,a&&a.set(e,n);return n}(n(0)),E=n(406),T=(n(173),n(555),p(n(4))),j=n(1374),A=p(n(1375)),D=p(n(1727));function P(e){if("function"!=typeof f)return null;var t=new f,a=new f;return(P=function(e){return e?a:t})(e)}function L(e,t){var a=r(e);if(l){var n=l(e);t&&(n=i(n).call(n,(function(t){return o(e,t).enumerable}))),a.push.apply(a,n)}return a}function O(e){for(var t=1;t<arguments.length;t++){var a,n=null!=arguments[t]?arguments[t]:{};if(t%2)u(a=L(Object(n),!0)).call(a,(function(t){(0,b.default)(e,t,n[t])}));else if(s)d(e,s(n));else{var r;u(r=L(Object(n))).call(r,(function(t){c(e,t,o(n,t))}))}}return e}var{SubMenu:z}=M.default;function R(e){var{id:t,title:a,actionType:n,buttonText:r,isDanger:l=!1}=e;return{id:t,title:a,name:r||a,actionType:n,action:e,isDanger:l}}function U(e,t){var a=e[t];return(0,S.default)(a)?(0,h.default)(a).call(a,(e=>!!e)):a}function F(e){var{firstAction:a=null,moreActions:n=[],alloweds:r=[],item:l,onFinishAction:i,routing:o,containerProps:u,firstActionClassName:s,onClickAction:d,onCancelAction:c,isWide:f}=e;if(0===r.length)return null;if(!a&&0===n.length)return null;var p=null,h=null,v=null;if(a){var y=U(r,0),b=R(a.action);p=I.default.createElement(A.default,(0,C.default)({},b,{buttonType:"link",routing:o,needHide:!1,isAllowed:y,item:l,onFinishAction:i,onCancelAction:c,buttonClassName:(0,T.default)(D.default["first-action"],s),containerProps:u,maxLength:8,onClickAction:d,isFirstAction:!0}))}var N=0,S=0,E=null;if(n.length>0){var j=f||n.length>1?D.default["more-action-btn"]:"",P=(0,m.default)(n).call(n,((e,t)=>{var a;if(!e.actions){var n=U(r,e.allowedIndex),s=e.key||"key-more-".concat(t),f=R(e.action);return n?(N+=1,S+=1,E=I.default.createElement(A.default,(0,C.default)({},f,{isAllowed:n,buttonType:"link",item:l,onFinishAction:i,onCancelAction:c,routing:o,style:{padding:0},containerProps:u,onClickAction:d,buttonClassName:j})),I.default.createElement(M.default.Item,{key:s},E)):null}var p=0,h=(0,m.default)(a=e.actions).call(a,((e,a)=>{var n,s=U(r,e.allowedIndex),f=e.key||(0,g.default)(n="key-more-".concat(t,"-")).call(n,a);s&&(p+=1,N+=1,S+=1);var h=R(e.action);return I.default.createElement(M.default.Item,{key:f},I.default.createElement(A.default,(0,C.default)({},h,{isAllowed:s,buttonType:"link",item:l,onFinishAction:i,onCancelAction:c,routing:o,containerProps:u,onClickAction:d,buttonClassName:j})))})),v="sub-menu-".concat(t);return I.default.createElement(z,{popupClassName:D.default["action-sub-menu"],title:e.title,disabled:0===p,key:v},h)})),L=I.default.createElement(M.default,null,P);if(a&&n.length>0&&N>0&&(h=I.default.createElement(_.default,{type:"vertical"})),1===N&&1===S&&E){var O=f?"":D.default["single-more-action"];v=I.default.createElement("span",{className:O},E)}else N>0&&(v=I.default.createElement(x.default,{overlay:L},I.default.createElement(w.default,{type:"link",className:D.default["more-action"]},t("More")," ",I.default.createElement(k.default,null))))}return I.default.createElement(I.default.Fragment,null,p,h,v)}class V extends I.Component{constructor(e){super(e),this.actionList=[],this.firstAction=null,this.moreActions=[],this.state={results:[]}}componentDidMount(){var e=this;return(0,y.default)((function*(){var{item:t,containerProps:a}=e.props;e.updateResult(t,a)}))()}shouldComponentUpdate(e,t){var{item:a,containerProps:n}=this.props,{results:r}=this.state;return(0,N.default)(e.item,a)?!(0,N.default)(r,t.results):(this.updateResult(e.item,n),!0)}static getDerivedStateFromProps(e,t){if(!(0,N.default)(e.item,t.item)){var{item:a}=e;return{item:a}}return null}get routing(){return this.props.rootStore.routing}updateResult(e,t){var a=this;return(0,y.default)((function*(){var{actions:n,isAdminPage:r}=a.props,{actionList:l,firstAction:i,moreActions:o}=function(e,t,a){var{firstAction:n=null,moreActions:r=[]}=e,l=[],i=n?{action:(0,j.getAction)(n,t,a),allowedIndex:0}:null,o=[];return n&&l.push(i),(0,v.default)(r).call(r,(e=>{if(e.actions){var n,r=[];(0,v.default)(n=e.actions).call(n,(e=>{var n={action:(0,j.getAction)(e,t,a),allowedIndex:l.length};r.push(n),l.push(n)})),o.push(O(O({},e),{},{actions:r}))}else if(e.action){var i={action:(0,j.getAction)(e.action,t,a),allowedIndex:l.length};o.push(i),l.push(i)}})),{actionList:l,firstAction:i,moreActions:o}}(n,e,t);a.actionList=l,a.firstAction=i,a.moreActions=o;var u=yield(0,j.getAllowedResults)({actions:a.actionList,data:e,key:"action",containerProps:t,isAdminPage:r});a.setState({results:u})}))()}render(){var{item:e,onFinishAction:t,containerProps:a,firstActionClassName:n,onClickAction:r,onCancelAction:l,isWide:i}=this.props,{results:o}=this.state;return I.default.createElement(F,{onFinishAction:t,onCancelAction:l,firstAction:this.firstAction,moreActions:this.moreActions,alloweds:o,item:e,routing:this.routing,containerProps:a,firstActionClassName:n,onClickAction:r,isWide:i})}}a.ItemActionButtons=V;var B=(0,E.inject)("rootStore")(V);a.default=B},1296:function(e,a,n){"use strict";var r=n(19),l=n(21);r(a,"__esModule",{value:!0}),a.default=void 0;var i=l(n(0)),o=l(n(1949)),u=n(161),s=n(201),d=l(n(1950));class c extends i.default.Component{render(){var{title:e,link:a,codeError:n,endpointError:r,goList:l,isAction:c}=this.props,f="";f=n?"Error":r?t("Not Open"):t("Resource Not Found");var p="",h="";p=c?t("Unable to {title}, please go back to ",{title:(0,u.firstUpperCase)(e)}):l?t("Unable to get {title}, please go back to ",{title:(0,u.firstUpperCase)(e)}):t("Unable to get {title}, please go to ",{title:(0,u.firstUpperCase)(e)}),h=l?i.default.createElement(s.Link,{to:a},t("list page")):i.default.createElement(s.Link,{to:a},t("Home page"));var m=i.default.createElement("p",null,p,h);return i.default.createElement("div",{className:d.default.wrapper},i.default.createElement("img",{className:d.default.image,src:o.default,alt:""}),i.default.createElement("div",{className:d.default.text},i.default.createElement("div",{className:"h1"},f),m))}}a.default=c},1297:function(e,t,a){var n=a(1970);"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:undefined,insertInto:void 0};a(75)(n,r);n.locals&&(e.exports=n.locals)},1321:function(e,a,n){"use strict";var r=n(33),l=n(44),i=n(32),o=n(25),u=n(27),s=n(45),d=n(46),c=n(19),f=n(21);c(a,"__esModule",{value:!0}),a.default=void 0,n(581);var p=f(n(423));n(1266);var h,m,g,v=f(n(1267)),y=f(n(51)),b=f(n(36)),x=f(n(57)),w=f(n(102)),k=f(n(33)),_=f(n(90)),C=f(n(32)),M=f(n(339)),N=f(n(579)),S=f(n(27)),I=f(n(588)),E=f(n(198)),T=f(n(199)),j=f(n(202)),A=f(n(131)),D=f(n(111)),P=f(n(0)),L=(n(173),n(406)),O=f(n(16)),z=f(n(1450)),R=f(n(1451)),U=f(n(1452)),F=f(n(4)),V=f(n(1776));function B(e,t){var a=r(e);if(l){var n=l(e);t&&(n=i(n).call(n,(function(t){return o(e,t).enumerable}))),a.push.apply(a,n)}return a}function K(e){for(var t=1;t<arguments.length;t++){var a,n=null!=arguments[t]?arguments[t]:{};if(t%2)u(a=B(Object(n),!0)).call(a,(function(t){(0,b.default)(e,t,n[t])}));else if(s)d(e,s(n));else{var r;u(r=B(Object(n))).call(r,(function(t){c(e,t,o(n,t))}))}}return e}var Y=e=>e.key||e.id,Q=(e,t,a)=>{var{selectedRowKeys:n=[],selectedRows:r=[]}=e;if(!n||0===n.length)return[];var l=(0,x.default)(r).call(r,(e=>Y(e)));return(0,j.default)(n,l)?r:(0,x.default)(n).call(n,(e=>{var n,l=a?r:t;return(0,w.default)(n=l||[]).call(n,(t=>Y(t)===e))||{key:e,id:e,name:e}}))},G=(0,L.observer)((g=m=class extends P.default.Component{constructor(e){var t;super(e),t=this,(0,b.default)(this,"getDataParams",(()=>{var{filters:e,current:t,pageSize:a}=this.state;return K({page:t,limit:a},e)})),(0,b.default)(this,"handleFooterPaginationChange",((e,t)=>{var{filters:a}=this.state;this.getBackendData(K({limit:t,page:e,current:e,sortKey:this.sortKey,sortOrder:this.sortOrder},a))})),(0,b.default)(this,"getBackendData",function(){var e=(0,y.default)((function*(e){var{extraParams:a,isSortByBack:n,defaultSortKey:r,defaultSortOrder:l}=t.props,i=K(K({},e),a);n&&(i.sortKey=i.sortKey||t.sortKey||r||"",i.sortOrder=i.sortOrder||t.sortOrder||l||"");var o=yield t.fetchDataByPage(i),{backendPageStore:u,backendPageDataKey:s}=t.props,{total:d}=u[s]||{};t.setState({data:o,total:d,current:e.page,pageSize:e.limit},(()=>{t.initTabChange()}))}));return function(t){return e.apply(this,arguments)}}()),(0,b.default)(this,"fetchDataByPage",function(){var e=(0,y.default)((function*(e){var{backendPageStore:a,backendPageFunc:n,backendPageDataKey:r}=t.props,l=yield a[n](e);return a[r].silent=!1,l}));return function(t){return e.apply(this,arguments)}}()),(0,b.default)(this,"filterData",((e,t)=>{var a;return!(0,w.default)(a=(0,k.default)(t)).call(a,(a=>{var n,r=(0,D.default)(e,a),l=t[a];return(0,A.default)(r)&&(0,A.default)(l)?(0,_.default)(n=r.toLowerCase()).call(n,l.toLowerCase())<0:(0,j.default)(r,l)}))})),(0,b.default)(this,"getDataSource",(()=>{try{var{backendPageStore:e,rowKey:t}=this.props;if(e)return this.getDataFromStore();var{data:a}=this.state;return(0,x.default)(a).call(a,(e=>e.key?e:K(K({},e),{},{key:(0,D.default)(e,t)})))}catch(e){return[]}})),(0,b.default)(this,"getDataFromStore",(()=>{var{backendPageStore:e,backendPageDataKey:t,rowKey:a}=this.props,{data:n=[]}=e[t]||{};return(0,x.default)(n).call(n,(e=>e.key?e:K(K({},e),{},{key:(0,D.default)(e,a)})))})),(0,b.default)(this,"getRealSelectedKeys",(e=>{var t,{isMulti:a,backendPageStore:n}=this.props;if(!n||!a)return e;var{selectedRowKeys:r,data:l}=this.state,i=(0,x.default)(l).call(l,(e=>Y(e))),o=(0,C.default)(e).call(e,(e=>(0,_.default)(i).call(i,e)>=0)),u=(0,C.default)(r).call(r,(t=>(0,_.default)(i).call(i,t)>=0&&(0,_.default)(e).call(e,t)<0));return(0,C.default)(t=(0,M.default)(new N.default([...r,...o]))).call(t,(e=>(0,_.default)(u).call(u,e)<0))})),(0,b.default)(this,"handleSelectRow",(e=>{var t=this.getRealSelectedKeys(e),a=this.getSelectedRows(t);this.setState({selectedRowKeys:t,selectedRows:a})})),(0,b.default)(this,"handleFilterInput",(e=>{var{backendPageStore:t}=this.props,a={};if((0,S.default)(e).call(e,(e=>{a[(0,C.default)(e).name]=e.value})),t){var{pageSize:n}=this.state;this.getBackendData(K({limit:n,page:1},a)),this.setState({filters:a,current:1})}else this.setState({filters:a,current:1})})),(0,b.default)(this,"updateTab",(e=>{this.setState({tab:e},(()=>{this.onChange({tab:e})}))})),(0,b.default)(this,"onChange",(function(){var{tab:e,selectedRowKeys:a}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{onChange:n}=t.props;if(n){var{tab:r,selectedRowKeys:l,selectedRows:i=[]}=t.state,o=(0,T.default)(i)?t.getSelectedRows(a):i;n({tab:e||r,selectedRows:o,selectedRowKeys:a||l,data:t.getDataSource()})}})),(0,b.default)(this,"getSelectedRowsAll",(e=>{var{data:t=[],selectedRowKeys:a}=this.state;return e?(0,C.default)(t).call(t,(t=>(0,_.default)(e).call(e,Y(t))>=0)):(0,C.default)(t).call(t,(e=>(0,_.default)(a).call(a,Y(e))>=0))})),(0,b.default)(this,"getSelectedRowsBackend",(e=>{var{isMulti:t}=this.props,{data:a=[],selectedRowKeys:n,selectedRows:r}=this.state;if(t)return this.getSelectedRowsBackendMulti(e);var l=e||n,i=(0,C.default)(a).call(a,(e=>(0,_.default)(l).call(l,Y(e))>=0));if(i.length===l.length)return i;var o=(0,C.default)(r).call(r,(e=>(0,_.default)(l).call(l,Y(e))>=0));return o.length===l.length?o:(0,x.default)(l).call(l,(e=>({key:e,id:e,name:e})))})),(0,b.default)(this,"getSelectedRowsBackendMulti",(e=>{var{data:t=[],selectedRowKeys:a=[],selectedRows:n=[]}=this.state;if(!e)return n;var r=(0,C.default)(e).call(e,(e=>(0,_.default)(a).call(a,e)<0)),l=(0,C.default)(a).call(a,(t=>(0,_.default)(e).call(e,t)<0));return[...(0,C.default)(n).call(n,(e=>(0,_.default)(l).call(l,Y(e))<0)),...(0,C.default)(t).call(t,(e=>(0,_.default)(r).call(r,Y(e))>=0))]})),(0,b.default)(this,"getSelectedRows",(e=>{var{backendPageStore:t}=this.props;return t?this.getSelectedRowsBackend(e):this.getSelectedRowsAll(e)})),(0,b.default)(this,"getSortKey",(e=>{var{field:t,column:a}=e;return t&&a?a.sortKey||a.dataIndex:null})),(0,b.default)(this,"handleChange",((e,t,a,n)=>{var{current:r,pageSize:l}=e,{backendPageStore:i,isSortByBack:o}=this.props,u=K({limit:l||this.state.pageSize,page:r||this.state,current:r,sortKey:this.getSortKey(a),sortOrder:a.order},t);if(i){var{action:s}=n;"sort"===s?(this.sortKey=this.getSortKey(a),this.sortOrder=a.order,o?(this.setState({current:1}),u.current=1,u.page=1,this.getBackendData(u)):(r=this.state.current,l=this.state.pageSize,this.setState({current:r,pageSize:l}))):this.getBackendData(u)}else this.setState({current:r,pageSize:l})})),(0,b.default)(this,"onTabChange",(e=>{var{onTabChange:t}=this.props;t&&(e.target?(this.updateTab(e.target.value),t(e.target.value)):(t(e),this.updateTab(e)))})),(0,b.default)(this,"onTagClose",(e=>{var{selectedRowKeys:t}=this.state,a=(0,C.default)(t).call(t,(t=>t!==Y(e))),n=this.getSelectedRows(a);this.setState({selectedRowKeys:a,selectedRows:n})})),(0,b.default)(this,"renderTableFooter",(e=>{var t,{page:a,current:n,pageSize:r,total:l}=this.state,i=this.getLoading(),o=(0,I.default)(t=(0,M.default)(new N.default([this.props.pageSize,10,20,50,100]))).call(t,((e,t)=>e-t));return P.default.createElement(U.default,{current:a||n||1,pageSize:r,size:"small",onChange:this.handleFooterPaginationChange,currentDataSize:e.length,total:l,isLoading:i,defaultPageSize:this.props.pageSize,pageSizeOptions:o,className:V.default["pagination-footer"]})})),(0,b.default)(this,"renderTag",(e=>P.default.createElement(v.default,{key:e.key||(0,D.default)(e,this.props.rowKey),closable:!0,onClose:()=>this.onTagClose(e)},e[this.props.tagKey]||e[this.props.secondTagKey])));var{data:a=[],pageSize:n,initValue:r={}}=e,{selectedRowKeys:l,selectedRows:i}=this.getInitValue(e);this.state={data:a,filters:null,current:1,pageSize:n,total:this.getTotal(e),selectedRowKeys:l,selectedRows:i,tab:"",initValue:r},this.sortKey=e.defaultSortKey,this.sortOrder=e.defaultSortOrder}componentDidMount(){this.getData()}componentDidUpdate(e,t){(0,j.default)(e.backendPageStore,this.props.backendPageStore)||this.getData();var{selectedRowKeys:a}=this.state,{selectedRowKeys:n}=t;(0,j.default)(a,n)||this.onChange({selectedRowKeys:a})}getData(){var{backendPageStore:e,pageSize:t}=this.props;e?this.handleFooterPaginationChange(1,t):this.initTabChange()}getInitValue(e){var{value:t={},initValue:a={},data:n=[],backendPageStore:r}=e;if(!(0,T.default)(a)){var{selectedRowKeys:l=[]}=a;return{selectedRowKeys:l,selectedRows:Q(a,n,r)}}var{selectedRowKeys:i=[]}=t||{};return{selectedRowKeys:i,selectedRows:Q(t||{},n,r)}}getTotal(e){var{data:t=[],backendPageStore:a,backendPageDataKey:n}=e||this.props;return a?(a[n]||{}).total:t.length}static getDerivedStateFromProps(e,t){var{value:a,data:n=[],backendPageStore:r,initValue:l={}}=e,i={};if(r||(0,j.default)(n,t.data)||(i.data=n,i.total=n.length,i.current=t.current||1),!a)return(0,T.default)(i)?null:i;var{tab:o}=a;if(a&&o!==t.tab&&(i.tag=o),!(0,j.default)(l,t.initValue)){var{selectedRowKeys:u=[]}=l,s=Q(l,n,r);i.selectedRowKeys=u,i.selectedRows=s,i.initValue=l}return(0,T.default)(i)?null:i}get tableColumns(){var{columns:e}=this.props;return(0,C.default)(e).call(e,(e=>!e.hidden))}get rowSelection(){var{isMulti:e,disabledFunc:t,maxSelectedCount:a,rowKey:n,tagKey:r}=this.props;if(-1===a)return null;var{selectedRowKeys:l}=this.state,i={selectedRowKeys:l,type:e?"checkbox":"radio",onChange:this.handleSelectRow};return t&&(i.getCheckboxProps=e=>({disabled:t(e),name:(0,D.default)(e,n)||(0,D.default)(e,r)})),a&&l.length===a&&(i.getCheckboxProps=e=>({disabled:!(0,E.default)(l).call(l,(0,D.default)(e,n))})),i}getLoading(){var{backendPageStore:e,backendPageDataKey:t,isLoading:a}=this.props;return e?e[t].isLoading:a}initTabChange(){var{defaultTabValue:e,onTabChange:t,value:a}=this.props;if(void 0!==e&&void 0!==t){var n=a&&a.tab||e;t(n),this.updateTab(n)}}renderSearch(){var{canSearch:e}=this.props;if(!e)return null;var{filterParams:t}=this.props,{filters:a}=this.state;return P.default.createElement("div",{className:(0,F.default)("ant-col-xs-16","ant-col-sm-12",V.default["search-wrapper"])},P.default.createElement(z.default,{filterParams:t,onInputChange:this.handleFilterInput,initValue:a}))}renderHeader(){var{header:e}=this.props;return e||null}renderTableHeader(){var{tableHeader:e}=this.props;return e||null}renderTable(){var e,t,{backendPageStore:a,isSortByBack:n,defaultSortKey:r,defaultSortOrder:l,filterParams:i,onRow:o,rowKey:u,childrenColumnName:s}=this.props,{current:d,pageSize:c,total:f,filters:p}=this.state,h=(0,x.default)(e=(0,I.default)(t=[this.props.pageSize,10,20,50,100]).call(t,((e,t)=>e-t))).call(e,(e=>"".concat(e))),m=!a&&{current:d,pageSize:c,total:f,size:"small",position:["bottomLeft"],pageSizeOptions:h},g=a?this.renderTableFooter:null,v=this.getLoading(),y=this.getDataSource(),b=a?V.default["sl-select-table-backend"]:"";return P.default.createElement(R.default,{className:(0,F.default)(V.default["sl-select-table"],"sl-select-table",b),rowSelection:this.rowSelection,rowKey:u,columns:this.tableColumns,data:y,filters:p,searchFilters:i,pagination:m,isLoading:v,filterByBackend:!!a,isSortByBack:n,defaultSortKey:r,defaultSortOrder:l,onChange:this.handleChange,footer:g,onRow:o,childrenColumnName:s})}renderImageTabs(){var{tabs:e,defaultTabValue:t,imageTabAuto:a}=this.props,{tab:n}=this.state,r=(0,x.default)(e).call(e,(e=>{var{value:t,image:n,component:r,label:l}=e;return P.default.createElement(p.default.Button,{className:a?"":V.default["image-tab"],value:t,key:t},n&&P.default.createElement("img",{src:n,alt:l}),r,P.default.createElement("span",{className:V.default["image-tab-label"]},l))}));return P.default.createElement(p.default.Group,{className:V.default["image-tabs"],id:"select-table-tabs",onChange:this.onTabChange,defaultValue:t,value:n},r)}renderNormalTabs(){var{tabs:e,defaultTabValue:t}=this.props,{tab:a}=this.state,n=(0,x.default)(e).call(e,(e=>P.default.createElement(p.default.Button,{className:V.default["normal-tab"],value:e.value,key:e.value},P.default.createElement("span",{className:V.default["normal-tab-label"]},e.label))));return P.default.createElement(p.default.Group,{className:V.default["normal-tabs"],onChange:this.onTabChange,buttonStyle:"solid",defaultValue:t,value:a},n)}renderTips(){var{tips:e}=this.props;return e?P.default.createElement("div",null,e):null}renderTabs(){var{tabs:e,tabsNode:t}=this.props;return t||(e?(0,w.default)(e).call(e,(e=>!!e.image||!!e.component))?this.renderImageTabs():this.renderNormalTabs():null)}renderSelected(){var{showSelected:e=!0,selectedLabel:a,maxSelectedCount:n}=this.props;if(-1===n)return null;var{selectedRows:r=[]}=this.state;if(!e)return null;var l=(0,T.default)(r)?this.getSelectedRows():r,i=(0,x.default)(l).call(l,(e=>this.renderTag(e)));return P.default.createElement("div",null,t("Selected")," ",a,":  ",i)}render(){return P.default.createElement("div",{className:V.default["select-table"]},this.renderHeader(),this.renderTabs(),this.renderSearch(),this.renderTableHeader(),this.renderTable(),this.renderSelected())}},(0,b.default)(m,"propTypes",{data:O.default.array,columns:O.default.array.isRequired,isMulti:O.default.bool,pageSize:O.default.number,tabs:O.default.array,defaultTabValue:O.default.any,tabsNode:O.default.node,onTabChange:O.default.func,canSearch:O.default.bool,filterParams:O.default.array,disabledFunc:O.default.func,onChange:O.default.func,selectedLabel:O.default.string,tips:O.default.string,isLoading:O.default.bool,tagKey:O.default.string,secondTagKey:O.default.string,maxSelectedCount:O.default.number,tableHeader:O.default.any,header:O.default.any,backendPageStore:O.default.any,backendPageFunc:O.default.string,backendPageDataKey:O.default.string,extraParams:O.default.object,initValue:O.default.object,rowKey:O.default.string,isSortByBack:O.default.bool,defaultSortKey:O.default.string,defaultSortOrder:O.default.string,onRow:O.default.func,childrenColumnName:O.default.string,imageTabAuto:O.default.bool}),(0,b.default)(m,"defaultProps",{data:[],isMulti:!1,pageSize:5,canSearch:!0,filterParams:[],selectedLabel:"",tips:"",tableHeader:null,header:null,backendPageStore:null,backendPageFunc:"fetchListByPage",backendPageDataKey:"list",extraParams:{},initValue:{},rowKey:"id",tagKey:"name",secondTagKey:"id",isSortByBack:!1,defaultSortKey:"",defaultSortOrder:"",childrenColumnName:"children",imageTabAuto:!1}),h=g))||h;a.default=G},1325:function(e,a,n){"use strict";var r=n(19),l=n(21);r(a,"__esModule",{value:!0}),a.default=void 0;var i=l(n(65)),o=l(n(1204)),u=l(n(36)),s=n(161),d=l(n(1201));class c extends d.default{constructor(){super(...arguments),(0,u.default)(this,"onSubmit",(e=>i.default.resolve()))}get name(){return t("Edit")}get isModal(){return!0}static get modalSize(){return"small"}getModalSize(){return"small"}getRightExtraSpan(){var e="large"===this.getModalSize();return{left:e?20:18,right:e?4:6}}static get showQuota(){return!1}get showQuota(){return!1}get labelCol(){return"large"===this.getModalSize()?{xs:{span:6},sm:{span:4}}:{xs:{span:8},sm:{span:6}}}get wrapperCol(){return{xs:{span:16},sm:{span:16}}}static allowed(){return i.default.resolve()}get messageHasItemName(){return!0}get instanceName(){return(this.item||{}).name||((0,o.default)(this)||{}).name||this.itemId}get isAsyncAction(){return!1}get successText(){return this.messageHasItemName?this.isAsyncAction?(0,s.firstUpperCase)(t("The {action} instruction has been issued, instance: {name}. \n You can wait for a few seconds to follow the changes of the list data or manually refresh the data to get the final display result.",{action:this.name.toLowerCase(),name:this.instanceName})):(0,s.firstUpperCase)(t("{action} successfully, instance: {name}.",{action:this.name.toLowerCase(),name:this.instanceName})):this.isAsyncAction?(0,s.firstUpperCase)(t("The {action} instruction has been issued. \n You can wait for a few seconds to follow the changes of the list data or manually refresh the data to get the final display result.",{action:this.name.toLowerCase()})):(0,s.firstUpperCase)(t("{action} successfully.",{action:this.name}))}get errorText(){return this.messageHasItemName?t("Unable to {action}, instance: {name}.",{action:this.name.toLowerCase(),name:this.instanceName}):t("Unable to {action}.",{action:this.name.toLowerCase()})}get containerProps(){return this.props.containerProps||{}}get isAdminPage(){var{isAdminPage:e=!1}=this.containerProps;return e}get item(){var{item:e}=this.props;return e||this.containerProps.detail||{name:""}}get itemId(){return(this.item||{}).id}get items(){var{items:e}=this.props;return e}get defaultValue(){var{name:e=""}=this.item;return{name:e}}get formItems(){return[{name:"name",label:t("Name"),type:"input-name",required:!0,placeholder:t("Please input name")}]}}a.default=c,(0,u.default)(c,"id","modalAction"),(0,u.default)(c,"actionType","modal"),(0,u.default)(c,"title",t("Edit")),(0,u.default)(c,"buttonType","primary"),(0,u.default)(c,"isDanger",!1),(0,u.default)(c,"policy",""),(0,u.default)(c,"aliasPolicy","")},1374:function(e,t,a){"use strict";var n=a(160),r=a(19),l=a(25),i=a(21);r(t,"__esModule",{value:!0}),t.checkAllowed=p,t.getAllowedResults=function(e){return m.apply(this,arguments)},t.getPolicyResults=g,t.getAction=v,t.getActionsByPolicy=function(e){var{actions:t,containerProps:a,isAdminPage:n}=e,r=(0,o.default)(t).call(t,(e=>v(e,null,a))),l=g({actions:r,isAdminPage:n});return(0,u.default)(r).call(r,((e,t)=>l[t]))};var o=i(a(57)),u=i(a(32)),s=i(a(65)),d=i(a(51)),c=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=f(t);if(a&&a.has(e))return a.get(e);var n={},i=r&&l;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=i?l(e,o):null;u&&(u.get||u.set)?r(n,o,u):n[o]=e[o]}n.default=e,a&&a.set(e,n);return n}(a(1203));function f(e){if("function"!=typeof n)return null;var t=new n,a=new n;return(f=function(e){return e?a:t})(e)}function p(e){return h.apply(this,arguments)}function h(){return(h=(0,d.default)((function*(e){var{item:t,policy:a,aliasPolicy:n,allowed:r,containerProps:l,actionName:i,extra:o,isAdminPage:u,action:d}=e,{enableSystemReader:f}=d||{};if(!(0,c.default)({policy:a,aliasPolicy:n,item:t,actionName:i,isAdminPage:u,enableSystemReader:f}))return!1;var p=!1;return r&&(p=r(t,l,o))instanceof s.default&&(p=yield p),p}))).apply(this,arguments)}function m(){return(m=(0,d.default)((function*(e){var{actions:t,data:a,key:n,containerProps:r,extra:l,isAdminPage:i}=e,u=(0,o.default)(t).call(t,function(){var e=(0,d.default)((function*(e){return p({item:a,policy:n?e[n].policy:e.policy,aliasPolicy:n?e[n].aliasPolicy:e.aliasPolicy,allowed:n?e[n].allowed:e.allowed,containerProps:r,actionName:n?e[n].title:e.title,extra:l,isAdminPage:i,action:e.action})}));return function(t){return e.apply(this,arguments)}}());return yield s.default.all(u)}))).apply(this,arguments)}function g(e){var{actions:t,extra:a,isAdminPage:n}=e;return(0,o.default)(t).call(t,(e=>{var{policy:t,aliasPolicy:r,title:l,enableSystemReader:i}=e;return!(n&&!i&&(0,c.systemRoleIsReader)())&&(0,c.default)({policy:t,aliasPolicy:r,actionName:l,extra:a})}))}function v(e,t,a){var{actionType:n}=e;return"confirm"===n?new e({item:t,containerProps:a}):e}},1375:function(e,a,n){"use strict";var r=n(160),l=n(19),i=n(25),o=n(21);l(a,"__esModule",{value:!0}),a.default=a.ActionButton=void 0;var u=o(n(57)),s=o(n(65)),d=o(n(580)),c=o(n(32)),f=o(n(27));n(411);var p=o(n(227));n(333);var h=o(n(332));n(1317);var m=o(n(1318)),g=o(n(51)),v=o(n(36)),y=o(n(439)),b=o(n(346)),x=o(n(91)),w=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=E(t);if(a&&a.has(e))return a.get(e);var n={},r=l&&i;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=r?i(e,o):null;u&&(u.get||u.set)?l(n,o,u):n[o]=e[o]}n.default=e,a&&a.set(e,n);return n}(n(0)),k=n(406),_=(n(173),o(n(1376))),C=o(n(16)),M=o(n(1228)),N=o(n(4)),S=n(161),I=o(n(1725));function E(e){if("function"!=typeof r)return null;var t=new r,a=new r;return(E=function(e){return e?a:t})(e)}function T(e,a){var{actionName:n,title:r}=e,l=(0,x.default)(a)?(0,u.default)(a).call(a,(e=>e.name)).join(", "):a.name,i=t("Unable to {action} {name}.",{action:n.toLowerCase()||r,name:l}),o=t("You are not allowed to { action } {name}.",{action:n.toLowerCase()||r,name:l});return{submitErrorMsg:i,submitSuccessMsg:(0,S.firstUpperCase)(t("{action} {name} successfully.",{action:n.toLowerCase()||r,name:l})),confirmContext:t("Are you sure to { action } {name}?",{action:n.toLowerCase()||r,name:l}),performErrorMsg:o}}class j extends w.Component{static propTypes(){return{title:C.default.string.isRequired,id:C.default.string.isRequired,perform:C.default.func.isRequired,item:C.default.object,actionType:C.default.string,icon:C.default.string,isAllowed:C.default.bool,needHide:C.default.bool,buttonType:C.default.string,isDanger:C.default.bool,items:C.default.array,isBatch:C.default.bool,path:C.default.string,onFinishAction:C.default.func,action:C.default.any,containerProps:C.default.any,maxLength:C.default.number,isFirstAction:C.default.bool,onClickAction:C.default.func,visible:C.default.bool}}constructor(e){var t;super(e),t=this,(0,v.default)(this,"onClick",(()=>{var{actionType:e,onClickAction:t}=this.props;switch(e){case"confirm":this.onShowConfirm();break;case"link":var{action:a,item:n,containerProps:r}=this.props,{path:l}=a;if((0,b.default)(l)){var i=l(n,r);this.routing.push(i)}else this.routing.push(l);break;default:this.formRef=w.default.createRef(),this.showModalAction()}t&&t()})),(0,v.default)(this,"handleSubmitLoading",(e=>{this.setState({submitLoading:!!e})})),(0,v.default)(this,"handleSubmit",(e=>{var{item:t,isBatch:a,items:n}=this.props;if(this.onSubmit){this.handleSubmitLoading(!0);var r=a?n:t,l=this.onSubmit(e,r);l instanceof s.default?l.then((()=>{this.onShowSuccess(r)}),(e=>{this.onShowError(r,e)})).finally((()=>{this.handleSubmitLoading()})):(this.handleSubmitLoading(),l?this.onShowSuccess(r):this.onShowError(r,l))}})),(0,v.default)(this,"onOK",(()=>{var{onSubmit:e,form:t,item:a,isBatch:n,items:r}=this.props;e&&(this.handleSubmitLoading(!0),t.validateFields([],((l,i)=>{if(!l){var o=n?r:a,u=e(t.getFieldsValue(),o);u instanceof s.default?u.then((()=>{this.onShowSuccess(o)}),(e=>{this.onShowError(o,e)})).finally((()=>{this.handleSubmitLoading()})):(this.handleSubmitLoading(),u?this.onShowSuccess(o):this.onShowError(o,u))}})))})),(0,v.default)(this,"onShowSuccess",((e,t)=>{var{submitSuccessMsg:a}=this.props.action,n=a?a(e):T(this.props.action,e).submitSuccessMsg;M.default.success(n),this.onCallback(!0,!1,t)})),(0,v.default)(this,"onCallback",((e,t,a)=>{var{onFinishAction:n,id:r}=this.props;if(n){var l="delete"===r;(0,d.default)((()=>{n(e,t,l,a)}),500)}})),(0,v.default)(this,"onShowError",((e,t)=>{var{showConfirmErrorBeforeSubmit:a,confirmErrorMessageBeforeSubmit:n}=this.props.action;if(a)return _.default.error({content:n}),void this.onCallback(!1,!0);var{submitErrorMsg:r}=this.props.action,{data:l}=(t||{}).response||t||{},i=l||t,o=r?r(e,i):T(this.props.action,e).submitErrorMsg;M.default.errorWithDetail(i,o),this.onCallback(!1,!0)})),(0,v.default)(this,"onShowConfirm",(0,g.default)((function*(){var{perform:e,title:a,confirmContext:n,okText:r,cancelText:l,onSubmit:i,afterSubmit:o}=t.props.action,{item:u,items:s,isBatch:d,containerProps:c,onCancelAction:f}=t.props,p=d?s:u,h=n?n(p):T(t.props.action,p).confirmContext;try{e(p).then((()=>{var e=_.default.confirm({title:a,content:h,okText:r,cancelText:l,onOk:()=>t.onConfirmOK(p,i,d,c,o,e),onCancel:()=>{f&&f()}})}),(e=>{var a=e||T(t.props.action,p).performErrorMsg;_.default.error({content:a})}))}catch(e){var m=e||T(t.props.action,p).performErrorMsg;_.default.error({content:m})}}))),(0,v.default)(this,"onSubmitOne",((e,t,a,n)=>new s.default(((r,l)=>{var i=t(e,a);i instanceof s.default?i.then((()=>{this.onShowSuccess(e,n),r()}),(e=>{l(e)})):i?(this.onShowSuccess(e,n),r()):l(i)})).catch((t=>{this.onShowError(e,t)})))),(0,v.default)(this,"onSubmitBatch",((e,t,a,n,r)=>new s.default(((l,i)=>{var o=(0,u.default)(e).call(e,((r,l)=>t(r,a,n,l,e)));(0,S.allSettled)(o).then((t=>{var a,n=(0,c.default)(a=(0,u.default)(t).call(t,((t,a)=>"rejected"===t.status?{data:e[a],reason:t.reason}:null))).call(a,(e=>!!e));return 0===n.length?(this.onShowSuccess(e,r),l()):((0,f.default)(n).call(n,(e=>{this.onShowError(e.data,e.reason)})),n.length===e.length?i():l())}))})))),(0,v.default)(this,"onConfirmOK",((e,t,a,n,r,l)=>a?this.onSubmitBatch(e,t,n,a,r).catch((()=>{l&&l.update({visible:!1})})):this.onSubmitOne(e,t,n,r))),(0,v.default)(this,"onClickModalActionOk",(()=>{var{containerProps:e}=this.props;return this.formRef.current.wrappedInstance.onClickSubmit(((e,t)=>{this.handleSubmitLoading(),this.onClickModalActionCancel(!0),this.onCallback(e,t)}),(()=>{this.handleSubmitLoading(!0)}),e)})),(0,v.default)(this,"onClickModalActionCancel",(e=>{var t=()=>{(0,y.default)(e)||this.formRef.current.wrappedInstance.onClickCancel();var{onCancelAction:t}=this.props;this.setState({visible:!1},(()=>{t&&t()}))},{action:{beforeCancel:a}}=this.props;if(a)return a(t);t()})),(0,v.default)(this,"getModalWidth",(e=>{var{modalSize:t,showQuota:a=!1}=e,n=a?1.25:1;switch(t){case"small":return 520*n;case"middle":return 720*n;case"large":return 1200;default:return 520*n}}));var{id:a}=e;if(!a)throw Error("need id!");this.state={visible:!1,submitLoading:!1}}get routing(){return this.props.rootStore.routing}showModalAction(){this.setState({visible:!0})}renderModal(){var{visible:e,submitLoading:t}=this.state;if(!e)return null;var{title:a,action:n,item:r,containerProps:l,items:i}=this.props,o=n,{okText:u,cancelText:s,id:d,className:c,readOnly:f,disableSubmit:p=!1}=n,h=this.getModalWidth(n),g={title:a,visible:e,className:(0,N.default)("modal-".concat(d),I.default["modal-action"],c),width:h,onOk:()=>this.onClickModalActionOk(),onCancel:this.onClickModalActionCancel,okButtonProps:{disabled:p},confirmLoading:t,okText:u,cancelText:s,maskClosable:!1};return f&&(g.cancelButtonProps={style:{display:"none"}}),w.default.createElement(m.default,g,w.default.createElement(o,{item:r,items:i,ref:this.formRef,containerProps:l}))}render(){var{isAllowed:e,needHide:t,buttonType:a,buttonClassName:n,name:r,id:l,title:i,isDanger:o,style:u,maxLength:s,isFirstAction:d}=this.props;if(!e&&t)return null;var c=r||i,f=!1;d&&c&&c.length>s&&(f=!0);var m=w.default.createElement(h.default,{type:a,danger:o,onClick:this.onClick,key:l,disabled:!e,className:n,style:u},r||i),g=f?w.default.createElement(p.default,{title:c},m):m;return w.default.createElement(w.default.Fragment,null,g,this.renderModal())}}a.ActionButton=j,(0,v.default)(j,"defaultProps",{item:void 0,isAllowed:!1,confirm:!1,needHide:!0,buttonType:"link",isDanger:!1,isLink:!1,items:[],isBatch:!1,path:"",containerProps:{},maxLength:0,isFirstAction:!1,onClickAction:null,visible:!1});var A=(0,k.inject)("rootStore")((0,k.observer)(j));a.default=A},1376:function(e,a,n){"use strict";var r=n(33),l=n(44),i=n(32),o=n(25),u=n(27),s=n(45),d=n(46),c=n(19),f=n(21);c(a,"__esModule",{value:!0}),a.default=void 0;var p=f(n(602)),h=f(n(603)),m=f(n(36)),g=f(n(1441));n(1317);var v=f(n(1318)),y=f(n(0)),b=(n(173),n(555),f(n(4))),x=f(n(16)),w=n(161),k=f(n(1723));function _(e,t){var a=r(e);if(l){var n=l(e);t&&(n=i(n).call(n,(function(t){return o(e,t).enumerable}))),a.push.apply(a,n)}return a}function C(e){for(var t=1;t<arguments.length;t++){var a,n=null!=arguments[t]?arguments[t]:{};if(t%2)u(a=_(Object(n),!0)).call(a,(function(t){(0,m.default)(e,t,n[t])}));else if(s)d(e,s(n));else{var r;u(r=_(Object(n))).call(r,(function(t){c(e,t,o(n,t))}))}}return e}var M={title:x.default.oneOfType([x.default.string,x.default.node]),content:x.default.oneOfType([x.default.string,x.default.node]).isRequired,onOk:x.default.func,onCancel:x.default.func,icon:x.default.node,isSubmitting:x.default.bool,cancelText:x.default.string,okText:x.default.string,className:x.default.string},N=e=>{var{title:a=t("Confirm"),content:n,onOk:r,onCancel:l,icon:i,okText:o=t("Confirm"),cancelText:u=t("Cancel"),className:s}=e;v.default.confirm({title:a,icon:i||y.default.createElement(g.default,{className:k.default.warn}),className:(0,b.default)(k.default["confirm-modal"],s),content:(0,w.unescapeHtml)(n),okText:o,cancelText:u,onOk:()=>r&&r(),onCancel(){l&&l()}})};N.propTypes=M,N.defaultProps={title:t("Confirm"),icon:y.default.createElement(g.default,null),isSubmitting:!1,okText:t("Confirm"),cancelText:t("Cancel")};var S={confirm:N,error:e=>{var a=C(C({title:t("Error")},e),{},{icon:y.default.createElement(h.default,{className:k.default.error})});N(a)},warn:e=>{var a=C(C({title:t("Warn")},e),{},{icon:y.default.createElement(g.default,{className:k.default.warn})});N(a)},success:e=>{var a=C(C({title:t("Success")},e),{},{icon:y.default.createElement(p.default,{className:k.default.success})});N(a)}};a.default=S},1381:function(e,t,a){"use strict";var n=a(33),r=a(44),l=a(32),i=a(25),o=a(27),u=a(45),s=a(46),d=a(19),c=a(160),f=a(21);d(t,"__esModule",{value:!0}),t.default=void 0,a(1239);var p=f(a(1240)),h=f(a(36)),m=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=g(t);if(a&&a.has(e))return a.get(e);var n={},r=d&&i;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var o=r?i(e,l):null;o&&(o.get||o.set)?d(n,l,o):n[l]=e[l]}n.default=e,a&&a.set(e,n);return n}(a(0));a(173);function g(e){if("function"!=typeof c)return null;var t=new c,a=new c;return(g=function(e){return e?a:t})(e)}function v(e,t){var a=n(e);if(r){var o=r(e);t&&(o=l(o).call(o,(function(t){return i(e,t).enumerable}))),a.push.apply(a,o)}return a}function y(e){for(var t=1;t<arguments.length;t++){var a,n=null!=arguments[t]?arguments[t]:{};if(t%2)o(a=v(Object(n),!0)).call(a,(function(t){(0,h.default)(e,t,n[t])}));else if(u)s(e,u(n));else{var r;o(r=v(Object(n))).call(r,(function(t){d(e,t,i(n,t))}))}}return e}class b extends m.Component{render(){var e=y(y({},this.props),{},{precision:0,formatter:e=>"$ ".concat(e).replace(/\D/g,"")});return m.default.createElement(p.default,e)}}t.default=b},1383:function(e,a,n){"use strict";var r=n(19),l=n(21);r(a,"__esModule",{value:!0}),a.default=void 0;var i=l(n(102)),o=l(n(32)),u=l(n(57));n(1216);var s=l(n(1217));n(1198);var d=l(n(1199));n(411);var c=l(n(227)),f=l(n(1248));n(1205);var p=l(n(1206));n(1196);var h=l(n(1197)),m=l(n(36)),g=l(n(0)),v=(n(173),l(n(1453))),y=l(n(16)),b=n(556),x=(n(555),n(564)),w=l(n(1830)),{isIPv4:k,isIpv6:_,isIpInRangeAll:C}=b.ipValidate;class M extends g.default.Component{constructor(e){super(e),(0,m.default)(this,"onChange",(()=>{this.checkNetwork((()=>{var{onChange:e}=this.props,{network:t,subnet:a,ip:n,ipType:r,validateStatus:l,errorMsg:o}=this.state,u=this.getNetworkOptions(),s=this.getSubnetOptions(),d=(0,i.default)(u).call(u,(e=>e.value===t)),c=(0,i.default)(s).call(s,(e=>e.value===a)),f=(0,i.default)(x.ipTypeOptions).call(x.ipTypeOptions,(e=>e.value===r));e&&e({network:t,subnet:a,ip:n,ipType:r,networkOption:d,subnetOption:c,ipTypeOption:f,validateStatus:l,errorMsg:o})}))})),(0,m.default)(this,"onNetworkChange",(e=>{var{subnets:t}=this.state,a=(0,o.default)(t).call(t,(t=>t.network_id===e)),n=a.length?a[0].id:null;this.setState({network:e,subnet:n,ipType:0,ip:void 0},this.onChange)})),(0,m.default)(this,"onSubnetChange",(e=>{this.setState({subnet:e,ip:void 0},this.onChange)})),(0,m.default)(this,"onTypeChange",(e=>{this.setState({ipType:e},this.onChange)})),(0,m.default)(this,"onIPChange",(e=>{var{value:t}=e.currentTarget;this.setState({ip:t},this.onChange)})),(0,m.default)(this,"checkNetwork",(e=>{var{network:a,subnets:n,subnet:r,ip:l,ipType:o}=this.state,u=(0,i.default)(n).call(n,(e=>e.id===r)),{allocation_pools:s}=u||{};if(a)if(1!==o||k(l)||_(l)){if(s&&1===o)if(!(0,i.default)(s).call(s,(e=>C(l,e.start,e.end))))return void this.setState({errorMsg:t("The ip is not within the allocated pool!"),validateStatus:"error"},e);this.setState({errorMsg:void 0,validateStatus:"success"},e)}else this.setState({errorMsg:t("Please input a valid ip!"),validateStatus:"error"},e);else this.setState({errorMsg:t("Please select a network!"),validateStatus:"error"},e)})),(0,m.default)(this,"getNetworkOptions",(()=>{var{networks:e}=this.state,{optionsByIndex:t,index:a}=this.props,n=[...e];return t&&a<e.length&&(n=[e[a]]),(0,u.default)(n).call(n,(e=>({label:e.name,value:e.id})))})),(0,m.default)(this,"getSubnetOptions",(()=>{var e,{network:t,subnets:a}=this.state;return t?(0,u.default)(e=(0,o.default)(a).call(a,(e=>e.network_id===t))).call(e,(e=>({label:g.default.createElement("div",null,g.default.createElement("span",null,e.name),g.default.createElement("span",{className:w.default["subnet-options-cidr"]},e.cidr)),name:e.name,value:e.id}))):[]}));var{value:a}=e,{network:n,subnet:r,ip:l,ipType:s}=a;this.state={network:n||null,subnet:r||null,ip:l||"0.0.0.0",ipType:s||0}}static getDerivedStateFromProps(e,t){if(e.networks!==t.networks||e.subnets!==t.subnets){var{networks:a,subnets:n}=e;return{networks:a,subnets:n}}return null}componentDidMount(){this.checkNetwork()}renderNetwork(){var{network:e}=this.state;return g.default.createElement(h.default,{span:6},g.default.createElement(v.default,{options:this.getNetworkOptions(),value:e,onChange:this.onNetworkChange,placeholder:t("please select network")}))}renderSubnet(){var{network:e,subnet:a,ipType:n}=this.state;return e&&n?g.default.createElement(h.default,{span:6},g.default.createElement(v.default,{options:this.getSubnetOptions(),value:a,placeholder:t("please select subnet"),onChange:this.onSubnetChange})):null}renderIpType(){var{network:e,ipType:t}=this.state;return e?g.default.createElement(h.default,{span:6},g.default.createElement(v.default,{value:t,options:x.ipTypeOptions,onChange:this.onTypeChange})):null}renderIp(){var{subnet:e,subnets:a,ipType:n,ip:r}=this.state;if(!e)return null;var l=(0,i.default)(a).call(a,(t=>t.id===e));if(!l)return null;var{allocation_pools:o}=l,s=(0,u.default)(o).call(o,((e,t)=>g.default.createElement("span",{key:"pool.start.".concat(t),style:{marginRight:10}},e.start,"--",e.end))),d=(0,u.default)(o).call(o,((e,t)=>g.default.createElement("div",{key:"pool.start.".concat(t)},e.start,"--",e.end)));if(0===n){var m=g.default.createElement("span",null,g.default.createElement("span",{className:w.default.label},t("Allocation Pools"),": "),g.default.createElement("span",{className:w.default.content},s));return g.default.createElement(h.default,{span:12},m)}var v=g.default.createElement("span",null,g.default.createElement("span",{className:w.default.label},t("Allocation Pools"),": "),g.default.createElement("span",{className:w.default.content},d),g.default.createElement("span",{className:w.default.content},t("Please make sure this IP address be available to avoid creating VM failure.")));return g.default.createElement(h.default,{span:6},g.default.createElement(p.default,{defaultValue:r,onChange:this.onIPChange}),g.default.createElement(c.default,{title:v,color:"white"},g.default.createElement(f.default,null)))}render(){var{validateStatus:e,errorMsg:t}=this.state,{name:a}=this.props;return g.default.createElement(s.default.Item,{className:w.default["network-select"],name:a,validateStatus:e,help:t},g.default.createElement(d.default,{gutter:24},this.renderNetwork(),this.renderIpType(),this.renderSubnet(),this.renderIp()))}}a.default=M,(0,m.default)(M,"propTypes",{networks:y.default.array,subnets:y.default.array,value:y.default.object,ipType:y.default.number,name:y.default.string,optionsByIndex:y.default.bool,index:y.default.number}),(0,m.default)(M,"defaultProps",{networks:[],subnets:[],value:{},ipType:0,name:"network",optionsByIndex:!1,index:0})},1384:function(e,a,n){"use strict";var r=n(160),l=n(19),i=n(25),o=n(21);l(a,"__esModule",{value:!0}),a.default=void 0;var u=o(n(32)),s=o(n(90)),d=o(n(102)),c=o(n(57));n(1260);var f=o(n(1261)),p=o(n(409));n(1266);var h=o(n(1267)),m=o(n(36)),g=o(n(199)),v=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=b(t);if(a&&a.has(e))return a.get(e);var n={},r=l&&i;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=r?i(e,o):null;u&&(u.get||u.set)?l(n,o,u):n[o]=e[o]}n.default=e,a&&a.set(e,n);return n}(n(0)),y=o(n(1321));n(173);function b(e){if("function"!=typeof r)return null;var t=new r,a=new r;return(b=function(e){return e?a:t})(e)}class x extends v.Component{constructor(e){super(e),(0,m.default)(this,"handleChangeTab",(e=>{this.setState({tabKey:e})})),(0,m.default)(this,"onChangeValue",(()=>{var{onChange:e}=this.props;e&&e(this.state)})),(0,m.default)(this,"getMultiSelected",((e,t,a)=>{var n,r,{selectedRowKeys:l,selectedRows:i}=this.state,o=(0,u.default)(e).call(e,(e=>(0,s.default)(l).call(l,e)<0)),c=(0,u.default)(t).call(t,(e=>(0,s.default)(o).call(o,e.key)>=0||(0,s.default)(o).call(o,e.id)>=0)),f=(0,u.default)(l).call(l,(t=>(0,s.default)(e).call(e,t)<0&&!!(0,d.default)(a).call(a,(e=>e.key===t||e.id===t))));return[(0,u.default)(n=[...l,...o]).call(n,(e=>(0,s.default)(f).call(f,e)<0)),(0,u.default)(r=[...i,...c]).call(r,(e=>{var t=e.key||e.id;return(0,s.default)(f).call(f,t)<0}))]})),(0,m.default)(this,"onSelectTableChange",(e=>{var{selectedRowKeys:t,selectedRows:a,data:n}=e,{isMulti:r=!1}=this.props,[l,i]=r?this.getMultiSelected(t,a,n):[t,a],o={selectedRowKeys:l,selectedRows:i};this.setState(o,(()=>{this.onChangeValue()}))})),(0,m.default)(this,"onTagClose",(e=>{var{selectedRowKeys:t,selectedRows:a}=this.state,n=(0,u.default)(t).call(t,(t=>t!==e)),r=(0,u.default)(a).call(a,(t=>t.key!==e&&t.id!==e));this.setState({selectedRowKeys:n,selectedRows:r},(()=>{this.onChangeValue()}))})),(0,m.default)(this,"renderTag",(e=>v.default.createElement(h.default,{key:e.key||e.id,closable:!0,onClose:()=>this.onTagClose(e.key||e.id)},this.props.tagKey?e[this.props.tagKey]:e.name)));var{tabs:t=[],defaultTab:a,value:n={}}=e;this.state={tabKey:n.tab||a||t[0]&&t[0].key,selectedRowKeys:n.selectedRowKeys||[],selectedRows:n.selectedRows||[]},this.init(e)}init(e){var{value:t={}}=e;(0,g.default)(t)||this.onChangeValue()}renderTabSelectTable(e){var{selectedRowKeys:t,selectedRows:a}=this.state,n={selectedRowKeys:t},r={selectedRowKeys:t,selectedRows:a};return v.default.createElement(y.default,(0,p.default)({},e.props,{onChange:this.onSelectTableChange,showSelected:!1,value:n,initValue:r}))}renderTab(e){var{tabKey:t}=this.state;return t!==e.key?v.default.createElement(f.default.TabPane,{tab:e.title,key:e.key}):v.default.createElement(f.default.TabPane,{tab:e.title,key:e.key},this.renderTabSelectTable(e))}renderTabs(){var{tabKey:e}=this.state,{tabs:t}=this.props;if(!e)return null;if(1===t.length)return this.renderTabSelectTable(t[0]);var a=(0,c.default)(t).call(t,(e=>this.renderTab(e)));return v.default.createElement(f.default,{activeKey:e,onChange:this.handleChangeTab},a)}renderSelected(){var{selectedRows:e}=this.state,a=(0,c.default)(e).call(e,(e=>this.renderTag(e)));return v.default.createElement("div",null,t("Selected")," :  ",a)}renderHeader(){var{header:e}=this.props;return e||null}render(){return v.default.createElement(v.default.Fragment,null,this.renderHeader(),this.renderTabs(),this.renderSelected())}}a.default=x},1385:function(e,a,n){"use strict";var r=n(19),l=n(21);r(a,"__esModule",{value:!0}),a.default=function(e){var a,{used:n=0,add:r=0,reserved:l=0,limit:h=1,title:m="",secondTitle:g=t("Quota"),hasLabel:v=!1}=e,y=-1!==h,b=y,x=y?h:1/0,w=y?h:t("Infinity"),k=y?h-n-l-r:1;k<0&&(k=0);var _=[{type:t("Used"),value:y?n:0,color:f.used}];l&&_.push({type:t("Reserved"),value:y?l:0,color:f.reserved});_.push({type:t("New"),value:y?r:0,color:f.add}),_.push({type:t("Left"),value:k,color:f.left});var C=(0,o.default)(_).call(_,(e=>e.color)),M=v?200:120,N={width:M},S=M,I=n+r+l,E=y?I/x*100:0,T="";if(!y){var j,A,D,P=(0,u.default)(j="".concat(t("Used"),": ")).call(j,n),L=l?"":(0,u.default)(A="".concat(t("Reserved"),": ")).call(A,l),O=(0,u.default)(D="".concat(t("New"),": ")).call(D,r),z=[P,O];l&&(0,s.default)(z).call(z,1,0,L),T=z.join(" / ")}var R=m.length,U=(B=m,K=/[\u4e00-\u9fa5]+/g,B.match(K)?R>6?10:14:R>12?10:14),F=d.default.createElement(c.Chart,{placeholder:!1,height:S,padding:"auto",autoFit:!0},d.default.createElement(c.Legend,{visible:b&&v}),d.default.createElement(c.Tooltip,{visible:b}),d.default.createElement(c.View,{data:_},d.default.createElement(c.Coordinate,{type:"theta",innerRadius:.75}),d.default.createElement(c.Interval,{position:"value",adjust:"stack",color:["type",C],size:16}),d.default.createElement(c.Annotation.Text,{position:["50%","30%"],content:m,style:{lineHeight:1.5,fontSize:U,fill:"#000",textAlign:"center"}}),d.default.createElement(c.Annotation.Text,{position:["50%","50%"],content:g,style:{lineHeight:1.5,fontSize:14,fill:"#000",textAlign:"center"}}),d.default.createElement(c.Annotation.Text,{position:["50%","70%"],content:(0,u.default)(a="".concat(I,"/")).call(a,w),style:{lineHeight:1.5,fontSize:14,fill:p(E),textAlign:"center",fontWeight:"bold"}}))),V=y?F:d.default.createElement(i.default,{title:T},F);var B,K;return d.default.createElement("div",{style:N},V)},a.getUsedValueColor=a.getAddValueColor=a.typeColors=void 0,n(411);var i=l(n(227)),o=l(n(57)),u=l(n(81)),s=l(n(562)),d=l(n(0)),c=n(1295),f=(n(173),{used:"#5B8FF9",reserved:"#5D7092",add:"#5AD8A6",left:"#eee",danger:"#E8684A"});a.typeColors=f;a.getAddValueColor=e=>e>80?f.danger:f.add;var p=e=>e>80?f.danger:f.used;a.getUsedValueColor=p},1391:function(e,t,a){var n=a(1997);"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:undefined,insertInto:void 0};a(75)(n,r);n.locals&&(e.exports=n.locals)},1450:function(e,a,n){"use strict";var r=n(33),l=n(44),i=n(32),o=n(25),u=n(27),s=n(45),d=n(46),c=n(19),f=n(160),p=n(21);c(a,"__esModule",{value:!0}),a.default=a.getTags=void 0;var h=p(n(81)),m=p(n(27)),g=p(n(33)),v=p(n(102)),y=p(n(32)),b=p(n(57)),x=p(n(90)),w=p(n(339)),k=p(n(579));n(1198);var _=p(n(1199)),C=p(n(630));n(1205);var M=p(n(1206));n(571);var N=p(n(417));n(1196);var S=p(n(1197));n(1227);var I=p(n(418));n(1266);var E=p(n(1267));n(1250);var T=p(n(1251));n(333);var j=p(n(332)),A=p(n(601)),D=p(n(36)),P=p(n(439)),L=p(n(199)),O=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=F(t);if(a&&a.has(e))return a.get(e);var n={},r=c&&o;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?o(e,l):null;i&&(i.get||i.set)?c(n,l,i):n[l]=e[l]}n.default=e,a&&a.set(e,n);return n}(n(0)),z=p(n(16)),R=(n(173),n(555),p(n(4))),U=p(n(1770));function F(e){if("function"!=typeof f)return null;var t=new f,a=new f;return(F=function(e){return e?a:t})(e)}function V(e,t){var a=r(e);if(l){var n=l(e);t&&(n=i(n).call(n,(function(t){return o(e,t).enumerable}))),a.push.apply(a,n)}return a}function B(e){for(var t=1;t<arguments.length;t++){var a,n=null!=arguments[t]?arguments[t]:{};if(t%2)u(a=V(Object(n),!0)).call(a,(function(t){(0,D.default)(e,t,n[t])}));else if(s)d(e,s(n));else{var r;u(r=V(Object(n))).call(r,(function(t){c(e,t,o(n,t))}))}}return e}var K=z.default.shape({label:z.default.string.isRequired,key:z.default.oneOfType([z.default.string.isRequired,z.default.bool.isRequired]),component:z.default.node}),Y=z.default.shape({label:z.default.string.isRequired,name:z.default.string.isRequired,isSingle:z.default.bool,isServer:z.default.bool,allowed:z.default.func,options:z.default.arrayOf(K),isTime:z.default.bool}),Q=(e,t)=>{var a;return(0,h.default)(a="".concat(e,"--")).call(a,t)},G=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split("--")[0],a=e.split("--")[1];return{name:t,key:a}},H=(e,t)=>{var a;if(!e||(0,L.default)(e))return{};if((0,L.default)(t))return{};var n=[],r=[];return(0,m.default)(a=(0,g.default)(e)).call(a,(a=>{var l=(0,v.default)(t).call(t,(e=>e.name===a));if(l){var{options:i=[]}=l,o=e[a];if(i.length){var u=(0,v.default)(i).call(i,(e=>e.key===o));u&&u.isQuick&&r.push(Q(l.name,o))}n.push({value:o,filter:l})}})),{tags:n,checkValues:r}};a.getTags=H;class W extends O.PureComponent{constructor(e){super(e),(0,D.default)(this,"getFilterParams",(()=>{var{filterParams:e}=this.props,{tags:t}=this.state,a=[];return(0,m.default)(e).call(e,(e=>{(0,v.default)(t).call(t,(t=>(0,y.default)(t).name===e.name))||a.push(e)})),a})),(0,D.default)(this,"onTagsChange",(()=>{var{onInputChange:e}=this.props,{tags:t}=this.state;e&&e(t)})),(0,D.default)(this,"onFocusChange",(e=>{var{onInputFocus:t}=this.props;t&&t(e)})),(0,D.default)(this,"getDefaultFilter",(()=>{var{filterParams:e}=this.props;return(0,v.default)(e).call(e,(e=>!e.options))})),(0,D.default)(this,"handleEnter",(e=>{e&&e.preventDefault(),e&&e.stopPropagation();var{value:t}=e.currentTarget;t&&this.updateInput(t)})),(0,D.default)(this,"handleBlur",(()=>{var{currentFilter:e}=this.state;e?(this.setState({isFocus:!0}),this.onFocusChange(!0)):this.onFocusChange(!1)})),(0,D.default)(this,"handleKeyUp",(e=>{if(8===e.keyCode||46===e.keyCode){var{currentFilter:t,tags:a}=this.state,{value:n}=this.inputRef.current.state;t&&(0,L.default)(n)?this.setState({currentFilter:null}):a.length>0&&(0,L.default)(n)&&this.handleTagClose((0,y.default)(a[a.length-1]).name)}})),(0,D.default)(this,"handleFocus",(()=>{this.setState({isFocus:!0}),this.onFocusChange(!0)})),(0,D.default)(this,"handleInputChange",(e=>{this.setState({inputValue:e.target.value})})),(0,D.default)(this,"handleTagClose",(e=>{var{tags:t,checkValues:a}=this.state,n=(0,y.default)(t).call(t,(t=>(0,y.default)(t).name!==e)),r=(0,y.default)(a).call(a,(t=>G(t).name!==e));this.setState({tags:n,optionClear:!1,checkValues:r},(()=>{this.onTagsChange()}))})),(0,D.default)(this,"handleOptionClick",(e=>{var t,{key:a}=e;t="true"===a||"false"!==a&&a,this.updateInput(t)})),(0,D.default)(this,"handleSelectFilter",(e=>{var{key:t}=e,{filterParams:a}=this.props,n=(0,v.default)(a).call(a,(e=>e.name===t));this.setState({currentFilter:n,isFocus:!0},(()=>{this.inputRef.current.focus(),this.onFocusChange(!0)}))})),(0,D.default)(this,"clearOptions",(()=>{this.setState({optionClear:!0})})),(0,D.default)(this,"renderOptionsClose",(e=>{var{filterParams:t}=this.props,{optionClear:a}=this.state;return a||!e[0]||t.length===e.length?null:O.default.createElement(j.default,{className:U.default["close-option-btn"],type:"link",icon:O.default.createElement(A.default,null),onClick:this.clearOptions})})),(0,D.default)(this,"updateInput",(e=>{var{currentFilter:t,tags:a}=this.state,n={value:e,filter:t||this.getDefaultFilter()};this.clearInputValue();var r=(0,y.default)(a).call(a,(e=>(0,y.default)(e).name!==(0,y.default)(n).name));r.push(n);var l=(0,y.default)(r).call(r,(e=>{var{value:t,filter:{options:a=[]}={}}=e;return!!(0,v.default)(a).call(a,(e=>e.key===t&&e.isQuick))})),i=(0,b.default)(l).call(l,(e=>Q((0,y.default)(e).name,e.value)));this.setState({tags:r,currentFilter:null,inputValue:"",checkValues:i},(()=>{this.onTagsChange()}))})),(0,D.default)(this,"clearInputValue",(()=>{this.inputRef.current.setState({value:""})})),(0,D.default)(this,"clearAll",(()=>{this.clearInputValue(),this.setState({tags:[],currentFilter:null,isFocus:!1,optionClear:!1,checkValues:[]},(()=>{this.onTagsChange(),this.onFocusChange(!1)}))})),(0,D.default)(this,"updateCheck",(()=>{})),(0,D.default)(this,"onChangeCheck",(e=>{var t,{checkValues:a}=this.state,n=[];(0,m.default)(e).call(e,(e=>{(0,x.default)(a).call(a,e)<0&&n.push({key:e,value:!0})})),(0,m.default)(a).call(a,(t=>{(0,x.default)(e).call(e,t)<0&&n.push({key:t,value:!1})}));var r=(0,b.default)(t=(0,w.default)(new k.default([...a,...e]))).call(t,(e=>G(e).name)),{filterParams:l}=this.props,{tags:i}=this.state,o=(0,y.default)(i).call(i,(e=>(0,x.default)(r).call(r,(0,y.default)(e).name)<0)),u=[];(0,m.default)(n).call(n,(e=>{var{key:t,value:a}=e;if(a){var{name:n,key:r}=G(t),i=(0,v.default)(l).call(l,(e=>e.name===n));u.push({value:r,filter:i})}})),this.setState({tags:[...o,...u],checkValues:e},(()=>{this.onTagsChange()}))})),this.inputRef=O.default.createRef(),this.state={tags:[],currentFilter:null,isFocus:!1,optionClear:!1,checkValues:[]}}componentDidMount(){this.initTags(this.props)}initTags(e){var{initValue:t,filterParams:a}=e,{tags:n=[],checkValues:r}=H(t,a);n.length&&this.setState({tags:n,checkValues:r},(()=>{this.onTagsChange()}))}renderKey(){var{currentFilter:e}=this.state;return e?O.default.createElement("span",{className:U.default.key},"".concat(e.label),O.default.createElement(T.default,{type:"vertical"})):null}renderTags(){var{tags:e}=this.state;return(0,b.default)(e).call(e,(e=>{var{filter:t,value:a}=e,{options:n}=t,r=a;if(n){var l=(0,v.default)(n).call(n,(e=>((0,P.default)(e.key)?e.key.toString():e.key)===((0,P.default)(a)?a.toString():a)));r=l?l.label:a}return O.default.createElement(E.default,{key:t.name,closable:!0,onClose:()=>this.handleTagClose(t.name)},O.default.createElement("span",null,t.label),O.default.createElement(T.default,{type:"vertical"}),O.default.createElement("span",null,r))}))}renderOptions(){var e,{currentFilter:t,tags:a}=this.state,{options:n,correlateOption:r}=t;if(!n)return null;var l=(0,y.default)(a).call(a,(e=>(0,y.default)(e).name===r)),i=[];r&&l[0]&&(i=(0,y.default)(n).call(n,(e=>{var t;return(0,x.default)(t=e.correlateValue).call(t,l[0].value)>-1})));var o=(0,b.default)(e=i[0]?i:n).call(e,(e=>O.default.createElement(I.default.Item,{key:e.key},e.label)));return O.default.createElement(I.default,{className:U.default["option-menu"],onClick:this.handleOptionClick},o)}renderMenu(){var{currentFilter:e,isFocus:t,optionClear:a,inputValue:n}=this.state;if(n)return null;if(!t)return null;if(e)return this.renderOptions();var r=this.getFilterParams();a&&(r=[]);var l=(0,b.default)(r).call(r,(e=>O.default.createElement(I.default.Item,{key:e.name},e.label)));return O.default.createElement(I.default,{className:U.default.menu,onClick:this.handleSelectFilter},this.renderOptionsClose(r),l)}renderClose(){var{isFocus:e}=this.state;return e?O.default.createElement(S.default,{className:U.default["close-btn-col"]},O.default.createElement(j.default,{className:U.default["close-btn"],type:"link",icon:O.default.createElement(A.default,null),onClick:this.clearAll})):null}getChecks(){var{filterParams:e}=this.props,t=[];return(0,m.default)(e).call(e,(e=>{var{options:a=[]}=e;(0,m.default)(a).call(a,(a=>{var{isQuick:n=!1}=a;n&&t.push(B(B({},a),{},{father:e}))}))})),t}renderChecks(){var e=this.getChecks();if(0===e.length)return null;var{checkValues:t}=this.state,a=(0,b.default)(e).call(e,(e=>{var{checkLabel:t,key:a,father:n}=e;return{label:t,value:Q(n.name,a)}}));return O.default.createElement("div",{className:(0,R.default)(U.default["magic-input-checks"],"magic-input-checks")},O.default.createElement(N.default.Group,{options:a,onChange:this.onChangeCheck,value:t}))}render(){var{placeholder:e}=this.props,{isFocus:t}=this.state;return O.default.createElement("div",{className:(0,R.default)(U.default["magic-input-outer-wrapper"],"magic-input-outer-wrapper")},O.default.createElement(_.default,{className:(0,R.default)("magic-input-wrapper",U.default["magic-input-wrapper"],t?U.default["magic-input-wrapper-active"]:"")},O.default.createElement(S.default,null,this.renderTags()),O.default.createElement(S.default,null,this.renderKey()),O.default.createElement(S.default,{className:U.default["input-wrapper"]},O.default.createElement(M.default,{className:U.default.input,ref:this.inputRef,autoFocus:t,placeholder:e,onChange:this.handleInputChange,onBlur:this.handleBlur,onFocus:this.handleFocus,onPressEnter:this.handleEnter,onKeyUp:this.handleKeyUp}),this.renderMenu()),O.default.createElement(S.default,{className:U.default["search-icon"]},O.default.createElement(C.default,null)),this.renderClose()),this.renderChecks())}}(0,D.default)(W,"propTypes",{filterParams:z.default.arrayOf(Y),initValue:z.default.object,placeholder:z.default.string,onInputChange:z.default.func,onInputFocus:z.default.func}),(0,D.default)(W,"defaultProps",{filterParams:[],initValue:{},placeholder:t("Click here for filters.")});var q=W;a.default=q},1451:function(e,t,a){"use strict";var n=a(33),r=a(44),l=a(32),i=a(25),o=a(27),u=a(45),s=a(46),d=a(19),c=a(21);d(t,"__esModule",{value:!0}),t.default=void 0;var f=c(a(57)),p=c(a(81)),h=c(a(32)),m=c(a(90)),g=c(a(562)),v=c(a(102)),y=c(a(33));a(572);var b=c(a(574)),x=c(a(62)),w=c(a(36)),k=c(a(559)),_=c(a(202)),C=c(a(199)),M=c(a(131)),N=c(a(111)),S=c(a(0)),I=c(a(4)),E=c(a(16)),T=(a(173),a(578)),j=a(201),A=a(161),D=c(a(1772));function P(e,t){var a=n(e);if(r){var o=r(e);t&&(o=l(o).call(o,(function(t){return i(e,t).enumerable}))),a.push.apply(a,o)}return a}function L(e){for(var t=1;t<arguments.length;t++){var a,n=null!=arguments[t]?arguments[t]:{};if(t%2)o(a=P(Object(n),!0)).call(a,(function(t){(0,w.default)(e,t,n[t])}));else if(u)s(e,u(n));else{var r;o(r=P(Object(n))).call(r,(function(t){d(e,t,i(n,t))}))}}return e}class O extends S.default.Component{constructor(){super(...arguments),(0,w.default)(this,"handleChange",((e,t,a,n)=>{var{onChange:r}=this.props;r&&r(e,t,a,n)})),(0,w.default)(this,"getBaseColumns",(e=>(0,f.default)(e).call(e,(e=>{var{sortable:t,dataIndex:a,valueRender:n,sorter:r,sortOrder:l,render:i,isStatus:o,isName:u,isPrice:s,isLink:d,routeName:c,linkPrefix:f,valueMap:p,unit:h}=e,m=(0,x.default)(e,["sortable","dataIndex","valueRender","sorter","sortOrder","render","isStatus","isName","isPrice","isLink","routeName","linkPrefix","valueMap","unit"]);if("operation"===e.key)return e;var g=(0,T.getColumnSorter)(e,this.props),v=l||g?(0,T.getSortOrder)(a,this.props):null,y=i||(0,T.getRender)(n);if(p&&(y=(0,T.getValueMapRender)(e)),h&&(y=(0,T.getUnitRender)(e)),(0,T.checkIsStatusColumn)(a,o)&&(y=(0,T.getStatusRender)(y)),"description"===a&&(y=this.getNoValueRender(y)),"project_name"===a&&(y=this.getProjectRender(y)),"name"===a&&c||d){var{rowKey:b}=this.props;y=(0,T.getNameRenderByRouter)(y,e,b)}("name"===a&&f||u)&&(y=(0,T.getNameRender)(y,e)),("cost"===a||s)&&(y=this.getPriceRender(y,e));var w=L(L({},m),{},{dataIndex:a,align:e.align||"left"});return g&&(w.sorter=g),l&&(w.sortOrder=v),y&&(w.render=y),(0,T.updateColumnSort)(w,this.props),w})))),(0,w.default)(this,"getProjectId",(e=>e.project_id||e.owner||e.fingerprint||e.tenant)),(0,w.default)(this,"getProjectRender",(e=>e||((e,t)=>{var a=this.getProjectId(t);if(!a)return"-";var n="/identity/project-admin/detail/".concat(a);return S.default.createElement(S.default.Fragment,null,S.default.createElement("div",null,S.default.createElement(j.Link,{to:n},a)),S.default.createElement("div",null,e||"-"))}))),(0,w.default)(this,"getNoValueRender",(e=>e||(e=>(0,A.getNoValue)(e)))),(0,w.default)(this,"getLinkUrl",((e,t)=>{var a,n;return e?"/"===e[e.length-1]?(0,p.default)(n="".concat(e)).call(n,t):(0,p.default)(a="".concat(e,"/")).call(a,t):null})),(0,w.default)(this,"getColumns",(()=>{var{columns:e}=this.props;return this.getBaseColumns(e)})),(0,w.default)(this,"getPriceRender",((e,t)=>e||(e=>{var t=(0,M.default)(e)?e:(e||0).toFixed(2);return S.default.createElement("span",{style:{color:"#f50"}},t)}))),(0,w.default)(this,"getDataSource",(()=>{var{data:e,filters:t,filterByBackend:a}=this.props;if(a)return e;var n=(0,f.default)(e).call(e,(e=>e.key?e:L(L({},e),{},{key:e.id})));return!t||(0,C.default)(t)?n:(0,h.default)(n).call(n,(e=>this.filterData(e,t)))})),(0,w.default)(this,"onRow",((e,t)=>{var{rowSelection:a,onRow:n}=this.props;return n?n(e,t):{onClick:()=>{var{selectedRowKeys:t=[],onChange:n,type:r,getCheckboxProps:l}=a||{};if(l){var{disabled:i}=l(e);if(i)return}var o=(0,m.default)(t).call(t,e.key);if("checkbox"===r){var u=[...t];o>-1?(0,g.default)(u).call(u,o,1):u.push(e.key),n(u)}else"radio"===r&&n([e.key])}}})),(0,w.default)(this,"filterData",((e,t)=>{var a,{searchFilters:n}=this.props;return!(0,v.default)(a=(0,y.default)(t)).call(a,(a=>{var r=(0,N.default)(e,a),l=t[a],{filterFunc:i}=(0,v.default)(n).call(n,(e=>e.name===a));if(i)return!i(r,l,e);var o,u=this.checkFilterInclude(a);return(0,M.default)(r)&&(0,M.default)(l)?u?(0,m.default)(o=r.toLowerCase()).call(o,l.toLowerCase())<0:r.toLowerCase()!==l.toLowerCase():!(0,_.default)(r,l)}))})),(0,w.default)(this,"checkFilterInclude",(e=>{var{searchFilters:t}=this.props,a=(0,v.default)(t).call(t,(t=>t.name===e));return(0,k.default)(a,"include")?a.include:!(0,k.default)(a,"options")}))}getPagination(e){var{pagination:t}=this.props;return t&&L(L({},t),{},{total:e.length})}render(){var{className:e,isLoading:t,rowSelection:a,footer:n,childrenColumnName:r}=this.props,l=this.getColumns(),i=this.getDataSource();return S.default.createElement(b.default,{className:(0,I.default)(D.default["sl-simple-table"],e),columns:l,dataSource:i,loading:t,onChange:this.handleChange,pagination:this.getPagination(i),rowSelection:a,sortDirections:["ascend","descend","ascend"],showSorterTooltip:!1,footer:n,onRow:this.onRow,childrenColumnName:r})}}t.default=O,(0,w.default)(O,"propTypes",{data:E.default.array.isRequired,filters:E.default.object,searchFilters:E.default.array,columns:E.default.array.isRequired,className:E.default.string,onChange:E.default.func,isLoading:E.default.bool,rowSelection:E.default.object,pagination:E.default.oneOfType([E.default.object,E.default.bool]),filterByBackend:E.default.bool,isSortByBack:E.default.bool,defaultSortKey:E.default.string,defaultSortOrder:E.default.string,onRow:E.default.func,childrenColumnName:E.default.string}),(0,w.default)(O,"defaultProps",{filters:{},searchFilters:[],isLoading:!1,rowSelection:null,pagination:{},filterByBackend:!1,isSortByBack:!1,defaultSortKey:"",defaultSortOrder:""})},1452:function(e,a,n){"use strict";var r=n(160),l=n(19),i=n(25),o=n(21);l(a,"__esModule",{value:!0}),a.default=void 0;var u=o(n(57)),s=o(n(627));n(333);var d=o(n(332)),c=o(n(626));n(560);var f=o(n(412)),p=o(n(36)),h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=y(t);if(a&&a.has(e))return a.get(e);var n={},r=l&&i;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=r?i(e,o):null;u&&(u.get||u.set)?l(n,o,u):n[o]=e[o]}n.default=e,a&&a.set(e,n);return n}(n(0)),m=o(n(16)),g=(n(555),n(173),o(n(4))),v=o(n(1774));function y(e){if("function"!=typeof r)return null;var t=new r,a=new r;return(y=function(e){return e?a:t})(e)}class b extends h.Component{static propTypes(){return{total:m.default.number,currentDataSize:m.default.number.isRequired,current:m.default.number.isRequired,pageSize:m.default.number.isRequired,defaultCurrent:m.default.number,defaultPageSize:m.default.number,pageSizeOptions:m.default.array,onChange:m.default.func,isLoading:m.default.bool,className:m.default.object}}constructor(e){super(e),(0,p.default)(this,"onChange",((e,t)=>{var{onChange:a}=this.props;a&&a(e,t)})),(0,p.default)(this,"onChangePageSize",(e=>{this.setState({pageSize:e},(()=>{this.onChange(1,e)}))})),(0,p.default)(this,"onClickPre",(()=>{var{current:e,pageSize:t}=this.state;1!==e&&this.setState({current:e-1},(()=>{this.onChange(e-1,t)}))})),(0,p.default)(this,"onClickNext",(()=>{var{current:e,pageSize:t,currentDataSize:a}=this.state;a<t||(this.setState({current:e+1}),this.onChange(e+1,t))})),(0,p.default)(this,"onFocusChange",(e=>{var{onFocusChange:t}=this.props;t&&t(e)})),(0,p.default)(this,"onFocus",(()=>{this.onFocusChange(!0)})),(0,p.default)(this,"onBlur",(()=>{this.onFocusChange(!1)}));var{current:t,pageSize:a,defaultCurrent:n,defaultPageSize:r,currentDataSize:l,isLoading:i,total:o}=e;this.state={current:t||n,pageSize:a||r,currentDataSize:l,isLoading:i,total:o}}static getDerivedStateFromProps(e,t){if(e.currentDataSize!==t.currentDataSize||e.current&&e.current!==t.current||e.isLoading!==t.isLoading||e.total!==t.total){var{currentDataSize:a,current:n=1,isLoading:r,total:l}=e;return{currentDataSize:a,current:n,isLoading:r,total:l}}return null}checkNextByTotal(){var{pageSize:e,total:t,current:a}=this.state;return void 0===t||!!t&&a<Math.ceil(t/e)}renderTotal(){var{hideTotal:e}=this.props;if(e)return null;var{current:a,currentDataSize:n,pageSize:r,isLoading:l,total:i}=this.state;if(void 0!==i)return h.default.createElement("span",null,t("Total {total} items",{total:i}));if(l)return null;if(n<r){var o=(a-1)*r+n;return h.default.createElement("span",null,t("Total {total} items",{total:o}))}return null}renderPageSelect(){var{pageSizeOptions:e,defaultPageSize:a}=this.props,{pageSize:n}=this.state,r=(0,u.default)(e).call(e,(e=>({label:t("{pageSize} items/page",{pageSize:e}),value:e})));return h.default.createElement(f.default,{className:v.default["page-select"],options:r,value:n,defaultValue:a,onChange:e=>{this.onChangePageSize(e)}})}render(){var{current:e,currentDataSize:t,pageSize:a,isLoading:n}=this.state,{className:r}=this.props,l=n||1===e,i=n||t<a||!this.checkNextByTotal();return h.default.createElement("div",{className:(0,g.default)(v.default.wrapper,r,"backend-pagination")},h.default.createElement("div",{className:(0,g.default)(v.default.inner,"pagination-inner")},this.renderTotal(),h.default.createElement(d.default,{type:"link",icon:h.default.createElement(c.default,null),disabled:l,onClick:this.onClickPre}),h.default.createElement(d.default,{type:"link",style:{paddingLeft:0,paddingRight:0}},e),h.default.createElement(d.default,{type:"link",icon:h.default.createElement(s.default,null),disabled:i,onClick:this.onClickNext}),this.renderPageSelect()))}}a.default=b,(0,p.default)(b,"defaultProps",{isLoading:!1,total:void 0,defaultCurrent:1,defaultPageSize:10,pageSizeOptions:[10,20,50,100],onChange:(e,t)=>{}})},1453:function(e,a,n){"use strict";var r=n(160),l=n(19),i=n(25),o=n(21);l(a,"__esModule",{value:!0}),a.default=void 0,n(1198);var u=o(n(1199));n(1196);var s=o(n(1197));n(571);var d=o(n(417));n(560);var c=o(n(412)),f=o(n(409)),p=o(n(62)),h=o(n(36)),m=o(n(1259)),g=o(n(592)),v=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=b(t);if(a&&a.has(e))return a.get(e);var n={},r=l&&i;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=r?i(e,o):null;u&&(u.get||u.set)?l(n,o,u):n[o]=e[o]}n.default=e,a&&a.set(e,n);return n}(n(0)),y=(n(173),o(n(1781)));function b(e){if("function"!=typeof r)return null;var t=new r,a=new r;return(b=function(e){return e?a:t})(e)}class x extends v.Component{constructor(e){super(e),(0,h.default)(this,"onChange",((e,t)=>{var{onChange:a,isWrappedValue:n}=this.props;a&&a(n?t:e)})),(0,h.default)(this,"getValue",(()=>{var{value:e,isWrappedValue:t}=this.props;return void 0===e?e:t?e.value:e})),(0,h.default)(this,"onCheckChange",(()=>{var{selectAll:e}=this.state,{options:t,checkOptions:a}=this.props;this.setState({selectAll:1-e},this.onChange(1===e?a[a.length-1].value:t[t.length-1].value))}));var{checkOptions:t}=e;t&&(this.state={selectAll:!1})}render(){var e=this.props,{value:a,placeholder:n=t("Please select"),isWrappedValue:r,checkOptions:l,checkBoxInfo:i,allowClear:o=!0,showSearch:h=!0}=e,b=(0,p.default)(e,["value","placeholder","isWrappedValue","checkOptions","checkBoxInfo","allowClear","showSearch"]);if((0,g.default)(a)||(0,m.default)(a))return v.default.createElement(c.default,(0,f.default)({},b,{allowClear:o,showSearch:h,placeholder:n,onChange:this.onChange}));if(l){var{options:x}=this.props,{selectAll:w}=this.state,k=v.default.createElement(d.default,{onChange:this.onCheckChange,checked:w},i||t("Show all Data"));return v.default.createElement(u.default,{gutter:24},v.default.createElement(s.default,{span:12},v.default.createElement(c.default,(0,f.default)({},b,{allowClear:o,showSearch:h,placeholder:n,onChange:this.onChange,value:this.getValue(),options:1===w?l:x}))),v.default.createElement(s.default,{span:12,className:y.default.checkbox},k))}return v.default.createElement(c.default,(0,f.default)({},b,{allowClear:o,showSearch:h,placeholder:n,onChange:this.onChange,value:this.getValue()}))}}a.default=x},1468:function(e,a,n){"use strict";var r=n(33),l=n(44),i=n(32),o=n(25),u=n(27),s=n(45),d=n(46),c=n(19),f=n(21);c(a,"__esModule",{value:!0}),a.default=void 0;var p=f(n(102));n(1216);var h=f(n(1217));n(1198);var m=f(n(1199));n(1196);var g=f(n(1197));n(571);var v=f(n(417));n(560);var y=f(n(412)),b=f(n(36)),x=f(n(0)),w=(n(173),f(n(16))),k=f(n(1381)),_=f(n(1804));function C(e,t){var a=r(e);if(l){var n=l(e);t&&(n=i(n).call(n,(function(t){return o(e,t).enumerable}))),a.push.apply(a,n)}return a}function M(e){for(var t=1;t<arguments.length;t++){var a,n=null!=arguments[t]?arguments[t]:{};if(t%2)u(a=C(Object(n),!0)).call(a,(function(t){(0,b.default)(e,t,n[t])}));else if(s)d(e,s(n));else{var r;u(r=C(Object(n))).call(r,(function(t){c(e,t,o(n,t))}))}}return e}class N extends x.default.Component{constructor(e){super(e),(0,b.default)(this,"checkVolume",(e=>{var{type:a}=this.state;a?this.setState({errorMsg:void 0,validateStatus:"success"},e):this.setState({errorMsg:t("Please select a type!"),validateStatus:"error"},e)})),(0,b.default)(this,"onChange",(()=>{this.checkVolume((()=>{var{onChange:e,options:a=[]}=this.props;if(e){var{type:n,deleteType:r}=this.state,l=1===r?t("Deleted with the instance"):t("Not deleted with the instance"),i=(0,p.default)(a).call(a,(e=>e.value===n));e(M(M({},this.state),{},{deleteTypeLabel:l,typeOption:i}))}}))})),(0,b.default)(this,"onSelectChange",(e=>{this.setState({type:e},this.onChange)})),(0,b.default)(this,"onInputChange",(e=>{this.setState({size:e},this.onChange)})),(0,b.default)(this,"onDeleteChange",(()=>{var{deleteType:e}=this.state;this.setState({deleteType:1-e},this.onChange)}));var{type:a,size:n,deleteType:r}=e.value||{},{minSize:l}=e;this.state={type:a,size:n,deleteType:r,minSize:l}}static getDerivedStateFromProps(e,t){if(e.options!==t.options||e.minSize!==t.minSize){var{options:a,value:n,minSize:r}=e;return{options:a,type:n.type,minSize:r}}return null}componentDidMount(){this.onChange()}render(){var{options:e,type:a,size:n,deleteType:r,validateStatus:l,errorMsg:i,minSize:o}=this.state,{name:u}=this.props,s=x.default.createElement(y.default,{value:a,options:e,onChange:this.onSelectChange,className:_.default.select,placeholder:t("Please select type")}),d=x.default.createElement(k.default,{value:n,onChange:this.onInputChange,min:o,style:{maxWidth:"60%"}}),c=1===r,f=x.default.createElement(v.default,{onChange:this.onDeleteChange,checked:c},t("Deleted with the instance"));return x.default.createElement(h.default.Item,{className:_.default["instance-volume"],name:u,validateStatus:l,help:i},x.default.createElement(m.default,{gutter:24},x.default.createElement(g.default,{span:8},x.default.createElement("span",{className:_.default.label},t("Type")),s),x.default.createElement(g.default,{span:14},x.default.createElement("span",{className:_.default.label},t("Size")),d,x.default.createElement("span",{className:_.default["size-label"]},"GiB"),f)))}}a.default=N,(0,b.default)(N,"propTypes",{options:w.default.array,value:w.default.any,minSize:w.default.number}),(0,b.default)(N,"defaultProps",{options:[],value:{},minSize:0})},1490:function(e,a,n){"use strict";var r=n(33),l=n(44),i=n(32),o=n(25),u=n(27),s=n(45),d=n(46),c=n(19),f=n(160),p=n(21);c(a,"__esModule",{value:!0}),a.default=void 0,n(1239);var h=p(n(1240)),m=p(n(409)),g=p(n(36)),v=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=x(t);if(a&&a.has(e))return a.get(e);var n={},r=c&&o;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?o(e,l):null;i&&(i.get||i.set)?c(n,l,i):n[l]=e[l]}n.default=e,a&&a.set(e,n);return n}(n(0)),y=(n(173),p(n(16))),b=p(n(1868));function x(e){if("function"!=typeof f)return null;var t=new f,a=new f;return(x=function(e){return e?a:t})(e)}function w(e,t){var a=r(e);if(l){var n=l(e);t&&(n=i(n).call(n,(function(t){return o(e,t).enumerable}))),a.push.apply(a,n)}return a}function k(e){for(var t=1;t<arguments.length;t++){var a,n=null!=arguments[t]?arguments[t]:{};if(t%2)u(a=w(Object(n),!0)).call(a,(function(t){(0,g.default)(e,t,n[t])}));else if(s)d(e,s(n));else{var r;u(r=w(Object(n))).call(r,(function(t){c(e,t,o(n,t))}))}}return e}class _ extends v.Component{constructor(e){super(e),(0,g.default)(this,"onChange",(e=>{var{onChange:t}=this.props;t&&t(e)})),(0,g.default)(this,"onCpuChange",(e=>{this.onChange(k(k({},this.state),{},{cpu:e}))})),(0,g.default)(this,"onRamChange",(e=>{this.onChange(k(k({},this.state),{},{ram:e}))})),this.state={cpu:1,ram:512}}static getDerivedStateFromProps(e,t){var{cpu:a,ram:n}=e.value||{};return a!==t.cpu||n!==t.ram?{cpu:a,ram:n}:null}render(){var{cpu:e,ram:a}=this.state,n={min:1,precision:0,style:{width:120},formatter:e=>"$ ".concat(e).replace(/\D/g,"")};return v.default.createElement(v.default.Fragment,null,v.default.createElement("span",{className:b.default.cpu},t("CPU(Core)")),v.default.createElement(h.default,(0,m.default)({value:e,onChange:this.onCpuChange},n)),v.default.createElement("span",{className:b.default.ram},t("RAM (MiB)")),v.default.createElement(h.default,(0,m.default)({value:a,onChange:this.onRamChange},n)))}}a.default=_,(0,g.default)(_,"propTypes",{onChange:y.default.func,value:y.default.object}),(0,g.default)(_,"defaultProps",{onChange:null,value:{cpu:1,ram:1024}})},1491:function(e,t,a){"use strict";var n=a(19),r=a(21);n(t,"__esModule",{value:!0}),t.getBase64=function(e){return new l.default(((t,a)=>{var n=new FileReader;n.readAsDataURL(e),n.onload=()=>t(n.result),n.onerror=e=>a(e)}))},t.getText=function(e){return new l.default(((t,a)=>{var n=new FileReader;n.readAsText(e,"UTF-8"),n.onload=()=>t(n.result),n.onerror=e=>a(e)}))},t.getArrayBuffer=function(e){return new l.default(((t,a)=>{var n=new FileReader;n.readAsArrayBuffer(e),n.onload=()=>t(n.result),n.onerror=e=>a(e)}))};var l=r(a(65))},1501:function(e,a,n){"use strict";var r=n(160),l=n(19),i=n(25),o=n(21);l(a,"__esModule",{value:!0}),a.default=function(e){var{content:a,defaultCollapsed:n=!1,size:r="small",ableAuto:l=!0,tip:i=t("When auto-expand/close is enabled, if there is no operation in the pop-up window, the pop-up window will be closed automatically after { seconds } seconds, and it will be automatically expanded when the displayed content changes.",{seconds:v}),checkValue:o=""}=e,[g,y]=(0,m.useState)(n),[b,x]=(0,m.useState)(l),[w,k]=(0,m.useState)(!1),_=(0,m.useRef)(),C=()=>{_.current&&clearTimeout(_.current)},M=()=>{y(!1)},N=()=>{y(!0),C()},S=()=>{g||(_.current&&C(),_.current=(0,h.default)((()=>{g||N()}),1e3*v))};(0,m.useEffect)((()=>{b&&(g||(w?C():S()))}),[g,w]),(0,m.useEffect)((()=>(b&&(M(),S()),()=>{C()})),[o]);var I=e=>{x(e)},E=()=>{k(!0)},T=()=>{k(!1)};if(g)return m.default.createElement("div",{style:{padding:8},onMouseEnter:E,onMouseLeave:T,className:"content-wrapper"},m.default.createElement(f.default,{title:t("Expand")},m.default.createElement(d.default,{onClick:M,size:r},m.default.createElement(c.default,null))));var j=m.default.createElement(f.default,{title:t("Close")},m.default.createElement(d.default,{onClick:N,size:r},m.default.createElement(s.default,null)));return m.default.createElement("div",{onMouseEnter:E,onMouseLeave:T,className:"content-wrapper",style:{minWidth:150}},m.default.createElement(u.default,{title:l?m.default.createElement(f.default,{title:i},m.default.createElement(p.default,{size:"small",checked:b,onChange:I})):null,extra:j},a))},n(1229);var u=o(n(1230)),s=o(n(1502));n(333);var d=o(n(332)),c=o(n(1503));n(411);var f=o(n(227));n(1482);var p=o(n(1483)),h=o(n(580)),m=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=g(t);if(a&&a.has(e))return a.get(e);var n={},r=l&&i;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=r?i(e,o):null;u&&(u.get||u.set)?l(n,o,u):n[o]=e[o]}n.default=e,a&&a.set(e,n);return n}(n(0));n(173),n(555);function g(e){if("function"!=typeof r)return null;var t=new r,a=new r;return(g=function(e){return e?a:t})(e)}var v=5},1504:function(e,t,a){"use strict";var n=a(19),r=a(21);n(t,"__esModule",{value:!0}),t.default=function(e){var{quotas:t=[],loading:a}=e;if(a)return o.default.createElement(i.default,null);var n=(0,l.default)(t).call(t,((e,a)=>{var{name:n}=e,r=a===t.length-1?{}:{marginBottom:10};return o.default.createElement("div",{key:n,style:r},function(e){var{type:t="ring",limit:a,unlimitByTable:n=!1}=e;if(-1===a&&n)return o.default.createElement(d.default,e);if("ring"===t)return o.default.createElement(u.default,e);if("line"===t)return o.default.createElement(s.default,e)}(e))}));return o.default.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",overflowY:"auto",overflowX:"hidden",maxHeight:400}},n)};var l=r(a(57));a(1268);var i=r(a(1269)),o=r(a(0)),u=(a(173),r(a(1385))),s=r(a(1924)),d=r(a(1925))},1511:function(e,t,a){"use strict";var n=a(33),r=a(44),l=a(32),i=a(25),o=a(27),u=a(45),s=a(46),d=a(19),c=a(21);d(t,"__esModule",{value:!0}),t.default=t.AuthCatalogStore=void 0;var f=c(a(36)),p=c(a(48)),h=c(a(53));function m(e,t){var a=n(e);if(r){var o=r(e);t&&(o=l(o).call(o,(function(t){return i(e,t).enumerable}))),a.push.apply(a,o)}return a}function g(e){for(var t=1;t<arguments.length;t++){var a,n=null!=arguments[t]?arguments[t]:{};if(t%2)o(a=m(Object(n),!0)).call(a,(function(t){(0,f.default)(e,t,n[t])}));else if(u)s(e,u(n));else{var r;o(r=m(Object(n))).call(r,(function(t){d(e,t,i(n,t))}))}}return e}class v extends h.default{get client(){return p.default.keystone.catalog}get listResponseKey(){return this.responseKey}get mapper(){return e=>g(g({},e),{},{region:e.endpoints&&e.endpoints[0].region||""})}}t.AuthCatalogStore=v;var y=new v;t.default=y},1704:function(e,t,a){"use strict";var n=a(19),r=a(21);n(t,"__esModule",{value:!0}),t.default=void 0;var l=a(0),i=r(a(1705)),o=(0,l.lazy)((()=>Promise.all([a.e(1),a.e(0),a.e(4)]).then(a.t.bind(null,2003,7)))),u=(0,l.lazy)((()=>Promise.all([a.e(1),a.e(0),a.e(6)]).then(a.t.bind(null,3431,7)))),s=(0,l.lazy)((()=>Promise.all([a.e(1),a.e(0),a.e(17)]).then(a.t.bind(null,3695,7)))),d=(0,l.lazy)((()=>Promise.all([a.e(1),a.e(0),a.e(14)]).then(a.t.bind(null,3755,7)))),c=(0,l.lazy)((()=>Promise.all([a.e(1),a.e(0),a.e(10)]).then(a.t.bind(null,3898,7)))),f=(0,l.lazy)((()=>Promise.all([a.e(1),a.e(0),a.e(7)]).then(a.t.bind(null,3964,7)))),p=(0,l.lazy)((()=>Promise.all([a.e(0),a.e(12)]).then(a.t.bind(null,4005,7)))),h=(0,l.lazy)((()=>Promise.all([a.e(1),a.e(0),a.e(9)]).then(a.t.bind(null,4007,7)))),m=(0,l.lazy)((()=>Promise.all([a.e(1),a.e(0),a.e(18)]).then(a.t.bind(null,4022,7)))),g=(0,l.lazy)((()=>Promise.all([a.e(1),a.e(0),a.e(13)]).then(a.t.bind(null,4028,7)))),v=(0,l.lazy)((()=>Promise.all([a.e(1),a.e(0),a.e(13)]).then(a.t.bind(null,4072,7)))),y=(0,l.lazy)((()=>Promise.all([a.e(1),a.e(0),a.e(16)]).then(a.t.bind(null,4115,7)))),b=(0,l.lazy)((()=>Promise.all([a.e(1),a.e(0),a.e(8)]).then(a.t.bind(null,4178,7)))),x=(0,l.lazy)((()=>Promise.all([a.e(1),a.e(0),a.e(2)]).then(a.t.bind(null,4198,7)))),w=(0,l.lazy)((()=>Promise.resolve().then(a.t.bind(null,567,7)))),k=[{path:"/",component:i.default,routes:[{path:"/base",component:o},{path:"/compute",component:u},{path:"/storage",component:s},{path:"/network",component:d},{path:"/identity",component:c},{path:"/configuration-admin",component:f},{path:"/management",component:p},{path:"/heat",component:h},{path:"/monitor-center",component:g},{path:"/user",component:m},{path:"/database",component:v},{path:"/share",component:y},{path:"/container-infra",component:b},{path:"/container",component:x},{path:"*",component:w}]}];t.default=k},1705:function(e,a,n){"use strict";var r=n(33),l=n(44),i=n(32),o=n(25),u=n(27),s=n(45),d=n(46),c=n(19),f=n(160),p=n(21);c(a,"__esModule",{value:!0}),a.default=a.BaseLayout=void 0;var h=p(n(32)),m=p(n(27)),g=p(n(102)),v=p(n(57)),y=p(n(1439)),b=p(n(62)),x=p(n(409)),w=p(n(36));n(1372);var k=p(n(1373)),_=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=z(t);if(a&&a.has(e))return a.get(e);var n={},r=c&&o;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?o(e,l):null;i&&(i.get||i.set)?c(n,l,i):n[l]=e[l]}n.default=e,a&&a.set(e,n);return n}(n(0)),C=n(406),M=n(34),N=p(n(234)),S=n(161),I=(n(555),p(n(1203))),E=(n(173),p(n(1716))),T=n(558),j=p(n(1978)),A=p(n(1987)),D=p(n(1988)),P=p(n(1989)),L=p(n(1998)),O=p(n(1391));function z(e){if("function"!=typeof f)return null;var t=new f,a=new f;return(z=function(e){return e?a:t})(e)}function R(e,t){var a=r(e);if(l){var n=l(e);t&&(n=i(n).call(n,(function(t){return o(e,t).enumerable}))),a.push.apply(a,n)}return a}function U(e){for(var t=1;t<arguments.length;t++){var a,n=null!=arguments[t]?arguments[t]:{};if(t%2)u(a=R(Object(n),!0)).call(a,(function(t){(0,w.default)(e,t,n[t])}));else if(s)d(e,s(n));else{var r;u(r=R(Object(n))).call(r,(function(t){c(e,t,o(n,t))}))}}return e}var{Header:F}=k.default;class V extends _.Component{constructor(e){var t;super(e),t=this,(0,w.default)(this,"autoReaction",(0,M.reaction)((()=>(this.props.rootStore.user||{}).keystone_token),(()=>{(0,T.setRouteMap)(this.menu)}))),(0,w.default)(this,"filterMenuByHidden",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(0===e.length)return e;var a=(0,h.default)(e).call(e,(e=>!e.hidden));return(0,m.default)(a).call(a,(e=>{e.children=t.filterMenuByHidden(e.children)})),a})),(0,w.default)(this,"checkItemEndpoints",(e=>this.rootStore.checkEndpoint(e))),(0,w.default)(this,"getMenuAllowed",(e=>{var t=[];return(0,m.default)(e).call(e,(e=>{var a=this.updateMenuItemByAllowed(e);a&&t.push(a)})),t})),(0,w.default)(this,"onCollapseChange",(e=>{this.setState({collapsed:e})})),(0,w.default)(this,"checkPath",((e,t,a)=>e instanceof RegExp?e.test(t):a?t===a:e===t)),(0,w.default)(this,"getCurrentMenu",(e=>{var t,a,n=(0,g.default)(t=this.menuAll).call(t,(t=>this.checkPath(t.path,e)));if(n)return[n];var r=!1,l=[];return(0,m.default)(a=this.menuAll).call(a,(t=>{if(!r&&t.children){var a,n,i=(0,g.default)(a=t.children).call(a,(t=>this.checkPath(t.path,e)));if(i&&(r=!0,l=[t,i]),!r)(0,m.default)(n=t.children).call(n,(a=>{if(a.children){var n,i=(0,g.default)(n=a.children).call(n,(t=>this.checkPath(t.path,e)));i&&(r=!0,l=[t,a,i])}}))}})),l})),(0,w.default)(this,"clearAllNotice",(()=>{for(var e=document.getElementsByClassName("ant-notification-notice");e.length>0;)e[0].parentNode.removeChild(e[0]);this.rootStore.clearNoticeCount()})),(0,w.default)(this,"renderHeader",(()=>_.default.createElement(E.default,(0,x.default)({},this.props,{isAdminPage:this.isAdminPage,isUserCenterPage:this.isUserCenterPage})))),this.state={collapsed:!1},this.init()}componentWillUnmount(){this.autoReaction()}get isAdminPage(){var{pathname:e}=this.props.location;return(0,S.isAdminPage)(e)}get isUserCenterPage(){var{pathname:e}=this.props.location;return(0,S.isUserCenterPage)(e)}get rootStore(){return this.props.rootStore}get noticeCount(){return this.rootStore.noticeCount}get user(){return(0,M.toJS)(this.rootStore.user)||null}get hasAdminRole(){return this.user&&this.rootStore.hasAdminRole}get hasAdminPageRole(){return this.user&&this.rootStore.hasAdminPageRole}get originMenu(){return this.isUserCenterPage?(0,D.default)(N.default.t):this.isAdminPage?(0,j.default)(N.default.t):(0,A.default)(N.default.t)}get menu(){var e=this.filterMenuByHidden(this.originMenu),t=this.getMenuAllowed(e);return(0,h.default)(t).call(t,(e=>{var{hasChildren:t=!0,children:a}=e;return!t||t&&a.length}))}get menuAll(){return this.getMenuAllowed(this.originMenu)}getRouteName(e){return this.isAdminPage?"".concat(e,"Admin"):e}getRoutePath(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRouteName(e);return(0,T.getPath)({key:n,params:t,query:a})}updateMenuItemByAllowed(e){var t,{policy:a,endpoints:n,children:r=[]}=e,l=(0,b.default)(e,["policy","endpoints","children"]);if(a&&!(0,I.default)({policy:a}))return null;if(n&&!this.checkItemEndpoints(n))return null;if(0===r.length)return e;var i=(0,h.default)(t=(0,v.default)(r).call(r,(e=>this.updateMenuItemByAllowed(e)))).call(t,(e=>!!e));return U(U({},l),{},{children:i})}init(){this.isAdminPage&&!this.hasAdminPageRole&&(window.location.href="/base/overview"),this.routes=this.props.route.routes,(0,T.setRouteMap)(this.menu)}renderNotice(){return this.noticeCount<3?null:_.default.createElement("div",{className:O.default.notice,onClick:this.clearAllNotice},_.default.createElement(y.default,null),_.default.createElement("span",{style:{marginLeft:8,fontSize:12}},t("Close all notifications.")))}render(){var{collapsed:e}=this.state,{pathname:t}=this.props.location,a=this.getCurrentMenu(t);return _.default.createElement("div",{className:O.default["base-layout"]},this.renderNotice(),_.default.createElement(F,{className:e?O.default["header-collapsed"]:O.default.header},this.renderHeader()),_.default.createElement(L.default,{pathname:t,isAdminPage:this.isAdminPage,menu:this.menu,menuAll:this.menuAll,currentRoutes:a,onCollapseChange:this.onCollapseChange}),_.default.createElement(P.default,(0,x.default)({},this.props,this.state,{currentRoutes:a,isAdminPage:this.isAdminPage})))}}a.BaseLayout=V;var B=(0,C.inject)("rootStore")((0,C.observer)(V));a.default=B},1716:function(e,t,a){"use strict";var n=a(19),r=a(21);n(t,"__esModule",{value:!0}),t.default=function(e){var{isAdminPage:t=!1}=e;return l.default.createElement("div",{className:u.default.header},!t&&l.default.createElement(o.default,null),l.default.createElement(i.default,e))};var l=r(a(0)),i=r(a(1717)),o=r(a(1974)),u=r(a(1297))},1717:function(e,a,n){"use strict";var r=n(160),l=n(19),i=n(25),o=n(21);l(a,"__esModule",{value:!0}),a.default=a.GlobalHeaderRight=void 0,n(1198);var u=o(n(1199));n(1196);var s=o(n(1197));n(333);var d=o(n(332)),c=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=m(t);if(a&&a.has(e))return a.get(e);var n={},r=l&&i;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=r?i(e,o):null;u&&(u.get||u.set)?l(n,o,u):n[o]=e[o]}n.default=e,a&&a.set(e,n);return n}(n(0)),f=n(406),p=(n(173),o(n(1718))),h=o(n(1297));function m(e){if("function"!=typeof r)return null;var t=new r,a=new r;return(m=function(e){return e?a:t})(e)}class g extends c.Component{get isAdminPage(){var{isAdminPage:e=!1}=this.props;return e}get isUserCenterPage(){var{isUserCenterPage:e=!1}=this.props;return e}renderConsole(){return this.isAdminPage||this.isUserCenterPage?c.default.createElement(d.default,{type:"link",href:"/base/overview",className:h.default["single-link"]},t("Console")):null}renderAdministrator(){var{rootStore:{hasAdminPageRole:e=!1}={}}=this.props;return!e||this.isAdminPage?null:c.default.createElement(d.default,{type:"link",href:"/base/overview-admin",className:h.default["single-link"]},t("Administrator"))}renderExtra(){return null}renderExtraLink(){return null}render(){return c.default.createElement("div",{className:h.default.right},c.default.createElement(u.default,{justify:"space-between",align:"middle",gutter:10},c.default.createElement(s.default,null,this.renderExtraLink(),this.renderConsole(),this.renderAdministrator()),this.renderExtra(),c.default.createElement(s.default,null,c.default.createElement(p.default,{menu:!0}))))}}a.GlobalHeaderRight=g;var v=(0,f.inject)("rootStore")((0,f.observer)(g));a.default=v},1718:function(e,a,n){"use strict";var r=n(19),l=n(21);r(a,"__esModule",{value:!0}),a.default=a.AvatarDropdown=void 0;var i=l(n(81)),o=l(n(1293));n(1227);var u=l(n(418));n(333);var s=l(n(332));n(337);var d=l(n(338)),c=l(n(36)),f=l(n(0)),p=n(406),h=(n(173),n(555),l(n(234))),m=l(n(1249)),g=l(n(1729)),v=l(n(1955)),y=l(n(1971)),b=l(n(1973)),x=l(n(1297)),{getLocale:w,setLocale:k}=h.default;class _ extends f.default.Component{constructor(){super(...arguments),(0,c.default)(this,"changeLang",(e=>k(e,!0))),(0,c.default)(this,"onMenuClick",(e=>{var{key:t}=e})),(0,c.default)(this,"handleLogout",(e=>{e&&e.preventDefault&&e.preventDefault(),this.rootStore.logout()})),(0,c.default)(this,"afterChangePassword",((e,t)=>{e&&this.rootStore.logout()}))}get rootStore(){return this.props.rootStore||{}}get user(){var{user:e}=this.rootStore;return e||null}render(){var e,a,n,r;if(!this.user)return f.default.createElement(d.default,{size:"small",style:{marginLeft:8,marginRight:8}});var{name:l}=this.user.user,c=w(),p=f.default.createElement(u.default,{className:x.default.menu,onClick:this.onMenuClick},f.default.createElement(u.default.Item,{key:"user",className:(0,i.default)(e=(0,i.default)(a="".concat(x.default["no-hover"]," ")).call(a,x.default["name-item"]," ")).call(e,x.default["menu-item"])},f.default.createElement("span",null,f.default.createElement("span",{className:x.default["user-label"]},t("User")),f.default.createElement("span",null,l)),f.default.createElement(s.default,{type:"link",onClick:this.handleLogout,className:(0,i.default)(n="".concat(x.default.logout," ")).call(n,x.default["no-padding-top"])},t("Sign Out"))),f.default.createElement(u.default.Divider,null),f.default.createElement(u.default.Item,{key:"language",className:(0,i.default)(r="".concat(x.default["no-hover"]," ")).call(r,x.default["menu-item"])},f.default.createElement("span",null,t("Switch Language")),f.default.createElement("span",{style:{float:"right"}},f.default.createElement(s.default,{className:x.default["no-padding-top"],type:"link",disabled:"zh-cn"===c,onClick:()=>{this.changeLang("zh-cn")}},"CN"),f.default.createElement("span",null,"/"),f.default.createElement(s.default,{type:"link",disabled:"en"===c,onClick:()=>{this.changeLang("en")}},"EN"))),f.default.createElement(u.default.Item,{key:"password",className:x.default["menu-item"]},f.default.createElement(m.default,{actions:{moreActions:[{action:g.default}]},onFinishAction:this.afterChangePassword,item:this.user&&this.user.user,isWide:!0})),f.default.createElement(u.default.Item,{key:"token",className:x.default["menu-item"]},f.default.createElement(m.default,{actions:{moreActions:[{action:v.default}]},isWide:!0})),f.default.createElement(u.default.Item,{key:"openrc",className:x.default["menu-item"]},f.default.createElement(m.default,{actions:{moreActions:[{action:y.default}]},isWide:!0})));return f.default.createElement(b.default,{overlay:p},f.default.createElement("div",{className:"".concat(x.default.action)},f.default.createElement(s.default,{shape:"circle",icon:f.default.createElement(o.default,null),className:x.default.avatar,href:"/user/center"})))}}a.AvatarDropdown=_;var C=(0,p.inject)("rootStore")((0,p.observer)(_));a.default=C},1723:function(e,t,a){var n=a(1724);"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:undefined,insertInto:void 0};a(75)(n,r);n.locals&&(e.exports=n.locals)},1724:function(e,t,a){(t=e.exports=a(74)(!1)).push([e.i,"/* init */\n/* specific color */\n/* border */\n/* background */\n/* shadow */\n/* font */\n/* 中号字体 */\n/* animation */\n/* size */\n/* sider */\n.index__confirm-modal--3q6IU .ant-modal-confirm-body > .anticon {\n margin-right: 20px;\n font-size: 18px;\n}\n.index__confirm--3w0Sc {\n color: #fedf40 !important;\n}\n.index__error--2QqQF {\n color: #EB354D !important;\n}\n.index__success--3lQal {\n color: #57E39B !important;\n}\n.index__warn--ZLd6Q {\n color: #fedf40 !important;\n}\n",""]),t.locals={"confirm-modal":"index__confirm-modal--3q6IU",confirm:"index__confirm--3w0Sc",error:"index__error--2QqQF",success:"index__success--3lQal",warn:"index__warn--ZLd6Q"}},1725:function(e,t,a){var n=a(1726);"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:undefined,insertInto:void 0};a(75)(n,r);n.locals&&(e.exports=n.locals)},1726:function(e,t,a){(t=e.exports=a(74)(!1)).push([e.i,".index__modal-action--t2EeP .ant-modal-body {\n padding: 0 0 16px;\n}\n",""]),t.locals={"modal-action":"index__modal-action--t2EeP"}},1727:function(e,t,a){var n=a(1728);"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:undefined,insertInto:void 0};a(75)(n,r);n.locals&&(e.exports=n.locals)},1728:function(e,t,a){(t=e.exports=a(74)(!1)).push([e.i,".index__first-action--2OPwj {\n padding: 0;\n text-align: left;\n}\n.index__first-action--2OPwj span {\n display: block;\n max-width: 48px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n.index__more-action--3nzAh {\n padding: 0;\n}\n.index__action-sub-menu--m8uMB {\n padding: 0;\n}\n.index__action-sub-menu--m8uMB .ant-dropdown-menu-submenu-popup ul {\n margin-right: 0 !important;\n margin-left: 0 !important;\n}\n.index__action-sub-menu--m8uMB .ant-dropdown-menu-item,\n.index__action-sub-menu--m8uMB .ant-dropdown-menu-submenu-title {\n padding: 0 12px;\n}\n.index__more-action-btn--1CkV8 {\n width: 100%;\n text-align: left;\n}\n.index__single-more-action--1AkZ2 .ant-btn-link {\n width: auto;\n}\n",""]),t.locals={"first-action":"index__first-action--2OPwj","more-action":"index__more-action--3nzAh","action-sub-menu":"index__action-sub-menu--m8uMB","more-action-btn":"index__more-action-btn--1CkV8","single-more-action":"index__single-more-action--1AkZ2"}},1729:function(e,a,n){"use strict";var r=n(19),l=n(21);r(a,"__esModule",{value:!0}),a.default=a.Password=void 0;var i=l(n(65)),o=l(n(36)),u=n(406),s=n(1193),d=n(556),c=l(n(1207));class f extends s.ModalAction{constructor(){super(...arguments),(0,o.default)(this,"onSubmit",(e=>{var{id:t}=this.item,{password:a,oldPassword:n}=e;return c.default.changePasswordUser({id:t,password:a,original_password:n})}))}get name(){return t("Update user password")}get defaultValue(){var{name:e}=this.item;return{name:e,password:"",confirmPassword:""}}get formItems(){return[{name:"name",label:t("User"),type:"label",iconType:"user"},{name:"oldPassword",label:t("Original Password"),type:"input-password",required:!0},{name:"password",label:t("Password"),type:"input-password",required:!0,otherRule:(0,d.getPasswordOtherRule)("password","user")},{name:"confirmPassword",label:t("Confirm Password"),dependencies:["password"],type:"input-password",required:!0,otherRule:(0,d.getPasswordOtherRule)("confirmPassword","user")}]}}a.Password=f,(0,o.default)(f,"id","update-user-password"),(0,o.default)(f,"title",t("Update User Password")),(0,o.default)(f,"policy",[]),(0,o.default)(f,"allowed",(()=>i.default.resolve(!0)));var p=(0,u.inject)("rootStore")((0,u.observer)(f));a.default=p},1730:function(e,t,a){"use strict";var n=a(19),r=a(21);n(t,"__esModule",{value:!0}),t.default=void 0;var l=r(a(65)),i=r(a(36)),o=r(a(1201)),u=a(558);class s extends o.default{static allowed(){return l.default.resolve()}get isAdminPage(){return this.props.isAdminPage||!1}getRouteName(e){return this.isAdminPage?"".concat(e,"Admin"):e}getRoutePath(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRouteName(e);return(0,u.getPath)({key:n,params:t,query:a})}}t.default=s,(0,i.default)(s,"id","formAction"),(0,i.default)(s,"actionType","link"),(0,i.default)(s,"title","form"),(0,i.default)(s,"buttonType","primary"),(0,i.default)(s,"isDanger",!1),(0,i.default)(s,"path","/"),(0,i.default)(s,"policy",""),(0,i.default)(s,"aliasPolicy","")},1741:function(e,a,n){"use strict";var r=n(33),l=n(44),i=n(32),o=n(25),u=n(27),s=n(45),d=n(46),c=n(19),f=n(21);c(a,"__esModule",{value:!0}),a.default=a.type2component=void 0;var p=f(n(65)),h=f(n(81)),m=f(n(198)),g=f(n(409));n(1216);var v=f(n(1217));n(411);var y=f(n(227)),b=f(n(1248)),x=f(n(62)),w=f(n(36));n(1319);var k=f(n(1320));n(1756);var _=f(n(1759));n(1448);var C=f(n(1449));n(1239);var M=f(n(1240));n(1250);var N=f(n(1251));n(1205);var S=f(n(1206)),I=f(n(199)),E=f(n(0)),T=f(n(16)),j=(n(173),n(555),f(n(1370))),A=f(n(1767)),D=f(n(1780)),P=f(n(1453)),L=f(n(1783)),O=f(n(1321)),z=f(n(1468)),R=f(n(1806)),U=f(n(1809)),F=f(n(1824)),V=f(n(1829)),B=f(n(1383)),K=f(n(1832)),Y=f(n(1835)),Q=f(n(1844)),G=f(n(1845)),H=f(n(1846)),W=f(n(1851)),q=f(n(1854)),$=f(n(1857)),Z=f(n(1858)),J=f(n(1490)),X=f(n(1870)),ee=f(n(1871)),te=f(n(1872)),ae=f(n(1875)),ne=f(n(1381)),re=f(n(1876)),le=f(n(1896)),ie=f(n(1900)),oe=f(n(1384)),ue=f(n(1901)),se=f(n(1906)),de=f(n(1907));function ce(e,t){var a=r(e);if(l){var n=l(e);t&&(n=i(n).call(n,(function(t){return o(e,t).enumerable}))),a.push.apply(a,n)}return a}function fe(e){for(var t=1;t<arguments.length;t++){var a,n=null!=arguments[t]?arguments[t]:{};if(t%2)u(a=ce(Object(n),!0)).call(a,(function(t){(0,w.default)(e,t,n[t])}));else if(s)d(e,s(n));else{var r;u(r=ce(Object(n))).call(r,(function(t){c(e,t,o(n,t))}))}}return e}var pe={label:L.default,input:S.default,select:P.default,divider:N.default,"short-divider":N.default,radio:K.default,"select-table":O.default,"input-number":M.default,"input-int":ne.default,"instance-volume":z.default,"input-password":S.default.Password,"input-name":Q.default,"port-range":G.default,more:R.default,textarea:S.default.TextArea,upload:U.default,"add-select":F.default,"ip-input":V.default,"network-select":B.default,"member-allocator":A.default,descriptions:Y.default,slider:C.default,"slider-input":H.default,title:W.default,switch:q.default,check:$.default,transfer:Z.default,"time-picker":_.default,"date-picker":k.default,NUMA:J.default,"check-group":X.default,"textarea-from-file":ee.default,"range-picker":k.default.RangePicker,"ip-distributor":te.default,"mac-address":ae.default,"network-select-table":le.default,"volume-select-table":ie.default,"tab-select-table":oe.default,"metadata-transfer":re.default,aceEditor:j.default,"input-json":D.default,"tree-select":ue.default,"select-input":se.default,phone:de.default};a.type2component=pe;class he extends E.default.Component{constructor(){super(...arguments),(0,w.default)(this,"getSelectTableValidator",((e,a)=>{var{selectedRowKeys:n=[]}=a||{};return 0===n.length?p.default.reject(new Error(e.placeholder||t("Please select {label}!",{label:e.label}))):p.default.resolve()})),(0,w.default)(this,"getDescriptionValidator",((e,a)=>{var n;return a&&a.length>255?p.default.reject(new Error((0,h.default)(n="".concat(t("Invalid: "))).call(n,t("The description can be up to 255 characters long.")))):p.default.resolve()}))}getComponentProps(e){switch(e){case"label":var{content:t,icon:a,iconType:n,showLoading:r}=this.props;return{content:t,icon:a,iconType:n,showLoading:r};case"divider":return{className:this.props.className};case"select":var l=this.props,{options:i,placeholder:o,mode:u,onChange:s,isWrappedValue:d,tip:c,disabled:f,showSearch:p,optionFilterProp:h="label",checkOptions:m,checkBoxInfo:g,allowClear:v,required:y}=l;return fe({options:i,placeholder:o,mode:u,onChange:s,isWrappedValue:d,tip:c,disabled:f,showSearch:p,optionFilterProp:h,checkOptions:m,checkBoxInfo:g,allowClear:y?v||!1:v},(0,x.default)(l,["options","placeholder","mode","onChange","isWrappedValue","tip","disabled","showSearch","optionFilterProp","checkOptions","checkBoxInfo","allowClear","required"]));default:var b=this.props,{validator:w}=b;return fe({},(0,x.default)(b,["validator"]))}}getFormItemProps(){var{name:e,label:t,type:a,help:n,extra:r,className:l,style:i,hidden:o,labelCol:u,wrapperCol:s,tip:d,dependencies:c}=this.props,f={name:e,label:this.renderLabel(t,d),help:n,extra:r,className:l,style:i,hidden:o,labelCol:u,wrapperCol:s,rules:this.getRules()};switch(c&&c.length>0&&(f.dependencies=c),a){case"title":return fe(fe({},f),{},{label:"",labelCol:null,wrapperCol:{xs:{span:24},sm:{span:24}}});case"label":return fe(fe({},f),{},{className:"form-item-text"});case"select-table":case"network-select-table":case"tab-select-table":case"instance-volume":case"network-select":case"add-select":case"descriptions":case"short-divider":case"transfer":case"NUMA":case"check-group":return fe(fe({},f),{},{wrapperCol:s||{xs:{span:24},sm:{span:t?18:24}}});default:return f}}getRules(){var{required:e,rules:a,validator:n,type:r="",otherRule:l,name:i,hidden:o,label:u,placeholder:s,hasRequiredCheck:d=!0}=this.props;if(o)return[];if(a)return a;var c=[],f={},p={};return e&&(r&&(0,m.default)(r).call(r,"select-table")?(p.required=!0,p.validator=(e,t)=>this.getSelectTableValidator(fe(fe({},e),this.props),t)):r&&(0,m.default)(r).call(r,"select")?(p.required=!0,p.message=s||t("Please select {label}!",{label:u})):d?(p.required=!0,p.message=s||t("Please input {label}!",{label:u})):n&&(f.required=e)),(0,I.default)(p)||c.push(p),n?f.validator=n:r&&(0,m.default)(r).call(r,"textarea")&&"description"===i&&(f.validator=this.getDescriptionValidator),(0,I.default)(f)||c.push(f),l&&c.push(l),c}getComponent(e){return pe[e]}renderTip(e){return e?E.default.createElement(y.default,{title:e},E.default.createElement(b.default,null)):null}renderLabel(e,t){return t?E.default.createElement("span",null,e," ",this.renderTip(t)):e}render(){var{component:e,type:t}=this.props,a=this.getFormItemProps();if(e)return E.default.createElement(v.default.Item,a,e);var n=this.getComponent(t),r=this.getComponentProps(t);if("divider"===t)return E.default.createElement(N.default,{className:"form-item-divider"});if("short-divider"===t)return E.default.createElement(v.default.Item,(0,g.default)({},a,{label:" ",style:{marginBottom:0}}),E.default.createElement(N.default,null));if(n){if(n.isFormItem)return E.default.createElement(n,{formItemProps:a,componentProps:r});var l=E.default.createElement(n,r);return E.default.createElement(v.default.Item,a,l)}var{content:i}=this.props;return i?E.default.createElement(v.default.Item,a,E.default.createElement("span",r,i)):null}}a.default=he,(0,w.default)(he,"propTypes",{component:T.default.object,type:T.default.string,content:T.default.any,className:T.default.string,name:T.default.string,label:T.default.string,rules:T.default.array,required:T.default.bool,validator:T.default.func,options:T.default.array,placeholder:T.default.string,mode:T.default.string,onChange:T.default.func,dependencies:T.default.array,formref:T.default.object,hasRequiredCheck:T.default.bool}),(0,w.default)(he,"defaultProps",{required:!1,dependencies:[]})},1767:function(e,a,n){"use strict";var r=n(160),l=n(19),i=n(25),o=n(21);l(a,"__esModule",{value:!0}),a.default=void 0;var u=o(n(1294)),s=o(n(1380)),d=o(n(409));n(1198);var c=o(n(1199));n(1196);var f=o(n(1197));n(1216);var p=o(n(1217));n(333);var h=o(n(332));n(560);var m=o(n(412)),g=o(n(57)),v=o(n(226)),y=o(n(90)),b=o(n(32)),x=o(n(65)),w=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=I(t);if(a&&a.has(e))return a.get(e);var n={},r=l&&i;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=r?i(e,o):null;u&&(u.get||u.set)?l(n,o,u):n[o]=e[o]}n.default=e,a&&a.set(e,n);return n}(n(0)),k=(n(173),n(555),o(n(1321))),_=n(556),C=n(161),M=n(454),N=n(558),S=o(n(1778));function I(e){if("function"!=typeof r)return null;var t=new r,a=new r;return(I=function(e){return e?a:t})(e)}var{isIPv4:E,isIpv6:T}=_.ipValidate,j=e=>{var{componentProps:a,formItemProps:n}=e,{maxNumber:r=10,ports:l,isLoading:i,members:o=[],lbSubnetId:_}=a,{name:I,onChange:j}=n,[A,D]=(0,w.useState)(0);var P=()=>{};return w.default.createElement("div",{style:{padding:20}},w.default.createElement(p.default.Item,{label:t("select an existing port"),wrapperCol:{xs:18,xm:12},extra:t("If you choose a port which subnet is different from the subnet of LB, please ensure connectivity between the two.")},w.default.createElement(k.default,{maxSelectedCount:-1,isLoading:i,data:l,columns:[{title:t("ID/Name"),dataIndex:"name",render:(e,t)=>w.default.createElement("div",null,w.default.createElement("div",null,function(e,t){var{pathname:a}=window.location,n=(0,C.isAdminPage)(a)?"".concat(e,"Admin"):e,{id:r}=t;return(0,N.getLinkRender)({key:n,params:{id:r},value:r})}("portDetail",t)),w.default.createElement("div",null,e||"-"))},{title:t("Binding Instance"),dataIndex:"server_name"},{title:t("IP"),dataIndex:"fixed_ips",render:(e,t)=>{if(0===e.length)return"-";var a=(0,g.default)(e).call(e,(e=>({label:e.ip_address,value:e.ip_address,subnet_id:e.subnet_id})));return t.currentOption=a[0].value,t.currentSubnetId=a[0].subnet_id,w.default.createElement(m.default,{style:{minWidth:200},options:a,defaultValue:a[0].value,onChange:(e,a)=>{t.currentSubnetId=a.subnet_id,t.currentOption=e}})},sorter:(e,t)=>{var a=e.fixed_ips[0].ip_address,n=t.fixed_ips[0].ip_address,r=(M.Address4.isValid(a)?new M.Address4(a):new M.Address6(a)).bigInteger(),l=(M.Address4.isValid(n)?new M.Address4(n):new M.Address6(n)).bigInteger();return r.compareTo(l)}},{title:t("Action"),key:"operation",render:(e,a)=>w.default.createElement(h.default,{disabled:!a.currentOption,onClick:()=>{P({ip_address:{ip:a.currentOption,protocol_port:void 0,weight:1,name:a.server_name,subnet_id:a.currentSubnetId},canEdit:!1})}},t("Add Member"))}],filterParams:[{label:t("ID"),name:"id"},{label:t("Name"),name:"name"},{label:t("Binding Instance"),name:"server_name"},{label:t("IP"),name:"fixed_ips",filterFunc:(e,t)=>(0,v.default)(e).call(e,(e=>{var a;return(0,y.default)(a=e.ip_address).call(a,t)>-1}))},{label:t("Same subnet with LB"),name:"origin_data",options:[{label:t("True"),key:!0}],filterFunc:(e,t)=>{var a;return!t||(0,v.default)(a=e.fixed_ips).call(a,(e=>e.subnet_id===_))}}]})),w.default.createElement(p.default.Item,(0,d.default)({},n,{label:t("Selected Members")}),w.default.createElement(p.default.List,{name:I},((e,a)=>{var{add:n,remove:r}=a;return P=n,D(e.length),0===e.length?t("Not yet selected"):w.default.createElement(w.default.Fragment,null,e.length>0&&w.default.createElement(c.default,{gutter:[16,16]},w.default.createElement(f.default,{span:22},w.default.createElement(c.default,null,w.default.createElement(f.default,{span:12},w.default.createElement("div",{style:{with:"100%",paddingLeft:8,paddingRight:8}},t("IP Address"))),w.default.createElement(f.default,{span:6},w.default.createElement("div",{style:{with:"100%",paddingLeft:8,paddingRight:8}},t("Port"))),w.default.createElement(f.default,{span:6},w.default.createElement("div",{style:{with:"100%",paddingLeft:8,paddingRight:8}},t("Weights")))))),(0,g.default)(e).call(e,(e=>w.default.createElement(c.default,{key:e.key,gutter:[16,16]},w.default.createElement(f.default,{span:22},w.default.createElement(p.default.Item,(0,d.default)({},e,{style:{width:"98%"},validateTrigger:["onChange","onBlur"],rules:[{required:!0,validator:(e,a)=>{var n=(0,b.default)(o).call(o,(e=>e.address===a.ip_address.ip&&e.protocol_port===a.ip_address.protocol_port));return a&&a.ip_address.ip?E(a.ip_address.ip)||T(a.ip_address.ip)?a.ip_address.ip&&a.ip_address.protocol_port?a.ip_address.weight?n[0]?x.default.reject(new Error(t("Invalid IP Address and Port"))):x.default.resolve(!0):x.default.reject(new Error(t("Missing Weight"))):x.default.reject(new Error(t("Missing Port"))):x.default.reject(new Error(t("Invalid IP Address"))):x.default.reject(new Error(t("Missing IP Address")))}}]}),w.default.createElement(S.default,{field:e,onChange:e=>{return t=e,void(j&&j(t));var t}}))),w.default.createElement(f.default,{span:2},w.default.createElement(s.default,{onClick:()=>r(e.name)}))))))}))),A<r&&w.default.createElement(p.default.Item,{label:t("Add External Members"),extra:t("The ip of external members can be any, including the public network ip.")},w.default.createElement(h.default,{type:"dashed",onClick:()=>{P()},block:!0,icon:w.default.createElement(u.default,null)},t("Add External Members"))))};j.isFormItem=!0;var A=j;a.default=A},1770:function(e,t,a){var n=a(1771);"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:undefined,insertInto:void 0};a(75)(n,r);n.locals&&(e.exports=n.locals)},1771:function(e,t,a){(t=e.exports=a(74)(!1)).push([e.i,"/* init */\n/* specific color */\n/* border */\n/* background */\n/* shadow */\n/* font */\n/* 中号字体 */\n/* animation */\n/* size */\n/* sider */\n.index__magic-input-outer-wrapper--2caFk {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n.index__magic-input-wrapper--3jKxQ {\n position: relative;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n width: 100%;\n min-width: 200px;\n padding: 3px 0 3px 8px;\n background-color: #fff;\n border: 1px solid #d9d9d9;\n border-radius: 4px;\n}\n.index__magic-input-wrapper--3jKxQ .ant-tag {\n height: 24px;\n margin-right: 4px;\n padding: 0 4px;\n color: #fff;\n font-size: 10px;\n line-height: 24px;\n background-color: #0068FF;\n border: none;\n}\n.index__magic-input-wrapper--3jKxQ .ant-tag .anticon-close {\n margin-left: 16px;\n color: #fff;\n}\n.index__magic-input-wrapper--3jKxQ .ant-btn {\n margin-top: -3px;\n margin-right: 0;\n}\n.index__magic-input-wrapper--3jKxQ .ant-btn-icon-only {\n background-color: #fff;\n}\n.index__magic-input-wrapper-active--225GJ {\n border-color: #0068FF;\n -webkit-box-shadow: 0 0 0 2px rgba(0, 104, 255, 0.2);\n box-shadow: 0 0 0 2px rgba(0, 104, 255, 0.2);\n}\n.index__input-wrapper--1osyl {\n position: relative;\n -webkit-box-flex: 1;\n -ms-flex-positive: 1;\n flex-grow: 1;\n height: 24px;\n line-height: 24px;\n}\n.index__input-wrapper--1osyl .ant-input {\n padding: 0;\n background: none;\n border: none;\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n.index__input-wrapper--1osyl .ant-input:focus {\n border: none;\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n.index__input-wrapper--1osyl input::-webkit-input-placeholder {\n font-size: 10px;\n}\n.index__input-wrapper--1osyl input::-moz-placeholder {\n font-size: 10px;\n}\n.index__input-wrapper--1osyl input:-ms-input-placeholder {\n font-size: 10px;\n}\n.index__input-wrapper--1osyl input::-ms-input-placeholder {\n font-size: 10px;\n}\n.index__input-wrapper--1osyl input::placeholder {\n font-size: 10px;\n}\n.index__input-wrapper--1osyl .ant-menu-vertical > .ant-menu-item {\n height: 26px;\n line-height: 26px;\n}\n.index__input-wrapper--1osyl .ant-menu-vertical .ant-menu-item {\n margin-top: 0;\n margin-bottom: 0;\n font-size: 10px;\n}\n.index__menu--2CcQt {\n -webkit-box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.09) !important;\n box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.09) !important;\n}\n.index__menu--2CcQt,\n.index__option-menu--1Wni_ {\n position: absolute;\n top: 34px;\n z-index: 100;\n max-height: 310px;\n overflow-x: hidden;\n overflow-y: auto;\n border-radius: 4px;\n}\n.index__key--1C5xL {\n font-size: 10px;\n line-height: 24px;\n}\n.index__key--1C5xL .ant-divider,\n.index__key--1C5xL .ant-divider-vertical {\n margin-right: 4px;\n margin-left: 4px;\n}\n.ant-form-item-has-error .magic-input-wrapper .ant-input,\n.ant-form-item-has-error .magic-input-wrapper .ant-input:focus,\n.ant-form-item-has-error .magic-input-wrapper .ant-input:not([disabled]):hover {\n background: none;\n border: none;\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n.magic-input-wrapper .ant-tag {\n display: inline-block;\n height: 24px;\n margin: 0 5px 0 0;\n line-height: 24px;\n}\n.index__search-icon--1c2YI {\n position: absolute;\n top: 0;\n right: 8px;\n color: rgba(0, 0, 0, 0.65);\n font-size: 12px;\n line-height: 32px;\n}\n.index__close-btn-col--1qQC_ {\n height: 24px;\n line-height: 24px;\n}\n.index__close-btn-col--1qQC_ .index__close-btn--1gDiH {\n height: 24px !important;\n padding: 0;\n border: none;\n}\n.index__close-option-btn--2fpQF {\n top: 3px;\n height: 24px !important;\n}\n.index__magic-input-checks--3sSga {\n min-width: 120px;\n margin-left: 8px;\n line-height: 32px;\n}\n",""]),t.locals={"magic-input-outer-wrapper":"index__magic-input-outer-wrapper--2caFk","magic-input-wrapper":"index__magic-input-wrapper--3jKxQ","magic-input-wrapper-active":"index__magic-input-wrapper-active--225GJ","input-wrapper":"index__input-wrapper--1osyl",menu:"index__menu--2CcQt","option-menu":"index__option-menu--1Wni_",key:"index__key--1C5xL","search-icon":"index__search-icon--1c2YI","close-btn-col":"index__close-btn-col--1qQC_","close-btn":"index__close-btn--1gDiH","close-option-btn":"index__close-option-btn--2fpQF","magic-input-checks":"index__magic-input-checks--3sSga"}},1772:function(e,t,a){var n=a(1773);"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:undefined,insertInto:void 0};a(75)(n,r);n.locals&&(e.exports=n.locals)},1773:function(e,t,a){(t=e.exports=a(74)(!1)).push([e.i,"/* init */\n/* specific color */\n/* border */\n/* background */\n/* shadow */\n/* font */\n/* 中号字体 */\n/* animation */\n/* size */\n/* sider */\n.index__sl-simple-table--3t0n0 .ant-table-content .ant-table-thead tr .ant-table-cell {\n padding: 8px 8px 8px 0;\n}\n.index__sl-simple-table--3t0n0 .ant-table-column-sorters {\n padding: 8px 0;\n}\n.index__sl-simple-table--3t0n0 .ant-table-tbody > tr > td {\n padding: 8px 8px 8px 0;\n word-break: break-all;\n}\n",""]),t.locals={"sl-simple-table":"index__sl-simple-table--3t0n0"}},1774:function(e,t,a){var n=a(1775);"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:undefined,insertInto:void 0};a(75)(n,r);n.locals&&(e.exports=n.locals)},1775:function(e,t,a){(t=e.exports=a(74)(!1)).push([e.i,".index__wrapper--W62k9 {\n height: 32px;\n text-align: right;\n}\n.index__inner--1yC3_ {\n display: inline-block;\n width: 300px;\n overflow: hidden;\n}\n",""]),t.locals={wrapper:"index__wrapper--W62k9",inner:"index__inner--1yC3_"}},1776:function(e,t,a){var n=a(1777);"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:undefined,insertInto:void 0};a(75)(n,r);n.locals&&(e.exports=n.locals)},1777:function(e,t,a){(t=e.exports=a(74)(!1)).push([e.i,"/* init */\n/* specific color */\n/* border */\n/* background */\n/* shadow */\n/* font */\n/* 中号字体 */\n/* animation */\n/* size */\n/* sider */\n.index__search-wrapper--2qjcr {\n margin-bottom: 16px;\n}\n.index__search-wrapper--2qjcr .ant-menu-root.ant-menu-vertical {\n -webkit-box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.2) !important;\n box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.2) !important;\n}\n.index__image-tabs--Y02Y0 {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n height: 52px;\n margin-bottom: 8px;\n}\n.index__image-tabs--Y02Y0 img {\n display: block;\n width: 20px;\n height: 20px;\n margin: 0 auto;\n}\n.index__image-tabs--Y02Y0 .ant-radio-button-wrapper {\n width: 70px;\n height: 50px;\n overflow: hidden;\n color: rgba(0, 0, 0, 0.65);\n text-align: center;\n border: none;\n}\n.index__image-tabs--Y02Y0 .ant-radio-button-wrapper:not(:first-child)::before {\n width: 0;\n}\n.index__image-tabs--Y02Y0 .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {\n color: #0068FF;\n font-weight: bold;\n}\n.index__image-tabs--Y02Y0 .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):focus-within {\n -webkit-box-shadow: none;\n box-shadow: none;\n}\n.index__image-tab--i9nyz {\n -webkit-box-flex: 1;\n -ms-flex: 1 auto;\n flex: 1 auto;\n}\n.index__image-tab-label--qzyGd {\n font-size: 10px;\n}\n.index__normal-tabs--1Lx8V {\n margin-bottom: 8px;\n}\n.index__pagination-footer--1r5HD .ant-select {\n width: unset;\n min-width: 80px;\n}\n.index__sl-select-table-backend--7Wvxx .ant-table-footer {\n padding: 8px 16px;\n background: #fff;\n}\n",""]),t.locals={"search-wrapper":"index__search-wrapper--2qjcr","image-tabs":"index__image-tabs--Y02Y0","image-tab":"index__image-tab--i9nyz","image-tab-label":"index__image-tab-label--qzyGd","normal-tabs":"index__normal-tabs--1Lx8V","pagination-footer":"index__pagination-footer--1r5HD","sl-select-table-backend":"index__sl-select-table-backend--7Wvxx"}},1778:function(e,t,a){"use strict";var n=a(33),r=a(44),l=a(32),i=a(25),o=a(27),u=a(45),s=a(46),d=a(19),c=a(160),f=a(21);d(t,"__esModule",{value:!0}),t.default=void 0;var p=f(a(36)),h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=g(t);if(a&&a.has(e))return a.get(e);var n={},r=d&&i;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var o=r?i(e,l):null;o&&(o.get||o.set)?d(n,l,o):n[l]=e[l]}n.default=e,a&&a.set(e,n);return n}(a(0)),m=f(a(1779));function g(e){if("function"!=typeof c)return null;var t=new c,a=new c;return(g=function(e){return e?a:t})(e)}function v(e,t){var a=n(e);if(r){var o=r(e);t&&(o=l(o).call(o,(function(t){return i(e,t).enumerable}))),a.push.apply(a,o)}return a}function y(e){for(var t=1;t<arguments.length;t++){var a,n=null!=arguments[t]?arguments[t]:{};if(t%2)o(a=v(Object(n),!0)).call(a,(function(t){(0,p.default)(e,t,n[t])}));else if(u)s(e,u(n));else{var r;o(r=v(Object(n))).call(r,(function(t){d(e,t,i(n,t))}))}}return e}var b=e=>{var{onChange:t,value:a}=e;a=a||{ip_address:{ip:void 0,protocol_port:void 0,weight:1,subnet_id:void 0},canEdit:!0};var[n,r]=(0,h.useState)(a.ip_address);return h.default.createElement(m.default,{onChange:e=>{var l,i;r(e),l={ip_address:e},i=y(y({},a),{},{ip_address:n},l),t&&t(i)},value:n,disabled:!a.canEdit})};t.default=b},1779:function(e,t,a){"use strict";var n=a(33),r=a(44),l=a(32),i=a(25),o=a(27),u=a(45),s=a(46),d=a(19),c=a(160),f=a(21);d(t,"__esModule",{value:!0}),t.default=void 0,a(1198);var p=f(a(1199));a(1239);var h=f(a(1240));a(1196);var m=f(a(1197));a(1205);var g=f(a(1206)),v=f(a(36)),y=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=b(t);if(a&&a.has(e))return a.get(e);var n={},r=d&&i;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var o=r?i(e,l):null;o&&(o.get||o.set)?d(n,l,o):n[l]=e[l]}n.default=e,a&&a.set(e,n);return n}(a(0));a(173);function b(e){if("function"!=typeof c)return null;var t=new c,a=new c;return(b=function(e){return e?a:t})(e)}function x(e,t){var a=n(e);if(r){var o=r(e);t&&(o=l(o).call(o,(function(t){return i(e,t).enumerable}))),a.push.apply(a,o)}return a}function w(e){for(var t=1;t<arguments.length;t++){var a,n=null!=arguments[t]?arguments[t]:{};if(t%2)o(a=x(Object(n),!0)).call(a,(function(t){(0,v.default)(e,t,n[t])}));else if(u)s(e,u(n));else{var r;o(r=x(Object(n))).call(r,(function(t){d(e,t,i(n,t))}))}}return e}t.default=e=>{var{value:t={},onChange:a,disabled:n}=e,[r,l]=(0,y.useState)(t.ip||void 0),[i,o]=(0,y.useState)(t.protocol_port||void 0),[u,s]=(0,y.useState)(t.weight),d=e=>{a(w(w({ip:r,protocol_port:i,weight:u},t),e))};return y.default.createElement(p.default,{gutter:[16]},y.default.createElement(m.default,{span:12},y.default.createElement(g.default,{style:{maxWidth:210},onChange:e=>{var{target:{value:t}}=e;l(t),d({ip:t})},value:r,disabled:n})),y.default.createElement(m.default,{span:6},y.default.createElement(h.default,{min:1,max:65535,style:{width:"100%"},value:i,onChange:e=>{e&&o(e),e&&d({protocol_port:e})}})),y.default.createElement(m.default,{span:6},y.default.createElement(h.default,{min:1,max:256,style:{width:"100%"},value:u,onChange:e=>{e&&s(e),e&&d({weight:e})}})))}},1780:function(e,t,a){"use strict";var n=a(33),r=a(44),l=a(32),i=a(25),o=a(27),u=a(45),s=a(46),d=a(19),c=a(160),f=a(21);d(t,"__esModule",{value:!0}),t.default=void 0,a(1216);var p=f(a(1217)),h=f(a(62)),m=f(a(36)),g=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=b(t);if(a&&a.has(e))return a.get(e);var n={},r=d&&i;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var o=r?i(e,l):null;o&&(o.get||o.set)?d(n,l,o):n[l]=e[l]}n.default=e,a&&a.set(e,n);return n}(a(0)),v=(a(173),a(556)),y=f(a(1370));function b(e){if("function"!=typeof c)return null;var t=new c,a=new c;return(b=function(e){return e?a:t})(e)}function x(e,t){var a=n(e);if(r){var o=r(e);t&&(o=l(o).call(o,(function(t){return i(e,t).enumerable}))),a.push.apply(a,o)}return a}function w(e){for(var t=1;t<arguments.length;t++){var a,n=null!=arguments[t]?arguments[t]:{};if(t%2)o(a=x(Object(n),!0)).call(a,(function(t){(0,m.default)(e,t,n[t])}));else if(u)s(e,u(n));else{var r;o(r=x(Object(n))).call(r,(function(t){d(e,t,i(n,t))}))}}return e}class k extends g.Component{getRules(e){var t={validator:v.jsonValidator};return e&&e.length>0&&(t=w(w({},t),e[0])),[t]}render(){var{componentProps:e,formItemProps:t}=this.props,{rules:a}=t,n=(0,h.default)(t,["rules"]),r=this.getRules(a),l=w(w({},n),{},{rules:r}),i=w(w({},e),{},{mode:"json",wrapEnabled:!0,tabSize:2,width:"100%",height:"200px",setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0}});return g.default.createElement(p.default.Item,l,g.default.createElement(y.default,i))}}t.default=k,(0,m.default)(k,"isFormItem",!0)},1781:function(e,t,a){var n=a(1782);"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:undefined,insertInto:void 0};a(75)(n,r);n.locals&&(e.exports=n.locals)},1782:function(e,t,a){(t=e.exports=a(74)(!1)).push([e.i,"/* init */\n/* specific color */\n/* border */\n/* background */\n/* shadow */\n/* font */\n/* 中号字体 */\n/* animation */\n/* size */\n/* sider */\n.index__checkbox--2qAZO {\n padding-top: 5px;\n padding-bottom: 5px;\n}\n",""]),t.locals={checkbox:"index__checkbox--2qAZO"}},1783:function(e,t,a){"use strict";var n=a(160),r=a(19),l=a(25),i=a(21);r(t,"__esModule",{value:!0}),t.default=void 0;var o=i(a(198)),u=i(a(599)),s=i(a(62)),d=i(a(36)),c=i(a(1454)),f=i(a(1455)),p=i(a(1456)),h=i(a(1457)),m=i(a(1458)),g=i(a(1459)),v=i(a(1460)),y=i(a(1461)),b=i(a(1462)),x=i(a(1463)),w=i(a(1293)),k=i(a(1464)),_=i(a(1465)),C=i(a(1466)),M=i(a(1290)),N=i(a(1467)),S=i(a(1322)),I=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=P(t);if(a&&a.has(e))return a.get(e);var n={},i=r&&l;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=i?l(e,o):null;u&&(u.get||u.set)?r(n,o,u):n[o]=e[o]}n.default=e,a&&a.set(e,n);return n}(a(0)),E=i(a(16)),T=i(a(1799)),j=i(a(1800)),A=i(a(1801)),D=(a(555),i(a(1802)));function P(e){if("function"!=typeof n)return null;var t=new n,a=new n;return(P=function(e){return e?a:t})(e)}var L=I.default.createElement("img",{src:T.default,alt:"image_icon",style:{width:"12px"}}),O=I.default.createElement("img",{src:j.default,alt:"security_icon",style:{width:"12px"}}),z=I.default.createElement("img",{src:A.default,alt:"lb_icon",style:{width:"12px"}}),R={instance:I.default.createElement(S.default,null),router:I.default.createElement(N.default,null),externalNetwork:I.default.createElement(M.default,null),network:I.default.createElement(M.default,null),firewall:I.default.createElement(C.default,null),volume:I.default.createElement(_.default,null),gateway:I.default.createElement(k.default,null),user:I.default.createElement(w.default,null),snapshot:I.default.createElement(x.default,null),backup:I.default.createElement(b.default,null),keypair:I.default.createElement(y.default,null),image:L,aggregate:I.default.createElement(v.default,null),metadata:I.default.createElement(g.default,null),flavor:I.default.createElement(m.default,null),host:I.default.createElement(h.default,null),security:O,lb:z,group:I.default.createElement(p.default,null),project:I.default.createElement(f.default,null),floatingIp:I.default.createElement(c.default,null)};class U extends I.Component{renderIcon(){var{icon:e,iconType:t}=this.props;if(t){var a=R[t]||null;return I.default.createElement("span",{className:D.default.icon},a)}return I.default.createElement("span",{className:D.default.icon},e||null)}render(){var e=this.props,{content:t,value:a,iconType:n,showLoading:r}=e,l=(0,s.default)(e,["content","value","iconType","showLoading"]),i=[void 0,null,""];return t||I.default.createElement("span",l,this.renderIcon(),r&&(0,o.default)(i).call(i,a)?I.default.createElement(u.default,null):a)}}t.default=U,(0,d.default)(U,"propTypes",{content:E.default.any,value:E.default.any,icon:E.default.node,iconType:E.default.string}),(0,d.default)(U,"defaultProps",{icon:null,iconType:"",content:"",value:null})},1799:function(e,t,a){"use strict";a.r(t),t.default="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyBjbGFzcz0iaWNvbiIgd2lkdGg9IjIwMHB4IiBoZWlnaHQ9IjIwMC4wMHB4IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iIzMzMzMzMyIgZD0iTTUxMiAxMDA3LjE2MWMtMjc2LjcwNyAwLTQ5NS4xNjEtMjI1LjczNS00OTUuMTYxLTQ5NS4xNjEgMC0yNzYuNzA3IDIyNS43MzUtNDk1LjE2MSA0OTUuMTYxLTQ5NS4xNjEgMjc2LjcwNyAwIDQ5NS4xNjEgMjI1LjczNSA0OTUuMTYxIDQ5NS4xNjEgMCAyNzYuNzA3LTIxOC40NTMgNDk1LjE2MS00OTUuMTYxIDQ5NS4xNjF6TTUxMiA3NS4wOTNjLTI0MC4yOTkgMC00MzYuOTA3IDE5Ni42MDgtNDM2LjkwNyA0MzYuOTA3czE5Ni42MDggNDM2LjkwNyA0MzYuOTA3IDQzNi45MDcgNDM2LjkwNy0xOTYuNjA4IDQzNi45MDctNDM2LjkwNy0xOTYuNjA4LTQzNi45MDctNDM2LjkwNy00MzYuOTA3eiIgIC8+PHBhdGggZmlsbD0iIzMzMzMzMyIgZD0iTTUxMiA2MjguNTA5Yy02NS41MzYgMC0xMTYuNTA5LTUwLjk3My0xMTYuNTA5LTExNi41MDlzNTAuOTczLTExNi41MDkgMTE2LjUwOS0xMTYuNTA5IDExNi41MDkgNTAuOTczIDExNi41MDkgMTE2LjUwOWMwIDY1LjUzNi01MC45NzMgMTE2LjUwOS0xMTYuNTA5IDExNi41MDl6TTUxMiA0NjEuMDI3Yy0yOS4xMjcgMC01MC45NzMgMjEuODQ1LTUwLjk3MyA1MC45NzNzMjEuODQ1IDUwLjk3MyA1MC45NzMgNTAuOTczYzI5LjEyNyAwIDUwLjk3My0yMS44NDUgNTAuOTczLTUwLjk3M3MtMjEuODQ1LTUwLjk3My01MC45NzMtNTAuOTczek0xNTUuMTkzIDU0OC40MDljLTcuMjgyIDAtMTQuNTYzLTcuMjgyLTE0LjU2My0xNC41NjN2LTIxLjg0NWMwLTcuMjgyIDcuMjgyLTE0LjU2MyAxNC41NjMtMTQuNTYzczE0LjU2MyA3LjI4MiAxNC41NjMgMTQuNTYzdjE0LjU2M2MwIDE0LjU2My03LjI4MiAyMS44NDUtMTQuNTYzIDIxLjg0NXpNMzM3LjIzNyA4MzkuNjhoLTcuMjgyYy0xMDEuOTQ1LTU4LjI1NC0xNjcuNDgxLTE1Mi45MTctMTgyLjA0NS0yNjIuMTQ0IDAtNy4yODIgNy4yODItMTQuNTYzIDE0LjU2My0xNC41NjNzMTQuNTYzIDcuMjgyIDE0LjU2MyAxNC41NjNjMTQuNTYzIDEwMS45NDUgODAuMDk5IDE4OS4zMjYgMTY3LjQ4MSAyNDAuMjk5IDcuMjgyIDcuMjgyIDcuMjgyIDE0LjU2MyA3LjI4MiAyMS44NDVoLTE0LjU2M3pNMzE1LjM5MiA3MTUuODljLTcuMjgyIDAtNy4yODIgMC0xNC41NjMtNy4yODItNDMuNjkxLTQzLjY5MS03Mi44MTgtMTA5LjIyNy03Mi44MTgtMTc0Ljc2MyAwLTcuMjgyIDcuMjgyLTE0LjU2MyAxNC41NjMtMTQuNTYzczE0LjU2MyA3LjI4MiAxNC41NjMgMTQuNTYzYzAgNTguMjU0IDIxLjg0NSAxMDkuMjI3IDY1LjUzNiAxNTIuOTE3IDcuMjgyIDcuMjgyIDcuMjgyIDE0LjU2MyAwIDIxLjg0NSAwIDcuMjgyLTcuMjgyIDcuMjgyLTcuMjgyIDcuMjgyek0zNjYuMzY1IDc1Mi4yOTloLTcuMjgyYy03LjI4MiAwLTcuMjgyLTcuMjgyLTE0LjU2My03LjI4Mi03LjI4Mi03LjI4Mi03LjI4Mi0xNC41NjMtNy4yODItMjEuODQ1IDcuMjgyLTcuMjgyIDE0LjU2My03LjI4MiAyMS44NDUtNy4yODIgNy4yODIgMCA3LjI4MiA3LjI4MiAxNC41NjMgNy4yODIgNy4yODIgNy4yODIgNy4yODIgMTQuNTYzIDcuMjgyIDIxLjg0NS03LjI4MiA3LjI4Mi0xNC41NjMgNy4yODItMTQuNTYzIDcuMjgyek0zODAuOTI4IDY2NC45MTdoLTcuMjgyYy0zNi40MDktMjEuODQ1LTY1LjUzNi02NS41MzYtNjUuNTM2LTEwOS4yMjcgMC03LjI4MiA3LjI4Mi0xNC41NjMgMTQuNTYzLTE0LjU2M3MxNC41NjMgNy4yODIgMTQuNTYzIDE0LjU2M2MwIDM2LjQwOSAxNC41NjMgNjUuNTM2IDUwLjk3MyA4MC4wOTkgNy4yODIgNy4yODIgNy4yODIgMTQuNTYzIDcuMjgyIDIxLjg0NSAwIDcuMjgyLTcuMjgyIDcuMjgyLTE0LjU2MyA3LjI4MnpNODYxLjUyNSA1NTUuNjkxYy03LjI4MiAwLTE0LjU2My03LjI4Mi0xNC41NjMtMTQuNTYzIDE0LjU2My0xMjMuNzktMzYuNDA5LTI0Ny41ODEtMTM4LjM1NC0zMjAuMzk4LTcuMjgyLTcuMjgyLTcuMjgyLTE0LjU2MyAwLTIxLjg0NSA3LjI4Mi03LjI4MiAxNC41NjMtNy4yODIgMjEuODQ1IDAgMTA5LjIyNyA4MC4wOTkgMTY3LjQ4MSAyMTEuMTcxIDE1Mi45MTcgMzQ5LjUyNS03LjI4MiAwLTE0LjU2MyA3LjI4Mi0yMS44NDUgNy4yODJ6IiAgLz48cGF0aCBmaWxsPSIjMzMzMzMzIiBkPSJNNzc0LjE0NCA1MjYuNTYzYy03LjI4MiAwLTE0LjU2My03LjI4Mi0xNC41NjMtMTQuNTYzIDcuMjgyLTgwLjA5OS0yMS44NDUtMTUyLjkxNy04Ny4zODEtMTk2LjYwOC03LjI4Mi03LjI4Mi03LjI4Mi0xNC41NjMgMC0yMS44NDVzMTQuNTYzLTcuMjgyIDIxLjg0NSAwYzcyLjgxOCA1MC45NzMgMTA5LjIyNyAxMzguMzU0IDEwMS45NDUgMjI1LjczNS03LjI4MiAwLTE0LjU2MyA3LjI4Mi0yMS44NDUgNy4yODJ6TTY5NC4wNDUgNDkwLjE1NWMtNy4yODIgMC0xNC41NjMtNy4yODItMTQuNTYzLTE0LjU2MyA3LjI4Mi0zNi40MDktNy4yODItNjUuNTM2LTM2LjQwOS04Ny4zODEtNy4yODItNy4yODItNy4yODItMTQuNTYzIDAtMjEuODQ1IDcuMjgyLTcuMjgyIDE0LjU2My03LjI4MiAyMS44NDUgMCAzNi40MDkgMjkuMTI3IDU4LjI1NCA3Mi44MTggNTAuOTczIDExNi41MDktNy4yODIgMC0xNC41NjMgNy4yODItMjEuODQ1IDcuMjgyeiIgIC8+PC9zdmc+"},1800:function(e,t,a){"use strict";a.r(t),t.default="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNTk0MzYyODEzNzAyIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjE0NDAiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNNTIxLjI1IDg4My4zNGMtMS4yNCAwLTIuNDktMC4xNS0zLjc0LTAuNDgtNjAuMTctMTUuNDUtMTEyLjk2LTQwLjA2LTE1Ni45MS03My4xNC0zNS4zNC0yNi42LTY1LjAzLTU4LjY3LTg4LjI1LTk1LjMzLTM5LjY2LTYyLjYyLTQ2LjY0LTExNi43MS00Ni45MS0xMTguOThsLTAuMTEtMC45MVYyNTUuMDZsMTcuMzcgMi43OGM3MC41NiAxMS4zMSAxMzYuNTctMi43OCAxOTYuMi00MS44NyA0NS0yOS41IDY5LjMzLTYyLjk4IDY5LjU4LTYzLjMxIDQuODMtNi43MiAxNC4xOS04LjI3IDIwLjkyLTMuNDUgNi43MyA0LjgyIDguMjkgMTQuMTYgMy40OCAyMC45LTEuMDkgMS41Mi0yNy4xOCAzNy42OC03Ni40OCA3MC4yNy0yOC45OCAxOS4xNi02MC4wNyAzMy4xNS05Mi4zOSA0MS42LTM1IDkuMTUtNzEuNDggMTEuNzYtMTA4LjY3IDcuODF2MzAyLjc2YzAuOTkgNi41NCA5LjExIDUzLjggNDMuMTUgMTA3LjAyIDQ4Ljc4IDc2LjI4IDEyNC45OSAxMjguMTcgMjI2LjUgMTU0LjI0IDguMDIgMi4wNiAxMi44NiAxMC4yNCAxMC44IDE4LjI2LTEuNzcgNi43Ni03Ljg2IDExLjI2LTE0LjU0IDExLjI3eiIgZmlsbD0iIzIzMTgxNSIgcC1pZD0iMTQ0MSI+PC9wYXRoPjxwYXRoIGQ9Ik01MjIuOTQgODgzLjM0Yy02LjY4IDAtMTIuNzgtNC41LTE0LjUyLTExLjI3LTIuMDYtOC4wMiAyLjc3LTE2LjIgMTAuOC0xOC4yNiAxMDIuMDgtMjYuMjIgMTc4LjU1LTc4LjUyIDIyNy4yOC0xNTUuNDYgMzYuMDgtNTYuOTcgNDIuNDItMTA2LjA4IDQyLjQ4LTEwNi41NyAxLjAxLTguMjIgOC40Ny0xNC4wNyAxNi43MS0xMy4wNyA4LjIyIDEgMTQuMDcgOC40OSAxMy4wNyAxNi43MS0wLjI4IDIuMjctNy4yNSA1Ni4zNi00Ni45MSAxMTguOTgtMjMuMjEgMzYuNjUtNTIuOTEgNjguNzMtODguMjUgOTUuMzMtNDMuOTUgMzMuMDgtOTYuNzQgNTcuNjktMTU2LjkyIDczLjE0LTEuMjUgMC4zMS0yLjUgMC40Ny0zLjc0IDAuNDd6IiBmaWxsPSIjMjMxODE1IiBwLWlkPSIxNDQyIj48L3BhdGg+PHBhdGggZD0iTTgwNC4xOSA2MDguNTljLTguMjggMC0xNS02LjcyLTE1LTE1VjI4OS43OGMtMzcuMTkgMy45NS03My42NyAxLjM0LTEwOC42Ny03LjgxLTMyLjMzLTguNDUtNjMuNDEtMjIuNDQtOTIuMzktNDEuNi00OS4zLTMyLjU5LTc1LjQtNjguNzQtNzYuNDgtNzAuMjctNC44MS02Ljc0LTMuMjUtMTYuMTEgMy41LTIwLjkyIDYuNzQtNC44MSAxNi4wOS0zLjI1IDIwLjkxIDMuNDggMC4yNCAwLjMzIDI0LjU3IDMzLjgxIDY5LjU4IDYzLjMxIDU5LjYyIDM5LjA5IDEyNS42NCA1My4xOCAxOTYuMTkgNDEuODdsMTcuMzctMi43OHYzMzguNTNjLTAuMDEgOC4yOS02LjcyIDE1LTE1LjAxIDE1ek01MjEuNjEgNzU2LjQxYy0xLjI0IDAtMi40OS0wLjE1LTMuNzQtMC40OC0zOS4yNS0xMC4wOC03My43My0yNi4xNi0xMDIuNDctNDcuNzktMjMuMTctMTcuNDQtNDIuNjQtMzguNDctNTcuODctNjIuNTItMjYuMDYtNDEuMTUtMzAuNjgtNzYuOTgtMzAuODYtNzguNDhsLTAuMTEtMC45MXYtMjI0LjJsMTcuMzcgMi43OGMxMDUuMTggMTYuODUgMTY0LjUtNjQuMzkgMTY1LjA5LTY1LjIxIDQuODEtNi43NCAxNC4xOC04LjMxIDIwLjkyLTMuNSA2Ljc0IDQuODEgOC4zMSAxNC4xOCAzLjUgMjAuOTItMC43MiAxLjAxLTE4LjAxIDI0Ljk3LTUwLjQzIDQ2LjQtMzguMTUgMjUuMjItODEuNTYgMzYuNTEtMTI2LjQ1IDMzLjA3djE4Ny43NGMwLjc5IDQuOTMgNi4xNCAzMy45NyAyNy4wOCA2Ni41NCAzMC41MyA0Ny40NiA3OC4yIDc5Ljc5IDE0MS42OSA5Ni4xIDguMDIgMi4wNiAxMi44NiAxMC4yNCAxMC44IDE4LjI2LTEuNzQgNi43Ny03LjgzIDExLjI3LTE0LjUyIDExLjI4eiIgZmlsbD0iIzIzMTgxNSIgcC1pZD0iMTQ0MyI+PC9wYXRoPjxwYXRoIGQ9Ik01MjIuNjkgNzU2LjQxYy02LjY4IDAtMTIuNzgtNC41LTE0LjUyLTExLjI3LTIuMDYtOC4wMiAyLjc3LTE2LjIgMTAuOC0xOC4yNiA2My40OS0xNi4zMSAxMTEuMTYtNDguNjQgMTQxLjY5LTk2LjEgMjIuOTEtMzUuNjEgMjcuMTYtNjcuMDEgMjcuMi02Ny4zMiAxLjA2LTguMiA4LjU1LTE0LjAzIDE2Ljc1LTEyLjk5IDguMiAxLjAzIDE0LjAzIDguNDcgMTMuMDMgMTYuNjgtMC4xOCAxLjUtNC44IDM3LjM0LTMwLjg2IDc4LjQ4LTE1LjIzIDI0LjA0LTM0LjcgNDUuMDgtNTcuODcgNjIuNTItMjguNzQgMjEuNjMtNjMuMjEgMzcuNzEtMTAyLjQ3IDQ3Ljc5LTEuMjYgMC4zMS0yLjUxIDAuNDctMy43NSAwLjQ3eiIgZmlsbD0iIzIzMTgxNSIgcC1pZD0iMTQ0NCI+PC9wYXRoPjxwYXRoIGQ9Ik03MDIuOTUgNTgwLjMyYy04LjI4IDAtMTUtNi43Mi0xNS0xNVYzNzYuNWMtNDQuOSAzLjQ1LTg4LjI5LTcuODQtMTI2LjQ1LTMzLjA3LTMyLjQyLTIxLjQzLTQ5LjcxLTQ1LjM5LTUwLjQzLTQ2LjQtNC44MS02Ljc0LTMuMjUtMTYuMTEgMy41LTIwLjkyIDYuNzQtNC44IDE2LjA4LTMuMjUgMjAuOSAzLjQ3IDAuMiAwLjI4IDE1LjQ0IDIxLjEzIDQzLjUyIDM5LjQ1IDM2Ljk3IDI0LjEyIDc3Ljg4IDMyLjggMTIxLjU5IDI1Ljc5bDE3LjM3LTIuNzh2MjIzLjI5YzAgOC4yOC02LjcyIDE0Ljk5LTE1IDE0Ljk5eiIgZmlsbD0iIzIzMTgxNSIgcC1pZD0iMTQ0NSI+PC9wYXRoPjxwYXRoIGQ9Ik01MjAuNTYgNzQ2Ljk3Yy04LjI4IDAtMTUtNi43Mi0xNS0xNVYyOTQuNzhjMC04LjI4IDYuNzItMTUgMTUtMTVzMTUgNi43MiAxNSAxNXY0MzcuMTljMCA4LjI4LTYuNzIgMTUtMTUgMTV6IiBmaWxsPSIjMjMxODE1IiBwLWlkPSIxNDQ2Ij48L3BhdGg+PHBhdGggZD0iTTY5My45OCA1MjguMzhIMzQ3LjEzYy04LjI4IDAtMTUtNi43Mi0xNS0xNXM2LjcyLTE1IDE1LTE1aDM0Ni44NWM4LjI4IDAgMTUgNi43MiAxNSAxNXMtNi43MiAxNS0xNSAxNXpNMzQ1LjUzNSA0MzMuODgybDY5LjU3OS02OS41NzkgNy4wNzEgNy4wNzEtNjkuNTc5IDY5LjU3OXpNMzQ2LjExMSA0ODIuODgybDE2Ni4wNzctMTY2LjA3NiA3LjA3MSA3LjA3LTE2Ni4wNzcgMTY2LjA3N3oiIGZpbGw9IiMyMzE4MTUiIHAtaWQ9IjE0NDciPjwvcGF0aD48cGF0aCBkPSJNMzc1LjM5MiA1MTMuNzc5bDE0NS4wNC0xNDUuMDYxIDcuMDcyIDcuMDctMTQ1LjA0IDE0NS4wNjJ6IiBmaWxsPSIjMjMxODE1IiBwLWlkPSIxNDQ4Ij48L3BhdGg+PHBhdGggZD0iTTQzNS45NTcgNTA3LjY5Nmw4MC40ODItODAuNDgyIDcuMDcgNy4wNy04MC40ODEgODAuNDgzeiIgZmlsbD0iIzIzMTgxNSIgcC1pZD0iMTQ0OSI+PC9wYXRoPjxwYXRoIGQ9Ik01MjMuNDM3IDYzNC4yNjVsNy4wNzEtNy4wNzEgNjkuNTc5IDY5LjU3OC03LjA3MSA3LjA3MXoiIGZpbGw9IiMyMzE4MTUiIHAtaWQ9IjE0NTAiPjwvcGF0aD48cGF0aCBkPSJNNTEzLjI1MyA1NjUuNTAybDcuMDctNy4wNyAxMjAuOTc4IDEyMC45NzctNy4wNyA3LjA3eiIgZmlsbD0iIzIzMTgxNSIgcC1pZD0iMTQ1MSI+PC9wYXRoPjxwYXRoIGQ9Ik01MzUuODYzIDUyN2w3LjA3LTcuMDcyTDY3Mi44ODYgNjQ5Ljg4bC03LjA3MSA3LjA3MXoiIGZpbGw9IiMyMzE4MTUiIHAtaWQ9IjE0NTIiPjwvcGF0aD48cGF0aCBkPSJNNTkyLjM0OCA1MjQuOTQxbDcuMDctNy4wNyA4Ni4xODIgODYuMTgtNy4wNzEgNy4wNzJ6IiBmaWxsPSIjMjMxODE1IiBwLWlkPSIxNDUzIj48L3BhdGg+PC9zdmc+"},1801:function(e,t,a){"use strict";a.r(t),t.default=a.p+"asset/image/load-balancer.1663167892.png"},1802:function(e,t,a){var n=a(1803);"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:undefined,insertInto:void 0};a(75)(n,r);n.locals&&(e.exports=n.locals)},1803:function(e,t,a){(t=e.exports=a(74)(!1)).push([e.i,".index__icon--2-Vz_ {\n margin-right: 8px;\n}\n",""]),t.locals={icon:"index__icon--2-Vz_"}},1804:function(e,t,a){var n=a(1805);"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:undefined,insertInto:void 0};a(75)(n,r);n.locals&&(e.exports=n.locals)},1805:function(e,t,a){(t=e.exports=a(74)(!1)).push([e.i,".index__instance-volume--3uVzj {\n display: block;\n margin-bottom: 8px;\n}\n.index__label--12eU8 {\n max-width: 20%;\n margin-right: 10px;\n}\n.index__select--YPu8L {\n max-width: 80%;\n}\n.index__size-label--1i0IC {\n margin-right: 40px;\n margin-left: 10px;\n}\n",""]),t.locals={"instance-volume":"index__instance-volume--3uVzj",label:"index__label--12eU8",select:"index__select--YPu8L","size-label":"index__size-label--1i0IC"}},1806:function(e,a,n){"use strict";var r=n(160),l=n(19),i=n(25),o=n(21);l(a,"__esModule",{value:!0}),a.default=void 0;var u=o(n(633));n(333);var s=o(n(332)),d=o(n(634)),c=o(n(36)),f=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=h(t);if(a&&a.has(e))return a.get(e);var n={},r=l&&i;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=r?i(e,o):null;u&&(u.get||u.set)?l(n,o,u):n[o]=e[o]}n.default=e,a&&a.set(e,n);return n}(n(0)),p=(n(173),n(555),o(n(1807)));function h(e){if("function"!=typeof r)return null;var t=new r,a=new r;return(h=function(e){return e?a:t})(e)}class m extends f.Component{constructor(e){super(e),(0,c.default)(this,"onChangeValue",(()=>{var{moreValue:e}=this.state;this.setState({moreValue:!e},(()=>{var{onChange:e}=this.props;e&&e(this.state.moreValue)}))}));var{value:t}=e;this.state={moreValue:t}}render(){var{moreValue:e}=this.state;return e?f.default.createElement(s.default,{type:"link",className:p.default.btn,onClick:this.onChangeValue},t("Hide Advanced Options")," ",f.default.createElement(d.default,null)):f.default.createElement(s.default,{type:"link",className:p.default.btn,onClick:this.onChangeValue},t("Expand Advanced Options"),f.default.createElement(u.default,null))}}a.default=m},1807:function(e,t,a){var n=a(1808);"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:undefined,insertInto:void 0};a(75)(n,r);n.locals&&(e.exports=n.locals)},1808:function(e,t,a){(t=e.exports=a(74)(!1)).push([e.i,".index__btn--2tisu {\n padding-left: 0;\n}\n",""]),t.locals={btn:"index__btn--2tisu"}},1809:function(e,a,n){"use strict";var r=n(33),l=n(44),i=n(32),o=n(25),u=n(27),s=n(45),d=n(46),c=n(19),f=n(160),p=n(21);c(a,"__esModule",{value:!0}),a.default=void 0;var h=p(n(419));n(1469);var m=p(n(1470));n(333);var g=p(n(332)),v=p(n(1479)),y=p(n(36)),b=p(n(91)),x=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=w(t);if(a&&a.has(e))return a.get(e);var n={},r=c&&o;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?o(e,l):null;i&&(i.get||i.set)?c(n,l,i):n[l]=e[l]}n.default=e,a&&a.set(e,n);return n}(n(0));n(173),n(555);function w(e){if("function"!=typeof f)return null;var t=new f,a=new f;return(w=function(e){return e?a:t})(e)}function k(e,t){var a=r(e);if(l){var n=l(e);t&&(n=i(n).call(n,(function(t){return o(e,t).enumerable}))),a.push.apply(a,n)}return a}function _(e){for(var t=1;t<arguments.length;t++){var a,n=null!=arguments[t]?arguments[t]:{};if(t%2)u(a=k(Object(n),!0)).call(a,(function(t){(0,y.default)(e,t,n[t])}));else if(s)d(e,s(n));else{var r;u(r=k(Object(n))).call(r,(function(t){c(e,t,o(n,t))}))}}return e}class C extends x.Component{constructor(e){super(e),(0,y.default)(this,"onChange",(e=>{this.setState({file:e},(()=>{var{onChange:t}=this.props;t&&t(e)}))})),(0,y.default)(this,"handleChange",(e=>{var{file:t,fileList:a=[]}=e,{status:n}=t||{};"removed"===n&&0===a.length&&this.onChange(null),n||this.onChange(t),e.file.status})),(0,y.default)(this,"beforeUpload",(()=>!1)),this.state={file:""}}get progress(){return{strokeColor:{"0%":"#108ee9","100%":"#87d068"},strokeWidth:3,format:e=>"".concat((0,h.default)(e.toFixed(2)),"%")}}render(){var e,{value:a}=this.props,{file:n}=this.state;e=a?(0,b.default)(a)?a:[a]:n?[n]:[];var r=_(_({},this.props),{},{name:"file",action:"",headers:{authorization:"authorization-text"},onChange:this.handleChange,progress:this.progress,beforeUpload:this.beforeUpload,fileList:e});return x.default.createElement(m.default,r,x.default.createElement(g.default,null,x.default.createElement(v.default,null)," ",t("Click to Upload")))}}a.default=C},1824:function(e,a,n){"use strict";var r=n(160),l=n(19),i=n(25),o=n(21);l(a,"__esModule",{value:!0}),a.default=void 0;var u=o(n(562)),s=o(n(90)),d=o(n(335)),c=o(n(57)),f=o(n(81)),p=o(n(1480));n(333);var h=o(n(332)),m=o(n(1481)),g=o(n(409));n(560);var v=o(n(412));n(1205);var y=o(n(1206)),b=o(n(36)),x=o(n(199)),w=o(n(202)),k=o(n(91)),_=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=I(t);if(a&&a.has(e))return a.get(e);var n={},r=l&&i;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=r?i(e,o):null;u&&(u.get||u.set)?l(n,o,u):n[o]=e[o]}n.default=e,a&&a.set(e,n);return n}(n(0)),C=(n(173),n(555),o(n(16))),M=o(n(4)),N=n(161),S=o(n(1827));function I(e){if("function"!=typeof r)return null;var t=new r,a=new r;return(I=function(e){return e?a:t})(e)}class E extends _.Component{constructor(e){super(e),(0,b.default)(this,"getInitItems",(e=>{var{value:t,initValue:a}=e;return(0,x.default)(a)?(0,k.default)(t)?[...t]||!1:[]:(0,k.default)(a)?[...a]||!1:[]})),(0,b.default)(this,"addItem",(()=>{var{items:e}=this.state,{maxCount:t}=this.props;if(!(e.length>=t)){var{defaultItemValue:a}=this.props,n={value:a,index:e.length};this.updateItems([...e,n])}})),(0,b.default)(this,"updateItems",(e=>{this.setState({items:e},(()=>{var{onChange:t}=this.props;t&&t(e)}))})),(0,b.default)(this,"canRemove",(e=>{var{minCount:t}=this.props;return e>=t})),(0,b.default)(this,"removeItem",(e=>{var{items:t}=this.state;(0,u.default)(t).call(t,e,1),this.updateItems(t)})),(0,b.default)(this,"onItemChange",((e,t)=>{var{items:a}=this.state;a[t]={value:e,index:t},this.updateItems(a)})),(0,b.default)(this,"onItemChangeInput",((e,t)=>{var{items:a}=this.state;a[t]={value:e,index:t},this.updateItems(a)})),(0,b.default)(this,"getOptions",(e=>{var{optionsByIndex:t,options:a}=this.props;return t&&e<a.length?[a[e]]:a})),(0,b.default)(this,"renderItem",((e,a)=>{var{itemComponent:n,readonlyKeys:r=[],isInput:l=!1,placeholder:i,width:o}=this.props;if(!n)return l?_.default.createElement(y.default,{value:e.value,placeholder:t("Please input"),style:{width:o},onChange:e=>{this.onItemChange(e.currentTarget.value,a)}}):_.default.createElement(v.default,{className:S.default.float,options:this.getOptions(a),value:e.value,placeholder:i,style:{width:o},onChange:e=>{this.onItemChange(e,a)}});var u=n,{key:d=""}=e.value||{},c=(0,s.default)(r).call(r,d)>=0;return _.default.createElement(u,(0,g.default)({},this.props,{name:"name-".concat(a),value:e.value,index:a,keyReadonly:c,onChange:e=>{this.onItemChange(e,a)}}))}));var{initValue:a=[]}=e;this.state={items:this.getInitItems(e),initValue:a,keyId:(0,N.generateId)()}}static getDerivedStateFromProps(e,t){return(0,w.default)(e.initValue,t.initValue)?null:{initValue:e.initValue,items:JSON.parse((0,d.default)(e.initValue)),keyId:(0,N.generateId)()}}renderTip(){var{tips:e}=this.props;return e?_.default.createElement("div",null,e):null}renderItems(){var{items:e,keyId:t}=this.state,a=(0,c.default)(e).call(e,((e,a)=>{var n;return _.default.createElement("div",{className:S.default.item,key:(0,f.default)(n="add-select-item-".concat(t,"-")).call(n,a)},_.default.createElement(h.default,{type:"link",onClick:()=>this.removeItem(a),className:(0,M.default)(S.default.float,S.default["remove-btn"]),disabled:!this.canRemove(a)},_.default.createElement(m.default,null)),_.default.createElement("div",{className:(0,M.default)(S.default.float,S.default["item-detail"],"item-detail")},this.renderItem(e,a)))}));return _.default.createElement("div",{className:S.default.items},a)}renderAdd(){var{maxCount:e,addText:a,addTextTips:n}=this.props,{items:r}=this.state,l="";return e!==1/0&&(l+=t("Can add { number } {name}",{number:e-r.length,name:n||""})),_.default.createElement("div",null,_.default.createElement(h.default,{className:(0,M.default)(S.default["add-btn"],"add-btn"),type:"link",onClick:this.addItem},_.default.createElement(p.default,null),a),l)}render(){return _.default.createElement("div",{className:S.default["add-select"]},this.renderTip(),this.renderItems(),this.renderAdd())}}a.default=E,(0,b.default)(E,"propTypes",{minCount:C.default.number,maxCount:C.default.number,tips:C.default.node,options:C.default.array,placeholder:C.default.string,defaultItemValue:C.default.any,addText:C.default.string,addTextTips:C.default.string,width:C.default.number,itemComponent:C.default.any,optionsByIndex:C.default.bool,initValue:C.default.array,readonlyKeys:C.default.array}),(0,b.default)(E,"defaultProps",{minCount:0,maxCount:1/0,addText:t("Add"),placeholder:t("Please select"),width:200,itemComponent:null,optionsByIndex:!1,initValue:[],readonlyKeys:[]})},1827:function(e,t,a){var n=a(1828);"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:undefined,insertInto:void 0};a(75)(n,r);n.locals&&(e.exports=n.locals)},1828:function(e,t,a){(t=e.exports=a(74)(!1)).push([e.i,".index__items--2qLhh {\n float: left;\n width: 100%;\n}\n.index__item--2Klpp {\n position: relative;\n float: left;\n width: 100%;\n margin-top: 8px;\n}\n.index__item--2Klpp .ant-form-item-has-success .ant-select:not(.ant-select-borderless) .ant-select-selector {\n border: 1px solid #d9d9d9 !important;\n}\n.index__item-detail--1dhkA {\n width: 90%;\n}\n.index__float--QNRx6 {\n float: left;\n}\n.index__remove-btn--11OFO,\n.index__add-btn--1uutt {\n padding-right: 8px;\n padding-left: 0;\n}\n.index__desc--wLQSa {\n margin-left: 16px;\n}\n",""]),t.locals={items:"index__items--2qLhh",item:"index__item--2Klpp","item-detail":"index__item-detail--1dhkA",float:"index__float--QNRx6","remove-btn":"index__remove-btn--11OFO","add-btn":"index__add-btn--1uutt",desc:"index__desc--wLQSa"}},1829:function(e,a,n){"use strict";var r=n(33),l=n(44),i=n(32),o=n(25),u=n(27),s=n(45),d=n(46),c=n(19),f=n(160),p=n(21);c(a,"__esModule",{value:!0}),a.default=void 0,n(1216);var h=p(n(1217));n(1205);var m=p(n(1206)),g=p(n(62)),v=p(n(36)),y=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=x(t);if(a&&a.has(e))return a.get(e);var n={},r=c&&o;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?o(e,l):null;i&&(i.get||i.set)?c(n,l,i):n[l]=e[l]}n.default=e,a&&a.set(e,n);return n}(n(0)),b=(n(173),n(556));function x(e){if("function"!=typeof f)return null;var t=new f,a=new f;return(x=function(e){return e?a:t})(e)}function w(e,t){var a=r(e);if(l){var n=l(e);t&&(n=i(n).call(n,(function(t){return o(e,t).enumerable}))),a.push.apply(a,n)}return a}function k(e){for(var t=1;t<arguments.length;t++){var a,n=null!=arguments[t]?arguments[t]:{};if(t%2)u(a=w(Object(n),!0)).call(a,(function(t){(0,v.default)(e,t,n[t])}));else if(s)d(e,s(n));else{var r;u(r=w(Object(n))).call(r,(function(t){c(e,t,o(n,t))}))}}return e}var{ipv4Validator:_,ipv6Validator:C}=b.ipValidate;class M extends y.Component{getRules(e,t){var a={validator:4===t?_:C};return e&&e.length>0&&(a=k(k({},a),e[0])),[a]}render(){var{componentProps:e={},formItemProps:a={}}=this.props,{version:n=4}=e,r=(0,g.default)(e,["version"]),l=k({placeholder:4===n?t("Please input ipv4"):t("Please input ipv6")},r),{rules:i}=a,o=(0,g.default)(a,["rules"]),u=this.getRules(i,n),s=k(k({},o),{},{rules:u});return y.default.createElement(h.default.Item,s,y.default.createElement(m.default,l))}}a.default=M,(0,v.default)(M,"isFormItem",!0)},1830:function(e,t,a){var n=a(1831);"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:undefined,insertInto:void 0};a(75)(n,r);n.locals&&(e.exports=n.locals)},1831:function(e,t,a){(t=e.exports=a(74)(!1)).push([e.i,"/* init */\n/* specific color */\n/* border */\n/* background */\n/* shadow */\n/* font */\n/* 中号字体 */\n/* animation */\n/* size */\n/* sider */\n.index__network-select--FVaPO {\n position: relative;\n display: block;\n height: 61.6px;\n margin-bottom: 0 !important;\n}\n.index__network-select--FVaPO .ant-form-item-control-input-content {\n height: 61.6px;\n}\n.index__network-select--FVaPO .ant-form-item-explain {\n position: absolute;\n bottom: 0;\n}\n.index__select--2cAyT {\n margin-right: 40px;\n}\n.index__size-label--3Ry8T {\n margin-right: 40px;\n margin-left: 10px;\n}\n.index__tips--3wgea {\n margin-top: 0;\n}\n.index__label--2hqHr {\n margin-right: 10px;\n color: rgba(0, 0, 0, 0.45);\n line-height: 30px;\n}\n.index__content--14doI {\n color: rgba(0, 0, 0, 0.65);\n}\n.index__subnet-options-cidr--7bWem {\n margin-left: 5px;\n padding-left: 5px;\n border-left: 1px solid;\n opacity: 0.6;\n}\n",""]),t.locals={"network-select":"index__network-select--FVaPO",select:"index__select--2cAyT","size-label":"index__size-label--3Ry8T",tips:"index__tips--3wgea",label:"index__label--2hqHr",content:"index__content--14doI","subnet-options-cidr":"index__subnet-options-cidr--7bWem"}},1832:function(e,t,a){"use strict";var n=a(160),r=a(19),l=a(25),i=a(21);r(t,"__esModule",{value:!0}),t.default=void 0;var o=i(a(102)),u=i(a(57)),s=i(a(409));a(581);var d=i(a(423)),c=i(a(62)),f=i(a(36)),p=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=v(t);if(a&&a.has(e))return a.get(e);var n={},i=r&&l;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=i?l(e,o):null;u&&(u.get||u.set)?r(n,o,u):n[o]=e[o]}n.default=e,a&&a.set(e,n);return n}(a(0)),h=(a(173),i(a(16))),m=i(a(4)),g=i(a(1833));function v(e){if("function"!=typeof n)return null;var t=new n,a=new n;return(v=function(e){return e?a:t})(e)}class y extends p.Component{constructor(){super(...arguments),(0,f.default)(this,"onChange",(e=>{var{value:t}=e.target,{options:a,onChange:n,isWrappedValue:r}=this.props;if(r){var l=(0,o.default)(a).call(a,(e=>e.value===t));n&&n(l)}else n&&n(t)})),(0,f.default)(this,"getValue",((e,t)=>void 0===t?t:e?t.value:t))}render(){var e=this.props,{options:t,optionType:a,buttonStyle:n,onlyRadio:r,className:l,value:i,isWrappedValue:o}=e,f=(0,c.default)(e,["options","optionType","buttonStyle","onlyRadio","className","value","isWrappedValue"]),h=(0,u.default)(t).call(t,(e=>"default"===a?p.default.createElement(d.default,{value:e.value,key:e.value,disabled:e.disabled},e.label):p.default.createElement(d.default.Button,{value:e.value,key:e.value,disabled:e.disabled},e.label)));return p.default.createElement(d.default.Group,(0,s.default)({optionType:a,buttonStyle:n},f,{className:(0,m.default)(l,r?g.default["only-radio"]:""),onChange:this.onChange,value:this.getValue(o,i)}),h)}}t.default=y,(0,f.default)(y,"propTypes",{options:h.default.array,onChange:h.default.func,optionType:h.default.string,buttonStyle:h.default.string,onlyRadio:h.default.bool,isWrappedValue:h.default.bool}),(0,f.default)(y,"defaultProps",{options:[],optionType:"button",buttonStyle:"solid",onlyRadio:!1,isWrappedValue:!1})},1833:function(e,t,a){var n=a(1834);"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:undefined,insertInto:void 0};a(75)(n,r);n.locals&&(e.exports=n.locals)},1834:function(e,t,a){(t=e.exports=a(74)(!1)).push([e.i,"/* init */\n/* specific color */\n/* border */\n/* background */\n/* shadow */\n/* font */\n/* 中号字体 */\n/* animation */\n/* size */\n/* sider */\n.index__only-radio--3nQs4 .ant-radio-button-wrapper {\n margin-left: 8px;\n border-left-width: 1px;\n border-radius: 4px;\n}\n.index__only-radio--3nQs4 .ant-radio-button-wrapper::before {\n display: none;\n}\n.index__only-radio--3nQs4 .ant-radio-button-wrapper:first-child {\n margin-left: 0;\n border-radius: 4px;\n}\n",""]),t.locals={"only-radio":"index__only-radio--3nQs4"}},1835:function(e,t,a){"use strict";var n=a(160),r=a(19),l=a(25),i=a(21);r(t,"__esModule",{value:!0}),t.default=void 0;var o=i(a(57));a(1252);var u=i(a(1241));a(333);var s=i(a(332)),d=i(a(1323)),c=i(a(36)),f=i(a(592)),p=i(a(91)),h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=v(t);if(a&&a.has(e))return a.get(e);var n={},i=r&&l;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=i?l(e,o):null;u&&(u.get||u.set)?r(n,o,u):n[o]=e[o]}n.default=e,a&&a.set(e,n);return n}(a(0)),m=(a(173),a(555),a(161)),g=i(a(1842));function v(e){if("function"!=typeof n)return null;var t=new n,a=new n;return(v=function(e){return e?a:t})(e)}class y extends h.Component{constructor(){super(...arguments),(0,c.default)(this,"getValueContent",(e=>(0,f.default)(e)?"-":(0,p.default)(e)?(0,o.default)(e).call(e,(e=>h.default.createElement("div",{key:"value-".concat((0,m.generateId)())},e))):e)),(0,c.default)(this,"onClick",(()=>{var{onClick:e}=this.props;e&&e()}))}renderTitle(){var{title:e}=this.props;return h.default.createElement("span",null,e," ",h.default.createElement(s.default,{type:"link",icon:h.default.createElement(d.default,null),onClick:this.onClick}))}renderItem(){var{items:e}=this.props,t=(0,o.default)(e).call(e,(e=>{var{label:t,value:a,span:n}=e,r=this.getValueContent(a),l={label:t,key:"item-".concat((0,m.generateId)()),className:g.default.label};return n&&(l.span=n),h.default.createElement(u.default.Item,l,r)}));return h.default.createElement(u.default,{title:this.renderTitle(),colon:!1},t)}render(){return h.default.createElement("div",null,this.renderItem())}}t.default=y},1842:function(e,t,a){var n=a(1843);"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:undefined,insertInto:void 0};a(75)(n,r);n.locals&&(e.exports=n.locals)},1843:function(e,t,a){(t=e.exports=a(74)(!1)).push([e.i,".index__label--1lhix {\n vertical-align: top;\n}\n.index__label--1lhix .ant-descriptions-item-label {\n width: 100px;\n color: #8a8a8a;\n}\n",""]),t.locals={label:"index__label--1lhix"}},1844:function(e,a,n){"use strict";var r=n(33),l=n(44),i=n(32),o=n(25),u=n(27),s=n(45),d=n(46),c=n(19),f=n(160),p=n(21);c(a,"__esModule",{value:!0}),a.default=void 0;var h=p(n(198)),m=p(n(65)),g=p(n(81));n(1216);var v=p(n(1217));n(1205);var y=p(n(1206)),b=p(n(62)),x=p(n(36)),w=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=_(t);if(a&&a.has(e))return a.get(e);var n={},r=c&&o;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?o(e,l):null;i&&(i.get||i.set)?c(n,l,i):n[l]=e[l]}n.default=e,a&&a.set(e,n);return n}(n(0)),k=(n(173),n(556));function _(e){if("function"!=typeof f)return null;var t=new f,a=new f;return(_=function(e){return e?a:t})(e)}function C(e,t){var a=r(e);if(l){var n=l(e);t&&(n=i(n).call(n,(function(t){return o(e,t).enumerable}))),a.push.apply(a,n)}return a}function M(e){for(var t=1;t<arguments.length;t++){var a,n=null!=arguments[t]?arguments[t]:{};if(t%2)u(a=C(Object(n),!0)).call(a,(function(t){(0,x.default)(e,t,n[t])}));else if(s)d(e,s(n));else{var r;u(r=C(Object(n))).call(r,(function(t){c(e,t,o(n,t))}))}}return e}var{nameMessage:N,nameMessageWithoutChinese:S,filenameMessage:I,keypairNameMessage:E,stackNameMessage:T,crontabNameMessage:j,imageNameMessage:A,instanceNameMessage:D,swiftFilenameMessage:P,databaseNameMessage:L,databaseUserNameMessage:O}=k.nameMessageInfo,{nameValidate:z,nameValidateWithoutChinese:R,fileNameValidate:U,keypairNameValidate:F,stackNameValidate:V,crontabNameValidate:B,imageNameValidate:K,instanceNameValidate:Y,swiftFileNameValidate:Q,databaseNameValidate:G,databaseUserNameValidate:H}=k.nameTypeValidate;class W extends w.Component{getRules(e){var{names:a,rules:n,withoutChinese:r,isFile:l,isKeypair:i,isStack:o,isCrontab:u,isImage:s,isInstance:d,isSwiftFile:c,isDatabaseName:f,isDatabaseUserName:p}=e,v={validator:(e,n)=>{if(a&&a.length&&(0,h.default)(a).call(a,n)){var r,l=t("Name can not be duplicated");return m.default.reject(new Error((0,g.default)(r="".concat(t("Invalid: "))).call(r,l)))}return m.default.resolve(!0)}},y=z;l?y=U:r?y=R:i?y=F:o?y=V:s?y=K:d?y=Y:u?y=B:c?y=Q:f?y=G:p&&(y=H);var b={validator:y};return n&&n.length>0?[...n,b,v]:[b,v]}getMessage(e){var{withoutChinese:t,isFile:a,isKeypair:n,isStack:r,isCrontab:l,isImage:i,isInstance:o,isSwiftFile:u,isDatabaseName:s,isDatabaseUserName:d}=e;return t?S:r?T:a?I:n?E:l?j:i?A:o?D:u?P:s?L:d?O:N}render(){var{componentProps:e,formItemProps:a}=this.props,{withoutChinese:n=!1,isFile:r=!1,isKeypair:l=!1,isSwiftFile:i=!1,isDatabaseName:o=!1,isDatabaseUserName:u=!1,isStack:s,isCrontab:d,isImage:c,isInstance:f,names:p}=e,h=(0,b.default)(e,["withoutChinese","isFile","isKeypair","isSwiftFile","isDatabaseName","isDatabaseUserName","isStack","isCrontab","isImage","isInstance","names"]),m=M({placeholder:r?t("Please input file name"):t("Please input name")},h),{rules:g}=a,x=(0,b.default)(a,["rules"]),k=this.getRules({names:p,rules:g,withoutChinese:n,isFile:r,isKeypair:l,isStack:s,isCrontab:d,isImage:c,isInstance:f,isSwiftFile:i,isDatabaseName:o,isDatabaseUserName:u}),_=this.getMessage({withoutChinese:n,isFile:r,isKeypair:l,isStack:s,isCrontab:d,isImage:c,isInstance:f,isSwiftFile:i,isDatabaseName:o,isDatabaseUserName:u}),C=M(M({},x),{},{rules:k,extra:_});return w.default.createElement(v.default.Item,C,w.default.createElement(y.default,m))}}a.default=W,(0,x.default)(W,"isFormItem",!0)},1845:function(e,a,n){"use strict";var r=n(33),l=n(44),i=n(32),o=n(25),u=n(27),s=n(45),d=n(46),c=n(19),f=n(160),p=n(21);c(a,"__esModule",{value:!0}),a.default=void 0,n(1216);var h=p(n(1217));n(1205);var m=p(n(1206)),g=p(n(62)),v=p(n(36)),y=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=x(t);if(a&&a.has(e))return a.get(e);var n={},r=c&&o;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?o(e,l):null;i&&(i.get||i.set)?c(n,l,i):n[l]=e[l]}n.default=e,a&&a.set(e,n);return n}(n(0)),b=(n(173),n(556));function x(e){if("function"!=typeof f)return null;var t=new f,a=new f;return(x=function(e){return e?a:t})(e)}function w(e,t){var a=r(e);if(l){var n=l(e);t&&(n=i(n).call(n,(function(t){return o(e,t).enumerable}))),a.push.apply(a,n)}return a}function k(e){for(var t=1;t<arguments.length;t++){var a,n=null!=arguments[t]?arguments[t]:{};if(t%2)u(a=w(Object(n),!0)).call(a,(function(t){(0,v.default)(e,t,n[t])}));else if(s)d(e,s(n));else{var r;u(r=w(Object(n))).call(r,(function(t){c(e,t,o(n,t))}))}}return e}class _ extends y.Component{getRules(e,t,a){var n={validator:b.portRangeValidate};return t&&(n.required=t,n.message=a),[n,...e]}render(){var{componentProps:e,formItemProps:a}=this.props,{required:n,label:r}=e||{},l=t("Please input {label}",{label:r}),i=k({placeholder:l},e),{rules:o,extra:u}=a,s=(0,g.default)(a,["rules","extra"]),d=this.getRules(o,n,l),c=k(k({},s),{},{rules:d,extra:u||b.portRangeMessage});return y.default.createElement(h.default.Item,c,y.default.createElement(m.default,i))}}a.default=_,(0,v.default)(_,"isFormItem",!0)},1846:function(e,t,a){"use strict";var n=a(160),r=a(19),l=a(25),i=a(21);r(t,"__esModule",{value:!0}),t.default=void 0;var o=i(a(229)),u=i(a(1847));a(1198);var s=i(a(1199));a(1239);var d=i(a(1240));a(1196);var c=i(a(1197));a(1448);var f=i(a(1449)),p=i(a(36)),h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=g(t);if(a&&a.has(e))return a.get(e);var n={},i=r&&l;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=i?l(e,o):null;u&&(u.get||u.set)?r(n,o,u):n[o]=e[o]}n.default=e,a&&a.set(e,n);return n}(a(0)),m=i(a(16));a(173);function g(e){if("function"!=typeof n)return null;var t=new n,a=new n;return(g=function(e){return e?a:t})(e)}class v extends h.Component{constructor(e){super(e),(0,p.default)(this,"onChange",(e=>{this.setState({inputValue:e});var{onChange:t}=this.props;t&&t(e)}));var{value:t,max:a,min:n,description:r}=e,l=(0,o.default)(t,10);this.state={inputValue:(0,u.default)(l)?1:t,inputMax:a,inputMin:n,description:r}}static getDerivedStateFromProps(e,t){var{min:a,max:n,description:r}=e;return a!==t.inputMin||n!==t.inputMax||r!==t.description?{inputMin:a,inputMax:n,description:r}:null}render(){var{inputValue:e,inputMax:t,inputMin:a,description:n}=this.state;return h.default.createElement(s.default,null,h.default.createElement(c.default,{span:16},h.default.createElement(f.default,{min:a,max:t,onChange:this.onChange,value:e})),h.default.createElement(c.default,{span:4},h.default.createElement(d.default,{min:a,max:t,style:{marginLeft:8},precision:0,formatter:e=>"$ ".concat(e).replace(/\D/g,""),value:e,onChange:this.onChange})),h.default.createElement(c.default,{span:24},h.default.createElement("span",{style:{fontStyle:"italic",color:"#7b8997"}},n)))}}t.default=v,(0,p.default)(v,"propTypes",{value:m.default.number,max:m.default.number,min:m.default.number,description:m.default.string}),(0,p.default)(v,"defaultProps",{max:500,min:0,value:0})},1851:function(e,t,a){"use strict";var n=a(160),r=a(19),l=a(25),i=a(21);r(t,"__esModule",{value:!0}),t.default=void 0;var o=i(a(36)),u=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=f(t);if(a&&a.has(e))return a.get(e);var n={},i=r&&l;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=i?l(e,o):null;u&&(u.get||u.set)?r(n,o,u):n[o]=e[o]}n.default=e,a&&a.set(e,n);return n}(a(0)),s=i(a(16)),d=i(a(4)),c=i(a(1852));function f(e){if("function"!=typeof n)return null;var t=new n,a=new n;return(f=function(e){return e?a:t})(e)}class p extends u.Component{render(){var{label:e,className:t}=this.props;return u.default.createElement("div",{className:(0,d.default)(c.default.title,t)},e)}}t.default=p,(0,o.default)(p,"propTypes",{label:s.default.string,className:s.default.string}),(0,o.default)(p,"defaultProps",{label:""})},1852:function(e,t,a){var n=a(1853);"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:undefined,insertInto:void 0};a(75)(n,r);n.locals&&(e.exports=n.locals)},1853:function(e,t,a){(t=e.exports=a(74)(!1)).push([e.i,"/* init */\n/* specific color */\n/* border */\n/* background */\n/* shadow */\n/* font */\n/* 中号字体 */\n/* animation */\n/* size */\n/* sider */\n.index__title--30RRB {\n margin-left: 12px;\n font-weight: bold;\n font-size: 14px;\n}\n",""]),t.locals={title:"index__title--30RRB"}},1854:function(e,a,n){"use strict";var r=n(160),l=n(19),i=n(25),o=n(21);l(a,"__esModule",{value:!0}),a.default=void 0,n(1482);var u=o(n(1483)),s=o(n(36)),d=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=f(t);if(a&&a.has(e))return a.get(e);var n={},r=l&&i;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=r?i(e,o):null;u&&(u.get||u.set)?l(n,o,u):n[o]=e[o]}n.default=e,a&&a.set(e,n);return n}(n(0)),c=(n(173),o(n(16)));function f(e){if("function"!=typeof r)return null;var t=new r,a=new r;return(f=function(e){return e?a:t})(e)}class p extends d.Component{constructor(){super(...arguments),(0,s.default)(this,"onChange",(e=>{var{onChange:t}=this.props;t&&t(e)}))}render(){var{value:e,className:t,checkedText:a,uncheckedText:n,disabled:r}=this.props,l={checked:e,className:t,checkedChildren:a,unCheckedChildren:n,disabled:r,onChange:this.onChange};return d.default.createElement(u.default,l)}}a.default=p,(0,s.default)(p,"propTypes",{value:c.default.bool,className:c.default.string,checkedText:c.default.string,uncheckedText:c.default.string,disabled:c.default.bool,onChange:c.default.func}),(0,s.default)(p,"defaultProps",{value:!1,checkedText:t("On"),uncheckedText:t("Off"),disabled:!1})},1857:function(e,t,a){"use strict";var n=a(160),r=a(19),l=a(25),i=a(21);r(t,"__esModule",{value:!0}),t.default=void 0,a(571);var o=i(a(417)),u=i(a(36)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=c(t);if(a&&a.has(e))return a.get(e);var n={},i=r&&l;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=i?l(e,o):null;u&&(u.get||u.set)?r(n,o,u):n[o]=e[o]}n.default=e,a&&a.set(e,n);return n}(a(0)),d=(a(173),i(a(16)));function c(e){if("function"!=typeof n)return null;var t=new n,a=new n;return(c=function(e){return e?a:t})(e)}class f extends s.Component{constructor(){super(...arguments),(0,u.default)(this,"onChange",(e=>{var{onChange:t}=this.props;t&&t(e.target.checked)}))}render(){var{value:e,className:t,content:a,disabled:n}=this.props,r={checked:e,className:t,disabled:n,onChange:this.onChange};return s.default.createElement(o.default,r,a)}}t.default=f,(0,u.default)(f,"propTypes",{value:d.default.bool,className:d.default.string,content:d.default.any,disabled:d.default.bool,onChange:d.default.func}),(0,u.default)(f,"defaultProps",{value:!1,content:""})},1858:function(e,a,n){"use strict";var r=n(160),l=n(19),i=n(25),o=n(21);l(a,"__esModule",{value:!0}),a.default=void 0;var u=o(n(57)),s=o(n(32)),d=o(n(198)),c=o(n(90)),f=o(n(36));n(1484);var p=o(n(1485)),h=o(n(409));n(572);var m=o(n(574)),g=o(n(62)),v=o(n(199)),y=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=w(t);if(a&&a.has(e))return a.get(e);var n={},r=l&&i;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=r?i(e,o):null;u&&(u.get||u.set)?l(n,o,u):n[o]=e[o]}n.default=e,a&&a.set(e,n);return n}(n(0)),b=(n(173),o(n(1865))),x=o(n(16));function w(e){if("function"!=typeof r)return null;var t=new r,a=new r;return(w=function(e){return e?a:t})(e)}var k=e=>{var{leftColumns:t,rightColumns:a,pageSize:n,loading:r,onRowLeft:l,onRowRight:i}=e,o=(0,g.default)(e,["leftColumns","rightColumns","pageSize","loading","onRowLeft","onRowRight"]);return y.default.createElement(p.default,(0,h.default)({},o,{showSelectAll:!1}),(e=>{var{direction:o,filteredItems:c,onItemSelectAll:f,onItemSelect:p,selectedKeys:h,disabled:g}=e,v="left"===o?t:a,x={getCheckboxProps:e=>({disabled:g||e.disabled}),onSelectAll(e,t){var a,n=(0,u.default)(a=(0,s.default)(t).call(t,(e=>!e.disabled))).call(a,(e=>{var{key:t}=e;return t})),r=e?(0,b.default)(n,h):(0,b.default)(h,n);f(r,e)},onSelect(e,t){var{key:a}=e;p(a,t)},selectedRowKeys:h},w={pageSize:n},k=("left"===o?l:i)||(e=>{var{key:t,disabled:a}=e;return{onClick:()=>{a||g||p(t,!(0,d.default)(h).call(h,t))}}});return y.default.createElement(m.default,{loading:r,rowSelection:x,columns:v,dataSource:c,pagination:w,size:"small",style:{pointerEvents:g?"none":null},onRow:k})}))};class _ extends y.Component{constructor(e){super(e),(0,f.default)(this,"getTargetKey",(()=>{var{oriTargetKeys:e,value:t}=this.props;if(!(0,v.default)(e)||!(0,v.default)(t)){var{onChange:a}=this.props;a&&a(e||t||[])}})),(0,f.default)(this,"onChange",(e=>{this.setState({targetKeys:e});var{onChange:t}=this.props;t&&t(e)})),this.state={targetKeys:[]}}static getDerivedStateFromProps(e,t){var{value:a=[]}=e;return a!==t.targetKeys?{targetKeys:a}:null}componentDidMount(){this.getTargetKey()}render(){var{disabled:e,showSearch:t,leftTableColumns:a,rightTableColumns:n,dataSource:r,filterOption:l,titles:i,pageSize:o,loading:u,onRowLeft:s,onRowRight:d}=this.props,{targetKeys:c}=this.state;return y.default.createElement(y.default.Fragment,null,y.default.createElement(k,{titles:i,pageSize:o,dataSource:r,targetKeys:c,disabled:e,showSearch:t,onChange:this.onChange,filterOption:l,leftColumns:a,rightColumns:n,loading:u,onRowLeft:s,onRowRight:d}))}}a.default=_,(0,f.default)(_,"propTypes",{titles:x.default.array,leftTableColumns:x.default.array.isRequired,rightTableColumns:x.default.array.isRequired,dataSource:x.default.array.isRequired,disabled:x.default.bool,showSearch:x.default.bool,filterOption:x.default.func,onChange:x.default.func,value:x.default.array,pageSize:x.default.number,loading:x.default.bool,onRowLeft:x.default.func,onRowRight:x.default.func}),(0,f.default)(_,"defaultProps",{titles:[t("Optional list"),t("Selected list")],disabled:!1,showSearch:!0,filterOption:(e,t)=>{var a;return-1!==(0,c.default)(a=t.name).call(a,e)},onChange:null,value:[],pageSize:5,loading:!1})},1868:function(e,t,a){var n=a(1869);"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:undefined,insertInto:void 0};a(75)(n,r);n.locals&&(e.exports=n.locals)},1869:function(e,t,a){(t=e.exports=a(74)(!1)).push([e.i,".index__cpu--1lkn3 {\n margin-right: 8px;\n}\n.index__ram--1uTZP {\n margin-right: 8px;\n margin-left: 16px;\n}\n",""]),t.locals={cpu:"index__cpu--1lkn3",ram:"index__ram--1uTZP"}},1870:function(e,t,a){"use strict";var n=a(160),r=a(19),l=a(25),i=a(21);r(t,"__esModule",{value:!0}),t.default=void 0;var o=i(a(27)),u=i(a(90)),s=i(a(57)),d=i(a(409));a(1198);var c=i(a(1199));a(1196);var f=i(a(1197));a(571);var p=i(a(417)),h=i(a(36)),m=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=v(t);if(a&&a.has(e))return a.get(e);var n={},i=r&&l;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=i?l(e,o):null;u&&(u.get||u.set)?r(n,o,u):n[o]=e[o]}n.default=e,a&&a.set(e,n);return n}(a(0)),g=(a(173),i(a(16)));function v(e){if("function"!=typeof n)return null;var t=new n,a=new n;return(v=function(e){return e?a:t})(e)}class y extends m.Component{constructor(){super(...arguments),(0,h.default)(this,"onChange",(e=>{var{onChange:t,options:a}=this.props,n={};(0,o.default)(e).call(e,(e=>{n[e]=!0})),(0,o.default)(a).call(a,(t=>{var{value:a}=t;n[a]=(0,u.default)(e).call(e,a)>=0})),t&&t(n)})),(0,h.default)(this,"getValues",(()=>{var{value:e,options:t}=this.props,a=[];return(0,o.default)(t).call(t,(t=>{var n=t.value;e[n]&&a.push(n)})),a}))}render(){var{className:e,options:t,span:a}=this.props,n=this.getValues(),r={className:e,onChange:this.onChange};return m.default.createElement(p.default.Group,(0,d.default)({},r,{value:n,style:{width:"100%"}}),m.default.createElement(c.default,null,(0,s.default)(t).call(t,(e=>m.default.createElement(f.default,{span:a,key:e.value},m.default.createElement(p.default,{value:e.value},e.label))))))}}t.default=y,(0,h.default)(y,"propTypes",{value:g.default.object,className:g.default.string,options:g.default.array,onChange:g.default.func,span:g.default.number}),(0,h.default)(y,"defaultProps",{value:{},options:[],span:8})},1871:function(e,a,n){"use strict";var r=n(160),l=n(19),i=n(25),o=n(21);l(a,"__esModule",{value:!0}),a.default=void 0,n(1469);var u=o(n(1470));n(333);var s=o(n(332));n(1205);var d=o(n(1206)),c=o(n(409)),f=o(n(62)),p=o(n(51)),h=o(n(36)),m=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=y(t);if(a&&a.has(e))return a.get(e);var n={},r=l&&i;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=r?i(e,o):null;u&&(u.get||u.set)?l(n,o,u):n[o]=e[o]}n.default=e,a&&a.set(e,n);return n}(n(0)),g=(n(173),n(1491)),v=o(n(16));function y(e){if("function"!=typeof r)return null;var t=new r,a=new r;return(y=function(e){return e?a:t})(e)}class b extends m.Component{constructor(){var e;super(...arguments),e=this,(0,h.default)(this,"onChange",(e=>{var{onChange:t}=this.props;t&&t(e)})),(0,h.default)(this,"handleUpload",function(){var t=(0,p.default)((function*(t){var a=yield(0,g.getText)(t);return e.onChange(a),!1}));return function(e){return t.apply(this,arguments)}}()),(0,h.default)(this,"onChangeInput",(e=>{this.onChange(e)}))}render(){var e=this.props,{value:a,placeholder:n,accept:r}=e,l=(0,f.default)(e,["value","placeholder","accept"]);return m.default.createElement(m.default.Fragment,null,m.default.createElement(d.default.TextArea,(0,c.default)({placeholder:n,value:a,onChange:this.onChange,style:{fontFamily:'"Menlo", "Liberation Mono", "Consolas", "DejaVu Sans Mono", "Ubuntu Mono", "Courier New", "andale mono", "lucida console", monospace'}},l)),m.default.createElement(u.default,{beforeUpload:this.handleUpload,showUploadList:!1,accept:r},m.default.createElement(s.default,{type:"link"},t("Load from local files"))))}}a.default=b,(0,h.default)(b,"propTypes",{value:v.default.string,placeholder:v.default.string,accept:v.default.any,onChange:v.default.func}),(0,h.default)(b,"defaultProps",{value:"",placeholder:t("Please input"),accept:"",onChange:e=>{}})},1872:function(e,a,n){"use strict";var r=n(33),l=n(44),i=n(32),o=n(25),u=n(27),s=n(45),d=n(46),c=n(19),f=n(21);c(a,"__esModule",{value:!0}),a.default=void 0,n(333);var p=f(n(332)),h=f(n(1294));n(1198);var m=f(n(1199)),g=f(n(1380));n(1196);var v=f(n(1197));n(1216);var y=f(n(1217)),b=f(n(409)),x=f(n(36)),w=f(n(32)),k=f(n(57)),_=f(n(226)),C=f(n(65)),M=f(n(0)),N=(n(173),n(555),f(n(1873))),S=n(556);function I(e,t){var a=r(e);if(l){var n=l(e);t&&(n=i(n).call(n,(function(t){return o(e,t).enumerable}))),a.push.apply(a,n)}return a}var{isIPv4:E,isIpv6:T}=S.ipValidate,j=e=>{var a,{componentProps:n,formItemProps:r}=e,{subnets:l,maxNumber:i=10,formRef:f}=n,{name:S,value:j=[],onChange:A}=r,D=(0,w.default)(a=(0,k.default)(l).call(l,(e=>function(e){for(var t=1;t<arguments.length;t++){var a,n=null!=arguments[t]?arguments[t]:{};if(t%2)u(a=I(Object(n),!0)).call(a,(function(t){(0,x.default)(e,t,n[t])}));else if(s)d(e,s(n));else{var r;u(r=I(Object(n))).call(r,(function(t){c(e,t,o(n,t))}))}}return e}({label:e.name,value:e.id},e)))).call(a,(e=>!(0,_.default)(j).call(j,(t=>!!t&&t.subnet===e.value))));return M.default.createElement(M.default.Fragment,null,M.default.createElement(y.default.Item,r,0===D.length?M.default.createElement("div",null,t("The selected network has no subnet")):M.default.createElement(y.default.List,{name:S},((e,a)=>{var{add:n,remove:r}=a;return M.default.createElement(M.default.Fragment,null,(0,k.default)(e).call(e,(e=>M.default.createElement(m.default,{key:e.key,gutter:[16,16]},M.default.createElement(v.default,{span:22},M.default.createElement(y.default.Item,(0,b.default)({},e,{validateTrigger:["onChange","onBlur"],rules:[{required:!0,validator:(e,a)=>{if(!a||!a.subnet)return C.default.reject(new Error(t("Missing Subnet")));if("manual"===a.ip_address.type){var{ip:n}=a.ip_address||{};if(!n)return C.default.reject(new Error(t("Missing IP Address")));if(!E(n)&&!T(n))return C.default.reject(new Error(t("Invalid: Please input a valid ip")))}return C.default.resolve(!0)}}]}),M.default.createElement(N.default,{field:e,subnetsAvailable:D,onChange:e=>{return t=e,void(A&&A(t));var t}}))),M.default.createElement(v.default,{span:2},M.default.createElement(g.default,{onClick:()=>{r(e.name),f.current.validateFields([S])}}))))),e.length<i&&M.default.createElement(p.default,{type:"dashed",onClick:()=>{n(),f.current.validateFields([S])},block:!0,icon:M.default.createElement(h.default,null)},t("Add IP")))}))))};j.isFormItem=!0;var A=j;a.default=A},1873:function(e,a,n){"use strict";var r=n(33),l=n(44),i=n(32),o=n(25),u=n(27),s=n(45),d=n(46),c=n(19),f=n(160),p=n(21);c(a,"__esModule",{value:!0}),a.default=void 0,n(1198);var h=p(n(1199));n(1196);var m=p(n(1197));n(560);var g=p(n(412)),v=p(n(36)),y=p(n(102)),b=p(n(81)),x=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=k(t);if(a&&a.has(e))return a.get(e);var n={},r=c&&o;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?o(e,l):null;i&&(i.get||i.set)?c(n,l,i):n[l]=e[l]}n.default=e,a&&a.set(e,n);return n}(n(0)),w=(n(173),p(n(1874)));function k(e){if("function"!=typeof f)return null;var t=new f,a=new f;return(k=function(e){return e?a:t})(e)}function _(e,t){var a=r(e);if(l){var n=l(e);t&&(n=i(n).call(n,(function(t){return o(e,t).enumerable}))),a.push.apply(a,n)}return a}function C(e){for(var t=1;t<arguments.length;t++){var a,n=null!=arguments[t]?arguments[t]:{};if(t%2)u(a=_(Object(n),!0)).call(a,(function(t){(0,v.default)(e,t,n[t])}));else if(s)d(e,s(n));else{var r;u(r=_(Object(n))).call(r,(function(t){c(e,t,o(n,t))}))}}return e}var M=e=>{var a,{subnetsAvailable:n,onChange:r,value:l}=e;l=l||{subnet:void 0,ip_address:{type:"dhcp",ip:void 0}};var[i,o]=(0,x.useState)(l.subnet),[u,s]=(0,x.useState)(l.ip_address),[d,c]=(0,x.useState)(!!l.subnet||!1),f=(0,y.default)(n).call(n,(e=>e.id===i)),p=e=>{var t=C(C({},l),{},{subnet:i,ip_address:u},e);r&&r(t)};return x.default.createElement(h.default,{gutter:[16,16]},x.default.createElement(m.default,{span:8},x.default.createElement(g.default,{placeholder:t("Please select"),options:n,value:i,onChange:(e,t)=>{o(t.value),c(!0),p({subnet:t.value})}}),f&&x.default.createElement("div",{style:{marginTop:16}},(0,b.default)(a="".concat(t("Cidr"),": ")).call(a,f.cidr))),f&&d&&x.default.createElement(m.default,{span:14},x.default.createElement(w.default,{value:u,version:f.ip_version||4,onChange:e=>{s(e),p({ip_address:e})}})))};a.default=M},1874:function(e,a,n){"use strict";var r=n(33),l=n(44),i=n(32),o=n(25),u=n(27),s=n(45),d=n(46),c=n(19),f=n(160),p=n(21);c(a,"__esModule",{value:!0}),a.default=void 0,n(1198);var h=p(n(1199));n(1205);var m=p(n(1206));n(1196);var g=p(n(1197));n(560);var v=p(n(412)),y=p(n(36)),b=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=x(t);if(a&&a.has(e))return a.get(e);var n={},r=c&&o;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?o(e,l):null;i&&(i.get||i.set)?c(n,l,i):n[l]=e[l]}n.default=e,a&&a.set(e,n);return n}(n(0));n(173);function x(e){if("function"!=typeof f)return null;var t=new f,a=new f;return(x=function(e){return e?a:t})(e)}function w(e,t){var a=r(e);if(l){var n=l(e);t&&(n=i(n).call(n,(function(t){return o(e,t).enumerable}))),a.push.apply(a,n)}return a}function k(e){for(var t=1;t<arguments.length;t++){var a,n=null!=arguments[t]?arguments[t]:{};if(t%2)u(a=w(Object(n),!0)).call(a,(function(t){(0,y.default)(e,t,n[t])}));else if(s)d(e,s(n));else{var r;u(r=w(Object(n))).call(r,(function(t){c(e,t,o(n,t))}))}}return e}a.default=e=>{var{value:a={},onChange:n}=e,[r,l]=(0,b.useState)(a.type||"dhcp"),[i,o]=(0,b.useState)(a.ip||void 0),u=e=>{n&&n(k(k({ip:i,type:r},a),e))};return b.default.createElement(h.default,{gutter:[16]},b.default.createElement(g.default,{span:12},b.default.createElement(v.default,{value:r,onChange:e=>{var t=e||"dhcp";l(t),u({type:t})},options:[{value:"dhcp",label:t("Automatically Assigned Address")},{value:"manual",label:t("Manual input")}]})),b.default.createElement(g.default,{span:12},"manual"===r&&b.default.createElement(m.default,{onChange:e=>{var t=e.currentTarget.value;o(t),u({ip:t})},defaultValue:i})))}},1875:function(e,a,n){"use strict";var r=n(33),l=n(44),i=n(32),o=n(25),u=n(27),s=n(45),d=n(46),c=n(19),f=n(160),p=n(21);c(a,"__esModule",{value:!0}),a.default=void 0,n(1198);var h=p(n(1199));n(1205);var m=p(n(1206));n(1196);var g=p(n(1197));n(1216);var v=p(n(1217));n(560);var y=p(n(412)),b=p(n(36)),x=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=k(t);if(a&&a.has(e))return a.get(e);var n={},r=c&&o;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?o(e,l):null;i&&(i.get||i.set)?c(n,l,i):n[l]=e[l]}n.default=e,a&&a.set(e,n);return n}(n(0)),w=(n(173),n(556));function k(e){if("function"!=typeof f)return null;var t=new f,a=new f;return(k=function(e){return e?a:t})(e)}function _(e,t){var a=r(e);if(l){var n=l(e);t&&(n=i(n).call(n,(function(t){return o(e,t).enumerable}))),a.push.apply(a,n)}return a}function C(e){for(var t=1;t<arguments.length;t++){var a,n=null!=arguments[t]?arguments[t]:{};if(t%2)u(a=_(Object(n),!0)).call(a,(function(t){(0,b.default)(e,t,n[t])}));else if(s)d(e,s(n));else{var r;u(r=_(Object(n))).call(r,(function(t){c(e,t,o(n,t))}))}}return e}class M extends x.Component{constructor(e){super(e),(0,b.default)(this,"handleSelectChange",(e=>{var{name:t}=this.state;this.setState({name:C(C({},t),{},{type:e})},(()=>{var{onChange:e}=this.props;e&&e(this.state.name)}))})),(0,b.default)(this,"handleInputChange",(e=>{var{name:t}=this.state;this.setState({name:C(C({},t),{},{mac:e})})})),this.state={name:{type:"",mac:""}}}render(){var{value:e,name:a,options:n}=this.props,{type:r}=e||{type:void 0};return x.default.createElement(h.default,{gutter:16},x.default.createElement(g.default,{span:12},x.default.createElement(v.default.Item,{name:[a,"type"],style:{marginBottom:0}},x.default.createElement(y.default,{placeholder:t("Please select"),options:n||[{label:t("Auto allocate mac address"),value:"auto"},{label:t("Manual input"),value:"manual"}],onChange:this.handleSelectChange}))),x.default.createElement(g.default,{span:12},e&&"manual"===r?x.default.createElement(v.default.Item,{hidden:"auto"===r||void 0===r,name:[a,"mac"],rules:[{validator:w.macAddressValidate,required:!0,message:t('Invalid Mac Address. Please Use ":" as separator.')}],style:{marginBottom:0}},x.default.createElement(m.default,{maxLength:17,onChange:this.handleInputChange})):null))}}var N=M;a.default=N},1876:function(e,a,n){"use strict";var r=n(33),l=n(44),i=n(32),o=n(25),u=n(27),s=n(45),d=n(46),c=n(19),f=n(160),p=n(21);c(a,"__esModule",{value:!0}),a.default=void 0;var h=p(n(27)),m=p(n(33)),g=p(n(102)),v=p(n(90)),y=p(n(81)),b=p(n(57)),x=p(n(32)),w=p(n(198)),k=p(n(339)),_=p(n(579));n(1484);var C=p(n(1485));n(411);var M=p(n(227));n(572);var N=p(n(574));n(1877);var S=p(n(1880)),I=p(n(62));n(1239);var E=p(n(1240));n(1205);var T=p(n(1206));n(560);var j=p(n(412)),A=p(n(36)),D=p(n(559)),P=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=R(t);if(a&&a.has(e))return a.get(e);var n={},r=c&&o;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?o(e,l):null;i&&(i.get||i.set)?c(n,l,i):n[l]=e[l]}n.default=e,a&&a.set(e,n);return n}(n(0)),L=n(34),O=(n(173),n(161)),z=p(n(1895));function R(e){if("function"!=typeof f)return null;var t=new f,a=new f;return(R=function(e){return e?a:t})(e)}function U(e,t){var a=r(e);if(l){var n=l(e);t&&(n=i(n).call(n,(function(t){return o(e,t).enumerable}))),a.push.apply(a,n)}return a}function F(e){for(var t=1;t<arguments.length;t++){var a,n=null!=arguments[t]?arguments[t]:{};if(t%2)u(a=U(Object(n),!0)).call(a,(function(t){(0,A.default)(e,t,n[t])}));else if(s)d(e,s(n));else{var r;u(r=U(Object(n))).call(r,(function(t){c(e,t,o(n,t))}))}}return e}class V extends P.Component{constructor(e){var a;super(e),a=this,(0,A.default)(this,"initState",(e=>{var t,{value:a,metadata:n=[]}=e,r=[],l={};return(0,h.default)(t=(0,m.default)(a)).call(t,(e=>{var t=(0,g.default)(n).call(n,(t=>{var a,{detail:{properties:n={}}={}}=t;return(0,v.default)(a=(0,m.default)(n)).call(a,e)>=0}));if(t){var i,{namespace:o}=t,u=(0,y.default)(i="".concat(o,"--")).call(i,e);r.push(u),l[u]=a[e]}})),{checkedKeys:[],targetKeys:r,values:l,selectedKeysTable:[]}})),(0,A.default)(this,"onValuesChange",(e=>{var t,{onChange:a}=this.props,n={};(0,h.default)(t=(0,m.default)(e)).call(t,(t=>{var a=t.split("--")[1];n[a]=String(e[t])})),a&&a(n)})),(0,A.default)(this,"onInputChange",((e,t)=>{var{key:a}=t,{values:n={}}=this.state,r=e.target?e.target.value:e;n[a]=r,this.setState({values:n}),this.onValuesChange(n)})),(0,A.default)(this,"renderInput",(e=>{var{type:a,defaultValue:n,operators:r,enum:l=[],minimum:i,maximum:o,items:u={}}=e&&e.detail||{};if("boolean"===a){var s=(0,O.getYesNoList)();return P.default.createElement(j.default,{options:s,defaultValue:n,onChange:t=>this.onInputChange(t,e),placeholder:t("Please select")})}if("integer"===a||"number"===a||"string"===a&&0===l.length){var d={defaultValue:n,onChange:t=>this.onInputChange(t,e),placeholder:t("Please input"),required:!0};return void 0!==i&&(d.minimum=i),void 0!==o&&(d.maximum=o),"string"===a?P.default.createElement(T.default,d):("integer"===a&&(d.precision=0,d.formatter=e=>"$ ".concat(e).replace(/\D/g,"")),P.default.createElement(E.default,d))}if(l.length>0){var c=(0,b.default)(l).call(l,(e=>({value:e,label:e})));return P.default.createElement(j.default,{options:c,defaultValue:n,onChange:t=>this.onInputChange(t,e),placeholder:t("Please select")})}if(u.enum){var f={defaultValue:n,items:u,operators:r,onChange:t=>this.onInputChange(t,e)};return P.default.createElement(z.default,f)}return null})),(0,A.default)(this,"flatten",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];(0,h.default)(e).call(e,(e=>{var{children:n=[]}=e;t.push(e),a.flatten(n,t)}))})),(0,A.default)(this,"getTreeData",(()=>{var e=[];return this.flatten(this.metadata,e),e})),(0,A.default)(this,"getTreeDataWithoutFather",(()=>{var e=[];return this.flatten(this.metadata,e),(0,x.default)(e).call(e,(e=>{var t;return(0,v.default)(t=e.key).call(t,"--")>=0}))})),(0,A.default)(this,"getAllTreeKeys",(()=>{var e=this.getTreeData();return(0,b.default)(e).call(e,(e=>e.key))})),(0,A.default)(this,"generateTree",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return(0,b.default)(e).call(e,(e=>{var{children:n}=e,r=(0,I.default)(e,["children"]);return F(F({},r),{},{disabled:(0,w.default)(t).call(t,r.key),children:a.generateTree(n,t)})}))})),(0,A.default)(this,"isChecked",((e,t)=>-1!==(0,v.default)(e).call(e,t))),(0,A.default)(this,"isChildKey",(e=>(0,v.default)(e).call(e,"--")>=0)),(0,A.default)(this,"onCheckTree",(e=>t=>{var a=this.getAllTreeKeys();(0,h.default)(a).call(a,(a=>{var n=(0,v.default)(t).call(t,a)>=0;this.isChildKey(a)&&e(a,n)})),this.setState({checkedKeys:t})})),(0,A.default)(this,"renderTree",(e=>{var{onItemSelect:t,targetKeys:a}=e,{checkedKeys:n}=this.state;return P.default.createElement(S.default,{blockNode:!0,checkable:!0,checkedKeys:n,treeData:this.generateTree(this.metadata,a),onCheck:this.onCheckTree(t)})})),(0,A.default)(this,"renderTable",(e=>{var{filteredItems:t,onItemSelectAll:a,onItemSelect:n,disabled:r}=e,{selectedKeysTable:l}=this.state,i=this,o={getCheckboxProps:e=>({disabled:r||e.disabled}),onSelectAll(e,t){var n=e?(0,b.default)(t).call(t,(e=>e.key)):[];a(e?n:l,e),i.setState({selectedKeysTable:n})},onSelect(e,t){var{key:a}=e;n(a,t);var r=[];r=t?[...l,a]:(0,x.default)(l).call(l,(e=>e!==a)),i.setState({selectedKeysTable:r})},selectedRowKeys:l};return P.default.createElement(N.default,{rowSelection:o,columns:this.columns,dataSource:t,size:"small",pagination:!1,style:{pointerEvents:r?"none":null}})})),(0,A.default)(this,"getChildKeys",(e=>{var t,a=[];return(0,h.default)(t=this.metadata).call(t,(t=>{var n;(0,h.default)(n=t.children||[]).call(n,(t=>{t.namespace===e&&a.push(t.key)}))})),a})),(0,A.default)(this,"getDefaultValue",((e,t)=>{var{type:a,default:n,defaultValue:r,operators:l,enum:i=[],minimum:o,items:u={}}=e||{},{values:s}=this.state;return(0,D.default)(s,t)?s[t]:n||(r||("boolean"===a||("string"===a&&0===i.length?r:"string"===a&&i.length>0?r||i[0]:"integer"===a||"number"===a?r||o||0:i.length>0?i[0]:u.enum?l[0]:null)))})),(0,A.default)(this,"getItemDefaultValue",(e=>{var t,a,n=e.split("--");if(!(n.length<1)){var r=n[0],l=n[1],i=(0,g.default)(t=this.metadata).call(t,(e=>e.key===r));if(i){var o=(0,g.default)(a=i.children).call(a,(e=>e.realKey===l));if(o)return this.getDefaultValue(o.detail||{},e)}}})),(0,A.default)(this,"onTransferChange",((e,t,a)=>{var n=[];(0,h.default)(e).call(e,(e=>{if(e.split("--").length>1)n.push(e);else{var t=this.getChildKeys(e);n.push(...t)}}));var r=(0,k.default)(new _.default(n)),{values:l={}}=this.state,i={};(0,h.default)(r).call(r,(e=>{l[e]?i[e]=l[e]:i[e]=this.getItemDefaultValue(e)}));var{selectedKeysTable:o}=this.state,u="right"===t?[...o,...r]:(0,x.default)(o).call(o,(e=>(0,v.default)(a).call(a,e)<0)),s="right"===t?[]:a;this.setState({targetKeys:r,values:i,selectedKeysTable:u,checkedKeys:s}),this.onValuesChange(i)})),(0,A.default)(this,"onTransferSelectChange",((e,t)=>{this.setState({checkedKeys:e,selectedKeysTable:t})})),(0,A.default)(this,"getTransferSelectedKeys",(()=>{var{checkedKeys:e=[],selectedKeysTable:t=[]}=this.state,a=(0,x.default)(e).call(e,(e=>this.isChildKey(e)));return(0,k.default)(new _.default([...a,...t]))})),(0,A.default)(this,"renderTransferItem",(e=>P.default.createElement(M.default,{title:e.description},e.title||e.display_name))),this.state=this.initState(e)}get metadata(){var e,t=this,{metadata:a}=this.props;return(0,b.default)(e=a||[]).call(e,(e=>{var a,n,r,{detail:{properties:l={}}={},namespace:i,description:o,display_name:u,isObject:s,objName:d}=(0,L.toJS)(e),c=(0,b.default)(a=(0,m.default)(l)).call(a,(e=>{var a,n,r,o,c=(0,L.toJS)(l[e]),f=(0,y.default)(a="".concat(i,"--")).call(a,e),p=F(F({},c),{},{defaultValue:t.getDefaultValue(c,f)}),h=s?(0,y.default)(r=(0,y.default)(o="".concat(u," - ")).call(o,d," > ")).call(r,c.title):(0,y.default)(n="".concat(u," > ")).call(n,c.title),m=P.default.createElement("div",null,P.default.createElement("p",null,h),P.default.createElement("p",null,c.description));return{key:f,namespace:i,realKey:e,title:P.default.createElement(M.default,{title:m},c.title),description:c.description,detail:p}})),f=s?(0,y.default)(n="".concat(u," - ")).call(n,d):u,p=s?(0,y.default)(r="".concat(i,"-")).call(r,d):null,h=s?P.default.createElement("div",null,P.default.createElement("p",null,o),P.default.createElement("p",null,e.objDescription)):null;return{key:p||i,namespace:i,objectNamespace:p,description:h||o,title:P.default.createElement(M.default,{title:h||o},f),children:c}}))}get columns(){return[{dataIndex:"title",title:t("Name")},{dataIndex:"detail",title:t("Value"),render:(e,t)=>this.renderInput(t)}]}render(){var{targetKeys:e}=this.state,t=this.getTreeDataWithoutFather(),a=this.getTransferSelectedKeys();return P.default.createElement(C.default,{onChange:this.onTransferChange,onSelectChange:this.onTransferSelectChange,targetKeys:e,selectedKeys:a,dataSource:t,className:"tree-transfer",render:this.renderTransferItem,showSelectAll:!1},(a=>{var{direction:n,onItemSelect:r,onItemSelectAll:l,filteredItems:i,disabled:o}=a;return"left"===n?this.renderTree({onItemSelect:r,dataSource:t,targetKeys:e}):"right"===n?this.renderTable({filteredItems:i,onItemSelectAll:l,onItemSelect:r,disabled:o}):void 0}))}}a.default=V},1895:function(e,a,n){"use strict";var r=n(160),l=n(19),i=n(25),o=n(21);l(a,"__esModule",{value:!0}),a.default=void 0;var u=o(n(102)),s=o(n(90)),d=o(n(57)),c=o(n(81));n(560);var f=o(n(412)),p=o(n(36)),h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=m(t);if(a&&a.has(e))return a.get(e);var n={},r=l&&i;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=r?i(e,o):null;u&&(u.get||u.set)?l(n,o,u):n[o]=e[o]}n.default=e,a&&a.set(e,n);return n}(n(0));n(173);function m(e){if("function"!=typeof r)return null;var t=new r,a=new r;return(m=function(e){return e?a:t})(e)}class g extends h.Component{constructor(e){super(e),(0,p.default)(this,"getDefaultOperator",(()=>{var{defaultValue:e,operators:t}=this.props;return(0,u.default)(t).call(t,(t=>0===(0,s.default)(e).call(e,t)))||t[0]})),(0,p.default)(this,"getDefaultEnums",(()=>{var{defaultValue:e}=this.props,t=this.getDefaultOperator(),a=e.split("".concat(t," "));return 2===a.length&&a[1]?a[1].split(","):[]})),(0,p.default)(this,"getOptions",(()=>{var{operators:e=[]}=this.props;return(0,d.default)(e).call(e,(e=>({value:e,label:e})))})),(0,p.default)(this,"getEnumOptions",(()=>{var e,{items:t={enum:[]}}=this.props;return(0,d.default)(e=t.enum).call(e,(e=>({value:e,label:e})))})),(0,p.default)(this,"onChangeValue",(()=>{var{onChange:e}=this.props;if(e){var t,{operator:a,enums:n}=this.state;e((0,c.default)(t="".concat(a," ")).call(t,n.join(",")))}})),(0,p.default)(this,"onChangeOperator",(e=>{this.setState({operator:e},this.onChangeValue)})),(0,p.default)(this,"onChangeEnum",(e=>{this.setState({enums:e},this.onChangeValue)})),this.state={operator:this.getDefaultOperator(e),enums:this.getDefaultEnums(e)}}render(){var e=this.getOptions(),a=this.getEnumOptions(),n=this.getDefaultOperator(),r=this.getDefaultEnums();return h.default.createElement("div",null,h.default.createElement(f.default,{options:e,defaultValue:n,onChange:this.onChangeOperator,placeholder:t("Please select")}),h.default.createElement(f.default,{options:a,mode:"tags",defaultValue:r,onChange:this.onChangeEnum,placeholder:t("Please select")}))}}a.default=g},1896:function(e,a,n){"use strict";var r=n(33),l=n(44),i=n(32),o=n(25),u=n(27),s=n(45),d=n(46),c=n(19),f=n(160),p=n(21);c(a,"__esModule",{value:!0}),a.default=a.NetworkSelectTable=void 0;var h=p(n(32)),m=p(n(90)),g=p(n(27)),v=p(n(36)),y=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=N(t);if(a&&a.has(e))return a.get(e);var n={},r=c&&o;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?o(e,l):null;i&&(i.get||i.set)?c(n,l,i):n[l]=e[l]}n.default=e,a&&a.set(e,n);return n}(n(0)),b=n(406),x=p(n(1384)),w=n(228),k=n(334),_=n(564),C=n(161),M=n(558);function N(e){if("function"!=typeof f)return null;var t=new f,a=new f;return(N=function(e){return e?a:t})(e)}function S(e,t){var a=r(e);if(l){var n=l(e);t&&(n=i(n).call(n,(function(t){return o(e,t).enumerable}))),a.push.apply(a,n)}return a}class I extends y.Component{constructor(e){super(e),(0,v.default)(this,"getSelectTableProps",(e=>function(e){for(var t=1;t<arguments.length;t++){var a,n=null!=arguments[t]?arguments[t]:{};if(t%2)u(a=S(Object(n),!0)).call(a,(function(t){(0,v.default)(e,t,n[t])}));else if(s)d(e,s(n));else{var r;u(r=S(Object(n))).call(r,(function(t){c(e,t,o(n,t))}))}}return e}({columns:this.getColumns(e),filterParams:this.getNetworkFilters(e),extraParams:this.getNetworkExtraParams(e),backendPageStore:this.getStore(e),disabledFunc:this.getDisabledFunc(),isMulti:this.props.isMulti||!1},_.networkSortProps))),(0,v.default)(this,"getColumns",(e=>{var t,a=(0,_.networkColumns)(this);a[0].render=null;var{key:n}=e;return"project"===n?(0,h.default)(a).call(a,(e=>"project_id"!==e.dataIndex)):(0,m.default)(t=["shared","router:external"]).call(t,n)>=0?(0,h.default)(a).call(a,(e=>e.dataIndex!==n)):a})),(0,v.default)(this,"onChange",(e=>{var{onChange:t}=this.props;t&&t(e)})),(0,v.default)(this,"getNetworkFilters",(e=>{var{key:a}=e,n=[{label:t("Name"),name:"name"}];return"shared"!==a&&n.push({label:t("Shared"),name:"shared",options:k.yesNoOptions}),this.showExternal&&"external"!==a&&n.push({label:t("External Network"),name:"router:external",options:k.yesNoOptions}),"project"!==a&&n.push({label:t("Project Range"),name:"project_id",options:[{label:t("Current Project"),key:this.currentProjectId},{label:t("All"),key:"all"}]}),n})),(0,v.default)(this,"getNetworkExtraParams",(e=>{var{key:t}=e;return"project"===t?{project_id:this.currentProjectId}:"shared"===t?{shared:!0}:"external"===t?{"router:external":!0}:{}})),this.stores={project:new w.NetworkStore,shared:new w.NetworkStore,external:new w.NetworkStore,all:new w.NetworkStore}}get location(){var{location:e={}}=(this.props.rootStore||{}).routing||{};return e}get isAdminPage(){var{pathname:e}=this.location;return(0,C.isAdminPage)(e)}get currentProjectId(){return this.props.rootStore.projectId}get hasAdminRole(){return this.props.rootStore.hasAdminRole}get showExternal(){var{showExternal:e=!1}=this.props;return e}get networkTabs(){var e=[{title:t("Current Project Networks"),key:"project"},{title:t("Shared Networks"),key:"shared"}];return this.showExternal&&e.push({title:t("External Networks"),key:"external"}),this.hasAdminRole&&e.push({title:t("All Networks"),key:"all"}),(0,g.default)(e).call(e,(e=>{e.props=this.getSelectTableProps(e)})),e}getRouteName(e){return this.isAdminPage?"".concat(e,"Admin"):e}getRoutePath(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRouteName(e);return(0,M.getPath)({key:n,params:t,query:a})}get labelStyle(){return{marginRight:16}}getStore(e){var{key:t}=e;return this.stores[t]}getDisabledFunc(){return this.props.disabledFunc}render(){var{isMulti:e=!1,header:t,value:a}=this.props;return y.default.createElement(x.default,{tabs:this.networkTabs,onChange:this.onChange,isMulti:e,header:t,value:a})}}a.NetworkSelectTable=I;var E=(0,b.inject)("rootStore")((0,b.observer)(I));a.default=E},1900:function(e,a,n){"use strict";var r=n(33),l=n(44),i=n(32),o=n(25),u=n(27),s=n(45),d=n(46),c=n(19),f=n(160),p=n(21);c(a,"__esModule",{value:!0}),a.default=a.VolumeSelectTable=void 0;var h=p(n(32)),m=p(n(102)),g=p(n(27)),v=p(n(36)),y=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=_(t);if(a&&a.has(e))return a.get(e);var n={},r=c&&o;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?o(e,l):null;i&&(i.get||i.set)?c(n,l,i):n[l]=e[l]}n.default=e,a&&a.set(e,n);return n}(n(0)),b=n(406),x=p(n(1384)),w=n(410),k=n(557);function _(e){if("function"!=typeof f)return null;var t=new f,a=new f;return(_=function(e){return e?a:t})(e)}function C(e,t){var a=r(e);if(l){var n=l(e);t&&(n=i(n).call(n,(function(t){return o(e,t).enumerable}))),a.push.apply(a,n)}return a}class M extends y.Component{constructor(e){super(e),(0,v.default)(this,"getSelectTableProps",(e=>function(e){for(var t=1;t<arguments.length;t++){var a,n=null!=arguments[t]?arguments[t]:{};if(t%2)u(a=C(Object(n),!0)).call(a,(function(t){(0,v.default)(e,t,n[t])}));else if(s)d(e,s(n));else{var r;u(r=C(Object(n))).call(r,(function(t){c(e,t,o(n,t))}))}}return e}({columns:this.getColumns(e),filterParams:this.getVolumeFilters(e),extraParams:this.getVolumeExtraParams(e),backendPageStore:this.getStore(e),disabledFunc:this.getDisabledFunc(e),isMulti:this.props.isMulti||!1},k.volumeSortProps))),(0,v.default)(this,"getColumns",(e=>{var t=k.volumeColumns,{key:a}=e;return"available"===a?(0,h.default)(t).call(t,(e=>"status"!==e.dataIndex&&"attachments"!==e.dataIndex)):"shared"===a?(0,h.default)(t).call(t,(e=>"multiattach"!==e.dataIndex)):t})),(0,v.default)(this,"onChange",(e=>{var{onChange:t}=this.props;t&&t(e)})),(0,v.default)(this,"getVolumeFilters",(e=>{var{key:t}=e,a=[...k.volumeFilters];return"shared"===t?(0,h.default)(a).call(a,(e=>"multiattach"!==e.name)):"available"===t?(0,h.default)(a).call(a,(e=>"status"!==e.name)):a})),(0,v.default)(this,"getVolumeExtraParams",(e=>{var{key:t}=e;return"shared"===t?{multiattach:!0}:"available"===t?{status:"available"}:{}})),(0,v.default)(this,"disallowedMultiAttach",(e=>{var{attachments:t=[]}=e,{serverId:a}=this.props;return!!(0,m.default)(t).call(t,(e=>e.server_id===a))})),this.stores={available:new w.VolumeStore,shared:new w.VolumeStore}}get currentProjectId(){return this.props.rootStore.projectId}get hasAdminRole(){return this.props.rootStore.hasAdminRole}get showExternal(){var{showExternal:e=!1}=this.props;return e}get networkTabs(){var e=[{title:t("Available"),key:"available"},{title:t("Shared"),key:"shared"}];return(0,g.default)(e).call(e,(e=>{e.props=this.getSelectTableProps(e)})),e}get labelStyle(){return{marginRight:16}}getStore(e){var{key:t}=e;return this.stores[t]}getDisabledFunc(e){if("available"===e.key){var{disabledFunc:t=null}=this.props;return t}return this.disallowedMultiAttach}render(){var{isMulti:e=!1,header:t,value:a}=this.props;return y.default.createElement(x.default,{tabs:this.networkTabs,onChange:this.onChange,isMulti:e,header:t,value:a})}}a.VolumeSelectTable=M;var N=(0,b.inject)("rootStore")((0,b.observer)(M));a.default=N},1901:function(e,a,n){"use strict";var r=n(160),l=n(19),i=n(25),o=n(21);l(a,"__esModule",{value:!0}),a.default=void 0,n(1902);var u=o(n(1905)),s=o(n(36)),d=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=f(t);if(a&&a.has(e))return a.get(e);var n={},r=l&&i;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=r?i(e,o):null;u&&(u.get||u.set)?l(n,o,u):n[o]=e[o]}n.default=e,a&&a.set(e,n);return n}(n(0)),c=(n(173),o(n(16)));function f(e){if("function"!=typeof r)return null;var t=new r,a=new r;return(f=function(e){return e?a:t})(e)}class p extends d.Component{constructor(){super(...arguments),(0,s.default)(this,"onChange",(e=>{var{onChange:t}=this.props;t&&t(e)})),(0,s.default)(this,"getValue",(()=>{var{value:e,isWrappedValue:t}=this.props;return void 0===e?e:t?e.value:e}))}render(){var{treeData:e,placeholder:a=t("Please select"),disabled:n=!1}=this.props;return d.default.createElement(u.default,{className:this.props.className,showSearch:!0,allowClear:!0,placeholder:a,treeData:e,disabled:n,value:this.getValue(),onChange:this.onChange})}}a.default=p,p.propTypes={value:c.default.oneOfType([c.default.array,c.default.string]),isWrappedValue:c.default.bool,treeData:c.default.array,onChange:c.default.func}},1906:function(e,t,a){"use strict";var n=a(160),r=a(19),l=a(25),i=a(21);r(t,"__esModule",{value:!0}),t.default=void 0,a(560);var o=i(a(412)),u=i(a(36)),s=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=d(t);if(a&&a.has(e))return a.get(e);var n={},i=r&&l;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=i?l(e,o):null;u&&(u.get||u.set)?r(n,o,u):n[o]=e[o]}n.default=e,a&&a.set(e,n);return n}(a(0));a(173);function d(e){if("function"!=typeof n)return null;var t=new n,a=new n;return(d=function(e){return e?a:t})(e)}class c extends s.Component{constructor(e){super(e),(0,u.default)(this,"onChange",(e=>{this.setState({value:e,inputVal:void 0},(()=>{var{formRef:t,onChange:a,name:n}=this.props;t.current&&t.current.setFieldsValue({[n]:e}),a&&a(e)}))})),(0,u.default)(this,"onSearch",(e=>{e&&this.setState({inputVal:e})})),(0,u.default)(this,"onBlur",(()=>{var{inputVal:e}=this.state;e&&this.onChange(e)})),this.state={value:void 0,inputVal:void 0}}render(){var{options:e=[],filterOption:t=!1}=this.props,{value:a}=this.state;return s.default.createElement(o.default,{showSearch:!0,value:a,style:{width:"100%",height:"100%"},onChange:this.onChange,onSearch:this.onSearch,onBlur:this.onBlur,filterOption:t,onFocus:this.onFocusSelect,showArrow:!1,options:e,getPopupContainer:()=>document.body})}}t.default=c},1907:function(e,t,a){"use strict";var n=a(33),r=a(44),l=a(32),i=a(25),o=a(27),u=a(45),s=a(46),d=a(19),c=a(160),f=a(21);d(t,"__esModule",{value:!0}),t.default=k;var p=f(a(81)),h=f(a(198));a(1205);var m=f(a(1206));a(560);var g=f(a(412)),v=f(a(36)),y=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=x(t);if(a&&a.has(e))return a.get(e);var n={},r=d&&i;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var o=r?i(e,l):null;o&&(o.get||o.set)?d(n,l,o):n[l]=e[l]}n.default=e,a&&a.set(e,n);return n}(a(0)),b=(a(173),a(1908));function x(e){if("function"!=typeof c)return null;var t=new c,a=new c;return(x=function(e){return e?a:t})(e)}function w(e,t){var a=n(e);if(r){var o=r(e);t&&(o=l(o).call(o,(function(t){return i(e,t).enumerable}))),a.push.apply(a,o)}return a}function k(e){var{value:t,options:a,onChange:n}=e,[r,l]=(0,y.useState)(t.split(" ")[0]),[c,f]=(0,y.useState)(t.split(" ")[1]);(0,y.useEffect)((()=>{var[e,a]=t.split(" ");e===r&&a===c||(l(e),f(a))}),[t]);var b=e=>{var t,a=function(e){for(var t=1;t<arguments.length;t++){var a,n=null!=arguments[t]?arguments[t]:{};if(t%2)o(a=w(Object(n),!0)).call(a,(function(t){(0,v.default)(e,t,n[t])}));else if(u)s(e,u(n));else{var r;o(r=w(Object(n))).call(r,(function(t){d(e,t,i(n,t))}))}}return e}({prefix:r,number:c},e);n((0,p.default)(t="".concat(a.prefix," ")).call(t,a.number))};return y.default.createElement(m.default.Group,{compact:!0},y.default.createElement(g.default,{showSearch:!0,value:r,onChange:e=>{l(e),b({prefix:e})},style:{width:"50%"},options:a,filterOption:(e,t)=>{var a;return(0,h.default)(a=t.label.toLowerCase()).call(a,e.toLowerCase())},getPopupContainer:()=>document.body}),y.default.createElement(m.default,{value:c,onChange:e=>{var t=e.target.value;f(t),b({number:t})},style:{width:"50%"}}))}k.defaultProps={value:"+86 ",options:b.defaultCountries}},1908:function(e,a,n){"use strict";var r=n(19),l=n(21);r(a,"__esModule",{value:!0}),a.defaultCountries=void 0;var i,o=l(n(57)),u=l(n(33)),s=l(n(81)),d={1:["US","AG","AI","AS","BB","BM","BS","CA","DM","DO","GD","GU","JM","KN","KY","LC","MP","MS","PR","SX","TC","TT","VC","VG","VI"],7:["RU","KZ"],20:["EG"],27:["ZA"],30:["GR"],31:["NL"],32:["BE"],33:["FR"],34:["ES"],36:["HU"],39:["IT","VA"],40:["RO"],41:["CH"],43:["AT"],44:["GB","GG","IM","JE"],45:["DK"],46:["SE"],47:["NO","SJ"],48:["PL"],49:["DE"],51:["PE"],52:["MX"],53:["CU"],54:["AR"],55:["BR"],56:["CL"],57:["CO"],58:["VE"],60:["MY"],61:["AU","CC","CX"],62:["ID"],63:["PH"],64:["NZ"],65:["SG"],66:["TH"],81:["JP"],82:["KR"],84:["VN"],86:["CN"],90:["TR"],91:["IN"],92:["PK"],93:["AF"],94:["LK"],95:["MM"],98:["IR"],212:["MA","EH"],213:["DZ"],216:["TN"],218:["LY"],220:["GM"],221:["SN"],222:["MR"],223:["ML"],224:["GN"],225:["CI"],226:["BF"],227:["NE"],228:["TG"],229:["BJ"],230:["MU"],231:["LR"],232:["SL"],233:["GH"],234:["NG"],235:["TD"],236:["CF"],237:["CM"],238:["CV"],240:["GQ"],241:["GA"],242:["CG"],244:["AO"],245:["GW"],246:["IO"],248:["SC"],249:["SD"],250:["RW"],251:["ET"],252:["SO"],253:["DJ"],254:["KE"],255:["TZ"],256:["UG"],257:["BI"],258:["MZ"],260:["ZM"],261:["MG"],262:["RE","YT"],263:["ZW"],264:["NA"],265:["MW"],266:["LS"],267:["BW"],268:["SZ"],269:["KM"],291:["ER"],297:["AW"],298:["FO"],299:["GL"],350:["GI"],351:["PT"],352:["LU"],353:["IE"],354:["IS"],355:["AL"],356:["MT"],357:["CY"],358:["FI","AX"],359:["BG"],371:["LV"],372:["EE"],373:["MD"],374:["AM"],375:["BY"],376:["AD"],377:["MC"],378:["SM"],380:["UA"],385:["HR"],386:["SI"],387:["BA"],420:["CZ"],421:["SK"],423:["LI"],500:["FK"],501:["BZ"],502:["GT"],503:["SV"],504:["HN"],505:["NI"],506:["CR"],507:["PA"],509:["HT"],590:["GP","BL","MF"],591:["BO"],592:["GY"],593:["EC"],594:["GF"],595:["PY"],596:["MQ"],597:["SR"],598:["UY"],672:["NF"],673:["BN"],674:["NR"],675:["PG"],676:["TO"],677:["SB"],678:["VU"],679:["FJ"],680:["PW"],681:["WF"],682:["CK"],685:["WS"],687:["NC"],688:["TV"],689:["PF"],690:["TK"],691:["FM"],692:["MH"],850:["KP"],852:["HK"],853:["MO"],855:["KH"],856:["LA"],880:["BD"],886:["TW"],960:["MV"],961:["LB"],962:["JO"],963:["SY"],964:["IQ"],965:["KW"],966:["SA"],967:["YE"],968:["OM"],970:["PS"],971:["AE"],972:["IL"],973:["BH"],974:["QA"],975:["BT"],976:["MN"],977:["NP"],992:["TJ"],993:["TM"],994:["AZ"],995:["GE"],996:["KG"],998:["UZ"]},c={CN:t("China"),TW:t("Taiwan"),HK:t("Hong Kong"),MO:t("Macau"),KR:t("South Korea"),JP:t("Japan"),MY:t("Malaysia"),SG:t("Singapore"),NZ:t("New Zealand"),AU:t("Australia"),US:t("United States"),CA:t("Canada"),VN:t("Vietnam"),IN:t("India"),ID:t("Indonesia"),TH:t("Thailand"),PH:t("Philippines"),DK:t("Denmark"),FI:t("Finland"),FR:t("France"),DE:t("Germany"),GR:t("Greece"),IE:t("Ireland"),IL:t("Israel"),IT:t("Italy"),MX:t("Mexico"),NL:t("Netherlands"),NO:t("Norway"),PT:t("Portugal"),RU:t("Russia"),ZA:t("South Africa"),ES:t("Spain"),SE:t("Sweden"),CH:t("Switzerland"),BE:t("Belgium"),GB:t("United Kingdom"),AR:t("Argentina"),BR:t("Brazil"),KH:t("Kampuchea"),LTU:t("Lithuania"),LK:t("Sri Lanka"),NG:t("Nigeria"),AF:t("Afghanistan"),AL:t("Albania"),DZ:t("Algeria"),AS:t("American Samoa"),AD:t("Andorra"),AG:t("Antigua and Barbuda"),AM:t("Armenia"),AT:t("Austria"),BS:t("Bahamas"),BH:t("Bahrain"),BD:t("Bangladesh"),BY:t("Belarus"),BM:t("Bermuda"),BA:t("Bosnia and Herzegovina"),IO:t("British Indian Ocean Territory"),BF:t("Burkina Faso"),CF:t("Central African Republic"),TD:t("Chad"),CX:t("Christmas Island"),CC:t("Cocos (Keeling) Islands"),CO:t("Colombia"),CG:t("Republic of the Congo"),ZR:t("Democratic Republic of the Congo"),CR:t("Costa Rica"),CI:t("Cote D'Ivoire"),CU:t("Cuba"),CZ:t("Czech Republic"),GQ:t("Equatorial Guinea"),EE:t("Estonia"),FK:t("Falkland Islands (Malvinas)"),PF:t("French Polynesia"),GA:t("Gabon"),GP:t("Guadeloupe"),GW:t("Guinea Bissau"),GY:t("Guyana"),HN:t("Honduras"),HU:t("Hungary"),JO:t("Jordan"),KZ:t("Kazakhstan"),KE:t("Kenya"),KW:t("Kuwait"),KG:t("Kyrgyzstan"),LS:t("Lesotho"),MG:t("Madagascar"),MV:t("Maldives"),YT:t("Mayotte"),FM:t("Micronesia"),MC:t("Monaco"),MN:t("Mongolia"),MNE:t("Montenegro"),MS:t("Montserrat"),MM:t("Myanmar"),NR:t("Nauru"),NP:t("Nepal"),AN:t("Netherlands Antilles"),NC:t("New Caledonia"),NI:t("Nicaragua"),NF:t("Norfolk Island"),KP:t("North Korea"),MP:t("Northern Mariana Islands"),OM:t("Oman"),PK:t("Pakistan"),PW:t("Palau"),PA:t("Panama"),PG:t("Papua New Guinea"),PN:t("Pitcairn"),PL:t("Poland"),PR:t("Puerto Rico"),QA:t("Qatar"),RE:t("Reunion"),VCT:t("Saint Vincent and the Grenadines"),STP:t("Sao Tome and Principe"),SA:t("Saudi Arabia"),SRB:t("Serbia"),SC:t("Seychelles"),SK:t("Slovakia (Slovak Republic)"),SI:t("Slovenia"),SZ:t("Swaziland"),TJ:t("Tajikistan"),KNA:t("The Federation of Saint Kitts and Nevis"),ABH:t("the Republic of Abkhazia"),MKD:t("The Republic of Macedonia"),SSD:t("The Republic of South Sudan"),TN:t("Tunisia"),TM:t("Turkmenistan"),TV:t("Tuvalu"),UG:t("Uganda"),UA:t("Ukraine"),AE:t("United Arab Emirates"),UY:t("Uruguay"),UZ:t("Uzbekistan"),VA:t("Vatican City State (Holy See)"),WF:t("Wallis And Futuna Islands"),EH:t("Western Sahara"),YU:t("Yugoslavia"),ZM:t("Zambia"),AO:t("Angola"),AI:t("Anguilla"),AW:t("Aruba"),AZ:t("Azerbaijan"),BB:t("Barbados"),BZ:t("Belize"),BJ:t("Benin"),BT:t("Bhutan"),BO:t("Bolivia"),BW:t("Botswana"),BN:t("Brunei Darussalam"),BG:t("Bulgaria"),BI:t("Burundi"),CM:t("Cameroon"),CV:t("Cape Verde"),KY:t("Cayman Islands"),CL:t("Chile"),KM:t("Comoros"),CK:t("Cook Islands"),HR:t("Croatia (local name: Hrvatska)"),CY:t("Cyprus"),DJ:t("Djibouti"),DM:t("Dominica"),TP:t("East Timor"),EC:t("Ecuador"),EG:t("Egypt"),SV:t("El Salvador"),ER:t("Eritrea"),ET:t("Ethiopia"),FO:t("Faroe Islands"),FJ:t("Fiji"),GF:t("French Guiana"),GM:t("Gambia"),GE:t("Georgia"),GH:t("Ghana"),GI:t("Gibraltar"),GL:t("Greenland"),GD:t("Grenada"),GU:t("Guam"),GT:t("Guatemala"),GN:t("Guinea"),HT:t("Haiti"),IS:t("Iceland"),IR:t("Iran (Islamic Republic of)"),IQ:t("Iraq"),JM:t("Jamaica"),LAO:t("Lao People's Democratic Republic"),LV:t("Latvia"),LB:t("Lebanon"),LR:t("Liberia"),LY:t("Libyan Arab Jamahiriya"),LI:t("Liechtenstein"),LU:t("Luxembourg"),MW:t("Malawi"),ML:t("Mali"),MT:t("Malta"),MH:t("Marshall Islands"),MQ:t("Martinique"),MR:t("Mauritania"),MU:t("Mauritius"),MD:t("Moldova"),MA:t("Morocco"),MZ:t("Mozambique"),NA:t("Namibia"),NE:t("Niger"),PS:t("Palestine"),PY:t("Paraguay"),PE:t("Peru"),RO:t("Romania"),RW:t("Rwanda"),WS:t("Samoa"),SM:t("San Marino"),SN:t("Senegal"),SL:t("Sierra Leone"),SB:t("Solomon Islands"),SO:t("Somalia"),SD:t("Sudan"),SR:t("Suriname"),SY:t("Syrian Arab Republic"),TZ:t("Tanzania"),TG:t("Togo"),TK:t("Tokelau"),TO:t("Tonga"),TT:t("Trinidad and Tobago"),TR:t("Turkey"),TC:t("Turks and Caicos Islands"),VU:t("Vanuatu"),VE:t("Venezuela"),VI:t("Virgin Islands (U.S.)"),YE:t("Yemen"),ZW:t("Zimbabwe")},f=(0,o.default)(i=(0,u.default)(d)).call(i,(e=>{var t,a;return{label:(0,s.default)(t="+".concat(e," ")).call(t,(0,o.default)(a=d[e]).call(a,(e=>c[e])).join(",")),value:"+".concat(e)}}));a.defaultCountries=f},1924:function(e,a,n){"use strict";var r=n(19),l=n(21);r(a,"__esModule",{value:!0}),a.default=function(e){var a,n,r,l,p,h,{used:m=0,add:g=0,reserved:v=0,limit:y=1,title:b="",secondTitle:x=t("Quota")}=e,w=-1!==y,k=w?y:t("Infinity"),_=w?y-m-v-g:1;_=_<0?0:_;var C=(0,u.default)(a="".concat(t("Used"),": ")).call(a,m),M=v?(0,u.default)(n="".concat(t("Reserved"),": ")).call(n,v):"",N=(0,u.default)(r="".concat(t("New"),": ")).call(r,g),S=(0,u.default)(l="".concat(t("Left"),": ")).call(l,_),I=w?[C,N,S]:[C,N];v&&(0,s.default)(I).call(I,1,0,M);var E=I.join(" / "),T=m+v+g,j=(0,d.default)(T/y*100,10),A=(0,d.default)((m+v)/y*100,10),D=(0,f.getUsedValueColor)(j),P=c.default.createElement("span",null,(0,u.default)(p="".concat(b," ")).call(p,x,": ")," ",c.default.createElement("span",{style:{color:D}},(0,u.default)(h="".concat(T,"/")).call(h,k))),L=w?c.default.createElement(o.default,{percent:j,success:{percent:A,strokeColor:f.typeColors.used},strokeColor:f.typeColors.add,showInfo:!1}):c.default.createElement(o.default,{percent:0,showInfo:!1});return c.default.createElement("div",{style:{width:150}},c.default.createElement("div",{style:{fontWeight:"bold",textAlign:"center"}},P),c.default.createElement(i.default,{title:E},L))},n(411);var i=l(n(227));n(1222);var o=l(n(1223)),u=l(n(81)),s=l(n(562)),d=l(n(229)),c=l(n(0)),f=(n(173),n(1385))},1925:function(e,a,n){"use strict";var r=n(19),l=n(21);r(a,"__esModule",{value:!0}),a.default=function(e){var a,n,{reserved:r=0,title:l="",secondTitle:c=t("Quota")}=e,f=(0,o.default)(a=(0,o.default)(n="".concat(l," ")).call(n,c,": ")).call(a,t("Unlimit")),p=[{dataIndex:"used",title:t("Used"),align:"center",render:e=>s.default.createElement("span",{style:{color:d.typeColors.used}},e||"-")},{dataIndex:"add",title:t("New"),align:"center",render:e=>s.default.createElement("span",{style:{color:d.typeColors.add}},e||"-")}];r&&(0,u.default)(p).call(p,1,0,{dataIndex:"reserved",title:t("Reserved"),align:"center"});return s.default.createElement("div",null,s.default.createElement(i.default,{columns:p,dataSource:[e],pagination:!1,title:()=>f,bordered:!0,size:"small"}))},n(572);var i=l(n(574)),o=l(n(81)),u=l(n(562)),s=l(n(0)),d=(n(173),n(1385))},1926:function(e,t,a){var n=a(1927);"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:undefined,insertInto:void 0};a(75)(n,r);n.locals&&(e.exports=n.locals)},1927:function(e,t,a){(t=e.exports=a(74)(!1)).push([e.i,"/* init */\n/* specific color */\n/* border */\n/* background */\n/* shadow */\n/* font */\n/* 中号字体 */\n/* animation */\n/* size */\n/* sider */\n.index__wrapper--1yn9F {\n position: relative;\n height: 100%;\n padding-top: 16px;\n overflow: hidden;\n background-color: #fff;\n}\n.index__wrapper--1yn9F .ant-spin-nested-loading {\n height: 100%;\n}\n.index__wrapper--1yn9F .ant-spin-container {\n height: 100%;\n}\n.index__wrapper-page-padding--2lbhS {\n padding-top: 0;\n}\n.index__form--3rBuv {\n height: calc(100% - 48px);\n margin-right: 32px;\n margin-left: 32px;\n overflow-y: auto;\n background-color: #fff;\n}\n.index__form--3rBuv .ant-form-item-label > label {\n margin-left: 12px;\n}\n.index__form--3rBuv .ant-form-item-label > .ant-form-item-required {\n margin-left: 0;\n}\n.index__form--3rBuv .ant-form-item-label {\n white-space: break-spaces;\n}\n.index__footer--3IW56 {\n position: absolute;\n right: 0;\n bottom: 0;\n left: 0;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n height: 48px;\n background-color: #fff;\n -webkit-box-shadow: 0 2px 30px 0 rgba(0, 0, 0, 0.09);\n box-shadow: 0 2px 30px 0 rgba(0, 0, 0, 0.09);\n}\n.index__btns--1iSOL {\n float: right;\n margin-right: 32px;\n}\n.index__btns--1iSOL button {\n margin-left: 8px;\n}\n.form-item-text {\n margin-bottom: 0;\n}\n.form-item-divider {\n width: 98% !important;\n min-width: 90% !important;\n margin-right: auto;\n margin-left: auto;\n}\n.ant-radio-button-wrapper {\n color: rgba(0, 0, 0, 0.65);\n}\n.ant-radio-button-wrapper-disabled {\n color: rgba(0, 0, 0, 0.25);\n}\n.index__tips--1sDt0 {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n margin-bottom: 16px;\n padding: 8px 16px;\n word-break: break-word;\n background: rgba(0, 0, 0, 0.15);\n}\n.index__tips-icon--2QJ8G {\n margin-top: 2px;\n margin-right: 4px;\n color: #0068ff;\n}\n.index__footer-left--2zaZk {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: left;\n -ms-flex-pack: left;\n justify-content: left;\n float: left;\n height: 48px;\n margin-left: 16px;\n color: #484848;\n}\n.index__submit-tip--2ljzW {\n display: inline-block;\n font-size: 16px;\n}\n.index__progress-wrapper--1uQV2 {\n width: 170px;\n}\n.index__right-top-extra-wrapper---wJzs {\n position: absolute;\n top: 0;\n right: 30px;\n z-index: 100;\n background-color: #fff;\n border-radius: 5px;\n -webkit-box-shadow: 0 2px 30px 0 rgba(0, 0, 0, 0.2);\n box-shadow: 0 2px 30px 0 rgba(0, 0, 0, 0.2);\n}\n.index__right-top-extra-wrapper---wJzs .ant-card-head {\n min-width: 32px;\n}\n.index__right-top-extra-wrapper---wJzs .ant-card-head .ant-card-extra {\n padding: 8px 0;\n}\n.index__modal-right-extra-wrapper--2_yIQ {\n border-left: solid 2px #f2f2f2;\n}\n",""]),t.locals={wrapper:"index__wrapper--1yn9F","wrapper-page-padding":"index__wrapper-page-padding--2lbhS",form:"index__form--3rBuv",footer:"index__footer--3IW56",btns:"index__btns--1iSOL",tips:"index__tips--1sDt0","tips-icon":"index__tips-icon--2QJ8G","footer-left":"index__footer-left--2zaZk","submit-tip":"index__submit-tip--2ljzW","progress-wrapper":"index__progress-wrapper--1uQV2","right-top-extra-wrapper":"index__right-top-extra-wrapper---wJzs","modal-right-extra-wrapper":"index__modal-right-extra-wrapper--2_yIQ"}},1928:function(e,t,a){"use strict";var n=a(19),r=a(21);n(t,"__esModule",{value:!0}),t.default=void 0;var l=r(a(65)),i=r(a(36)),o=r(a(1929));class u extends o.default{static get allowed(){return l.default.resolve()}get hasConfirmStep(){return!0}}t.default=u,(0,i.default)(u,"actionType","link"),(0,i.default)(u,"buttonType","primary"),(0,i.default)(u,"isDanger",!1),(0,i.default)(u,"id","step-action"),(0,i.default)(u,"title","StepAction"),(0,i.default)(u,"path","/"),(0,i.default)(u,"policy",""),(0,i.default)(u,"aliasPolicy","")},1929:function(e,a,n){"use strict";var r=n(33),l=n(44),i=n(32),o=n(25),u=n(27),s=n(45),d=n(46),c=n(19),f=n(21);c(a,"__esModule",{value:!0}),a.default=void 0;var p=f(n(65)),h=f(n(200)),m=f(n(1204)),g=f(n(57)),v=f(n(81)),y=f(n(335));n(337);var b=f(n(338));n(1930);var x=f(n(1933));n(333);var w=f(n(332)),k=f(n(36)),_=f(n(199)),C=f(n(1386)),M=f(n(0)),N=f(n(1228)),S=(n(173),f(n(4))),I=n(161),E=n(341),T=f(n(1296)),j=f(n(1501)),A=f(n(1504)),D=n(558),P=f(n(1952));function L(e,t){var a=r(e);if(l){var n=l(e);t&&(n=i(n).call(n,(function(t){return o(e,t).enumerable}))),a.push.apply(a,n)}return a}function O(e){for(var t=1;t<arguments.length;t++){var a,n=null!=arguments[t]?arguments[t]:{};if(t%2)u(a=L(Object(n),!0)).call(a,(function(t){(0,k.default)(e,t,n[t])}));else if(s)d(e,s(n));else{var r;u(r=L(Object(n))).call(r,(function(t){c(e,t,o(n,t))}))}}return e}class z extends M.default.Component{constructor(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(e),(0,k.default)(this,"onSubmit",(e=>p.default.resolve())),(0,k.default)(this,"onOk",(()=>{var{data:e}=this.state;this.values=e;var t=this.getSubmitData(e);this.onSubmit(t).then((()=>{this.routing.push(this.listUrl),N.default.success(this.successText)}),(e=>{this.responseError=e;var{response:{data:t}={}}=e;N.default.errorWithDetail(t,this.errorText)}))})),(0,k.default)(this,"onCancel",(()=>{})),(0,k.default)(this,"onClickSubmit",(()=>{this.hasConfirmStep?this.onOk():this.currentRef.current.wrappedInstance.checkFormInput((e=>{this.updateData(e,this.onOk)}))})),(0,k.default)(this,"onClickCancel",(()=>{this.routing.push(this.listUrl)})),(0,k.default)(this,"updateDataOnPrev",(e=>{this.updateData(e,(()=>{this.setState((e=>({current:e.current-1})))}))})),(0,k.default)(this,"updateData",((e,t)=>{var{data:a}=this.state;this.setState({data:O(O({},a),e)},(()=>{t&&t()}))})),(0,k.default)(this,"unescape",(e=>(0,I.unescapeHtml)(e))),(0,k.default)(this,"goStep",(e=>{this.setState({current:e})})),this.options=t,this.state={formTemplate:(0,C.default)(this.formTemplate),current:0,data:{}},this.values={},this.setFormRefs(),this.init()}componentDidMount(){}componentWillUnmount(){this.unsubscribe&&this.unsubscribe(),this.disposer&&this.disposer(),this.unMountActions&&this.unMountActions()}get path(){var{location:{pathname:e=""}={}}=this.props;return e||""}get hasConfirmStep(){return!1}get name(){return""}get title(){return"".concat(this.name,"s")}get className(){return""}get prefix(){return this.props.match.url}get routing(){return this.props.rootStore.routing}get location(){return this.props.location||{}}get locationParams(){var e;return(0,E.parse)((0,h.default)(e=this.location.search).call(e,1))}get match(){return this.props.match||{}}get listUrl(){return""}get checkEndpoint(){return!1}get endpoint(){return""}get endpointError(){return this.checkEndpoint&&!this.endpoint}get currentUser(){var{user:e}=this.props.rootStore||{};return e||{}}get currentProjectId(){return this.props.rootStore.projectId}get labelCol(){return{xs:{span:4},sm:{span:2}}}get wrapperCol(){return{xs:{span:16},sm:{span:12}}}get steps(){return[]}get formTemplate(){return{}}get okBtnText(){return t("Confirm")}get instanceName(){var{name:e}=(0,m.default)(this)||{};return e}get successText(){return this.instanceName?(0,I.firstUpperCase)(t("{action} successfully, instance: {name}.",{action:this.name.toLowerCase(),name:this.instanceName})):(0,I.firstUpperCase)(t("{action} successfully.",{action:this.name.toLowerCase()}))}get errorText(){return this.instanceName?t("Unable to {action}, instance: {name}.",{action:this.name.toLowerCase(),name:this.instanceName}):t("Unable to {action}.",{action:this.name.toLowerCase()})}get isSubmitting(){return this.store&&this.store.isSubmitting||!1}get isLoading(){return!(!this.hasExtraProps||!(0,_.default)(this.state.extra))}get currentComponent(){var{current:e}=this.state;return this.steps[e].component}get currentRef(){var{current:e}=this.state;return this.formRefs[e]}get isAdminPage(){return this.props.isAdminPage||!1}get hasExtraProps(){return!1}get showQuota(){return!1}get quotaInfo(){return null}get disableNext(){return!1}get disableSubmit(){return!1}setFormRefs(){var e;this.formRefs=(0,g.default)(e=this.steps).call(e,(()=>M.default.createRef()))}getRouteName(e){return this.isAdminPage?"".concat(e,"Admin"):e}getRoutePath(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRouteName(e);return(0,D.getPath)({key:n,params:t,query:a})}getLinkRender(e,t){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=this.getRouteName(e);return(0,D.getLinkRender)({key:r,params:a,query:n,value:t})}getPrevBtn(){var e,{current:a}=this.state;if(0===a)return null;var n=this.steps[a-1].title;return M.default.createElement(w.default,{style:{margin:"0 8px"},onClick:()=>this.prev()},(0,v.default)(e="".concat(t("Previous"),": ")).call(e,n))}getNextBtn(){var e,{current:a}=this.state;if(a>=this.steps.length-1)return null;var{title:n}=this.steps[a+1];return M.default.createElement(w.default,{type:"primary",onClick:()=>this.next(),disabled:this.disableNext},(0,v.default)(e="".concat(t("Next"),": ")).call(e,n))}getSubmitData(e){return O({},e)}prev(){this.currentRef.current.wrappedInstance.checkFormInput(this.updateDataOnPrev,this.updateDataOnPrev)}next(){this.currentRef.current.wrappedInstance.checkFormInput((e=>{this.updateData(e),this.setState((e=>({current:e.current+1})))}))}init(){this.store={}}renderFooterLeft(){return null}renderFooter(){var{current:e}=this.state;return M.default.createElement("div",{className:P.default.footer},M.default.createElement("div",{className:(0,S.default)(P.default["footer-left"],this.footerStyle,"step-form-footer-left")},this.renderFooterLeft()),M.default.createElement("div",{className:(0,S.default)(P.default.btns,"step-form-footer-btns")},M.default.createElement(w.default,{className:P.default.cancel,onClick:this.onClickCancel},t("Cancel")),this.getPrevBtn(),this.getNextBtn(),e===this.steps.length-1&&M.default.createElement(w.default,{type:"primary",onClick:this.onClickSubmit,disabled:this.disableSubmit},t("Confirm"))))}renderForms(){var e=this.currentComponent,{data:t,extra:a}=this.state;return this.hasExtraProps&&(0,_.default)(a)?null:M.default.createElement(e,{ref:this.currentRef,context:t,extra:a,updateContext:this.updateData,goStep:this.goStep,isAdminPage:this.isAdminPage,match:this.match,location:this.location})}renderSteps(){var e,{current:t}=this.state,{Step:a}=x.default;return M.default.createElement("div",null,M.default.createElement("div",{className:P.default.step},M.default.createElement(x.default,{current:t},(0,g.default)(e=this.steps).call(e,(e=>M.default.createElement(a,{key:e.title,title:e.title}))))),M.default.createElement("div",{className:P.default.form},this.renderForms()))}renderQuota(){if(!this.showQuota)return null;var e={};return this.quotaInfo&&this.quotaInfo.length?e={loading:!1,quotas:this.quotaInfo}:e.loading=!0,M.default.createElement(A.default,e)}renderRightTopExtra(){var e=this.renderQuota();if(!e)return null;var t=(0,y.default)(this.quotaInfo);return M.default.createElement("div",{className:P.default["right-top-extra-wrapper"]},M.default.createElement(j.default,{content:e,checkValue:t}))}render(){return this.endpointError?M.default.createElement(T.default,{title:this.name,link:this.listUrl,endpointError:!0,goList:!0,isAction:!0}):M.default.createElement("div",{className:(0,S.default)(P.default.wrapper,this.className)},M.default.createElement(b.default,{spinning:this.isLoading||this.isSubmitting},this.renderSteps(),this.renderRightTopExtra(),this.renderFooter()))}}a.default=z},1949:function(e,t,a){"use strict";a.r(t),t.default=a.p+"asset/image/empty-card.1663167892.svg"},1950:function(e,t,a){var n=a(1951);"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:undefined,insertInto:void 0};a(75)(n,r);n.locals&&(e.exports=n.locals)},1951:function(e,t,a){(t=e.exports=a(74)(!1)).push([e.i,"/* init */\n/* specific color */\n/* border */\n/* background */\n/* shadow */\n/* font */\n/* 中号字体 */\n/* animation */\n/* size */\n/* sider */\n.index__wrapper--1T6e5 {\n margin-top: 100px;\n text-align: center;\n border-radius: 4px;\n}\n.index__image--3dfS6 {\n height: 200px;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.index__text--2xlf7 {\n display: inline-block;\n width: 600px;\n margin-left: 60px;\n vertical-align: top;\n}\n.index__text--2xlf7 .h1 {\n color: #abb4be;\n font-size: 120px;\n line-height: 1.4;\n text-align: left;\n opacity: 0.4;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.index__text--2xlf7 p {\n color: #5f708a;\n font-weight: 600;\n font-size: 20px;\n line-height: 1.4;\n text-align: left;\n text-shadow: 0 4px 8px rgba(36, 46, 66, 0.1);\n}\n.index__text--2xlf7 a {\n color: #0068FF;\n}\n",""]),t.locals={wrapper:"index__wrapper--1T6e5",image:"index__image--3dfS6",text:"index__text--2xlf7"}},1952:function(e,t,a){var n=a(1953);"string"==typeof n&&(n=[[e.i,n,""]]);var r={hmr:!0,transform:undefined,insertInto:void 0};a(75)(n,r);n.locals&&(e.exports=n.locals)},1953:function(e,t,a){(t=e.exports=a(74)(!1)).push([e.i,"/* init */\n/* specific color */\n/* border */\n/* background */\n/* shadow */\n/* font */\n/* 中号字体 */\n/* animation */\n/* size */\n/* sider */\n.index__wrapper--3YpmJ {\n position: relative;\n height: 100%;\n overflow: hidden;\n border-top: 1px solid #f0f0f0;\n}\n.index__wrapper--3YpmJ .ant-spin-nested-loading {\n height: 100%;\n}\n.index__wrapper--3YpmJ .ant-spin-container {\n height: 100%;\n}\n.index__step--3Meey {\n height: 80px;\n margin-bottom: 16px;\n padding-top: 24px;\n padding-right: 56px;\n padding-left: 56px;\n background: #fff;\n}\n.index__form--3Sbom {\n height: 100%;\n min-height: calc(100vh - 280px);\n padding-top: 16px;\n overflow-y: auto;\n background-color: #fff;\n}\n.index__form--3Sbom .sl-form {\n height: calc(100vh - 219px);\n padding-bottom: 48px;\n}\n.index__footer--32Ya5 {\n position: absolute;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 2;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n min-height: 48px;\n background-color: #fff;\n -webkit-box-shadow: 0 2px 30px 0 rgba(0, 0, 0, 0.09);\n box-shadow: 0 2px 30px 0 rgba(0, 0, 0, 0.09);\n}\n.index__btns--2ujTQ {\n float: right;\n min-width: 200px;\n margin-right: 32px;\n}\n.index__btns--2ujTQ button {\n margin-left: 8px;\n}\n.index__footer-left--KbV3J {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n justify-items: left;\n float: left;\n min-height: 48px;\n margin-left: 16px;\n color: #484848;\n}\n.index__right-top-extra-wrapper--55yRM {\n position: absolute;\n top: 95px;\n right: 30px;\n z-index: 100;\n background-color: #fff;\n border-radius: 5px;\n -webkit-box-shadow: 0 2px 30px 0 rgba(0, 0, 0, 0.2);\n box-shadow: 0 2px 30px 0 rgba(0, 0, 0, 0.2);\n}\n.index__right-top-extra-wrapper--55yRM .ant-card-head {\n min-width: 32px;\n}\n.index__right-top-extra-wrapper--55yRM .ant-card-head .ant-card-extra {\n padding: 8px 0;\n}\n",""]),t.locals={wrapper:"index__wrapper--3YpmJ",step:"index__step--3Meey",form:"index__form--3Sbom",footer:"index__footer--32Ya5",btns:"index__btns--2ujTQ","footer-left":"index__footer-left--KbV3J","right-top-extra-wrapper":"index__right-top-extra-wrapper--55yRM"}},1954:function(e,a,n){"use strict";var r=n(19),l=n(21);r(a,"__esModule",{value:!0}),a.default=void 0;var i=l(n(57)),o=l(n(65)),u=l(n(1233)),s=l(n(27)),d=l(n(51)),c=l(n(36)),f=l(n(91)),p=l(n(0)),h=n(161);class m{constructor(e){var a=this;(0,c.default)(this,"policy",""),(0,c.default)(this,"aliasPolicy",""),(0,c.default)(this,"unescape",(e=>(0,h.unescapeHtml)(e))),(0,c.default)(this,"getItemId",(e=>e.id)),(0,c.default)(this,"getItemName",(e=>e.name||"- (".concat(this.getItemId(e),")"))),(0,c.default)(this,"getName",(e=>(0,f.default)(e)?(0,i.default)(e).call(e,(e=>this.getItemName(e))).join(", "):this.getItemName(e))),(0,c.default)(this,"allowedCheckFunc",(e=>!0)),(0,c.default)(this,"allowed",(e=>(0,f.default)(e)?o.default.all((0,i.default)(e).call(e,(e=>o.default.resolve(this.allowedCheckFunc(e))))):o.default.resolve(this.allowedCheckFunc(e)))),(0,c.default)(this,"confirmContext",(e=>{if(!this.messageHasItemName)return t("Are you sure to {action}?",{action:this.actionNameDisplay||this.title});var a=this.getName(e);return t("Are you sure to {action} (instance: {name})?",{action:this.actionNameDisplay||this.title,name:a})})),(0,c.default)(this,"submitSuccessMsg",(e=>{var a=this.getName(e);return this.isAsyncAction?this.messageHasItemName?(0,h.firstUpperCase)(t("The {action} instruction has been issued, instance: {name}. \n You can wait for a few seconds to follow the changes of the list data or manually refresh the data to get the final display result.",{action:this.actionNameDisplay||this.title,name:a})):(0,h.firstUpperCase)(t("The {action} instruction has been issued. \n You can wait for a few seconds to follow the changes of the list data or manually refresh the data to get the final display result.",{action:this.actionNameDisplay||this.title})):this.messageHasItemName?(0,h.firstUpperCase)(t("{action} successfully, instance: {name}.",{action:this.actionNameDisplay||this.title,name:a})):(0,h.firstUpperCase)(t("{action} successfully.",{action:this.actionNameDisplay||this.title}))})),(0,c.default)(this,"performErrorMsg",((e,a)=>{if(a){if(!this.messageHasItemName)return"";var n=this.getName(e);return t("instance: {name}.",{name:n})}if(!this.messageHasItemName)return t("You are not allowed to {action}.",{action:this.actionNameDisplay||this.title});var r=this.getName(e);return t("You are not allowed to {action}, instance: {name}.",{action:this.actionNameDisplay||this.title,name:r})})),(0,c.default)(this,"submitErrorMsg",(e=>{if(!this.messageHasItemName)return t("Unable to {action}.",{action:this.actionNameDisplay||this.title});var a=this.getName(e);return t("Unable to {action}, instance: {name}.",{action:this.actionNameDisplay||this.title,name:a})})),(0,c.default)(this,"onSubmit",(e=>o.default.resolve())),(0,c.default)(this,"perform",function(){var e=(0,d.default)((function*(e){if((0,f.default)(e)&&0===e.length)return o.default.reject(t("Please select item!"));var n=yield a.allowed(e);if((0,f.default)(e)){var r=(0,f.default)(e)?e:[e];if((0,u.default)(n).call(n,(e=>!!e)))return o.default.resolve(!0);var l=[];(0,s.default)(n).call(n,((e,t)=>{e||l.push(r[t])}));var i=a.unescape(a.performErrorMsg(l,!0)),d=a.getBatchPerformTitle(),c=p.default.createElement("div",null,d&&p.default.createElement("p",null,d),p.default.createElement("p",null,i));return o.default.reject(c)}if(n)return o.default.resolve(!0);var h=a.performErrorMsg(e);return o.default.reject(h)}));return function(t){return e.apply(this,arguments)}}());var{item:n,containerProps:r}=e;n&&(this.item=n),r&&(this.containerProps=r)}get id(){return"id"}get actionType(){return"confirm"}get actionName(){return""}get actionNameDisplay(){return this.actionName.toLowerCase()}get passiveAction(){return t("be deleted")}get title(){return t("Delete")}get buttonType(){return"default"}get isDanger(){return!1}get buttonText(){return""}get okText(){return t("Confirm")}get cancelText(){return t("Cancel")}get isAdminPage(){var{isAdminPage:e=!1}=this.containerProps||{};return e}get isAsyncAction(){return!1}get messageHasItemName(){return!0}getBatchPerformTitle(){return this.messageHasItemName?t("There are resources that cannot {action} in the selected resources, such as:",{action:this.passiveAction.toLowerCase()}):t("There are resources that cannot {action} in the selected resources.",{action:this.passiveAction.toLowerCase()})}}a.default=m,(0,c.default)(m,"actionType","confirm")},1955:function(e,a,n){"use strict";var r=n(19),l=n(21);r(a,"__esModule",{value:!0}),a.default=a.Token=void 0;var i=l(n(620)),o=l(n(65)),u=l(n(36));n(1270);var s=l(n(1271)),d=l(n(0)),c=n(406),f=(n(173),n(1193)),p=n(1203),h=n(569),m=l(n(1297)),{Paragraph:g}=s.default;class v extends f.ModalAction{constructor(){super(...arguments),(0,u.default)(this,"getLeftStr",(e=>{var a=e-(0,i.default)(),n=Math.floor(a/1e3);if(n<60)return t("{seconds} seconds",{seconds:n});var r=Math.floor(n/60),l=n%60;if(r<60)return t("{minutes} minutes {leftSeconds} seconds",{minutes:r,leftSeconds:l});var o=Math.floor(r/60);return t("{hours} hours {leftMinutes} minutes {leftSeconds} seconds",{hours:o,leftMinutes:r%60,leftSeconds:l})})),(0,u.default)(this,"onSubmit",(()=>o.default.resolve()))}get name(){return t("Get Token")}get token(){var e=localStorage.getItem("keystone_token");try{return JSON.parse(e)||{}}catch(e){return{}}}get showNotice(){return!1}get tokenValue(){return this.token.value||""}get keystoneTokenExp(){var{keystone_token_exp:e}=this.props.rootStore.user||{};return(0,h.getLocalTime)(e).valueOf()}get tips(){return(0,i.default)()>this.keystoneTokenExp?d.default.createElement("span",{style:{color:"rgb(232, 104, 74)"}},t("Keystone token is expired.")):t("Please save your token properly and it will be valid for {left}.",{left:this.getLeftStr(this.keystoneTokenExp)})}get defaultValue(){return{token:this.tokenValue}}get labelCol(){return{xs:{span:0},sm:{span:0}}}get wrapperCol(){return{xs:{span:24},sm:{span:24}}}get formItems(){return[{name:"token",label:"",type:"label",component:d.default.createElement(g,{copyable:{text:this.tokenValue},className:m.default.token},d.default.createElement("pre",null,this.tokenValue))}]}}a.Token=v,(0,u.default)(v,"id","get-token"),(0,u.default)(v,"title",t("Get Token")),(0,u.default)(v,"policy",p.allCanReadPolicy),(0,u.default)(v,"allowed",(()=>o.default.resolve(!0)));var y=(0,c.inject)("rootStore")((0,c.observer)(v));a.default=y},1970:function(e,t,a){(t=e.exports=a(74)(!1)).push([e.i,"/* init */\n/* specific color */\n/* border */\n/* background */\n/* shadow */\n/* font */\n/* 中号字体 */\n/* animation */\n/* size */\n/* sider */\n.index__menu--TIGc7 .anticon {\n margin-right: 8px;\n}\n.index__menu--TIGc7 .ant-dropdown-menu-item {\n min-width: 245px;\n}\n.index__menu--TIGc7 .index__no-hover--3nEW_ {\n overflow: hidden;\n}\n.index__menu--TIGc7 .index__no-hover--3nEW_:hover {\n background-color: #fff;\n}\n.index__menu--TIGc7 .index__name-item--3-Ls5 {\n padding: 0 12px;\n line-height: 40px;\n}\n.index__menu--TIGc7 .index__name-item--3-Ls5 .index__user-label--2mhYg {\n margin-right: 8px;\n font-weight: 'bold';\n}\n.index__menu--TIGc7 .index__name-item--3-Ls5 span {\n line-height: 40px;\n}\n.index__menu--TIGc7 .index__menu-item--2EH8z {\n line-height: 30px;\n}\n.index__no-padding-top--2hYAA {\n padding-top: 0;\n}\n.index__logout--2w9f0 {\n float: right;\n line-height: 40px;\n}\n.index__right--X_kh6 {\n position: absolute;\n top: 0;\n right: 31px;\n line-height: 40px;\n}\n.index__right--X_kh6 .index__action--1gM_W {\n display: inline-block;\n}\n.index__project-menu--3gMKs .ant-dropdown-menu {\n width: 170px;\n}\n.index__project-menu--3gMKs .ant-dropdown-menu-item:hover,\n.index__project-menu--3gMKs .ant-dropdown-menu-submenu-title:hover {\n cursor: pointer;\n}\n.index__project-menu--3gMKs .ant-dropdown-menu-item-disabled,\n.index__project-menu--3gMKs .ant-dropdown-menu-submenu-title-disabled {\n cursor: pointer;\n}\n.index__project-menu--3gMKs .index__title--3e97C {\n cursor: auto;\n}\n.index__project-menu--3gMKs .index__title--3e97C:hover {\n background-color: #fff;\n}\n.index__project--Iy5xg {\n float: left;\n font-size: 14px;\n line-height: 40px;\n cursor: pointer;\n}\n.index__project--Iy5xg .ant-divider {\n margin-right: 24px;\n margin-left: 24px;\n background-color: #d2d2d2;\n}\n.index__project--Iy5xg .ant-btn-link {\n position: absolute;\n min-width: 280px;\n min-height: 40px;\n}\n.index__header--138pB {\n position: relative;\n z-index: 200;\n -webkit-box-flex: 1;\n -ms-flex-positive: 1;\n flex-grow: 1;\n height: 100%;\n padding-left: 36px;\n overflow: hidden;\n color: rgba(0, 0, 0, 0.85);\n background-color: #fff;\n -webkit-box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.09);\n box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.09);\n}\n.index__avatar--C9tqm {\n width: 30px;\n height: 30px;\n color: #bfbfbf;\n border: none;\n -webkit-box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.09);\n box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.09);\n}\n.index__domain--Q8Gpn {\n font-size: 14px;\n}\n.index__links--IHsTT {\n display: inline-block;\n margin-right: 20px;\n}\n.index__links--IHsTT .ant-divider {\n margin-right: 24px;\n margin-left: 24px;\n background-color: #d2d2d2;\n}\n.index__links--IHsTT .index__link--1PjXM {\n color: rgba(0, 0, 0, 0.85);\n}\n.index__links--IHsTT .index__link--1PjXM:hover {\n color: #0068FF;\n}\n.index__links--IHsTT .index__active--2ykOE {\n color: #0068FF;\n}\n.index__password-btn--1O5lH {\n max-width: 100px;\n}\n.index__password-btn--1O5lH span {\n max-width: 80px;\n}\n.index__single-link--1h19E {\n margin-right: 5px;\n color: #0068FF;\n}\n.index__token--2NsWx pre {\n padding: 0.4em 0.6em;\n white-space: pre-wrap;\n word-wrap: break-word;\n background: hsla(0, 0%, 58.8%, 0.1);\n border: 1px solid hsla(0, 0%, 39.2%, 0.2);\n border-radius: 3px;\n}\n",""]),t.locals={menu:"index__menu--TIGc7","no-hover":"index__no-hover--3nEW_","name-item":"index__name-item--3-Ls5","user-label":"index__user-label--2mhYg","menu-item":"index__menu-item--2EH8z","no-padding-top":"index__no-padding-top--2hYAA",logout:"index__logout--2w9f0",right:"index__right--X_kh6",action:"index__action--1gM_W","project-menu":"index__project-menu--3gMKs",title:"index__title--3e97C",project:"index__project--Iy5xg",header:"index__header--138pB",avatar:"index__avatar--C9tqm",domain:"index__domain--Q8Gpn",links:"index__links--IHsTT",link:"index__link--1PjXM",active:"index__active--2ykOE","password-btn":"index__password-btn--1O5lH","single-link":"index__single-link--1h19E",token:"index__token--2NsWx"}},1971:function(e,a,n){"use strict";var r=n(19),l=n(21);r(a,"__esModule",{value:!0}),a.default=a.OpenRc=void 0;var i=l(n(32)),o=l(n(65)),u=l(n(36)),s=n(406),d=n(1193),c=n(1203),f=l(n(1511)),p=n(1972),h=l(n(1298));class m extends d.ModalAction{constructor(){super(...arguments),(0,u.default)(this,"exportRcFile",(e=>{var t=new Blob([e],{type:"text/plain;charset=utf-8"});h.default.saveAs(t,"openrc.sh")})),(0,u.default)(this,"onSubmit",(e=>{var{type:t}=e;return this.store.fetchList().then((()=>this.exportRcFile(this.getOpenRC(t))))}))}init(){this.store=f.default}get name(){return t("Get OpenRC file")}get showNotice(){return!1}get user(){var{user:e}=this.props.rootStore;return e}getOpenRC(e){var{project:{id:t="",name:a="",domain:{name:n}={}}={},user:{name:r="",domain:{name:l}={}}={},region:o}=this.user||{},{data:u}=this.store.list,{endpoints:s}=(0,i.default)(u).call(u,(e=>"keystone"===e.name))[0],d=(0,i.default)(s).call(s,(e=>"public"===e.interface))[0].url;return"password"===e?(0,p.getPwdOpenRc)({authUrl:d,projectId:t,projectName:a,projectDomain:n,userDomain:l,userName:r,region:o}):(0,p.getCredentialOpenRc)({authUrl:d,region:o})}get defaultValue(){return{type:"password"}}get formItems(){return[{name:"type",label:t("Type"),type:"select",options:[{label:t("Password Type"),value:"password"},{label:t("Credential Type"),value:"credential"}]}]}}a.OpenRc=m,(0,u.default)(m,"id","get-token"),(0,u.default)(m,"title",t("Get OpenRC file")),(0,u.default)(m,"policy",c.allCanReadPolicy),(0,u.default)(m,"allowed",(()=>o.default.resolve(!0)));var g=(0,s.inject)("rootStore")((0,s.observer)(m));a.default=g},1972:function(e,t,a){"use strict";a(19)(t,"__esModule",{value:!0}),t.getCredentialOpenRc=t.getPwdOpenRc=void 0;t.getPwdOpenRc=e=>{var{authUrl:t,projectId:a,projectName:n,projectDomain:r,userDomain:l,userName:i,region:o}=e;return"#!/usr/bin/env bash\n# To use an OpenStack cloud you need to authenticate against the Identity\n# service named keystone, which returns a **Token** and **Service Catalog**.\n# The catalog contains the endpoints for all services the user/tenant has\n# access to - such as Compute, Image Service, Identity, Object Storage, Block\n# Storage, and Networking (code-named nova, glance, keystone, swift,\n# cinder, and neutron).\n#\n# *NOTE*: Using the 3 *Identity API* does not necessarily mean any other\n# OpenStack API is version 3. For example, your cloud provider may implement\n# Image API v1.1, Block Storage API v2, and Compute API v2.0. OS_AUTH_URL is\n# only for the Identity API served through keystone.\n"+"export OS_AUTH_URL=".concat(t,"/v3/\n")+"\n# With the addition of Keystone we have standardized on the term **project**\n# as the entity that owns the resources.\n"+"export OS_PROJECT_ID=".concat(a," \n")+"export OS_PROJECT_NAME=".concat(n,"\n")+"export OS_PROJECT_DOMAIN_NAME=".concat(r,"\n")+"export OS_USER_DOMAIN_NAME=".concat(l,"\n")+"\n# unset v2.0 items in case set\nunset OS_TENANT_ID\nunset OS_TENANT_NAME\n# In addition to the owning entity (tenant), OpenStack stores the entity\n# performing the action as the **user**.\n"+"export OS_USERNAME=".concat(i,"\n")+'\n# With Keystone you pass the keystone password.\necho "Please enter your OpenStack Password for project $OS_PROJECT_NAME as user $OS_USERNAME: "\nread -sr OS_PASSWORD_INPUT\nexport OS_PASSWORD=$OS_PASSWORD_INPUT\n# If your configuration has multiple regions, we set that information here.\n# OS_REGION_NAME is optional and only valid in certain environments.\n'+"export OS_REGION_NAME=".concat(o,"\n")+'\n# Don\'t leave a blank variable, unset it if it was empty\nif [ -z "$OS_REGION_NAME" ]; then unset OS_REGION_NAME; fi\nexport OS_INTERFACE=public\nexport OS_IDENTITY_API_VERSION=3\n\n# If OS_AUTH_URL use private SSL, Please add CACERT file path \n# export OS_CACERT={crtPath}'};t.getCredentialOpenRc=e=>{var{authUrl:t,region:a}=e;return"#!/usr/bin/env bash\n# To use an OpenStack cloud you need to authenticate against the Identity\n# service named keystone, which returns a **Token** and **Service Catalog**.\n# The catalog contains the endpoints for all services the user/tenant has\n# access to - such as Compute, Image Service, Identity, Object Storage, Block\n# Storage, and Networking (code-named nova, glance, keystone, swift,\n# cinder, and neutron).\n#\n# *NOTE*: Using the 3 *Identity API* does not necessarily mean any other\n# OpenStack API is version 3. For example, your cloud provider may implement\n# Image API v1.1, Block Storage API v2, and Compute API v2.0. OS_AUTH_URL is\n# only for the Identity API served through keystone.\n"+"export OS_AUTH_URL=".concat(t,"/v3/\n")+'\n# With Keystone you pass the keystone password.\necho "Please enter your OpenStack Credential ID as OS_APPLICATION_CREDENTIAL_ID: "\nread -sr OS_APPLICATION_CREDENTIAL_ID\nexport OS_APPLICATION_CREDENTIAL_ID=$OS_APPLICATION_CREDENTIAL_ID\necho "Please enter your OpenStack Credential Secret as OS_APPLICATION_CREDENTIAL_SECRET: "\nread -sr OS_APPLICATION_CREDENTIAL_SECRET\nexport OS_APPLICATION_CREDENTIAL_SECRET=$OS_APPLICATION_CREDENTIAL_SECRET\n\n# Don\'t leave a blank variable, unset it if it was empty\nif [ -z "$OS_REGION_NAME" ]; then unset OS_REGION_NAME; fi\nexport OS_INTERFACE=public\nexport OS_IDENTITY_API_VERSION=3\nexport OS_AUTH_TYPE=v3applicationcredential\n# If your configuration has multiple regions, we set that information here.\n# OS_REGION_NAME is optional and only valid in certain environments.\n'+"export OS_REGION_NAME=".concat(a,"\n")+"\n# If OS_AUTH_URL use private SSL, Please add CACERT file path \n# export OS_CACERT={crtPath}"}},1973:function(e,t,a){"use strict";var n=a(19),r=a(21);n(t,"__esModule",{value:!0}),t.default=void 0,a(573);var l=r(a(421)),i=r(a(409)),o=r(a(62)),u=(a(173),r(a(0))),s=r(a(4)),d=e=>{var{overlayClassName:t}=e,a=(0,o.default)(e,["overlayClassName"]);return u.default.createElement(l.default,(0,i.default)({overlayClassName:(0,s.default)(t)},a))};t.default=d},1974:function(e,t,a){"use strict";var n=a(19),r=a(21);n(t,"__esModule",{value:!0}),t.default=t.ProjectDropdown=void 0,a(1250);var l=r(a(1251)),i=r(a(1512)),o=r(a(1387));a(337);var u=r(a(338)),s=r(a(0)),d=a(406),c=(a(173),a(555),r(a(1249))),f=r(a(1297)),p=r(a(1977));class h extends s.default.Component{get user(){var{user:e}=this.props.rootStore;return e}get project(){var{project:{id:e="",name:t="",domain:{name:a}={}}={}}=this.user||{};return{projectId:e,projectName:t,userDomainName:a}}render(){if(!this.user)return s.default.createElement(u.default,{size:"small",style:{marginLeft:8,marginRight:8,marginTop:-24}});var{projectName:e,userDomainName:t}=this.project;return s.default.createElement("div",{className:f.default.project,id:"project-switch"},s.default.createElement(c.default,{actions:{moreActions:[{action:p.default}]}}),s.default.createElement(o.default,{style:{marginRight:10}}),s.default.createElement("span",null,e),s.default.createElement(i.default,{style:{color:"#A3A3A3",marginLeft:24}}),s.default.createElement(l.default,{type:"vertical"}),s.default.createElement("span",{className:f.default.domain},t))}}t.ProjectDropdown=h;var m=(0,d.inject)("rootStore")((0,d.observer)(h));t.default=m},1977:function(e,a,n){"use strict";var r=n(33),l=n(44),i=n(32),o=n(25),u=n(27),s=n(45),d=n(46),c=n(19),f=n(21);c(a,"__esModule",{value:!0}),a.default=a.ProjectSelect=void 0;var p=f(n(102)),h=f(n(65)),m=f(n(32)),g=f(n(57)),v=f(n(90)),y=f(n(62)),b=f(n(51)),x=f(n(36)),w=n(406),k=n(1193),_=n(1203),C=f(n(1207));function M(e,t){var a=r(e);if(l){var n=l(e);t&&(n=i(n).call(n,(function(t){return o(e,t).enumerable}))),a.push.apply(a,n)}return a}class N extends k.ModalAction{constructor(){var e;super(...arguments),e=this,(0,x.default)(this,"state",{projectName:""}),(0,x.default)(this,"onSubmit",function(){var t=(0,b.default)((function*(t){var a,{project:{selectedRowKeys:n}}=t,r=n[0],l=(0,p.default)(a=e.projects).call(a,(e=>e.id===r)),{domain_id:i}=l||{},{rootStore:o}=e.props;try{return yield o.switchProject(r,i),e.routing.push("/base/overview"),h.default.resolve()}catch(e){return h.default.reject(e)}}));return function(e){return t.apply(this,arguments)}}())}init(){this.getAllUserProjects()}getAllUserProjects(){var e=this;return(0,b.default)((function*(){yield C.default.getUserProjects(),e.updateDefaultValue()}))()}get name(){return t("Switch Project")}static get modalSize(){return"large"}getModalSize(){return"large"}get messageHasItemName(){return!1}get user(){var{user:e}=this.props.rootStore;return e}get project(){var{project:{id:e="",name:t="",domain:{name:a}={}}={}}=this.user||{};return{projectId:e,projectName:t,userDomainName:a}}get projects(){var e,{projectName:t}=this.state,{data:a}=C.default.userProjects;return(0,m.default)(e=(0,g.default)(a).call(a,(e=>{var{id:t}=e;return function(e){for(var t=1;t<arguments.length;t++){var a,n=null!=arguments[t]?arguments[t]:{};if(t%2)u(a=M(Object(n),!0)).call(a,(function(t){(0,x.default)(e,t,n[t])}));else if(s)d(e,s(n));else{var r;u(r=M(Object(n))).call(r,(function(t){c(e,t,o(n,t))}))}}return e}({id:t,projectId:t},(0,y.default)(e,["id"]))}))).call(e,(e=>{var a,n;return!t||((0,v.default)(a=e.name.toLowerCase()).call(a,t.toLowerCase())>=0||(0,v.default)(n=e.projectId.toLowerCase()).call(n,t.toLowerCase())>=0)}))}get defaultValue(){var e,{projectId:t=""}=this.project;return{project:{selectedRowKeys:[t],selectedRows:(0,m.default)(e=this.projects).call(e,(e=>e.id===t))}}}get formItems(){return[{name:"project",label:t("Owned Project"),type:"select-table",data:this.projects,isLoading:C.default.userProjects.isLoading,disabledFunc:e=>!e.enabled,filterParams:[{label:t("Project Name"),name:"name"}],columns:[{title:t("Project Name"),dataIndex:"name"},{title:t("ID"),dataIndex:"id"},{title:t("Enabled"),dataIndex:"enabled",valueRender:"yesNo"}]}]}}a.ProjectSelect=N,(0,x.default)(N,"id","project-id"),(0,x.default)(N,"title",t("Switch Project")),(0,x.default)(N,"buttonText"," "),(0,x.default)(N,"policy",_.allCanReadPolicy),(0,x.default)(N,"allowed",(()=>h.default.resolve(!0)));var S=(0,w.inject)("rootStore")((0,w.observer)(N));a.default=S},1978:function(e,t,a){"use strict";var n=a(19),r=a(21);n(t,"__esModule",{value:!0}),t.default=void 0;var l=r(a(1388)),i=r(a(1513)),o=r(a(1514)),u=r(a(1389)),s=r(a(1515)),d=r(a(1390)),c=r(a(1290)),f=r(a(1327)),p=r(a(1322)),h=r(a(1328)),m=r(a(0)),g=(a(555),e=>e?[{path:"/base/overview-admin",name:e("Home"),key:"overviewAdmin",icon:m.default.createElement(h.default,null),level:0,hasBreadcrumb:!1,hasChildren:!1},{path:"/compute",name:e("Compute"),key:"computeAdmin",icon:m.default.createElement(p.default,null),children:[{path:"/compute/instance-admin",name:e("Instances"),key:"instanceAdmin",level:1,children:[{path:/^\/compute\/instance-admin\/detail\/.[^/]+$/,name:e("Instance Detail"),key:"instanceDetailAdmin",routePath:"/compute/instance-admin/detail/:id",level:2}]},{path:"/compute/instance-snapshot-admin",name:e("Instance Snapshots"),key:"instanceSnapshotAdmin",level:1,children:[{path:/^\/compute\/instance-snapshot-admin\/detail\/[^/]+$/,name:e("Instance Snapshot Detail"),key:"instanceSnapshotDetailAdmin",level:2,routePath:"/compute/instance-snapshot-admin/detail/:id"}]},{path:"/compute/flavor-admin",name:e("Flavors"),key:"flavorAdmin",level:1,children:[{path:"/compute/flavor-admin/create",name:e("Create Flavor"),key:"flavorCreateAdmin",level:2},{path:/^\/compute\/flavor-admin\/detail\/[^/]+$/,name:e("Flavor Detail"),key:"flavorDetailAdmin",routePath:"/compute/flavor-admin/detail/:id",level:2}]},{path:"/compute/server-group-admin",name:e("Server Groups"),key:"serverGroupAdmin",level:1,children:[{path:/^\/compute\/server-group-admin\/detail\/.[^/]+$/,name:e("Server Group Detail"),key:"serverGroupDetailAdmin",routePath:"/compute/server-group-admin/detail/:id",level:2}]},{path:"/compute/image-admin",name:e("Images"),key:"imageAdmin",level:1,children:[{path:/^\/compute\/image-admin\/detail\/.[^/]+$/,name:e("Image Detail"),key:"imageDetailAdmin",routePath:"/compute/image-admin/detail/:id",level:2},{path:"/compute/image-admin/create",name:e("Create Image"),key:"imageCreateAdmin",level:2}]},{path:"/compute/hypervisors-admin",name:e("Hypervisors"),key:"hypervisorAdmin",level:1,children:[{path:/^\/compute\/hypervisors-admin\/detail\/.[^/]+$/,name:e("Hypervisor Detail"),key:"hypervisorDetailAdmin",routePath:"/compute/hypervisors-admin/detail/:id",level:2}]},{path:"/compute/aggregates-admin",name:e("Host Aggregates"),key:"aggregateAdmin",level:1,children:[]},{path:"/compute/baremetal-node-admin",name:e("Bare Metal Nodes"),key:"baremetalNodeAdmin",endpoints:"ironic",level:1,children:[{path:/^\/compute\/baremetal-node-admin\/detail\/.[^/]+$/,name:e("Bare Metal Node Detail"),key:"baremetalNodeDetailAdmin",routePath:"/compute/baremetal-node-admin/detail/:id",level:2},{path:/^\/compute\/baremetal-node-admin\/create$/,name:e("Create Bare Metal Node"),key:"baremetalNodeCreateAdmin",level:2},{path:/^\/compute\/baremetal-node-admin\/edit\/.[^/]+$/,name:e("Edit Bare Metal Node"),key:"baremetalNodeEditAdmin",routePath:"/compute/baremetal-node-admin/detail/:id",level:2}]}]},{path:"/storage",name:e("Storage"),key:"storageAdmin",icon:m.default.createElement(f.default,null),children:[{path:"/storage/volume-admin",name:e("Volumes"),key:"volumeAdmin",level:1,endpoints:"cinder",children:[{path:/^\/storage\/volume-admin\/detail\/.[^/]+$/,name:e("Volume Detail"),key:"volumeDetailAdmin",level:2,routePath:"/storage/volume-admin/detail/:id"}]},{path:"/storage/backup-admin",name:e("Volume Backups"),key:"backupAdmin",level:1,endpoints:"cinder",children:[{path:/^\/storage\/backup-admin\/detail\/.[^/]+$/,name:e("Volume Backup Detail"),key:"backupDetailAdmin",level:2,routePath:"/storage/backup-admin/detail/:id"}]},{path:"/storage/snapshot-admin",name:e("Volume Snapshots"),key:"snapshotAdmin",level:1,endpoints:"cinder",children:[{path:/^\/storage\/snapshot-admin\/detail\/.[^/]+$/,name:e("Volume Snapshot Detail"),key:"snapshotDetailAdmin",level:2,routePath:"/storage/snapshot-admin/detail/:id"}]},{path:"/storage/volume-type-admin",name:e("Volume Types"),key:"volumeTypeAdmin",level:1,endpoints:"cinder",children:[{path:/^\/storage\/volume-type-admin\/detail\/.[^/]+$/,name:e("Volume Type Detail"),key:"volumeTypeDetailAdmin",level:2,routePath:"/storage/volume-type-admin/detail/:id"},{path:/^\/storage\/volume-type-admin\/qos\/detail\/.[^/]+$/,name:e("QoS Detail"),key:"volumeTypeQosDetailAdmin",level:2,routePath:"/storage/volume-type-admin/qos/detail/:id"}]},{path:"/storage/storage-admin",name:e("Storage Backends"),key:"storageBackendAdmin",level:1,endpoints:"cinder",children:[]}]},{path:"/network",name:e("Network"),key:"/networkAdmin",icon:m.default.createElement(c.default,null),children:[{path:"/network/networks-admin",name:e("Networks"),key:"networkAdmin",level:1,children:[{path:/^\/network\/networks-admin\/detail\/.[^/]+$/,name:e("Network Detail"),key:"networkDetailAdmin",level:2,routePath:"/network/networks-admin/detail/:id"},{path:/^\/network\/networks-admin\/detail\/.[^/]+\/subnet\/.[^/]+$/,name:e("Subnet Detail"),key:"subnetDetailAdmin",level:2,routePath:"/network/networks-admin/detail/:networkId/subnet/:id"}]},{path:"/network/port-admin",name:e("Ports"),key:"port",level:1,children:[{path:/^\/network\/port-admin\/detail\/.[^/]+$/,name:e("Port Detail"),key:"portDetailAdmin",level:2,routePath:"/network/port-admin/detail/:id"},{path:/^\/network\/networks-admin\/detail\/.[^/]+\/port\/.[^/]+$/,name:e("Port Detail"),key:"networkPortDetailAdmin",level:2,routePath:"/network/networks-admin/detail/:networkId/port/:id"},{path:/^\/network\/networks-admin\/detail\/.[^/]+\/subnet\/.[^/]+\/port\/.[^/]+$/,name:e("Port Detail"),key:"subnetPortDetailAdmin",level:2,routePath:"/network/networks-admin/detail/:networkId/subnet/:subnetId/port/:id"},{path:/^\/network\/instance-admin\/detail\/.[^/]+\/port\/.[^/]+$/,name:e("Port Detail"),key:"instancePortDetailAdmin",level:2,routePath:"/network/instance-admin/detail/:instanceId/port/:id"}]},{path:"/network/qos-policy-admin",name:e("QoS Policies"),key:"networkQosAdmin",endpoints:"neutron_qos",level:1,children:[{path:/^\/network\/qos-policy-admin\/detail\/.[^/]+$/,name:e("QoS Policy Detail"),key:"networkQosDetailAdmin",level:2,routePath:"/network/qos-policy-admin/detail/:id"}]},{path:"/network/router-admin",name:e("Routers"),key:"routerAdmin",level:1,children:[{path:/^\/network\/router-admin\/detail\/.[^/]+$/,name:e("Router Detail"),key:"routerDetailAdmin",level:2,routePath:"/network/router-admin/detail/:id"},{path:/^\/network\/router-admin\/.[^/]+\/port\/.[^/]+$/,name:e("Port Detail"),key:"routerPortDetailAdmin",level:2,routePath:"/network/router-admin/:routerId/port/:id"}]},{path:"/network/floatingip-admin",name:e("Floating IPs"),key:"fipAdmin",level:1,children:[{path:/^\/network\/floatingip-admin\/detail\/.[^/]+$/,name:e("Floating Ip Detail"),key:"fipDetailAdmin",level:2,routePath:"/network/floatingip-admin/detail/:id"}]},{path:"/network/load-balancers-admin",name:e("Load Balancers"),key:"lbAdmin",endpoints:"octavia",level:1,children:[{path:/^\/network\/load-balancers-admin\/detail\/.[^/]+$/,name:e("Load Balancer Detail"),key:"lbDetailAdmin",level:2,routePath:"/network/load-balancers-admin/detail/:id"},{path:/^\/network\/load-balancers-admin\/.[^/]+\/listener\/.[^/]+$/,name:e("Listener Detail"),key:"lbListenerDetailAdmin",level:2,routePath:"/network/load-balancers-admin/:loadBalancerId/listener/:id"}]},{path:"/network/vpn-admin",name:e("VPNs"),key:"vpnAdmin",endpoints:"neutron_vpn",level:1,children:[{path:/^\/network\/ipsec-site-connection-admin\/detail\/.[^/]+$/,name:e("IPsec site connection Detail"),key:"ipsecDetailAdmin",level:2,routePath:"/network/ipsec-site-connection-admin/detail/:id"}]},{path:"/network/security-group-admin",name:e("Security Groups"),key:"securityGroupAdmin",level:1,children:[{path:/^\/network\/security-group-admin\/detail\/.[^/]+$/,name:e("Security Group Detail"),key:"securityGroupDetailAdmin",level:2,routePath:"/network/security-group-admin/detail/:id"}]}]},{path:"/share",name:e("Share File Storage"),key:"fileStorageAdmin",endpoints:"manilav2",icon:m.default.createElement(d.default,null),children:[{path:"/share/share-admin",name:e("Shares"),key:"shareAdmin",level:1,children:[{path:/^\/share\/share-admin\/detail\/.[^/]+$/,name:e("Share Detail"),key:"shareDetailAdmin",level:2,routePath:"/share/share-admin/detail/:id"}]},{path:"/share/share-type-admin",name:e("Share Types"),key:"shareTypeAdmin",level:1,children:[{path:/^\/share\/share-type-admin\/detail\/.[^/]+$/,name:e("Share Type Detail"),key:"shareTypeDetailAdmin",level:2,routePath:"/share/share-type-admin/detail/:id"}]},{path:"/share/share-group-type-admin",name:e("Share Group Types"),key:"shareGroupTypeAdmin",level:1,children:[{path:/^\/share\/share-group-type-admin\/detail\/.[^/]+$/,name:e("Share Group Type Detail"),key:"shareGroupTypeDetailAdmin",level:2,routePath:"/share/share-group-type-admin/detail/:id"}]},{path:"/share/share-network-admin",name:e("Share Networks"),key:"shareNetworkAdmin",level:1,children:[{path:/^\/share\/share-network-admin\/detail\/.[^/]+$/,name:e("Share Network Detail"),key:"shareNetworkDetailAdmin",level:2,routePath:"/share/share-network-admin/detail/:id"}]},{path:"/share/share-server-admin",name:e("Share Servers"),key:"shareServerAdmin",level:1,children:[{path:/^\/share\/share-server-admin\/detail\/.[^/]+$/,name:e("Share Server Detail"),key:"shareServerDetailAdmin",level:2,routePath:"/share/share-server-admin/detail/:id"}]},{path:"/share/share-instance-admin",name:e("Share Instances"),key:"shareInstanceAdmin",level:1,children:[{path:/^\/share\/share-instance-admin\/detail\/.[^/]+$/,name:e("Share Instance Detail"),key:"shareInstanceDetailAdmin",level:2,routePath:"/share/share-instance-admin/detail/:id"}]},{path:"/share/share-group-admin",name:e("Share Groups"),key:"shareGroupAdmin",level:1,children:[{path:/^\/share\/share-group-admin\/detail\/.[^/]+$/,name:e("Share Group Detail"),key:"shareGroupDetailAdmin",level:2,routePath:"/share/share-group-admin/detail/:id"}]},{path:"/share/storage-admin",name:e("Storage Backends"),key:"shareStorageBackendAdmin",level:1,children:[]}]},{path:"/identity",name:e("Identity"),key:"/identity",icon:m.default.createElement(s.default,null),children:[{path:"/identity/domain-admin",name:e("Domains"),key:"domainAdmin",level:1,children:[{path:/^\/identity\/domain-admin\/detail\/.[^/]+$/,name:e("Domain Detail"),key:"domainDetailAdmin",level:2,routePath:"/identity/domain-admin/detail/:id"}]},{path:"/identity/project-admin",name:e("Projects"),key:"projectAdmin",level:1,children:[{path:/^\/identity\/project-admin\/detail\/.[^/]+$/,name:e("Project Detail"),key:"projectDetailAdmin",level:2,routePath:"/identity/project-admin/detail/:id"},{path:"/identity/project-admin/create",name:e("Create Project"),key:"projectCreateAdmin",level:2},{path:/^\/identity\/project-admin\/edit\/.[^/]+$/,name:e("Edit Project"),key:"projectEditAdmin",level:2,routePath:"/identity/project-admin/edit/:id"}]},{path:"/identity/user-admin",name:e("Users"),key:"userAdmin",level:1,children:[{path:/^\/identity\/user-admin\/detail\/.[^/]+$/,name:e("User Detail"),key:"userDetailAdmin",level:2,routePath:"/identity/user-admin/detail/:id"},{path:"/identity/user-admin/create",name:e("Create User"),key:"userCreateAdmin",level:2},{path:/^\/identity\/user-admin\/edit\/.[^/]+$/,name:e("User Edit"),key:"userEditAdmin",level:2,routePath:"/identity/user-admin/edit/:id"}]},{path:"/identity/user-group-admin",name:e("User Groups"),key:"userGroupAdmin",level:1,children:[{path:/^\/identity\/user-group-admin\/detail\/.[^/]+$/,name:e("User Group Detail"),key:"userGroupDetailAdmin",level:2,routePath:"/identity/user-group-admin/detail/:id"},{path:"/identity/user-group-admin/create",name:e("Create User Group"),key:"userGroupCreateAdmin",level:2},{path:/^\/identity\/user-group-admin\/edit\/.[^/]+$/,name:e("Edit User Group"),key:"userGroupEditAdmin",level:2,routePath:"/identity/user-group-admin/edit/:id"}]},{path:"/identity/role-admin",name:e("Roles"),key:"roleAdmin",level:1,children:[{path:/^\/identity\/role-admin\/detail\/.[^/]+$/,name:e("Role Detail"),key:"roleDetailAdmin",level:2,routePath:"/identity/role-admin/detail/:id"}]}]},{path:"/database",name:e("Database"),key:"databaseAdmin",endpoints:"trove",icon:m.default.createElement(u.default,null),children:[{path:"/database/instances-admin",name:e("Database Instances"),key:"databaseInstancesAdmin",level:1,children:[{path:/^\/database\/instances-admin\/detail\/.[^/]+$/,name:e("Database Instance Detail"),key:"databaseInstanceDetailAdmin",level:2,routePath:"/database/instances-admin/detail/:id"}]}]},{path:"/monitor-center",name:e("Monitor Center"),key:"/monitorCenterAdmin",icon:m.default.createElement(o.default,null),children:[{path:"/monitor-center/overview-admin",name:e("Monitor Overview"),key:"monitorOverviewAdmin",level:1,children:[],hasBreadcrumb:!0},{path:"/monitor-center/physical-node-admin",name:e("Physical Nodes"),key:"monitorPhysicalNodeAdmin",level:1,children:[],hasBreadcrumb:!0},{path:"/monitor-center/storage-cluster-admin",name:e("Storage Clusters"),key:"monitorStorageClusterAdmin",level:1,children:[],hasBreadcrumb:!0},{path:"/monitor-center/openstack-service-admin",name:e("OpenStack Services"),key:"monitorOpenstackServiceAdmin",level:1,children:[],hasBreadcrumb:!0},{path:"/monitor-center/other-service-admin",name:e("Other Services"),key:"monitorOtherServiceAdmin",level:1,children:[],hasBreadcrumb:!0}]},{path:"/configuration-admin",name:e("Global Setting"),key:"configurationAdmin",icon:m.default.createElement(i.default,null),children:[{path:"/configuration-admin/info",name:e("System Info"),key:"systemInfoAdmin",level:1,children:[{path:/^\/configuration-admin\/neutron\/detail\/.[^/]+$/,name:e("Neutron Agent Detail"),key:"neutronAgentDetailAdmin",level:2,routePath:"/configuration-admin/neutron/detail/:id"}]},{path:"/configuration-admin/setting",name:e("System Config"),key:"settingAdmin",level:1},{path:"/configuration-admin/metadata",name:e("Metadata Definitions"),key:"metadataAdmin",level:1,children:[{path:/^\/configuration-admin\/metadata\/detail\/.[^/]+$/,name:e("Metadata Detail"),key:"metadataDetailAdmin",level:2,routePath:"/configuration-admin/metadata/detail/:id"}]}]},{path:"/container",name:e("Container"),key:"containerAdmin",icon:m.default.createElement(l.default,null),children:[{path:"/container/containers-admin",name:e("Containers"),key:"zunContainersAdmin",endpoints:"zun",level:1,children:[{path:/^\/container\/containers-admin\/detail\/.[^/]+$/,name:e("Container Detail"),key:"zunContainerDetailAdmin",level:2,routePath:"/container/containers-admin/detail/:id"}]},{path:"/container/hosts-admin",name:e("Hosts"),key:"zunHostsAdmin",endpoints:"zun",level:1,children:[{path:/^\/container\/hosts-admin\/detail\/.[^/]+$/,name:e("Host Detail"),key:"zuHostsDetailAdmin",level:2,routePath:"/container/hosts-admin/detail/:id"}]},{path:"/container/services-admin",name:e("Services"),key:"zunServicesAdmin",endpoints:"zun",level:1}]}]:[]);t.default=g},1987:function(e,t,a){"use strict";var n=a(19),r=a(21);n(t,"__esModule",{value:!0}),t.default=void 0;var l=r(a(1388)),i=r(a(1389)),o=r(a(1387)),u=r(a(1390)),s=r(a(1290)),d=r(a(1327)),c=r(a(1322)),f=r(a(1328)),p=r(a(0)),h=(a(555),e=>e?[{path:"/base/overview",name:e("Home"),key:"overview",icon:p.default.createElement(f.default,null),level:0,hasBreadcrumb:!1,hasChildren:!1},{path:"/compute",name:e("Compute"),key:"compute",icon:p.default.createElement(c.default,null),children:[{path:"/compute/instance",name:e("Instances"),key:"instance",level:1,children:[{path:/^\/compute\/instance\/detail\/.[^/]+$/,name:e("Instance Detail"),key:"instanceDetail",level:2,routePath:"/compute/instance/detail/:id"},{path:"/compute/instance/create",name:e("Create Instance"),key:"instanceCreate",level:2},{path:"/compute/ironic-instance/create",name:e("Create Ironic Instance"),key:"ironicCreate",level:2}]},{path:"/compute/instance-snapshot",name:e("Instance Snapshots"),key:"instanceSnapshot",level:1,children:[{path:/^\/compute\/instance-snapshot\/detail\/[^/]+$/,name:e("Instance Snapshot Detail"),key:"instanceSnapshotDetail",level:2,routePath:"/compute/instance-snapshot/detail/:id"}]},{path:"/compute/flavor",name:e("Flavors"),key:"flavor",level:1,children:[{path:/^\/compute\/flavor\/detail\/.[^/]+$/,name:e("Flavor Detail"),key:"flavorDetail",level:2,routePath:"/compute/flavor/detail/:id"}]},{path:"/compute/server-group",name:e("Server Groups"),key:"serverGroup",level:1,children:[{path:/^\/compute\/server-group\/detail\/.[^/]+$/,name:e("Server Group Detail"),key:"serverGroupDetail",level:2,routePath:"/compute/server-group/detail/:id"}]},{path:"/compute/image",name:e("Images"),key:"image",level:1,children:[{path:/^\/compute\/image\/detail\/.[^/]+$/,name:e("Image Detail"),key:"imageDetail",level:2,routePath:"/compute/image/detail/:id"},{path:"/compute/image/create",name:e("Create Image"),key:"imageCreate",level:2}]},{path:"/compute/keypair",name:e("Key Pairs"),key:"keypair",level:1,children:[{path:/^\/compute\/keypair\/detail\/.[^/]*$/,name:e("Keypair Detail"),key:"keypairDetail",level:2,routePath:"/compute/keypair/detail/:id"}]}]},{path:"/storage",name:e("Storage"),key:"storage",icon:p.default.createElement(d.default,null),children:[{path:"/storage/volume",name:e("Volumes"),key:"volume",level:1,endpoints:"cinder",children:[{path:"/storage/volume/create",name:e("Create Volume"),key:"volumeCreate",level:2},{path:/^\/storage\/volume\/detail\/.[^/]+$/,name:e("Volume Detail"),key:"volumeDetail",level:2,routePath:"/storage/volume/detail/:id"}]},{path:"/storage/backup",name:e("Volume Backups"),key:"backup",level:1,endpoints:"cinder",children:[{path:/^\/storage\/backup\/detail\/.[^/]+$/,name:e("Volume Backup Detail"),key:"backupDetail",level:2,routePath:"/storage/backup/detail/:id"}]},{path:"/storage/snapshot",name:e("Volume Snapshots"),key:"snapshot",level:1,endpoints:"cinder",children:[{path:/^\/storage\/snapshot\/detail\/.[^/]+$/,name:e("Volume Snapshot Detail"),key:"snapshotDetail",level:2,routePath:"/storage/snapshot/detail/:id"}]},{path:"/storage/container",name:e("Object Storage"),key:"container",endpoints:"swift",level:1,children:[{path:/^\/storage\/container\/detail\/[^/]+$/,name:e("Container Detail"),key:"containerDetail",level:2,routePath:"/storage/container/detail/:id"},{path:/^\/storage\/container\/detail\/[^/]+\/.+$/,name:e("Folder Detail"),key:"folderDetail",level:2,routePath:"/storage/container/detail/:container/:folder"}]}]},{path:"/network",name:e("Network"),key:"/network",icon:p.default.createElement(s.default,null),children:[{path:"/network/networks",name:e("Networks"),key:"network",level:1,children:[{path:/^\/network\/networks\/detail\/.[^/]+$/,name:e("Network Detail"),key:"networkDetail",level:2,routePath:"/network/networks/detail/:id"},{path:/^\/network\/networks\/detail\/.[^/]+\/subnet\/.[^/]+$/,name:e("Subnet Detail"),key:"subnetDetail",level:2,routePath:"/network/networks/detail/:networkId/subnet/:id"}]},{path:"/network/port",name:e("Ports"),key:"port",level:1,children:[{path:/^\/network\/port\/detail\/.[^/]+$/,name:e("Port Detail"),key:"portDetail",level:2,routePath:"/network/port/detail/:id"},{path:/^\/network\/networks\/detail\/.[^/]+\/port\/.[^/]+$/,name:e("Port Detail"),key:"networkPortDetail",level:2,routePath:"/network/networks/detail/:networkId/port/:id"},{path:/^\/network\/networks\/detail\/.[^/]+\/subnet\/.[^/]+\/port\/.[^/]+$/,name:e("Port Detail"),key:"subnetPortDetail",level:2,routePath:"/network/networks/detail/:networkId/subnet/:subnetId/port/:id"},{path:/^\/network\/instance\/detail\/.[^/]+\/port\/.[^/]+$/,name:e("Port Detail"),key:"instancePortDetail",level:2,routePath:"/network/instance/detail/:instanceId/port/:id"}]},{path:"/network/qos-policy",name:e("QoS Policies"),key:"networkQos",endpoints:"neutron_qos",level:1,children:[{path:/^\/network\/qos-policy\/detail\/.[^/]+$/,name:e("QoS Policy Detail"),key:"networkQosDetail",level:2,routePath:"/network/qos-policy/detail/:id"}]},{path:"/network/router",name:e("Routers"),key:"router",level:1,children:[{path:/^\/network\/router\/detail\/.[^/]+$/,name:e("Router Detail"),key:"routerDetail",level:2,routePath:"/network/router/detail/:id"},{path:/^\/network\/router\/.[^/]+\/port\/.[^/]+$/,name:e("Port Detail"),key:"routerPortDetail",level:2,routePath:"/network/router/:routerId/port/:id"}]},{path:"/network/floatingip",name:e("Floating IPs"),key:"fip",level:1,children:[{path:/^\/network\/floatingip\/detail\/.[^/]+$/,name:e("Floating Ip Detail"),key:"fipDetail",level:2,routePath:"/network/floatingip/detail/:id"}]},{path:"/network/topo",name:e("Topology"),key:"networkTopo",level:1,children:[]},{path:"/network/load-balancers",name:e("Load Balancers"),key:"lb",endpoints:"octavia",level:1,children:[{path:"/network/load-balancers/create",name:e("Create Loadbalancer"),key:"lbCreate",level:2},{path:/^\/network\/load-balancers\/detail\/.[^/]+$/,name:e("Load Balancer Detail"),key:"lbDetail",level:2,routePath:"/network/load-balancers/detail/:id"},{path:/^\/network\/load-balancers\/.[^/]+\/listener\/.[^/]+$/,name:e("Listener Detail"),key:"lbListenerDetail",level:2,routePath:"/network/load-balancers/:loadBalancerId/listener/:id"}]},{path:"/network/certificate",name:e("Certificates"),key:"certificate",endpoints:"barbican",level:1,children:[{path:/^\/network\/certificate-container\/detail\/.[^/]+$/,name:e("Certificate Detail"),key:"certificateContainerDetail",level:2,routePath:"/network/certificate-container/detail/:id"},{path:/^\/network\/certificate-secret\/detail\/.[^/]+$/,name:e("Certificate Detail"),key:"certificateSecretDetail",level:2,routePath:"/network/certificate-secret/detail/:id"}]},{path:"/network/vpn",name:e("VPNs"),key:"vpn",endpoints:"neutron_vpn",level:1,children:[{path:/^\/network\/ipsec-site-connection\/detail\/.[^/]+$/,name:e("IPsec site connection Detail"),key:"ipsecDetail",level:2,routePath:"/network/ipsec-site-connection/detail/:id"}]},{path:"/network/security-group",name:e("Security Groups"),key:"securityGroup",level:1,children:[{path:/^\/network\/security-group\/detail\/.[^/]+$/,name:e("Security Group Detail"),key:"securityGroupDetail",level:2,routePath:"/network/security-group/detail/:id"}]}]},{path:"/share",name:e("Share File Storage"),key:"fileStorage",endpoints:"manilav2",icon:p.default.createElement(u.default,null),children:[{path:"/share/share",name:e("Shares"),key:"share",level:1,children:[{path:/^\/share\/share\/detail\/.[^/]+$/,name:e("Share Detail"),key:"shareDetail",level:2,routePath:"/share/share/detail/:id"},{path:"/share/share/create",name:e("Create Share"),key:"shareCreate",level:2}]},{path:"/share/share-network",name:e("Share Networks"),key:"shareNetwork",level:1,children:[{path:/^\/share\/share-network\/detail\/.[^/]+$/,name:e("Share Network Detail"),key:"shareNetworkDetail",level:2,routePath:"/share/share-network/detail/:id"}]},{path:"/share/share-group",name:e("Share Groups"),key:"shareGroup",level:1,children:[{path:/^\/share\/share-group\/detail\/.[^/]+$/,name:e("Share Group Detail"),key:"shareGroupDetail",level:2,routePath:"/share/share-group/detail/:id"}]}]},{path:"/heat",name:e("Orchestration"),key:"heat",endpoints:"heat",icon:p.default.createElement(o.default,null),children:[{path:"/heat/stack",name:e("Stacks"),key:"stack",level:1,children:[{path:/^\/heat\/stack\/detail\/.[^/]+\/.[^/]+$/,name:e("Stack Detail"),key:"stackDetail",level:2,routePath:"/heat/stack/detail/:id/:name"},{path:"/heat/stack/create",name:e("Create Stack"),key:"stackCreate",level:2},{path:/^\/heat\/stack\/edit\/.[^/]+\/.[^/]+$/,name:e("Update Template"),key:"stackEdit",level:2,routePath:"/heat/stack/edit/:id/:name"}]}]},{path:"/database",name:e("Database"),key:"database",endpoints:"trove",icon:p.default.createElement(i.default,null),children:[{path:"/database/instances",name:e("Database Instances"),key:"databaseInstances",level:1,children:[{path:/^\/database\/instances\/detail\/.[^/]+$/,name:e("Database Instance Detail"),key:"databaseInstanceDetail",level:2,routePath:"/database/instances/detail/:id"},{path:"/database/instances/create",name:e("Create Database Instance"),key:"databaseInstanceCreate",level:2}]},{path:"/database/backups",name:e("Backups"),key:"databaseBackups",level:1,children:[{path:/^\/database\/backup\/detail\/.[^/]+$/,name:e("Backup Detail"),key:"databaseBackupDetail",level:2,routePath:"/database/backups/detail/:id"}]},{path:"/database/configurations",name:e("Configuration Groups"),key:"configurations",level:1,children:[{path:/^\/database\/configuration\/detail\/.[^/]+$/,name:e("Configuration Detail"),key:"configurationsDetail",level:2,routePath:"/database/configurations/detail/:id"}]}]},{path:"/container",name:e("Container"),key:"container",icon:p.default.createElement(l.default,null),children:[{path:"/container/containers",name:e("Containers"),key:"zunContainers",endpoints:"zun",level:1,children:[{path:"/container/containers/create",name:e("Create Container"),key:"zunContainersCreateContainer",level:2},{path:/^\/container\/containers\/detail\/.[^/]+$/,name:e("Container Detail"),key:"zunContainerDetail",level:2,routePath:"/container/containers/detail/:id"}]},{path:"/container/capsules",name:e("Capsules"),key:"zunCapsules",endpoints:"zun",level:1,children:[{path:/^\/container\/capsules\/detail\/.[^/]+$/,name:e("Capsule Detail"),key:"zunCapsuleDetail",level:2,routePath:"/container/capsules/detail/:id"}]},{path:"/container-infra/clusters",name:e("Clusters"),key:"containerInfraClusters",endpoints:"magnum",level:1,children:[{path:/^\/container-infra\/clusters\/detail\/.[^/]+$/,name:e("Cluster Detail"),key:"containerInfraClusterDetail",level:2,routePath:"/container-infra/clusters/detail/:id"},{path:"/container-infra/clusters/create",name:e("Create Cluster"),key:"containerInfraCreateCluster",level:2}]},{path:"/container-infra/cluster-template",name:e("Cluster Templates"),key:"clusterTemplate",endpoints:"magnum",level:1,children:[{path:/^\/container-infra\/cluster-template\/detail\/.[^/]+$/,name:e("Cluster Template Detail"),key:"containerInfraClusterTemplateDetail",level:2,routePath:"/container-infra/cluster-template/detail/:id"},{path:"/container-infra/cluster-template/create",name:e("Create Cluster Template"),key:"containerInfraCreateClusterTemplate",level:2},{path:/^\/container-infra\/cluster-template\/update\/.[^/]+$/,name:e("Update Cluster Template"),key:"containerInfraUpdateClusterTemplate",level:2,routePath:"/container-infra/cluster-template/update/:id"}]}]}]:[]);t.default=h},1988:function(e,t,a){"use strict";var n=a(19),r=a(21);n(t,"__esModule",{value:!0}),t.default=void 0;var l=r(a(1293)),i=r(a(1328)),o=r(a(0)),u=(a(555),e=>e?[{path:"/user/center",name:e("User Center"),key:"userCenter",icon:o.default.createElement(i.default,null),level:0,hasBreadcrumb:!1,hasChildren:!1},{path:"/user/application-credentials",name:e("Application Credentials"),key:"applicationCredential",level:0,icon:o.default.createElement(l.default,null),children:[],hasChildren:!1}]:[]);t.default=u},1989:function(e,a,n){"use strict";var r=n(160),l=n(19),i=n(25),o=n(21);l(a,"__esModule",{value:!0}),a.default=a.Right=void 0;var u=o(n(57)),s=o(n(81));n(1268);var d=o(n(1269));n(1990);var c=o(n(1993)),f=o(n(36));n(1372);var p=o(n(1373)),h=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=_(t);if(a&&a.has(e))return a.get(e);var n={},r=l&&i;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=r?i(e,o):null;u&&(u.get||u.set)?l(n,o,u):n[o]=e[o]}n.default=e,a&&a.set(e,n);return n}(n(0)),m=(n(173),n(201)),g=n(406),v=o(n(4)),y=o(n(413)),b=o(n(1296)),x=o(n(672)),w=n(558),k=o(n(1391));function _(e){if("function"!=typeof r)return null;var t=new r,a=new r;return(_=function(e){return e?a:t})(e)}var{Content:C}=p.default;class M extends h.Component{constructor(e){super(e),(0,f.default)(this,"checkHasTab",(()=>{var{currentRoutes:e=[]}=this.props;if(0===e.length)return!1;var{hasTab:t}=e[e.length-1];return t||!1})),(0,f.default)(this,"renderBreadcrumb",(function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(!t||0===t.length)return null;var{hasBreadcrumb:a=!0}=t[t.length-1];if(!a&&void 0!==a)return null;var n=(0,u.default)(t).call(t,((e,a)=>0===a||a===t.length-1?h.default.createElement(c.default.Item,{key:e.key,className:k.default["breadcrumb-item"]},e.name):h.default.createElement(c.default.Item,{key:e.key},h.default.createElement(m.Link,{key:e.key,to:e.path,className:(0,v.default)(k.default["breadcrumb-item"],k.default["breadcrumb-link"])},e.name))));if(0===n.length)return null;var{hasTab:r}=t[t.length-1],l=r?k.default["breadcrumb-has-tab"]:"";return h.default.createElement("div",{className:(0,s.default)(e="".concat(k.default.breadcrumb," ")).call(e,l)},h.default.createElement(c.default,null,n))})),(0,f.default)(this,"renderChildren",((e,a,n)=>{var{hasError:r}=this.state;if(r)return h.default.createElement(b.default,{title:t("data"),link:this.getRoutePath("overview"),codeError:!0});try{var l,i;return h.default.createElement("div",{className:(0,s.default)(l=(0,s.default)(i="".concat(k.default.main," ")).call(i,e," ")).call(l,a)},(0,y.default)(this.routes,n))}catch(e){var o=this.getRoutePath("overview");return h.default.createElement(b.default,{title:t("data"),link:o,codeError:!0})}})),this.routes=e.route.routes,this.state={hasError:!1}}componentDidUpdate(e){var{location:{pathname:t}={}}=e,{location:{pathname:a}={}}=this.props;t!==a&&this.updateErrorState(!1)}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e,t){}get isAdminPage(){return this.props.isAdminPage||!1}getRouteName(e){return this.isAdminPage?"".concat(e,"Admin"):e}getRoutePath(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRouteName(e);return(0,w.getPath)({key:n,params:t,query:a})}updateErrorState(e){this.setState({hasError:e})}render(){var{pathname:e}=this.props.location,{collapsed:t,currentRoutes:a,isAdminPage:n=!1}=this.props,r=this.renderBreadcrumb(a),l=null!==r,{user:i}=this.props.rootStore,o=this.checkHasTab(e),u=l?"":k.default["main-no-breadcrumb"],s=o?k.default["main-has-tab"]:"",c={sliderCollapsed:t,isAdminPage:n},f=i?this.renderChildren(u,s,c):h.default.createElement("div",{style:{margin:"44px"}},h.default.createElement(d.default,null));return h.default.createElement(p.default,{className:(0,v.default)(k.default["base-layout-right"],t?k.default["base-layout-right-collapsed"]:"")},h.default.createElement(C,{className:k.default.content},r,h.default.createElement(h.Suspense,{fallback:h.default.createElement(x.default,{className:"sl-page-loading"})},f)))}}a.Right=M;var N=(0,g.inject)("rootStore")((0,g.observer)(M));a.default=N},1997:function(e,t,a){(t=e.exports=a(74)(!1)).push([e.i,"/* init */\n/* specific color */\n/* border */\n/* background */\n/* shadow */\n/* font */\n/* 中号字体 */\n/* animation */\n/* size */\n/* sider */\n.index__nav--1IKuR {\n left: -270px;\n}\n.index__header--3eaFT,\n.index__header-collapsed--2VIjO {\n top: 0;\n left: 0;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n height: 40px;\n padding: 0;\n padding-left: 230px;\n color: #fff;\n}\n.index__header-collapsed--2VIjO {\n padding-left: 88px;\n}\n.index__logo--t_KQf {\n height: 32px;\n margin: 16px 38px;\n}\n.index__logo-collapse--1dyW- {\n margin: 16px 24px;\n}\n.index__logo-image--1r9zB {\n height: 29px;\n}\n.index__logo-image-hover--r0EY5 {\n margin-left: -20px;\n}\n.index__site-layout-background--1KhiG {\n background: #fff;\n}\n.index__sider--3mcQr {\n position: relative;\n height: 100vh;\n overflow-y: auto;\n}\n.index__sider--3mcQr .ant-layout-sider-trigger {\n position: absolute;\n right: 0;\n bottom: 48px;\n width: 32px !important;\n height: 75px;\n font-size: 16px;\n line-height: 75px;\n background-color: #26262b;\n border-width: 32px;\n border-radius: 4px 0 0 4px;\n}\n.index__menu--38cbE {\n max-height: calc(100vh - 64px);\n padding-right: 14px;\n padding-left: 14px;\n overflow-y: auto;\n}\n.index__menu--38cbE::-webkit-scrollbar {\n width: 12px;\n}\n.index__menu--38cbE::-webkit-scrollbar-track {\n border-radius: 10px;\n -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);\n box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);\n}\n.index__menu--38cbE::-webkit-scrollbar-thumb {\n border-radius: 10px;\n -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);\n box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);\n}\n.index__menu--38cbE a {\n color: inherit !important;\n}\n.index__menu--38cbE .ant-menu-item {\n font-size: 14px;\n}\n.index__menu--38cbE .ant-menu-submenu-title {\n font-size: 14px;\n}\n.index__menu--38cbE .anticon {\n float: left;\n margin-right: 20px;\n font-size: 14px;\n line-height: 44px;\n}\n.index__menu--38cbE .ant-menu-item-selected {\n background-color: #0068FF;\n border-radius: 4px;\n}\n.index__menu-item--3jS31 {\n font-size: 14px;\n}\n.index__menu-item--3jS31 a {\n color: inherit;\n}\n.index__menu-item--3jS31 a::before {\n width: 5px;\n}\n.index__content--2bhUz {\n height: calc(100vh - 40px);\n background-color: #fafafa;\n}\n.index__sub-menu--1MaIG {\n font-size: 10px;\n}\n.index__sub-menu--1MaIG .ant-menu-sub.ant-menu-inline {\n padding-right: 5px;\n padding-left: 5px;\n}\n.index__sub-menu--1MaIG .ant-menu-item > span::before {\n position: absolute;\n top: 18px;\n bottom: 0;\n left: 30px;\n width: 5px;\n height: 5px;\n background-color: rgba(255, 255, 255, 0.65);\n border-radius: 50%;\n content: '';\n}\n.index__sub-menu--1MaIG .ant-menu-item-selected > span::before {\n background-color: #fff !important;\n}\n.index__sub-menu--1MaIG .ant-menu-item-active > span::before {\n background-color: #0068FF;\n}\n.index__sub-menu--1MaIG .ant-menu-dark.ant-menu-dark:not(.ant-menu-horizontal) .ant-menu-item-selected {\n background-color: #0068FF;\n border-radius: 4px;\n}\n.index__breadcrumb--2Wm6M {\n height: 50px;\n padding-left: 16px;\n background-color: #fff;\n}\n.index__breadcrumb--2Wm6M .index__breadcrumb-item--qhsVt {\n line-height: 50px;\n}\n.index__breadcrumb--2Wm6M .index__breadcrumb-link--3_6RK {\n color: #0068FF;\n}\n.index__breadcrumb-has-tab--Nwd3S {\n height: 80px;\n}\n.index__main--jl6wy {\n height: calc(100vh - 40px - 50px);\n overflow: hidden;\n}\n.index__main-no-breadcrumb--2XmS2 {\n height: calc(100vh - 40px);\n}\n.index__main-has-tab--3wlbw {\n margin-top: -42px;\n}\n.index__trigger-wrapper--rqEk9 {\n position: absolute;\n right: -24px;\n bottom: 48px;\n width: 24px !important;\n height: 70px;\n font-size: 16px;\n line-height: 70px;\n border-width: 24px;\n border-radius: 4px 0 0 4px;\n cursor: pointer;\n}\n.index__trigger--3pSSC {\n position: absolute;\n left: 0;\n color: #fff;\n font-size: 20px;\n}\n.index__trigger--3pSSC::before {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: -1;\n background: rgba(0, 0, 0, 0.35);\n border-right: none;\n border-radius: 0 4px 4px 0;\n -webkit-transform: scaleX(2.2) perspective(50px) rotateY(50deg);\n transform: scaleX(2.2) perspective(50px) rotateY(50deg);\n -webkit-transform-origin: bottom;\n transform-origin: bottom;\n -webkit-transform-origin: left;\n transform-origin: left;\n content: '';\n}\n.index__trigger-icon--2oz_J {\n margin-left: 2px;\n}\n.index__base-layout--1IYXj {\n position: relative;\n width: 100%;\n height: 100vh;\n}\n.index__base-layout-sider--1TtvU {\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n z-index: 999;\n width: 230px;\n background-color: #26262b;\n -webkit-transition: all 0.2s;\n transition: all 0.2s;\n}\n.index__base-layout-sider-collapsed--37BAU {\n width: 88px;\n -webkit-transition: all 0.2s;\n transition: all 0.2s;\n}\n.index__base-layout-right--3JjUr {\n position: absolute;\n top: 40px;\n right: 0;\n left: 230px;\n height: calc(100vh - 40px);\n}\n.index__base-layout-right-collapsed--2DIVo {\n left: 88px;\n}\n.index__base-layout-sider-hover--MC2Db {\n width: 230px;\n -webkit-transition: all 0.2s;\n transition: all 0.2s;\n}\n.index__notice--1C1vX {\n position: absolute;\n top: 48px;\n right: 0;\n z-index: 1100;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n width: 384px;\n max-width: calc(100vw - 48px);\n margin: 0 24px 0 0;\n margin-bottom: 16px;\n padding: 16px 24px;\n overflow: hidden;\n color: #0068ff;\n font-size: 18px;\n line-height: 24px;\n word-wrap: break-word;\n background: #fff;\n border-radius: 4px;\n -webkit-box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);\n box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);\n cursor: pointer;\n}\n.index__menu-item-title--2G1wq span {\n display: inline-block;\n max-width: 140px;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n",""]),t.locals={nav:"index__nav--1IKuR",header:"index__header--3eaFT","header-collapsed":"index__header-collapsed--2VIjO",logo:"index__logo--t_KQf","logo-collapse":"index__logo-collapse--1dyW-","logo-image":"index__logo-image--1r9zB","logo-image-hover":"index__logo-image-hover--r0EY5","site-layout-background":"index__site-layout-background--1KhiG",sider:"index__sider--3mcQr",menu:"index__menu--38cbE","menu-item":"index__menu-item--3jS31",content:"index__content--2bhUz","sub-menu":"index__sub-menu--1MaIG",breadcrumb:"index__breadcrumb--2Wm6M","breadcrumb-item":"index__breadcrumb-item--qhsVt","breadcrumb-link":"index__breadcrumb-link--3_6RK","breadcrumb-has-tab":"index__breadcrumb-has-tab--Nwd3S",main:"index__main--jl6wy","main-no-breadcrumb":"index__main-no-breadcrumb--2XmS2","main-has-tab":"index__main-has-tab--3wlbw","trigger-wrapper":"index__trigger-wrapper--rqEk9",trigger:"index__trigger--3pSSC","trigger-icon":"index__trigger-icon--2oz_J","base-layout":"index__base-layout--1IYXj","base-layout-sider":"index__base-layout-sider--1TtvU","base-layout-sider-collapsed":"index__base-layout-sider-collapsed--37BAU","base-layout-right":"index__base-layout-right--3JjUr","base-layout-right-collapsed":"index__base-layout-right-collapsed--2DIVo","base-layout-sider-hover":"index__base-layout-sider-hover--MC2Db",notice:"index__notice--1C1vX","menu-item-title":"index__menu-item-title--2G1wq"}},1998:function(e,t,a){"use strict";var n=a(160),r=a(19),l=a(25),i=a(21);r(t,"__esModule",{value:!0}),t.default=t.LayoutMenu=void 0;var o=i(a(90)),u=i(a(57)),s=i(a(32)),d=i(a(339)),c=i(a(579)),f=i(a(81)),p=i(a(102)),h=i(a(1516)),m=i(a(1517));a(411);var g=i(a(227)),v=i(a(36));a(1227);var y=i(a(418)),b=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=I(t);if(a&&a.has(e))return a.get(e);var n={},i=r&&l;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=i?l(e,o):null;u&&(u.get||u.set)?r(n,o,u):n[o]=e[o]}n.default=e,a&&a.set(e,n);return n}(a(0)),x=(a(173),a(555),a(201)),w=a(406),k=a(34),_=i(a(4)),C=i(a(2001)),M=i(a(2002)),N=a(558),S=i(a(1391));function I(e){if("function"!=typeof n)return null;var t=new n,a=new n;return(I=function(e){return e?a:t})(e)}var{SubMenu:E}=y.default;class T extends b.Component{constructor(e){var t;super(e),t=this,(0,v.default)(this,"onCollapse",(e=>{this.setState({collapsed:e})})),(0,v.default)(this,"changeCollapse",(()=>{var{collapsed:e}=this.state;this.setState({collapsed:!e,hover:!1});var{onCollapseChange:t}=this.props;t&&t(!e)})),(0,v.default)(this,"onMouseEnter",(e=>{var{collapsed:t}=this.state;if(t){var a=e&&e.target||null,n=a&&a.className||"";(0,o.default)(n).call(n,"trigger")<0&&this.setState({hover:!0})}})),(0,v.default)(this,"onMouseLeave",(()=>{var{hover:e}=this.state;e&&this.setState({hover:!1})})),(0,v.default)(this,"onClickMenuItem",(e=>{var{key:t}=e,a=(0,N.getPath)({key:t}),{pathname:n}=this.props;n!==a&&this.routing.push(a)})),(0,v.default)(this,"renderMenuItem",(e=>{var t,{collapsed:a,hover:n}=this.state;if(a&&!n)return b.default.createElement(y.default.Item,{key:e.key,className:S.default["menu-item"]},e.icon);if(e.level>1)return null;if(!e.children||0===e.children.length||e.level)return b.default.createElement(y.default.Item,{key:e.key,className:S.default["menu-item"],onClick:this.onClickMenuItem},e.icon,b.default.createElement("span",{className:S.default["menu-item-title"]},e.name.length>=this.maxTitleLength?b.default.createElement(g.default,{title:e.name,placement:"right"},e.name):e.name));var r=b.default.createElement("span",null,e.icon,b.default.createElement("span",null,e.name.length>=this.maxTitleLength?b.default.createElement(g.default,{title:e.name,placement:"right"},e.name):e.name)),l=(0,u.default)(t=e.children).call(t,(e=>this.renderMenuItem(e)));return b.default.createElement(E,{key:e.key,title:r,className:S.default["sub-menu"]},l)})),(0,v.default)(this,"renderMenu",(function(){var e,a,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],{openKeys:r}=t.state,{openKeys:l}=t.rootStore,i=0===r.length?(0,k.toJS)(l):r,o=(0,s.default)(e=(0,u.default)(a=t.menu).call(a,(e=>t.renderMenuItem(e)))).call(e,(e=>null!==e));return b.default.createElement(y.default,{theme:"dark",mode:"inline",className:S.default.menu,defaultSelectedKeys:n,selectedKeys:n,openKeys:i,onOpenChange:t.onOpenChange},o)})),(0,v.default)(this,"onOpenChange",(e=>{var{openKeys:t}=this.state,{openKeys:a}=this.rootStore,n=(0,d.default)(new c.default((0,f.default)(t).call(t,(0,k.toJS)(a)))),r=(0,p.default)(e).call(e,(e=>-1===(0,o.default)(n).call(n,e))),l=r?[r]:[];this.rootStore.updateOpenKeys(l),this.setState({openKeys:l})})),(0,v.default)(this,"getSelectedKeys",(e=>0===e.length?[]:1===e.length?[e[0].key]:e.length>=2?[e[1].key]:[])),this.state={collapsed:!1,hover:!1,openKeys:[]},this.maxTitleLength=17}get menu(){return this.props.menu||[]}get isAdminPage(){return this.props.isAdminPage||!1}getRouteName(e){return this.isAdminPage?"".concat(e,"Admin"):e}getRoutePath(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=this.getRouteName(e);return(0,N.getPath)({key:n,params:t,query:a})}get rootStore(){return this.props.rootStore}get routing(){return this.props.rootStore.routing}getImage(e){return e?M.default:C.default}renderTrigger(){var{collapsed:e}=this.state,t=e?b.default.createElement(m.default,{className:S.default["trigger-icon"]}):b.default.createElement(h.default,{className:S.default["trigger-icon"]});return b.default.createElement("div",{className:S.default["trigger-wrapper"]},b.default.createElement("div",{className:S.default.trigger,onClick:this.changeCollapse},t))}renderLogo(){var{collapsed:e,hover:t}=this.state,a=!e||t,n=this.getImage(a),r=this.getRoutePath("overview");return b.default.createElement("div",{className:(0,_.default)(S.default.logo,a?"":S.default["logo-collapse"])},b.default.createElement(x.Link,{to:r},b.default.createElement("img",{src:n,alt:"logo",className:S.default["logo-image"]})))}render(){var{currentRoutes:e}=this.props,t=this.getSelectedKeys(e),{hover:a,collapsed:n}=this.state,r=this.renderTrigger();return b.default.createElement("div",{className:(0,_.default)(S.default["base-layout-sider"],n?S.default["base-layout-sider-collapsed"]:"",a?S.default["base-layout-sider-hover"]:""),onMouseEnter:this.onMouseEnter,onMouseLeave:this.onMouseLeave},this.renderLogo(),this.renderMenu(t),r)}}t.LayoutMenu=T;var j=(0,w.inject)("rootStore")((0,w.observer)(T));t.default=j},2001:function(e,t,a){"use strict";a.r(t),t.default=a.p+"asset/image/logo-small.svg"},2002:function(e,t,a){"use strict";a.r(t),t.default=a.p+"asset/image/logo-extend.svg"}}]);