import{_ as f}from"./HtmlContent-DrkJBX3e.js";import{_ as d}from"./BlockBalanceAgreement-396E9Da8.js";import{r as x,x as C,o as l,c as r,b as u,a as m,F as i,t as h,i as y,j as w}from"./index-Bb2UEb_P.js";import{u as v}from"./clauses-Bhz_DuFa.js";import"./index-Dax_IkAt.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";import"./ButtonDefault-CzWpVlv6.js";import"./common-U_VzDrmL.js";const B={class:"tw-px-4 md:tw-px-8 tw-mb-8"},g={class:"tw-text-xl tw-mt-4"},A={__name:"Clause",async setup(k){let t,n;const o=w(),_=v(),e=x(null);if(o.query.ClauseID){const c=([t,n]=C(()=>_.fetchClausesByPartition(o.query.ClauseID)),t=await t,n(),t),s=Object.values(c).find(a=>a.Partition===o.query.ClauseID);s&&(e.value={title:s.Title,html:s.Text})}return(c,s)=>{const a=d,p=f;return l(),r(i,null,[u(a),m("div",B,[e.value?(l(),r(i,{key:0},[m("h1",g,h(e.value.title),1),u(p,{content:e.value.html},null,8,["content"])],64)):y("",!0)])],64)}}};export{A as default};
