1import{d as h,ac as B,ad as $,r as M,c as m,e as I,B as a,g as n,w as c,o as s,f as p,R as l,E as i,X as _,A as b,S as r,Z as y,a0 as w,Q as R}from"./Rn1tUdXN.js";import{_ as x,a as T,b as A,c as L}from"./BWUQLM4E.js";const D={key:0,width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},E=["fill"],N=["fill"],S=["fill"],V={key:1,width:"21",height:"21",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg"},z=["stroke"],H=["innerHTML"],P=h({__name:"AdDisclosurePopover",props:B({erid:{default:null},company:{default:null},side:{default:"bottom"},align:{default:"end"},triggerColor:{default:void 0},triggerIconColor:{default:"white"},variant:{default:"copy"}},{open:{type:Boolean,default:!1},openModifiers:{}}),emits:["update:open"],setup(g){const o=g,d=$(g,"open"),f=M(!1),u=m(()=>o.variant==="info"),v=m(()=>u.value?!!(o.erid||o.company):!!o.erid);async function C(){if(o.erid){try{await navigator.clipboard.writeText(o.erid)}catch{const e=document.createElement("textarea");e.value=o.erid,e.style.position="fixed",e.style.opacity="0",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)}f.value=!0,setTimeout(()=>{f.value=!1},2e3)}}return(e,t)=>n(v)?(s(),I(n(L),{key:0,open:d.value,"onUpdate:open":t[2]||(t[2]=k=>d.value=k)},{default:c(()=>[p(n(x),{"as-child":""},{default:c(()=>[l("button",{class:r(e.$style.trigger),style:b({color:o.triggerColor}),onClick:t[0]||(t[0]=_(()=>{},["prevent","stop"]))},[d.value?(s(),i("svg",V,[t[4]||(t[4]=l("circle",{cx:"10.5",cy:"10.5",r:"10.5",fill:"currentColor"},null,-1)),l("path",{d:"M7 7L14 14M14 7L7 14",stroke:o.triggerIconColor,"stroke-width":"1.2","stroke-linecap":"round"},null,8,z)])):(s(),i("svg",D,[t[3]||(t[3]=l("circle",{cx:"10.5",cy:"10.5",r:"10.5",fill:"currentColor"},null,-1)),l("circle",{cx:"10.5",cy:"5.5",r:"1.5",fill:o.triggerIconColor},null,8,E),l("circle",{cx:"10.5",cy:"10.5",r:"1.5",fill:o.triggerIconColor},null,8,N),l("circle",{cx:"10.5",cy:"15.5",r:"1.5",fill:o.triggerIconColor},null,8,S)]))],6)]),_:1}),p(n(A),null,{default:c(()=>[p(n(T),{class:r([e.$style.content,{[e.$style.content_info]:n(u)}]),"side-offset":4,"arrow-padding":0,side:o.side,align:o.align,"avoid-collisions":!1,onClick:t[1]||(t[1]=_(()=>{},["stop"]))},{default:c(()=>[n(u)?(s(),i(w,{key:0},[e.company?(s(),i("p",{key:0,class:r(e.$style.infoRow),innerHTML:e.company},null,10,H)):a("",!0),e.erid?(s(),i("p",{key:1,class:r(e.$style.infoRow)},y(e.erid),3)):a("",!0)],64)):(s(),i(w,{key:1},[e.company?(s(),i("p",{key:0,class:r(e.$style.advertiser)},y(e.company),3)):a("",!0),l("button",{class:r(e.$style.copyBtn),onClick:C},y(n(f)?"СкопиÑовано":"СкопиÑоваÑÑ Ñокен"),3)],64))]),_:1},8,["class","side","align"])]),_:1})]),_:1},8,["open"])):a("",!0)}}),F="_trigger_11we0_2",O="_content_11we0_26",Q="_fadeIn_11we0_1",U="_content_info_11we0_46",X="_infoRow_11we0_55",Z="_advertiser_11we0_64",j="_copyBtn_11we0_73",q={trigger:F,content:O,fadeIn:Q,content_info:U,infoRow:X,advertiser:Z,copyBtn:j},G={$style:q},W=R(P,[["__cssModules",G]]);export{W as A}; 2//# sourceMappingURL=DPcc2Wy2.js.map
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.