{"version":3,"file":"GlassIcon-UTXGqa.7CF5prM2.mjs","names":["p","React.useRef","React.useState","_Fragment","__esmMin","init_ssg_sandbox_shims","l","_e","p","c","init_jsx_runtime","ce","init_npm_react_18_3_1","de","window","addPropertyControls","ControlType","init_framer_CaDWdxiz","GlassIcon","p$1","DEFAULTS","k","incoming","ref","hov","setHov","el","host","cur","i","on","off","stage","setStage","c1","c2","COLS","lit","glyph","ICONS","init_GlassIcon","init_GlassIcon_UTXGqa"],"sources":["https:/framerusercontent.com/modules/XXLmUzkNyuTcKpAV2D6M/qj2A1IZpT8NrYfd5LXyz/GlassIcon.js","https:/framer.com/m/GlassIcon-UTXGqa.js@qj2A1IZpT8NrYfd5LXyz"],"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\";/*\n * GlassIcon: icon tile in the housing steps style (rebuilt 2 Nov 2026; the name is kept so placed\n * instances update). One fill only: a soft tint of one of the logo colours with the icon in that\n * colour; when active, or while its cell is hovered, it fills with the colour's gradient, the icon\n * turns white and a ghost of the icon sits cut off at the corner. Colours are the four logo ones.\n * Place in flow at 40-56px square. Hover lights only the cell it sits in; or set Sync group and step to\n * light it when a graphic (HealthHandover) reaches that step.\n */const COLS={Blue:[\"#52ADFF\",\"#1868DB\"],Green:[\"#2BD28F\",\"#00AF70\"],Yellow:[\"#FFD04D\",\"#FF9F43\"],Coral:[\"#FF9A7A\",\"#FF715A\"],MAIA:[\"#4C97F7\",\"#096CED\"],RACE:[\"#FF9B52\",\"#F57210\"],Sprint:[\"#FF9A3D\",\"#FF6200\"]};const ICONS={Building:/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"path\",{d:\"M3 21h18M5 21V10l7-5 7 5v11\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M9 21v-6h6v6\"})]}),Shield:/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"path\",{d:\"M12 3l7 2.7v5.6c0 4.3-2.9 7.6-7 9.2-4.1-1.6-7-4.9-7-9.2V5.7z\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M9 12l2.1 2.1L15.2 10\"})]}),Lock:/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"rect\",{x:\"5\",y:\"10.5\",width:\"14\",height:\"10\",rx:\"2.5\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M8 10.5V8a4 4 0 0 1 8 0v2.5\"})]}),Ear:/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"path\",{d:\"M7 9a5 5 0 0 1 10 0c0 3-3 4-3 7a3 3 0 0 1-5.5 1.6\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M10 9.5a2 2 0 0 1 4 0\"})]}),Language:/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"path\",{d:\"M4 5h9M8.5 3v2M6 5c.5 3 2.5 6 5.5 7.5M11 5c-.5 3-2.5 6-5.5 7.5\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M13 21l4-9 4 9M14.5 18h5\"})]}),Record:/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"path\",{d:\"M6 3h9l4 4v14H6z\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M14 3v5h5M9 13h7M9 17h5\"})]}),Clock:/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"12\",cy:\"12\",r:\"8.5\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M12 7.5V12l3 2\"})]}),Pound:/*#__PURE__*/_jsx(\"path\",{d:\"M16 6.5A4 4 0 0 0 8.5 8.5V20H17M6 13h7\"}),Heart:/*#__PURE__*/_jsx(\"path\",{d:\"M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z\"}),Chat:/*#__PURE__*/_jsx(\"path\",{d:\"M4 5h16v11H9l-5 4V5z\"}),Calendar:/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"rect\",{x:\"3.5\",y:\"5\",width:\"17\",height:\"15\",rx:\"3\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M3.5 10h17M8 3v4M16 3v4\"})]}),Route:/*#__PURE__*/_jsx(\"path\",{d:\"M6 4v5a4 4 0 0 0 4 4h4a4 4 0 0 1 4 4v3M6 4a2 2 0 1 0 0-.01M18 20a2 2 0 1 0 0-.01M14 7h6m0 0-2-2m2 2-2 2\"}),Badge:/*#__PURE__*/_jsxs(_Fragment,{children:[/*#__PURE__*/_jsx(\"path\",{d:\"M12 3l2.4 1.6 2.9-.1 1.1 2.7 2.4 1.7-.9 2.8.9 2.8-2.4 1.7-1.1 2.7-2.9-.1L12 21l-2.4-1.6-2.9.1-1.1-2.7-2.4-1.7.9-2.8-.9-2.8 2.4-1.7 1.1-2.7 2.9.1z\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M8.8 12.2l2.2 2.2 4.2-4.4\"})]})};const DEFAULTS={icon:\"Shield\",colour:\"Blue\",active:false,ghost:true,hover:true,syncGroup:\"\",syncStep:0,tone:\"Light\"};/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n * @framerIntrinsicWidth 48\n * @framerIntrinsicHeight 48\n */export default function GlassIcon(incoming){const p={...DEFAULTS};for(const k in incoming)if(incoming[k]!==undefined)p[k]=incoming[k];const ref=React.useRef(null);const[hov,setHov]=React.useState(false);React.useEffect(()=>{if(!p.hover||p.syncGroup)return;// light only for this icon's own cell: the highest ancestor that holds no other icon\nconst el=ref.current;if(!el)return;let host=null;let cur=el.parentElement;for(let i=0;i<6&&cur;i++){if(cur.querySelectorAll(\"[data-glass-icon]\").length>1)break;host=cur;cur=cur.parentElement;}if(!host)return;const on=()=>setHov(true),off=()=>setHov(false);host.addEventListener(\"pointerenter\",on);host.addEventListener(\"pointerleave\",off);return()=>{host.removeEventListener(\"pointerenter\",on);host.removeEventListener(\"pointerleave\",off);};},[p.hover,p.syncGroup]);// follow a graphic's steps instead of hover\nconst[stage,setStage]=React.useState(-1);React.useEffect(()=>{if(!p.syncGroup||typeof window===\"undefined\")return;const on=e=>{if(e.detail?.group===p.syncGroup)setStage(e.detail.stage);};window.addEventListener(\"ciptex-stage\",on);return()=>window.removeEventListener(\"ciptex-stage\",on);},[p.syncGroup]);const[c1,c2]=COLS[p.colour]||COLS.Blue;const lit=p.syncGroup?stage===p.syncStep:p.active||hov;const glyph=ICONS[p.icon]||ICONS.Shield;return /*#__PURE__*/_jsxs(\"div\",{ref:ref,\"data-glass-icon\":\"\",\"aria-hidden\":\"true\",style:{...incoming.style,position:\"relative\",width:\"100%\",height:\"100%\",borderRadius:\"32%\",overflow:\"hidden\",display:\"grid\",placeItems:\"center\",containerType:\"size\",background:lit?`linear-gradient(135deg, ${c1}, ${c2})`:`${c1}22`,boxShadow:lit?`0 12px 28px -10px ${c2}CC, inset 0 0 0 1px rgba(255,255,255,0.4)`:\"none\",transition:\"background 0.5s ease, box-shadow 0.5s ease\"},children:[lit?/*#__PURE__*/_jsx(\"span\",{style:{position:\"absolute\",inset:0,background:\"linear-gradient(160deg, rgba(255,255,255,0.35), rgba(255,255,255,0) 55%)\"}}):null,lit&&p.ghost?/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 24 24\",width:\"110%\",height:\"110%\",fill:\"none\",stroke:\"rgba(255,255,255,0.22)\",strokeWidth:\"1.6\",strokeLinecap:\"round\",strokeLinejoin:\"round\",style:{position:\"absolute\",right:\"-30%\",top:\"-20%\"},children:glyph}):null,/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 24 24\",width:\"50%\",height:\"50%\",fill:\"none\",stroke:lit?\"#fff\":c2,strokeWidth:\"1.8\",strokeLinecap:\"round\",strokeLinejoin:\"round\",style:{position:\"relative\",transition:\"stroke 0.4s ease\"},children:glyph})]});}GlassIcon.defaultProps=DEFAULTS;addPropertyControls(GlassIcon,{icon:{type:ControlType.Enum,title:\"Icon\",options:Object.keys(ICONS)},colour:{type:ControlType.Enum,title:\"Colour\",options:Object.keys(COLS)},active:{type:ControlType.Boolean,title:\"Active\"},ghost:{type:ControlType.Boolean,title:\"Ghost icon\",description:\"The large faint copy of the icon behind it when active\"},hover:{type:ControlType.Boolean,title:\"Light on hover\"},syncGroup:{type:ControlType.String,title:\"Sync group\",description:\"Follow a graphic with the same group instead of hover\"},syncStep:{type:ControlType.Number,title:\"Sync step\",min:0,max:9,step:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GlassIcon\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicWidth\":\"48\",\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"48\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GlassIcon.map","/*\n * GlassIcon\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/XXLmUzkNyuTcKpAV2D6M/qj2A1IZpT8NrYfd5LXyz/GlassIcon.js\"\nexport { default } from \"https://framerusercontent.com/modules/XXLmUzkNyuTcKpAV2D6M/qj2A1IZpT8NrYfd5LXyz/GlassIcon.js\"\n"],"mappings":"A,oNAYG,SAAwBkB,EAAU,EAAS,CAAC,IAAMlB,EAAE,CAAC,GAAGoB,CAAQ,EAAE,IAAI,IAAMC,KAAKC,EAAYA,EAASD,KAAK,IAAA,KAAU,EAAEA,GAAGC,EAASD,IAAG,IAAME,EAAItB,EAAa,IAAI,EAAO,CAACuB,EAAIC,GAAQvB,EAAe,EAAK,EAAES,MAAoB,CAAC,GAAG,CAACX,EAAE,OAAOA,EAAE,UAAU,OAC5P,IAAM0B,EAAGH,EAAI,QAAQ,GAAG,CAACG,EAAG,OAAO,IAAIC,EAAK,KAASC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