PageSourceSearch

https://xingyun3d.com/_nuxt/5pIKbt2r.js

js xingyun3d.com collected 2026-10-05 06:27:01 UTC 2,641 bytes, 1 lines download raw bytes

1import{k as y,j as l,d as C,ay as I,u as L,w as g,n as p,a1 as Q,f as U,t as w,o as $}from"#entry";import{i as j}from"./DGdjDoII.js";const B=async o=>{if(!o)return"";const e=await fetch(o);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const t=await e.json();if(t.error_code)throw new Error(t.error_reason||"Failed to fetch QR code");return t.data},q=o=>{const e=l(""),t=l(!1),u=l(null),n=async()=>{t.value=!0,u.value=null;try{e.value=await B(o)}catch(s){u.value=s instanceof Error?s.message:"Failed to fetch QR code",console.warn("Error fetching QR code:",s)}finally{t.value=!1}};return y(()=>{t.value||e.value||n()}),{url:e,loading:t,error:u,refetch:n}},D=["src","alt","title"],A=C({__name:"dynmaic-qrcode",props:{fallbackSrc:{},liveCodeId:{},alt:{default:""},localFallbackSrc:{default:""}},setup(o){const e=o;function t(){if(typeof import.meta>"u")return{};try{if(typeof window>"u"||!window.sessionStorage)return{};const a=window.sessionStorage.getItem("location_data");if(!a)return{};const d=JSON.parse(a);return d&&typeof d=="object"&&!Array.isArray(d)?d:{}}catch{return{}}}function u(a){return a?a.includes("x-oss-process=")?a.replace(/([?&])x-oss-process=[^&]*&?/,"$1").replace(/[?&]$/,""):a:""}function n(){return e.localFallbackSrc||e.fallbackSrc||""}const s=t();let k=1;const S=new URLSearchParams({...s.utm_data??{},...s.did_data??{},live_code:e.liveCodeId}),_=I();_&&(S.append("xy_userid",""+_),k=2);const F=S.size>k,R=`${L()}/user/v1/qr_code/gen_qrcode?${S.toString()}`,{url:b,error:E}=F?q(R):{url:l(""),error:l("")},r=l(n()),i=l(0),h=l(null);let f=null;function m(){f&&(clearTimeout(f),f=null)}function c(a){!a||a===r.value||(r.value=a)}function v(){m(),e.localFallbackSrc&&r.value!==e.localFallbackSrc&&(f=window.setTimeout(()=>{f=null;const a=h.value;!a||r.value===e.localFallbackSrc||a.complete&&a.naturalWidth===0&&(i.value=2,c(e.localFallbackSrc))},800))}g(()=>b.value,a=>{!j.value||!a||(i.value=0,c(a),p(()=>v()))}),g(()=>[e.fallbackSrc,e.localFallbackSrc],()=>{b.value||(i.value=0,c(n()))}),y(()=>{r.value||c(n()),p(()=>v())});function T(){m()}function x(){if(m(),i.value===0){i.value=1;const a=u(r.value||e.fallbackSrc);if(a&&a!==r.value){c(a),p(()=>v());return}}if(e.fallbackSrc&&r.value!==e.fallbackSrc&&r.value!==e.localFallbackSrc){c(e.fallbackSrc),p(()=>v());return}e.localFallbackSrc&&r.value!==e.localFallbackSrc&&(i.value=2,c(e.localFallbackSrc))}return Q(()=>{m()}),(a,d)=>($(),U("img",{ref_key:"imgRef",ref:h,src:w(r),alt:o.alt,title:w(E)??void 0,decoding:"async",fetchpriority:"high",loading:"eager",onError:x,onLoad:T},null,40,D))}}),W=Object.assign(A,{__name:"DynmaicQrcode"});export{W as _};

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.