1import{_ as ks}from"./CemjOeA7.js";import{_ as pt}from"./COAP2bPf.js";import{_ as gt,a as ht,b as xt,c as vt,d as bt}from"./r4KYaN8r.js";import{d as ze,l as v,p as Le,q as kt,m as fe,c as i,a as e,A as ct,B as ys,h as s,J as Ze,g as m,t as u,j as x,n as S,b as p,e as w,F as B,r as O,L as Ee,G as D,o as r,K as xe,s as yt,aB as wt,Y as ws,V as Rt,z as Ae,H as mt,M as dt,T as zt,$ as Kt,aO as Zt,aP as Ss,u as Vt,x as Ts,aR as $s,a4 as Cs,i as Ht,f as Ds}from"./CeiIIN3h.js";import{_ as ft,a as As}from"./BZ0CW1Qv.js";import{_ as Es}from"./D-JLthYl.js";import{_ as Ms}from"./BJ_xOzcp.js";import{_ as Jt}from"./6PyalRL4.js";import{a as $e,b as Ps}from"./BGH__WhO.js";import{a as _s,_ as Ot}from"./Da-bZmrw.js";import{c as Bs,h as Gt,a as Ls}from"./DAaw9ITW.js";import{s as js}from"./CSKBMrFc.js";import{_ as Is}from"./Dh9HXKPF.js";import{u as Wt}from"./CV3YBOY9.js";import"./D6SNtkCV.js";import"./cio1N-Uk.js";import"./DPNRcFo2.js";import"./Brda5cYg.js";import"./CFJJ0JRb.js";import"./C4h1I4Rb.js";import"./kx8QsPN6.js";import"./Cf9x-Nmj.js";import"./CxSGzYgF.js";import"./BRLrPitK.js";const Fs={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-[minmax(220px,1.6fr)_repeat(3,minmax(130px,1fr))_minmax(190px,1.1fr)_auto] gap-2 px-3.5 py-3 items-center"},Ns={class:"flex items-center gap-2 sm:col-span-2 lg:col-span-3 xl:col-span-1"},Us={class:"relative flex-1"},Rs=["aria-expanded"],zs={key:0,class:"min-w-[18px] h-[18px] px-1 rounded-full bg-foreground text-background text-[11px] font-bold leading-[18px] text-center"},Vs=["value"],Hs=["value"],Os=["aria-expanded"],Gs={key:0,class:"min-w-[18px] h-[18px] px-[5px] rounded-full bg-foreground text-background text-[11px] font-bold leading-[18px] text-center"},Ws={class:"overflow-hidden min-h-0"},Ys={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-6 gap-2 px-3.5 pb-3"},qs=["title"],Ks=["value","onInput","aria-label"],Zs=["value","onInput","aria-label"],Js={class:"col-span-full flex items-center gap-2 pt-1"},Xs={class:"inline-flex items-center gap-2.5 text-[13.5px] text-[#2B3038] cursor-pointer select-none"},Qs=["checked"],en={key:0,class:"flex flex-wrap items-center gap-1.5 px-3.5 pb-3"},tn=["onClick"],Yt="sortHintDismissed_v1_en",sn=ze({__name:"SiteFiltersEn",props:{filters:{},filterOptions:{}},emits:["update:filters"],setup(l,{emit:g}){const R=l,I=g,z=v(!1),ee=D(()=>z.value?"":"hidden md:block"),L=["language","minDr","maxDr","minDa","maxDa","minAhrefsTraffic","maxAhrefsTraffic","minSimilarweb","maxSimilarweb","minSemrush","maxSemrush","excludePurchased"],de=D(()=>L.filter(d=>R.filters[d]).length),V=v(de.value>0),A=[{etiket:"DR",min:"minDr",max:"maxDr",ipucu:"Ahrefs Domain Rating"},{etiket:"DA",min:"minDa",max:"maxDa",ipucu:"Moz Domain Authority"},{etiket:"Ahrefs traffic",min:"minAhrefsTraffic",max:"maxAhrefsTraffic",ipucu:"Ahrefs monthly organic traffic"},{etiket:"Similarweb",min:"minSimilarweb",max:"maxSimilarweb",ipucu:"Similarweb monthly visits"},{etiket:"Semrush",min:"minSemrush",max:"maxSemrush",ipucu:"Semrush monthly total traffic"}],_=v(!1);let F=null;function De(){_.value=!1,F&&(clearTimeout(F),F=null);try{localStorage.setItem(Yt,"1")}catch{}}Le(()=>{try{localStorage.getItem(Yt)||setTimeout(()=>{_.value=!0,F=setTimeout(()=>De(),8e3)},600)}catch{}}),kt(()=>{F&&clearTimeout(F)});let $;const X=v(R.filters.search);fe(X,d=>{clearTimeout($),$=setTimeout(()=>{I("update:filters",{...R.filters,search:String(d)})},300)}),fe(()=>R.filters.search,d=>{d!==X.value&&(X.value=d)});function G(d,a,Z){I("update:filters",{...R.filters,[d]:a,...Z})}const Y=new Map;function q(d,a){const Z=Y.get(d);Z&&clearTimeout(Z),Y.set(d,setTimeout(()=>{G(d,a)},500))}function se(d){const a=Number(d);return isFinite(a)?a>=1e6?(a/1e6).toLocaleString("en-US",{maximumFractionDigits:1})+"M":a>=1e3?(a/1e3).toLocaleString("en-US",{maximumFractionDigits:1})+"K":String(a):d}function f(){X.value="",I("update:filters",{search:"",category:"",language:"",country:"",linkType:"",minPrice:"",maxPrice:"",minDr:"",maxDr:"",minDa:"",maxDa:"",minAhrefsTraffic:"",maxAhrefsTraffic:"",minSimilarweb:"",maxSimilarweb:"",minSemrush:"",maxSemrush:"",sortBy:"price",sortOrder:"asc",excludePurchased:""})}function T(d){if(d==="search"){X.value="",G("search","");return}G(d,"")}const k=D(()=>{let d=0;const a=R.filters;return a.search&&d++,a.category&&d++,a.language&&d++,a.country&&d++,a.linkType&&d++,a.minPrice&&d++,a.maxPrice&&d++,a.minDr&&d++,a.maxDr&&d++,a.minDa&&d++,a.maxDa&&d++,a.minAhrefsTraffic&&d++,a.maxAhrefsTraffic&&d++,a.minSim
1ilarweb&&d++,a.maxSimilarweb&&d++,a.minSemrush&&d++,a.maxSemrush&&d++,a.excludePurchased&&d++,d});function b(d){return d==="Basın Bülteni"?"Press Release":d}const C={Haber:"News","Haber Sitesi":"News",Haberler:"News",Teknoloji:"Technology",Yerel:"Local",Genel:"General",Ekonomi:"Finance",Finans:"Finance",SaÄlık:"Health",Spor:"Sports",EÄitim:"Education",YaÅam:"Lifestyle","YaÅam Tarzı":"Lifestyle",Seyahat:"Travel",Oyun:"Gaming",Magazin:"Entertainment",Moda:"Fashion",EÄlence:"Entertainment",Sanat:"Art",Kültür:"Culture",Bilim:"Science",Emlak:"Real Estate",Otomotiv:"Automobiles",İÅ:"Business",Åirket:"Business"};function ne(d){return C[d]||d}const Q={"Amerika BirleÅik Devletleri":"United States","BirleÅik Krallık":"United Kingdom",Endonezya:"Indonesia",Hindistan:"India",Meksika:"Mexico",Türkiye:"Turkey"},re={İngilizce:"English",Türkçe:"Turkish",Portekizce:"Portuguese",Almanca:"German",Fransızca:"French",İspanyolca:"Spanish",İtalyanca:"Italian",Rusça:"Russian",Arapça:"Arabic",Hollandaca:"Dutch"};function te(d){return d&&re[d]||d||""}function N(d){return d?Q[d]||d:"Global"}const K=D(()=>{const d=R.filters,a=[];return d.search&&a.push({key:"search",label:`"${d.search}"`}),d.country&&a.push({key:"country",label:N(d.country)}),d.category&&a.push({key:"category",label:ne(d.category)}),d.language&&a.push({key:"language",label:te(d.language)}),d.linkType&&a.push({key:"linkType",label:b(d.linkType)}),d.minPrice&&a.push({key:"minPrice",label:`⥠$${d.minPrice}`}),d.maxPrice&&a.push({key:"maxPrice",label:`⤠$${d.maxPrice}`}),d.minDr&&a.push({key:"minDr",label:`DR ⥠${d.minDr}`}),d.maxDr&&a.push({key:"maxDr",label:`DR ⤠${d.maxDr}`}),d.minDa&&a.push({key:"minDa",label:`DA ⥠${d.minDa}`}),d.maxDa&&a.push({key:"maxDa",label:`DA ⤠${d.maxDa}`}),d.minAhrefsTraffic&&a.push({key:"minAhrefsTraffic",label:`Ahrefs traffic ⥠${se(d.minAhrefsTraffic)}`}),d.maxAhrefsTraffic&&a.push({key:"maxAhrefsTraffic",label:`Ahrefs traffic ⤠${se(d.maxAhrefsTraffic)}`}),d.minSimilarweb&&a.push({key:"minSimilarweb",label:`SimilarWeb ⥠${se(d.minSimilarweb)}`}),d.maxSimilarweb&&a.push({key:"maxSimilarweb",label:`SimilarWeb ⤠${se(d.maxSimilarweb)}`}),d.minSemrush&&a.push({key:"minSemrush",label:`Semrush ⥠${se(d.minSemrush)}`}),d.maxSemrush&&a.push({key:"maxSemrush",label:`Semrush ⤠${se(d.maxSemrush)}`}),d.excludePurchased&&a.push({key:"excludePurchased",label:"Excluding my domains"}),a});return(d,a)=>{const Z=xt,ue=ht,ie=bt,ce=vt,ke=gt,h=pt;return r(),i("div",null,[e("div",Fs,[e("div",Ns,[e("div",Us,[a[10]||(a[10]=e("svg",{class:"absolute left-[11px] top-1/2 -translate-y-1/2 w-[15px] h-[15px] text-[#5E6570] pointer-events-none",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[e("circle",{cx:"11",cy:"11",r:"7"}),e("path",{"stroke-linecap":"round",d:"m21 21-4.3-4.3"})],-1)),ct(e("input",{"onUpdate:modelValue":a[0]||(a[0]=n=>Ze(X)?X.value=n:null),type:"text",placeholder:"Search domain, site name or tag",class:"filtre-kutu w-full pl-[34px] pr-3 placeholder:text-[#8A919B]"},null,512),[[ys,s(X)]])]),e("button",{type:"button",class:"md:hidden shrink-0 inline-flex items-center gap-1.5 h-9 px-3 rounded-[10px] border border-[#DDE0E4] bg-white text-[13px] font-semibold text-foreground","aria-expanded":s(z),onClick:a[1]||(a[1]=n=>z.value=!s(z))},[a[11]||(a[11]=m(" Filters ",-1)),s(k)>0?(r(),i("span",zs,u(s(k)),1)):x("",!0)],8,Rs)]),e("div",{class:S(s(ee))},[p(ke,{"model-value":l.filters.category||void 0,"onUpdate:modelValue":a[2]||(a[2]=n=>G("category",n==="__all__"?"":n||""))},{default:w(()=>[p(ue,{class:"w-full h-9 rounded-[10px] text-[13.5px] font-medium bg-white border-[#DDE0E4]"},{default:w(()=>[p(Z,{placeholder:"All categories"})]),_:1}),p(ce,null,{default:w(()=>[p(ie,{value:"__all__"},{default:w(()=>[...a[12]||(a[12]=[m("All categories",-1)])]),_:1}),(r(!0),i(B,null,O(l.filterOptions.categories,n=>(r(),xe(ie,{key:n,value:n},{default:w(()=>[m(u(ne(n)),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["model-value"])],2),e("div",{class:S(s(ee))},[p(ke,{"model-value":l.filters.country||void 0,"onUpdate:modelValue":a[3]||(a[3]=n=>G("country",n==="__all__"?"":n||""))},{default:w(()=>[p(ue,{class:"w-full h-9 rounded-[10px] text-[13.5px] font-medium bg-white border-[#DDE0E4]"},{default:w(()=>[p(Z,{placeholder:"All countries"})]),_:1}),p(ce,null,{default:w(()=>[p(ie,{value:"__all__"},{default:w(()=>[...a[13]||(a[13]=[m("All countries",-1)])]),_:1}),(r(!0),i(B,null,O(l.filterOptions.countries,n=>(r(),xe(ie,{key:n.countryCode,value:n.country},{default:w(()=>[m(u(N(n.country)),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["model-value"])],2),e("div",{class:S(s(ee))},[p(ke,{"model-value":l.filters.linkType||void 0,"onUpdate:modelValue":a[4]||(a[4]=n=>
1G("linkType",n==="__all__"?"":n||""))},{default:w(()=>[p(ue,{class:"w-full h-9 rounded-[10px] text-[13.5px] font-medium bg-white border-[#DDE0E4]"},{default:w(()=>[p(Z,{placeholder:"All link types"})]),_:1}),p(ce,null,{default:w(()=>[p(ie,{value:"__all__"},{default:w(()=>[...a[14]||(a[14]=[m("All link types",-1)])]),_:1}),p(ie,{value:"Dofollow"},{default:w(()=>[...a[15]||(a[15]=[m("Dofollow",-1)])]),_:1}),p(ie,{value:"Nofollow"},{default:w(()=>[...a[16]||(a[16]=[m("Nofollow",-1)])]),_:1}),p(ie,{value:"Basın Bülteni"},{default:w(()=>[...a[17]||(a[17]=[m("Press Release",-1)])]),_:1})]),_:1})]),_:1},8,["model-value"])],2),e("div",{class:S(["aralik",s(ee)])},[a[18]||(a[18]=e("b",null,"Price $",-1)),e("input",{value:l.filters.minPrice,onInput:a[5]||(a[5]=n=>q("minPrice",n.target.value)),type:"number",inputmode:"numeric",min:"0",placeholder:"Min","aria-label":"Minimum price"},null,40,Vs),a[19]||(a[19]=e("i",null,"â",-1)),e("input",{value:l.filters.maxPrice,onInput:a[6]||(a[6]=n=>q("maxPrice",n.target.value)),type:"number",inputmode:"numeric",min:"0",placeholder:"Max","aria-label":"Maximum price"},null,40,Hs)],2),e("button",{type:"button",class:S(["h-9 items-center justify-center gap-[7px] px-3.5 rounded-[10px] border border-[#DDE0E4] bg-white text-[13.5px] font-semibold text-foreground hover:bg-[#F8F9FA] hover:border-[#C9CDD3] transition-colors whitespace-nowrap",s(z)?"inline-flex":"hidden md:inline-flex"]),"aria-expanded":s(V),onClick:a[7]||(a[7]=n=>V.value=!s(V))},[a[21]||(a[21]=m(" Advanced ",-1)),s(de)?(r(),i("span",Gs,u(s(de)),1)):x("",!0),(r(),i("svg",{class:S(["w-3.5 h-3.5 transition-transform duration-200",s(V)?"rotate-180":""]),viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.2","stroke-linecap":"round"},[...a[20]||(a[20]=[e("path",{d:"M6 9l6 6 6-6"},null,-1)])],2))],10,Os)]),e("div",{class:"grid transition-[grid-template-rows] duration-[240ms] ease-[cubic-bezier(.23,1,.32,1)]",style:Ee({gridTemplateRows:s(V)?"1fr":"0fr"})},[e("div",Ws,[e("div",Ys,[p(ke,{"model-value":l.filters.language||void 0,"onUpdate:modelValue":a[8]||(a[8]=n=>G("language",n==="__all__"?"":n||""))},{default:w(()=>[p(ue,{class:"w-full h-9 rounded-[10px] text-[13.5px] font-medium bg-white border-[#DDE0E4]"},{default:w(()=>[p(Z,{placeholder:"All languages"})]),_:1}),p(ce,null,{default:w(()=>[p(ie,{value:"__all__"},{default:w(()=>[...a[22]||(a[22]=[m("All languages",-1)])]),_:1}),(r(!0),i(B,null,O(l.filterOptions.languages,n=>(r(),xe(ie,{key:n,value:n},{default:w(()=>[m(u(te(n)),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["model-value"]),(r(),i(B,null,O(A,n=>e("div",{key:n.min,class:"aralik",title:n.ipucu},[e("b",null,u(n.etiket),1),e("input",{value:l.filters[n.min],onInput:y=>q(n.min,y.target.value),type:"number",inputmode:"numeric",min:"0",placeholder:"Min","aria-label":`${n.etiket} minimum`},null,40,Ks),a[23]||(a[23]=e("i",null,"â",-1)),e("input",{value:l.filters[n.max],onInput:y=>q(n.max,y.target.value),type:"number",inputmode:"numeric",min:"0",placeholder:"Max","aria-label":`${n.etiket} maximum`},null,40,Zs)],8,qs)),64)),e("div",Js,[e("label",Xs,[e("input",{type:"checkbox",class:"kutu",checked:l.filters.excludePurchased==="true",onChange:a[9]||(a[9]=n=>G("excludePurchased",n.target.checked?"true":""))},null,40,Qs),a[24]||(a[24]=m(" Exclude domains I've already added ",-1))]),p(h,{baslik:"Which sites are hidden?",metin:"Sites you have ordered and domains you added to your projects are removed from the list. If a <b>project is selected</b> above, only the sites bought for that project are hidden.",genislik:300})])])])],4),s(K).length?(r(),i("div",en,[(r(!0),i(B,null,O(s(K),n=>(r(),i("button",{key:n.key,type:"button",class:"inline-flex items-center gap-1.5 h-7 px-2.5 rounded-full bg-foreground text-background text-[12.5px] font-medium active:scale-[.97] transition-transform",onClick:y=>T(n.key)},[m(u(n.label)+" ",1),a[25]||(a[25]=e("span",{class:"opacity-60","aria-hidden":"true"},"â",-1))],8,tn))),128)),s(K).length>1?(r(),i("button",{key:0,type:"button",class:"h-7 px-2.5 rounded-lg text-[12.5px] font-semibold text-[#2B3038] hover:bg-[#F1F2F4] transition-colors",onClick:f},"Clear all")):x("",!0)])):x("",!0)])}}}),nn=yt(sn,[["__scopeId","data-v-7b38fe16"]]),on={key:0,class:"flex items-center justify-center py-10"},rn={key:1,class:"py-8 px-6 text-center"},ln={class:"px-5 pt-4 pb-3"},an={class:"flex items-center justify-between mb-1"},dn={class:"text-base font-extrabold text-foreground"},un={class:"flex px-5 pb-3 gap-4"},cn=["innerHTML"],mn={key:1,class:"shrink-0 w-[155px] flex flex-col justify-center gap-2.5"},fn=["src","alt"],pn={class:"text-xs font-bold text-foreground shrink-0"},gn={class:"text-xs text-muted-foreground truncate"},hn=ze({__name:"AhrefsPopupEn",props:{visible:{type:Boolean},siteId:{},anchorRect:{}},emits:["popoverEnter","popoverLeave"],setup(l){const g=l,R=v(!1),I=v(null),z=v(!1),ee=D(()=>I.value?I.value.organicTraffic||I.value.chartSvg||I.value.countries&&I.value.countries.length>0:!1),L=D(()=>!z.value||R.value||!ee.value?80:320),de=D(()=>
1{if(!g.anchorRect)return{display:"none"};const V=g.anchorRect,A=540;let _=V.top-L.value-8,F=V.left;return _<10&&(_=V.top+V.height+8),F+A>window.innerWidth-10&&(F=window.innerWidth-A-10),F<10&&(F=10),{top:`${_}px`,left:`${F}px`}});return fe(()=>g.visible,async V=>{if(V&&!z.value&&g.siteId){R.value=!0;try{const A=await $fetch(`/api/sites/${g.siteId}/ahrefs`);I.value=A,z.value=!0}catch(A){console.error("Ahrefs data fetch error:",A),I.value=null,z.value=!0}finally{R.value=!1}}}),(V,A)=>(r(),xe(wt,{to:"body"},[l.visible?(r(),i("div",{key:0,class:"fixed z-[200] bg-white rounded-xl shadow-2xl border border-gray-200 w-[540px]",style:Ee(s(de)),onMouseenter:A[0]||(A[0]=_=>V.$emit("popoverEnter")),onMouseleave:A[1]||(A[1]=_=>V.$emit("popoverLeave"))},[s(R)?(r(),i("div",on,[...A[2]||(A[2]=[e("div",{class:"w-6 h-6 border-2 border-blue-200 border-t-blue-500 rounded-full animate-spin"},null,-1)])])):s(z)&&!s(ee)?(r(),i("div",rn,[...A[3]||(A[3]=[e("p",{class:"text-xs text-muted-foreground"},"No Ahrefs data available for this site.",-1)])])):s(ee)?(r(),i(B,{key:2},[e("div",ln,[e("div",an,[A[4]||(A[4]=e("h4",{class:"text-sm font-bold text-foreground"},"Ahrefs Organic traffic",-1)),e("span",dn,u(s(I)?.organicTraffic||"-"),1)]),A[5]||(A[5]=e("div",{class:"flex items-center gap-1.5"},[e("img",{src:ft,alt:"Ahrefs",class:"w-3.5 h-3.5"}),e("span",{class:"text-[11px] text-muted-foreground"},"According to ahrefs.com")],-1))]),e("div",un,[s(I)?.chartSvg?(r(),i("div",{key:0,class:"flex-1 min-w-0 overflow-hidden",innerHTML:s(I).chartSvg},null,8,cn)):x("",!0),s(I)?.countries?.length?(r(),i("div",mn,[(r(!0),i(B,null,O(s(I).countries.slice(0,5),(_,F)=>(r(),i("div",{key:F,class:"flex items-center gap-2"},[_.code?(r(),i("img",{key:0,src:`https://flagcdn.com/20x15/${_.code}.png`,alt:_.name,class:"w-5 h-[15px] object-cover rounded-[2px] shadow-sm shrink-0"},null,8,fn)):x("",!0),e("span",pn,u(_.percentage),1),e("span",gn,u(_.name),1)]))),128))])):x("",!0)]),A[6]||(A[6]=e("div",{class:"px-5 pb-4 border-t border-gray-100 pt-3"},[e("p",{class:"text-[10px] leading-relaxed text-muted-foreground/70"},[m(" Ahrefs estimates the search traffic your target gets from each of those keywords based on its ranking position, monthly search volume, and our estimated CTR for that position. "),e("a",{href:"https://ahrefs.com",target:"_blank",class:"text-blue-500 hover:underline"},"ahrefs.com")])],-1))],64)):x("",!0)],36)):x("",!0)]))}}),xn={key:0,class:"flex items-center justify-center py-10"},vn={key:1,class:"py-8 px-6 text-center"},bn={class:"px-5 pt-4 pb-3"},kn={class:"text-2xl font-extrabold text-foreground"},yn={key:0,class:"px-5 pb-3"},wn=["viewBox"],Sn=["y1","x2","y2"],Tn=["x","y"],$n=["d"],Cn=["points"],Dn=["cx","cy"],An=["x","y"],En={key:1,class:"px-5 pb-4 border-t border-gray-100 pt-3"},Mn={class:"grid grid-cols-2 gap-x-6 gap-y-3"},Pn=["src","alt"],_n={class:"min-w-0"},Bn={class:"flex items-center gap-1.5"},Ln={class:"text-xs font-bold text-foreground"},jn={class:"text-[10px] font-semibold text-muted-foreground"},In={class:"text-[10px] text-muted-foreground"},Fn={class:"px-5 pb-3 flex items-center justify-between"},Nn={class:"text-[10px] text-muted-foreground"},Ke=490,Ce=140,Be=45,Un=ze({__name:"SemrushPopupEn",props:{visible:{type:Boolean},siteId:{},anchorRect:{}},emits:["popoverEnter","popoverLeave"],setup(l){const g=l,R=v(!1),I=v(null),z=v(null),ee=v(0),L=v(!1),de=D(()=>!L.value||R.value||!$.value?80:380),V=D(()=>{if(!g.anchorRect)return{display:"none"};const f=g.anchorRect,T=540;let k=f.top-de.value-8,b=f.left;return k<10&&(k=f.top+f.height+8),b+T>window.innerWidth-10&&(b=window.innerWidth-T-10),b<10&&(b=10),{top:`${k}px`,left:`${b}px`}}),A={tr:"Turkey",us:"United States",de:"Germany",fr:"France",gb:"United Kingdom",in:"India",br:"Brazil",it:"Italy",es:"Spain",nl:"Netherlands",ru:"Russia",jp:"Japan",cn:"China",au:"Australia",ca:"Canada",az:"Azerbaijan",pk:"Pakistan",sa:"Saudi Arabia",ae:"United Arab Emirates",pl:"Poland",se:"Sweden",by:"Belarus"};function _(f){return f?f.toLocaleString("en-US"):"0"}function F(f){return f>=1e6?(f/1e6).toFixed(1).replace(".0","")+"M":f>=1e3?(f/1e3).toFixed(0)+"K":String(f)}function De(){if(!I.value&&!z.value)return null;const f=[],T=[];let k=0,b="";if(z.value)try{let C="";const ne=z.value.match(/data-amcharts='([^']*)'/);if(ne&&ne[1]&&(C=ne[1].replace(/'/g,"'")),!C){const Q=z.value.match(/AmCharts5\([^,]+,\s*(\[[\s\S]*?\])\s*\)/);Q&&Q[1]&&(C=Q[1])}if(C){const Q=JSON.parse(C);
1if(Q.forEach(re=>{f.push({date:re.name,label:re.description,value:re.data})}),Q.length>0){const re=Q[Q.length-1];k=re.data,b=re.name}}}catch(C){console.error("Semrush traffic parse error:",C)}if(I.value)try{new DOMParser().parseFromString(I.value,"text/html").querySelectorAll("tbody tr").forEach(re=>{const te=re.querySelectorAll("td");if(te.length<4)return;const N=te[0].querySelector("img"),K=te[0].querySelector("span");let d="";if(N){const ce=N.getAttribute("src")?.match(/\/([a-z]{2})\.\w+$/);ce&&(d=ce[1])}if(!d&&K){const ce=K.textContent?.trim()||"";/^[A-Z]{2}$/.test(ce)&&(d=ce.toLowerCase())}if(!d||d==="al")return;const a=te[1].querySelector("span[style]")?.textContent?.trim()||te[1].textContent?.trim()||"0%",Z=F(parseInt(te[2].textContent?.trim()||"0")||0),ue=F(parseInt(te[3].textContent?.trim()||"0")||0),ie=A[d]||d.toUpperCase();T.push({code:d,name:ie,share:a,organic:Z,keywords:ue})})}catch(C){console.error("Semrush country parse error:",C)}return f.length===0&&T.length===0&&!ee.value?null:(!k&&ee.value&&(k=ee.value),{latestTraffic:k,lastDate:b,chartPoints:f,countries:T})}const $=D(()=>De()),X=D(()=>{if(!$.value||$.value.chartPoints.length<2)return[];const f=$.value.chartPoints,T=Math.max(...f.map(b=>b.value))*1.1,k=(Ke-Be-10)/(f.length-1);return f.map((b,C)=>({x:Be+C*k,y:Ce-b.value/T*(Ce-10)}))}),G=D(()=>X.value.map(f=>`${f.x},${f.y}`).join(" ")),Y=D(()=>{const f=X.value;if(f.length<2)return"";const T=f[0],k=f[f.length-1],b=f.map(C=>`L${C.x},${C.y}`).join(" ");return`M${T.x},${T.y} ${b.slice(b.indexOf("L",1))} L${k.x},${Ce} L${T.x},${Ce} Z`}),q=D(()=>{if(!$.value||$.value.chartPoints.length<2)return[];const f=Math.max(...$.value.chartPoints.map(k=>k.value))*1.1,T=4;return Array.from({length:T+1},(k,b)=>{const C=f/T*b;return{y:Ce-C/f*(Ce-10),label:F(Math.round(C))}})}),se=D(()=>{if(!$.value)return[];const f=$.value.chartPoints;if(f.length<2)return[];const T=(Ke-Be-10)/(f.length-1),k=Math.max(1,Math.floor(f.length/6));return f.filter((b,C)=>C%k===0||C===f.length-1).map((b,C,ne)=>{const Q=$.value.chartPoints.indexOf(b);return{x:Be+Q*T,label:b.label}})});return fe(()=>g.visible,async f=>{if(f&&!L.value&&g.siteId){R.value=!0;try{const T=await $fetch(`/api/sites/${g.siteId}/semrush`);I.value=T.countryHtml,z.value=T.trafficHtml,ee.value=T.totalTraffic||0,L.value=!0}catch(T){console.error("Semrush data fetch error:",T),L.value=!0}finally{R.value=!1}}}),(f,T)=>(r(),xe(wt,{to:"body"},[l.visible?(r(),i("div",{key:0,class:"fixed z-[200] bg-white rounded-xl shadow-2xl border border-gray-200 w-[540px]",style:Ee(s(V)),onMouseenter:T[0]||(T[0]=k=>f.$emit("popoverEnter")),onMouseleave:T[1]||(T[1]=k=>f.$emit("popoverLeave"))},[s(R)?(r(),i("div",xn,[...T[2]||(T[2]=[e("div",{class:"w-6 h-6 border-2 border-indigo-200 border-t-indigo-500 rounded-full animate-spin"},null,-1)])])):s(L)&&!s($)?(r(),i("div",vn,[...T[3]||(T[3]=[e("p",{class:"text-xs text-muted-foreground"},"No Semrush data available for this site.",-1)])])):s($)?(r(),i(B,{key:2},[e("div",bn,[T[4]||(T[4]=e("div",{class:"flex items-center justify-between mb-1"},[e("h4",{class:"text-sm font-bold text-foreground"},"Semrush Total Traffic"),e("span",{class:"px-3 py-0.5 text-xs font-bold uppercase bg-gray-100 text-gray-600 rounded-md tracking-wider"},"Semrush")],-1)),e("div",kn,u(_(s($).latestTraffic)),1)]),s($).chartPoints.length>1?(r(),i("div",yn,[(r(),i("svg",{viewBox:`0 0 ${Ke} ${Ce+30}`,class:"w-full",style:{"max-height":"180px"}},[(r(!0),i(B,null,O(s(q),(k,b)=>(r(),i("line",{key:"g"+b,x1:Be,y1:k.y,x2:Ke-5,y2:k.y,stroke:"#f0f0f0","stroke-width":"1"},null,8,Sn))),128)),(r(!0),i(B,null,O(s(q),(k,b)=>(r(),i("text",{key:"yl"+b,x:Be-5,y:k.y+3,"text-anchor":"end",fill:"#999","font-size":"9"},u(k.label),9,Tn))),128)),e("path",{d:s(Y),fill:"url(#semrushGrad)"},null,8,$n),e("polyline",{points:s(G),fill:"none",stroke:"#6366f1","stroke-width":"2.5","stroke-linejoin":"round","stroke-linecap":"round"},null,8,Cn),(r(!0),i(B,null,O(s(X),(k,b)=>(r(),i("circle",{key:"d"+b,cx:k.x,cy:k.y,r:"3",fill:"#6366f1",stroke:"white","stroke-width":"1.5"},null,8,Dn))),128)),(r(!0),i(B,null,O(s(se),(k,b)=>(r(),i("text",{key:"xl"+b,x:k.x,y:Ce+18,"text-anchor":"middle",fill:"#999","font-size":"9"},u(k.label),9,An))),128)),T[5]||(T[5]=e("defs",null,[e("linearGradient",{id:"semrushGrad",x1:"0",y1:"0",x2:"0",y2:"1"},[e("stop",{offset:"0%","stop-color":"#6366f1","stop-opacity":"0.25"}),e("stop",{offset:"100%","stop-color":"#6366f1","stop-opacity":"0.02"})])],-1))],8,wn))])):x("",!0),s($).countries.length?(r(),i("div",En,[e("div",Mn,[(r(!0),i(B,null,O(s($).countries.slice(0,4),(k,b)=>(r(),i("div",{key:b,class:"flex items-start gap-2"},[k.code?(r(),i("img",{key:0,src:`https://flagcdn.com/20x15/${k.code.toLowerCase()}.png`,alt:k.name,class:"w-5 h-[15px] object-cover rounded-[2px] shadow-sm shrink-0 mt-0.5"},null,8,Pn)):x("",!0),e("div",_n,[e("div",Bn,[e("span",Ln,u(k.name),1),e("span",jn,u(k.share),1)]),e("div",In,u(k.organic)+" organic · "+u(k.keywords)+" keywords ",1)])]))),128))])])):x("",!0),e("div",Fn,[e("span",Nn,"Last updated: "+u(s($).lastDate),1),T[6]||(T[6]=e("a",{href:"https://semrush.com",target:"_blank",class:"text-[11px] font-semibold text-indigo-500 hover:underline flex items-center gap-1"},[m(" Semrush "),e("svg",{class:"w-3 h-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2.5"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 19.5l15-15m0 0H8.25m11.25 0v11.25"})])],-1))])],64)):x("",!0)],36)):x("",!0)]))}}),Rn={class:"hidden lg:flex flex-row items-center justify-between gap-3 pl-[18px] pr-3.5 py-3"},zn={class:"flex items-center gap-2.5 min-w-0 flex-wrap"},Vn={class:"relative w-[26px] h-[26px] rounded-[7px] border border-[#
1ECEDEF] bg-white grid place-items-center shrink-0 overflow-hidden text-[11px] font-bold uppercase text-[#5E6570]","aria-hidden":"true"},Hn=["src"],On=["href"],Gn={class:"flex items-center gap-1.5 flex-wrap"},Wn={key:1,class:"inline-flex items-center h-[22px] px-2 rounded-md border border-dashed border-[#DDE0E4] text-[12px] font-medium text-[#5E6570] whitespace-nowrap"},Yn={class:"flex items-center justify-between sm:justify-end gap-3 shrink-0 sm:ml-4"},qn={class:"relative group/usd flex items-center gap-1.5"},Kn={class:"text-[20px] font-bold leading-none tracking-[-0.01em] text-foreground tabular-nums whitespace-nowrap"},Zn={key:0,class:"text-[10px] font-bold uppercase tracking-wide text-rose-600 bg-rose-50 border border-rose-200 rounded-full px-2 py-0.5"},Jn={key:0,type:"button",disabled:"",class:"inline-flex items-center justify-center gap-1.5 h-9 min-w-[118px] px-3.5 rounded-[10px] border border-foreground bg-white text-foreground text-[13.5px] font-semibold"},Xn={class:"sac lg:hidden"},Qn={class:"sac-h"},eo={class:"sac-fav","aria-hidden":"true"},to=["src"],so={class:"sac-ad"},no={class:"sac-dom"},oo=["href"],ro={class:"sac-tags"},io={key:0,class:"tg"},lo={key:2,class:"tg ex"},ao={class:"sac-prc"},uo={key:0,class:"gri"},co={class:"sac-mx"},mo={class:"sac-fx"},fo={key:0,"aria-hidden":"true"},po=["src","alt"],go={class:"tr"},ho={key:0,class:"sac-vr"},xo=["onClick"],vo={class:"sac-ft"},bo=["href"],ko={class:"hidden lg:grid grid-cols-5 border-t border-[#ECEDEF]"},yo={class:"px-[18px] pt-3 pb-3.5 flex flex-col gap-2.5"},wo={class:"metrik-etiket"},So={key:0,class:"w-[11px] h-[11px] text-[#B9BEC5] group-hover:text-foreground transition-colors",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.6","stroke-linecap":"round"},To={class:"metrik-etiket"},$o={key:0,class:"w-[11px] h-[11px] text-[#B9BEC5] group-hover:text-foreground transition-colors",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.6","stroke-linecap":"round"},Co={class:"px-[18px] pt-3 pb-3.5 flex flex-col gap-2.5 border-l border-[#ECEDEF]"},Do={class:"px-[18px] pt-3 pb-3.5 flex flex-col gap-2.5 border-l border-[#ECEDEF]"},Ao={class:"metrik-deger"},Eo={key:0,class:"w-[7px] h-[7px] rounded-full bg-emerald-500 shrink-0",title:"Updated
1in the last 30 days"},Mo={class:"metrik-deger"},Po={class:"metrik-deger"},_o={class:"px-[18px] pt-3 pb-3.5 flex flex-col gap-2.5 border-l border-[#ECEDEF]"},Bo={class:"metrik-deger metrik-yumusak"},Lo={class:"metrik-deger metrik-yumusak"},jo={key:0,class:"text-base leading-none",title:"Worldwide"},Io=["src","alt"],Fo={class:"truncate"},No={class:"metrik-deger"},Uo=["href"],Ro={key:1,class:"text-[#B9BEC5] font-medium"},zo={class:"px-[18px] pt-3 pb-3.5 flex flex-col gap-2.5 border-l border-[#ECEDEF]"},Vo={class:"metrik-deger"},Ho={key:0,class:"w-3 h-3",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},Oo={class:"metrik-deger"},Go={key:0,class:"w-3 h-3",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3","stroke-linecap":"round","stroke-linejoin":"round"},Wo={class:"metrik-deger"},Yo={class:"sas-ust"},qo={class:"sas-sh"},Ko={class:"sac-fav","aria-hidden":"true"},Zo=["src"],Jo={class:"t"},Xo={class:"sas-ic"},Qo={key:0},er={class:"sas-rl"},tr=["onClick"],sr={class:"sas-opt"},nr={key:1,class:"flex items-center gap-2 mb-5"},or={class:"text-[11px] text-muted-foreground ml-1 hidden sm:inline"},rr={key:0,class:"mb-5"},ir={class:"rounded-xl border border-border/60 bg-white overflow-hidden"},lr={class:"flex items-center gap-0.5 px-2 py-1.5 border-b border-border/40 bg-secondary/30 flex-wrap"},ar=["title","onClick"],dr={class:"mt-2 flex items-center gap-1.5 text-[11px] text-muted-foreground"},ur={key:0,class:"mt-3 rounded-xl border border-border/50 overflow-hidden bg-white"},cr={class:"px-3.5 py-2 bg-secondary/40 text-[11px] font-semibold text-foreground border-b border-border/40"},mr={class:"text-muted-foreground shrink-0"},fr={class:"font-semibold text-foreground truncate max-w-[200px]"},pr={class:"text-sapphire-600 truncate flex-1"},gr={class:"text-xs font-semibold text-foreground uppercase tracking-wider mb-2 block"},hr={key:0,class:"text-red-500"},xr={key:1,class:"text-muted-foreground/60 font-normal normal-case"},vr={key:0,class:"flex flex-wrap gap-2 mt-3"},br={class:"truncate max-w-[120px]"},kr=["onClick"],yr={class:"text-xs font-semibold text-foreground uppercase tracking-wider mb-2 block"},wr={key:0,class:"text-red-500"},Sr={key:1,class:"text-muted-foreground/60 font-normal normal-case"},Tr={key:0,class:"flex flex-wrap gap-2 mt-3"},$r={class:"truncate max-w-[120px]"},Cr=["onClick"],Dr={class:"flex flex-wrap gap-1.5 mt-2"},Ar={key:2,class:"mt-5 rounded-xl border border-rose-200/80 bg-rose-50/60 px-4 py-2.5 text-[12px] text-rose-800 m-0"},Er={key:3,class:"mt-5 border border-rose-200/80 rounded-xl overflow-hidden"},Mr={key:0,class:"w-3 h-3 text-white",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"3"},Pr={class:"flex-1"},_r={class:"text-sm font-bold text-rose-600 ml-1.5"},Br={key:0,class:"border-t border-rose-200/70 bg-rose-50/40 px-4 py-2.5 text-[11px] text-rose-800 m-0"},Lr={key:4,class:"mt-5 border border-violet-200/70 rounded-xl overflow-hidden"},jr={key:0,class:"w-3 h-3 text-white",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"3"},Ir={key:1,class:"border-t border-violet-200/70 bg-violet-50/40 px-4 py-4 space-y-3"},Fr={class:"grid grid-cols-2 gap-3"},Nr={class:"grid grid-cols-2 gap-3"},Ur={class:"grid grid-cols-2 gap-3"},Rr={key:0,class:"sas-info"},zr={key:1,class:"sas-hata"},Vr={class:"sas-sf"},Hr={key:0,class:"why"},Or={class:"row"},Gr={class:"tot"},Wr=["disabled"],Yr={class:"flex items-center justify-end gap-3 mt-4"},qr={key:0,class:"w-4 h-4 animate-spin",fill:"none",viewBox:"0 0 24 24"},Kr={key:1,class:"w-4 h-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},Zr={key:0,class:"text-[11px] text-amber-600 mt-2 text-right"},Jr={key:1,class:"text-[11px] text-amber-600 mt-2 text-right"},Xr={key:2,class:"text-xs text-red-500 mt-2 text-right"},ut="griTaslak",qt="PDF files are not accepted. Publisher panels render PDFs as images instead of text, which breaks the article formatting. Please upload your content as a Word document (.doc or .docx).",Qr=ze({__name:"SiteCardEn",props:{site:{},projectId:{},griSektor:{type:Boolean}},setup(l){const g=l,{addToCart:R,isInCart:I}=ws(),z=D(()=>{const o=[{linkType:g.site.linkType,price:String(g.site.price)}],t=new Set([g.site.linkType]),E=g.site.linkVariants;let H=[];if(Array.isArray(E))H=E;else if(typeof E=="string"&&E)try{const j=JSON.parse(E);Array.isArray(j)&&(H=j)}catch{}for(const j of H)!j?.linkType||t.has(j.linkType)||(t.add(j.linkType),o.push({linkType:j.linkType,price:String(j.price)}));return o}
1),ee=D(()=>z.value.length>1),L=v(g.site.linkType),de=D(()=>z.value.find(o=>o.linkType===L.value)||z.value[0]),V=D(()=>de.value?.price??g.site.price),A=D(()=>!!g.griSektor||!(Number(g.site.priceUsd)>0)&&Number(g.site.casinoPriceUsd)>0),_=v(A.value),F=D(()=>Number(g.site.casinoPriceUsd)>0);function De(){try{sessionStorage.setItem(ut,JSON.stringify({title:K.value,html:d.value,t:Date.now()}))}catch{}mt("/en/panel/find-sites?niche=grey")}function $(){if(!g.griSektor)return;let o=null;try{o=JSON.parse(sessionStorage.getItem(ut)||"null")}catch{}!o||Date.now()-(Number(o.t)||0)>3*3600*1e3||K.value.trim()||Gt(d.value).trim()||(N.value="editor",we.value=!0,K.value=o.title||"",dt(()=>{a.value&&(a.value.innerHTML=o.html||"",h())}))}const X=D(()=>Number(g.site.priceUsd)>0||String(g.site.language||"")!=="Türkçe"&&Number(g.site.casinoPriceUsd)>0),G=D(()=>L.value==="Dofollow"?"bg-white":L.value==="Basın Bülteni"?"bg-sky-50/80":"bg-stone-100/80"),Y=v(!1),q=v(null),se=v(!1),f=v("");function T(o){return o.type==="application/pdf"||o.name.toLowerCase().endsWith(".pdf")}const k=v(""),b=v([]),C=v([]),ne=v(!1),Q=v(!1),re=v(null),te=v(null),N=v("editor"),K=v(""),d=v(""),a=v(null),Z=v([]),ue=[{ad:"B",baslik:"Bold",komut:"bold"},{ad:"I",baslik:"Italic",komut:"italic"},{ad:"H2",baslik:"Heading",komut:"formatBlock",deger:"h2"},{ad:"H3",baslik:"Subheading",komut:"formatBlock",deger:"h3"},{ad:"¶",baslik:"Paragraph",komut:"formatBlock",deger:"p"},{ad:"â¢â¢",baslik:"Bullet list",komut:"insertUnorderedList"},{ad:"1.",baslik:"Numbered list",komut:"insertOrderedList"},{ad:"ð",baslik:"Add link (select text first)",komut:"link"},{ad:"â",baslik:"Clear formatting",komut:"removeFormat"}];function ie(o){if(a.value){if(a.value.focus(),o.komut==="link"){const t=window.getSelection();if(!t||t.isCollapsed){f.value="Select the anchor text first to add a link",setTimeout(()=>{f.value=""},3e3);return}const E=window.prompt("Link URL (with https://):","https://");if(!E||!/^https?:\/\//i.test(E))return;document.execCommand("createLink",!1,E)}else o.komut==="formatBlock"?document.execCommand("formatBlock",!1,o.deger||"p"):document.execCommand(o.komut,!1);h()}}function ce(o){const t=new DOMParser().parseFromString(o,"text/html"),E=new Set(["H2","H3","H4","P","BR","STRONG","B","EM","I","U","UL","OL","LI","A"]),H=me=>me.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">");function j(me){if(me.nodeType===Node.TEXT_NODE)return H(me.textContent||"");if(me.nodeType!==Node.ELEMENT_NODE)return"";const ve=me,ae=ve.tagName;if(["SCRIPT","STYLE","META","LINK","TITLE","HEAD","IFRAME","SVG"].includes(ae))return"";if(ae==="IMG"){const U=ve.getAttribute("src")||"";return/^https:\/\//i.test(U)||/^data:image\/(png|jpe?g|gif|webp);base64,/i.test(U)?`<img src="${U.replace(/"/g,""")}">`:""}const J=Array.from(ve.childNodes).map(j).join(""),Te=ve.getAttribute("style")||"",he=Te.match(/font-weight:\s*(\d+|bold|normal)/i)?.[1]?.toLowerCase();if((ae==="B"||ae==="STRONG")&&he==="normal")return J;if(ae==="A"){const U=ve.getAttribute("href")||"";return/^https?:\/\//i.test(U)?`<a href="${U.replace(/"/g,""")}">${J}</a>`:J}if(ae==="BR")return"<br>";const be=/^<(p|h[234]|ul|ol)[ >]/i.test(J.trim());if(ae==="H1")return J.trim()?be?J:`<h2>${J}</h2>`:"";if(!E.has(ae)){let U=J;return he&&(he==="bold"||parseInt(he)>=600)&&(U=`<strong>${U}</strong>`),/font-style:\s*italic/i.test(Te)&&(U=`<em>${U}</em>`),["DIV","SECTION","ARTICLE","TD","TH","TR","TABLE","FIGURE","BLOCKQUOTE"].includes(ae)&&U.trim()?`<p>${U}</p>`:U}if(!J.trim())return"";const c=ae.toLowerCase();return["h2","h3","h4"].includes(c)&&be?J:`<${c}>${J}</${c}>`}let W=Array.from(t.body.childNodes).map(j).join("").replace(/<p>\s*<\/p>/g,"").replace(/<p>(<(?:h2|h3|h4|ul|ol)>[\s\S]*?<\/(?:h2|h3|h4|ul|ol)>)<\/p>/g,"$1");return W=W.replace(/<p>\s*(?:[·â¢âªâ¦]|·)\s*([\s\S]*?)<\/p>/g,'<li data-l="u">$1</li>').replace(/<p>\s*(\d{1,2})[.)]\s+([\s\S]*?)<\/p>/g,'<li data-l="o">$2</li>'),W=W.replace(/(?:<li data-l="u">[\s\S]*?<\/li>\s*)+/g,me=>`<ul>${me.replace(/ data-l="u"/g,"")}</ul>`),W=W.replace(/(?:<li data-l="o">[\s\S]*?<\/li>\s*)+/g,me=>`<ol>${me.replace(/ data-l="o"/g,"")}</ol>`),W}function ke(o){o.preventDefault();const t=Array.from(o.clipboardData?.files||[]).filter(j=>/^image\//.test(j.type));if(t.length&&!(o.clipboardData?.getData("text/html")||"").trim()){for(const j of t){const W=new FileReader;W.onload=()=>{document.execCommand("insertHTML",!1,`<img src="${W.result}">`),h()}
1,W.readAsDataURL(j)}return}const E=o.clipboardData?.getData("text/html")||"";let H="";E.trim()?H=ce(E):H=(o.clipboardData?.getData("text/plain")||"").split(/\n{2,}/).map(W=>W.trim()).filter(Boolean).map(W=>`<p>${W.replace(/&/g,"&").replace(/</g,"<").replace(/\n/g,"<br>")}</p>`).join(""),H&&document.execCommand("insertHTML",!1,H),h()}function h(){const o=a.value;o&&(d.value=o.innerHTML,Xt(),Z.value=Array.from(o.querySelectorAll("a")).map(t=>({anchor:(t.textContent||"").trim(),url:t.getAttribute("href")||""})).filter(t=>/^https?:\/\//i.test(t.url)))}const n=D(()=>d.value.replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim().split(" ").filter(Boolean).length),y=v(!1),M=v([{keyword:"",link:""},{keyword:"",link:""},{keyword:"",link:""}]),je=D(()=>se.value?!0:y.value?!M.value[0].keyword||!M.value[0].link:N.value==="editor"?!K.value.trim()||n.value<50||C.value.length===0:b.value.length===0||C.value.length===0),Ie=D(()=>I(g.site.id,de.value?.linkType));function le(){Y.value=!Y.value,Y.value&&(we.value=!1),Y.value&&$(),Y.value||(k.value="",b.value=[],C.value=[],f.value="",y.value=!1,M.value=[{keyword:"",link:""},{keyword:"",link:""},{keyword:"",link:""}])}function Ve(){re.value?.click()}function He(){te.value?.click()}function Me(o){const t=o.target;if(t.files){const E=Array.from(t.files),H=E.filter(W=>T(W)),j=E.filter(W=>!T(W));H.length?f.value=qt:j.length&&(f.value=""),b.value=[...b.value,...j]}t.value=""}function Je(o){const t=o.target;t.files&&(C.value=[...C.value,...Array.from(t.files)]),t.value=""}function Xe(o){if(ne.value=!1,o.dataTransfer?.files){const t=[".doc",".docx",".txt"],E=Array.from(o.dataTransfer.files);E.some(j=>T(j))&&(f.value=qt);const H=E.filter(j=>t.some(W=>j.name.toLowerCase().endsWith(W)));H.length&&!E.some(j=>T(j))&&(f.value=""),b.value=[...b.value,...H]}}function Qe(o){if(Q.value=!1,o.dataTransfer?.files){const t=[".png",".jpg",".jpeg",".webp"],E=Array.from(o.dataTransfer.files).filter(H=>t.some(j=>H.name.toLowerCase().endsWith(j)));C.value=[...C.value,...E]}}function Fe(o){b.value=b.value.filter((t,E)=>E!==o)}function P(o){C.value=C.value.filter((t,E)=>E!==o)}const ye=D(()=>{const o=[Gt(d.value),K.value,k.value];if(y.value)for(const t of M.value)o.push(t.keyword,t.link);for(const t of b.value)o.push(t.name);return Ls(o.join(` 2 `))});fe(ye,o=>{o.length&&F.value&&(_.value=!0)}),fe(_,o=>{o&&N.value==="dosya"&&(N.value="editor")});function Xt(){const o=a.value;if(!o||typeof CSS>"u"||!("highlights"in CSS)||typeof globalThis.Highlight>"u")return;const t=document.createTreeWalker(o,NodeFilter.SHOW_TEXT),E=[];let H="",j;for(;j=t.nextNode();)E.push({n:j,bas:H.length}),H+=j.data;const W=Bs(H),me=globalThis.Highlight,ve=new me;for(const[ae,J]of W){const Te=document.createRange();let he=!1;for(const{n:be,bas:c}of E){const U=c+be.data.length;if(!he&&ae>=c&&ae<U&&(Te.setStart(be,ae-c),he=!0),he&&J>c&&J<=U){Te.setEnd(be,J-c);break}}he&&ve.add(Te)}CSS.highlights.set("casino",ve)}async function St(o=!1){const t=M.value.filter(H=>H.keyword||H.link),E=!y.value&&N.value==="editor"&&d.value?{title:K.value.trim(),html:d.value}:void 0;if(await R(g.site.id,k.value,b.value,C.value,y.value,t,de.value?.linkType,o,E,_.value?"casino":void 0),_.value=A.value,g.griSektor)try{sessionStorage.removeItem(ut)}catch{}Kt("add_to_cart",{currency:Ss(g.site),value:Number(de.value?.price??(Number(g.site.price)>0?g.site.price:g.site.priceUsd))||0,items:[Zt(g.site,Number(de.value?.price)||void 0)]}),Y.value=!1,dt(()=>js(oe.value?$t.value:q.value)),k.value="",b.value=[],C.value=[],y.value=!1,M.value=[{keyword:"",link:""},{keyword:"",link:""},{keyword:"",link:""}],K.value="",d.value="",Z.value=[],a.value&&(a.value.innerHTML="")}async function Tt(){if(!se.value){if(f.value="",ye.value.length&&!F.value){f.value="Grey niche detected; this site does not accept it: "+ye.value.join(", ");return}if(ye.value.length&&!_.value){f.value='Grey niche detected; please tick "Grey Niche content" to continue.';return}if(y.value){if(!M.value[0].keyword||!M.value[0].link){f.value="At least one keyword and link is required";return}}else if(N.value==="editor"){if(!K.value.trim()){f.value="Content title is required";return}if(n.value<50){f.value=`Content is too short (${n.value} words). Write at least 50 words.`;return}if(C.value.length===0){f.value="Upload at least one image";return}}else if(b.value.length===0||C.value.length===0){f.value="File and image upload is required";return}se.value=!0;try{await St(!1)}catch(o){if(o?.data?.data?.currencyConflict){if(typeof window<"u"&&window.confirm("Your cart contains items in a different currency (TRY/USD). An order can only contain a single currency. If you continue, your current cart will be cleared and this item will be added instead. Do you want to continue?"))try{await St(!0)}catch(E){f.value=E?.data?.statusMessage||E?.message||"An error occurred"}}else f.value=o?.data?.statusMessage||o?.message||"An error occurred"}finally{se.value=!1}}}const et=D(()=>Number(g.site.publicationTime)||0),oe=v(!1),$t=v(null),Ne=v(null),Ct=v(null),we=v(!1),tt=D(()=>we.value?y.value?"biz":N.value:"");function st(o){we.value=!0,o==="biz"?y.value=!0:(y.value=!1,N.value=o),dt(()=>{const t=Ne.value,E=Ct.value;t&&E&&t.scrollTo({top:Math.max(0,E.offsetTop+E.offsetHeight-150),behavior:"smooth"})})}let Oe=null;const nt=()=>{oe.value=!!Oe?.matches},Dt=o=>{const t=document.querySelector("main");t&&(t.style.overflow=o?"hidden":"")};Le(()=>{Oe=window.matchMedia("(max-width: 1023px)"),nt(),Oe.addEventListener("change",nt)}
2),kt(()=>{Oe?.removeEventListener("change",nt),Y.value&&oe.value&&Dt(!1)}),fe(()=>Y.value&&oe.value,o=>{Dt(o)});const At=D(()=>{const o=g.site;return _.value?Number(X.value?o.casinoPriceUsd:o.casinoPrice)||0:Number(X.value?o.priceUsd:V.value)||0}),Et=o=>"$"+$e(o,0),Mt=D(()=>Et(At.value)),Qt=D(()=>Et(At.value+(y.value?10:0))),Pt=D(()=>{if(!we.value)return["choose who prepares the content"];const o=[];return y.value?(M.value[0].keyword||o.push("keyword 1"),M.value[0].link||o.push("link 1")):N.value==="editor"?(K.value.trim()||o.push("title"),n.value<50&&o.push(n.value?`content (at least 50 words, now ${n.value})`:"content"),C.value.length||o.push("image")):(b.value.length||o.push("article file"),C.value.length||o.push("image")),o}),ot=o=>o>=1e6?`${(o/1e6).toLocaleString("en-US",{maximumFractionDigits:1})}M`:o>=1e5?`${Math.round(o/1e3).toLocaleString("en-US")}K`:Number(o).toLocaleString("en-US"),es=o=>o==="Dofollow"?"lt-d":o==="Nofollow"?"lt-n":"lt-b",ts=D(()=>{const o=new Date(g.site.priceUpdatedAt||"");return Number.isFinite(o.getTime())?o.toLocaleDateString("en-GB",{day:"2-digit",month:"short"}):"â"}),ss={dr:["Ahrefs DR (0â100)","Backlink strength of the domain. 50+ strong, 30â50 average."],da:["Moz DA (0â100)","Ranking potential. 40+ good, 20â40 average."],as:["Semrush AS (0â100)","Combined backlink, traffic and spam score. 40+ trustworthy."],at:["Ahrefs traffic","Estimated monthly organic visits."],st:["Semrush traffic","Estimated monthly total visits (organic + other)."],sw:["Similarweb","Estimated monthly total visits."]};function Pe(o){const t=ss[o];t&&zt(t[0],{description:t[1],duration:3800})}function ns(){zt(`${g.site.url} is already in your cart`,{action:{label:"View cart",onClick:()=>mt("/en/panel/cart")}})}let _t=0,_e=0,Ue=!1;function os(o){if(!oe.value)return;const t=Ne.value;Ue=!!t&&t.scrollTop<=0,_t=o.touches[0].clientY,_e=0}function rs(o){const t=Ne.value;if(!(!oe.value||!t||!Ue)){if(o.target?.closest?.("[contenteditable], input, textarea")){Ue=!1;return}if(_e=o.touches[0].clientY-_t,_e<=0){t.style.transform="";return}o.preventDefault(),t.style.transition="none",t.style.transform=`translateY(${_e}px)`}}function is(){const o=Ne.value;!oe.value||!o||(o.style.transition="",o.style.transform="",Ue&&_e>90&&Y.value&&le(),Ue=!1,_e=0)}const Ge=v(!1),rt=v(null),Bt=v(null);let pe=null;function Lt(){if(rt.value){const o=rt.value.getBoundingClientRect();Bt.value={top:o.top,left:o.left,width:o.width,height:o.height}}}function ls(){g.site.hasAhrefsData&&(pe&&clearTimeout(pe),Lt(),pe=setTimeout(()=>{Lt(),Ge.value=!0},150))}function as(){pe&&clearTimeout(pe),pe=setTimeout(()=>{Ge.value=!1},200)}function ds(){pe&&clearTimeout(pe)}function us(){pe&&clearTimeout(pe),pe=setTimeout(()=>{Ge.value=!1},100)}const We=v(!1),it=v(null),jt=v(null);let ge=null;function It(){if(it.value){const o=it.value.getBoundingClientRect();jt.value={top:o.top,left:o.left,width:o.width,height:o.height}}}function cs(){g.site.hasSemrushData&&(ge&&clearTimeout(ge),It(),ge=setTimeout(()=>{It(),We.value=!0},150))}function ms(){ge&&clearTimeout(ge),ge=setTimeout(()=>{We.value=!1},200)}function fs(){ge&&clearTimeout(ge)}function ps(){ge&&clearTimeout(ge),ge=setTimeout(()=>{We.value=!1},100)}const Ye=D(()=>g.site.category?g.site.category.split(",").map(o=>o.trim()).filter(Boolean):[]),gs={Haber:"News","Haber Sitesi":"News",Haberler:"News",Teknoloji:"Technology",Yerel:"Local",Genel:"General",Ekonomi:"Finance",Finans:"Finance",SaÄlık:"Health",Spor:"Sports",EÄitim:"Education",YaÅam:"Lifestyle","YaÅam Tarzı":"Lifestyle",Seyahat:"Travel",Oyun:"Gaming",Magazin:"Entertainment",Moda:"Fashion",EÄlence:"Entertainment",Sanat:"Art",Kültür:"Culture",Bilim:"Science",Emlak:"Real Estate",Otomotiv:"Automobiles",İÅ:"Business",Åirket:"Business"};function Ft(o){return gs[o]||o}const hs={"Amerika BirleÅik Devletleri":"United States","BirleÅik Krallık":"United Kingdom",Endonezya:"Indonesia",Hindistan:"India",Meksika:"Mexico",Türkiye:"Turkey"},xs={İngilizce:"English",Türkçe:"Turkish",Portekizce:"Portuguese",Almanca:"German",Fransızca:"French",İspanyolca:"Spanish",İtalyanca:"Italian",Rusça:"Russian",Ara
2pça:"Arabic",Hollandaca:"Dutch"};function Nt(o){return o&&xs[o]||o||""}function qe(o){return o?hs[o]||o:"Global"}function Re(o){return o?o.toLocaleString("en-US"):"0"}function lt(o){return!o||o<1?"< 1 min":o===1?"1 day":`${o} days`}function vs(o){return o==="Dofollow"?"bg-emerald-50 text-emerald-700 ring-1 ring-inset ring-emerald-200":o==="Basın Bülteni"?"bg-blue-50 text-blue-700 ring-1 ring-inset ring-blue-200":"bg-orange-50 text-orange-700 ring-1 ring-inset ring-orange-200"}const bs=D(()=>g.site.sponsoredBy?"bg-[#F1F2F4] text-[#2B3038]":"bg-emerald-50 text-emerald-700 ring-1 ring-inset ring-emerald-200"),Ut=D(()=>{const o=new Date(g.site.priceUpdatedAt||"").getTime();return Number.isFinite(o)&&Date.now()-o<31*864e5});function Se(o){return o==="Basın Bülteni"?"Press Release":o}return(o,t)=>{const E=xt,H=ht,j=bt,W=vt,me=gt,ve=hn,ae=Un,J=Es,Te=pt,he=Ms,be=Jt;return r(),i("div",{class:S(["rounded-[14px] border transition-[border-color,box-shadow] duration-200 overflow-hidden",[s(G),"border-[#ECEDEF] hover:border-[#DDE0E4]",{"opacity-60":l.site.isPurchased||l.site.hasExistingLink&&!!l.projectId}]])},[e("div",Rn,[e("div",zn,[e("span",Vn,[m(u(String(l.site.url||"?").charAt(0))+" ",1),e("img",{src:`https://www.google.com/s2/favicons?domain=${l.site.url}&sz=64`,alt:"",width:"15",height:"15",loading:"lazy",decoding:"async",class:"absolute inset-0 m-auto w-[15px] h-[15px] bg-white",onError:t[0]||(t[0]=c=>c.target.remove())},null,40,Hn)]),e("a",{href:"https://"+l.site.url,target:"_blank",class:"text-[16px] font-semibold leading-tight text-foreground hover:underline underline-offset-[3px] decoration-[#C9CDD3] break-all"},u(l.site.url),9,On),e("div",Gn,[(r(!0),i(B,null,O(s(Ye),c=>(r(),i("span",{key:c,class:"inline-flex items-center h-[22px] px-[9px] rounded-full border border-[#DDE0E4] text-[12px] font-medium text-[#2B3038] whitespace-nowrap"},u(Ft(c)),1))),128)),l.site.isPurchased?(r(),i("span",{key:0,class:S(["inline-flex items-center gap-1 h-[22px] px-2 rounded-md text-[12px] font-medium whitespace-nowrap",l.projectId?"bg-violet-50 text-violet-700":"bg-[#F1F2F4] text-[#5E6570]"])},[t[30]||(t[30]=e("svg",{class:"w-3 h-3",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"},[e("circle",{cx:"12",cy:"12",r:"8.5"}),e("path",{d:"M12 7.5V12l3 2"})],-1)),m(" "+u(l.projectId?"Purchased for this project":"Previously purchased"),1)],2)):l.site.hasExistingLink?(r(),i("span",Wn,u(l.projectId?"You already have a link in this project":"You already have a link"),1)):x("",!0)])]),e("div",Yn,[s(ee)?(r(),xe(me,{key:0,modelValue:s(L),"onUpdate:modelValue":t[1]||(t[1]=c=>Ze(L)?L.value=c:null)},{default:w(()=>[p(H,{class:"h-8 w-auto gap-1.5 rounded-lg px-3 text-[13px] font-medium","aria-label":"Select link type"},{default:w(()=>[p(E,null,{default:w(()=>[m(u(Se(s(L))),1)]),_:1})]),_:1}),p(W,null,{default:w(()=>[(r(!0),i(B,null,O(s(z),c=>(r(),xe(j,{key:c.linkType,value:c.linkType},{default:w(()=>[m(u(Se(c.linkType))+" · $"+u(("formatPrice"in o?o.formatPrice:s($e))(c.price,0)),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["modelValue"])):x("",!0),e("div",qn,[e("div",Kn,[s(_)?(r(),i(B,{key:0},[m("$"+u(("formatPrice"in o?o.formatPrice:s($e))(l.site.casinoPriceUsd,0)),1)],64)):s(X)?(r(),i(B,{key:1},[m("$"+u(("formatPrice"in o?o.formatPrice:s($e))(l.site.priceUsd,0)),1)],64)):(r(),i(B,{key:2},[m("$"+u(("formatPrice"in o?o.formatPrice:s($e))(s(V),0)),1)],64))]),s(_)?(r(),i("span",Zn,"grey niche")):x("",!0),l.site.priceUsdBased&&!s(X)?(r(),i(B,{key:1},[t[31]||(t[31]=e("svg",{class:"w-3.5 h-3.5 text-muted-foreground/50 cursor-help shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[e("circle",{cx:"12",cy:"12",r:"10"}),e("path",{"stroke-linecap":"round",d:"M12 16v-4M12 8h.01"})],-1)),t[32]||(t[32]=e("div",{class:"absolute right-0 top-full mt-1.5 z-[60] hidden group-hover/usd:block w-56 p-2.5 rounded-lg bg-slate-900 text-white text-[11px] leading-snug shadow-xl pointer-events-none"}," This price is based on the current USD exchange rate and may change accordingly. ",-1))],64)):x("",!0)]),e("span",{ref_key:"ekleAlaniRef",ref:q,class:"inline-flex"},[s(Ie)?(r(),i("button",Jn,[...t[33]||(t[33]=[e("svg",{class:"w-[15px] h-[15px]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.4","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M5 12.5l4.5 4.5L19 7.5"})],-1),m(" In cart ",-1)])])):(r(),i("button",{key:1,type:"button",class:S(["inline-flex items-center justify-center h-9 min-w-[118px] px-3.5 rounded-[10px] text-[13.5px] font-semibold transition-[transform,background-color] duration-150 active:scale-[.97]",s(Y)?"border border-[#DDE0E4] bg-white text-foreground hover:bg-[#F8F9FA]":"bg-foreground text-background hover:bg-[#242A33]"]),onClick:le},u(s(Y)?"Cancel":"Add to cart"),3))],512)])]),e("div",Xn,[e("header",Qn,[e("span",eo,[m(u(String(l.site.url||"?").charAt(0)),1),e("img",{src:`https://www.google.com/s2/favicons?domain=${l.site.url}&sz=64`,alt:"",width:"18",height:"18",loading:"lazy",decoding:"async",onError:t[2]||(t[2]=c=>c.target.remove())},null,40,to)]),e("div",so,[e("div",no,[e("a",{href:"https://"+l.site.url,target:"_blank",rel:"noopener"},u(l.site.url),9,oo)]),e("div",ro,[(r(!0),i(B,null,O(s(Ye).slice(0,2),c=>(r(),i("span",{key:c,class:"tg"},u(Ft(c)),1))),128)),s(Ye).length>2?(r(),i("span",io,"+"+u(s(Ye).length-2),1)):x("",!0),l.site.isPurchased?(r(),i("span",{key:1,class:S(["tg",l.projectId?"pb":"b"])},[t[34]||(t[34]=e("svg",{width:"11",height:"11",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.4","stroke-linecap":"round"},[e("circle",{cx:"12",cy:"12",r:"8.5"}),e("path",{d:"M12 7.5V12l3 2"})],-1)),m(u(l.projectId?"Purchased for this project":"Previously purchased"),1)],2)):l.site.hasExistingLink?(r(),i("span",lo,u(l.projectId?"Linked in this project":"You already have a link"),1)):x("",!0)])]),e("div",ao,[e("b",null,u(s(Mt)),1),e("small",{class:S(es(s(L)))},u(Se(s(L))),3),s(_)?(r(),i("span",uo,"grey niche")):x("",!0)])]),e("div",co,[e("button",{type:"button",onClick:t[3]||(t[3]=c=>Pe("dr"))},[t[35]||(t[35]=e("span",null,"Ahrefs DR",-1)),e("b",{class:S({z:!l.site.ahrefsDr})},u(l.site.ahrefsDr||"â"),3),e("i",{style:Ee({"--w":Math.min(100,Number(l.site.ahrefsDr)||0)+"%"})},null,4)]),e("button",{type:"button",onClick:t[4]||(t[4]=c=>Pe("da"))},[t[36]||(t[36]=e("span",null,"Moz DA",-1)),e("b",{class:S({z:!l.site.mozDa})},u(l.site.mozDa||"â"),3),e("i",{style:Ee({"--w":Math.min(100,Number(l.site.mozDa)||0)+"%"})},null,4)]),e("button",{type:"button",onClick:t[5]||(t[5]=c=>Pe("as"))},[t[37]||(t[37]=e("span",null,"Semrush AS",-1)),e("b",{class:S({z:!l.site.semrushAs})},u(l.site.semrushAs||"â"),3),e("i",{style:Ee({"--w":Math.min(100,Number(l.site.semrushAs)||0)+"%"})},null,4)]),e("button",{type:"button",onClick:t[6]||(t[6]=c=>Pe("at"))},[t[38]||(t[38]=e("span",null,"Ahrefs traffic",-1)),e("b",{class:S({z:!l.site.ahrefsOrganicTraffic})},u(l.site.ahrefsOrganicTraffic?ot(l.site.ahrefsOrganicTraffic):"â"),3)]),e("button",{type:"button",onClick:t[7]||(t[7]=c=>Pe("st"))},[t[39]||(t[39]=e("span",null,"Semrush traffic",-1)),e("b",{class:S({z:!l.site.semrushTotalTraffic})},u(l.site.semrushTotalTraffic?ot(l.site.semrushTotalTraffic):"â"),3)]),e("button",{type:"button",onClick:t[8]||(t[8]=c=>Pe("sw"))},[t[40]||(t[40]=e("span",null,"Similarweb",-1)),e("b",{class:S({z:!l.site.similarwebTraffic})},u(l.site.similarwebTraffic?ot(l.site.similarwebTraffic):"â"),3)])]),e("dl",mo,[e("div",null,[t[41]||(t[41]=e("dt",null,"Max dofollow",-1)),e("dd",null,u(l.site.maxDofollowLinks)+" link",1)]),e("div",null,[t[42]||(t[42]=e("dt",null,"Turnaround",-1)),e("dd",null,u(l.site.publicationMeasured||s(et)<1?"":"â ")+u(lt(s(et))),1)]),e("div",null,[t[43]||(t[43]=e("dt",null,"Content",-1)),e("dd",null,u(l.site.contentLength?Re(l.site.contentLength)+" words":"â"),1)]),e("div",null,[t[44]||(t[44]=e("dt",null,"Country · lang",-1)),e("dd",null,[l.site.countryCode==="WW"?(r(
2),i("span",fo,"ð")):l.site.countryCode?(r(),i("img",{key:1,src:`https://flagcdn.com/24x18/${l.site.countryCode.toLowerCase()}.png`,alt:qe(l.site.country),width:"16",height:"12",loading:"lazy",decoding:"async"},null,8,po)):x("",!0),e("span",go,u(Nt(l.site.language)||qe(l.site.country)),1)])]),e("div",null,[t[45]||(t[45]=e("dt",null,"Sponsored",-1)),e("dd",{class:S(l.site.sponsoredBy?"no":"ok")},u(l.site.sponsoredBy?"Yes":"No"),3)]),e("div",null,[t[46]||(t[46]=e("dt",null,"Price date",-1)),e("dd",null,[e("span",{class:S(["dt",{o:!s(Ut)}])},null,2),m(u(s(ts)),1)])])]),s(ee)?(r(),i("div",ho,[(r(!0),i(B,null,O(s(z),c=>(r(),i("button",{key:c.linkType,type:"button",class:S({on:c.linkType===s(L)}),onClick:U=>L.value=c.linkType},[m(u(Se(c.linkType)),1),e("em",null,"$"+u(("formatPrice"in o?o.formatPrice:s($e))(c.price,0)),1)],10,xo))),128))])):x("",!0),e("footer",vo,[l.site.exampleReportUrl?(r(),i("a",{key:0,class:"b2",href:l.site.exampleReportUrl,target:"_blank",rel:"noopener nofollow"},[...t[47]||(t[47]=[m("Sample report",-1),e("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.2","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M14 4h6v6M20 4l-9 9M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5"})],-1)])],8,bo)):x("",!0),e("span",{ref_key:"ekleAlaniMobRef",ref:$t,class:"sac-ek"},[s(Ie)?(r(),i("button",{key:0,type:"button",class:"b1 in",onClick:ns},[...t[48]||(t[48]=[e("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.8","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M5 12.5l4.5 4.5L19 7.5"})],-1),m("In cart",-1)])])):(r(),i("button",{key:1,type:"button",class:"b1",onClick:le},"Add to cart"))],512)])]),e("div",ko,[e("div",yo,[e("div",{ref_key:"ahrefsCellRef",ref:rt,class:S(["-mx-2 -my-1 px-2 py-1 rounded-lg transition-colors",l.site.hasAhrefsData?"cursor-pointer hover:bg-[#F1F2F4] group":"cursor-default"]),onMouseenter:ls,onMouseleave:as},[e("div",wo,[t[50]||(t[50]=m("Ahrefs traffic",-1)),l.site.hasAhrefsData?(r(),i("svg",So,[...t[49]||(t[49]=[e("path",{d:"M3 3v18h18"},null,-1),e("path",{d:"M18 17V9M13 17V6M8 17v-4"},null,-1)])])):x("",!0)]),e("div",{class:S(["metrik-deger",{"metrik-sifir":!l.site.ahrefsOrganicTraffic}])},[t[51]||(t[51]=e("img",{src:ft,alt:"",class:"w-[15px] h-[15px] shrink-0",width:"15",height:"15",decoding:"async",loading:"lazy"},null,-1)),m(u(Re(l.site.ahrefsOrganicTraffic)),1)],2)],34),p(ve,{visible:s(Ge),"site-id":l.site.id,"anchor-rect":s(Bt),onPopoverEnter:ds,onPopoverLeave:us},null,8,["visible","site-id","anchor-rect"]),e("div",null,[t[53]||(t[53]=e("div",{class:"metrik-etiket"},"Similarweb",-1)),e("div",{class:S(["metrik-deger",{"metrik-sifir":!l.site.similarwebTraffic}])},[t[52]||(t[52]=e("img",{src:_s,alt:"",class:"w-[15px] h-[15px] shrink-0",width:"15",height:"15",decoding:"async",loading:"lazy"},null,-1)),m(u(Re(l.site.similarwebTraffic)),1)],2)]),e("div",{ref_key:"semrushCellRef",ref:it,class:S(["-mx-2 -my-1 px-2 py-1 rounded-lg transition-colors",l.site.hasSemrushData?"cursor-pointer hover:bg-[#F1F2F4] group":"cursor-default"]),onMouseenter:cs,onMouseleave:ms},[e("div",To,[t[55]||(t[55]=m("Semrush traffic",-1)),l.site.hasSemrushData?(r(),i("svg",$o,[...t[54]||(t[54]=[e("path",{d:"M3 3v18h18"},null,-1),e("path",{d:"M18 17V9M13 17V6M8 17v-4"},null,-1)])])):x("",!0)]),e("div",{class:S(["metrik-deger",{"metrik-sifir":!l.site.semrushTotalTraffic}])},[t[56]||(t[56]=e("img",{src:Ot,alt:"",class:"w-[15px] h-[15px] shrink-0",width:"15",height:"15",decoding:"async",loading:"lazy"},null,-1)),m(u(Re(l.site.semrushTotalTraffic)),1)],2)],34),p(ae,{visible:s(We),"site-id":l.site.id,"anchor-rect":s(jt),onPopoverEnter:fs,onPopoverLeave:ps},null,8,["visible","site-id","anchor-rect"])]),e("div",Co,[e("div",null,[t[58]||(t[58]=e("div",{class:"metrik-etiket"},"Ahrefs DR",-1)),e("div",{class:S(["metrik-deger",{"metrik-sifir":!l.site.ahrefsDr}])},[t[57]||(t[57]=e("img",{src:ft,alt:"",class:"w-[15px] h-[15px] shrink-0",width:"15",height:"15",decoding:"async",loading:"lazy"},null,-1)),m(u(l.site.ahrefsDr||0),1)],2)]),e("div",null,[t[60]||(t[60]=e("div",{class:"metrik-etiket"},"Moz DA",-1)),e("div",{class:S(["metrik-deger",{"metrik-sifir":!l.site.mozDa}])},[t[59]||(t[59]=e("img",{src:As,alt:"",class:"w-[15px] h-[15px] shrink-0",width:"15",height:"15",decoding:"async",loading:"lazy"},null,-1)),m(u(l.site.mozDa||0),1)],2)]),e("div",null,[t[62]||(t[62]=e("div",{class:"metrik-etiket"},"Semrush AS",-1)),e("div",{class:S(["metrik-deger",{"metrik-sifir":!l.site.semrushAs}])},[t[61]||(t[61]=e("img",{src:Ot,alt:"",class:"w-[15px] h-[15px] shrink-0",width:"15",height:"15",decoding:"async",loading:"lazy"},null,-1)),m(u(l.site.semrushAs||0),1)],2)])]),e("div",Do,[e("div",null,[t[63]||(t[63]=e("div",{class:"metrik-etiket"},"Price updated",-1)),e("div",Ao,[s(Ut)?(r(),i("span",Eo)):x("",!0),m(" "+u(("formatDate"in o?o.formatDate:s(Ps))(l.site.priceUpdatedAt)),1)])]),e("div",null,[t[64]||(t[64]=e("div",{class:"metrik-etiket"},"Max. dofollow links",-1)),e("div",Mo,u(l.site.maxDofollowLinks)+" "+u(Number(l.site.maxDofollowLinks)===1?"link":"links"),
21)]),e("div",null,[t[65]||(t[65]=e("div",{class:"metrik-etiket"},"Time to publish",-1)),e("div",Po,u(lt(l.site.publicationTime)),1)])]),e("div",_o,[e("div",null,[t[66]||(t[66]=e("div",{class:"metrik-etiket"},"Language",-1)),e("div",Bo,u(Nt(l.site.language)),1)]),e("div",null,[t[67]||(t[67]=e("div",{class:"metrik-etiket"},"Country",-1)),e("div",Lo,[l.site.countryCode==="WW"?(r(),i("span",jo,"ð")):l.site.countryCode?(r(),i("img",{key:1,src:`https://flagcdn.com/24x18/${l.site.countryCode.toLowerCase()}.png`,alt:qe(l.site.country),class:"w-[18px] h-[13px] object-cover rounded-[2px] shrink-0",width:"18",height:"13",decoding:"async",loading:"lazy"},null,8,Io)):x("",!0),e("span",Fo,u(qe(l.site.country)||"â"),1)])]),e("div",null,[t[69]||(t[69]=e("div",{class:"metrik-etiket"},"Example report",-1)),e("div",No,[l.site.exampleReportUrl?(r(),i("a",{key:0,href:l.site.exampleReportUrl,target:"_blank",rel:"noopener nofollow",class:"inline-flex items-center gap-1.5 text-[13.5px] font-semibold text-foreground underline decoration-[#DDE0E4] underline-offset-[3px] hover:decoration-foreground transition-colors"},[...t[68]||(t[68]=[e("svg",{class:"w-3.5 h-3.5 shrink-0",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linejoin":"round"},[e("path",{d:"M6 3h9l3 3v15H6V3Z"}),e("path",{d:"M9 11h6M9 15h6","stroke-linecap":"round"})],-1),m(" View report ",-1)])],8,Uo)):(r(),i("span",Ro,"â"))])])]),e("div",zo,[e("div",null,[t[71]||(t[71]=e("div",{class:"metrik-etiket"},"Link type",-1)),e("div",Vo,[e("span",{class:S(["inline-flex items-center gap-1 h-[22px] px-2 rounded-md text-[12.5px] font-semibold",vs(s(L))])},[s(L)==="Dofollow"?(r(),i("svg",Ho,[...t[70]||(t[70]=[e("path",{d:"M5 12.5l4.5 4.5L19 7.5"},null,-1)])])):x("",!0),m(" "+u(Se(s(L))),1)],2)])]),e("div",null,[t[73]||(t[73]=e("div",{class:"metrik-etiket"},'"Sponsored" tag',-1)),e("div",Oo,[e("span",{class:S(["inline-flex items-center gap-1 h-[22px] px-2 rounded-md text-[12.5px] font-semibold",s(bs)])},[l.site.sponsoredBy?x("",!0):(r(),i("svg",Go,[...t[72]||(t[72]=[e("path",{d:"M5 12.5l4.5 4.5L19 7.5"},null,-1)])])),m(" "+u(l.site.sponsoredBy?"Yes":"No"),1)],2)])]),e("div",null,[t[74]||(t[74]=e("div",{class:"metrik-etiket"},"Content length",-1)),e("div",Wo,u(Re(l.site.contentLength))+" words",1)])])]),(r(),xe(wt,{to:"body",disabled:!s(oe)},[s(Y)&&s(oe)?(r(),i("div",{key:0,class:"sas-scrim",onClick:le})):x("",!0),s(Y)?(r(),i("div",{key:1,ref_key:"sasEl",ref:Ne,class:S(s(oe)?"sas":"border-t border-border/30 bg-gray-50/50 p-6"),onTouchstart:os,onTouchmove:rs,onTouchend:is},[s(oe)?(r(),i(B,{key:0},[e("div",Yo,[t[76]||(t[76]=e("div",{class:"sas-grab"},null,-1)),e("div",qo,[e("span",Ko,[m(u(String(l.site.url||"?").charAt(0)),1),e("img",{src:`https://www.google.com/s2/favicons?domain=${l.site.url}&sz=64`,alt:"",width:"18",height:"18",onError:t[9]||(t[9]=c=>c.target.remove())},null,40,Zo)]),e("div",Jo,[e("h3",null,u(l.site.url),1),e("small",null,u(Se(s(L)))+" · "+u(l.site.maxDofollowLinks)+" "+u(l.site.maxDofollowLinks===1?"link":"links")+" · â "+u(lt(s(et))),1)]),e("button",{type:"button",class:"x","aria-label":"Close",onClick:le},[...t[75]||(t[75]=[e("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.4","stroke-linecap":"round"},[e("path",{d:"M6 6l12 12M18 6 6 18"})],-1)])])])]),e("div",Xo,[s(ee)?(r(),i("div",Qo,[t[78]||(t[78]=e("p",{class:"sas-lbl"},"Link type",-1)),e("div",er,[(r(!0),i(B,null,O(s(z),c=>(r(),i("button",{key:c.linkType,type:"button",class:S({on:c.linkType===s(L)}),onClick:U=>L.value=c.linkType},[t[77]||(t[77]=e("span",{class:"o"},null,-1)),m(u(Se(c.linkType)),1),e("small",null,"$"+u(("formatPrice"in o?o.formatPrice:s($e))(c.price,0)),1)],10,tr))),128))])])):x("",!0),e("div",{ref_key:"sasSecenekRef",ref:Ct},[t[82]||(t[82]=e("p",{class:"sas-lbl"},"Who prepares the content?",-1)),e("div",sr,[e("button",{type:"button",class:S(["op",{on:s(tt)==="editor"}]),onClick:t[10]||(t[10]=c=>st("editor"))},[...t[79]||(t[79]=[e("span",{class:"o"},null,-1),e("span",null,[e("b",null,"I will write it"),e("small",null,"Write or paste it here; links are detected automatically and tracked one by one after publishing.")],-1),e("span",null,null,-1)])],2),s(_)?x("",!0):(r(),i("button",{key:0,t
2ype:"button",class:S(["op",{on:s(tt)==="dosya"}]),onClick:t[11]||(t[11]=c=>st("dosya"))},[...t[80]||(t[80]=[e("span",{class:"o"},null,-1),e("span",null,[e("b",null,"I will upload a file"),e("small",null,"If you already have a Word file and an image.")],-1),e("span",null,null,-1)])],2)),e("button",{type:"button",class:S(["op",{on:s(tt)==="biz"}]),onClick:t[12]||(t[12]=c=>st("biz"))},[...t[81]||(t[81]=[e("span",{class:"o"},null,-1),e("span",null,[e("b",null,"You write it"),e("small",null,"Give us keywords and links; our editors write the article.")],-1),e("span",{class:"p"},"+$10",-1)])],2)])],512)])],64)):x("",!0),s(oe)?x("",!0):(r(),i("div",nr,[e("button",{type:"button",class:S(["px-3.5 py-2 rounded-xl text-[12.5px] font-semibold border transition-colors",s(N)==="editor"?"bg-foreground text-background border-foreground":"bg-white text-muted-foreground border-border/60 hover:border-foreground/40"]),onClick:t[13]||(t[13]=c=>N.value="editor")},"Write Content Here",2),s(_)?x("",!0):(r(),i("button",{key:0,type:"button",class:S(["px-3.5 py-2 rounded-xl text-[12.5px] font-semibold border transition-colors",s(N)==="dosya"?"bg-foreground text-background border-foreground":"bg-white text-muted-foreground border-border/60 hover:border-foreground
2/40"]),onClick:t[14]||(t[14]=c=>N.value="dosya")},"Upload File",2)),e("span",or,u(s(_)?"Grey-niche content is submitted through the editor only; file upload is disabled.":s(N)==="editor"?"Write the title and content; links are detected automatically.":"Upload your ready .doc/.docx/.txt file."),1)])),ct(e("div",{class:S(s(oe)?"sas-ic":"")},[s(N)==="editor"&&!s(y)?(r(),i("div",rr,[t[84]||(t[84]=e("label",{class:"text-xs font-semibold text-foreground uppercase tracking-wider mb-2 block"},[m(" Content Title "),e("span",{class:"text-red-500"},"*")],-1)),p(J,{modelValue:s(K),"onUpdate:modelValue":t[15]||(t[15]=c=>Ze(K)?K.value=c:null),placeholder:"Title of your article",class:"rounded-xl bg-white mb-4"},null,8,["modelValue"]),t[85]||(t[85]=e("label",{class:"text-xs font-semibold text-foreground uppercase tracking-wider mb-2 block"},[m(" Content "),e("span",{class:"text-red-500"},"*")],-1)),e("div",ir,[e("div",lr,[(r(),i(B,null,O(ue,c=>e("button",{key:c.ad,type:"button",class:"h-7 min-w-7 px-1.5 rounded-md text-[12px] font-semibold text-muted-foreground hover:bg-white hover:text-foreground transition-colors",title:c.baslik,onMousedown:t[16]||(t[16]=Ae(()=>{},["prevent"])),onClick:U=>ie(c)},u(c.ad),41,ar)),64))]),e("div",{ref_key:"editorRef",ref:a,contenteditable:"true",class:"min-h-[220px] max-h-[420px] overflow-y-auto px-4 py-3 text-sm leading-relaxed focus:outline-none prose-editor","data-placeholder":"Write your content here or paste from Word / Google Docs; headings, bold text and links are preserved.",onInput:h,onPaste:ke},null,544)]),e("p",dr,[t[83]||(t[83]=m(" Links in your article are detected automatically and tracked after publication ",-1)),p(Te,{baslik:"How are the links in your article tracked?",metin:"Because you write the content here, every link inside it is stored separately with its anchor and target URL. After publication we check each one: is it still on the page, is it still dofollow. The result appears in your panel.",genislik:290})]),s(Z).length?(r(),i("div",ur,[e("div",cr,u(s(Z).length)+" link(s) detected in content ",1),(r(!0),i(B,null,O(s(Z),(c,U)=>(r(),i("div",{key:U,class:"flex items-center gap-3 px-3.5 py-2 text-[12px] border-b border-border/30 last:border-b-0"},[e("span",mr,u(U+1)+".",1),e("span",fr,u(c.anchor),1),e("span",pr,u(c.url),1)]))),128))])):x("",!0)])):x("",!0),e("div",{class:S(["grid grid-cols-1 gap-5",s(N)==="dosya"&&!s(y)?"md:grid-cols-3":"md:grid-cols-2"])},[ct(e("div",null,[e("label",gr,[t[86]||(t[86]=m(" Add Files ",-1)),s(y)?(r(),i("span",xr,"(Optional)")):(r(),i("span",hr,"*"))]),e("div",{class:S(["border-2 border-dashed border-border/60 rounded-xl p-4 text-center cursor-pointer hover:border-primary/40 hover:bg-primary/5 transition-all",{"border-primary/40 bg-primary/5":s(ne)}]),onClick:Ve,onDragover:t[17]||(t[17]=Ae(c=>ne.value=!0,["prevent"])),onDragleave:t[18]||(t[18]=Ae(c=>ne.value=!1,["prevent"])),onDrop:Ae(Xe,["prevent"])},[...t[87]||(t[87]=[e("svg",{class:"w-8 h-8 mx-auto text-muted-foreground/40 mb-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1.5"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m6.75 12-3-3m0 0-3 3m3-3v6m-1.5-15H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})],-1),e("p",{class:"text-xs text-muted-foreground"},"DOC, DOCX, TXT",-1),e("p",{class:"text-[10px] text-muted-foreground/60 mt-0.5"},"Max. 10MB",-1)])],34),e("input",{ref_key:"docInputRef",ref:re,type:"file",accept:".doc,.docx,.txt",multiple:"",class:"hidden",onChange:Me},null,544),s(b).length>0?(r(),i("div",vr,[(r(!0),i(B,null,O(s(b),(c,U)=>(r(),i("div",{key:U,class:"flex items-center gap-1.5 bg-white border border-border/60 rounded-lg px-2.5 py-1.5 text-xs font-medium text-foreground"},[t[89]||(t[89]=e("svg",{class:"w-3.5 h-3.5 text-red-500 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z"})],-1)),e("span",br,u(c.name),1),e("button",{onClick:at=>Fe(U),class:"text-muted-foreground hover:text-red-500 transition-colors"},[...t[88]||(t[88]=[e("svg",{class:"w-3.5 h-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18
218 6M6 6l12 12"})],-1)])],8,kr)]))),128))])):x("",!0)],512),[[Rt,s(N)==="dosya"||s(y)]]),e("div",null,[e("label",yr,[t[90]||(t[90]=m(" Add Images ",-1)),s(y)?(r(),i("span",Sr,"(Optional)")):(r(),i("span",wr,"*"))]),e("div",{class:S(["border-2 border-dashed border-border/60 rounded-xl p-4 text-center cursor-pointer hover:border-primary/40 hover:bg-primary/5 transition-all",{"border-primary/40 bg-primary/5":s(Q)}]),onClick:He,onDragover:t[19]||(t[19]=Ae(c=>Q.value=!0,["prevent"])),onDragleave:t[20]||(t[20]=Ae(c=>Q.value=!1,["prevent"])),onDrop:Ae(Qe,["prevent"])},[...t[91]||(t[91]=[e("svg",{class:"w-8 h-8 mx-auto text-muted-foreground/40 mb-2",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"1.5"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909M3.75 21h16.5A2.25 2.25 0 0 0 22.5 18.75V5.25A2.25 2.25 0 0 0 20.25 3H3.75A2.25 2.25 0 0 0 1.5 5.25v13.5A2.25 2.25 0 0 0 3.75 21Z"})],-1),e("p",{class:"text-xs text-muted-foreground"},"PNG, JPG, WEBP",-1),e("p",{class:"text-[10px] text-muted-foreground/60 mt-0.5"},"Max. 10MB",-1)])],34),e("input",{ref_key:"imgInputRef",ref:te,type:"file",accept:".png,.jpg,.jpeg,.webp",multiple:"",class:"hidden",onChange:Je},null,544),s(C).length>0?(r(),i("div",Tr,[(r(!0),i(B,null,O(s(C),(c,U)=>(r(),i("div",{key:U,class:"flex items-center gap-1.5 bg-white border border-border/60 rounded-lg px-2.5 py-1.5 text-xs font-medium text-foreground"},[t[93]||(t[93]=e("svg",{class:"w-3.5 h-3.5 text-blue-500 shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"m2.25 15.75 5.159-5.159a2.25 2.25 0 0 1 3.182 0l5.159 5.159m-1.5-1.5 1.409-1.409a2.25 2.25 0 0 1 3.182 0l2.909 2.909M3.75 21h16.5A2.25 2.25 0 0 0 22.5 18.75V5.25A2.25 2.25 0 0 0 20.25 3H3.75A2.25 2.25 0 0 0 1.5 5.25v13.5A2.25 2.25 0 0 0 3.75 21Z"})],-1)),e("span",$r,u(c.name),1),e("button",{onClick:at=>P(U),class:"text-muted-foreground hover:text-red-500 transition-colors"},[...t[92]||(t[92]=[e("svg",{class:"w-3.5 h-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6 18 18 6M6 6l12 12"})],-1)])],8,Cr)]))),128))])):x("",!0)]),e("div",null,[t[94]||(t[94]=e("label",{class:"text-xs font-semibold text-foreground uppercase tracking-wider mb-2 block"},[m(" Order Note "),e("span",{class:"text-muted-foreground/60 font-normal normal-case"},"(Optional)")],-1)),p(he,{modelValue:s(k),"onUpdate:modelValue":t[21]||(t[21]=c=>Ze(k)?k.value=c:null),placeholder:"Write any notes about your order...",rows:"4",class:"resize-none rounded-xl bg-white"},null,8,["modelValue"])])],2),s(ye).length?(r(),i("div",{key:1,class:S(["mt-5 rounded-xl border px-4 py-3",s(F)?"border-rose-200 bg-rose-50/60":"border-red-300 bg-red-50"])},[e("p",{class:S(["text-[13px] font-semibold m-0",s(F)?"text-rose-700":"text-red-700"])},u(s(F)?"Grey niche detected; the price has changed.":"Grey niche detected; this site does not accept grey-niche content."),3),e("div",Dr,[(r(!0),i(B,null,O(s(ye),c=>(r(),i("span",{key:c,class:"text-[11px] font-semibold text-red-700 bg-white border border-red-200 rounded-full px-2 py-0.5"},u(c),1))),128))]),!s(F)&&s(X)?(r(),i("button",{key:0,type:"button",class:"mt-3 inline-flex items-center gap-1.5 rounded-lg bg-rose-600 px-3 py-1.5 text-[12px] font-semibold text-white hover:bg-rose-700",onClick:De},"Show grey-niche publishers â")):x("",!0)],2)):x("",!0),s(A)?(r(),i("p",Ar,"Grey Niche listing: only grey-niche content is published here; the price shown is the grey-niche rate.")):x("",!0),s(F)&&!s(A)?(r(),i("div",Er,[e("button",{type:"button",class:S(["w-full flex items-center gap-3 px-4 py-3 text-left transition-colors",s(_)?"bg-rose-50":"bg-white hover:bg-rose-50/40"]),onClick:t[22]||(t[22]=c=>_.value=!s(_))},[e("div",{class:S(["w-5 h-5 rounded-md border-2 flex items-center justify-center shrink-0 transition-colors",s(_)?"bg-rose-600 border-rose-600":"border-border"])},[s(_)?(r(),i("svg",Mr,[...t[95]||(t[95]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 12.75l6 6 9-13.5"},null,-1)])])):x("",!0)],2),e("div",Pr,[t[96]||(t[96]=e("span",{class:"text-sm font-semibold text-foreground"},"Grey Niche content",-1)),e("span",_r,"$"+u(("formatPrice"in o?o.formatPrice:s($e))(l.site.casinoPriceUsd,0)),1)]),t[97]||(t[97]=e("span",{class:"text-xs text-muted-foreground"},"The publisher charges a special rate for this niche",-1))],2),s(_)?(r(),i("p",Br," Grey-niche content (casino, betting, gambling and similar) is published at this rate. Such content submitted without this option may be rejected by the publisher; the fee is refunded to your balance. ")):x("",!0)])):x("",!0),!s(oe)||s(y)?(r(),i("div",Lr,[s(oe)?x("",!0):(r(),i("button",{key:0,t
2ype:"button",class:S(["w-full flex items-center gap-3 px-4 py-3 text-left transition-colors",s(y)?"bg-violet-50":"bg-white hover:bg-violet-50/40"]),onClick:t[23]||(t[23]=c=>y.value=!s(y))},[e("div",{class:S(["w-5 h-5 rounded-md border-2 flex items-center justify-center shrink-0 transition-colors",s(y)?"bg-violet-600 border-violet-600":"border-border"])},[s(y)?(r(),i("svg",jr,[...t[98]||(t[98]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M4.5 12.75l6 6 9-13.5"},null,-1)])])):x("",!0)],2),t[99]||(t[99]=e("div",{class:"flex-1"},[e("span",{class:"text-sm font-semibold text-foreground"},"Let us write your content"),e("span",{class:"text-sm font-bold text-violet-600 ml-1.5"},"+$10")],-1)),t[100]||(t[100]=e("span",{class:"text-xs text-muted-foreground"},"You won't need to upload content yourself",-1))],2)),s(y)?(r(),i("div",Ir,[t[107]||(t[107]=e("p",{class:"text-[11px] font-semibold text-violet-700 uppercase tracking-wider mb-1"},"Keywords and Links",-1)),e("div",Fr,[e("div",null,[t[101]||(t[101]=e("label",{class:"text-[11px] text-muted-foreground mb-1 block"},[m("Keyword 1 "),e("span",{class:"text-red-500"},"*")],-1)),p(J,{modelValue:s(M)[0].keyword,"onUpdate:modelValue":t[24]||(t[24]=c=>s(M)[0].keyword=c),placeholder:"e.g. what is a backlink",class:"h-9 text-sm rounded-lg"},null,8,["modelValue"])]),e("div",null,[t[102]||(t[102]=e("label",{class:"text-[11px] text-muted-foreground mb-1 block"},[m("Link 1 "),e("span",{class:"text-red-500"},"*")],-1)),p(J,{modelValue:s(M)[0].link,"onUpdate:modelValue":t[25]||(t[25]=c=>s(M)[0].link=c),placeholder:"https://...",class:"h-9 text-sm rounded-lg"},null,8,["modelValue"])])]),e("div",Nr,[e("div",null,[t[103]||(t[103]=e("label",{class:"text-[11px] text-muted-foreground mb-1 block"},[m("Keyword 2 "),e("span",{class:"text-muted-foreground/60"},"(optional)")],-1)),p(J,{modelValue:s(M)[1].keyword,"onUpdate:modelValue":t[26]||(t[26]=c=>s(M)[1].keyword=c),placeholder:"e.g. seo services",class:"h-9 text-sm rounded-lg"},null,8,["modelValue"])]),e("div",null,[t[104]||(t[104]=e("label",{class:"text-[11px] text-muted-foreground mb-1 block"},[m("Link 2 "),e("span",{class:"text-muted-foreground/60"},"(optional)")],-1)),p(J,{modelValue:s(M)[1].link,"onUpdate:modelValue":t[27]||(t[27]=c=>s(M)[1].link=c),placeholder:"https://...",class:"h-9 text-sm rounded-lg"},null,8,["modelValue"])])]),e("div",Ur,[e("div",null,[t[105]||(t[105]=e("label",{class:"text-[11px] text-muted-foreground mb-1 block"},[m("Keyword 3 "),e("span",{class:"text-muted-foreground/60"},"(optional)")],-1)),p(J,{modelValue:s(M)[2].keyword,"onUpdate:modelValue":t[28]||(t[28]=c=>s(M)[2].keyword=c),placeholder:"e.g. domain authority",class:"h-9 text-sm rounded-lg"},null,8,["modelValue"])]),e("div",null,[t[106]||(t[106]=e("label",{class:"text-[11px] text-muted-foreground mb-1 block"},[m("Link 3 "),e("span",{class:"text-muted-foreground/60"},"(optional)")],-1)),p(J,{modelValue:s(M)[2].link,"onUpdate:modelValue":t[29]||(t[29]=c=>s(M)[2].link=c),placeholder:"https://...",class:"h-9 text-sm rounded-lg"},null,8,["modelValue"])])])])):x("",!0)])):x("",!0)],2),[[Rt,!s(oe)||s(we)]]),s(oe)?(r(),i(B,{key:2},[s(we)?(r(),i("p",Rr,[...t[108]||(t[108]=[e("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"},[e("circle",{cx:"12",cy:"12",r:"9"}),e("path",{d:"M12 16v-4M12 8h.01"})],-1),e("span",null,[m("The published link is "),e("b",null,"attached to your project automatically"),m(" based on the URL in your content, and checked every 6 hours after publishing.")],-1)])])):x("",!0),s(f)?(r(),i("p",zr,u(s(f)),1)):x("",!0),e("div",Vr,[s(Pt).length?(r(),i("p",Hr,"Missing: "+u(s(Pt).join(", ")),1)):x("",!0),e("div",Or,[e("div",Gr,[t[109]||(t[109]=e("small",null,"Total",-1)),e("b",null,u(s(Qt)),1),e("em",null,u(s(y)?`${s(Mt)}
2 post + $10 writing`:`${Se(s(L))} post`),1)]),e("button",{type:"button",class:"b1",disabled:s(je)||!s(we),onClick:Tt},u(s(se)?"Addingâ¦":"Add to cart"),9,Wr)])])],64)):(r(),i(B,{key:3},[e("div",Yr,[p(be,{variant:"outline",onClick:le,class:"rounded-xl"},{default:w(()=>[...t[110]||(t[110]=[m(" Cancel ",-1)])]),_:1}),p(be,{onClick:Tt,disabled:s(je),class:"rounded-xl bg-emerald-500 hover:bg-emerald-600"},{default:w(()=>[s(se)?(r(),i("svg",qr,[...t[111]||(t[111]=[e("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"4"},null,-1),e("path",{class:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"},null,-1)])])):(r(),i("svg",Kr,[...t[112]||(t[112]=[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M2.25 3h1.386c.51 0 .955.343 1.087.835l.383 1.437M7.5 14.25a3 3 0 0 0-3 3h15.75m-12.75-3h11.218c1.121-2.3 2.1-4.684 2.924-7.138a60.114 60.114 0 0 0-16.536-1.84M7.5 14.25 5.106 5.272M6 20.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm12.75 0a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"},null,-1)])])),m(" "+u(s(se)?"Adding...":"Add to Cart"),1)]),_:1},8,["disabled"])]),!s(y)&&s(N)==="dosya"&&(s(b).length===0||s(C).length===0)?(r(),i("p",Zr," You must upload a file and an image to add this to your cart. ")):x("",!0),s(y)&&(!s(M)[0].keyword||!s(M)[0].link)?(r(),i("p",Jr," At least one keyword and link is required. ")):x("",!0),s(f)?(r(),i("p",Xr,u(s(f)),1)):x("",!0)],64))],34)):x("",!0)],8,["disabled"]))],2)}}}),ei=yt(Qr,[["__scopeId","data-v-e0c7ddb0"]]),ti={class:"px-4 sm:px-6 py-5 sm:py-6 space-y-3"},si={class:"hidden lg:flex flex-wrap items-center gap-x-[18px] gap-y-2 text-[13.5px] text-[#5E6570]"},ni={class:"flex flex-wrap gap-x-3.5 gap-y-1 text-[#2B3038]"},oi={class:"hidden lg:block bg-white border border-[#ECEDEF] rounded-[14px]","aria-label":"Filters"},ri={class:"flex items-center gap-3 flex-wrap px-3.5 py-3 border-b border-[#ECEDEF]"},ii={class:"flex items-center gap-2.5 flex-wrap"},li={class:"inline-flex items-center gap-1.5 text-[12.5px] font-semibold text-[#5E6570]"},ai={class:"flex items-center gap-2"},di={class:"flex items-center gap-2.5"},ui={class:"inline-flex items-center gap-1.5 text-[12.5px] font-semibold text-[#5E6570]"},ci={class:"inline-flex gap-0.5 p-[3px] rounded-[10px] bg-[#F1F2F4]"},mi={class:"ml-auto hidden lg:inline-flex items-center gap-1.5 text-[12.5px] font-medium text-[#5E6570]"},fi={class:"hidden lg:flex items-center gap-3 flex-wrap px-0.5 pt-1"},pi={class:"text-[15px] font-semibold text-foreground tabular-nums"},gi={class:"inline-flex gap-0.5 p-[3px] rounded-[10px] bg-[#F1F2F4] overflow-x-auto max-w-full"},hi=["onClick"],xi={class:"sm:ml-auto flex items-center gap-2"},vi=["title","aria-label"],bi={key:0,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},ki={key:1,width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},yi={class:"text-[13px] text-[#8A919B] whitespace-nowrap tabular-nums"},wi={key:0,class:"flex items-center justify-center py-16"},Si={key:0,class:"mb-3 rounded-xl border border-slate-200 bg-slate-50 px-4 py-3 text-[13px] leading-relaxed text-slate-700"},Ti={key:0,href:"https://wa.me/447448647912?text=Hi%2C%20I%20would%20like%20help%20from%20a%20consultant%20choosing%20sites.",target:"_blank",rel:"noopener",class:"mt-2 inline-flex items-center rounded-lg bg-slate-900 px-3 py-1.5 text-[12.5px] font-semibold text-white hover:bg-slate-800"},$i={key:1,class:"space-y-2.5"},Ci={key:0,class:"rounded-xl border border-rose-200 bg-rose-50/60 px-4 py-3 text-[13px] leading-relaxed text-rose-800"},Di={key:0,class:"mt-1 block font-semibold"},Ai={key:2,class:"grid grid-cols-1 sm:grid-cols-[230px_1fr] gap-6 sm:gap-7 items-center px-6 sm:px-7 pt-6 sm:pt-7 rounded-[14px] bg-[#E8EBEF] overflow-hidden"},Ei={key:3,class:"sam-daha lg:hidden"},Mi={key:0,href:"https://wa.me/447448647912?text=Hi%2C%20I%20would%20like%20help%20from%20a%20consultant%20choosing%20sites.",target:"_blank",rel:"noopener"},Pi={class:"bar"},_i=["disabled"],Bi={key:2,style:{margin:"0"}},Li={key:4,class:"hidden lg:flex items-center justify-center gap-2 pt-4"},ji={key:1,class:"px-1 text-muted-foreground"},Ii={class:"bg-foreground text-background rounded-2xl p-8 text-center"},Fi=ze({__name:"find-sites",setup(l){Vt({title:"Find Sites | Backlink Ajans"});const g=v(1),R=v(""),I=Ts(),z=$s(),{$trackEvent:ee}=Cs(),L=v(""),de=[{val:"",label:"All"},{val:"7g",label:"Last 7 days"},{val:"1ay",label:"Last month"},{val:"3ay",label:"Last 3 months"}];function V(h){L.value=h,g.value=1,h?($.value.sortBy="created_at",$.value.sortOrder="desc"):($.value.sortBy="price",$.value.sortOrder="asc")}const A=D(()=>I.query.niche==="grey"?"gri":"global"),_=v(!1);Le(()=>{try{_.value=!!sessionStorage.getItem("griTaslak")}catch{}}),fe(()=>I.query.niche,()=>{try{_.value=!!sessionStorage.getItem("griTaslak")}catch{}}),Vt({title:D(()=>A.value==="gri"?"Grey Niche | Backlink Ajans":"Find Sites | Backlink Ajans")});const F=v([]);async function De(){try{const h=await $fetch("/api/projects");F.value=h.projects.map(n=>({id:n.id,domain:n.domain,name:n.name}))}catch{F.value=[]}}Le(()=>{De();const h=String(I.query.eklenme||"");["7g","1ay","3ay"].includes(h)&&V(h)});const $=v({search:String(I.query.search||"").trim(),category:"",language:"",country:"",linkType:"",minPrice:"",maxPrice:"",minDr:"",maxDr:"",minDa:"",maxDa:"",minAhrefsTraffic:"",maxAhrefsTraffic:"",minSimilarweb:"",maxSimilarweb:"",minSemrush:"",maxSemrush:"",sortBy:"price",sortOrder:"asc",excludePurchased:""}),X=D(()=>{const h={page:g.value},n=$.value;n.search&&(h.search=n.search),n.category&&(h.category=n.category),n.language&&(h.language=n.language),n.c
2ountry&&(h.country=n.country),n.linkType&&(h.linkType=n.linkType),n.minPrice&&(h.minPrice=n.minPrice),n.maxPrice&&(h.maxPrice=n.maxPrice),n.minDr&&(h.minDr=n.minDr),n.maxDr&&(h.maxDr=n.maxDr),n.minDa&&(h.minDa=n.minDa),n.maxDa&&(h.maxDa=n.maxDa);for(const y of["minAhrefsTraffic","maxAhrefsTraffic","minSimilarweb","maxSimilarweb","minSemrush","maxSemrush"])n[y]&&(h[y]=n[y]);return n.sortBy&&(h.sortBy=n.sortBy),n.sortOrder&&(h.sortOrder=n.sortOrder),n.excludePurchased&&(h.excludePurchased=n.excludePurchased),R.value&&(h.projectId=R.value),L.value&&(h.eklenme=L.value),h.region=A.value,h}),{data:G,pending:Y,error:q,refresh:se}=Wt("/api/sites",{query:X,watch:[X]},"$ltdKcA2H2s"),f=v("");let T=null;fe(()=>$.value.search,h=>{const n=(h||"").trim();T&&clearTimeout(T),!(n.length<2)&&(T=setTimeout(()=>{n!==f.value&&(f.value=n,ee?.("site_arama",{terim:n.slice(0,100),sonuc:G.value?.total??null,bolge:A.value,kategori:$.value.category||void 0}))},1200))});const{data:k}=Wt("/api/sites/filters",{query:D(()=>({region:A.value}))},"$jTgVYJhWM7"),b=D(()=>{const h=k.value||{categories:[],languages:[],countries:[]};return{...h,languages:h.languages.filter(n=>n!=="Türkçe")}}),C=D(()=>{const h=G.value?.totalPages||1,n=g.value,y=[];if(h<=7)for(let M=1;M<=h;M++)y.push(M);else{y.push(1),n>3&&y.push("...");for(let M=Math.max(2,n-1);M<=Math.min(h-1,n+1);M++)y.push(M);n<h-2&&y.push("..."),y.push(h)}return y});let ne=0;fe(()=>G.value?.sites,h=>{if(!h?.length)return;const n=Date.now();n-ne<3e3||(ne=n,Kt("view_item_list",{item_list_id:"site_ara_en",item_list_name:"Find Sites",items:h.slice(0,10).map(y=>Zt(y))}))},{immediate:!0});function Q(h){$.value={...$.value,sortBy:h||"price",...h==="created_at"?{sortOrder:"desc"}:{}},g.value=1}function re(){const h={...$.value};for(const n of Object.keys(h))n!=="sortBy"&&n!=="sortOrder"&&(h[n]="");$.value=h,L.value&&V(""),g.value=1}Le(()=>{I.query.projectId&&(R.value=String(I.query.projectId))});const te=v(!1);let N=null;const K=()=>{te.value=!!N?.matches};Le(()=>{N=window.matchMedia("(max-width: 1023px)"),K(),N.addEventListener("change",K)}),kt(()=>N?.removeEventListener("change",K));const d=v([]),a=v(0),Z=D(()=>Number(G.value?.total??a.value)||0);fe(()=>G.value,h=>{if(!h)return;a.value=Number(h.total)||0;const n=h.sites||[];if((Number(h.page)||1)>1&&te.value){const y=new Set(d.value.map(M=>M.id));d.value=[...d.value,...n.filter(M=>!y.has(M.id))]}else d.value=n},{immediate:!0});const ue=D(()=>te.value?d.value:G.value?.sites||[]);function ie(){q.value?se():g.value++}function ce(){document.querySelector("main")?.scrollTo({top:0,behavior:"smooth"})}const ke=v(!1);return fe(()=>I.query.yeni,h=>{if(h!=="7g")return;L.value!=="7g"&&V("7g"),ke.value=!0;const{yeni:n,...y}=I.query;z.replace({query:y})},{immediate:!0}),(h,n)=>{const y=ks,M=pt,je=xt,Ie=ht,le=bt,Ve=vt,He=gt,Me=Ds,Je=nn,Xe=ei,Qe=Is,Fe=Jt;return r(),i("div",ti,[p(y,{en:"",usd:"",filters:s($),"filter-options":s(b),total:s(Z),pending:s(Y),kapsam:s(A),kapsamlar:[{val:"global",label:"Global"},{val:"gri",label:"Grey Niche"}],eklenme:s(L),projeler:s(F),"proje-id":s(R),"onUpdate:filters":n[0]||(n[0]=P=>{$.value=P,g.value=1}),onKapsam:n[1]||(n[1]=P=>("navigateTo"in h?h.navigateTo:s(mt))(P==="gri"?"/en/panel/find-sites?niche=grey":"/en/panel/find-sites")),onEklenme:V,onProje:n[2]||(n[2]=P=>{R.value=P,g.value=1}),onTemizle:re,onBasa:ce},null,8,["filters","filter-options","total","pending","kapsam","eklenme","projeler","proje-id"]),e("div",si,[e("span",null,u(s(A)==="gri"?"Publishers that accept grey-niche content, with real metrics.":"Compare global publishers for your guest posts with real metrics."),1),e("span",ni,[(r(),i(B,null,O(["Verified publishers","Real Ahrefs / Semrush / Moz","Dofollow & permanent"],P=>e("span",{key:P,class:"inline-flex items-center gap-1.5"},[n[9]||(n[9]=e("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2.4","stroke-linecap":"round","stroke-linejoin":"round"},[e("path",{d:"M5 12.5l4.5 4.5L19 7.5"})],-1)),m(u(P),1)])),64))])]),e("section",oi,[e("div",ri,[e("div",ii,[e("span",li,[n[10]||(n[10]=e("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"1.8","stroke-linejoin":"round"},[e("path",{d:"M3 7a2 2 0 0 1 2-2h4l2 2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V7Z"})],-1)),n[11]||(n[11]=m(" Project ",-1)),p(M,{baslik:"Why pick a project?",metin:"When you pick a project, sites you already bought for it are marked <b>purchased</b> and can be hidden from the list, so you never buy a second link from the same publisher for the same site.",genislik:300})]),e("div",ai,[p(He,{"model-value":s(R)||"__none__","onUpdate:modelValue":n[3]||(n[3]=P=>{R.value=P==="__none__"?"":P||"",g.value=1})},{default:w(()=>[p(Ie,{class:"w-40 sm:w-48 h-9 rounded-[10px] text-[13.5px] font-medium bg-white border-[#DDE0E4]"},{default:w(()=>[p(je,{placeholder:"Select project"})]),_:1}),p(Ve,null,{default:w(()=>[p(le,{value:"__none__"},{default:w(()=>[...n[12]||(n[12]=[m("No project selected",-1)])]),_:1}),(r(!0),i(B,null,O(s(F),P=>(r(),xe(le,{key:P.id,value:String(P.id)},{default:w(()=>[m(u(P.domain)+u(P.name?` (${P.name})`:""),1)]),_:2},1032,["value"]))),128))]),_:1})]),_:1},8,["model-value"]),p(Me,{to:"/en/panel/projects",class:"h-9 inline-flex items-center gap-1 rounded-[10px] border border-[#DDE0E4] bg-white px-3 text-[13px] font-semibold text-foreground hover:bg-[#F8F9FA] hover:border-[#C9CDD3] transition-colors shrink-0"},{default:w(()=>[...n[13]||(n[13]=[e("svg",{class:"w-3.5 h-3.5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","stroke-width":"2.5"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M12 5v14M5 12h14"})],-1),m(" Add project ",-1)])]),_:1})])]),n[18]||(n[18]=e("span",{class:"hidden md:block w-px h-6 bg-[#ECEDEF]"},null,-1)),e("div",di,[e("span",ui,[n[14]||(n[14]=m(" Scope ",-1)),p(M,{baslik:"Global publishers",metin:"This catalog only shows global, foreign-language publishers priced in USD â ideal for reaching an international audience. Grey Niche lists the publishers that accept casino, betting and similar content.",genislik:300})]),e("div",ci,[p(Me,{to:"/en/panel/find-sites",class:S(["h-[30px] px-3 rounded-[7px] text-[13px] font-medium whitespace-nowrap inline-flex items-center transition-colors",s(A)!=="gri"?"bg-white text-foreground shadow-[0_1px_2px_rgb(0_0_0/.08),0_0_0_1px_rgb(0_0_0/.04)]":"text-[#5E6570] hover:text-foreground"])},{default:w(()=>[...n[15]||(n[15]=[m("Global",-1)])]),_:1},8,["class"]),p(Me,{to:"/en/panel/find-sites?niche=grey",class:S(["h-[30px] px-3 rounded-[7px] text-[13px] font-medium whitespace-nowrap inline-flex items-center transition-colors",s(A)==="gri"?"bg-white text-foreground shadow-[0_1px_2px_rgb(0_0_0/.08),0_0_0_1px_rgb(0_0_0/.04)]":"text-[#5E6570] hover:text-foreground"])},{default:w(()=>[...n[16]||(n[16]=[m("Grey Niche",-1)])]),_:1},8,["class"])])]),e("span",mi,[n[17]||(n[17]=m(" How are sites labeled? ",-1)),p(M,{baslik:"How are sites labeled?",metin:"<b>Previously purchased</b> â with no project selected, sites you bought for any project.<br><b>Purchased for this project</b> â with a project selected, sites bought exactly for that project.<br><b>No label</b> â sites from other projects look clean for this one.",genislik:320})])]),p(Je,{filters:s($),"filter-options":s(b),"onUpdate:filters":n[4]||(n[4]=P=>{$.value=P,g.value=1})},null,8,["filters","filter-options"])]),e("div",fi,[e("span",pi,u((s(G)?.total||0).toLocaleStr
2ing("en-US"))+" sites",1),e("div",gi,[(r(),i(B,null,O(de,P=>e("button",{key:P.val,type:"button",class:S(["h-[30px] px-3 rounded-[7px] text-[13px] font-medium whitespace-nowrap transition-colors",s(L)===P.val?"bg-white text-foreground shadow-[0_1px_2px_rgb(0_0_0/.08),0_0_0_1px_rgb(0_0_0/.04)]":"text-[#5E6570] hover:text-foreground"]),onClick:ye=>V(P.val)},u(P.label),11,hi)),64))]),e("div",xi,[p(He,{"model-value":s($).sortBy||void 0,"onUpdate:modelValue":n[5]||(n[5]=P=>Q(String(P||"")))},{default:w(()=>[p(Ie,{class:"h-9 w-44 rounded-[10px] text-[13.5px] font-medium bg-white border-[#DDE0E4]"},{default:w(()=>[p(je,{placeholder:"Sort"})]),_:1}),p(Ve,null,{default:w(()=>[p(le,{value:"price"},{default:w(()=>[...n[19]||(n[19]=[m("Price",-1)])]),_:1}),p(le,{value:"moz_da"},{default:w(()=>[...n[20]||(n[20]=[m("Moz DA",-1)])]),_:1}),p(le,{value:"ahrefs_dr"},{default:w(()=>[...n[21]||(n[21]=[m("Ahrefs DR",-1)])]),_:1}),p(le,{value:"ahrefs_organic_traffic"},{default:w(()=>[...n[22]||(n[22]=[m("Ahrefs traffic",-1)])]),_:1}),p(le,{value:"similarweb_traffic"},{default:w(()=>[...n[23]||(n[23]=[m("Similarweb",-1)])]),_:1}),p(le,{value:"semrush_total_traffic"},{default:w(()=>[...n[24]||(n[24]=[m("Semrush",-1)])]),_:1}),p(le,{value:"created_at"},{default:w(()=>[...n[25]||(n[25]=[m("Newest",-1)])]),_:1})]),_:1})]),_:1},8,["model-value"]),e("button",{type:"button",class:"shrink-0 w-9 h-9 grid place-items-center rounded-[10px] border border-[#DDE0E4] bg-white hover:bg-[#F8F9FA] transition-colors",title:s($).sortOrder==="asc"?"Ascending (click for descending)":"Descending (click for ascending)","aria-label":s($).sortOrder==="asc"?"Ascending order":"Descending order",onClick:n[6]||(n[6]=P=>{$.value={...s($),sortOrder:s($).sortOrder==="asc"?"desc":"asc"},g.value=1})},[s($).sortOrder==="asc"?(r(),i("svg",bi,[...n[26]||(n[26]=[Ht('<path d="m3 8 4-4 4 4" data-v-13b87173></path><path d="M7 4v16" data-v-13b87173></path><path d="M11 12h4" data-v-13b87173></path><path d="M11 16h7" data-v-13b87173></path><path d="M11 20h10" data-v-13b87173></path>',5)])])):(r(),i("svg",ki,[...n[27]||(n[27]=[Ht('<path d="m3 16 4 4 4-4" data-v-13b87173></path><path d="M7 20V4" data-v-13b87173></path><path d="M11 4h10" data-v-13b87173></path><path d="M11 8h7" data-v-13b87173></path><path d="M11 12h4" data-v-13b87173></path>',5)])]))],8,vi),e("span",yi,"Page "+u(s(G)?.page||1)+" / "+u(s(G)?.totalPages||1),1)])]),s(Y)&&!(s(te)&&s(g)>1)?(r(),i("div",wi,[...n[28]||(n[28]=[e("div",{class:"w-8 h-8 border-3 border-foreground
2/15 border-t-foreground rounded-full animate-spin"},null,-1)])])):(r(),i(B,{key:1},[s(q)?.statusCode===429||s(q)?.statusCode===403?(r(),i("div",Si,[m(u(s(q)?.data?.data?.mesaj||"You are paging through the catalog too fast. Please try again in a few minutes.")+" ",1),s(q)?.data?.data?.gunlukSinir||s(q)?.data?.data?.askida?(r(),i("a",Ti,u(s(q)?.data?.data?.askida?"Message us on WhatsApp â":"Choose with your consultant â"),1)):x("",!0)])):x("",!0),s(ue).length?(r(),i("div",$i,[s(A)==="gri"?(r(),i("div",Ci,[n[29]||(n[29]=e("b",null,"Grey Niche:",-1)),n[30]||(n[30]=m(" international publishers that accept grey-niche content (casino, betting and similar). Prices shown are grey-niche rates; content is submitted through the editor. ",-1)),s(_)?(r(),i("span",Di,'Your draft was saved: pick a site and click "Add to Cart" and it will load into the editor automatically.')):x("",!0)])):x("",!0),(r(!0),i(B,null,O(s(ue),P=>(r(),xe(Xe,{key:P.id,site:P,"project-id":s(R)||"","gri-sektor":s(A)==="gri"},null,8,["site","project-id","gri-sektor"]))),128))])):(r(),i("div",Ai,[p(Qe,{kadro:[["tepe",95],["murekkep",215],["capa",285],["tik",0]],soru:"","view-box":"-10 -60 450 500",class:"order-last sm:order-none self-end w-[210px] sm:w-[230px] h-[233px] sm:h-[256px] mx-auto"}),e("div",{class:"text-center sm:text-left sm:pb-7"},[n[31]||(n[31]=e("h3",{class:"bos-baslik text-foreground mb-1.5"},[m("No sites match "),e("em",null,"these filters.")],-1)),n[32]||(n[32]=e("p",{class:"text-[14px] text-[#5E6570] mb-4"},"Loosen or clear your filters. Can't find the publisher you want? Tell us and we'll add it.",-1)),e("button",{type:"button",class:"h-9 px-3.5 rounded-[10px] bg-foreground text-background text-[13.5px] font-semibold hover:bg-[#242A33] active:scale-[.97] transition-[transform,background-color]",onClick:re},"Clear filters")])])),s(te)&&s(ue).length?(r(),i("div",Ei,[(s(q)?.statusCode===429||s(q)?.statusCode===403)&&s(g)>1?(r(),i(B,{key:0},[e("p",null,u(s(q)?.data?.data?.mesaj||"You are paging too fast. Please try again in a few minutes."),1),s(q)?.data?.data?.gunlukSinir||s(q)?.data?.data?.askida?(r(),i("a",Mi,"Choose with your consultant â")):x("",!0)],64)):s(ue).length<s(Z)?(r(),i(B,{key:1},[e("small",null,u(s(ue).length.toLocaleString("en-US"))+" / "+u(s(Z).toLocaleString("en-US"))+" sites shown",1),e("div",Pi,[e("i",{style:Ee({width:(s(ue).length/s(Z
2)*100).toFixed(1)+"%"})},null,4)]),e("button",{type:"button",disabled:s(Y),onClick:ie},u(s(Y)?"Loadingâ¦":"Show 20 more sites"),9,_i)],64)):(r(),i("small",Bi,"That is all · "+u(s(Z).toLocaleString("en-US"))+" sites",1))])):x("",!0),s(G)&&s(G).totalPages>1?(r(),i("div",Li,[p(Fe,{variant:"outline",size:"sm",disabled:s(g)<=1,onClick:n[7]||(n[7]=P=>g.value--),class:"rounded-xl"},{default:w(()=>[...n[33]||(n[33]=[m(" Previous ",-1)])]),_:1},8,["disabled"]),(r(!0),i(B,null,O(s(C),P=>(r(),i(B,{key:P},[P!=="..."?(r(),xe(Fe,{key:0,onClick:ye=>g.value=P,variant:s(g)===P?"default":"outline",size:"sm",class:"w-10 h-10 rounded-xl"},{default:w(()=>[m(u(P),1)]),_:2},1032,["onClick","variant"])):(r(),i("span",ji,"..."))],64))),128)),p(Fe,{variant:"outline",size:"sm",disabled:s(g)>=(s(G)?.totalPages||1),onClick:n[8]||(n[8]=P=>g.value++),class:"rounded-xl"},{default:w(()=>[...n[34]||(n[34]=[m(" Next ",-1)])]),_:1},8,["disabled"])])):x("",!0)],64)),e("div",Ii,[n[36]||(n[36]=e("h2",{class:"text-[22px] font-bold tracking-tight mb-2"},"Couldn't find the site you're looking for?",-1)),n[37]||(n[37]=e("p",{class:"text-[14px] text-background/70 mb-5 max-w-[520px] mx-auto"},"Tell us which publisher you'd like to see, and we'll work on adding it to the inventory.",-1)),p(Me,{to:"/en/panel/add-your-site",class:"inline-flex items-center h-11 px-6 rounded-lg bg-sapphire-600 hover:bg-sapphire-700 text-white text-sm font-bold transition-colors"},{default:w(()=>[...n[35]||(n[35]=[m("Request a Site â",-1)])]),_:1})])])}}}),al=yt(Fi,[["__scopeId","data-v-13b87173"]]);export{al 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.