PageSourceSearch

https://fluz.app/assets/ModalHeader-CWW0U5Vn.js

js fluz.app collected 2026-09-24 08:55:13 UTC 1,614 bytes, 1 lines download raw bytes

1import{j as s}from"./jsx-runtime-Cf8x2fCZ.js";import{r as c}from"./index-DVyYOtpF.js";import{c as E}from"./index-CJx4bWmi.js";import{a as v}from"./Modal-rpuG1vfQ.js";import{B as f}from"./Button-Clh_B6Kd.js";import{A as I}from"./Avatar-DeryU77F.js";const z={"modal-header":"_modal-header_1bex0_8"};function S(o,r,t){const e=new Image;e.onload=()=>{o.style.backgroundImage=`url(${r})`},e.onerror=()=>{o.style.backgroundImage=`url(${t})`},e.src=r}const A=({onClick:o,darkMode:r,closeButtonHierarchy:t})=>s.jsx(f,{hierarchy:t??"secondary-stroke",iconSlot:"XEmph",isIconButton:!0,darkMode:r,size:"sm",onClick:e=>{e.stopPropagation(),o?.()}}),C=({onClick:o,darkMode:r})=>s.jsx(f,{hierarchy:"secondary-stroke",size:"sm",iconSlot:"ArrowLeftEmph",isIconButton:!0,darkMode:r,onClick:o}),H=({children:o,className:r,backButton:t,closeButtonHierarchy:e,logo:l,logoBackupLetter:p="",darkMode:d=!1,leftContent:m,rightContent:u,hideClose:h=!1,onClose:j,banner:a,bannerFallback:i,style:x,...g})=>{const{setVisible:k}=c.useContext(v),[y,B]=c.useState(!1),n=c.useRef(null);return c.useEffect(()=>{a&&n.current&&i&&S(n.current,a,i)},[a,i]),s.jsxs("div",{ref:n,className:E(z["modal-header"],r),style:a?{backgroundSize:"cover",backgroundPosition:"center",...x}:x,...g,children:[s.jsxs("div",{children:[t?s.jsx(C,{darkMode:d}):l&&s.jsx(I,{url:y?void 0:l,size:"lg",letter:p,onImgError:()=>{B(!0)}}),m&&s.jsx("span",{children:m})]}),s.jsx("div",{children:o}),s.jsxs("div",{children:[u&&s.jsx("span",{children:u}),!h&&s.jsx(A,{darkMode:d,closeButtonHierarchy:e,onClick:()=>{k(!1),j?.()}})]})]})};H.displayName="ModalHeader";export{H as M};

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.