1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ResourceOpsOverviewPage-tYJ9yIjB.js","assets/vendor-vue-DGd8mKWO.js","assets/index-DX0rhWxn.js","assets/vendor-monaco-iaZ6B9cc.js","assets/vendor-monaco-B_19GPAS.css","assets/index-CcZnU5uw.css","assets/databasePlatformUtils-CjPWhYFg.js","assets/useHfSpaceActions-CdMciK6N.js","assets/ResourceOpsHfDeployPage-Cr9HI25u.js","assets/ResourceOpsDevopsPage-B9DyyMJp.js","assets/ResourceOpsDatabasePage-BUVdefY5.js","assets/CardContent.vue_vue_type_script_setup_true_lang--HcEO4MY.js","assets/Badge.vue_vue_type_script_setup_true_lang-Dxq-Tpdk.js","assets/Textarea.vue_vue_type_script_setup_true_lang-jEEd5QDK.js","assets/SelectValue.vue_vue_type_script_setup_true_lang-Dgqen2R8.js","assets/Table.vue_vue_type_script_setup_true_lang-Bt7FJOJW.js","assets/TableRow.vue_vue_type_script_setup_true_lang-K2lkb_cl.js","assets/TabsTrigger.vue_vue_type_script_setup_true_lang-B0XnQlDA.js","assets/TabsContent.vue_vue_type_script_setup_true_lang-CFW9gCUS.js","assets/ResourceOpsNotificationPage-CMFL4MC6.js","assets/Checkbox.vue_vue_type_script_setup_true_lang-Bek5uh-h.js","assets/ResourceOpsAccountsPage--Tj40-Ds.js","assets/SearchableSelect.vue_vue_type_script_setup_true_lang-Bkk2OkM5.js","assets/ScrollArea.vue_vue_type_script_setup_true_lang-f9JiO5XG.js","assets/ResourceOpsArchitecturePage-DrWmLAoL.js","assets/ResourceOpsAppDossierPage-NblE_rTa.js","assets/ResourceOpsFieldsPage-BSH27d8D.js","assets/ResourceOpsBusinessDomainsPage-BTzdhrcW.js","assets/ResourceOpsAppSystemTopologyPage-rMPftqw0.js","assets/ResourceOpsAppPlatformPage-DqZyJzBn.js","assets/ResourceOpsOperatingSystemPage-U7_1izWU.js","assets/ResourceOpsApplicationSoftwarePage-BWpPFClk.js","assets/HostManagementPage-CclfO9R6.js","assets/Toaster.vue_vue_type_style_index_0_scoped_bdacc963_lang-Dyu0njpt.js","assets/HostTerminalPage-CBpqCT6H.js","assets/vendor-xterm-pvrxxA0q.js","assets/HostFileManager.vue_vue_type_script_setup_true_lang-CjuHoP1k.js","assets/Progress.vue_vue_type_script_setup_true_lang-BTfY0otT.js","assets/Separator.vue_vue_type_script_setup_true_lang-e08gQfhk.js","assets/_plugin-vue_export-helper-DlAUqK2U.js","assets/HostTerminalPage-DLNQ0i5y.css","assets/AccountDetailEnhancedPanel-DJ9u_615.js","assets/map-pin-BXLiFrF9.js","assets/AccountEditOperationsPanel-CUwdYV3R.js","assets/CardDescription.vue_vue_type_script_setup_true_lang-Dpp7cxn-.js","assets/globe-DTLh24Eh.js","assets/refresh-cw-CjkIhYjT.js","assets/AccountResourceMapPanel-5Zog4Yol.js","assets/AccountResourceMapPanel-pzj6HITB.css"])))=>i.map(i=>d[i]); 2import{_ as R}from"./vendor-monaco-iaZ6B9cc.js";import{d as Is,v as js,f as y,z as D,L as r,a5 as ne,F as re,A as pe,i as F,j as _,B as Rs,H as u,u as i,l as m,y as S,ac as Ts,R as ht,ab as _t,x as bt,q as Os,G as A,a7 as T,r as N,c as w,n as Cs}from"./vendor-vue-DGd8mKWO.js";import{_ as I,a as B,b as Es}from"./index-DX0rhWxn.js";import{c as P,X as ye,a as zs,b as Ns,d as Hs,f as q,e as qs,_ as Ls,h as $s,i as Bs,j as Ms,g as Us,A as Vs,C as Qs,S as Gs,k as Ws,P as Ys,D as Zs}from"./CardContent.vue_vue_type_script_setup_true_lang--HcEO4MY.js";import{_ as Ue}from"./Textarea.vue_vue_type_script_setup_true_lang-jEEd5QDK.js";/** 3 * @license lucide-vue-next v0.468.0 - ISC 4 * 5 * This source code is licensed under the ISC license. 6 * See the LICENSE file in the root directory of this source tree. 7 */const Js=P("ArchiveIcon",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/** 8 * @license lucide-vue-next v0.468.0 - ISC 9 * 10 * This source code is licensed under the ISC license. 11 * See the LICENSE file in the root directory of this source tree. 12 */const Xs=P("BookOpenIcon",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** 13 * @license lucide-vue-next v0.468.0 - ISC 14 * 15 * This source code is licensed under the ISC license. 16 * See the LICENSE file in the root directory of this source tree. 17 */const Ks=P("CalendarIcon",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]);/** 18 * @license lucide-vue-next v0.468.0 - ISC 19 * 20 * This source code is licensed under the ISC license. 21 * See the LICENSE file in the root directory of this source tree. 22 */const Ve=P("ChevronLeftIcon",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/** 23 * @license lucide-vue-next v0.468.0 - ISC 24 * 25 * This source code is licensed under the ISC license. 26 * See the LICENSE file in the root directory of this source tree. 27 */const Qe=P("ChevronRightIcon",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** 28 * @license lucide-vue-next v0.468.0 - ISC 29 * 30 * This source code is licensed under the ISC license. 31 * See the LICENSE file in the root directory of this source tree. 32 */const ea=P("CircleArrowUpIcon",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m16 12-4-4-4 4",key:"177agl"}],["path",{d:"M12 16V8",key:"1sbj14"}]]);/** 33 * @license lucide-vue-next v0.468.0 - ISC 34 * 35 * This source code is licensed under the ISC license. 36 * See the LICENSE file in the root directory of this source tree.
37 */const ta=P("CopyIcon",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** 38 * @license lucide-vue-next v0.468.0 - ISC 39 * 40 * This source code is licensed under the ISC license. 41 * See the LICENSE file in the root directory of this source tree. 42 */const sa=P("FolderIcon",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/** 43 * @license lucide-vue-next v0.468.0 - ISC 44 * 45 * This source code is licensed under the ISC license. 46 * See the LICENSE file in the root directory of this source tree. 47 */const aa=P("GitBranchIcon",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/** 48 * @license lucide-vue-next v0.468.0 - ISC 49 * 50 * This source code is licensed under the ISC license. 51 * See the LICENSE file in the root directory of this source tree. 52 */const oa=P("Grid3x3Icon",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/** 53 * @license lucide-vue-next v0.468.0 - ISC 54 * 55 * This source code is licensed under the ISC license. 56 * See the LICENSE file in the root directory of this source tree. 57 */const na=P("LayoutDashboardIcon",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/** 58 * @license lucide-vue-next v0.468.0 - ISC 59 * 60 * This source code is licensed under the ISC license. 61 * See the LICENSE file in the root directory of this source tree. 62 */const ra=P("LayoutGridIcon",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]);/** 63 * @license lucide-vue-next v0.468.0 - ISC 64 * 65 * This source code is licensed under the ISC license. 66 * See the LICENSE file in the root directory of this source tree. 67 */const pa=P("ListIcon",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);/** 68 * @license lucide-vue-next v0.468.0 - ISC 69 * 70 * This source code is licensed under the ISC license. 71 * See the LICENSE file in the root directory of this source tree. 72 */const kt=P("MessageSquareIcon",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/** 73 * @license lucide-vue-next v0.468.0 - ISC 74 * 75 * This source code is licensed under the ISC license. 76 * See the LICENSE file in the root directory of this source tree. 77 */const la=P("PauseIcon",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/** 78 * @license lucide-vue-next v0.468.0 - ISC 79 * 80 * This source code is licensed under the ISC license. 81 * See the LICENSE file in the root directory of this source tree. 82 */const da=P("PinIcon",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]);/** 83 * @license lucide-vue-next v0.468.0 - ISC 84 * 85 * This source code is licensed under the ISC license. 86 * See the LICENSE file in the root directory of this source tree. 87 */const ia=P("ServerIcon",[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]]);/** 88 * @license lucide-vue-next v0.468.0 - ISC 89 * 90 * This source code is licensed under the ISC license. 91 * See the LICENSE file in the root directory of this source tree. 92 */const ua=P("SettingsIcon",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** 93 * @license lucide-vue-next v0.468.0 - ISC 94 * 95 * This source code is licensed under the ISC license. 96 * See the LICENSE file in the root directory of this source tree. 97 */const ca=P("SquareCheckBigIcon",[["path",{d:"M21 10.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h12.5",key:"1uzm8b"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]);/** 98 * @license lucide-vue-next v0.468.0 - ISC 99 * 100 * This source code is licensed under the ISC license. 101 * See the LICENSE file in the root directory of this source tree. 102 */const va=P("SquarePenIcon",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);/** 103 * @license lucide-vue-next v0.468.0 - ISC 104 * 105 * This source code is licensed under the ISC license. 106 * See the LICENSE file in the root directory of this source tree.
107 */const ma=P("SquareIcon",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/** 108 * @license lucide-vue-next v0.468.0 - ISC 109 * 110 * This source code is licensed under the ISC license. 111 * See the LICENSE file in the root directory of this source tree. 112 */const ge=P("Trash2Icon",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/** 113 * @license lucide-vue-next v0.468.0 - ISC 114 * 115 * This source code is licensed under the ISC license. 116 * See the LICENSE file in the root directory of this source tree. 117 */const fa=P("ZapIcon",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);function he(t){return t&&typeof t=="object"&&!Array.isArray(t)?t:null}function b(t,n){const d=t==null?void 0:t[n];if(d==null)return null;const l=String(d).trim();return l.length?l:null}function wt(t,n){const d=t==null?void 0:t[n],l=typeof d=="number"?d:Number(d);return Number.isFinite(l)?l:null}function ya(t){return typeof t.app_system_id=="number"&&Number.isFinite(t.app_system_id)}function xt(t){return ya(t)?{app_id:Number(t.app_system_id),name:t.app_system_name||null,product_id:t.product_id||null,product_name:t.product_name||null,product_ref:null,domain:null,remark:null,owner_id:null,field:null,phase_id:null,chinese_name:null,english_abbreviation:null,code:null,status_id:null,version:null,lifecycle_id:null,
117system_type:null,inout_system:null,attribution:null,common_name:null,created_time:null,modify_time:null}:null}function Qr(t){if(!t||typeof t.app_system_id!="number"||!Number.isFinite(t.app_system_id))return null;const n=he(t.app_system),d=he(t.product);return{app_id:Number(t.app_system_id),name:b(n,"name"),product_id:b(d,"id")||t.product_id||null,product_name:b(d,"name"),product_ref:null,domain:null,remark:t.description||t.notes||null,owner_id:null,field:null,phase_id:null,chinese_name:null,english_abbreviation:null,code:null,status_id:null,version:null,lifecycle_id:null,system_type:null,inout_system:null,attribution:null,common_name:null,created_time:null,modify_time:null}}function Gr(t){if(!t||typeof t.devops_resource_id!="number"||!Number.isFinite(t.devops_resource_id))return null;const n=he(t.devops_resource_match);return{id:Number(t.devops_resource_id),resource_key:b(n,"resource_key")||t.connection_key,name:b(n,"name")||t.name,resource_type:b(n,"resource_type")||t.engine,platform_slug:b(n,"platform_slug")||t.account_platform||t.engine,category:b(n,"category")||"database",lifecycle_stage:b(n,"lifecycle_stage")||"active",owner_name:b(n,"owner_name"),region:b(n,"region"),endpoint_url:b(n,"endpoint_url"),endpoint_host:b(n,"endpoint_host")||t.host||null,endpoint_port:wt(n,"endpoint_port")??t.port??null,access_protocol:b(n,"access_protocol"),health_status:b(n,"health_status")||t.health_status||"unknown",source_kind:b(n,"source_kind"),source_ref:b(n,"source_ref")||t.account_id||null,tags:Array.isArray(n==null?void 0:n.tags)?n.tags.map(d=>String(d)):t.tags||[],config:(n==null?void 0:n.config)||null,metadata:(n==null?void 0:n.metadata)||null,notes:b(n,"notes")||t.description||t.notes||null,updated_at:b(n,"updated_at")||t.updated_at||null,created_at:b(n,"created_at")||t.created_at||null}}function Wr(t,n=[]){if(!t||typeof t.devops_project_id!="number"||!Number.isFinite(t.devops_project_id))return null;const d=n.find(f=>f.id===t.devops_project_id);if(d)return d;const l=he(t.devops_project);return{id:Number(t.devops_project_id),project_key:b(l,"project_key")||b(l,"name")||`project-${t.devops_project_id}`,name:b(l,"name")||`Project ${t.devops_project_id}`,project_type:b(l,"project_type")||"application",status:b(l,"status")||"active",repo_url:b(l,"repo_url"),default_branch:b(l,"default_branch"),default_runtime:b(l,"default_runtime"),owner_name:b(l,"owner_name"),source_resource_id:typeof t.devops_resource_id=="number"&&Number.isFinite(t.devops_resource_id)?t.devops_resource_id:null,metadata:(l==null?void 0:l.metadata)||null,notes:b(l,"notes"),updated_at:b(l,"updated_at")||t.updated_at||null,created_at:b(l,"created_at")||t.created_at||null}}function Yr(t,n=[]){if(!t||typeof t.devops_environment_id!="number"||!Number.isFinite(t.devops_environment_id))return null;const d=n.find(f=>f.id===t.devops_environment_id);if(d)return d;const l=he(t.devops_environment);return{id:Number(t.devops_environment_id),project_id:typeof t.devops_project_id=="number"&&Number.isFinite(t.devops_project_id)?t.devops_project_id:0,env_key:b(l,"env_key")||b(l,"stage")||"runtime",env_name:b(l,"env_name")||`Environment ${t.devops_environment_id}`,stage:b(l,"stage")||"runtime",status:b(l,"status")||t.health_status||"active",base_url:b(l,"base_url"),endpoint_protocol:b(l,"endpoint_protocol"),endpoint_host:b(l,"endpoint_host")||t.host||null,endpoint_port:wt(l,"endpoint_port")??t.port??null,deploy_path:b(l,"deploy_path")||t.default_database||null,target_resource_id:typeof t.devops_resource_id=="number"&&Number.isFinite(t.devops_resource_id)?t.devops_resource_id:null,config:(l==null?void 0:l.config)||null,metadata:(l==null?void 0:l.metadata)||null,notes:b(l,"notes")||t.description||t.notes||null,updated_at:b(l,"updated_at")||t.updated_at||null,created_at:b(l,"created_at")||t.created_at||null}}function Zr(t,n=[]){if(typeof t.devops_project_id!="number"||!Number.isFinite(t.devops_project_id))return null;const d=n.find(l=>l.id===t.devops_project_id);return d||{id:Number(t.devops_project_id),project_key:t.devops_project_name||`project-${t.devops_project_id}`,name:t.devops_project_name||`Project ${t.devops_project_id}`,project_type:"application",status:"active",repo_url:null,default_branch:null,default_runtime:null,owner_name:null,source_resource_id:typeof t.devops_resource_id=="number"&&Number.isFinite(t.devops_resource_id)?t.devops_resource_id:null,metadata:null,notes:null,updated_at:t.updated_at||null,created_at:t.created_at||null}}function Jr(t,n=[]){if(typeof t.devops_environment_id!="number"||!Number.isFinite(t.devops_environment_id))return null;const d=n.find(l=>l.id===t.devops_environment_id);return d||{id:Number(t.devops_environment_id),project_id:typeof t.devops_project_id=="number"&&Number.isFinite(t.devops_project_id)?t.devops_project_id:0,env_key:t.engine||"database",env_name:t.devops_environment_name||t.name,stage:"runtime",status:t.health_status||"active",base_url:null,endpoint_protocol:null,endpoint_host:t.host,endpoint_port:t.port,deploy_path:t.default_database||null,target_resource_id:typeof t.devops_resource_id=="number"&&Number.isFinite(t.devops_resource_id)?t.devops_resource_id:null,config:null,metadata:null,notes:t.health_message||null,updated_at:t.updated_at,created_at:t.created_at}}function ga(t){return[t.space_name,t.repo_id,t.space_host,t.space_url,t.devops_pipeline_key,t.app_system_name].map(n=>String(n||"").trim()).find(n=>n.length>0)||""}function ha(t){return[t.connection_key,t.name,t.host,t.default_database,t.devops_project_name,t.app_system_name].map(n=>String(n||"").trim()).find(n=>n.length>0)||""}function O(t){return Array.isArray(t)?t:[]}function le(t){return new Set(t.filter(n=>typeof n=="number"&&Number.isFinite(n)))}function _a(t){return[...t].sort((n,d)=>{const l=Date.parse(String(n.updated_at||n.finished_at||n.started_at||n.created_at||""))||0;return(Date.parse(String(d.updated_at||d.finished_at||d.started_at||d.created_at||""))||0)-l})[0]||null}function ba(t){return[...t].sort((n,d)=>{const l=Date.parse(String(n.updated_at||n.last_deployed_at||n.last_seen_at||n.created_at||""))||0;return(Date.parse(String(d.updated_at||d.last_deployed_at||d.last_seen_at||d.created_at||""))||0)-l})[0]||null}function M(...t){return t.map(n=>String(n||"").trim()).find(n=>n.length>0)||""}function _e(t,n){return typeof t!="number"||!Number.isFinite(t)?null:O(n.resources).find(d=>d.id===t)||null}function It(t,n){return typeof t!="number"||!Number.isFinite(t)?null:O(n.projects).find(d=>d.id===t)||null}function ka(t,n){return typeof t!="number"||!Number.isFinite(t)?null:O(n.environments).find(d=>d.id===t)||null}function xa(t,n){return typeof t!="number"||!Number.isFinite(t)?null:O(n.pipelines).find(d=>d.id===t)||null}function jt(t,n){return typeof t!="number"||!Number.isFinite(t)?null:O(n.templates).find(d=>d.project_id===t)||null}function Rt(t,n){return typeof t!="number"||!Number.isFinite(t)?null:O(n.templates).find(d=>d.environment_id===t)||null}function Sa(t,n){return typeof t!="number"||!Number.isFinite(t)?null:O(n.templates).find(d=>d.source_resource_id===t)||null}function L(t,n,d){const l=String(t||"").trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"");return l||(typeof d=="number"&&Number.isFinite(d)?`${n}-${d}`:n)}function Tt(t){const n=String(t||"").trim();return n?/^https?:\/\//i.test(n)?n:n.includes(".")&&!n.includes(" ")?`https://${n}`:"":""}function St(t){const n=Tt(t).toLowerCase();return n.includes("hf.space")||n.includes("huggingface.co")}function Da(t){const n=String(t.provider_slug||"").trim().toLowerCase(),d=String(t.adapter_slug||"").trim().toLowerCase();return n.includes("huggingface")||d.includes("hf")}function Fa(t){return[t.code,t.name,t.chinese_name,t.domain].map(n=>String(n||"").trim()).find(n=>n.length>0)||""}function je(t){return[t.code,t.name,t.chinese_name,t.product_name,t.domain].map(n=>String(n||"").trim()).find(n=>n.length>0)||""}function Aa(t,n){if(!t)return null;const d=O(n.templates).filter(x=>x.app_system_id===t.app_id),l=le(d.map(x=>
117x.project_id)),f=le(d.map(x=>x.environment_id)),C=le(d.map(x=>x.source_resource_id)),E=O(n.projects).filter(x=>l.has(x.id)),V=O(n.environments).filter(x=>f.has(x.id)||l.has(x.project_id)),de=le(V.map(x=>x.id)),K=O(n.pipelines).filter(x=>l.has(x.project_id)||x.environment_id!==null&&de.has(x.environment_id)||x.source_resource_id!==null&&C.has(x.source_resource_id)),Re=le(K.map(x=>x.id)),Te=le([...d.map(x=>x.source_resource_id),...V.map(x=>x.target_resource_id),...K.map(x=>x.source_resource_id),...K.map(x=>x.target_resource_id)]),Oe=O(n.resources).filter(x=>Te.has(x.id)),ke=O(n.runs).filter(x=>Re.has(x.pipeline_id));return{templates:d,projects:E,environments:V,pipelines:K,runs:ke,resources:Oe,hfTemplateCount:d.filter(x=>Da(x)).length,latestRun:_a(ke)}}function Pa(t,n){if(!t)return null;const d=O(n.hfRelations).filter(f=>f.app_system_id===t.app_id||!!t.product_id&&f.product_id===t.product_id||!!t.name&&f.app_system_name===t.name),l=O(n.databaseConnections).filter(f=>f.app_system_id===t.app_id||!!t.product_id&&f.product_id===t.product_id||!!t.name&&f.app_system_name===t.name);return{hfRelations:d,databaseConnections:l,healthyDatabaseCount:l.filter(f=>f.health_status==="healthy").length,latestHfRelation:ba(d)}}function Ot(t){const n=t.app_system_name||t.space_name||t.repo_id||t.space_host||t.account_alias||"HF App";return{query:M(t.app_system_name,t.space_name,t.repo_id,t.space_host,t.product_name),productId:t.product_id||null,form:{name:n,chinese_name:t.app_system_name||t.space_name||"",product_id:t.product_id||null,code:L(t.space_name||t.repo_id||n,"app"),common_name:t.space_name||null,domain:t.space_url||t.space_host||null,remark:[t.notes,t.repo_id,t.devops_project_name].filter(d=>String(d||"").trim().length).join(" / ")||null}}}function wa(t){const n=t.app_system_name||t.name||t.connection_key||t.host||"Database App";return{query:M(t.app_system_name,t.name,t.connection_key,t.host,t.default_database,t.product_name),productId:t.product_id||null,form:{name:n,chinese_name:t.app_system_name||t.name||"",product_id:t.product_id||null,code:L(t.connection_key||t.name||n,"app"),common_name:t.name||null,domain:t.host||null,remark:[t.engine,t.default_database,t.health_message,t.devops_project_name].filter(d=>String(d||"").trim().length).join(" / ")||null}}}function Ia(t,n){const d=O(t)[0]||null;if(d)return Ot(d);const l=(n==null?void 0:n.alias)||(n==null?void 0:n.email)||(n==null?void 0:n.id)||"HF App";return{query:M(n==null?void 0:n.alias,n==null?void 0:n.email,n==null?void 0:n.domains,n==null?void 0:n.platform),productId:null,form:{name:l,chinese_name:(n==null?void 0:n.alias)||"",code:L((n==null?void 0:n.alias)||(n==null?void 0:n.email)||(n==null?void 0:n.id)||l,"app"),remark:[n==null?void 0:n.platform,n==null?void 0:n.domains,n==null?void 0:n.management].filter(f=>String(f||"").trim().length).join(" / ")||null}}}function be(t,n){const d=t.app_system_name||t.name||t.source_space_name||t.source_repo_id||t.template_key||"DevOps App",l=_e(t.source_resource_id,n);return{query:M(t.app_system_name,t.name,t.template_key,t.source_space_name,t.source_repo_id,t.git_repo_url,t.product_name),productId:t.product_id||null,form:{name:d,chinese_name:t.app_system_name||t.name||"",product_id:t.product_id||null,code:L(t.template_key||t.name||d,"app"),common_name:t.name||t.source_space_name||null,domain:(l==null?void 0:l.endpoint_url)||(l==null?void 0:l.endpoint_host)||t.git_repo_url||t.source_repo_id||null,remark:[t.summary,t.provider_slug,t.adapter_slug,t.git_repo_url,t.source_space_name,t.deploy_path,l==null?void 0:l.name].filter(f=>String(f||"").trim().length).join(" / ")||null}}}function Dt(t,n){const d=jt(t.id,n);if(d)return be(d,n);const l=_e(t.source_resource_id,n),f=t.name||t.project_key||(l==null?void 0:l.name)||"DevOps Project";return{query:M(t.name,t.project_key,t.repo_url,l==null?void 0:l.name,l==null?void 0:l.endpoint_host),productId:null,form:{name:f,chinese_name:t.name||"",code:L(t.project_key||t.name||f,"app"),common_name:t.name||null,domain:(l==null?void 0:l.endpoint_url)||(l==null?void 0:l.endpoint_host)||t.repo_url||null,remark:[t.project_type,t.status,t.repo_url,t.default_runtime,l==null?void 0:l.resource_key].filter(C=>String(C||"").trim().length).join(" / ")||null}}}function Ft(t,n){const d=Rt(t.id,n);if(d)return be(d,n);const l=It(t.project_id,n),f=_e(t.target_resource_id,n),C=t.env_name||t.env_key||(l==null?void 0:l.name)||"DevOps Environment";return{query:M(t.env_name,t.env_key,l==null?void 0:l.name,t.base_url,t.endpoint_host),productId:null,form:{name:C,chinese_name:t.env_name||"",code:L(t.env_key||t.env_name||C,"app"),common_name:t.env_name||null,domain:t.base_url||t.endpoint_host||(f==null?void 0:f.endpoint_url)||(f==null?void 0:f.endpoint_host)||null,remark:[l==null?void 0:l.name,t.stage,t.status,t.deploy_path,f==null?void 0:f.resource_key].filter(E=>String(E||"").trim().length).join(" / ")||null}}}function Ge(t,n){const d=Rt(t.environment_id,n)||jt(t.project_id,n);if(d)return be(d,n);const l=It(t.project_id,n),f=ka(t.environment_id,n),C=_e(t.source_resource_id,n),E=_e(t.target_resource_id,n),V=(l==null?void 0:l.name)||t.pipeline_key||(f==null?void 0:f.env_name)||"DevOps Pipeline";return{query:M(t.pipeline_key,l==null?void 0:l.name,f==null?void 0:f.env_name,C==null?void 0:C.name,E==null?void 0:E.name),productId:null,form:{name:V,chinese_name:(l==null?void 0:l.name)||(f==null?void 0:f.env_name)||"",code:L((l==null?void 0:l.project_key)||t.pipeline_key||V,"app"),common_name:t.pipeline_key||null,domain:(f==null?void 0:f.base_url)||(E==null?void 0:E.endpoint_url)||(E==null?void 0:E.endpoint_host)||(C==null?void 0:C.endpoint_url)||null,remark:[t.pipeline_type,t.adapter_slug,t.status,l==null?void 0:l.name,f==null?void 0:f.env_name].filter(de=>String(de||"").trim().length).join(" / ")||null}}}function At(t,n){const d=Sa(t.id,n);if(d)return be(d,n);const l=t.name||t.resource_key||t.endpoint_host||"DevOps Resource";return{query:M(t.name,t.resource_key,t.endpoint_host,t.endpoint_url,t.platform_slug),productId:null,form:{name:l,chinese_name:t.name||"",code:L(t.resource_key||t.name||l,"app"),common_name:t.name||null,domain:t.endpoint_url||t.endpoint_host||null,remark:[t.platform_slug,t.resource_type,t.category,t.lifecycle_stage,t.source_ref].filter(f=>String(f||"").trim().length).join(" / ")||null}}}function Pt(t,n){const d=xa(t.pipeline_id,n);if(d)return Ge(d,n);const l=t.run_key||t.target_host||"DevOps Run";return{query:M(t.run_key,t.target_url,t.target_host,t.status),productId:null,form:{name:l,chinese_name:t.run_key||"",code:L(t.run_key||l,"app"),common_name:t.run_key||null,domain:t.target_url||t.target_host||null,remark:[t.status,t.trigger_source,t.result_summary,t.error_message].filter(f=>String(f||"").trim().length).join(" / ")||null}}}function ja(t,n){return t.template?be(t.template,n):t.kind==="project"&&t.project?Dt(t.project,n):t.kind==="environment"&&t.environment?Ft(t.environment,n):t.kind==="pipeline"&&t.pipeline?Ge(t.pipeline,n):t.kind==="run"&&t.run?Pt(t.run,n):t.kind==="resource"&&t.resource?At(t.resource,n):t.project?Dt(t.project,n):t.environment?Ft(t.environment,n):t.pipeline?Ge(t.pipeline,n):t.run?Pt(t.run,n):t.resource?At(t.resource,n):{query:M(t.kind,"devops"),productId:null,form:{name:"DevOps App",code:L(t.kind,"app"),remark:t.kind}}}const Ra={class:"grid gap-4 md:gap-5"},Ta={class:"inline-flex items-center gap-1.5"},Oa={class:"hidden sm:inline"},Ca={class:"hidden sm:inline"},Ea={key:6,class:"host-split-container flex gap-3 h-[72vh]"},za={class:"absolute top-2 right-2 z-10"},Na={class:"flex items-center justify-between border-b bg-muted/30 px-2 py-1 shrink-0"},Ha={class:"flex items-center gap-1 overflow-x-auto flex-1"},qa=["onClick"],La={class:"font-medium truncate max-w-[100px]"},$a={class:"flex items-center gap-1 shrink-0 ml-2"},Ba={class:"flex-1 overflow-hidden"},Ma={class:"space-y-6 py-4"},Ua={class:"space-y-4"},Va={class:"text-sm font-semibold text-muted-foreground uppercase tracking-wide"},Qa={class:"grid gap-4 sm:grid-cols-2 xl:grid-cols-3"},Ga={class:"space-y-2"},Wa={class:"space-y-2"},Ya={class:"space-y-2"},Za={class:"space-y-2"},Ja={class:"space-y-2"},Xa={class:"space-y-2"},Ka={class:"space-y-2 xl:col-span-2"},eo={class:"space-y-2"},to={class:"space-y-2 xl:col-span-2"},so={class:"space-y-4"},ao={class:"text-sm font-semibold text-muted-foreground uppercase tracking-wide"},oo={class:"grid gap-4"},no={class:"space-y-2"},ro={class:"space-y-2"},po={class:"space-y-2"},lo={class:"space-y-4"},io={class:"text-sm font-semibold text-muted-foreground uppercase tracking-wide"},uo={class:"grid gap-4 sm:grid-cols-2 xl:grid-cols-3"},co={key:7,class:"fixed inset-0 z-[90] flex items-center justify-center bg-black/50 p-4 backdrop-blur-sm"},vo={class:"bg-card w-full max-w-6xl max-h-[90vh] overflow-y-auto rounded-xl border shadow-lg"},mo={class:"p-6 space-y-6"},fo={class:"flex items-center justify-between"},yo={class:"text-2xl font-semibold"},go={class:"text-sm text-muted-foreground mt-1"},ho={class:"grid gap-4 sm:grid-cols-2 xl:grid-cols-3"},_o={class:"rounded-lg border p-3"},bo={class:"text-base font-semibold mt-1"},ko={class:"rounded-lg border p-3"},xo={class:"text-xs text-muted-foreground uppercase tracking-wide"},So={class:"text-base font-semibold mt-1"},Do={class:"rounded-lg border p-3"},Fo={class:"text-xs text-muted-foreground uppercase tracking-wide"},Ao={class:"text-base font-semibold mt-1"},Po={class:"rounded-lg border p-3"},wo={class:"text-xs text-muted-foreground uppercase tracking-wide"},Io={class:"text-base font-semibold mt-1"},jo={class:"rounded-lg border p-3"},Ro={class:"text-xs text-muted-foreground uppercase tracking-wide"},To={class:"text-base font-semibold mt-1"},Oo={class:"rounded-lg border p-3"},Co={class:"text-base font-semibold mt-1"},Eo={class:"rounded-lg border p-3"},zo={class:"text-base font-semibold mt-1"},No={class:"rounded-lg border p-3"},Ho={class:"text-xs text-muted-foreground uppercase tracking-wide"},qo={class:"text-base font-semibold mt-1 break-all"},Lo={class:"rounded-lg border p-3 sm:col-span-2 xl:col-span-3"},$o={class:"text-xs text-muted-foreground uppercase tracking-wide"},Bo={class:"text-base font-semibold mt-1 break-all"},Mo={class:"rounded-lg border p-3 sm:col-span-2 xl:col-span-3"},Uo={class:"text-xs text-muted-foreground uppercase tracking-wide"},Vo={class:"text-sm mt-1"},Qo={class:"rounded-lg border p-3"},Go={class:"text-xs text-muted-foreground uppercase tracking-wide"},Wo={class:"text-sm mt-1"},Yo={key:0,class:"rounded-lg border p-3 sm:col-span-2 xl:col-span-3"},Zo={class:"text-xs text-muted-foreground uppercase tracking-wide"},Jo={class:"text-sm mt-1 whitespace-pre-wrap"},Xo={key:1,class:"rounded-lg border p-3 sm:col-span-2 xl:col-span-3"},Ko={class:"text-xs text-muted-foreground uppercase tracking-wide"},en={class:"text-sm mt-1 whitespace-pre-wrap"},tn={key:2,class:"rounded-lg border p-3 sm:col-span-2 xl:col-span-3"},sn={class:"text-xs text-muted-foreground uppercase tracking-wide mb-3"},an={class:"grid gap-3 sm:grid-cols-2 xl:grid-cols-3"},on={key:0,class:"rounded border p-2 bg-muted/30"},nn={class:"text-sm mt-1 break-all"},rn={key:1,class:"rounded border p-2 bg-muted/30"},pn={class:"text-sm mt-1 break-all"},ln={key:2,class:"rounded border p-2 bg-muted/30"},dn={class:"text-sm mt-1 break-all"},un={key:3,class:"rounded border p-2 bg-muted/30"},cn={class:"text-sm mt-1 break-all"},vn={key:4,class:"rounded border p-2 bg-muted/30"},mn={class:"text-sm mt-1 break-all"},fn={key:5,class:"rounded border p-2 bg-muted/30"},yn={class:"text-sm mt-1 break-all"},gn={key:6,class:"rounded border p-2 bg-muted/30"},hn={class:"text-sm mt-1 break-all"},_n={key:7,class:"rounded border p-2 bg-muted/30"},bn={class:"text-sm mt-1 break-all"},kn={key:8,class:"rounded border p-2 bg-muted/30"},xn={class:"text-sm mt-1 break-all"},Sn={key:9,class:"rounded border p-2 bg-muted/30"},Dn={class:"text-sm mt-1 break-all"},Fn={key:1,class:"mt-6"},An={class:"flex justify-end gap-3 pt-4 border-t"},Pn={key:8,class:"fixed inset-0 z-[90] flex items-center justify-center bg-slate-950/72 p-3 md:p-4 backdrop-blur-sm"},wn={class:"theme-panel max-h-[94vh] w-full max-w-3xl overflow-y-auto rounded-[1.5rem] md:rounded-[1.8rem] p-4 md:p-5 shadow-panel"},In={class:"flex items-center justify-between gap-3"},jn={class:"theme-kicker text-[11px] uppercase tracking-[0.28em]"},Rn={class:"theme-text mt-2 text-xl font-semibold"},Tn={class:"mt-4 md:mt-5 grid gap-3 md:gap-4 sm:grid-cols-2"},On={class:"grid gap-2"},Cn=["value"],En={class:"grid gap-2"},zn={class:"theme-muted text-xs uppercase tracking-[0.18em]"},Nn=["value"],Hn={class:"grid gap-2 md:col-span-2"},qn={class:"theme-muted text-xs uppercase tracking-[0.18em]"},Ln=["value"],$n={class:"grid gap-2"},Bn={class:"theme-muted text-xs uppercase tracking-[0.18em]"},Mn=["value"],Un={value:""},Vn=["value"],Qn={class:"theme-subpanel flex items-center justify-between rounded-[1rem] px-4 py-3"},Gn={class:"theme-text text-sm"},Wn=["checked"],Yn={class:"mt-5 md:mt-6 flex flex-wrap justify-end gap-2 md:gap-3"},Zn={class:"inline-flex items-center gap-2"},Jn={key:9,class:"fixed inset-0 z-[90] flex items-center justify-center bg-slate-950/72 p-3 md:p-4 backdrop-blur-sm"},Xn={class:"theme-panel max-h-[94vh] w-full max-w-5xl overflow-y-auto rounded-[1.5rem] md:rounded-[1.8rem] p-4 md:p-5 shadow-panel"},Kn={class:"flex items-center justify-between gap-3"},er={class:"theme-kicker text-[11px] uppercase tracking-[0.28em]"},tr={class:"theme-text mt-2 text-xl font-semibold"},sr={class:"mt-4 md:mt-5 grid gap-3 md:gap-4 sm:grid-cols-2 xl:grid-cols-3"},ar={class:"grid gap-2 xl:col-span-2"},or={class:"theme-muted text-xs uppercase tracking-[0.18em]"},nr=["value"],rr={class:"grid gap-2"},pr={class:"theme-muted text-xs uppercase tracking-[0.18em]"},lr=["value"],dr={value:""},ir=["value"],ur={class:"grid gap-2"},cr={class:"theme-muted text-xs uppercase tracking-[0.18em]"},vr=["value"],mr={class:"grid gap-2"},fr={class:"theme-muted text-xs uppercase tracking-[0.18em]"},yr=["value"],gr={class:"grid gap-2"},hr=["value"],_r={class:"grid gap-2"},br={class:"theme-muted text-xs uppercase tracking-[0.18em]"},kr=["value"],xr={class:"grid gap-2"},Sr={class:"theme-muted text-xs uppercase tracking-[0.18em]"},Dr=["value"],Fr={class:"grid gap-2"},Ar=["value"],Pr={class:"grid gap-2"},wr=["value"],Ir={class:"grid gap-2"},jr=["value"],Rr={class:"grid gap-2 xl:col-span-2"},Tr=["value"],Or={class:"grid gap-2 xl:col-span-3"},Cr={class:"theme-muted text-xs uppercase tracking-[0.18em]"},Er=["value"],zr={class:"mt-5 md:mt-6 flex flex-wrap justify-end gap-2 md:gap-3"},Nr={class:"inline-flex items-center gap-2"},Hr="hf_deploy_token",qr="hf_deploy_prefill",Lr=Is({__name:"ResourceOpsPage",props:{locale:{},activeTab:{},overview:{},loadingOverview:{type:Boolean},devopsOverview:{},loadingDevopsOverview:{type:Boolean},devopsResources:{},devopsCredentials:{},devopsProjects:{},devopsEnvironments:{},devopsPipelines:{},devopsRuns:{},devopsSyncCandidates:{},devopsTemplates:{},loadingDevopsResources:{type:Boolean},loadingDevopsCredentials:{type:Boolean},loadingDevopsProjects:{type:Boolean},loadingDevopsEnvironments:{type:Boolean},loadingDevopsPipelines:{type:Boolean},loadingDevopsRuns:{type:Boolean},loadingDevopsSyncCandidates:{type:Boolean},loadingDevopsTemplates:{type:Boolean},loadingDevopsRunDetail:{type:Boolean},selectedDevopsResourceId:{},selectedDevopsProjectId:{},selectedDevopsEnvironmentId:{},selectedDevopsPipelineId:{},selectedDevopsCredentialId:{},selectedDevopsRunId:{},selectedDevopsTemplateId:{},devopsResourceForm:{},devopsProjectForm:{},devopsEnvironmentForm:{},devopsPipelineForm:{},devopsCredentialForm:{},devopsTemplateForm:{},devopsPipelineSteps:{},devopsRunDetail:{},devopsHfSpaceInventory:{},devopsHfSpaceUsername:{},devopsHfSpaceDetail:{},devopsHfSelectedSpaceName:{},devopsHfSpaceFiles:{},devopsHfSpaceFilePrefix:{},devopsHfSelectedFilePath:{},devopsHfSelectedFileContent:{},devopsHfSelectedFileIsBinary:{type:Boolean},devopsHfSelectedFileSize:{},loadingDevopsHfSpaceInventory:{type:Boolean},loadingDevopsHfSpaceDetail:{type:Boolean},loadingDevopsHfSpaceFiles:{type:Boolean},loadingDevopsHfSpaceFileContent:{type:Boolean},savingDevopsHfSpaceFile:{type:Boolean},deletingDevopsHfSpaceFilePath:{}
117,managingDevopsHfSpaceAction:{},devopsHfResolutionError:{},devopsResourceSearchQuery:{},devopsResourceCategoryFilter:{},devopsResourcePlatformFilter:{},devopsResourceTypeFilter:{},devopsCredentialSearchQuery:{},devopsCredentialProviderFilter:{},devopsCredentialTypeFilter:{},devopsCredentialStatusFilter:{},devopsSyncCandidateSearchQuery:{},devopsSyncCandidateCategoryFilter:{},devopsSyncCandidatePlatformFilter:{},devopsSyncCandidateStatusFilter:{},devopsProjectSearchQuery:{},devopsEnvironmentSearchQuery:{},devopsEnvironmentProjectFilter:{},devopsEnvironmentStageFilter:{},devopsPipelineSearchQuery:{},devopsRunSearchQuery:{},devopsTemplateSearchQuery:{},devopsTemplateProviderFilter:{},devopsTemplateAdapterFilter:{},devopsTemplateProductFilter:{},devopsTemplateAppSystemFilter:{},savingDevopsResource:{type:Boolean},savingDevopsProject:{type:Boolean},savingDevopsCredential:{type:Boolean},savingDevopsEnvironment:{type:Boolean},savingDevopsPipeline:{type:Boolean},savingDevopsTemplate:{type:Boolean},deletingDevopsResourceId:{},deletingDevopsCredentialId:{},deletingDevopsProjectId:{},deletingDevopsEnvironmentId:{},deletingDevopsPipelineId:{},deletingDevopsRunId:{},deletingDevopsTemplateId:{},rerunningDevopsRunId:{},runningDevopsPipelineId:{},syncingDevopsAccountId:{},devopsSyncFeedback:{},accounts:{},accountSearchQuery:{},accountCategoryFilter:{},accountGroupFilter:{},accountPlatformFilter:{},accountTypeFilter:{},accountAliasFilter:{},accountCategoryOptions:{},accountGroupOptions:{},accountPlatformOptions:{},accountTypeOptions:{},accountAliasOptions:{},selectedAccountId:{},accountForm:{},loadingAccounts:{type:Boolean},savingAccount:{type:Boolean},deletingAccountId:{},hfPanorama:{},hfPanoramaSearchQuery:{},hfPanoramaStatusFilter:{},loadingHfPanorama:{type:Boolean},databasePanorama:{},databasePanoramaSearchQuery:{},databasePanoramaEngineFilter:{},loadingDatabasePanorama:{type:Boolean},accountHfRelations:{},accountHfRelationSearchQuery:{},accountHfRelationStatusFilter:{},loadingAccountHfRelations:{type:Boolean},rebuildingAccountHfRelations:{type:Boolean},products:{},productTree:{},productOptions:{},productSearchQuery:{},productParentOnly:{},selectedProductId:{},productForm:{},loadingProducts:{type:Boolean},savingProduct:{type:Boolean},deletingProductId:{},appsystems:{},appSystemSearchQuery:{},appSystemProductFilter:{}
117,appSystemFieldFilter:{},appSystemStatusFilter:{},appsystemFieldOptions:{},appsystemStatusOptions:{},selectedAppSystemId:{},appSystemForm:{},loadingAppSystems:{type:Boolean},savingAppSystem:{type:Boolean},deletingAppSystemId:{},productFields:{},productFieldSearchQuery:{},productFieldEntityFilter:{},loadingProductFields:{type:Boolean},hfDeployUrl:{}},emits:["refresh-resource-ops","start-resource-chat","sync-devops-account","refresh-overview","refresh-account-hf-relations-for","debounce-search","begin-new-devops-resource","select-devops-resource","update:devops-resource-form","save-devops-resource","delete-devops-resource","begin-new-devops-credential","select-devops-credential","update:devops-credential-form","save-devops-credential","delete-devops-credential","begin-new-devops-project","select-devops-project","update:devops-project-form","save-devops-project","delete-devops-project","begin-new-devops-environment","select-devops-environment","update:devops-environment-form","save-devops-environment","delete-devops-environment","begin-new-devops-pipeline","select-devops-pipeline","update:devops-pipeline-form","save-devops-pipeline","delete-devops-pipeline","begin-new-devops-template","select-devops-template","update:devops-template-form","save-devops-template","delete-devops-template","run-devops-pipeline","select-devops-run","delete-devops-run","rerun-devops-run","refresh-devops-hf-space-inventory","load-devops-hf-space-detail","refresh-devops-hf-space-files","load-devops-hf-space-file-content","save-devops-hf-space-file","delete-devops-hf-space-file","restart-devops-hf-space","pause-devops-hf-space","update-devops-hf-space-visibility","update-devops-hf-space-sleep-time","upsert-devops-hf-space-secret","delete-devops-hf-space-secret","upsert-devops-hf-space-variable","delete-devops-hf-space-variable","delete-devops-hf-space","apply-devops-project-example","apply-devops-environment-example","apply-devops-pipeline-example","update:devops-resource-search-query","update:devops-resource-category-filter","update:devops-resource-platform-filter","update:devops-resource-type-filter","set-devops-resource-page","set-devops-resource-page-size","update:devops-credential-search-query","update:devops-credential-provider-filter","update:devops-credential-type-filter","update:devops-credential-status-filter","set-devops-credential-page","set-devops-credential-page-size","update:devops-sync-candidate-search-query","update:devops-sync-candidate-category-filter","update:devops-sync-candidate-platform-filter","update:devops-sync-candidate-status-filter","set-devops-sync-candidate-page","set-devops-sync-candidate-page-size","update:devops-project-search-query","set-devops-project-page","set-devops-project-page-size","update:devops-environment-search-query","update:devops-environment-project-filter","update:devops-environment-stage-filter","set-devops-environment-page","set-devops-environment-page-size","update:devops-pipeline-search-query","set-devops-pipeline-page","set-devops-pipeline-page-size","update:devops-template-search-query","update:devops-template-provider-filter","update:devops-template-adapter-filter","update:devops-template-product-filter","update:devops-template-app-system-filter","set-devops-template-page","set-devops-template-page-size","update:devops-run-search-query","set-devops-run-page","set-devops-run-page-size","update:active-tab","update:account-search-query","update:account-category-filter","update:account-group-filter","update:account-platform-filter","update:account-type-filter","update:account-alias-filter","update:account-form","set-account-page","set-account-page-size","update:hf-panorama-search-query","update:hf-panorama-status-filter","set-hf-panorama-page","set-hf-panorama-page-size","update:database-panorama-search-query","update:database-panorama-engine-filter","set-database-panorama-page","set-database-panorama-page-size","refresh-account-hf-relations","rebuild-account-hf-relations","update:account-hf-relation-search-query","update:account-hf-relation-status-filter","set-account-hf-relation-page","set-account-hf-relation-page-size","begin-new-account","duplicate-account","select-account","save-account","delete-account","update:product-search-query","update:product-parent-only","update:product-form","set-product-page","set-product-page-size","begin-new-product","select-product","save-product","delete-product","update:appsystem-search-query","update:appsystem-product-filter","update:appsystem-field-filter","update:appsystem-status-filter","update:appsystem-form","set-appsystem-page","set-appsystem-page-size","begin-new-appsystem","select-appsystem","save-appsystem","delete-appsystem","update:product-field-search-query","update:product-field-entity-filter","set-product-field-page","set-product-field-page-size"],setup(t,{emit:n}){const d=T(()=>R(()=>import("./ResourceOpsOverviewPage-tYJ9yIjB.js"),__vite__mapDeps([0,1,2,3,4,5,6,7]))),l=T(()=>R(()=>import("./ResourceOpsHfDeployPage-Cr9HI25u.js"),__vite__mapDeps([8,1,2,3,4,5]))),f=T(()=>R(()=>import("./ResourceOpsDevopsPage-B9DyyMJp.js"),__vite__mapDeps([9,3,4,1]))),C=T(()=>R(()=>import("./ResourceOpsDatabasePage-BUVdefY5.js"),__vite__mapDeps([10,3,4,1,11,2,5,12,13,14,15,16,17,18,6]))),E=T(()=>R(()=>import("./ResourceOpsNotificationPage-CMFL4MC6.js"),__vite__mapDeps([19,1,2,3,4,5,11,13,12,20,17,18,14,15,16]))),V=T(()=>R(()=>import("./ResourceOpsAccountsPage--Tj40-Ds.js"),__vite__mapDeps([21,1,2,3,4,5,14,11,22,23]))),de=T(()=>R(()=>import("./ResourceOpsArchitecturePage-DrWmLAoL.js"),__vite__mapDeps([24,1,2,3,4,5]))),K=T(()=>R(()=>import("./ResourceOpsAppDossierPage-NblE_rTa.js"),__vite__mapDeps([25,1,2,3,4,5,6,11,13]))),Re=T(()=>R(()=>import("./ResourceOpsFieldsPage-BSH27d8D.js"),__vite__mapDeps([26,1,2,3,4,5]))),Te=T(()=>R(()=>import("./ResourceOpsBusinessDomainsPage-BTzdhrcW.js"),__vite__mapDeps([27,1]))),Oe=T(()=>R(()=>import("./ResourceOpsAppSystemTopologyPage-rMPftqw0.js"),__vite__mapDeps([28,1]))),ke=T(()=>R(()=>import("./ResourceOpsAppPlatformPage-DqZyJzBn.js"),__vite__mapDeps([29,1,11,2,3,4,5,12,15,16,17,14]))),x=T(()=>R(()=>import("./ResourceOpsOperatingSystemPage-U7_1izWU.js"),__vite__mapDeps([30,3,4,1]))),Ct=T(()=>R(()=>import("./ResourceOpsApplicationSoftwarePage-BWpPFClk.js"),__vite__mapDeps([31,3,4,1]))),Et=T(()=>R(()=>import("./HostManagementPage-CclfO9R6.js"),__vite__mapDeps([32,3,4,1,2,5,12,11,15,16,14,20,33]))),zt=T(()=>R(()=>import("./HostTerminalPage-CBpqCT6H.js"),__vite__mapDeps([34,2,1,3,4,5,12,35,36,37,20,23,38,15,11,33,39,40]))),Nt=T(()=>R(()=>import("./AccountDetailEnhancedPanel-DJ9u_615.js"),__vite__mapDeps([41,2,1,3,4,5,11,12,23,42]))),Ht=T(()=>R(()=>import("./AccountEditOperationsPanel-CUwdYV3R.js"),__vite__mapDeps([43,1,2,3,4,5,11,44,12,13,17,18,15,16,14,38,23,45,46]))),qt=T(()=>R(()=>import("./AccountResourceMapPanel-5Zog4Yol.js"),__vite__mapDeps([47,1,2,3,4,5,11,12,14,22,23,38,7,42,45,46,39,13,48]))),p=t,ee=N(null),o=n,Lt=w(()=>p.locale==="zh"),$t=["attr1","attr2","attr3","attr4","attr5","attr6","attr7","attr8","attr9","attr10"],te=N(!1),xe=N(!1),ie=N(!1),se=N(!1),Ce=N(""),Z=N(new Set),Q=N("guide"),z=N([]),U=N(null),ue=N(!1),ce=N(!1),Ee=N(.5);let ze=!1;function Bt(s){ze=!0,document.addEventListener("mousemove",We),document.addEventListener("mouseup",Ye),document.body.style.cursor="col-resize"}function We(s){if(!ze)return;const e=document.querySelector(".host-split-container");if(!e)return;const c=e.getBoundingClientRect(),a=(s.clientX-c.left)/c.width;Ee.value=Math.max(.2,Math.min(.8,a))}function Ye(){ze=!1,document.removeEventListener("mousemove",We),document.removeEventListener("mouseup",Ye),document.body.style.cursor=""}const Ze=w(()=>[{key:"accounts",label:v("Accounts","Accounts"),icon:"cloudTasks"},{key:"architecture",label:v("Architecture","Architecture"),icon:"architecture"},{key:"fields",label:v("åæ®µæ¨¡æ¿","Fields"),icon:"list"},{key:"account-map",label:v("è´¦å·å°å¾","Account Map"),icon:"graph"},{key:"overview",label:v("æ»è§","Overview"),icon:"dashboard"}]),Mt=w(()=>[...Ze.value.slice(0,3),{key:"appDossier",label:v("App Dossier","App Dossier"),icon:"cloudDiaries"},{key:"devops",label:v("DevOps","DevOps"),icon:"cloudFlashes"},{key:"hfDeploy",label:v("HFé¨ç½²","HF Deploy"),icon:"upgrades"},{key:"database",label:v("Database","Database"),icon:"graph"},{key:"notification",label:v("æ¶æ¯éç¥","Notifications"),icon:"chat"},{key:"appPlatform",label:v("åºç¨å¹³å°","App Platform"),icon:"grid"},{key:"operatingSystem",label:v("æä½ç³»ç»","Operating System"),icon:"settings"},{key:"applicationSoftware",label:v("åºç¨è½¯ä»¶","Application Software"),icon:"versions"},{key:"hosts",label:v("主æºç®¡ç","Hosts"),icon:"resourceOps"},...Ze.value.slice(3)]),ve=w(()=>h.value==="database"),Ut=w(()=>{const s=p.hfDeployUrl.includes("?")?"&":"?";return`${p.hfDeployUrl}${s}embedded=1`}),Se=w(()=>p.productTree||[]),me=w(()=>p.selectedProductId?vt(Se.value,p.selectedProductId):null),Vt=w(()=>{var s;return((s=me.value)==null?void 0:s.children)||[]});function Qt(s){return{cloudTasks:ca,architecture:ra,list:pa,dashboard:na,cloudDiaries:Xs,cloudFlashes:fa,upgrades:ea,graph:Zs,chat:kt,grid:oa,settings:ua,versions:aa,resourceOps:ia,chevronLeft:Ve,chevronRight:Qe,x:ye,trash:ge,plus:Ys,search:Ws,sparkles:Gs,pin:da,archive:Js,edit:va,stop:ma,calendar:Ks,clock:Qs,copy:ta,activity:Vs,pause:la,folder:sa}[s]||null}const Gt=w(()=>
117{if(!me.value)return new Set;const s=new Set([me.value.id]);return ft(me.value,s),s}),Wt=w(()=>p.productOptions.filter(s=>!Gt.value.has(s.id))),Yt=w(()=>{const s=Ce.value.trim().toLowerCase();return s?mt(Se.value,s):Se.value}),Ne=w(()=>{var s,e,c,a,k;return{items:G((s=p.accounts)==null?void 0:s.items),total:Number(((e=p.accounts)==null?void 0:e.total)||0),page:Number(((c=p.accounts)==null?void 0:c.page)||1),page_size:Number(((a=p.accounts)==null?void 0:a.page_size)||50),total_pages:Math.max(1,Number(((k=p.accounts)==null?void 0:k.total_pages)||1))}}),Je=w(()=>{var s,e,c,a,k;return{items:G((s=p.accountHfRelations)==null?void 0:s.items),total:Number(((e=p.accountHfRelations)==null?void 0:e.total)||0),page:Number(((c=p.accountHfRelations)==null?void 0:c.page)||1),page_size:Number(((a=p.accountHfRelations)==null?void 0:a.page_size)||6),total_pages:Math.max(1,Number(((k=p.accountHfRelations)==null?void 0:k.total_pages)||1))}}),Xe=w(()=>{var s,e,c,a,k;return{items:G((s=p.appsystems)==null?void 0:s.items),total:Number(((e=p.appsystems)==null?void 0:e.total)||0),page:Number(((c=p.appsystems)==null?void 0:c.page)||1),page_size:Number(((a=p.appsystems)==null?void 0:a.page_size)||20),total_pages:Math.max(1,Number(((k=p.appsystems)==null?void 0:k.total_pages)||1))}}),Zt=w(()=>Ne.value.items.find(s=>s.id===p.selectedAccountId)||(p.selectedAccountId&&p.accountForm.id===p.selectedAccountId?p.accountForm:null)),ae=N(null),g=w(()=>ae.value||Zt.value),Jt=w(()=>{const s=g.value;return s?!!(s.attr1||s.attr2||s.attr3||s.attr4||s.attr5||s.attr6||s.attr7||s.attr8||s.attr9||s.attr10):!1}),oe=w(()=>Xe.value.items.find(s=>s.app_id===p.selectedAppSystemId)||(p.selectedAppSystemId!==null&&p.appSystemForm.app_id===p.selectedAppSystemId?p.appSystemForm:null)),He=w(()=>{var s,e,c,a,k,j;return Aa(oe.value,{templates:(s=p.devopsTemplates)==null?void 0:s.items,projects:(e=p.devopsProjects)==null?void 0:e.items,environments:(c=p.devopsEnvironments)==null?void 0:c.items,pipelines:(a=p.devopsPipelines)==null?void 0:a.items,runs:(k=p.devopsRuns)==null?void 0:k.items,resources:(j=p.devopsResources)==null?void 0:j.items})}),Ke=w(()=>{var s,e;return Pa(oe.value,{hfRelations:(s=p.hfPanorama)==null?void 0:s.items,databaseConnections:(e=p.databasePanorama)==null?void 0:e.items})});function v(s,e){return Lt.value?s:e}function G(s){return Array.isArray(s)?s:[]}const h=w({get:()=>p.activeTab,set:s=>{o("update:active-tab",s)}}),Xt=w(()=>({locale:p.locale,"preferred-section":Q.value,"active-section":Q.value,overview:p.devopsOverview,loading:p.loadingDevopsOverview,resources:p.devopsResources,credentials:p.devopsCredentials,projects:p.devopsProjects,environments:p.devopsEnvironments,pipelines:p.devopsPipelines,runs:p.devopsRuns,"sync-candidates":p.devopsSyncCandidates,templates:p.devopsTemplates,"loading-resources":p.loadingDevopsResources,"loading-credentials":p.loadingDevopsCredentials,"loading-projects":p.loadingDevopsProjects,"loading-environments":p.loadingDevopsEnvironments,"loading-pipelines":p.loadingDevopsPipelines,"loading-runs":p.loadingDevopsRuns,"loading-sync-candidates":p.loadingDevopsSyncCandidates,"loading-templates":p.loadingDevopsTemplates,"loading-run-detail":p.loadingDevopsRunDetail,"selected-resource-id":p.selectedDevopsResourceId,"selected-project-id":p.selectedDevopsProjectId,"selected-environment-id":p.selectedDevopsEnvironmentId,"selected-pipeline-id":p.selectedDevopsPipelineId,"selected-credential-id":p.selectedDevopsCredentialId,"selected-run-id":p.selectedDevopsRunId,"selected-template-id":p.selectedDevopsTemplateId,"resource-form":p.devopsResourceForm,"project-form":p.devopsProjectForm,"environment-form":p.devopsEnvironmentForm,"pipeline-form":p.devopsPipelineForm,"credential-form":p.devopsCredentialForm,"template-form":p.devopsTemplateForm,"pipeline-steps":p.devopsPipelineSteps,"run-detail":p.devopsRunDetail,"hf-space-inventory":p.devopsHfSpaceInventory,"hf-space-username":p.devopsHfSpaceUsername,"hf-space-detail":p.devopsHfSpaceDetail,"hf-selected-space-name":p.devopsHfSelectedSpaceName,"hf-space-files":p.devopsHfSpaceFiles,"hf-space-file-prefix":p.devopsHfSpaceFilePrefix,"hf-selected-file-path":p.devopsHfSelectedFilePath,"hf-selected-file-content":p.devopsHfSelectedFileContent,"hf-selected-file-is-binary":p.devopsHfSelectedFileIsBinary,"hf-selected-file-size":p.devopsHfSelectedFileSize,"loading-hf-space-inventory":p.loadingDevopsHfSpaceInventory,"loading-hf-space-detail":p.loadingDevopsHfSpaceDetail,"loading-hf-space-files":p.loadingDevopsHfSpaceFiles,"loading-hf-space-file-content":p.loadingDevopsHfSpaceFileContent,"saving-hf-space-file":p.savingDevopsHfSpaceFile,"deleting-hf-space-file-path":p.deletingDevopsHfSpaceFilePath,"managing-hf-space-action":p.managingDevopsHfSpaceA
117ction,"hf-resolution-error":p.devopsHfResolutionError,"resource-search-query":p.devopsResourceSearchQuery,"resource-category-filter":p.devopsResourceCategoryFilter,"resource-platform-filter":p.devopsResourcePlatformFilter,"resource-type-filter":p.devopsResourceTypeFilter,"credential-search-query":p.devopsCredentialSearchQuery,"credential-provider-filter":p.devopsCredentialProviderFilter,"credential-type-filter":p.devopsCredentialTypeFilter,"credential-status-filter":p.devopsCredentialStatusFilter,"sync-candidate-search-query":p.devopsSyncCandidateSearchQuery,"sync-candidate-category-filter":p.devopsSyncCandidateCategoryFilter,"sync-candidate-platform-filter":p.devopsSyncCandidatePlatformFilter,"sync-candidate-status-filter":p.devopsSyncCandidateStatusFilter,"project-search-query":p.devopsProjectSearchQuery,"environment-search-query":p.devopsEnvironmentSearchQuery,"environment-project-filter":p.devopsEnvironmentProjectFilter,"environment-stage-filter":p.devopsEnvironmentStageFilter,"pipeline-search-query":p.devopsPipelineSearchQuery,"run-search-query":p.devopsRunSearchQuery,"template-search-query":p.devopsTemplateSearchQuery,"template-provider-filter":p.devopsTemplateProviderFilter,"template-adapter-filter":p.devopsTemplateAdapterFilter,"template-product-filter":p.devopsTemplateProductFilter,"template-app-system-filter":p.devopsTemplateAppSystemFilter,"saving-resource":p.savingDevopsResource,"saving-project":p.savingDevopsProject,"saving-credential":p.savingDevopsCredential,"saving-environment":p.savingDevopsEnvironment,"saving-pipeline":p.savingDevopsPipeline,"saving-template":p.savingDevopsTemplate,"deleting-resource-id":p.deletingDevopsResourceId,"deleting-credential-id":p.deletingDevopsCredentialId,"deleting-project-id":p.deletingDevopsProjectId,"deleting-environment-id":p.deletingDevopsEnvironmentId,"deleting-pipeline-id":p.deletingDevopsPipelineId,"deleting-run-id":p.deletingDevopsRunId,"deleting-template-id":p.deletingDevopsTemplateId,"rerunning-run-id":p.rerunningDevopsRunId,"running-pipeline-id":p.runningDevopsPipelineId,"syncing-account-id":p.syncingDevopsAccountId,"sync-feedback":p.devopsSyncFeedback,products:p.products.items,appsystems:p.appsystems.items,accounts:p.accounts.items,"selected-account":p.selectedAccount,"selected-app-system":p.selectedAppSystem})),Kt={"sync-account":s=>o("sync-devops-account",s),"begin-new-resource":()=>o("begin-new-devops-resource"),"select-resource":s=>o("select-devops-resource",s),"update:resource-form":s=>o("update:devops-resource-form",s),"save-resource":()=>o("save-devops-resource"),"delete-resource":s=>o("delete-devops-resource",s),"begin-new-credential":()=>o("begin-new-devops-credential"),"select-credential":s=>o("select-devops-credential",s),"update:credential-form":s=>o("update:devops-credential-form",s),"save-credential":()=>o("save-devops-credential"),"delete-credential":s=>o("delete-devops-credential",s),"begin-new-project":()=>o("begin-new-devops-project"),"select-project":s=>o("select-devops-project",s),"update:project-form":s=>o("update:devops-project-form",s),"save-project":()=>o("save-devops-project"),"delete-project":s=>o("delete-devops-project",s),"begin-new-environment":()=>o("begin-new-devops-environment"),"select-environment":s=>o("select-devops-environment",s),"update:environment-form":s=>o("update:devops-environment-form",s),"save-environment":()=>o("save-devops-environment"),"delete-environment":s=>o("delete-devops-environment",s),"begin-new-pipeline":()=>o("begin-new-devops-pipeline"),"select-pipeline":s=>o("select-devops-pipeline",s),"update:pipeline-form":s=>o("update:devops-pipeline-form",s),"save-pipeline":()=>o("save-devops-pipeline"),"delete-pipeline":s=>o("delete-devops-pipeline",s),"begin-new-template":()=>o("begin-new-devops-template"),"select-template":s=>o("select-devops-template",s),"update:template-form":s=>o("update:devops-template-form",s),"save-template":()=>o("save-devops-template"),"delete-template":s=>o("delete-devops-template",s),"run-pipeline":s=>{o("run-devops-pipeline",s),Q.value="runs"},"select-run":s=>o("select-devops-run",s),"delete-run":s=>o("delete-devops-run",s),"rerun-run":s=>o("rerun-devops-run",s),"refresh-hf-space-inventory":s=>o("refresh-devops-hf-space-inventory",s),"load-hf-space-detail":s=>o("load-devops-hf-space-detail",s),"refresh-hf-space-files":s=>o("refresh-devops-hf-space-files",s),"load-hf-space-file-content":s=>o("load-devops-hf-space-file-content",s),"save-hf-space-file":s=>o("save-devops-hf-space-file",s),"delete-hf-space-file":s=>o("delete-devops-hf-space-file",s),"restart-hf-space":s=>
117o("restart-devops-hf-space",s),"pause-hf-space":()=>o("pause-devops-hf-space"),"update-hf-space-visibility":s=>o("update-devops-hf-space-visibility",s),"update-hf-space-sleep-time":s=>o("update-devops-hf-space-sleep-time",s),"upsert-hf-space-secret":s=>o("upsert-devops-hf-space-secret",s),"delete-hf-space-secret":s=>o("delete-devops-hf-space-secret",s),"upsert-hf-space-variable":s=>o("upsert-devops-hf-space-variable",s),"delete-hf-space-variable":s=>o("delete-devops-hf-space-variable",s),"delete-hf-space":()=>o("delete-devops-hf-space"),"update:active-section":s=>{Q.value=s},"apply-project-example":s=>o("apply-devops-project-example",s),"apply-environment-example":s=>o("apply-devops-environment-example",s),"apply-pipeline-example":s=>o("apply-devops-pipeline-example",s),"update:resource-search-query":s=>o("update:devops-resource-search-query",s),"update:resource-category-filter":s=>o("update:devops-resource-category-filter",s),"update:resource-platform-filter":s=>o("update:devops-resource-platform-filter",s),"update:resource-type-filter":s=>o("update:devops-resource-type-filter",s),"set-resource-page":s=>o("set-devops-resource-page",s),"set-resource-page-size":s=>o("set-devops-resource-page-size",s),"update:credential-search-query":s=>o("update:devops-credential-search-query",s),"update:credential-provider-filter":s=>o("update:devops-credential-provider-filter",s),"update:credential-type-filter":s=>o("update:devops-credential-type-filter",s),"update:credential-status-filter":s=>o("update:devops-credential-status-filter",s),"set-credential-page":s=>o("set-devops-credential-page",s),"set-credential-page-size":s=>o("set-devops-credential-page-size",s),"update:sync-candidate-search-query":s=>o("update:devops-sync-candidate-search-query",s),"update:sync-candidate-category-filter":s=>o("update:devops-sync-candidate-category-filter",s),"update:sync-candidate-platform-filter":s=>o("update:devops-sync-candidate-platform-filter",s),"update:sync-candidate-status-filter":s=>o("update:devops-sync-candidate-status-filter",s),"set-sync-candidate-page":s=>o("set-devops-sync-candidate-page",s),"set-sync-candidate-page-size":s=>o("set-devops-sync-candidate-page-size",s),"update:project-search-query":s=>o("update:devops-project-search-query",s),"set-project-page":s=>o("set-devops-project-page",s),"set-project-page-size":s=>o("set-devops-project-page-size",s),"update:environment-search-query":s=>o("update:devops-environment-search-query",s),"update:environment-project-filter":s=>o("update:devops-environment-project-filter",s),"update:environment-stage-filter":s=>o("update:devops-environment-stage-filter",s),"set-environment-page":s=>o("set-devops-environment-page",s),"set-environment-page-size":s=>o("set-devops-environment-page-size",s),"update:pipeline-search-query":s=>o("update:devops-pipeline-search-query",s),"set-pipeline-page":s=>o("set-devops-pipeline-page",s),"set-pipeline-page-size":s=>o("set-devops-pipeline-page-size",s),"update:template-search-query":s=>o("update:devops-template-search-query",s),"update:template-provider-filter":s=>o("update:devops-template-provider-filter",s),"update:template-adapter-filter":s=>o("update:devops-template-adapter-filter",s),"update:template-product-filter":s=>o("update:devops-template-product-filter",s),"update:template-app-system-filter":s=>o("update:devops-template-app-system-filter",s),"set-template-page":s=>o("set-devops-template-page",s),"set-template-page-size":s=>o("set-devops-template-page-size",s),"update:run-search-query":s=>o("update:devops-run-search-query",s),"set-run-page":s=>o("set-devops-run-page",s),"set-run-page-size":s=>o("set-devops-run-page-size",s),"focus-appsystem-architecture":s=>Y(s),"focus-appsystem-dossier":s=>X(s),"request-appsystem-repair":s=>As(s)};function H(s,e){o("update:account-form",{...p.accountForm,[s]:e})}function es(s){return p.accountForm[s]||""}function fe(s,e){o("update:product-form",{...p.productForm,[s]:e})}function $(s,e){o("update:appsystem-form",{...p.appSystemForm,[s]:e})}function ts(s){const e=new Set(Z.value);e.has(s)?e.delete(s):e.add(s),Z.value=e}function ss(){const s=new Set;yt(Se.value,s),Z.value=s}function as(){Z.value=new Set}function os(s){var e;if((e=s.children)!=null&&e.length){const c=new Set(Z.value);c.add(s.id),Z.value=c}o("select-product",s),h.value="architecture"}function ns(){o("begin-new-account"),ae.value=null,te.value=!0}async function qe(s){xe.value=!1,ae.value=null,await Cs(),o("select-account",s),te.value=!0}async function rs(s){try{const e=await fetch(`/api/resource-ops/hosts/${s}`);if(e.ok){const c=await e.json(),a=z.value.find(j=>j.hostId===s);if(a){U.value=a.id;return}const k=`term-${Date.now()}-${Math.random().toString(36).substring(2,9)}`;z.value.push({id:k,hostId:s,hostName:c.name||`Host #${s}`}),U.value=k}}catch(e){console.error("Failed to load host info:",e)}}function ps(s){const e=z.value.findIndex(c=>c.id===s);e!==-1&&(z.value.splice(e,1),U.value===s&&z.value.length>0?U.value=z.value[Math.max(0,e-1)].id:z.value.length===0&&(U.value=null))}function ls(){z.value=[],U.value=null}function De(s){ae.value={...s},o("select-account",s),o("refresh-account-hf-relations-for",s.id),xe.value=!0}async function Le(s){console.log("[openAccountDetailById] å°è¯æå¼è´¦å·è¯¦æ
, accountId:",s);const e=Ne.value.items.find(c=>
117String(c.id)===String(s));if(e)console.log("[openAccountDetailById] 卿¬å°åè¡¨ä¸æ¾å°è´¦å·:",e.id),De(e);else{console.log("[openAccountDetailById] æ¬å°æªæ¾å°ï¼å°è¯ä» API è·å:",s);try{const c=await Es(`/api/resource-ops/accounts/${s}`);if(!c.ok)throw new Error(`HTTP ${c.status}: ${c.statusText}`);const a=await c.json();console.log("[openAccountDetailById] API è¿åè´¦å·æ°æ®:",a),De(a)}catch(c){console.error("[openAccountDetailById] Failed to load account:",s,c),alert(`æ æ³å è½½è´¦å· ${s} ç详æ
ï¼${c instanceof Error?c.message:"æªç¥é误"}`)}}}function ds(s){o("duplicate-account",s),ae.value=null,te.value=!0}function $e(){xe.value=!1,ae.value=null}function is(){g.value&&(ee.value=g.value.alias||null,h.value="account-map")}function us(){ee.value=null,h.value="account-map"}function cs(s){ee.value=s,h.value="account-map"}function vs(s){console.log("[handleNavigateToAccount] Opening account detail for:",s),Le(s)}function ms(s){$e(),["architecture","appDossier","devops","hfDeploy","database","notification","appPlatform","operatingSystem","applicationSoftware","hosts"].includes(s)&&(h.value=s)}function fs(s,e){console.log("[handleNavigateToResource] Navigating to resource:",{moduleKey:s,resourceId:e});const a={architecture:"architecture",app_dossier:"appDossier",devops:"devops",hf_deploy:"hfDeploy",database:"database",notification:"notification",app_platform:"appPlatform",operating_system:"operatingSystem",application_software:"applicationSoftware",hosts:"hosts"}[s];a?h.value=a:console.warn("Unknown module key:",s)}function ys(){o("begin-new-product"),ie.value=!0}function gs(s){o("select-product",s),ie.value=!0}function et(){o("begin-new-appsystem"),se.value=!0}function tt(s){o("select-appsystem",s),se.value=!0}function hs(s){return[s.alias,s.email,s.domains,s.management,s.platform,s.id].map(e=>String(e||"").trim()).find(e=>e.length>0)||""}function _s(s){o("select-account",s);const e=hs(s);o("update:devops-resource-search-query",e),o("update:devops-resource-category-filter","all"),o("update:devops-resource-platform-filter","all"),o("update:devops-resource-type-filter","all"),o("update:devops-credential-search-query",e),o("update:devops-credential-provider-filter","all"),o("update:devops-credential-type-filter","all"),o("update:devops-credential-status-filter","all"),o("update:devops-sync-candidate-search-query",e),o("update:devops-sync-candidate-category-filter","all"),o("update:devops-sync-candidate-platform-filter","all"),o("update:devops-sync-candidate-status-filter","all"),W("resources")}function Fe(s){o("update:appsystem-search-query",s.query),o("update:appsystem-product-filter",s.productId?String(s.productId):"all"),o("update:appsystem-field-filter","all"),o("update:appsystem-status-filter","all"),o("set-appsystem-page",1),o("begin-new-appsystem"),o("update:appsystem-form",{...p.appSystemForm,...s.form}),se.value=!0,h.value="architecture"}function st(s){const e=Tt(s);if(!e)return null;try{return new URL(e)}catch{return null}}function Be(s){var c,a,k,j;const e=((c=oe.value)==null?void 0:c.app_id)===s.app_id?He.value:null;return{primaryProjectId:((a=e==null?void 0:e.projects[0])==null?void 0:a.id)??null,primaryEnvironmentId:((k=e==null?void 0:e.environments[0])==null?void 0:k.id)??null,primaryResourceId:((j=e==null?void 0:e.resources[0])==null?void 0:j.id)??null}}function W(s){Q.value=s,h.value="devops"}function J(s){o("select-appsystem",s),o("update:devops-template-app-system-filter",s.app_id?String(s.app_id):"all"),o("update:devops-template-product-filter",s.product_id?String(s.product_id):"all");const e=Fa(s);o("update:devops-project-search-query",e),o("update:devops-pipeline-search-query",e),o("update:devops-run-search-query",e),W("projects")}function Ae(s){o("select-devops-resource",s),o("update:devops-resource-search-query",s.name||s.resource_key||""),o("update:devops-resource-category-filter","all"),o("update:devops-resource-platform-filter","all"),o("update:devops-resource-type-filter","all"),o("set-devops-resource-page",1),W("resources")}function Pe(s){o("select-devops-project",s),o("update:devops-project-search-query",s.name||s.project_key||""),o("set-devops-project-page",1),W("projects")}function we(s){o("select-devops-environment",s),o("update:devops-environment-search-query",s.env_name||s.env_key||""),o("update:devops-environment-project-filter",s.project_id?String(s.project_id):"all"),o("update:devops-environment-stage-filter",s.stage||"all"),o("set-devops-environment-page",1),W("environments")}function bs(s){var e,c;if(o("select-devops-pipeline",s),o("update:devops-pipeline-search-query",s.pipeline_key||""),o("set-devops-pipeline-page",1),typeof s.project_id=="number"&&Number.isFinite(s.project_id)){const a=G((e=p.devopsProjects)==null?void 0:e.items).find(k=>k.id===s.project_id);a&&o("select-devops-project",a)}if(typeof s.environment_id=="number"&&Number.isFinite(s.environment_id)){const a=G((c=p.devopsEnvironments)==null?void 0:c.items).find(k=>k.id===s.environment_id);a&&o("select-devops-environment",a)}W("pipelines")}function ks(s){var e,c;if(o("select-devops-template",s),o("update:devops-template-search-query",s.name||s.template_key||""),o("update:devops-template-provider-filter","all"),o("update:devops-template-adapter-filter","all"),o("update:devops-template-product-filter",s.product_id?String(s.product_id):"all"),o("update:devops-template-app-system-filter",s.app_system_id?String(s.app_system_id):"all"),o("set-devops-template-page",1),typeof s.project_id=="number"&&Number.isFinite(s.project_id)){const a=G((e=p.devopsProjects)==null?void 0:e.items).find(k=>k.id===s.project_id);a&&o("select-devops-project",a)}if(typeof s.environment_id=="number"&&Number.isFinite(s.environment_id)){const a=G((c=p.devopsEnvironments)==null?void 0:c.items).find(k=>k.id===s.environment_id);a&&o("select-devops-environment",a)}W("templates")}
117function xs(s){var c;o("select-devops-run",s.id),o("update:devops-run-search-query",s.run_key||""),o("set-devops-run-page",1);const e=G((c=p.devopsPipelines)==null?void 0:c.items).find(a=>a.id===s.pipeline_id);e&&o("select-devops-pipeline",e),W("runs")}function Y(s){o("select-appsystem",s),o("update:appsystem-search-query",je(s)),o("update:appsystem-product-filter",s.product_id?String(s.product_id):"all"),o("update:appsystem-field-filter","all"),o("update:appsystem-status-filter","all"),o("set-appsystem-page",1),h.value="architecture"}function X(s){o("select-appsystem",s),o("update:appsystem-search-query",je(s)),o("update:appsystem-product-filter",s.product_id?String(s.product_id):"all"),o("update:appsystem-field-filter","all"),o("update:appsystem-status-filter","all"),o("set-appsystem-page",1),h.value="appDossier"}function at(s){o("select-appsystem",s);const e=je(s);o("update:hf-panorama-search-query",e),o("update:hf-panorama-status-filter","all"),o("set-hf-panorama-page",1),h.value="hfDeploy"}function ot(s){o("select-appsystem",s);const e=je(s);o("update:database-panorama-search-query",e),o("update:database-panorama-engine-filter","all"),o("set-database-panorama-page",1),h.value="database"}function Ss(s){Fe(Ot(s))}function Ds(s){Fe(wa(s))}function nt(s){const e=xt(s);e&&o("select-appsystem",e),o("update:hf-panorama-search-query",ga(s)),o("update:hf-panorama-status-filter","all"),o("set-hf-panorama-page",1),h.value="overview"}function rt(s){const e=xt(s);e&&o("select-appsystem",e),o("update:database-panorama-search-query",ha(s)),o("update:database-panorama-engine-filter","all"),o("set-database-panorama-page",1),h.value="overview"}function Fs(){Fe(Ia(Je.value.items,g.value))}function As(s){var e,c,a,k,j;Fe(ja(s,{templates:(e=p.devopsTemplates)==null?void 0:e.items,projects:(c=p.devopsProjects)==null?void 0:c.items,environments:(a=p.devopsEnvironments)==null?void 0:a.items,pipelines:(k=p.devopsPipelines)==null?void 0:k.items,resources:(j=p.devopsResources)==null?void 0:j.items}))}function pt(s){o("begin-new-devops-project"),o("update:devops-project-form",{...p.devopsProjectForm,project_key:L(s.code||s.name,"app",s.app_id),name:s.name||s.chinese_name||s.code||`App ${s.app_id}`,owner_name:s.owner_id||"",notes:s.remark||""}),J(s)}function lt(s){const e=st(s.domain),c=Be(s);o("begin-new-devops-environment"),o("update:devops-environment-form",{...p.devopsEnvironmentForm,project_id:c.primaryProjectId,env_key:"prod",env_name:`${s.name||s.code||s.app_id}-prod`,stage:"prod",base_url:(e==null?void 0:e.toString())||"",endpoint_protocol:e?e.protocol.replace(":",""):p.devopsEnvironmentForm.endpoint_protocol,endpoint_host:(e==null?void 0:e.hostname)||"",endpoint_port:e!=null&&e.port?Number(e.port):null,target_resource_id:c.primaryResourceId,notes:s.remark||""}),J(s),Q.value="environments"}function dt(s){const e=st(s.domain),c=St(s.domain),a=Be(s),k=(e==null?void 0:e.hostname.split("."))||[],j=c&&k.length>=3?k[0]:"";o("begin-new-devops-pipeline"),o("update:devops-pipeline-form",{...p.devopsPipelineForm,project_id:a.primaryProjectId,environment_id:a.primaryEnvironmentId,source_resource_id:a.primaryResourceId,target_resource_id:a.primaryResourceId,pipeline_key:`${L(s.code||s.name,"app",s.app_id)}-deploy`,adapter_slug:c?"hf_space":p.devopsPipelineForm.adapter_slug,pipeline_type:c?"repo_to_hf_space":p.devopsPipelineForm.pipeline_type,space_name:j,verify_url:(e==null?void 0:e.toString())||"",description:s.remark||""}),J(s),Q.value="pipelines"}function it(s){const e=St(s.domain),c=Be(s);o("begin-new-devops-template"),o("update:devops-template-form",{...p.devopsTemplateForm,template_key:`${L(s.code||s.name,"app",s.app_id)}-template`,name:`${s.name||s.code||s.app_id} Deploy`,summary:s.remark||"",product_id:s.product_id||"",app_system_id:s.app_id,project_id:c.primaryProjectId,environment_id:c.primaryEnvironmentId,source_resource_id:c.primaryResourceId,provider_slug:e?"huggingface":p.devopsTemplateForm.provider_slug,adapter_slug:e?"hf_space":p.devopsTemplateForm.adapter_slug,notes:s.remark||""}),J(s),Q.value="templates"}function Ps(s){if(!s)return null;try{const e=JSON.parse(s);return e&&typeof e=="object"?e:null}catch(e){return console.warn("Failed to parse Hugging Face account info.",e),null}}function ws(s){const e=Ps(s.info),c=e==null?void 0:e.token,a=e==null?void 0:e.user_code,k=e==null?void 0:e.apps,j=typeof c=="string"?c.trim():"";if(!j){window.alert(v("No Hugging Face token found in account info.","No Hugging Face token found in account info."));return}const Ie={source:"resource-account",account_id:s.id,alias:s.alias,email:s.email,category:s.category,platform:s.platform,domains:s.domains,management:s.management,token:j,user_code:typeof a=="str
117ing"?a:null,apps:Array.isArray(k)?k:[],pushed_at:new Date().toISOString()};localStorage.setItem(Hr,j),localStorage.setItem(qr,JSON.stringify(Ie)),o("select-account",s),h.value="hfDeploy"}function ut(s){window.confirm(v("ç¡®å®å é¤è¿ä¸ªè´¦æ·èµæºåï¼","Delete this account resource?"))&&o("delete-account",s)}function ct(s){window.confirm(v("ç¡®å®å é¤è¿ä¸ªäº§åèç¹åï¼","Delete this product node?"))&&o("delete-product",s)}function Me(s){window.confirm(v("ç¡®å®å é¤è¿ä¸ªåºç¨ç³»ç»åï¼","Delete this application system?"))&&o("delete-appsystem",s)}function vt(s,e){for(const c of s){if(c.id===e)return c;const a=vt(c.children||[],e);if(a)return a}return null}function mt(s,e){return s.map(c=>{var j,Ie,gt;const a=((j=c.name)==null?void 0:j.toLowerCase().includes(e))||((Ie=c.attribution)==null?void 0:Ie.toLowerCase().includes(e))||((gt=c.type)==null?void 0:gt.toLowerCase().includes(e)),k=mt(c.children||[],e);return!a&&k.length===0?null:{...c,children:k}}).filter(c=>!!c)}function ft(s,e){for(const c of s.children||[])e.add(c.id),ft(c,e)}function yt(s,e){for(const c of s)e.add(c.id),yt(c.children||[],e)}return js(()=>{o("refresh-resource-ops")}),(s,e)=>{var c;return y(),D("section",Ra,[r("article",{class:ne(["theme-panel rounded-[1.2rem] md:rounded-[1.5rem] shadow-panel backdrop-blur",ve.value?"px-3 py-2.5 md:px-4 md:py-3":"p-3 md:p-4"])},[r("div",{class:ne(["flex flex-wrap items-center justify-between",ve.value?"gap-2":"gap-2 md:gap-3"])},[r("div",{class:ne(["flex flex-wrap",ve.value?"gap-1.5":"gap-1.5 md:gap-2"])},[(y(!0),D(re,null,pe(Mt.value,a=>(y(),F(i(I),{key:a.key,type:"button",variant:h.value===a.key?"default":"outline",size:"sm",class:"rounded-full",onClick:k=>h.value=a.key},{default:_(()=>[r("span",Ta,[(y(),F(Rs(Qt(a.icon)),{size:13,"stroke-width":2})),r("span",Oa,u(a.label),1)])]),_:2},1032,["variant","onClick"]))),128))],2),m(i(I),{type:"button",class:ne(ve.value?"px-3 py-1.5 text-xs":"px-3 py-2 md:px-4 md:py-2.5 text-xs md:text-sm"),onClick:e[0]||(e[0]=a=>o("start-resource-chat"))},{default:_(()=>[r("span",{class:ne(["inline-flex items-center",ve.value?"gap-1.5":"gap-1.5 md:gap-2"])},[m(i(kt),{size:14,"stroke-width":2}),r("span",Ca,u(v("AI èµæºå©ç","AI Assistant")),1),e[168]||(e[168]=r("span",{class:"sm:hidden"},"AI",-1))],2)]),_:1},8,["class"])],2)],2),(y(),F(Ts,{include:["ResourceOpsOverviewPage","ResourceOpsDatabasePage","ResourceOpsNotificationPage","ResourceOpsDevopsPage","ResourceOpsHfDeployPage","ResourceOpsAppDossierPage","ResourceOpsAccountsPage","ResourceOpsArchitecturePage","AccountResourceMapPanel"]},[h.value==="overview"?(y(),F(i(d),{key:0,locale:t.locale,overview:t.overview,"loading-overview":t.loadingOverview,accounts:t.accounts,"hf-panorama":t.hfPanorama,"hf-panorama-search-query":t.hfPanoramaSearchQuery,"hf-panorama-status-filter":t.hfPanoramaStatusFilter,"loading-hf-panorama":t.loadingHfPanorama,"database-panorama":t.databasePanorama,"database-panorama-search-query":t.databasePanoramaSearchQuery,"database-panorama-engine-filter":t.databasePanoramaEngineFilter,"loading-database-panorama":t.loadingDatabasePanorama,onOpenTab:e[1]||(e[1]=a=>h.value=a),"onUpdate:hfPanoramaSearchQuery":e[2]||(e[2]=a=>o("update:hf-panorama-search-query",a)),"onUpdate:hfPanoramaStatusFilter":e[3]||(e[3]=a=>o("update:hf-panorama-status-filter",a)),onSetHfPanoramaPage:e[4]||(e[4]=a=>o("set-hf-panorama-page",a)),onSetHfPanoramaPageSize:e[5]||(e[5]=a=>o("set-hf-panorama-page-size",a)),"onUpdate:databasePanoramaSearchQuery":e[6]||(e[6]=a=>o("update:database-panorama-search-query",a)),"onUpdate:databasePanoramaEngineFilter":e[7]||(e[7]=a=>o("update:database-panorama-engine-filter",a)),onSetDatabasePanoramaPage:e[8]||(e[8]=a=>o("set-database-panorama-page",a)),onSetDatabasePanoramaPageSize:e[9]||(e[9]=a=>o("set-database-panorama-page-size",a)),onOpenEditAccount:e[10]||(e[10]=a=>qe(a)),onOpenEditAppsystem:e[11]||(e[11]=a=>o("open-edit-appsystem",a)),onOpenAccountDetail:e[12]||(e[12]=a=>De(a)),onFocusAppsystemArchitecture:e[13]||(e[13]=a=>Y(a)),onFocusAppsystemDossier:e[14]||(e[14]=a=>X(a)),onFocusAppsystemDevops:e[15]||(e[15]=a=>J(a)),onRepairHfPanoramaAppLink:e[16]||(e[16]=a=>Ss(a)),onRepairDatabasePanoramaAppLink:e[17]||(e[17]=a=>Ds(a)),onRefreshOverview:e[18]||(e[18]=a=>o("refresh-overview"))},null,8,["locale","overview","loading-overview","accounts","hf-panorama","hf-panorama-search-query","hf-panorama-status-filter","loading-hf-panorama","database-panorama","database-panorama-search-query","database-panorama-engine-filter","loading-database-panorama"])):S("",!0),h.value==="hfDeploy"?(y(),F(i(l),{key:1,locale:t.locale,"hf-deploy-url":t.hfDeployUrl,"embedded-url":Ut.value,"selected-account":g.value,"selected-app-system":oe.value,appsystems:Xe.value.items,"hf-relations":Je.value.items,onOpenTab:e[19]||(e[19]=a=>h.value=a),onFocusAppsystemArchitecture:e[20]||(e[20]=a=>Y(a)),onFocusAppsystemDossier:e[21]||(e[21]=a=>X(a)),onRequestAppsystemRepair:e[22]||(e[22]=a=>Fs())},null,8,["locale","hf-deploy-url","embedded-url","selected-account","selected-app-system","appsystems","hf-relations"])):h.value==="devops"?(y(),F(i(f),{key:2,"panel-props":Xt.value,"panel-listeners":Kt},null,8,["panel-props"])):h.value==="database"?(y(),F(i(C),{key:3,locale:t.locale,onFocusAppsystemArchitecture:e[23]||(e[23]=a=>Y(a)),onFocusAppsystemDossier:e[24]||(e[24]=a=>X(a)),onFocusDevopsProject:e[25]||(e[25]=a=>Pe(a)),onFocusDevopsEnvironment:e[26]||(e[26]=a=>we(a)),onFocusDevopsResource:e[27]||(e[27]=a=>Ae(a)),onOpenAccountDetail:e[28]||(e[28]=a=>Le(a))},null,8,["locale"])):h.value==="notification"?(y(),F(i(E),{key:4,locale:t.locale,onRefresh:e[29]||(e[29]=a=>s.loadOverview())},null,8,["locale"])):h.value==="appDossier"?(y(),F(i(K),{key:5,locale:t.locale,appsystems:t.appsystems,"app-system-search-query":t.appSystemSearchQuery,"app-system-product-filter":t.appSystemProductFilter,"app-system-field-filter":t.appSystemField
117Filter,"app-system-status-filter":t.appSystemStatusFilter,"appsystem-field-options":t.appsystemFieldOptions,"appsystem-status-options":t.appsystemStatusOptions,"product-options":t.productOptions,"selected-app-system-id":t.selectedAppSystemId,"selected-app-system":oe.value,"selected-app-system-delivery-context":He.value,"selected-app-system-runtime-context":Ke.value,onOpenTab:e[30]||(e[30]=a=>h.value=a),"onUpdate:appsystemSearchQuery":e[31]||(e[31]=a=>o("update:appsystem-search-query",a)),"onUpdate:appsystemFieldFilter":e[32]||(e[32]=a=>o("update:appsystem-field-filter",a)),"onUpdate:appsystemStatusFilter":e[33]||(e[33]=a=>o("update:appsystem-status-filter",a)),"onUpdate:appsystemProductFilter":e[34]||(e[34]=a=>o("update:appsystem-product-filter",a)),onSetAppsystemPageSize:e[35]||(e[35]=a=>o("set-appsystem-page-size",a)),onSetAppsystemPage:e[36]||(e[36]=a=>o("set-appsystem-page",a)),onOpenNewAppsystem:et,onSelectAppsystem:e[37]||(e[37]=a=>o("select-appsystem",a)),onOpenEditAppsystem:e[38]||(e[38]=a=>tt(a)),onFocusAppsystemArchitecture:e[39]||(e[39]=a=>Y(a)),onFocusAppsystemDevops:e[40]||(e[40]=a=>J(a)),onFocusDevopsResource:e[41]||(e[41]=a=>Ae(a)),onFocusDevopsProject:e[42]||(e[42]=a=>Pe(a)),onFocusDevopsEnvironment:e[43]||(e[43]=a=>we(a)),onFocusDevopsPipeline:e[44]||(e[44]=a=>bs(a)),onFocusDevopsTemplate:e[45]||(e[45]=a=>ks(a)),onFocusDevopsRun:e[46]||(e[46]=a=>xs(a)),onFocusAppsystemHf:e[47]||(e[47]=a=>at(a)),onFocusAppsystemHfRuntime:e[48]||(e[48]=a=>nt(a)),onFocusAppsystemDatabase:e[49]||(e[49]=a=>ot(a)),onFocusAppsystemDatabaseRuntime:e[50]||(e[50]=a=>rt(a)),onStartAppsystemProject:e[51]||(e[51]=a=>pt(a)),onStartAppsystemEnvironment:e[52]||(e[52]=a=>lt(a)),onStartAppsystemPipeline:e[53]||(e[53]=a=>dt(a)),onStartAppsystemTemplate:e[54]||(e[54]=a=>it(a)),onDeleteAppsystem:e[55]||(e[55]=a=>Me(a))},null,8,["locale","appsystems","app-system-search-query","app-system-product-filter","app-system-field-filter","app-system-status-filter","appsystem-field-options","appsystem-status-options","product-options","selected-app-system-id","selected-app-system","selected-app-system-delivery-context","selected-app-system-runtime-context"])):h.value==="accounts"?(y(),F(i(V),{key:6,locale:t.locale,accounts:Ne.value,"selected-account-id":t.selectedAccountId,"account-search-query":t.accountSearchQuery,"account-category-filter":t.accountCategoryFilter,"account-group-filter":t.accountGroupFilter,"account-platform-filter":t.accountPlatformFilter,"account-type-filter":t.accountTypeFilter,"account-alias-filter":t.accountAliasFilter,"account-category-options":t.accountCategoryOptions,"account-group-options":t.accountGroupOptions,"account-platform-options":t.accountPlatformOptions,"account-type-options":t.accountTypeOptions,"account-alias-options":t.accountAliasOptions,"loading-accounts":t.loadingAccounts,"syncing-devops-account-id":t.syncingDevopsAccountId,onOpenTab:e[56]||(e[56]=a=>h.value=a),"onUpdate:accountSearchQuery":e[57]||(e[57]=a=>o("update:account-search-query",a)),onTriggerAccountSearch:e[58]||(e[58]=a=>o("refresh-resource-ops")),"onUpdate:accountCategoryFilter":e[59]||(e[59]=a=>o("update:account-category-filter",a)),"onUpdate:accountGroupFilter":e[60]||(e[60]=a=>o("update:account-group-filter",a)),"onUpdate:accountPlatformFilter":e[61]||(e[61]=a=>o("update:account-platform-filter",a)),"onUpdate:accountTypeFilter":e[62]||(e[62]=a=>o("update:account-type-filter",a)),"onUpdate:accountAliasFilter":e[63]||(e[63]=a=>
117o("update:account-alias-filter",a)),onSetAccountPage:e[64]||(e[64]=a=>o("set-account-page",a)),onSetAccountPageSize:e[65]||(e[65]=a=>o("set-account-page-size",a)),onOpenNewAccount:ns,onFocusAccountDevops:e[66]||(e[66]=a=>_s(a)),onOpenHfDeploy:e[67]||(e[67]=a=>ws(a)),onSyncDevopsAccount:e[68]||(e[68]=a=>o("sync-devops-account",a)),onOpenDuplicateAccount:e[69]||(e[69]=a=>ds(a)),onOpenAccountDetail:e[70]||(e[70]=a=>De(a)),onOpenEditAccount:e[71]||(e[71]=a=>qe(a)),onOpenAccountMapAll:us,onOpenAccountMapWithAlias:e[72]||(e[72]=a=>cs(a)),onDeleteAccount:e[73]||(e[73]=a=>ut(a))},null,8,["locale","accounts","selected-account-id","account-search-query","account-category-filter","account-group-filter","account-platform-filter","account-type-filter","account-alias-filter","account-category-options","account-group-options","account-platform-options","account-type-options","account-alias-options","loading-accounts","syncing-devops-account-id"])):h.value==="account-map"?(y(),F(i(qt),{key:7,locale:t.locale,mode:"all","filter-alias":ee.value||void 0,onClose:e[74]||(e[74]=a=>{ee.value=null,h.value="overview"}),onNavigateToTab:e[75]||(e[75]=a=>{ee.value=null,h.value=a}),onNavigateToAccount:vs,onNavigateToResource:fs},null,8,["locale","filter-alias"])):h.value==="architecture"?(y(),F(i(de),{key:8,locale:t.locale,"product-tree-search":Ce.value,"filtered-product-tree":Yt.value,"selected-product-id":t.selectedProductId,"expanded-product-ids":Z.value,"selected-product-node":me.value,"selected-product-children":Vt.value,appsystems:t.appsystems,"app-system-search-query":t.appSystemSearchQuery,"app-system-product-filter":t.appSystemProductFilter,"app-system-field-filter":t.appSystemField
117Filter,"app-system-status-filter":t.appSystemStatusFilter,"appsystem-field-options":t.appsystemFieldOptions,"appsystem-status-options":t.appsystemStatusOptions,"product-options":t.productOptions,"selected-app-system-id":t.selectedAppSystemId,"selected-app-system":oe.value,"selected-app-system-delivery-context":He.value,"selected-app-system-runtime-context":Ke.value,onOpenTab:e[76]||(e[76]=a=>h.value=a),"onUpdate:productTreeSearch":e[77]||(e[77]=a=>Ce.value=a),onExpandAllProducts:ss,onCollapseAllProducts:as,onOpenNewProduct:ys,onOpenEditProduct:e[78]||(e[78]=a=>gs(a)),onSelectProduct:e[79]||(e[79]=a=>os(a)),onToggleProductExpand:e[80]||(e[80]=a=>ts(a)),onOpenNewAppsystem:et,onDeleteProduct:e[81]||(e[81]=a=>ct(a)),"onUpdate:appsystemSearchQuery":e[82]||(e[82]=a=>o("update:appsystem-search-query",a)),"onUpdate:appsystemFieldFilter":e[83]||(e[83]=a=>o("update:appsystem-field-filter",a)),"onUpdate:appsystemStatusFilter":e[84]||(e[84]=a=>o("update:appsystem-status-filter",a)),"onUpdate:appsystemProductFilter":e[85]||(e[85]=a=>o("update:appsystem-product-filter",a)),onSetAppsystemPageSize:e[86]||(e[86]=a=>o("set-appsystem-page-size",a)),onSetAppsystemPage:e[87]||(e[87]=a=>o("set-appsystem-page",a)),onSelectAppsystem:e[88]||(e[88]=a=>o("select-appsystem",a)),onFocusAppsystemArchitecture:e[89]||(e[89]=a=>Y(a)),onFocusAppsystemDossier:e[90]||(e[90]=a=>X(a)),onFocusAppsystemDevops:e[91]||(e[91]=a=>J(a)),onFocusAppsystemHf:e[92]||(e[92]=a=>at(a)),onFocusAppsystemHfRuntime:e[93]||(e[93]=a=>nt(a)),onFocusAppsystemDatabase:e[94]||(e[94]=a=>ot(a)),onFocusAppsystemDatabaseRuntime:e[95]||(e[95]=a=>rt(a)),onStartAppsystemProject:e[96]||(e[96]=a=>pt(a)),onStartAppsystemEnvironment:e[97]||(e[97]=a=>lt(a)),onStartAppsystemPipeline:e[98]||(e[98]=a=>dt(a)),onStartAppsystemTemplate:e[99]||(e[99]=a=>it(a)),onOpenEditAppsystem:e[100]||(e[100]=a=>tt(a)),onDeleteAppsystem:e[101]||(e[101]=a=>Me(a))},null,8,["locale","product-tree-search","filtered-product-tree","selected-product-id","expanded-product-ids","selected-product-node","selected-product-children","appsystems","app-system-search-query","app-system-product-filter","app-system-field-filter","app-system-status-filter","appsystem-field-options","appsystem-status-options","product-options","selected-app-system-id","selected-app-system","selected-app-system-delivery-context","selected-app-system-runtime-context"])):S("",!0)],1024)),h.value==="fields"?(y(),F(i(Re),{key:0,locale:t.locale,"product-fields":t.productFields,"product-field-search-query":t.productFieldSearchQuery,"product-field-entity-filter":t.productFieldEntityFilter,"loading-product-fields":t.loadingProductFields,onOpenTab:e[102]||(e[102]=a=>h.value=a),"onUpdate:productFieldSearchQuery":e[103]||(e[103]=a=>o("update:product-field-search-query",a)),"onUpdate:productFieldEntityFilter":e[104]||(e[104]=a=>o("update:product-field-entity-filter",a)),onSetProductFieldPage:e[105]||(e[105]=a=>o("set-product-field-page",a)),onSetProductFieldPageSize:e[106]||(e[106]=a=>o("set-product-field-page-size",a))},null,8,["locale","product-fields","product-field-search-query","product-field-entity-filter","loading-product-fields"])):S("",!0),h.value==="businessDomains"?(y(),F(i(Te),{key:1,locale:t.locale,onBack:e[107]||(e[107]=a=>h.value="architecture")},null,8,["locale"])):S("",!0),h.value==="appSystemTopology"?(y(),F(i(Oe),{key:2,locale:t.locale,"app-system-id":t.selectedAppSystemId||0,onBack:e[108]||(e[108]=a=>h.value="architecture")},null,8,["locale","app-system-id"])):S("",!0),h.value==="appPlatform"?(y(),F(i(ke),{key:3,locale:t.locale,"app-system-id":t.selectedAppSystemId||0,onBack:e[109]||(e[109]=a=>h.value="appDossier")},null,8,["locale","app-system-id"])):S("",!0),h.value==="operatingSystem"?(y(),F(i(x),{key:4,locale:t.locale,onFocusAppsystemArchitecture:e[110]||(e[110]=a=>Y(a)),onFocusAppsystemDossier:e[111]||(e[111]=a=>X(a)),onFocusDevopsProject:e[112]||(e[112]=a=>Pe(a)),onFocusDevopsEnvironment:e[113]||(e[113]=a=>we(a)),onFocusDevopsResource:e[114]||(e[114]=a=>Ae(a))},null,8,["locale"])):S("",!0),h.value==="applicationSoftware"?(y(),F(i(Ct),{key:5,locale:t.locale,onFocusAppsystemArchitecture:e[115]||(e[115]=a=>Y(a)),onFocusAppsystemDossier:e[116]||(e[116]=a=>X(a)),onFocusDevopsProject:e[117]||(e[117]=a=>Pe(a)),onFocusDevopsEnvironment:e[118]||(e[118]=a=>we(a)),onFocusDevopsResource:e[119]||(e[119]=a=>Ae(a))},null,8,["locale"])):S("",!0),h.value==="hosts"?(y(),D("div",Ea,[ht(r("article",{class:"theme-panel roun
117ded-lg overflow-hidden flex flex-col transition-all duration-300 relative",style:bt({width:z.value.length>0?`${Ee.value*100}%`:"100%",minWidth:"20%"})},[r("div",za,[m(i(I),{size:"xs",variant:"ghost",class:"h-6 w-6 p-0 bg-background/80 backdrop-blur",onClick:e[120]||(e[120]=a=>ue.value=!0)},{default:_(()=>[m(i(Ve),{size:14,"stroke-width":2})]),_:1})]),m(i(Et),{locale:t.locale,onOpenTerminal:e[121]||(e[121]=a=>rs(a)),onOpenAccountDetail:e[122]||(e[122]=a=>Le(a))},null,8,["locale"])],4),[[_t,!ue.value]]),ue.value?(y(),F(i(I),{key:0,size:"sm",variant:"outline",class:"shrink-0",onClick:e[123]||(e[123]=a=>ue.value=!1)},{default:_(()=>[m(i(Qe),{size:16,"stroke-width":2})]),_:1})):S("",!0),!ue.value&&!ce.value&&z.value.length>0?(y(),D("div",{key:1,class:"w-1.5 cursor-col-resize hover:bg-primary/20 active:bg-primary/40 rounded-full transition-colors shrink-0 relative group",onMousedown:Bt},[...e[169]||(e[169]=[r("div",{class:"absolute inset-y-0 -left-2 -right-2"},null,-1)])],32)):S("",!0),!ce.value&&z.value.length>0?(y(),D("article",{key:2,class:"theme-panel rounded-lg flex flex-col overflow-hidden transition-all duration-300",style:bt({width:`${(1-Ee.value)*100}%`,minWidth:"20%"})},[r("div",Na,[r("div",Ha,[(y(!0),D(re,null,pe(z.value,a=>(y(),D("div",{key:a.id,class:ne(["flex items-center gap-2 px-3 py-1.5 text-xs cursor-pointer border-b-2 transition-colors whitespace-nowrap",U.value===a.id?"border-primary bg-background":"border-transparent hover:bg-muted/50"]),onClick:k=>U.value=a.id},[r("span",La,u(a.hostName),1),m(i(I),{size:"xs",variant:"ghost",class:"h-5 w-5 p-0",onClick:Os(k=>ps(a.id),["stop"])},{default:_(()=>[m(i(ye),{size:12,"stroke-width":2})]),_:1},8,["onClick"])],10,qa))),128))]),r("div",$a,[m(i(I),{size:"xs",variant:"ghost",class:"h-6 w-6 p-0",onClick:ls,title:"å
³éææç»ç«¯"},{default:_(()=>[m(i(ge),{size:12,"stroke-width":2})]),_:1}),m(i(I),{size:"xs",variant:"ghost",class:"h-6 w-6 p-0",onClick:e[124]||(e[124]=a=>ce.value=!0),title:"æ¶èµ·é¢æ¿"},{default:_(()=>[m(i(Qe),{size:14,"stroke-width":2})]),_:1})])]),r("div",Ba,[(y(!0),D(re,null,pe(z.value,a=>ht((y(),F(i(zt),{key:a.id,"host-id":a.hostId,locale:t.locale,"show-close-button":!1},null,8,["host-id","locale"])),[[_t,U.value===a.id]])),128))])],4)):S("",!0),ce.value&&z.value.length>0?(y(),F(i(I),{key:3,size:"sm",variant:"outline",class:"shrink-0",onClick:e[125]||(e[125]=a=>ce.value=!1)},{default:_(()=>[m(i(Ve),{size:16,"stroke-width":2})]),_:1})):S("",!0)])):S("",!0),m(i(Ls),{open:te.value,"onUpdate:open":e[141]||(e[141]=a=>te.value=a)},{default:_(()=>[m(i(zs),{class:"max-w-5xl max-h-[90vh] overflow-y-auto"},{default:_(()=>[m(i(Ns),null,{default:_(()=>[m(i(Hs),null,{default:_(()=>[A(u(t.selectedAccountId?v("ç¼è¾è´¦æ·èµæº","Edit Account Resource"):v("æ°å¢è´¦æ·èµæº","New Account Resource")),1)]),_:1})]),_:1}),r("div",Ma,[r("div",Ua,[r("h4",Va,u(v("åºæ¬ä¿¡æ¯","Basic Information")),1),r("div",Qa,[r("div",Ga,[m(i(q),{for:"account-id"},{default:_(()=>[...e[170]||(e[170]=[A("ID",-1)])]),_:1}),m(i(B),{id:"account-id",value:t.accountForm.id||"",disabled:!!t.selectedAccountId,placeholder:v("æ°å»ºæ¶å¯æå¡«ï¼ä¸å¡«åèªå¨çæ","Optional for create; generated if empty"),onInput:e[126]||(e[126]=a=>H("id",a.target.value))},null,8,["value","disabled","placeholder"])]),r("div",Wa,[m(i(q),{for:"account-category"},{default:_(()=>[A(u(v("åç±»","Category")),1)]),_:1}),m(i(B),{id:"account-category",value:t.accountForm.category||"",onInput:e[127]||(e[127]=a=>H("category",a.target.value))},null,8,["value"])]),r("div",Ya,[m(i(q),{for:"account-group"},{default:_(()=>[A(u(v("åç»","Group")),1)]),_:1}),m(i(B),{id:"account-group",value:t.accountForm.group_name||"",onInput:e[128]||(e[128]=a=>H("group_name",a.target.value))},null,8,["value"])]),r("div",Za,[m(i(q),{for:"account-platform"},{default:_(()=>[A(u(v("å¹³å°","Platform")),1)]),_:1}),m(i(B),{id:"account-platform",value:t.accountForm.platform||"",onInput:e[129]||(e[129]=a=>H("platform",a.target.value))},null,8,["value"])]),r("div",Ja,[m(i(q),{for:"account-type"},{default:_(()=>[A(u(v("ç±»å","Type")),1)]),_:1}),m(i(B),{id:"account-type",value:t.accountForm.type||"",onInput:e[130]||(e[130]=a=>H("type",a.target.value))},null,8,["value"])]),r("div",Xa,[m(i(q),{for:"account-alias"},{default:_(()=>[...e[171]||(e[171]=[A("Alias",-1)])]),_:1}),m(i(B),{id:"account-alias",value:t.accountForm.alias||"",onInput:e[131]||(e[131]=a=>
117H("alias",a.target.value))},null,8,["value"])]),r("div",Ka,[m(i(q),{for:"account-email"},{default:_(()=>[...e[172]||(e[172]=[A("Email",-1)])]),_:1}),m(i(B),{id:"account-email",value:t.accountForm.email||"",type:"email",onInput:e[132]||(e[132]=a=>H("email",a.target.value))},null,8,["value"])]),r("div",eo,[m(i(q),{for:"account-management"},{default:_(()=>[A(u(v("管çå
¥å£","Console")),1)]),_:1}),m(i(B),{id:"account-management",value:t.accountForm.management||"",type:"url",onInput:e[133]||(e[133]=a=>H("management",a.target.value))},null,8,["value"])]),r("div",to,[m(i(q),{for:"account-domains"},{default:_(()=>[A(u(v("åå / å°å","Domains / URLs")),1)]),_:1}),m(i(B),{id:"account-domains",value:t.accountForm.domains||"",onInput:e[134]||(e[134]=a=>H("domains",a.target.value))},null,8,["value"])])])]),r("div",so,[r("h4",ao,u(v("详ç»ä¿¡æ¯","Details")),1),r("div",oo,[r("div",no,[m(i(q),{for:"account-info"},{default:_(()=>[A(u(v("ä¿¡æ¯","Info")),1)]),_:1}),m(i(Ue),{id:"account-info",value:t.accountForm.info||"",placeholder:v("è¾å
¥è´¦å·ç¸å
³ä¿¡æ¯","Enter account information"),class:"min-h-[100px]",onInput:e[135]||(e[135]=a=>H("info",a.target.value))},null,8,["value","placeholder"])]),r("div",ro,[m(i(q),{for:"account-remarks"},{default:_(()=>[A(u(v("夿³¨","Remarks")),1)]),_:1}),m(i(Ue),{id:"account-remarks",value:t.accountForm.remarks||"",placeholder:v("è¾å
¥å¤æ³¨ä¿¡æ¯","Enter remarks"),class:"min-h-[100px]",onInput:e[136]||(e[136]=a=>H("remarks",a.target.value))},null,8,["value","placeholder"])]),r("div",po,[m(i(q),{for:"account-others"},{default:_(()=>[A(u(v("å
¶ä»","Others")),1)]),_:1}),m(i(Ue),{id:"account-others",value:t.accountForm.others||"",class:"min-h-[80px]",onInput:e[137]||(e[137]=a=>H("others",a.target.value))},null,8,["value"])])])]),r("div",lo,[r("h4",io,u(v("èªå®ä¹å±æ§","Custom Attributes")),1),r("div",uo,[(y(),D(re,null,pe($t,a=>r("div",{key:a,class:"space-y-2"},[m(i(q),{for:`account-${a}`},{default:_(()=>[A(u(a),1)]),_:2},1032,["for"]),m(i(B),{id:`account-${a}`,value:es(a),onInput:k=>H(a,k.target.value)},null,8,["id","value","onInput"])])),64))])]),t.selectedAccountId?(y(),F(i(Ht),{key:0,locale:t.locale,"account-id":t.selectedAccountId},null,8,["locale","account-id"])):S("",!0)]),m(i(qs),null,{default:_(()=>[t.selectedAccountId?(y(),F(i(I),{key:0,variant:"destructive",onClick:e[138]||(e[138]=a=>ut(t.selectedAccountId))},{default:_(()=>[m(i(ge),{size:14,"stroke-width":2,class:"mr-2"}),A(" "+u(v("å é¤","Delete")),1)]),_:1})):S("",!0),m(i(I),{variant:"outline",onClick:e[139]||(e[139]=a=>te.value=!1)},{default:_(()=>[A(u(v("åæ¶","Cancel")),1)]),_:1}),m(i(I),{onClick:e[140]||(e[140]=a=>o("save-account")),disabled:t.savingAccount},{default:_(()=>[A(u(t.savingAccount?v("ä¿åä¸...","Saving..."):v("ä¿å","Save")),1)]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1},8,["open"]),xe.value?(y(),D("div",co,[r("div",vo,[r("div",mo,[r("div",fo,[r("div",null,[r("h3",yo,u(v("è´¦å·è¯¦æ
","Account Details")),1),r("p",go,u((c=g.value)==null?void 0:c.id),1)]),m(i(I),{variant:"ghost",size:"icon",onClick:$e},{default:_(()=>[m(i(ye),{size:20,"stroke-width":2})]),_:1})]),g.value?(y(),F(i(Us),{key:0},{default:_(()=>[m(i($s),null,{default:_(()=>[m(i(Bs),{class:"text-base"},{default:_(()=>[A(u(v("è´¦å·ä¿¡æ¯","Account Information")),1)]),_:1})]),_:1}),m(i(Ms),null,{default:_(()=>[r("div",ho,[r("div",_o,[e[173]||(e[173]=r("div",{class:"text-xs text-muted-foreground uppercase tracking-wide"},"ID",-1)),r("div",bo,u(g.value.id||"-"),1)]),r("div",ko,[r("div",xo,u(v("åç±»","Category")),1),r("div",So,u(g.value.category||"-"),1)]),r("div",Do,[r("div",Fo,u(v("åç»","Group")),1),r("div",Ao,u(g.value.group_name||"-"),1)]),r("div",Po,[r("div",wo,u(v("å¹³å°","Platform")),1),r("div",Io,u(g.value.platform||"-"),1)]),r("div",jo,[r("div",Ro,u(v("ç±»å","Type")),1),r("div",To,u(g.value.type||"-"),1)]),r("div",Oo,[e[174]||(e[174]=r("div",{class:"text-xs text-muted-foreground uppercase tracking-wide"},"Alias",-1)),r("div",Co,u(g.value.alias||"-"),1)]),r("div",Eo,[e[175]||(e[175]=r("div",{class:"text-xs text-muted-foreground uppercase tracking-wide"},"Email",-1)),r("div",zo,u(g.value.email||"-"),1)]),r("div",No,[r("div",Ho,u(v("管çå
¥å£","Console")),1),r("div",qo,u(g.value.management||"-"),1)]),r("div",Lo,[r("div",$o,u(v("åå / å°å","Domains / URLs")),1),r("div",Bo,u(g.value.domains||"-"),1)]),r("div",Mo,[r("div",Uo,u(v("夿³¨","Remark")),1),r("div",Vo,u(g.value.remarks||"-"),1)]),r("div",Qo,[r("div",Go,u(v("æ´æ°æ¶é´","Updated At")),1),r("div",Wo,u(g.value.updated_at||"-"),1)]),g.value.info?(y(),D("div",Yo,[r("div",Zo,u(v("ä¿¡æ¯","Info")),1),r("div",Jo,u(g.value.info),1)])):S("",!0),g.value.others?(y(),D("div",Xo,[r("div",Ko,u(v("å
¶ä»","Others")),1),r("div",en,u(g.value.others
117),1)])):S("",!0),Jt.value?(y(),D("div",tn,[r("div",sn,u(v("èªå®ä¹å±æ§","Custom Attributes")),1),r("div",an,[g.value.attr1?(y(),D("div",on,[e[176]||(e[176]=r("div",{class:"text-[10px] text-muted-foreground uppercase font-semibold"},"attr1",-1)),r("div",nn,u(g.value.attr1),1)])):S("",!0),g.value.attr2?(y(),D("div",rn,[e[177]||(e[177]=r("div",{class:"text-[10px] text-muted-foreground uppercase font-semibold"},"attr2",-1)),r("div",pn,u(g.value.attr2),1)])):S("",!0),g.value.attr3?(y(),D("div",ln,[e[178]||(e[178]=r("div",{class:"text-[10px] text-muted-foreground uppercase font-semibold"},"attr3",-1)),r("div",dn,u(g.value.attr3),1)])):S("",!0),g.value.attr4?(y(),D("div",un,[e[179]||(e[179]=r("div",{class:"text-[10px] text-muted-foreground uppercase font-semibold"},"attr4",-1)),r("div",cn,u(g.value.attr4),1)])):S("",!0),g.value.attr5?(y(),D("div",vn,[e[180]||(e[180]=r("div",{class:"text-[10px] text-muted-foreground uppercase font-semibold"},"attr5",-1)),r("div",mn,u(g.value.attr5),1)])):S("",!0),g.value.attr6?(y(),D("div",fn,[e[181]||(e[181]=r("div",{class:"text-[10px] text-muted-foreground uppercase font-semibold"},"attr6",-1)),r("div",yn,u(g.value.attr6),1)])):S("",!0),g.value.attr7?(y(),D("div",gn,[e[182]||(e[182]=r("div",{class:"text-[10px] text-muted-foreground uppercase font-semibold"},"attr7",-1)),r("div",hn,u(g.value.attr7),1)])):S("",!0),g.value.attr8?(y(),D("div",_n,[e[183]||(e[183]=r("div",{class:"text-[10px] text-muted-foreground uppercase font-semibold"},"attr8",-1)),r("div",bn,u(g.value.attr8),1)])):S("",!0),g.value.attr9?(y(),D("div",kn,[e[184]||(e[184]=r("div",{class:"text-[10px] text-muted-foreground uppercase font-semibold"},"attr9",-1)),r("div",xn,u(g.value.attr9),1)])):S("",!0),g.value.attr10?(y(),D("div",Sn,[e[185]||(e[185]=r("div",{class:"text-[10px] text-muted-foreground uppercase font-semibold"},"attr10",-1)),r("div",Dn,u(g.value.attr10),1)])):S("",!0)])])):S("",!0)])]),_:1})]),_:1})):S("",!0),g.value?(y(),D("div",Fn,[m(i(Nt),{locale:t.locale,"account-id":g.value.id,onNavigateToTab:ms,onOpenMap:is},null,8,["locale","account-id"])])):S("",!0),r("div",An,[m(i(I),{variant:"outline",onClick:$e},{default:_(()=>[A(u(v("å
³é","Close")),1)]),_:1}),m(i(I),{disabled:!g.value,onClick:e[142]||(e[142]=a=>g.value&&qe(g.value))},{default:_(()=>[A(u(v("ç¼è¾","Edit")),1)]),_:1},8,["disabled"])])])])])):S("",!0),ie.value?(y(),D("div",Pn,[r("div",wn,[r("div",In,[r("div",null,[r("p",jn,u(v("产åèç¹ç¼è¾","Product Editor")),1),r("h3",Rn,u(t.selectedProductId?v("ç¼è¾äº§åèç¹","Edit Product Node"):v("æ°å¢äº§åèç¹","New Product Node")),1)]),m(i(I),{type:"button",variant:"ghost",size:"icon",class:"rounded-full",onClick:e[143]||(e[143]=a=>ie.value=!1)},{default:_(()=>[m(i(ye),{size:16,"stroke-width":2})]),_:1})]),r("div",Tn,[r("label",On,[e[186]||(e[186]=r("span",{class:"theme-muted text-xs uppercase tracking-[0.18em]"},"Attribution",-1)),r("input",{value:t.productForm.attribution||"",class:"theme-input rounded-[1rem] px-3 py-2.5 text-sm",onInput:e[144]||(e[144]=a=>fe("attribution",a.target.value))},null,40,Cn)]),r("label",En,[r("span",zn,u(v("ç±»å","Type")),1),r("input",{value:t.productForm.type||"",class:"theme-input rounded-[1rem] px-3 py-2.5 text-sm",onInput:e[145]||(e[145]=a=>fe("type",a.target.value))},null,40,Nn)]),r("label",Hn,[r("span",qn,u(v("éå¶Ð","Name")),1),r("input",{value:t.productForm.name||"",class:"theme-input rounded-[1rem] px-3 py-2.5 text-sm",onInput:e[146]||(e[146]=a=>fe("name",a.target.value))},null,40,Ln)]),r("label",$n,[r("span",Bn,u(v("Parent Node","Parent Node")),1),r("select",{class:"theme-input rounded-[1rem] px-3 py-2.5 text-sm",value:t.productForm.parent_id||"",onChange:e[147]||(e[147]=a=>fe("parent_id",a.target.value||null))},[r("option",Un,u(v("None","None")),1),(y(!0),D(re,null,pe(Wt.value,a=>(y(),D("option",{key:a.id,value:a.id},u(a.attribution||"L?")+" / "+u(a.name||a.id),9,Vn))),128))],40,Mn)]),r("label",Qn,[r("span",Gn,u(v("Mark as aggregate / root node","Mark as aggregate / root node")),1),r("input",{type:"checkbox",checked:!!t.productForm.is_parent,onChange:e[148]||(e[148]=a=>fe("is_parent",a.target.checked))},null,40,Wn)])]),r("div",Yn,[t.selectedProductId?(y(),F(i(I),{key:0,variant:"destructive",type:"button",onClick:e[149]||(e[149]=a=>ct(t.selectedProductId))},{default:_(()=>[r("span",Zn,[m(i(ge),{size:15,"stroke-width":2}),r("span",null,u(v("éç»æ«","Delete")),1)])]),_:1})):S("",!0),m(i(I),{type:"button",variant:"outline",class:"rounded-[1rem]",onClick:e[150]||(e[150]=a=>ie.value=!1)},{default:_(()=>[A(u(v("å
³é","Close")),1)]),_:1}),m(i(I),{type:"button",disabled:t.savingProduct,onClick:e[151]||(e[151]=a=>o("save-product"))},{default:_(()=>[A(u(t.savingProduct?v("ä¿åä¸..","Saving..."):v("ä¿åèç¹","Save Node")),1)]),_:1},8,["disabled"])])])])):S("",!0),se.value?(y(),D("div",Jn,[r("div",Xn,[r("div",Kn,[r("div",null,[r("p",er,u(v("åºç¨ç³»ç»ç¼è¾","Application
117Editor")),1),r("h3",tr,u(t.selectedAppSystemId!==null?v("ç¼è¾åºç¨ç³»ç»","Edit Application System"):v("æ°å¢åºç¨ç³»ç»","New Application System")),1)]),m(i(I),{type:"button",variant:"ghost",size:"icon",class:"rounded-full",onClick:e[152]||(e[152]=a=>se.value=!1)},{default:_(()=>[m(i(ye),{size:16,"stroke-width":2})]),_:1})]),r("div",sr,[r("label",ar,[r("span",or,u(v("System Name","System Name")),1),r("input",{value:t.appSystemForm.name||"",class:"theme-input rounded-[1rem] px-3 py-2.5 text-sm",onInput:e[153]||(e[153]=a=>$("name",a.target.value))},null,40,nr)]),r("label",rr,[r("span",pr,u(v("Product","Product")),1),r("select",{class:"theme-input rounded-[1rem] px-3 py-2.5 text-sm",value:t.appSystemForm.product_id||"",onChange:e[154]||(e[154]=a=>$("product_id",a.target.value||null))},[r("option",dr,u(v("ä¸æäº§å","No Product")),1),(y(!0),D(re,null,pe(t.productOptions,a=>(y(),D("option",{key:a.id,value:a.id},u(a.attribution||"L?")+" / "+u(a.name||a.id),9,ir))),128))],40,lr)]),r("label",ur,[r("span",cr,u(v("Chinese Name","Chinese Name")),1),r("input",{value:t.appSystemForm.chinese_name||"",class:"theme-input rounded-[1rem] px-3 py-2.5 text-sm",onInput:e[155]||(e[155]=a=>$("chinese_name",a.target.value))},null,40,vr)]),r("label",mr,[r("span",fr,u(v("è±æç¼©å","English Abbreviation")),1),r("input",{value:t.appSystemForm.english_abbreviation||"",class:"theme-input rounded-[1rem] px-3 py-2.5 text-sm",onInput:e[156]||(e[156]=a=>$("english_abbreviation",a.target.value))},null,40,yr)]),r("label",gr,[e[187]||(e[187]=r("span",{class:"theme-muted text-xs uppercase tracking-[0.18em]"},"Code",-1)),r("input",{value:t.appSystemForm.code||"",class:"theme-input rounded-[1rem] px-3 py-2.5 text-sm",onInput:e[157]||(e[157]=a=>$("code",a.target.value))},null,40,hr)]),r("label",_r,[r("span",br,u(v("Owner","Owner")),1),r("input",{value:t.appSystemForm.owner_id||"",class:"theme-input rounded-[1rem] px-3 py-2.5 text-sm",onInput:e[158]||(e[158]=a=>$("owner_id",a.target.value))},null,40,kr)]),r("label",xr,[r("span",Sr,u(v("é¢å","Field")),1),r("input",{value:t.appSystemForm.field||"",class:"theme-input rounded-[1rem] px-3 py-2.5 text-sm",onInput:e[159]||(e[159]=a=>$("field",a.target.value))},null,40,Dr)]),r("label",Fr,[e[188]||(e[188]=r("span",{class:"theme-muted text-xs uppercase tracking-[0.18em]"},"Status",-1)),r("input",{value:t.appSystemForm.status_id||"",class:"theme-input rounded-[1rem] px-3 py-2.5 text-sm",onInput:e[160]||(e[160]=a=>$("status_id",a.target.value))},null,40,Ar)]),r("label",Pr,[e[189]||(e[189]=r("span",{class:"theme-muted text-xs uppercase tracking-[0.18em]"},"Version",-1)),r("input",{value:t.appSystemForm.version||"",class:"theme-input rounded-[1rem] px-3 py-2.5 text-sm",onInput:e[161]||(e[161]=a=>$("version",a.target.value))},null,40,wr)]),r("label",Ir,[e[190]||(e[190]=r("span",{class:"theme-muted text-xs uppercase tracking-[0.18em]"},"Lifecycle",-1)),r("input",{value:t.appSystemForm.lifecycle_id||"",class:"theme-input rounded-[1rem] px-3 py-2.5 text-sm",onInput:e[162]||(e[162]=a=>$("lifecycle_id",a.target.value))},null,40,jr)]),r("label",Rr,[e[191]||(e[191]=r("span",{class:"theme-muted text-xs uppercase tracking-[0.18em]"},"Domain",-1)),r("input",{value:t.appSystemForm.domain||"",class:"theme-input rounded-[1rem] px-3 py-2.5 text-sm",onInput:e[163]||(e[163]=a=>$("domain",a.target.value))},null,40,Tr)]),r("label",Or,[r("span",Cr,u(v("说æ","Remark")),1),r("textarea",{value:t.appSystemForm.remark||"",class:"theme-input min-h-[120px] rounded-[1rem] px-3 py-2.5 text-sm",onInput:e[164]||(e[164]=a=>$("remark",a.target.value))},null,40,Er)])]),r("div",zr,[t.selectedAppSystemId!==null?(y(),F(i(I),{key:0,variant:"destructive",type:"button",onClick:e[165]||(e[165]=a=>Me(t.selectedAppSystemId))},{default:_(()=>[r("span",Nr,[m(i(ge),{size:15,"stroke-width":2}),r("span",null,u(v("éç»","Delete")),1)])]),_:1})):S("",!0),m(i(I),{type:"button",variant:"outline",class:"rounded-[1rem]",onClick:e[166]||(e[166]=a=>se.value=!1)},{default:_(()=>[A(u(v("å
³é","Close")),1)]),_:1}),m(i(I),{type:"button",disabled:t.savingAppSystem,onClick:e[167]||(e[167]=a=>o("save-appsystem"))},{default:_(()=>[A(u(t.savingAppSystem?v("ä¿åä¸..","Saving..."):v("ä¿ååºç¨ç³»ç»","Save Application")),1)]),_:1},8,["disabled"])])])])):S("",!0)])}}}),Xr=Object.freeze(Object.defineProperty({__proto__:null,default:Lr},Symbol.toStringTag,{value:"Module"}));
117export{ta as C,la as P,Xr as R,va as S,ge as T,Da as a,Gr as b,Wr as c,Zr as d,Yr as e,Jr as f,St as i,Tt as r,Qr as t};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.