PageSourceSearch

https://cdn.forbes.ru/_nuxt/DvT_WZF3.js

js forbes.ru collected 2026-10-01 06:21:40 UTC 3,338 bytes, 1 lines download raw bytes

1import{_ as A}from"./Dy2xinyL.js";import{_ as T}from"./Df6GUClV.js";import{aV as C,bm as I,bn as S,bT as B,b9 as i,bC as _,br as l,by as O,bs as m,bv as c,bt as p,b2 as z,bB as D,bz as E,bx as $}from"./EBpBARSw.js";import{u as w}from"./D9wVAE0n.js";import{u as N}from"./CtiuOz0V.js";import{u as M}from"./DL71b4LM.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},a=new e.Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="8aa32765-fbb7-4bb1-9b15-87bcda112e3d",e._sentryDebugIdIdentifier="sentry-dbid-8aa32765-fbb7-4bb1-9b15-87bcda112e3d")}catch{}})();const j="bookmarkArticle",K={gap:"18px",position:"bottom"},L=C({name:"Bookmark",inheritAttrs:!0,props:{article:{default:"",type:String},theme:{default:"light",type:String,validator:e=>["a11y","light","dark","transparent","blue"].includes(e)},tooltip:{default:!1,type:[Boolean,Object]}},setup(e){const a=N(),n=w(),d=I(),u=S(),b=M(),s=B(),t=i(()=>{const o=e.article?.split("/")||[],h=o[o.length-1],[g=""]=h?.match(/\d+/)||[];return g}),r=i(()=>a.data[t.value]!==void 0),k=i(()=>r.value?"Убрать из избранного":"В избранное"),f=i(()=>({...K,size:n.isEnabled?"small-plus":"small",...typeof e.tooltip=="object"&&e.tooltip})),v=i(()=>{let o="bookmark";return r.value&&(o+="-active"),n.isEnabled&&(o+="-a11y"),o});async function y(){if(t.value){if(!s.isAuthorized){document.cookie=`${j}=${t.value}; Path=/; Max-Age=604800; Secure; SameSite=Strict`,b.open("signIn",{componentAttrs:{alert:{text:"Чтобы добавить материал в избранное войдите или зарегистрируйтесь."}}});return}if(r.value)return a.setData(t.value,void 0),u.savedArticle.deleteSaveArticle({articleId:+t.value});u.savedArticle.postSaveArticle({articleId:+t.value}),a.setData(t.value,-1)}}return{a11y:n,css:d,currentId:t,currentText:k,currentTooltip:f,iconName:v,isActive:r,bookmarkStore:a,handleClick:y,user:s}}}),V="pYWOw",P="_0YNKA",R={isActive:V,bookmark:P};function U(e,a,n,d,u,b){const s=A,t=T;return e.article&&!e.article.startsWith("http")&&e.currentId?(l(),O("div",{key:0,class:c({[e.css.root]:!0,[e.css.isActive]:e.isActive})},[e.$viewport.isLessThan("tablet")?(l(),m(s,{key:0,"aria-label":e.currentText,class:c(e.css.bookmark),"is-active":e.isActive,name:e.iconName,theme:e.theme,title:e.currentText,onClick:e.handleClick},null,8,["aria-label","class","is-active","name","theme","title","onClick"])):e.tooltip?(l(),m(t,{key:1,options:e.currentTooltip},{tooltip:p(()=>[D(E(e.currentText),1)]),default:p(()=>[z(s,{class:c(e.css.bookmark),"is-active":e.isActive,name:e.iconName,size:e.a11y.isEnabled?"big":"default",theme:e.theme,onClick:e.handleClick},null,8,["class","is-active","name","size","theme","onClick"])]),_:1},8,["options"])):(l(),m(s,{key:2,"aria-label":e.currentText,class:c(e.css.bookmark),"is-active":e.isActive,name:e.iconName,size:e.a11y.isEnabled?"big":"default",theme:e.theme,title:e.currentText,onClick:e.handleClick},null,8,["aria-label","class","is-active","name","size","theme","title","onClick"]))],2)):$("",!0)}const W={$style:R},Y=_(L,[["render",U],["__cssModules",W]]),X=Object.freeze(Object.defineProperty({__proto__:null,default:Y},Symbol.toStringTag,{value:"Module"}));export{j as A,X as B,Y as _};

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.