PageSourceSearch

https://brandmint.ai/assets/VibeCheckResultPage-BJN4DR_P.js

js brandmint.ai collected 2026-10-05 11:53:14 UTC 3,748 bytes, 1 lines download raw bytes

1import{K as e,Z as t,m as n,s as r,t as i}from"./jsx-runtime-DQzIIyUr.js";import{t as a}from"./lib-BdUqZw-t.js";import{t as o}from"./plausible-KlFDUPOO.js";import{t as s}from"./modalStore-BzmiffI2.js";import{t as c}from"./seo-Bcm6Z8zA.js";import{s as l}from"./serverCalls-DUwxBaCV.js";import{f as u}from"./Buttons-tMz8fMKo.js";import{n as d}from"./DomainCard-wUsZHBwh.js";import{t as f}from"./isValidDomain-FGVwtaOh.js";import{t as p}from"./ErrorPage-zLC0Nfv22.js";import{t as m}from"./sanitizeDomain-eu4OcZWk.js";import{t as h}from"./VibeCheckForm-Bo61nKp_.js";var g=t(e(),1),_=i(),v=()=>{let e=s(e=>e.openModal);return(0,_.jsx)(`div`,{className:`flex flex-col items-center gap-4 p-6 bg-neutral-content rounded-lg`,children:(0,_.jsx)(`button`,{onClick:()=>{o(`PaintedDoorVibeCheckAdvanced`),e(`roadmap`)},className:`pill-button secondary-action-button`,children:`Get Full Report`})})},y=({params:e})=>{let t=e.domain?m(e.domain):``;return c({title:`${t} - Domain Score Assessment`,description:`Detailed assessment of ${t} across key branding qualities: evocative, brief, pronounceable, findable, spellable, and extendable.`,path:`/vibe-check/${t}`})},b=r(()=>{let{domain:e}=n(),[t,r]=(0,g.useState)(null),[i,o]=(0,g.useState)(!0),[s,c]=(0,g.useState)(null);if(!e||!f(e))return(0,_.jsx)(p,{message:`Error 400: Invalid domain format`});let y=m(e);if((0,g.useEffect)(()=>{(async()=>{try{o(!0),c(null),r(await l(y))}catch(e){console.error(`Error fetching domain data:`,e),c(`Failed to load domain assessment. Please try again.`)}finally{o(!1)}})()},[y]),i)return(0,_.jsx)(`div`,{className:`flex flex-col w-full max-w-2xl mx-auto min-h-[100dvh] space-y-6 px-4 py-8`,children:(0,_.jsxs)(`div`,{className:`flex flex-col items-center justify-center space-y-4 py-16`,children:[(0,_.jsx)(`div`,{className:`loading loading-spinner loading-lg text-white`}),(0,_.jsxs)(`p`,{className:`text-form-heading-white`,children:[`Assessing `,y,`...`]})]})});if(s||!t)return(0,_.jsx)(`div`,{className:`flex flex-col w-full max-w-2xl mx-auto min-h-[100dvh] space-y-6 px-4 py-8`,children:(0,_.jsxs)(`div`,{className:`flex flex-col items-center justify-center space-y-4 py-16`,children:[(0,_.jsx)(`h2`,{className:`text-2xl font-semibold text-center text-red-400`,children:`Assessment Failed`}),(0,_.jsx)(`p`,{className:`text-form-subheading-white text-center`,children:s||`Unable to assess this domain. Please try again.`})]})});let b=u(t,!0,!0);return(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)(`div`,{className:`flex flex-col w-full max-w-2xl mx-auto min-h-[100dvh] space-y-6 px-4 py-8`,children:[(0,_.jsxs)(`div`,{className:`space-y-4 text-center`,children:[(0,_.jsx)(`h1`,{children:`Vibe Check Results`}),(0,_.jsxs)(`div`,{className:`space-y-2`,children:[(0,_.jsx)(`h2`,{className:`text-2xl font-semibold text-white`,children:y}),b&&(0,_.jsxs)(`div`,{className:`flex items-center justify-center space-x-2`,children:[(0,_.jsx)(`span`,{className:`text-form-heading-white`,children:`Overall Score:`}),(0,_.jsxs)(`span`,{className:`text-3xl font-bold text-emerald-400`,children:[b,`%`]})]})]})]}),(0,_.jsxs)(`div`,{className:`input-background rounded-2xl border border-gray-200 drop-shadow`,children:[(0,_.jsxs)(`div`,{className:`p-4`,children:[(0,_.jsx)(`h3`,{className:`text-lg font-semibold text-gray-900 mb-4 text-center`,children:`Detailed Assessment`}),(0,_.jsx)(d,{domainWithStatus:t,isRejected:!1,showActions:!1})]}),(0,_.jsx)(v,{})]}),(0,_.jsx)(h,{title:`Check another domain:`,darkText:!0}),(0,_.jsx)(`div`,{className:`text-center pt-4 w-full`,children:(0,_.jsx)(`div`,{className:`flex justify-center`,children:(0,_.jsx)(a,{to:`/vibe-check`,className:`pill-button secondary-action-button`,children:`Explain These Scores`})})})]})})});export{b as default,y as meta};

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.