@chrisflippen/blueprint-document-assembly 3.1.0 → 3.3.0

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/dist/index.mjs CHANGED
@@ -1,43 +1,35 @@
1
- import {createContext,memo,useRef,useEffect,useState,useCallback,useMemo,forwardRef,useImperativeHandle,useContext}from'react';import {motion,AnimatePresence}from'motion/react';import {ChevronDown,ChevronRight,Terminal,Check,Stamp,Users,FileText,Shield,Loader2,Zap,DollarSign,Clock,X,Sparkles}from'lucide-react';import {jsxs,jsx,Fragment}from'react/jsx-runtime';/* Blueprint Document Assembly v3.1.0 | 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]=useState(eo);return 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=createContext(null);function Le({preset:t,children:e}){let n=Xe(),s=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 jsx(je.Provider,{value:s,children:e})}function k(){let t=useContext(je);return t||{preset:ee,reducedMotion:false,getTransition:e=>({duration:ee.durations[e]}),getSpring:e=>ee.springs[e]}}function St(){return useContext(je)}var Nt=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 jsxs(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&&jsx("span",{className:"text-muted-foreground text-[10px]",children:e.timestamp}),jsx("span",{className:`${a.color} font-bold`,children:a.symbol}),jsx("span",{className:"flex-1 text-[11px]",children:e.message})]})}),Te=memo(function({logs:e,expanded:n,onToggle:s,compact:o=false,classNames:a,labels:l,renderLog:i}){let c=useRef(null);if(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 jsxs(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:[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?jsx(ChevronDown,{className:"w-3 h-3"}):jsx(ChevronRight,{className:"w-3 h-3"}),jsx(Terminal,{className:o?"w-2.5 h-2.5":"w-3 h-3"}),jsxs("span",{children:[g," (",e.length,v,")"]})]}),jsx(AnimatePresence,{children:n&&jsx(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: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=jsx(Nt,{log:f,compact:o,classNames:a},f.id);return i?jsx("div",{children:i(f,u)},f.id):u})})})})]})});var Je=memo(function({substep:e,delay:n,classNames:s,renderSubstep:o}){let[a,l]=useState(false),i=useCallback(()=>l(v=>!v),[]),{reducedMotion:c,preset:r}=k(),g=jsx(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:jsxs("div",{className:"flex items-start gap-2.5",children:[jsx(motion.div,{className:`
3
- w-4 h-4 mt-0.5 rounded border-2 flex items-center justify-center flex-shrink-0 transition-all duration-500
4
- ${e.completed?"bg-emerald-500 border-emerald-500":"border-border bg-background"}
5
- `,children:e.completed&&jsx(Check,{className:"w-3 h-3 text-white"})}),jsxs("div",{className:"flex-1 min-w-0",children:[jsx("span",{className:`
6
- text-sm font-mono transition-colors duration-500
7
- ${e.completed?"text-foreground":"text-muted-foreground"}
8
- `,children:e.label}),jsx(Te,{logs:e.logs,expanded:a,onToggle:i,compact:true,classNames:s})]})]})});return o?jsx(Fragment,{children:o(e,g)}):g});var Ze=[{id:"verify",number:1,title:"Document Verification",status:"pending",icon: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: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: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: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: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:FileText,identity:Shield,statement:FileText,witness:Users,notary: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=createContext(null);function Me({theme:t,children:e}){let n=useMemo(()=>et(t),[t]);return jsx(tt.Provider,{value:n,children:e})}function Dt(){let t=useContext(tt);if(!t)throw new Error("useTheme must be used within a ThemeProvider");return t}function $e(){return useContext(tt)}var rt=memo(function({step:e,isLast:n,showRipple:s,classNames:o,theme:a,labels:l,renderStep:i}){let[c,r]=useState(false),[g,v]=useState(false),f=$e(),{preset:u,reducedMotion:O}=k();useEffect(()=>{e.status==="processing"&&r(true);},[e.status]),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=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=useMemo(()=>e.substeps?.filter(b=>b.completed).length||0,[e.substeps]),U=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=jsxs("div",{className:"relative",children:[jsx(AnimatePresence,{children:s&&jsx(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"}})}),jsxs(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:[jsx("div",{className:`
9
- relative p-5 rounded-lg transition-all duration-500 border-2
10
- ${N.cardBg} ${N.border} ${o?.step||""}
11
- `,children:jsxs("div",{className:"flex items-start gap-4",children:[jsx(motion.div,{className:`
12
- w-11 h-11 rounded-full flex items-center justify-center flex-shrink-0
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"?jsx(Check,{className:"w-5 h-5 text-white"}):e.status==="processing"?jsx(Loader2,{className:"w-5 h-5 text-white animate-spin"}):e.status==="active"?jsx(I,{className:"w-5 h-5 text-white"}):jsx("span",{className:"text-sm text-muted-foreground font-semibold",children:e.number})}),jsxs("div",{className:"flex-1 min-w-0",children:[jsx("h3",{className:`text-base font-semibold transition-colors duration-500 ${N.textColor}`,children:e.title}),jsxs("div",{className:"flex items-center gap-2 mt-1",children:[jsxs("p",{className:"text-xs text-muted-foreground font-mono",children:[$,e.number.toString().padStart(2,"0")]}),e.status==="completed"&&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&&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})]}),jsx(AnimatePresence,{children:c&&e.substeps&&jsx(motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.4},className:"overflow-hidden",children: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)=>jsx(Je,{substep:b,delay:G*.15,classNames:o},b.id))})})})]})]})}),jsx(Te,{logs:e.logs,expanded:g,onToggle:()=>v(!g),classNames:o,labels:l}),!n&&jsx(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?jsx(Fragment,{children:i(e,x)}):x});function te({text:t,delay:e,className:n=""}){let[s,o]=useState(""),[a,l]=useState(true),i=useRef(null),c=useRef(null),{reducedMotion:r,preset:g}=k();return 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]),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);}},[]),jsxs("div",{className:`${n} font-serif`,style:{lineHeight:"1.8"},"aria-busy":s.length<t.length,children:[s,a&&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
- 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
- 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]
1
+ import {createContext,memo,useRef,useEffect,useState,useCallback,useMemo,forwardRef,useImperativeHandle,useContext,Component}from'react';import {motion,AnimatePresence}from'motion/react';import {ChevronDown,ChevronRight,Terminal,Check,Stamp,Users,FileText,Shield,AlertCircle,Loader2,Zap,DollarSign,Clock,X,Sparkles}from'lucide-react';import {jsxs,jsx,Fragment}from'react/jsx-runtime';import {createPortal}from'react-dom';/* Blueprint Document Assembly v3.3.0 | MIT License */
2
+ var vo=Object.defineProperty;var So=(t,e,o)=>e in t?vo(t,e,{enumerable:true,configurable:true,writable:true,value:o}):t[e]=o;var kt=(t,e,o)=>So(t,e+"",o);var Mt="(prefers-reduced-motion: reduce)";function No(){return typeof window>"u"?false:window.matchMedia(Mt).matches}function ut(){let[t,e]=useState(No);return useEffect(()=>{let o=window.matchMedia(Mt);e(o.matches);let d=r=>e(r.matches);return o.addEventListener("change",d),()=>o.removeEventListener("change",d)},[]),t}var me={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}},Ft={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}},Gt={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}},Xe={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 pt=createContext(null);function Ke({preset:t,children:e}){let o=ut(),d=useMemo(()=>{let r=o?Xe:t??me;return {preset:r,reducedMotion:o,getTransition:i=>({duration:r.durations[i]}),getSpring:i=>o?{duration:r.durations.fast}:r.springs[i]}},[t,o]);return jsx(pt.Provider,{value:d,children:e})}function U(){let t=useContext(pt);return t||{preset:me,reducedMotion:false,getTransition:e=>({duration:me.durations[e]}),getSpring:e=>me.springs[e]}}function Bt(){return useContext(pt)}var Wt=memo(function({log:e,compact:o=false,classNames:d}){let i={info:{color:"var(--bda-secondary)",symbol:"\u2192"},success:{color:"var(--bda-success)",symbol:"\u2713"},warning:{color:"var(--bda-warning)",symbol:"\u26A0"},processing:{color:"var(--bda-processing)",symbol:"\u27F3"}}[e.level],{reducedMotion:l}=U();return jsxs(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 ${d?.log||""}`,style:{color:"color-mix(in srgb, var(--bda-fg) 80%, transparent)"},children:[!o&&jsx("span",{className:"text-[10px]",style:{color:"var(--bda-muted-fg)"},children:e.timestamp}),jsx("span",{className:"font-bold",style:{color:i.color},children:i.symbol}),jsx("span",{className:"flex-1 text-[11px]",children:e.message})]})}),Me=memo(function({logs:e,expanded:o,onToggle:d,compact:r=false,classNames:i,labels:l,renderLog:u}){let f=useRef(null);if(useEffect(()=>{f.current&&(f.current.scrollTop=f.current.scrollHeight);},[e]),e.length===0)return null;let{reducedMotion:a}=U(),S=r?l?.logLabelCompact??"LOG":l?.logLabel??"SYSTEM LOG",p=r?"":l?.logEntriesSuffix??" entries";return jsxs(motion.div,{role:"log","aria-live":"polite",initial:a?false:{opacity:0},animate:{opacity:1},transition:{duration:a?.1:.4},className:`${r?"mt-2":"mt-3 ml-14"} ${i?.logContainer||""}`,children:[jsxs("button",{onClick:d,"aria-expanded":o,"aria-label":`${S} - ${e.length} entries`,className:`flex items-center ${r?"gap-1.5":"gap-2"} text-xs font-mono transition-colors ${r?"":"px-2 py-1 rounded"} focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none rounded`,style:{color:"var(--bda-muted-fg)","--tw-ring-color":"var(--bda-primary)"},children:[o?jsx(ChevronDown,{className:"w-3 h-3"}):jsx(ChevronRight,{className:"w-3 h-3"}),jsx(Terminal,{className:r?"w-2.5 h-2.5":"w-3 h-3"}),jsxs("span",{children:[S," (",e.length,p,")"]})]}),jsx(AnimatePresence,{children:o&&jsx(motion.div,{initial:a?false:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:a?.1:.3},className:"overflow-hidden",children:jsx("div",{ref:f,className:`rounded-md p-2 font-mono text-xs ${r?"max-h-24":"max-h-32"} overflow-y-auto space-y-1 mt-2`,style:{background:"var(--bda-bg)",border:"1px solid color-mix(in srgb, var(--bda-border) 50%, transparent)"},children:e.map(x=>{let h=jsx(Wt,{log:x,compact:r,classNames:i},x.id);return u?jsx("div",{children:u(x,h)},x.id):h})})})})]})});var bt=memo(function({substep:e,delay:o,classNames:d,renderSubstep:r}){let[i,l]=useState(false),u=useCallback(()=>l(p=>!p),[]),{reducedMotion:f,preset:a}=U(),S=jsx(motion.div,{role:"listitem",initial:f?false:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:o,duration:a.durations.normal},className:"pl-3",children:jsxs("div",{className:"flex items-start gap-2.5",children:[jsx(motion.div,{className:"w-4 h-4 mt-0.5 rounded border-2 flex items-center justify-center flex-shrink-0 transition-all duration-500",style:e.completed?{background:"var(--bda-success)",borderColor:"var(--bda-success)"}:{borderColor:"var(--bda-border)",background:"var(--bda-bg)"},children:e.completed&&jsx(Check,{className:"w-3 h-3 text-white"})}),jsxs("div",{className:"flex-1 min-w-0",children:[jsx("span",{className:"text-sm font-mono transition-colors duration-500",style:{color:e.completed?"var(--bda-fg)":"var(--bda-muted-fg)"},children:e.label}),jsx(Me,{logs:e.logs,expanded:i,onToggle:u,compact:true,classNames:d})]})]})});return r?jsx(Fragment,{children:r(e,S)}):S});var gt=[{id:"verify",number:1,title:"Document Verification",status:"pending",icon: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: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: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: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: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:[]}],et={verify:FileText,identity:Shield,statement:FileText,witness:Users,notary:Stamp};var yt={primary:"#f97316",accent:"#ef4444",secondary:"#06b6d4",success:"#10b981",processing:"#8b5cf6",warning:"#f59e0b"};var vt={orange:"#f97316",red:"#ef4444",amber:"#f59e0b",yellow:"#eab308",lime:"#84cc16",green:"#22c55e",emerald:"#10b981",teal:"#14b8a6",cyan:"#06b6d4",sky:"#0ea5e9",blue:"#3b82f6",indigo:"#6366f1",violet:"#8b5cf6",purple:"#a855f7",fuchsia:"#d946ef",pink:"#ec4899",rose:"#f43f5e",slate:"#64748b",gray:"#6b7280",zinc:"#71717a",neutral:"#737373",stone:"#78716c"};function K(t){return vt[t]??t}function m(t,e,o="transparent"){return `color-mix(in srgb, ${t} ${e}%, ${o})`}function tt(t){let e=K(t.primary),o=K(t.accent),d=K(t.secondary),r=K(t.success),i=K(t.processing),l=K(t.warning);return {"--bda-primary":e,"--bda-accent":o,"--bda-success":r,"--bda-processing":i,"--bda-secondary":d,"--bda-warning":l,"--bda-bg":"var(--background, #ffffff)","--bda-fg":"var(--foreground, #0a0a0a)","--bda-muted":"var(--muted, #f4f4f5)","--bda-muted-fg":"var(--muted-foreground, #71717a)","--bda-border":"var(--border, #e4e4e7)"}}function Fe(t){let e=K(t);return {color:e,mutedBg:m(e,5),border:m(e,20)}}function Ge(t={}){let e={...yt,...t},o=Fe(e.primary),d=Fe(e.secondary),r=Fe(e.success),i=Fe(e.processing),l=Fe(e.warning),u=K(e.accent),f={completed:{color:r.color,mutedBg:r.mutedBg,border:m(r.color,30),iconGradient:`linear-gradient(to bottom right, ${r.color}, ${m(r.color,80,"#000")})`},active:{color:o.color,mutedBg:o.mutedBg,border:m(o.color,30),iconGradient:`linear-gradient(to bottom right, ${o.color}, ${u})`},processing:{color:i.color,mutedBg:i.mutedBg,border:m(i.color,30),iconGradient:`linear-gradient(to bottom right, ${i.color}, ${m(i.color,80,"#000")})`},pending:{color:"var(--bda-muted-fg)",mutedBg:"color-mix(in srgb, var(--bda-muted) 20%, transparent)",border:"var(--bda-border)",iconGradient:"none"},error:{color:l.color,mutedBg:l.mutedBg,border:m(l.color,30),iconGradient:`linear-gradient(to bottom right, ${l.color}, ${m(l.color,80,"#000")})`}},a={progress:`linear-gradient(to right, ${o.color}, ${u})`,title:`linear-gradient(to right, ${o.color}, ${u})`,completion:`linear-gradient(to right, ${o.color}, ${u}, ${r.color})`},S=tt(e);return {primary:o,secondary:d,success:r,processing:i,warning:l,stepStatus:f,gradients:a,cssVars:S}}function jt(t){return typeof console<"u"&&console.warn("[blueprint-document-assembly] getThemeSafelist() is deprecated and returns an empty array. CSS variables are now used instead of dynamic Tailwind classes. Safe to remove this call."),[]}var St=createContext(null);function ot({theme:t,children:e}){let o=useMemo(()=>Ge(t),[t]);return jsx(St.Provider,{value:o,children:e})}function Xt(){let t=useContext(St);if(!t)throw new Error("useTheme must be used within a ThemeProvider");return t}function rt(){return useContext(St)}var ht=memo(function({step:e,isLast:o,showRipple:d,classNames:r,theme:i,labels:l,renderStep:u}){let[f,a]=useState(false),[S,p]=useState(false),x=rt(),{preset:h,reducedMotion:B}=U();useEffect(()=>{e.status==="processing"&&a(true);},[e.status]),useEffect(()=>{if(e.status==="completed"){let T=setTimeout(()=>{a(false);},800);return ()=>clearTimeout(T)}},[e.status]);let I=e.icon||et[e.id]||et.verify,O=useMemo(()=>{if(x)return x.stepStatus[e.status];switch(e.status){case "completed":return {color:"var(--bda-success, #10b981)",mutedBg:m("var(--bda-success, #10b981)",5),border:m("var(--bda-success, #10b981)",30),iconGradient:"linear-gradient(to bottom right, var(--bda-success, #10b981), #059669)"};case "active":return {color:"var(--bda-primary, #f97316)",mutedBg:m("var(--bda-primary, #f97316)",5),border:m("var(--bda-primary, #f97316)",30),iconGradient:"linear-gradient(to bottom right, var(--bda-primary, #f97316), var(--bda-accent, #ef4444))"};case "processing":return {color:"var(--bda-processing, #8b5cf6)",mutedBg:m("var(--bda-processing, #8b5cf6)",5),border:m("var(--bda-processing, #8b5cf6)",30),iconGradient:"linear-gradient(to bottom right, var(--bda-processing, #8b5cf6), #7c3aed)"};case "error":return {color:"var(--bda-warning, #f59e0b)",mutedBg:m("var(--bda-warning, #f59e0b)",5),border:m("var(--bda-warning, #f59e0b)",30),iconGradient:"linear-gradient(to bottom right, var(--bda-warning, #f59e0b), #d97706)"};default:return {color:"var(--bda-muted-fg, #71717a)",mutedBg:"color-mix(in srgb, var(--bda-muted, #f4f4f5) 20%, transparent)",border:"var(--bda-border, #e4e4e7)",iconGradient:"none"}}},[e.status,x]),z=useMemo(()=>e.substeps?.filter(T=>T.completed).length||0,[e.substeps]),$=useMemo(()=>e.substeps?.length||0,[e.substeps]),A=l?.stepPrefix??"STEP_",M=l?.stepDone??"\u2713 DONE",H=l?.substepCount?l.substepCount(z,$):`${z}/${$} substeps`,J=jsxs("div",{className:"relative",children:[jsx(AnimatePresence,{children:d&&jsx(motion.div,{className:"absolute inset-0 rounded-lg",style:{background:m("var(--bda-success)",20)},initial:{scale:1,opacity:.4},animate:{scale:1.05,opacity:0},exit:{opacity:0},transition:{duration:.8,ease:"easeOut"}})}),jsxs(motion.div,{initial:B?false:{opacity:0,x:h.entrance.x},animate:{opacity:1,x:0},transition:{delay:e.number*h.stagger.step,duration:h.durations.normal},className:"relative",children:[jsx("div",{className:`relative p-5 rounded-lg transition-all duration-500 border-2 ${r?.step||""}`,style:{background:O.mutedBg,borderColor:O.border},children:jsxs("div",{className:"flex items-start gap-4",children:[jsx(motion.div,{className:`w-11 h-11 rounded-full flex items-center justify-center flex-shrink-0 border-2 transition-all duration-500 ${r?.stepIcon||""}`,style:{background:O.iconGradient,borderColor:"transparent"},initial:{scale:.8},animate:{scale:1},transition:B?{duration:.1}:{delay:e.number*h.stagger.step+.2,...h.springs.stiff},children:e.status==="completed"?jsx(Check,{className:"w-5 h-5 text-white"}):e.status==="error"?jsx(AlertCircle,{className:"w-5 h-5 text-white"}):e.status==="processing"?jsx(Loader2,{className:"w-5 h-5 text-white animate-spin"}):e.status==="active"?jsx(I,{className:"w-5 h-5 text-white"}):jsx("span",{className:"text-sm font-semibold",style:{color:"var(--bda-muted-fg)"},children:e.number})}),jsxs("div",{className:"flex-1 min-w-0",children:[jsx("h3",{className:"text-base font-semibold transition-colors duration-500",style:{color:O.color},children:e.title}),jsxs("div",{className:"flex items-center gap-2 mt-1",children:[jsxs("p",{className:"text-xs font-mono",style:{color:"var(--bda-muted-fg)"},children:[A,e.number.toString().padStart(2,"0")]}),e.status==="completed"&&jsx("span",{className:"text-[10px] px-2 py-0.5 rounded-full font-mono",style:{background:m("var(--bda-success)",10),color:"var(--bda-success)",border:`1px solid ${m("var(--bda-success)",20)}`},children:M}),e.status==="completed"&&e.substeps&&jsx("span",{className:"text-[10px] px-2 py-0.5 rounded-full font-mono",style:{background:m("var(--bda-success)",10),color:"var(--bda-success)"},children:H}),e.status==="error"&&jsx("span",{className:"text-[10px] px-2 py-0.5 rounded-full font-mono",style:{background:m("var(--bda-warning)",10),color:"var(--bda-warning)",border:`1px solid ${m("var(--bda-warning)",20)}`},children:"ERROR"})]}),e.status==="error"&&e.errorMessage&&jsx("p",{className:"text-xs mt-1.5 font-mono",style:{color:"var(--bda-warning)"},children:e.errorMessage}),jsx(AnimatePresence,{children:f&&e.substeps&&jsx(motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.4},className:"overflow-hidden",children:jsx("div",{role:"list","aria-label":"Substeps",className:`mt-4 space-y-3 pl-3 border-l-2 ${r?.substep||""}`,style:{borderColor:m("var(--bda-processing)",20)},children:e.substeps.map((T,E)=>jsx(bt,{substep:T,delay:E*.15,classNames:r},T.id))})})})]})]})}),jsx(Me,{logs:e.logs,expanded:S,onToggle:()=>p(!S),classNames:r,labels:l}),!o&&jsx(motion.div,{className:"absolute left-[22px] top-full h-6 w-0.5",initial:{scaleY:0},animate:{scaleY:1},transition:{delay:e.number*h.stagger.step+.4,duration:h.durations.fast},style:{transformOrigin:"top",backgroundColor:"var(--bda-border)"}})]})]});return u?jsx(Fragment,{children:u(e,J)}):J});function Be(t,e){if(typeof document>"u"||document.getElementById(t))return;let o=document.createElement("style");o.id=t,o.textContent=e,document.head.appendChild(o);}function de({text:t,delay:e,className:o=""}){let[d,r]=useState(""),[i,l]=useState(true),u=useRef(null),f=useRef(null),{reducedMotion:a,preset:S}=U();return useEffect(()=>{if(a){r(t),l(false);return}r(""),l(true);let p=S.typewriter.charDelay,x=setTimeout(()=>{let h=0;u.current=setInterval(()=>{h<=t.length?(r(t.slice(0,h)),h++):(u.current&&clearInterval(u.current),u.current=null,f.current=setTimeout(()=>l(false),300));},p);},e*1e3);return ()=>{clearTimeout(x),u.current&&(clearInterval(u.current),u.current=null),f.current&&(clearTimeout(f.current),f.current=null);}},[t,e,a,S.typewriter.charDelay]),useEffect(()=>{Be("bda-blink-keyframes","@keyframes bda-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }");},[]),jsxs("div",{className:`${o} font-serif`,style:{lineHeight:"1.8"},"aria-busy":d.length<t.length,children:[d,i&&jsx("span",{className:"inline-block w-0.5 h-4 ml-1",style:{backgroundColor:"var(--bda-secondary)",animation:`bda-blink ${S.typewriter.cursorBlink}ms step-end infinite`}})]})}var st=[{id:"header",title:"",borderColor:"cyan",className:"border-b-2 pb-6",subsections:[{revealOnSubstep:"v1",content:"SWORN AFFIDAVIT",className:"text-3xl font-extrabold tracking-widest text-center",animation:"typewriter"},{revealOnSubstep:"v2",content:"STATE OF [JURISDICTION]",className:"text-sm tracking-widest text-center",animation:"typewriter"},{revealOnSubstep:"v2",content:"COUNTY OF [COUNTY NAME]",className:"text-sm tracking-widest text-center",animation:"typewriter"},{revealOnSubstep:"v4",content:"__CASE_NUMBER__",className:"text-base font-bold tracking-wider mt-2 text-center",animation:"typewriter"}]},{id:"affiant",title:"AFFIANT INFORMATION:",borderColor:"cyan",className:"border-l-[6px] pl-6 py-4",subsections:[{revealOnSubstep:"i1",content:"I, [FULL NAME], being duly sworn, depose and state:",className:"text-base leading-relaxed mb-4 italic",animation:"typewriter"},{revealOnSubstep:"i2",content:`Address: [STREET ADDRESS]
3
+ City/State: [CITY, STATE ZIP]`,className:"space-y-2 ml-8 text-sm",animation:"typewriter"},{revealOnSubstep:"i3",content:"DOB: [DATE OF BIRTH]",className:"space-y-2 ml-8 text-sm mt-2",animation:"typewriter"},{revealOnSubstep:"i4",content:"ID Verified: \u2713 CONFIRMED",className:"font-bold ml-8 text-sm mt-2",animation:"typewriter"}]},{id:"statement",title:"STATEMENT OF FACTS:",borderColor:"orange",className:"border-l-[6px] pl-6 py-4",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 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 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 mb-5",animation:"typewriter"},{revealOnSubstep:"s4",content:"4. That I understand the penalties for perjury under law.",className:"ml-8 text-base leading-loose",animation:"typewriter"}]},{id:"witness",title:"WITNESS ATTESTATION:",borderColor:"purple",className:"border-l-[6px] pl-6 py-4",subsections:[{revealOnSubstep:"w1",content:"",className:"",animation:"fade"},{revealOnSubstep:"w2",content:`Witnessed by: [WITNESS NAME]
4
+ Witness Address: [ADDRESS]`,className:"space-y-2 text-sm",animation:"typewriter"},{revealOnSubstep:"w4",content:"__WITNESS_SIGNATURE__",className:"mt-8 pt-6 border-t",animation:"fade"}]},{id:"notary",title:"NOTARY PUBLIC CERTIFICATION:",borderColor:"emerald",className:"border-2 rounded-lg p-6 relative overflow-hidden",subsections:[{revealOnSubstep:"n1",content:"__NOTARY_DATE__",className:"leading-relaxed text-sm",animation:"typewriter"},{revealOnSubstep:"n2",content:`Notary Public: [NOTARY NAME]
17
5
  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 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__"?jsxs("div",{className:e,children:[jsx(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"}}),jsx(te,{text:"Witness Signature",delay:o+.5,className:"text-xs text-gray-500 italic"}),jsx(te,{text:`Date: ${new Date().toLocaleDateString()}`,delay:o+.7,className:"mt-4 text-sm"})]}):t==="__NOTARY_SEAL__"?jsxs(Fragment,{children:[jsxs(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:[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)"}}),jsx("div",{className:"absolute inset-2 rounded-full border-2 border-emerald-500"}),jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:jsx(Stamp,{className:"w-12 h-12 text-emerald-600"})})]}),jsx(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__"?jsxs("div",{className:e,children:[jsx(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"}}),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 jsx(AnimatePresence,{children:jsxs(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&&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 jsx("div",{children:u},c)}let f=ue(r,n).split(`
19
- `);return i.animation==="typewriter"||!i.animation?jsx(motion.div,{initial:o?false:{opacity:0},animate:{opacity:1},transition:{duration:o?.1:.6},children:jsx("div",{className:i.className||"",children:f.map((u,O)=>jsx(te,{text:u,delay:g+O*.2,className:i.className?.includes("text-center")?"text-center":""},O))})},c):jsx(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)=>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 jsx("div",{className:`relative max-w-4xl mx-auto ${s?.documentPreview||""}`,children:jsxs(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&&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")`}}),jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none opacity-[0.02] dark:opacity-[0.04]",children:jsx("div",{className:"text-9xl font-bold transform -rotate-45 select-none text-gray-600",children:o})}),jsx("div",{className:"relative p-16 space-y-10",style:{fontFamily:l},children:c.map(r=>i?jsx("div",{children:i(r,t)},r.id):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]
6
+ __COMMISSION_EXPIRES__`,className:"my-4 border-t pt-4 text-sm",animation:"typewriter"},{revealOnSubstep:"n3",content:"__NOTARY_SEAL__",className:"",animation:"fade"},{revealOnSubstep:"n4",content:"__NOTARY_SIGNATURE__",className:"mt-8 pt-4 text-sm",animation:"fade"}]}];function Ne(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 jo(t,e,o,d,r){return t==="__WITNESS_SIGNATURE__"?jsxs("div",{className:e,children:[jsx(motion.div,{className:"border-b-2 mb-2 w-4/5",initial:{scaleX:0},animate:{scaleX:1},transition:{delay:r+.3,duration:.7},style:{borderColor:"var(--bda-fg)",transformOrigin:"left"}}),jsx(de,{text:"Witness Signature",delay:r+.5,className:"text-xs text-gray-500 italic"}),jsx(de,{text:`Date: ${new Date().toLocaleDateString()}`,delay:r+.7,className:"mt-4 text-sm"})]}):t==="__NOTARY_SEAL__"?jsxs(Fragment,{children:[jsxs(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:[jsx("div",{className:"absolute inset-0 rounded-full border-[5px]",style:{borderColor:"var(--bda-success)",boxShadow:"inset 0 2px 8px rgba(0,0,0,0.3)"}}),jsx("div",{className:"absolute inset-2 rounded-full border-2",style:{borderColor:"var(--bda-success)"}}),jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:jsx(Stamp,{className:"w-12 h-12",style:{color:"var(--bda-success)"}})})]}),jsx(motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:1.9},className:"absolute bottom-4 left-6 px-3 py-1.5 rounded text-xs font-mono font-bold",style:{border:"2px solid color-mix(in srgb, var(--bda-success) 50%, transparent)",color:"var(--bda-success)",background:"color-mix(in srgb, var(--bda-success) 10%, transparent)"},children:"[OFFICIAL SEAL]"})]}):t==="__NOTARY_SIGNATURE__"?jsxs("div",{className:e,children:[jsx(motion.div,{className:"border-b-2 mb-2 w-3/4",initial:{scaleX:0},animate:{scaleX:1},transition:{delay:r+.5,duration:.7},style:{borderColor:"var(--bda-fg)",transformOrigin:"left"}}),jsx(de,{text:"Notary Signature",delay:r+.7,className:"text-xs text-gray-500 italic"})]}):null}function Xo({section:t,completedSubsteps:e,documentIds:o}){let d=t.subsections[0]?.revealOnSubstep;if(!d||!e.has(d))return null;let{reducedMotion:r}=U(),i={cyan:"var(--bda-secondary)",orange:"var(--bda-primary)",purple:"var(--bda-processing)",emerald:"var(--bda-success)"},l=i[t.borderColor]||"var(--bda-fg)",u=i[t.borderColor],f={...t.style,...u?{borderColor:`color-mix(in srgb, ${u} 40%, transparent)`}:{}};return t.style?.boxShadow&&u&&(f.boxShadow=t.style.boxShadow.replace(/rgba\([^)]+\)/,`color-mix(in srgb, ${u} 10%, transparent)`)),u&&t.className?.includes("bg-")&&(f.background=`color-mix(in srgb, ${u} 5%, transparent)`),jsx(AnimatePresence,{children:jsxs(motion.div,{initial:r?false:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:r?.1:.8},className:t.className||"",style:f,children:[t.title&&jsx("div",{style:{color:l},children:jsx(de,{text:t.title,delay:.2,className:"text-lg font-extrabold tracking-wide mb-5 uppercase"})}),t.subsections.map((a,S)=>{if(!e.has(a.revealOnSubstep))return null;let p=typeof a.content=="string"?a.content:"",x=.3+S*.3;if(p.startsWith("__")&&p.endsWith("__")){let I=jo(p,a.className||"",o,e,x);if(I)return jsx("div",{children:I},S)}let B=Ne(p,o).split(`
7
+ `);return a.animation==="typewriter"||!a.animation?jsx(motion.div,{initial:r?false:{opacity:0},animate:{opacity:1},transition:{duration:r?.1:.6},children:jsx("div",{className:a.className||"",children:B.map((I,O)=>jsx(de,{text:I,delay:x+O*.2,className:a.className?.includes("text-center")?"text-center":""},O))})},S):jsx(motion.div,{initial:r?false:{opacity:0,y:5},animate:{opacity:1,y:0},transition:{duration:r?.1:.6,delay:r?0:x},className:a.className||"",children:B.map((I,O)=>jsx("div",{children:I},O))},S)})]})})}function Nt({completedSubsteps:t,documentIds:e,sections:o,classNames:d,watermarkText:r="OFFICIAL",paperTexture:i=true,fontFamily:l='Georgia, "Times New Roman", Times, serif',renderSection:u}){let f=o??st;return jsx("div",{className:`relative max-w-4xl mx-auto ${d?.documentPreview||""}`,children:jsxs(motion.div,{className:`relative bg-gradient-to-br from-[#FDFDF8] to-[#F8F8F0] dark:from-gray-900 dark:to-gray-800 rounded-lg ${d?.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:[i&&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")`}}),jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none opacity-[0.02] dark:opacity-[0.04]",children:jsx("div",{className:"text-9xl font-bold transform -rotate-45 select-none text-gray-600",children:r})}),jsx("div",{className:"relative p-16 space-y-10",style:{fontFamily:l},children:f.map(a=>u?jsx("div",{children:u(a,t)},a.id):jsx(Xo,{section:a,completedSubsteps:t,documentIds:e},a.id))})]})})}var nt=[{id:"header",title:"",borderColor:"cyan",className:"border-b-2 pb-6",subsections:[{revealOnSubstep:"all",content:"SWORN AFFIDAVIT",className:"text-2xl font-extrabold tracking-widest text-center"},{revealOnSubstep:"all",content:"STATE OF [JURISDICTION]",className:"text-xs tracking-widest text-center"},{revealOnSubstep:"all",content:"COUNTY OF [COUNTY NAME]",className:"text-xs tracking-widest text-center"},{revealOnSubstep:"all",content:"__CASE_NUMBER__",className:"text-sm font-bold tracking-wider mt-2 text-center"}]},{id:"affiant",title:"AFFIANT INFORMATION:",borderColor:"cyan",className:"border-l-[6px] pl-6 py-4",subsections:[{revealOnSubstep:"all",content:"I, [FULL NAME], being duly sworn, depose and state:",className:"text-sm leading-relaxed mb-3 italic"},{revealOnSubstep:"all",content:`Address: [STREET ADDRESS]
20
8
  City/State: [CITY, STATE ZIP]
21
9
  DOB: [DATE OF BIRTH]
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.
10
+ ID Verified: \u2713 CONFIRMED`,className:"space-y-1 ml-8 text-xs"}]},{id:"statement",title:"STATEMENT OF FACTS:",borderColor:"orange",className:"border-l-[6px] 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.
23
11
  2. That on or about [DATE], the following events occurred: [DETAILED STATEMENT OF MATERIAL FACTS]
24
12
  3. That the information provided herein is true and correct to the best of my knowledge and belief.
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
- 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]
13
+ 4. That I understand the penalties for perjury under law.`,className:"space-y-3 ml-8 text-sm leading-loose"}]},{id:"witness",title:"WITNESS ATTESTATION:",borderColor:"purple",className:"border-l-[6px] pl-6 py-4",subsections:[{revealOnSubstep:"all",content:`Witnessed by: [WITNESS NAME]
14
+ Witness Address: [ADDRESS]`,className:"space-y-2 text-xs"},{revealOnSubstep:"all",content:"__WITNESS_SIGNATURE__",className:"mt-6 pt-4 border-t"}]},{id:"notary",title:"NOTARY PUBLIC CERTIFICATION:",borderColor:"emerald",className:"border-2 rounded-lg p-6 relative overflow-hidden",subsections:[{revealOnSubstep:"all",content:"__NOTARY_DATE__",className:"leading-relaxed text-xs"},{revealOnSubstep:"all",content:`Notary Public: [NOTARY NAME]
27
15
  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 Lo(t,e){return t==="__WITNESS_SIGNATURE__"?jsxs("div",{className:e,children:[jsx("div",{className:"border-b-2 border-gray-800 dark:border-gray-400 mb-2 w-3/4"}),jsx("div",{className:"text-xs text-gray-500 italic",children:"Witness Signature"}),jsxs("div",{className:"mt-3 text-xs",children:["Date: ",new Date().toLocaleDateString()]})]}):t==="__NOTARY_SEAL__"?jsxs(Fragment,{children:[jsxs("div",{className:"absolute right-8 top-1/2 -translate-y-1/2 w-24 h-24 opacity-15",children:[jsx("div",{className:"absolute inset-0 rounded-full border-[4px] border-emerald-600"}),jsx("div",{className:"absolute inset-2 rounded-full border-2 border-emerald-500"}),jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:jsx(Stamp,{className:"w-10 h-10 text-emerald-600"})})]}),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__"?jsxs("div",{className:e,children:[jsx("div",{className:"border-b-2 border-gray-800 dark:border-gray-400 mb-2 w-2/3"}),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 jsxs("div",{className:t.className||"",style:t.style,children:[t.title&&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 jsx("div",{children:r},a)}let c=ue(l,e).split(`
29
- `);return jsx("div",{className:o.className||"",children:c.map((r,g)=>jsx("div",{children:r},g))},a)})]})}function st({documentIds:t,sections:e,classNames:n,renderSection:s}){let o=e??Fe;return jsx("div",{className:`p-12 space-y-8 ${n?.wholeDocumentContent||""}`,style:{fontFamily:'Georgia, "Times New Roman", Times, serif'},children:o.map(a=>s?jsx("div",{children:s(a)},a.id):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=useRef(null),v=useRef(null);useEffect(()=>{if(!t)return;let I=setTimeout(()=>{g.current?.focus();},100);return ()=>clearTimeout(I)},[t]),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 jsx(AnimatePresence,{children:t&&jsxs(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:[jsx(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:jsx(X,{className:"w-5 h-5 text-muted-foreground group-hover:text-orange-500 transition-colors"})}),c&&jsxs(Fragment,{children:[jsx(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: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)=>jsx(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:jsx(Sparkles,{className:"w-6 h-6 text-orange-500"})},N))]}),jsxs(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:[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}),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"]})]}),jsx(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:jsxs("div",{className:"relative w-full max-w-3xl h-full",children:[jsx(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"}),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:[jsx(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}}),jsx("div",{ref:v,tabIndex:0,className:"h-full overflow-y-auto focus-visible:outline-none",children: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,$=useCallback(()=>e??Ze.map(m=>({...m,logs:[],substeps:m.substeps?.map(T=>({...T,logs:[],completed:false}))})),[e]),oe=n??it,re=s??lt,x=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]=useState($),[ye,ne]=useState(new Set),[xe,_e]=useState(new Set),[Be,A]=useState({tokens:0,cost:0,elapsed:0}),[We,H]=useState(null),[Ve,Se]=useState(0),[se,ve]=useState(false),[q,Ne]=useState(false),[V,Q]=useState(false),ae=useRef(null),w=useRef(true),X=useRef(false),C=useRef(0),Ae=useRef(i??{caseNumber:Date.now().toString().slice(-8),fileNumber:Date.now().toString().slice(-6)}).current,L=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=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=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;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]),useEffect(()=>()=>{w.current=false;},[]);let He=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=useCallback(()=>{if(q)return;let m=++C.current;Ne(true),Q(false),X.current=false,He(m);},[q,He]),he=useCallback(()=>{!q||V||(X.current=true,Q(true),N&&N());},[q,V,N]),qe=useCallback(()=>{V&&(X.current=false,Q(false),P&&P());},[V,P]),jt=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=useCallback(m=>{m<0||m>=b.length||Se(m);},[b.length]);return 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]=useState(Ut);return 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=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;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=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:[jsx("div",{className:"absolute inset-0 opacity-[0.03] dark:opacity-[0.08]",children:jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",children:[jsx("defs",{children:jsx("pattern",{id:"grid",width:"40",height:"40",patternUnits:"userSpaceOnUse",children:jsx("path",{d:"M 40 0 L 0 0 0 40",fill:"none",stroke:"currentColor",strokeWidth:"0.5",className:"text-orange-500"})})}),jsx("rect",{width:"100%",height:"100%",fill:"url(#grid)"})]})}),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:jsx(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"}})}),jsxs("div",{className:`relative z-10 flex ${Z==="vertical"?"flex-col":""} flex-1 overflow-hidden`,children:[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:jsxs("div",{className:"max-w-xl mx-auto",children:[jsxs(motion.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.6},className:"mb-12",children:[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}),jsxs("p",{className:"text-muted-foreground font-mono text-xs tracking-wider",children:["System Status: ",jsx("span",{className:`font-semibold ${q===H.length?"text-emerald-500":"text-orange-500"}`,children:q===H.length?A.statusComplete:A.statusProcessing})]})]}),jsx("div",{className:"space-y-6 relative",children:H.map((he,qe)=>jsx(rt,{step:he,isLast:qe===H.length-1,showRipple:ve===he.id,classNames:b,theme:G,labels:ye,renderStep:_e},he.id))})]})}),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:jsxs("div",{className:"h-full flex flex-col relative z-10",children:[jsx("div",{className:"p-6 border-b border-border/50 bg-background/50 backdrop-blur-sm",children:jsxs("div",{className:"flex items-center justify-between",children:[jsxs("div",{className:"flex items-center gap-3",children:[jsx("div",{className:"p-2 rounded-lg bg-cyan-500/10 border border-cyan-500/20",children:jsx(FileText,{className:"w-5 h-5 text-cyan-600 dark:text-cyan-400"})}),jsxs("div",{children:[jsx("h2",{className:"text-foreground font-semibold",children:A.documentTitle}),jsxs("p",{className:"text-muted-foreground text-xs mt-0.5 font-mono",children:[A.documentPrefix,Q.fileNumber,A.documentSuffix]})]})]}),V===100&&jsx(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: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})})]})}),jsx("div",{className:"flex-1 overflow-y-auto p-12",ref:ae,children:jsx(nt,{completedSections:Ve,completedSubsteps:Se,documentIds:Q,sections:xe,classNames:b,watermarkText:A.watermarkText,renderSection:Be})})]})})]}),jsx("div",{className:`relative z-20 border-t border-border/50 p-4 bg-background/95 backdrop-blur-sm ${b?.footer||""}`,children:jsxs("div",{className:`flex justify-center items-center gap-6 max-w-5xl mx-auto ${b?.metricsBar||""}`,children:[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:[jsx(Zap,{className:"w-4 h-4 text-orange-500"}),jsxs("div",{className:"flex flex-col",children:[jsx("span",{className:"text-[10px] text-muted-foreground font-mono uppercase tracking-wider",children:A.metricsTokens}),jsx("span",{className:"text-base font-bold text-orange-600 dark:text-orange-400 tabular-nums",children:se.tokens.toLocaleString()})]})]}),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:[jsx(DollarSign,{className:"w-4 h-4 text-emerald-500"}),jsxs("div",{className:"flex flex-col",children:[jsx("span",{className:"text-[10px] text-muted-foreground font-mono uppercase tracking-wider",children:A.metricsCost}),jsxs("span",{className:"text-base font-bold text-emerald-600 dark:text-emerald-400 tabular-nums",children:["$",se.cost.toFixed(4)]})]})]}),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:[jsx(Clock,{className:"w-4 h-4 text-purple-500"}),jsxs("div",{className:"flex flex-col",children:[jsx("span",{className:"text-[10px] text-muted-foreground font-mono uppercase tracking-wider",children:A.metricsElapsed}),jsxs("span",{className:"text-base font-bold text-purple-600 dark:text-purple-400 tabular-nums",children:[se.elapsed.toFixed(1),"s"]})]})]})]})}),jsx(at,{show:Ne,onClose:()=>De(false),documentIds:Q,metrics:se,classNames:b,labels:ye})]});return v&&(j=jsx(Le,{preset:v,children:j})),e.theme&&(j=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
- ~~~~~/~~~~~: [~~~~, ~~~~~ ~~~]`,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
- ~~~~~~~ ~~~~~~~: [~~~~~~~]`,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:`~~~~~~ ~~~~~~: [~~~~~~ ~~~~]
16
+ __COMMISSION_EXPIRES__`,className:"my-3 border-t pt-3 space-y-1 text-xs"},{revealOnSubstep:"all",content:"__NOTARY_SIGNATURE__",className:"mt-6 pt-3 text-xs"},{revealOnSubstep:"all",content:"__NOTARY_SEAL__",className:""}]}];function Zo(t,e){return t==="__WITNESS_SIGNATURE__"?jsxs("div",{className:e,children:[jsx("div",{className:"border-b-2 mb-2 w-3/4",style:{borderColor:"var(--bda-fg)"}}),jsx("div",{className:"text-xs text-gray-500 italic",children:"Witness Signature"}),jsxs("div",{className:"mt-3 text-xs",children:["Date: ",new Date().toLocaleDateString()]})]}):t==="__NOTARY_SEAL__"?jsxs(Fragment,{children:[jsxs("div",{className:"absolute right-8 top-1/2 -translate-y-1/2 w-24 h-24 opacity-15",children:[jsx("div",{className:"absolute inset-0 rounded-full border-[4px]",style:{borderColor:"var(--bda-success)"}}),jsx("div",{className:"absolute inset-2 rounded-full border-2",style:{borderColor:"var(--bda-success)"}}),jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:jsx(Stamp,{className:"w-10 h-10",style:{color:"var(--bda-success)"}})})]}),jsx("div",{className:"absolute bottom-4 left-6 px-3 py-1.5 rounded text-xs font-mono font-bold",style:{border:"2px solid color-mix(in srgb, var(--bda-success) 50%, transparent)",color:"var(--bda-success)",background:"color-mix(in srgb, var(--bda-success) 10%, transparent)"},children:"[OFFICIAL SEAL]"})]}):t==="__NOTARY_SIGNATURE__"?jsxs("div",{className:e,children:[jsx("div",{className:"border-b-2 mb-2 w-2/3",style:{borderColor:"var(--bda-fg)"}}),jsx("div",{className:"text-xs text-gray-500 italic",children:"Notary Signature"})]}):null}function er({section:t,documentIds:e}){let o={cyan:"var(--bda-secondary)",orange:"var(--bda-primary)",purple:"var(--bda-processing)",emerald:"var(--bda-success)"},d=o[t.borderColor]||"var(--bda-fg)",r=o[t.borderColor],i={...t.style,...r?{borderColor:`color-mix(in srgb, ${r} 40%, transparent)`}:{}};return t.style?.boxShadow&&r&&(i.boxShadow=t.style.boxShadow.replace(/rgba\([^)]+\)/,`color-mix(in srgb, ${r} 10%, transparent)`)),r&&t.className?.includes("bg-")&&(i.background=`color-mix(in srgb, ${r} 5%, transparent)`),jsxs("div",{className:t.className||"",style:i,children:[t.title&&jsx("div",{style:{color:d},className:"text-base font-extrabold tracking-wide mb-4 uppercase",children:t.title}),t.subsections.map((l,u)=>{let f=typeof l.content=="string"?l.content:"";if(f.startsWith("__")&&f.endsWith("__")){let p=Zo(f,l.className||"");if(p)return jsx("div",{children:p},u)}let S=Ne(f,e).split(`
17
+ `);return jsx("div",{className:l.className||"",children:S.map((p,x)=>jsx("div",{children:p},x))},u)})]})}function Tt({documentIds:t,sections:e,classNames:o,renderSection:d,contentRef:r}){let i=e??nt;return jsx("div",{ref:r,className:`p-12 space-y-8 ${o?.wholeDocumentContent||""}`,style:{fontFamily:'Georgia, "Times New Roman", Times, serif'},children:i.map(l=>d?jsx("div",{children:d(l)},l.id):jsx(er,{section:l,documentIds:t},l.id))})}function wt({show:t,onClose:e,documentIds:o,metrics:d,classNames:r,labels:i,celebrationTitle:l,sparkleCount:u=12,celebrationEnabled:f=true,portalTarget:a,contentRef:S}){let{reducedMotion:p}=U(),x=useRef(null),h=useRef(null);useEffect(()=>{Be("bda-hover-styles",`
18
+ .bda-close-btn:hover { border-color: color-mix(in srgb, var(--bda-primary) 50%, transparent) !important; }
19
+ .bda-close-icon { transition: color 0.15s; }
20
+ .bda-close-btn:hover .bda-close-icon { color: var(--bda-primary) !important; }
21
+ `);},[]),useEffect(()=>{if(!t)return;let $=setTimeout(()=>{x.current?.focus();},100);return ()=>clearTimeout($)},[t]),useEffect(()=>{if(!t)return;let $=A=>{if(A.key==="Escape"){e();return}if(A.key==="Tab"){let M=[x.current,h.current].filter(Boolean);if(M.length===0)return;let H=M[0],J=M[M.length-1];A.shiftKey?document.activeElement===H&&(A.preventDefault(),J.focus()):document.activeElement===J&&(A.preventDefault(),H.focus());}};return document.addEventListener("keydown",$),()=>document.removeEventListener("keydown",$)},[t,e]);let B=l??i?.completionTitle??"Document Assembly Complete",I=i?.documentPrefix??"LEGAL-",O=i?.documentSuffix??".pdf",z=jsx(AnimatePresence,{children:t&&jsxs(motion.div,{role:"dialog","aria-modal":"true","aria-label":B,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.5},className:`${a?"fixed":"absolute"} inset-0 z-50 backdrop-blur-sm ${r?.wholeDocumentView||""}`,style:{background:"color-mix(in srgb, var(--bda-bg) 98%, transparent)"},children:[jsx(motion.button,{ref:x,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 border-2 transition-all shadow-lg group bda-close-btn focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",style:{background:"var(--bda-bg)",borderColor:"var(--bda-border)","--tw-ring-color":"var(--bda-primary)"},children:jsx(X,{className:"w-5 h-5 bda-close-icon",style:{color:"var(--bda-muted-fg)"}})}),f&&jsxs(Fragment,{children:[jsx(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:jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to bottom right, color-mix(in srgb, var(--bda-primary) 5%, transparent), transparent, color-mix(in srgb, var(--bda-success) 5%, transparent))"}})}),!p&&[...Array(u)].map(($,A)=>jsx(motion.div,{initial:{opacity:0,scale:0,x:"50%",y:"50%"},animate:{opacity:[0,1,0],scale:[0,1,0],x:`${50+Math.cos(A/u*Math.PI*2)*40}%`,y:`${50+Math.sin(A/u*Math.PI*2)*40}%`},transition:{duration:1.5,delay:A*.1,ease:"easeOut"},className:"absolute top-1/2 left-1/2 pointer-events-none",children:jsx(Sparkles,{className:"w-6 h-6",style:{color:"var(--bda-primary)"}})},A))]}),jsxs(motion.div,{initial:p?false:{opacity:0,y:-30},animate:{opacity:1,y:0},transition:{delay:p?0:.8,duration:p?.1:.6},className:"absolute top-8 left-1/2 -translate-x-1/2 z-50 text-center",children:[jsx("h2",{className:"text-3xl font-bold mb-2",style:{backgroundImage:"linear-gradient(to right, var(--bda-primary), var(--bda-accent, var(--bda-primary)), var(--bda-success))",WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:B}),jsxs("p",{className:"text-sm font-mono",style:{color:"var(--bda-muted-fg)"},children:[I,o.fileNumber,O," ",d.tokens.toLocaleString()," tokens $",d.cost.toFixed(4)," ",d.elapsed.toFixed(1),"s"]})]}),jsx(motion.div,{initial:p?{opacity:0}:{scale:1.5,opacity:0,y:100},animate:p?{opacity:1}:{scale:1,opacity:1,y:0},transition:p?{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:jsxs("div",{className:"relative w-full max-w-3xl h-full",children:[jsx(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"}),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",style:{boxShadow:"0 30px 60px -12px rgba(0, 0, 0, 0.35), 0 20px 25px -5px rgba(0, 0, 0, 0.15)",borderColor:"color-mix(in srgb, var(--bda-border) 50%, transparent)"},children:[jsx(motion.div,{className:"absolute inset-0 rounded-lg pointer-events-none z-10",style:{boxShadow:"0 0 60px color-mix(in srgb, var(--bda-primary) 30%, transparent)"},initial:{opacity:0},animate:{opacity:[0,1,.7]},transition:{duration:2,times:[0,.5,1],delay:2}}),jsx("div",{ref:h,tabIndex:0,className:"h-full overflow-y-auto focus-visible:outline-none",children:jsx(Tt,{documentIds:o,classNames:r,contentRef:S})})]})]})})]})});return a?createPortal(z,a):z}var $e=class extends Component{constructor(o){super(o);kt(this,"reset",()=>{this.setState({hasError:false,error:null});});this.state={hasError:false,error:null};}static getDerivedStateFromError(o){return {hasError:true,error:o}}componentDidCatch(o,d){this.props.onError?.(o,d);}render(){if(this.state.hasError&&this.state.error){let{fallback:o}=this.props;return typeof o=="function"?o(this.state.error,this.reset):o||jsxs("div",{style:{padding:"2rem",borderRadius:"0.5rem",border:"1px solid var(--bda-warning, #f59e0b)",background:"color-mix(in srgb, var(--bda-warning, #f59e0b) 5%, transparent)",color:"var(--bda-fg, #18181b)",fontFamily:"system-ui, sans-serif"},children:[jsx("h3",{style:{margin:"0 0 0.5rem 0",fontSize:"1rem",fontWeight:600,color:"var(--bda-warning, #f59e0b)"},children:"Something went wrong"}),jsx("p",{style:{margin:"0 0 1rem 0",fontSize:"0.875rem",color:"var(--bda-muted-fg, #71717a)"},children:this.state.error.message}),jsx("button",{onClick:this.reset,style:{padding:"0.5rem 1rem",borderRadius:"0.375rem",border:"1px solid var(--bda-border, #e4e4e7)",background:"var(--bda-bg, #ffffff)",color:"var(--bda-fg, #18181b)",fontSize:"0.875rem",cursor:"pointer"},children:"Try again"})]})}return this.props.children}};var _t={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"]]},Dt={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 at(t={}){let{steps:e,stepLogs:o,substepLogs:d,autoStart:r=true,autoScroll:i=true,showWholeDocumentView:l=true,documentIds:u,animationSpeed:f=1,animationTimings:a,onStepStart:S,onStepComplete:p,onSubstepComplete:x,onSectionReveal:h,onLogEntry:B,onComplete:I,onPause:O,onResume:z,onReset:$,externalMode:A,onError:M}=t,H=useCallback(()=>e??gt.map(s=>({...s,logs:[],substeps:s.substeps?.map(c=>({...c,logs:[],completed:false}))})),[e]),J=o??_t,T=d??Dt,E=useMemo(()=>({stepActivation:a?.stepActivation??800,substepDelay:a?.substepDelay??500,logStreamBase:a?.logStreamBase??250,logStreamVariance:a?.logStreamVariance??300,typewriterSpeed:a?.typewriterSpeed??25,sectionRevealDuration:a?.sectionRevealDuration??500,completionDelay:a?.completionDelay??400}),[a?.stepActivation,a?.substepDelay,a?.logStreamBase,a?.logStreamVariance,a?.typewriterSpeed,a?.sectionRevealDuration,a?.completionDelay]),[q,L]=useState(H),[Ce,ue]=useState(new Set),[ae,pe]=useState(new Set),[te,V]=useState({tokens:0,cost:0,elapsed:0}),[it,re]=useState(null),[_e,ie]=useState(0),[F,De]=useState(false),[Q,Ae]=useState(false),[le,Z]=useState(false),fe=useRef(null),C=useRef(true),ee=useRef(false),_=useRef(0),Re=useRef(u??{caseNumber:Date.now().toString().slice(-8),fileNumber:Date.now().toString().slice(-6)}).current,W=useCallback(s=>new Promise((c,n)=>{let v=()=>{if(!C.current){n(new Error("unmounted"));return}if(ee.current){setTimeout(v,100);return}c();};setTimeout(v,s/f);}),[f]),be=useCallback((s,c,n,v)=>{let y=new Date().toLocaleTimeString("en-US",{hour12:false,hour:"2-digit",minute:"2-digit",second:"2-digit"}),b={id:`${Date.now()}-${Math.random()}`,timestamp:y,level:n,message:v};B&&B(b),L(G=>G.map((P,ve)=>ve===s?c&&P.substeps?{...P,substeps:P.substeps.map(Se=>Se.id===c?{...Se,logs:[...Se.logs,b]}:Se)}:{...P,logs:[...P.logs,b]}:P));},[B]),ge=useCallback(async(s,c,n)=>{for(let[v,y]of n){if(await W(E.logStreamBase+Math.random()*E.logStreamVariance),!C.current)return;be(s,c,v,y);}},[W,be,E.logStreamBase,E.logStreamVariance]),ce=q.length,Oe=q.filter(s=>s.status==="completed").length,Ve=ce>0?Oe/ce*100:0,lt=Oe===ce&&ce>0;useEffect(()=>{if(i&&fe.current&&ae.size>0){let s=setTimeout(()=>{fe.current?.scrollTo({top:fe.current.scrollHeight,behavior:"smooth"});},400/f);return ()=>clearTimeout(s)}},[ae,i,f]),useEffect(()=>()=>{C.current=false;},[]);let Le=useCallback(async s=>{let c=H();for(let n=0;n<c.length;n++){if(!C.current||_.current!==s)return;S&&S(c[n],n);try{await W(E.stepActivation);}catch{return}if(!C.current||_.current!==s)return;L(y=>y.map((b,G)=>G===n?{...b,status:"active"}:b)),ie(n);let v=J[c[n].id];if(v&&await ge(n,null,v),!C.current||_.current!==s)return;if(c[n].substeps){try{await W(E.substepDelay+100);}catch{return}if(!C.current||_.current!==s)return;L(y=>y.map((b,G)=>G===n?{...b,status:"processing"}:b));for(let y=0;y<c[n].substeps.length;y++){if(!C.current||_.current!==s)return;let b=c[n].substeps[y].id;try{await W(E.substepDelay);}catch{return}if(!C.current||_.current!==s)return;let G=T[b];if(G&&await ge(n,b,G),!C.current||_.current!==s)return;try{await W(E.completionDelay);}catch{return}if(!C.current||_.current!==s)return;L(P=>P.map((ve,Se)=>{if(Se===n&&ve.substeps){let dt=[...ve.substeps];return dt[y]={...dt[y],completed:true},{...ve,substeps:dt}}return ve})),V(P=>({tokens:P.tokens+Math.floor(Math.random()*150+50),cost:P.cost+Math.random()*.002,elapsed:P.elapsed+Math.random()*.8})),pe(P=>new Set([...P,b])),x&&x(b,n);try{await W(E.completionDelay-100);}catch{return}}}else try{await W(E.substepDelay+100);}catch{return}if(!C.current||_.current!==s)return;re(c[n].id);try{await W(E.completionDelay/2);}catch{return}if(!C.current||_.current!==s)return;if(L(y=>y.map((b,G)=>G===n?{...b,status:"completed"}:b)),c[n].documentSection){try{await W(E.sectionRevealDuration);}catch{return}if(!C.current||_.current!==s)return;ue(y=>{let b=new Set([...y,c[n].documentSection]);return h&&h(c[n].documentSection),b});}try{await W(E.completionDelay);}catch{return}if(!C.current||_.current!==s)return;re(null),V(y=>{let b={tokens:y.tokens+Math.floor(Math.random()*200+100),cost:y.cost+Math.random()*.005,elapsed:y.elapsed+Math.random()*1.2};return p&&p(c[n],b),b});}!C.current||_.current!==s||(l&&De(true),Ae(false),I&&V(n=>(I(n),n)));},[H,J,T,W,ge,l,a,S,p,x,h,I,E.stepActivation,E.substepDelay,E.completionDelay,E.sectionRevealDuration]),Ie=useCallback(()=>{if(Q)return;let s=++_.current;Ae(true),Z(false),ee.current=false,A||Le(s);},[Q,Le,A]),Ye=useCallback(()=>{!Q||le||(ee.current=true,Z(true),O&&O());},[Q,le,O]),He=useCallback(()=>{le&&(ee.current=false,Z(false),z&&z());},[le,z]),ze=useCallback(()=>{_.current++,ee.current=false,L(H()),ue(new Set),pe(new Set),V({tokens:0,cost:0,elapsed:0}),re(null),ie(0),De(false),Ae(false),Z(false),$&&$();},[H,$]),qe=useCallback(s=>{s<0||s>=q.length||ie(s);},[q.length]);useEffect(()=>{r&&!A&&Ie();},[]);let Qe=useCallback((s,c)=>{L(n=>n.map((v,y)=>{if(y!==s)return v;let b={...v,...c};return c.status==="completed"&&p&&p(b,te),c.status==="error"&&M&&M({stepIndex:s,stepId:v.id,message:c.errorMessage||"Unknown error"}),b}));},[p,M,te]),je=useCallback(s=>{L(c=>c.map((n,v)=>{if(v!==s)return n;let y={...n,status:"completed"};return p&&p(y,te),y})),L(c=>{let n=c[s];return n?.documentSection&&ue(v=>{let y=new Set([...v,n.documentSection]);return h&&h(n.documentSection),y}),c}),ie(c=>Math.max(c,s+1));},[p,h,te]),ct=useCallback((s,c)=>{L(n=>n.map((v,y)=>y!==s||!v.substeps?v:{...v,substeps:v.substeps.map(b=>b.id===c?{...b,completed:true}:b)})),pe(n=>new Set([...n,c])),x&&x(c,s);},[x]),ye=useCallback((s,c)=>{L(n=>n.map((v,y)=>y!==s?v:(M&&M({stepIndex:s,stepId:v.id,message:c}),{...v,status:"error",errorMessage:c})));},[M]),Pe=useCallback(s=>{L(c=>c.map((n,v)=>v===s?{...n,status:"pending",errorMessage:void 0}:n));},[]),ke=useCallback(s=>{V(c=>typeof s=="function"?s(c):{...c,...s});},[]),j=useCallback(()=>({steps:q.map(s=>({...s,substeps:s.substeps?.map(c=>({...c}))})),completedSections:[...Ce],completedSubsteps:[...ae],metrics:{...te},currentStep:_e,timestamp:Date.now()}),[q,Ce,ae,te,_e]),mt=useCallback(s=>{L(s.steps),ue(new Set(s.completedSections)),pe(new Set(s.completedSubsteps)),V(s.metrics),ie(s.currentStep);},[]);return {steps:q,completedSections:Ce,completedSubsteps:ae,metrics:te,showRipple:it,currentStep:_e,showWholeDocument:F,isRunning:Q,isPaused:le,isComplete:lt,progress:Ve,documentScrollRef:fe,documentIds:Re,start:Ie,pause:Ye,resume:He,reset:ze,goToStep:qe,setShowWholeDocument:De,addLog:be,updateStep:Qe,updateMetrics:ke,completeStep:je,completeSubstep:ct,setStepError:ye,retryStep:Pe,getSnapshot:j,restoreSnapshot:mt}}var Rt={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 Ot=768,no=1024;function so(){if(typeof window>"u")return {isMobile:false,isTablet:false,direction:"horizontal"};let t=window.innerWidth,e=t<Ot,o=t>=Ot&&t<no;return {isMobile:e,isTablet:o,direction:e?"vertical":"horizontal"}}function Lt(){let[t,e]=useState(so);return useEffect(()=>{let o=()=>e(so()),d=window.matchMedia(`(max-width: ${Ot-1}px)`),r=window.matchMedia(`(max-width: ${no-1}px)`),i=()=>o();return d.addEventListener("change",i),r.addEventListener("change",i),()=>{d.removeEventListener("change",i),r.removeEventListener("change",i);}},[]),t}var Sr=forwardRef(function(e,o){let{steps:d,stepLogs:r,substepLogs:i,autoScroll:l=true,showWholeDocumentView:u=true,documentIds:f,animationSpeed:a=1,autoStart:S=true,animationPreset:p,animationTimings:x,onComplete:h,onStepComplete:B,onStepStart:I,onSubstepComplete:O,onSectionReveal:z,onLogEntry:$,onPause:A,onResume:M,onReset:H,className:J,classNames:T,theme:E,labels:q,layout:L,documentSections:Ce,renderStep:ue,renderDocumentSection:ae,externalMode:pe,onError:te,portalTarget:V,visibility:it,renderSlots:re,errorFallback:_e,onRenderError:ie}=e,F={...Rt,...q},De=at({steps:d,stepLogs:r,substepLogs:i,autoStart:S,autoScroll:l,showWholeDocumentView:u,documentIds:f,animationSpeed:a,animationTimings:x,onStepStart:I,onStepComplete:B,onSubstepComplete:O,onSectionReveal:z,onLogEntry:$,onComplete:h,onPause:A,onResume:M,onReset:H,externalMode:pe,onError:te}),{steps:Q,completedSections:Ae,completedSubsteps:le,metrics:Z,showRipple:fe,currentStep:C,showWholeDocument:ee,progress:_,documentIds:Re,documentScrollRef:W,start:be,pause:ge,resume:ce,reset:Oe,goToStep:Ve,setShowWholeDocument:lt,addLog:Le,updateStep:Ie,updateMetrics:Ye,completeStep:He,completeSubstep:ze,setStepError:qe,retryStep:Qe}=De,{isMobile:je,direction:ct}=Lt(),ye=L?.direction??ct,Pe=useRef(null),ke=useRef(null),j={header:true,leftPanel:true,rightPanel:true,metricsFooter:true,progressBar:true,...it},mt=useMemo(()=>V?V===true?typeof document<"u"?document.body:null:typeof V=="string"?typeof document<"u"?document.querySelector(V):null:V:null,[V]);useImperativeHandle(o,()=>({start:be,pause:ge,resume:ce,reset:Oe,goToStep:Ve,updateStep:Ie,addLog:Le,updateMetrics:Ye,completeStep:He,completeSubstep:ze,setStepError:qe,retryStep:Qe,getDocumentContentRef:()=>ee?ke.current:Pe.current,getDocumentHTML:()=>(ee?ke.current:Pe.current)?.innerHTML??null}),[be,ge,ce,Oe,Ve,Ie,Le,Ye,He,ze,qe,Qe,ee]);let s=L?.leftWidth??"33.333%",c=L?.rightWidth??"66.667%",n=Ge(E),v={...n.cssVars},b=jsx($e,{fallback:_e,onError:ie,children:jsxs("div",{"aria-label":"Document assembly",className:`relative w-full ${je?"min-h-full":"h-full"} overflow-hidden flex flex-col ${J??""} ${T?.root||""}`,style:{...v,backgroundColor:"var(--bda-bg)",color:"var(--bda-fg)"},children:[jsx("div",{className:"absolute inset-0 opacity-[0.03] dark:opacity-[0.08]",children:jsxs("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",children:[jsx("defs",{children:jsx("pattern",{id:"grid",width:"40",height:"40",patternUnits:"userSpaceOnUse",children:jsx("path",{d:"M 40 0 L 0 0 0 40",fill:"none",stroke:"currentColor",strokeWidth:"0.5",style:{color:"var(--bda-primary)"}})})}),jsx("rect",{width:"100%",height:"100%",fill:"url(#grid)"})]})}),j.progressBar&&jsx("div",{className:"absolute top-0 left-0 right-0 z-50",role:"progressbar","aria-valuenow":Math.round(_),"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Document assembly progress",children:jsx(motion.div,{className:`h-0.5 ${T?.progressBar||""}`,style:{background:n.gradients.progress},initial:{width:"0%"},animate:{width:`${_}%`},transition:{duration:.8,ease:"easeOut"}})}),jsxs("div",{className:`relative z-10 flex ${ye==="vertical"?"flex-col":""} flex-1 overflow-hidden`,children:[j.leftPanel&&jsx("div",{className:`${ye==="vertical"?"border-b":"border-r"} ${je?"p-4":"p-8"} overflow-y-auto ${T?.leftPanel||""}`,style:{...ye==="vertical"?{height:j.rightPanel?"50%":"100%"}:{width:j.rightPanel?s:"100%"},borderColor:m("var(--bda-border)",50)},children:jsxs("div",{className:"max-w-xl mx-auto",children:[j.header&&(re?.header?re.header({labels:F,currentStep:C,totalSteps:Q.length,progress:_}):jsxs(motion.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.6},className:"mb-12",children:[jsx("h1",{className:`text-3xl font-bold mb-2 ${T?.header||""}`,style:{backgroundImage:n.gradients.title,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:F.title}),jsxs("p",{style:{color:"var(--bda-muted-fg)"},className:"font-mono text-xs tracking-wider",children:["System Status: ",jsx("span",{className:"font-semibold",style:{color:C===Q.length?"var(--bda-success)":"var(--bda-primary)"},children:C===Q.length?F.statusComplete:F.statusProcessing})]})]})),jsx("div",{className:"space-y-6 relative",children:Q.map((G,P)=>jsx(ht,{step:G,isLast:P===Q.length-1,showRipple:fe===G.id,classNames:T,theme:E,labels:q,renderStep:ue},G.id))})]})}),j.rightPanel&&jsx("div",{className:`overflow-hidden relative ${T?.rightPanel||""}`,style:{...ye==="vertical"?{height:j.leftPanel?"50%":"100%"}:{width:j.leftPanel?c:"100%"},background:`linear-gradient(to bottom right, ${m("var(--bda-muted)",20)}, ${m("var(--bda-muted)",5)})`},children:jsxs("div",{className:"h-full flex flex-col relative z-10",children:[jsx("div",{className:"p-6 border-b backdrop-blur-sm",style:{borderColor:m("var(--bda-border)",50),background:m("var(--bda-bg)",50)},children:jsxs("div",{className:"flex items-center justify-between",children:[jsxs("div",{className:"flex items-center gap-3",children:[jsx("div",{className:"p-2 rounded-lg",style:{background:m("var(--bda-secondary)",10),border:`1px solid ${m("var(--bda-secondary)",20)}`},children:jsx(FileText,{className:"w-5 h-5",style:{color:"var(--bda-secondary)"}})}),jsxs("div",{children:[jsx("h2",{className:"font-semibold",style:{color:"var(--bda-fg)"},children:F.documentTitle}),jsxs("p",{className:"text-xs mt-0.5 font-mono",style:{color:"var(--bda-muted-fg)"},children:[F.documentPrefix,Re.fileNumber,F.documentSuffix]})]})]}),_===100&&jsx(motion.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},className:"px-4 py-2 rounded-full",style:{background:`linear-gradient(to right, ${m("var(--bda-primary)",20)}, ${m("var(--bda-accent)",20)})`,border:`1px solid ${m("var(--bda-primary)",30)}`},children:jsx("span",{className:"text-sm font-semibold",style:{backgroundImage:n.gradients.title,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",backgroundClip:"text"},children:F.completionBadge})})]})}),jsx("div",{className:"flex-1 overflow-y-auto p-12",ref:W,children:jsx("div",{ref:Pe,children:jsx(Nt,{completedSections:Ae,completedSubsteps:le,documentIds:Re,sections:Ce,classNames:T,watermarkText:F.watermarkText,renderSection:ae})})})]})})]}),j.metricsFooter&&(re?.footer?re.footer({metrics:Z,labels:F}):jsx("div",{className:`relative z-20 border-t p-4 backdrop-blur-sm ${T?.footer||""}`,style:{borderColor:m("var(--bda-border)",50),background:m("var(--bda-bg)",95)},children:jsxs("div",{className:`flex justify-center items-center gap-6 max-w-5xl mx-auto ${T?.metricsBar||""}`,children:[jsxs("div",{className:`flex items-center gap-2.5 px-5 py-2.5 rounded-lg ${T?.metricsItem||""}`,style:{background:m("var(--bda-primary)",5),border:`1px solid ${m("var(--bda-primary)",20)}`},children:[jsx(Zap,{className:"w-4 h-4",style:{color:"var(--bda-primary)"}}),jsxs("div",{className:"flex flex-col",children:[jsx("span",{className:"text-[10px] font-mono uppercase tracking-wider",style:{color:"var(--bda-muted-fg)"},children:F.metricsTokens}),jsx("span",{className:"text-base font-bold tabular-nums",style:{color:"var(--bda-primary)"},children:Z.tokens.toLocaleString()})]})]}),jsxs("div",{className:`flex items-center gap-2.5 px-5 py-2.5 rounded-lg ${T?.metricsItem||""}`,style:{background:m("var(--bda-success)",5),border:`1px solid ${m("var(--bda-success)",20)}`},children:[jsx(DollarSign,{className:"w-4 h-4",style:{color:"var(--bda-success)"}}),jsxs("div",{className:"flex flex-col",children:[jsx("span",{className:"text-[10px] font-mono uppercase tracking-wider",style:{color:"var(--bda-muted-fg)"},children:F.metricsCost}),jsxs("span",{className:"text-base font-bold tabular-nums",style:{color:"var(--bda-success)"},children:["$",Z.cost.toFixed(4)]})]})]}),jsxs("div",{className:`flex items-center gap-2.5 px-5 py-2.5 rounded-lg ${T?.metricsItem||""}`,style:{background:m("var(--bda-processing)",5),border:`1px solid ${m("var(--bda-processing)",20)}`},children:[jsx(Clock,{className:"w-4 h-4",style:{color:"var(--bda-processing)"}}),jsxs("div",{className:"flex flex-col",children:[jsx("span",{className:"text-[10px] font-mono uppercase tracking-wider",style:{color:"var(--bda-muted-fg)"},children:F.metricsElapsed}),jsxs("span",{className:"text-base font-bold tabular-nums",style:{color:"var(--bda-processing)"},children:[Z.elapsed.toFixed(1),"s"]})]})]})]})})),jsx(wt,{show:ee,onClose:()=>lt(false),documentIds:Re,metrics:Z,classNames:T,labels:q,portalTarget:mt,contentRef:ke})]})});return p&&(b=jsx(Ke,{preset:p,children:b})),e.theme&&(b=jsx(ot,{theme:e.theme,children:b})),b});var io=[{id:"header",title:"",borderColor:"cyan",className:"border-b-2 pb-6",subsections:[{revealOnSubstep:"v1",content:"~~~~~~~ ~~~~~~~~",className:"text-3xl font-extrabold tracking-widest text-center",animation:"typewriter"},{revealOnSubstep:"v2",content:"~~~~~ ~~ ~~~~~~~~~~~~",className:"text-sm tracking-widest text-center",animation:"typewriter"},{revealOnSubstep:"v2",content:"~~~~~~ ~~ ~~~~~~ ~~~~",className:"text-sm tracking-widest text-center",animation:"typewriter"},{revealOnSubstep:"v4",content:"#### ~~. ~~~~~~~~",className:"text-base font-bold tracking-wider mt-2 text-center",animation:"typewriter"}]},{id:"affiant",title:"~~~~~~~~ ~~~~~~~~~~~:",borderColor:"cyan",className:"border-l-[6px] pl-6 py-4",subsections:[{revealOnSubstep:"i1",content:"~, [~~~~ ~~~~], ~~~~~ ~~~~ ~~~~~, ~~~~~~ ~~~ ~~~~~:",className:"text-base leading-relaxed mb-4 italic",animation:"typewriter"},{revealOnSubstep:"i2",content:`~~~~~~~: [~~~~~~ ~~~~~~~]
22
+ ~~~~~/~~~~~: [~~~~, ~~~~~ ~~~]`,className:"space-y-2 ml-8 text-sm",animation:"typewriter"},{revealOnSubstep:"i3",content:"~~~: [~~~~ ~~ ~~~~~]",className:"space-y-2 ml-8 text-sm mt-2",animation:"typewriter"},{revealOnSubstep:"i4",content:"~~ ~~~~~~~~: \u2713 ~~~~~~~~~",className:"font-bold ml-8 text-sm mt-2",animation:"typewriter"}]},{id:"statement",title:"~~~~~~~~~ ~~ ~~~~~:",borderColor:"orange",className:"border-l-[6px] pl-6 py-4",subsections:[{revealOnSubstep:"s1",content:"1. ~~~~ ~ ~~~~ ~~~~~~~~ ~~~~~~~~~ ~~ ~~~ ~~~~~ ~~~~~~ ~~~~~~ ~~~ ~~ ~~~~~~~~~ ~~ ~~~~~~~ ~~ ~~~ ~~~~.",className:"ml-8 text-base leading-loose mb-5",animation:"typewriter"},{revealOnSubstep:"s2",content:"2. ~~~~ ~~ ~~ ~~~~~ [~~~~], ~~~ ~~~~~~~~~ ~~~~~~ ~~~~~~~~: [~~~~~~~~ ~~~~~~~~~ ~~ ~~~~~~~~ ~~~~~]",className:"ml-8 text-base leading-loose mb-5",animation:"typewriter"},{revealOnSubstep:"s3",content:"3. ~~~~ ~~~ ~~~~~~~~~~~ ~~~~~~~~ ~~~~~~ ~~ ~~~~ ~~~ ~~~~~~~ ~~ ~~~ ~~~~ ~~ ~~ ~~~~~~~~~ ~~~ ~~~~~~.",className:"ml-8 text-base leading-loose mb-5",animation:"typewriter"},{revealOnSubstep:"s4",content:"4. ~~~~ ~ ~~~~~~~~~~ ~~~ ~~~~~~~~~ ~~~ ~~~~~~~ ~~~~~ ~~~.",className:"ml-8 text-base leading-loose",animation:"typewriter"}]},{id:"witness",title:"~~~~~~~ ~~~~~~~~~~~:",borderColor:"purple",className:"border-l-[6px] pl-6 py-4",subsections:[{revealOnSubstep:"w1",content:"",className:"",animation:"fade"},{revealOnSubstep:"w2",content:`~~~~~~~~~ ~~: [~~~~~~~ ~~~~]
23
+ ~~~~~~~ ~~~~~~~: [~~~~~~~]`,className:"space-y-2 text-sm",animation:"typewriter"},{revealOnSubstep:"w4",content:"__WITNESS_SIGNATURE__",className:"mt-8 pt-6 border-t",animation:"fade"}]},{id:"notary",title:"~~~~~~ ~~~~~~ ~~~~~~~~~~~~~:",borderColor:"emerald",className:"border-2 rounded-lg p-6 relative overflow-hidden",subsections:[{revealOnSubstep:"n1",content:"__NOTARY_DATE__",className:"leading-relaxed text-sm",animation:"typewriter"},{revealOnSubstep:"n2",content:`~~~~~~ ~~~~~~: [~~~~~~ ~~~~]
32
24
  ~~~~~~~~~~ ~~~~~~: [~~~~~~]
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:`~~~~~~~: [~~~~~~ ~~~~~~~]
25
+ __COMMISSION_EXPIRES__`,className:"my-4 border-t pt-4 text-sm",animation:"typewriter"},{revealOnSubstep:"n3",content:"__NOTARY_SEAL__",className:"",animation:"fade"},{revealOnSubstep:"n4",content:"__NOTARY_SIGNATURE__",className:"mt-8 pt-4 text-sm",animation:"fade"}]}],lo=[{id:"header",title:"",borderColor:"cyan",className:"border-b-2 pb-6",subsections:[{revealOnSubstep:"all",content:"~~~~~~~ ~~~~~~~~",className:"text-2xl font-extrabold tracking-widest text-center"},{revealOnSubstep:"all",content:"~~~~~ ~~ ~~~~~~~~~~~~",className:"text-xs tracking-widest text-center"},{revealOnSubstep:"all",content:"~~~~~~ ~~ ~~~~~~ ~~~~",className:"text-xs tracking-widest text-center"},{revealOnSubstep:"all",content:"#### ~~. ~~~~~~~~",className:"text-sm font-bold 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 mb-3 italic"},{revealOnSubstep:"all",content:`~~~~~~~: [~~~~~~ ~~~~~~~]
34
26
  ~~~~~/~~~~~: [~~~~, ~~~~~ ~~~]
35
27
  ~~~: [~~~~ ~~ ~~~~~]
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. ~~~~ ~ ~~~~ ~~~~~~~~ ~~~~~~~~~ ~~ ~~~ ~~~~~ ~~~~~~ ~~~~~~.
28
+ ~~ ~~~~~~~~: \u2713 ~~~~~~~~~`,className:"space-y-1 ml-8 text-xs"}]},{id:"statement",title:"~~~~~~~~~ ~~ ~~~~~:",borderColor:"orange",className:"border-l-[6px] border-orange-500/40 pl-6 py-4",subsections:[{revealOnSubstep:"all",content:`1. ~~~~ ~ ~~~~ ~~~~~~~~ ~~~~~~~~~ ~~ ~~~ ~~~~~ ~~~~~~ ~~~~~~.
37
29
  2. ~~~~ ~~ ~~ ~~~~~ [~~~~], ~~~ ~~~~~~~~~ ~~~~~~ ~~~~~~~~.
38
30
  3. ~~~~ ~~~ ~~~~~~~~~~~ ~~~~~~~~ ~~~~~~ ~~ ~~~~ ~~~ ~~~~~~~.
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
- ~~~~~~~ ~~~~~~~: [~~~~~~~]`,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:`~~~~~~ ~~~~~~: [~~~~~~ ~~~~]
31
+ 4. ~~~~ ~ ~~~~~~~~~~ ~~~ ~~~~~~~~~ ~~~ ~~~~~~~ ~~~~~ ~~~.`,className:"space-y-3 ml-8 text-sm leading-loose"}]},{id:"witness",title:"~~~~~~~ ~~~~~~~~~~~:",borderColor:"purple",className:"border-l-[6px] border-purple-500/40 pl-6 py-4",subsections:[{revealOnSubstep:"all",content:`~~~~~~~~~ ~~: [~~~~~~~ ~~~~]
32
+ ~~~~~~~ ~~~~~~~: [~~~~~~~]`,className:"space-y-2 text-xs"},{revealOnSubstep:"all",content:"__WITNESS_SIGNATURE__",className:"mt-6 pt-4 border-t"}]},{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"},{revealOnSubstep:"all",content:`~~~~~~ ~~~~~~: [~~~~~~ ~~~~]
41
33
  ~~~~~~~~~~ ~~~~~~: [~~~~~~]
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: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: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: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: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: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;}export{Le as AnimationProvider,qo as BlueprintDocumentAssembly,yt as CINEMATIC_PRESET,mt as DEFAULT_LABELS,Ze as DEFAULT_STEPS,it as DEFAULT_STEP_LOGS,lt as DEFAULT_SUBSTEP_LOGS,Pe as DEFAULT_THEME,te as DocumentLine,nt as DocumentPreview,Ue as LEGAL_DOCUMENT_SECTIONS,Fe as LEGAL_WHOLE_DOCUMENT_SECTIONS,Te as LogContainer,Nt as LogLine,Oe as MINIMAL_PRESET,ee as SMOOTH_PRESET,bt as SNAPPY_PRESET,Gt as SQUIGGLE_DOCUMENT_SECTIONS,Vt as SQUIGGLE_STEPS,Yt as SQUIGGLE_STEP_LOGS,zt as SQUIGGLE_SUBSTEP_LOGS,Bt as SQUIGGLE_WHOLE_DOCUMENT_SECTIONS,Ie as STEP_ICON_MAP,rt as StepItem,Je as SubStepItem,Me as ThemeProvider,st as WholeDocumentContent,at as WholeDocumentView,Qt as createDocumentSection,Ht as createStep,qt as createSubStep,At as getThemeSafelist,Xt as resetStepCounter,ue as resolveContent,et as resolveTheme,k as useAnimation,St as useAnimationOptional,Ge as useDocumentAssembly,Xe as useReducedMotion,pt as useResponsiveLayout,Dt as useTheme,$e as useThemeOptional};//# sourceMappingURL=index.mjs.map
34
+ __COMMISSION_EXPIRES__`,className:"my-3 border-t pt-3 space-y-1 text-xs"},{revealOnSubstep:"all",content:"__NOTARY_SIGNATURE__",className:"mt-6 pt-3 text-xs"},{revealOnSubstep:"all",content:"__NOTARY_SEAL__",className:""}]}];var mo=[{id:"verify",number:1,title:"Document Verification",status:"pending",icon: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: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: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: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: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:[]}],uo={verify:[["info","~~~~~~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~..."],["processing","~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~~~ ~~.~.~"],["success","~~~~~~~~~ ~~~~~~ ~~~~~~~~~~~~"]],identity:[["info","~~~~~~~~ ~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~"],["processing","~~~~~~~~~~~~ ~~~~~~ ~~~~~~~~~~"],["success","~~~~~~~~~~ ~~~~~~~~~~~"]],statement:[["info","~~~~~~~~~~~~~ ~~~~~~~~~ ~~~~~~~~~~ ~~~~~~~~"],["processing","~~~~~~~ ~~~ ~~~~~~ ~~~ ~~~~~ ~~~~~~~~"],["success","~~~~~~ ~~~~~~ ~~~~~~~~~~~~"]],witness:[["info","~~~~~~~~ ~~~~~~~ ~~~~~~~~~~~~~ ~~~~~~~~"],["processing","~~~~~~~~~~~~~ ~~~~~~~~~~~~ ~~~~~~~"],["success","~~~~~~~ ~~~~~~~~~~~"]],notary:[["info","~~~~~~~~~~ ~~~~~~~~~~~~~ ~~~~~~~~"],["processing","~~~~~~~~~ ~~~~~~ ~~~~~~~~~~"],["success","~~~~~ ~~~ ~~~~~~~~~~~~~"]]},po={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 Pt=0;function fo(t){return Pt++,{number:Pt,status:"pending",logs:[],substeps:[],...t}}function bo(t){return {completed:false,logs:[],...t}}function go(t){return {subsections:[],...t}}function yo(){Pt=0;}export{Ke as AnimationProvider,Sr as BlueprintDocumentAssembly,Gt as CINEMATIC_PRESET,Rt as DEFAULT_LABELS,gt as DEFAULT_STEPS,_t as DEFAULT_STEP_LOGS,Dt as DEFAULT_SUBSTEP_LOGS,yt as DEFAULT_THEME,de as DocumentLine,Nt as DocumentPreview,$e as ErrorBoundary,st as LEGAL_DOCUMENT_SECTIONS,nt as LEGAL_WHOLE_DOCUMENT_SECTIONS,Me as LogContainer,Wt as LogLine,Xe as MINIMAL_PRESET,me as SMOOTH_PRESET,Ft as SNAPPY_PRESET,io as SQUIGGLE_DOCUMENT_SECTIONS,mo as SQUIGGLE_STEPS,uo as SQUIGGLE_STEP_LOGS,po as SQUIGGLE_SUBSTEP_LOGS,lo as SQUIGGLE_WHOLE_DOCUMENT_SECTIONS,et as STEP_ICON_MAP,ht as StepItem,bt as SubStepItem,vt as TAILWIND_COLOR_MAP,ot as ThemeProvider,Tt as WholeDocumentContent,wt as WholeDocumentView,tt as buildCssVars,m as colorMix,go as createDocumentSection,fo as createStep,bo as createSubStep,jt as getThemeSafelist,Be as injectStyle,yo as resetStepCounter,K as resolveColorValue,Ne as resolveContent,Ge as resolveTheme,U as useAnimation,Bt as useAnimationOptional,at as useDocumentAssembly,ut as useReducedMotion,Lt as useResponsiveLayout,Xt as useTheme,rt as useThemeOptional};//# sourceMappingURL=index.mjs.map
43
35
  //# sourceMappingURL=index.mjs.map