PageSourceSearch

https://macosicons.com/_nuxt/B31pI4zH.js

js macosicons.com collected 2026-09-25 20:49:14 UTC 4,796 bytes, 1 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`cc9b7572-20b8-4e02-b306-9093ddb3f8ea`,e._sentryDebugIdIdentifier=`sentry-dbid-cc9b7572-20b8-4e02-b306-9093ddb3f8ea`)}catch{}})();import{B as e,C as t,St as n,wt as r,yt as i}from"./CyU4sjus.js";import{D as a,E as o,_ as s,b as c,ct as l,g as u,k as d,mt as f,o as p,qt as m,v as h,wt as g,y as _}from"./Dxi30lUR.js";import{t as v}from"./WA1QM884.js";import{a as y}from"./1-o_v2xm.js";import{t as b}from"./BuuqxS5P.js";import{t as x}from"./ClrEVbyJ.js";import{t as S}from"./DqdcpZAT.js";import{d as C,h as w,l as T,u as E}from"#entry";import{t as D}from"./4sX5pIIc.js";var O=[`src`],k={key:0,class:`flex flex-col items-center text-center gap-1 w-full`},A=[`src`,`alt`],j={class:`flex flex-col items-center text-center gap-1 w-full`},M={key:2,class:`text-xs flex flex-row items-center gap-1`},N=Object.assign(b(d({__name:`IconCard`,props:{icon:{type:Object,default:()=>({})},isSkeleton:{type:Boolean,default:!1},compact:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disabledMessage:{type:String,default:``},to:{type:String,default:``}},setup(d){let b=d,N=T(),{}=N,{isGlobalSearchLoading:P}=y(N),F=t(!1),I=t(null),L=t(0),R=t(0),z=t(0),B=t(0),V=t(1),H=t(!1),U=t(!1),W=u(()=>`/images/placeholder-icon.png`),G=u(()=>{let e=b.icon?.timeStamp;if(typeof e==`number`||typeof e==`string`){let t=Number(e);if(!Number.isNaN(t))return N.getDate(t)}return b.icon?.createdAt||``}),K=u(()=>(C.value,E(b.icon?.lowResPngUrl||b.icon?.highResPngUrl))),q=u(()=>U.value?{transform:`none`,transition:`none`}:{transform:`perspective(700px) rotateX(${L.value}deg) rotateY(${R.value}deg) translate3d(${z.value}px, ${B.value}px, 0px) scale(${V.value})`,transition:H.value?`transform 90ms linear`:`transform 320ms cubic-bezier(0.22, 1, 0.36, 1)`,willChange:H.value?`transform`:`auto`}),J=()=>{U.value||(H.value=!1,V.value=1.04)},Y=e=>{e.stopPropagation()},X=e=>{if(U.value)return;let t=e.currentTarget;if(!t)return;let{left:n,top:r,width:i,height:a}=t.getBoundingClientRect();if(!i||!a)return;let o=(e.clientX-n)/i-.5,s=(e.clientY-r)/a-.5,c=b.compact?8:10,l=b.compact?4.5:6;H.value=!0,L.value=Number((-s*c).toFixed(2)),R.value=Number((o*c).toFixed(2)),z.value=Number((o*l).toFixed(2)),B.value=Number((s*l).toFixed(2)),V.value=1.08},Z=()=>{H.value=!1,L.value=0,R.value=0,z.value=0,B.value=0,V.value=1};return l(()=>{typeof window<`u`&&(U.value=window.matchMedia(`(prefers-reduced-motion: reduce)`).matches),I.value&&(I.value.complete||I.value.naturalWidth>0)&&(F.value=!0)}),(t,l)=>{let u=D,y=S,b=v,C=x;return f(),c(`div`,{class:i([`icon-card h-fit!`,{compact:d.compact}])},[!d.icon.appName||d.isSkeleton||e(P)?(f(),c(p,{key:0},[s(`img`,{src:W.value,alt:`Placeholder icon`,class:i([`icon-card-image w-full h-full object-contain`,{"h-[110px] w-[110px]":!d.compact,"min-h-[80px] min-w-[80px]":d.compact}]),loading:`lazy`,style:n(q.value),onMouseenter:J,onMousemove:X,onMouseleave:Z},null,46,O),d.isSkeleton?(f(),c(`div`,k,[a(u,{class:`w-[85%] h-[16px]`}),a(u,{class:`w-[70%] h-[14px]`}),a(u,{class:`w-[56%] h-[8px] mt-1`}),a(u,{class:`w-[32%] h-[6px]`})])):_(``,!0)],64)):(f(),c(p,{key:1},[s(`div`,{class:i([`icon-card-image-wrapper`,{"lazy-img":!F.value,"h-[110px] w-[110px]":!d.compact,"h-[80px] w-[80px]":d.compact}]),onMouseenter:J,onMousemove:X,onMouseleave:Z},[a(y,{text:d.disabledMessage,"delay-duration":0,disabled:d.disabled||!d.disabledMessage,arrow:!1},{default:m(()=>[s(`img`,{ref_key:`imgEl`,ref:I,src:K.value,alt:d.icon.appName,class:`icon-card-image w-full h-full object-contain`,style:n(q.value),loading:`lazy`,onLoad:l[0]||=e=>F.value=!0},null,44,A)]),_:1},8,[`text`,`disabled`])],34),s(`div`,j,[(f(),h(g(d.to?`a`:`p`),{href:d.to||void 0,class:i([`text-sm font-semibold line-clamp-1 truncate pb-0.5 w-full text-ellipsis min-w-[70px] max-w-[120px]`,{"hover:underline":d.to}])},{default:m(()=>[o(r(d.icon.appName),1)]),_:1},8,[`href`,`class`])),(`safeHandle`in t?t.safeHandle:e(w))(d.icon.usersName)?(f(),h(b,{key:0,to:`/u/${(`safeHandle`in t?t.safeHandle:e(w))(d.icon.usersName)}`,onClick:Y,class:i([`text-sm line-clamp-2 opacity-100 -mt-1 hover:underline max-w-[120px] truncate`,{"line-clamp-1!":d.compact}])},{default:m(()=>[o(r((`safeHandle`in t?t.safeHandle:e(w))(d.icon.usersName)),1)]),_:1},8,[`to`,`class`])):_(``,!0),d.compact?_(``,!0):(f(),c(`p`,{key:1,class:i([`text-xs line-clamp-2 opacity-70`,{"line-clamp-1!":d.compact}])},r(G.value),3)),d.compact?_(``,!0):(f(),c(`p`,M,[o(r(d.icon.downloads)+` `,1),a(C,{name:`heroicons:arrow-down-tray-20-solid`,class:`size-3 inline-block`})]))])],64))],2)}}}),[[`__scopeId`,`data-v-f09be6ad`]]),{__name:`IconCard`});export{N 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.