@chrisflippen/blueprint-document-assembly 3.0.1 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -3
- package/dist/index.d.mts +10 -3
- package/dist/index.d.ts +10 -3
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +12 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +17 -16
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ An animation-heavy React component library for visualizing multi-step processes
|
|
|
11
11
|
- **Progressive Document Assembly** — Watch documents build piece-by-piece as steps complete with typewriter effects
|
|
12
12
|
- **ThemeProvider** — Full React Context theming; change all colors by passing a single config
|
|
13
13
|
- **Animation Presets** — Smooth, Snappy, Cinematic, and Minimal presets with configurable timings
|
|
14
|
-
- **Accessibility** — `prefers-reduced-motion` support, ARIA roles (`progressbar`, `log`, `
|
|
14
|
+
- **Accessibility** — `prefers-reduced-motion` support, ARIA roles (`progressbar`, `log`, `dialog`), focus trap in modal, keyboard navigation
|
|
15
15
|
- **Mobile Responsive** — Automatic vertical stacking on small screens via `useResponsiveLayout`
|
|
16
16
|
- **Headless Hook** — `useDocumentAssembly()` for full control without any UI
|
|
17
17
|
- **Generic Presets** — Squiggle text presets (`~~~~~ ~~~ ~~~~~~~`) for non-domain-specific demos
|
|
@@ -250,6 +250,14 @@ const prefersReduced = useReducedMotion(); // boolean
|
|
|
250
250
|
- Log toggles: `aria-expanded` and `aria-label`
|
|
251
251
|
- Substep lists: `role="list"` and `role="listitem"`
|
|
252
252
|
- Root container: `aria-label="Document assembly"`
|
|
253
|
+
- Document lines: `aria-busy` while typewriter animation is active
|
|
254
|
+
- Completion modal: `role="dialog"`, `aria-modal="true"`, focus trap, `Escape` to close
|
|
255
|
+
|
|
256
|
+
### Keyboard Navigation
|
|
257
|
+
|
|
258
|
+
- **Escape** — closes the completion modal overlay
|
|
259
|
+
- **Tab** — cycles focus within the modal (trapped between close button and content)
|
|
260
|
+
- **focus-visible** ring styling on all interactive elements
|
|
253
261
|
|
|
254
262
|
## Mobile Responsive
|
|
255
263
|
|
|
@@ -324,8 +332,8 @@ Or override via the `layout` prop:
|
|
|
324
332
|
**Constants:**
|
|
325
333
|
`DEFAULT_STEPS`, `DEFAULT_STEP_LOGS`, `DEFAULT_SUBSTEP_LOGS`, `DEFAULT_LABELS`, `DEFAULT_THEME`, `STEP_ICON_MAP`
|
|
326
334
|
|
|
327
|
-
**
|
|
328
|
-
`createStep`, `createSubStep`, `createDocumentSection`, `resetStepCounter`
|
|
335
|
+
**Utilities:**
|
|
336
|
+
`createStep`, `createSubStep`, `createDocumentSection`, `resetStepCounter`, `resolveContent`
|
|
329
337
|
|
|
330
338
|
**Types:**
|
|
331
339
|
`Step`, `SubStep`, `LogEntry`, `DocumentMetrics`, `DocumentIds`, `DocumentSection`, `DocumentSubsection`, `ClassNameSlots`, `ThemeConfig`, `AnimationTimings`, `AnimationPreset`, `ResolvedTheme`, `ResolvedThemeColors`, `LabelConfig`, `LayoutConfig`, `UseDocumentAssemblyOptions`, `UseDocumentAssemblyReturn`, `BlueprintDocumentAssemblyRef`, `BlueprintDocumentAssemblyProps`, and all component prop types
|
|
@@ -361,6 +369,10 @@ src/
|
|
|
361
369
|
│ ├── squiggle-document-sections.ts # Generic squiggle text sections
|
|
362
370
|
│ ├── squiggle-steps.ts # Generic steps + logs
|
|
363
371
|
│ └── index.ts
|
|
372
|
+
├── utils/
|
|
373
|
+
│ ├── factories.ts # createStep, createSubStep, etc.
|
|
374
|
+
│ ├── content-resolvers.ts # Shared resolveContent utility
|
|
375
|
+
│ └── index.ts
|
|
364
376
|
├── constants/
|
|
365
377
|
│ ├── default-labels.ts
|
|
366
378
|
│ └── default-theme.ts
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { ComponentType, CSSProperties, ReactNode, RefObject } from 'react';
|
|
2
|
+
import react__default, { ComponentType, CSSProperties, ReactNode, RefObject } from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
|
|
5
5
|
interface LogEntry {
|
|
@@ -543,7 +543,9 @@ declare const DEFAULT_STEP_LOGS: Record<string, string[][]>;
|
|
|
543
543
|
declare const DEFAULT_SUBSTEP_LOGS: Record<string, string[][]>;
|
|
544
544
|
|
|
545
545
|
declare const DEFAULT_STEPS: Step[];
|
|
546
|
-
declare const STEP_ICON_MAP: Record<string,
|
|
546
|
+
declare const STEP_ICON_MAP: Record<string, react__default.ComponentType<{
|
|
547
|
+
className?: string;
|
|
548
|
+
}>>;
|
|
547
549
|
|
|
548
550
|
declare const DEFAULT_LABELS: Required<LabelConfig>;
|
|
549
551
|
|
|
@@ -608,4 +610,9 @@ declare function createDocumentSection(partial: Partial<DocumentSection> & Pick<
|
|
|
608
610
|
*/
|
|
609
611
|
declare function resetStepCounter(): void;
|
|
610
612
|
|
|
611
|
-
|
|
613
|
+
/**
|
|
614
|
+
* Resolve dynamic content placeholders in document text.
|
|
615
|
+
*/
|
|
616
|
+
declare function resolveContent(content: string, documentIds: DocumentIds): string;
|
|
617
|
+
|
|
618
|
+
export { type AnimationPreset, AnimationProvider, type AnimationTimings, BlueprintDocumentAssembly, type BlueprintDocumentAssemblyProps, type BlueprintDocumentAssemblyRef, CINEMATIC_PRESET, type ClassNameSlots, DEFAULT_LABELS, DEFAULT_STEPS, DEFAULT_STEP_LOGS, DEFAULT_SUBSTEP_LOGS, DEFAULT_THEME, type DocumentIds, DocumentLine, type DocumentLineProps$1 as DocumentLineProps, type DocumentMetrics, DocumentPreview, type DocumentPreviewProps$1 as DocumentPreviewProps, type DocumentSection, type DocumentSubsection, LEGAL_DOCUMENT_SECTIONS, LEGAL_WHOLE_DOCUMENT_SECTIONS, type LabelConfig, type LayoutConfig, LogContainer, type LogContainerProps$1 as LogContainerProps, type LogEntry, LogLine, type LogLineProps$1 as LogLineProps, MINIMAL_PRESET, type ResolvedTheme, type ResolvedThemeColors, SMOOTH_PRESET, SNAPPY_PRESET, SQUIGGLE_DOCUMENT_SECTIONS, SQUIGGLE_STEPS, SQUIGGLE_STEP_LOGS, SQUIGGLE_SUBSTEP_LOGS, SQUIGGLE_WHOLE_DOCUMENT_SECTIONS, STEP_ICON_MAP, type Step, StepItem, type StepItemProps$1 as StepItemProps, type SubStep, SubStepItem, type SubStepItemProps$1 as SubStepItemProps, type ThemeConfig, ThemeProvider, type UseDocumentAssemblyOptions, type UseDocumentAssemblyReturn, WholeDocumentContent, type WholeDocumentContentProps$1 as WholeDocumentContentProps, WholeDocumentView, type WholeDocumentViewProps$1 as WholeDocumentViewProps, createDocumentSection, createStep, createSubStep, getThemeSafelist, resetStepCounter, resolveContent, resolveTheme, useAnimation, useAnimationOptional, useDocumentAssembly, useReducedMotion, useResponsiveLayout, useTheme, useThemeOptional };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import { ComponentType, CSSProperties, ReactNode, RefObject } from 'react';
|
|
2
|
+
import react__default, { ComponentType, CSSProperties, ReactNode, RefObject } from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
|
|
5
5
|
interface LogEntry {
|
|
@@ -543,7 +543,9 @@ declare const DEFAULT_STEP_LOGS: Record<string, string[][]>;
|
|
|
543
543
|
declare const DEFAULT_SUBSTEP_LOGS: Record<string, string[][]>;
|
|
544
544
|
|
|
545
545
|
declare const DEFAULT_STEPS: Step[];
|
|
546
|
-
declare const STEP_ICON_MAP: Record<string,
|
|
546
|
+
declare const STEP_ICON_MAP: Record<string, react__default.ComponentType<{
|
|
547
|
+
className?: string;
|
|
548
|
+
}>>;
|
|
547
549
|
|
|
548
550
|
declare const DEFAULT_LABELS: Required<LabelConfig>;
|
|
549
551
|
|
|
@@ -608,4 +610,9 @@ declare function createDocumentSection(partial: Partial<DocumentSection> & Pick<
|
|
|
608
610
|
*/
|
|
609
611
|
declare function resetStepCounter(): void;
|
|
610
612
|
|
|
611
|
-
|
|
613
|
+
/**
|
|
614
|
+
* Resolve dynamic content placeholders in document text.
|
|
615
|
+
*/
|
|
616
|
+
declare function resolveContent(content: string, documentIds: DocumentIds): string;
|
|
617
|
+
|
|
618
|
+
export { type AnimationPreset, AnimationProvider, type AnimationTimings, BlueprintDocumentAssembly, type BlueprintDocumentAssemblyProps, type BlueprintDocumentAssemblyRef, CINEMATIC_PRESET, type ClassNameSlots, DEFAULT_LABELS, DEFAULT_STEPS, DEFAULT_STEP_LOGS, DEFAULT_SUBSTEP_LOGS, DEFAULT_THEME, type DocumentIds, DocumentLine, type DocumentLineProps$1 as DocumentLineProps, type DocumentMetrics, DocumentPreview, type DocumentPreviewProps$1 as DocumentPreviewProps, type DocumentSection, type DocumentSubsection, LEGAL_DOCUMENT_SECTIONS, LEGAL_WHOLE_DOCUMENT_SECTIONS, type LabelConfig, type LayoutConfig, LogContainer, type LogContainerProps$1 as LogContainerProps, type LogEntry, LogLine, type LogLineProps$1 as LogLineProps, MINIMAL_PRESET, type ResolvedTheme, type ResolvedThemeColors, SMOOTH_PRESET, SNAPPY_PRESET, SQUIGGLE_DOCUMENT_SECTIONS, SQUIGGLE_STEPS, SQUIGGLE_STEP_LOGS, SQUIGGLE_SUBSTEP_LOGS, SQUIGGLE_WHOLE_DOCUMENT_SECTIONS, STEP_ICON_MAP, type Step, StepItem, type StepItemProps$1 as StepItemProps, type SubStep, SubStepItem, type SubStepItemProps$1 as SubStepItemProps, type ThemeConfig, ThemeProvider, type UseDocumentAssemblyOptions, type UseDocumentAssemblyReturn, WholeDocumentContent, type WholeDocumentContentProps$1 as WholeDocumentContentProps, WholeDocumentView, type WholeDocumentViewProps$1 as WholeDocumentViewProps, createDocumentSection, createStep, createSubStep, getThemeSafelist, resetStepCounter, resolveContent, resolveTheme, useAnimation, useAnimationOptional, useDocumentAssembly, useReducedMotion, useResponsiveLayout, useTheme, useThemeOptional };
|
package/dist/index.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
'use strict';var react=require('react'),react$1=require('motion/react'),lucideReact=require('lucide-react'),jsxRuntime=require('react/jsx-runtime');/* Blueprint Document Assembly
|
|
2
|
-
var
|
|
1
|
+
'use strict';var react=require('react'),react$1=require('motion/react'),lucideReact=require('lucide-react'),jsxRuntime=require('react/jsx-runtime');/* Blueprint Document Assembly v3.1.1 | MIT License */
|
|
2
|
+
var ft="(prefers-reduced-motion: reduce)";function eo(){return typeof window>"u"?false:window.matchMedia(ft).matches}function Xe(){let[t,e]=react.useState(eo);return react.useEffect(()=>{let n=window.matchMedia(ft);e(n.matches);let s=o=>e(o.matches);return n.addEventListener("change",s),()=>n.removeEventListener("change",s)},[]),t}var ee={name:"smooth",durations:{fast:.3,normal:.5,slow:.8},springs:{stiff:{type:"spring",stiffness:300,damping:30},gentle:{type:"spring",stiffness:120,damping:20},bouncy:{type:"spring",stiffness:200,damping:15,bounce:.3}},stagger:{step:.15,substep:.15,log:.05,sparkle:.1},typewriter:{charDelay:25,cursorBlink:700},entrance:{x:-30,y:0,scale:.8},hookTimings:{stepActivation:800,substepDelay:500,logStreamBase:250,logStreamVariance:300,typewriterSpeed:25,sectionRevealDuration:500,completionDelay:400}},bt={name:"snappy",durations:{fast:.15,normal:.25,slow:.4},springs:{stiff:{type:"spring",stiffness:500,damping:35},gentle:{type:"spring",stiffness:250,damping:25},bouncy:{type:"spring",stiffness:350,damping:18,bounce:.2}},stagger:{step:.08,substep:.08,log:.03,sparkle:.05},typewriter:{charDelay:15,cursorBlink:500},entrance:{x:-20,y:0,scale:.9},hookTimings:{stepActivation:400,substepDelay:250,logStreamBase:125,logStreamVariance:150,typewriterSpeed:15,sectionRevealDuration:250,completionDelay:200}},yt={name:"cinematic",durations:{fast:.5,normal:.8,slow:1.2},springs:{stiff:{type:"spring",stiffness:200,damping:25},gentle:{type:"spring",stiffness:80,damping:15},bouncy:{type:"spring",stiffness:150,damping:10,bounce:.5}},stagger:{step:.2,substep:.2,log:.08,sparkle:.15},typewriter:{charDelay:35,cursorBlink:900},entrance:{x:-40,y:10,scale:.7},hookTimings:{stepActivation:1200,substepDelay:750,logStreamBase:400,logStreamVariance:500,typewriterSpeed:35,sectionRevealDuration:750,completionDelay:600}},Oe={name:"minimal",durations:{fast:.1,normal:.15,slow:.2},springs:{stiff:{type:"spring",stiffness:500,damping:40},gentle:{type:"spring",stiffness:400,damping:35},bouncy:{type:"spring",stiffness:450,damping:38,bounce:0}},stagger:{step:.05,substep:.05,log:.02,sparkle:.02},typewriter:{charDelay:10,cursorBlink:0},entrance:{x:0,y:0,scale:1},hookTimings:{stepActivation:200,substepDelay:100,logStreamBase:50,logStreamVariance:50,typewriterSpeed:5,sectionRevealDuration:100,completionDelay:100}};var je=react.createContext(null);function Le({preset:t,children:e}){let n=Xe(),s=react.useMemo(()=>{let o=n?Oe:t??ee;return {preset:o,reducedMotion:n,getTransition:a=>({duration:o.durations[a]}),getSpring:a=>n?{duration:o.durations.fast}:o.springs[a]}},[t,n]);return jsxRuntime.jsx(je.Provider,{value:s,children:e})}function k(){let t=react.useContext(je);return t||{preset:ee,reducedMotion:false,getTransition:e=>({duration:ee.durations[e]}),getSpring:e=>ee.springs[e]}}function St(){return react.useContext(je)}var Nt=react.memo(function({log:e,compact:n=false,classNames:s}){let a={info:{color:"text-cyan-500",symbol:"\u2192"},success:{color:"text-emerald-500",symbol:"\u2713"},warning:{color:"text-amber-500",symbol:"\u26A0"},processing:{color:"text-purple-500",symbol:"\u27F3"}}[e.level],{reducedMotion:l}=k();return jsxRuntime.jsxs(react$1.motion.div,{initial:l?false:{opacity:0,x:-10},animate:{opacity:1,x:0},transition:{duration:l?.1:.3},className:`flex items-start gap-2 text-foreground/80 ${s?.log||""}`,children:[!n&&jsxRuntime.jsx("span",{className:"text-muted-foreground text-[10px]",children:e.timestamp}),jsxRuntime.jsx("span",{className:`${a.color} font-bold`,children:a.symbol}),jsxRuntime.jsx("span",{className:"flex-1 text-[11px]",children:e.message})]})}),Te=react.memo(function({logs:e,expanded:n,onToggle:s,compact:o=false,classNames:a,labels:l,renderLog:i}){let c=react.useRef(null);if(react.useEffect(()=>{c.current&&(c.current.scrollTop=c.current.scrollHeight);},[e]),e.length===0)return null;let{reducedMotion:r}=k(),g=o?l?.logLabelCompact??"LOG":l?.logLabel??"SYSTEM LOG",v=o?"":l?.logEntriesSuffix??" entries";return jsxRuntime.jsxs(react$1.motion.div,{role:"log","aria-live":"polite",initial:r?false:{opacity:0},animate:{opacity:1},transition:{duration:r?.1:.4},className:`${o?"mt-2":"mt-3 ml-14"} ${a?.logContainer||""}`,children:[jsxRuntime.jsxs("button",{onClick:s,"aria-expanded":n,"aria-label":`${g} - ${e.length} entries`,className:`flex items-center ${o?"gap-1.5":"gap-2"} text-xs font-mono text-muted-foreground hover:text-foreground transition-colors ${o?"":"px-2 py-1 rounded"} focus-visible:ring-2 focus-visible:ring-orange-500 focus-visible:ring-offset-2 focus-visible:outline-none rounded`,children:[n?jsxRuntime.jsx(lucideReact.ChevronDown,{className:"w-3 h-3"}):jsxRuntime.jsx(lucideReact.ChevronRight,{className:"w-3 h-3"}),jsxRuntime.jsx(lucideReact.Terminal,{className:o?"w-2.5 h-2.5":"w-3 h-3"}),jsxRuntime.jsxs("span",{children:[g," (",e.length,v,")"]})]}),jsxRuntime.jsx(react$1.AnimatePresence,{children:n&&jsxRuntime.jsx(react$1.motion.div,{initial:r?false:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:r?.1:.3},className:"overflow-hidden",children:jsxRuntime.jsx("div",{ref:c,className:`bg-background border border-border/50 rounded-md p-2 font-mono text-xs ${o?"max-h-24":"max-h-32"} overflow-y-auto space-y-1 mt-2`,children:e.map(f=>{let u=jsxRuntime.jsx(Nt,{log:f,compact:o,classNames:a},f.id);return i?jsxRuntime.jsx("div",{children:i(f,u)},f.id):u})})})})]})});var Je=react.memo(function({substep:e,delay:n,classNames:s,renderSubstep:o}){let[a,l]=react.useState(false),i=react.useCallback(()=>l(v=>!v),[]),{reducedMotion:c,preset:r}=k(),g=jsxRuntime.jsx(react$1.motion.div,{role:"listitem",initial:c?false:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:n,duration:r.durations.normal},className:"pl-3",children:jsxRuntime.jsxs("div",{className:"flex items-start gap-2.5",children:[jsxRuntime.jsx(react$1.motion.div,{className:`
|
|
3
3
|
w-4 h-4 mt-0.5 rounded border-2 flex items-center justify-center flex-shrink-0 transition-all duration-500
|
|
4
4
|
${e.completed?"bg-emerald-500 border-emerald-500":"border-border bg-background"}
|
|
5
5
|
`,children:e.completed&&jsxRuntime.jsx(lucideReact.Check,{className:"w-3 h-3 text-white"})}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("span",{className:`
|
|
6
6
|
text-sm font-mono transition-colors duration-500
|
|
7
7
|
${e.completed?"text-foreground":"text-muted-foreground"}
|
|
8
|
-
`,children:e.label}),jsxRuntime.jsx(
|
|
8
|
+
`,children:e.label}),jsxRuntime.jsx(Te,{logs:e.logs,expanded:a,onToggle:i,compact:true,classNames:s})]})]})});return o?jsxRuntime.jsx(jsxRuntime.Fragment,{children:o(e,g)}):g});var Ze=[{id:"verify",number:1,title:"Document Verification",status:"pending",icon:lucideReact.FileText,substeps:[{id:"v1",label:"Validate document template",completed:false,logs:[]},{id:"v2",label:"Check legal requirements",completed:false,logs:[]},{id:"v3",label:"Verify jurisdiction compliance",completed:false,logs:[]},{id:"v4",label:"Generate document metadata",completed:false,logs:[]}],documentSection:"header",logs:[]},{id:"identity",number:2,title:"Identity Validation",status:"pending",icon:lucideReact.Shield,substeps:[{id:"i1",label:"Request credential check",completed:false,logs:[]},{id:"i2",label:"Verify biometric data",completed:false,logs:[]},{id:"i3",label:"Cross-reference databases",completed:false,logs:[]},{id:"i4",label:"Confirm identity match",completed:false,logs:[]}],documentSection:"affiant",logs:[]},{id:"statement",number:3,title:"Statement Processing",status:"pending",icon:lucideReact.FileText,substeps:[{id:"s1",label:"Parse statement content",completed:false,logs:[]},{id:"s2",label:"Verify factual accuracy",completed:false,logs:[]},{id:"s3",label:"Format legal language",completed:false,logs:[]},{id:"s4",label:"Generate numbered paragraphs",completed:false,logs:[]}],documentSection:"statement",logs:[]},{id:"witness",number:4,title:"Witness Authorization",status:"pending",icon:lucideReact.Users,substeps:[{id:"w1",label:"Verify witness eligibility",completed:false,logs:[]},{id:"w2",label:"Check credential validity",completed:false,logs:[]},{id:"w3",label:"Generate attestation block",completed:false,logs:[]},{id:"w4",label:"Record witness information",completed:false,logs:[]}],documentSection:"witness",logs:[]},{id:"notary",number:5,title:"Notarization",status:"pending",icon:lucideReact.Stamp,substeps:[{id:"n1",label:"Connect to notary registry",completed:false,logs:[]},{id:"n2",label:"Validate commission status",completed:false,logs:[]},{id:"n3",label:"Generate cryptographic seal",completed:false,logs:[]},{id:"n4",label:"Apply digital signature",completed:false,logs:[]}],documentSection:"notary",logs:[]}],Ie={verify:lucideReact.FileText,identity:lucideReact.Shield,statement:lucideReact.FileText,witness:lucideReact.Users,notary:lucideReact.Stamp};var Pe={primary:"orange",secondary:"cyan",success:"emerald",processing:"purple",warning:"amber"};function Ee(t){return {bg:`bg-${t}-500/5`,border:`border-${t}-500/20`,text:`text-${t}-600 dark:text-${t}-400`,icon:`bg-gradient-to-br from-${t}-500 to-${t}-600`,accent:`text-${t}-500`}}function et(t={}){let e={...Pe,...t},n=Ee(e.primary),s=Ee(e.secondary),o=Ee(e.success),a=Ee(e.processing),l=Ee(e.warning),i={completed:{cardBg:o.bg,border:`border-${e.success}-500/30`,iconBg:`bg-gradient-to-br from-${e.success}-500 to-${e.success}-600`,textColor:o.text},active:{cardBg:n.bg,border:`border-${e.primary}-500/30`,iconBg:`bg-gradient-to-br from-${e.primary}-500 to-red-500`,textColor:n.text},processing:{cardBg:a.bg,border:`border-${e.processing}-500/30`,iconBg:`bg-gradient-to-br from-${e.processing}-500 to-${e.processing}-600`,textColor:a.text},pending:{cardBg:"bg-muted/20",border:"border-border",iconBg:"bg-muted",textColor:"text-muted-foreground"}},c={progress:`bg-gradient-to-r from-${e.primary}-500 to-red-500`,title:`bg-gradient-to-r from-${e.primary}-500 to-red-500`,completion:`bg-gradient-to-r from-${e.primary}-500 via-red-500 to-${e.success}-500`};return {primary:n,secondary:s,success:o,processing:a,warning:l,stepStatus:i,gradients:c}}function At(t={}){let e={...Pe,...t},n=Object.values(e),s=[];for(let o of n)s.push(`bg-${o}-500/5`,`bg-${o}-500/10`,`bg-${o}-500/20`,`border-${o}-500/20`,`border-${o}-500/30`,`text-${o}-500`,`text-${o}-600`,`text-${o}-400`,`text-${o}-700`,`dark:text-${o}-400`,`from-${o}-500`,`to-${o}-500`,`to-${o}-600`,`via-${o}-500`,"bg-gradient-to-br","bg-gradient-to-r");return [...new Set(s)]}var tt=react.createContext(null);function Me({theme:t,children:e}){let n=react.useMemo(()=>et(t),[t]);return jsxRuntime.jsx(tt.Provider,{value:n,children:e})}function Dt(){let t=react.useContext(tt);if(!t)throw new Error("useTheme must be used within a ThemeProvider");return t}function $e(){return react.useContext(tt)}var rt=react.memo(function({step:e,isLast:n,showRipple:s,classNames:o,theme:a,labels:l,renderStep:i}){let[c,r]=react.useState(false),[g,v]=react.useState(false),f=$e(),{preset:u,reducedMotion:O}=k();react.useEffect(()=>{e.status==="processing"&&r(true);},[e.status]),react.useEffect(()=>{if(e.status==="completed"){let b=setTimeout(()=>{r(false);},800);return ()=>clearTimeout(b)}},[e.status]);let I=e.icon||Ie[e.id]||Ie.verify,N=react.useMemo(()=>{if(f)return f.stepStatus[e.status];switch(e.status){case "completed":return {cardBg:"bg-emerald-500/5",border:"border-emerald-500/30",iconBg:"bg-gradient-to-br from-emerald-500 to-emerald-600",textColor:"text-emerald-600 dark:text-emerald-400"};case "active":return {cardBg:"bg-orange-500/5",border:"border-orange-500/30",iconBg:"bg-gradient-to-br from-orange-500 to-red-500",textColor:"text-orange-600 dark:text-orange-400"};case "processing":return {cardBg:"bg-purple-500/5",border:"border-purple-500/30",iconBg:"bg-gradient-to-br from-purple-500 to-purple-600",textColor:"text-purple-600 dark:text-purple-400"};default:return {cardBg:"bg-muted/20",border:"border-border",iconBg:"bg-muted",textColor:"text-muted-foreground"}}},[e.status,f]),P=react.useMemo(()=>e.substeps?.filter(b=>b.completed).length||0,[e.substeps]),U=react.useMemo(()=>e.substeps?.length||0,[e.substeps]),$=l?.stepPrefix??"STEP_",oe=l?.stepDone??"\u2713 DONE",re=l?.substepCount?l.substepCount(P,U):`${P}/${U} substeps`,x=jsxRuntime.jsxs("div",{className:"relative",children:[jsxRuntime.jsx(react$1.AnimatePresence,{children:s&&jsxRuntime.jsx(react$1.motion.div,{className:"absolute inset-0 rounded-lg bg-emerald-500/20",initial:{scale:1,opacity:.4},animate:{scale:1.05,opacity:0},exit:{opacity:0},transition:{duration:.8,ease:"easeOut"}})}),jsxRuntime.jsxs(react$1.motion.div,{initial:O?false:{opacity:0,x:u.entrance.x},animate:{opacity:1,x:0},transition:{delay:e.number*u.stagger.step,duration:u.durations.normal},className:"relative",children:[jsxRuntime.jsx("div",{className:`
|
|
9
9
|
relative p-5 rounded-lg transition-all duration-500 border-2
|
|
10
|
-
${
|
|
10
|
+
${N.cardBg} ${N.border} ${o?.step||""}
|
|
11
11
|
`,children:jsxRuntime.jsxs("div",{className:"flex items-start gap-4",children:[jsxRuntime.jsx(react$1.motion.div,{className:`
|
|
12
12
|
w-11 h-11 rounded-full flex items-center justify-center flex-shrink-0
|
|
13
|
-
border-2 transition-all duration-500 ${
|
|
14
|
-
`,initial:{scale:.8},animate:{scale:1},transition:
|
|
13
|
+
border-2 transition-all duration-500 ${N.iconBg} ${o?.stepIcon||""}
|
|
14
|
+
`,initial:{scale:.8},animate:{scale:1},transition:O?{duration:.1}:{delay:e.number*u.stagger.step+.2,...u.springs.stiff},children:e.status==="completed"?jsxRuntime.jsx(lucideReact.Check,{className:"w-5 h-5 text-white"}):e.status==="processing"?jsxRuntime.jsx(lucideReact.Loader2,{className:"w-5 h-5 text-white animate-spin"}):e.status==="active"?jsxRuntime.jsx(I,{className:"w-5 h-5 text-white"}):jsxRuntime.jsx("span",{className:"text-sm text-muted-foreground font-semibold",children:e.number})}),jsxRuntime.jsxs("div",{className:"flex-1 min-w-0",children:[jsxRuntime.jsx("h3",{className:`text-base font-semibold transition-colors duration-500 ${N.textColor}`,children:e.title}),jsxRuntime.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[jsxRuntime.jsxs("p",{className:"text-xs text-muted-foreground font-mono",children:[$,e.number.toString().padStart(2,"0")]}),e.status==="completed"&&jsxRuntime.jsx("span",{className:"text-[10px] px-2 py-0.5 rounded-full bg-emerald-500/10 text-emerald-600 dark:text-emerald-400 font-mono border border-emerald-500/20",children:oe}),e.status==="completed"&&e.substeps&&jsxRuntime.jsx("span",{className:"text-[10px] px-2 py-0.5 rounded-full bg-emerald-500/10 text-emerald-600 dark:text-emerald-400 font-mono",children:re})]}),jsxRuntime.jsx(react$1.AnimatePresence,{children:c&&e.substeps&&jsxRuntime.jsx(react$1.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.4},className:"overflow-hidden",children:jsxRuntime.jsx("div",{role:"list","aria-label":"Substeps",className:`mt-4 space-y-3 pl-3 border-l-2 border-purple-500/20 ${o?.substep||""}`,children:e.substeps.map((b,G)=>jsxRuntime.jsx(Je,{substep:b,delay:G*.15,classNames:o},b.id))})})})]})]})}),jsxRuntime.jsx(Te,{logs:e.logs,expanded:g,onToggle:()=>v(!g),classNames:o,labels:l}),!n&&jsxRuntime.jsx(react$1.motion.div,{className:"absolute left-[22px] top-full h-6 w-0.5 bg-border",initial:{scaleY:0},animate:{scaleY:1},transition:{delay:e.number*u.stagger.step+.4,duration:u.durations.fast},style:{transformOrigin:"top"}})]})]});return i?jsxRuntime.jsx(jsxRuntime.Fragment,{children:i(e,x)}):x});function te({text:t,delay:e,className:n=""}){let[s,o]=react.useState(""),[a,l]=react.useState(true),i=react.useRef(null),c=react.useRef(null),{reducedMotion:r,preset:g}=k();return react.useEffect(()=>{if(r){o(t),l(false);return}o(""),l(true);let v=g.typewriter.charDelay,f=setTimeout(()=>{let u=0;i.current=setInterval(()=>{u<=t.length?(o(t.slice(0,u)),u++):(i.current&&clearInterval(i.current),i.current=null,c.current=setTimeout(()=>l(false),300));},v);},e*1e3);return ()=>{clearTimeout(f),i.current&&(clearInterval(i.current),i.current=null),c.current&&(clearTimeout(c.current),c.current=null);}},[t,e,r,g.typewriter.charDelay]),react.useEffect(()=>{let v="bda-blink-keyframes";if(!document.getElementById(v)){let f=document.createElement("style");f.id=v,f.textContent="@keyframes bda-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }",document.head.appendChild(f);}},[]),jsxRuntime.jsxs("div",{className:`${n} font-serif`,style:{lineHeight:"1.8"},"aria-busy":s.length<t.length,children:[s,a&&jsxRuntime.jsx("span",{className:"inline-block w-0.5 h-4 bg-cyan-500 ml-1",style:{animation:`bda-blink ${g.typewriter.cursorBlink}ms step-end infinite`}})]})}var Ue=[{id:"header",title:"",borderColor:"cyan",className:"border-b-2 border-cyan-500/20 pb-6",style:{boxShadow:"0 1px 3px rgba(6, 182, 212, 0.1)"},subsections:[{revealOnSubstep:"v1",content:"SWORN AFFIDAVIT",className:"text-3xl font-extrabold tracking-widest text-gray-900 dark:text-gray-100 text-center",animation:"typewriter"},{revealOnSubstep:"v2",content:"STATE OF [JURISDICTION]",className:"text-sm tracking-widest text-gray-700 dark:text-gray-300 text-center",animation:"typewriter"},{revealOnSubstep:"v2",content:"COUNTY OF [COUNTY NAME]",className:"text-sm tracking-widest text-gray-700 dark:text-gray-300 text-center",animation:"typewriter"},{revealOnSubstep:"v4",content:"__CASE_NUMBER__",className:"text-base font-bold text-cyan-600 dark:text-cyan-400 tracking-wider mt-2 text-center",animation:"typewriter"}]},{id:"affiant",title:"AFFIANT INFORMATION:",borderColor:"cyan",className:"border-l-[6px] border-cyan-500/40 pl-6 py-4",style:{boxShadow:"-2px 0 8px rgba(6, 182, 212, 0.1)"},subsections:[{revealOnSubstep:"i1",content:"I, [FULL NAME], being duly sworn, depose and state:",className:"text-base leading-relaxed text-gray-800 dark:text-gray-200 mb-4 italic",animation:"typewriter"},{revealOnSubstep:"i2",content:`Address: [STREET ADDRESS]
|
|
15
15
|
City/State: [CITY, STATE ZIP]`,className:"space-y-2 ml-8 text-sm text-gray-700 dark:text-gray-300",animation:"typewriter"},{revealOnSubstep:"i3",content:"DOB: [DATE OF BIRTH]",className:"space-y-2 ml-8 text-sm text-gray-700 dark:text-gray-300 mt-2",animation:"typewriter"},{revealOnSubstep:"i4",content:"ID Verified: \u2713 CONFIRMED",className:"text-emerald-600 dark:text-emerald-400 font-bold ml-8 text-sm mt-2",animation:"typewriter"}]},{id:"statement",title:"STATEMENT OF FACTS:",borderColor:"orange",className:"border-l-[6px] border-orange-500/40 pl-6 py-4",style:{boxShadow:"-2px 0 8px rgba(249, 115, 22, 0.1)"},subsections:[{revealOnSubstep:"s1",content:"1. That I have personal knowledge of the facts stated herein and am competent to testify to the same.",className:"ml-8 text-base leading-loose text-gray-800 dark:text-gray-200 mb-5",animation:"typewriter"},{revealOnSubstep:"s2",content:"2. That on or about [DATE], the following events occurred: [DETAILED STATEMENT OF MATERIAL FACTS]",className:"ml-8 text-base leading-loose text-gray-800 dark:text-gray-200 mb-5",animation:"typewriter"},{revealOnSubstep:"s3",content:"3. That the information provided herein is true and correct to the best of my knowledge and belief.",className:"ml-8 text-base leading-loose text-gray-800 dark:text-gray-200 mb-5",animation:"typewriter"},{revealOnSubstep:"s4",content:"4. That I understand the penalties for perjury under law.",className:"ml-8 text-base leading-loose text-gray-800 dark:text-gray-200",animation:"typewriter"}]},{id:"witness",title:"WITNESS ATTESTATION:",borderColor:"purple",className:"border-l-[6px] border-purple-500/40 pl-6 py-4",style:{boxShadow:"-2px 0 8px rgba(168, 85, 247, 0.1)"},subsections:[{revealOnSubstep:"w1",content:"",className:"",animation:"fade"},{revealOnSubstep:"w2",content:`Witnessed by: [WITNESS NAME]
|
|
16
16
|
Witness Address: [ADDRESS]`,className:"space-y-2 text-sm text-gray-700 dark:text-gray-300",animation:"typewriter"},{revealOnSubstep:"w4",content:"__WITNESS_SIGNATURE__",className:"mt-8 pt-6 border-t border-gray-300 dark:border-gray-600",animation:"fade"}]},{id:"notary",title:"NOTARY PUBLIC CERTIFICATION:",borderColor:"emerald",className:"border-2 border-emerald-500/40 rounded-lg p-6 bg-emerald-500/5 relative overflow-hidden",style:{boxShadow:"0 4px 12px rgba(16, 185, 129, 0.15)"},subsections:[{revealOnSubstep:"n1",content:"__NOTARY_DATE__",className:"leading-relaxed text-sm text-gray-700 dark:text-gray-300",animation:"typewriter"},{revealOnSubstep:"n2",content:`Notary Public: [NOTARY NAME]
|
|
17
17
|
Commission Number: [NUMBER]
|
|
18
|
-
__COMMISSION_EXPIRES__`,className:"my-4 border-t border-gray-300 dark:border-gray-600 pt-4 text-sm text-gray-700 dark:text-gray-300",animation:"typewriter"},{revealOnSubstep:"n3",content:"__NOTARY_SEAL__",className:"",animation:"fade"},{revealOnSubstep:"n4",content:"__NOTARY_SIGNATURE__",className:"mt-8 pt-4 text-sm text-gray-700 dark:text-gray-300",animation:"fade"}]}];function
|
|
19
|
-
`);return i.animation==="typewriter"||!i.animation?jsxRuntime.jsx(react$1.motion.div,{initial:o?false:{opacity:0},animate:{opacity:1},transition:{duration:o?.1:.6},children:jsxRuntime.jsx("div",{className:i.className||"",children:
|
|
18
|
+
__COMMISSION_EXPIRES__`,className:"my-4 border-t border-gray-300 dark:border-gray-600 pt-4 text-sm text-gray-700 dark:text-gray-300",animation:"typewriter"},{revealOnSubstep:"n3",content:"__NOTARY_SEAL__",className:"",animation:"fade"},{revealOnSubstep:"n4",content:"__NOTARY_SIGNATURE__",className:"mt-8 pt-4 text-sm text-gray-700 dark:text-gray-300",animation:"fade"}]}];function ue(t,e){return t.replace("__CASE_NUMBER__",`CASE NO. ${e.caseNumber}`).replace("__NOTARY_DATE__",`Subscribed and sworn before me this ${new Date().toLocaleDateString()}`).replace("__COMMISSION_EXPIRES__",`My Commission Expires: ${new Date(Date.now()+365*24*60*60*1e3).toLocaleDateString()}`).replace("__WITNESS_DATE__",new Date().toLocaleDateString())}function _o(t,e,n,s,o){return t==="__WITNESS_SIGNATURE__"?jsxRuntime.jsxs("div",{className:e,children:[jsxRuntime.jsx(react$1.motion.div,{className:"border-b-2 border-gray-800 dark:border-gray-400 mb-2 w-4/5",initial:{scaleX:0},animate:{scaleX:1},transition:{delay:o+.3,duration:.7},style:{transformOrigin:"left"}}),jsxRuntime.jsx(te,{text:"Witness Signature",delay:o+.5,className:"text-xs text-gray-500 italic"}),jsxRuntime.jsx(te,{text:`Date: ${new Date().toLocaleDateString()}`,delay:o+.7,className:"mt-4 text-sm"})]}):t==="__NOTARY_SEAL__"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs(react$1.motion.div,{initial:{scale:0,opacity:0},animate:{scale:1,opacity:1},transition:{delay:.5,duration:.8,type:"spring"},className:"absolute right-8 top-1/2 -translate-y-1/2 w-32 h-32 opacity-15",children:[jsxRuntime.jsx("div",{className:"absolute inset-0 rounded-full border-[5px] border-emerald-600",style:{boxShadow:"inset 0 2px 8px rgba(0,0,0,0.3)"}}),jsxRuntime.jsx("div",{className:"absolute inset-2 rounded-full border-2 border-emerald-500"}),jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:jsxRuntime.jsx(lucideReact.Stamp,{className:"w-12 h-12 text-emerald-600"})})]}),jsxRuntime.jsx(react$1.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:1.9},className:"absolute bottom-4 left-6 px-3 py-1.5 border-2 border-emerald-600/50 rounded text-xs font-mono text-emerald-600 dark:text-emerald-400 font-bold bg-emerald-500/10",children:"[OFFICIAL SEAL]"})]}):t==="__NOTARY_SIGNATURE__"?jsxRuntime.jsxs("div",{className:e,children:[jsxRuntime.jsx(react$1.motion.div,{className:"border-b-2 border-gray-800 dark:border-gray-400 mb-2 w-3/4",initial:{scaleX:0},animate:{scaleX:1},transition:{delay:o+.5,duration:.7},style:{transformOrigin:"left"}}),jsxRuntime.jsx(te,{text:"Notary Signature",delay:o+.7,className:"text-xs text-gray-500 italic"})]}):null}function Ao({section:t,completedSubsteps:e,documentIds:n}){let s=t.subsections[0]?.revealOnSubstep;if(!s||!e.has(s))return null;let{reducedMotion:o}=k(),l={cyan:"text-cyan-700 dark:text-cyan-400",orange:"text-orange-700 dark:text-orange-400",purple:"text-purple-700 dark:text-purple-400",emerald:"text-emerald-700 dark:text-emerald-400"}[t.borderColor]||"text-foreground";return jsxRuntime.jsx(react$1.AnimatePresence,{children:jsxRuntime.jsxs(react$1.motion.div,{initial:o?false:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:o?.1:.8},className:t.className||"",style:t.style,children:[t.title&&jsxRuntime.jsx(te,{text:t.title,delay:.2,className:`text-lg font-extrabold tracking-wide ${l} mb-5 uppercase`}),t.subsections.map((i,c)=>{if(!e.has(i.revealOnSubstep))return null;let r=typeof i.content=="string"?i.content:"",g=.3+c*.3;if(r.startsWith("__")&&r.endsWith("__")){let u=_o(r,i.className||"",n,e,g);if(u)return jsxRuntime.jsx("div",{children:u},c)}let f=ue(r,n).split(`
|
|
19
|
+
`);return i.animation==="typewriter"||!i.animation?jsxRuntime.jsx(react$1.motion.div,{initial:o?false:{opacity:0},animate:{opacity:1},transition:{duration:o?.1:.6},children:jsxRuntime.jsx("div",{className:i.className||"",children:f.map((u,O)=>jsxRuntime.jsx(te,{text:u,delay:g+O*.2,className:i.className?.includes("text-center")?"text-center":""},O))})},c):jsxRuntime.jsx(react$1.motion.div,{initial:o?false:{opacity:0,y:5},animate:{opacity:1,y:0},transition:{duration:o?.1:.6,delay:o?0:g},className:i.className||"",children:f.map((u,O)=>jsxRuntime.jsx("div",{children:u},O))},c)})]})})}function nt({completedSubsteps:t,documentIds:e,sections:n,classNames:s,watermarkText:o="OFFICIAL",paperTexture:a=true,fontFamily:l='Georgia, "Times New Roman", Times, serif',renderSection:i}){let c=n??Ue;return jsxRuntime.jsx("div",{className:`relative max-w-4xl mx-auto ${s?.documentPreview||""}`,children:jsxRuntime.jsxs(react$1.motion.div,{className:`relative bg-gradient-to-br from-[#FDFDF8] to-[#F8F8F0] dark:from-gray-900 dark:to-gray-800 rounded-lg ${s?.documentPaper||""}`,style:{boxShadow:"0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 10px 15px -3px rgba(0, 0, 0, 0.1)"},initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.8},children:[a&&jsxRuntime.jsx("div",{className:"absolute inset-0 opacity-20 dark:opacity-10 rounded-lg pointer-events-none",style:{backgroundImage:`url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E")`}}),jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none opacity-[0.02] dark:opacity-[0.04]",children:jsxRuntime.jsx("div",{className:"text-9xl font-bold transform -rotate-45 select-none text-gray-600",children:o})}),jsxRuntime.jsx("div",{className:"relative p-16 space-y-10",style:{fontFamily:l},children:c.map(r=>i?jsxRuntime.jsx("div",{children:i(r,t)},r.id):jsxRuntime.jsx(Ao,{section:r,completedSubsteps:t,documentIds:e},r.id))})]})})}var Fe=[{id:"header",title:"",borderColor:"cyan",className:"border-b-2 border-cyan-500/20 pb-6",subsections:[{revealOnSubstep:"all",content:"SWORN AFFIDAVIT",className:"text-2xl font-extrabold tracking-widest text-gray-900 dark:text-gray-100 text-center"},{revealOnSubstep:"all",content:"STATE OF [JURISDICTION]",className:"text-xs tracking-widest text-gray-700 dark:text-gray-300 text-center"},{revealOnSubstep:"all",content:"COUNTY OF [COUNTY NAME]",className:"text-xs tracking-widest text-gray-700 dark:text-gray-300 text-center"},{revealOnSubstep:"all",content:"__CASE_NUMBER__",className:"text-sm font-bold text-cyan-600 dark:text-cyan-400 tracking-wider mt-2 text-center"}]},{id:"affiant",title:"AFFIANT INFORMATION:",borderColor:"cyan",className:"border-l-[6px] border-cyan-500/40 pl-6 py-4",subsections:[{revealOnSubstep:"all",content:"I, [FULL NAME], being duly sworn, depose and state:",className:"text-sm leading-relaxed text-gray-800 dark:text-gray-200 mb-3 italic"},{revealOnSubstep:"all",content:`Address: [STREET ADDRESS]
|
|
20
20
|
City/State: [CITY, STATE ZIP]
|
|
21
21
|
DOB: [DATE OF BIRTH]
|
|
22
22
|
ID Verified: \u2713 CONFIRMED`,className:"space-y-1 ml-8 text-xs text-gray-700 dark:text-gray-300"}]},{id:"statement",title:"STATEMENT OF FACTS:",borderColor:"orange",className:"border-l-[6px] border-orange-500/40 pl-6 py-4",subsections:[{revealOnSubstep:"all",content:`1. That I have personal knowledge of the facts stated herein and am competent to testify to the same.
|
|
@@ -25,12 +25,12 @@ ID Verified: \u2713 CONFIRMED`,className:"space-y-1 ml-8 text-xs text-gray-700 d
|
|
|
25
25
|
4. That I understand the penalties for perjury under law.`,className:"space-y-3 ml-8 text-sm leading-loose text-gray-800 dark:text-gray-200"}]},{id:"witness",title:"WITNESS ATTESTATION:",borderColor:"purple",className:"border-l-[6px] border-purple-500/40 pl-6 py-4",subsections:[{revealOnSubstep:"all",content:`Witnessed by: [WITNESS NAME]
|
|
26
26
|
Witness Address: [ADDRESS]`,className:"space-y-2 text-xs text-gray-700 dark:text-gray-300"},{revealOnSubstep:"all",content:"__WITNESS_SIGNATURE__",className:"mt-6 pt-4 border-t border-gray-300 dark:border-gray-600"}]},{id:"notary",title:"NOTARY PUBLIC CERTIFICATION:",borderColor:"emerald",className:"border-2 border-emerald-500/40 rounded-lg p-6 bg-emerald-500/5 relative overflow-hidden",subsections:[{revealOnSubstep:"all",content:"__NOTARY_DATE__",className:"leading-relaxed text-xs text-gray-700 dark:text-gray-300"},{revealOnSubstep:"all",content:`Notary Public: [NOTARY NAME]
|
|
27
27
|
Commission Number: [NUMBER]
|
|
28
|
-
__COMMISSION_EXPIRES__`,className:"my-3 border-t border-gray-300 dark:border-gray-600 pt-3 space-y-1 text-xs text-gray-700 dark:text-gray-300"},{revealOnSubstep:"all",content:"__NOTARY_SIGNATURE__",className:"mt-6 pt-3 text-xs text-gray-700 dark:text-gray-300"},{revealOnSubstep:"all",content:"__NOTARY_SEAL__",className:""}]}];function
|
|
29
|
-
`);return jsxRuntime.jsx("div",{className:o.className||"",children:d.map((n,f)=>jsxRuntime.jsx("div",{children:n},f))},s)})]})}function st({documentIds:t,sections:e,classNames:r,renderSection:a}){let o=e??Fe;return jsxRuntime.jsx("div",{className:`p-12 space-y-8 ${r?.wholeDocumentContent||""}`,style:{fontFamily:'Georgia, "Times New Roman", Times, serif'},children:o.map(s=>a?jsxRuntime.jsx("div",{children:a(s)},s.id):jsxRuntime.jsx(Io,{section:s,documentIds:t},s.id))})}function at({show:t,onClose:e,documentIds:r,metrics:a,classNames:o,labels:s,celebrationTitle:l,sparkleCount:i=12,celebrationEnabled:d=true}){let{reducedMotion:n}=L(),f=l??s?.completionTitle??"Document Assembly Complete",C=s?.documentPrefix??"LEGAL-",y=s?.documentSuffix??".pdf";return jsxRuntime.jsx(react$1.AnimatePresence,{children:t&&jsxRuntime.jsxs(react$1.motion.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.5},className:`absolute inset-0 z-50 bg-background/98 backdrop-blur-sm ${o?.wholeDocumentView||""}`,children:[jsxRuntime.jsx(react$1.motion.button,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{delay:1.5,duration:.4},onClick:e,className:"absolute top-6 right-6 z-60 p-3 rounded-full bg-background border-2 border-border hover:border-orange-500/50 transition-all shadow-lg group",children:jsxRuntime.jsx(lucideReact.X,{className:"w-5 h-5 text-muted-foreground group-hover:text-orange-500 transition-colors"})}),d&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(react$1.motion.div,{initial:{opacity:0,scale:0},animate:{opacity:[0,1,1,0],scale:[.5,1.5,1.5,2]},transition:{duration:2,times:[0,.2,.8,1]},className:"absolute inset-0 pointer-events-none",children:jsxRuntime.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-orange-500/5 via-transparent to-emerald-500/5"})}),!n&&[...Array(i)].map((b,w)=>jsxRuntime.jsx(react$1.motion.div,{initial:{opacity:0,scale:0,x:"50%",y:"50%"},animate:{opacity:[0,1,0],scale:[0,1,0],x:`${50+Math.cos(w/i*Math.PI*2)*40}%`,y:`${50+Math.sin(w/i*Math.PI*2)*40}%`},transition:{duration:1.5,delay:w*.1,ease:"easeOut"},className:"absolute top-1/2 left-1/2 pointer-events-none",children:jsxRuntime.jsx(lucideReact.Sparkles,{className:"w-6 h-6 text-orange-500"})},w))]}),jsxRuntime.jsxs(react$1.motion.div,{initial:n?false:{opacity:0,y:-30},animate:{opacity:1,y:0},transition:{delay:n?0:.8,duration:n?.1:.6},className:"absolute top-8 left-1/2 -translate-x-1/2 z-50 text-center",children:[jsxRuntime.jsx("h2",{className:"text-3xl font-bold bg-gradient-to-r from-orange-500 via-red-500 to-emerald-500 bg-clip-text text-transparent mb-2",children:f}),jsxRuntime.jsxs("p",{className:"text-sm text-muted-foreground font-mono",children:[C,r.fileNumber,y," ",a.tokens.toLocaleString()," tokens $",a.cost.toFixed(4)," ",a.elapsed.toFixed(1),"s"]})]}),jsxRuntime.jsx(react$1.motion.div,{initial:n?{opacity:0}:{scale:1.5,opacity:0,y:100},animate:n?{opacity:1}:{scale:1,opacity:1,y:0},transition:n?{duration:.2}:{delay:1.2,duration:1.2,type:"spring",stiffness:80,damping:20},className:"h-full w-full flex items-center justify-center pt-28 pb-12 px-12 overflow-hidden",children:jsxRuntime.jsxs("div",{className:"relative w-full max-w-3xl h-full",children:[jsxRuntime.jsx(react$1.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:2,duration:.5},className:"absolute -bottom-6 left-1/2 -translate-x-1/2 w-3/4 h-8 bg-gradient-to-b from-black/20 to-transparent blur-2xl rounded-full"}),jsxRuntime.jsxs("div",{className:"relative bg-gradient-to-br from-[#FDFDF8] to-[#F8F8F0] dark:from-gray-900 dark:to-gray-800 rounded-lg overflow-hidden h-full border-2 border-border/50",style:{boxShadow:"0 30px 60px -12px rgba(0, 0, 0, 0.35), 0 20px 25px -5px rgba(0, 0, 0, 0.15)"},children:[jsxRuntime.jsx(react$1.motion.div,{className:"absolute inset-0 rounded-lg pointer-events-none z-10",style:{boxShadow:"0 0 60px rgba(249, 115, 22, 0.3)"},initial:{opacity:0},animate:{opacity:[0,1,.7]},transition:{duration:2,times:[0,.5,1],delay:2}}),jsxRuntime.jsx("div",{className:"h-full overflow-y-auto",children:jsxRuntime.jsx(st,{documentIds:r,classNames:o})})]})]})})]})})}var it={verify:[["info","Initializing document verification system..."],["processing","Loading verification protocols v3.2.1"],["success","Protocols loaded successfully"]],identity:[["info","Starting identity validation sequence"],["processing","Establishing secure connection"],["success","Connection established"]],statement:[["info","Initializing statement processing pipeline"],["processing","Loading NLP models for legal analysis"],["success","Models loaded successfully"]],witness:[["info","Starting witness authorization protocol"],["processing","Initializing verification systems"],["success","Systems initialized"]],notary:[["info","Initiating notarization sequence"],["processing","Preparing secure connection"],["success","Ready for notarization"]]},lt={v1:[["info","Loading document template..."],["processing","Validating template structure"],["info","Checking template version"],["success","Template validated: SWORN_AFFIDAVIT_STD v2.1"]],v2:[["info","Scanning legal requirements database..."],["processing","Cross-referencing state regulations"],["info","Validating federal compliance"],["success","Legal requirements verified"]],v3:[["info","Determining jurisdiction..."],["processing","Checking state-specific requirements"],["info","Validating county regulations"],["success","Jurisdiction compliance: CONFIRMED"]],v4:[["info","Generating document metadata..."],["processing","Creating unique document ID"],["info","Assigning case number"],["success","Metadata generated successfully"]],i1:[["info","Requesting credential verification..."],["processing","Connecting to identity API"],["info","Sending authentication request"],["success","Credentials authenticated"]],i2:[["info","Initiating biometric verification..."],["processing","Running facial recognition scan"],["info","Analyzing biometric markers"],["success","Biometric data verified: 99.2% match"]],i3:[["info","Accessing identity databases..."],["processing","Cross-referencing government records"],["info","Validating social security records"],["success","Database cross-reference complete"]],i4:[["info","Confirming identity match..."],["processing","Aggregating verification results"],["info","Performing final validation"],["success","Identity confirmed: VERIFIED"]],s1:[["info","Parsing statement content..."],["processing","Tokenizing input text"],["info","Extracting semantic structure"],["success","Content parsed: 847 tokens"]],s2:[["info","Verifying factual accuracy..."],["processing","Running fact-checking algorithms"],["info","Cross-referencing with knowledge base"],["success","Accuracy verified: 98.7% confidence"]],s3:[["info","Formatting legal language..."],["processing","Applying legal terminology standards"],["info","Restructuring paragraphs per jurisdiction"],["success","Legal format applied successfully"]],s4:[["info","Generating numbered paragraphs..."],["processing","Creating hierarchical structure"],["info","Applying citation formatting"],["success","Paragraphs generated: 4 sections"]],w1:[["info","Checking witness eligibility..."],["processing","Verifying age requirements"],["info","Validating witness capacity"],["success","Witness eligibility: CONFIRMED"]],w2:[["info","Validating witness credentials..."],["processing","Checking identification documents"],["info","Verifying witness signature authority"],["success","Credentials validated successfully"]],w3:[["info","Generating attestation block..."],["processing","Creating witness declaration"],["info","Formatting attestation language"],["success","Attestation block generated"]],w4:[["info","Recording witness information..."],["processing","Storing witness metadata"],["info","Generating witness certificate"],["success","Witness information recorded"]],n1:[["info","Connecting to notary public registry..."],["processing","Establishing secure connection"],["info","Authenticating registry access"],["success","Registry connection established"]],n2:[["info","Validating notary commission..."],["processing","Checking commission status"],["info","Verifying commission expiration date"],["success","Commission status: ACTIVE"]],n3:[["info","Generating cryptographic seal..."],["processing","Creating digital signature"],["info","Applying encryption protocols"],["success","Cryptographic seal generated"]],n4:[["info","Applying digital signature..."],["processing","Embedding signature metadata"],["info","Finalizing document certification"],["success","Notarization complete - Document sealed"]]};function Ge(t={}){let{steps:e,stepLogs:r,substepLogs:a,autoStart:o=true,autoScroll:s=true,showWholeDocumentView:l=true,documentIds:i,animationSpeed:d=1,animationTimings:n,onStepStart:f,onStepComplete:C,onSubstepComplete:y,onSectionReveal:b,onLogEntry:w,onComplete:Z,onPause:P,onResume:V,onReset:Y}=t,F=react.useCallback(()=>e??Ke.map(c=>({...c,logs:[],substeps:c.substeps?.map(N=>({...N,logs:[],completed:false}))})),[e]),oe=r??it,re=a??lt,x={stepActivation:n?.stepActivation??800,substepDelay:n?.substepDelay??500,logStreamBase:n?.logStreamBase??250,logStreamVariance:n?.logStreamVariance??300,typewriterSpeed:n?.typewriterSpeed??25,sectionRevealDuration:n?.sectionRevealDuration??500,completionDelay:n?.completionDelay??400},[u,M]=react.useState(F),[be,ne]=react.useState(new Set),[ye,_e]=react.useState(new Set),[We,A]=react.useState({tokens:0,cost:0,elapsed:0}),[Ve,z]=react.useState(null),[Ye,xe]=react.useState(0),[se,Se]=react.useState(false),[H,ve]=react.useState(false),[G,q]=react.useState(false),ae=react.useRef(null),T=react.useRef(true),Q=react.useRef(false),E=react.useRef(0),Ce=react.useRef(i??{caseNumber:Date.now().toString().slice(-8),fileNumber:Date.now().toString().slice(-6)}).current,O=react.useCallback(c=>new Promise((N,p)=>{let B=()=>{if(!T.current){p(new Error("unmounted"));return}if(Q.current){setTimeout(B,100);return}N();};setTimeout(B,c/d);}),[d]),Ae=react.useCallback((c,N,p,B)=>{let v=new Date().toLocaleTimeString("en-US",{hour12:false,hour:"2-digit",minute:"2-digit",second:"2-digit"}),S={id:`${Date.now()}-${Math.random()}`,timestamp:v,level:p,message:B};w&&w(S),M($=>$.map((I,ce)=>ce===c?N&&I.substeps?{...I,substeps:I.substeps.map(me=>me.id===N?{...me,logs:[...me.logs,S]}:me)}:{...I,logs:[...I.logs,S]}:I));},[w]),ie=react.useCallback(async(c,N,p)=>{for(let[B,v]of p){if(await O(x.logStreamBase+Math.random()*x.logStreamVariance),!T.current)return;Ae(c,N,B,v);}},[O,Ae,x.logStreamBase,x.logStreamVariance]),le=u.length,K=u.filter(c=>c.status==="completed").length,ze=le>0?K/le*100:0,He=K===le&&le>0;react.useEffect(()=>{if(s&&ae.current&&ye.size>0){let c=setTimeout(()=>{ae.current?.scrollTo({top:ae.current.scrollHeight,behavior:"smooth"});},400/d);return ()=>clearTimeout(c)}},[ye,s,d]),react.useEffect(()=>()=>{T.current=false;},[]);let qe=react.useCallback(async c=>{let N=F();for(let p=0;p<N.length;p++){if(!T.current||E.current!==c)return;f&&f(N[p],p);try{await O(x.stepActivation);}catch{return}if(!T.current||E.current!==c)return;M(v=>v.map((S,$)=>$===p?{...S,status:"active"}:S)),xe(p);let B=oe[N[p].id];if(B&&await ie(p,null,B),!T.current||E.current!==c)return;if(N[p].substeps){try{await O(x.substepDelay+100);}catch{return}if(!T.current||E.current!==c)return;M(v=>v.map((S,$)=>$===p?{...S,status:"processing"}:S));for(let v=0;v<N[p].substeps.length;v++){if(!T.current||E.current!==c)return;let S=N[p].substeps[v].id;try{await O(x.substepDelay);}catch{return}if(!T.current||E.current!==c)return;let $=re[S];if($&&await ie(p,S,$),!T.current||E.current!==c)return;try{await O(x.completionDelay);}catch{return}if(!T.current||E.current!==c)return;M(I=>I.map((ce,me)=>{if(me===p&&ce.substeps){let je=[...ce.substeps];return je[v]={...je[v],completed:true},{...ce,substeps:je}}return ce})),A(I=>({tokens:I.tokens+Math.floor(Math.random()*150+50),cost:I.cost+Math.random()*.002,elapsed:I.elapsed+Math.random()*.8})),_e(I=>new Set([...I,S])),y&&y(S,p);try{await O(x.completionDelay-100);}catch{return}}}else try{await O(x.substepDelay+100);}catch{return}if(!T.current||E.current!==c)return;z(N[p].id);try{await O(x.completionDelay/2);}catch{return}if(!T.current||E.current!==c)return;if(M(v=>v.map((S,$)=>$===p?{...S,status:"completed"}:S)),N[p].documentSection){try{await O(x.sectionRevealDuration);}catch{return}if(!T.current||E.current!==c)return;ne(v=>{let S=new Set([...v,N[p].documentSection]);return b&&b(N[p].documentSection),S});}try{await O(x.completionDelay);}catch{return}if(!T.current||E.current!==c)return;z(null),A(v=>{let S={tokens:v.tokens+Math.floor(Math.random()*200+100),cost:v.cost+Math.random()*.005,elapsed:v.elapsed+Math.random()*1.2};return C&&C(N[p],S),S});}!T.current||E.current!==c||(l&&Se(true),ve(false),Z&&A(p=>(Z(p),p)));},[F,oe,re,O,ie,l,n,f,C,y,b,Z,x.stepActivation,x.substepDelay,x.completionDelay,x.sectionRevealDuration]),j=react.useCallback(()=>{if(H)return;let c=++E.current;ve(true),q(false),Q.current=false,qe(c);},[H,qe]),Ne=react.useCallback(()=>{!H||G||(Q.current=true,q(true),P&&P());},[H,G,P]),Qe=react.useCallback(()=>{G&&(Q.current=false,q(false),V&&V());},[G,V]),zt=react.useCallback(()=>{E.current++,Q.current=false,M(F()),ne(new Set),_e(new Set),A({tokens:0,cost:0,elapsed:0}),z(null),xe(0),Se(false),ve(false),q(false),Y&&Y();},[F,Y]),Ht=react.useCallback(c=>{c<0||c>=u.length||xe(c);},[u.length]);return react.useEffect(()=>{o&&j();},[]),{steps:u,completedSections:be,completedSubsteps:ye,metrics:We,showRipple:Ve,currentStep:Ye,showWholeDocument:se,isRunning:H,isPaused:G,isComplete:He,progress:ze,documentScrollRef:ae,documentIds:Ce,start:j,pause:Ne,resume:Qe,reset:zt,goToStep:Ht,setShowWholeDocument:Se}}var mt={title:"Sworn Affidavit Assembly",statusProcessing:"PROCESSING",statusComplete:"COMPLETE",documentTitle:"Assembled Document",documentPrefix:"LEGAL-",documentSuffix:".pdf",completionTitle:"Document Assembly Complete",completionBadge:"100% Complete",metricsTokens:"Tokens",metricsCost:"Cost",metricsElapsed:"Elapsed",stepPrefix:"STEP_",stepDone:"\u2713 DONE",substepCount:(t,e)=>`${t}/${e} substeps`,logLabel:"SYSTEM LOG",logLabelCompact:"LOG",logEntriesSuffix:" entries",watermarkText:"OFFICIAL"};var dt=768,Rt=1024;function kt(){if(typeof window>"u")return {isMobile:false,isTablet:false,direction:"horizontal"};let t=window.innerWidth,e=t<dt,r=t>=dt&&t<Rt;return {isMobile:e,isTablet:r,direction:e?"vertical":"horizontal"}}function Be(){let[t,e]=react.useState(kt);return react.useEffect(()=>{let r=()=>e(kt()),a=window.matchMedia(`(max-width: ${dt-1}px)`),o=window.matchMedia(`(max-width: ${Rt-1}px)`),s=()=>r();return a.addEventListener("change",s),o.addEventListener("change",s),()=>{a.removeEventListener("change",s),o.removeEventListener("change",s);}},[]),t}var Ho=react.forwardRef(function(e,r){let{steps:a,stepLogs:o,substepLogs:s,autoScroll:l=true,showWholeDocumentView:i=true,documentIds:d,animationSpeed:n=1,autoStart:f=true,animationPreset:C,animationTimings:y,onComplete:b,onStepComplete:w,onStepStart:Z,onSubstepComplete:P,onSectionReveal:V,onLogEntry:Y,onPause:F,onResume:oe,onReset:re,className:x,classNames:u,theme:M,labels:be,layout:ne,documentSections:ye,renderStep:_e,renderDocumentSection:We}=e,A={...mt,...be},Ve=Ge({steps:a,stepLogs:o,substepLogs:s,autoStart:f,autoScroll:l,showWholeDocumentView:i,documentIds:d,animationSpeed:n,animationTimings:y,onStepStart:Z,onStepComplete:w,onSubstepComplete:P,onSectionReveal:V,onLogEntry:Y,onComplete:b,onPause:F,onResume:oe,onReset:re}),{steps:z,completedSections:Ye,completedSubsteps:xe,metrics:se,showRipple:Se,currentStep:H,showWholeDocument:ve,progress:G,documentIds:q,documentScrollRef:ae,start:T,pause:Q,resume:E,reset:Ce,goToStep:O,setShowWholeDocument:Ae}=Ve,{isMobile:ie,direction:le}=Be(),K=ne?.direction??le;react.useImperativeHandle(r,()=>({start:T,pause:Q,resume:E,reset:Ce,goToStep:O}),[T,Q,E,Ce,O]);let ze=ne?.leftWidth??"33.333%",He=ne?.rightWidth??"66.667%",j=jsxRuntime.jsxs("div",{"aria-label":"Document assembly",className:`relative w-full ${ie?"min-h-screen":"h-screen"} overflow-hidden bg-background flex flex-col ${x??""} ${u?.root||""}`,children:[jsxRuntime.jsx("div",{className:"absolute inset-0 opacity-[0.03] dark:opacity-[0.08]",children:jsxRuntime.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("pattern",{id:"grid",width:"40",height:"40",patternUnits:"userSpaceOnUse",children:jsxRuntime.jsx("path",{d:"M 40 0 L 0 0 0 40",fill:"none",stroke:"currentColor",strokeWidth:"0.5",className:"text-orange-500"})})}),jsxRuntime.jsx("rect",{width:"100%",height:"100%",fill:"url(#grid)"})]})}),jsxRuntime.jsx("div",{className:"absolute top-0 left-0 right-0 z-50",role:"progressbar","aria-valuenow":Math.round(G),"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Document assembly progress",children:jsxRuntime.jsx(react$1.motion.div,{className:`h-0.5 bg-gradient-to-r from-orange-500 to-red-500 ${u?.progressBar||""}`,initial:{width:"0%"},animate:{width:`${G}%`},transition:{duration:.8,ease:"easeOut"}})}),jsxRuntime.jsxs("div",{className:`relative z-10 flex ${K==="vertical"?"flex-col":""} flex-1 overflow-hidden`,children:[jsxRuntime.jsx("div",{className:`${K==="vertical"?"border-b":"border-r"} border-border/50 ${ie?"p-4":"p-8"} overflow-y-auto ${u?.leftPanel||""}`,style:K==="vertical"?{height:"50%"}:{width:ze},children:jsxRuntime.jsxs("div",{className:"max-w-xl mx-auto",children:[jsxRuntime.jsxs(react$1.motion.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.6},className:"mb-12",children:[jsxRuntime.jsx("h1",{className:`text-3xl font-bold mb-2 bg-gradient-to-r from-orange-500 to-red-500 bg-clip-text text-transparent ${u?.header||""}`,children:A.title}),jsxRuntime.jsxs("p",{className:"text-muted-foreground font-mono text-xs tracking-wider",children:["System Status: ",jsxRuntime.jsx("span",{className:`font-semibold ${H===z.length?"text-emerald-500":"text-orange-500"}`,children:H===z.length?A.statusComplete:A.statusProcessing})]})]}),jsxRuntime.jsx("div",{className:"space-y-6 relative",children:z.map((Ne,Qe)=>jsxRuntime.jsx(rt,{step:Ne,isLast:Qe===z.length-1,showRipple:Se===Ne.id,classNames:u,theme:M,labels:be,renderStep:_e},Ne.id))})]})}),jsxRuntime.jsx("div",{className:`bg-gradient-to-br from-muted/20 to-muted/5 overflow-hidden relative ${u?.rightPanel||""}`,style:K==="vertical"?{height:"50%"}:{width:He},children:jsxRuntime.jsxs("div",{className:"h-full flex flex-col relative z-10",children:[jsxRuntime.jsx("div",{className:"p-6 border-b border-border/50 bg-background/50 backdrop-blur-sm",children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntime.jsx("div",{className:"p-2 rounded-lg bg-cyan-500/10 border border-cyan-500/20",children:jsxRuntime.jsx(lucideReact.FileText,{className:"w-5 h-5 text-cyan-600 dark:text-cyan-400"})}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("h2",{className:"text-foreground font-semibold",children:A.documentTitle}),jsxRuntime.jsxs("p",{className:"text-muted-foreground text-xs mt-0.5 font-mono",children:[A.documentPrefix,q.fileNumber,A.documentSuffix]})]})]}),G===100&&jsxRuntime.jsx(react$1.motion.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},className:"px-4 py-2 rounded-full bg-gradient-to-r from-orange-500/20 to-red-500/20 border border-orange-500/30",children:jsxRuntime.jsx("span",{className:"text-sm font-semibold bg-gradient-to-r from-orange-600 to-red-600 bg-clip-text text-transparent",children:A.completionBadge})})]})}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto p-12",ref:ae,children:jsxRuntime.jsx(nt,{completedSections:Ye,completedSubsteps:xe,documentIds:q,sections:ye,classNames:u,watermarkText:A.watermarkText,renderSection:We})})]})})]}),jsxRuntime.jsx("div",{className:`relative z-20 border-t border-border/50 p-4 bg-background/95 backdrop-blur-sm ${u?.footer||""}`,children:jsxRuntime.jsxs("div",{className:`flex justify-center items-center gap-6 max-w-5xl mx-auto ${u?.metricsBar||""}`,children:[jsxRuntime.jsxs("div",{className:`flex items-center gap-2.5 px-5 py-2.5 rounded-lg bg-orange-500/5 border border-orange-500/20 ${u?.metricsItem||""}`,children:[jsxRuntime.jsx(lucideReact.Zap,{className:"w-4 h-4 text-orange-500"}),jsxRuntime.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsx("span",{className:"text-[10px] text-muted-foreground font-mono uppercase tracking-wider",children:A.metricsTokens}),jsxRuntime.jsx("span",{className:"text-base font-bold text-orange-600 dark:text-orange-400 tabular-nums",children:se.tokens.toLocaleString()})]})]}),jsxRuntime.jsxs("div",{className:`flex items-center gap-2.5 px-5 py-2.5 rounded-lg bg-emerald-500/5 border border-emerald-500/20 ${u?.metricsItem||""}`,children:[jsxRuntime.jsx(lucideReact.DollarSign,{className:"w-4 h-4 text-emerald-500"}),jsxRuntime.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsx("span",{className:"text-[10px] text-muted-foreground font-mono uppercase tracking-wider",children:A.metricsCost}),jsxRuntime.jsxs("span",{className:"text-base font-bold text-emerald-600 dark:text-emerald-400 tabular-nums",children:["$",se.cost.toFixed(4)]})]})]}),jsxRuntime.jsxs("div",{className:`flex items-center gap-2.5 px-5 py-2.5 rounded-lg bg-purple-500/5 border border-purple-500/20 ${u?.metricsItem||""}`,children:[jsxRuntime.jsx(lucideReact.Clock,{className:"w-4 h-4 text-purple-500"}),jsxRuntime.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsx("span",{className:"text-[10px] text-muted-foreground font-mono uppercase tracking-wider",children:A.metricsElapsed}),jsxRuntime.jsxs("span",{className:"text-base font-bold text-purple-600 dark:text-purple-400 tabular-nums",children:[se.elapsed.toFixed(1),"s"]})]})]})]})}),jsxRuntime.jsx(at,{show:ve,onClose:()=>Ae(false),documentIds:q,metrics:se,classNames:u,labels:be})]});return C&&(j=jsxRuntime.jsx(Le,{preset:C,children:j})),e.theme&&(j=jsxRuntime.jsx(Me,{theme:e.theme,children:j})),j});var Pt=[{id:"header",title:"",borderColor:"cyan",className:"border-b-2 border-cyan-500/20 pb-6",style:{boxShadow:"0 1px 3px rgba(6, 182, 212, 0.1)"},subsections:[{revealOnSubstep:"v1",content:"~~~~~~~ ~~~~~~~~",className:"text-3xl font-extrabold tracking-widest text-gray-900 dark:text-gray-100 text-center",animation:"typewriter"},{revealOnSubstep:"v2",content:"~~~~~ ~~ ~~~~~~~~~~~~",className:"text-sm tracking-widest text-gray-700 dark:text-gray-300 text-center",animation:"typewriter"},{revealOnSubstep:"v2",content:"~~~~~~ ~~ ~~~~~~ ~~~~",className:"text-sm tracking-widest text-gray-700 dark:text-gray-300 text-center",animation:"typewriter"},{revealOnSubstep:"v4",content:"#### ~~. ~~~~~~~~",className:"text-base font-bold text-cyan-600 dark:text-cyan-400 tracking-wider mt-2 text-center",animation:"typewriter"}]},{id:"affiant",title:"~~~~~~~~ ~~~~~~~~~~~:",borderColor:"cyan",className:"border-l-[6px] border-cyan-500/40 pl-6 py-4",style:{boxShadow:"-2px 0 8px rgba(6, 182, 212, 0.1)"},subsections:[{revealOnSubstep:"i1",content:"~, [~~~~ ~~~~], ~~~~~ ~~~~ ~~~~~, ~~~~~~ ~~~ ~~~~~:",className:"text-base leading-relaxed text-gray-800 dark:text-gray-200 mb-4 italic",animation:"typewriter"},{revealOnSubstep:"i2",content:`~~~~~~~: [~~~~~~ ~~~~~~~]
|
|
28
|
+
__COMMISSION_EXPIRES__`,className:"my-3 border-t border-gray-300 dark:border-gray-600 pt-3 space-y-1 text-xs text-gray-700 dark:text-gray-300"},{revealOnSubstep:"all",content:"__NOTARY_SIGNATURE__",className:"mt-6 pt-3 text-xs text-gray-700 dark:text-gray-300"},{revealOnSubstep:"all",content:"__NOTARY_SEAL__",className:""}]}];function Lo(t,e){return t==="__WITNESS_SIGNATURE__"?jsxRuntime.jsxs("div",{className:e,children:[jsxRuntime.jsx("div",{className:"border-b-2 border-gray-800 dark:border-gray-400 mb-2 w-3/4"}),jsxRuntime.jsx("div",{className:"text-xs text-gray-500 italic",children:"Witness Signature"}),jsxRuntime.jsxs("div",{className:"mt-3 text-xs",children:["Date: ",new Date().toLocaleDateString()]})]}):t==="__NOTARY_SEAL__"?jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsxs("div",{className:"absolute right-8 top-1/2 -translate-y-1/2 w-24 h-24 opacity-15",children:[jsxRuntime.jsx("div",{className:"absolute inset-0 rounded-full border-[4px] border-emerald-600"}),jsxRuntime.jsx("div",{className:"absolute inset-2 rounded-full border-2 border-emerald-500"}),jsxRuntime.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:jsxRuntime.jsx(lucideReact.Stamp,{className:"w-10 h-10 text-emerald-600"})})]}),jsxRuntime.jsx("div",{className:"absolute bottom-4 left-6 px-3 py-1.5 border-2 border-emerald-600/50 rounded text-xs font-mono text-emerald-600 dark:text-emerald-400 font-bold bg-emerald-500/10",children:"[OFFICIAL SEAL]"})]}):t==="__NOTARY_SIGNATURE__"?jsxRuntime.jsxs("div",{className:e,children:[jsxRuntime.jsx("div",{className:"border-b-2 border-gray-800 dark:border-gray-400 mb-2 w-2/3"}),jsxRuntime.jsx("div",{className:"text-xs text-gray-500 italic",children:"Notary Signature"})]}):null}function ko({section:t,documentIds:e}){let s={cyan:"text-cyan-700 dark:text-cyan-400",orange:"text-orange-700 dark:text-orange-400",purple:"text-purple-700 dark:text-purple-400",emerald:"text-emerald-700 dark:text-emerald-400"}[t.borderColor]||"text-foreground";return jsxRuntime.jsxs("div",{className:t.className||"",style:t.style,children:[t.title&&jsxRuntime.jsx("div",{className:`text-base font-extrabold tracking-wide ${s} mb-4 uppercase`,children:t.title}),t.subsections.map((o,a)=>{let l=typeof o.content=="string"?o.content:"";if(l.startsWith("__")&&l.endsWith("__")){let r=Lo(l,o.className||"");if(r)return jsxRuntime.jsx("div",{children:r},a)}let c=ue(l,e).split(`
|
|
29
|
+
`);return jsxRuntime.jsx("div",{className:o.className||"",children:c.map((r,g)=>jsxRuntime.jsx("div",{children:r},g))},a)})]})}function st({documentIds:t,sections:e,classNames:n,renderSection:s}){let o=e??Fe;return jsxRuntime.jsx("div",{className:`p-12 space-y-8 ${n?.wholeDocumentContent||""}`,style:{fontFamily:'Georgia, "Times New Roman", Times, serif'},children:o.map(a=>s?jsxRuntime.jsx("div",{children:s(a)},a.id):jsxRuntime.jsx(ko,{section:a,documentIds:t},a.id))})}function at({show:t,onClose:e,documentIds:n,metrics:s,classNames:o,labels:a,celebrationTitle:l,sparkleCount:i=12,celebrationEnabled:c=true}){let{reducedMotion:r}=k(),g=react.useRef(null),v=react.useRef(null);react.useEffect(()=>{if(!t)return;let I=setTimeout(()=>{g.current?.focus();},100);return ()=>clearTimeout(I)},[t]),react.useEffect(()=>{if(!t)return;let I=N=>{if(N.key==="Escape"){e();return}if(N.key==="Tab"){let P=[g.current,v.current].filter(Boolean);if(P.length===0)return;let U=P[0],$=P[P.length-1];N.shiftKey?document.activeElement===U&&(N.preventDefault(),$.focus()):document.activeElement===$&&(N.preventDefault(),U.focus());}};return document.addEventListener("keydown",I),()=>document.removeEventListener("keydown",I)},[t,e]);let f=l??a?.completionTitle??"Document Assembly Complete",u=a?.documentPrefix??"LEGAL-",O=a?.documentSuffix??".pdf";return jsxRuntime.jsx(react$1.AnimatePresence,{children:t&&jsxRuntime.jsxs(react$1.motion.div,{role:"dialog","aria-modal":"true","aria-label":f,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.5},className:`absolute inset-0 z-50 bg-background/98 backdrop-blur-sm ${o?.wholeDocumentView||""}`,children:[jsxRuntime.jsx(react$1.motion.button,{ref:g,initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{delay:1.5,duration:.4},onClick:e,"aria-label":"Close document view",className:"absolute top-6 right-6 z-60 p-3 rounded-full bg-background border-2 border-border hover:border-orange-500/50 transition-all shadow-lg group focus-visible:ring-2 focus-visible:ring-orange-500 focus-visible:ring-offset-2 focus-visible:outline-none",children:jsxRuntime.jsx(lucideReact.X,{className:"w-5 h-5 text-muted-foreground group-hover:text-orange-500 transition-colors"})}),c&&jsxRuntime.jsxs(jsxRuntime.Fragment,{children:[jsxRuntime.jsx(react$1.motion.div,{initial:{opacity:0,scale:0},animate:{opacity:[0,1,1,0],scale:[.5,1.5,1.5,2]},transition:{duration:2,times:[0,.2,.8,1]},className:"absolute inset-0 pointer-events-none",children:jsxRuntime.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-orange-500/5 via-transparent to-emerald-500/5"})}),!r&&[...Array(i)].map((I,N)=>jsxRuntime.jsx(react$1.motion.div,{initial:{opacity:0,scale:0,x:"50%",y:"50%"},animate:{opacity:[0,1,0],scale:[0,1,0],x:`${50+Math.cos(N/i*Math.PI*2)*40}%`,y:`${50+Math.sin(N/i*Math.PI*2)*40}%`},transition:{duration:1.5,delay:N*.1,ease:"easeOut"},className:"absolute top-1/2 left-1/2 pointer-events-none",children:jsxRuntime.jsx(lucideReact.Sparkles,{className:"w-6 h-6 text-orange-500"})},N))]}),jsxRuntime.jsxs(react$1.motion.div,{initial:r?false:{opacity:0,y:-30},animate:{opacity:1,y:0},transition:{delay:r?0:.8,duration:r?.1:.6},className:"absolute top-8 left-1/2 -translate-x-1/2 z-50 text-center",children:[jsxRuntime.jsx("h2",{className:"text-3xl font-bold bg-gradient-to-r from-orange-500 via-red-500 to-emerald-500 bg-clip-text text-transparent mb-2",children:f}),jsxRuntime.jsxs("p",{className:"text-sm text-muted-foreground font-mono",children:[u,n.fileNumber,O," ",s.tokens.toLocaleString()," tokens $",s.cost.toFixed(4)," ",s.elapsed.toFixed(1),"s"]})]}),jsxRuntime.jsx(react$1.motion.div,{initial:r?{opacity:0}:{scale:1.5,opacity:0,y:100},animate:r?{opacity:1}:{scale:1,opacity:1,y:0},transition:r?{duration:.2}:{delay:1.2,duration:1.2,type:"spring",stiffness:80,damping:20},className:"h-full w-full flex items-center justify-center pt-28 pb-12 px-12 overflow-hidden",children:jsxRuntime.jsxs("div",{className:"relative w-full max-w-3xl h-full",children:[jsxRuntime.jsx(react$1.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:2,duration:.5},className:"absolute -bottom-6 left-1/2 -translate-x-1/2 w-3/4 h-8 bg-gradient-to-b from-black/20 to-transparent blur-2xl rounded-full"}),jsxRuntime.jsxs("div",{className:"relative bg-gradient-to-br from-[#FDFDF8] to-[#F8F8F0] dark:from-gray-900 dark:to-gray-800 rounded-lg overflow-hidden h-full border-2 border-border/50",style:{boxShadow:"0 30px 60px -12px rgba(0, 0, 0, 0.35), 0 20px 25px -5px rgba(0, 0, 0, 0.15)"},children:[jsxRuntime.jsx(react$1.motion.div,{className:"absolute inset-0 rounded-lg pointer-events-none z-10",style:{boxShadow:"0 0 60px rgba(249, 115, 22, 0.3)"},initial:{opacity:0},animate:{opacity:[0,1,.7]},transition:{duration:2,times:[0,.5,1],delay:2}}),jsxRuntime.jsx("div",{ref:v,tabIndex:0,className:"h-full overflow-y-auto focus-visible:outline-none",children:jsxRuntime.jsx(st,{documentIds:n,classNames:o})})]})]})})]})})}var it={verify:[["info","Initializing document verification system..."],["processing","Loading verification protocols v3.2.1"],["success","Protocols loaded successfully"]],identity:[["info","Starting identity validation sequence"],["processing","Establishing secure connection"],["success","Connection established"]],statement:[["info","Initializing statement processing pipeline"],["processing","Loading NLP models for legal analysis"],["success","Models loaded successfully"]],witness:[["info","Starting witness authorization protocol"],["processing","Initializing verification systems"],["success","Systems initialized"]],notary:[["info","Initiating notarization sequence"],["processing","Preparing secure connection"],["success","Ready for notarization"]]},lt={v1:[["info","Loading document template..."],["processing","Validating template structure"],["info","Checking template version"],["success","Template validated: SWORN_AFFIDAVIT_STD v2.1"]],v2:[["info","Scanning legal requirements database..."],["processing","Cross-referencing state regulations"],["info","Validating federal compliance"],["success","Legal requirements verified"]],v3:[["info","Determining jurisdiction..."],["processing","Checking state-specific requirements"],["info","Validating county regulations"],["success","Jurisdiction compliance: CONFIRMED"]],v4:[["info","Generating document metadata..."],["processing","Creating unique document ID"],["info","Assigning case number"],["success","Metadata generated successfully"]],i1:[["info","Requesting credential verification..."],["processing","Connecting to identity API"],["info","Sending authentication request"],["success","Credentials authenticated"]],i2:[["info","Initiating biometric verification..."],["processing","Running facial recognition scan"],["info","Analyzing biometric markers"],["success","Biometric data verified: 99.2% match"]],i3:[["info","Accessing identity databases..."],["processing","Cross-referencing government records"],["info","Validating social security records"],["success","Database cross-reference complete"]],i4:[["info","Confirming identity match..."],["processing","Aggregating verification results"],["info","Performing final validation"],["success","Identity confirmed: VERIFIED"]],s1:[["info","Parsing statement content..."],["processing","Tokenizing input text"],["info","Extracting semantic structure"],["success","Content parsed: 847 tokens"]],s2:[["info","Verifying factual accuracy..."],["processing","Running fact-checking algorithms"],["info","Cross-referencing with knowledge base"],["success","Accuracy verified: 98.7% confidence"]],s3:[["info","Formatting legal language..."],["processing","Applying legal terminology standards"],["info","Restructuring paragraphs per jurisdiction"],["success","Legal format applied successfully"]],s4:[["info","Generating numbered paragraphs..."],["processing","Creating hierarchical structure"],["info","Applying citation formatting"],["success","Paragraphs generated: 4 sections"]],w1:[["info","Checking witness eligibility..."],["processing","Verifying age requirements"],["info","Validating witness capacity"],["success","Witness eligibility: CONFIRMED"]],w2:[["info","Validating witness credentials..."],["processing","Checking identification documents"],["info","Verifying witness signature authority"],["success","Credentials validated successfully"]],w3:[["info","Generating attestation block..."],["processing","Creating witness declaration"],["info","Formatting attestation language"],["success","Attestation block generated"]],w4:[["info","Recording witness information..."],["processing","Storing witness metadata"],["info","Generating witness certificate"],["success","Witness information recorded"]],n1:[["info","Connecting to notary public registry..."],["processing","Establishing secure connection"],["info","Authenticating registry access"],["success","Registry connection established"]],n2:[["info","Validating notary commission..."],["processing","Checking commission status"],["info","Verifying commission expiration date"],["success","Commission status: ACTIVE"]],n3:[["info","Generating cryptographic seal..."],["processing","Creating digital signature"],["info","Applying encryption protocols"],["success","Cryptographic seal generated"]],n4:[["info","Applying digital signature..."],["processing","Embedding signature metadata"],["info","Finalizing document certification"],["success","Notarization complete - Document sealed"]]};function Ge(t={}){let{steps:e,stepLogs:n,substepLogs:s,autoStart:o=true,autoScroll:a=true,showWholeDocumentView:l=true,documentIds:i,animationSpeed:c=1,animationTimings:r,onStepStart:g,onStepComplete:v,onSubstepComplete:f,onSectionReveal:u,onLogEntry:O,onComplete:I,onPause:N,onResume:P,onReset:U}=t,$=react.useCallback(()=>e??Ze.map(m=>({...m,logs:[],substeps:m.substeps?.map(T=>({...T,logs:[],completed:false}))})),[e]),oe=n??it,re=s??lt,x=react.useMemo(()=>({stepActivation:r?.stepActivation??800,substepDelay:r?.substepDelay??500,logStreamBase:r?.logStreamBase??250,logStreamVariance:r?.logStreamVariance??300,typewriterSpeed:r?.typewriterSpeed??25,sectionRevealDuration:r?.sectionRevealDuration??500,completionDelay:r?.completionDelay??400}),[r?.stepActivation,r?.substepDelay,r?.logStreamBase,r?.logStreamVariance,r?.typewriterSpeed,r?.sectionRevealDuration,r?.completionDelay]),[b,G]=react.useState($),[ye,ne]=react.useState(new Set),[xe,_e]=react.useState(new Set),[Be,A]=react.useState({tokens:0,cost:0,elapsed:0}),[We,H]=react.useState(null),[Ve,Se]=react.useState(0),[se,ve]=react.useState(false),[q,Ne]=react.useState(false),[V,Q]=react.useState(false),ae=react.useRef(null),w=react.useRef(true),X=react.useRef(false),C=react.useRef(0),Ae=react.useRef(i??{caseNumber:Date.now().toString().slice(-8),fileNumber:Date.now().toString().slice(-6)}).current,L=react.useCallback(m=>new Promise((T,p)=>{let Y=()=>{if(!w.current){p(new Error("unmounted"));return}if(X.current){setTimeout(Y,100);return}T();};setTimeout(Y,m/c);}),[c]),De=react.useCallback((m,T,p,Y)=>{let h=new Date().toLocaleTimeString("en-US",{hour12:false,hour:"2-digit",minute:"2-digit",second:"2-digit"}),S={id:`${Date.now()}-${Math.random()}`,timestamp:h,level:p,message:Y};O&&O(S),G(B=>B.map((R,ce)=>ce===m?T&&R.substeps?{...R,substeps:R.substeps.map(me=>me.id===T?{...me,logs:[...me.logs,S]}:me)}:{...R,logs:[...R.logs,S]}:R));},[O]),ie=react.useCallback(async(m,T,p)=>{for(let[Y,h]of p){if(await L(x.logStreamBase+Math.random()*x.logStreamVariance),!w.current)return;De(m,T,Y,h);}},[L,De,x.logStreamBase,x.logStreamVariance]),le=b.length,Z=b.filter(m=>m.status==="completed").length,Ye=le>0?Z/le*100:0,ze=Z===le&&le>0;react.useEffect(()=>{if(a&&ae.current&&xe.size>0){let m=setTimeout(()=>{ae.current?.scrollTo({top:ae.current.scrollHeight,behavior:"smooth"});},400/c);return ()=>clearTimeout(m)}},[xe,a,c]),react.useEffect(()=>()=>{w.current=false;},[]);let He=react.useCallback(async m=>{let T=$();for(let p=0;p<T.length;p++){if(!w.current||C.current!==m)return;g&&g(T[p],p);try{await L(x.stepActivation);}catch{return}if(!w.current||C.current!==m)return;G(h=>h.map((S,B)=>B===p?{...S,status:"active"}:S)),Se(p);let Y=oe[T[p].id];if(Y&&await ie(p,null,Y),!w.current||C.current!==m)return;if(T[p].substeps){try{await L(x.substepDelay+100);}catch{return}if(!w.current||C.current!==m)return;G(h=>h.map((S,B)=>B===p?{...S,status:"processing"}:S));for(let h=0;h<T[p].substeps.length;h++){if(!w.current||C.current!==m)return;let S=T[p].substeps[h].id;try{await L(x.substepDelay);}catch{return}if(!w.current||C.current!==m)return;let B=re[S];if(B&&await ie(p,S,B),!w.current||C.current!==m)return;try{await L(x.completionDelay);}catch{return}if(!w.current||C.current!==m)return;G(R=>R.map((ce,me)=>{if(me===p&&ce.substeps){let Qe=[...ce.substeps];return Qe[h]={...Qe[h],completed:true},{...ce,substeps:Qe}}return ce})),A(R=>({tokens:R.tokens+Math.floor(Math.random()*150+50),cost:R.cost+Math.random()*.002,elapsed:R.elapsed+Math.random()*.8})),_e(R=>new Set([...R,S])),f&&f(S,p);try{await L(x.completionDelay-100);}catch{return}}}else try{await L(x.substepDelay+100);}catch{return}if(!w.current||C.current!==m)return;H(T[p].id);try{await L(x.completionDelay/2);}catch{return}if(!w.current||C.current!==m)return;if(G(h=>h.map((S,B)=>B===p?{...S,status:"completed"}:S)),T[p].documentSection){try{await L(x.sectionRevealDuration);}catch{return}if(!w.current||C.current!==m)return;ne(h=>{let S=new Set([...h,T[p].documentSection]);return u&&u(T[p].documentSection),S});}try{await L(x.completionDelay);}catch{return}if(!w.current||C.current!==m)return;H(null),A(h=>{let S={tokens:h.tokens+Math.floor(Math.random()*200+100),cost:h.cost+Math.random()*.005,elapsed:h.elapsed+Math.random()*1.2};return v&&v(T[p],S),S});}!w.current||C.current!==m||(l&&ve(true),Ne(false),I&&A(p=>(I(p),p)));},[$,oe,re,L,ie,l,r,g,v,f,u,I,x.stepActivation,x.substepDelay,x.completionDelay,x.sectionRevealDuration]),j=react.useCallback(()=>{if(q)return;let m=++C.current;Ne(true),Q(false),X.current=false,He(m);},[q,He]),he=react.useCallback(()=>{!q||V||(X.current=true,Q(true),N&&N());},[q,V,N]),qe=react.useCallback(()=>{V&&(X.current=false,Q(false),P&&P());},[V,P]),jt=react.useCallback(()=>{C.current++,X.current=false,G($()),ne(new Set),_e(new Set),A({tokens:0,cost:0,elapsed:0}),H(null),Se(0),ve(false),Ne(false),Q(false),U&&U();},[$,U]),Kt=react.useCallback(m=>{m<0||m>=b.length||Se(m);},[b.length]);return react.useEffect(()=>{o&&j();},[]),{steps:b,completedSections:ye,completedSubsteps:xe,metrics:Be,showRipple:We,currentStep:Ve,showWholeDocument:se,isRunning:q,isPaused:V,isComplete:ze,progress:Ye,documentScrollRef:ae,documentIds:Ae,start:j,pause:he,resume:qe,reset:jt,goToStep:Kt,setShowWholeDocument:ve}}var mt={title:"Sworn Affidavit Assembly",statusProcessing:"PROCESSING",statusComplete:"COMPLETE",documentTitle:"Assembled Document",documentPrefix:"LEGAL-",documentSuffix:".pdf",completionTitle:"Document Assembly Complete",completionBadge:"100% Complete",metricsTokens:"Tokens",metricsCost:"Cost",metricsElapsed:"Elapsed",stepPrefix:"STEP_",stepDone:"\u2713 DONE",substepCount:(t,e)=>`${t}/${e} substeps`,logLabel:"SYSTEM LOG",logLabelCompact:"LOG",logEntriesSuffix:" entries",watermarkText:"OFFICIAL"};var dt=768,Ft=1024;function Ut(){if(typeof window>"u")return {isMobile:false,isTablet:false,direction:"horizontal"};let t=window.innerWidth,e=t<dt,n=t>=dt&&t<Ft;return {isMobile:e,isTablet:n,direction:e?"vertical":"horizontal"}}function pt(){let[t,e]=react.useState(Ut);return react.useEffect(()=>{let n=()=>e(Ut()),s=window.matchMedia(`(max-width: ${dt-1}px)`),o=window.matchMedia(`(max-width: ${Ft-1}px)`),a=()=>n();return s.addEventListener("change",a),o.addEventListener("change",a),()=>{s.removeEventListener("change",a),o.removeEventListener("change",a);}},[]),t}var qo=react.forwardRef(function(e,n){let{steps:s,stepLogs:o,substepLogs:a,autoScroll:l=true,showWholeDocumentView:i=true,documentIds:c,animationSpeed:r=1,autoStart:g=true,animationPreset:v,animationTimings:f,onComplete:u,onStepComplete:O,onStepStart:I,onSubstepComplete:N,onSectionReveal:P,onLogEntry:U,onPause:$,onResume:oe,onReset:re,className:x,classNames:b,theme:G,labels:ye,layout:ne,documentSections:xe,renderStep:_e,renderDocumentSection:Be}=e,A={...mt,...ye},We=Ge({steps:s,stepLogs:o,substepLogs:a,autoStart:g,autoScroll:l,showWholeDocumentView:i,documentIds:c,animationSpeed:r,animationTimings:f,onStepStart:I,onStepComplete:O,onSubstepComplete:N,onSectionReveal:P,onLogEntry:U,onComplete:u,onPause:$,onResume:oe,onReset:re}),{steps:H,completedSections:Ve,completedSubsteps:Se,metrics:se,showRipple:ve,currentStep:q,showWholeDocument:Ne,progress:V,documentIds:Q,documentScrollRef:ae,start:w,pause:X,resume:C,reset:Ae,goToStep:L,setShowWholeDocument:De}=We,{isMobile:ie,direction:le}=pt(),Z=ne?.direction??le;react.useImperativeHandle(n,()=>({start:w,pause:X,resume:C,reset:Ae,goToStep:L}),[w,X,C,Ae,L]);let Ye=ne?.leftWidth??"33.333%",ze=ne?.rightWidth??"66.667%",j=jsxRuntime.jsxs("div",{"aria-label":"Document assembly",className:`relative w-full ${ie?"min-h-screen":"h-screen"} overflow-hidden bg-background flex flex-col ${x??""} ${b?.root||""}`,children:[jsxRuntime.jsx("div",{className:"absolute inset-0 opacity-[0.03] dark:opacity-[0.08]",children:jsxRuntime.jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntime.jsx("defs",{children:jsxRuntime.jsx("pattern",{id:"grid",width:"40",height:"40",patternUnits:"userSpaceOnUse",children:jsxRuntime.jsx("path",{d:"M 40 0 L 0 0 0 40",fill:"none",stroke:"currentColor",strokeWidth:"0.5",className:"text-orange-500"})})}),jsxRuntime.jsx("rect",{width:"100%",height:"100%",fill:"url(#grid)"})]})}),jsxRuntime.jsx("div",{className:"absolute top-0 left-0 right-0 z-50",role:"progressbar","aria-valuenow":Math.round(V),"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Document assembly progress",children:jsxRuntime.jsx(react$1.motion.div,{className:`h-0.5 bg-gradient-to-r from-orange-500 to-red-500 ${b?.progressBar||""}`,initial:{width:"0%"},animate:{width:`${V}%`},transition:{duration:.8,ease:"easeOut"}})}),jsxRuntime.jsxs("div",{className:`relative z-10 flex ${Z==="vertical"?"flex-col":""} flex-1 overflow-hidden`,children:[jsxRuntime.jsx("div",{className:`${Z==="vertical"?"border-b":"border-r"} border-border/50 ${ie?"p-4":"p-8"} overflow-y-auto ${b?.leftPanel||""}`,style:Z==="vertical"?{height:"50%"}:{width:Ye},children:jsxRuntime.jsxs("div",{className:"max-w-xl mx-auto",children:[jsxRuntime.jsxs(react$1.motion.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.6},className:"mb-12",children:[jsxRuntime.jsx("h1",{className:`text-3xl font-bold mb-2 bg-gradient-to-r from-orange-500 to-red-500 bg-clip-text text-transparent ${b?.header||""}`,children:A.title}),jsxRuntime.jsxs("p",{className:"text-muted-foreground font-mono text-xs tracking-wider",children:["System Status: ",jsxRuntime.jsx("span",{className:`font-semibold ${q===H.length?"text-emerald-500":"text-orange-500"}`,children:q===H.length?A.statusComplete:A.statusProcessing})]})]}),jsxRuntime.jsx("div",{className:"space-y-6 relative",children:H.map((he,qe)=>jsxRuntime.jsx(rt,{step:he,isLast:qe===H.length-1,showRipple:ve===he.id,classNames:b,theme:G,labels:ye,renderStep:_e},he.id))})]})}),jsxRuntime.jsx("div",{className:`bg-gradient-to-br from-muted/20 to-muted/5 overflow-hidden relative ${b?.rightPanel||""}`,style:Z==="vertical"?{height:"50%"}:{width:ze},children:jsxRuntime.jsxs("div",{className:"h-full flex flex-col relative z-10",children:[jsxRuntime.jsx("div",{className:"p-6 border-b border-border/50 bg-background/50 backdrop-blur-sm",children:jsxRuntime.jsxs("div",{className:"flex items-center justify-between",children:[jsxRuntime.jsxs("div",{className:"flex items-center gap-3",children:[jsxRuntime.jsx("div",{className:"p-2 rounded-lg bg-cyan-500/10 border border-cyan-500/20",children:jsxRuntime.jsx(lucideReact.FileText,{className:"w-5 h-5 text-cyan-600 dark:text-cyan-400"})}),jsxRuntime.jsxs("div",{children:[jsxRuntime.jsx("h2",{className:"text-foreground font-semibold",children:A.documentTitle}),jsxRuntime.jsxs("p",{className:"text-muted-foreground text-xs mt-0.5 font-mono",children:[A.documentPrefix,Q.fileNumber,A.documentSuffix]})]})]}),V===100&&jsxRuntime.jsx(react$1.motion.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},className:"px-4 py-2 rounded-full bg-gradient-to-r from-orange-500/20 to-red-500/20 border border-orange-500/30",children:jsxRuntime.jsx("span",{className:"text-sm font-semibold bg-gradient-to-r from-orange-600 to-red-600 bg-clip-text text-transparent",children:A.completionBadge})})]})}),jsxRuntime.jsx("div",{className:"flex-1 overflow-y-auto p-12",ref:ae,children:jsxRuntime.jsx(nt,{completedSections:Ve,completedSubsteps:Se,documentIds:Q,sections:xe,classNames:b,watermarkText:A.watermarkText,renderSection:Be})})]})})]}),jsxRuntime.jsx("div",{className:`relative z-20 border-t border-border/50 p-4 bg-background/95 backdrop-blur-sm ${b?.footer||""}`,children:jsxRuntime.jsxs("div",{className:`flex justify-center items-center gap-6 max-w-5xl mx-auto ${b?.metricsBar||""}`,children:[jsxRuntime.jsxs("div",{className:`flex items-center gap-2.5 px-5 py-2.5 rounded-lg bg-orange-500/5 border border-orange-500/20 ${b?.metricsItem||""}`,children:[jsxRuntime.jsx(lucideReact.Zap,{className:"w-4 h-4 text-orange-500"}),jsxRuntime.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsx("span",{className:"text-[10px] text-muted-foreground font-mono uppercase tracking-wider",children:A.metricsTokens}),jsxRuntime.jsx("span",{className:"text-base font-bold text-orange-600 dark:text-orange-400 tabular-nums",children:se.tokens.toLocaleString()})]})]}),jsxRuntime.jsxs("div",{className:`flex items-center gap-2.5 px-5 py-2.5 rounded-lg bg-emerald-500/5 border border-emerald-500/20 ${b?.metricsItem||""}`,children:[jsxRuntime.jsx(lucideReact.DollarSign,{className:"w-4 h-4 text-emerald-500"}),jsxRuntime.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsx("span",{className:"text-[10px] text-muted-foreground font-mono uppercase tracking-wider",children:A.metricsCost}),jsxRuntime.jsxs("span",{className:"text-base font-bold text-emerald-600 dark:text-emerald-400 tabular-nums",children:["$",se.cost.toFixed(4)]})]})]}),jsxRuntime.jsxs("div",{className:`flex items-center gap-2.5 px-5 py-2.5 rounded-lg bg-purple-500/5 border border-purple-500/20 ${b?.metricsItem||""}`,children:[jsxRuntime.jsx(lucideReact.Clock,{className:"w-4 h-4 text-purple-500"}),jsxRuntime.jsxs("div",{className:"flex flex-col",children:[jsxRuntime.jsx("span",{className:"text-[10px] text-muted-foreground font-mono uppercase tracking-wider",children:A.metricsElapsed}),jsxRuntime.jsxs("span",{className:"text-base font-bold text-purple-600 dark:text-purple-400 tabular-nums",children:[se.elapsed.toFixed(1),"s"]})]})]})]})}),jsxRuntime.jsx(at,{show:Ne,onClose:()=>De(false),documentIds:Q,metrics:se,classNames:b,labels:ye})]});return v&&(j=jsxRuntime.jsx(Le,{preset:v,children:j})),e.theme&&(j=jsxRuntime.jsx(Me,{theme:e.theme,children:j})),j});var Gt=[{id:"header",title:"",borderColor:"cyan",className:"border-b-2 border-cyan-500/20 pb-6",style:{boxShadow:"0 1px 3px rgba(6, 182, 212, 0.1)"},subsections:[{revealOnSubstep:"v1",content:"~~~~~~~ ~~~~~~~~",className:"text-3xl font-extrabold tracking-widest text-gray-900 dark:text-gray-100 text-center",animation:"typewriter"},{revealOnSubstep:"v2",content:"~~~~~ ~~ ~~~~~~~~~~~~",className:"text-sm tracking-widest text-gray-700 dark:text-gray-300 text-center",animation:"typewriter"},{revealOnSubstep:"v2",content:"~~~~~~ ~~ ~~~~~~ ~~~~",className:"text-sm tracking-widest text-gray-700 dark:text-gray-300 text-center",animation:"typewriter"},{revealOnSubstep:"v4",content:"#### ~~. ~~~~~~~~",className:"text-base font-bold text-cyan-600 dark:text-cyan-400 tracking-wider mt-2 text-center",animation:"typewriter"}]},{id:"affiant",title:"~~~~~~~~ ~~~~~~~~~~~:",borderColor:"cyan",className:"border-l-[6px] border-cyan-500/40 pl-6 py-4",style:{boxShadow:"-2px 0 8px rgba(6, 182, 212, 0.1)"},subsections:[{revealOnSubstep:"i1",content:"~, [~~~~ ~~~~], ~~~~~ ~~~~ ~~~~~, ~~~~~~ ~~~ ~~~~~:",className:"text-base leading-relaxed text-gray-800 dark:text-gray-200 mb-4 italic",animation:"typewriter"},{revealOnSubstep:"i2",content:`~~~~~~~: [~~~~~~ ~~~~~~~]
|
|
30
30
|
~~~~~/~~~~~: [~~~~, ~~~~~ ~~~]`,className:"space-y-2 ml-8 text-sm text-gray-700 dark:text-gray-300",animation:"typewriter"},{revealOnSubstep:"i3",content:"~~~: [~~~~ ~~ ~~~~~]",className:"space-y-2 ml-8 text-sm text-gray-700 dark:text-gray-300 mt-2",animation:"typewriter"},{revealOnSubstep:"i4",content:"~~ ~~~~~~~~: \u2713 ~~~~~~~~~",className:"text-emerald-600 dark:text-emerald-400 font-bold ml-8 text-sm mt-2",animation:"typewriter"}]},{id:"statement",title:"~~~~~~~~~ ~~ ~~~~~:",borderColor:"orange",className:"border-l-[6px] border-orange-500/40 pl-6 py-4",style:{boxShadow:"-2px 0 8px rgba(249, 115, 22, 0.1)"},subsections:[{revealOnSubstep:"s1",content:"1. ~~~~ ~ ~~~~ ~~~~~~~~ ~~~~~~~~~ ~~ ~~~ ~~~~~ ~~~~~~ ~~~~~~ ~~~ ~~ ~~~~~~~~~ ~~ ~~~~~~~ ~~ ~~~ ~~~~.",className:"ml-8 text-base leading-loose text-gray-800 dark:text-gray-200 mb-5",animation:"typewriter"},{revealOnSubstep:"s2",content:"2. ~~~~ ~~ ~~ ~~~~~ [~~~~], ~~~ ~~~~~~~~~ ~~~~~~ ~~~~~~~~: [~~~~~~~~ ~~~~~~~~~ ~~ ~~~~~~~~ ~~~~~]",className:"ml-8 text-base leading-loose text-gray-800 dark:text-gray-200 mb-5",animation:"typewriter"},{revealOnSubstep:"s3",content:"3. ~~~~ ~~~ ~~~~~~~~~~~ ~~~~~~~~ ~~~~~~ ~~ ~~~~ ~~~ ~~~~~~~ ~~ ~~~ ~~~~ ~~ ~~ ~~~~~~~~~ ~~~ ~~~~~~.",className:"ml-8 text-base leading-loose text-gray-800 dark:text-gray-200 mb-5",animation:"typewriter"},{revealOnSubstep:"s4",content:"4. ~~~~ ~ ~~~~~~~~~~ ~~~ ~~~~~~~~~ ~~~ ~~~~~~~ ~~~~~ ~~~.",className:"ml-8 text-base leading-loose text-gray-800 dark:text-gray-200",animation:"typewriter"}]},{id:"witness",title:"~~~~~~~ ~~~~~~~~~~~:",borderColor:"purple",className:"border-l-[6px] border-purple-500/40 pl-6 py-4",style:{boxShadow:"-2px 0 8px rgba(168, 85, 247, 0.1)"},subsections:[{revealOnSubstep:"w1",content:"",className:"",animation:"fade"},{revealOnSubstep:"w2",content:`~~~~~~~~~ ~~: [~~~~~~~ ~~~~]
|
|
31
31
|
~~~~~~~ ~~~~~~~: [~~~~~~~]`,className:"space-y-2 text-sm text-gray-700 dark:text-gray-300",animation:"typewriter"},{revealOnSubstep:"w4",content:"__WITNESS_SIGNATURE__",className:"mt-8 pt-6 border-t border-gray-300 dark:border-gray-600",animation:"fade"}]},{id:"notary",title:"~~~~~~ ~~~~~~ ~~~~~~~~~~~~~:",borderColor:"emerald",className:"border-2 border-emerald-500/40 rounded-lg p-6 bg-emerald-500/5 relative overflow-hidden",style:{boxShadow:"0 4px 12px rgba(16, 185, 129, 0.15)"},subsections:[{revealOnSubstep:"n1",content:"__NOTARY_DATE__",className:"leading-relaxed text-sm text-gray-700 dark:text-gray-300",animation:"typewriter"},{revealOnSubstep:"n2",content:`~~~~~~ ~~~~~~: [~~~~~~ ~~~~]
|
|
32
32
|
~~~~~~~~~~ ~~~~~~: [~~~~~~]
|
|
33
|
-
__COMMISSION_EXPIRES__`,className:"my-4 border-t border-gray-300 dark:border-gray-600 pt-4 text-sm text-gray-700 dark:text-gray-300",animation:"typewriter"},{revealOnSubstep:"n3",content:"__NOTARY_SEAL__",className:"",animation:"fade"},{revealOnSubstep:"n4",content:"__NOTARY_SIGNATURE__",className:"mt-8 pt-4 text-sm text-gray-700 dark:text-gray-300",animation:"fade"}]}],
|
|
33
|
+
__COMMISSION_EXPIRES__`,className:"my-4 border-t border-gray-300 dark:border-gray-600 pt-4 text-sm text-gray-700 dark:text-gray-300",animation:"typewriter"},{revealOnSubstep:"n3",content:"__NOTARY_SEAL__",className:"",animation:"fade"},{revealOnSubstep:"n4",content:"__NOTARY_SIGNATURE__",className:"mt-8 pt-4 text-sm text-gray-700 dark:text-gray-300",animation:"fade"}]}],Bt=[{id:"header",title:"",borderColor:"cyan",className:"border-b-2 border-cyan-500/20 pb-6",subsections:[{revealOnSubstep:"all",content:"~~~~~~~ ~~~~~~~~",className:"text-2xl font-extrabold tracking-widest text-gray-900 dark:text-gray-100 text-center"},{revealOnSubstep:"all",content:"~~~~~ ~~ ~~~~~~~~~~~~",className:"text-xs tracking-widest text-gray-700 dark:text-gray-300 text-center"},{revealOnSubstep:"all",content:"~~~~~~ ~~ ~~~~~~ ~~~~",className:"text-xs tracking-widest text-gray-700 dark:text-gray-300 text-center"},{revealOnSubstep:"all",content:"#### ~~. ~~~~~~~~",className:"text-sm font-bold text-cyan-600 dark:text-cyan-400 tracking-wider mt-2 text-center"}]},{id:"affiant",title:"~~~~~~~~ ~~~~~~~~~~~:",borderColor:"cyan",className:"border-l-[6px] border-cyan-500/40 pl-6 py-4",subsections:[{revealOnSubstep:"all",content:"~, [~~~~ ~~~~], ~~~~~ ~~~~ ~~~~~, ~~~~~~ ~~~ ~~~~~:",className:"text-sm leading-relaxed text-gray-800 dark:text-gray-200 mb-3 italic"},{revealOnSubstep:"all",content:`~~~~~~~: [~~~~~~ ~~~~~~~]
|
|
34
34
|
~~~~~/~~~~~: [~~~~, ~~~~~ ~~~]
|
|
35
35
|
~~~: [~~~~ ~~ ~~~~~]
|
|
36
36
|
~~ ~~~~~~~~: \u2713 ~~~~~~~~~`,className:"space-y-1 ml-8 text-xs text-gray-700 dark:text-gray-300"}]},{id:"statement",title:"~~~~~~~~~ ~~ ~~~~~:",borderColor:"orange",className:"border-l-[6px] border-orange-500/40 pl-6 py-4",subsections:[{revealOnSubstep:"all",content:`1. ~~~~ ~ ~~~~ ~~~~~~~~ ~~~~~~~~~ ~~ ~~~ ~~~~~ ~~~~~~ ~~~~~~.
|
|
@@ -39,5 +39,5 @@ __COMMISSION_EXPIRES__`,className:"my-4 border-t border-gray-300 dark:border-gra
|
|
|
39
39
|
4. ~~~~ ~ ~~~~~~~~~~ ~~~ ~~~~~~~~~ ~~~ ~~~~~~~ ~~~~~ ~~~.`,className:"space-y-3 ml-8 text-sm leading-loose text-gray-800 dark:text-gray-200"}]},{id:"witness",title:"~~~~~~~ ~~~~~~~~~~~:",borderColor:"purple",className:"border-l-[6px] border-purple-500/40 pl-6 py-4",subsections:[{revealOnSubstep:"all",content:`~~~~~~~~~ ~~: [~~~~~~~ ~~~~]
|
|
40
40
|
~~~~~~~ ~~~~~~~: [~~~~~~~]`,className:"space-y-2 text-xs text-gray-700 dark:text-gray-300"},{revealOnSubstep:"all",content:"__WITNESS_SIGNATURE__",className:"mt-6 pt-4 border-t border-gray-300 dark:border-gray-600"}]},{id:"notary",title:"~~~~~~ ~~~~~~ ~~~~~~~~~~~~~:",borderColor:"emerald",className:"border-2 border-emerald-500/40 rounded-lg p-6 bg-emerald-500/5 relative overflow-hidden",subsections:[{revealOnSubstep:"all",content:"__NOTARY_DATE__",className:"leading-relaxed text-xs text-gray-700 dark:text-gray-300"},{revealOnSubstep:"all",content:`~~~~~~ ~~~~~~: [~~~~~~ ~~~~]
|
|
41
41
|
~~~~~~~~~~ ~~~~~~: [~~~~~~]
|
|
42
|
-
__COMMISSION_EXPIRES__`,className:"my-3 border-t border-gray-300 dark:border-gray-600 pt-3 space-y-1 text-xs text-gray-700 dark:text-gray-300"},{revealOnSubstep:"all",content:"__NOTARY_SIGNATURE__",className:"mt-6 pt-3 text-xs text-gray-700 dark:text-gray-300"},{revealOnSubstep:"all",content:"__NOTARY_SEAL__",className:""}]}];var
|
|
42
|
+
__COMMISSION_EXPIRES__`,className:"my-3 border-t border-gray-300 dark:border-gray-600 pt-3 space-y-1 text-xs text-gray-700 dark:text-gray-300"},{revealOnSubstep:"all",content:"__NOTARY_SIGNATURE__",className:"mt-6 pt-3 text-xs text-gray-700 dark:text-gray-300"},{revealOnSubstep:"all",content:"__NOTARY_SEAL__",className:""}]}];var Vt=[{id:"verify",number:1,title:"Document Verification",status:"pending",icon:lucideReact.FileText,substeps:[{id:"v1",label:"~~~~~~~~ ~~~~~~~~ ~~~~~~~~",completed:false,logs:[]},{id:"v2",label:"~~~~~ ~~~~~ ~~~~~~~~~~~~",completed:false,logs:[]},{id:"v3",label:"~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~~~",completed:false,logs:[]},{id:"v4",label:"~~~~~~~~ ~~~~~~~~ ~~~~~~~~",completed:false,logs:[]}],documentSection:"header",logs:[]},{id:"identity",number:2,title:"Identity Validation",status:"pending",icon:lucideReact.Shield,substeps:[{id:"i1",label:"~~~~~~~ ~~~~~~~~~~ ~~~~~",completed:false,logs:[]},{id:"i2",label:"~~~~~~ ~~~~~~~~~ ~~~~",completed:false,logs:[]},{id:"i3",label:"~~~~~-~~~~~~~~~ ~~~~~~~~~",completed:false,logs:[]},{id:"i4",label:"~~~~~~~ ~~~~~~~~ ~~~~~",completed:false,logs:[]}],documentSection:"affiant",logs:[]},{id:"statement",number:3,title:"Content Processing",status:"pending",icon:lucideReact.FileText,substeps:[{id:"s1",label:"~~~~~ ~~~~~~~~~ ~~~~~~~",completed:false,logs:[]},{id:"s2",label:"~~~~~~ ~~~~~~~ ~~~~~~~~",completed:false,logs:[]},{id:"s3",label:"~~~~~~ ~~~~~ ~~~~~~~~",completed:false,logs:[]},{id:"s4",label:"~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~",completed:false,logs:[]}],documentSection:"statement",logs:[]},{id:"witness",number:4,title:"Authorization Review",status:"pending",icon:lucideReact.Users,substeps:[{id:"w1",label:"~~~~~~ ~~~~~~~~~ ~~~~~~~~~~~",completed:false,logs:[]},{id:"w2",label:"~~~~~ ~~~~~~~~~~ ~~~~~~~~",completed:false,logs:[]},{id:"w3",label:"~~~~~~~~ ~~~~~~~~~~~ ~~~~~",completed:false,logs:[]},{id:"w4",label:"~~~~~~ ~~~~~~~ ~~~~~~~~~~~",completed:false,logs:[]}],documentSection:"witness",logs:[]},{id:"notary",number:5,title:"Final Certification",status:"pending",icon:lucideReact.Stamp,substeps:[{id:"n1",label:"~~~~~~~ ~~ ~~~~~~~~ ~~~~~~~~",completed:false,logs:[]},{id:"n2",label:"~~~~~~~~ ~~~~~~~~~~ ~~~~~~",completed:false,logs:[]},{id:"n3",label:"~~~~~~~~ ~~~~~~~~~~~~~ ~~~~",completed:false,logs:[]},{id:"n4",label:"~~~~~ ~~~~~~~ ~~~~~~~~~",completed:false,logs:[]}],documentSection:"notary",logs:[]}],Yt={verify:[["info","~~~~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~..."],["processing","~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~~ ~~.~.~"],["success","~~~~~~~~~ ~~~~~~ ~~~~~~~~~~~~"]],identity:[["info","~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~"],["processing","~~~~~~~~~~~~ ~~~~~~ ~~~~~~~~~~"],["success","~~~~~~~~~~ ~~~~~~~~~~~"]],statement:[["info","~~~~~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~"],["processing","~~~~~~~ ~~~ ~~~~~~ ~~~ ~~~~~ ~~~~~~~~"],["success","~~~~~~ ~~~~~~ ~~~~~~~~~~~~"]],witness:[["info","~~~~~~~~ ~~~~~~~ ~~~~~~~~~~~~~ ~~~~~~~~"],["processing","~~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~"],["success","~~~~~~~ ~~~~~~~~~~~"]],notary:[["info","~~~~~~~~~~ ~~~~~~~~~~~~~ ~~~~~~~~"],["processing","~~~~~~~~~ ~~~~~~ ~~~~~~~~~~"],["success","~~~~~ ~~~ ~~~~~~~~~~~~~"]]},zt={v1:[["info","~~~~~~~ ~~~~~~~~ ~~~~~~~~..."],["processing","~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~~"],["info","~~~~~~~~ ~~~~~~~~ ~~~~~~~"],["success","~~~~~~~~ ~~~~~~~~~: ~~~~~~_~~~~~~~~_~~~ ~~.~"]],v2:[["info","~~~~~~~~ ~~~~~ ~~~~~~~~~~~~ ~~~~~~~~..."],["processing","~~~~~-~~~~~~~~~~~ ~~~~~ ~~~~~~~~~~~"],["info","~~~~~~~~~~ ~~~~~~~ ~~~~~~~~~~"],["success","~~~~~ ~~~~~~~~~~~~ ~~~~~~~~"]],v3:[["info","~~~~~~~~~~~ ~~~~~~~~~~~~..."],["processing","~~~~~~~~ ~~~~~-~~~~~~~~ ~~~~~~~~~~~~"],["info","~~~~~~~~~~ ~~~~~~ ~~~~~~~~~~~"],["success","~~~~~~~~~~~~ ~~~~~~~~~~: ~~~~~~~~~"]],v4:[["info","~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~..."],["processing","~~~~~~~~ ~~~~~~ ~~~~~~~~ ~~"],["info","~~~~~~~~~ ~~~~ ~~~~~~"],["success","~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~~~~"]],i1:[["info","~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~~~..."],["processing","~~~~~~~~~~ ~~ ~~~~~~~~ ~~~"],["info","~~~~~~~ ~~~~~~~~~~~~~~ ~~~~~~~"],["success","~~~~~~~~~~~ ~~~~~~~~~~~~~"]],i2:[["info","~~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~~~~..."],["processing","~~~~~~~ ~~~~~~ ~~~~~~~~~~~ ~~~~"],["info","~~~~~~~~~ ~~~~~~~~~ ~~~~~~~"],["success","~~~~~~~~~ ~~~~ ~~~~~~~~: ~~.~% ~~~~~"]],i3:[["info","~~~~~~~~~ ~~~~~~~~ ~~~~~~~~~..."],["processing","~~~~~-~~~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~"],["info","~~~~~~~~~~ ~~~~~~ ~~~~~~~~ ~~~~~~~"],["success","~~~~~~~~ ~~~~~-~~~~~~~~~ ~~~~~~~~"]],i4:[["info","~~~~~~~~~~ ~~~~~~~~ ~~~~~..."],["processing","~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~"],["info","~~~~~~~~~~ ~~~~~ ~~~~~~~~~~"],["success","~~~~~~~~ ~~~~~~~~~: ~~~~~~~~"]],s1:[["info","~~~~~~~ ~~~~~~~~~ ~~~~~~~..."],["processing","~~~~~~~~~~ ~~~~~ ~~~~"],["info","~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~~"],["success","~~~~~~~ ~~~~~~: ~~~ ~~~~~~"]],s2:[["info","~~~~~~~~~ ~~~~~~~ ~~~~~~~~..."],["processing","~~~~~~~ ~~~~-~~~~~~~~ ~~~~~~~~~~"],["info","~~~~~-~~~~~~~~~~~ ~~~~ ~~~~~~~~~ ~~~~"],["success","~~~~~~~~ ~~~~~~~~: ~~.~% ~~~~~~~~~~"]],s3:[["info","~~~~~~~~~~ ~~~~~ ~~~~~~~~..."],["processing","~~~~~~~~ ~~~~~ ~~~~~~~~~~~ ~~~~~~~~~"],["info","~~~~~~~~~~~~~ ~~~~~~~~~~ ~~~ ~~~~~~~~~~~~"],["success","~~~~~ ~~~~~~ ~~~~~~~ ~~~~~~~~~~~~"]],s4:[["info","~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~..."],["processing","~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~~"],["info","~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~"],["success","~~~~~~~~~~ ~~~~~~~~~: ~ ~~~~~~~~"]],w1:[["info","~~~~~~~~ ~~~~~~~ ~~~~~~~~~~~..."],["processing","~~~~~~~~~ ~~~ ~~~~~~~~~~~~"],["info","~~~~~~~~~~ ~~~~~~~ ~~~~~~~~"],["success","~~~~~~~ ~~~~~~~~~~~: ~~~~~~~~~"]],w2:[["info","~~~~~~~~~~ ~~~~~~~ ~~~~~~~~~~~..."],["processing","~~~~~~~~ ~~~~~~~~~~~~~~ ~~~~~~~~~"],["info","~~~~~~~~~ ~~~~~~~ ~~~~~~~~~ ~~~~~~~~~"],["success","~~~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~~~~"]],w3:[["info","~~~~~~~~~~ ~~~~~~~~~~~ ~~~~~..."],["processing","~~~~~~~~ ~~~~~~~ ~~~~~~~~~~~"],["info","~~~~~~~~~~ ~~~~~~~~~~~ ~~~~~~~~"],["success","~~~~~~~~~~~ ~~~~~ ~~~~~~~~~"]],w4:[["info","~~~~~~~~~ ~~~~~~~ ~~~~~~~~~~~..."],["processing","~~~~~~~ ~~~~~~~ ~~~~~~~~"],["info","~~~~~~~~~~ ~~~~~~~ ~~~~~~~~~~~"],["success","~~~~~~~ ~~~~~~~~~~~ ~~~~~~~~"]],n1:[["info","~~~~~~~~~~ ~~ ~~~~~~ ~~~~~~ ~~~~~~~~..."],["processing","~~~~~~~~~~~~ ~~~~~~ ~~~~~~~~~~"],["info","~~~~~~~~~~~~~~ ~~~~~~~~ ~~~~~~"],["success","~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~~"]],n2:[["info","~~~~~~~~~~ ~~~~~~ ~~~~~~~~~~..."],["processing","~~~~~~~~ ~~~~~~~~~~ ~~~~~~"],["info","~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~~ ~~~~"],["success","~~~~~~~~~~ ~~~~~~: ~~~~~~"]],n3:[["info","~~~~~~~~~~ ~~~~~~~~~~~~~ ~~~~..."],["processing","~~~~~~~~ ~~~~~~~ ~~~~~~~~~"],["info","~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~~"],["success","~~~~~~~~~~~~~ ~~~~ ~~~~~~~~~"]],n4:[["info","~~~~~~~~ ~~~~~~~ ~~~~~~~~~..."],["processing","~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~"],["info","~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~~~~"],["success","~~~~~~~~~~~~~ ~~~~~~~~ - ~~~~~~~~ ~~~~~~"]]};var gt=0;function Ht(t){return gt++,{number:gt,status:"pending",logs:[],substeps:[],...t}}function qt(t){return {completed:false,logs:[],...t}}function Qt(t){return {subsections:[],...t}}function Xt(){gt=0;}exports.AnimationProvider=Le;exports.BlueprintDocumentAssembly=qo;exports.CINEMATIC_PRESET=yt;exports.DEFAULT_LABELS=mt;exports.DEFAULT_STEPS=Ze;exports.DEFAULT_STEP_LOGS=it;exports.DEFAULT_SUBSTEP_LOGS=lt;exports.DEFAULT_THEME=Pe;exports.DocumentLine=te;exports.DocumentPreview=nt;exports.LEGAL_DOCUMENT_SECTIONS=Ue;exports.LEGAL_WHOLE_DOCUMENT_SECTIONS=Fe;exports.LogContainer=Te;exports.LogLine=Nt;exports.MINIMAL_PRESET=Oe;exports.SMOOTH_PRESET=ee;exports.SNAPPY_PRESET=bt;exports.SQUIGGLE_DOCUMENT_SECTIONS=Gt;exports.SQUIGGLE_STEPS=Vt;exports.SQUIGGLE_STEP_LOGS=Yt;exports.SQUIGGLE_SUBSTEP_LOGS=zt;exports.SQUIGGLE_WHOLE_DOCUMENT_SECTIONS=Bt;exports.STEP_ICON_MAP=Ie;exports.StepItem=rt;exports.SubStepItem=Je;exports.ThemeProvider=Me;exports.WholeDocumentContent=st;exports.WholeDocumentView=at;exports.createDocumentSection=Qt;exports.createStep=Ht;exports.createSubStep=qt;exports.getThemeSafelist=At;exports.resetStepCounter=Xt;exports.resolveContent=ue;exports.resolveTheme=et;exports.useAnimation=k;exports.useAnimationOptional=St;exports.useDocumentAssembly=Ge;exports.useReducedMotion=Xe;exports.useResponsiveLayout=pt;exports.useTheme=Dt;exports.useThemeOptional=$e;//# sourceMappingURL=index.js.map
|
|
43
43
|
//# sourceMappingURL=index.js.map
|