PageSourceSearch

https://daryo.uz/_nuxt/D4PytlFd.js

js daryo.uz collected 2026-09-24 18:16:16 UTC 4,378 bytes, 1 lines download raw bytes

1import{d as e,C as a,h as r,g as s,r as c,s as n,L as l,T as t,q as o,t as i,F as u,N as d,J as p,X as y,I as _,v as m,S as b,K as v,V as g,O as k,W as f,A as h,x as w,a1 as S}from"./x6S8IoSn.js";import"./C-WggmLd.js";import"./B9FfjklQ.js";const U={class:"bank-currency"},C={class:"bank-currency__wrapper"},N={class:"bank-currency__header"},D={class:"bank-currency__logo"},F=["src"],x={class:"bank-currency-link"},B={key:0,class:"crypto-cards"},L={class:"crypto-card__header"},T=["src","alt"],j={class:"crypto-card__name"},E={class:"crypto-card__price"},I={class:"crypto-card__value"},O={class:"currency-card"},M={class:"currency-card__icon"},R={class:"currency-card__details"},V={class:"rate-box"},$={class:"currency-card__row"},H={class:"currency-card__label"},P={class:"currency-card__value buy"},q={class:"currency-card__row"},z={class:"currency-card__label"},A={class:"currency-card__value sell"},J={key:1,class:"currency-card__row",style:{"justify-content":"center"}},K={class:"currency-card__value mb"},W=S(e({__name:"BankCurrencyMobile",setup(e){const S=a(),W=r(),{t:X}=s(),G=["BTC","ETH","SOL"],Q={BTC:{name:"Bitcoin",icon:"/bitcoin.svg"},ETH:{name:"Ethereum",icon:"/eth.png"},SOL:{name:"Solana",icon:"/solana.png"}},Y=[{code:"USD",symbol:"$"},{code:"EUR",symbol:"€"},{code:"RUB",symbol:"₽"}],Z=w(()=>W.bank_currencies||[]),ee=w(()=>Z.value||[]);function ae(e){const a=e.rate||[];return!!a.length&&a.some(e=>G.includes(String(e.currency||"").toUpperCase()))}function re(e){const a=(e.rate||[]).map(e=>String(e.currency||"").toUpperCase());return Y.filter(e=>a.includes(e.code))}function se(e,a,r){const s=(e.rate||[]).find(e=>String(e.currency||"").toUpperCase()===a.toUpperCase());if(!s)return null;const c=s[r];if(null==c||""===c)return null;const n=Number(String(c).replace(",","."));return Number.isFinite(n)?n:null}function ce(e){return e?S.isDarkMode?e.dark_bank_logo||"":e.light_bank_logo||"":""}const ne=new Intl.NumberFormat("en-US",{maximumFractionDigits:0}),le=e=>null==e?"--":ne.format(e);function te(e){if(null==e||""===e)return"--";const a=Number(e);return isNaN(a)?e:a.toLocaleString("en-US",{minimumFractionDigits:a>=1e3?0:2,maximumFractionDigits:a>=1e3?0:2})}return(e,a)=>{const r=b,s=t;return o(),c("div",U,[n(s,null,{default:l(()=>[ee.value.length?(o(),i(p(f),{key:0,class:"bank-swiper",modules:[p(h)],direction:"vertical","slides-per-view":1,loop:ee.value.length>1,"allow-touch-move":ee.value.length>1,autoplay:ee.value.length>1&&{delay:5e3,disableOnInteraction:!1},speed:600},{default:l(()=>[(o(!0),c(u,null,d(ee.value,(e,a)=>(o(),i(p(y),{key:e.id||a},{default:l(()=>{return[_("div",C,[_("div",N,[_("div",D,[ce(e)?(o(),c("img",{key:0,src:`https://data.daryo.uz/${ce(e)}`,alt:"bank logo"},null,8,F)):m("",!0)]),n(r,{to:e?.bank_link,class:"session-wrapper-title mb0",target:"_blank"},{default:l(()=>[_("h6",x,v(p(X)("currencyRates")),1),_("span",null,[n(g,{name:"angle-right-blue",class:k({iconLight:p(S).isDarkMode})},null,8,["class"])])]),_:1},8,["to"])]),ae(e)?(o(),c("div",B,[(o(!0),c(u,null,d((a=e,(a.rate||[]).filter(e=>G.includes(String(e.currency||"").toUpperCase())).sort((e,a)=>(e.sort_order||0)-(a.sort_order||0)).map(e=>{const a=String(e.currency||"").toUpperCase(),r=Q[a]||{name:a,icon:""};return{code:a,name:r.name,icon:r.icon,price:e.buy||e.sell||""}})),e=>(o(),c("div",{key:e.code,class:"crypto-card"},[_("div",L,[_("img",{src:e.icon,alt:e.name,class:"crypto-card__icon"},null,8,T),_("span",j,v(e.name),1)]),_("div",E,[_("span",I,"$"+v(te(e.price)),1)])]))),128))])):(o(),i(p(f),{key:1,modules:[p(h)],"slides-per-view":3,"space-between":4,loop:!1,autoplay:!1,breakpoints:{480:{slidesPerView:3},768:{slidesPerView:3}},class:"currency-swiper"},{default:l(()=>[(o(!0),c(u,null,d(re(e),(a,r)=>(o(),i(p(y),{key:r},{default:l(()=>[_("div",O,[_("div",M,v(a.symbol),1),_("div",R,[_("div",V,[null!==se(e,a.code,"buy")&&null!==se(e,a.code,"sell")?(o(),c(u,{key:0},[_("div",$,[_("span",H,v(p(X)("buy")),1),_("span",P,v(le(se(e,a.code,"buy"))),1)]),_("div",q,[_("span",z,v(p(X)("sell")),1),_("span",A,v(le(se(e,a.code,"sell"))),1)])],64)):(o(),c("div",J,[_("span",K,v(le(se(e,a.
1code,"buy")??se(e,a.code,"sell"))),1)]))])])])]),_:2},1024))),128))]),_:2},1032,["modules"]))])];var a}),_:2},1024))),128))]),_:1},8,["modules","loop","allow-touch-move","autoplay"])):m("",!0)]),_:1})])}}}),[["__scopeId","data-v-38ae363a"]]);export{W 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.