PageSourceSearch

https://gold.bullionvault.jp/javascript/generated_bvchat.js

js bullionvault.jp collected 2026-10-02 04:59:20 UTC 3,858 bytes, 1 lines download raw bytes

1"use strict";(()=>{var v=Object.defineProperty,w=Object.defineProperties;var y=Object.getOwnPropertyDescriptors;var f=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var b=(n,t,e)=>t in n?v(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,m=(n,t)=>{for(var e in t||(t={}))C.call(t,e)&&b(n,e,t[e]);if(f)for(var e of f(t))E.call(t,e)&&b(n,e,t[e]);return n},p=(n,t)=>w(n,y(t));var c=(n,t,e)=>new Promise((a,i)=>{var o=s=>{try{d(e.next(s))}catch(h){i(h)}},l=s=>{try{d(e.throw(s))}catch(h){i(h)}},d=s=>s.done?a(s.value):Promise.resolve(s.value).then(o,l);d((e=e.apply(n,t)).next())});function B(n){return{en:1,en_gb:1,de:2,es:3,fr:4,it:5,pl:6,ja:7,zh_cn:8,zh_tw:9}[n.toLowerCase()]}function I(n){return c(this,null,function*(){let t=yield fetch(`${window.BVChat.baseUrl}/public/api/chatAvailable/${window.BVChat.channelId}`,{method:"GET",credentials:"omit"});return t.status===200?yield t.json():(console.warn(`Failed to fetch available state for channel ${n}. Got status ${t.status}`),!1)})}function _(){return c(this,null,function*(){let n=yield fetch("/secure/authorised-details.json",{method:"POST",headers:{"Content-Type":"application/json"}});if(n.status===200){let{name:t,email:e,username:a}=yield n.json();window.BVChat=p(m({},window.BVChat),{clientId:a,fullName:t,emailAddress:e})}})}var r=null;function V(n){if(r!==null)return r;let t=document.createElement("div");t.classList.add("bvchat-widget"),t.style.cssText="position: fixed; width: 397px; height: 620px; max-width: 90vw; max-height: 100vh; bottom: 0px; right: 0px; z-index: 12345; left: auto;";let e=document.createElement("iframe");e.id="bvchat-iframe",e.style.cssText="width: 100%; height: 100%; border: medium; background-color: transparent; display: none;",e.src="/assets/javascript/bvchat/index.html",t.appendChild(e);function a(){let o=document.getElementById("bvchat_preload");o==null||o.remove(),e.style.display="initial"}return e.contentDocument&&e.contentDocument.readyState==="complete"?a():e.addEventListener("load",a),new MutationObserver(o=>{o.forEach(l=>{l.type==="attributes"&&l.attributeName==="data-state"&&(e.dataset.state==="open"?(t.style.height="620px",t.style.width="397px"):e.dataset.state==="closed"&&(t.style.height="86px",t.style.width="86px"))})}).observe(e,{attributes:!0,attributeFilter:["data-state"]}),n.appendChild(t),r={div:t,iframe:e},r}function g(){return c(this,null,function*(){window.BVChat=p(m({},window.BVChat),{channelId:B(window.BVChat.locale)});let n=_(),t=I(window.BVChat.channelId);Promise.all([n,t]).then(([e,a])=>{let i=document.getElementById("bvchat_preload");return i&&a&&i.classList.remove("btn-bvchat__offline"),a}).then(e=>{if(!e)return;window.showBVChat=u;let a=document.getElementById("livesupport_link");a&&(a.href="#livesupport");let i=document.getElementById("bvchat_preload");if(i){let o=!1;try{o=!!localStorage.getItem("bvchat/chat_id")}catch(l){console.warn("Error getting item from localStorage",l)}o&&e?u():(i.style.display="block",i.addEventListener("click",u))}try{let o=localStorage.getItem("bvchat/chat_id");o&&fetch(`${window.BVChat.baseUrl}/public/api/chat/${o}/navigate`,{method:"POST",headers:{"Content-Type":"application/json"},body:window.location.pathname})}catch(o){}})})}function u(){if(r){r.iframe.dataset.state="open";return}let n=document.getElementsByClassName("webpage__notices__bvchat")[0],t=document.getElementById("bvchat_preload_spinner"),e=document.getElementById("bvchat_preload_icon");t&&e&&(e.style.display="none",t.style.removeProperty("display"));try{localStorage.setItem("bvchat/is_open","true")}catch(a){console.log("Error starting widget in open state",a)}V(n)}window.showBVChat=()=>{};navigator.userAgent.includes("BullionVaultApp")||(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",g):g());})();

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.