1import{I as ye,Y as xe,d as O,Q as J,u as P,Z as v,A as Z,c as h,o as m,F as ee,r as te,b as _,_ as we,i,a as s,f as N,g as S,w as L,k as ae,t as g,$ as Ie,a0 as Ae,a1 as G,a2 as $e,B as ke,a3 as Se,q as R,R as Pe,D as Le,T as Te,E as Ee,l as C,G as Me,U as Re,V as W,a4 as Ce,a5 as X,a6 as Ne,W as Oe,a7 as Ue,a8 as Be,a9 as De,M as Q,aa as je,J as Ye,K as Fe,L as Ve,N as He,P as Ke,ab as qe,h as ze,ac as Ge}from"#entry";import{_ as We}from"./Bxq6fd75.js";import{_ as Xe}from"./BaEOzt_x.js";import{_ as Qe,p as Je}from"./QZMJdJgt.js";import Ze from"./As5S7Lp9.js";import{b as et,u as tt}from"./CRcpPlxA.js";import{u as at,a as it}from"./BOGNW_YJ.js";import{u as lt}from"./CeBPEo5F.js";import"./CE1G-McA.js";import"./Bz8OOYU7.js";import"./B4nd7KSg.js";import"./CtzwUB5q.js";import"./C042330A.js";import"./BDvAdHz1.js";import"./CNHzbBwf.js";import"./-n25ecFU.js";import"./BXgnc8VG.js";import"./hxJLAbO3.js";import"./B6xruAGs.js";import"./zu_p8f5M.js";import"./s6cB6ZXe.js";const rt=` 2 ${ye} 3 ${xe} 4 5 query Article($locale: SiteLocale, $slug: String) { 6 article(locale: $locale, filter: { slug: { eq: $slug } }) { 7 _modelApiKey 8 _allSlugLocales { 9 value 10 locale 11 } 12 _allPublishTranslationLocales { 13 value 14 locale 15 } 16 author 17 category { 18 id 19 name 20 } 21 id 22 createdAt 23 excerpt 24 activeAnchors 25 body { 26 blocks { 27 __typename 28 ... on BlockHtmlRecord { 29 id 30 code 31 } 32 ... on HubspotFormRecord { 33 id 34 referenceId 35 portalId 36 formId 37 } 38 ... on ImageRecord { 39 id 40 image { 41 alt 42 url 43 width 44 height 45 mimeType 46 title 47 responsiveImage( 48 imgixParams: { auto: format, crop: focalpoint, fit: crop, ar: "16:9" } 49 ) { 50 ...Image 51 } 52 } 53 } 54 ... on ImageGalleryRecord { 55 id 56 images { 57 title 58 alt 59 url 60 width 61 height 62 mimeType 63 responsiveImage( 64 imgixParams: { auto: format, crop: focalpoint, fit: crop, ar: "16:9" } 65 ) { 66 ...Image 67 } 68 } 69 } 70 ... on VideoEmbedRecord { 71 id 72 video { 73 url 74 title 75 thumbnailUrl 76 height 77 provider 78 providerUid 79 width 80 } 81 } 82 ... on LeadParagraphRecord { 83 id 84 lead 85 } 86 ... on TableRecord { 87 id 88 table 89 } 90 ... on InfoBoxRecord { 91 id 92 overrideTitle 93 icon 94 variant 95 text 96 } 97 ...ReadAlso 98 } 99 value 100 } 101 image { 102 alt 103 url 104 width 105 height 106 mimeType 107 title 108 responsiveImage(imgixParams: { auto: compress, crop: focalpoint, fit: crop, w: 1920 }) { 109 ...Image 110 } 111 } 112 readTime 113 title 114 slug 115 publishTranslation 116 noIndex 117 _firstPublishedAt 118 _updatedAt 119 _seoMetaTags { 120 attributes 121 content 122 tag 123 } 124 seoMetadata { 125 title 126 image { 127 url 128 width 129 height 130 } 131 } 132 } 133 } 134`;function ot(t){const a={"@type":t.type??"BlogPosting",headline:t.headline};return t.id&&(a["@id"]=t.id),t.description&&(a.description=t.description),t.imageId&&(a.image={"@id":t.imageId}),t.datePublished&&(a.datePublished=t.datePublished),t.dateModified&&(a.dateModified=t.dateModified),t.authorName&&(a.author={"@type":"Person",name:t.authorName}),t.thumbnailUrl&&(a.thumbnailUrl=t.thumbnailUrl),t.isPartOf&&(a.isPartOf=t.isPartOf),t.mainEntityOfPage&&(a.mainEntityOfPage=t.mainEntityOfPage),t.publisher&&(a.publisher=t.publisher),a}function st(t,a,r){const l=a.replace(/\/$/,""),p={"@type":"BreadcrumbList",itemListElement:t.map((o,n)=>({"@type":"ListItem",position:n+1,name:o.name,item:o.item.startsWith("http")?o.item:`${l}${o.item}`}))};return r&&(p["@id"]=r),p}const nt={class:"flex w-fit gap-6"},ct=["href","title"],ut=O({__name:"Share",setup(t){const a=Z(),r=J(),{t:l}=P(),p=l("social.share.emailSubject"),o=l("social.share.emailLink"),n=v([{name:"LinkedIn",href:`https://www.linkedin.com/sharing/share-offsite/?url=${a.public.appUrl}${r.path}`,icon:"linkedin-circled",title:l("social.share.linkedin")},{name:"Facebook",href:`https://www.facebook.com/sharer.php?u=${a.public.appUrl}${r.path}`,icon:"facebook-circled",title:l("social.share.facebook")},{name:"X",href:`https://twitter.com/intent/tweet?url=${a.public.appUrl}${r.path}`,icon:"twitter-circled",title:l("social.share.twitter")},{name:"Mail",href:`mailto:?subject=${p}&body=${o}
134${a.public.appUrl}${r.path}`,icon:"mail-circled",title:l("social.share.email")}]);return(y,A)=>{const T=we;return m(),h("div",nt,[(m(!0),h(ee,null,te(i(n),f=>(m(),h("a",{key:f.name,href:f.href,title:f.title,target:"_blank",rel:"noopener noreferrer"},[_(T,{name:f.icon,size:"xl"},null,8,["name"])],8,ct))),128))])}}}),mt=Object.assign(ut,{__name:"Share"}),dt={class:"mt-10 border-t-2 border-gray1 pt-8 lg:mt-14 lg:pt-10"},pt={class:"flex flex-col justify-between gap-8 sm:flex-row"},gt={class:"text-gray-400 text-sm"},ht={class:"font-gt-flexa-light text-xl group-hover:underline"},_t={key:1},ft={class:"text-gray-400 text-sm"},vt={class:"font-gt-flexa-light text-xl group-hover:underline"},bt=O({__name:"ArticleNavigation",props:{prev:{default:null},next:{default:null}},setup(t){return(a,r)=>{const l=ae;return m(),h("nav",dt,[s("div",pt,[t.prev?(m(),N(l,{key:0,to:t.prev.url,class:"group flex max-w-[45%] flex-col gap-2"},{default:L(()=>[s("span",gt,g(a.$t("articleNav.previous")),1),s("span",ht,g(t.prev.title),1)]),_:1},8,["to"])):(m(),h("div",_t)),t.next?(m(),N(l,{key:2,to:t.next.url,class:"group ml-auto flex max-w-[45%] flex-col gap-2 text-right"},{default:L(()=>[s("span",ft,g(a.$t("articleNav.next")),1),s("span",vt,g(t.next.title),1)]),_:1},8,["to"])):S("",!0)])])}}}),yt=Object.assign(bt,{__name:"ArticleNavigation"});function xt(t){return t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()}const wt=new Set(["en","hr"]),It={knjiznica:{sl:"Knjižnica",en:"Library",hr:"Knjižnica"},library:{sl:"Knjižnica",en:"Library",hr:"Knjižnica"}};function At(t,a="sl",r={}){const l=a.split("-")[0].toLowerCase(),p=t.path.split("/").filter(Boolean);return wt.has(p[0])&&p.shift(),p.reduce((o,n,y)=>{const A=o[y-1]?.item||"";return o.push({item:A+"/"+n,name:r[y]||It[n]?.[l]||xt(n)}),o},[])}function $t(t,a){const{locale:r}=P();return Ie(()=>`/api/__collection-pager__/${encodeURIComponent(t)}/${encodeURIComponent(r.value)}/${encodeURIComponent(Ae(a))}`,{default:()=>({prev:null,next:null}),onResponseError({response:l}){}},"$CfXdWB6Oy7")}function kt(t,a="sl"){const r=G(t,a==="en"?"MMMM D, YYYY":"D. MMMM YYYY",{locales:a==="en"?"en-US":"sl-SL"}),l=G($e(),"YYYY-MM-DD HH:mm:ss");return{articleDateFormat:r,nowFormat:l}}const St={class:"container"},Pt={class:"grid grid-cols-6 gap-x-4 lg:grid-cols-12 lg:gap-x-8"},Lt={key:0,class:"col-span-6 lg:order-2 lg:col-span-4 lg:ml-10"},Tt={key:0,class:"mb-4"},Et={class:"relative mb-6 font-gt-flexa-light text-4xl lg:mb-10 lg:text-6xl"},Mt={class:"mb-8 flex flex-col border-b-2 border-t-2 border-gray1 py-4 text-sm sm:flex-row sm:justify-between lg:mb-10 lg:py-6 lg:text-base"},Rt={key:0},Ct={class:"container py-14 lg:mb-30 lg:pt-30"},Nt={class:"relative inline bg-white pr-4 lg:pr-14"},Ot=O({__name:"[slug]",async setup(t){let a,r;const{t:l}=P(),p={_modelApiKey:"section_cta",buttons:[{externalLink:"",pageLink:{__typename:"PageRecord",slug:l("articleSectionCTA.buttons[0].slug")},primary:!0,title:l("articleSectionCTA.buttons[0].title")},{externalLink:"",pageLink:{__typename:"PageRecord",slug:l("articleSectionCTA.buttons[1].slug")},primary:!1,title:l("articleSectionCTA.buttons[1].title")}],html:"",title:l("articleSectionCTA.title")},{locale:o}=P(),n=J(),{throwError:y,handleApiError:A}=ke(),T=Se(),f=Z(),{data:e,error:U}=([a,r]=R(()=>tt(rt,{variables:{locale:o.value,slug:n.params.slug}})),a=await a,r(),a);U.value&&A(U.value);const ie=f.public.environment==="production"&&!Pe();(!e.value?.article||ie&&e.value.article.publishTranslation!==!0)&&y(Le.NOT_FOUND);const le=Te(),B=at(e.value?.article?._allSlugLocales,e.value?.article?._allPublishTranslationLocales);le(B);const D=it(B);e.value?.article?.noIndex&<(),Ee(()=>{const c=(e.value?.article?._seoMetaTags||[]).map(u=>({...u,content:u.content??null,attributes:u.attributes??null})),d=Ye(c);return{...d,link:[...d.link||[],...D.link],meta:[...d.meta||[],...D.meta]}});const re=C(()=>Fe(o.value)),oe=C(()=>Ve[re.value]),$=f.public.appUrl.replace(/\/$/,""),E=`${$}${n.path}#webpage`,j=`${$}${n.path}#breadcrumb`,M=`${$}${n.path}#image`,Y=e.value?.article?.seoMetadata,b=Y?.image??e.value?.article?.image,F=C(()=>(e.value?.article?._seoMetaTags||[]).find(u=>u.attributes?.name==="description")?.attributes?.content??void 0),se=Y?.title??e.value?.article?.title,{usePageSchema:ne}=Me();
134ne([...b?[Re({id:M,url:b.url,width:b.width??void 0,height:b.height??void 0,caption:e.value?.article?.image?.alt??void 0})]:[],st(At(n,o.value,{1:e.value?.article?.title??""}),f.public.appUrl,j),ot({type:"Article",headline:e.value?.article?.title,description:F.value,imageId:b?M:void 0,datePublished:e.value?.article?._firstPublishedAt??void 0,dateModified:e.value?.article?._updatedAt??void 0,authorName:e.value?.article?.author??void 0,isPartOf:{"@id":E},mainEntityOfPage:{"@id":E},publisher:{"@id":He.ORG}}),et({id:E,url:`${$}${n.path}`,name:se,description:F.value,inLanguage:o.value,isPartOf:{"@id":oe.value.websiteId},about:{"@id":Ke.SOFTWARE_ID},primaryImageOfPage:b?{"@id":M}:void 0,breadcrumb:{"@id":j}})]);const{data:V}=([a,r]=R(()=>$t(Q.Article,()=>String(n.params.slug))),a=await a,r(),a),H=v([]),ce=e?.value.article.category.length?e.value.article.category.map(c=>c.id):[],{data:ue}=([a,r]=R(()=>je({variables:{locale:o.value,first:3,anyIn:ce,neq:e?.value.article.slug}})),a=await a,r(),a);H.value=ue.allArticles;const{articleDateFormat:me}=kt(e?.value.article.createdAt,o.value),x=v(),k=v([]);W(()=>{const c=document.getElementById("article-body");c&&(k.value=Array.from(c.querySelectorAll("h2, h3")))});const K=v(null),{height:de}=Ce(K),q=v(null),z=v(null);return W(async()=>{const{gsap:c}=await X(async()=>{const{gsap:u}=await import("./BNQceJ9j.js");return{gsap:u}},[],import.meta.url),{ScrollTrigger:d}=await X(async()=>{const{ScrollTrigger:u}=await import("./Mbo4-NSI.js");return{ScrollTrigger:u}},[],import.meta.url);c.registerPlugin(d),await Ne(()=>{z.value&&(q.value=c.timeline({ease:"power1.in",scrollTrigger:{scrub:.1,start:"top-=140px top",end:()=>"+="+de.value}})),k.value&&(c.utils.toArray(k.value).forEach((u,w)=>{d.create({trigger:u,start:"top-=140px top",end:"top center",onEnter:()=>{x.value=w},onEnterBack:()=>{w!==0&&(x.value=w-1)}})}),d.refresh())})}),Oe(()=>{q.value?.kill()}),(c,d)=>{const u=Be,w=We,pe=De,ge=ae,he=mt,_e=Xe,fe=yt,ve=Qe,be=Ze;return m(),h("div",null,[s("article",{ref_key:"rootNode",ref:K},[_(u,{lazyPreload:"",preload:"",class:"mb-8 h-[292px] w-full max-w-none object-cover lg:mb-16 lg:h-[560px]",sizes:"100vw",src:i(e)?.article.image?.responsiveImage?i(e)?.article.image?.responsiveImage?.src:i(e)?.article.image?.url,srcset:i(e)?.article.image?.responsiveImage?i(e)?.article.image?.responsiveImage?.webpSrcSet:void 0,width:i(e)?.article.image?.responsiveImage?i(e)?.article.image?.responsiveImage.width:i(e)?.article.image?.width,height:i(e)?.article.image?.responsiveImage?i(e)?.article.image?.responsiveImage.height:i(e)?.article.image?.height,alt:i(e)?.article.image?.alt?i(e)?.article.image?.alt:"",type:i(e)?.article.image?.mimeType},null,8,["src","srcset","width","height","alt","type"]),s("div",St,[s("div",Pt,[i(e).article?.activeAnchors?(m(),h("div",Lt,[_(pe,null,{default:L(()=>[_(w,{modelValue:i(x),"onUpdate:modelValue":d[0]||(d[0]=I=>qe(x)?x.value=I:null),data:i(k)},null,8,["modelValue","data"])]),_:1})])):S("",!0),s("div",{ref_key:"leftPinRef",ref:z,class:"col-span-6 lg:order-1 lg:col-span-8"},[s("header",null,[Array.isArray(i(e)?.article.category)&&i(e)?.article.category.length?(m(),h("nav",Tt,[(m(!0),h(ee,null,te(i(e)?.article.category,I=>(m(),N(ge,{key:I.id,class:"mr-2 bg-black p-1 text-sm tracking-wide text-white",to:i(T)({path:"/"+i(Je)[i(o)][i(Q).Article].path,query:{category:I.name}})},{default:L(()=>[ze(g(I.name),1)]),_:2},1032,["to"]))),128))])):S("",!0),s("h1",Et,g(i(e)?.article.title),1),s("div",Mt,[s("div",null,g(i(e)?.article.author?i(e)?.article.author+",":null)+" "+g(i(me)),1),i(e)?.article.readTime?(m(),h("div",Rt,g(i(e)?.article.readTime),1)):S("",!0)]),_(he,{class:"mb-10"})]),_(_e,{id:"article-body",class:"prose max-w-full lg:prose-lg",data:i(e)?.article.body},null,8,["data"]),_(fe,{prev:i(V)?.prev,next:i(V)?.next},null,8,["prev","next"])],512)])])],512),s("aside",null,[s("div",Ct,[s("div",{class:Ue([c.$style.strike,"mb-10 text-lg-semibold lg:mb-20 lg:text-xl-semibold"])},[s("div",Nt,g(c.$t("relatedContent")),1)],2),_(ve,{data:i(H),isScrollable:!0},null,8,["data"])])]),_(be,{data:p})])}}}),Ut="_strike_asjyh_2",Bt={strike:Ut},Dt={$style:Bt},sa=Ge(Ot,[["__cssModules",Dt]]);export{sa as default};
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.