1import{aV as w,bw as o,br as n,bs as h,bt as c,by as a,b6 as _,bv as f,bu as g,b2 as b,bR as k,bB as u,bz as s,bx as p,c8 as v,bX as x,b9 as B,bC as $}from"./EBpBARSw.js";import C from"./Bq_376aw.js";import{_ as T}from"./Df6GUClV.js";import"./Lmb05Apy.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},r=new t.Error().stack;r&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[r]="a2485be0-5d87-4f30-b15c-808a080cd01d",t._sentryDebugIdIdentifier="sentry-dbid-a2485be0-5d87-4f30-b15c-808a080cd01d")}catch{}})();const D=["href"],I={key:0},H=["href"],V={key:0},z={key:1},M={key:0},N=w({__name:"AdfoxAdvertiser",props:{article:{required:!0,type:Object},tooltip:{default:!1,type:[Boolean,Object]}},setup(t){const r=t,e=B(()=>{const{title:i,to:l}=r.article?.ad||{};if(!i)return!1;let d="";return l&&(d=l.replace(/(https?:)?\/\/(www\.)?/g,"").replace(/\/$/,"")),{domain:d,title:i,to:l||r.article.path}});return(i,l)=>{const d=k,m=C,y=T;return o(e)?(n(),h(x(t.tooltip?"div":"a"),{key:0,class:f(i.$style.root),href:t.tooltip?null:o(e).to,rel:t.tooltip?null:"noopener nofollow",target:t.tooltip?null:"_blank"},{default:c(()=>[o(e)&&o(e).title?(n(),a(_,{key:0},[t.tooltip?(n(),a("div",{key:0,class:f(i.$style.tooltip)},[l[0]||(l[0]=g("span",null,"Реклама",-1)),i.$device.isMobileOrTablet||i.$viewport.isLessThan("tablet")?(n(),h(m,{key:0,"element-height":t.tooltip.triggerHeight||"12px","element-width":t.tooltip.triggerWidth||"12px"},{tooltip:c(()=>[g("a",{class:f(i.$style.tooltipBody),"data-advertiser-tooltip":"",href:o(e).to,rel:"noopener nofollow",target:"_blank"},[u(s(o(e).title),1),o(e).domain?(n(),a("span",I,", "+s(o(e).domain),1)):p("",!0)],10,D)]),default:c(()=>[b(d,{height:t.tooltip.triggerHeight||"12px",name:"info",viewBox:"0 0 16 16",width:t.tooltip.triggerWidth||"12px"},null,8,["height","width"])]),_:1},8,["element-height","element-width"])):(n(),h(y,{key:1,options:{triggerHeight:"12px",triggerWidth:"12px",...typeof t.tooltip=="object"&&{...t.tooltip}}},{tooltip:c(()=>[g("a",{class:f(i.$style.tooltipBody),"data-advertiser-tooltip":"",href:o(e).to,rel:"noopener nofollow",target:"_blank"},[u(s(o(e).title),1),o(e).domain?(n(),a("span",V,", "+s(o(e).domain),1)):p("",!0)],10,H)]),default:c(()=>[b(d,{height:t.tooltip.triggerHeight||"12px",name:"info",viewBox:"0 0 16 16",width:t.tooltip.triggerWidth||"12px"},null,8,["height","width"])]),_:1},8,["options"]))],2)):(n(),a("div",z,[u(" Реклама, "+s(o(e).title),1),o(e).domain?(n(),a("span",M,", "+s(o(e).domain),1)):p("",!0)]))],64)):p("",!0),v(i.$slots,"default")]),_:3},8,["class","href","rel","target"])):p("",!0)}}}),O="R09Co",W="_6FOzZ",j="zAZGH",A={root:O,tooltipBody:W,tooltip:j},S={$style:A},q=$(N,[["__cssModules",S]]);export{q 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.