PageSourceSearch

https://avaz.ba/_next/static/chunks/225.d7b2990fe7364e6d.js

js avaz.ba collected 2026-09-24 17:13:18 UTC 9,943 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[225],{30225:function(e,t,i){"use strict";i.r(t),i.d(t,{HomeDesktop:function(){return h}});var r=i(85893),a=i(82010),o=(i(25675),i(11163)),n=i(4298),l=i(67294),s=(i(1826),i(21040)),d=i(60436),c=i(81971),u=i(87720),v=i(80624);function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=[],r=!0,a=!1,o=void 0;try{for(var n,l=e[Symbol.iterator]();!(r=(n=l.next()).done)&&(i.push(n.value),!t||i.length!==t);r=!0);}catch(s){a=!0,o=s}finally{try{r||null==l.return||l.return()}finally{if(a)throw o}}return i}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var h=function(e){var t=e.response,i=e.coverUrl,h=e.raiffaisenApi,m=t.data,p=m.blocks,x=m.sidebar,g=x.latestArticles,j=x.hottestArticles,_=x.latestAutoMoto,b=x.latestRecipes,y=m.marketing,w=m.moreFromWeb,k=(0,a.F)(),A=k.theme,S=k.setTheme,z=(0,l.useState)(!1),N=z[0],L=z[1],D=(0,o.useRouter)().query.newsletter;(0,l.useEffect)((function(){"1"===D&&L(!0)}),[D]);S(function(){var e,t;return(null===window||void 0===window||null===(e=window.matchMedia)||void 0===e||null===(t=e.call(window,"(prefers-color-scheme:dark)"))||void 0===t?void 0:t.matches)?"dark":"light"}());var E=f(p,10),I=E[0],P=E[1],T=E[2],R=E[3],C=E[4],U=E[5],Z=E[6],O=E[7],M=(E[8],E[9]),W=j.slice(0,10),q=function(e){var t=(0,l.useState)(!1),i=t[0],r=t[1],a=(0,l.useCallback)((function(e){e.matches?r(!0):r(!1)}),[]);return(0,l.useEffect)((function(){var t=window.matchMedia("(max-width: ".concat(e,"px)"));return t.addEventListener("change",a),t.matches&&r(!0),function(){return t.removeEventListener("change",a)}}),[]),i},B=q(1625),F=(q(768),new Date,(0,l.useState)([])),J=F[0],X=F[1],H=(0,l.useState)(!0),K=H[0],Y=H[1];(0,l.useEffect)((function(){var e=function(){setTimeout((function(){var e=document.querySelector("#trguj-slider"),t=document.querySelector("#gradient-id"),i=document.querySelector("#gradient-id-left");if(e&&t&&i){var r=e.scrollLeft,a=r<=1,o=r>=e.scrollWidth-e.clientWidth-1;t.style.background=o?"none":"light"===function(){var e,t;return(null===window||void 0===window||null===(e=window.matchMedia)||void 0===e||null===(t=e.call(window,"(prefers-color-scheme:dark)"))||void 0===t?void 0:t.matches)?"dark":"light"}()?"linear-gradient(to left, #e5e7eb, transparent)":"linear-gradient(to left, #333, transparent)",i.style.opacity=a?"0":"1"}}),100)},t=function(){var i=document.querySelector("#trguj-slider");i?(e(),i.addEventListener("scroll",e)):setTimeout((function(){t()}),10)};setTimeout((function(){var i=document.querySelector("#trguj-slider");return i?(t(),function(){return i.removeEventListener("scroll",e)}):void setTimeout((function(){t()}),10)}),1)}),[]),(0,l.useEffect)((function(){var e=localStorage.getItem("trgujResponse"),t=localStorage.getItem("trgujTimestamp"),i=t?Number(t):0;e&&Date.now()-i<6e4?(Y(!1),console.log(1),X(JSON.parse(e))):fetch("https://trguj.ba/oglasi").then((function(e){return Promise.all([e.status,e.json()])})).then((function(e){var t=f(e,2),i=t[0],r=t[1];console.log(i),i?(X(r),console.log("result",r),Y(!1),localStorage.setItem("trgujResponse",JSON.stringify(r)),localStorage.setItem("trgujTimestamp",Date.now().toString())):Y(!0)})).catch((function(e){return Y(!0)}))}),[]);var G=function(){return(0,r.jsxs)("div",{style:{margin:"20px",marginLeft:"auto",marginRight:"auto",maxWidth:"1260px",padding:"0 10px",backgroundColor:"light"===A?"#e5e7eb":"#333",paddingBottom:10,paddingTop:10,position:"relative",overflowX:"auto",overflowY:"hidden"},children:[(0,r.jsxs)("div",{style:{display:"flex",marginBottom:10},children:[(0,r.jsx)("a",{href:"https://trguj.ba",target:"_blank",rel:"noreferrer",children:(0,r.jsx)(d.n0,{theme:A})}),(0,r.jsx)("div",{style:{marginLeft:10},className:"ml-[0.3rem] flex-1 flex justify-center items-center article-color-specific6 index-color-specific7 index1-color-specific4",children:(0,r.jsx)("div",{style:{backgroundColor:"#9e9e9e"},className:"w-full h-[0.1rem] bg-[#E3E3E3] article-color-specific7 featured-dark-first index-color-specific8 index1-color-specific5 dark-icon-border"})})]}),(0,r.jsxs)("div",{style:{position:"relative"},children:[(0,r.jsx)("div",{style:{display:"flex",overflowX:"auto",gap:"0rem",scrollSnapType:"x mandatory",padding:"1rem 0",scrollbarWidth:"thin",msOverflowStyle:"auto"},id:"trguj-slider",children:null===J||void 0===J?void 0:J.map((function(e,t){return(0,r.jsxs)("a",{href:e.url,target:"_blank",rel:"noreferrer",style:{flex:"0 0 auto",scrollSnapAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",marginRight:"1rem",width:"164px",textDecoration:"none",color:"inherit",position:"relative"},children:[(0,r.jsx)("img",{src:e.image,alt:e.name+t,style:{width:"164px",height:"200px",objectFit:"cover",borderRadius:"8px",backgroundColor:"white"}}),e.promo_price&&(0,r.jsx)("div",{style:{position:"absolute",left:10,top:10,backgroundColor:"#ef5350",fontSize:14,padding:"2px 8px",color:"black",borderRadius:8},children:"black friday"}),(0,r.jsx)("div",{className:"trgujName",children:e.name}),(0,r.jsx)("div",{className:"trgujPrice",style:{width:"100%"},children:e.promo_price?(0,r.jsxs)("div",{style:{display:"flex",justifyContent:"space-between"},children:[(0,r.jsx)("div",{style:{color:"gray",textDecoration:"line-through",textDecorationColor:"red",textDecorationStyle:"solid",textDecorationThickness:1},children:e.price}),e.promo_price," KM"]}):e.price})]},t)}))}),(0,r.jsx)("div",{id:"gradient-id",style:{position:"absolute",right:0,top:0,height:"100%",width:"100px",background:"light"===A?"linear-gradient(to left, #e5e7eb, transparent)":"linear-gradient(to left, #333, transparent)",pointerEvents:"none"}}),(0,r.jsx)("div",{id:"gradient-id-left",style:{position:"absolute",left:0,top:0,height:"100%",width:"100px",background:"light"===A?"linear-gradient(to right, #e5e7eb, transparent)":"linear-gradient(to right, #333, transparent)",pointerEvents:"none",opacity:0,transition:"opacity 0.3s ease"}})]})]})};return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)("div",{id:"outOfPageStyle",children:[(0,r.jsx)("div",{className:"Wallpaper",children:(0,r.jsx)(v.Z,{adUnitPath:"/21864506698/Avaz_v2_OutOfPage",divId:"Avaz_v2_OutOfPage"})}),(0,r.jsx)("div",{className:"fluidAdDiv",children:(0,r.jsx)(v.Z,{adUnitPath:"/21864506698/Avaz_v2_Leaderboard",divId:"Avaz_v2_Leaderboard",sizes:[[970,500],[970,250],[640,480],[640,440],[970,
1100],[970,90],[960,250],[960,100],[960,90],[728,90]]})}),!B&&(0,r.jsx)("div",{className:"block",children:(0,r.jsx)("div",{className:"skyscraperLeft moreTopLeaderboard",children:(0,r.jsx)(v.Z,{adUnitPath:"/21864506698/Avaz_v2_D_Skyscraper_Left",divId:"Avaz_v2_D_Skyscraper_Left",sizes:[[120,600],[160,600],[300,600],"fluid"]})})}),(0,r.jsxs)("div",{id:"main-content",className:"max-w-[128rem] m-auto mt-[1rem] md:px-[3rem] lg:px-[1rem] space-y-[5rem] index-color-specific",children:[(0,r.jsx)("div",{id:"taboola-newsroom"}),(0,r.jsx)(n.default,{id:"taboolaScript",children:" window._taboola = window._taboola || [];\n            _taboola.push({\n                mode: 'rbox-tracking',\n                container: 'taboola-newsroom',\n                placement: 'Newsroom',\n            });"}),(0,r.jsx)(v.Z,{adUnitPath:"/21864506698/Avaz_v2_Interstitial",divId:"Avaz_v2_Interstitial"}),(null===I||void 0===I?void 0:I.articles)&&(0,r.jsx)(c.SB,{articles:I.articles,latestArticles:g}),(0,r.jsx)("div",{className:"fluidAdDiv",children:(0,r.jsx)(v.Z,{adUnitPath:"/21864506698/Avaz_v2_Leaderboard_1",divId:"Avaz_v2_Leaderboard_1",sizes:[[970,500],[970,250],[640,480],[640,440],[970,100],[970,90],[960,250],[960,100],[960,90],[728,90],[1,1]]})}),(null===P||void 0===P?void 0:P.articles)&&(0,r.jsx)(c.cc,{articles:P.articles,coverUrl:i}),(0,r.jsx)("div",{className:"fluidAdDiv",children:(0,r.jsx)(v.Z,{adUnitPath:"/21864506698/Avaz_v2_Leaderboard_2",divId:"Avaz_v2_Leaderboard_2",sizes:[[970,500],[970,250],[640,480],[640,440],[970,100],[970,90],[960,250],[960,100],[960,90],[728,90],[1,1]]})}),!K&&(0,r.jsx)(G,{}),(null===T||void 0===T?void 0:T.articles)&&(0,r.jsx)(c.e7,{articles:T.articles,hottestArticles:W}),(0,r.jsx)("div",{className:"fluidAdDiv",children:(0,r.jsx)(v.Z,{adUnitPath:"/21864506698/Avaz_v2_Leaderboard_3",divId:"Avaz_v2_Leaderboard_3",sizes:[[970,500],[970,250],[640,480],[640,440],[970,100],[970,90],[960,250],[960,100],[960,90],[728,90],[1,1]]})}),(null===M||void 0===M?void 0:M.articles)&&(0,r.jsx)(c.eL,{articles:M.articles,fromIndexShort:!0}),(null===R||void 0===R?void 0:R.articles)&&(0,r.jsx)(c.aE,{articles:R.articles,autoMotoArticles:_}),(null===T||void 0===T?void 0:T.articles)&&(0,r.jsx)(c.IT,{articles:O.articles}),(null===C||void 0===C?void 0:C.articles)&&(0,r.jsx)(c.Jc,{articles:C.articles}),(null===U||void 0===U?void 0:U.articles)&&(0,r.jsx)(c.Eb,{articles:U.articles,latestRecipes:b}),(0,r.jsxs)("div",{style:{backgroundColor:"#121212"},className:"scitechWrapper",children:[(null===Z||void 0===Z?void 0:Z.articles)&&(0,r.jsx)(c.Jm,{articles:Z.articles,raiffaisenApi:h}),(0,r.jsx)("div",{className:"binanceBorderColor",children:(0,r.jsx)(s.Z,{})})]}),y.length>0&&(0,r.jsx)(c.tu,{articles:y}),w.length>0&&(0,r.jsx)(c.tu,{articles:w,title:"more-from-web"}),(0,r.jsx)("div",{className:"fluidAdDiv",children:(0,r.jsx)(v.Z,{adUnitPath:"/21864506698/avaz_v2_footer",divId:"avaz_v2_footer",sizes:[[970,500],[970,250],[640,480],[640,440],[970,100],[970,90],[960,250],[960,100],[960,90],[728,90],[1,1]]})}),(0,r.jsx)(n.default,{id:"taboolaScriptEnd",children:"window._taboola = window._taboola || [];\n        _taboola.push({flush: true});"})]}),!B&&(0,r.jsx)("div",{className:"block",children:(0,r.jsx)("div",{className:"skyscraperRight moreTopLeaderboard",children:(0,r.jsx)(v.Z,{adUnitPath:"/21864506698/Avaz_v2_D_Skyscraper_Right",divId:"Avaz_v2_D_Skyscraper_Right",sizes:[[120,600],[160,600],[300,600],"fluid"]})})}),(0,r.jsx)(u.l,{isOpen:N,closeModal:function(){L(!1)}})]})})};t.default=h},1826:function(){}}]);

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.