{"version":3,"file":"HumanMachineSwitch.DJjdcLQJ.mjs","names":["_jsxs","_jsx","__esmMin","init_jsx_runtime","c","p","addPropertyControls","ControlType","init_framer_ChujFWHC","HumanMachineSwitch","props","mode","appearance","humanLink","machineLink","dark","seg","label","active","href","MONO","init_HumanMachineSwitch"],"sources":["https:/framerusercontent.com/modules/rEYt0HQAnnu6Y6OWxSeq/0BkM2kyQxgXEeaAubOgy/HumanMachineSwitch.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const MONO={fontFamily:\"'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace\",fontSize:10,letterSpacing:\"0.1em\",textTransform:\"uppercase\",whiteSpace:\"nowrap\",textDecoration:\"none\"};/**\n * Human / Machine switch\n *\n * Segmented control linking the human site and the machine-readable page.\n *\n * @framerIntrinsicWidth 150\n * @framerIntrinsicHeight 30\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function HumanMachineSwitch(props){const{mode=\"human\",appearance=\"light\",humanLink=\"/\",machineLink=\"/machine\"}=props;const dark=appearance===\"dark\";const seg=(label,active,href)=>({...MONO,display:\"inline-block\",padding:\"6px 12px\",borderRadius:999,background:active?dark?\"#f5f2ea\":\"#17150f\":\"transparent\",color:active?dark?\"#17150f\":\"#f5f2ea\":dark?\"#b5b0a4\":\"#55504a\",cursor:active?\"default\":\"pointer\",transition:\"background 0.2s ease, color 0.2s ease\"});return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",display:\"inline-flex\",alignItems:\"center\",gap:2,padding:3,borderRadius:999,background:dark?\"rgba(24, 23, 20, 0.85)\":\"rgba(248, 246, 240, 0.85)\",backdropFilter:\"blur(8px)\",WebkitBackdropFilter:\"blur(8px)\",border:dark?\"1px solid rgba(245, 242, 234, 0.14)\":\"1px solid rgba(23, 21, 15, 0.08)\",boxShadow:dark?\"0 2px 10px rgba(0, 0, 0, 0.4)\":\"0 2px 10px rgba(23, 21, 15, 0.08)\",width:\"max-content\",...props.style},children:[/*#__PURE__*/_jsx(\"a\",{href:mode===\"human\"?undefined:humanLink,\"aria-current\":mode===\"human\"?\"page\":undefined,style:seg(\"Human\",mode===\"human\",humanLink),onMouseEnter:e=>{if(mode!==\"human\")e.currentTarget.style.background=dark?\"rgba(245,242,234,0.08)\":\"rgba(23,21,15,0.06)\";},onMouseLeave:e=>{if(mode!==\"human\")e.currentTarget.style.background=\"transparent\";},children:\"Human\"}),/*#__PURE__*/_jsx(\"a\",{href:mode===\"machine\"?undefined:machineLink,\"aria-current\":mode===\"machine\"?\"page\":undefined,style:seg(\"Machine\",mode===\"machine\",machineLink),onMouseEnter:e=>{if(mode!==\"machine\")e.currentTarget.style.background=dark?\"rgba(245,242,234,0.08)\":\"rgba(23,21,15,0.06)\";},onMouseLeave:e=>{if(mode!==\"machine\")e.currentTarget.style.background=\"transparent\";},children:\"Machine\"})]});}addPropertyControls(HumanMachineSwitch,{appearance:{type:ControlType.Enum,title:\"Appearance\",options:[\"light\",\"dark\"],optionTitles:[\"Light\",\"Dark\"],defaultValue:\"light\",displaySegmentedControl:true},mode:{type:ControlType.Enum,title:\"Mode\",options:[\"human\",\"machine\"],optionTitles:[\"Human\",\"Machine\"],defaultValue:\"human\",displaySegmentedControl:true},humanLink:{type:ControlType.String,title:\"Human URL\",defaultValue:\"/\"},machineLink:{type:ControlType.String,title:\"Machine URL\",defaultValue:\"/machine\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"HumanMachineSwitch\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"30\",\"framerIntrinsicWidth\":\"150\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HumanMachineSwitch.map"],"mappings":"A,oKAUG,SAAwBS,EAAmBC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