import{Ao as jx,Br as T$,Fn as MV,Gn as NV,Ja as g,Nr as S$,Oo as jw,X as D$,Zs as th,c as $b,fn as Kb,gt as Ex,ht as Et,ii as Vh,k as Bb,n as $B,nn as J$,pa as c5,rs as nh,s as $a,st as Dt,yc as wp}from"./chunk-b0nJCs5_.js";import"./chunk-CDRFWLLW.js";import"./chunk-d9xmxGyl.js";import{t as L}from"./chunk-CXzREeiB.js";function Y(e,o){e&1&&($b(0),S$(1,1),nh())}function U(e,o){e&1&&($b(0),S$(1,2),nh())}function q(e,o){if(e&1&&(wp(0,`div`,17)(1,`strong`),J$(2),Bb(),wp(3,`span`,19),S$(4,0),Bb(),wp(5,`div`,20),NV(6,Y,2,0,`ng-container`)(7,U,2,0,`ng-container`),Bb(),th(8,`my-login-link`,21),Bb()),e&2){let n=D$();$B(2),Kb(``,n.status,`.`),$B(4),MV(n.type===`video`?6:7)}}function W(e,o){e&1&&($b(0),S$(1,4),nh())}function j(e,o){e&1&&($b(0),S$(1,5),nh())}function H(e,o){if(e&1&&(wp(0,`div`,17)(1,`strong`),J$(2),Bb(),wp(3,`span`,19),S$(4,3),Bb(),wp(5,`div`,20),NV(6,W,2,0,`ng-container`)(7,j,2,0,`ng-container`),Bb()()),e&2){let n=D$();$B(2),Kb(``,n.status,`.`),$B(4),MV(n.type===`video`?6:7)}}function B(e,o){if(e&1&&(wp(0,`div`,17)(1,`strong`),J$(2),Bb(),wp(3,`span`,19),J$(4,`I'm a teapot.`),Bb(),wp(5,`div`,20),S$(6,6),Bb(),wp(7,`div`,22),S$(8,7),Bb()()),e&2){let n=D$();$B(2),Kb(``,n.status,`.`)}}function J(e,o){if(e&1&&($b(0),S$(1,12),nh()),e&2){let n=D$(2);$B(),jx(n.pathname),T$(1)}}function K(e,o){if(e&1&&($b(0),S$(1,13),nh()),e&2){let n=D$(2);$B(),jx(n.pathname),T$(1)}}function Q(e,o){e&1&&($b(0),S$(1,14),nh())}function V(e,o){e&1&&($b(0),S$(1,15),nh())}function Z(e,o){if(e&1&&(wp(0,`div`,17)(1,`strong`),J$(2),Bb(),wp(3,`span`,19),S$(4,8),Bb(),wp(5,`div`,20),NV(6,J,2,1,`ng-container`)(7,K,2,1,`ng-container`),Bb(),wp(8,`div`,23)(9,`span`),S$(10,9),Bb(),wp(11,`ul`)(12,`li`),S$(13,10),Bb(),wp(14,`li`),NV(15,Q,2,0,`ng-container`)(16,V,2,0,`ng-container`),Bb(),wp(17,`li`),S$(18,11),Bb()()()()),e&2){let n=D$();$B(2),Kb(``,n.status,`.`),$B(4),MV(n.type===`video`?6:7),$B(9),MV(n.type===`video`?15:16)}}var ce=[{path:``,component:class e{titleService=g(Vh);router=g(Et);status=Dt.NOT_FOUND_404;type=`other`;constructor(){let o=this.router.currentNavigation()?.extras.state;this.type=o?.type||this.type,this.status=o?.obj.status||this.status}ngOnInit(){this.pathname.includes(`teapot`)&&(this.status=Dt.I_AM_A_TEAPOT_418,this.titleService.setTitle("我是茶壶"+` - PeerTube`))}get pathname(){return window.location.pathname}getMascotName(){switch(this.status){case Dt.I_AM_A_TEAPOT_418:return`happy`;case Dt.FORBIDDEN_403:return`arguing`;case Dt.NOT_FOUND_404:default:return`defeated`}}static ɵfac=function(n){return new(n||e)};static ɵcmp=$a({type:e,selectors:[[`my-error-page`]],decls:6,vars:5,consts:()=>{let o;o="你未在这里获得授权。";let n;n="你可能需要登录才能观看视频。";let d;d="你可能需要登录参能查看资源。";let S;S="你未在这里获得授权。";let M;M="你可能需要检查你的账户是否被视频或实例所有者允许。";let N;N="你可能需要检查你的账户是否被资源或实例所有者允许。";let f;f="请求的实体正文混合了甜味和浓厚的泥土味。";let G;G="乌贼似乎很喜欢。";let y;y="发生错误。";let h;h="可能的原因：";let $;$="你可能使用了一个过时的或者失效的链接";let v;v="你输入的地址或网址可能错误";let x;x=`我们找不到任何与你正在查找的 URL ${`�0�`} 相绑定的视频。`;let I;I=`我们找不到任何与你正在查找的 URL ${`�0�`} 相绑定的资源。`;let b;b="该视频可能已被移除或删除";let L;return L="该资源可能已被移除或删除",[o,n,d,S,M,N,f,G,y,h,$,v,x,I,b,L,[1,`root`],[1,`box`],[1,`mb-4`,`h-auto`,3,`src`,`alt`],[1,`ms-1`,`muted`],[1,`text`,`mt-4`],[`className`,`peertube-button-big-link primary-button mt-5`],[1,`muted`],[1,`muted`,`mt-4`]]},template:function(n,d){n&1&&(wp(0,`div`,16),NV(1,q,9,2,`div`,17)(2,H,8,2,`div`,17)(3,B,9,1,`div`,17)(4,Z,19,3,`div`,17),th(5,`img`,18),Bb()),n&2&&($B(),MV(d.status===401?1:d.status===403?2:d.status===418?3:4),$B(4),Ex(`src`,c5(`/client/assets/images/mascot/`,d.getMascotName(),`.svg`),jw)(`alt`,c5(``,d.status,` mascot`)))},dependencies:[L],styles:[`.root[_ngcontent-%COMP%]{height:100%;text-align:center;display:flex;justify-content:center;flex-direction:column-reverse;margin-inline-start:auto;margin-inline-end:auto;padding-top:calc(2.025rem + 9.3vw)}@media(min-width:1200px){.root[_ngcontent-%COMP%]{padding-top:9rem}}.root[_ngcontent-%COMP%]{width:calc(5.625rem + 52.5vw)}@media(min-width:1200px){.root[_ngcontent-%COMP%]{width:45rem}}.root[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]{text-align:start;padding:0 15px;font-size:1.25rem}.root[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-inline-start:auto;width:calc(2.525rem + 15.3vw)}@media(min-width:1200px){.root[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:14rem}}@media screen and (max-width:500px){.root[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{margin-inline-end:auto}}`],changeDetection:1})},data:{meta:{title:"未找到"}}}];export{ce as default};
//# debugId=48795a58-e0a4-554a-a94c-be1ca77352fa
//# sourceMappingURL=chunk-COwLXdAq.js.map