PageSourceSearch

https://app.lumicast.com/assets/Bi0u0Bdf.js

js lumicast.com collected 2026-10-06 00:55:04 UTC 3,461 bytes, 1 lines download raw bytes

1import{A as e,B as t,C as n,O as r,S as i,X as a,_t as o,b as s,fn as c,ft as l,jt as u,nt as d,sn as f,w as p,x as m}from"./C2lT8Xf9.js";import{t as h}from"./CV67IW2o.js";import{t as g}from"./BDLHsqwK.js";import{t as _}from"./C_DzMgWp.js";var v={key:0,class:`p-3 loading-state rounded-lg`},y={key:1,class:`text-sm text-lc-error`},b=[`src`],x=e({__name:`TinyBase`,props:{icon:{},loading:{type:Boolean},error:{type:Boolean},name:{},colored:{type:Boolean},small:{type:Boolean},image:{},hideName:{type:Boolean},processing:{type:Boolean}},setup(e){let t=e,o=u(!1);return l(()=>t.image,()=>{o.value=!1}),(t,s)=>{let l=d(`IconPark`);return e.loading?(a(),p(`div`,v)):e.error?(a(),p(`p`,y,`error`)):(a(),p(`div`,{key:2,class:f([`flex items-center max-w-full`,{"gap-2":!e.colored,"gap-3":e.colored}])},[m(`div`,{class:f([`flex items-center max-w-full`,{"gap-1":e.small,"gap-2":!e.small}])},[e.processing?(a(),i(_,{key:0,size:e.small?28:40},null,8,[`size`])):!e.image||o.value?(a(),p(`div`,{key:1,class:f([`justify-center items-center flex`,{"bg-lc-primary-light":e.colored,"rounded-lg":e.colored,"h-10 w-10":e.colored&&!e.small,"h-7 w-7":e.colored&&e.small,"w-7":!e.colored}])},[r(l,{type:e.icon,class:f({"text-lc-primary":e.colored,"h-4 w-4":e.small})},null,8,[`type`,`class`])],2)):(a(),p(`div`,{key:2,class:f([`rounded-lg bg-center bg-cover flex items-center justify-center`,{"h-10":!e.small,"w-10":!e.small,"h-7":e.small,"w-7":e.small}])},[m(`img`,{src:e.image,class:f([`object-contain w-full h-full`,{"!w-4":e.small}]),onError:s[0]||=e=>o.value=!0},null,42,b)],2)),e.hideName?n(``,!0):(a(),p(`p`,{key:3,class:f([`truncate flex-1`,{"font-semibold":e.colored,"text-sm":!e.small,"text-xs":e.small}])},c(e.name),3))],2)],2))}}}),S=e({__name:`TinyContent`,props:{text:{},type:{},contentReferenceId:{},image:{},showResolution:{type:Boolean},name:{},maxImageWidth:{},hideName:{type:Boolean},workspaceId:{},icon:{},small:{type:Boolean}},setup(e){let n=e,r=e=>{let t=JSON.parse(JSON.stringify(e));return delete t[`data-draggable`],delete t.class,t},{getItemById:c,isLoading:l}=h(),u=s(()=>c(n.contentReferenceId||-1,n.workspaceId)),d=s(()=>l.value&&!u.value),f=s(()=>u.value?.content_type||n.type),p=s(()=>u.value?.preview),m=s(()=>n.icon?n.icon:f.value===`CAMPAIGN`?`SpeakerOne`:f.value===`PLAYLIST`?`PlayTwo`:f.value===`PAGE`?`Page`:f.value===`TEXT_MESSAGE`?`Message`:f.value===`MEDIA_ITEM`?`VideoTwo`:f.value===`LINK`?`LinkTwo`:f.value===`APP`?`ApplicationTwo`:f.value===`SHAPE`?`RectangleOne`:f.value===`WIDGET`?`ApplicationTwo`:f.value===`TEXT`?`AddText`:f.value===`FOLDER`?`FolderOpen`:f.value===`DYNAMIC`?`Picture`:`ApplicationTwo`),_=s(()=>n.name?n.name:n.text?n.text:p.value?.name||`-`),v=s(()=>n.image?n.image:p.value?.thumbnail),y=s(()=>d.value?!0:!p.value||!p.value.details?.status?!1:p.value.details.status!==`READY`);return(s,c)=>(a(),i(g,{class:`truncate`},{default:o(()=>[e.type===`CONTENT`&&!u.value?(a(),i(x,t({key:0,icon:e.contentReferenceId?`Lock`:`FileFailed`,name:n.name||(e.contentReferenceId?s.$t(`general.restrictedContent`):s.$t(`general.noContent`)),loading:d.value,error:!1,"hide-name":e.hideName,small:e.small},r(s.$attrs)),null,16,[`icon`,`name`,`loading`,`hide-name`,`small`])):(a(),i(x,t({key:1,icon:m.value,name:_.value,image:v.value,error:!1,loading:d.value,processing:y.value,"hide-name":e.hideName,small:e.small},r(s.$attrs)),null,16,[`icon`,`name`,`image`,`loading`,`processing`,`hide-name`,`small`]))]),_:1}))}});export{x as n,S 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.