/* SKUDocket: isolated, synthetic browser preview. No external execution APIs. */ 'use strict'; const $=(s,r=document)=>r.querySelector(s), $$=(s,r=document)=>[...r.querySelectorAll(s)]; const esc=v=>String(v??'').replace(/[&<>"']/g,c=>({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c])); const ico=(n='arrow-right')=>``; const demoBadge=()=>'DEMO — SYNTHETIC DATA'; const badge=(t)=>`${esc(t)}`; const status=(t,k='pending')=>`${esc(t)}`; const money=n=>new Intl.NumberFormat('en-US',{style:'currency',currency:'USD',minimumFractionDigits:0,maximumFractionDigits:2}).format(n); const button=(text,action,kind='secondary',attrs='')=>``; const link=(text,url,kind='secondary')=>`${text}${ico()}`; const alertBox=(title,copy,kind='warning')=>`
${ico(kind==='success'?'circle-check':'circle-alert')}
${title}${copy}
`; const notice=(text,good=false)=>{const n=$('#panel-notice');if(n){n.textContent=text;n.classList.toggle('good',good);n.setAttribute('role','status');n.scrollIntoView({block:'nearest',behavior:'smooth'});}else toast(text)}; let toastTimer; function toast(t){const el=$('#toast');el.textContent=t;el.classList.add('visible');clearTimeout(toastTimer);toastTimer=setTimeout(()=>el.classList.remove('visible'),4500);} function readStorage(key,fallback){try{return JSON.parse(sessionStorage.getItem(key))??fallback}catch{return fallback}} function writeStorage(key,v){try{sessionStorage.setItem(key,JSON.stringify(v));return true}catch{return false}} const EVENT_NAMES=['landing_view','buyer_qualified','offer_13_selected','demo_open','evidence_view','override_view','price_view','pilot_request','consent_submit']; const params=new URLSearchParams(location.search), source=['linkedin','broker-referral','forwarder-referral','importer-association','erp-integrator','ecommerce-integrator','direct'].includes(params.get('utm_source'))?params.get('utm_source'):null, campaign=['evidence-gap','broker-packet','repeat-lane','concept-13'].includes(params.get('utm_campaign'))?params.get('utm_campaign'):null; function track(name,properties={}){ if(!readStorage('skudocket-diagnostics-consent',false)||!EVENT_NAMES.includes(name))return; const allowed={};for(const k of ['selected_offer_id','source_id','area','action','qualification_method','preview_only','request_type'])if(properties[k]!=null)allowed[k]=properties[k]; const anonymousSession=readStorage('skudocket-anonymous-session',null)||crypto.randomUUID();writeStorage('skudocket-anonymous-session',anonymousSession);const events=readStorage('skudocket-events',[]);events.push({anonymous_session_id:anonymousSession,event_id:crypto.randomUUID(),name,timestamp:new Date().toISOString(),page_id:document.body.dataset.route,concept_version:'1.0',demo_flag:true,source,campaign,...allowed});writeStorage('skudocket-events',events.slice(-200)); } function download(data,name,type='text/plain'){const blob=new Blob([data],{type});const url=URL.createObjectURL(blob),a=document.createElement('a');a.href=url;a.download=name;document.body.append(a);a.click();a.remove();setTimeout(()=>URL.revokeObjectURL(url),1000);} // Navigation, dialogs, motion, and the real product film. document.addEventListener('toggle',ev=>{if(ev.target instanceof HTMLDetailsElement){const summary=ev.target.querySelector(':scope>summary');summary?.setAttribute('aria-expanded',String(ev.target.open));}},true); const menu=$('.menu-toggle'),nav=$('#main-nav'); menu?.addEventListener('click',()=>{const open=!nav.classList.contains('open');nav.classList.toggle('open',open);menu.setAttribute('aria-expanded',String(open));menu.setAttribute('aria-label',open?'Close navigation':'Open navigation');}); $$('.nav-group').forEach(group=>group.addEventListener('toggle',()=>{if(group.open)$$('.nav-group').filter(g=>g!==group).forEach(g=>g.open=false);})); document.addEventListener('click',ev=>{if(!ev.target.closest('.nav-group'))$$('.nav-group').forEach(g=>g.open=false);}); document.addEventListener('keydown',ev=>{if(ev.key==='Escape'){const open=$('.nav-group[open]');if(open){open.open=false;$('summary',open).focus()}if(nav?.classList.contains('open')){nav.classList.remove('open');menu.setAttribute('aria-expanded','false');menu.setAttribute('aria-label','Open navigation');menu.focus()}}}); let dialogTrigger=null; function openDialog(id,trigger){const dlg=$('#'+id);dialogTrigger=trigger??document.activeElement;dlg.showModal();const close=$('[data-close]',dlg);close?.focus();} $$('[data-close]').forEach(b=>b.addEventListener('click',()=>b.closest('dialog').close())); $$('dialog').forEach(d=>{d.addEventListener('close',()=>dialogTrigger?.focus());d.addEventListener('click',ev=>{if(ev.target===d){const r=d.getBoundingClientRect();if(ev.clientXr.right||ev.clientYr.bottom)d.close()}})}); $$('[data-open="analytics"]').forEach(b=>b.addEventListener('click',()=>{const check=$('#analytics-opt-in');check.checked=readStorage('skudocket-diagnostics-consent',false);$('#analytics-status').textContent=`${readStorage('skudocket-events',[]).length} local events. No external analytics transmission.`;openDialog('analytics-dialog',b);})); $('#analytics-opt-in')?.addEventListener('change',ev=>{writeStorage('skudocket-diagnostics-consent',ev.target.checked);if(!ev.target.checked){sessionStorage.removeItem('skudocket-events');sessionStorage.removeItem('skudocket-anonymous-session');}$('#analytics-status').textContent=ev.target.checked?'Session-local diagnostics enabled. No form details are recorded.':'Diagnostics disabled and the event log cleared.';}); $('#clear-analytics')?.addEventListener('click',()=>{sessionStorage.removeItem('skudocket-events');$('#analytics-status').textContent='Local event log cleared.';}); $('#download-analytics')?.addEventListener('click',()=>{download(JSON.stringify(readStorage('skudocket-events',[]),null,2),'SKUDocket-local-preview-events.json','application/json');$('#analytics-status').textContent='Local log download prepared. Synthetic interactions are not demand evidence.';}); const motion=matchMedia('(prefers-reduced-motion: reduce)'); // Repeating, staggered left/right entrances with native scrolling. // Individual `translate` leaves hover transforms and flipped illustrations intact. if('IntersectionObserver' in window&&!['queue','record','packet'].includes(document.body.dataset.page)){ const root=$('#main'),selector='[data-reveal], .page-hero .hero-text, .page-hero .hero-figure, .section-heading>div, .table-scroll, .source-register>article, .packet-toc>div, .accordion>details, .date-table>div, .date-table>dl, .dossier-summary>div, .dossier-summary>dl, .demo-path>div, .demo-path>ol, .legal-layout article, .manifesto, .access-layout>div, .signin-story, .signin-card, .form-story, .inquiry-form, .control-pairs>article, .limit-grid>div, .demo-preview, .io-grid>article, .related-links>a, .cta-box>div'; const candidates=root?[...$$(selector,root),...$$('.footer-identity,.footer-invitation,.footer-col')].filter(el=>!el.closest('.artifact-line,#hero-film')&&(el.textContent.trim()||el.querySelector('img'))):[]; const targets=candidates.filter(el=>!candidates.some(parent=>parent!==el&&parent.contains(el))); const groups=new Map(),info=new Map(),running=new Map(); targets.forEach(el=>{const group=el.parentElement;if(!groups.has(group))groups.set(group,[]);groups.get(group).push(el);}); groups.forEach(items=>items.forEach((el,index)=>info.set(el,{index,count:items.length}))); let observer,lastY=scrollY,direction='down'; window.addEventListener('scroll',()=>{const y=scrollY;if(Math.abs(y-lastY)>2)direction=y>lastY?'down':'up';lastY=y;},{passive:true}); const stop=el=>{running.get(el)?.cancel();running.delete(el);}; const show=(el,animate=true)=>{ if(el.classList.contains('scroll-visible'))return; stop(el);const {index,count}=info.get(el),up=direction==='up'; const order=Math.min(up?count-1-index:index,5),side=(index%2===0?-1:1)*(up?-1:1); el.dataset.scrollDirection=direction;el.dataset.scrollSide=side<0?'left':'right'; el.dataset.scrollOrder=String(order);el.classList.add('scroll-visible'); if(animate&&!motion.matches&&el.animate){ const distance=innerWidth<600?24:44; const anim=el.animate([{opacity:0,translate:`${side*distance}px 0`},{opacity:1,translate:'0px 0px'}],{duration:580,delay:order*125,easing:'cubic-bezier(.22,1,.36,1)',fill:'both'}); running.set(el,anim);anim.onfinish=()=>{if(running.get(el)===anim){running.delete(el);anim.cancel();}}; } }; const configure=()=>{ observer?.disconnect();targets.forEach(el=>{stop(el);el.classList.remove('scroll-enter','scroll-visible','offscreen','revealed');}); if(motion.matches)return; observer=new IntersectionObserver(entries=>entries.forEach(entry=>{ const el=entry.target; if(entry.isIntersecting)show(el); else if(!el.contains(document.activeElement)){stop(el);el.classList.remove('scroll-visible');} }),{rootMargin:'-70px 0px -5% 0px',threshold:0}); targets.forEach(el=>{el.classList.add('scroll-enter');const rect=el.getBoundingClientRect();if(rect.bottom>70&&rect.top{targets.filter(el=>el.contains(event.target)).forEach(el=>{stop(el);el.classList.add('scroll-visible');});}); configure();motion.addEventListener('change',configure); } // Replay the four evidence artifacts on each viewport entry, in scroll order. const artifactGroups=$$('.artifact-line'); if(artifactGroups.length&&'IntersectionObserver'in window){ let artifactObserver,previousScroll=scrollY,scrollDirection='down'; const noteDirection=()=>{const next=scrollY;if(Math.abs(next-previousScroll)>2)scrollDirection=next>previousScroll?'down':'up';previousScroll=next;}; window.addEventListener('scroll',noteDirection,{passive:true}); const configureArtifacts=()=>{ artifactObserver?.disconnect(); artifactGroups.forEach(group=>{group.classList.remove('sequence-ready','sequence-in-view');}); if(motion.matches)return; artifactGroups.forEach(group=>group.classList.add('sequence-ready')); artifactObserver=new IntersectionObserver(entries=>{ entries.forEach(entry=>{ const group=entry.target; if(entry.isIntersecting&&entry.intersectionRatio>=.18){ if(!group.classList.contains('sequence-in-view')){ const cards=$$('.artifact',group),up=scrollDirection==='up'; group.dataset.revealDirection=scrollDirection; group.style.setProperty('--artifact-offset',up?'-18px':'18px'); cards.forEach((card,i)=>card.style.setProperty('--artifact-order',String(up?cards.length-1-i:i))); group.classList.add('sequence-in-view'); } }else if(!entry.isIntersecting){group.classList.remove('sequence-in-view');} }); },{threshold:[0,.18],rootMargin:'-80px 0px -10% 0px'}); artifactGroups.forEach(group=>artifactObserver.observe(group)); }; configureArtifacts(); motion.addEventListener('change',configureArtifacts); } const video=$('#hero-video'),filmToggle=$('#film-toggle');let userPaused=false; if(video){ const setFilmButton=()=>{filmToggle.innerHTML=ico(video.paused?'play':'pause')+`${video.paused?'Play the story':'Pause the story'}`;filmToggle.setAttribute('aria-label',video.paused?'Play product animation':'Pause product animation');}; video.addEventListener('error',()=>{video.closest('.film-view').classList.add('failed');filmToggle.hidden=true;}); video.addEventListener('play',setFilmButton);video.addEventListener('pause',setFilmButton); const chapters=$$('[data-seek]');chapters.forEach(b=>b.addEventListener('click',()=>{userPaused=true;const seek=()=>{video.currentTime=Number(b.dataset.seek);video.pause();setFilmButton();};if(video.readyState>=1)seek();else{video.addEventListener('loadedmetadata',seek,{once:true});video.preload='metadata';video.load();}}));video.addEventListener('timeupdate',()=>{const starts=[0,3.2,6.8,10.5,14.1];chapters.forEach((b,i)=>b.setAttribute('aria-pressed',String(video.currentTime>=starts[i]&&video.currentTime<(starts[i+1]??18))));}); filmToggle.addEventListener('click',()=>{if(video.paused){userPaused=false;video.play().catch(()=>toast('The animation could not play. The poster and transcript remain available.'));}else{userPaused=true;video.pause()}}); if(!motion.matches){const filmObs=new IntersectionObserver(entries=>{entries.forEach(en=>{if(en.isIntersecting&&!userPaused&&!motion.matches)video.play().catch(()=>{});else video.pause()})},{threshold:.25});filmObs.observe(video);} motion.addEventListener('change',()=>{if(motion.matches){video.pause();video.currentTime=0;video.load();setFilmButton();}}); } $$('[data-flip]').forEach(b=>b.addEventListener('click',()=>{const card=b.closest('.offer-card'),flipped=!card.classList.contains('is-flipped');card.classList.toggle('is-flipped',flipped);b.setAttribute('aria-pressed',String(flipped));b.innerHTML=ico('rotate-ccw')+(flipped?'View illustration':'View inputs');})); // Real validation, with an explicitly unsent inquiry preview. PII never enters storage. $$('[data-form]').forEach(form=>{ const kind=form.dataset.form; if($('[name=offer]',form)&&/^[1-5]$/.test(params.get('offer')||''))$('[name=offer]',form).value=params.get('offer'); if($('[name=topic]',form)&&['privacy','broker','accessibility','general'].includes(params.get('topic')))$('[name=topic]',form).value=params.get('topic'); $('[name=offer]',form)?.addEventListener('change',ev=>{if(/^[1-5]$/.test(ev.target.value))track('offer_13_selected',{selected_offer_id:Number(ev.target.value),preview_only:true});}); form.addEventListener('submit',ev=>{ ev.preventDefault();let invalid=[]; $$('[required]',form).forEach(el=>{let message='';if(el.type==='checkbox'&&!el.checked)message='Please choose this consent to preview the request.';else if(el.type==='email'&&!el.validity.valid)message='Enter a valid email address.';else if(el.type!=='checkbox'&&!el.value.trim())message='Please complete this field.';el.setAttribute('aria-invalid',String(!!message));const err=$('#error-'+el.name,form);if(err){err.textContent=message;if(message)el.setAttribute('aria-describedby',err.id);else el.removeAttribute('aria-describedby')}if(message)invalid.push(el);}); const error=$('.form-error',form);if(invalid.length){error.textContent='Review the highlighted fields and required consent. Your values have been preserved.';invalid[0].focus();return;}error.textContent=''; const fd=new FormData(form),request={preview_only:true,sent:false,stored:false,request_type:kind,privacy_version:'preview-2026-10-13',...Object.fromEntries(fd.entries())}; const result=$('.form-result',form);result.innerHTML='

Your request preview.

This has not been sent or saved. Review the details below or download a copy for your own records.

'+['email','company','role','offer','broker_status','sku_band'].filter(k=>request[k]).map(k=>`
${esc(k.replaceAll('_',' '))}
${esc(request[k])}
`).join('')+'
'; $('.download-request',result).addEventListener('click',()=>download(JSON.stringify(request,null,2),'SKUDocket-unsent-'+kind+'-request.json','application/json')); if(kind==='pilot')track('pilot_request',{request_type:kind,preview_only:true,selected_offer_id:Number(fd.get('offer'))}); // consent_submit and buyer_qualified are intentionally reserved for a future // connected operational store. A local preview is not a submitted lead. result.scrollIntoView({block:'nearest',behavior:motion.matches?'auto':'smooth'});result.setAttribute('tabindex','-1');result.focus(); }); // Enable only after the no-transmission handler is attached. $('fieldset',form)?.removeAttribute('disabled'); }); const BASE={schema:1,proposal:'unconfirmed',revision:1,originLoaded:false,originReviewed:false,screening:'unresolved',screenReason:'',brokerPersona:false,brokerReviewed:false,brokerReason:'',brokerQuestion:'',approved:false,exported:false,quantity:1000,unit:12,rateA:4,rateB:6,history:[]}; let state=readStorage('skudocket-demo-state',null);if(!state||state.schema!==1)state={...BASE,history:[]}; const save=()=>writeStorage('skudocket-demo-state',state); const history=(action,reason,time='09:00',actor='Maya Chen')=>{const previous=state.history.at(-1)?.time;if(previous&&time<=previous){const [h,m]=previous.split(':').map(Number);const minutes=h*60+m+1;time=String(Math.floor(minutes/60)).padStart(2,'0')+':'+String(minutes%60).padStart(2,'0');}state.history.push({action,reason,time,actor,revision:state.revision});save();}; function invalidate(reason){if(state.approved||state.brokerReviewed){state.approved=false;state.brokerReviewed=false;state.exported=false;history('Affected review reopened',reason,'09:04');}} function resetDemo(){state={...BASE,history:[]};sessionStorage.removeItem('skudocket-demo-state');renderDemo();toast('Synthetic fixture reset. All original holds and dates restored.');} $$('[data-reset-demo]').forEach(b=>b.addEventListener('click',resetDemo)); const canonicalCost=()=>state.quantity===1000&&state.unit===12&&state.rateA===4&&state.rateB===6; const blockers=()=>[!state.originReviewed?'Origin evidence has not been reviewed':null,state.screening!=='false-positive'?'Screening match remains unresolved or escalated':null,!state.brokerReviewed?'Broker review is not recorded':null,state.proposal!=='unconfirmed'?'The edited assumption requires a separately prepared packet':null,!canonicalCost()?'The edited cost scenario differs from the canonical PDF fixture':null].filter(Boolean); const queue=[ {sku:'HX-42',entry:'EN-104',supplier:'Harborside Works',status:'Held',owner:'Maya Chen',action:'Origin proof and screening review',updated:'02 Oct 09:00',due:'03 Oct 16:00'}, {sku:'HX-43',entry:'EN-105',supplier:'Harborside Works',status:'Pending review',owner:'Maya Chen',action:'Compare revised specification',updated:'01 Oct 15:00',due:'03 Oct 12:00'}, {sku:'BR-18',entry:'EN-106',supplier:'North Quay Components',status:'Evidence collected',owner:'Iris Patel',action:'Check invoice linkage',updated:'01 Oct 11:00',due:'03 Oct 15:00'}, {sku:'CL-07',entry:'EN-107',supplier:'Maple Foundry',status:'Held',owner:'Iris Patel',action:'Missing valuation explanation',updated:'01 Oct 16:00',due:'04 Oct 12:00'}, {sku:'PN-21',entry:'EN-108',supplier:'North Quay Components',status:'Broker review',owner:'Noah Reed',action:'Review rationale',updated:'02 Oct 08:00',due:'03 Oct 10:00'}, {sku:'WS-09',entry:'EN-109',supplier:'Maple Foundry',status:'Exported',owner:'Noah Reed',action:'Packet v1 exported; review next supplier revision',updated:'01 Oct 10:00',due:'On supplier change'}, {sku:'FT-33',entry:'EN-110',supplier:'Harborside Works',status:'Rejected proposal',owner:'Noah Reed',action:'Product function contradicts suggestion',updated:'01 Oct 13:00',due:'03 Oct 14:00'}, {sku:'CP-14',entry:'EN-111',supplier:'Lakeshore Fabrication',status:'Pending review',owner:'Maya Chen',action:'Supplier-origin inconsistency',updated:'02 Oct 08:30',due:'04 Oct 10:00'}, {sku:'SP-26',entry:'EN-112',supplier:'Lakeshore Fabrication',status:'Exported',owner:'Noah Reed',action:'Packet v2 exported; review next supplier revision',updated:'01 Oct 14:00',due:'On supplier change'}, {sku:'RD-11',entry:'EN-113',supplier:'Maple Foundry',status:'Broker review',owner:'Iris Patel',action:'Stale tariff fixture: re-review required',updated:'02 Oct 08:45',due:'03 Oct 11:00'} ]; const statusKind={'Held':'held','Pending review':'pending','Evidence collected':'collected','Broker review':'review','Exported':'exported','Rejected proposal':'rejected'}; function queueState(row){return row.sku==='HX-42'?(state.exported?'Exported':state.approved?'Broker review':state.originReviewed&&state.screening==='false-positive'?'Broker review':'Held'):row.status;} const palette=['#835510','#667F99','#3B617D','#82728E','#31604F','#AF5A56']; function renderQueue(){ if(!$('#queue-table'))return; const counts=Object.fromEntries(Object.keys(statusKind).map(k=>[k,queue.filter(r=>queueState(r)===k).length])); let offset=0;const arcs=Object.entries(counts).map(([k,n],i)=>{const len=n*10,arc=``;offset+=len;return arc}).join(''); $('#queue-overview').innerHTML='
'+Object.entries(counts).map(([k,n])=>`
${k}${n}
`).join('')+'
'+arcs+'10DEMO SKUs
'+demoBadge()+Object.entries(counts).map(([k,n],i)=>`
${n} ${k}
`).join('')+'
'; const term=$('#queue-search').value.toLowerCase().trim(),filter=$('#queue-filter').value; const rows=queue.filter(r=>(filter==='all'||queueState(r)===filter)&&`${r.sku} ${r.supplier} ${r.entry}`.toLowerCase().includes(term)); $('#queue-count').textContent=`${rows.length} of 10 synthetic records`; $('#queue-table').innerHTML=rows.length?'
'+rows.map(r=>``).join('')+'
Fictional review queue · All times UTC, October 2026
SKU / entrySupplierStateOwnerNext actionReview
${r.sku}${r.entry} · v1 fixture${demoBadge()}${r.supplier}${status(queueState(r),statusKind[queueState(r)])}${r.owner}${r.action}Updated ${r.updated} UTC · Due ${r.due}${r.due.includes('Oct')?' UTC':''}${r.sku==='HX-42'?'Open record '+ico()+'':``}
':'

No matching synthetic records.

Try another SKU, supplier, or review state.

'; $$('[data-row]').forEach(b=>b.addEventListener('click',()=>openQueueRecord(b.dataset.row,b))); $('#clear-queue')?.addEventListener('click',()=>{$('#queue-search').value='';$('#queue-filter').value='all';renderQueue()}); } $('#queue-search')?.addEventListener('input',renderQueue);$('#queue-filter')?.addEventListener('change',renderQueue); function openQueueRecord(sku,trigger){const r=queue.find(x=>x.sku===sku);$('#evidence-title').textContent=`${r.sku} / ${r.entry}`;$('#evidence-body').innerHTML=`

${r.supplier}

${status(r.status,statusKind[r.status])}

Fictional owner
${r.owner}
Next action
${r.action}
Updated / due
${r.updated} UTC / ${r.due} ${r.due.includes('Oct')?'UTC':''}
Source specification
SPEC-${r.sku.replace('-','')}-v1
Invoice fixture reference
INV-${r.entry.replace('-','')}-v1
${r.sku==='FT-33'?'The proposed product-function assumption contradicts the fictional specification. The proposal stays rejected; the owner needs to revise the explanation.':r.sku==='RD-11'?'Tariff fixture v0 is stale for the example date. The earlier source is preserved, and a new review is required before updating the packet.':'This supporting queue record has an assigned review task. The full deterministic click path is available for HX-42.'}

Supporting record only. No real documents, transaction amounts, or external actions.

${link('Open the full HX-42 example','/demo/skus/hx-42')}`;openDialog('evidence-dialog',trigger);track('evidence_view',{area:'queue',preview_only:true});} const evidence={ 'SPEC-HX42-v1':{title:'Product specification',type:'Fictional product evidence',date:'28 Sep 2026',body:'Stainless threaded fastener assembly. Component composition is stated in the fictional specification. Full imported assembly function is not established; that missing fact needs review.',published:'28 Sep 2026',effective:'Fixture product revision v1',retrieved:'01 Oct 2026, 09:00 UTC (simulated)'}, 'DRAW-HX42-v1':{title:'Technical drawing',type:'Fictional product evidence',date:'28 Sep 2026',body:'Drawing identifies a threaded steel component and associated assembly parts. It does not establish how the complete good is presented at import or resolve its full function.',published:'28 Sep 2026',effective:'Drawing revision v1',retrieved:'01 Oct 2026, 09:00 UTC (simulated)'}, 'INV-HW-104-v1':{title:'Invoice fixture',type:'Fictional commercial record',date:'28 Sep 2026',body:'Alder Import Co / Harborside Works. 1,000 units × $12.00 = $12,000. Invoice date 28 Sep 2026. This is not a real invoice.',published:'28 Sep 2026',effective:'Invoice v1',retrieved:'01 Oct 2026, 09:00 UTC (simulated)'}, 'PRIOR-EN104-v1':{title:'Prior-entry reference',type:'Fictional historical comparison',date:'30 Sep 2026',body:'EN-104 is an invented prior-entry reference. A previous entry is a comparison artifact; it does not prove the proposed classification or value is correct.',published:'30 Sep 2026',effective:'Historical comparison v1',retrieved:'01 Oct 2026, 09:00 UTC (simulated)'}, 'VAL-104-v1':{title:'Valuation explanation',type:'Fictional assumption record',date:'01 Oct 2026',body:'The $12,000 invoice amount is used as an explicitly unvalidated customs-value input. Other valuation adjustments remain unassessed. Freight is shown separately as a cost component, not a legal valuation conclusion.',published:'01 Oct 2026',effective:'Valuation assumptions v1',retrieved:'01 Oct 2026, 09:00 UTC (simulated)'}, 'ORG-HX42-v1':{title:'Origin response fixture',type:'Fictional supplier evidence',date:'02 Oct 2026',body:'The loaded synthetic response describes supplier production facts for the example lane. A human review records the stated purpose only. Preference eligibility remains not assessed / no claim.',published:'02 Oct 2026, 09:09 UTC',effective:'Synthetic response v1',retrieved:'02 Oct 2026, 09:09 UTC (simulated)'}, 'LIST-DEMO-v1':{title:'Potential-match list fixture',type:'Simulated list—not a real sanctions record',date:'01 Oct 2026',body:'Harborside Works (DEMO-HW-001), fictional address 41 Dock Lane, Kingston, Ontario, Canada, compared with Harborside Industrial Works (DEMO-HIW-091), fictional address 905 Ironworks Road, Hamilton, Ontario, Canada. No real organization is alleged to be restricted.',published:'30 Sep 2026 (simulated)',effective:'01 Oct 2026 (simulated)',retrieved:'01 Oct 2026, 09:00 UTC (simulated)'}, 'TARIFF-DEMO-v1':{title:'Illustrative duty assumptions',type:'Simulated tariff fixture—not official rates',date:'01 Oct 2026',body:'Invented 4% and 6% rates illustrate scenario arithmetic. No real HTS code is assigned. The fixture does not cover additional tariffs, AD/CVD, MPF/HMF, other taxes, or valuation adjustments.',published:'30 Sep 2026 (simulated)',effective:'01 Oct 2026 (simulated)',retrieved:'01 Oct 2026, 09:00 UTC (simulated)'} }; function openEvidence(id,trigger){const x=evidence[id];if(!x)return;$('#evidence-title').textContent=id;$('#evidence-body').innerHTML=`

${x.type}

${x.title}

${x.body}
Source / version
${id}
Published
${x.published}
Effective
${x.effective}
Retrieved
${x.retrieved}
Coverage
Synthetic HX-42 example only. Not operating data or validated legal facts.

Official general guidance is separate from this fictional record.

Read method and sources ${ico()}`;openDialog('evidence-dialog',trigger);track('evidence_view',{source_id:id,preview_only:true});} const chips=(ids)=>'
'+ids.map(id=>``).join('')+'
'; function bindEvidence(root=document){$$('[data-evidence]',root).forEach(b=>b.addEventListener('click',()=>openEvidence(b.dataset.evidence,b)));} let currentTab=['classification','origin','screening','cost','packet'].includes(params.get('tab'))?params.get('tab'):'classification'; const panelHead=(k,title,copy)=>`

${k}

${title}

${copy}

${demoBadge()}
`; function classificationPanel(){return panelHead('01 / Competing rationales','Compare the assumption, not just the field.','Both alternatives remain provisional. US HTS candidate A / B are unassigned in this concept.')+`
${ico('file-search')}${status(state.originReviewed?'Origin response reviewed':'Origin proof missing / unreviewed',state.originReviewed?'exported':'held')}${ico('scan-search')}${status(state.screening==='false-positive'?'Specific match dispositioned':'Screening potential hit · unresolved',state.screening==='false-positive'?'exported':'held')}Simulated source data as of 01 Oct 2026Broker reviewer / Noah Reed · ${state.brokerReviewed?'Review recorded':'Pending'} · Simulated

Rationale A

Component
construction

Assess the good as a threaded fastener, based on its construction. The full product facts still need review.

Supporting fact
Threaded stainless component
Source reference
SPEC-HX42-v1 / DRAW-HX42-v1
Assumption still to verify
Construction is the relevant basis for the imported good.
HTS candidate
Unassigned · Nonbinding
${state.brokerReviewed?status('Working hypothesis for discussion','review'):status('Proposed rationale','pending')}
${demoBadge()}

Rationale B

Assembly
function

Assess the complete assembly as presented, based on its full components and intended function.

Supporting fact
Multiple components shown in drawing
Source reference
DRAW-HX42-v1
Unsupported assumption
${state.proposal==='complete-assembly'?'Proposed as complete assembly—still unverified.':'Full imported assembly function is not established.'}
HTS candidate
Unassigned · Nonbinding
${state.brokerReviewed?status('Unsupported assumption rejected','rejected'):status('Proposed rationale','pending')}
${demoBadge()}

The broker question

What is the complete good as imported, and which construction and function facts support the classification reasoning?

${chips(['SPEC-HX42-v1','DRAW-HX42-v1','PRIOR-EN104-v1'])}

Try a proposed revision.

Changing the assumption reopens the affected review. It does not verify the fact or choose a binding classification.

${button('Record proposed edit','edit-assumption')}${button('Undo proposal','undo-assumption','secondary',state.proposal==='unconfirmed'?'disabled':'')}

Proposal revision ${state.revision} · Canonical source fixture remains v1.

${button('Try marking the packet ready','try-ready')}${button('Inspect the origin hold','tab-origin','primary')}

`;} function originPanel(){return panelHead('02 / Origin & preference','The absent document is a review state.','Origin evidence and preference eligibility remain separate. No preference claim is assessed here.')+alertBox(state.originReviewed?'Origin response reviewed for stated purpose':state.originLoaded?'Synthetic response loaded · review pending':'Origin affidavit missing',state.originReviewed?'ORG-HX42-v1 reviewed by Maya Chen, 02 Oct 2026, 09:11 UTC. Eligibility not assessed.':'ORG-HX42-v1 · Owner Maya Chen · Due 03 Oct 2026, 16:00 UTC',state.originReviewed?'success':'warning')+`
  • ${ico('file-check-2')}
    Product specificationSPEC-HX42-v1 · Source facts collected${demoBadge()}
    ${status('Available','collected')}
  • ${ico(state.originLoaded?'file-check-2':'file-search')}
    Supplier origin responseORG-HX42-v1 · ${state.originLoaded?'Loaded 02 Oct 2026, 09:09 UTC':'Missing in the initial fixture'}${demoBadge()}
    ${status(state.originReviewed?'Reviewed':state.originLoaded?'Unreviewed':'Missing',state.originReviewed?'exported':state.originLoaded?'pending':'held')}
  • ${ico('circle-help')}
    Preference program evidenceNo program-specific eligibility determination in this example${demoBadge()}
    ${status('Not assessed','pending')}
${chips(state.originLoaded?['SPEC-HX42-v1','ORG-HX42-v1']:['SPEC-HX42-v1'])}${!state.originLoaded?`

Load an invented supplier response. This adds a fixture document only; no request is sent to a supplier.

${button('Load synthetic response','load-origin','primary')}
`:!state.originReviewed?`

Record the importer review.

Simulated reviewer / Maya Chen. The response addresses the stated evidence request only; origin and preference conclusions still require the applicable review.

${button('Record simulated review','review-origin','primary')}
`:`
Review recorded · Maya Chen

Response reviewed for the example production-fact request. Preference eligibility stays not assessed / no claim.

`}
${button('Review the screening match','tab-screening','secondary')}

`;} function screeningPanel(){return panelHead('03 / Counterparty review','Inspect the identifiers before the disposition.','Potential similar-name match · Simulated list as of 01 Oct 2026, 09:00 UTC.')+alertBox(state.screening==='false-positive'?'Human disposition recorded for this match':state.screening==='escalated'?'Match escalated · unresolved':'Potential hit · human review required',state.screening==='false-positive'?'This specific fixture match was treated as a false positive. It is not blanket sanctions clearance.':'No real party is alleged to be restricted. All names, identifiers, and addresses below are fictional.',state.screening==='false-positive'?'success':'warning')+`

Fictional supplier

Harborside Works

Registration identifier
DEMO-HW-001
Address fixture
41 Dock Lane
Kingston, Ontario, Canada
Source
Supplier identity fixture v1
${demoBadge()}

Simulated potential match

Harborside Industrial Works

Registration identifier
DEMO-HIW-091
Address fixture
905 Ironworks Road
Hamilton, Ontario, Canada
Originating list
LIST-DEMO-v1 · Invented list
${demoBadge()}
${chips(['LIST-DEMO-v1'])}${state.screening==='false-positive'?`
Simulated human reviewer / Maya Chen · 02 Oct 2026, 09:15 UTC

${esc(state.screenReason)}

Decision scope: this potential match only. Official-list and ownership diligence are separate questions.

${button('Reopen this disposition','reopen-screening')}
`:`

Record a reasoned disposition.

Identifier evidence and a written reason are required for the false-positive state. Insufficient information stays unresolved or escalates.

${button('Record simulated disposition','record-screening','primary')}
`}

The CSL is an aid focused on export restrictions, not comprehensive importer clearance. Read the official context.

${button('Inspect the cost assumptions','tab-cost')}

`;} function costValues(){const goods=state.quantity*state.unit,aDuty=goods*state.rateA/100,bDuty=goods*state.rateB/100;return {goods,aDuty,bDuty,a:goods+aDuty+830,b:goods+bDuty+830};} function costPanel(){const c=costValues();return panelHead('04 / Conditional landed cost','Compare the included components.','Invented rates. Unvalidated customs value. Fixture effective 01 Oct 2026.')+`
${button('Apply scenario inputs','apply-cost')}${button('Restore fixture inputs','restore-cost')}
${costResults(c)}
${chips(['INV-HW-104-v1','VAL-104-v1','TARIFF-DEMO-v1'])}

Excluded / unassessed

MPF/HMF where applicable, additional tariffs, AD/CVD, other taxes or charges, and required valuation adjustments. Freight is a separate illustrative cost line—not a legal valuation treatment.

${button('Inspect a simulated tariff change','tariff-change')}${button('Continue to broker review','tab-packet','primary')}

`;} function costResults(c){const max=Math.max(c.a,c.b);return `
Scenario difference · Not savings${money(Math.abs(c.b-c.a))}
${[['Goods',c.goods,c.goods],['Illustrative duty',c.aDuty,c.bDuty],['Freight',600,600],['Insurance',80,80],['Broker fee',150,150],['Included subtotal',c.a,c.b]].map(([label,a,b])=>``).join('')}
Included-components subtotal / USD · Synthetic data
ComponentScenario AScenario B
${label}${money(a)}${money(b)}
Subtotal / unit$${(c.a/state.quantity).toFixed(2)}$${(c.b/state.quantity).toFixed(2)}
`;} function packetPanel(){const blocked=blockers();return panelHead('05 / Broker persona & handoff','Review the reasoning before the packet.','Noah Reed is a simulated broker reviewer. The action approves a packet for discussion, not a classification or customs entry.')+alertBox(state.approved?'Packet complete for broker discussion':'Packet readiness is held',state.approved?'Open classification question is retained. No filing, release, or government approval.':blocked.join(' · '),state.approved?'success':'warning')+`${!state.brokerPersona?`

Enter the broker-review persona.

This changes the simulated role, not a real user permission or account.

${button('Continue as Noah Reed · simulated','enter-broker','primary')}
`:!state.brokerReviewed?`

Noah Reed / Simulated broker review

Reject the unsupported H-B assembly-function assumption. Select H-A only as a working hypothesis for the packet, and retain the remaining classification question.

${button('Record simulated broker review','record-broker','primary')}
`:`
Broker review recorded · 02 Oct 2026, 09:20 UTC

H-B assumption rejected: ${esc(state.brokerReason)}

H-A is a working hypothesis. Remaining question: ${esc(state.brokerQuestion)}

`}

Handoff scope

Invoice, valuation, classification provenance, origin response, screening disposition, and open questions. The PDF is the canonical six-page synthetic fixture; edited assumptions or costs must be restored before its export.

${chips(['INV-HW-104-v1','VAL-104-v1','SPEC-HX42-v1'])}${state.brokerReviewed&&!state.approved?``:''}
${state.approved?link('Preview the synthetic packet','/demo/packets/dkt-hx42-v1','primary'):button('Approve packet for discussion','approve-packet','primary')}${button('Test the readiness gate','try-ready')}
${button('Reopen this packet review','reopen-packet','secondary',!state.brokerReviewed?'disabled':'')}

No send, filing, funds transfer, or ERP/bank write can be enabled.

`;} function renderSummary(){if(!$('#record-summary'))return;const cells=[['Classification',state.brokerReviewed?'Working hypothesis':'Two alternatives',state.brokerReviewed?'review':'pending','US HTS unassigned'],['Origin',state.originReviewed?'Reviewed':state.originLoaded?'Unreviewed':'Missing evidence',state.originReviewed?'exported':state.originLoaded?'pending':'held','Eligibility not assessed'],['Screening',state.screening==='false-positive'?'Match dispositioned':state.screening==='escalated'?'Escalated':'Unresolved hit',state.screening==='false-positive'?'exported':'held','This match only'],['Valuation','Unvalidated input','pending','Included costs conditional'],['Packet',state.exported?'Exported':state.approved?'Discussion approved':'Held for review',state.exported?'exported':state.approved?'review':'held','No filing or transmission']];$('#record-summary').innerHTML='
'+cells.map(([t,s,k,n])=>`
${t}${status(s,k)}${n}${demoBadge()}
`).join('')+'
';} function renderHistory(){const root=$('#review-history');if(!root)return;const initial=[{time:'09:00',action:'Initial evidence collected',actor:'Maya Chen',reason:'SPEC-HX42-v1, DRAW-HX42-v1, INV-HW-104-v1, PRIOR-EN104-v1, VAL-104-v1. Origin absent; screening unresolved.',revision:1}];root.innerHTML=[...initial,...state.history].map(ev=>`
${esc(ev.action)} / ${esc(ev.actor)}

${esc(ev.reason)} · Proposal r${ev.revision}

`).join('');} function renderRecord(focusTab=false){if(!$('#review-panel'))return;const previousAction=document.activeElement?.dataset?.action,hadFocus=$('#review-panel').contains(document.activeElement);renderSummary();$$('[data-tab]').forEach(b=>{const selected=b.dataset.tab===currentTab;b.setAttribute('aria-selected',String(selected));b.tabIndex=selected?0:-1});const panel=$('#review-panel');panel.setAttribute('aria-labelledby','tab-'+currentTab);panel.innerHTML=({classification:classificationPanel,origin:originPanel,screening:screeningPanel,cost:costPanel,packet:packetPanel}[currentTab])();bindEvidence(panel);$$('[data-action]',panel).forEach(b=>b.addEventListener('click',()=>handleAction(b.dataset.action,b)));renderHistory();if(focusTab)$(`#tab-${currentTab}`).focus();else if(hadFocus){const target=previousAction?$(`[data-action="${previousAction}"]`,panel):null;if(target)target.focus();else{const heading=$('h2',panel);heading.tabIndex=-1;heading.focus();}}} function selectTab(name,focus=false){currentTab=name;const url=new URL(location.href);url.searchParams.set('tab',name);window.history.replaceState({},'',url);renderRecord(focus);track(name==='classification'?'override_view':'evidence_view',{area:name,preview_only:true});} $$('[data-tab]').forEach((b,i)=>{b.addEventListener('click',()=>selectTab(b.dataset.tab));b.addEventListener('keydown',ev=>{const tabs=$$('[data-tab]');let next=null;if(['ArrowRight','ArrowDown'].includes(ev.key))next=(i+1)%tabs.length;if(['ArrowLeft','ArrowUp'].includes(ev.key))next=(i-1+tabs.length)%tabs.length;if(ev.key==='Home')next=0;if(ev.key==='End')next=tabs.length-1;if(next!==null){ev.preventDefault();selectTab(tabs[next].dataset.tab,true)}})}); function handleAction(action,trigger){ if(action.startsWith('tab-')){selectTab(action.slice(4),true);return;} switch(action){ case 'edit-assumption':{const next=$('#assembly-assumption').value;if(next===state.proposal){notice('Choose a changed assumption to create a proposed revision.');return;}invalidate('Classification assumption changed.');state.proposal=next;state.revision++;history('Proposed assumption revision','New unverified assumption: '+next,'09:04');renderRecord();notice('Proposed edit recorded. Both rationales remain provisional.',true);track('override_view',{action:'proposed_edit',preview_only:true});break;} case 'undo-assumption':invalidate('Proposed assumption reversed.');state.proposal='unconfirmed';state.revision++;history('Proposal reversed','Restored the original unestablished assumption; prior proposal remains in history.','09:05');renderRecord();notice('Original assumption restored. A reversal has been recorded.',true);break; case 'try-ready':{const reasons=blockers();notice(reasons.length?'Readiness blocked: '+reasons.join('; '):'Evidence and broker-review gates are met. Explicit discussion approval is still required.',reasons.length===0);break;} case 'load-origin':state.originLoaded=true;history('Synthetic origin response loaded','ORG-HX42-v1 added. No supplier message sent.','09:09');renderRecord();notice('Fictional response loaded. Human review remains pending.',true);break; case 'review-origin':if(!$('#origin-confirm').checked){notice('Review the response and check the stated-purpose acknowledgment first.');$('#origin-confirm').focus();return;}state.originReviewed=true;history('Origin response reviewed','ORG-HX42-v1 reviewed for the stated production-fact purpose. Preference eligibility not assessed.','09:11');renderRecord();notice('Simulated origin review recorded. Eligibility remains unassessed.',true);break; case 'screen-example':$('#screen-reason').value='LIST-DEMO-v1 shows different registration IDs (DEMO-HW-001 vs DEMO-HIW-091) and conflicting fictional address evidence. Treat this specific similar-name match as a false positive after human comparison.';$('#screen-reason').focus();break; case 'record-screening':{const chosen=$('#screen-disposition').value,reason=$('#screen-reason').value.trim(),checked=$('#screen-identifiers').checked;if(!chosen||reason.length<12||(chosen==='false-positive'&&!checked)){notice('Choose a disposition, write a reason, and compare the identifier evidence before recording a false positive.');return;}invalidate('Screening disposition changed.');state.screening=chosen;state.screenReason=reason;history('Human screening disposition',chosen+' · '+reason,'09:15');renderRecord();notice(chosen==='false-positive'?'Human disposition recorded for this fixture match only.':'Match remains held or escalated. Packet readiness is blocked.',chosen==='false-positive');break;} case 'reopen-screening':state.screening='unresolved';invalidate('Screening match reopened.');history('Screening review reopened','Prior human disposition retained; match unresolved again.','09:16');renderRecord();notice('Match reopened. Packet approval has been invalidated.');break; case 'apply-cost':{const fields=['quantity','unit','rateA','rateB'],ids=['cost-quantity','cost-unit','cost-rate-a','cost-rate-b'];let vals=ids.map(id=>Number($('#'+id).value));if(ids.some((id,i)=>!$('#'+id).value.trim()||!$('#'+id).validity.valid||!Number.isFinite(vals[i]))||vals[0]<1||vals[1]<=0){notice('Use a whole quantity of 1–100,000, a positive unit price, and rates from 0–100%.');return;}invalidate('Scenario inputs changed.');fields.forEach((k,i)=>state[k]=vals[i]);history('Scenario inputs revised','Conditional scenario recalculated; invented rates and excluded charges remain visible.','09:17');renderRecord();notice('Scenario recalculated. The lower subtotal does not choose a classification.',true);break;} case 'restore-cost':invalidate('Scenario inputs restored.');state.quantity=1000;state.unit=12;state.rateA=4;state.rateB=6;history('Canonical scenario restored','1,000 units × $12. Invented duty rates 4% / 6%.','09:18');renderRecord();notice('Canonical fixture values restored.',true);break; case 'tariff-change':$('#evidence-title').textContent='Simulated tariff-change review';$('#evidence-body').innerHTML='

DEMO / Not a live alert

A changed fixture opens a question.

An illustrative new fixture is effective 03 Oct 2026. The previously reviewed source remains 01 Oct 2026. A reviewer must inspect the selected lane before incorporating any change.
Previous reference
TARIFF-DEMO-v1 / effective 01 Oct 2026
Proposed new reference
TARIFF-DEMO-v2 / simulated 03 Oct 2026
Action
Review required. No approved dossier is changed automatically.

No monitoring service or actual duty change is represented.

';openDialog('evidence-dialog',trigger);track('evidence_view',{area:'tariff_change',preview_only:true});break; case 'enter-broker':state.brokerPersona=true;save();renderRecord();notice('Simulated broker persona selected. No real account or permission changed.',true);break; case 'broker-example':$('#broker-reason').value='The full imported assembly function is not established by DRAW-HX42-v1. Return that unsupported H-B assumption; preserve both rationales.';$('#broker-question').value='Confirm the complete product as imported and the construction and function facts before assigning an actual US HTS candidate.';$('#broker-reason').focus();break; case 'record-broker':{const reason=$('#broker-reason').value.trim(),question=$('#broker-question').value.trim();if(!$('#broker-reject').checked||!$('#broker-working').checked||reason.length<12||question.length<12){notice('Record the rejection, working hypothesis, reason, and remaining question. The review cannot silently promote an unsupported assumption.');return;}state.brokerReason=reason;state.brokerQuestion=question;state.brokerReviewed=true;history('Broker review recorded','H-B assumption rejected; H-A working hypothesis. Open question: '+question,'09:20','Noah Reed');renderRecord();notice('Simulated broker review recorded. The code remains unassigned.',true);break;} case 'approve-packet':{const reasons=blockers();if(reasons.length){notice('Discussion approval blocked: '+reasons.join('; '));return;}if(!$('#handoff-confirm')?.checked){notice('Explicitly acknowledge completeness for broker discussion, with open questions included.');$('#handoff-confirm')?.focus();return;}state.approved=true;history('Packet approved for discussion','Completeness accepted for broker discussion only. Classification is nonbinding and unassigned.','09:24','Noah Reed');renderRecord();notice('Packet completeness approved for the stated discussion. No customs action occurred.',true);break;} case 'reopen-packet':state.approved=false;state.brokerReviewed=false;state.exported=false;history('Packet review reopened','Previous decision retained. A new human review is required.','09:26','Noah Reed');renderRecord();notice('Review reopened. Export readiness is invalidated.');break; } save();renderSummary(); } function renderPacket(){const root=$('#packet-view');if(!root)return;const ready=state.approved&&blockers().length===0;root.innerHTML=`
SKUDocket${demoBadge()}

Broker-review
dossier.

HX-42 / EN-104

Stainless fastener assembly
Alder Import Co / Harborside Works

Dossier / version
DKT-HX42-v1 · Canonical synthetic example
Intended reviewer
Noah Reed / Simulated broker persona
Packet state
${ready?(state.exported?'Local export requested':'Complete for broker discussion'):'Unreviewed or held'}
Data as of
01 Oct 2026 · Simulated tariff and list fixtures
Open classification question
Confirm the complete imported product and supporting construction/function facts before assigning an actual US HTS candidate.

CONCEPT PREVIEW. Illustrative; not a filing, sanctions clearance, or legal determination.

The source manifest.

${[['SPEC-HX42-v1','Composition and construction','Collected'],['DRAW-HX42-v1','Parts and assembly questions','Collected'],['INV-HW-104-v1','1,000 units × $12 = $12,000','Collected'],['PRIOR-EN104-v1','Historical comparison—not proof','Collected'],['VAL-104-v1','Unvalidated value and excluded adjustments','Unassessed'],['ORG-HX42-v1','Synthetic production response',state.originReviewed?'Reviewed':'Missing / unreviewed'],['LIST-DEMO-v1','Fictional potential match',state.screening==='false-positive'?'Match dispositioned':'Unresolved'],['TARIFF-DEMO-v1','Invented 4% / 6% rates','Conditional']].map(([id,purpose,s])=>``).join('')}
Canonical synthetic dossier references
ReferencePurposeState
${purpose}${s}
`;bindEvidence(root);$$('[data-action]',root).forEach(b=>b.addEventListener('click',async()=>{if(b.dataset.action==='download-review'){download(JSON.stringify({label:'DEMO — SYNTHETIC DATA',concept_preview:true,...state},null,2),'SKUDocket-HX42-session-review.json','application/json');toast('Synthetic session log download prepared. No external transmission.');return;}if(b.dataset.action==='download-packet'){if(!state.approved||blockers().length){toast('Review gates must be met before the illustrative export.');return;}b.disabled=true;try{const response=await fetch('/assets/documents/SKUDocket-HX42-DEMO-packet.pdf');if(!response.ok)throw new Error('Download failed');const blob=await response.blob();if(blob.size<1000)throw new Error('Invalid document');const url=URL.createObjectURL(blob),a=document.createElement('a');a.href=url;a.download='SKUDocket-HX42-DEMO-packet.pdf';document.body.append(a);a.click();a.remove();setTimeout(()=>URL.revokeObjectURL(url),1000);state.exported=true;history('Local PDF download prepared','Canonical synthetic DKT-HX42-v1. Nothing transmitted or filed.','09:25','Noah Reed');renderPacket();toast('Synthetic PDF download prepared. Saving the file is handled by your browser.');}catch{b.disabled=false;toast('The PDF could not be loaded. Review state is preserved; try again.')}}}));} function renderDemo(){renderQueue();renderRecord();renderPacket();} renderDemo(); if(document.body.dataset.route==='/')track('landing_view',{preview_only:true}); if(document.body.dataset.route==='/pricing')track('price_view',{preview_only:true}); if(document.body.dataset.route?.startsWith('/demo'))track('demo_open',{preview_only:true}); $$('a[href*="request-pilot?offer="]').forEach(a=>a.addEventListener('click',()=>{const selected=Number(new URL(a.href).searchParams.get('offer'));track('offer_13_selected',{selected_offer_id:selected,preview_only:true});})); // Fictional demo sign-in only. No network request, credential storage, or analytics. const demoSignin=$('#demo-signin'); if(demoSignin){ const email=$('#signin-email'),password=$('#signin-password'),message=$('#signin-status'),toggle=$('#signin-password-toggle'); $('fieldset',demoSignin).disabled=false; $('#signin-fill').addEventListener('click',()=>{email.value='demo@skudocket.example';password.value='DocketDemo42!';message.textContent='Fictional demo credentials filled. Ready to explore.';email.removeAttribute('aria-invalid');password.removeAttribute('aria-invalid');}); toggle.addEventListener('click',()=>{const show=password.type==='password';password.type=show?'text':'password';toggle.textContent=show?'Hide':'Show';toggle.setAttribute('aria-label',show?'Hide demo password':'Show demo password');toggle.setAttribute('aria-pressed',String(show));}); demoSignin.addEventListener('submit',event=>{event.preventDefault();if(email.value.trim().toLowerCase()==='demo@skudocket.example'&&password.value==='DocketDemo42!'){email.value='';password.value='';location.assign('/demo/skus');}else{message.textContent='Use the fictional demo credentials shown below. Live accounts are not connected.';email.setAttribute('aria-invalid','true');password.setAttribute('aria-invalid','true');email.focus();}}); }