{"version":3,"file":"DesignerNote.BseGHg4r.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/3CSPPrJacnYnzh1pBGru/l5c0XoZSj6XaXZ9QbRrm/DesignerNote.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType}from\"framer\";// ── NoteBadge — a floating, fully-editable glass note ──\nfunction NoteBadge({note,delay}){const[visible,setVisible]=React.useState(false);React.useEffect(()=>{const t=setTimeout(()=>setVisible(true),delay);return()=>clearTimeout(t);},[delay]);const isTop=note.position===\"top-left\"||note.position===\"top-right\";const isLeft=note.position===\"top-left\"||note.position===\"bottom-left\";const style={position:\"absolute\",width:note.boxWidth,maxWidth:\"90%\",padding:`${note.paddingY}px ${note.paddingX}px`,borderRadius:note.borderRadius,background:note.backgroundColor,backdropFilter:`blur(${note.blurAmount}px)`,WebkitBackdropFilter:`blur(${note.blurAmount}px)`,border:note.showBorder?`${note.borderWidth}px solid ${note.borderColor}`:\"none\",color:note.textColor,fontFamily:\"'Inter', sans-serif\",fontSize:note.fontSize,lineHeight:note.lineHeight,whiteSpace:\"pre-wrap\",boxSizing:\"border-box\",zIndex:10,opacity:visible?1:0,transition:\"opacity 450ms ease, transform 450ms ease\",transform:visible?\"translateY(0)\":`translateY(${isTop?-8:8}px)`};if(isTop)style.top=note.offsetY;else style.bottom=note.offsetY;if(isLeft)style.left=note.offsetX;else style.right=note.offsetX;return /*#__PURE__*/_jsx(\"div\",{style:style,children:note.text});}/**\n * DesignerNote — drop one or more floating, fully-editable glass notes\n * anywhere over a section. Each note in the array has its own text,\n * corner position, offset, size, colors, background opacity, blur and\n * border — add or remove notes freely from the panel, no fixed layout.\n *\n * Resize this layer's own bounding box on canvas to define the area\n * notes can float within (they're positioned relative to it).\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function DesignerNote(props){const{notes=[]}=props;return /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\",position:\"relative\"},children:notes.map((note,i)=>/*#__PURE__*/_jsx(NoteBadge,{note:note,delay:i*80},i))});}DesignerNote.displayName=\"Designer Note\";addPropertyControls(DesignerNote,{notes:{type:ControlType.Array,title:\"Notes\",control:{type:ControlType.Object,controls:{text:{type:ControlType.String,title:\"Text\",displayTextArea:true,defaultValue:\"Write your thought here…\"},position:{type:ControlType.Enum,title:\"Position\",defaultValue:\"bottom-left\",options:[\"top-left\",\"top-right\",\"bottom-left\",\"bottom-right\"],optionTitles:[\"Top Left\",\"Top Right\",\"Bottom Left\",\"Bottom Right\"]},offsetX:{type:ControlType.Number,title:\"Offset X\",defaultValue:24,min:-200,max:600},offsetY:{type:ControlType.Number,title:\"Offset Y\",defaultValue:24,min:-200,max:600},boxWidth:{type:ControlType.Number,title:\"Box Width\",defaultValue:320,min:120,max:800},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:15,min:10,max:32},lineHeight:{type:ControlType.Number,title:\"Line Height\",defaultValue:1.6,min:1,max:2.5,step:.05},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"rgba(255,255,255,0.85)\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"rgba(255,255,255,0.07)\",description:\"Use the color picker's opacity slider to control transparency.\"},blurAmount:{type:ControlType.Number,title:\"Blur\",defaultValue:24,min:0,max:60},paddingX:{type:ControlType.Number,title:\"Padding X\",defaultValue:24,min:8,max:80},paddingY:{type:ControlType.Number,title:\"Padding Y\",defaultValue:20,min:8,max:80},borderRadius:{type:ControlType.Number,title:\"Corner Radius\",defaultValue:20,min:0,max:60},showBorder:{type:ControlType.Boolean,title:\"Border\",defaultValue:true},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"rgba(255,255,255,0.15)\",hidden:n=>!n.showBorder},borderWidth:{type:ControlType.Number,title:\"Border Width\",defaultValue:1,min:1,max:4,hidden:n=>!n.showBorder}}},defaultValue:[],description:\"Add or remove notes freely. Position, offset, size, colors, opacity and border are all per-note.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"DesignerNote\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./DesignerNote.map"],"mappings":"iLACA,SAAS,EAAU,CAAC,OAAK,SAAO,CAAC,GAAK,CAAC,EAAQ,GAAYA,EAAe,EAAK,EAAE,MAAoB,CAAC,IAAM,EAAE,eAAe,EAAW,EAAI,EAAE,CAAK,EAAE,UAAU,aAAa,CAAC,CAAE,EAAE,CAAC,CAAK,CAAC,EAAE,IAAM,EAAM,EAAK,WAAW,YAAY,EAAK,WAAW,YAAkB,EAAO,EAAK,WAAW,YAAY,EAAK,WAAW,cAAoB,EAAM,CAAC,SAAS,WAAW,MAAM,EAAK,SAAS,SAAS,MAAM,QAAQ,GAAG,EAAK,SAAS,KAAK,EAAK,SAAS,IAAI,aAAa,EAAK,aAAa,WAAW,EAAK,gBAAgB,eAAe,QAAQ,EAAK,WAAW,KAAK,qBAAqB,QAAQ,EAAK,WAAW,KAAK,OAAO,EAAK,WAAW,GAAG,EAAK,YAAY,WAAW,EAAK,cAAc,OAAO,MAAM,EAAK,UAAU,WAAW,sBAAsB,SAAS,EAAK,SAAS,WAAW,EAAK,WAAW,WAAW,WAAW,UAAU,aAAa,OAAO,GAAG,QAAQ,KAAY,WAAW,2CAA2C,UAAU,EAAQ,gBAAgB,cAAc,EAAM,GAAG,EAAE,IAAI,EAAiI,OAA5H,EAAM,EAAM,IAAI,EAAK,QAAa,EAAM,OAAO,EAAK,QAAW,EAAO,EAAM,KAAK,EAAK,QAAa,EAAM,MAAM,EAAK,QAA4B,EAAK,MAAM,CAAO,QAAM,SAAS,EAAK,IAAI,CAAC,CAAE,CAW7oC,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,QAAM,CAAC,GAAG,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