import{a as U}from"./chunk-UFSC6OU6.js";import"./chunk-CSPBGCHB.js";import"./chunk-CR4K7T5L.js";import{Aa as F,Da as r,Db as i,Eb as M,Fb as T,Jb as c,Kd as D,Na as z,Yb as m,Yd as u,_b as C,ba as A,gb as P,hb as g,jc as S,mb as k,nb as n,ob as t,pb as p,tb as l,ub as E,xd as Y}from"./chunk-ZSQR4KTU.js";import{i as O}from"./chunk-IQVXR75E.js";function W(e,o){e&1&&(l(0),i(1,1),E());}function j(e,o){e&1&&(l(0),i(1,2),E());}function B(e,o){if(e&1&&(n(0,"div",17)(1,"strong"),m(2),t(),n(3,"span",19),i(4,0),t(),n(5,"div",20),P(6,W,2,0,"ng-container")(7,j,2,0,"ng-container"),t(),p(8,"my-login-link",21),t()),e&2){let _=c();r(2),C("",_.status,"."),r(4),g(_.type==="video"?6:7);}}function H(e,o){e&1&&(l(0),i(1,4),E());}function K(e,o){e&1&&(l(0),i(1,5),E());}function Q(e,o){if(e&1&&(n(0,"div",17)(1,"strong"),m(2),t(),n(3,"span",19),i(4,3),t(),n(5,"div",20),P(6,H,2,0,"ng-container")(7,K,2,0,"ng-container"),t()()),e&2){let _=c();r(2),C("",_.status,"."),r(4),g(_.type==="video"?6:7);}}function J(e,o){if(e&1&&(n(0,"div",17)(1,"strong"),m(2),t(),n(3,"span",19),m(4,"I'm a teapot."),t(),n(5,"div",20),i(6,6),t(),n(7,"div",22),i(8,7),t()()),e&2){let _=c();r(2),C("",_.status,".");}}function V(e,o){if(e&1&&(l(0),i(1,12),E()),e&2){let _=c(2);r(),M(_.pathname),T(1);}}function Z(e,o){if(e&1&&(l(0),i(1,13),E()),e&2){let _=c(2);r(),M(_.pathname),T(1);}}function ee(e,o){e&1&&(l(0),i(1,14),E());}function te(e,o){e&1&&(l(0),i(1,15),E());}function ne(e,o){if(e&1&&(n(0,"div",17)(1,"strong"),m(2),t(),n(3,"span",19),i(4,8),t(),n(5,"div",20),P(6,V,2,1,"ng-container")(7,Z,2,1,"ng-container"),t(),n(8,"div",23)(9,"span"),i(10,9),t(),n(11,"ul")(12,"li"),i(13,10),t(),n(14,"li"),P(15,ee,2,0,"ng-container")(16,te,2,0,"ng-container"),t(),n(17,"li"),i(18,11),t()()()()),e&2){let _=c();r(2),C("",_.status,"."),r(4),g(_.type==="video"?6:7),r(9),g(_.type==="video"?15:16);}}var q=(()=>{let o=class o{titleService=A(Y);router=A(D);status=u.NOT_FOUND_404;type="other";constructor(){let R=this.router.currentNavigation()?.extras.state;this.type=R?.type||this.type,this.status=R?.obj.status||this.status;}ngOnInit(){this.pathname.includes("teapot")&&(this.status=u.I_AM_A_TEAPOT_418,this.titleService.setTitle("Son unha teteira"+" - PeerTube"));}get pathname(){return window.location.pathname;}getMascotName(){switch(this.status){case u.I_AM_A_TEAPOT_418:return"happy";case u.FORBIDDEN_403:return"arguing";case u.NOT_FOUND_404:default:return"defeated";}}};O(o,"\u0275fac",function(s){return new(s||o)();}),O(o,"\u0275cmp",z({type:o,selectors:[["my-error-page"]],decls:6,vars:5,consts:()=>{let R;R="Non tes permiso para acceder.";let s;s="Poder\xEDas ter que acceder para ver o v\xEDdeo.";let d;d="Poder\xEDas ter que acceder para ver o recurso.";let N;N="Non tes permiso para acceder.";let f;f="Pode que te\xF1as que comprobar se a t\xFAa conta ten permiso do v\xEDdeo ou a propietaria da instancia.";let G;G="Pode que debas comprobar se a t\xFAa conta est\xE1 permitida polo recurso ou a dona da instancia.";let h;h="O elemento solicitado pos\xFAe unha dozura cosustancial e aromas terrosos.";let $;$="Semella que a Sepia g\xFAstalle.";let y;y="\xC9 un erro.";let v;v="Raz\xF3n posibles:";let x;x="Pode que buscases unha ligaz\xF3n rota ou caducada";let I;I="Pode que escribises mal o enderezo ou URL";let L;L="Non atopamos ning\xFAn v\xEDdeo asociado ao URL "+"\uFFFD0\uFFFD"+" que est\xE1s buscando.";let w;w="Non atopamos ning\xFAn recurso asociado ao URL "+"\uFFFD0\uFFFD"+" que estabas buscando.";let X;X="\xC9 posible que o v\xEDdeo fose eliminado ou movido";let b;return b="\xC9 posible que o recurso fose eliminado ou movido",[R,s,d,N,f,G,h,$,y,v,x,I,L,w,X,b,[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(s,d){s&1&&(n(0,"div",16),P(1,B,9,2,"div",17)(2,Q,8,2,"div",17)(3,J,9,1,"div",17)(4,ne,19,3,"div",17),p(5,"img",18),t()),s&2&&(r(),g(d.status===401?1:d.status===403?2:d.status===418?3:4),r(4),k("src",S("/client/assets/images/mascot/",d.getMascotName(),".svg"),F)("alt",S("",d.status," mascot")));},dependencies:[U],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}}
/*# sourceMappingURL=error-page.component-XKQYPGOS.css.map */`]}));let e=o;return e;})();var ce=[{path:"",component:q,data:{meta:{title:"Non atopado"}}}];export{ce as default};/**i18n:347eeb695970c32bc275618edc2e751c67145d9fc3012e70543c114a99b9e016*///# sourceMappingURL=chunk-CJXATR6V.js.map