PageSourceSearch

https://www.vbet.am/assets/js/useTranslationTool.Bq_byBKf.js

js vbet.am collected 2026-10-04 06:01:42 UTC 1,065 bytes, 1 lines download raw bytes

1import{o as e}from"./rolldown-runtime.C_s2cVnS.js";import{t}from"./react.o0Ha7HZ1.js";import{t as n}from"./configs.-pJ5S95q.js";import{E as r,Vt as i,yt as a}from"./utils.DmfpXMh-.js";import{t as o}from"./usePreferences.Lz-7Ztf6.js";import{t as s}from"./jsx-runtime.2Bc2s-6V.js";var c=e(t()),l=s(),u={},d={},f=e=>{n.payment.methods.forEach(t=>{d[t.paymentId]={...t?.translations?.default,...t?.translations?.[e]}})},p=e=>(f(e),new Promise(t=>{i.get(`/translations/${e}.json?v=${r(5)}`).then(e=>{u=e.data}).finally(()=>{t()})})),m=(0,c.createContext)({}),h=(e,t,n)=>{let r=u?.[e]??e;if(u?.[e]?.includes(n)){let i=`${e}_${String(t)}`;return u[i]=r.replace(n,String(t)),i}return e},g=({children:e})=>{let{language:t}=o(),n=(0,c.useCallback)((e=``,t)=>{let n=u?.[e]??e;return t?n.replace(a,(e,n)=>t[n]===void 0?e:t[n].toString()):n},[t]),r=(0,c.useCallback)((e,t)=>d[e]?.[t]??t,[]);return(0,l.jsx)(m.Provider,{value:{trans:n,paymentTrans:r},children:e})},_=()=>(0,c.useContext)(m).trans,v=()=>(0,c.useContext)(m).paymentTrans;export{h as a,p as i,_ as n,g as r,v 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.