PageSourceSearch

https://bit24.cash/__nuxt/gaovcBvG.js

js bit24.cash collected 2026-10-07 17:46:26 UTC 6,493 bytes, 1 lines download raw bytes

1import{d as G,u as J,N as K,w as Q,Z as W,f as X,A as Y,x as ee,a6 as te,h as m,i as o,j as u,k as e,B as A,b,D as x,y as B,l as g,a as se,e as ae,o as c,m as r,t as v,F as y,R as $,r as O,a8 as le,p as T,C as ne,n as oe,s as ie,_ as ce}from"./QJre-PsH.js";import{N as re}from"./CFbUSydn.js";import{_ as ue}from"./CJ-CYVqo.js";import{B as de}from"./BpKRnBHC.js";import{B as _e}from"./CWGN4f3f.js";import{B as me}from"./BSK884cQ.js";import{B as pe}from"./CHps-Mb2.js";import{B as k}from"./BakViL5O.js";import{B as U}from"./B2IIJsce.js";import{B as V}from"./BcO3dFct.js";import{C as ve}from"./bjiu4HxZ.js";import{u as fe}from"./BKGXCE4B.js";import"./HDGNBR0W.js";import"./CgDj6rrw.js";const we={class:"news-item__page"},he={class:"news-item__title"},be={class:"news-item__author-detail"},ge={key:0,class:"last-news__card"},ye={class:"last-news__list"},xe={class:"coins-list__card"},Be={class:"coins-list__list"},ke={class:"px-4 pt-4"},Ce=G({__name:"[id]",async setup(Ne){let f,C;const _=B(0),s=B(null),N=B([]),j=J(),w=ae(),{options:z}=fe(),{$centrifuge:S}=K(),{numberSeparator:D}=ie(),h=g(()=>(j.params.id||"").toString()),P=g(()=>[{id:0,label:"بیشترین رشد"},{id:1,label:"بیشترین حجم معامله"},{id:2,label:"جدیدترین‌ها"}]),E=g(()=>{let l=[{label:"بیت ۲۴",to:"/",id:""},{label:"اخبار",to:"/news/",id:""}];return s.value&&s.value.news.news_category&&l.push({label:s.value.news.news_category,to:"/news?catId="+s.value.news.news_category_id,id:""}),s.value&&l.push({label:s.value.news.title,to:"",id:""}),l}),L=g(()=>_.value===0?Object.values(n.most_change||{}).slice(0,5):_.value===1?Object.values(n.most_volume||{}
1).slice(0,5):_.value===2?Object.values(n.recently_added||{}).slice(0,5):[]),{data:d}=([f,C]=Q(async()=>se("single-news-"+h.value,async()=>{const[l,t]=await Promise.allSettled([new re(w).getSingleNews(h.value),new ve(w,z).getMostVolumeAndChanges()]);let p=null;l.status==="fulfilled"&&l.value&&(p=l.value.data);let a={};const i=q=>q.reduce((I,R)=>(I[R.symbol.toLowerCase()]=R,I),{});return t.status==="fulfilled"&&t.value&&(a={most_volume:t.value?.most_volume?i(t.value?.most_volume):{},most_change:t.value?.most_change?i(t.value?.most_change):{},recently_added:t.value?.recently_added?i(t.value?.recently_added):{}}),{newsData:p,otc:a}})),f=await f,C(),f);s.value=d.value?.newsData||null;const n=W({most_volume:d.value?.otc?.most_volume||{},most_change:d.value?.otc?.most_change||{},recently_added:d.value?.otc?.recently_added||{}});X({title:s?.value?.news?.meta_title,meta:[{name:"title",content:s?.value?.news?.meta_title},{name:"description",content:s?.value?.news?.meta_description},{property:"og:title",content:s?.value?.news?.meta_title},{property:"og:description",content:s?.value?.news?.meta_description},{name:"keywords",content:s?.value?.news?.meta_tag},{property:"og:url",content:`https://bit24.cash/news/${h.value}/`},{name:"twitter:title",content:s?.value?.news?.meta_title}],link:[{rel:"canonical",href:`https://bit24.cash/news/${h.value}/`}]});const M=()=>{if(!d.value||!d.value.otc)return;const l={...n.most_volume,...n.most_change,...n.recently_added};for(const t in l){const a=`price-prod:${t.toLowerCase()}usdt`;N.value.push(a),S.subscribe(a,i=>{n.most_change[t]&&(n.most_change[t].each_price_usdt=i.price,n.most_change[t].daily_changes=i.change),n.most_volume[t]&&(n.most_volume[t].each_price_usdt=i.price,n.most_volume[t].daily_changes=i.change),n.recently_added[t]&&(n.recently_added[t].each_price_usdt=i.price,n.recently_added[t].daily_changes=i.change)})}},F=()=>{N.value.forEach(l=>{S.unsubscribe(l)})},H=l=>{const t="flex !d-ltr";return l===0?`${t} text-de-primary--txt`:l>0?`${t} text-success--txt`:`${t} text-error--txt`},Z=l=>l>0?"+"+l+"٪":l+"٪";return Y(()=>d.value?.otc,l=>{l&&Object.assign(n,l)},{deep:!0}),ee(()=>M()),te(()=>F()),(l,t)=>{const p=le;return c(),m("div",we,[o(e(A),null,{default:u(()=>[o(e(V),null,{default:u(()=>[o(e(k),{xs:"full",class:"news-item__page__breadcrumb-container scrollbar-hide"},{default:u(()=>[o(e(_e),{list:E.value},null,8,["list"])]),_:1})]),_:1})]),_:1}),e(s)?(c(),b(e(A),{key:0},{default:u(()=>[o(e(V),null,{default:u(()=>[o(e(k),{xs:"full",md:"8/12"},{default:u(()=>[r("h1",he,v(e(s).news.title),1),r("div",be,[e(s).news.news_category?(c(),m(y,{key:0},[o(e($),{name:"icon-color-ball-fill",color:"text-brand--icn",size:"16",class:"me-2"}),r("span",null,v(e(s).news.news_category),1),o(e(U),{size:"xs",vertical:"","vertical-height":"h-[12px]","background-color":"bg-de-disabled--icn",class:"mx-3"})],64)):x("",!0),o(e($),{name:"icon-user-edit",color:"text-de-secondary--icn",size:"16",class:"me-2"}),r("span",null,v(e(s).news.author_name||"سیستم"),1),o(e(U),{size:"xs",vertical:"","vertical-height":"h-[12px]","background-color":"bg-de-disabled--icn",class:"mx-3"}),r("span",null,v(e(s).news.created_at),1)]),o(e(ue),{text:e(s).news.content},null,8,["text"])]),_:1}),o(e(k),{xs:"full",md:"4/12",class:"pt-8 md:pt-0"},{default:u(()=>[e(s).latest_news?.length?(c(),m("div",ge,[t[1]||(t[1]=r("span",{class:"last-news__card-title"},"آخرین اخبار",-1)),r("div",ye,[(c(!0),m(y,null,O(e(s).latest_news,a=>(c(),b(p,{key:a.id,href:a.content_status===1?`/news/${a.id}/`:a.link,"aria-label":a.title,class:"last-news__item"},{default:u(()=>[T(v(a.title),1)]),_:2},1032,["href","aria-label"]))),128))])])):x("",!0),r("div",xe,[o(e(me),{modelValue:e(_),"onUpdate:modelValue":t[0]||(t[0]=a=>ne(_)?_.value=a:null),list:P.value,size:"14",wide:"",type:"bar",grow:!1,"custom-class":"px-5",arrows:""},null,8,["modelValue","list"]),L.value.length?(c(),m(y,{key:0},[r("div",Be,[(c(!0),m(y,null,O(L.value,a=>(c(),b(e(de),{key:a.symbol,href:e(w).public.DOMAIN_PUBLIC_URL+"/coins/"+a.symbol.toLowerCase()+"/",class:"coins-list__item",tag:"nuxt-link",icon:a.icon,title:a.symbol,subtitle:Z(+a.daily_changes),"leading-text1":e(D)(a.each_price_usdt)+" USDT","leading-text2":e(D)(a.each_price)+" IRT","subtitle-class":H(+a.daily_changes)},null,8,["href","icon","title","subtitle","leading-text1","leading-text2","subtitle-class"]))),128))]),r("div",ke,[o(e(oe),{emphasis:"medium-tonal",color:"neutral",size:"40",type:"basic",wide:"",tag:"nuxt-link",href:e(w).public.DOMAIN_PUBLIC_URL+"/coins/"},{default:u(()=>[...t[2]||(t[2]=[T(" مشاهده همه ارزها ",-1)])]),_:1},8,["href"])])],64)):(c(),b(e(pe),{key:1,description:"موردی یافت نشد",class:"my-10"}))])]),_:1})]),_:1})]),_:1})):x("",!0)])}}}),Ee=ce(Ce,[["__scopeId","data-v-1bf41160"]]);export{Ee 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.