build/static/js/20.fb21ccaf.chunk.js

1 line
23 KiB
JavaScript
Raw Normal View History

2023-02-13 11:44:36 +08:00
(this.webpackJsonp=this.webpackJsonp||[]).push([[20],{"0Rql":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAQCAYAAABtPJ3XAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAALKADAAQAAAABAAAAEAAAAACYv7IkAAABuElEQVRIDdVWr0/DQBT+ujQowgSZwAAKQkhAoAiGTBT2B+ARM/wIAQx2dgYICdRU4PkDBhM4goYEgwODWBBDIjje17VJV9rudkdIeMmt69137333+n6cg1+StR01L6rqMjwFTFKtA7zKoy0juDl3njhnK6LTTjYaauSjg2PRsqUUSlnaHAdfMu+PVXB41XA+szC6c1aESbbbQQsKVSGF2gqwvgxMTfTMv7wB1/dA6w6Qw9Dlt+UKajakXd2TZeFCzwrZ8TJwtAkszvSjZqcBjtUloHkJvHdRjb7Gbj9S/83Yw1HMPoqpUnPvJ9k0hYdnOdRZOMvwWDCN6cyYSxvLea8zZhkGac9m4YkhNopzJqeR2BD2aJExqysJbLhXd18SZ0w4Ll1xgiWV5v2PsfHePFzRvOtth/lbhMleY9abisKoqV1jD8dcWbp0ZRhsnk63fcEKOrxIlTiRb7PPOsvSpSPEUsTiqVSJg97bcL82Hg7YwdgUWLIGCTHEco9gg0H4vHVjwlEd9ZkBbApFpLlGTJQtvmkN5iGsOh3vBtKa59jB2BR0WjP30LCpGMVv0ti/uvwkif/V9fIbUzmWMlmEs/gAAAAASUVORK5CYII="},"3Diz":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n("jsC+")),a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};n("aIZi");var o=n("q1tI"),i=s(o);n("MN5C");var c=s(n("cJAJ")),u=n("i8i4"),l=n("sYIF");function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e){var t=e.projectsId,n=e.branch,s=e.owner,f=e.changeBranch,d=e.branchList,m=e.tagflag,p=void 0===m||m,h=(0,o.useState)(n),g=a(h,2),v=g[0],y=g[1],b=(0,o.useState)(!1),A=a(b,2),E=A[0],w=A[1],j=(0,o.useRef)(null),O=(0,o.useRef)(null);(0,o.useEffect)((function(){document.addEventListener("click",x,!1)}),[]);var x=function(e){var t=e.target,n=(0,u.findDOMNode)(j.current),r=(0,u.findDOMNode)(O.current);if(n&&r){var a=n.contains(t),o=r.contains(t);a||o||w(!1)}};(0,o.useEffect)((function(){y(n)}),[n]);var S=i.default.createElement("div",{ref:j},i.default.createElement(c.default,{visible:E,changeBranch:function(e){w(!1);var t=(0,l.turnbar)(e);f(t)},tagflag:p,projectsId:t,owner:s,branchList:d}));return i.default.createElement(r.default,{placement:"bottomLeft",visible:E,overlay:S,overlayClassName:"branch-tagBox-list",trigger:["click"]},i.default.createElement("div",{className:"branch-tagBox",ref:O,onClick:function(){return w(!E)}},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"})))}},FRFo:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=c(n("3S7+")),a=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,a=!1,o=void 0;try{for(var i,c=e[Symbol.iterator]();!(r=(i=c.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){a=!0,o=e}finally{try{!r&&c.return&&c.return()}finally{if(a)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};n("TfFZ");var o=n("q1tI"),i=c(o);function c(e){return e&&e.__esModule?e:{default:e}}function u(e){var t=e.beforeText,n=e.afterText,c=e.className,u=e.inputId,l=e.timeOut,s=(0,o.useState)((function(){return t})),f=a(s,2),d=f[0],m=f[1],p=(0,o.useCallback)((function(){var e=document.querySelector("#"+u);e?(e.select(),document.execCommand("copy")&&document.execCommand("copy"),document.getSelection().removeAllRanges(),m(n),l&&setTimeout((function(){m(t)}),1500)):console.error("您的CopyTool未设置正确的inputId")}),[]);return i.default.createElement(r.default,{placement:"top",title:d,onVisibleChange:function(){m(t)}},i.default.createElement("i",{className:"iconfont icon-fuzhiicon "+c,style:{color:"#466