forgeplus/public/react/build/static/js/47.d906b27a.chunk.js

1 line
42 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(this.webpackJsonp=this.webpackJsonp||[]).push([[47,69,70],{"+hnl":function(e,t,n){},"2oGH":function(e,t,n){},"3Diz":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=u(n("jsC+")),o=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,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};n("aIZi");var a=n("q1tI"),i=u(a);n("MN5C");var l=u(n("cJAJ")),c=n("i8i4");function u(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.projectsId,n=e.branch,u=e.owner,s=e.changeBranch,f=e.branchList,p=e.tagflag,d=void 0===p||p,m=(0,a.useState)(n),h=o(m,2),v=h[0],y=h[1],b=(0,a.useState)(!1),g=o(b,2),O=g[0],E=g[1],w=(0,a.useRef)(null),_=(0,a.useRef)(null);(0,a.useEffect)((function(){document.addEventListener("click",x,!1)}),[]);var x=function(e){var t=e.target,n=(0,c.findDOMNode)(w.current),r=(0,c.findDOMNode)(_.current);if(n&&r){var o=n.contains(t),a=r.contains(t);o||a||E(!1)}};(0,a.useEffect)((function(){y(n)}),[n]);var j=i.default.createElement("div",{ref:w},i.default.createElement(l.default,{visible:O,changeBranch:function(e){E(!1),s(e)},tagflag:d,projectsId:t,owner:u,branchList:f}));return i.default.createElement(r.default,{placement:"bottomLeft",visible:O,overlay:j,overlayClassName:"branch-tagBox-list",trigger:["click"]},i.default.createElement("div",{className:"branch-tagBox",ref:_,onClick:function(){return E(!O)}},i.default.createElement("span",{className:"color-grey-9 mr3 ml8"},i.default.createElement("i",{className:"iconfont icon-fenzhi2 font-18"})),i.default.createElement("span",{className:"ant-dropdown-link task-hide",style:{fontWeight:"500",minWidth:"45px",maxWidth:"270px"}},v),i.default.createElement("i",{className:"showtag iconfont icon-sanjiaoxing-down font-15 color-grey-9 mr5 ml5 mt1"})))}},AySf:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=p(n("CtXQ")),o=p(n("2/Rp")),a=p(n("8z0m")),i=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},l=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n("2oDE"),n("L/Qf"),n("7W5+");var c=n("q1tI"),u=p(c),s=n("sYIF"),f=p(n("vDqi"));function p(e){return e&&e.__esModule?e:{default:e}}var d=a.default.Dragger,m=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.componentDidMount=function(){n.checkInitFile()},n.componentDidUpdate=function(e){e&&e.fileList!==n.props.fileList&&n.checkInitFile()},n.checkInitFile=function(){var e=n.props.fileList;e&&e.length>0&&n.setState({fileList:(0,s.appendFileSizeToUploadFileAll)(e)})},n.onAttachmentRemove=function(e){if(!e.percent||100===e.percent)return n.deleteAttachment(e),!1},n.deleteAttachment=function(e){var t="/attachments/"+(e.response?e.response.id:e.uid)+".json";f.default.delete(t,{}).then((function(t){t.data&&(0===t.data.status?(n.setState((function(t){var n=t.fileList.indexOf(e),r=t.fileList.slice();return r.splice(n,1),{fileList:r}})),n.fileIdList(n.state.fileList)):n.props.showNotification(t.data.message))})).catch((function(e){console.log(e)}))},n.handleChange=function(e){var t=n.props.changeIsComplete;if(t&&t(!0),"uploading"===e.file.status||"done"===e.file.status||"removed"===e.file.status){var r=e.fileList;n.setState({fileList:(0,s.appendFileSizeToUploadFileAll)(r)}),n.fileIdList(r)}},n.fileIdList=function(e){var t=[];e&&e.length>0&&e.map((function(e){return t.push(e.response&&(e.response.id||e.response.data&&e.response.data.id))})),t&&n.props.load&&n.props.load(t)},n.beforeUpload=function(e){var t=n.props.size,r=e.size/1024/1024<t;return r||n.props.showNotification("文件大小必须小于"+t+"MB!"),r},n.state={fileList:void 0},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),l(t,[{key:"render",value:function(){var e=this.props,t=e.isComplete,n=e.icon,l=e.btn,c=e.className,f=e.size,p=e.actionUrl,m=this.state.fileList,h={name:"file",fileList:!0===t?m:void 0,action:p||""+(0,s.getUploadActionUrl)(),onChange:this.handleChange,onRemove:this.onAttachmentRemove,beforeUpload:this.beforeUpload};return l?u.default.createElement(a.default,i({},h,{className:c}),u.default.createElement(o.default,{type:"default"},"上传文件"),u.default.createElement("span",{className:"ml10 color-grey-9"},"(你可以上传小于",u.default.createElement("span",{className:"color-red"},f,"MB"),"的文件)")):u.default.createElement(d,i({},h,{className:c}),n||u.default.createElement(r.default,{type:"inbox"}),u.default.createElement("p",{className:"ant-upload-text font-16 color-grey-3"},"拖动文件或点击此处上传"))}}]),t}(c.Component);t.default=m},LZ3y:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=p(n("kLXV")),o=p(n("W9HT")),a=p(n("NJEC")),i=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();n("k3Gp"),n("04bd"),n("k994");var l=n("q1tI"),c=p(l),u=n("eO8H"),s=p(n("vDqi")),f=p(n("UQ5L"));function p(e){return e&&e.__esModule?e:{default:e}}var d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.componentDidMount=function(){n.getDetail()},n.getDetail=function(){n.setState({canDelete:n.props.canDelete})},n.show_video_modal=function(e){n.setState({video_title:e.title,move_spin:!0,video_id:e.id}),n.move_attachment(e.id,"preview")},n.hide_video_modal=function(){var e=n.state.video_id;n.setState({video_title:void 0}),n.move_attachment(e,"close")},n.move_attachment=function(e,t){s.default.post("/attachments/"+e+"/preview_attachment",{status:t}).then((function(e){e?n.setState({show_video:"preview"===t,video_url:"preview"===t?"https://forgeplus.trustie.net"+e.data.url:void 0,move_spin:!1}):n.setState({move_spin:!1})})).catch((function(e){n.setState({move_spin:!1}),console.log(e)}))},n.is_video=function(e){return["mp4","flv","mkv","3gp"].indexOf(e.split(".").pop())>-1},n.deleteAttachment=function(e){var t="/attachments/"+e+".json";s.default.delete(t,{}).then((function(t){t.data&&(0===t.data.status?(n.setState({Deleted:n.state.Deleted.concat(e)}),n.props.showNotification("附件删除成功")):n.props.showNotification(t.data.message))})).catch((function(e){console.log(e)}))},n.state={canDelete:!1,show_video:!1,video_url:void 0,video_title:void 0,video_id:void 0,move_spin:!1,Deleted:[]},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"render",value:function(){var e=this,t=this.state,n=t.Deleted,i=t.canDelete,l=t.show_video,s=t.video_url,p=t.video_title,d=t.move_spin,m=this.props.attachments;return c.default.createElement("div",null,m?c.default.createElement("div",{className:"attachmentsList mt5"},m.map((function(t,r){return c.default.createElement("div",{key:r,style:{display:n.length>0&&-1!==n.indexOf(t.id)?"none":"block",padding:"4px"},className:"attachment-list-div"},c.default.createElement(o.default,{spinning:d},e.is_video(t.title)?c.default.createElement("a",{onClick:function(){return e.show_video_modal(t)},className:"attachment-list-a"},c.default.createElement("i",{className:"iconfont icon-fujian mr8 paper-clip-color font-12"}),c.default.createElement("span",null,t.title),c.default.createElement("span",{className:"ml20"},t.filesize)):c.default.createElement(u.Link,{to:""+t.url,target:"_blank",className:"attachment-list-a"},c.default.createElement("i",{className:"iconfont icon-fujian mr8 paper-clip-color font-12"}),c.default.createElement("span",null,t.title),c.default.createElement("span",{className:"ml20"},t.filesize)),i?c.default.createElement(a.default,{placement:"bottom",title:"您确定要删除附件吗",okText:"是",cancelText:"否",onConfirm:function(){return e.deleteAttachment(t.id)}},c.default.createElement("span",{className:"attachment-list-delete fr"},c.default.createElement("i",{className:"iconfont icon-lajitong mr10 color-grey-9 font-14"}))):""))}))):"",l?c.default.createElement(r.default,{title:p,visible:!0,width:690,footer:null,onCancel:this.hide_video_modal},c.default.createElement(f.default,{video_url:s})):"")}}]),t}(l.Component);t.default=d},MKzF:function(e,t,n){"use strict";n.r(t);n("SchZ"),n("+hnl")},MN5C:function(e,t,n){},NJEC:function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),o=n("VCL8"),a=n("3S7+"),i=n("CtXQ"),l=n("2/Rp"),c=n("YMnH"),u=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 m(e,t){return(m=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=b(e);if(t){var o=b(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?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=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&&m(e,t)}(f,e);var t,n,o,i=h(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=i.call(this,e)).onConfirm=function(e){t.setVisible(!1,e);var n=t.props.onConfirm;n&&n.call(y(t),e)},t.onCancel=function(e){t.setVisible(!1,e);var n=t.props.onCancel;n&&n.call(y(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,a=o.okButtonProps,i=o.cancelButtonProps,c=o.title,u=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")},c)),r.createElement("div",{className:"".concat(e,"-buttons")},r.createElement(l.default,p({onClick:t.onCancel,size:"small"},i),u||n.cancelText),r.createElement(l.default,p({onClick:t.onConfirm,type:f,size:"small"},a),s||n.okText))))},t.renderConfirm=function(e){var n=e.getPrefixCls,o=t.props,i=o.prefixCls,l=o.placement,s=g(o,["prefixCls","placement"]),f=n("popover",i),d=r.createElement(c.a,{componentName:"Popconfirm",defaultLocale:u.a.Popconfirm},(function(e){return t.renderOverlay(f,e)}));return r.createElement(a.default,p({},s,{prefixCls:f,placement:l,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(i.default,{type:"exclamation-circle",theme:"filled"}),disabled:!1},Object(o.polyfill)(O),t.default=O},UQ5L:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=n("q1tI"),a=l(o),i=l(n("6tYh"));function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=(0,o.useState)(null),n=r(t,2),l=n[0],c=n[1];return(0,o.useEffect)((function(){c(e.video_url)}),[]),a.default.createElement(i.default,{url:l,controls:!0,playing:!1})}},bipt:function(e,t,n){"use strict";n.r(t);n("SchZ"),n("2oGH"),n("8QGh"),n("1vPl")},cJAJ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=f(n("W9HT")),o=f(n("BvKs")),a=f(n("5rEg")),i=f(n("14Xm")),l=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,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};n("04bd"),n("2WkQ"),n("1vPl");var c=n("q1tI"),u=f(c),s=n("tnhM");function f(e){return e&&e.__esModule?e:{default:e}}function p(e){return function(){var t=e.apply(this,arguments);return new Promise((function(e,n){return function r(o,a){try{var i=t[o](a),l=i.value}catch(e){return void n(e)}if(!i.done)return Promise.resolve(l).then((function(e){r("next",e)}),(function(e){r("throw",e)}));e(l)}("next")}))}}t.default=function(e){var t,n,f=(t=p(i.default.mark((function e(t,n){var r;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.getBranch)(t,n);case 2:r=e.sent,R(r),A(r),N(!1);case 6:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)}),d=(n=p(i.default.mark((function e(t,n){var r;return i.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,s.getTag)(t,n);case 2:r=e.sent,R(r),A(r),N(!1);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)}),m=e.changeBranch,h=e.tagflag,v=e.projectsId,y=e.owner,b=e.visible,g=(0,c.useState)(void 0),O=l(g,2),E=O[0],w=O[1],_=(0,c.useState)(0),x=l(_,2),j=x[0],k=x[1],S=(0,c.useState)(!0),C=l(S,2),P=C[0],N=C[1],T=(0,c.useState)(void 0),I=l(T,2),D=I[0],R=I[1],L=(0,c.useState)(void 0),V=l(L,2),M=V[0],A=V[1],z=(0,c.useState)("branch"),G=l(z,2),U=G[0],B=G[1];return(0,c.useEffect)((function(){b&&(B("branch"),f(v,y),N(!0))}),[b]),u.default.createElement("div",{className:"overlayBranch"},u.default.createElement("div",{className:"padding15",style:{paddingBottom:"0px"}},u.default.createElement(a.default,{prefix:u.default.createElement("i",{className:"iconfont icon-sousuo_icon1 font-14"}),placeholder:"请输入分支"+(h?"或标签":"")+"名称搜索",autocomplete:"off",className:"OptionsInput",value:E,onChange:function(e){w(e.target.value);var t=e.target.value?D&&D.length>0&&D.filter((function(t){return t.name.indexOf(e.target.value)>-1})):D;A(t)}})),u.default.createElement(o.default,{mode:"horizontal",className:"navUl",selectedKeys:[U],onClick:function(e){B(e.key),N(!0),"branch"===e.key?(f(v,y),k(0)):(d(v,y),k(1))}},u.default.createElement(o.default.Item,{key:"branch"},"分支"),h&&u.default.createElement(o.default.Item,{key:"tag"},"标签")),u.default.createElement(r.default,{spinning:P},u.default.createElement("ul",{className:"OptionsUl",id:"ul-btn"},M&&M.length>0&&M.map((function(e,t){return u.default.createElement("li",{key:t,onClick:function(){return t=e.name,void m(t);var t}},u.default.createElement("a",{className:"task-hide ulALink"},e.name))})),M&&0===M.length&&u.default.createElement("p",{className:"listTips"},"暂无",E,0===j?"分支":"标签","~"))))}},k994:function(e,t,n){"use strict";n.r(t);n("SchZ"),n("Aosp"),n("L/Qf")},kaz8:function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),o=n("17x9"),a=n("VCL8"),i=n("TSYQ"),l=n.n(i),c=n("x1Ya"),u=n("Gytx"),s=n.n(u),f=n("H84U"),p=n("6CfX");function d(e){return(d="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 m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(){return(h=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 v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(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 b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(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=w(e);if(t){var o=w(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O(this,n)}}function O(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?E(e):t}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _=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},x=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&&b(e,t)}(i,e);var t,n,o,a=g(i);function i(){var e;return v(this,i),(e=a.apply(this,arguments)).saveCheckbox=function(t){e.rcCheckbox=t},e.renderCheckbox=function(t){var n,o=t.getPrefixCls,a=E(e),i=a.props,u=a.context,s=i.prefixCls,f=i.className,p=i.children,d=i.indeterminate,v=i.style,y=i.onMouseEnter,b=i.onMouseLeave,g=_(i,["prefixCls","className","children","indeterminate","style","onMouseEnter","onMouseLeave"]),O=u.checkboxGroup,w=o("checkbox",s),x=h({},g);O&&(x.onChange=function(){g.onChange&&g.onChange.apply(g,arguments),O.toggleOption({label:p,value:i.value})},x.name=O.name,x.checked=-1!==O.value.indexOf(i.value),x.disabled=i.disabled||O.disabled);var j=l()(f,(m(n={},"".concat(w,"-wrapper"),!0),m(n,"".concat(w,"-wrapper-checked"),x.checked),m(n,"".concat(w,"-wrapper-disabled"),x.disabled),n)),k=l()(m({},"".concat(w,"-indeterminate"),d));return r.createElement("label",{className:j,style:v,onMouseEnter:y,onMouseLeave:b},r.createElement(c.a,h({},x,{prefixCls:w,className:k,ref:e.saveCheckbox})),void 0!==p&&r.createElement("span",null,p))},e}return t=i,(n=[{key:"componentDidMount",value:function(){var e=this.props.value,t=(this.context||{}).checkboxGroup,n=void 0===t?{}:t;n.registerValue&&n.registerValue(e),Object(p.a)("checked"in this.props||(this.context||{}).checkboxGroup||!("value"in this.props),"Checkbox","`value` is not validate prop, do you mean `checked`?")}},{key:"shouldComponentUpdate",value:function(e,t,n){return!s()(this.props,e)||!s()(this.state,t)||!s()(this.context.checkboxGroup,n.checkboxGroup)}},{key:"componentDidUpdate",value:function(e){var t=e.value,n=this.props.value,r=(this.context||{}).checkboxGroup,o=void 0===r?{}:r;n!==t&&o.registerValue&&o.cancelValue&&(o.cancelValue(t),o.registerValue(n))}},{key:"componentWillUnmount",value:function(){var e=this.props.value,t=(this.context||{}).checkboxGroup,n=void 0===t?{}:t;n.cancelValue&&n.cancelValue(e)}},{key:"focus",value:function(){this.rcCheckbox.focus()}},{key:"blur",value:function(){this.rcCheckbox.blur()}},{key:"render",value:function(){return r.createElement(f.a,null,this.renderCheckbox)}}])&&y(t.prototype,n),o&&y(t,o),i}(r.Component);x.__ANT_CHECKBOX=!0,x.defaultProps={indeterminate:!1},x.contextTypes={checkboxGroup:o.any},Object(a.polyfill)(x);var j=x,k=n("BGR+");function S(e){return(S="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 C(){return(C=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 P(e){return function(e){if(Array.isArray(e))return N(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return N(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return N(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function T(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 I(e,t){return(I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function D(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=V(e);if(t){var o=V(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return R(this,n)}}function R(e,t){return!t||"object"!==S(t)&&"function"!=typeof t?L(e):t}function L(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V(e){return(V=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var M=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},A=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&&I(e,t)}(i,e);var t,n,o,a=D(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=a.call(this,e)).cancelValue=function(e){t.setState((function(t){return{registeredValues:t.registeredValues.filter((function(t){return t!==e}))}}))},t.registerValue=function(e){t.setState((function(t){var n=t.registeredValues;return{registeredValues:[].concat(P(n),[e])}}))},t.toggleOption=function(e){var n=t.state.registeredValues,r=t.state.value.indexOf(e.value),o=P(t.state.value);-1===r?o.push(e.value):o.splice(r,1),"value"in t.props||t.setState({value:o});var a=t.props.onChange;if(a){var i=t.getOptions();a(o.filter((function(e){return-1!==n.indexOf(e)})).sort((function(e,t){return i.findIndex((function(t){return t.value===e}))-i.findIndex((function(e){return e.value===t}))})))}},t.renderGroup=function(e){var n=e.getPrefixCls,o=L(t),a=o.props,i=o.state,c=a.prefixCls,u=a.className,s=a.style,f=a.options,p=M(a,["prefixCls","className","style","options"]),d=n("checkbox",c),m="".concat(d,"-group"),h=Object(k.a)(p,["children","defaultValue","value","onChange","disabled"]),v=a.children;f&&f.length>0&&(v=t.getOptions().map((function(e){return r.createElement(j,{prefixCls:d,key:e.value.toString(),disabled:"disabled"in e?e.disabled:a.disabled,value:e.value,checked:-1!==i.value.indexOf(e.value),onChange:e.onChange,className:"".concat(m,"-item")},e.label)})));var y=l()(m,u);return r.createElement("div",C({className:y,style:s},h),v)},t.state={value:e.value||e.defaultValue||[],registeredValues:[]},t}return t=i,o=[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value||[]}:null}}],(n=[{key:"getChildContext",value:function(){return{checkboxGroup:{toggleOption:this.toggleOption,value:this.state.value,disabled:this.props.disabled,name:this.props.name,registerValue:this.registerValue,cancelValue:this.cancelValue}}}},{key:"shouldComponentUpdate",value:function(e,t){return!s()(this.props,e)||!s()(this.state,t)}},{key:"getOptions",value:function(){return this.props.options.map((function(e){return"string"==typeof e?{label:e,value:e}:e}))}},{key:"render",value:function(){return r.createElement(f.a,null,this.renderGroup)}}])&&T(t.prototype,n),o&&T(t,o),i}(r.Component);A.defaultProps={options:[]},A.propTypes={defaultValue:o.array,value:o.array,options:o.array.isRequired,onChange:o.func},A.childContextTypes={checkboxGroup:o.any},Object(a.polyfill)(A);var z=A;j.Group=z;t.default=j},lLsn:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,a=w(n("2/Rp")),i=w(n("kaz8")),l=w(n("5rEg")),c=w(n("Vl3Y")),u=w(n("lrIw")),s=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},f=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,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},p=(r=["\n margin: 0px 15px;\n color: #bbb;\n line-height: 35px;\n font-size:16px;\n font-weight:400;\n color:#666;\n"],o=["\n margin: 0px 15px;\n color: #bbb;\n line-height: 35px;\n font-size:16px;\n font-weight:400;\n color:#666;\n"],Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(o)}})));n("L/Qf"),n("MKzF"),n("1vPl"),n("tULf"),n("bipt");var d=n("q1tI"),m=w(d),h=w(n("vOnD")),v=w(n("3Diz")),y=w(n("p7gc")),b=w(n("AySf")),g=w(n("LZ3y")),O=w(n("vDqi"));n("e4dm");var E=n("LvDl");function w(e){return e&&e.__esModule?e:{default:e}}var _=u.default.Option,x=h.default.span(p);t.default=c.default.create()((0,d.forwardRef)((function(e,t){var n=e.form,r=e.projectDetail,o=e.match,p=e.showNotification,h=e.history,w=n.getFieldDecorator,j=n.validateFields,k=n.setFieldsValue,S=(0,d.useState)(void 0),C=f(S,2),P=C[0],N=C[1],T=(0,d.useState)(null),I=f(T,2),D=I[0],R=I[1],L=(0,d.useState)(null),V=f(L,2),M=V[0],A=V[1],z=(0,d.useState)(void 0),G=f(z,2),U=G[0],B=G[1],F=(0,d.useState)(void 0),q=f(F,2),H=q[0],Q=q[1],J=(0,d.useState)(void 0),W=f(J,2),X=W[0],Z=W[1],Y=h&&h.location&&h.location.state.stable,K=o.params,$=K.projectsId,ee=K.versionId,te=K.owner;function ne(e){if(e)return e.map((function(e,t){return m.default.createElement(_,{key:t,value:e.name},e.name)}))||void 0}return(0,d.useEffect)((function(){r&&r.default_branch&&A(r.default_branch)}),[r]),(0,d.useEffect)((function(){if(ee){var e="/"+te+"/"+$+"/releases/"+ee+"/edit.json";O.default.get(e).then((function(e){e&&(k(e.data),R(e.data.body),Q(e.data.attachments))}))}}),[ee]),(0,d.useEffect)((function(){if($){var e="/"+te+"/"+$+"/tags.json";O.default.get(e,{params:{limit:1e3}}).then((function(e){e&&(N(e.data),Z(ne(e.data)))})).catch((function(e){console.log(e)}))}}),[$]),m.default.createElement("div",{className:"df pt15"},m.default.createElement(c.default,{className:"versionForm"},m.default.createElement("div",{className:"itemInline"},m.default.createElement(c.default.Item,null,w("tag_name",{rules:[{required:!0,message:"请输入获取或选择一个标签"},{validator:function(e,t,n){t.length>30||t.indexOf(" ")>0||t.match(/^\s+$/)||(0,E.trim)(t).length!=t.length?n("无效的标签名称请参考右侧建议命名标签并确认长度在1~30个字符之间"):n()}}],validateFirst:!0})(m.default.createElement(u.default,{placeholder:"标记一个版本",onChange:function(e){var t=P.filter((function(t){return t.name.indexOf(e)>-1}));Z(ne(t))},style:{width:"200px"}},X))),m.default.createElement(x,null,"@"),m.default.createElement(v.default,{repo_id:r&&r.repo_id,projectsId:$,branch:M,changeBranch:function(e){A(e)},owner:te,history:h,tagflag:!1,branchList:r&&r.branches&&r.branches.list}),m.default.createElement("p",{className:"font-12 color-grey-6 weight400"},"选择一个已经存在的标签,或者在发布时新建一个标签")),m.default.createElement(c.default.Item,{className:"pt20"},w("name",{rules:[{required:!0,message:"请输入发行版的标题"},{validator:function(e,t,n){t.length>50?n("标题长度在1~50个字符之间"):n()}}],validateFirst:!0})(m.default.createElement(l.default,{placeholder:"发行版的标题"}))),m.default.createElement(y.default,{placeholder:"描述此发行版",height:200,mdID:"version-comments-description",initValue:D,onChange:R,noStorage:!0}),m.default.createElement("div",{className:"mt5 dragBox"},m.default.createElement(b.default,{className:"versionStyle",isComplete:!0,load:B,icon:m.default.createElement("i",{className:"iconfont icon-shangchuanicon dragIcon"}),size:100,showNotification:p}),ee&&H&&H.length>0?m.default.createElement(g.default,{attachments:H,showNotification:p,canDelete:!0}):""),m.default.createElement(c.default.Item,{className:"prerelease"},w("prerelease",{rules:[],validateFirst:!0})(m.default.createElement(i.default,{defaultChecked:!Y},"这是一个预览版本"))),m.default.createElement("p",{className:"pt20",style:{borderTop:"1px solid #eee"}},m.default.createElement(a.default,{onClick:function(){j((function(e,t){if(!e)if(ee){var n="/"+te+"/"+$+"/releases/"+ee+".json";O.default.put(n,s({},t,{body:D,attachment_ids:U,target_commitish:M})).then((function(e){e&&(p("版本修改成功!"),h.push("/"+te+"/"+$+"/releases"))}))}else{var r="/"+te+"/"+$+"/releases.json";O.default.post(r,s({},t,{body:D,attachment_ids:U})).then((function(e){e&&(p("版本发布成功!"),h.push("/"+te+"/"+$+"/releases"))}))}}))},type:"primary",className:"mr30 btnblue"},ee?"保存":"创建","发行版"),m.default.createElement(a.default,{onClick:function(){return h.push("/"+te+"/"+$+"/releases")},className:"btngrey"},"取消"))),m.default.createElement("div",{className:"versionTips"},m.default.createElement("div",{className:"infosTip"},m.default.createElement("p",{className:"font-16 mb14 weight"},"标签命名建议"),m.default.createElement("p",{className:"mb15"},"通常的做法是在版本名称前加上字母 v 前缀, v1.0 或者 v2.3.4。"),m.default.createElement("p",null,"如果标签不适合在生产环境下使用请在版本名称后添加预发行版本。例如v0.2-alpha 或者 v5.9-beta.3。")),m.default.createElement("div",{className:"infosTip"},m.default.createElement("p",{className:"font-16 mb14 weight"},"语义化版本"),m.default.createElement("p",null,"如果你是第一次发布版本,我们强烈建议你阅读",m.default.createElement("a",{href:"https://semver.org/lang/zh-CN",target:"_blank",className:"color-blue"},"语义化版本"),"。")),m.default.createElement("div",{className:"infosTip"},m.default.createElement("p",{className:"font-16 mb14 weight"},"附件大小说明"),m.default.createElement("p",null,"单个附件不能超过 100MGVP 项目200M每个仓库总附件不可超过 1G推荐项目不可超过 5GGVP 项目不可超过 20G。附件总容量统计包括仓库附件和发行版附件。"))))})))},lrIw:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return P}));var r=n("q1tI"),o=n("i+PK"),a=n("TSYQ"),i=n.n(a);function l(e){return(l="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 c(){return(c=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 u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(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 f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(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 d(this,n)}}function d(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=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&&f(e,t)}(i,e);var t,n,o,a=p(i);function i(){var e;return u(this,i),(e=a.apply(this,arguments)).saveRef=function(t){var n=e.props.children.ref;"function"==typeof n&&n(t)},e}return t=i,(n=[{key:"render",value:function(){return r.cloneElement(this.props.children,c(c({},this.props),{ref:this.saveRef}),null)}}])&&s(t.prototype,n),o&&s(t,o),i}(r.Component),v=n("5rEg"),y=n("2fM7"),b=n("H84U");function g(e){return(g="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 O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(){return(E=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 w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(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 x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function j(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=S(e);if(t){var o=S(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return k(this,n)}}function k(e,t){return!t||"object"!==g(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function C(e){return e&&e.type&&(e.type.isSelectOption||e.type.isSelectOptGroup)}var P=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&&x(e,t)}(c,e);var t,n,a,l=j(c);function c(){var e;return w(this,c),(e=l.apply(this,arguments)).saveSelect=function(t){e.select=t},e.getInputElement=function(){var t=e.props.children,n=t&&r.isValidElement(t)&&t.type!==o.b?r.Children.only(e.props.children):r.createElement(v.default,null),a=E({},n.props);return delete a.children,r.createElement(h,a,n)},e.renderAutoComplete=function(t){var n,a,l=t.getPrefixCls,c=e.props,u=c.prefixCls,s=c.size,f=c.className,p=void 0===f?"":f,d=c.notFoundContent,m=c.optionLabelProp,h=c.dataSource,v=c.children,b=l("select",u),w=i()((O(n={},"".concat(b,"-lg"),"large"===s),O(n,"".concat(b,"-sm"),"small"===s),O(n,p,!!p),O(n,"".concat(b,"-show-search"),!0),O(n,"".concat(b,"-auto-complete"),!0),n)),_=r.Children.toArray(v);return a=_.length&&C(_[0])?v:h?h.map((function(e){if(r.isValidElement(e))return e;switch(g(e)){case"string":return r.createElement(o.b,{key:e},e);case"object":return r.createElement(o.b,{key:e.value},e.text);default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}})):[],r.createElement(y.default,E({},e.props,{className:w,mode:y.default.SECRET_COMBOBOX_MODE_DO_NOT_USE,optionLabelProp:m,getInputElement:e.getInputElement,notFoundContent:d,ref:e.saveSelect}),a)},e}return t=c,(n=[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"render",value:function(){return r.createElement(b.a,null,this.renderAutoComplete)}}])&&_(t.prototype,n),a&&_(t,a),c}(r.Component);P.Option=o.b,P.OptGroup=o.a,P.defaultProps={transitionName:"slide-up",optionLabelProp:"children",choiceTransitionName:"zoom",showSearch:!1,filterOption:!1}},tnhM:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUser=t.getSubEntries=t.getHooks=t.getTag=t.getBranch=void 0;var r=a(n("14Xm")),o=a(n("vDqi"));function a(e){return e&&e.__esModule?e:{default:e}}function i(e){return function(){var t=e.apply(this,arguments);return new Promise((function(e,n){return function r(o,a){try{var i=t[o](a),l=i.value}catch(e){return void n(e)}if(!i.done)return Promise.resolve(l).then((function(e){r("next",e)}),(function(e){r("throw",e)}));e(l)}("next")}))}}var l,c,u,s,f;t.getBranch=(l=i(r.default.mark((function e(t,n){return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.default.get("/"+n+"/"+t+"/branches.json");case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e,void 0)}))),function(e,t){return l.apply(this,arguments)}),t.getTag=(c=i(r.default.mark((function e(t,n){return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.default.get("/"+n+"/"+t+"/tags.json");case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e,void 0)}))),function(e,t){return c.apply(this,arguments)}),t.getHooks=(u=i(r.default.mark((function e(t,n){return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.default.get("/projects/"+t+"/hooks.json",{params:n});case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e,void 0)}))),function(e,t){return u.apply(this,arguments)}),t.getSubEntries=(s=i(r.default.mark((function e(t,n,a){return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.default.get("/"+t+"/"+n+"/sub_entries.json",{params:a});case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e,void 0)}))),function(e,t,n){return s.apply(this,arguments)}),t.getUser=(f=i(r.default.mark((function e(t){return r.default.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.default.get("/users/"+t+"/hovercard.json");case 2:return e.abrupt("return",e.sent.data);case 3:case"end":return e.stop()}}),e,void 0)}))),function(e){return f.apply(this,arguments)})}}]);