forgeplus/public/react/build/static/js/37.1154a732.chunk.js

1 line
29 KiB
JavaScript

(this.webpackJsonp=this.webpackJsonp||[]).push([[37,86],{"0Cz8":function(e,t,n){var r=n("Xi7e"),o=n("ebwN"),i=n("e4Nc");e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},"4oKn":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n("M/lh")),o=u(n("17x9")),i=u(n("q1tI")),a=n("JwdM");function u(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?v(e):t}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(l,e);var t,n,o,u=h(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),g(v(t=u.call(this,e)),"assignRef",(function(e){t.containerElement=e})),t.containerElement=void 0,t}return t=l,(n=[{key:"componentDidMount",value:function(){this.initMonaco()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.language,o=t.theme,i=t.height,a=t.options,u=t.width,l=this.editor.getModel(),c=l.original,s=l.modified;this.props.original!==c.getValue()&&c.setValue(this.props.original),null!=this.props.value&&this.props.value!==s.getValue()&&(this.__prevent_trigger_change_event=!0,this.editor.modifiedEditor.pushUndoStop(),s.pushEditOperations([],[{range:s.getFullModelRange(),text:this.props.value}]),this.editor.modifiedEditor.pushUndoStop(),this.__prevent_trigger_change_event=!1),e.language!==n&&(r.editor.setModelLanguage(c,n),r.editor.setModelLanguage(s,n)),e.theme!==o&&r.editor.setTheme(o),!this.editor||u===e.width&&i===e.height||this.editor.layout(),e.options!==a&&this.editor.updateOptions(a)}},{key:"componentWillUnmount",value:function(){this.destroyMonaco()}},{key:"editorWillMount",value:function(){var e=this.props.editorWillMount;return e(r)||{}}},{key:"editorDidMount",value:function(e){var t=this;this.props.editorDidMount(e,r);var n=e.getModel().modified;this._subscription=n.onDidChangeContent((function(e){t.__prevent_trigger_change_event||t.props.onChange(n.getValue(),e)}))}},{key:"initModels",value:function(e,t){var n=this.props.language,o=r.editor.createModel(t,n),i=r.editor.createModel(e,n);this.editor.setModel({original:o,modified:i})}},{key:"initMonaco",value:function(){var e=null!=this.props.value?this.props.value:this.props.defaultValue,t=this.props,n=t.original,o=t.theme,i=t.options,a=t.overrideServices;this.containerElement&&(this.editorWillMount(),this.editor=r.editor.createDiffEditor(this.containerElement,f(f({},i),o?{theme:o}:{}),a),this.initModels(e,n),this.editorDidMount(this.editor))}},{key:"destroyMonaco",value:function(){if(this.editor){this.editor.dispose();var e=this.editor.getModel(),t=e.original,n=e.modified;t&&t.dispose(),n&&n.dispose()}this._subscription&&this._subscription.dispose()}},{key:"render",value:function(){var e=this.props,t=e.width,n=e.height,r={width:(0,a.processSize)(t),height:(0,a.processSize)(n)};return i.default.createElement("div",{ref:this.assignRef,style:r,className:"react-monaco-editor-container"})}}])&&p(t.prototype,n),o&&p(t,o),l}(i.default.Component);b.propTypes={width:o.default.oneOfType([o.default.string,o.default.number]),height:o.default.oneOfType([o.default.string,o.default.number]),original:o.default.string,value:o.default.string,defaultValue:o.default.string,language:o.default.string,theme:o.default.string,options:o.default.object,overrideServices:o.default.object,editorDidMount:o.default.func,editorWillMount:o.default.func,onChange:o.default.func},b.defaultProps={width:"100%",height:"100%",original:null,value:null,defaultValue:"",language:"javascript",theme:null,options:{},overrideServices:{},editorDidMount:a.noop,editorWillMount:a.noop,onChange:a.noop};var O=b;t.default=O},"5CEZ":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=h(n("kLXV")),o=h(n("W9HT")),i=h(n("5rEg")),a=h(n("Vl3Y")),u=h(n("2fM7")),l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};n("k3Gp"),n("04bd"),n("1vPl"),n("tULf"),n("8QGh");var s=n("q1tI"),f=h(s),p=h(n("INjQ")),d=h(n("vDqi"));function h(e){return e&&e.__esModule?e:{default:e}}var y=u.default.Option,v=["Java","C","C++","Python","Go","Ruby","R","PHP","Perl","Node","Docker","Rust","Swift","Erlang","Other"];t.default=a.default.create()((0,s.forwardRef)((function(e,t){var n=e.form,h=e.visible,m=e.onCancel,g=e.onOk,b=(0,s.useState)(void 0),O=c(b,2),_=O[0],j=O[1],E=(0,s.useState)(!1),w=c(E,2),P=w[0],x=w[1],M=(0,s.useState)(!1),S=c(M,2),C=S[0],k=S[1],D=(0,s.useState)(!1),N=c(D,2),R=N[0],T=N[1],z=(0,s.useState)(!1),V=c(z,2),A=V[0],I=V[1],L=n.getFieldDecorator,W=n.validateFields,U=n.setFieldsValue;(0,s.useImperativeHandle)(t,(function(){return{setEditInfo:function(e){e?(U(l({},e)),"build"===e.stage_type?(I(!0),U({category:v[0]})):J(),j(e.content),T(e.id)):(J(),B(),T(void 0))}}}));var F=(0,s.useCallback)((function(e,t,n,r,o,i,u){return f.default.createElement(a.default.Item,{label:e,className:o},L(t,{rules:n,validateFirst:!0,valuePropName:u?"checked":"value"})(r))}),[]);function q(){B(),m()}function B(){U({stage_type:"init",template_name:void 0,category:"Java"}),j(""),k(!1)}function J(){I(!1),U({category:""})}return f.default.createElement(r.default,{visible:h,width:"500px",title:"新建/编辑模板",onCancel:q,onOk:function(){_?W((function(e,t){if(!e){x(!0);d.default.post("/ci/templates.json",l({},t,{id:R,content:_,category:A?t.category:""})).then((function(e){e&&e.data&&(x(!1),q(),g())})).catch((function(e){}))}})):k(!0)},centered:!0},f.default.createElement(o.default,{spinning:P},f.default.createElement(a.default,{layout:"inline"},F("所属阶段","stage_type",[{required:!0,message:"请选择所属阶段"}],f.default.createElement(u.default,{placeholder:"请选择所属阶段",style:{width:"350px"},onChange:function(e){!function(e){"build"===e?(I(!0),U({category:v[0]})):J()}(e)}},f.default.createElement(y,{value:"init"},"初始化"),f.default.createElement(y,{value:"build"},"编译构建"),f.default.createElement(y,{value:"deploy"},"部署"),f.default.createElement(y,{value:"customize"},"其他"))),F("模板名称","template_name",[{required:!0,message:"请输入模板名称"}],f.default.createElement(i.default,{placeholder:"请输入模板名称",style:{width:"350px"}})),F("模板分类","category",[{required:A,message:"请选择模板分类"}],f.default.createElement(u.default,{placeholder:"请选择模板分类",style:{width:"350px"}},v.map((function(e,t){return f.default.createElement(y,{value:e},e)}))),!0===A?"":"hide"),f.default.createElement("div",{style:{display:"flex",justifyContent:"flex-start"}},f.default.createElement("span",null,f.default.createElement("span",{className:"color-red"},"* "),"模板内容:"),f.default.createElement("div",null,f.default.createElement("div",{className:"editorPanel"},f.default.createElement(p.default,{Numbers:"off",width:"350px",value:_,height:"200px",theme:"vs-grey",onChange:function(e){e&&(j(e),k(!1))}})),C&&f.default.createElement("span",{className:"color-red"},"请输入模板内容"))))))})))},"6sVZ":function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},"77Zs":function(e,t,n){var r=n("Xi7e");e.exports=function(){this.__data__=new r,this.size=0}},B8du:function(e,t){e.exports=function(){return!1}},DSRE:function(e,t,n){(function(e){var r=n("Kz5y"),o=n("B8du"),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,u=a&&a.exports===i?r.Buffer:void 0,l=(u?u.isBuffer:void 0)||o;e.exports=l}).call(this,n("YuTi")(e))},INjQ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=i(n("q1tI")),o=i(n("gL5p"));function i(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.value,n=e.onChange,i=e.theme,a=e.height,u=e.visible,l=e.width,c=void 0===l?"100%":l,s=e.Numbers,f={lineNumbers:void 0===s?"on":s,wordWrap:!0,selectOnLineNumbers:!0,lineHeight:24,renderLineHighlight:"line",revealHorizontalRightPadding:5,placeholder:"请输入内容",readOnly:u,cursorStyle:u?"underline-thin":"line",folding:!0,foldingStrategy:"indentation",automaticLayout:!0,minimap:{enabled:!1}};return r.default.createElement(o.default,{height:a,width:c,language:"yaml",theme:i,placeholder:"请输入内容",value:t,options:f,onChange:function(e){return n(e)},disabled:!0})}},JHRd:function(e,t,n){var r=n("Kz5y").Uint8Array;e.exports=r},JwdM:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.processSize=function(e){return/^\d+$/.test(e)?"".concat(e,"px"):e},t.noop=function(){}},L8xA:function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},MMmD:function(e,t,n){var r=n("lSCD"),o=n("shjB");e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},NJEC:function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),o=n("VCL8"),i=n("3S7+"),a=n("CtXQ"),u=n("2/Rp"),l=n("YMnH"),c=n("ZvpZ"),s=n("H84U");function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?m(e):t}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(f,e);var t,n,o,a=y(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=a.call(this,e)).onConfirm=function(e){t.setVisible(!1,e);var n=t.props.onConfirm;n&&n.call(m(t),e)},t.onCancel=function(e){t.setVisible(!1,e);var n=t.props.onCancel;n&&n.call(m(t),e)},t.onVisibleChange=function(e){t.props.disabled||t.setVisible(e)},t.saveTooltip=function(e){t.tooltip=e},t.renderOverlay=function(e,n){var o=t.props,i=o.okButtonProps,a=o.cancelButtonProps,l=o.title,c=o.cancelText,s=o.okText,f=o.okType,d=o.icon;return r.createElement("div",null,r.createElement("div",{className:"".concat(e,"-inner-content")},r.createElement("div",{className:"".concat(e,"-message")},d,r.createElement("div",{className:"".concat(e,"-message-title")},l)),r.createElement("div",{className:"".concat(e,"-buttons")},r.createElement(u.default,p({onClick:t.onCancel,size:"small"},a),c||n.cancelText),r.createElement(u.default,p({onClick:t.onConfirm,type:f,size:"small"},i),s||n.okText))))},t.renderConfirm=function(e){var n=e.getPrefixCls,o=t.props,a=o.prefixCls,u=o.placement,s=b(o,["prefixCls","placement"]),f=n("popover",a),d=r.createElement(l.a,{componentName:"Popconfirm",defaultLocale:c.a.Popconfirm},(function(e){return t.renderOverlay(f,e)}));return r.createElement(i.default,p({},s,{prefixCls:f,placement:u,onVisibleChange:t.onVisibleChange,visible:t.state.visible,overlay:d,ref:t.saveTooltip}))},t.state={visible:e.visible},t}return t=f,o=[{key:"getDerivedStateFromProps",value:function(e){return"visible"in e?{visible:e.visible}:"defaultVisible"in e?{visible:e.defaultVisible}:null}}],(n=[{key:"getPopupDomNode",value:function(){return this.tooltip.getPopupDomNode()}},{key:"setVisible",value:function(e,t){var n=this.props;"visible"in n||this.setState({visible:e});var r=n.onVisibleChange;r&&r(e,t)}},{key:"render",value:function(){return r.createElement(s.a,null,this.renderConfirm)}}])&&d(t.prototype,n),o&&d(t,o),f}(r.Component);O.defaultProps={transitionName:"zoom-big",placement:"top",trigger:"click",okType:"primary",icon:r.createElement(a.default,{type:"exclamation-circle",theme:"filled"}),disabled:!1},Object(o.polyfill)(O),t.default=O},"UNi/":function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},VaNO:function(e,t){e.exports=function(e){return this.__data__.has(e)}},ZYHo:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,i=b(n("NUBc")),a=b(n("wCAj")),u=b(n("5rEg")),l=b(n("NJEC")),c=b(n("2fM7")),s=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&u.return&&u.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},f=(r=["{\n padding:24px 30px;\n min-height:420px;\n}"],o=["{\n padding:24px 30px;\n min-height:420px;\n}"],Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(o)}})));n("YQTV"),n("mbEz"),n("1vPl"),n("k994"),n("8QGh");var p=n("q1tI"),d=b(p),h=n("spEH"),y=n("eO8H"),v=b(n("vOnD")),m=b(n("vDqi")),g=b(n("5CEZ"));function b(e){return e&&e.__esModule?e:{default:e}}var O=c.default.Option,_=v.default.div(f),j=[{stage_name:"所有",stage_type:"all"},{stage_name:"初始化",stage_type:"init"},{stage_name:"编译构建",stage_type:"build"},{stage_name:"部署",stage_type:"deploy"},{stage_name:"其他",stage_type:"customize"}];t.default=function(e){var t=(0,p.useState)(!1),n=s(t,2),r=n[0],o=n[1],f=(0,p.useState)(void 0),v=s(f,2),b=v[0],E=v[1],w=(0,p.useState)(1),P=s(w,2),x=P[0],M=P[1],S=(0,p.useState)(0),C=s(S,2),k=C[0],D=C[1],N=(0,p.useState)("all"),R=s(N,2),T=R[0],z=R[1],V=(0,p.useState)(void 0),A=s(V,2),I=A[0],L=A[1],W=(0,p.useRef)(),U=e.match.params.projectsId,F=e.match.params.owner;function q(e,t,n){m.default.get("/ci/templates/list.json",{params:{page:e,limit:15,stage_type:t,name:n}}).then((function(e){e&&e.data&&(E(e.data.templates),D(e.data.total_count))})).catch((function(e){}))}(0,p.useEffect)((function(){q(x,T)}),[x,T]);var B=[{title:"名称",dataIndex:"template_name",key:1,ellipsis:!0},{title:"所属阶段",dataIndex:"stage_type",key:2,ellipsis:!0,render:function(e,t){var n=j.filter((function(t){return t.stage_type===e}));return n&&n.length>0&&n[0].stage_name}},{title:"模板类型",dataIndex:"category",key:3,ellipsis:!0},{title:"操作",dataIndex:"operation",key:4,ellipsis:!0,render:function(t,n){return d.default.createElement("span",null,d.default.createElement("a",{className:"mr10 color-grey-6",onClick:function(){return function(e){W.current&&W.current.setEditInfo(e);o(!0)}(n)}},d.default.createElement("i",{className:"iconfont icon-zaibianji font-13 mr3"}),"编辑"),d.default.createElement(l.default,{title:"确定要删除此模板?",onConfirm:function(){return t=n.id,r="/ci/templates/"+t+".json",void m.default.delete(r).then((function(t){t&&t.data&&(e.showNotification("模板删除成功!"),q(x,T,I))}));var t,r},okText:"确定",cancelText:"取消"},d.default.createElement("a",{className:"mr10 color-grey-6"},d.default.createElement("i",{className:"iconfont icon-lajitong font-13 mr3"}),"删除")))}}];return d.default.createElement("div",null,d.default.createElement(g.default,{wrappedComponentRef:function(e){return W.current=e},ref:W,visible:r,onCancel:function(){return o(!1)},onOk:function(){q(x,T)}}),d.default.createElement(h.Banner,null,d.default.createElement(h.FlexAJ,null,d.default.createElement("span",null,"工作流 - 模板管理"),d.default.createElement(y.Link,{to:"/"+F+"/"+U+"/devops",className:"font-14 color-grey-9"},"返回"))),d.default.createElement(_,{className:"disposeList"},d.default.createElement(h.FlexAJ,null,d.default.createElement(h.Blueback,{onClick:function(){W.current&&W.current.setEditInfo(void 0),o(!0)}},"新建模板"),d.default.createElement(h.FlexAJ,null,d.default.createElement("span",{className:"mr10"},"阶段:"),d.default.createElement(c.default,{onChange:function(e){return z(e)},value:T,style:{width:"180px"}},j.map((function(e,t){return d.default.createElement(O,{value:e.stage_type},e.stage_name)}))),d.default.createElement(u.default,{placeholder:"请输入模板名称",value:I,onChange:function(e){return L(e.target.value)},allowClear:!0,style:{width:"160px",marginLeft:"15px"}}),d.default.createElement(h.Blueback,{className:"ml15",onClick:function(){q(x,T,I)}},"搜索"))),d.default.createElement(a.default,{className:"mt20",size:"small",columns:B,dataSource:b,rowKey:function(e){return e.id},pagination:!1}),k>15&&d.default.createElement("div",{className:"mt20 pb20",style:{textAlign:"center"}},d.default.createElement(i.default,{simple:!0,current:x,pageSize:15,total:k,onChange:function(e){return M(e)}}))))}},b80T:function(e,t,n){var r=n("UNi/"),o=n("03A+"),i=n("Z0cm"),a=n("DSRE"),u=n("wJg7"),l=n("c6wG"),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),s=!n&&o(e),f=!n&&!s&&a(e),p=!n&&!s&&!f&&l(e),d=n||s||f||p,h=d?r(e.length,String):[],y=h.length;for(var v in e)!t&&!c.call(e,v)||d&&("length"==v||f&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||u(v,y))||h.push(v);return h}},c6wG:function(e,t,n){var r=n("dD9F"),o=n("sEf8"),i=n("mdPL"),a=i&&i.isTypedArray,u=a?o(a):r;e.exports=u},dD9F:function(e,t,n){var r=n("NykK"),o=n("shjB"),i=n("ExA7"),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},fmRc:function(e,t,n){var r=n("Xi7e"),o=n("77Zs"),i=n("L8xA"),a=n("gCq4"),u=n("VaNO"),l=n("0Cz8");function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=u,c.prototype.set=l,e.exports=c},gCq4:function(e,t){e.exports=function(e){return this.__data__.get(e)}},gL5p:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"MonacoDiffEditor",{enumerable:!0,get:function(){return o.default}});var r=i(n("j6EG")),o=i(n("4oKn"));function i(e){return e&&e.__esModule?e:{default:e}}},j6EG:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==c(e)&&"function"!=typeof e)return{default:e};var t=l();if(t&&t.has(e))return t.get(e);var n={},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}n.default=e,t&&t.set(e,n);return n}(n("M/lh")),o=u(n("17x9")),i=u(n("q1tI")),a=n("JwdM");function u(e){return e&&e.__esModule?e:{default:e}}function l(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return l=function(){return e},e}function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?m(e):t}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(l,e);var t,n,o,u=y(l);function l(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),b(m(t=u.call(this,e)),"assignRef",(function(e){t.containerElement=e})),t.containerElement=void 0,t}return t=l,(n=[{key:"componentDidMount",value:function(){this.initMonaco()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.value,o=t.language,i=t.theme,a=t.height,u=t.options,l=t.width,c=this.editor,s=c.getModel();if(null!=this.props.value&&this.props.value!==s.getValue()&&(this.__prevent_trigger_change_event=!0,this.editor.pushUndoStop(),s.pushEditOperations([],[{range:s.getFullModelRange(),text:n}]),this.editor.pushUndoStop(),this.__prevent_trigger_change_event=!1),e.language!==o&&r.editor.setModelLanguage(s,o),e.theme!==i&&r.editor.setTheme(i),!c||l===e.width&&a===e.height||c.layout(),e.options!==u){u.model;var f=p(u,["model"]);c.updateOptions(f)}}},{key:"componentWillUnmount",value:function(){this.destroyMonaco()}},{key:"destroyMonaco",value:function(){if(this.editor){this.editor.dispose();var e=this.editor.getModel();e&&e.dispose()}this._subscription&&this._subscription.dispose()}},{key:"initMonaco",value:function(){var e=null!=this.props.value?this.props.value:this.props.defaultValue,t=this.props,n=t.language,o=t.theme,i=t.options,a=t.overrideServices;this.containerElement&&(Object.assign(i,this.editorWillMount()),this.editor=r.editor.create(this.containerElement,f(f({value:e,language:n},i),o?{theme:o}:{}),a),this.editorDidMount(this.editor))}},{key:"editorWillMount",value:function(){var e=this.props.editorWillMount;return e(r)||{}}},{key:"editorDidMount",value:function(e){var t=this;this.props.editorDidMount(e,r),this._subscription=e.onDidChangeModelContent((function(n){t.__prevent_trigger_change_event||t.props.onChange(e.getValue(),n)}))}},{key:"render",value:function(){var e=this.props,t=e.width,n=e.height,r={width:(0,a.processSize)(t),height:(0,a.processSize)(n)};return i.default.createElement("div",{ref:this.assignRef,style:r,className:"react-monaco-editor-container"})}}])&&d(t.prototype,n),o&&d(t,o),l}(i.default.Component);O.propTypes={width:o.default.oneOfType([o.default.string,o.default.number]),height:o.default.oneOfType([o.default.string,o.default.number]),value:o.default.string,defaultValue:o.default.string,language:o.default.string,theme:o.default.string,options:o.default.object,overrideServices:o.default.object,editorDidMount:o.default.func,editorWillMount:o.default.func,onChange:o.default.func},O.defaultProps={width:"100%",height:"100%",value:null,defaultValue:"",language:"javascript",theme:null,options:{},overrideServices:{},editorDidMount:a.noop,editorWillMount:a.noop,onChange:a.noop};var _=O;t.default=_},k994:function(e,t,n){"use strict";n.r(t);n("SchZ"),n("Aosp"),n("L/Qf")},kekF:function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},mdPL:function(e,t,n){(function(e){var r=n("WFqU"),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,u=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=u}).call(this,n("YuTi")(e))},sEf8:function(e,t){e.exports=function(e){return function(t){return e(t)}}},zZ0H:function(e,t){e.exports=function(e){return e}}}]);