!function(){function t(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var r,e,o="function"==typeof Symbol?Symbol:{},u=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag";function c(t,o,u,a){var c=o&&o.prototype instanceof f?o:f,l=Object.create(c.prototype);return n(l,"_invoke",function(t,n,o){var u,a,c,f=0,l=o||[],s=!1,p={p:0,n:0,v:r,a:v,f:v.bind(r,4),d:function(t,n){return u=t,a=0,c=r,p.n=n,i}};function v(t,n){for(a=t,c=n,e=0;!s&&f&&!o&&e<l.length;e++){var o,u=l[e],v=p.p,y=u[2];t>3?(o=y===n)&&(c=u[(a=u[4])?5:(a=3,3)],u[4]=u[5]=r):u[0]<=v&&((o=t<2&&v<u[1])?(a=0,p.v=n,p.n=u[1]):v<y&&(o=t<3||u[0]>n||n>y)&&(u[4]=t,u[5]=n,p.n=y,a=0))}if(o||t>1)return i;throw s=!0,n}return function(o,l,y){if(f>1)throw TypeError("Generator is already running");for(s&&1===l&&v(l,y),a=l,c=y;(e=a<2?r:c)||!s;){u||(a?a<3?(a>1&&(p.n=-1),v(a,c)):p.n=c:p.v=c);try{if(f=2,u){if(a||(o="next"),e=u[o]){if(!(e=e.call(u,c)))throw TypeError("iterator result is not an object");if(!e.done)return e;c=e.value,a<2&&(a=0)}else 1===a&&(e=u.return)&&e.call(u),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);u=r}else if((e=(s=p.n<0)?c:t.call(n,p))!==i)break}catch(e){u=r,a=1,c=e}finally{f=1}}return{value:e,done:s}}}(t,u,a),!0),l}var i={};function f(){}function l(){}function s(){}e=Object.getPrototypeOf;var p=[][u]?e(e([][u]())):(n(e={},u,function(){return this}),e),v=s.prototype=f.prototype=Object.create(p);function y(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,n(t,a,"GeneratorFunction")),t.prototype=Object.create(v),t}return l.prototype=s,n(v,"constructor",s),n(s,"constructor",l),l.displayName="GeneratorFunction",n(s,a,"GeneratorFunction"),n(v),n(v,a,"Generator"),n(v,u,function(){return this}),n(v,"toString",function(){return"[object Generator]"}),(t=function(){return{w:c,m:y}})()}function n(t,r,e,o){var u=Object.defineProperty;try{u({},"",{})}catch(t){u=0}n=function(t,r,e,o){function a(r,e){n(t,r,function(t){return this._invoke(r,e,t)})}r?u?u(t,r,{value:e,enumerable:!o,configurable:!o,writable:!o}):t[r]=e:(a("next",0),a("throw",1),a("return",2))},n(t,r,e,o)}function r(t,n,r,e,o,u,a){try{var c=t[u](a),i=c.value}catch(t){return void r(t)}c.done?n(i):Promise.resolve(i).then(e,o)}function e(t){return function(){var n=this,e=arguments;return new Promise(function(o,u){var a=t.apply(n,e);function c(t){r(a,o,u,c,i,"next",t)}function i(t){r(a,o,u,c,i,"throw",t)}c(void 0)})}}System.register(["./index-legacy105.js?v=1761009159","./utils-lib-legacy.js?v=1761009159","./site-legacy.js?v=1761009159","./base-lib-legacy.js?v=1761009159","./column-legacy.js?v=1761009159","./__commonjsHelpers__-legacy.js?v=1761009159","./index-legacy106.js?v=1761009159"],function(n,r){"use strict";var o,u,a,c,i,f,l,s,p,v,y,d,g,h,m,b;return{setters:[function(t){o=t._},function(t){u=t.l,a=t.b},function(t){c=t.getJavaSpringProject,i=t.groupAddProjects},function(t){f=t.c,l=t.r,s=t.bV,p=t.H,v=t.v,y=t.x,d=t.e,g=t.B,h=t.I,m=t.y},function(t){b=t.a},null,null],execute:function(){var r={class:"p-[2rem]"};n("default",f({__name:"group-add-projects",props:{compData:{}},emits:["close"],setup:function(n,f){var j=f.expose,_=f.emit,w=n,O=a(),x=_,S=l([]),P=l(!1),k=l([]),G=[b(),{prop:"name",label:"项目名称"}],T=function(t){k.value=t.map(function(t){return t.id})},D=function(t){var n=w.compData.projectList.map(function(t){return t.id});return t.filter(function(t){return!n.includes(t.id)})},E=function(){var n=e(t().m(function n(){var r,e;return t().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,P.value=!0,t.n=1,c();case 1:if(r=t.v,0!==(e=D(r.data)).length){t.n=2;break}return O.error("暂无可用项目"),x("close"),t.a(2);case 2:S.value=e,t.n=4;break;case 3:t.p=3,t.v;case 4:return t.p=4,P.value=!1,t.f(4);case 5:return t.a(2)}},n,null,[[0,3,4,5]])}));return function(){return n.apply(this,arguments)}}(),F=function(){var n=e(t().m(function n(){var r;return t().w(function(t){for(;;)switch(t.p=t.n){case 0:if(t.p=0,0!==k.value.length){t.n=1;break}return O.error("请选择项目"),t.a(2);case 1:return t.n=2,i({group_id:w.compData.group_id,project_ids:JSON.stringify(k.value)});case 2:r=t.v,O.request(r),r.status&&(x("close"),w.compData.refreshEvent()),t.n=4;break;case 3:t.p=3,t.v;case 4:return t.a(2)}},n,null,[[0,3]])}));return function(){return n.apply(this,arguments)}}();return s(E),j({onConfirm:F}),function(t,n){var e=u,a=o,c=p("bt-loading");return v(),y("div",r,[d(a,null,{"header-left":g(function(){return n[0]||(n[0]=[])}),"header-right":g(function(){return n[1]||(n[1]=[])}),content:g(function(){return[h(d(e,{"max-height":300,column:G,data:m(S),onSelectionChange:T},null,8,["data"]),[[c,m(P)]])]}),"footer-left":g(function(){return n[2]||(n[2]=[])}),_:1})])}}}))}}})}();
