PageSourceSearch

https://static.boosty.to/js/index.Bw5mZrk5.js

js boosty.to collected 2026-10-01 07:17:30 UTC 9,022 bytes, 1 lines download raw bytes

1import{d as u,j as s,c as S,e as x,r as b,u as $,f as B}from"./vendor.CrY80Nml.js";import{T as w,b1 as H,I as F,ar as Q,eR as J,eS as X,eT as Y,eU as k,eV as q,eW as z,eX as G,eY as E,eZ as _,e_ as p,a$ as P,e$ as M,aK as Z,y as K,co as U,bM as ss,f0 as os,n as es}from"./app.dzbmMYEY.js";import{E as ts,B as as,a as ns,U as cs}from"./BlogIncomeExportBySource.XheYkwNi.js";import{am as O}from"./icons.C_MsxUgD.js";import{B as ls}from"./BlogIncomeBackButton.BcvB2oDj.js";const rs="BlogTrafficTableBase-scss--module_root_D-P5w",is="BlogTrafficTableBase-scss--module_body_1vTEZ",fs="BlogTrafficTableBase-scss--module_hint_pDfe7",ds="BlogTrafficTableBase-scss--module_info_GmNyY",gs="BlogTrafficTableBase-scss--module_iconHint_2z7e-",ms="BlogTrafficTableBase-scss--module_hintContent_5YG1B",Ts="BlogTrafficTableBase-scss--module_source_Ts32a",Bs="BlogTrafficTableBase-scss--module_fadeIn_T3rlg",us="BlogTrafficTableBase-scss--module_fadeOut_mvLSu",hs="BlogTrafficTableBase-scss--module_dropdownAnimationFadeIn_BQW-t",_s="BlogTrafficTableBase-scss--module_flashing_68Qen",ps="BlogTrafficTableBase-scss--module_loading_pfnUC",bs="BlogTrafficTableBase-scss--module_rotating_RXEP-",xs="BlogTrafficTableBase-scss--module_growIn_y1d8A",ys="BlogTrafficTableBase-scss--module_closeLock_2NcX2",js="BlogTrafficTableBase-scss--module_shakeLock_psEQy",Is="BlogTrafficTableBase-scss--module_flashToHighlight_OhTb1",Ns="BlogTrafficTableBase-scss--module_flash_sNUhC",d={root:rs,body:is,hint:fs,info:ds,iconHint:gs,hintContent:ms,source:Ts,fadeIn:Bs,fadeOut:us,dropdownAnimationFadeIn:hs,flashing:_s,loading:ps,rotating:bs,growIn:xs,closeLock:ys,shakeLock:js,flashToHighlight:Is,flash:Ns},m=u.getTranslation("@founder/common/containers.BlogIncome.BlogTraffic.components.BlogTrafficTableBase"),Cs=a=>{const{visits:e,total:o,name:n,className:c}=a;return s.jsxs("table",{cellPadding:0,cellSpacing:0,className:S(d.root,c),children:[s.jsx("thead",{children:s.jsxs("tr",{children:[s.jsx("th",{children:n}),s.jsx("th",{children:s.jsxs("div",{className:d.info,children:[m.transitions,s.jsx(w,{content:m.transitionsHint,strategy:H.FIXED,classNames:{content:d.hintContent},children:s.jsx(F,{glyph:O,className:d.iconHint})})]})}),s.jsx("th",{children:s.jsxs("div",{className:d.info,children:[m.visitors,s.jsx(w,{content:m.visitorsHint,strategy:H.FIXED,classNames:{content:d.hintContent},children:s.jsx(F,{glyph:O,className:d.iconHint})})]})})]})}),s.jsxs("tbody",{className:d.body,children:[s.jsxs("tr",{children:[s.jsx("td",{children:s.jsx("div",{className:d.source,children:m.total})}),s.jsx("td",{children:x.getFormattedNumber(Number((o==null?void 0:o.viewCount)||0),",")}),s.jsx("td",{children:x.getFormattedNumber(Number((o==null?void 0:o.viewUniqCount)||0),",")})]}),e.map((t,i)=>s.jsxs("tr",{children:[s.jsx("td",{children:s.jsx("div",{className:d.source,children:t.source||m.unknown})}),s.jsx("td",{children:x.getFormattedNumber(t.viewCount,",")}),s.jsx("td",{children:x.getFormattedNumber(t.viewUniqCount,",")})]},`${t.source}:${i}`))]})]})},vs="BlogTrafficTable-scss--module_tableWrapper_-fa3V",Ss="BlogTrafficTable-scss--module_emptyText_pj0rj",$s="BlogTrafficTable-scss--module_pagination_5sS9g",C={tableWrapper:vs,emptyText:Ss,pagination:$s},R=a=>{const{visits:e,total:o,title:n,emptyText:c,className:t,forcePage:i,pagesCount:r,onPageChange:g}=a,l=!(e!=null&&e.length),f=l&&!(o!=null&&o.viewCount)&&!(o!=null&&o.viewUniqCount);return s.jsxs("div",{className:t,children:[s.jsx("div",{className:C.tableWrapper,children:s.jsx(Cs,{visits:e,total:o,name:n})}),f&&s.jsx("div",{className:C.emptyText,children:c}),!l&&s.jsx(Q,{classNames:{root:C.pagination},forcePage:i,pagesCount:r,onChange:g})]})},A=a=>{const{visits:e,limit:o,total:n=0,networkStatus:c,fetchData:t}=a,[i,r]=b.useState(0);b.useEffect(()=>{(!e.length||!c.isFetched)&&t(i)},[]);const g=l=>{const f=o*l;r(f),t(f)};return{forcePage:Number(i)/o,pagesCount:Math.ceil(n/o),onPageChange:g}},V=u.getTranslation("@founder/common/containers.BlogIncome.BlogTraffic.components.BlogTrafficByReferer"),ks=a=>{const{blogUrl:e,filter:o,className:n}=a,c=$(),{visits:t,all:i}=B(J),{total:r}=B(X),g=B(Y),l=N=>{c(k.action({blogUrl:e,...o,offset:N}))},{pagesCount:f,forcePage:j,onPageChange:I}=A({visits:t,total:r,networkStatus:g,limit:o.limit,fetchData:l});return s.jsx(R,{visits:t,total:i,title:V.title,emptyText:V.empty,className:n,forcePage:j,pagesCount:f,onPageChange:I})},L=u.getTranslation("@founder/common/containers.BlogIncome.BlogTraffic.components.BlogTrafficByUtm"),Es=a=>{const{blogUrl:e,filter:o,className:n}=a,c=$(),{visits:t,all:i}=B(q),{total:r}=B(z),g=B(G),l=N=>{c(E.action({blogUrl:e,...o,offset:N}))},{pagesCount:f,forcePage:j,onPageChange:I}=A({visits:t,total:r,networkStatus:g,limit:o.limit,fetchData:l});return s.jsx(R,{visits:t,total:i,title:L.title,emptyText:L.empty,forcePage:j,pagesCount:f,className:n,onPageChange:I})},y=u.getTranslation("@founder/common/containers.BlogIncome.BlogTraffic.components.BlogTrafficFilter"),W=()=>({order:_.DESC,sortBy:p.VIEW_COUNT,period:ts.DAY,timestamp:P(M()),limit:10}),ws=()=>[{label:y.sortTransitionsDesc,value:[p.VIEW_COUNT,_.DESC]},{label:y.sortTransitionsAsc,value:[p.VIEW_COUNT,_.ASC]}
1,{label:y.sortVisitorsDesc,value:[p.VIEW_UNIQ_COUNT,_.DESC]},{label:y.sortVisitorsAsc,value:[p.VIEW_UNIQ_COUNT,_.ASC]}],D=Z("BlogTrafficFilter"),T={sortBy:D("SORT_BY"),period:D("PERIOD")},Hs="BlogTrafficFilter-scss--module_root_Gxozq",Fs={root:Hs},Us=u.getTranslation("@founder/common/containers.BlogIncome.BlogTraffic.components.BlogTrafficFilter"),Os=a=>{const{order:e,sortBy:o,classNames:n,onChange:c}=a,t=ws(),i=t.find(({value:[l,f]})=>o===l&&e===f),r=l=>{c({sortBy:l.value[0],order:l.value[1]})},g=(l,f)=>{c({period:l,timestamp:P(f)})};return s.jsxs(s.Fragment,{children:[s.jsx(as,{onChange:g,testId:T==null?void 0:T.period}),s.jsx(K,{className:S(Fs.root,n==null?void 0:n.filter),options:t,selected:i,label:Us.label,onSelect:r,testIdPrefix:T==null?void 0:T.sortBy})]})},Vs="BlogTrafficHeader-scss--module_root_t7I1v",Ls="BlogTrafficHeader-scss--module_left_vejuz",Ds="BlogTrafficHeader-scss--module_title_Si5xV",Ps="BlogTrafficHeader-scss--module_fadeIn_o8BvV",Rs="BlogTrafficHeader-scss--module_fadeOut_wH90l",As="BlogTrafficHeader-scss--module_dropdownAnimationFadeIn_2eNoR",Ws="BlogTrafficHeader-scss--module_flashing_oJJ2e",Qs="BlogTrafficHeader-scss--module_loading_eJmB4",Js="BlogTrafficHeader-scss--module_rotating_Ejp-y",Xs="BlogTrafficHeader-scss--module_growIn_YJy6j",Ys="BlogTrafficHeader-scss--module_closeLock_HWUNe",qs="BlogTrafficHeader-scss--module_shakeLock_IHtnQ",zs="BlogTrafficHeader-scss--module_flashToHighlight_xHATm",Gs="BlogTrafficHeader-scss--module_flash_frwzw",v={root:Vs,left:Ls,title:Ds,fadeIn:Ps,fadeOut:Rs,dropdownAnimationFadeIn:As,flashing:Ws,loading:Qs,rotating:Js,growIn:Xs,closeLock:Ys,shakeLock:qs,flashToHighlight:zs,flash:Gs},Ms=u.getTranslation("@founder/common/containers.BlogIncome.BlogTraffic.components.BlogTrafficHeader"),Zs=a=>{const{className:e}=a;return s.jsxs("div",{className:S(v.root,e),children:[s.jsxs("div",{className:v.left,children:[s.jsx(ls,{}),s.jsx("div",{className:v.title,children:Ms.title})]}),s.jsx(ns,{dataTypeByUrl:U.BLOG_VISITS_REFERS,dataTypeByUtm:U.BLOG_VISITS_UTM})]})},Ks=a=>{const{blogUrl:e}=a,[o,n]=b.useState(W),c=ss(o),t=$();return b.useEffect(()=>()=>{t(os())},[]),b.useEffect(()=>{if(c&&JSON.stringify(c)!==JSON.stringify(o)){const r={blogUrl:e,...o};t(k.action(r)),t(E.action(r))}},[o]),{filter:o,onFilterChange:r=>{n({...o,...r})}}},so=(a,e)=>{const{params:{blogUrl:o}}=e,n=W();return[()=>k.action({blogUrl:o,...n}),()=>E.action({blogUrl:o,...n})]},oo="BlogTraffic-scss--module_root_4pfFn",eo="BlogTraffic-scss--module_header_Xkj-Z",to="BlogTraffic-scss--module_disclaimer_l2fda",ao="BlogTraffic-scss--module_tableByReferer_jLNm3",no="BlogTraffic-scss--module_filtersContainer_dPC8U",co="BlogTraffic-scss--module_fadeIn_xvUR0",lo="BlogTraffic-scss--module_fadeOut_tbWxN",ro="BlogTraffic-scss--module_dropdownAnimationFadeIn_Mfj8j",io="BlogTraffic-scss--module_flashing_0oy0u",fo="BlogTraffic-scss--module_loading_Esyk7",go="BlogTraffic-scss--module_rotating_kZq8C",mo="BlogTraffic-scss--module_growIn_Eh0wH",To="BlogTraffic-scss--module_closeLock_hh-cV",Bo="BlogTraffic-scss--module_shakeLock_80MLi",uo="BlogTraffic-scss--module_flashToHighlight_bIj7D",ho="BlogTraffic-scss--module_flash_lnucN",h={root:oo,header:eo,disclaimer:to,tableByReferer:ao,filtersContainer:no,fadeIn:co,fadeOut:lo,dropdownAnimationFadeIn:ro,flashing:io,loading:fo,rotating:go,growIn:mo,closeLock:To,shakeLock:Bo,flashToHighlight:uo,flash:ho},_o=()=>{const{blogUrl:a}=es(),{filter:e,onFilterChange:o}=Ks({blogUrl:a}),n=c=>{o(c)};return s.jsxs("div",{className:h.root,children:[s.jsx(Zs,{className:h.header}),s.jsx(cs,{className:h.disclaimer}),s.jsx("div",{className:h.filtersContainer,children:s.jsx(Os,{order:e.order,sortBy:e.sortBy,onChange:n})}),s.jsx(ks,{blogUrl:a,filter:e,className:h.tableByReferer}),s.jsx(Es,{blogUrl:a,filter:e})]})};_o.getFetchActions=so;export{_o as BlogTraffic};

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.