PageSourceSearch

https://app.cmsassets.com/_nuxt/BRxfz9Zt.js

js cmsassets.com collected 2026-10-06 21:34:15 UTC 2,347 bytes, 1 lines download raw bytes

1import{i as p,h as m,c as s,a as t,t as d,q as i,d as c,v as u,r as v,o}from"./CIeg0Ud_.js";const g={class:"space-y-3"},f={class:"text-xs font-medium uppercase tracking-wider text-accent/40"},w={class:"inline-block overflow-hidden rounded-lg border border-accent-dark bg-base"},y={class:"bg-[repeating-conic-gradient(#1a1a24_0%_25%,#12121a_0%_50%)] bg-[length:16px_16px] p-4"},b=["src","alt"],k=["src","aria-label"],h={class:"flex items-center gap-2 text-xs"},_={key:0,class:"inline-flex items-center gap-1 text-emerald-400/80"},z={key:1,class:"inline-flex items-center gap-1 text-rose-400/80"},P={class:"break-all rounded-lg bg-accent-dark/30 px-3 py-2 text-xs text-accent/40"},$=p({__name:"TenantAssetPreview",props:{type:{},proxyUrl:{},slug:{}},setup(a){const x=a,l=v(!1),r=v(!1);return m(()=>x.proxyUrl,()=>{l.value=!1,r.value=!1}),(B,e)=>(o(),s("div",g,[t("p",f,d(a.type==="video"?"Video Preview":"Preview")+" (loaded via proxy) ",1),t("div",w,[t("div",y,[a.type==="image"?(o(),s("img",{key:0,src:a.proxyUrl,alt:`Proxy preview for ${a.slug}`,class:"block max-h-72 max-w-full rounded object-contain",loading:"lazy",onLoad:e[0]||(e[0]=n=>l.value=!0),onError:e[1]||(e[1]=n=>r.value=!0)},null,40,b)):(o(),s("video",{key:1,src:a.proxyUrl,"aria-label":`Proxy video preview for ${a.slug}`,class:"block max-h-72 max-w-full rounded",controls:"",playsinline:"",preload:"metadata",onLoadeddata:e[2]||(e[2]=n=>l.value=!0),onError:e[3]||(e[3]=n=>r.value=!0)},null,40,k))])]),t("div",h,[i(l)?(o(),s("span",_,[...e[4]||(e[4]=[t("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-3.5 w-3.5",viewBox:"0 0 20 20",fill:"currentColor"},[t("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z","clip-rule":"evenodd"})],-1),c(" Loaded successfully ",-1)])])):u("",!0),i(r)?(o(),s("span",z,[...e[5]||(e[5]=[t("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-3.5 w-3.5",viewBox:"0 0 20 20",fill:"currentColor"},[t("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z","clip-rule":"evenodd"})],-1),c(" Failed to load from proxy ",-1)])])):u("",!0)]),t("p",P,d(a.proxyUrl),1)]))}}),V=Object.assign($,{__name:"AdminTenantAssetPreview"});export{V 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.