PageSourceSearch

https://1wzhkz.life/resources/v1/app/assets/picture-v2-E1-v2O99.js

js 1wzhkz.life collected 2026-10-08 17:34:25 UTC 3,233 bytes, 2 lines download raw bytes

1import{computed as f,toValue as n,defineComponent as g,useCssVars as y,useTemplateRef as v,ref as $,toRef as x,openBlock as h,createElementBlock as _,normalizeClass as I,createElementVNode as S,mergeProps as w,unref as A}from"vue";import{cq as L,Z as B}from"./logger-B4OCWT-4.js";const D=t=>t!==void 0&&"image"in t&&t.image!==void 0,P=(...[t,r])=>{const{staticSrc:i,imgproxy:s}=L();return f(()=>{if(r==="shared-font-face"){const e=n(t);return typeof e=="string"?{src:e}:{src:`${i.shared}${e.value}`}}if(r==="rive"){const e=n(t);return e===void 0?{src:void 0}:typeof e=="string"?{src:e}:{src:`${n(i.cdn)}${e.src}`}}if(r==="image"||r===void 0){const e=n(t);if(e===void 0)return{src:void 0};if(typeof e=="string")return{src:e};if(!D(e))return e.srcset?{srcset:e.srcset}:e.src?{src:e.src}:{};const a=e?.type==="external";if(e.image?.startsWith("http")&&!a)return{src:e.image};if(e.imgproxy&&n(s.url)){const c=(u,o)=>{const m=a?u:`${n(i.cdn)}${u}`;return`${n(s.url)}/unsafe/${o}/plain/${m}`};return e.imgproxy.srcset&&e.imgproxy.srcset.length>0?{srcset:e.imgproxy.srcset.map(o=>`${c(e.image,o.preset)} ${o.size}`).join(", ")}:e.imgproxy.preset?{src:c(e.image,e.imgproxy.preset)}:{src:c(e.image,"quality")}}return e?.type==="external"?{src:e.image}:{src:`${n(i?.[e.type??"default"])}${e.image}`}}})},R=(t,r)=>{if(t===r)return!0;if(r===void 0)return!1;const i=new Intl.Locale(t),s=new Intl.Locale(r);return s.baseName==="und"?!0:i.maximize().toString()===s.maximize().toString()},p=(t,r)=>t.filter(i=>{const{dir:s,scheme:l,locale:e}=i.traits??{},a=r.dir===void 0||s===r.dir,c=r.scheme===void 0||l===r.scheme,u=r.locale===void 0||R(r.locale,e);return a&&c&&u}),N=(t,r={})=>p(t,r)[0]??t[0],U=(t=[],r={})=>p(t,r)[0]??t?.[0],W=(t=[],r={})=>{if(t)return typeof t=="string"?{value:t}:p(t,r)[0]??t?.[0]},V=g({inheritAttrs:!1,__name:"picture-v2",props:{aspectRatio:{},src:{},srcset:{},image:{},type:{},imgproxy:{},animated:{type:Boolean},contain:{type:Boolean}},emits:["load"],setup(t,{expose:r,emit:i}){y(o=>({v11659776:u.value}));const s=t,l=v("img"),e=i;r({get isLoaded(){return l.value?.complete??!1}});const a=$(!1),c=P(x(()=>s)),u=f(()=>s.aspectRatio??"none");return(o,m)=>
1(h(),_("picture",{class:I(o.$style.root)},[S("img",w({ref_key:"img",ref:l},{...o.$attrs,...A(c)},{class:[s.animated&&o.$style.animated,s.animated&&a.value&&o.$style.loaded,t.contain&&o.$style.contain],onLoad:m[0]||(m[0]=d=>{a.value=!0,e("load",d)})}),null,16)],2))}}),z="picture-v2_root-uw4G6",G="picture-v2_animated-uw4G6",M="picture-v2_loaded-uw4G6",b="picture-v2_contain-uw4G6",C={root:z,animated:G,loaded:M,contain:b},E={$style:C},j=B(V,[["__cssModules",E]]);export{j as P,W as a,U as m,N as s,P as u};
2(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".picture-v2_root-uw4G6{display:contents}.picture-v2_root-uw4G6 source{display:none}.picture-v2_root-uw4G6 img{aspect-ratio:var(--v11659776);display:block}.picture-v2_animated-uw4G6{opacity:0;transition:opacity .28s ease-in}.picture-v2_animated-uw4G6.picture-v2_loaded-uw4G6{opacity:1}.picture-v2_contain-uw4G6{width:100%;height:100%}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",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.