{"version":3,"file":"shared-lib.BReOSwLA.mjs","names":[],"sources":["https:/framerusercontent.com/modules/PN5c9Lm200xYeKxP2Gcy/II6tyEWaTvUw9Dzdhpmd/Utils.js","https:/framer.com/m/Utils-QTIc.js@II6tyEWaTvUw9Dzdhpmd","https:/framerusercontent.com/modules/NqozIfmtU9M0EdEln9rq/5lqXs7OKkKKeFsXw08VU/ScrollToTop.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{ControlType}from\"framer\";export const updateChildren=(children,properties)=>{return[{...children,props:{...children.props,children:{...children.props.children,props:{...children.props.children.props,children:{...children.props.children.props.children,props:{...children.props.children.props.children.props,...properties}}}}}}];};export const SettingsMessage=({title,description,containerStyle})=>{return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",alignItems:\"center\",textAlign:\"center\",justifyContent:\"center\",backgroundColor:\"rgba(136, 85, 255, 0.1)\",overflow:\"hidden\",...containerStyle},children:[/*#__PURE__*/_jsx(\"span\",{role:\"img\",\"aria-label\":\"icon\",style:{fontSize:\"32px\"},children:\"✨\"}),/*#__PURE__*/_jsxs(\"div\",{style:{maxWidth:\"240px\"},children:[/*#__PURE__*/_jsx(\"h1\",{style:{fontSize:11,color:\"#96F\",fontWeight:600},children:title}),/*#__PURE__*/_jsx(\"p\",{style:{fontSize:11,color:\"rgba(153, 102, 255, 0.7)\",lineHeight:1.5},children:description})]})]});};export const radiusProperty=(defaultValue=0)=>({type:ControlType.FusedNumber,defaultValue,title:\"Radius\",toggleKey:\"radiusIsMixed\",toggleTitles:[\"All\",\"Individual\"],valueKeys:[\"radiusTopLeft\",\"radiusTopRight\",\"radiusBottomRight\",\"radiusBottomLeft\"],valueLabels:[\"TL\",\"TR\",\"BR\",\"BL\"],min:0});export const getBorderRadius=property=>{if(property.radiusIsMixed){return`${property.radiusTopLeft}px ${property.radiusTopRight}px ${property.radiusBottomRight}px ${property.radiusBottomLeft}px`;}else if(property.radius){return`${property.radius}px`;}return\"0\";};\nexport const __FramerMetadata__ = {\"exports\":{\"updateChildren\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"radiusProperty\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"getBorderRadius\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"SettingsMessage\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Utils.map","/*\n * Utils\n *\n * Learn More: https://www.framer.com/asset-urls\n */\n\nexport * from \"https://framerusercontent.com/modules/PN5c9Lm200xYeKxP2Gcy/II6tyEWaTvUw9Dzdhpmd/Utils.js\"\n","import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{SettingsMessage}from\"https://framer.com/m/Utils-QTIc.js@II6tyEWaTvUw9Dzdhpmd\";/**\n * @framerDisableUnlink\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerIntrinsicWidth 300\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerIntrinsicHeight 150\n */export default function ScrollToTop(props){const{top,behavior,style}=props;const children=Array.isArray(props.children)?props.children[0]:props.children;if(!children||children.length===0){return /*#__PURE__*/_jsx(SettingsMessage,{title:\"Set Up the Component\",description:\"Add layer or component to the button property.\",containerStyle:style});}const scrollToTop=()=>window.scrollTo({top,behavior});return /*#__PURE__*/_jsx(\"div\",{style:style,onClick:scrollToTop,children:children});}ScrollToTop.displayName=\"Scroll to Top\";addPropertyControls(ScrollToTop,{children:{title:\"Button\",type:ControlType.ComponentInstance},top:{title:\"Top\",type:ControlType.Number,defaultValue:0,step:1,min:0,displayStepper:true,description:\"Specifies the number of pixels along the Y axis to scroll the window.\"},behavior:{type:ControlType.Enum,defaultValue:\"smooth\",displaySegmentedControl:true,options:[\"smooth\",\"instant\"],optionTitles:[\"Smooth\",\"Instant\"],description:\"Determines whether scrolling is instant or animates smoothly\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"ScrollToTop\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"150\",\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"*\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"300\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ScrollToTop.map"],"mappings":"mMAAwD,IAAgC,EAA8T,GAAiB,CAAC,QAAM,cAAY,oBAAuC,EAAM,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,cAAc,SAAS,WAAW,SAAS,UAAU,SAAS,eAAe,SAAS,gBAAgB,0BAA0B,SAAS,SAAS,GAAG,CAAc,EAAE,SAAS,CAAc,EAAK,OAAO,CAAC,KAAK,MAAM,aAAa,OAAO,MAAM,CAAC,SAAS,MAAM,EAAE,SAAS,GAAG,CAAC,EAAe,EAAM,MAAM,CAAC,MAAM,CAAC,SAAS,OAAO,EAAE,SAAS,CAAc,EAAK,KAAK,CAAC,MAAM,CAAC,SAAS,GAAG,MAAM,OAAO,WAAW,GAAG,EAAE,SAAS,CAAK,CAAC,EAAe,EAAK,IAAI,CAAC,MAAM,CAAC,SAAS,GAAG,MAAM,2BAA2B,WAAW,GAAG,EAAE,SAAS,CAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,sBEO5hC,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,MAAI,WAAS,SAAO,EAAY,EAAS,MAAM,QAAQ,EAAM,QAAQ,EAAE,EAAM,SAAS,GAAG,EAAM,SAA8P,MAAlP,CAAC,GAAU,EAAS,SAAS,EAAuB,EAAK,EAAgB,CAAC,MAAM,uBAAuB,YAAY,iDAAiD,eAAe,CAAK,CAAC,EAA6E,EAAK,MAAM,CAAO,QAAM,YAA5E,EAAO,SAA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