1import{_ as M}from"./D17lNgKX.js";import{_ as H}from"./C4ELs50Q.js";import{_ as j}from"./CbraSNKM.js";import{p as z,z as A,u as Q,r as h,w as E,B as q,g as K,l as P,j as Z,y as G,a as D,i as w,b as e,e as L,q as B,ar as I,D as J,E as O,f as n,t as F,c as W,F as X,k as ee,v as te,a7 as N}from"./Bv7M0a81.js";import"./CHbJhuMQ.js";import"./DgeQZsl2.js";const se=z("/revamp/video/wave/wave-blue-2.webm"),ae={class:"relative"},oe={class:"relative z-20"},ne={class:"container mx-auto"},re={class:"grid grid-cols-12 gap-6 mt-20"},le={class:"col-span-9"},ie={class:"relative"},ce=["placeholder"],ue={class:"col-span-3"},de={class:"relative"},pe={class:"absolute z-10 w-full mt-1 bg-white border border-gray-300 rounded-md shadow-lg"},ge={class:"py-1"},me=["onClick"],ke={__name:"haberler.html",async setup(Ce){let p,_;const a=A(),{locale:S,t:l}=Q(),g=K(),c=S.value,T=new Date().getFullYear(),f=[l("news.all")];for(let t=T;t>=2020;t--)f.push(t.toString());const m=h(!1),v=h(a.query.year||l("news.all")),u=h(a.query.query||""),V=()=>{m.value=!m.value},k=async()=>{const t={...a.query};u.value.trim()?t.query=u.value.trim():delete t.query,await N({path:a.path,query:t},{replace:!0}),window.location.reload()},Y=async t=>{v.value=t,m.value=!1;const s={...a.query};t===l("news.all")?delete s.year:s.year=t,await N({path:a.path,query:s},{replace:!0}),window.location.reload()},i={titleFirst:l("news.title"),titleSecond:null,breadcrumbs:[l("news.breadcrumb1"),l("news.breadcrumb2")],backgroundClass:"simple-header-bg-blue",text:null},$=c==="tr"?"haberler":"news",r=([p,_]=E(()=>$fetch(`${g.public.apiBaseUrl}/api/v1/ui/contents/${$}?locale=${c}&page=${a.query.page||1}${a.query.year?`&year=${a.query.year}`:""}${a.query.query?`&query=${a.query.query}`:""}`)),p=await p,_(),p);r.response;const o=r.response.category,y=r.response.contents.data,R=r.response.contents;return r.response.content==null?r.response.category.mainCategory:r.response.content.contentMainCategory,y.sort((t,s)=>{let C=new Date(t.attributes.newsDate),b=new Date(s.attributes.newsDate);return C<b?1:C>b?-1:0}),o.slug.tr!==void 0&&o.slug.en!==void 0&&q({link:[{rel:"alternate",href:`${g.public.baseUrl}/${o.mainCategory.slug.tr}/blog/${o.slug.tr}`,hreflang:"tr"},{rel:"alternate",href:`${g.public.baseUrl}/en/${o.mainCategory.slug.en}/blog/${o.slug.en}`,hreflang:"en"}]}),q({link:[{rel:"canonical",type:"text/html",href:`${g.public.baseUrl}${a.path}`}],title:c=="tr"?`${i.titleFirst.replace(/<[^>]*>/g,"")} | Diageo Türkiye`:`${i.titleFirst.replace(/<[^>]*>/g,"")} | Diageo Türkiye`,meta:[{name:"description",content:c=="tr"?`${o.seo.tr.metaDescription}`:`${o.seo.en.metaDescription}`},{name:"og:description",content:"Diageo Türkiye"}],bodyAttrs:{class:"newsList"}}),console.log("contents",y),(t,s)=>{const C=M,b=H,x=j,U=G;return D(),P(U,{name:"main"},{default:Z(()=>[w(C,{"title-first":i.titleFirst,"title-second":i.titleSecond,breadcrumbs:i.breadcrumbs,backgroundClass:i.backgroundClass},null,8,["title-first","title-second","breadcrumbs","backgroundClass"]),e("main",null,[e("div",ae,[s[3]||(s[3]=e("div",{class:"absolute top-0 left-0 w-full"},[e("div",{class:"dt-gradient-effect-3"},[e("video",{autoplay:"",muted:"",loop:"",class:"w-full h-full md:h-full h-screen object-cover sticky top-0"},[e("source",{src:se,type:"video/webm"}),L(" Your browser does not support the video tag. ")])])],-1)),e("div",null,[e("div",oe,[e("div",ne,[e("div",re,[e("div",le,[e("div",ie,[B(e("input",{type:"text",placeholder:t.$t("message.searchPlaceholder"),"onUpdate:modelValue":s[0]||(s[0]=d=>J(u)?u.value=d:null),onKeyup:I(k,["enter"]),class:"w-full px-4 h-[55px] text-left bg-white border-bottom-1 border-black-100"},null,40,ce),[[O,n(u)]]),e("button",{onClick:k,class:"absolute right-3 top-1/2 transform -translate-y-1/2"},s[1]||(s[1]=[e("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M7.40247 0.193218C6.63214 0.262203 5.90781 0.428915 5.22946 0.693356C4.55112 0.957794 3.90726 1.31996 3.2979 1.77986C3.07945 1.94082 2.81501 2.17652 2.50458 2.48695C2.19415 2.79738 1.95845 3.06182 1.79749 3.28027C1.37209 3.84364 1.03579 4.42426 0.788594 5.
102212C0.5414 5.61999 0.360316 6.27534 0.245342 6.98818C0.21085 7.22962 0.193604 7.58317 0.193604 8.04881C0.193604 8.51446 0.21085 8.87375 0.245342 9.12669C0.348818 9.82804 0.527028 10.4834 0.779971 11.0927C1.03291 11.7021 1.37209 12.2827 1.79749 12.8346C1.95845 13.0646 2.19415 13.3347 2.50458 13.6452C2.81501 13.9556 3.07945 14.1913 3.2979 14.3523C3.61983 14.6052 3.96475 14.8294 4.33267 15.0249C4.70058 15.2203 5.08575 15.387 5.48815 15.525L5.53989 15.5422C6.11476 15.7377 6.70113 15.8642 7.29899 15.9217C7.89686 15.9791 8.48897 15.9705 9.07534 15.8958C9.66171 15.8211 10.2366 15.6802 10.8 15.4733C11.3633 15.2663 11.898 14.9961 12.4038 14.6627L12.7315 14.4557L16.0773 17.8187L16.9568 16.9392L17.8364 16.0596L14.4734 12.7139L14.6803 12.3862C15.0942 11.7768 15.4133 11.1042 15.6375 10.3684C15.8617 9.63258 15.9738 8.86225 15.9738 8.05744C15.9738 7.37909 15.8933 6.72949 15.7323 6.10863C15.5714 5.47627 15.3414 4.88128 15.0425 4.32366C14.7436 3.76603 14.3814 3.25152 13.956 2.78013C13.5306 2.30874 13.0592 1.89483 12.5418 1.53841L12.5073 1.52117C12.0474 1.19924 11.5415 0.92905 10.9897 0.7106C10.4378 0.492149 9.86291 0.336935 9.26505 0.244957H9.23056C8.98911 0.210464 8.67581 0.187469 8.29064 0.175972C7.90548 0.164474 7.60942 0.170223 7.40247 0.193218ZM8.64419 2.65941C9.23056 2.72839 9.78243 2.87786 10.2998 3.10781C10.8172 3.33776 11.28 3.63669 11.6881 4.0046C12.0963 4.37252 12.4498 4.79792 12.7488 5.28082C13.0362 5.76371 13.2431 6.28109 13.3696 6.83296V6.86746C13.4156 7.05141 13.4501 7.244 13.4731 7.4452C13.4961 7.6464 13.5076 7.85048 13.5076 8.05744C13.5076 8.6553 13.4156 9.2273 13.2317 9.77342C13.0477 10.3195 12.789 10.8168 12.4556 11.2652L12.4728 11.248C12.3464 11.4204 12.148 11.6417 11.8778 11.9119C11.6076 12.1821 11.3863 12.3747 11.2139 12.4897C10.5355 12.9726 9.80543 13.2773 9.0236 13.4037C8.25328 13.5302 7.5002 13.5043 6.76437 13.3261C6.02853 13.1479 5.35019 12.8174 4.72933 12.3345C4.10847 11.8516 3.61408 11.2422 3.24616 10.5064C3.18868 10.4144 3.13406 10.3081 3.08232 10.1873C3.03059 10.0666 2.98172 9.94301 2.93573 9.81654V9.78205C2.84375 9.51761 2.77189 9.24167 2.72016 8.95423C2.66842 8.6668 2.64255 8.36787 2.64255 8.05744C2.64255 7.11465 2.86675 6.24372 3.31515 5.44465C3.76354 4.64558 4.36141 4.0046 5.10874 3.52171L5.12599 3.50447C5.53989 3.22853 5.99979 3.01583 6.50567 2.86636C7.01156 2.7169 7.54044 2.64216 8.09231 2.64216C8.18429 2.64216 8.27915 2.64216 8.37687 2.64216C8.4746 2.64216 8.5752 2.64791 8.67868 2.65941H8.64419Z",fill:"black"})],-1)]))])]),e("div",ue,[e("div",de,[e("button",{onClick:V,class:"w-full px-4 h-[55px] text-left bg-white border border-black-100"},[L(F(n(v)||t.$t("news.year"))+" ",1),s[2]||(s[2]=e("svg",{class:"absolute right-3 top-1/2 transform -translate-y-1/2 w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 9l-7 7-7-7"})],-1))]),B(e("div",pe,[e("div",ge,[(D(),W(X,null,ee(f,d=>e("button",{key:d,onClick:be=>Y(d),class:"w-full px-4 py-2 text-left hover:bg-gray-100 focus:outline-none focus:bg-gray-100"},F(d),9,me)),64))])],512),[[te,n(m)]])])])])])]),w(b,{link:n($),image:!1,data:n(y),category:n(o)},null,8,["link","data","category"]),w(x,{paginType:"generalList",pathName:`${n(o).slug[n(c)]}`,pagination:n(R)},null,8,["pathName","pagination"])])])])]),_:1})}}};export{ke 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.