{"version":3,"file":"LabConsole.Bb7Prd7-.mjs","names":["React.useState","React.useRef"],"sources":["https:/framerusercontent.com/modules/EFo6bwvHL6erlPm5LqEI/nQfakTxJ6mE6G8V6vmKA/LabConsole.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls}from\"framer\";const CSS='.nxlab{font-family:\"DM Sans\", Arial, sans-serif;font-size:16px;line-height:1.5000;color:rgb(23, 26, 24);letter-spacing:normal;-webkit-font-smoothing:antialiased;box-sizing:border-box}.nxlab *,.nxlab *::before,.nxlab *::after{box-sizing:border-box;margin:0;padding:0}\\n.nxlab{--paper:#f5f3ed;--white:#fffefb;--ink:#222420;--muted:#777970;--line:#d9dad1;--accent:#f05b38;--dark:#20231f;--dark-line:#40433d;--gutter:clamp(20px,4.4vw,80px);--radius:3px}\\n.nxlab *{box-sizing: border-box;}\\n.nxlab button{font: inherit;}\\n.nxlab button{-webkit-tap-highlight-color: transparent;}\\n.nxlab button{cursor: pointer;}\\n.nxlab h3, .nxlab p{margin: 0px;}\\n.nxlab h3{font-weight: 500;}\\n.nxlab .wrap{width: 100%; max-width: 1600px; padding-inline: var(--gutter); margin-inline: auto;}\\n.nxlab .eyebrow{font-family: \"Courier New\", monospace; font-size: 11px; font-weight: 500; letter-spacing: 0.025em; text-transform: uppercase;}\\n.nxlab .eyebrow{display: flex; align-items: center; gap: 9px;}\\n.nxlab .button{display: inline-flex; min-height: 47px; align-items: center; justify-content: space-between; gap: 38px; padding: 13px 19px; font-size: 12px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); border-radius: var(--radius); transition: background 0.2s, color 0.2s, transform 0.2s;}\\n.nxlab .button:hover{background: var(--accent); border-color: var(--accent); color: var(--ink); transform: translateY(-2px);}\\n.nxlab .button:disabled{cursor: not-allowed; opacity: 0.55; transform: none;}\\n.nxlab .button:disabled:hover{background: var(--ink); border-color: var(--ink); color: var(--paper);}\\n@media (max-width: 600px){.nxlab .eyebrow{font-size: 9px;}}\\n@media (prefers-reduced-motion: reduce){.nxlab *{transition: none !important; animation: auto ease 0s 1 normal none running none !important;}}\\n.nxlab{--paper:#f6f5f1;--white:#fff;--ink:#1b1c1a;--muted:#686b65;--line:#d7d7d0;--accent:#f4512c;--dark:#1a1c19;--dark-line:#454741;--gutter:clamp(22px,4.15vw,80px);--radius:0}\\n.nxlab .wrap{max-width: 1800px;}\\n.nxlab .eyebrow{font-size: 12px; letter-spacing: 0.015em;}\\n.nxlab .button{border-radius: 0px; font-size: 14px; min-height: 52px; padding: 15px 20px; gap: 34px;}\\n.nxlab .button span{font-size: 20px;}\\n.nxlab .button:hover{transform: none;}\\n@media (max-width: 600px){.nxlab .eyebrow{font-size: 10px;}}\\n@media (prefers-reduced-motion: reduce){.nxlab *{animation: auto ease 0s 1 normal none running none !important; transition: none !important;}}\\n.nxlab{--accent:#f4512c;--paper:#f6f5f1}\\n@media (prefers-reduced-motion: reduce){.nxlab *{transition: none !important; animation: auto ease 0s 1 normal none running none !important;}}\\n.nxlab .eyebrow{font-family: \"DM Sans\", Arial, sans-serif; font-size: 11px; letter-spacing: 0.07em;}\\n.nxlab{--folio-blue:#203eed;--folio-ice:#dbe3f0;--folio-paper:#f5f3ec;--folio-ink:#171a18;--folio-line:#d6d6cc}\\n.nxlab{--paper:#f5f3ec;--white:#fffdf8;--ink:#171a18;--dark:#171a18;--muted:#676b64;--line:#d6d6ce;--folio-paper:#f5f3ec;--folio-blue:#203eed}\\n.nxlab .button{transition: background 0.25s, color 0.25s, transform 0.25s;}\\n.nxlab .button:hover{transform: translateY(-3px);}\\n.nxlab .flow-lab{padding-block: 90px;}\\n.nxlab .lab-console{background: rgb(225, 230, 241); padding: 28px;}\\n.nxlab .lab-topline{display: flex; justify-content: space-between; padding-bottom: 25px; font-size: 11px; border-bottom: 1px solid rgb(191, 199, 216);}\\n.nxlab .lab-status{color: rgb(32, 62, 237);}\\n.nxlab .lab-columns{display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; padding-top: 30px;}\\n.nxlab .lab-input > .eyebrow, .nxlab .lab-output > .eyebrow{font-size: 10px; margin-bottom: 24px;}\\n.nxlab .lab-choices{display: flex; flex-direction: column; gap: 8px;}\\n.nxlab .lab-choices button{display: flex; justify-content: space-between; text-align: left; font-style: inherit; font-variant: inherit; font-weight: inherit; font-stretch: inherit; line-height: inherit; font-family: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-kerning: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-language-override: inherit; font-size: 15px; border: 1px solid rgb(187, 196, 213); padding: 17px 19px; background: transparent; color: rgb(23, 26, 24); cursor: pointer; transition: 0.25s;}\\n.nxlab .lab-choices button[aria-pressed=\"true\"]{color: white; background: rgb(32, 62, 237); border-color: rgb(32, 62, 237);}\\n.nxlab .lab-choices button:disabled{cursor: wait;}\\n.nxlab .lab-input blockquote{margin: 28px 0px; min-height: 100px; font-size: clamp(25px, 2.5vw, 37px); line-height: 1.18; letter-spacing: -0.035em;}\\n.nxlab .lab-run{width: 100%; display: flex; justify-content: space-between; background: rgb(23, 26, 24); color: white;}\\n.nxlab .lab-run:disabled{opacity: 0.6; cursor: wait;}\\n.nxlab .lab-steps{list-style: none; margin: 0px; padding: 0px;}\\n.nxlab .lab-steps li{display: grid; grid-template-columns: 25px 1fr 20px; gap: 15px; border-bottom: 1px solid rgb(191, 199, 216); padding: 0px 0px 20px; margin-bottom: 20px; transition: color 0.3s;}\\n.nxlab .lab-steps li > span{font-size: 11px; color: rgb(98, 110, 130);}\\n.nxlab .lab-steps strong{font-size: 20px; font-weight: 500;}\\n.nxlab .lab-steps p{font-size: 13px; color: rgb(98, 110, 130); margin-top: 6px;}\\n.nxlab .lab-steps i{width: 15px; height: 15px; border: 1px solid rgb(156, 169, 194); border-radius: 50%;}\\n.nxlab .lab-steps .step-done i{background: rgb(32, 62, 237); border-color: rgb(32, 62, 237); box-shadow: rgb(225, 230, 241) 0px 0px 0px 3px inset;}\\n.nxlab .lab-steps .step-done strong{color: rgb(32, 62, 237);}\\n.nxlab .lab-result{padding: 23px; background: rgb(245, 243, 236); min-height: 166px; transition: background 0.4s, color 0.4s;}\\n.nxlab .lab-result > span{font-size: 9px; letter-spacing: 0.06em;}\\n.nxlab .lab-result h3{font-size: 29px; line-height: 1.1; letter-spacing: -0.04em; margin: 17px 0px 12px;}\\n.nxlab .lab-result p{font-size: 13px; line-height: 1.5;}\\n.nxlab .lab-console.is-complete .lab-result{background: rgb(32, 62, 237); color: white;}\\n.nxlab .lab-footnote{margin-top: 25px; font-size: 10px; color: rgb(101, 111, 130);}\\n@media (max-width: 1000px){.nxlab .lab-columns{gap: 30px;}}\\n@media (max-width: 760px){.nxlab .flow-lab{padding-block: 55px;}}\\n@media (max-width: 760px){.nxlab .lab-console{padding: 20px;}}\\n@media (max-width: 760px){.nxlab .lab-columns{grid-template-columns: 1fr; gap: 35px;}}\\n@media (max-width: 760px){.nxlab .lab-input blockquote{min-height: 0px; font-size: 28px;}}\\n@media (max-width: 760px){.nxlab .lab-choices button{font-size: 13px; padding: 15px;}}\\n@media (max-width: 760px){.nxlab .lab-result h3{font-size: 28px;}}\\n@media (max-width: 760px){.nxlab .lab-topline{font-size: 9px; gap: 12px;}}\\n@media (max-width: 760px){.nxlab .lab-footnote{line-height: 1.5;}}\\n@media (prefers-reduced-motion: reduce){.nxlab .button:hover{transform: none;}}';const SCENARIOS={sales:{label:\"A new project\",quote:\"“We’d like to connect our website inquiries to HubSpot.”\",title:\"Ready for the sales team.\",body:\"New project inquiry → sales record → discovery follow-up. The original request stays attached.\"},support:{label:\"An account question\",quote:\"“Could someone update the billing details on our account?”\",title:\"Over to the accounts team.\",body:\"Account change → human review. The request and conversation go together; no account changes are made automatically.\"},unclear:{label:\"A little more context\",quote:\"“We could use some help. Can you tell us a little more?”\",title:\"A question before a handoff.\",body:\"Not enough context yet. Ask which workflow needs attention before choosing a team or creating a task.\"}};const STEPS=[{title:\"Receive\",text:\"Keep the original request.\"},{title:\"Understand\",text:\"Apply the agreed routing rules.\"},{title:\"Connect\",text:\"Prepare the record and handoff.\"}];/**\n * @framerIntrinsicWidth 1100\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n */export default function LabConsole(props){const[selected,setSelected]=React.useState(\"sales\");const[done,setDone]=React.useState(0);const[busy,setBusy]=React.useState(false);const[complete,setComplete]=React.useState(false);const[status,setStatus]=React.useState(\"Ready to explore\");const[result,setResult]=React.useState({title:\"Every request starts somewhere.\",body:\"Choose an example to see where it goes.\"});const timers=React.useRef([]);React.useEffect(()=>()=>timers.current.forEach(t=>clearTimeout(t)),[]);function choose(key){if(busy)return;setSelected(key);setDone(0);setComplete(false);setResult({title:\"Every request starts somewhere.\",body:\"Follow this inquiry to see its next step.\"});setStatus(\"Ready to explore\");}function run(){if(busy)return;const reduced=typeof window!==\"undefined\"&&window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches;setBusy(true);setComplete(false);setDone(0);setStatus(\"Following the inquiry…\");const delay=reduced?0:420;STEPS.forEach((_,i)=>{timers.current.push(window.setTimeout(()=>setDone(i+1),delay*(i+1)));});timers.current.push(window.setTimeout(()=>{setResult({title:SCENARIOS[selected].title,body:SCENARIOS[selected].body});setComplete(true);setStatus(\"Handoff explained\");setBusy(false);},delay*STEPS.length+1));}return /*#__PURE__*/_jsxs(\"div\",{className:\"nxlab\",style:{...props.style,position:\"relative\",width:\"100%\"},children:[/*#__PURE__*/_jsx(\"style\",{children:CSS}),/*#__PURE__*/_jsxs(\"div\",{className:\"lab-console\"+(complete?\" is-complete\":\"\"),\"data-flow-demo\":\"\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"lab-topline\",children:[/*#__PURE__*/_jsx(\"span\",{children:\"Signal / Routing desk\"}),/*#__PURE__*/_jsx(\"span\",{className:\"lab-status\",children:status})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"lab-columns\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"lab-input\",children:[/*#__PURE__*/_jsx(\"p\",{className:\"eyebrow\",children:\"01 / CHOOSE AN INQUIRY\"}),/*#__PURE__*/_jsx(\"div\",{className:\"lab-choices\",role:\"group\",\"aria-label\":\"Example inquiry\",children:Object.keys(SCENARIOS).map(key=>/*#__PURE__*/_jsxs(\"button\",{type:\"button\",\"data-scenario\":key,\"aria-pressed\":selected===key,disabled:busy,onClick:()=>choose(key),children:[SCENARIOS[key].label,\" \",/*#__PURE__*/_jsx(\"span\",{children:\"↗\"})]},key))}),/*#__PURE__*/_jsx(\"blockquote\",{\"data-lab-quote\":\"\",children:SCENARIOS[selected].quote}),/*#__PURE__*/_jsxs(\"button\",{className:\"button lab-run\",type:\"button\",disabled:busy,onClick:run,children:[\"Follow the inquiry \",/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",children:\"→\"})]})]}),/*#__PURE__*/_jsxs(\"div\",{className:\"lab-output\",children:[/*#__PURE__*/_jsx(\"p\",{className:\"eyebrow\",children:\"02 / FOLLOW THE HANDOFF\"}),/*#__PURE__*/_jsx(\"ol\",{className:\"lab-steps\",children:STEPS.map((step,i)=>/*#__PURE__*/_jsxs(\"li\",{className:done>i?\"step-done\":undefined,children:[/*#__PURE__*/_jsx(\"span\",{children:\"0\"+(i+1)}),/*#__PURE__*/_jsxs(\"div\",{children:[/*#__PURE__*/_jsx(\"strong\",{children:step.title}),/*#__PURE__*/_jsx(\"p\",{children:step.text})]}),/*#__PURE__*/_jsx(\"i\",{\"aria-hidden\":\"true\"})]},step.title))}),/*#__PURE__*/_jsxs(\"div\",{className:\"lab-result\",role:\"status\",\"aria-live\":\"polite\",children:[/*#__PURE__*/_jsx(\"span\",{children:\"THE NEXT STEP\"}),/*#__PURE__*/_jsx(\"h3\",{children:result.title}),/*#__PURE__*/_jsx(\"p\",{children:result.body})]})]})]}),/*#__PURE__*/_jsx(\"p\",{className:\"lab-footnote\",children:\"Illustrative workflow. Preset rules, no connected accounts or messages sent.\"})]})]});}addPropertyControls(LabConsole,{});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LabConsole\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicWidth\":\"1100\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LabConsole.map"],"mappings":"4LAIG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,EAAS,GAAaA,EAAe,OAAO,EAAO,CAAC,EAAK,GAASA,EAAe,CAAC,EAAO,CAAC,EAAK,GAASA,EAAe,EAAK,EAAO,CAAC,EAAS,GAAaA,EAAe,EAAK,EAAO,CAAC,EAAO,GAAWA,EAAe,kBAAkB,EAAO,CAAC,EAAO,GAAWA,EAAe,CAAC,MAAM,kCAAkC,KAAK,yCAAyC,CAAC,EAAQ,EAAOC,EAAa,CAAC,CAAC,EAAE,UAAwB,EAAO,QAAQ,QAAQ,GAAG,aAAa,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,SAAS,EAAO,EAAI,CAAI,IAAY,EAAY,CAAG,EAAE,EAAQ,CAAC,EAAE,EAAY,EAAK,EAAE,EAAU,CAAC,MAAM,kCAAkC,KAAK,2CAA2C,CAAC,EAAE,EAAU,kBAAkB,EAAE,CAAC,SAAS,GAAK,CAAC,GAAG,EAAK,OAAO,IAAM,EAAe,IAAS,QAAa,EAAO,WAAW,kCAAkC,CAAC,CAAC,QAAQ,EAAQ,EAAI,EAAE,EAAY,EAAK,EAAE,EAAQ,CAAC,EAAE,EAAU,wBAAwB,EAAE,IAAM,EAAM,EAAQ,EAAE,IAAI,EAAM,SAAS,EAAE,IAAI,CAAC,EAAO,QAAQ,KAAK,EAAO,eAAe,EAAQ,EAAE,CAAC,EAAE,GAAO,EAAE,EAAE,CAAC,CAAE,CAAC,EAAE,EAAO,QAAQ,KAAK,EAAO,eAAe,CAAC,EAAU,CAAC,MAAM,EAAU,EAAS,CA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