1import{_ as V}from"./Dm3rK6sk.js";import{_ as q}from"./CZHwGlxd.js";import{_ as F}from"./DZOvY9Af.js";import{_ as L}from"./zZ2H8Hr2.js";import{_ as M}from"./BueOHTVc.js";import{_ as P,o as s,c as a,F as j,r as O,a as c,f as R,b as i,t as v,e as T,g as D,h as G,p as E,q as H,u as z,i as I,j as J,k as K,l as g,n as Q,s as r,x as U}from"./dFExz5_U.js";import{u as W}from"./DMnyodik.js";import"./DjkEGmGQ.js";const X={props:{collections:{type:[Object,Boolean,Array]}},data(){return{}},mounted(){},methods:{}},Y={key:0,class:"collectionslist"},Z={key:0,class:"fas fa-lock"},ee={key:1,class:"fas fa-globe"},te={key:0},se={key:1,class:"noree"};function ae(y,l,u,n,h,f){const p=G("router-link");return s(),a("div",null,[u.collections?(s(),a("ul",Y,[(s(!0),a(j,null,O(u.collections,e=>(s(),a("li",{key:e.id},[c(p,{to:`/user/collections/${e.id}/`},{default:R(()=>[i("h3",null,v(e.name),1),i("span",null,[e.visibility=="private"||e.visibility=="Private"?(s(),a("i",Z)):(s(),a("i",ee)),T(" "+v(e.visibility),1)]),e.description?(s(),a("p",te,v(e.description),1)):D("",!0)]),_:2},1032,["to"])]))),128))])):(s(),a("div",se," No results "))])}const oe=Object.assign(P(X,[["render",ae]]),{__name:"CollectionList"}),ne={class:"makewhite",style:{position:"relative"}},re={class:"makewhite auttoolbar"},ce={class:"container"},ie={class:"container"},be={__name:"index",async setup(y){let l,u;const n=E(),h=H(),{$api:f}=z(),p=I(),e=r(()=>n.params.slug),x=r(()=>n.query.page!==void 0?Number(n.query.page):1),{data:_,refresh:$}=([l,u]=J(async()=>Q(()=>`user-collections-${e.value}-${x.value}`,async()=>{const d=n.params.slug;let o=null;try{o=(await f.user.public(d)).data}catch(m){return m.response?.status===404&&(p.setSessionMessage("The user does not exist!"),await h.push("/")),{user:null,collections:[],pagination:{},breadcrumbs:[]}}if(!o)return{user:null,collections:[],pagination:{},breadcrumbs:[]};const t=await f.collections.userCollections(d);return{user:o,username:o.name,collections:t.data.data,pagination:{current_page:t.data.current_page,from:t.data.from,last_page:t.data.last_page,per_page:t.data.per_page,prev_page_url:t.data.prev_page_url,to:t.data.to,total:t.data.total},breadcrumbs:[{position:2,name:"Collections by "+o.name,path:"/user/"+d+"/collections/"}]}},{watch:[()=>n.params.slug,()=>n.query.page]})),l=await l,u(),l),k=r(()=>_.value?.user??!1),b=r(()=>_.value?.username??!1),w=r(()=>_.value?.collections??[]),C=r(()=>_.value?.pagination??{}),N=r(()=>_.value?.breadcrumbs??[]);return U("fontgetPageRefresh",$),W(()=>({title:`${b.value} Collections - FontGet`,meta:[{name:"description",content:`View all the collections created by ${b.value}. ${b.value} Fonts can be used on any device such as PC, Mac, Linux, iOS and Android.`}],link:[{rel:"canonical",href:`https://www.fontget.com/user/${e.value}/collections/`}]})),K(()=>{p.hideMenus()}),(d,o)=>{const t=V,m=q,A=F,B=L,S=M;return s(),a("div",null,[i("div",ne,[c(t,{breadcrumbs:g(N)},null,8,["breadcrumbs"]),c(m,{user:g(k),active:"collections"},null,8,["user"])]),i("div",re,[i("div",ce,[o[0]||(o[0]=i("div",{class:"toolbarfix"},null,-1)),c(A)])]),i("div",ie,[c(oe,{collections:g(w)},null,8,["collections"]),c(B,{pagination:g(C)},null,8,["pagination"]),c(S)])])}}};export{be 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.