import{a as D}from"./chunk-6FMEYPVK.js";import"./chunk-GCHKGY6V.js";import"./chunk-QYZO4RSP.js";import{Ab as M,Db as c,Ea as F,Ha as r,Hb as S,Hd as u,Qb as m,Sa as z,Sb as C,Ya as P,aa as p,hd as k,jb as g,ob as n,pb as t,qb as A,rb as l,sb as E,td as Y,yb as i,zb as T}from"./chunk-GKQGDBUU.js";import{i as O}from"./chunk-QVFSZZWQ.js";function W(e,o){e&1&&(l(0),i(1,1),E());}function q(e,o){e&1&&(l(0),i(1,2),E());}function j(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,q,2,0,"ng-container"),t(),A(8,"my-login-link",21),t()),e&2){let _=c();r(2),C("",_.status,"."),r(4),g(_.type==="video"?6:7);}}function B(e,o){e&1&&(l(0),i(1,4),E());}function H(e,o){e&1&&(l(0),i(1,5),E());}function V(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,B,2,0,"ng-container")(7,H,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 K(e,o){if(e&1&&(l(0),i(1,12),E()),e&2){let _=c(2);r(),T(_.pathname),M(1);}}function Q(e,o){if(e&1&&(l(0),i(1,13),E()),e&2){let _=c(2);r(),T(_.pathname),M(1);}}function Z(e,o){e&1&&(l(0),i(1,14),E());}function ee(e,o){e&1&&(l(0),i(1,15),E());}function te(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,K,2,1,"ng-container")(7,Q,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,Z,2,0,"ng-container")(16,ee,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 U=(()=>{let o=class o{titleService=p(k);router=p(Y);status=u.NOT_FOUND_404;type="other";constructor(){let d=this.router.getCurrentNavigation()?.extras.state;this.type=d?.type||this.type,this.status=d?.obj.status||this.status;}ngOnInit(){this.pathname.includes("teapot")&&(this.status=u.I_AM_A_TEAPOT_418,this.titleService.setTitle("Ja sam \u010Dajnik"+" - 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 d;d="Ovdje nisi autoriziran/a.";let s;s="Za prikaz videa mo\u017Eda \u0107e\u0161 se morati prijaviti.";let R;R="Za prikaz resursa mo\u017Eda \u0107e\u0161 se morati prijaviti.";let N;N="Ovdje nisi autoriziran/a.";let f;f="Mo\u017Eda mora\u0161 provjeriti je li je tvoj ra\u010Dun dozvoljen od vlasnika videa ili instance.";let G;G="Mo\u017Eda mora\u0161 provjeriti je li je tvoj ra\u010Dun dozvoljen od vlasnika resursa ili instance.";let h;h="Web zahtjev spaja slatke komadi\u0107e s blagom zemljanom notom.";let $;$="\u010Cini se da Sepia to voli.";let y;y="To je gre\u0161ka.";let v;v="Mogu\u0107i razlozi:";let x;x="Mo\u017Eda koristi\u0161 zastarjelu ili neispravnu popveznicu";let I;I="Mo\u017Eda si upisao/la neispravnu adresu ili URL";let L;L="Nismo mogli prona\u0107i nijedan video povezan s URL-om "+"\uFFFD0\uFFFD"+" koji tra\u017Ei\u0161.";let w;w="Nismo mogli prona\u0107i nijedan resurs povezan s URL-om "+"\uFFFD0\uFFFD"+" koji tra\u017Ei\u0161.";let X;X="Ovaj je video mo\u017Eda premje\u0161ten ili izbrisan";let b;return b="Ovaj je resurs mo\u017Eda premje\u0161ten ili izbrisan",[d,s,R,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,R){s&1&&(n(0,"div",16),P(1,j,9,2,"div",17)(2,V,8,2,"div",17)(3,J,9,1,"div",17)(4,te,19,3,"div",17),A(5,"img",18),t()),s&2&&(r(),g(R.status===401?1:R.status===403?2:R.status===418?3:4),r(4),S("src","/client/assets/images/mascot/",R.getMascotName(),".svg",F),S("alt","",R.status," mascot"));},dependencies:[D],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-PXEV4WFL.css.map */`]}));let e=o;return e;})();var se=[{path:"",component:U,data:{meta:{title:"Nije prona\u0111eno"}}}];export{se as default};/**i18n:42345378061bf3c93df67acfa161b751a7b03cc91f3ede7c1f1cdf2bba62fe26*///# sourceMappingURL=chunk-7OVK4CMO.js.map