import{_ as a,f as s,w as t,ag as e,V as i}from"./index-4c745ab9.js";import{C as l,P as n}from"./ProductInfo-18a06758.js";import{o,a as u,g as r,t as d,u as c,m,L as p,$ as f,l as v,q as _,f as b,e as I}from"./vendor-edc0678f.js";import{a as h}from"./index-22f349d5.js";const L={class:"title fw-bold"},j={class:"info"},y=a({__name:"RuleInfo",props:{purchaseLimit:{type:Number}},setup:a=>(t,e)=>(o(),u("div",null,[r("p",L,d(c(s)("product_rules")),1),r("div",j,[r("span",null,d(c(s)("Reservation_limit")),1),m(d(a.purchaseLimit||0),1)])]))},[["__scopeId","data-v-a94386a7"]]),x={key:0,class:"infoItem"},g={class:"infoItem"},w=a({__name:"info",setup(a){const d=p(),m=f({}),L=v("");return _(()=>{L.value=d.query.id,(async()=>{if(L.value){const a=await h(L.value);200==a.code&&Object.assign(m,a.data)}})()}),(a,d)=>{var p;return o(),u("div",null,[b(t,{currentName:c(s)("host.detail")},null,8,["currentName"]),b(l,{data:c(m)},null,8,["data"]),(null==(p=c(m))?void 0:p.id)?(o(),u("div",x,[b(n,{data:c(m)},null,8,["data"])])):I("",!0),r("div",g,[b(y,{purchaseLimit:c(m).purchaseLimit},null,8,["purchaseLimit"])]),r("div",{class:"infoItem btnBox",onClick:d[0]||(d[0]=a=>{i("/subscription/apply?id=".concat(m.id))})},[b(e,{btnValue:c(s)("to_subscribe")},null,8,["btnValue"])])])}}},[["__scopeId","data-v-50a6d120"]]);export{w as default};
