PageSourceSearch

https://www.terrakom.hr/en/chunk-IPGQWVAH.js

js terrakom.hr collected 2026-10-07 15:54:11 UTC 5,383 bytes, 1 lines download raw bytes

1import"./chunk-JQTBR75V.js";import{a as O,b as G}from"./chunk-QN5OJML4.js";import{g as b}from"./chunk-KE6MSYCF.js";import"./chunk-VDLINJYI.js";import{m as R,n as $}from"./chunk-5N6Y7JLR.js";import"./chunk-N2KM36TT.js";import"./chunk-LQ2OT4YH.js";import{Bb as x,Ic as d,Jc as s,Qb as I,Rb as _,Sb as c,Sc as U,Tc as v,Vb as T,Wb as f,Xb as E,Yb as l,Zb as a,_b as N,eb as C,jb as o,la as D,mc as h,nc as k,oc as m,uc as r}from"./chunk-VWWRD4PD.js";var y=n=>[n],j=()=>[],g=(n,t)=>t.id;function X(n,t){if(n&1&&(l(0,"span",13),d(1,"/"),a(),l(2,"a",18),d(3),a()),n&2){let e=r().$implicit;o(2),E("routerLink",e.path),o(),s(e.title);}}function z(n,t){if(n&1&&_(0,X,4,2),n&2){let e=t.$implicit;c(e.path?0:-1);}}function w(n,t){if(n&1&&(l(0,"span",13),d(1,"/"),a(),l(2,"a",17),m(3,1),a(),T(4,z,1,1,null,null,g)),n&2){let e=r();o(4),f(e.breadcrumbs);}}function H(n,t){n&1&&(l(0,"span"),m(1,2),a());}function V(n,t){if(n&1&&(l(0,"span"),d(1),a()),n&2){let e=r();o(),s(e.currentFolder==null?null:e.currentFolder.title);}}function B(n,t){n&1&&(l(0,"h1",19),h(1,3),N(2,"span",20),k(),a(),l(3,"p",14),m(4,4),a());}function q(n,t){if(n&1&&(l(0,"p",14),d(1),a()),n&2){let e=r(2);o(),s(e.currentFolder==null?null:e.currentFolder.description);}}function J(n,t){if(n&1&&(l(0,"h1",19),d(1),a(),_(2,q,2,1,"p",14)),n&2){let e=r();o(),s(e.currentFolder==null?null:e.currentFolder.title),o(),c(e.currentFolder!=null&&e.currentFolder.description?2:-1);}}function Q(n,t){n&1&&(l(0,"p",14),m(1,5),a());}function W(n,t){if(n&1&&(l(0,"li")(1,"a",21),d(2),a(),l(3,"span",22),m(4,6),a()()),n&2){let e=t,i=r(5);o(),E("href",e.download_url,C),o(),s(i.announcedLabel(e.valid_from));}}function Y(n,t){if(n&1&&(l(0,"li")(1,"a",21),m(2,7),a()(),l(3,"li")(4,"a",21),m(5,8),a()()),n&2){let e=r(5);o(),E("href",e.anchorPricesUrl("xml"),C),o(3),E("href",e.anchorPricesUrl("csv"),C);}}function Z(n,t){if(n&1&&(l(0,"li")(1,"a",21),d(2),a()(),_(3,W,5,2,"li"),_(4,Y,6,2)),n&2){let e,i=t.$implicit,u=r(4);o(),E("href",i.download_url,C),o(),s(i.title),o(),c((e=i.announced)?3:-1,e),o(),c(u.anchorEnabled&&i.slug==="cjenik-usluga"?4:-1);}}function ee(n,t){if(n&1&&(l(0,"ul"),T(1,Z,5,4,null,null,g),a()),n&2){let e=r(2).$implicit,i=r();o(),f(i.documents(e));}}function ne(n,t){if(n&1&&(l(0,"li")(1,"a",18),d(2),a()()),n&2){let e=t.$implicit;o(),E("routerLink",e.path),o(),s(e.title);}}function te(n,t){if(n&1&&(l(0,"ul"),T(1,ne,3,2,"li",null,g),a()),n&2){let e=r(2).$implicit,i=r();o(),f(i.folders(e));}}function ie(n,t){if(n&1&&(l(0,"h2"),d(1),a(),_(2,ee,3,0,"ul"),_(3,te,3,0,"ul")),n&2){let e=r().$implicit,i=r();o(),s(e.title),o(),c(i.documents(e).length?2:-1),o(),c(i.folders(e).length?3:-1);}}function oe(n,t){if(n&1&&_(0,ie,4,3),n&2){let e=t.$implicit,i=r();c(i.documents(e).length||i.folders(e).length?0:-1);}}var K=class n{showHrNote=!b();announcedLabel=O();anchorEnabled=!1;anchorPricesUrl(t){return`/api/v3/public/pricelists/sidrene-cijene.${t}`;}documentsService=D(G);router=D(R);sections=[];currentFolder=null;breadcrumbs=[];isDocumentsPage=!0;ngOnInit(){let t=this.router.url.split(/[?#]/)[0];this.isDocumentsPage=t==="/dokumenti",this.documentsService.getTree().subscribe({next:e=>{if(this.sections=e,!this.isDocumentsPage){let i=this.findFolder(e,t);this.currentFolder=i?.folder||null,this.breadcrumbs=i?.parents||[];}}});}folders(t){return t.children.filter(e=>e.type!=="document");}documents(t){return t.children.filter(e=>e.type==="document");}findFolder(t,e,i=[]){for(let u of t){if(u.path===e)return{folder:u,parents:i};let S=this.findFolder(this.folders(u),e,[...i,u]);if(S)return S;}return null;}static ɵfac=function(e){return new(e||n)();};static ɵcmp=x({type:n,selectors:[["app-dokumenti"]],decls:18,vars:8,consts:()=>{let t;t="Home";let e;e="Documents";let i;i="Terrakom documents";let u;u="Terrakom "+"\uFFFD#2\uFFFD"+"documents"+"\uFFFD/#2\uFFFD"+"";let S;S=" Our documents in one place. Click on the document you are interested in, view it, print it or save it to your computer. ";let P;P="Documents are available in Croatian only.";let F;F="announcement";let M;M="Price list with anchor prices (XML)";let A;return A="Price list with anchor prices (CSV)",[t,e,i,u,S,P,F,M,A,[1,"hero","page-hero-band"],[1,"container"],[1,"crumbs"],["routerLink","/"],[1,"sep"],[1,"lede"],[1,"page-section"],[1,"prose"],["routerLink","/dokumenti"],[3,"routerLink"],[1,"display","display-lg"],[1,"hero-accent"],["target","_blank","rel","noopener",3,"href"],[1,"doc-announced-tag"]];},template:function(e,i){e&1&&(l(0,"section",9)(1,"div",10)(2,"div",11)(3,"a",12),m(4,0),a(),_(5,w,6,0),l(6,"span",13),d(7,"/"),a(),_(8,H,2,0,"span")(9,V,2,1,"span"),a(),_(10,B,5,0)(11,J,3,2),_(12,Q,2,0,"p",14),a()(),l(13,"section",15)(14,"div",10)(15,"div",16),T(16,oe,1,1,null,null,g),a()()()),e&2&&(o(5),c(i.isDocumentsPage?-1:5),o(3),c(i.isDocumentsPage?8:9),o(2),c(i.isDocumentsPage?10:11),o(2),c(i.showHrNote?12:-1),o(3),I("lang",i.showHrNote?"hr":null),o(),f(i.isDocumentsPage?i.sections:i.currentFolder?v(5,y,i.currentFolder):U(7,j)));},dependencies:[$],styles:[".doc-announced-tag[_ngcontent-%COMP%]{margin-left:8px;padding:2px 8px;border-radius:var(--r-pill);background:color-mix(in oklab,var(--accent) 15%,transparent);color:var(--accent);font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.06em}"]});};export{K as DokumentiComponent};/**i18n:97baa1ef1ebf6dcaee28ca1ca4b93787e31a3ad3f2312aaf47a9e90498e1fafc*/

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.