PageSourceSearch

https://app.dubrovsky.ru/assets/documents-G1lBOppZ.js

js dubrovsky.ru collected 2026-09-25 03:39:32 UTC 4,377 bytes, 1 lines download raw bytes

1import{Lt as e,Qt as t,Ut as n,bn as r,ct as i,dt as a,gt as o,ht as s,lt as c,rt as l,ut as u,vt as d,wn as f,zt as p}from"./@ant-design-1RUAt613.js";import{a as m,i as h}from"./@tanstack-9HR47WSI.js";import{J as g,nt as _,ot as v,q as y,tt as b}from"./@galaxy-BqzQVV3L.js";import{$t as x,Er as ee,Qn as S,Tr as C,en as w,gr as T,or as E,rn as D}from"./api-CaNI2WrQ.js";import{t as O}from"./formats-CKpMrY3-.js";import{t as te}from"./GxIcon-C-JuzeMQ.js";import{E as ne,T as k}from"./ant-design-vue-QqBPwqus.js";import{t as A}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as j}from"./EmptyBlock-D8DZKhPK.js";var M=_({id:v(),name:v(),slug:v(),type:v(),url:v().nullable(),mime_type:v().nullable(),size:b().nullable(),tags:y(v()),is_default:g().optional(),is_active:g().optional(),created_at:v(),updated_at:v().nullable()}),N=_({id:v(),name:v(),type:v(),icon:v(),documents:y(M).optional(),documents_count:b(),created_at:v(),updated_at:v()}),P=M.extend({group:N.nullable()}),F=_({data:y(P),meta:_({relevant_from:v(),updates_only:g()})}),I=async(e,t=!0)=>C.get(`/v1/documents`,{params:{...E(e)},withToken:t}).then(({data:e})=>T(e,F)),L=[O.HTML,O.Markdown],R=e=>{let t=e.url?w(e.url):void 0;return{id:e.id,name:e.name,type:e.type,slug:e.slug,mimeType:e.mime_type,url:e.url,size:e.size,format:t,isDisplayableFormat:!!(e.url&&L.find(e=>e===t))}},z=e=>e.data.map(R),B=(e,t)=>m({queryKey:[`documents`,e],queryFn:async()=>I(e,t).then(z),staleTime:3600*1e3}),V=(e,t)=>{let{data:n,...r}
1=h(B({filter:{"tags.name":[e]},perPage:100},t),S);return{state:n,query:r}},H=_({data:P}),U=async e=>C.get(`/v1/documents/${e}`,{withToken:!1}).then(({data:e})=>T(e,H)),W=e=>m({queryKey:[`document`,e],queryFn:async()=>U(e).then(({data:e})=>R(e)),staleTime:3600*1e3}),re=e=>{let{data:t,...n}=h(W(e),S);return{state:t,query:n}},G=e=>ee.get(e,{withToken:!1}).then(e=>e.data),K=e=>m({queryKey:[`document`,`content`,e],queryFn:()=>G(e),staleTime:3600*1e3}),q=e=>{let{data:t,isLoading:n}=h(K(e),S);return{context:t,isLoading:n}},J=function(e){return e.SignUp=`sign-up`,e.PDPolicy=`pd-policy`,e.TermsOfTransfers=`terms-of-transfers`,e.Common=`common-doc`,e.CommonWithDepo=`common-doc-with-depo`,e.CommonWithoutDepo=`common-doc-without-depo`,e}({}),Y=function(e){return e.InputWithdraw=`input_withdraw`,e.ReferralDocuments=`ref_doc`,e.ReferralInfo=`referral_info`,e.AdvAgreement=`ads_agreement`,e.RegulationsQualification=`regulations-qualification`,e.TradingDisabledForGroupMask=`trading_disabled_for_group_mask`,e}({}),X={class:`flex cursor-pointer items-center gap-4 roun
1ded-Card bg-theme-BackgroundNeutral p-4`},ie={class:`overflow-hidden`},ae={class:`truncate text-BodyMedium font-medium text-theme-ContentPrimary`},oe={class:`text-BodySmall text-theme-ContentSecondary uppercase`},se={key:0},Z=d({__name:`GxDocument`,props:{name:{},mime:{},size:{},url:{}},emits:[`download`],setup(l){return(d,p)=>{let m=te;return e(),c(n(l.url?`a`:`div`),{"data-cy":`document`,href:l.url,class:`cursor-pointer`,onClick:p[0]||(p[0]=e=>d.$emit(`download`))},{default:t(()=>[i(`div`,X,[i(`div`,null,[o(m,{class:`bg-theme-InteractiveBrandPrimary text-white`,name:`download`,"circle-size":40})]),i(`div`,ie,[i(`div`,ae,f(l.name),1),i(`div`,oe,[s(f(l.mime)+` `,1),l.size?(e(),a(`span`,se,`(`+f(r(x)(l.size))+`)`,1)):u(``,!0)])])])]),_:1},8,[`href`])}}}),Q={},ce={class:`flex flex-col gap-sm`},le={class:`flex w-full max-w-(--container-lg) flex-col gap-sm`};function ue(t,n){let r=k,s=ne;return e(),a(`div`,ce,[(e(),a(l,null,p(4,e=>i(`div`,{class:`flex gap-lg rounded-Card bg-theme-BackgroundNeutral p-4`,key:e},[o(r,{size:`large`,shape:`circle`}),i(`div`,le,[o(s,{active:``,block:``,size:`small`}),o(s,{size:`small`})])])),64))])}var $=A(Q,[[`render`,ue]]),de={key:0,class:`flex flex-col gap-sm`},fe={key:1,class:`py-8`},pe=d({__name:`DocumentsByTag`,props:{tag:{}},setup(t){let{state:n,query:{isLoading:i}}=V(t.tag);return(t,s)=>{let u=Z,d=j;return r(i)?(e(),c($,{key:1})):(e(),a(l,{key:0},[r(n)&&r(n).length>0?(e(),a(`div`,de,[(e(!0),a(l,null,p(r(n),t=>(e(),c(u,{key:t.id,name:t.name,mime:t.mimeType?r(D)(t.mimeType):r(`–`),size:t.size,url:t.url,"data-cy":`document`},null,8,[`name`,`mime`,`size`,`url`]))),128))])):(e(),a(`div`,fe,[o(d,{icon:`leaf-leaned`,size:`middle`,description:t.$t(`documents.docs.empty`)},null,8,[`description`])]))],64))}}});export{J as a,V as c,Y as i,$ as n,q as o,Z as r,re as s,pe as t};

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.