{"version":3,"file":"HTGUrogramStats.DOMNGLjT.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","init_framer_CKT6jEEQ","addPropertyControls","RenderTarget","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","cs","css","trustItemsCs","trustItems","statsCs","stats","init_HTGUrogramStats"],"sources":["https:/framerusercontent.com/modules/Z0klFUh6QXDuHrJx0ltg/Z0JjQN1g7Rn05XOOfTA2/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 statsCs=[{start:0,end:4e3,suffix:\"+\",label:\"hodin testov\\xe1n\\xed v\\xa0nemocnic\\xedch\"},{start:0,end:97,suffix:\"\\xa0%\",label:\"přesnost měřen\\xed\"},{start:0,low:30,end:60,suffix:\" min\",range:true,label:\"ušetřen\\xe9 pr\\xe1ce sestry denně\"}];const trustItemsCs=[\"Certifikace CE podle EU MDR\",\"ISO 13485\",\"4\\xa0000 h testov\\xe1n\\xed v\\xa0nemocnic\\xedch\"];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:\"#09152F\"})})}),/*#__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: #09152F; box-sizing: border-box;\n    }\n    .htg-stat-card {\n        min-width: 0; min-height: 172px;\n        border: 1px solid rgba(9,21,47,.14); border-radius: 28px;\n        background: linear-gradient(180deg, #fff 0%, #f9fafb 100%);\n        box-shadow: 0 18px 42px rgba(9,21,47,.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; color: #7857C8; 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(9,21,47,.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: #09152F;\n        color: #fff; font-size: 16px; text-decoration: none;\n    }\n    .htg-btn-link {\n        color: #09152F; font-size: 16px; text-decoration: none;\n        border-bottom: 1px solid rgba(9,21,47,.3); padding-bottom: 2px;\n    }\n    .htg-btn-primary:hover { background: #7857C8; }\n    .htg-btn-link:hover { border-bottom-color: #09152F; }\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(9,21,47,.08);\n        -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);\n        font-size: 14px; line-height: 1.2; color: #09152F; 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: #09152F;\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: #5B6275;\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: #EDEDED; box-shadow: 0 30px 60px rgba(9,21,47,.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: #EDEDED;\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: #09152F;\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\";const cs=props.lang===\"cs\";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\":cs?\"Certifikace a validace\":\"Certification and validation\",children:(cs?trustItemsCs:trustItems).map(t=>/*#__PURE__*/_jsx(\"li\",{children:t},t))}),mode===\"mood\"&&/*#__PURE__*/_jsxs(\"div\",{className:\"htg-mood\",children:[/*#__PURE__*/_jsx(VideoFacade,{id:cs?\"G8aoHYfYmX8\":\"1Tl-ZUv_BzE\",title:cs?\"Měřen\\xed nechte př\\xedstrojům, p\\xe9či sestr\\xe1m | HTG Urogram\":\"Machines measure. Nurses care | HTG Urogram\",label:cs?\"Přehr\\xe1t \\xb7 0:53\":\"Watch \\xb7 0:55\"}),cs?/*#__PURE__*/_jsxs(\"p\",{children:[/*#__PURE__*/_jsx(\"strong\",{style:{color:\"#09152F\",fontWeight:500},children:\"Měřen\\xed nechte př\\xedstrojům, p\\xe9či sestr\\xe1m.\"}),\" \",\"HTG Urogram převezme rutinn\\xed odeč\\xedt\\xe1n\\xed s\\xe1čku. O pacientovi d\\xe1l rozhoduje v\\xe1š t\\xfdm.\"]}):/*#__PURE__*/_jsxs(\"p\",{children:[/*#__PURE__*/_jsx(\"strong\",{style:{color:\"#09152F\",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:(cs?statsCs: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:cs?\"/cs/kontakt\":\"/contact\",children:[cs?\"Domluvit pilot\":\"Discuss an ICU pilot\",\" \",/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",children:\"→\"})]}),/*#__PURE__*/_jsx(\"a\",{className:\"htg-btn-link\",href:cs?\"/cs/pripadove-studie/htg-urogram-na-10-luzkove-jip\":\"/case-studies/case-study-10-bed-icu\",children:cs?\"Přeč\\xedst studii z\\xa0JIP s\\xa010 lůžky\":\"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\"},lang:{type:ControlType.Enum,title:\"Language\",options:[\"en\",\"cs\"],optionTitles:[\"English\",\"Čeština\"],defaultValue:\"en\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HTGUrogramStats\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HTGUrogramStats.map"],"mappings":"A,oRAKosB,SAASoB,EAAc,CAAC,QAAM,CAAC,IAAMC,EAAIrB,EAAa,IAAI,EAAQsB,EAASR,EAAUO,EAAI,CAAC,KAAK,GAAK,OAAO,GAAG,CAAC,EAAQE,EAAQV,EAAiB,EAAQW,EAASN,EAAa,QAAQ,IAAIA,EAAa,OAEt4B,CAACO,EAAMC,GAAUzB,EAAe0B,EAAK,GAAG,EAAQC,EAAS5B,EAAa,EAAK,EAAEY,MAAoB,CAAC,GAAGY,GAAUD,GAASK,EAAS,QAAQ,OAAO,IAAMC,EA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