PageSourceSearch

https://partyhat.com/assets/Crown-CQBvvPAN.js

js partyhat.com collected 2026-10-09 17:47:23 UTC 2,973 bytes, 1 lines download raw bytes

1import{G as e,U as t,s as n}from"./link-CdkOZk0j.js";import{l as r}from"./index-D8qWk71G.js";var i=e(t(),1),a=n();function o({size:e=360,color:t=`var(--color-ink-muted)`}){return(0,a.jsxs)(`svg`,{width:e,height:e,viewBox:`0 0 240 240`,fill:`none`,stroke:t,strokeWidth:`0.9`,strokeLinecap:`round`,strokeLinejoin:`round`,children:[(0,a.jsx)(`line`,{x1:`50`,y1:`74`,x2:`190`,y2:`74`}),(0,a.jsx)(`path`,{d:`M50 76 L70 150 L95 110 L120 150 L145 110 L170 150 L190 76`}),(0,a.jsx)(`line`,{x1:`50`,y1:`156`,x2:`190`,y2:`156`})]})}function s({size:e=520,color:t=`natural`,shape:n=`crown`}){let s=(0,i.useRef)(null),c=(0,i.useRef)(null),[l,u]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{let e=!1;return r(async()=>{let{mount:e}=await import(`./crown-gl-SzzlfD_i.js`);return{mount:e}},[]).then(({mount:r})=>{if(!(e||!s.current))try{c.current=r(s.current,{color:t,shape:n})}catch(e){console.warn(`CrownGL mount failed`,e),u(!0)}}).catch(e=>{console.warn(`CrownGL load failed`,e),u(!0)}),()=>{e=!0,c.current&&=(c.current.dispose(),null)}},[]),(0,i.useEffect)(()=>{c.current?.setTheme(t)},[t]),(0,i.useEffect)(()=>{let e=s.current;if(!e||typeof IntersectionObserver>`u`)return;let t=new IntersectionObserver(e=>{let t=e.some(e=>e.isIntersecting);c.current?.setActive(t)},{rootMargin:`180px 0px 180px 0px`});return t.observe(e),()=>t.disconnect()},[]),(0,a.jsxs)(`div`,{className:`relative grid place-items-center`,style:{width:e,height:e},children:[(0,a.jsx)(`div`,{"aria-hidden":!0,className:`ph-crown-glow absolute inset-[-32%] pointer-events-none`}),(0,a.jsx)(`div`,{"aria-hidden":!0,className:`ph-crown-glow-strong absolute inset-[8%] pointer-events-none`}),l?(0,a.jsx)(o,{size:e*.7}):(0,a.jsx)(`div`,{ref:s,className:`relative w-full h-full`}),!l&&(0,a.jsxs)(i.Fragment,{children:[(0,a.jsx)(`span`,{className:`ph-tick ph-tick-tl`,"aria-hidden":`true`}),(0,a.jsx)(`span`,{className:`ph-tick ph-tick-tr`,"aria-hidden":`true`}),(0,a.jsx)(`span`,{className:`ph-tick ph-tick-bl`,"aria-hidden":`true`}),(0,a.jsx)(`span`,{className:`ph-tick ph-tick-br`,"aria-hidden":`true`})]})]})}function c({index:e,kicker:t,title:n,intro:r,color:o,shape:c,crownSize:l}){let[u,d]=(0,i.useState)(1200);(0,i.useEffect)(()=>{let e=()=>d(window.innerWidth);return e(),window.addEventListener(`resize`,e),()=>window.removeEventListener(`resize`,e)},[]);let f=u<880,p=l??Math.round(Math.min(u*(f?.82:.4),480));return(0,a.jsxs)(`div`,{className:`ph-hero`,children:[(0,a.jsx)(`div`,{className:`ph-hero-crown`,style:{height:f?p*.8:`auto`},children:(0,a.jsx)(s,{size:p,color:o,shape:c})}),(0,a.jsxs)(`div`,{className:`ph-hero-copy`,children:[t&&(0,a.jsxs)(`div`,{className:`ph-section-head mono`,children:[e&&(0,a.jsx)(`span`,{className:`ph-section-no`,children:e}),(0,a.jsxs)(`span`,{className:`ph-kicker`,children:[(0,a.jsx)(`span`,{className:`ph-kicker-dot`}),t]})]}),(0,a.jsx)(`h1`,{className:`ph-hero-title`,children:n}),r&&(0,a.jsx)(`p`,{className:`ph-hero-intro`,children:r})]})]})}export{c 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.