import{d as W,v as B,a as A,k as E,l as L,r as M,D as x,c as m,b as t,w as a,L as v,M as w,e as l,n as _,P as H,o as c,j as h,f as n,t as o,a0 as D,J as $,m as U,_ as F}from"./index-FX23dEwE.js";import{u as G}from"./index-iX3Oh1IS.js";import{e as J}from"./traffic-3Lpl9nRz.js";import{H as Y}from"./request-dCC5BMJA.js";const q={class:"__container_app_detail"},z=W({__name:"formView",setup(K){B(e=>({"5b433755":_(H)}));const k=A(),{appContext:{config:{globalProperties:S}}}=E(),O=G().toClipboard;function f(e){U.success(S.$t("messageDomain.success.copy")),O(e)}const b=L(()=>{const e=s.key.split(":");return e[0]?e[0]:""}),s=M({configVersion:"v3.0",scope:"application",key:"shop-user",enabled:!0,runtime:!0,tags:[{name:"gray",match:[{key:"version",value:{exact:"v1"}}]}]}),R=async()=>{var r;const e=await J((r=k.params)==null?void 0:r.ruleName);e.code===Y.SUCCESS&&Object.assign(s,e.data||{})};return x(()=>{R()}),(e,r)=>{const i=l("a-descriptions-item"),u=l("a-typography-paragraph"),T=l("a-descriptions"),g=l("a-card"),N=l("a-flex"),V=l("a-typography-text"),y=l("a-typography-title"),C=l("a-space"),j=l("a-tag");return c(),m("div",q,[t(N,null,{default:a(()=>[t(g,{class:"_detail"},{default:a(()=>[t(T,{column:2,layout:"vertical",title:""},{default:a(()=>[t(i,{label:e.$t("flowControlDomain.ruleName"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[h("p",{onClick:r[0]||(r[0]=p=>f(s.key)),class:"description-item-content with-card"},[n(o(s.key)+" ",1),t(_(D))])]),_:1},8,["label"]),t(i,{label:e.$t("flowControlDomain.ruleGranularity"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[t(u,null,{default:a(()=>[n(o(s.scope),1)]),_:1})]),_:1},8,["label"]),t(i,{label:e.$t("flowControlDomain.actionObject"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[h("p",{onClick:r[1]||(r[1]=p=>f(b.value)),class:"description-item-content with-card"},[n(o(b.value)+" ",1),t(_(D))])]),_:1},8,["label"]),t(i,{label:e.$t("flowControlDomain.enabledState"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[t(u,null,{default:a(()=>[n(o(s.enabled?e.$t("flowControlDomain.enabled"):e.$t("flowControlDomain.disabled")),1)]),_:1})]),_:1},8,["label"]),t(i,{label:e.$t("flowControlDomain.runTimeEffective"),labelStyle:{fontWeight:"bold"}},{default:a(()=>[t(u,null,{default:a(()=>[n(o(s.runtime?e.$t("flowControlDomain.opened"):e.$t("flowControlDomain.closed")),1)]),_:1})]),_:1},8,["label"])]),_:1})]),_:1})]),_:1}),(c(!0),m(v,null,w(s.tags,(p,I)=>(c(),$(g,{title:`标签【${I+1}】`,style:{"margin-top":"10px"},class:"_detail"},{default:a(()=>[t(C,{align:"center"},{default:a(()=>[t(y,{level:5},{default:a(()=>[n(o(e.$t("flowControlDomain.labelName"))+": ",1),t(V,{class:"labelName"},{default:a(()=>[n(o(p.name),1)]),_:2},1024)]),_:2},1024)]),_:2},1024),t(C,{align:"start",style:{width:"100%"}},{default:a(()=>[t(y,{level:5},{default:a(()=>[n(o(e.$t("flowControlDomain.actuatingRange"))+": ",1)]),_:1}),(c(!0),m(v,null,w(p.match,(d,P)=>(c(),$(j,{key:P,color:"#2db7f5"},{default:a(()=>[n(o(d.key)+": "+o(Object.keys(d.value)[0])+"="+o(Object.values(d.value)[0]),1)]),_:2},1024))),128))]),_:2},1024)]),_:2},1032,["title"]))),256))])}}}),te=F(z,[["__scopeId","data-v-4613afa3"]]);export{te as default};
