{"version":3,"file":"Notes.Bw7SQ1YT.mjs","names":["React.useMemo","c"],"sources":["https:/framerusercontent.com/modules/oIa9jYqVoiduNUSqRQ7h/utuZoJKJkJROgiqROlgk/ProgressiveBlur.js","https:/framer.com/m/framer/default-utils.js@^0.45.0","https:/framerusercontent.com/modules/e3x4jPb1EG4euVPWc4mR/DcqkjAY8EPVJ6ETf0Jqb/Notes.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const computeDirection=dir=>{switch(dir){case\"toTop\":return\"to top\";case\"toLeft\":return\"to left\";case\"toRight\":return\"to right\";case\"toBottom\":default:return\"to bottom\";}};// Code component provided by Eleveight Supply™. All rights reserved 2024.\n/**\n * @framerDisableUnlink\n *\n * @framerIntrinsicWidth 300\n * @framerIntrinsicHeight 300\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function ProgressiveBlur(props){const{blur,blurDirection,allCorners,radius,topLeft,topRight,bottomRight,bottomLeft}=props;const layers=[];const base=blur;const dir=computeDirection(blurDirection);for(let i=0;i<8;i++){const b=base/2**(8-i);const start=(i*12.5).toFixed(1);const mid1=(+start+12.5).toFixed(1);const mid2=(+start+25).toFixed(1);const end=(+start+37.5).toFixed(1);layers.push({blur:`${b}px`,gradient:[`rgba(0,0,0,0) ${start}%`,`rgba(0,0,0,1) ${mid1}%`,`rgba(0,0,0,1) ${mid2}%`,`rgba(0,0,0,0) ${end}%`].join(\", \")});}const cornerRadius=allCorners?`${radius}px`:`${topLeft}px ${topRight}px ${bottomRight}px ${bottomLeft}px`;return /*#__PURE__*/_jsx(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",borderRadius:cornerRadius,overflow:\"hidden\",background:\"none\"},children:layers.map((layer,idx)=>/*#__PURE__*/_jsx(\"div\",{style:{position:\"absolute\",inset:0,zIndex:idx+1,pointerEvents:\"none\",backdropFilter:`blur(${layer.blur})`,WebkitBackdropFilter:`blur(${layer.blur})`,maskImage:`linear-gradient(${dir}, ${layer.gradient})`,WebkitMaskImage:`linear-gradient(${dir}, ${layer.gradient})`,borderRadius:cornerRadius}},idx))});}ProgressiveBlur.defaultProps={blur:10,blurDirection:\"toBottom\",allCorners:true,radius:0,topLeft:0,topRight:0,bottomRight:0,bottomLeft:0};addPropertyControls(ProgressiveBlur,{blur:{type:ControlType.Number,title:\"Blur\",defaultValue:10,min:0,max:100,step:1},blurDirection:{type:ControlType.SegmentedEnum,title:\"Direction\",options:[\"toBottom\",\"toTop\",\"toLeft\",\"toRight\"],optionTitles:[\"↓\",\"↑\",\"←\",\"→\"],defaultValue:\"toBottom\"},cornerRadius:{type:ControlType.FusedNumber,title:\"Radius\",toggleKey:\"allCorners\",toggleTitles:[\"All\",\"Individual\"],valueKeys:[\"topLeft\",\"topRight\",\"bottomRight\",\"bottomLeft\"],valueLabels:[\"TL\",\"TR\",\"BR\",\"BL\"],defaultValue:0,min:0,max:200,step:1,description:\"If you need rounded corners, apply them here—don’t put them on the parent container or the blur will break.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ProgressiveBlur\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"*\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"300\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"300\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ProgressiveBlur.map","/*\n * index (framer/default-utils@0.45.0)\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/G4IfyjvwmaeSBpdb4TWu/OIjZRBmWDcIE2B6qgG1j/index.js\"\n","import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,RenderTarget,Color}from\"framer\";import{defaultEvents,fontStack}from\"https://framer.com/m/framer/default-utils.js@^0.45.0\";const colors={blue:\"#0099FF\",darkBlue:\"#0066FF\",purple:\"#8855FF\",red:\"#FF5588\",green:\"#22CC66\",yellow:\"#FFBB00\"};/**\n * STICKY\n *\n * @framerIntrinsicWidth 180\n * @framerIntrinsicHeight 180\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */ export function Notes(props){const{note=\"\",shadow,color,preview,alignment,smallFont,onClick,onMouseEnter,onMouseLeave,onMouseDown,onMouseUp,useScriptFont}=props;const[baseColorString,backgroundColorString]=React.useMemo(()=>{const baseColor=Color(colors[color]);const hslColor=Color.toHsl(baseColor);hslColor.l=0.95;const baseColorString=Color(colors[color]).toValue();const backgroundColorString=Color(hslColor).toValue();return[baseColorString,backgroundColorString];},[color]);const centerAligned=alignment===\"center\";const hasContent=note.length>0;return(/*#__PURE__*/ _jsxs(\"div\",{style:{flex:1,width:\"100%\",height:\"100%\",display:\"flex\",alignItems:centerAligned?\"center\":\"flex-start\",backgroundColor:backgroundColorString,overflow:\"hidden\",paddingLeft:smallFont?15:18,paddingTop:useScriptFont?12:14,paddingBottom:useScriptFont?12:14,paddingRight:smallFont?15:18,borderRadius:8,visibility:RenderTarget.current()===RenderTarget.preview&&!preview?\"hidden\":\"visible\",fontFamily:useScriptFont?\"Nanum Pen Script\":fontStack,//@ts-ignore\nfontDisplay:\"fallback\",boxShadow:shadow?\"0 4px 10px rgba(0,0,0,0.08)\":\"none\"},onClick,onMouseEnter,onMouseLeave,onMouseDown,onMouseUp,children:[/*#__PURE__*/ _jsx(\"link\",{href:\"https://fonts.googleapis.com/css?family=Nanum+Pen+Script&display=swap\",rel:\"stylesheet\"}),/*#__PURE__*/ _jsx(\"p\",{style:{width:\"max-content\",wordBreak:\"break-word\",overflowWrap:\"break-word\",overflow:\"hidden\",whiteSpace:\"pre-wrap\",margin:0,fontSize:smallFont?useScriptFont?18:12:useScriptFont?32:24,lineHeight:smallFont?useScriptFont?1.15:1.4:useScriptFont?1.08:1.3,textAlign:alignment,color:baseColorString,display:\"-webkit-box\",opacity:hasContent?1:0.5,// lineClamp: 7,\nWebkitBoxOrient:\"vertical\"},children:hasContent?note:\"Write something...\"})]}));}Notes.defaultProps={useScriptFont:false,color:\"blue\",width:180,height:180,shadow:false};addPropertyControls(Notes,{note:{type:ControlType.String,displayTextArea:true,placeholder:`Write something… \\n\\n\\n`},color:{type:ControlType.Enum,defaultValue:\"blue\",options:Object.keys(colors),optionTitles:Object.keys(colors).map(c=>c.replace(/^\\w/,c=>c.toUpperCase()))},alignment:{title:\"Text Align\",type:ControlType.Enum,displaySegmentedControl:true,optionTitles:[\"Left\",\"Center\",\"Right\"],options:[\"left\",\"center\",\"right\"]},useScriptFont:{type:ControlType.Boolean,disabledTitle:\"Default\",enabledTitle:\"Script\",title:\"Font\"},smallFont:{type:ControlType.Boolean,disabledTitle:\"Big\",enabledTitle:\"Small\",title:\"Text Size\"},preview:{type:ControlType.Boolean,defaultValue:true,title:\"In Preview\",enabledTitle:\"Show\",disabledTitle:\"Hide\"},shadow:{type:ControlType.Boolean,defaultValue:Notes.defaultProps.shadow,title:\"Shadow\",enabledTitle:\"Show\",disabledTitle:\"Hide\"},...defaultEvents});Notes.displayName=\"Sticky Note\";\nexport const __FramerMetadata__ = {\"exports\":{\"Notes\":{\"type\":\"reactComponent\",\"name\":\"Notes\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"180\",\"framerSupportedLayoutHeight\":\"any\",\"framerIntrinsicHeight\":\"180\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Notes.map"],"mappings":"qQASG,SAAwB,EAAgB,EAAM,CAAC,GAAK,CAAC,OAAK,gBAAc,aAAW,SAAO,UAAQ,WAAS,cAAY,cAAY,EAAY,EAAO,EAAE,CAAO,EAAK,EAAW,EAAI,EAAiB,EAAc,CAAC,IAAI,IAA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