{"version":3,"file":"HTGUrogramStats.CA74QDfN.mjs","names":["React.useRef","React.useState","_Fragment","__esmMin","window","init_ssg_sandbox_shims","init_npm_react_18_3_1","_e","de","l","p","init_jsx_runtime","ce","useReducedMotion","useInView","init_framer_motion_DhsWWWsN","RenderTarget","addPropertyControls","init_framer_DKgW_P28","ControlType","AnimatedValue","ref","isInView","reduced","isCanvas","value","setValue","item","armedRef","el","rect","started","frame","tick","t","now","eased","lowValue","text","VideoFacade","play","setPlay","props","HTGUrogramStats","mode","css","trustItems","stats","init_HTGUrogramStats"],"sources":["https:/framerusercontent.com/modules/Z0klFUh6QXDuHrJx0ltg/bBr0FYs3Vy6YDYSHSTb8/HTGUrogramStats.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import*as React from\"react\";import{RenderTarget,addPropertyControls,ControlType}from\"framer\";import{useInView,useReducedMotion}from\"framer-motion\";/**\n * @framerIntrinsicWidth 1120\n * @framerIntrinsicHeight 174\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any\n */const stats=[{start:0,end:4e3,suffix:\"+\",label:\"hours of bedside testing\"},{start:0,end:97,suffix:\"%\",label:\"reported validation accuracy\"},{start:0,low:30,end:60,suffix:\" min\",range:true,label:\"reported nursing time saved per day\"}];const trustItems=[\"CE marked under EU MDR\",\"ISO 13485\",\"Piloted at IKEM Prague\",\"4000+ hours of bedside testing\"];function AnimatedValue({item}){const ref=React.useRef(null);const isInView=useInView(ref,{once:true,amount:.45});const reduced=useReducedMotion();const isCanvas=RenderTarget.current()===RenderTarget.canvas;// Final values are rendered in the HTML so search engines and AI crawlers\n// read the real numbers. The count-up only runs in the browser.\nconst[value,setValue]=React.useState(item.end);const armedRef=React.useRef(false);React.useEffect(()=>{if(isCanvas||reduced||armedRef.current)return;const el=ref.current;if(!el)return;const rect=el.getBoundingClientRect();const alreadyVisible=rect.top<window.innerHeight&&rect.bottom>0;if(!alreadyVisible){armedRef.current=true;setValue(item.start);}},[isCanvas,reduced,item]);React.useEffect(()=>{if(isCanvas||reduced||!isInView||!armedRef.current)return;const duration=1600;const started=performance.now();let frame=0;const tick=now=>{const t=Math.min(1,(now-started)/duration);const eased=1-Math.pow(1-t,3);setValue(Math.round(item.start+(item.end-item.start)*eased));if(t<1)frame=requestAnimationFrame(tick);};frame=requestAnimationFrame(tick);return()=>cancelAnimationFrame(frame);},[isCanvas,isInView,item,reduced]);const lowValue=item.range?Math.round((item.low??0)*value/item.end):0;const text=item.range?`${lowValue}-${value}${item.suffix}`:`${value}${item.suffix}`;return /*#__PURE__*/_jsx(\"div\",{ref:ref,className:\"htg-stat-value\",children:text});}function VideoFacade(props){const[play,setPlay]=React.useState(false);return /*#__PURE__*/_jsx(\"div\",{className:\"htg-video-frame\",children:play?/*#__PURE__*/_jsx(\"iframe\",{src:`https://www.youtube-nocookie.com/embed/${props.id}?autoplay=1&rel=0&modestbranding=1&playsinline=1`,title:props.title,allow:\"autoplay; encrypted-media; picture-in-picture; fullscreen\",allowFullScreen:true}):/*#__PURE__*/_jsxs(\"button\",{type:\"button\",onClick:()=>setPlay(true),\"aria-label\":`Play video: ${props.title}`,style:{backgroundImage:`url(https://i.ytimg.com/vi/${props.id}/maxresdefault.jpg)`},children:[/*#__PURE__*/_jsx(\"span\",{className:\"htg-video-play\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"svg\",{width:\"30\",height:\"30\",viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M8 5v14l11-7z\",fill:\"#262628\"})})}),/*#__PURE__*/_jsx(\"span\",{className:\"htg-video-label\",children:props.label})]})});}const css=`\n    .htg-stats-root {\n        width: 100%; display: grid;\n        grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px;\n        font-family: \"SF Pro Display\", Inter, sans-serif;\n        color: #1a1d21; box-sizing: border-box;\n    }\n    .htg-stat-card {\n        min-width: 0; min-height: 172px;\n        border: 1px solid rgba(26,29,33,.14); border-radius: 28px;\n        background: linear-gradient(180deg, #fff 0%, #f9fafb 100%);\n        box-shadow: 0 18px 42px rgba(26,29,33,.07);\n        display: flex; flex-direction: column; align-items: center;\n        justify-content: center; text-align: center; padding: 24px 20px;\n        box-sizing: border-box;\n    }\n    .htg-stat-value {\n        font-family: \"Instrument Serif\", Georgia, serif;\n        font-size: clamp(40px, 5cqw, 58px); line-height: .96;\n        letter-spacing: -.025em; white-space: nowrap;\n    }\n    .htg-stat-label {\n        margin-top: 15px; max-width: 200px; font-size: 15px;\n        line-height: 1.28; letter-spacing: .005em; color: rgba(26,29,33,.72);\n    }\n    .htg-stats-actions {\n        margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px 22px;\n        align-items: center; justify-content: center;\n        font-family: \"SF Pro Display\", Inter, sans-serif;\n    }\n    .htg-btn-primary {\n        display: inline-flex; align-items: center; gap: 10px;\n        padding: 15px 26px; border-radius: 999px; background: #262628;\n        color: #fff; font-size: 16px; text-decoration: none;\n    }\n    .htg-btn-link {\n        color: #262628; font-size: 16px; text-decoration: none;\n        border-bottom: 1px solid rgba(38,38,40,.3); padding-bottom: 2px;\n    }\n    .htg-btn-primary:hover { background: #000; }\n    .htg-btn-link:hover { border-bottom-color: #262628; }\n    .htg-trust {\n        display: flex; flex-wrap: wrap; gap: 8px 10px;\n        font-family: \"SF Pro Display\", Inter, sans-serif;\n        margin: 0; padding: 0; list-style: none;\n    }\n    .htg-trust li {\n        padding: 8px 14px; border-radius: 999px;\n        background: rgba(255,255,255,.82);\n        border: 1px solid rgba(26,29,33,.08);\n        -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);\n        font-size: 14px; line-height: 1.2; color: #262628; white-space: nowrap;\n    }\n    .htg-mood {\n        width: 100%; max-width: 960px; margin: clamp(32px, 6cqw, 64px) auto 0; box-sizing: border-box;\n        font-family: \"SF Pro Display\", Inter, sans-serif; color: #262628;\n        text-align: center;\n    }\n    .htg-mood h3 {\n        margin: 0 0 22px; font-weight: 500;\n        font-size: clamp(28px, 4cqw, 44px); line-height: 1.1; letter-spacing: -.02em;\n    }\n    .htg-mood p {\n        margin: 16px auto 0; max-width: 640px; font-size: 16px;\n        line-height: 1.55; color: #5f6066;\n    }\n    .htg-video-frame {\n        position: relative; width: 100%; aspect-ratio: 3 / 2;\n        border-radius: clamp(18px, 3cqw, 28px); overflow: hidden;\n        background: #f3f3f5; box-shadow: 0 30px 60px rgba(26,29,33,.12);\n    }\n    .htg-video-frame iframe, .htg-video-frame button {\n        position: absolute; inset: 0; width: 100%; height: 100%; border: 0;\n    }\n    .htg-video-frame button {\n        padding: 0; cursor: pointer; background-color: #f3f3f5;\n        background-size: cover; background-position: center;\n    }\n    .htg-video-play {\n        position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);\n        width: clamp(56px, 11cqw, 84px); height: clamp(56px, 11cqw, 84px);\n        border-radius: 50%; background: rgba(255,255,255,.94);\n        box-shadow: 0 12px 30px rgba(0,0,0,.18); display: grid; place-items: center;\n    }\n    .htg-video-label {\n        position: absolute; left: 18px; bottom: 16px; padding: 8px 14px;\n        border-radius: 999px; background: rgba(255,255,255,.94);\n        font-size: 15px; line-height: 1.2; color: #262628;\n    }\n    @container (max-width: 640px) {\n        .htg-stats-root { grid-template-columns: 1fr; gap: 12px; }\n        .htg-stat-card { min-height: 140px; padding: 22px 18px; }\n        .htg-stat-value { font-size: 44px; }\n        .htg-trust li { font-size: 13px; padding: 7px 12px; } .htg-mood { padding: 0 16px; }\n    }\n`;export default function HTGUrogramStats(props){const mode=props.mode??\"stats\";return /*#__PURE__*/_jsxs(\"div\",{style:{...props.style,containerType:\"inline-size\",width:\"100%\"},className:\"htg-stats-wrap\",children:[/*#__PURE__*/_jsx(\"style\",{children:css}),mode===\"trust\"&&/*#__PURE__*/_jsx(\"ul\",{className:\"htg-trust\",\"aria-label\":\"Certification and validation\",children:trustItems.map(t=>/*#__PURE__*/_jsx(\"li\",{children:t},t))}),mode===\"mood\"&&/*#__PURE__*/_jsxs(\"div\",{className:\"htg-mood\",children:[/*#__PURE__*/_jsx(VideoFacade,{id:\"1Tl-ZUv_BzE\",title:\"Machines measure. Nurses care | HTG Urogram\",label:\"Watch \\xb7 0:55\"}),/*#__PURE__*/_jsxs(\"p\",{children:[/*#__PURE__*/_jsx(\"strong\",{style:{color:\"#262628\",fontWeight:500},children:\"Machines measure. Nurses care.\"}),\" \",\"HTG Urogram takes over the routine reading of the bag. Clinical judgement stays with your team.\"]})]}),mode===\"stats\"&&/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"div\",{className:\"htg-stats-root\",children:stats.map(item=>/*#__PURE__*/_jsxs(\"div\",{className:\"htg-stat-card\",children:[/*#__PURE__*/_jsx(AnimatedValue,{item:item}),/*#__PURE__*/_jsx(\"div\",{className:\"htg-stat-label\",children:item.label})]},item.label))}),/*#__PURE__*/_jsxs(\"div\",{className:\"htg-stats-actions\",children:[/*#__PURE__*/_jsxs(\"a\",{className:\"htg-btn-primary\",href:\"/contact\",children:[\"Discuss an ICU pilot\",\" \",/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",children:\"→\"})]}),/*#__PURE__*/_jsx(\"a\",{className:\"htg-btn-link\",href:\"/case-studies/case-study-10-bed-icu\",children:\"Read the 10-bed ICU case study\"})]})]})]});}addPropertyControls(HTGUrogramStats,{mode:{type:ControlType.Enum,title:\"Mode\",options:[\"stats\",\"trust\",\"mood\"],optionTitles:[\"Stats + CTA\",\"Trust strip\",\"Mood video\"],defaultValue:\"stats\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HTGUrogramStats\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HTGUrogramStats.map"],"mappings":"A,oRAK+V,SAASoB,EAAc,CAAC,QAAM,CAAC,IAAMC,EAAIrB,EAAa,IAAI,EAAQsB,EAASR,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