1import{_ as q}from"./Paginator.vue.bb747ff3.js";import{_ as P}from"./List.e80c45a0.js";import{f as S,M as k,s as o,J as E,K as B,u as j,r as a,h as C,j as F,o as l,c as _,a as s,b as d,G,w as L,y as N}from"./entry.63467e02.js";import"./index.8729ad03.js";import"./index.dd28ee9b.js";const T={class:"flex justify-center flex-wrap mx-auto pb-32"},V={class:"mt-8 px-4 md:px-8 grid grid-cols-12 gap-4 auto-rows-auto justify-start items-start w-full relative"},$={class:"h-full col-span-full 2xl:col-span-10"},A={class:"text-pn-black text-xl font-semibold"},I=s("span",{class:"ml-2"},"Enquiries",-1),M=s("p",{class:"text-base font-normal text-pn-grey-700 mt-4"}," For full enquiry details, including any comments submitted by enquirers please see your email notifications. ",-1),R={class:"flex w-full justify-between items-center"},H={key:1,class:"bg-pn-grey-100 border text-center text-2xl py-16 font-semibold mt-8"},J={name:"PropertyEnquiryHistory"},W=S({...J,setup(K){const f=k(),{focusedProperty:n}=o(f),v=E();o(v);const g=B();o(g);const x=j(),{navigationBackContext:y}=o(x),h=N(),r=a([]),c=a(0),u=a(5),p=a(void 0);C(async()=>{if(!n.value)return;const t=new URLSearchParams;n.value.listings.forEach(i=>{t.append("listing.id[]",i.id)}),t.append("itemsPerPage",u.value.toString());const e=`/api/enquiries?${t}`;await m(e),y.value=`/properties/${n.value.id}`});const m=async t=>{try{const e=await h(t);console.log(e),r.value=e.member,c.value=e.totalItems,p.value=e.view,window.scrollTo(0,0)}catch(e){console.error(e)}};return(t,e)=>{const i=F("fa"),w=q,b=P;return l(),_("div",T,[s("div",V,[s("div",$,[s("h1",A,[d(i,{icon:["far","envelope-open-text"],class:"text-pn-blue-500"}),I]),M,r.value.length>0?(l(),G(b,{key:0,enquiries:r.value},{pagination:L(()=>[s("div",R,[d(w,{class:"px-4 sm:px-4 w-full","total-items":c.value,view:p.value,"per-page":u.value,onGoToPage:m},null,8,["total-items","view","per-page"])])]),_:1},8,["enquiries"])):(l(),_("div",H," No enquiries found "))])])])}}});export{W as default};
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.