import{a as U}from"./chunk-ZGATGWZM.js";import"./chunk-WIJHDNK2.js";import"./chunk-BUPI2ADN.js";import{Bb as u,Ca as l,Da as A,Db as p,Kb as k,Na as g,Tc as D,_a as m,ba as F,cb as n,cd as Y,db as t,eb as S,fb as d,gb as R,mb as i,nb as T,ob as M,qd as C,rb as c,vb as N,za as z}from"./chunk-X3RCWQ3R.js";import{i as s}from"./chunk-SR6RTMQI.js";function q(e,o){e&1&&(d(0),i(1,1),R());}function W(e,o){e&1&&(d(0),i(1,2),R());}function H(e,o){if(e&1&&(n(0,"div",17)(1,"strong"),u(2),t(),n(3,"span",19),i(4,0),t(),n(5,"div",20),g(6,q,2,0,"ng-container")(7,W,2,0,"ng-container"),t(),S(8,"my-login-link",21),t()),e&2){let _=c();l(2),p("",_.status,"."),l(4),m(_.type==="video"?6:7);}}function B(e,o){e&1&&(d(0),i(1,4),R());}function J(e,o){e&1&&(d(0),i(1,5),R());}function K(e,o){if(e&1&&(n(0,"div",17)(1,"strong"),u(2),t(),n(3,"span",19),i(4,3),t(),n(5,"div",20),g(6,B,2,0,"ng-container")(7,J,2,0,"ng-container"),t()()),e&2){let _=c();l(2),p("",_.status,"."),l(4),m(_.type==="video"?6:7);}}function Q(e,o){if(e&1&&(n(0,"div",17)(1,"strong"),u(2),t(),n(3,"span",19),u(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();l(2),p("",_.status,".");}}function V(e,o){if(e&1&&(d(0),i(1,12),R()),e&2){let _=c(2);l(),T(_.pathname),M(1);}}function Z(e,o){if(e&1&&(d(0),i(1,13),R()),e&2){let _=c(2);l(),T(_.pathname),M(1);}}function ee(e,o){e&1&&(d(0),i(1,14),R());}function te(e,o){e&1&&(d(0),i(1,15),R());}function ne(e,o){if(e&1&&(n(0,"div",17)(1,"strong"),u(2),t(),n(3,"span",19),i(4,8),t(),n(5,"div",20),g(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"),g(15,ee,2,0,"ng-container")(16,te,2,0,"ng-container"),t(),n(17,"li"),i(18,11),t()()()()),e&2){let _=c();l(2),p("",_.status,"."),l(4),m(_.type==="video"?6:7),l(9),m(_.type==="video"?15:16);}}var j=(()=>{let o=class o{constructor(P,E){s(this,"titleService");s(this,"router");s(this,"status",C.NOT_FOUND_404);s(this,"type","other");var O;this.titleService=P,this.router=E;let a=(O=this.router.getCurrentNavigation())==null?void 0:O.extras.state;this.type=(a==null?void 0:a.type)||this.type,this.status=(a==null?void 0:a.obj.status)||this.status;}ngOnInit(){this.pathname.includes("teapot")&&(this.status=C.I_AM_A_TEAPOT_418,this.titleService.setTitle("mi ilo pi telo kasi"+" - PeerTube"));}get pathname(){return window.location.pathname;}getMascotName(){switch(this.status){case C.I_AM_A_TEAPOT_418:return"happy";case C.FORBIDDEN_403:return"arguing";case C.NOT_FOUND_404:default:return"defeated";}}};s(o,"\u0275fac",function(E){return new(E||o)(A(D),A(Y));}),s(o,"\u0275cmp",F({type:o,selectors:[["my-error-page"]],standalone:!0,features:[k],decls:6,vars:5,consts:()=>{let P;P="sina ken ala lon ni.";let E;E="You might need to login to see the video.";let a;a="You might need to login to see the resource.";let O;O="sina ken ala lon ni.";let f;f="lawa pi ma ni anu lawa pi sitelen ni o toki e ni: sijelo sina o ken lukin e sitelen ni.";let G;G="lawa pi ma ni anu lawa pi ijo ni o toki e ni: sijelo sina o ken lukin e ijo ni.";let h;h="ijo pi wile sina li telo seli suwi pona.";let $;$="kala Sepija la ona li pona.";let y;y="ike a.";let v;v="ni li ken tan ni:";let x;x="nimi ni li pakala anu tan tenpo pini weka";let I;I="sina sitelen pakala e nimi linluwi";let L;L="mi sona ala e sitelen pi nimi linluwi \""+"\uFFFD0\uFFFD"+"\".";let w;w="mi sona ala e ijo pi nimi linluwi \""+"\uFFFD0\uFFFD"+"\".";let X;X="jan li tawa anu weka e sitelen";let b;return b="jan li tawa anu weka e ijo",[P,E,a,O,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(E,a){E&1&&(n(0,"div",16),g(1,H,9,2,"div",17)(2,K,8,2,"div",17)(3,Q,9,1,"div",17)(4,ne,19,3,"div",17),S(5,"img",18),t()),E&2&&(l(),m(a.status===401?1:a.status===403?2:a.status===418?3:4),l(4),N("src","/client/assets/images/mascot/",a.getMascotName(),".svg",z),N("alt","",a.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);width:calc(5.625rem + 52.5vw)}@media (min-width: 1200px){.root[_ngcontent-%COMP%]{padding-top:9rem}}@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-PAHICD6S.css.map */`]}));let e=o;return e;})();var Re=[{path:"",component:j,data:{meta:{title:"mi sona ala e lon ijo"}}}];export{Re as default};/**i18n:3d16453f213eb5db982e7e7dd90631843ac5d3f860726a614777c3e9e3f9b57e*///# sourceMappingURL=chunk-SOFJ2S5Z.js.map