1import {c}from'./chunk-DYpAzzyH.js';import {m,aF as le,ak as Me,C,v as v3,B as Bi,cR as Kp,bm as Te$1,X as Xn,aD as Lp,am as y$1,an as x,eb as t$1,j as jl,M as M9,c as jo,e as jR,h as as,k as Q0,G as G0,U as Ul,S as Sy,Q as Qy,i as Pw,p as mm,t as vp,s as Xy,u as jw,y as Gy,z as I9,cb as ON,b0 as xN,ca as CN,R as lN,eh as P9,dj as FN,ek as _R,a1 as N9,a4 as tp,a5 as ny,a6 as ry,a7 as Xw,Y as Yl,o as Hw,$ as $w,Z as Z0,ad as ap,aa as Wy,q as qw,r as U0,ab as wp,ag as _d,ah as Id,aC as bh}from'./main-RKLJTICL.js';var ue=["aaPreviewInner"],pe=["aaPreviewBox"],fe=t=>["/wiki",t],xe=t=>["/mlts",t],y=(t,o)=>o.id;function _e(t,o){t&1&&(as(0,"div",8)(1,"div",11),G0(2,"div",12)(3,"div",13),Ul()());}function he(t,o){t&1&&(as(0,"div",9)(1,"div",14),G0(2,"ng-icon",15),Ul(),as(3,"p",16),Sy(4),Qy(5,"translate"),Ul()()),t&2&&(mm(4),vp(Xy(5,1,"profile.not_found","\u30D7\u30ED\u30D5\u30A3\u30FC\u30EB\u304C\u898B\u3064\u304B\u308A\u307E\u305B\u3093")));}function be(t,o){if(t&1&&(as(0,"div",19,0)(2,"div",27,1),Sy(4),Ul()()),t&2){let e=Xw(2);mm(4),vp(e.profile.profileAa);}}function ge(t,o){t&1&&(as(0,"div",20),G0(1,"ng-icon",28),Ul());}function ve(t,o){if(t&1&&(as(0,"p",22),Sy(1),Ul()),t&2){let e=Xw(2);mm(),Yl("@",e.profile.profileId);}}function Ce(t,o){if(t&1&&(as(0,"p",23),Sy(1),Ul()),t&2){let e=Xw(2);mm(),vp(e.profile.bio);}}function Te(t,o){if(t&1&&(as(0,"a",29)(1,"span"),Sy(2),Ul(),G0(3,"ng-icon",31),Ul()),t&2){let e=Xw(3);Z0("href","https://x.com/"+e.profile.linkTwitter,bh),mm(2),Yl("@",e.profile.linkTwitter);}}function Pe(t,o){if(t&1&&(as(0,"a",30),G0(1,"ng-icon",32),as(2,"span",33),Sy(3),Ul(),G0(4,"ng-icon",34),Ul()),t&2){let e=Xw(3);Z0("href",e.profile.linkWebsite,bh),mm(3),vp(e.profile.linkWebsite);}}function we(t,o){if(t&1&&(as(0,"div",24),Pw(1,Te,4,2,"a",29),Pw(2,Pe,5,2,"a",30),Ul()),t&2){let e=Xw(2);mm(),jw(e.profile.linkTwitter?1:-1),mm(),jw(e.profile.linkWebsite?2:-1);}}function Ee(t,o){if(t&1&&(as(0,"a",38),Sy(1),Ul()),t&2){let e=o.$implicit;ap("text-blue-700",e.classification===1)("text-green-700",e.classification===2)("text-purple-700",e.classification===3),Z0("routerLink",Wy(8,fe,e.id)),mm(),vp(e.name);}}function ye(t,o){if(t&1&&(as(0,"div",25)(1,"p",35),Sy(2,"\u63A8\u3057\u30AD\u30E3\u30E9\u30FB\u597D\u304D\u306A\u30BF\u30B0"),Ul(),as(3,"div",36),Hw(4,Ee,2,10,"a",37,y),Ul()()),t&2){let e=Xw(2);mm(4),$w(e.profile.favoriteTags);}}function ke(t,o){if(t&1){let e=qw();G0(0,"ng-icon",45),as(1,"button",46),Q0("click",function(){let d=_d(e).$implicit,f=Xw(4);return Id(f.navigateTreeFolder(d.id))}),Sy(2),Ul();}if(t&2){let e=o.$implicit;mm(2),vp(e.name);}}function Fe(t,o){if(t&1){let e=qw();as(0,"nav",42),Qy(1,"translate"),as(2,"button",44),Q0("click",function(){_d(e);let d=Xw(3);return Id(d.navigateTreeFolder(null))}),Sy(3),Qy(4,"translate"),Ul(),Hw(5,ke,3,1,null,null,y),Ul();}if(t&2){let e=Xw(3);U0("aria-label",Xy(1,2,"my-mlt.folder.breadcrumb","\u30D5\u30A9\u30EB\u30C0\u968E\u5C64")),mm(3),vp(e.publicTree()?.displayName||Xy(4,5,"my-mlt.folder.root","\u30DE\u30A4MLT")),mm(2),$w(e.treeBreadcrumbs());}}function Ae(t,o){if(t&1){let e=qw();as(0,"button",48),Q0("click",function(){let d=_d(e).$implicit,f=Xw(4);return Id(f.navigateTreeFolder(d.id))}),G0(1,"ng-icon",49),as(2,"span",50),Sy(3),Ul(),G0(4,"ng-icon",51),Ul();}if(t&2){let e=o.$implicit;mm(3),vp(e.name);}}function Se(t,o){if(t&1&&Hw(0,Ae,5,1,"button",47,y),t&2){let e=Xw(3);$w(e.currentTreeFolders());}}function Ie(t,o){if(t&1&&(as(0,"a",43),G0(1,"ng-icon",52),as(2,"span",50),Sy(3),Ul(),as(4,"span",53),Sy(5),Qy(6,"translate"),G0(7,"ng-icon",54),Sy(8),Ul()()),t&2){let e=o.$implicit;Z0("routerLink",Wy(8,xe,e.id)),mm(3),vp(e.name),mm(2),wp("",e.aaCount,"",Xy(6,5,"mlts.common.aa-count"," AA")," \xB7 "),mm(3),vp(e.viewCount);}}function Be(t,o){if(t&1&&(as(0,"section",26)(1,"header",39)(2,"h2",40),G0(3,"ng-icon",41),Sy(4),Qy(5,"translate"),Ul(),Pw(6,Fe,7,8,"nav",42),Ul(),as(7,"div"),Pw(8,Se,2,0),Hw(9,Ie,9,10,"a",43,y),Ul()()),t&2){let e=Xw(2);mm(4),vp(Xy(5,3,"profile.public-mlts","\u516C\u958BMLT")),mm(2),jw(e.foldersEnabled?6:-1),mm(2),jw(e.foldersEnabled?8:-1),mm(),$w(e.currentTreeMlts());}}
1function De(t,o){if(t&1&&(as(0,"div",10)(1,"div",17)(2,"div",18),Pw(3,be,5,1,"div",19)(4,ge,2,0,"div",20),as(5,"h2",21),Sy(6),Ul(),Pw(7,ve,2,1,"p",22),Ul(),Pw(8,Ce,2,1,"p",23),Pw(9,we,3,2,"div",24),Pw(10,ye,6,0,"div",25),Ul(),Pw(11,Be,11,6,"section",26),Ul()),t&2){let e=Xw();mm(3),jw(e.profile.profileAa?3:4),mm(3),vp(e.profile.displayName||e.profile.profileId||"User"),mm(),jw(e.profile.profileId?7:-1),mm(),jw(e.profile.bio?8:-1),mm(),jw(e.profile.linkTwitter||e.profile.linkWebsite?9:-1),mm(),jw(e.profile.favoriteTags&&e.profile.favoriteTags.length>0?10:-1),mm(),jw(e.hasPublicTree()?11:-1);}}var Ye=(()=>{class t{constructor(){this.foldersEnabled=false,this.profile=null,this.loading=true,this.notFound=false,this.needsAaRefit=false,this.route=m(le),this.router=m(Me),this.userApiService=m(C),this.cdr=m(v3),this.title=m(Bi),this.location=m(Kp),this.userMltService=m(Te$1),this.publicTree=Xn(null),this.currentTreeFolderId=Xn(null),this.publicTreeFolders=Lp(()=>(this.publicTree()?.folders||[]).map(e=>y$1(x({},e),{visibility:"public",treePublic:1,updatedAt:""}))),this.treeBreadcrumbs=Lp(()=>c(this.publicTreeFolders(),this.currentTreeFolderId())),this.currentTreeFolders=Lp(()=>this.foldersEnabled?this.publicTreeFolders().filter(e=>e.parentId===this.currentTreeFolderId()).sort((e,l)=>e.name.localeCompare(l.name,"ja")):[]),this.currentTreeMlts=Lp(()=>(this.publicTree()?.mlts||[]).filter(e=>!this.foldersEnabled||e.folderId===this.currentTreeFolderId()).sort((e,l)=>e.name.localeCompare(l.name,"ja"))),this.hasPublicTree=Lp(()=>!!this.publicTree()&&((this.publicTree()?.mlts.length||0)>0||this.foldersEnabled&&(this.publicTree()?.folders.length||0)>0));}ngOnInit(){let e=this.route.snapshot.paramMap.get("uid");if(!e){this.notFound=true,this.loading=false;return}this.userApiService.getPublicProfile(e).subscribe({next:l=>{this.profile=l.profile,this.loading=false,this.needsAaRefit=true,this.profile?.displayName&&this.title.setTitle(`${this.profile.displayName} | ${t$1}`),this.cdr.markForCheck();},error:()=>{this.notFound=true,this.loading=false,this.cdr.markForCheck();}}),this.userMltService.getPublicTree(e).subscribe({next:l=>this.publicTree.set(l),error:()=>this.publicTree.set(null)});}ngAfterViewChecked(){this.needsAaRefit&&(this.needsAaRefit=false,requestAnimationFrame(()=>requestAnimationFrame(()=>this.fitAaPreview())));}fitAaPreview(){let e=this.aaPreviewInner?.nativeElement,l=this.aaPreviewBox?.nativeElement;!e||!l||(e.style.transform="scale(1)",requestAnimationFrame(()=>{let d=l.clientWidth-16,f=l.clientHeight-16,D=e.scrollWidth,M=e.scrollHeight;if(D===0||M===0)return;let se=Math.min(d/D,f/M,1);e.style.transform=`scale(${se})`;}));}navigateBack(){this.location.back();}navigateTreeFolder(e){this.foldersEnabled&&this.currentTreeFolderId.set(e);}static{this.\u0275fac=function(l){return new(l||t)};}static{this.\u0275cmp=jl({type:t,selectors:[["app-profile"]],viewQuery:function(l,d){if(l&1&&tp(ue,5)(pe,5),l&2){let f;ny(f=ry())&&(d.aaPreviewInner=f.first),ny(f=ry())&&(d.aaPreviewBox=f.first);}},hostAttrs:[2,"display","flex","flex-direction","column","flex","1","min-height","0","overflow","hidden"],features:[Gy([],[I9({heroArrowLeft:N9,heroUserCircle:_R,heroGlobeAlt:FN,heroArrowTopRightOnSquare:P9,heroChevronRight:lN,heroDocumentText:CN,heroEye:xN,heroFolder:ON})])],decls:11,vars:5,consts:[["aaPreviewBox",""],["aaPreviewInner",""],[1,"shrink-0","z-30","border-b","border-border","bg-surface"],[1,"flex","items-center","h-10","px-2","gap-2"],[1,"btn-icon","text-surface-foreground","shrink-0",3,"click"],["name","heroArrowLeft","size","18"],[1,"text-sm","font-semibold"],[1,"flex-1","overflow-y-auto","pb-16","bg-muted/30"],[1,"max-w-md","mx-auto","p-6"],[1,"max-w-md","mx-auto","p-6","text-center"],[1,"max-w-md","mx-auto","p-4","md:p-6"],[1,"flex","flex-col","items-center","gap-3","mb-6"],[1,"w-20","h-20","rounded-full","bg-muted","animate-pulse"],[1,"h-5","w-32","bg-muted","animate-pulse","rounded"],[1,"rounded-full","bg-muted","p-4","w-16","h-16","mx-auto","mb-3","flex","items-center","justify-center"],["name","heroUserCircle","size","32",1,"text-muted-foreground"],[1,"text-sm","text-muted-foreground"],[1,"rounded-xl","bg-surface","border","border-border","p-6","shadow-sm"],[1,"flex","flex-col","items-center","text-center"],[1,"rounded-xl","border","border-border","p-2","overflow-hidden","w-44","h-44","bg-white","mb-3"],[1,"rounded-full","bg-primary/15","p-3","mb-3"],[1,"text-lg","font-semibold"],[1,"text-xs","text-muted-foreground"],[1,"mt-4","text-sm","text-surface-foreground","whitespace-pre-wrap","text-center"],[1,"mt-4","pt-4","border-t","border-border","flex","flex-col","items-center","gap-2"],[1,"mt-4","pt-4","border-t","border-border"],[1,"mt-4","overflow-hidden","rounded-xl","border","border-border","bg-surface","shadow-sm"],[1,"u-aa",2,"font-size","16px","line-height","18px","transform-origin","top left"],["name","heroUserCircle","size","40",1,"text-primary"],["target","_blank",1,"flex","items-center","gap-1.5","text-sm","text-primary","hover:underline",3,"href"],["target","_blank","rel","noreferrer",1,"flex","items-center","gap-1.5","text-sm","text-primary","hover:underline",3,"href"],["name","heroArrowTopRightOnSquare","size","12"],["name","heroGlobeAlt","size","16",1,"shrink-0"],[1,"truncate"],["name","heroArrowTopRightOnSquare","size","12",1,"shrink-0"],[1,"text-xs","text-muted-foreground","text-center","mb-2"],[1,"flex","flex-wrap","justify-center","gap-1.5"],[1,"inline-flex","items-center","gap-1","rounded-md","px-2","py-0.5","text-xs","border","border-border","bg-muted/50","hover:bg-muted","transition-colors",3,"text-blue-700","text-green-700","text-purple-700","routerLink"],[1,"inline-flex","items-center","gap-1","rounded-md","px-2","py-0.5","text-xs","border","border-border","bg-muted/50","hover:bg-muted","transition-colors",3,"routerLink"],[1,"border-b","border-border","px-4","py-3"],[1,"flex","items-center","gap-2","font-semibold"],["name","heroDocumentText","size","19"],[1,"mt-2","flex","flex-wrap","items-center","gap-1","text-sm"],[1,"flex","items-center","gap-3","border-b","border-border","px-4","py-3","last:border-b-0","hover:bg-muted",3,"routerLink"],["type","button",1,"rounded","px-1","py-0.5","text-primary","hover:bg-muted",3,"click"],["name","heroChevronRight","size","13",1,"text-muted-foreground"],["type","button",1,"max-w-36","truncate","rounded","px-1","py-0.5","text-primary","hover:bg-muted",3,"click"],["type","button",1,"flex","w-full","items-center","gap-3","border-b","border-border","px-4","py-3","text-left","hover:bg-muted"],["type","button",1,"flex","w-full","items-center","gap-3","border-b","border-border","px-4","py-3","text-left","hover:bg-muted",3,"click"],["name","heroFolder","size","20",1,"shrink-0","text-primary"],[1,"min-w-0","flex-1","truncate","font-medium"],["name","heroChevronRight","size","15",1,"text-muted-foreground"],["name","heroDocumentText","size","20",1,"shrink-0","text-muted-foreground"],[1,"shrink-0","text-xs","text-muted-foreground"],["name","heroEye","size","12"]],template:function(l,d){l&1&&(as(0,"header",2)(1,"div",3)(2,"button",4),Q0("click",function(){return d.navigateBack()}),G0(3,"ng-icon",5),Ul(),as(4,"h1",6),Sy(5),Qy(6,"translate"),Ul()()(),as(7,"main",7),Pw(8,_e,4,0,"div",8)(9,he,6,4,"div",9)(10,De,12,7,"div",10),Ul()),l&2&&(mm(5),vp(Xy(6,2,"profile.title","\u30D7\u30ED\u30D5\u30A3\u30FC\u30EB")),mm(3),jw(d.loading?8:d.notFound?9:d.profile?10:-1));},dependencies:[M9,jo,jR],encapsulation:2});}}return t})(); 2export{Ye as ProfilePage};
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.