import{aE as j,aF as B,aG as h,aB as F}from"./index.17037962789732.js";import"./index.1703796278973308.js";import"./index.170379627897334.js";import"./index.170379627897319.js";import"./index.170379627897327.js";import{_ as P}from"./index.vue_vue_type_script_setup_true_name_PermissionButton_lang.1703796278973.js";import"./index.170379627897314.js";import"./index.170379627897315.js";import"./index.1703796278973310.js";import{_ as w}from"./index.17037962789739.js";import{d as L,k as N,m as S,r as V,o as i,c as E,a as t,b as e,z as u,t as s,A as p,x as d,h as I,F as f,j as M,u as T,M as z}from"./vue.1703796278973.js";const A={style:{display:"flex","margin-top":"10px","align-items":"center"}},X=L({__name:"Card",props:{infoData:{type:Object,default:{}},licenseData:{type:String,default:""}},emits:["saveData"],setup(l,{emit:v}){const c=l;let a=N();S(()=>c.licenseData,()=>{a.value=c.licenseData});const D=()=>{v("saveData",a.value)};return(g,m)=>{const _=w,r=j,y=B,x=h,k=P,C=F,b=V("FullPage");return i(),E(b,null,{default:t(()=>[e(C,null,{default:t(()=>[e(_,{data:"基础信息"}),u("div",null,[e(y,{bordered:"",column:4},{default:t(()=>{var n;return[e(r,{label:"Host",span:4},{default:t(()=>{var o;return[s(p((o=l.infoData)==null?void 0:o.host),1)]}),_:1}),(i(!0),d(f,null,I((n=l.infoData)==null?void 0:n.modules,o=>(i(),d(f,{key:o},[e(r,{label:"IP",span:2},{default:t(()=>[s(p(o.ip),1)]),_:2},1024),e(r,{label:"Mac",span:2},{default:t(()=>[s(p(o.mac),1)]),_:2},1024)],64))),128))]}),_:1})]),u("div",A,[e(_,{data:"License",style:{"margin-top":"20px"}}),M(g.$slots,"default")]),e(x,{placeholder:"请输入License",rows:10,value:T(a),"onUpdate:value":m[0]||(m[0]=n=>z(a)?a.value=n:a=n)},null,8,["value"]),e(k,{type:"primary",key:"save",style:{"margin-top":"20px"},onClick:D},{default:t(()=>[s("保存")]),_:1})]),_:3})]),_:3})}}});export{X as _};
