PageSourceSearch

https://pay.thinkbigcsp.com/_nuxt/Bs6xi5Le.js

js thinkbigcsp.com collected 2026-10-06 16:18:03 UTC 4,837 bytes, 1 lines download raw bytes

1import{t as L}from"./CkpPDa6p.js";import{McTitle as k}from"./Co03LFZ_.js";import{e as W}from"./BpsS3hmw.js";import{e as X}from"./CLbhPdW2.js";import{t as j}from"./BaxYzdHz.js";import{u as J,_ as K}from"./yFIzYQnx.js";import Z from"./DNsZe7Cn.js";import ee from"./DSaKOBeN.js";import{_ as te}from"./C4-D361y.js";import{u as M,b as x,aC as ae,bV as oe,r as U,g as m,n as re,a2 as ne,aM as se,af as le,I as ie,D as d,z as s,E as t,aS as ue,x as V,bX as D,a5 as de,a6 as ce,G as me,H as pe,y as q,Y as F,bM as _e}from"#entry";import{u as fe}from"./DnWTMebF.js";import{u as be}from"./Cy3WXFkz.js";import{MCNS_ANALYTICS_PAGE as R}from"./CYQ9Kb3v.js";import{u as he}from"./768bli2r.js";import"./i0hw6PzS.js";import"./CD7tKUld.js";import"./BmRjLxol.js";import"./BJcHVJGu.js";import"./CmMGMNEs.js";import"./QneHORhd.js";import"./Dsm4mqnx.js";import"./3a2QfEDi.js";import"./ZG6q8EQu.js";import"./CBvAUIM8.js";function ye(){const c=R,{$errorHandler:p}=M(),{t:l}=x(),h=ae(),a=fe(),_=re(),g=oe(),{buildFilterItems:v}=be(),o=J({},c.meta.table_name),u=U({}),y=U(h.query.percent_view||"0"),w=m(()=>({tableName:c.meta.table_name,loading:o.data.loading,disabled:o.data.first_loading,filters:S.value,searchPlaceholder:l(c.meta.search)})),S=m(()=>v(c.filter_items,{dictionaries:g})),i=m(()=>[{name:l(c.labels.in_numbers),value:"0"},{name:l(c.labels.in_percents),value:"1"}]),C=m(()=>({...u.value,channels_count:P(u.value.channels_count),views_count_30_days:$(u.value.views_count_30_days),monthly_turnover:A(u.value.monthly_turnover,"black",!1)})),r=m(()=>o.checkQuery(o.data.query)),z=m(()=>{const{name:e,channels:n,views:f,turnover:b}=c.table_columns;return[{header:l(e.title),field:e.field,width:e.size,total:o.data.total},{header:l(n.title),field:n.field,align:"right",sortable:!0,minWidth:n.size},{header:l(f.title),field:f.field,align:"right",sortable:!0,width:f.size},{header:l(b.title),field:b.field,info_tooltip:l(b.info_tooltip),align:"right",sortable:!0,width:b.size}]}),I=m(()=>({...o.tableProps.value,columns:z.value,totals:C.value})),N=m(()=>!!+y.value),$=e=>_.numToShort(e),A=(e,n="gray",f=!0)=>e&&`${f?_.color("≈",n):"≈"} ${_.numberFilters.number(e)}`,B=e=>_.numberFilters.number(e,"%"),P=e=>_.numberFilters.number(e,null,0),T=(e,n)=>N.value?B(e):n?n(e):e,H=e=>({...e,channels_count:T(e.channels_count,P),views_count_30_days:T(e.views_count_30_days,$),monthly_turnover:T(e.monthly_turnover,A)}),E=async(e=!1)=>{o.data.bottom_loading=e;try{const n=o.getQuery(e),{data:f,meta:b,links:Y}=await a.getAnalyticsCsp({...n});o.setData({data:f,page:b?.current_page||1,has_more:!!Y?.next,...b},e)}catch(n){return p({e:n}),n}finally{o.removeLoadings()}},O=async()=>{await G()},Q=async e=>{o.data.loading=!0,o.data.query.percent_view=e,o.pushQuery()},G=async()=>{try{u.value=await a.getAnalyticsCsp({total:1,...h.query})}catch(e){p({e})}};return o.setMethods({getTableData:E,getAdditionalData:O,buildTableRow:H}),{table:o,tableProps:I,tableHeadParams:w,dataViews:i,isFilterApply:r,percent_view:y,setPercentView:Q}}const ge={class:"analytics-mcns"},Qe={__name:"index",setup(c){const p=R,{t:l}=x(),{$bus:h}=M(),{table:a,tableProps:_,tableHeadParams:g,dataViews:v,isFilterApply:o,percent_view:u,setPercentView:y}=ye(),w=ne();return se(()=>{h.on(p.buses.table_refresh,a.reloadTableData)}),le(()=>{h.off(p.buses.table_refresh,a.reloadTableData)}),he({title:l(p.meta.title)}),(S,i)=>{const C=ue("router-view");return V(),ie("div",ge,[d(t(X),null,{top:s(()=>[d(K,D({search:t(a).data.query.q,"onUpdate:search":i[1]||(i[1]=r=>t(a).data.query.q=r),filtersData:t(a).data.filterValues,"onUpdate:filtersData":i[2]||(i[2]=r=>t(a).data.filterValues=r)},t(g),{"onUpdate:search":t(a).pushQuery}),{"right-append":s(()=>[t(w).isGoogleDemo?F("",!0):(V(),q(Z,{key:0,modelValue:t(u),"onUpdate:modelValue":[i[0]||(i[0]=r=>_e(u)?u.value=r:null),t(y)],data:t(v),disabled:t(a).data.first_loading},null,8,["modelValue","data","disabled","onUpdate:modelValue"]))]),_:1},16,["search","filtersData","onUpdate:search"])]),default:s(()=>[d(t(j),D(t(_),{onLoading:i[3]||(i[3]=r=>t(a).updateTableData(!t(a).data.first_loading)),onSort:t(a).handleSort,onRowClick:t(a).handleCellClick,onTableCardOpened:t(a).handleCardOpened}),{"title-header-right":s(()=>[t(o)?(V(),q(te,{key:0}
1)):F("",!0)]),title:s(({row:r})=>[d(ee,{title:r.title},{default:s(()=>[d(t(k),null,{default:s(()=>[me(pe(r.title),1)]),_:2},1024)]),_:2},1032,["title"])]),monthly_turnover:s(({row:r})=>[d(t(k),{"text-align":"right","html-data":r.monthly_turnover},null,8,["html-data"])]),"monthly_turnover-header-right":s(({column:r})=>[d(t(W),{content:r.info_tooltip},{default:s(()=>[d(t(L),de(ce(t(p).icons.help)),null,16)]),_:1},8,["content"])]),default:s(r=>[d(C,D(r,{onUpdate:t(a).handleTableEntityUpdate}),null,16,["onUpdate"])]),_:1},16,["onSort","onRowClick","onTableCardOpened"])]),_:1})])}}};export{Qe 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.