1import{u as at,a as it,_ as lt,b as rt,c as ct,d as dt,e as mt,f as ut}from"./ZN_Ki3R3.js";import{_ as _t,u as pt,a as ft,b as gt,c as vt,d as ht}from"./D3563BwH.js";import{g as yt,_ as bt}from"./NMEOnO_X.js";import{f as wt,r as kt,t as xt,w as St,B as Et,u as Tt,d as $t,b as It,s as Ct,ab as ge,c as Nt,e as Lt,p as At,o as Dt,m as Pt,E as Wt,L as $,D as Vt,x as Mt,a as ve,_ as Ut,l as Ft,ac as Rt,y as Bt,q as Gt}from"./Bs1mdUfU.js";import{z as Yt,b as I,d as w,w as he,P as O,D as zt,H as jt,F as c,y as t,S as f,a6 as _,M as n,f as Ot,a0 as r,T as Ht,L as g,a2 as F,W as a,Z as i,Q as qt,Y as u,ac as Xt,aa as Kt,ad as Qt,ab as Zt,a8 as Jt,X as h,R as ee,n as es}from"./Be2K0us9.js";import{_ as ts}from"./-_Vj3COT.js";import{_ as ss}from"./DQ7Unn-k.js";import{_ as ns}from"./Cz1_Ox93.js";import{_ as os}from"./DmKNpy7e.js";import{_ as as}from"./wHCueE--.js";import{_ as is}from"./B2yswKkY.js";import{_ as ls}from"./DiarMbFf.js";import{_ as rs,a as cs,b as ds,c as ms}from"./DR4A_r48.js";import{_ as us}from"./oILcEWO_.js";import{_ as _s}from"./2AVvOerY.js";import{_ as ps}from"./DhKD0YiV.js";import{d as fs,g as ye}from"./CtD0XuRv.js";import{u as gs}from"./BE2nMDMA.js";import{u as vs}from"./mr7i4n1x.js";import{f as hs}from"./CDKqEiH8.js";import{d as ys}from"./Ckqy0G02.js";import"./BFgj3SUc.js";import"./CefkBe09.js";import"./BQAYAq3u.js";import"./BmU202Qa.js";import"./CT0P3U4q.js";import"./shIgSkkl.js";import"./CU8oO8u8.js";import"./D_zvRN0f.js";import"./BMOedyHQ.js";import"./nTy2vHGb.js";import"./Cur2tZ7Q.js";import"./zRhjK9dV.js";import"./B10jZ28P.js";import"./CezW7fx6.js";const bs={key:0,class:"fixed z-50 inset-0 flex justify-end","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true"},ws={class:"flex h-full md:w-[480px] sm:w-full"},ks={class:"flex flex-col bg-grayMedium dark:bg-dark-darkMain overflow-hidden shadow-xl transform transition-all md:w-[480px] sm:w-full"},xs={class:"xxl:mx-auto xxl:max-w-[1664px] xl:mx-[84px] lg:mx-12 md:mx-6"},Ss={class:"grid xxl:grid-cols-16 md:grid-cols-12 grid-cols-4 gap-3 lg:gap-5"},Es={class:"xxl:col-span-8 xl:col-span-5 lg:col-span-6 md:col-span-12 col-span-4"},Ts={key:0,class:"relative"},$s=["src","alt"],Is={key:0,class:"flex absolute bottom-0 left-0 m-3 p-1 bg-black opacity-60"},Cs={class:"text-[11px] text-grayDark font-semibold"},Ns=["src","alt"],Ls={key:0,class:"flex absolute bottom-0 left-0 m-3 p-1 bg-black opacity-60"},As={class:"text-[11px] text-grayDark font-semibold"},Ds={class:"xxl:col-span-8 xl:col-span-7 lg:col-span-6 md:col-span-12 col-span-4"},Ps={class:"flex items-center xxl:mb-6 xl:mb-4 lg:mt-0 md:mt-1 lg:mb-2"},Ws={class:"flex md:flex-row lg:pl-3 ml-4 mt-2 flex-col md:m-0"},Vs={class:"articleTitle"},Ms={class:"xxl:mx-auto xxl:max-w-[1664px] xl:mx-[84px] lg:mx-12 md:mx-6 mx-4"},Us={class:"grid xxl:grid-cols-16 md:grid-cols-12 grid-cols-4 gap-3 lg:gap-5"},Fs={class:"xxl:col-span-4 xl:col-span-3 lg:col-span-4 lg:flex hidden flex-col pr-5 border-r border-r-grayDark dark:border-dark-firstMain"},Rs={class:"xxl:col-span-8 xl:col-span-6 lg:col-span-8 md:col-span-12 col-span-4 mb-8"},Bs={class:"mb-3 lg:mb-6"},Gs={class:"hidden lg:flex gap-2 mb-5"},Ys={class:"mb-4",align:"center"},zs={key:0,class:"font-bold text-h3 text-darkMain dark:text-grayLight mb-2 md:mb-0"},js={class:"hidden lg:flex gap-2 mb-5"},Os={class:"hidden md:block"},Hs={class:"flex items-center text-darkMain dark:text-grayLight text-h4 md:text-h3 font-bold"},qs=["src"],Xs={class:"xxl:col-span-4 xl:col-span-3 hidden xl:flex flex-col pl-5 border-l border-l-grayDark dark:border-l-dark-firstMain"},Ks={class:"mb-4"},Qs={key:0,class:"flex items-center gap-2"},Zs={key:1,class:"flex gap-2"},Js={key:1,class:"flex w-full"},en=24,be=10,tn=3,sn=3,nn=Yt({__name:"index",async setup(on){let p,k;const{t:x}=wt(),te=kt(),se=xt(),ne=St(),oe=gs(),{sendAction:H}=Et(),{findPrimaryNavigation:ae}=Tt(),{$oneSignal:D}=$t(),{twitter:we,domesticFootballCatId:ke,sitename:xe,features:q}=It(),ie=Lt(),le=ie.public.isSr,re=ie.public.isGermanijak,ce=I({}),Se=w(()=>{var e;return ce.value[(e=l.value)==null?void 0:e.id]||null}),Ee=at(Se),Te=it(),{liveChatDrawer:R}=Ct(Te);he(R,e=>{e?window.addEventListener("popstate",G):window.removeEventListener("popstate",G)});const y=([p,k]=O(()=>Wt(`articles/${te.params.id}`)),p=await p,k(),p),l=I(y),S=I([y]),{data:an,pending:ln,error:rn}=([p,k]=O(()=>Pt("/api/articles/latest/5?isSpecial=1",{lazy:!0},"$mvdMgsuoDs")),p=await p,k(),p),de=vs(),{getMyInterests:$e,saveConvert:Ie,saveActions:me}=de,Ce=w(()=>de.personalized),X=()=>{setTimeout(()=>{typeof instgrm<"u"&&(instgrm==null||instgrm.Embeds.process()),typeof twttr<"u"&&(twttr==null||twttr.widgets.load()),At()},250)};let C,K,N;zt(async()=>{X(),D.getTags(o=>{V.value=o}),await $e(12,sn);const e=te.query.convertedAt;e&&(K=setTimeout(()=>{Ie({foreignId:y.id,type:"NEWS",domain:decodeURIComponent(e)})},2e3)),C=setTimeout(()=>{me(y)},3e3),N=setTimeout(async()=>{await H("read_article",y.id)},ge(y.content))}),jt(()=>{window.removeEventListener("popstate",G),C&&clearTimeout(C),K&&clearTimeout(K),N&&clearTimeout(N)});const P=I(null);y.has_global_video&&(P.value=([p,k]=O(()=>oe.getGlobalVideo()),p=await p,k(),p)),[p,k]=O(()=>pt(y)),await p,k();const E=I(!1),L=async e=>{var b;const o={title:l.value.title,url:location.href};e==="twitter"&&(o.twitterUser=we.user,o.hashtags=((b=l.value)==null?void 0:b.Tags.map(M=>M.name.replace(/ /g,"")).join(","))||"");const m=yt(e,o);E.value=!1,await H("share_article",y.id),Dt(m)},Ne=w(()=>
1{if(!l.value)return"";let e="";if(l.value.news_type_id!==$){const o=Vt(l.value.content);e+=`${x("reading_time")}: ${o}min | `}return e+=hs(l.value.publish_date,"E. dd.MM.yy. | HH:mm"),e}),Le=async()=>{try{await Bt(location.href),ne.addToast({type:"success",message:x("link_copied")})}catch{ne.addToast({type:"warning",message:x("link_copied_error")})}finally{E.value=!1}},W=()=>{E.value=!0},ue=w(()=>l.value?fe(l.value,ae(l.value).name):"/"),Q=w(()=>l.value?se.resolve({path:ue.value+x("routes.comments"),query:{commingFromNews:l.value.id}}).href:"#"),Z=w(()=>l.value?se.resolve(ue.value+x("routes.comments")+x("routes.new")).href:"#"),V=I({}),_e=w(()=>Object.keys(V.value)),B=w(()=>ys(new Date,l.value.publish_date)>en),Ae=e=>{D.isPushNotificationsEnabled(o=>{o||D.setSubscription(!0);const m=String(e.id);_e.value.includes(m)?(D.deleteTag(m),delete V.value[m]):(D.sendTag(m,e.name),V.value={...V.value,[m]:e.name})})},De=y.Categories.some(e=>e.id===ke),pe=()=>{if(De){if(re)return"hrvatskabg";if(le)return"srbijabg"}return"bgNews2"};Nt({script:[{children:` 2 googletag.cmd.push(function() { 3 googletag.setConfig({ targeting: { category: ['Special'] } }); 4 });`}]});const J=()=>{B.value||(R.value=!0)},G=()=>{R.value=!1},Y=I(!1),fe=(e,o)=>{if(!e)return"/";const{url:m,id:b}=e;return`/${fs(o)}/${x("news")}/${encodeURIComponent(m)}/${b}`},Pe=w(()=>{const e=S.value.findIndex(b=>b.id===l.value.id);if(e===-1)return S.value.slice(0,be);const o=Math.max(0,e-tn),m=o+be;return S.value.slice(o,m)}),We=ae(y);he(()=>l.value,async e=>{if(!e)return;const o=fe(e,We.name);window.history.replaceState({...window.history.state,current:o},"",o),document.title=`${e.title} | ${xe}`,e.has_global_video?P.value=await oe.getGlobalVideo():P.value=null,C&&clearTimeout(C),C=setTimeout(()=>me(e),3e3),N&&clearTimeout(N),N=setTimeout(async()=>{await H("read_article",e.id)},ge(e.content)),es(()=>{X()})},{flush:"post"});const Ve=async()=>{if(Y.value)return;Y.value=!0;const o={anchorDate:S.value[S.value.length-1].publish_date,isSpecial:1};try{const m=await $fetch("/api/articles/neighbor",{query:o});m&&(S.value.some(M=>M.id===m.id)||S.value.push(m))}finally{Y.value=!1}};return(e,o)=>{const m=ut,b=_t,M=bt,Me=rt,Ue=Mt,Fe=Jt,Re=Xt,U=Ft,v=Ut,Be=ts,Ge=ss,T=ns,A=os,z=as,j=ct,Ye=is,ze=ft,je=gt,Oe=vt,He=ht,qe=ls,Xe=dt,Ke=rs,Qe=cs,Ze=ds,Je=ms,et=mt,tt=us,st=lt,nt=_s,ot=ps;return a(),c("div",null,[t(le)?(a(),f(m,{key:0})):_("",!0),n(b,{width:t(Ee)},null,8,["width"]),t(E)?(a(),f(M,{key:1,show:t(E),"onUpdate:show":o[0]||(o[0]=s=>Ot(E)?E.value=s:null),"show-facebook-like-and-share":"",onCopy:Le,onFacebook:o[1]||(o[1]=s=>L("facebook")),onWhatsapp:o[2]||(o[2]=s=>L("whatsapp")),onTwitter:o[3]||(o[3]=s=>L("twitter")),onTelegram:o[4]||(o[4]=s=>L("telegram")),onViber:o[5]||(o[5]=s=>L("viber")),onEmail:o[6]||(o[6]=s=>L("email"))},null,8,["show"])):_("",!0),n(Ht,null,{default:r(()=>[t(R)&&t(l).news_type_id===("LIVE_NEWS_TYPE_ID"in e?e.LIVE_NEWS_TYPE_ID:t($))?(a(),c("div",bs,[i("div",ws,[i("div",{ref:"backdrop",class:"fixed inset-0 bg-black bg-opacity-35 transition-opacity","aria-hidden":"true",onClick:G},null,512),i("div",ks,[n(Ue,{"fallback-tag":"span"},{fallback:r(()=>o[8]||(o[8]=[i("p",null,"UÄitava se...",-1)])),default:r(()=>[(a(),f(Me,{key:t(l).id,"news-title":t(l).title,"news-id":t(l).id,"publish-date":t(l).publish_date},null,8,["news-title","news-id","publish-date"]))]),_:1})])])])):_("",!0)]),_:1}),(a(!0),c(g,null,F(t(Pe),s=>(a(),c("div",{ref_for:!0,ref:d=>{d&&(t(ce)[s.id]=d)},key:s.id},[n(et,{article:s,onVisible:o[7]||(o[7]=d=>l.value=d)},{default:r(()=>[i("div",{class:"lg:py-10 md:py-6 mb-6",style:qt({background:`linear-gradient(#000000, #00000000), url(/images/${pe()}.jpeg)${pe()==="bgNews2"?" right":""}`})},[i("div",xs,[i("div",Ss,[i("div",Es,[s.Attachments.length===1?(a(),c("div",Ts,[i("img",{src:("imageUrl"in e?e.imageUrl:t(ve))(s.Attachments[0]),class:"w-full aspect-video",fetchpriority:"high",alt:s.Attachments[0].description},null,8,$s),s.Attachments[0].description?(a(),c("div",Is,[i("span",Cs,u(s.Attachments[0].description),1)])):_("",!0)])):s.Attachments.length>1?(a(),f(Re,{key:1,class:"w-full singleArticleSwiper relative",pagination:{dynamicBullets:!1}
4,modules:["SwiperAutoplay"in e?e.SwiperAutoplay:t(Kt),"SwiperEffectCreative"in e?e.SwiperEffectCreative:t(Qt),"SwiperPagination"in e?e.SwiperPagination:t(Zt)],"slides-per-view":1,loop:"",effect:"creative",autoplay:{delay:8e3,disableOnInteraction:!0},"creative-effect":{prev:{shadow:!1,translate:["-20%",0,-1]},next:{translate:["100%",0,0]}}},{default:r(()=>[(a(!0),c(g,null,F(s.Attachments,d=>(a(),f(Fe,{key:d.id,class:"justify-center items-center"},{default:r(()=>[i("img",{src:("imageUrl"in e?e.imageUrl:t(ve))(d),class:"w-full aspect-video",alt:d.description},null,8,Ns),d.description?(a(),c("div",Ls,[i("span",As,u(d.description),1)])):_("",!0)]),_:2},1024))),128))]),_:2},1032,["modules"])):_("",!0)]),i("div",Ds,[i("div",Ps,[n(v,{type:"tertiary",class:"hidden lg:flex items-center mr-3","aria-label":"Share",onClick:W},{default:r(()=>[h(u(e.$t("share"))+" ",1),n(U,{name:"ion:share-social-outline",size:"20px",class:"ml-1"})]),_:1}),s.signed!==0&&("getWriters"in e?e.getWriters:t(ye))(s).length?(a(),c(g,{key:0},[o[9]||(o[9]=i("div",{class:"hidden lg:block h-10 border-r border-r-grayDark dark:border-r-dark-lightMain opacity-30"},null,-1)),i("div",Ws,[(a(!0),c(g,null,F(("getWriters"in e?e.getWriters:t(ye))(s),d=>(a(),f(Be,{key:d.id,writer:d},null,8,["writer"]))),128))])],64)):_("",!0)]),i("h1",Vs,u(s.title),1)])])])],4),i("div",Ms,[i("div",Us,[i("div",Fs,[n(Ge)]),i("div",Rs,[i("div",Bs,[n(T,{title:t(Ne),"show-divider":!1},null,8,["title"]),i("div",Gs,[t(q).enableComments&&!s.deny_comments?(a(),c(g,{key:0},[s.news_type_id===("LIVE_NEWS_TYPE_ID"in e?e.LIVE_NEWS_TYPE_ID:t($))&&s.live_chat_active===1?(a(),f(v,{key:0,type:"secondary",class:"h-full",disabled:t(B),onClick:J},{default:r(()=>[h(u(e.$t("live_comments")),1)]),_:1},8,["disabled"])):(a(),c(g,{key:1},[n(A,{to:t(Q),class:ee({"pointer-events-none":!s.comments_count})},{default:r(()=>[n(v,{type:"secondary",class:"h-full",disabled:!s.comments_count},{default:r(()=>[h(u(e.$t("number_of_comments")+" "+s.comments_count),1)]),_:2},1032,["disabled"])]),_:2},1032,["to","class"]),n(z,{height:40}),n(A,{to:t(Z)},{default:r(()=>[n(v,{class:"w-full"},{default:r(()=>[h(u(e.$t("make_a_comment")),1)]),_:1})]),_:1},8,["to"])],64))],64)):_("",!0),n(j,{article:s,"show-label":""},null,8,["article"])]),i("div",Ys,[n(Ye,{id:s.id},null,8,["id"])]),s.intro?(a(),c("h3",zs,u(s.intro),1)):_("",!0),n(ze,{class:"news-content",content:s.content,"personalized-content":t(Ce),"is-live":s.news_type_id===("LIVE_NEWS_TYPE_ID"in e?e.LIVE_NEWS_TYPE_ID:t($)),"is-new-admin":!!s.is_new_admin,onShare:W},null,8,["content","personalized-content","is-live","is-new-admin"]),s.news_type_id===("LIVE_NEWS_TYPE_ID"in e?e.LIVE_NEWS_TYPE_ID:t($))?(a(),f(je,{key:1,"news-id":s.id,onLoadMore:X},null,8,["news-id"])):_("",!0),s.news_type_id===("SUGGESTION_NEWS_TYPE_ID"in e?e.SUGGESTION_NEWS_TYPE_ID:t(Rt))?(a(),f(Oe,{key:2,"news-id":s.id},null,8,["news-id"])):_("",!0),t(P)?(a(),f(He,{key:3,url:t(P).url,class:"mb-5"},null,8,["url"])):_("",!0)]),t(q).enableComments&&!s.deny_comments?(a(),c(g,{key:0},[n(T,{title:e.$t("comments_and_share"),class:"hidden lg:block mb-5"},null,8,["title"]),i("div",js,[n(v,{type:"tertiary",class:"flex items-center","aria-label":"Share",onClick:W},{default:r(()=>[n(U,{name:"ion:share-social-outline",size:"20px"})]),_:1}),n(j,{article:s},null,8,["article"]),n(z,{height:40}),s.news_type_id===("LIVE_NEWS_TYPE_ID"in e?e.LIVE_NEWS_TYPE_ID:t($))&&s.live_chat_active===1?(a(),f(v,{key:0,type:"secondary",disabled:t(B),class:"h-full",onClick:J},{default:r(()=>[h(u(e.$t("live_comments")),1)]),_:1},8,["disabled"])):(a(),c(g,{key:1},[n(A,{to:t(Q),class:ee({"pointer-events-none":!s.comments_count})},{default:r(()=>[n(v,{type:"secondary",class:"h-full",disabled:!s.comments_count},{default:r(()=>[h(u(e.$t("number_of_comments")+" "+s.comments_count),1)]),_:2},1032,["disabled"])]),_:2},1032,["to","class"]),n(A,{class:"flex flex-1",to:t(Z)},{default:r(()=>[n(v,{class:"w-full"},{default:r(()=>[h(u(e.$t("make_a_comment")),1)]),_:1})]),_:1},8,["to"])],64))])],64)):_("",!0),s.Tags.length?(a(),c(g,{key:1},[n(T,{title:e.$t("tags")},null,8,["title"]),(a(!0),c(g,null,F(s.Tags,d=>(a(),f(qe,{key:d.id,tag:d,class:"mr-3 mb-5"},null,8,["tag"]))),128))],64)):_("",!0),n(Xe),s.Favorites.length?(a(),c(g,{key:2},[n(T,{title:e.$t("notify_me"),class:"mb-5"},null,8,["title"]),(a(!0),c(g,null,F(s.Favorites,d=>(a(),c("div",{key:d.id,class:"flex items-center gap-2 mb-3"},[n(v,{type:t(_e).includes(String(d.id))?"secondary":"tertiary",class:"flex items-center",onClick:cn=>Ae(d)},{default:r(()=>[i("span",Os,u(e.$t("notify_me")),1),n(U,{name:"ion:megaphone-outline",size:"20px",class:"ml-1"})]),_:2},1032,["type","onClick"]),n(z,{height:40}),i("div",Hs,[i("img",{src:d.image,loading:"lazy",class:"h-6 mr-2"},null,8,qs),h(" "+u(d.name),1)])]))),128))],64)):_("",!0),n(T,{title:e.$t("next_news"),class:"mt-8"},null,8,["title"])]),i("div",Xs,[i("aside",Ks,[n(Ke,{id:s.id},null,8,["id"]),o[10]||(o[10]=i("div",{class:"mt-4"},null,-1)),n(Qe,{id:s.id},null,8,["id"])]),t(re)?_("",!0):(a(),c(g,{key:0},[n(T,{title:e.$t("live_for_bet"),"show-divider":!1},null,8,["title"]),n(Ze),n(T,{class:"mt-4",title:e.$t("announcement")},null,8,["title"]),n(Je)],64))])])])]),_:2},1032,["article"])]))),128)),n(st,{onIntersect:Ve},{default:r(()=>[n(tt,{show:t(Y)},null,8,["show"])]),_:1}),n(nt,null,{default:r(()=>[!t(q).enableComments||t(l).deny_comments?(a(),c("div",Qs,[n(j,{article:t(l),variant:"icon"},null,8,["article"]),i("button",{class:"flex items-center bg-headerColor text-white justify-center w-full px-5 py-3 text-smallP font-bold border rounded-sm shadow uppercase tracking-wide",onClick:W},[h(u(e.$t("share"))+" ",1),n(U,{name:"ion:share-social-outline",class:"text-white ml-1",size:"20px"})])])):(a(),c("div",Zs,[i("button",{class:"flex items-center pr-2","aria-label":"Share",onClick:W},[n(U,{name:"ion:share-social-outline",class:"text-darkMain dark:text-white",size:"20px"})]),n(j,{article:t(l),variant:"icon"},null,8,["article"]),n(z,{height:40}),t(l).news_type_id===("LIVE_NEWS_TYPE_ID"in e?e.LIVE_NEWS_TYPE_ID:t($))&&t(l).live_chat_active===1?(a(),f(v,{key:0,t
4ype:"secondary",disabled:t(B),class:"h-full w-full",onClick:J},{default:r(()=>[h(u(e.$t("live_comments")),1)]),_:1},8,["disabled"])):(a(),c("div",Js,[n(A,{to:t(Q),class:ee(["flex-1 text-center",{"pointer-events-none":!t(l).comments_count}])},{default:r(()=>[n(v,{class:"w-full",type:"outline",disabled:!t(l).comments_count},{default:r(()=>[h(u(e.$t("number_of_comments")+" "+t(l).comments_count),1)]),_:1},8,["disabled"])]),_:1},8,["to","class"]),n(A,{class:"flex flex-1",to:t(Z)},{default:r(()=>[n(v,{class:"w-full"},{default:r(()=>[h(u(e.$t("make_a_comment")),1)]),_:1})]),_:1},8,["to"])]))]))]),_:1}),n(ot)])}}}),jn=Gt(nn,[["__scopeId","data-v-047dfe13"]]);export{jn 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.