{"version":3,"file":"FeatureOverlay.BAsWv3PJ.mjs","names":["p","useState","useRef","_Fragment","__esmMin","init_ssg_sandbox_shims","init_npm_react_18_3_1","Ha","ce","init_jsx_runtime","init_npm_react_dom_18_3_1","p","_e","de","window","pageTint","c","pageAccent","n","mix","v","re","PAGE","place","clampX","W","cw","x","clampY","H","ch","y","btn","ov","w","z","g","h","cost","R","pref","best","bc","okc","x0","y0","k","FeatureOverlay","tour","p$1","open","setOpen","step","setStep","pos","setPos","moved","setMoved","force","docked","setDocked","needDock","host","drag","card","anchor","calc","el","r","vh","t","idx","f","go","i","canGo","ring","tip","frameEl","TH","bx","by","bw","bh","target","fr","tr","l","PAD","b","side","px","TW","py","q","small","top","fw","up","d","onDown","onMove","onUp","toggle","cardEl","dk","ac","CSS","init_FeatureOverlay"],"sources":["https:/framerusercontent.com/modules/CVkIfu93JKeCHtepZp1L/Y8o4NR8zYSxjKji2xu8R/FeatureOverlay.js"],"sourcesContent":["// FeatureOverlay.tsx\n// Shared \"Features\" overlay for the case study hero animations and prototypes.\n// Two modes:\n//   auto (animations): pass `index` (the feature the animation is on) and `onSeek` (jumps the animation to a feature).\n//   tour (interactive prototypes): omit `index`; the card steps through the features and opens on first view.\n// Each step can tell two stories: `b` says why the feature exists, and `do` gives the visitor one thing to try\n// in the prototype. Pass `done` (true once they've done it) to check the step off.\n// Every card has the same controls: Hide, Back, Next. Next on the last feature returns to the first.\n// A ring highlights the feature (found by `sel` inside the frame, or a canvas `box`), and the card explains it.\n// Drag the card by its top edge to move it anywhere in the frame; it stays where you put it.\n// A sticky \"Features\" button pinned inside the frame at the bottom of the browser view collapses or reopens it.\nimport{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{useEffect,useRef,useState}from\"react\";import{createPortal}from\"react-dom\";// Page colors per case study, used for the focus ring and card accents\nconst PAGE=[[/finra/,\"#5146B3\"],[/payfactors/,\"#8A5300\"],[/generalstar|general-star/,\"#2F4E9B\"],[/camp/,\"#0B6A8C\"],[/schneider|schnieder/,\"#157432\"],[/chentronics/,\"#B5480F\"],[/fidelity/,\"#36702A\"],[/colddock/,\"#2F86C6\"],[/picklerobot/,\"#4E8A1C\"],[/roadrunner/,\"#B93D17\"],[/acme/,\"#3F6FD8\"],[/amazon/,\"#D9480F\"]];// Lighter tint of the page color for rings and labels on dark hero backgrounds\nexport function pageTint(){const c=pageAccent().replace(\"#\",\"\");const n=parseInt(c,16),mix=v=>Math.round(v+(255-v)*.45);const r=mix(n>>16&255),g=mix(n>>8&255),b=mix(n&255);return\"#\"+[r,g,b].map(v=>v.toString(16).padStart(2,\"0\")).join(\"\");}export function pageAccent(){if(typeof window===\"undefined\")return\"#D9480F\";const p=window.location.pathname.toLowerCase();for(const[re,c]of PAGE)if(re.test(p))return c;return\"#D9480F\";}// Pick a card spot inside the frame that never covers the focused area (or the Features button)\nfunction place(W,H,cw,ch,R,pref){const M=10,G=14;const clampX=x=>Math.max(M,Math.min(W-cw-M,x));const clampY=y=>Math.max(M,Math.min(H-ch-M,y));const btn={l:W-170,t:H-60,r:W,b:H};const ov=(x,y,z,g)=>{const w=Math.min(x+cw,z.r+g)-Math.max(x,z.l-g),h=Math.min(y+ch,z.b+g)-Math.max(y,z.t-g);return w>0&&h>0?w*h:0;};const cost=(x,y)=>(R?ov(x,y,R,G)*1e3:0)+ov(x,y,btn,4)*400+Math.hypot(x-pref.x,y-pref.y);const c=[[clampX(pref.x),clampY(pref.y)]];if(R){c.push([R.r+G,clampY(R.t)],[R.l-G-cw,clampY(R.t)],[clampX(R.l),R.b+G],[clampX(R.l),R.t-G-ch]);c.push([R.r+G,clampY(R.b-ch)],[R.l-G-cw,clampY(R.b-ch)],[clampX(R.r-cw),R.b+G],[clampX(R.r-cw),R.t-G-ch]);}for(let y=M;y<=H-ch-M;y+=16)for(let x=M;x<=W-cw-M;x+=16)c.push([x,y]);c.push([M,H-ch-M],[W-cw-M,M],[M,M]);let best=c[0],bc=Infinity,okc=false;for(const[x0,y0]of c){const x=clampX(x0),y=clampY(y0);const k=cost(x,y);if(k<bc){bc=k;best=[x,y];okc=!R||ov(x,y,R,4)===0;}}return{x:best[0],y:best[1],ok:okc};}const TW=300;const PAD=3// ring clearance around the feature, in screen px\n;export function FeatureOverlay(p){const tour=p.index===undefined;const[open,setOpen]=useState(!p.startClosed);const[step,setStep]=useState(0);const[pos,setPos]=useState(null);const[moved,setMoved]=useState(null);const[,force]=useState(0);const[docked,setDocked]=useState(false);const needDock=useRef(false);const host=useRef(null);const drag=useRef(null);const card=useRef(null);const anchor=useRef(null)// card position is fixed per feature so it never drifts under the cursor\n;useEffect(()=>{const calc=()=>{const el=p.frame.current;if(!el)return;const r=el.getBoundingClientRect();const vh=window.innerHeight;if(r.bottom<60||r.top>vh-40){setPos(null);return;}const x=r.right-136-16;const y=Math.max(r.top+16,Math.min(vh-34-20,r.bottom-34-16));setPos({x,y});force(n=>n+1);};calc();window.addEventListener(\"scroll\",calc,true);window.addEventListener(\"resize\",calc);const t=setInterval(calc,700);return()=>{window.removeEventListener(\"scroll\",calc,true);window.removeEventListener(\"resize\",calc);clearInterval(t);};},[]);useEffect(()=>{if(!tour||!p.jump)return;setStep(p.jump.i);setMoved(null);setOpen(true);},[p.jump?p.jump.n:0]);const n=p.features.length;const idx=tour?step:p.index;const f=idx>=0?p.features[idx]:null;useEffect(()=>{if(!tour||!open||!f)return;if(f.run)f.run();const t=setTimeout(()=>force(k=>k+1),260);return()=>clearTimeout(t);},[step,open]);const go=k=>{const i=(k%n+n)%n;if(tour)setStep(i);else if(p.onSeek)p.onSeek(i);};const canGo=tour||!!p.onSeek;let ring=null,tip=null;const frameEl=p.frame.current;const W=frameEl?frameEl.clientWidth:0,H=frameEl?frameEl.clientHeight:0;const TH=canGo?215:175;if(open&&f&&frameEl){let bx=0,by=0,bw=0,bh=0;const target=f.sel?frameEl.querySelector(f.sel):null;if(target){const fr=frameEl.getBoundingClientRect(),tr=target.getBoundingClientRect();// screen px -> frame px (the hero may sit inside a scaled container)\nconst k=frameEl.offsetWidth?fr.width/frameEl.offsetWidth:1;bx=(tr.left-fr.left)/k;by=(tr.top-fr.top)/k;bw=tr.width/k;bh=tr.height/k;}else if(f.box){[bx,by,bw,bh]=f.box.map(v=>v*p.z);}if(bw>0&&bh>0){// ring sits fully around the feature, clamped to stay visible inside the frame\nlet l=bx-PAD,t=by-PAD,r=bx+bw+PAD,b=by+bh+PAD;l=Math.max(3,l);t=Math.max(3,t);r=Math.min(W-3,r);b=Math.min(H-3,b);ring={left:l,top:t,width:r-l,height:b-t};}const side=f.side||\"right\";const ch=card.current?card.current.offsetHeight:TH;let px=side===\"right\"?bx+bw+18:side===\"left\"?bx-TW-18:bx;let py=side===\"below\"?by+bh+16:side===\"above\"?by-16-ch:by;if(f.tip){px=f.tip[0]*p.z;py=f.tip[1]*p.z;}const R=ring?{l:ring.left,t:ring.top,r:ring.left+ring.width,b:ring.top+ring.height}:null;let x,y;const k=idx+\":\"+Math.round(W)+\"x\"+Math.round(H);if(!anchor.current||anchor.current.k!==k||Date.now()-anchor.at<600){if(!anchor.current||anchor.current.k!==k)anchor.at=Date.now();const q=place(W,H,TW,ch,R,{x:px,y:py});x=q.x;y=q.y;if(!q.ok&&!moved)needDock.current=true;anchor.current={k,x,y};}else{x=anchor.current.x;y=anchor.current.y;}if(moved){x=moved.x;y=moved.y;}x=Math.max(10,Math.min(W-TW-10,x));y=Math.max(10,Math.min(H-ch-10,y));tip={left:x,top:y};}const small=W>0&&W<560;useEffect(()=>{// keep the ring and card inside the frame's own stacking layer so they never draw over the site header\nconst fr=p.frame.current;if(fr&&getComputedStyle(fr).isolation!==\"isolate\")fr.style.isolation=\"isolate\";});useEffect(()=>{if(!docked&&(small||needDock.current))setDocked(true);});useEffect(()=>{if(!docked)return;const fr=p.frame.current;if(!fr)return;let top=fr;const fw=fr.getBoundingClientRect().width;for(let i=0;i<6;i++){const up=top.parentElement;if(!up||Math.abs(up.getBoundingClientRect().width-fw)>4||up.tagName===\"FIGURE\")break;top=up;}const d=document.createElement(\"div\");d.className=\"fo-dockhost\";top.after(d);host.current=d;force(k=>k+1);return()=>{d.remove();host.current=null;};},[docked]);const onDown=e=>{if(e.target.closest(\"button\")||!tip)return;drag.current={sx:e.clientX,sy:e.clientY,ox:tip.left,oy:tip.top};e.currentTarget.setPointerCapture(e.pointerId);e.preventDefault();};const onMove=e=>{const d=drag.current;if(!d)return;setMoved({x:Math.max(10,Math.min(W-TW-10,d.ox+e.clientX-d.sx)),y:Math.max(10,Math.min(H-TH-10,d.oy+e.clientY-d.sy))});};const onUp=()=>{drag.current=null;};const toggle=()=>{setOpen(!open);};// below-screenshot layout: the Features button sits under the screenshot (never over the UI)\nconst btn=pos&&!docked?/*#__PURE__*/createPortal(/*#__PURE__*/_jsxs(\"button\",{className:\"fo-btn\",onClick:toggle,\"aria-expanded\":open,\"aria-label\":open?\"Hide feature callouts\":\"Show feature callouts\",style:{left:pos.x,top:pos.y},children:[/*#__PURE__*/_jsx(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 -960 960 960\",fill:\"currentColor\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"m354-287 126-76 126 77-33-144 111-96-146-13-58-136-58 135-146 13 111 97-33 143ZM233-120l65-281L80-590l288-25 112-265 112 265 288 25-218 189 65 281-247-149-247 149Zm247-350Z\"})}),open?\"Hide features\":\"Features\"]}),document.body):null;const cardEl=dk=>/*#__PURE__*/_jsxs(\"div\",{ref:card,className:\"fo-tip\"+(canGo?\" fo-live\":\"\")+(moved?\" fo-moved\":\"\")+(dk?\" fo-dock\":\"\"),style:dk?undefined:{...tip,width:TW},role:\"dialog\",\"aria-label\":`Feature ${idx+1} of ${n}`,onPointerDown:dk?undefined:onDown,onPointerMove:onMove,onPointerUp:onUp,onPointerCancel:onUp,children:[/*#__PURE__*/_jsx(\"div\",{className:\"fo-grip\",title:\"Drag to move\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"span\",{})}),/*#__PURE__*/_jsxs(\"div\",{className:\"fo-body\",children:[/*#__PURE__*/_jsxs(\"p\",{className:\"fo-n\",children:[\"Feature \",idx+1,\" of \",n]}),/*#__PURE__*/_jsx(\"p\",{className:\"fo-h\",children:f.h}),/*#__PURE__*/_jsx(\"p\",{className:\"fo-b\",children:f.b}),f.do?/*#__PURE__*/_jsxs(\"div\",{className:\"fo-do\"+(f.done?\" fo-done\":\"\"),\"aria-live\":\"polite\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"fo-dol\",children:f.done?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"svg\",{width:\"12\",height:\"12\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"3.2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M5 12.5l4.5 4.5L19 7.5\"})}),\"Done\"]}):\"Try it\"}),/*#__PURE__*/_jsx(\"span\",{className:\"fo-dot\",children:f.do})]}):null]},idx),canGo?/*#__PURE__*/_jsxs(\"div\",{className:\"fo-row\",children:[/*#__PURE__*/_jsx(\"button\",{className:\"fo-skip\",onClick:()=>setOpen(false),children:\"Hide\"}),/*#__PURE__*/_jsx(\"span\",{style:{flex:1}}),/*#__PURE__*/_jsx(\"button\",{className:\"fo-back\",onClick:()=>go(idx-1),\"aria-label\":\"Previous feature\",children:\"Back\"}),/*#__PURE__*/_jsx(\"button\",{className:\"fo-next\"+(f.do&&f.done?\" fo-pulse\":\"\"),onClick:()=>go(idx+1),\"aria-label\":\"Next feature\",children:\"Next\"})]}):null,/*#__PURE__*/_jsx(\"div\",{className:\"fo-dots\",children:p.features.map((_,k)=>/*#__PURE__*/_jsx(\"button\",{className:k===idx?\"on\":\"\",\"aria-label\":`Feature ${k+1}`,onClick:()=>canGo&&go(k)},k))})]},tour?\"tour\":\"auto\");const ac=p.accent||pageAccent();if(typeof document!==\"undefined\")document.documentElement.style.setProperty(\"--fo-ac\",ac);return /*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"style\",{children:CSS.replace(/#e8590c|#d9480f/gi,\"var(--fo-ac)\")}),ring?/*#__PURE__*/_jsx(\"div\",{className:\"fo-ring\",style:ring}):null,tip&&f?docked?host.current?/*#__PURE__*/createPortal(cardEl(true),host.current):null:cardEl(false):null,btn,docked&&!open&&host.current?/*#__PURE__*/createPortal(/*#__PURE__*/_jsxs(\"button\",{className:\"fo-btn fo-inline\",onClick:toggle,\"aria-expanded\":false,\"aria-label\":\"Show feature callouts\",children:[/*#__PURE__*/_jsx(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 -960 960 960\",fill:\"currentColor\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"m354-287 126-76 126 77-33-144 111-96-146-13-58-136-58 135-146 13 111 97-33 143ZM233-120l65-281L80-590l288-25 112-265 112 265 288 25-218 189 65 281-247-149-247 149Zm247-350Z\"})}),\"Features\"]}),host.current):null]});}const CSS=`\n.fo-btn{position:fixed;width:136px;justify-content:center;z-index:2147483000;display:inline-flex;align-items:center;gap:6px;background:#e4d5bd;color:#1f1f1f;border:0;border-radius:999px;padding:8px 12px 8px 10px;font:500 13px/1 \"DM Sans\",Inter,system-ui,sans-serif;cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.25);transition:background .15s,transform .15s;white-space:nowrap}\n.fo-btn:hover{background:#d8c5a6;transform:translateY(-1px)}\n.fo-btn:focus-visible,.fo-next:focus-visible,.fo-back:focus-visible,.fo-skip:focus-visible,.fo-dots button:focus-visible{outline:2px solid #d9480f;outline-offset:2px}\n.fo-ring{position:absolute;z-index:44;border-radius:10px;box-shadow:0 0 0 2px #e8590c,0 0 0 3.5px rgba(255,255,255,.9);pointer-events:none;transition:left .45s cubic-bezier(.3,.7,.3,1),top .45s cubic-bezier(.3,.7,.3,1),width .45s cubic-bezier(.3,.7,.3,1),height .45s cubic-bezier(.3,.7,.3,1);animation:foin .3s ease both}\n.fo-tip{position:absolute;z-index:45;background:#fff;color:#1f1f1f;border-radius:14px;padding:6px 16px 12px;box-shadow:0 16px 40px rgba(0,0,0,.35);font-family:\"DM Sans\",Inter,system-ui,sans-serif;animation:foin .3s ease both;transition:left .45s cubic-bezier(.3,.7,.3,1),top .45s cubic-bezier(.3,.7,.3,1);text-align:left;cursor:grab;touch-action:none;user-select:none}\n.fo-tip.fo-moved{transition:none}\n.fo-tip:active{cursor:grabbing}\n.fo-grip{display:flex;justify-content:center;padding:2px 0 8px}\n.fo-grip span{width:34px;height:4px;border-radius:2px;background:#d6d6d6}\n.fo-body{animation:foin .3s ease both}\n.fo-tip p{margin:0}\n.fo-n{font-size:11px;font-weight:600;color:inherit;opacity:.7;letter-spacing:.04em;text-transform:uppercase}\n.fo-h{margin-top:6px!important;font-size:16px;font-weight:600;line-height:1.25}\n.fo-b{margin-top:6px!important;font-size:13px;line-height:1.45;color:#4a4a4a}\n.fo-row{display:flex;align-items:center;gap:8px;margin-top:14px}\n.fo-skip{background:none;border:0;font:inherit;font-size:12.5px;color:#6b6b6b;cursor:pointer;padding:6px 4px;border-radius:6px}.fo-skip:hover{color:#1f1f1f}\n.fo-back{background:#f0f0f0;border:0;border-radius:999px;padding:8px 14px;font:inherit;font-size:13px;font-weight:500;cursor:pointer;color:#1f1f1f}.fo-back:hover{background:#e4e4e4}\n.fo-next{background:#e8590c;color:#fff;border:0;border-radius:999px;padding:8px 16px;font:inherit;font-size:13px;font-weight:600;cursor:pointer}.fo-next:hover{filter:brightness(.9)}\n.fo-dots{display:flex;gap:5px;justify-content:center;margin-top:10px}\n.fo-dots button{all:unset;width:6px;height:6px;border-radius:50%;background:#d9d9d9;transition:background .2s,width .2s;cursor:pointer}\n.fo-dots button.on{background:#e8590c;width:16px;border-radius:3px}\n.fo-do{margin-top:10px;display:flex;flex-direction:column;gap:3px;padding:8px 10px;border-radius:8px;background:color-mix(in srgb,#e8590c 9%,#fff);border:1px solid color-mix(in srgb,#e8590c 30%,transparent)}\n.fo-dol{display:inline-flex;align-items:center;gap:4px;font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:inherit;opacity:.7}\n.fo-dot{font-size:13px;line-height:1.4;color:#1f1f1f;font-weight:500}\n.fo-do.fo-done{background:#eaf5ec;border-color:color-mix(in srgb,#2e7d43 35%,transparent)}\n.fo-do.fo-done .fo-dol{color:#2e7d43}\n.fo-pulse{animation:fopulse 1.4s ease-in-out infinite}\n@keyframes fopulse{0%,100%{box-shadow:0 0 0 0 rgba(0,0,0,0)}50%{box-shadow:0 0 0 5px color-mix(in srgb,#e8590c 25%,transparent)}}\n@keyframes foin{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}\n.fo-tip.fo-dock{position:relative;left:auto;top:auto;max-width:560px;margin:12px auto 0;cursor:default;box-shadow:0 4px 16px rgba(0,0,0,.16);border:1px solid rgba(0,0,0,.08);padding:12px 16px 12px}\n.fo-tip.fo-dock .fo-grip{display:none}\n.fo-tip.fo-dock .fo-n,.fo-tip.fo-dock .fo-dol{color:inherit;opacity:.7}\n.fo-btn.fo-inline{position:relative;left:auto;top:auto;z-index:1;margin:12px 0 0;box-shadow:0 2px 8px rgba(0,0,0,.18);max-width:100%;box-sizing:border-box;white-space:nowrap}\n`;\nexport const __FramerMetadata__ = {\"exports\":{\"Feature\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"pageTint\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"pageAccent\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FeatureOverlay\":{\"type\":\"reactComponent\",\"name\":\"FeatureOverlay\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FeatureOverlay.map"],"mappings":"A,0KAaA,SAAgBe,GAAU,CAAC,IAAMC,EAAEC,EAAW,CAAC,CAAC,Q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