/* Original conceptual teaching scenes. No operational or engineering model. */ (function () { 'use strict'; window.industryRenderers ??= {}; const C={bg:'#101d30',panel:'#182b42',line:'#667c95',ink:'#edf5ff',muted:'#aec1d7',cyan:'#57d4ed',green:'#85e0ad',amber:'#ffd178',red:'#ff8c8c'}; function scene(svg,config,kit,title,subtitle,phases,note){ const {anime,el}=kit, duration=Math.max(3000,Number(config.duration)||6000), unit=duration/6; const tl=anime.createTimeline({autoplay:false,defaults:{ease:'linear'}}); const E=(tag,a={},text='',p=svg)=>el(tag,a,text,p); const rect=(x,y,w,h,fill=C.panel,p=svg,extra={})=>E('rect',{x,y,width:w,height:h,rx:8,fill,...extra},'',p); const text=(x,y,t,size=18,fill=C.ink,p=svg,extra={})=>E('text',{x,y,fill,'font-size':size,'font-family':'system-ui, sans-serif',style:`fill:${fill};font-size:${size}px;font-family:system-ui,sans-serif`,...extra},t,p); const path=(d,color=C.line,width=3,p=svg,extra={})=>E('path',{d,fill:'none',stroke:color,'stroke-width':width,'stroke-linecap':'round','stroke-linejoin':'round',...extra},'',p); const circle=(cx,cy,r,fill=C.cyan,p=svg,extra={})=>E('circle',{cx,cy,r,fill,...extra},'',p); const group=()=>E('g'); const add=(target,props,at=0,len=.75)=>tl.add(target,{...props,duration:unit*len},unit*at); const reveal=(target,at)=>{target.setAttribute('opacity','0.12');add(target,{opacity:[.12,1]},at);return target;}; const draw=(d,at,color=C.cyan,width=4)=>{const p=path(d,color,width);p.setAttribute('pathLength','1');p.setAttribute('stroke-dasharray','1');p.setAttribute('stroke-dashoffset','1');add(p,{'stroke-dashoffset':[1,0]},at);return p;}; rect(0,0,960,540,C.bg,svg,{rx:0}); text(32,39,title,26);text(32,69,subtitle,17,C.muted); path('M32 88 H928',C.line,1); phases.forEach((label,i)=>{const x=32+i*181;rect(x,440,172,44);const bar=rect(x,440,172,4,C.cyan,svg,{rx:0});add(bar,{opacity:[.15,1]},i,.65);text(x+10,469,`${i+1} ${label}`,16);}); text(32,516,note,16,C.muted); const clock=E('g',{'data-clock':'finite'});add(clock,{opacity:[1,1]},0,6); return {svg,config,tl,E,rect,text,path,circle,group,add,reveal,draw,C}; } window.industryRenderers["finance-payment-reconciliation"] = function(svg, config, kit) { const s=scene(svg,config,kit,'PAYMENT / TWO CLOCKS','Approval reserves funds; settlement moves value; reconciliation explains a mismatch.', ['Authorize','Capture','Clear','Settle','Reconcile'],'Conceptual payment lifecycle • amber = exception • green = matched ledger'); const {rect,text,path,circle,group,add,reveal,draw,C}=s; // A payment card and a physical terminal, not anonymous process tiles. rect(40,123,170,102,'#274764');rect(56,148,28,24,C.amber);path('M56 186 H119',C.muted,4); text(56,216,'Payer card',17);rect(246,126,98,105,'#344b63');rect(258,138,74,36,'#0d2032'); for(let r=0;r<2;r++)for(let c=0;c<3;c++)rect(260+c*22,185+r*15,13,8,C.muted,svg,{rx:2}); text(245,254,'Merchant',17);text(44,254,'Purchase intent',16,C.muted); // Issuer building: roof, columns and a reserve vault. path('M400 153 L480 115 L560 153 Z',C.muted,3);path('M404 220 H556',C.muted,5); [420,455,490,525].forEach(x=>rect(x,157,12,61,C.line,svg,{rx:1}));text(428,254,'Issuer',17); const reserve=group();rect(405,277,150,49,'#264838',reserve);text(419,307,'Funds reserved',16,C.green,reserve);reveal(reserve,.35); draw('M210 172 H246',0);draw('M344 170 H393',.2);draw('M470 265 V277',.5,C.green); const approved=group();path('M370 192 L379 202 L395 181',C.green,4,approved);reveal(approved,.4); // Batch records correspond to the two captures and fee in the ledgers. text(621,122,'Clearing batch',18);[0,1,2].forEach(i=>{const g=group();rect(619,137+i*26,127,23,'#244058',g,{stroke:C.line});text(629,154+i*26,['Capture '+String(config.reference||'A').slice(0,4),'Capture B','Fee entry'][i],16,C.ink,g);reveal(g,1+i*.25);}); draw('M344 210 H587 V172 H615',1,C.cyan); text(783,122,'Settlement rail',18);path('M783 166 H916 M783 178 H916',C.line,3); const money=circle(777,172,9,C.green);add(money,{cx:[777,906]},2.6,1); draw('M744 172 H776',2,C.cyan);text(789,211,'Value transfer',16,C.green); // Dual ledgers and a separate exception entry. rect(606,273,148,126,'#1c3349');rect(777,273,148,126,'#1c3349'); text(618,300,'Merchant ledger',16);text(789,300,'Bank statement',16); [321,345,369].forEach(y=>{path(`M620 ${y} H738`,C.line,1);path(`M791 ${y} H909`,C.line,1);}); const ref=String(config.reference||'A').slice(0,4); text(622,320,ref+' captured',16,C.muted);text(791,320,ref+' settled',16,C.muted); text(622,344,'B captured',16,C.muted);text(791,344,'B settled',16,C.muted); const feePending=text(622,368,'Fee pending',16,C.amber);add(feePending,{opacity:[1,0]},4,.4); const feeBooked=text(622,368,'Fee booked',16,C.green);feeBooked.setAttribute('opacity','0');add(feeBooked,{opacity:[0,1]},4.4,.3);text(791,368,'Fee posted',16,C.green); draw('M855 220 V268',3,C.green); const match=group();path('M753 314 L763 323 L775 304 M753 338 L763 347 L775 328 M753 362 L763 371 L775 352',C.green,3,match);reveal(match,4); const exception=group();rect(44,349,502,56,'#493d2c',exception);text(59,372,'Exception queue → fee evidence → matched record',17,C.amber,exception);text(59,395,'Approval alone never closes the accounting loop.',16,C.ink,exception);reveal(exception,4.2); draw('M606 375 H566 V380 H549',4,C.amber); return s.tl; }; window.industryRenderers["finance-insurance-evidence"] = function(svg, config, kit) { const s=scene(svg,config,kit,'CLAIM / EVIDENCE TO DECISION','A missing document delays a decision, not the identity of the claim.', ['Intake','Assemble','Review gap','Resolve','Settle'],'Conceptual insurance workflow • amber = incomplete evidence • green = reviewed release'); const {rect,text,path,circle,group,add,reveal,draw,C}=s; // Damaged roof with a photographic evidence frame. path('M49 218 L120 155 L185 218 M67 204 V276 H168 V204',C.muted,4); path('M110 164 L120 184 L132 166',C.amber,4);rect(104,233,28,43,'#2b4661'); text(45,316,'Reported damage',17);text(45,340,'One claim identity',16,C.muted); const intake=group();circle(190,169,17,C.cyan,intake);text(181,175,'1',18,C.bg,intake);reveal(intake,0); // Evidence documents are individually surfaced into a folio. const docs=[['Photo',139],['Policy',217],['Estimate',295]]; docs.forEach(([name,y],i)=>{const g=group();rect(269,y,107,62,'#233e56',g,{stroke:C.line}); if(i===0){path(`M280 ${y+45} L296 ${y+24} L312 ${y+40} L328 ${y+19} L365 ${y+47}`,C.muted,2,g);circle(351,y+14,5,C.amber,g);}else{path(`M281 ${y+15} H363 M281 ${y+24} H352`,C.muted,2,g);} text(280,y+57,name,16,C.ink,g);reveal(g,.6+i*.35);}); draw('M189 240 H245 V168 H264',.4);draw('M245 240 H264',.8);draw('M245 240 V325 H264',1.1); path('M415 173 H465 L478 189 H579 V330 H415 Z',C.line,3); text(434,222,'Claim dossier',18);text(434,251,'Photos received',16,C.green);text(434,278,'Policy linked',16,C.green); const missing=group();text(434,306,String(config.missingItem||'Signature').slice(0,12)+' needed',16,C.amber,missing);reveal(missing,2);add(missing,{opacity:[1,1]},2.75,.75);add(missing,{opacity:[1,0]},3.5,.3); const complete=text(434,306,'Evidence complete',16,C.green);complete.setAttribute('opacity','0');add(complete,{opacity:[0,1]},3.8,.3); [169,247,325].forEach((y,i)=>draw(`M377 ${y} H397 V245 H412`,1+i*.2)); // Reviewer magnifier and missing-evidence return loop. circle(652,202,32,'none',svg,{stroke:C.cyan,'stroke-width':4});path('M674 225 L701 252',C.cyan,8); text(612,287,'Review gate',17);draw('M580 243 H612',2); const gap=group();circle(650,202,16,C.amber,gap);text(646,208,'!',18,C.bg,gap);reveal(gap,2.2);add(gap,{opacity:[1,1]},2.95,.35);add(gap,{opacity:[1,0]},3.3,.3); draw('M650 310 V381 H321 V362',2.5,C.amber);text(385,405,'Request evidence → same dossier → re-review',16,C.amber); const resolved=group();path('M632 204 L646 218 L670 185',C.green,5,resolved);reveal(resolved,3.4); const signature=group();path('M289 330 L301 319 L307 338 L323 323 L352 328',C.green,3,signature);reveal(signature,3); const returned=group();rect(280,302,79,43,'#345a48',returned);text(290,329,'Evidence',16,C.green,returned);reveal(returned,3);add(returned,{translateX:[0,152],translateY:[0,-88]},3,.7);add(returned,{opacity:[1,1]},3.75,.05);add(returned,{opacity:[1,0]},3.8,.2); // A signed settlement document and disbursement coin. rect(773,140,142,167,'#234539',svg,{stroke:C.green});text(786,171,'Settlement',18);path('M787 187 H900 M787 201 H885 M787 215 H900',C.muted,2); text(786,245,'Terms agreed',16,C.green);text(786,278,'Release recorded',16,C.green); draw('M702 243 H768',4,C.green);const paid=group();circle(846,355,27,C.green,paid);text(831,362,'✓',24,C.bg,paid);reveal(paid,4.3); draw('M846 312 V324',4.2,C.green);text(779,405,'Payment + audit trail',16,C.muted); return s.tl; }; })();