{"version":3,"file":"RefusalAnnotations.WSD8aEWk.mjs","names":["useState","useMemo","useCallback"],"sources":["https:/framerusercontent.com/modules/BqG6JHvYPrQbDc6QDQTt/29yV5GccdzplU3PC0y6J/RefusalAnnotations.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{startTransition,useCallback,useMemo,useState}from\"react\";const DEFAULT_ITEMS=[{title:\"No leaderboard, no portable score\",body:\"Reputation attaches to people as attested standing — merit, never a number. The refusal is the number, not the standing. A portable people-score becomes influence currency and erodes the merit it claims to measure.\"},{title:\"No surveillance\",body:\"Presence is venue-level activity, never a member's location. The system surfaces; the member perceives; the member chooses to act. It never reaches for behavior.\"},{title:\"Member-sovereignty over public data\",body:\"We decline public data on our own members — the differentiator, not a constraint on it. A member who goes dark stays dark, even when third-party feeds would expose them.\"}];/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function RefusalAnnotations(props){const{items=DEFAULT_ITEMS,gap=28,badgeBorder=\"#D9D9D9\",titleColor=\"#111111\",bodyColor=\"#3F3F3F\",dimOpacity=.15,background=\"transparent\",showNumber=false}=props;const[openIndex,setOpenIndex]=useState(null);const normalizedItems=useMemo(()=>{return(items?.length?items:DEFAULT_ITEMS).map(item=>({title:item.title??\"\",body:item.body??\"\"}));},[items]);const toggleIndex=useCallback(index=>{startTransition(()=>{setOpenIndex(prev=>prev===index?null:index);});},[]);const onKeyDown=useCallback((event,index)=>{if(event.key===\"Enter\"||event.key===\" \"){event.preventDefault();toggleIndex(index);}},[toggleIndex]);return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"auto\",display:\"flex\",flexDirection:\"column\",gap,background,color:bodyColor,fontFamily:\"Inter, sans-serif\"},children:/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",display:\"flex\",flexDirection:\"column\",borderTop:\"1px solid var(--framer-color-divider, #E5E5E5)\"},children:normalizedItems.map((item,index)=>{const isOpen=openIndex===index;const opacity=openIndex===null?1:isOpen?1:dimOpacity;return /*#__PURE__*/_jsxs(\"button\",{type:\"button\",onClick:()=>toggleIndex(index),onKeyDown:event=>onKeyDown(event,index),\"aria-expanded\":isOpen,style:{position:\"relative\",display:\"flex\",width:\"100%\",gap:12,padding:\"12px 0\",border:\"none\",borderBottom:\"1px solid var(--framer-color-divider, #E5E5E5)\",background:\"transparent\",cursor:\"pointer\",opacity,transition:\"opacity .18s\",textAlign:\"left\"},children:[showNumber?/*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:22,height:22,borderRadius:\"999px\",border:`1px solid ${badgeBorder}`,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontSize:12,lineHeight:1,color:bodyColor,flex:\"0 0 auto\",marginTop:1},children:index+1}):null,/*#__PURE__*/_jsxs(\"p\",{style:{margin:0,fontSize:14,lineHeight:1.6,color:bodyColor},children:[/*#__PURE__*/_jsxs(\"span\",{style:{color:titleColor,fontWeight:700},children:[item.title,\".\"]}),isOpen?` ${item.body}`:\"\"]})]},`${item.title}-${index}`);})})});}addPropertyControls(RefusalAnnotations,{items:{type:ControlType.Array,title:\"Items\",control:{type:ControlType.Object,controls:{title:{type:ControlType.String,title:\"Title\",defaultValue:\"No leaderboard, no portable score\"},body:{type:ControlType.String,title:\"Body\",defaultValue:\"Reputation attaches to people as attested standing — merit, never a number. The refusal is the number, not the standing. A portable people-score becomes influence currency and erodes the merit it claims to measure.\",displayTextArea:true}}},defaultValue:DEFAULT_ITEMS},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:28,min:0,max:120,step:1,unit:\"px\"},showNumber:{type:ControlType.Boolean,title:\"Show Number\",defaultValue:false,enabledTitle:\"On\",disabledTitle:\"Off\"},badgeBorder:{type:ControlType.Color,title:\"Badge Border\",defaultValue:\"#D9D9D9\"},titleColor:{type:ControlType.Color,title:\"Title Color\",defaultValue:\"#111111\"},bodyColor:{type:ControlType.Color,title:\"Body Color\",defaultValue:\"#3F3F3F\"},dimOpacity:{type:ControlType.Number,title:\"Dim Opacity\",defaultValue:.15,min:.05,max:1,step:.01},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"transparent\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"RefusalAnnotations\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./RefusalAnnotations.map"],"mappings":"sMAGG,SAAwB,EAAmB,EAAM,CAAC,GAAK,CAAC,QAAM,EAAc,MAAI,GAAG,cAAY,UAAU,aAAW,UAAU,YAAU,UAAU,aAAW,IAAI,aAAW,cAAc,aAAW,IAAO,EAAW,CAAC,EAAU,GAAcA,EAAS,KAAK,CAAO,EAAgBC,OAAoB,GAAO,OAAO,EAAM,GAAe,IAAI,IAAO,CAAC,MAAM,EAAK,OAAO,GAAG,KAAK,EAAK,MAAM,GAAG,EAAE,CAAG,CAAC,EAAM,CAAC,CAAO,EAAYC,EAAY,GAAO,CAAC,MAAoB,CAAC,EAAa,GAAM,IAAO,EAAM,KAAK,EAAM,EAAG,EAAG,EAAE,CAAC,CAAO,EAAUA,GAAa,EAAM,IAAQ,EAAI,EAAM,MAAM,SAAS,EAAM,MAAM,OAAK,EAAM,gBAAgB,CAAC,EAAY,EAAM,GAAI,CAAC,EAAY,CAAC,CAAC,OAAoB,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,OAAO,OAAO,QAAQ,OAAO,cAAc,SAAS,MAAI,aAAW,MAAM,EAAU,WAAW,oBAAoB,CAAC,SAAsB,EAAK,MAAM,CAAC,MAAM,CAAC,SAAS,WAAW,MAAM,OAAO,QAAQ,OAAO,cAAc,SAAS,UAAU,iDAAiD,CAAC,SAAS,EAAgB,KAAK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