1import{a as Xn}from"./chunk-O7LSVDKF.js";import{a as zn}from"./chunk-JL7MA3XY.js";import{a as Hn,b as Wn}from"./chunk-DIDW643R.js";import{a as kn,b as Ue}from"./chunk-57ZQF3JX.js";import"./chunk-CU7HEK6E.js";import"./chunk-H7G65APG.js";import"./chunk-2TVPRP2I.js";import{a as Be}from"./chunk-CWGMRZA3.js";import"./chunk-RTVAQYFM.js";import"./chunk-B552OFX3.js";import"./chunk-ZYHD7LX6.js";import"./chunk-J2HUBYRQ.js";import"./chunk-ZG7UHJFR.js";import{a as Dn}from"./chunk-NDTSNXFM.js";import"./chunk-MHTBINEU.js";import"./chunk-7S7KOESJ.js";import"./chunk-62P3SL5I.js";import{a as Gn}from"./chunk-LQVRZI54.js";import"./chunk-4RL73QWY.js";import"./chunk-PRKPL7HP.js";import"./chunk-S7SHVGI3.js";import{a as ye}from"./chunk-Z6Y6IXOX.js";import{a as Re}from"./chunk-ZVDV25FL.js";import{a as j}from"./chunk-3JGW6R2F.js";import"./chunk-OIVB2ENW.js";import"./chunk-5X6EADLK.js";import"./chunk-544UF2RB.js";import{a as wn}from"./chunk-EVLZSIGQ.js";import"./chunk-HRAHEVOC.js";import{b as Rn}from"./chunk-QEOBY75X.js";import"./chunk-MWKYGQWX.js";import"./chunk-N3CXX37I.js";import{a as xn}from"./chunk-WC47P3UL.js";import"./chunk-V4A5UYOO.js";import{c as Ie}from"./chunk-JZTQYM3T.js";import"./chunk-G35BRZUO.js";import"./chunk-YSBY2QLR.js";import"./chunk-XEAP56M7.js";import{E as Ln,F as hn,c as On,d as x,g as Nn,h as Mn,p as bn,w as Pn,x as vn}from"./chunk-44NTOS6Z.js";import{a as Un}from"./chunk-7CN5DTKU.js";import{a as oe}from"./chunk-XWNLIY63.js";import{Ab as W,Bb as V,Ca as r,Cb as l,Db as L,Dc as Pe,Eb as h,Ec as ne,Ee as yn,Fb as Ye,Fd as F,Gb as fe,Gd as Le,Ib as d,Jd as Sn,Kd as he,Ma as O,Q as mn,Qb as J,Rb as ee,Rg as Bn,Sa as gn,Vc as En,Vg as te,Xb as A,Xd as In,Y as un,Yb as f,aa as m,cd as ve,ed as An,fa as Ce,fb as s,ga as Ee,gb as c,ha as Me,hh as $n,ib as Z,id as fn,ih as qe,jb as Q,kb as K,kc as be,la as Tn,lb as p,lc as Se,lh as Fn,mb as a,n as dn,nb as o,ob as _,pb as E,qb as C,r as je,ra as pn,rb as M,sb as G,sc as $,tb as z,tc as D,th as P,uc as Cn,ya as B,yb as Ae,za as U,zb as H}from"./chunk-FVNKK7WY.js";import{a as sn,b as cn,j as u}from"./chunk-KJ7W2O2B.js";function Qn(t,n){if(t&1&&M(0,"img",21),t&2){let e=d();H("src",e.avatarUrl,U);}}var ie=class ie{server=m(P);avatarUrl;ngOnInit(){this.avatarUrl=te(this.server.getHTMLConfig().instance.avatars,30);}};u(ie,"\u0275fac",function(e){return new(e||ie)();}),u(ie,"\u0275cmp",O({type:ie,selectors:[["my-follower-image"]],decls:26,vars:1,consts:[["aria-hidden","true",1,"root"],["width","120","height","120","viewBox","0 0 120 120","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M42.2928 87.2622L10.5359 19.0679L28.4902 11.6038L89.4271 62.8128L42.2928 87.2622Z","fill","url(#paint0_linear_1305_16041)"],["d","M57.3679 68.7467L87 26L89.4588 26L89.4588 77.6445L57.3679 68.7467Z","fill","url(#paint1_linear_1305_16041)"],["x","2.30959","y","14.776","width","37.2961","height","37.2961","rx","9","transform","rotate(-22.8223 2.30959 14.776)","fill","var(--bg-secondary-400)","stroke","var(--secondary-icon-color)","stroke-width","2"],["fill-rule","evenodd","clip-rule","evenodd","d","M20.0393 26.7067L15.8565 16.767L25.4049 18.5988L20.0393 26.7067Z","fill","var(--secondary-icon-color)"],["fill-rule","evenodd","clip-rule","evenodd","d","M24.2229 36.6467L20.0401 26.7069L29.5885 28.5387L24.2229 36.6467Z","fill","var(--secondary-icon-color)"],["fill-rule","evenodd","clip-rule","evenodd","d","M29.5872 28.5378L25.4043 18.598L34.9528 20.4299L29.5872 28.5378Z","fill","var(--secondary-icon-color)"],["d","M95.2828 29.4743L94.6821 27.4769C94.3634 26.4174 93.637 25.5279 92.6625 25.0041C91.6881 24.4802 90.5454 24.3649 89.4859 24.6835L83.4938 26.4856C82.4343 26.8043 81.5448 27.5307 81.0209 28.5052C80.4971 29.4796 80.3818 30.6223 80.7004 31.6818L81.3011 33.6792","stroke","var(--bg-secondary-500)","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M85.2882 21.5899C87.4944 20.9264 88.745 18.6 88.0815 16.3937C87.418 14.1875 85.0916 12.9369 82.8854 13.6004C80.6791 14.2639 79.4285 16.5903 80.092 18.7965C80.7555 21.0028 83.0819 22.2534 85.2882 21.5899Z","stroke","var(--bg-secondary-500)","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M68.0007 92.0002L22.5001 99.4999L18.0003 99.4996L52.5006 67L68.0007 92.0002Z","fill","url(#paint2_linear_1305_16041)"],["x","7.78809","y","86.0605","width","28.6783","height","28.6783","rx","6","transform","rotate(-6.5522 7.78809 86.0605)","fill","var(--secondary-icon-color)"],["fill-rule","evenodd","clip-rule","evenodd","d","M18.5762 98.6849L17.6782 90.8661L23.993 94.1018L18.5762 98.6849Z","fill","var(--bg)"],["fill-rule","evenodd","clip-rule","evenodd","d","M19.4756 106.504L18.5776 98.685L24.8924 101.921L19.4756 106.504Z","fill","var(--bg)"],["fill-rule","evenodd","clip-rule","evenodd","d","M24.8916 101.92L23.9936 94.1015L30.3084 97.3371L24.8916 101.92Z","fill","var(--bg)"],["id","paint0_linear_1305_16041","x1","10.3339","y1","3.88906","x2","70.4056","y2","83.557","gradientUnits","userSpaceOnUse"],["offset","0.39","stop-color","var(--bg)"],["offset","0.905","stop-color","var(--bg)","stop-opacity","0"],["id","paint1_linear_1305_16041","x1","87.5","y1","22.5","x2","75.6241","y2","83.0273","gradientUnits","userSpaceOnUse"],["stop-color","var(--bg)"],["id","paint2_linear_1305_16041","x1","5.83634","y1","113.619","x2","65.326","y2","61.6047","gradientUnits","userSpaceOnUse"],["alt","",3,"src"]],template:function(e,i){e&1&&(E(0,"div",0),Me(),E(1,"svg",1),M(2,"path",2)(3,"path",3)(4,"rect",4)(5,"path",5)(6,"path",6)(7,"path",7)(8,"path",8)(9,"path",9)(10,"path",10)(11,"rect",11)(12,"path",12)(13,"path",13)(14,"path",14),E(15,"defs")(16,"linearGradient",15),M(17,"stop",16)(18,"stop",17),C(),E(19,"linearGradient",18),M(20,"stop",19)(21,"stop",17),C(),E(22,"linearGradient",20),M(23,"stop",19)(24,"stop",17),C()()(),s(25,Qn,1,1,"img",21),C()),e&2&&(r(25),c(i.avatarUrl?25:-1));},styles:[".root[_ngcontent-%COMP%]{position:relative}img[_ngcontent-%COMP%]{width:30px;height:30px;border:1px solid var(--bg-secondary-400);border-radius:31%;position:absolute;right:36px;bottom:25px;transform:rotate(18deg)}"]}));var $e=ie;function Kn(t,n){if(t&1&&M(0,"img",1),t&2){let e=d();H("src",e.avatarUrl,U);}}var ae=class ae{server=m(P);avatarUrl;ngOnInit(){this.avatarUrl=te(this.server.getHTMLConfig().instance.avatars,30);}};u(ae,"\u0275fac",function(e){return new(e||ae)();}),u(ae,"\u0275cmp",O({type:ae,selectors:[["my-subscription-image"]],decls:20,vars:1,consts:[["aria-hidden","true",1,"root"],["alt","",3,"src"],["width","125","height","129","viewBox","0 0 125 129","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M43.4996 129L18.9946 27.2709L36.8651 13.7961L124.924 67.6037L43.4996 129Z","fill","url(#paint0_linear_1305_16148)"],["x","57.9766","y","33.5923","width","39.9544","height","39.9544","rx","10","transform","rotate(-17.7787 57.9766 33.5923)","fill","var(--bg-secondary-450)"],["fill-rule","evenodd","clip-rule","evenodd","d","M76.1448 47.9191L72.7968 37.478
1L82.3039 40.1868L76.1448 47.9191Z","fill","var(--secondary-icon-color)"],["fill-rule","evenodd","clip-rule","evenodd","d","M79.4925 58.3605L76.1445 47.9194L85.6515 50.6282L79.4925 58.3605Z","fill","var(--secondary-icon-color)"],["fill-rule","evenodd","clip-rule","evenodd","d","M85.6507 50.6276L82.3027 40.1865L91.8097 42.8953L85.6507 50.6276Z","fill","var(--secondary-icon-color)"],["clip-path","url(#clip0_1305_16148)"],["d","M39.7866 86.6025L40.6519 83.7089C41.1109 82.1741 40.9414 80.5198 40.1807 79.11C39.4199 77.7002 38.1303 76.6503 36.5955 76.1913L27.915 73.5954C26.3801 73.1364 24.7259 73.3059 23.316 74.0666C21.9062 74.8273 20.8563 76.117 20.3973 77.6518L19.532 80.5453","stroke","var(--bg-secondary-500)","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M33.9859 69.1059C37.182 70.0617 40.5478 68.2456 41.5036 65.0495C42.4594 61.8534 40.6433 58.4877 37.4472 57.5319C34.2511 56.5761 30.8853 58.3922 29.9295 61.5883C28.9737 64.7844 30.7899 68.1501 33.9859 69.1059Z","stroke","var(--bg-secondary-500)","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],["d","M64.0505 89.509C62.4526 89.3031 60.9752 90.5494 60.7506 92.2926L59.3273 103.34C59.1027 105.083 60.216 106.663 61.814 106.869L80.6204 109.292C82.2183 109.498 83.7001 108.218 83.9203 106.508","stroke","var(--secondary-icon-color)","stroke-width","2"],["d","M69.7048 83.8923L91.83 86.7428C93.0902 86.9051 94.0965 88.1833 93.8955 89.7441L92.235 102.632C92.0339 104.193 90.7364 105.175 89.4763 105.012L67.3511 102.162C66.0909 101.999 65.0845 100.721 65.2856 99.1604L66.9461 86.2721C67.1472 84.7112 68.4447 83.7299 69.7048 83.8923Z","stroke","var(--secondary-icon-color)","stroke-width","2"],["d","M77.2559 89.7397L76.2523 97.5294L82.9857 94.4381L77.2559 89.7397Z","fill","var(--secondary-icon-color)"],["id","paint0_linear_1305_16148","x1","27.7121","y1","20.698","x2","75.2879","y2","83.7937","gradientUnits","userSpaceOnUse"],["offset","0.293252","stop-color","var(--bg)"],["offset","1","stop-color","var(--bg)","stop-opacity","0"],["id","clip0_1305_16148"],["width","36.2416","height","36.2416","fill","var(--bg)","transform","translate(21.3838 48) rotate(16.6494)"]],template:function(e,i){e&1&&(E(0,"div",0),s(1,Kn,1,1,"img",1),Me(),E(2,"svg",2),M(3,"path",3)(4,"rect",4)(5,"path",5)(6,"path",6)(7,"path",7),E(8,"g",8),M(9,"path",9)(10,"path",10),C(),M(11,"path",11)(12,"path",12)(13,"path",13),E(14,"defs")(15,"linearGradient",14),M(16,"stop",15)(17,"stop",16),C(),E(18,"clipPath",17),M(19,"rect",18),C()()()()),e&2&&(r(),c(i.avatarUrl?1:-1));},styles:[".root[_ngcontent-%COMP%]{position:relative}img[_ngcontent-%COMP%]{width:30px;height:30px;border:1px solid var(--bg-secondary-400);border-radius:31%;position:absolute;top:9px;left:15px}"]}));var Fe=ae;var Jn=()=>({scope:"federated"});function et(t,n){if(t&1&&(a(0,"div",17),l(1,4),o()),t&2){let e=d();r(),L(e.instanceName),h(1);}}function nt(t,n){if(t&1&&(a(0,"div",18),_(1,"my-actor-avatar",23),a(2,"div",24)(3,"a",25),A(4),o()()()),t&2){let e=n.$implicit;r(),p("actor",e),r(2),p("href",e.url,U),r(),f(e.name);}}function tt(t,n){if(t&1){let e=Ae();a(0,"my-button",26),fe("click",function(){Ce(e);let T=d();return Ee(T.loadMoreSubscriptions());}),l(1,5),o();}}function ot(t,n){if(t&1&&(a(0,"div",21)(1,"h4"),l(2,6),o(),a(3,"div",27)(4,"div",28)(5,"strong"),A(6),$(7,"number"),o(),a(8,"a",29),l(9,7),o(),_(10,"my-global-icon",30),o(),a(11,"div",28)(12,"strong"),A(13),$(14,"number"),o(),a(15,"div"),l(16,8),o(),_(17,"my-global-icon",31),o()()()),t&2){let e=d();r(6),f(D(7,3,e.serverStats.totalVideos)),r(2),p("queryParams",be(7,Jn)),r(5),f(D(14,5,e.serverStats.totalVideoComments));}}function it(t,n){if(t&1&&(a(0,"div",17),l(1,9),o()),t&2){let e=d();r(),L(e.instanceName),h(1);}}function at(t,n){if(t&1&&(a(0,"div",18),_(1,"my-actor-avatar",23),a(2,"div",24)(3,"a",25),A(4),o()()()),t&2){let e=n.$implicit;r(),p("actor",e),r(2),p("href",e.url,U),r(),f(e.name);}}function rt(t,n){if(t&1){let e=Ae();a(0,"my-button",26),fe("click",function(){Ce(e);let T=d();return Ee(T.loadMoreFollowers());}),l(1,10),o();}}var re=class re{server=m(P);restService=m(Fn);notifier=m(Bn);followService=m(Be);instanceName;followers=[];subscriptions=[];followersPagination={currentPage:1,itemsPerPage:20,totalItems:0};subscriptionsPagination={currentPage:1,itemsPerPage:20,totalItems:0};serverStats;loadingFollowers=!1;loadingSubscriptions=!1;sort={field:"createdAt",order:-1};ngOnInit(){this.loadMoreFollowers(!0),this.loadMoreSubscriptions(!0),this.instanceName=this.server.getHTMLConfig().instance.name,this.server.getServerStats().subscribe(n=>this.serverStats=n);}buildLink(n){return window.location.protocol+"//"+n;}canLoadMoreFollowers(){return qe(this.followersPagination);}canLoadMoreSubscriptions(){return qe(this.subscriptionsPagination);}loadMoreFollowers(n=!1){if(this.loadingFollowers)return;this.loadingFollowers=!0,n?this.followersPagination.currentPage=1:this.followersPagination.currentPage++;let e=this.restService.componentToRestPagination(this.followersPagination);this.followService.listFollowers({pagination:e,sort:this.sort,state:"accepted"}).subscribe({next:i=>{n&&(this.followers=[]);let T=i.data.map(g=>this.formatFollow(g.follower));this.followers=this.followers.concat(T),this.followersPagination.totalItems=i.total;},error:i=>this.notifier.handleError(i),complete:()=>this.loadingFollowers=!1});}loadMoreSubscriptions(n=!1){if(this.loadingSubscriptions)return;this.loadingSubscriptions=!0,n?this.subscriptionsPagination.currentPage=1:this.subscriptionsPagination.currentPage++;let e=this.restService.componentToRestPagination(this.subscriptionsPagination);this.followService.listSubscriptions({pagination:e,sort:this.sort,state:"accepted"}).subscribe({next:i=>{n&&(this.subscriptions=[]);let T=i.data.map(g=>this.formatFollow(g.following));this.subscriptions=this.subscriptions.concat(T),this.subscriptionsPagination.totalItems=i.total;},error:i=>this.notifier.handleError(i),complete:()=>this.loadingSubscriptions=!1});}formatFollow(n){return cn(sn({},n),{name:n.name==="peertube"?n.host:n.name+"@"+n.host});}};u(re,"\u0275fac",function(e){return new(e||re)();}),u(re,"\u0275cmp",O({type:re,selectors:[["my-about-follows"]],decls:30,vars:11,consts:()=>{let n;n="{VAR_PLURAL, plural, =1 {subscription} other {subscriptions}}",n=Ye(n,{VAR_PLURAL:"\uFFFD1\uFFFD"});let e;e=""+"\uFFFD0\uFFFD"+" "+n+"";let i;i=" This is content to which we have subscribed. This allows us to display their videos directly on "+"\uFFFD0\uFFFD"+". ";let T;T="{VAR_PLURAL, plural, =1 {follower} other {followers}}
1",T=Ye(T,{VAR_PLURAL:"\uFFFD1\uFFFD"});let g;g=""+"\uFFFD0\uFFFD"+" "+T+"";let b;b=" Our subscribers automatically display videos of "+"\uFFFD0\uFFFD"+" on their platforms. ";let N;N=""+"\uFFFD0\uFFFD"+" does not have subscriptions.";let v;v="Show more subscriptions";let I;I="Our network in figures";let X;X="total videos";let y;y="total comments";let pe;pe=""+"\uFFFD0\uFFFD"+" does not have followers.";let ge;return ge="Show more followers",[e,i,g,b,N,v,I,X,y,pe,ge,[1,"margin-content","mt-5"],[1,"subscriptions","me-3","mb-3"],[1,"block-header","mb-4","d-flex"],[1,"flex-grow-1","me-2"],[1,"text-content"],[1,"follows"],[1,"no-results"],[1,"follow-block"],[1,"text-center"],["theme","secondary",1,"mt-3","mx-auto"],[1,"stats","mt-4"],[1,"followers"],["actorType","instance","size","32",3,"actor"],[1,"ellipsis"],["target","_blank","rel","noopener noreferrer",1,"follow-name",3,"href"],["theme","secondary",1,"mt-3","mx-auto",3,"click"],["myPluginSelector","","pluginSelectorId","about-instance-network-statistics"],[1,"stat"],["routerLink","/videos/browse",3,"queryParams"],["iconName","videos"],["iconName","message-circle"]];},template:function(e,i){e&1&&(a(0,"div",11)(1,"div",12)(2,"div",13)(3,"div",14)(4,"h3"),l(5,0),o(),a(6,"div",15),l(7,1),o()(),_(8,"my-subscription-image"),o(),a(9,"div",16),s(10,et,2,1,"div",17),Q(11,nt,5,3,"div",18,Z),o(),a(13,"div",19),s(14,tt,2,0,"my-button",20),o(),s(15,ot,18,8,"div",21),o(),a(16,"div",22)(17,"div",13)(18,"div",14)(19,"h3"),l(20,2),o(),a(21,"div",15),l(22,3),o()(),_(23,"my-follower-image"),o(),a(24,"div",16),s(25,it,2,1,"div",17),Q(26,at,5,3,"div",18,Z),a(28,"div",19),s(29,rt,2,0,"my-button",20),o()()()()),e&2&&(r(5),L(i.subscriptionsPagination.totalItems)(i.subscriptionsPagination.totalItems),h(5),r(2),L(i.instanceName),h(7),r(3),c(i.subscriptionsPagination.totalItems===0?10:-1),r(),K(i.subscriptions),r(3),c(i.canLoadMoreSubscriptions()?14:-1),r(),c(i.serverStats?15:-1),r(5),L(i.followersPagination.totalItems)(i.followersPagination.totalItems),h(20),r(2),L(i.instanceName),h(22),r(3),c(i.followersPagination.totalItems===0?25:-1),r(),K(i.followers),r(3),c(i.canLoadMoreFollowers()?29:-1));},dependencies:[xn,Ie,j,oe,he,Fe,$e,ve],styles:[".margin-content[_ngcontent-%COMP%]{display:flex}.text-content[_ngcontent-%COMP%]{color:var(--fg-300)}.stat[_ngcontent-%COMP%]{position:relative;border:1px solid var(--border-secondary);border-radius:4px;min-width:170px;padding:1rem 1.5rem;text-align:center;overflow:hidden}.stat[_ngcontent-%COMP%] strong[_ngcontent-%COMP%], .stat[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .stat[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{position:relative;z-index:2;line-height:1.2}.stat[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:var(--fg-400);font-weight:700;font-size:calc(1.325rem + .9vw)}@media(min-width:1200px){.stat[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:2rem}}.stat[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .stat[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:18px;color:var(--fg-200);display:block}.stat[_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%]{position:absolute;left:10px;top:-20px;color:var(--bg-secondary-450);z-index:1;display:inline-block;width:60px;height:60px;line-height:60px}.stats[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:1rem}.followers[_ngcontent-%COMP%], .subscriptions[_ngcontent-%COMP%]{flex-basis:50%;background-color:var(--bg-secondary-400);padding:1.5rem;border-radius:14px}.followers[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .subscriptions[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-weight:700;color:var(--fg-400);font-size:calc(1.325rem + .9vw)}@media(min-width:1200px){.followers[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .subscriptions[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:2rem}}.followers[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .subscriptions[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{color:var(--fg-300);font-weight:700;font-size:1.25rem}.follows[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:1rem}.follow-block[_ngcontent-%COMP%]{width:calc(50% - 1rem);padding:1rem;border-radius:8px;background-color:var(--bg-secondary-450);display:flex;align-items:center}
1.follow-block[_ngcontent-%COMP%] my-actor-avatar[_ngcontent-%COMP%]{margin-inline-end:1rem}.follow-name[_ngcontent-%COMP%]{font-weight:700;color:var(--fg-400)}@media screen and (max-width:1200px){.margin-content[_ngcontent-%COMP%]{flex-wrap:wrap}.followers[_ngcontent-%COMP%], .subscriptions[_ngcontent-%COMP%]{flex-basis:100%}}@media screen and (max-width:800px){.follow-block[_ngcontent-%COMP%]{width:100%}}"]}));var xe=re;var le=class le{viewportScroller=m(fn);lastScrollHash;ngAfterViewChecked(){window.location.hash&&window.location.hash!==this.lastScrollHash&&(this.viewportScroller.scrollToAnchor(window.location.hash.replace("#","")),this.lastScrollHash=window.location.hash);}};u(le,"\u0275fac",function(e){return new(e||le)();}),u(le,"\u0275cmp",O({type:le,selectors:[["my-about-peertube"]],decls:35,vars:0,consts:()=>{let n;n=" This platform is powered by PeerTube ";let e;e=" PeerTube is a self-hosted ActivityPub-federated video streaming platform using P2P directly in your web browser. ";let i;i=" It is free and open-source software, under "+"\uFFFD#9\uFFFD"+"AGPLv3 licence"+"\uFFFD/#9\uFFFD"+". ";let T;T=" For more information, please visit "+"\uFFFD#12\uFFFD"+"joinpeertube.org"+"\uFFFD/#12\uFFFD"+". ";let g;g="Use PeerTube documentation";let b;b=" Discover how to setup your account, what is a channel, how to create a playlist and more! ";let N;N="PeerTube Applications";let v;v=" Discover unofficial Android applications or browser addons! ";let I;I="Contribute on PeerTube";let X;return X=" Want to help to improve PeerTube? You can translate the web interface, give your feedback or directly contribute to the code! ",[n,e,i,T,g,b,N,v,I,X,[1,"margin-content","mt-5"],[1,"fs-3","text-center","fw-semibold","mb-3"],["width","121px","height","147px","src","/client/assets/images/mascot/default.svg","alt","mascot",1,"d-block","my-4","mx-auto"],[1,"text-center"],["href","https://github.com/Chocobozzz/PeerTube/blob/develop/LICENSE",1,"link-primary"],["target","_blank","rel","noopener noreferrer","href","https://joinpeertube.org",1,"link-primary"],[1,"d-flex","flex-wrap","justify-content-center","my-5"],[1,"card"],[1,"card-body"],[1,"card-title"],["target","_blank","rel","noopener noreferrer","href","https://docs.joinpeertube.org/use/setup-account",1,"link-primary"],[1,"card-text"],["target","_blank","rel","noopener noreferrer","href","https://docs.joinpeertube.org/use/third-party-application",1,"link-primary"],["target","_blank","rel","noopener noreferrer","href","https://docs.joinpeertube.org/contribute/getting-started",1,"link-primary"]];},template:function(e,i){e&1&&(E(0,"div",10)(1,"h3",11),l(2,0),C(),M(3,"img",12),E(4,"div",13)(5,"p"),l(6,1),C(),E(7,"p"),W(8,2),M(9,"a",14),V(),C(),E(10,"p"),W(11,3),M(12,"a",15),V(),C()(),E(13,"div",16)(14,"div",17)(15,"div",18)(16,"div",19)(17,"a",20),l(18,4),C()(),E(19,"div",21),l(20,5),C()()(),E(21,"div",17)(22,"div",18)(23,"div",19)(24,"a",22),l(25,6),C()(),E(26,"div",21),l(27,7),C()()(),E(28,"div",17)(29,"div",18)(30,"div",19)(31,"a",23),l(32,8),C()(),E(33,"div",21),l(34,9),C()()()()());},styles:[".margin-content[_ngcontent-%COMP%]{max-width:1200px;margin-inline-start:auto;margin-inline-end:auto}.card[_ngcontent-%COMP%]{flex-basis:300px;margin-inline-start:calc(1.325rem + .9vw)}@media(min-width:1200px){.card[_ngcontent-%COMP%]{margin-inline-start:2rem}}.card[_ngcontent-%COMP%]{margin-inline-end:calc(1.325rem + .9vw)}@media(min-width:1200px){.card[_ngcontent-%COMP%]{margin-inline-end:2rem}}.card[_ngcontent-%COMP%]{margin-top:calc(1.325rem + .9vw)}@media(min-width:1200px){.card[_ngcontent-%COMP%]{margin-top:2rem}}.card[_ngcontent-%COMP%]{margin-bottom:calc(1.325rem + .9vw)}@media(min-width:1200px){.card[_ngcontent-%COMP%]{margin-bottom:2rem}}.card-title[_ngcontent-%COMP%]{font-size:1.1rem;text-align:center;margin-bottom:1rem}.card-body[_ngcontent-%COMP%]{text-align:center}"]}));var we=le;var Vn={VALIDATORS:[x.required,x.email],MESSAGES:{required:"Email is required.",email:"Email must be valid."}},jn={VALIDATORS:[x.required,x.minLength(1),x.maxLength(120)],MESSAGES:{required:"Your name is required.",minlength:"Your name must be at least 1 character long.",maxlength:"Your name cannot be more than 120 characters long."}},Yn={VALIDATORS:[x.required,x.minLength(1),x.maxLength(120)],MESSAGES:{required:"A subject is required.",minlength:"The subject must be at least 1 character long.",maxlength:"The subject cannot be more than 120 characters long."}},qn={VALIDATORS:[x.required,x.minLength(3),x.maxLength(5e3)],MESSAGES:{required:"A message is required.",minlength:"The message must be at least 3 characters long.",maxlength:"The message cannot be more than 5000 characters long."}};var De=t=>({"input-error":t});function lt(t,n){if(t&1&&(a(0,"div",15),A(1),o()),t&2){let e=d(3);r(),f(e.formErrors.fromName);}}function _t(t,n){if(t&1&&(a(0,"div",15),A(1),o()),t&2){let e=d(3);r(),f(e.formErrors.fromEmail);}}function st(t,n){if(t&1&&(a(0,"div",15),A(1),o()),t&2){let e=d(3);r(),f(e.formErrors.subject);}}function ct(t,n){if(t&1&&(a(0,"div",15),A(1),o()),t&2){let e=d(3);r(),f(e.formErrors.body);}}function dt(t,n){if(t&1&&(a(0,"my-alert",8),A(1),o()),t&2){let e=d(3);r(),f(e.error);}}function mt(t,n){if(t&1){let e=Ae();a(0,"form",11),fe("ngSubmit",function(){Ce(e);let T=d(2);return Ee(T.sendForm());}),a(1,"div",12)(2,"label",13),l(3,1),o(),_(4,"input",14),s(5,lt,2,1,"div",15),o(),a(6,"div",12)(7,"label",16),l(8,2),o(),_(9,"input",17),s(10,_t,2,1,"div",15),o(),a(11,"div",12)(12,"label",18),l(13,3),o(),_(14,"input",19),s(15,st,2,1,"div",15),o(),a(16,"div",12)(17,"label",20),l(18,4),o(),_(19,"textarea",21),s(20,ct,2,1,"div",15),o(),s(21,dt,2,1,"my-alert",8),_(22,"input",22),o();}if(t&2){let e=d(2);p("formGroup",e.form),r(4),p("ngClass",Se(11,De,e.formErrors.fromName)),r(),c(e.formErrors.fromName?5:-1),r(4),p("ngClass",Se(13,De,e.formErrors.fromEmail)),r(),c(e.formErrors.fromEmail?10:-1),r(4),p("ngClass",Se(15,De,e.formErrors.subject)),r(),c(e.formErrors.subject?15:-1),r(4),p("ngClass",Se(17,De,e.formErrors.body)),r(),c(e.formErrors.body?20:-1),r(),c(e.error?21:-1),r(),p("disabled",!e.form.valid);}}function ut(t,n){if(t&1&&(a(0,"my-alert",10),A(1),o()),t&2){let e=d(2);r(),f(e.success);}}function Tt(t,n){if(t&1&&s(0,mt,23,19,"form",9)(1,ut,2,1,"my-alert",10),t&2){let e=d();c(e.success?1:0);}}function pt(t,n){t&1&&(a(0,"my-alert",8),l(1,5),o());}var Y=class Y extends Gn{formReactiveService=m(Rn);route=m(F);instanceService=m(ye);serverService=m(P);error;success;serverConfig;get instanceName(){return this.serverConfig.instance.name;}ngOnInit(){this.serverConfig=this.serverService.getHTMLConfig(),this.buildForm({fromName:jn,fromEmail:Vn,subject:Yn,body:qn}
1),this.prefillForm(this.route.snapshot.queryParams);}isContactFormEnabled(){return this.serverConfig.email.enabled&&this.serverConfig.contactForm.enabled;}sendForm(){let n=this.form.value.fromName,e=this.form.value.fromEmail,i=this.form.value.subject,T=this.form.value.body;this.instanceService.contactAdministrator(e,n,i,T).subscribe({next:()=>{this.success="Your message has been sent.";},error:g=>{this.error=g.status===In.FORBIDDEN_403?"You already sent this form recently":g.message;}});}prefillForm(n){n.subject&&this.form.get("subject").setValue(n.subject),n.body&&this.form.get("body").setValue(n.body);}};u(Y,"\u0275fac",(()=>{let n;return function(i){return(n||(n=pn(Y)))(i||Y);};})()),u(Y,"\u0275cmp",O({type:Y,selectors:[["ng-component"]],features:[gn],decls:5,vars:2,consts:()=>{let n;n="Contact "+"\uFFFD0\uFFFD"+" administrators";let e;e="Example: [email protected]";let i;i="Submit";let T;T="Your name";let g;g="Your email";let b;b="Subject";let N;N="Your message";let v;return v="The contact form is not enabled on this instance.",[n,T,g,b,N,v,[1,"margin-content","mt-4"],[1,"fs-3","fw-semibold","mb-3"],["type","danger"],["novalidate","",3,"formGroup"],["type","success"],["novalidate","",3,"ngSubmit","formGroup"],[1,"form-group"],["for","fromName"],["type","text","id","fromName","formControlName","fromName","autocomplete","name",1,"form-control",3,"ngClass"],["role","alert",1,"form-error"],["for","fromEmail"],["type","text","id","fromEmail","formControlName","fromEmail","placeholder",e,"autocomplete","email",1,"form-control",3,"ngClass"],["for","subject"],["type","text","id","subject","formControlName","subject",1,"form-control",3,"ngClass"],["for","body"],["id","body","formControlName","body",1,"form-control",3,"ngClass"],["type","submit","value",i,1,"peertube-button","primary-button",3,"disabled"]];},template:function(e,i){e&1&&(a(0,"div",6)(1,"h3",7),l(2,0),o(),s(3,Tt,2,1)(4,pt,2,0,"my-alert",8),o()),e&2&&(r(2),L(i.instanceName),h(2),r(),c(i.isContactFormEnabled()?3:4));},dependencies:[Ln,bn,On,Nn,Mn,hn,vn,Pn,En,wn],styles:["input[type=text][_ngcontent-%COMP%]{font-size:16px;padding:var(--input-y-padding) var(--input-x-padding);width:340px;max-width:340px;color:var(--input-fg);background-color:var(--input-bg);border:var(--input-border-width) solid var(--input-border-color);border-radius:var(--input-border-radius);line-height:24px}input[type=text][_ngcontent-%COMP%]::placeholder{color:var(--input-placeholder-color);font-size:var(--input-placeholder-font-size)}input[type=text][readonly][_ngcontent-%COMP%]{color:var(--fg-300)}input[type=text][_ngcontent-%COMP%]:focus, input[type=text][_ngcontent-%COMP%]:focus-visible{box-shadow:0 0 0 .2rem var(--fg-100);outline:0}input[type=text][disabled][_ngcontent-%COMP%]{color:var(--fg-300);opacity:.8}@media screen and (max-width:380px){input[type=text][_ngcontent-%COMP%]{width:100%}}textarea[_ngcontent-%COMP%]{font-size:16px;padding:var(--input-y-padding) var(--input-x-padding);width:500px;max-width:500px;color:var(--input-fg);background-color:var(--input-bg);border:var(--input-border-width) solid var(--input-border-color);border-radius:var(--input-border-radius);line-height:24px}textarea[_ngcontent-%COMP%]::placeholder{color:var(--input-placeholder-color);font-size:var(--input-placeholder-font-size)}textarea[readonly][_ngcontent-%COMP%]{color:var(--fg-300)}textarea[_ngcontent-%COMP%]:focus, textarea[_ngcontent-%COMP%]:focus-visible{box-shadow:0 0 0 .2rem var(--fg-100);outline:0}textarea[disabled][_ngcontent-%COMP%]{color:var(--fg-300);opacity:.8}@media screen and (max-width:540px){textarea[_ngcontent-%COMP%]{width:100%}}textarea[_ngcontent-%COMP%]{color:var(--textarea-fg)!important;background-color:var(--textarea-bg)!important;height:200px;padding:var(--textarea-y-padding) var(--textarea-x-padding)}"]}));var ke=Y;var gt=()=>({scope:"local"});function Ct(t,n){t&1&&(G(0),W(1,11),_(2,"a",45),V(),z());}function Et(t,n){if(t&1&&(a(0,"div",40)(1,"div",41),_(2,"my-global-icon",36),a(3,"div",42),_(4,"div",43),o()(),a(5,"div")(6,"strong"),l(7,9),o(),a(8,"div",44),G(9),l(10,10),z(),s(11,Ct,3,0,"ng-container"),o()()()),t&2){let e=d();r(7),L(e.config().instance.serverCountry),h(7),r(4),c(e.aboutHTML().codeOfConduct?11:-1);}}function At(t,n){t&1&&(a(0,"div",42),_(1,"my-global-icon",46),o());}function ft(t,n){t&1&&(a(0,"div",42),_(1,"my-global-icon",47),o());}function St(t,n){if(t&1&&(a(0,"div",44),l(1,13),$(2,"myDaysDurationFormatter"),o()),t&2){let e=d(3);r(2),L(D(2,1,e.stats().averageRegistrationRequestResponseTimeMs)),h(1);}}function Ot(t,n){t&1&&(a(0,"div",44),l(1,14),o());}function Nt(t,n){if(t&1&&(a(0,"strong"),W(1,12),_(2,"a",48),V(),o(),s(3,St,3,3,"div",44)(4,Ot,2,0,"div",44)),t&2){let e=d(2);r(3),c(e.stats().averageRegistrationRequestResponseTimeMs?3:4);}}function Mt(t,n){t&1&&(a(0,"strong"),W(1,15),_(2,"a",48),V(),o());}function bt(t,n){if(t&1&&s(0,Nt,5,1)(1,Mt,3,0,"strong"),t&2){let e=d();c(e.config().signup.requiresApproval?0:1);}}function Pt(t,n){t&1&&(a(0,"strong"),l(1,16),o());}function vt(t,n){t&1&&(a(0,"div",40)(1,"div",41),_(2,"my-global-icon",49),a(3,"div",42),_(4,"my-global-icon",46),o()(),a(5,"div")(6,"strong"),l(7,17),o(),a(8,"div",44),l(9,18),o()()());}function Lt(t,n){t&1&&(G(0),l(1,21),z());}function ht(t,n){if(t&1&&(a(0,"div",41),_(1,"my-global-icon",50),a(2,"div",42),_(3,"my-global-icon",46),o()(),a(4,"div")(5,"strong"),l(6,19),o(),a(7,"div",44),G(8),l(9,20),z(),s(10,Lt,2,0,"ng-container"),o()()),t&2){let e=d();r(10),c(e.canPublishLive()?10:-1);}}function It(t,n){t&1&&(a(0,"strong"),l(1,23),o());}function yt(t,n){t&1&&(a(0,"strong"),l(1,24),o());}function Rt(t,n){t&1&&(G(0),W(1,25),_(2,"a",51),V(),z());}function Ut(t,n){if(t&1&&(a(0,"div",41),_(1,"my-global-icon",50),a(2,"div",42),_(3,"my-global-icon",47),o()(),a(4,"div"),s(5,It,2,0,"strong")(6,yt,2,0,"strong"),a(7,"div",44),G(8),l(9,22),z(),s(10,Rt,3,0,"ng-container"),o()()),t&2){let e=d();r(5),c(e.isContactFormEnabled()?5:6),r(5),c(e.isContactFormEnabled()?10:-1);}}var _e=class _e{auth=m($n);stats=Pe.required();config=Pe.required();aboutHTML=Pe.required();canUpload(){let n=this.auth.getUser();if(n)return!(n.videoQuota===0||n.videoQuotaDaily===0);let e=this.config();return e.user.videoQuota!==0&&e.user.videoQuotaDaily!==0;}canPublishLive(){return this.config().live.enabled;}isContactFormEnabled(){let n=this.config();return n.email.enabled&&n.contactForm.enabled;}};u(_e,"\u0275fac",function(e){return new(e||_e)();}),u(_e,"\u0275cmp",O({type:_e,selectors:[["my-instance-stat-rules"]],inputs:{stats:[1,"stats"],config:[1,"config"],aboutHTML:[1,"aboutHTML"]},decls:71,vars:29,consts:()=>{let n;n="Our platform in figures";let e;e="moderators";let i;i="users";let T;T="videos";let g;g="views";let b;b="downloads";let N;
1N="comments";let v;v="hosted videos";let I;I="Usage rules";let X;X="This platform has been created in "+"\uFFFD0\uFFFD"+"";let y;y="Your content (comments, videos...) must comply with the legislation in force in this country.";let pe;pe=" You must also follow our "+"\uFFFD#2\uFFFD"+"code of conduct"+"\uFFFD/#2\uFFFD"+".";let ge;ge="You can "+"\uFFFD#2\uFFFD"+"request an account"+"\uFFFD/#2\uFFFD"+" on our platform";let R;R="Our moderator will validate it within a "+"\uFFFD0\uFFFD"+".";let Ze;Ze="Our moderator will validate it within a few days.";let Qe;Qe="You can "+"\uFFFD#2\uFFFD"+"create an account"+"\uFFFD/#2\uFFFD"+" on our platform";let Ke;Ke="Public registration on our platform is not allowed";let Je;Je="This platform is compatible with Mastodon, Lemmy, Misskey and other services from the Fediverse";let en;en="You can use these services to interact with our videos";let nn;nn="You can publish videos";let tn;tn="By default, your account allows you to publish videos.";let on;on=" You can also stream lives.";let an;an="By default, your account does not allow to publish videos.";let rn;rn="Contact us to publish videos";let ln;ln="You can't publish videos";let _n;return _n=" If you want to publish videos, "+"\uFFFD#2\uFFFD"+"contact us"+"\uFFFD/#2\uFFFD"+".",[n,e,i,T,g,b,N,v,I,X,y,pe,ge,R,Ze,Qe,Ke,Je,en,nn,tn,on,an,rn,ln,_n,[1,"root"],[1,"stats-block"],["myPluginSelector","","pluginSelectorId","about-instance-statistics",1,"blocks"],[1,"stat"],["iconName","moderation"],["iconName","user"],["routerLink","/videos/browse",3,"queryParams"],["iconName","videos"],["iconName","eye-open"],["iconName","download"],["iconName","message-circle"],["iconName","film"],[1,"usage-rules-block"],[1,"blocks"],[1,"usage-rule"],[1,"icon-container"],[1,"icon-status"],[1,"icon-info"],[1,"rule-content"],["routerLink","/about/instance/moderation"],["iconName","tick"],["iconName","cross"],["routerLink","/signup"],["iconName","fediverse"],["iconName","upload"],["routerLink","/about/contact"]];},template:function(e,i){e&1&&(a(0,"div",26)(1,"div",27)(2,"h4"),l(3,0),o(),a(4,"div",28)(5,"div",29)(6,"strong"),A(7),$(8,"number"),o(),a(9,"div"),l(10,1),o(),_(11,"my-global-icon",30),o(),a(12,"div",29)(13,"strong"),A(14),$(15,"number"),o(),a(16,"div"),l(17,2),o(),_(18,"my-global-icon",31),o(),a(19,"div",29)(20,"strong"),A(21),$(22,"number"),o(),a(23,"a",32),l(24,3),o(),_(25,"my-global-icon",33),o(),a(26,"div",29)(27,"strong"),A(28),$(29,"number"),o(),a(30,"div"),l(31,4),o(),_(32,"my-global-icon",34),o(),a(33,"div",29)(34,"strong"),A(35),$(36,"number"),o(),a(37,"div"),l(38,5),o(),_(39,"my-global-icon",35),o(),a(40,"div",29)(41,"strong"),A(42),$(43,"number"),o(),a(44,"div"),l(45,6),o(),_(46,"my-global-icon",36),o(),a(47,"div",29)(48,"strong"),A(49),$(50,"bytes"),o(),a(51,"div"),l(52,7),o(),_(53,"my-global-icon",37),o()()(),a(54,"div",38)(55,"h4"),l(56,8),o(),a(57,"div",39),s(58,Et,12,2,"div",40),a(59,"div",40)(60,"div",41),_(61,"my-global-icon",31),s(62,At,2,0,"div",42)(63,ft,2,0,"div",42),o(),a(64,"div"),s(65,bt,2,1)(66,Pt,2,0,"strong"),o()(),s(67,vt,10,0,"div",40),a(68,"div",40),s(69,ht,11,1)(70,Ut,11,2),o()()()()),e&2&&(r(7),f(D(8,13,i.stats().totalModerators+i.stats().totalAdmins)),r(7),f(D(15,15,i.stats().totalUsers)),r(7),f(D(22,17,i.stats().totalLocalVideos)),r(2),p("queryParams",be(28,gt)),r(5),f(D(29,19,i.stats().totalLocalVideoViews)),r(7),f(D(36,21,i.stats().totalLocalVideoDownloads)),r(7),f(D(43,23,i.stats().totalLocalVideoComments)),r(7),f(Cn(50,25,i.stats().totalLocalVideoFilesSize,1)),r(9),c(i.config().instance.serverCountry?58:-1),r(4),c(i.config().signup.allowed&&i.config().signup.allowedForCurrentIP?62:63),r(3),c(i.config().signup.allowed&&i.config().signup.allowedForCurrentIP?65:66),r(2),c(i.config().federation.enabled?67:-1),r(2),c(i.canUpload()?69:70));},dependencies:[An,oe,j,he,ve,Hn,Dn],styles:['.root[_ngcontent-%COMP%]{padding:1.5rem;border-radius:14px;background-color:var(--bg-secondary-400)}h4[_ngcontent-%COMP%]{font-size:20px;color:var(--fg-300);font-weight:700}.stats-block[_ngcontent-%COMP%] .blocks[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:1rem}.stat[_ngcontent-%COMP%]{position:relative;border:1px solid var(--border-secondary);border-radius:4px;min-width:170px;padding:1rem 1.5rem;text-align:center;overflow:hidden}.stat[_ngcontent-%COMP%] strong[_ngcontent-%COMP%], .stat[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .stat[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{position:relative;z-index:2;line-height:1.2}.stat[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:var(--fg-400);font-weight:700;font-size:calc(1.325rem + .9vw)}@media(min-width:1200px){.stat[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:2rem}}.stat[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .stat[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-size:18px;color:var(--fg-200);display:block}.stat[_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%]{position:absolute;
1left:10px;top:-20px;color:var(--bg-secondary-450);z-index:1;display:inline-block;width:60px;height:60px;line-height:60px}.usage-rules-block[_ngcontent-%COMP%]{margin-top:calc(1.275rem + .3vw)}@media(min-width:1200px){.usage-rules-block[_ngcontent-%COMP%]{margin-top:1.5rem}}.usage-rules-block[_ngcontent-%COMP%] .blocks[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.usage-rules-block[_ngcontent-%COMP%] .usage-rule[_ngcontent-%COMP%]{color:var(--fg-300);border-radius:8px;padding:1rem 1.5rem;display:flex;align-items:center;gap:1rem}.usage-rules-block[_ngcontent-%COMP%] .usage-rule[_ngcontent-%COMP%]:nth-child(odd){background-color:var(--bg-secondary-450)}.usage-rules-block[_ngcontent-%COMP%] .usage-rule[_ngcontent-%COMP%]:nth-child(2n){border:1px solid var(--border-secondary)}.usage-rules-block[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-weight:700;color:var(--fg-400)}.usage-rules-block[_ngcontent-%COMP%] .rule-content[_ngcontent-%COMP%]{font-size:.875rem}.usage-rules-block[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%]{position:relative}.usage-rules-block[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%] > my-global-icon[_ngcontent-%COMP%]:first-child{color:var(--secondary-icon-color);display:inline-block;width:42px;height:42px;line-height:42px}.usage-rules-block[_ngcontent-%COMP%] .icon-status[_ngcontent-%COMP%]{background-color:var(--bg);border-radius:100%;position:absolute;right:-5px;bottom:-5px;text-align:center;display:inline-block;width:18px;height:18px;line-height:18px}.usage-rules-block[_ngcontent-%COMP%] .icon-status[_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%]{display:inline-block;width:14px;height:14px;line-height:14px}.usage-rules-block[_ngcontent-%COMP%] my-global-icon[iconName=tick][_ngcontent-%COMP%]{color:var(--green)}.usage-rules-block[_ngcontent-%COMP%] my-global-icon[iconName=cross][_ngcontent-%COMP%]{color:var(--red)}.usage-rules-block[_ngcontent-%COMP%] .icon-info[_ngcontent-%COMP%]:after{content:"!";display:block;color:var(--fg-200);font-size:14px;font-weight:700}']}));var Ge=_e;var Bt=["descriptionWrapper"],se=class se{route=m(F);descriptionWrapper=ne("descriptionWrapper");aboutHTML;serverStats;serverConfig;menuEntries=[];ngOnInit(){let{aboutHTML:n,serverStats:e,serverConfig:i}=this.route.snapshot.data.instanceData;this.serverStats=e,this.serverConfig=i,this.aboutHTML=n,this.menuEntries=[{label:"General",routerLink:"/about/instance/home"}],(n.administrator||n.creationReason||n.maintenanceLifetime||n.businessModel)&&this.menuEntries.push({label:"Team",routerLink:"/about/instance/team"}),(n.moderationInformation||n.codeOfConduct)&&this.menuEntries.push({label:"Moderation and code of conduct",routerLink:"/about/instance/moderation"}),this.menuEntries.push({label:"Technical information",routerLink:"/about/instance/tech"});}};u(se,"\u0275fac",function(e){return new(e||se)();}),u(se,"\u0275cmp",O({type:se,selectors:[["my-about-instance"]],viewQuery:function(e,i){e&1&&J(i.descriptionWrapper,Bt,5),e&2&&ee();},decls:6,vars:4,consts:[[1,"margin-content"],["areChildren","true",3,"menuEntries"],[1,"content"],[3,"stats","config","aboutHTML"]],template:function(e,i){e&1&&(a(0,"div",0),_(1,"my-horizontal-menu",1),a(2,"div",2)(3,"div"),_(4,"router-outlet"),o(),_(5,"my-instance-stat-rules",3),o()()),e&2&&(r(),p("menuEntries",i.menuEntries),r(4),p("stats",i.serverStats)("config",i.serverConfig)("aboutHTML",i.aboutHTML));},dependencies:[Ge,Re,Le],styles:[".content[_ngcontent-%COMP%]{display:flex;justify-content:space-between;gap:calc(1.525rem + 3.3vw)}@media(min-width:1200px){.content[_ngcontent-%COMP%]{gap:4rem}}my-instance-stat-rules[_ngcontent-%COMP%]{min-width:600px;max-width:50%}@media screen and (max-width:1200px){.content[_ngcontent-%COMP%]{flex-wrap:wrap}my-instance-stat-rules[_ngcontent-%COMP%]{min-width:100%;max-width:unset}}"]}));var ze=se;var q=class q{instanceService=m(ye);customMarkupService=m(Ue);serverService=m(P);resolve(){return je([this.buildInstanceAboutObservable(),this.serverService.getServerStats(),this.serverService.getConfig()]).pipe(dn(([[n,e,i,T,{rootElement:g}],b,N])=>({serverStats:b,serverConfig:N,about:n,languages:e,categories:i,aboutHTML:T,descriptionElement:g})));}buildInstanceAboutObservable(){return this.instanceService.getAboutWithCache().pipe(mn(n=>je([Promise.resolve(n),this.instanceService.buildTranslatedLanguages(n),this.instanceService.buildTranslatedCategories(n),this.instanceService.buildHtml(n),this.customMarkupService.buildElement(n.instance.description)])));}};u(q,"\u0275fac",function(e){return new(e||q)();}),u(q,"\u0275prov",un({token:q,factory:q.ɵfac}));var Oe=q;var $t=["supportModal"];function Ft(t,n){if(t&1&&(a(0,"span",15),A(1),o()),t&2){let e=n.$implicit;r(),f(e);}}function xt(t,n){if(t&1&&(a(0,"div",11)(1,"span",14),l(2,2),o(),Q(3,Ft,2,1,"span",15,Z),o()),t&2){let e=d(2);r(3),K(e.languages);}}
1function wt(t,n){if(t&1&&(a(0,"span",16),A(1),o()),t&2){let e=n.$implicit;r(),f(e);}}function Dt(t,n){if(t&1&&(a(0,"div",12)(1,"span",14),l(2,3),o(),Q(3,wt,2,1,"span",16,Z),o()),t&2){let e=d(2);r(3),K(e.categories);}}function kt(t,n){if(t&1&&(a(0,"div",13),l(1,4),o()),t&2){let e=d(2);r(),L(e.config.instance.name),h(1);}}function Gt(t,n){if(t&1&&(a(0,"div",7)(1,"h4"),l(2,1),o(),s(3,xt,5,0,"div",11),s(4,Dt,5,0,"div",12),s(5,kt,2,1,"div",13),o()),t&2){let e=d();r(3),c(e.languages.length!==0?3:-1),r(),c(e.categories.length!==0?4:-1),r(),c(e.config.instance.isNSFW?5:-1);}}function zt(t,n){if(t&1&&(a(0,"div",8)(1,"h4"),l(2,5),o(),_(3,"my-custom-markup-container",17),o()),t&2){let e=d();r(3),p("content",e.descriptionElement);}}function Ht(t,n){if(t&1&&(a(0,"div",9)(1,"h4",18),l(2,6),o(),_(3,"div",19),o()),t&2){let e=d();r(3),p("innerHTML",e.aboutHTML.terms,B);}}var ce=class ce{destroyRef=m(Tn);router=m(Sn);route=m(F);serverService=m(P);supportModal=ne("supportModal");aboutHTML;descriptionElement;languages=[];categories=[];config;ngOnInit(){this.config=this.serverService.getHTMLConfig();let{languages:n,categories:e,aboutHTML:i,descriptionElement:T}=this.route.parent.snapshot.data.instanceData;this.aboutHTML=i,this.descriptionElement=T,this.languages=n,this.categories=e,this.route.data.pipe(Un(this.destroyRef)).subscribe(g=>{g?.isSupport&&setTimeout(()=>{this.supportModal().show().hidden.subscribe(()=>this.router.navigateByUrl("/about/instance/home"));},0);});}};u(ce,"\u0275fac",function(e){return new(e||ce)();}),u(ce,"\u0275cmp",O({type:ce,selectors:[["ng-component"]],viewQuery:function(e,i){e&1&&J(i.supportModal,$t,5),e&2&&ee();},decls:5,vars:5,consts:()=>{let n;n="Specifics";let e;e="Language: ";let i;i="Categories: ";let T;T=""+"\uFFFD0\uFFFD"+" is dedicated to sensitive content.";let g;g="Description";let b;
1return b="Terms",[["supportModal",""],n,e,i,T,g,b,[1,"block","specifics"],[1,"block","description"],[1,"block","terms"],[3,"name","content"],[1,"d-inline-block","me-2"],[1,"d-inline-block","mt-2"],[1,"fw-bold","text-content","mt-3"],[1,"text-content","top-1px","me-1"],[1,"pt-badge","badge-primary","me-1"],[1,"pt-badge","badge-secondary","me-1"],[1,"text-content",3,"content"],[1,"section-title"],[1,"text-content",3,"innerHTML"]];},template:function(e,i){e&1&&(s(0,Gt,6,3,"div",7),s(1,zt,4,1,"div",8),s(2,Ht,4,1,"div",9),_(3,"my-support-modal",10,0)),e&2&&(c(i.categories.length!==0||i.languages.length!==0||i.config.instance.isNSFW?0:-1),r(),c(i.descriptionElement?1:-1),r(),c(i.aboutHTML.terms?2:-1),r(),p("name",i.config.instance.name)("content",i.config.instance.support.text));},dependencies:[Xn,zn],styles:["h4[_ngcontent-%COMP%]{color:var(--fg-300);font-size:18px;font-weight:700;margin-bottom:.25rem}.text-content[_ngcontent-%COMP%]{color:var(--fg-200)}.block[_ngcontent-%COMP%]{margin-bottom:1rem}"]}));var Ne=ce;function Xt(t,n){if(t&1&&(a(0,"div",3)(1,"h4",5),l(2,0),o(),_(3,"div",6),o()),t&2){let e=d();r(3),p("innerHTML",e.aboutHTML.moderationInformation,B);}}function Wt(t,n){if(t&1&&(a(0,"div",4)(1,"h4",5),l(2,1),o(),_(3,"div",6),o()),t&2){let e=d();r(3),p("innerHTML",e.aboutHTML.codeOfConduct,B);}}var de=class de{route=m(F);serverService=m(P);aboutHTML;get instanceName(){return this.serverService.getHTMLConfig().instance.name;}ngOnInit(){let{aboutHTML:n}=this.route.parent.snapshot.data.instanceData;this.aboutHTML=n;}};u(de,"\u0275fac",function(e){return new(e||de)();}),u(de,"\u0275cmp",O({type:de,selectors:[["ng-component"]],decls:3,vars:2,consts:()=>{let n;n="Moderation information";let e;return e="Code of conduct",[n,e,["myPluginSelector","","pluginSelectorId","about-instance-moderation"],[1,"block","moderation-information"],[1,"block","code-of-conduct"],[1,"section-title"],[3,"innerHTML"]];},template:function(e,i){e&1&&(a(0,"div",2),s(1,Xt,4,1,"div",3),s(2,Wt,4,1,"div",4),o()),e&2&&(r(),c(i.aboutHTML.moderationInformation?1:-1),r(),c(i.aboutHTML.codeOfConduct?2:-1));},dependencies:[j],styles:["h4[_ngcontent-%COMP%]{color:var(--fg-300);font-size:18px;font-weight:700;margin-bottom:.25rem}.text-content[_ngcontent-%COMP%]{color:var(--fg-200)}.block[_ngcontent-%COMP%]{margin-bottom:1rem}"]}));var He=de;function Vt(t,n){if(t&1&&(E(0,"div",4)(1,"h4"),l(2,0),C(),M(3,"div",8),C()),t&2){let e=d();r(3),H("innerHTML",e.aboutHTML.administrator,B);}}function jt(t,n){if(t&1&&(E(0,"div",5)(1,"h4"),l(2,1),C(),M(3,"div",8),C()),t&2){let e=d();r(2),L(e.instanceName),h(2),r(),H("innerHTML",e.aboutHTML.creationReason,B);}}function Yt(t,n){if(t&1&&(E(0,"div",6)(1,"h4"),l(2,2),C(),M(3,"div",9),C()),t&2){let e=d();r(2),L(e.instanceName),h(2),r(),H("innerHTML",e.aboutHTML.maintenanceLifetime,B);}}function qt(t,n){if(t&1&&(E(0,"div",7)(1,"h4"),l(2,3),C(),M(3,"div",8),C()),t&2){let e=d();r(2),L(e.instanceName),h(2),r(),H("innerHTML",e.aboutHTML.businessModel,B);}}var me=class me{route=m(F);serverService=m(P);aboutHTML;get instanceName(){return this.serverService.getHTMLConfig().instance.name;}ngOnInit(){let{aboutHTML:n}=this.route.parent.snapshot.data.instanceData;this.aboutHTML=n;}};u(me,"\u0275fac",function(e){return new(e||me)();}),u(me,"\u0275cmp",O({type:me,selectors:[["ng-component"]],decls:4,vars:4,consts:()=>{let n;n="Who we are";let e;e="Why we created "+"\uFFFD0\uFFFD"+"";let i;i="How long we plan to maintain "+"\uFFFD0\uFFFD"+"";let T;return T="How we will pay for keeping "+"\uFFFD0\uFFFD"+" running",[n,e,i,T,[1,"block","administrator"],[1,"block","creation-reason"],[1,"block","maintenance-lifetime"],[1,"block","business-model"],[1,"text-content",3,"innerHTML"],[3,"innerHTML"]];},template:function(e,i){e&1&&(s(0,Vt,4,1,"div",4),s(1,jt,4,2,"div",5),s(2,Yt,4,2,"div",6),s(3,qt,4,2,"div",7)),e&2&&(c(i.aboutHTML.administrator?0:-1),r(),c(i.aboutHTML.creationReason?1:-1),r(),c(i.aboutHTML.maintenanceLifetime?2:-1),r(),c(i.aboutHTML.businessModel?3:-1));},styles:["h4[_ngcontent-%COMP%]{color:var(--fg-300);font-size:18px;font-weight:700;margin-bottom:.25rem}.text-content[_ngcontent-%COMP%]{color:var(--fg-200)}.block[_ngcontent-%COMP%]{margin-bottom:1rem}"]}));var Xe=me;function Zt(t,n){if(t&1&&(a(0,"div",2)(1,"h4",5),l(2,1),o(),_(3,"div",6),o()),t&2){let e=d();r(3),p("innerHTML",e.aboutHTML.hardwareInformation,B);}}var ue=class ue{route=m(F);serverService=m(P);aboutHTML;get instanceName(){return this.serverService.getHTMLConfig().instance.name;}ngOnInit(){let{aboutHTML:n}=this.route.parent.snapshot.data.instanceData;this.aboutHTML=n;}};u(ue,"\u0275fac",function(e){return new(e||ue)();}),u(ue,"\u0275cmp",O({type:ue,selectors:[["ng-component"]],decls:5,vars:1,consts:()=>{let n;n="FEATURES";let e;return e="Hardware information",[n,e,["myPluginSelector","","pluginSelectorId","about-instance-other
1-information"],["myPluginSelector","","pluginSelectorId","about-instance-features"],[1,"visually-hidden"],[1,"section-title"],[3,"innerHTML"]];},template:function(e,i){e&1&&(s(0,Zt,4,1,"div",2),a(1,"div",3)(2,"h4",4),l(3,0),o(),_(4,"my-instance-features-table"),o()),e&2&&c(i.aboutHTML.hardwareInformation?0:-1);},dependencies:[j,Wn],styles:["h4[_ngcontent-%COMP%]{color:var(--fg-300);font-size:18px;font-weight:700;margin-bottom:.25rem}.text-content[_ngcontent-%COMP%]{color:var(--fg-200)}.block[_ngcontent-%COMP%]{margin-bottom:1rem}"]}));var We=ue;var Zn=[{path:"instance",providers:[Oe],component:ze,data:{meta:{title:"About this platform"}},resolve:{instanceData:Oe},children:[{path:"",redirectTo:"home",pathMatch:"full"},{path:"home",component:Ne},{path:"support",component:Ne,data:{isSupport:!0}},{path:"team",component:Xe},{path:"tech",component:We},{path:"moderation",component:He}]}];var Qt=["supportModal"];function Kt(t,n){if(t&1&&(a(0,"div",6),_(1,"img",21),o()),t&2){let e=d();r(),p("src",e.bannerUrl,U);}}function Jt(t,n){if(t&1&&(a(0,"div",8),_(1,"img",21),o()),t&2){let e=d();r(),p("src",e.avatarUrl,U);}}function eo(t,n){if(t&1&&(a(0,"a",13),_(1,"my-global-icon",22),o()),t&2){let e=d();p("href",e.config.instance.social.mastodonLink,U);}}function no(t,n){if(t&1&&(a(0,"a",14),_(1,"my-global-icon",23),o()),t&2){let e=d();p("href",e.config.instance.social.xLink,U);}}function to(t,n){if(t&1&&(a(0,"a",15),_(1,"my-global-icon",24),o()),t&2){let e=d();p("href",e.config.instance.social.blueskyLink,U);}}function oo(t,n){if(t&1&&(a(0,"a",16),_(1,"my-global-icon",25),o()),t&2){let e=d();p("href",e.config.instance.social.externalLink,U);}}function io(t,n){t&1&&(a(0,"my-button",18),l(1,1),o());}function ao(t,n){t&1&&(a(0,"my-button",19),l(1,2),o());}var Te=class Te{server=m(P);supportModal=ne("supportModal");bannerUrl;avatarUrl;menuEntries=[];config;ngOnInit(){this.config=this.server.getHTMLConfig(),this.bannerUrl=this.config.instance.banners.length!==0?yn(this.config.instance.banners,"width").fileUrl:void 0,this.avatarUrl=te(this.config.instance.avatars,110),this.menuEntries=[{label:"Platform",routerLink:"/about/instance",pluginSelectorId:"about-menu-instance"},{label:"PeerTube",routerLink:"/about/peertube",pluginSelectorId:"about-menu-peertube"},{label:"Network",routerLink:"/about/follows",pluginSelectorId:"about-menu-network"}];}isContactFormEnabled(){return this.config.email.enabled&&this.config.contactForm.enabled;}};u(Te,"\u0275fac",function(e){return new(e||Te)();}),u(Te,"\u0275cmp",O({type:Te,selectors:[["my-about"]],viewQuery:function(e,i){e&1&&J(i.supportModal,Qt,5),e&2&&ee();},decls:26,vars:11,consts:()=>{let n;n="Go to the Mastodon profile";let e;e="Go to the X profile";let i;i="Go to the Bluesky profile";let T;T="Go to the external website";let g;g="About";let b;b="Contact us";let N;return N="Support",[g,b,N,[1,"margin-content"],["iconName","help"],[1,"instance-info-container"],[1,"banner"],[1,"instance-info"],[1,"avatar"],[1,"instance-name"],[1,"instance-description"],[1,"ms-auto"],[1,"social-buttons","d-flex","flex-wrap","justify-content-end"],["title",n,"target","_blank","rel","noopener noreferrer",1,"media","peertube-button-link","rounded-icon-button","mb-3",3,"href"],["title",e,"target","_blank","rel","noopener noreferrer",1,"media","peertube-button-link","rounded-icon-button","mb-3",3,"href"],["title",i,"target","_blank","rel","noopener noreferrer",1,"media","peertube-button-link","rounded-icon-button","mb-3",3,"href"],["title",T,"target","_blank","rel","noopener noreferrer",1,"external-link","peertube-button-link","rounded-icon-button","mb-3",3,"href"],[1,"d-flex","flex-wrap","justify-content-end"],["theme","primary","ptRouterLink","/about/contact",1,"ms-3"],["theme","secondary","ptRouterLink","/about/instance/support",1,"ms-3"],["withMarginBottom","false",3,"menuEntries"],["alt","",3,"src"],["iconName","mastodon"],["iconName","x-twitter"],["iconName","bluesky"],["iconName","link"]];},template:function(e,i){e&1&&(a(0,"div")(1,"div",3)(2,"h1"),_(3,"my-global-icon",4),G(4),l(5,0),z(),o(),a(6,"div",5),s(7,Kt,2,1,"div",6),a(8,"div",7),s(9,Jt,2,1,"div",8),a(10,"div")(11,"div",9),A(12),o(),a(13,"div",10),A(14),o()(),a(15,"div",11)(16,"div",12),s(17,eo,2,1,"a",13),s(18,no,2,1,"a",14),s(19,to,2,1,"a",15),s(20,oo,2,1,"a",16),o(),a(21,"div",17),s(22,io,2,0,"my-button",18),s(23,ao,2,0,"my-button",19),o()()()(),_(24,"my-horizontal-menu",20),o(),_(25,"router-outlet"),o()),e&2&&(r(7),c(i.bannerUrl?7:-1),r(2),c(i.avatarUrl?9:-1),r(3),f(i.config.instance.name),r(2),f(i.config.instance.shortDe
1scription),r(3),c(i.config.instance.social.mastodonLink?17:-1),r(),c(i.config.instance.social.xLink?18:-1),r(),c(i.config.instance.social.blueskyLink?19:-1),r(),c(i.config.instance.social.externalLink?20:-1),r(2),c(i.isContactFormEnabled()?22:-1),r(),c(i.config.instance.support.text?23:-1),r(),p("menuEntries",i.menuEntries));},dependencies:[Le,Re,oe,Ie],styles:['h1[_ngcontent-%COMP%]{font-weight:700;font-size:calc(1.325rem + .9vw)}@media(min-width:1200px){h1[_ngcontent-%COMP%]{font-size:2rem}}h1[_ngcontent-%COMP%]{margin-bottom:calc(1.275rem + .3vw)}@media(min-width:1200px){h1[_ngcontent-%COMP%]{margin-bottom:1.5rem}}h1[_ngcontent-%COMP%] my-global-icon[_ngcontent-%COMP%]{margin-inline-end:.5rem;display:inline-block;width:24px;height:24px;line-height:24px}.instance-info-container[_ngcontent-%COMP%]{background:var(--bg-secondary-400);border-radius:14px;margin-bottom:calc(1.325rem + .9vw)}@media(min-width:1200px){.instance-info-container[_ngcontent-%COMP%]{margin-bottom:2rem}}.instance-info[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:1.25rem;padding:calc(1.3rem + .6vw)}@media(min-width:1200px){.instance-info[_ngcontent-%COMP%]{padding:1.75rem}}.avatar[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-radius:31%;width:110px;height:110px}.banner[_ngcontent-%COMP%]{position:relative;overflow:hidden}.banner[_ngcontent-%COMP%]:after{content:"";pointer-events:none;width:100%;height:100%;position:absolute;left:0;top:0;background:linear-gradient(transparent 73%,var(--bg-secondary-400))}.banner[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{border-start-start-radius:14px;border-start-end-radius:14px;border-end-start-radius:0;border-end-end-radius:0}.instance-name[_ngcontent-%COMP%]{color:var(--fg-350);font-weight:700;line-height:1;margin-bottom:.5rem;font-size:calc(1.35rem + 1.2vw)}@media(min-width:1200px){.instance-name[_ngcontent-%COMP%]{font-size:2.25rem}}.instance-description[_ngcontent-%COMP%]{color:var(--fg-300);font-size:1.25rem}.social-buttons[_ngcontent-%COMP%] .peertube-button-link[_ngcontent-%COMP%]{margin-inline-start:.5rem}.social-buttons[_ngcontent-%COMP%] .media[_ngcontent-%COMP%]{color:var(--fg-300);background-color:var(--bg-secondary-450);border:1px solid var(--bg-secondary-450)}.social-buttons[_ngcontent-%COMP%] .media[_ngcontent-%COMP%]:hover{color:var(--fg-300);background-color:var(--bg-secondary-400)}.social-buttons[_ngcontent-%COMP%] .media[_ngcontent-%COMP%]:active{background-color:var(--bg-secondary-350)}.social-buttons[_ngcontent-%COMP%] .external-link[_ngcontent-%COMP%]{color:var(--bg-secondary-350);background-color:var(--fg-350);border:1px solid var(--fg-350)}.social-buttons[_ngcontent-%COMP%] .external-link[_ngcontent-%COMP%]:hover{background-color:var(--fg-400);color:var(--bg-secondary-400)}.social-buttons[_ngcontent-%COMP%] .external-link[_ngcontent-%COMP%]:active{background-color:var(--fg-450)}']}));var Ve=Te;var Za=[{path:"",component:Ve,providers:[Be,Ue,kn],children:[{path:"",redirectTo:"instance",pathMatch:"full"},...Zn,{path:"peertube",component:we,data:{meta:{title:"About PeerTube"}}},{path:"follows",component:xe,data:{meta:{title:"About this platform's network"}}},{path:"contact",component:ke,data:{meta:{title:"Contact"}}}]}];export{Za as default};/**i18n:347eeb695970c32bc275618edc2e751c67145d9fc3012e70543c114a99b9e016*/
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.