{"version":3,"file":"Diagram.Buz8J2AB.mjs","names":["React.useRef","React.useState","React.useMemo","_Fragment","__esmMin","init_ssg_sandbox_shims","_e","de","l","pe","p","c","init_jsx_runtime","init_npm_react_18_3_1","ce","window","addPropertyControls","init_framer_CKT6jEEQ","ControlType","Diagram","props","ref","say","setSay","live","svg","html","el","bg","s","timers","links","io","es","off","on","a","out","down","click","href","me","e","twin","once","hint","i","t","f","style","CSS","label","init_Diagram"],"sources":["https:/framerusercontent.com/modules/VYtCPpq77HBgNEC3Fu4M/U42WQEdnJQZrVfkb67od/Diagram.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";// A drawing from the editorial design system, placed as real SVG so its words stay text and its links work.\n// Its lines draw once when it comes on screen, its parts answer the pointer, and \"Pause motion\" holds it still.\nconst CSS='.chdg{--accent:#5d5955;--bg:#f8f8f6;--ease:cubic-bezier(.2,.8,.2,1);--ink:#14110f;--ink-2:#4a4744;--line:#dedcd7;--muted:#6f6b66;--s3:24px;--s4:32px;--s5:48px;--surface:#ffffff;--sans:\"Borna Regular\",\"Borna\",sans-serif;--font-display:\"Borna Medium\",\"Borna\",sans-serif;width:100%}.chdg svg.opt{font-family:var(--sans)}.chdg .opt .o-title,.chdg .opt .o-body,.chdg .opt .o-big,.chdg .opt .o-num,.chdg .menu-say b{font-family:\"Borna Medium\",\"Borna\",sans-serif}.chdg .menu-say{font-family:var(--sans);font-size:17px;line-height:1.6;color:var(--ink);margin-top:32px;padding-top:24px}.chdg .optbare{border-top:1px solid var(--ink);padding-top:var(--s4)}.chdg .optframe{padding:var(--s5)}.chdg svg.opt{width:100%;height:auto;display:block;font-family:var(--sans)}.chdg .opt .o-title{font-size:24px;font-weight:500;letter-spacing:-.012em;fill:var(--ink)}.chdg .opt .o-body{font-size:17px;font-weight:500;fill:var(--ink)}.chdg .opt .o-small{font-size:15px;fill:var(--muted)}.chdg .opt .o-accent{fill:var(--accent)}.chdg .opt .o-paper{fill:var(--bg)}.chdg .opt .o-ink{fill:none;stroke:var(--ink);stroke-width:1.5}.chdg .opt .o-line{fill:none;stroke:var(--line);stroke-width:1}.chdg .opt .o-dot{fill:var(--ink)}.chdg .opt .o-ring{fill:var(--surface);stroke:var(--ink);stroke-width:1.5}.chdg .opt .o-fill-accent{fill:var(--accent)}.chdg .opt .o-fill-ink{fill:var(--ink)}.chdg .opt .o-pill{fill:none;stroke:var(--ink);stroke-width:1.5}.chdg .opt .draw{stroke-dasharray:1;stroke-dashoffset:1;animation:draw 1.1s var(--ease) .3s forwards}.chdg .opt .draw.d2{animation-delay:1.1s}html.still .chdg .opt .draw{animation:none;stroke-dashoffset:0}@keyframes draw{to{stroke-dashoffset:0}}@media (prefers-reduced-motion:reduce){.chdg .opt .draw{stroke-dashoffset:0}}.chdg .opt .o-text{font-size:17px;fill:var(--ink-2)}.chdg .opt .o-big{font-size:72px;font-weight:500;letter-spacing:-.03em;fill:var(--ink)}.chdg .opt .o-muted{fill:var(--muted)}.chdg .opt .o-mute{fill:#b9b5ae}.chdg .opt .o-dash{fill:none;stroke:var(--muted);stroke-width:1;stroke-dasharray:4 5}.chdg .opt .o-acc-line{fill:none;stroke:var(--accent);stroke-width:3}.chdg .opt .draw{animation:none;stroke-dashoffset:0}.chdg.js .opt:not(.go) .draw{stroke-dashoffset:1}.chdg.js .opt.go .draw{animation:draw 1.1s var(--ease) .15s both}.chdg.js .opt.go .draw.d2{animation-delay:.9s}html.still .chdg .opt .draw,html.still .chdg .opt.go .draw{animation:none;stroke-dashoffset:0}@media (prefers-reduced-motion:reduce){.chdg .opt .draw,.chdg.js .opt:not(.go) .draw{stroke-dashoffset:0 !important}}.chdg .opt .o-pill{fill:var(--ground,var(--bg));stroke:var(--ink);stroke-width:1.5}.chdg .opt .o-pdash{stroke:var(--muted);stroke-dasharray:5 5}.chdg .opt .o-ink-t{fill:var(--ink)}.chdg .opt .o-ico{color:var(--ink);fill:currentColor;overflow:visible}.chdg .opt .o-ico.p{color:var(--bg)}.chdg .opt .o-ico.m{color:var(--muted)}.chdg .opt .o-num{font-family:var(--font-display);font-size:24px;font-weight:500;letter-spacing:-.02em;fill:var(--ink)}.chdg .opt .o-flat{fill:var(--line);stroke:none}.chdg .opt .o-go{color:var(--ink);transition:transform .3s var(--ease)}.chdg .opt .o-link{cursor:pointer}.chdg .opt .o-link .o-pill,.chdg .opt .o-link text,.chdg .opt .o-link .o-ico,.chdg .opt .o-link .o-ink{transition:fill .2s,stroke .2s,color .2s,stroke-width .2s}.chdg .opt .o-link:hover .o-pill,.chdg .opt .o-link:focus-visible .o-pill,.chdg .opt .o-link.hint .o-pill{fill:var(--ink)}.chdg .opt .o-link:hover text,.chdg .opt .o-link:focus-visible text,.chdg .opt .o-link.hint text{fill:var(--bg)}.chdg .opt .o-link:hover .o-ico,.chdg .opt .o-link:focus-visible .o-ico,.chdg .opt .o-link.hint .o-ico{color:var(--bg)}.chdg .opt .o-link:hover .o-go,.chdg .opt .o-link:focus-visible .o-go,.chdg .opt .o-link.hint .o-go{transform:translateX(4px)}.chdg .opt .o-link:hover .o-ink,.chdg .opt .o-link:focus-visible .o-ink,.chdg .opt .o-link.hint .o-ink{stroke-width:3}.chdg .opt .o-link:active .o-pill{fill:var(--accent)}.chdg .opt .o-link,.chdg .opt .o-link:focus,.chdg .opt .o-link:focus-visible{outline:none;-webkit-tap-highlight-color:transparent}.chdg .opt .o-link:focus-visible .o-pill{stroke:var(--accent);stroke-width:3}.chdg .opt:has(.o-link:hover) .o-link:not(:hover),.chdg .opt:has(.o-link:focus-visible) .o-link:not(:focus-visible){opacity:.6}.chdg .opt .o-link{transition:opacity .2s}.chdg .menu-say{margin-top:var(--s4);min-height:2.6em;border-top:1px solid var(--line);padding-top:var(--s3)}.chdg .menu-say .k{color:var(--muted);font-weight:400}.chdg .menu-say b{font-weight:500;margin-right:.5em}@media (hover:none){.chdg .menu-say{display:none}}.chdg .opt .runner{fill:var(--ink);opacity:0;offset-rotate:0deg;offset-distance:0%}.chdg.js .opt.go .runner{animation:run linear 1 both}@keyframes run{0%{offset-distance:0%;opacity:0}1.5%{opacity:1}98.5%{opacity:1}100%{offset-distance:100%;opacity:0}}.chdg.js .opt.go .beat rect{animation:beat .7s ease-out var(--d) 1 both}.chdg.js .opt.go .beat.home rect{animation:beat .7s ease-out var(--d) 1 both,beat .9s ease-out var(--d2) 1 both}@keyframes beat{0%{stroke-width:1.5px}30%{stroke-width:3px}100%{stroke-width:1.5px}}html.still .chdg .opt .runner{display:none}html.still .chdg .opt .beat rect{animation:none !important}@media (prefers-reduced-motion:reduce){.chdg .opt .runner{display:none}.chdg .opt .beat rect{animation:none !important}}';/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function Diagram(props){const{svg=\"\",label=\"\",hint=\"\",style}=props;const ref=React.useRef(null);const[say,setSay]=React.useState(null);const live=/class=\"opt/.test(svg);const html=React.useMemo(()=>live?String(svg):String(svg).replace(/<svg\\b/,'<svg style=\"display:block;width:100%;height:auto\"'),[svg,live]);React.useEffect(()=>{const el=ref.current;if(!el||!live||typeof window===\"undefined\")return;// pills take the colour of the ground they stand on\nlet p=el;while(p){const bg=getComputedStyle(p).backgroundColor;if(bg&&bg!==\"rgba(0, 0, 0, 0)\"&&bg!==\"transparent\"){el.style.setProperty(\"--ground\",bg);break;}p=p.parentElement;}const s=el.querySelector(\"svg.opt\");if(!s||!(\"IntersectionObserver\"in window))return;el.classList.add(\"js\");const timers=[];const links=Array.from(el.querySelectorAll(\"a.o-link\"));const io=new IntersectionObserver(es=>{es.forEach(e=>{if(e.isIntersecting){s.classList.add(\"go\");io.disconnect();}});},{rootMargin:\"0px 0px -10% 0px\"});io.observe(s);const off=[];links.forEach(a=>{const on=()=>setSay({name:a.getAttribute(\"data-name\")||\"\",say:a.getAttribute(\"data-say\")||\"\"});const out=()=>setSay(null);const down=e=>e.preventDefault();// A link drawn inside the picture hands its click to one of the site's own links to the same page\n// (navigation or footer), so it works in Framer's preview and on the live site alike.\nconst click=e=>{const href=(a.getAttribute(\"href\")||\"\").replace(/\\/$/,\"\");if(href.charAt(0)!==\"/\"||href.length<2)return;const me=e;if(me.metaKey||me.ctrlKey||me.shiftKey)return;const twin=Array.from(document.querySelectorAll(\"a[href]\")).find(l=>{if(l.closest(\".chdg\")||l.closest(\"svg\"))return false;try{return new URL(l.href,window.location.href).pathname.replace(/\\/$/,\"\").endsWith(href);}catch(err){return false;}});if(!twin)return;e.preventDefault();twin.click();};a.addEventListener(\"click\",click);off.push(()=>a.removeEventListener(\"click\",click));a.addEventListener(\"pointerenter\",on);a.addEventListener(\"focus\",on);a.addEventListener(\"pointerleave\",out);a.addEventListener(\"blur\",out);a.addEventListener(\"mousedown\",down);off.push(()=>{a.removeEventListener(\"pointerenter\",on);a.removeEventListener(\"focus\",on);a.removeEventListener(\"pointerleave\",out);a.removeEventListener(\"blur\",out);a.removeEventListener(\"mousedown\",down);});});let once=null;if(hint&&links.length){once=new IntersectionObserver(es=>{if(!es[0].isIntersecting)return;once&&once.disconnect();if(document.documentElement.classList.contains(\"still\")||window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches)return;links.forEach((a,i)=>{timers.push(window.setTimeout(()=>a.classList.add(\"hint\"),900+i*260));timers.push(window.setTimeout(()=>a.classList.remove(\"hint\"),900+i*260+320));});},{threshold:.6});once.observe(el);}return()=>{io.disconnect();once&&once.disconnect();timers.forEach(t=>clearTimeout(t));off.forEach(f=>f());};},[html,live,hint]);if(!html)return /*#__PURE__*/_jsx(\"div\",{style:{...style,width:\"100%\",minHeight:40}});if(!live)return /*#__PURE__*/_jsx(\"div\",{role:label?\"img\":undefined,\"aria-label\":label||undefined,style:{...style,width:\"100%\"},dangerouslySetInnerHTML:{__html:html}});return /*#__PURE__*/_jsxs(\"div\",{ref:ref,className:\"chdg\",style:{...style,width:\"100%\"},children:[/*#__PURE__*/_jsx(\"style\",{children:CSS}),/*#__PURE__*/_jsx(\"div\",{dangerouslySetInnerHTML:{__html:html}}),hint?/*#__PURE__*/_jsx(\"p\",{className:\"menu-say\",\"aria-hidden\":\"true\",style:{margin:\"32px 0 0\"},children:say?/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"b\",{children:say.name}),/*#__PURE__*/_jsx(\"span\",{children:say.say})]}):/*#__PURE__*/_jsx(\"span\",{className:\"k\",children:hint})}):null]});}addPropertyControls(Diagram,{svg:{type:ControlType.String,title:\"SVG\",displayTextArea:true,defaultValue:\"\"},label:{type:ControlType.String,title:\"Description\",displayTextArea:true,defaultValue:\"\"},hint:{type:ControlType.String,title:\"Hint\",defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Diagram\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Diagram.map"],"mappings":"A,2NAKG,SAAwBmB,EAAQ,EAAM,CAAC,GAAK,CAAC,MAAI,GAAG,QAAM,GAAG,OAAK,GAAG,SAAOC,EAAYC,EAAIrB,EAAa,IAAI,EAAO,CAACsB,EAAIC,GAAQtB,EAAe,IAAI,EAAQuB,EAAK,aAAa,KAAKC,CAAG,EAAQC,EAAKxB,MAAkBsB,EAAK,OAAOC,CAAG,EAAE,OAAOA,CAAG,CAAC,CAAC,QAAQ,SAAS,mDAAmD,EAAE,CAACA,EAAID,CAAI,CAAC,EAGm7C,OAHj7CV,MAAoB,CAAC,IAAMa,EAAGN,EAAI,QAAQ,GAAG,CAACM,GAAI,CAACH,GAAaT,IAAS,OAAY,OAC5Z,IAAIL,EAAEiB,EAAG,KAAMjB,GAAE,CAAC,IAAMkB,EAAG,iBAAiBlB,CAAC,CAAC,CAAC,gBAAgB,GAAGkB,GAAIA,IAAK,oBAAoBA,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