!function(){function n(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,r,o="function"==typeof Symbol?Symbol:{},u=o.iterator||"@@iterator",a=o.toStringTag||"@@toStringTag";function c(n,o,u,a){var c=o&&o.prototype instanceof l?o:l,f=Object.create(c.prototype);return e(f,"_invoke",function(n,e,o){var u,a,c,l=0,f=o||[],s=!1,p={p:0,n:0,v:t,a:m,f:m.bind(t,4),d:function(n,e){return u=n,a=0,c=t,p.n=e,i}};function m(n,e){for(a=n,c=e,r=0;!s&&l&&!o&&r<f.length;r++){var o,u=f[r],m=p.p,v=u[2];n>3?(o=v===e)&&(c=u[(a=u[4])?5:(a=3,3)],u[4]=u[5]=t):u[0]<=m&&((o=n<2&&m<u[1])?(a=0,p.v=e,p.n=u[1]):m<v&&(o=n<3||u[0]>e||e>v)&&(u[4]=n,u[5]=e,p.n=v,a=0))}if(o||n>1)return i;throw s=!0,e}return function(o,f,v){if(l>1)throw TypeError("Generator is already running");for(s&&1===f&&m(f,v),a=f,c=v;(r=a<2?t:c)||!s;){u||(a?a<3?(a>1&&(p.n=-1),m(a,c)):p.n=c:p.v=c);try{if(l=2,u){if(a||(o="next"),r=u[o]){if(!(r=r.call(u,c)))throw TypeError("iterator result is not an object");if(!r.done)return r;c=r.value,a<2&&(a=0)}else 1===a&&(r=u.return)&&r.call(u),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);u=t}else if((r=(s=p.n<0)?c:n.call(e,p))!==i)break}catch(r){u=t,a=1,c=r}finally{l=1}}return{value:r,done:s}}}(n,u,a),!0),f}var i={};function l(){}function f(){}function s(){}r=Object.getPrototypeOf;var p=[][u]?r(r([][u]())):(e(r={},u,function(){return this}),r),m=s.prototype=l.prototype=Object.create(p);function v(n){return Object.setPrototypeOf?Object.setPrototypeOf(n,s):(n.__proto__=s,e(n,a,"GeneratorFunction")),n.prototype=Object.create(m),n}return f.prototype=s,e(m,"constructor",s),e(s,"constructor",f),f.displayName="GeneratorFunction",e(s,a,"GeneratorFunction"),e(m),e(m,a,"Generator"),e(m,u,function(){return this}),e(m,"toString",function(){return"[object Generator]"}),(n=function(){return{w:c,m:v}})()}function e(n,t,r,o){var u=Object.defineProperty;try{u({},"",{})}catch(n){u=0}e=function(n,t,r,o){function a(t,r){e(n,t,function(n){return this._invoke(t,r,n)})}t?u?u(n,t,{value:r,enumerable:!o,configurable:!o,writable:!o}):n[t]=r:(a("next",0),a("throw",1),a("return",2))},e(n,t,r,o)}function t(n,e,t,r,o,u,a){try{var c=n[u](a),i=c.value}catch(n){return void t(n)}c.done?e(i):Promise.resolve(i).then(r,o)}function r(n){return function(){var e=this,r=arguments;return new Promise(function(o,u){var a=n.apply(e,r);function c(n){t(a,o,u,c,i,"next",n)}function i(n){t(a,o,u,c,i,"throw",n)}c(void 0)})}}System.register(["./base-lib-legacy.js?v=1761009159","./utils-lib-legacy.js?v=1761009159","./useMethods-legacy.js?v=1761009159","./__commonjsHelpers__-legacy.js?v=1761009159","./column-legacy.js?v=1761009159","./index-legacy106.js?v=1761009159"],function(e,t){"use strict";var o,u,a,c,i,l,f,s,p,m,v,d,y,b,h,g,_,j,w;return{setters:[function(n){o=n.c,u=n.o,a=n.r,c=n.V,i=n.q,l=n.v,f=n.x,s=n.e,p=n.B,m=n.y,v=n.R,d=n.ab,y=n.a9},function(n){b=n.P,h=n.cq,g=n.k2,_=n.ax,j=n._},function(n){w=n.p},null,null,null],execute:function(){var t={class:"flex flex-col p-[1.6rem] lib-box"},x=o({__name:"pull-mirror-select-dialog",props:{compData:{default:function(){return{}}}},setup:function(e,o){var j=o.expose,x=e,O=u({name:"",id:""}),S=a(),k={name:[{required:!0,message:"请选择仓库",trigger:"blur"}]},P=c([]),G=function(){var e=r(n().m(function e(t){return n().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,S.value.validate(function(){var e=r(n().m(function e(r){var o;return n().w(function(n){for(;;)switch(n.n){case 0:r&&(o={template_id:x.compData.id,name:P.value.find(function(n){return n.url==O.name}).name,url:P.value.find(function(n){return n.url==O.name}).url},b({request:g({data:JSON.stringify(o)})}),w(),t());case 1:return n.a(2)}},e)}));return function(n){return e.apply(this,arguments)}}());case 1:e.n=3;break;case 2:e.p=2,e.v;case 3:return e.a(2)}},e,null,[[0,2]])}));return function(n){return e.apply(this,arguments)}}();return i(r(n().m(function e(){return n().w(function(n){for(;;)switch(n.n){case 0:O.id=x.compData.id,b({request:h(),data:Array,success:function(n){var e;n.forEach(function(n){P.value.push({value:n.url,label:"".concat(n.name).concat("docker.io"===n.url?"":"(".concat(n.url,")")),url:n.url,name:n.name})}),O.name=null===(e=P.value[0])||void 0===e?void 0:e.value}});case 1:return n.a(2)}},e)}))),j({onConfirm:G}),function(n,e){var r=_,o=d,u=y;return l(),f("div",t,[s(u,{ref_key:"cmdFormRef",ref:S,model:m(O),rules:k,onSubmit:e[1]||(e[1]=v(function(){},["prevent"]))},{default:p(function(){return[s(o,{prop:"name",label:"仓库名"},{default:p(function(){return[s(r,{modelValue:m(O).name,"onUpdate:modelValue":e[0]||(e[0]=function(n){return m(O).name=n}),options:m(P),class:"w-[44rem]"},null,8,["modelValue","options"])]}),_:1})]}),_:1},8,["model"])])}}});e("default",j(x,[["__scopeId","data-v-b63e8269"]]))}}})}();
