Source identity
| Field | Recorded value |
|---|---|
| Source type | GitHub source |
| Original record | Janady13/thatstupidcomputer / apps/web/src/components/demo-intent.mjs |
| Date | Not specified in source |
| Repository | Janady13/thatstupidcomputer |
| Revision | 57555cde46910102dd25d6c1c1fb2c359e9655bd |
| Branch | main |
| Path or archive member | apps/web/src/components/demo-intent.mjs |
| Original SHA-256 | c0d8ead0ac1f90800a67c85a934e34af62a168191ea7d0e10fa1c732978380fe |
| Git blob SHA | 3d4631866c0dfe6890097f65a71c2880415b0186 |
| Reading-copy SHA-256 | c0d8ead0ac1f90800a67c85a934e34af62a168191ea7d0e10fa1c732978380fe |
Recovered source transcript
Download complete source text ↓8 lines · 0.5 KB
import { PROJECT_INTENTS } from '../../../../packages/site/inquiry.mjs';
export { PROJECT_INTENTS, PROJECT_LABELS, demoIntentHref, parseDemoIntent } from '../../../../packages/site/inquiry.mjs';
/** Call after hydration. An edited form is never rewritten by a URL change. */
export function applyDemoIntent(fields, intent, edited = false) {
if (edited || !intent || intent.source !== 'computer' || !PROJECT_INTENTS.includes(intent.projectType) || fields.projectType !== 'unsure') return fields;
return { ...fields, projectType: intent.projectType };
}