1import{_ as p}from"./AppHead-CtSB0Yeg.js";import{P as g}from"./PagesLeftSidebar-BeyufIxg.js";import{S as v}from"./StreamSidebar-DRE4KOAr.js";import{_ as m,m as u,c as o,d as n,f as h,e as a,n as c,t as i,j as f,g as b,h as k,u as y,F as w}from"./app-Ctvx_saG.js";import"./floatingChatHelper-btbz5wWc.js";import"./ChatPicker-CRVak1Zr.js";const P={class:"private-access-wrapper"},S={class:"private-access-container"},_={class:"page-header"},x=["src","alt"],B={class:"page-name"},$={class:"page-slug"},C={key:0,class:"page-description"},j={class:"page-stats"},A={class:"stat"},M={__name:"PrivateAccess",props:{page:{type:Object,required:!0},user:{type:Object,default:null}},setup(e){const s=e,l=u(()=>s.page.avatar?s.page.avatar.includes("://")?s.page.avatar:s.page.avatar.match(/^cdn\d+\.imaglr\.com/)?`https://${s.page.avatar}`:`${window.location.origin}${s.page.avatar}`:`https://ui-avatars.com/api/?name=${encodeURIComponent(s.page.name)}&background=random&bold=true`),d=t=>t>=1e6?(t/1e6).toFixed(1)+"M":t>=1e3?(t/1e3).toFixed(1)+"K":t.toString();return(t,r)=>(o(),n(w,null,[h(p,{title:`${e.page.name} - Private Page`},null,8,["title"]),a("div",{class:y(t.$page.props.layoutStyle==="stream"?"stream-page-shell":"main__inner relative")},[t.$page.props.layoutStyle==="stream"?(o(),c(v,{key:0,"logged-in-user":e.user,active:"pages"},null,8,["logged-in-user"])):(o(),c(g,{key:1,user:e.user},null,8,["user"])),a("div",P,[a("div",S,[a("div",_,[a("img",{src:l.value,alt:e.page.name,class:"page-avatar"},null,8,x),a("h1",B,i(e.page.name),1),a("div",$,"/p/"+i(e.page.slug),1)]),r[1]||(r[1]=f('<div class="private-badge-large" data-v-9b655c43><svg class="lock-icon" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" data-v-9b655c43><path stroke-linecap="round" stroke-linejoin="round" d="M16.5 10.5V6.75a4.5 4.5 0 1 0-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 0 0 2.25-2.25v-6.75a2.25 2.25 0 0 0-2.25-2.25H6.75a2.25 2.25 0 0 0-2.25 2.25v6.75a2.25 2.25 0 0 0 2.25 2.25Z" data-v-9b655c43></path></svg><span data-v-9b655c43>Private Page</span></div><div class="access-message" data-v-9b655c43><h2 class="message-title" data-v-9b655c43>This is a private page</h2><p class="message-text" data-v-9b655c43> This page is invitation-only. Only members invited by the page moderators can view its content. </p></div>',2)),e.page.description?(o(),n("div",C,i(e.page.description),1)):b("",!0),a("div",j,[a("div",A,[r[0]||(r[0]=a("svg",{class:"stat-icon",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M18 18.72a9.094 9.094 0 0 0 3.741-.479 3 3 0 0 0-4.682-2.72m.94 3.198.001.031c0 .225-.012.447-.037.666A11.944 11.944 0 0 1 12 21c-2.17 0-4.207-.576-5.963-1.584A6.062 6.062 0 0 1 6 18.719m12 0a5.971 5.971 0 0 0-.941-3.197m0 0A5.995 5.995 0 0 0 12 12.75a5.995 5.995 0 0 0-5.058 2.772m0 0a3 3 0 0 0-4.681 2.72 8.986 8.986 0 0 0 3.74.477m.94-3.197a5.971 5.971 0 0 0-.94 3.197M15 6.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm6 3a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Zm-13.5 0a2.25 2.25 0 1 1-4.5 0 2.25 2.25 0 0 1 4.5 0Z"})],-1)),a("span",null,i(d(e.page.follower_count))+" members",1)])]),r[2]||(r[2]=a("div",{class:"actions"},[a("a",{href:"/pages",class:"btn btn-primary"},[a("svg",{class:"btn-icon",fill:"none",viewBox:"0 0 24 24","stroke-width":"2",stroke:"currentColor"},[a("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 15 3 9m0 0 6-6M3 9h12a6 6 0 0 1 0 12h-3"})]),k(" Back to Pages ")])],-1))])])],2)],64))}},I=m(M,[["__scopeId","data-v-9b655c43"]]);export{I 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.