PageSourceSearch

https://jasmcole.com/assets/Bd3komZq2.js

js jasmcole.com collected 2026-10-03 19:53:13 UTC 4,590 bytes, 1 lines download raw bytes

1import{n as e}from"./u6Mpy_FK.js";import{L as t,t as n}from"./DA7PatPa.js";import{t as r}from"./SrmLHM1Q2.js";var i=e(t(),1),a=n(),o={info:`BTW`,note:`Note`,warning:`Warning`};function s(...e){return e.filter(Boolean).join(` `)}function c({children:e,className:t,title:n,type:r=`info`,...i}){return(0,a.jsxs)(`aside`,{className:s(`callout`,`callout--${r}`,t),"data-callout-type":r,...i,children:[(0,a.jsx)(`div`,{className:`callout__label`,children:n??o[r]}),(0,a.jsx)(`div`,{className:`callout__body`,children:e})]})}function l(e){try{let t=new URL(e);return t.hostname.replace(/^www\./,``)+t.pathname.replace(/\/$/,``)}catch{return e}}function u(e){try{let t=new URL(e);return[`${t.origin}/favicon.ico`,`${t.origin}/favicon.png`,`${t.origin}/favicon.svg`,`${t.origin}/apple-touch-icon.png`,`https://www.google.com/s2/favicons?domain=${t.hostname}&sz=64`]}catch{return[]}}function d(e){return Array.from(new Set(e))}function f(e){try{return new URL(e,`https://jasmcole.com`)}catch{return null}}function p(e){return e.replace(/\/$/,``)||`/`}function m(e){let t=f(e);
1if(!t||t.hostname!==`jasmcole.com`&&e.startsWith(`http`))return null;let n=p(t.pathname),i=r.find(e=>e.url===n);return i?.coverImage?`/images/posts/${i.slug}/${i.coverImage}`:null}function h({href:e,title:t,description:n,faviconSrc:r,urlLabel:o,embedIframe:s,disableFavicon:c}){let p=f(e),h=/^https?:\/\//.test(e)&&p?.hostname!==`jasmcole.com`,g=m(e),_=o??l(e),v=(0,i.useMemo)(()=>g||c?[]:d([r,...u(e)].filter(Boolean)),[r,e,g,c]),[y,b]=(0,i.useState)(0),x=v[y],S=g??x;return(0,a.jsxs)(`aside`,{className:`group not-prose my-10 block overflow-hidden border border-black/20 bg-black/2 transition-colors hover:bg-black/5 focus-within:outline focus-within:outline-2 focus-within:outline-offset-4 focus-within:outline-black`,children:[s&&(0,a.jsx)(`div`,{className:`relative aspect-video w-full border-b border-black/15 bg-black/5`,children:(0,a.jsx)(`iframe`,{src:e,title:t,className:`absolute inset-0 h-full w-full border-0`,sandbox:`allow-scripts allow-same-origin allow-popups`,loading:`lazy`})}),(0,a.jsx)(`a`,{href:e,className:`block p-4 text-black no-underline hover:no-underline focus-visible:outline-none sm:p-5`,style:{textDecoration:`none`},target:h?`_blank`:void 0,rel:h?`noreferrer`:void 0,children:(0,a.jsxs)(`div`,{className:`flex gap-4 sm:items-start sm:gap-5`,children:[(!c||g)&&(0,a.jsx)(`div`,{className:[`flex shrink-0 items-center justify-center overflow-hidden border border-black/10 bg-white/55 p-0`,g?`h-16 w-24 sm:h-20 sm:w-28`:`h-14 w-14 p-2 sm:h-16 sm:w-16 sm:p-2.5`].join(` `),children:S?(0,a.jsx)(`img`,{src:S,alt:``,className:[`m-0 block h-full w-full border-0 bg-transparent p-0 shadow-none`,g?`object-cover`:`object-contain mix-blend-multiply`].join(` `),style:{border:0,display:`block`,margin:0,padding:0,width:`100%`},loading:`lazy`,onError:g?void 0:()=>b(e=>Math.min(e+1,v.length))},S):(0,a.jsx)(`span`,{className:`font-mono text-xl uppercase text-black/45`,children:t.slice(0,1)})}),(0,a.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,a.jsxs)(`div`,{className:`flex flex-col gap-2.5`,children:[(0,a.jsx)(`div`,{className:`text-[1.45rem] font-bold leading-none tracking-tight text-black transition-opacity group-hover:opacity-75 sm:text-[1.72rem]`,children:t}),(0,a.jsx)(`div`,{className:`max-w-[42rem] text-[0.98rem] leading-[1.55] text-black/68`,children:n})]}),(0,a.jsx)(`div`,{className:`mt-4 overflow-hidden text-ellipsis whitespace-nowrap border-t border-black/15 pt-3 font-mono text-[10px] uppercase tracking-[0.18em] text-black/45`,children:_})]})]})})]})}function g({src:e,alt:t,imageTitle:n,children:r,className:i,...o}){return(0,a.jsx)(`figure`,{className:[`journal-figure`,i].filter(Boolean).join(` `),...o,children:e?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`img`,{src:e,alt:t,title:n}),(0,a.jsx)(_,{children:r})]}):r})}function _({children:e,className:t,...n}){let r=e==null;return(0,a.jsx)(`figcaption`,{className:[`journal-figure-caption`,r&&`journal-figure-generated-caption`,t].filter(Boolean).join(` `),"aria-hidden":r?!0:void 0,...n,children:r?null:(0,a.jsx)(`div`,{className:`journal-figure-caption-inner`,children:(0,a.jsx)(`div`,{className:`journal-figure-caption-body`,children:e})})})}function v({children:e,...t}){let n=i.Children.toArray(e).filter(e=>typeof e!=`string`||e.trim()!==``);return n.length===1&&(0,i.isValidElement)(n[0])&&(n[0].type===`img`||n[0].type===`video`)?(0,a.jsxs)(g,{children:[n[0],(0,a.jsx)(_,{})]}):(0,a.jsx)(`p`,{...t,children:e})}function y(){return{Figure:g,Caption:_,p:v,Callout:c,LinkCard:h}}export{c as i,g as n,h as r,y 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.