{"version":3,"file":"SocialProofNotifications.DbbtUIru.mjs","names":["React.useContext","React.useMemo","React.Fragment","useRef","React.useId","useState","Notification"],"sources":["https:/framerusercontent.com/modules/bwZhLZVSj89O6RLb9PdF/5STLx1DWLWYhjZETjdo2/ZI7m2sFQ2.js","https:/framerusercontent.com/modules/zXMkJFk0hDd3i6P24KcK/J76yxMfUNcbm6SX4MJG4/SocialProofNotifications.js"],"sourcesContent":["// Generated by Framer (4307032)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addFonts,addPropertyControls,ControlType,cx,RichText,SVG,useActiveVariantCallback,useComponentViewport,useLocaleInfo,useVariantState,withCSS}from\"framer\";import{LayoutGroup,motion,MotionConfigContext}from\"framer-motion\";import*as React from\"react\";import{useRef}from\"react\";const cycleOrder=[\"AIspL5an5\",\"PR5NnTlu5\"];const serializationHash=\"framer-1K3Vf\";const variantClassNames={AIspL5an5:\"framer-v-1fuh96v\",PR5NnTlu5:\"framer-v-ulrgjk\"};function addPropertyOverrides(overrides,...variants){const nextOverrides={};variants?.forEach(variant=>variant&&Object.assign(nextOverrides,overrides[variant]));return nextOverrides;}const transition1={damping:60,delay:0,mass:1,stiffness:500,type:\"spring\"};const Transition=({value,children})=>{const config=React.useContext(MotionConfigContext);const transition=value??config.transition;const contextValue=React.useMemo(()=>({...config,transition}),[JSON.stringify(transition)]);return /*#__PURE__*/_jsx(MotionConfigContext.Provider,{value:contextValue,children:children});};const Variants=motion.create(React.Fragment);const humanReadableVariantMap={Desktop:\"AIspL5an5\",Mobile:\"PR5NnTlu5\"};const getProps=({height,id,notificationText,onClickClose,width,...props})=>{return{...props,bisd6ssDf:onClickClose??props.bisd6ssDf,kfjWP9gHX:notificationText??props.kfjWP9gHX??\"Notification Text\",variant:humanReadableVariantMap[props.variant]??props.variant??\"AIspL5an5\"};};const createLayoutDependency=(props,variants)=>{if(props.layoutDependency)return variants.join(\"-\")+props.layoutDependency;return variants.join(\"-\");};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const fallbackRef=useRef(null);const refBinding=ref??fallbackRef;const defaultLayoutId=React.useId();const{activeLocale,setLocale}=useLocaleInfo();const componentViewport=useComponentViewport();const{style,className,layoutId,variant,kfjWP9gHX,bisd6ssDf,...restProps}=getProps(props);const{baseVariant,classNames,clearLoadingGesture,gestureHandlers,gestureVariant,isLoading,setGestureState,setVariant,variants}=useVariantState({cycleOrder,defaultVariant:\"AIspL5an5\",ref:refBinding,variant,variantClassNames});const layoutDependency=createLayoutDependency(props,variants);const{activeVariantCallback,delay}=useActiveVariantCallback(baseVariant);const onTap1w3novn=activeVariantCallback(async(...args)=>{if(bisd6ssDf){const res=await bisd6ssDf(...args);if(res===false)return false;}});const sharedStyleClassNames=[];const scopingClassNames=cx(serializationHash,...sharedStyleClassNames);const isDisplayed=()=>{if(baseVariant===\"PR5NnTlu5\")return true;return false;};const isDisplayed1=()=>{if(baseVariant===\"PR5NnTlu5\")return false;return true;};return /*#__PURE__*/_jsx(LayoutGroup,{id:layoutId??defaultLayoutId,children:/*#__PURE__*/_jsx(Variants,{animate:variants,initial:false,children:/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsxs(motion.div,{...restProps,...gestureHandlers,className:cx(scopingClassNames,\"framer-1fuh96v\",className,classNames),\"data-framer-name\":\"Desktop\",layoutDependency:layoutDependency,layoutId:\"AIspL5an5\",ref:refBinding,style:{...style},...addPropertyOverrides({PR5NnTlu5:{\"data-framer-name\":\"Mobile\"}},baseVariant,gestureVariant),children:[/*#__PURE__*/_jsx(Transition,{value:transition1,children:/*#__PURE__*/_jsxs(motion.div,{className:\"framer-6v4pe3\",layoutDependency:layoutDependency,layoutId:\"fHWGpUejg\",children:[isDisplayed()&&/*#__PURE__*/_jsx(SVG,{className:\"framer-12c1k8e\",\"data-framer-name\":\"TooltipLeft\",fill:\"black\",intrinsicHeight:16,intrinsicWidth:24,layoutDependency:layoutDependency,layoutId:\"NfdWbMNTj\",svg:'<svg width=\"24\" height=\"16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M24 1V0H.136C2.52 0 4.907 0 8.487 3l12.229 10.25c1.301 1.09 3.282.162 3.282-1.536V2c0-2 .003-1 .003-1Z\" fill=\"#F1F4FC\"/></svg>',withExternalLayout:true}),/*#__PURE__*/_jsxs(motion.div,{className:\"framer-1jkcqxx\",layoutDependency:layoutDependency,layoutId:\"cCFkppZpG\",style:{backgroundColor:\"rgb(241, 244, 252)\",borderBottomLeftRadius:8,borderBottomRightRadius:0,borderTopLeftRadius:8,borderTopRightRadius:8,boxShadow:\"0px 10px 10px 4px rgba(51, 65, 85, 0.1)\"},variants:{PR5NnTlu5:{borderBottomRightRadius:8,borderTopLeftRadius:0}},children:[/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"R0Y7SW50ZXIgVGlnaHQtcmVndWxhcg==\",\"--framer-font-family\":'\"Inter Tight\", \"Inter Tight Placeholder\", sans-serif',\"--framer-line-height\":\"24px\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(75, 75, 75))\"},children:\"Notification Text\"})}),className:\"framer-1uplea4\",fonts:[\"GF;Inter Tight-regular\"],layoutDependency:layoutDependency,layoutId:\"JLv8mQkzK\",style:{\"--extracted-r6o4lv\":\"rgb(75, 75, 75)\",\"--framer-link-text-color\":\"rgb(0, 153, 255)\",\"--framer-link-text-decoration\":\"underline\"},text:kfjWP9gHX,verticalAlignment:\"top\",withExternalLayout:true}),/*#__PURE__*/_jsx(motion.button,{\"aria-label\":\"Close\",className:\"framer-1jn8ljv\",\"data-framer-name\":\"Button\",\"data-highlight\":true,\"data-reset\":\"button\",layoutDependency:layoutDependency,layoutId:\"JCnOTCFyX\",onTap:onTap1w3novn,style:{borderBottomLeftRadius:10,borderBottomRightRadius:10,borderTopLeftRadius:10,borderTopRightRadius:10},children:/*#__PURE__*/_jsx(RichText,{__fromCanvasComponent:true,children:/*#__PURE__*/_jsx(React.Fragment,{children:/*#__PURE__*/_jsx(motion.p,{style:{\"--font-selector\":\"R0Y7SW50ZXIgVGlnaHQtcmVndWxhcg==\",\"--framer-font-family\":'\"Inter Tight\", \"Inter Tight Placeholder\", sans-serif',\"--framer-font-size\":\"13px\",\"--framer-line-height\":\"18px\",\"--framer-text-color\":\"var(--extracted-r6o4lv, rgb(91, 115, 163))\"},children:\"Close\"})}),className:\"framer-qkhcsr\",fonts:[\"GF;Inter Tight-regular\"],layoutDependency:layoutDependency,layoutId:\"GikTs9Pe4\",style:{\"--extracted-r6o4lv\":\"rgb(91, 115, 163)\"},verticalAlignment:\"top\",withExternalLayout:true})})]}),isDisplayed1()&&/*#__PURE__*/_jsx(SVG,{className:\"framer-rq6e61\",\"data-framer-name\":\"TooltipRight\",fill:\"black\",intrinsicHeight:24,intrinsicWidth:16,layoutDependency:layoutDependency,layoutId:\"CdZ24U71X\",svg:'<svg width=\"16\" height=\"24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M1 24H0V.134C0 2.52 0 4.907 3 8.486l10.25 12.23c1.09 1.3.162 3.281-1.536 3.281H2c-2 0-1 .003-1 .003Z\" fill=\"#F1F4FC\"/></svg>',withExternalLayout:true})]})}),/*#__PURE__*/_jsx(motion.div,{className:\"framer-1snwly\",\"data-border\":true,layoutDependency:layoutDependency,layoutId:\"xcrZnKF5u\",style:{\"--border-bottom-width\":\"2px\",\"--border-color\":\"rgb(241, 244, 252)\",\"--border-left-width\":\"2px\",\"--border-right-width\":\"2px\",\"--border-style\":\"solid\",\"--border-top-width\":\"2px\",backgroundColor:\"var(--token-6a2c25ea-e263-46ee-b761-636832ddde43, rgb(101, 219, 106))\",borderBottomLeftRadius:30,borderBottomRightRadius:30,borderTopLeftRadius:30,borderTopRightRadius:30,boxShadow:\"0px 10px 10px 4px rgba(51, 65, 85, 0.1)\"},children:/*#__PURE__*/_jsx(SVG,{className:\"framer-1aboj55\",\"data-framer-name\":\"graphic\",fill:\"black\",intrinsicHeight:512,intrinsicWidth:512,layoutDependency:layoutDependency,layoutId:\"Z0MhdWtsa\",svg:'<svg width=\"512\" height=\"512\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><g clip-path=\"url(#a)\"><mask id=\"b\" style=\"mask-type:luminance\" maskUnits=\"userSpaceOnUse\" x=\"0\" y=\"0\" width=\"512\" height=\"512\"><path d=\"M512 0H0v512h512V0Z\" fill=\"#fff\"/></mask><g mask=\"url(#b)\"><path d=\"M512 0H0v512h512V0Z\" fill=\"#65DB6A\"/><path d=\"M281.78 311.671h-1.886c-8.491 17.607-22.007 24.206-38.353 24.206-37.727 0-64.133-34.897-64.133-75.136 0-56.59 40.87-81.427 73.249-81.427 12.578 0 24.524 2.199 31.123 7.547v-39.614c0-13.52-5.342-18.55-17.607-18.55h-16.976v-10.368c15.72-2.513 47.156-9.747 57.216-13.203h9.116v193.346c0 16.033 8.804 19.177 17.92 19.177h3.143v11.946l-52.812 6.286v-24.21Zm0-14.147v-72.619c0-20.119-11.946-29.553-30.497-29.553-19.807 0-43.069 16.033-43.069 55.329 0 28.61 15.72 55.647 46.53 55.647 10.998 0 19.802-2.2 27.036-8.804Zm66.19 78.365-1.242-.162-3.408.294-3.409-1.545-3.408.934-3.414-1.072-3.408 1.37-3.409-.72-3.413.109-3.409-.925-3.413-.222-3.409 2.048-3.413-.346-3.409.355-3.413-1.361-3.413-.649-3.409.754-3.413 1.531-3.414-1.64-3.413-.636-3.409 2.006-3.413-1.091-3.409.958-3.413-1-3.408.801-3.414-.375-3.408.29-3.409-1.399-3.413 1.527-3.409-1.607-3.408 1.147-3.409.365-3.413.014-3.409-.209-3.409-1.194-3.408 1.507-3.409-.896-3.413-.151-3.409-.143-3.408.228-3.409 1.081-3.408-.436-3.409-.669-3.413-.64-3.409.944-3.409-.346-3.408-.29-3.413-.308-3.409-.132-3.413 1.716-3.409-1.29-3.409 1.053-3.413-1.257-3.57.768.498 3.774.806 5.044-1.783 5.044.944 3.333 3.115.934 3.418-.659 3.418-.853 3.418 1.389 3.413-.726 3.418.356 3.414-1.299 3.418 1.398 3.413-.616 3.418-.739 3.418 1.773 3.413-.038 3.418-1.802 3.414.474 3.418.432 3.413-.228 3.414-.085 3.418 1.1 3.413-.323 3.413.588 3.414-.355 3.418.663 3.413-1.716 3.413-.014 3.414.507 3.413.787 3.413-1.067 3.414.408 3.413.171 3.413.332 3.414-.01 3.418-.242 3.413.859 3.413-1.19 3.414-.498 3.413-.484 3.418.076 3.413 1.768 3.414-.867 3.413.55 3.418-.503 3.414.678 3.413-1.574 3.413 1.66 3.414-1.356 3.413 1.64 3.413-2.091 3.418 1.764 3.414-.901 3.413-.488 3.413 1.365 3.414-.464 1.009.004v-16.772Z\" fill=\"#1B1B1B\"/></g></g><defs><clipPath id=\"a\"><path fill=\"#fff\" d=\"M0 0h512v512H0z\"/></clipPath></defs></svg>',withExternalLayout:true})})]})})})});});const css=[\"@supports (aspect-ratio: 1) { body { --framer-aspect-ratio-supported: auto; } }\",\".framer-1K3Vf.framer-xggfer, .framer-1K3Vf .framer-xggfer { display: block; }\",\".framer-1K3Vf.framer-1fuh96v { align-content: flex-end; align-items: flex-end; display: flex; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: center; max-width: 488px; padding: 0px; position: relative; width: 488px; }\",\".framer-1K3Vf .framer-6v4pe3 { align-content: flex-end; align-items: flex-end; display: flex; flex: 1 0 0px; flex-direction: row; flex-wrap: nowrap; gap: 0px; height: min-content; justify-content: center; overflow: visible; padding: 0px; position: relative; width: 1px; }\",\".framer-1K3Vf .framer-12c1k8e { aspect-ratio: 1.5 / 1; flex: none; height: var(--framer-aspect-ratio-supported, 16px); position: relative; width: 24px; }\",\".framer-1K3Vf .framer-1jkcqxx { align-content: flex-end; align-items: flex-end; display: flex; flex: 1 0 0px; flex-direction: column; flex-wrap: nowrap; gap: 10px; height: min-content; justify-content: center; overflow: visible; padding: 16px; position: relative; width: 1px; }\",\".framer-1K3Vf .framer-1uplea4 { flex: none; height: auto; position: relative; white-space: pre-wrap; width: 100%; word-break: break-word; word-wrap: break-word; }\",\".framer-1K3Vf .framer-1jn8ljv { align-content: center; align-items: center; cursor: pointer; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 8px; height: min-content; justify-content: center; padding: 2px 4px 2px 4px; position: relative; width: min-content; }\",\".framer-1K3Vf .framer-qkhcsr { flex: none; height: auto; overflow: visible; position: relative; white-space: pre; width: auto; }\",\".framer-1K3Vf .framer-rq6e61 { aspect-ratio: 0.6666666666666666 / 1; flex: none; height: var(--framer-aspect-ratio-supported, 24px); position: relative; width: 16px; }\",\".framer-1K3Vf .framer-1snwly { align-content: center; align-items: center; display: flex; flex: none; flex-direction: row; flex-wrap: nowrap; gap: 10px; height: 60px; justify-content: center; overflow: visible; padding: 0px 0px 0px 4px; position: relative; width: 60px; }\",\".framer-1K3Vf .framer-1aboj55 { aspect-ratio: 1 / 1; flex: none; height: var(--framer-aspect-ratio-supported, 40px); position: relative; width: 40px; }\",\".framer-1K3Vf.framer-v-ulrgjk.framer-1fuh96v { align-content: flex-start; align-items: flex-start; gap: 0px; max-width: 374px; width: 374px; }\",\".framer-1K3Vf.framer-v-ulrgjk .framer-6v4pe3 { align-content: flex-start; align-items: flex-start; order: 1; }\",\".framer-1K3Vf.framer-v-ulrgjk .framer-12c1k8e, .framer-1K3Vf.framer-v-ulrgjk .framer-1snwly { order: 0; }\",\".framer-1K3Vf.framer-v-ulrgjk .framer-1jkcqxx { order: 1; }\",'.framer-1K3Vf[data-border=\"true\"]::after, .framer-1K3Vf [data-border=\"true\"]::after { content: \"\"; border-width: var(--border-top-width, 0) var(--border-right-width, 0) var(--border-bottom-width, 0) var(--border-left-width, 0); border-color: var(--border-color, none); border-style: var(--border-style, none); width: 100%; height: 100%; position: absolute; box-sizing: border-box; left: 0; top: 0; border-radius: inherit; pointer-events: none; }'];/**\n * This is a generated Framer component.\n * @framerIntrinsicHeight 88\n * @framerIntrinsicWidth 488\n * @framerCanvasComponentVariantDetails {\"propertyName\":\"variant\",\"data\":{\"default\":{\"layout\":[\"fixed\",\"auto\"],\"constraints\":[null,\"488px\",null,null]},\"PR5NnTlu5\":{\"layout\":[\"fixed\",\"auto\"],\"constraints\":[null,\"374px\",null,null]}}}\n * @framerVariables {\"kfjWP9gHX\":\"notificationText\",\"bisd6ssDf\":\"onClickClose\"}\n * @framerImmutableVariables true\n * @framerDisplayContentsDiv false\n * @framerAutoSizeImages true\n * @framerComponentViewportWidth true\n * @framerColorSyntax true\n */const FramerZI7m2sFQ2=withCSS(Component,css,\"framer-1K3Vf\");export default FramerZI7m2sFQ2;FramerZI7m2sFQ2.displayName=\"Notification\";FramerZI7m2sFQ2.defaultProps={height:88,width:488};addPropertyControls(FramerZI7m2sFQ2,{variant:{options:[\"AIspL5an5\",\"PR5NnTlu5\"],optionTitles:[\"Desktop\",\"Mobile\"],title:\"Variant\",type:ControlType.Enum},kfjWP9gHX:{defaultValue:\"Notification Text\",placeholder:\"\",title:\"notificationText\",type:ControlType.String},bisd6ssDf:{title:\"onClickClose\",type:ControlType.EventHandler}});addFonts(FramerZI7m2sFQ2,[{explicitInter:true,fonts:[{family:\"Inter Tight\",source:\"google\",style:\"normal\",url:\"https://fonts.gstatic.com/s/intertight/v8/NGSnv5HMAFg6IuGlBNMjxJEL2VmU3NS7Z2mjDw-qWSRToK8EPg.woff2\",weight:\"400\"}]}],{supportsExplicitInterCodegen:true});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FramerZI7m2sFQ2\",\"slots\":[],\"annotations\":{\"framerCanvasComponentVariantDetails\":\"{\\\"propertyName\\\":\\\"variant\\\",\\\"data\\\":{\\\"default\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"],\\\"constraints\\\":[null,\\\"488px\\\",null,null]},\\\"PR5NnTlu5\\\":{\\\"layout\\\":[\\\"fixed\\\",\\\"auto\\\"],\\\"constraints\\\":[null,\\\"374px\\\",null,null]}}}\",\"framerDisplayContentsDiv\":\"false\",\"framerIntrinsicWidth\":\"488\",\"framerContractVersion\":\"1\",\"framerImmutableVariables\":\"true\",\"framerAutoSizeImages\":\"true\",\"framerIntrinsicHeight\":\"88\",\"framerVariables\":\"{\\\"kfjWP9gHX\\\":\\\"notificationText\\\",\\\"bisd6ssDf\\\":\\\"onClickClose\\\"}\",\"framerComponentViewportWidth\":\"true\",\"framerColorSyntax\":\"true\"}},\"Props\":{\"type\":\"tsType\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ZI7m2sFQ2.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{useAnimate}from\"framer-motion\";import Notification from\"https://framerusercontent.com/modules/bwZhLZVSj89O6RLb9PdF/5STLx1DWLWYhjZETjdo2/ZI7m2sFQ2.js\";const localStorageNotificationsKey=\"socialProofNotificationsData\";let showNotificationTimeout=null,hideNotificationTimeout=null,notificationsIsInit=false;const getRandomNumber=(min,max)=>Math.floor(Math.random()*(max-min)+min);export default function SocialProofNotifications({demoMode,showingDelay,hidingDelay,...props}){const[scope,animate]=useAnimate();const[currentNotification,setCurrentNotification]=useState(demoMode?\"Demo Mode\":null);const getNotification=notifications=>{if(!notifications?.length){return null;}const index=getRandomNumber(0,notifications.length-1);const notification=notifications[index];const restNotifications=notifications.filter((_,i)=>index!==i);window.localStorage.setItem(localStorageNotificationsKey,JSON.stringify(restNotifications));return{notification,restNotifications};};const showNotification=async notifications=>{const{notification,restNotifications}=getNotification(notifications);if(!notification){return null;}window?.posthog?.capture(\"Social proof notifications\",{action:\"Show\"});console.log(\"Social proof notifications - Show\");setCurrentNotification(notification);await animate(scope.current,{opacity:1},{duration:.2});autoHideNotificationWithDelay(restNotifications);};const hideNotification=async()=>{await animate(scope.current,{opacity:0},{duration:.2});setCurrentNotification(null);};const autoHideNotification=async restNotifications=>{window?.posthog?.capture(\"Social proof notifications\",{action:\"Hide\"});console.log(\"Social proof notifications - Hide\");await hideNotification();showNotificationWithDelay(restNotifications);};const showNotificationWithDelay=notifications=>{showNotificationTimeout=setTimeout(()=>showNotification(notifications),showingDelay*1e3);};const autoHideNotificationWithDelay=restNotifications=>{hideNotificationTimeout=setTimeout(()=>autoHideNotification(restNotifications),hidingDelay*1e3);};const fetchNotifications=async()=>{try{const baseUrl=window.location.hostname.includes(\"divorce.com\")?\"https://divorce.com\":\"https://staging.completecase.com:8190\";const response=await fetch(baseUrl+\"/social-proof-notifications/\");const data=await response.json();return data.notifications;}catch(error){window?.posthog?.capture(\"Social proof notifications\",{action:\"Error fetching data\"});console.log(\"Social proof notifications - Error fetching data\");return Promise.reject(error);}};const initNotifications=async()=>{try{let notifications=window.localStorage.getItem(localStorageNotificationsKey);if(notifications){notifications=JSON.parse(notifications);}else{notifications=await fetchNotifications();window.localStorage.setItem(localStorageNotificationsKey,JSON.stringify(notifications));}if(!notifications?.length){return null;}window?.posthog?.capture(\"Social proof notifications\",{action:\"Initialization\"});console.log(\"Social proof notifications - Initialization\");showNotificationWithDelay(notifications);}catch{window?.posthog?.capture(\"Social proof notifications\",{action:\"Error initialization\"});console.log(\"Social proof notifications - Error initialization\");}};const onHandleClickClose=()=>{window?.posthog?.capture(\"Social proof notifications\",{action:\"Click close\"});console.log(\"Social proof notifications - Click close\");hideNotification();clearTimeout(hideNotificationTimeout);clearTimeout(showNotificationTimeout);};const checkFlagsAndInit=()=>{if(notificationsIsInit){return null;}notificationsIsInit=true;window?.posthog?.isFeatureEnabled(\"social-proof-notifications\")&&initNotifications();};const addCheckFlagsAndInitHandler=()=>{window?.posthog?.onFeatureFlags(checkFlagsAndInit);};const removeCheckFlagsAndInitHandler=()=>{window?.posthog?.featureFlags?.removeFeatureFlagsHandler(checkFlagsAndInit);};useEffect(()=>{!demoMode&&addCheckFlagsAndInitHandler();return()=>{removeCheckFlagsAndInitHandler();clearTimeout(hideNotificationTimeout);clearTimeout(showNotificationTimeout);};},[]);return currentNotification&&/*#__PURE__*/_jsx(Notification,{...props,initial:{opacity:demoMode?1:0},animate:{opacity:1},transition:{duration:.2},ref:scope,notificationText:currentNotification,onClickClose:onHandleClickClose});}SocialProofNotifications.defaultProps={demoMode:false,showingDelay:10,hidingDelay:15};addPropertyControls(SocialProofNotifications,{variant:Notification.propertyControls.variant,showingDelay:{type:ControlType.Number,title:\"Showing delay (seconds)\",description:\"Seconds to delay showing a notification\"},hidingDelay:{type:ControlType.Number,title:\"Hiding delay (seconds)\",description:\"Seconds to delay hiding a notification\"},demoMode:{type:ControlType.Boolean,title:\"Demo Mode\",enabledTitle:\"On\",disabledTitle:\"Off\",description:\"*On* to show element for positioning\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SocialProofNotifications\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"soBACuf,SAAS,EAAqB,EAAU,GAAG,EAAS,CAAC,IAAM,EAAc,EAAE,CAAsF,OAArF,GAAU,QAAQ,GAAS,GAAS,OAAO,OAAO,EAAc,EAAU,GAAS,CAAC,CAAQ,yCAAtmB,IAAiK,IAAkE,IAA4B,CAAgC,EAAW,CAAC,YAAY,YAAY,CAAO,EAAkB,eAAqB,EAAkB,CAAC,UAAU,mBAAmB,UAAU,kBAAkB,CAA8L,EAAY,CAAC,QAAQ,GAAG,MAAM,EAAE,KAAK,EAAE,UAAU,IAAI,KAAK,SAAS,CAAO,GAAY,CAAC,QAAM,cAAY,CAAC,IAAM,EAAOA,EAAiB,EAAoB,CAAO,EAAW,GAAO,EAAO,WAAiB,EAAaC,OAAmB,CAAC,GAAG,EAAO,aAAW,EAAE,CAAC,KAAK,UAAU,EAAW,CAAC,CAAC,CAAC,OAAoB,EAAK,EAAoB,SAAS,CAAC,MAAM,EAAs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