{"version":3,"file":"oc8eMTP35.CmD5rhBZ.mjs","names":["React.forwardRef","useState","useCallback"],"sources":["https:/framerusercontent.com/modules/7sxXPIcIA7ltQxs1pCca/1uAi0jSHPVzVS5KkYi68/o8tLWqXs1.js","https:/framerusercontent.com/modules/krRf9BSNLpOBjdH8wHVL/ZEAmVua47M72LFB7M9DQ/Giveaway_Overrides.js","https:/framerusercontent.com/modules/rj48XZuXAoPgfW7qtkpO/htNenuEDfJ9dQVpKAIGI/oc8eMTP35.js"],"sourcesContent":["// Generated by Framer (6ca5d98)\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,cx,motion,withCSS}from\"framer\";import*as React from\"react\";import{forwardRef}from\"react\";const mask='url(\\'data:image/svg+xml,<svg display=\"block\" role=\"presentation\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 0 12 L 12 0 M 0 0 L 12 12\" fill=\"transparent\" height=\"12px\" id=\"xDO1exsyD\" stroke-dasharray=\"\" stroke-linecap=\"round\" stroke-linejoin=\"round\" stroke-width=\"1.5\" stroke=\"var(--szd5nr, black)\" transform=\"translate(6 6)\" width=\"12px\"/></svg>\\') alpha no-repeat center / auto var(--framer-icon-mask-mode, add), var(--framer-icon-mask, none)';const SVG=/*#__PURE__*/forwardRef((props,ref)=>{const{animated,layoutId,children,...rest}=props;return animated?/*#__PURE__*/_jsx(motion.div,{...rest,layoutId:layoutId,ref:ref}):/*#__PURE__*/_jsx(\"div\",{...rest,ref:ref});});const getProps=({height,id,stroke,width,...props})=>{return{...props,YmfIrZ3Ez:stroke??props.YmfIrZ3Ez??\"rgb(0, 0, 0)\"};};const Component=/*#__PURE__*/React.forwardRef(function(props,ref){const{style,className,layoutId,variant,YmfIrZ3Ez,...restProps}=getProps(props);return /*#__PURE__*/_jsx(SVG,{...restProps,className:cx(\"framer-96y8z\",className),layoutId:layoutId,ref:ref,style:{\"--szd5nr\":YmfIrZ3Ez,...style}});});const css=[`.framer-96y8z { -webkit-mask: ${mask}; aspect-ratio: 1; background-color: var(--szd5nr); mask: ${mask}; width: 24px; }`];/**\n * This is a generated Framer component.\n * @framerIntrinsicWidth 24\n * @framerIntrinsicHeight 24\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerVariables {\"YmfIrZ3Ez\":\"stroke\"}\n * @framerImmutableVariables true\n * @framerVector {\"name\":\"X Mark\",\"color\":{\"type\":\"variable\",\"value\":\"szd5nr\"},\"set\":{\"localId\":\"vectorSet/kNBkgkDkJ\",\"id\":\"kNBkgkDkJ\",\"moduleId\":\"DyJDRQD0f0RPOu0ZYoEG\"}}\n * @framerDisableUnlink true\n */const Icon=withCSS(Component,css,\"framer-96y8z\");Icon.displayName=\"X Mark\";export default Icon;addPropertyControls(Icon,{YmfIrZ3Ez:{defaultValue:\"rgb(0, 0, 0)\",hidden:false,title:\"Stroke\",type:ControlType.Color}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Icon\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"24\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerImmutableVariables\":\"true\",\"framerVector\":\"{\\\"name\\\":\\\"X Mark\\\",\\\"color\\\":{\\\"type\\\":\\\"variable\\\",\\\"value\\\":\\\"szd5nr\\\"},\\\"set\\\":{\\\"localId\\\":\\\"vectorSet/kNBkgkDkJ\\\",\\\"id\\\":\\\"kNBkgkDkJ\\\",\\\"moduleId\\\":\\\"DyJDRQD0f0RPOu0ZYoEG\\\"}}\",\"framerVariables\":\"{\\\"YmfIrZ3Ez\\\":\\\"stroke\\\"}\",\"framerIntrinsicWidth\":\"24\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"true\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}","// User request: Create a new Framer code file that exports two code overrides for “Popup - Giveaway”: `hideGiveawayForTwoHours` to suppress the trigger when a localStorage dismissal timestamp is still valid, and `dismissGiveawayForTwoHours` to set a 2-hour dismissal window while preserving the existing close interaction.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,startTransition,useCallback,useEffect,useState}from\"react\";const DISMISS_KEY=\"stukent-giveaway-dismissed-until\";const TWO_HOURS_MS=2*60*60*1e3;function readDismissedUntil(){if(typeof window===\"undefined\")return 0;const raw=window.localStorage.getItem(DISMISS_KEY);if(!raw)return 0;const timestamp=Number(raw);return Number.isFinite(timestamp)?timestamp:0;}function writeDismissedUntil(timestamp){if(typeof window===\"undefined\")return;window.localStorage.setItem(DISMISS_KEY,String(timestamp));}export function hideGiveawayForTwoHours(Component){return /*#__PURE__*/forwardRef(function HideGiveawayForTwoHours(props,ref){const[canRender,setCanRender]=useState(null);useEffect(()=>{const dismissedUntil=readDismissedUntil();const shouldRender=!(dismissedUntil>Date.now());startTransition(()=>{setCanRender(shouldRender);});},[]);if(canRender!==true)return null;return /*#__PURE__*/_jsx(Component,{ref:ref,...props});});}export function dismissGiveawayForTwoHours(Component){return /*#__PURE__*/forwardRef(function DismissGiveawayForTwoHours(props,ref){const handleTap=useCallback(event=>{writeDismissedUntil(Date.now()+TWO_HOURS_MS);props.onTap?.(event);},[props]);const handleClick=useCallback(event=>{writeDismissedUntil(Date.now()+TWO_HOURS_MS);props.onClick?.(event);},[props]);return /*#__PURE__*/_jsx(Component,{ref:ref,...props,onTap:handleTap,onClick:handleClick});});}\nexport const __FramerMetadata__ = {\"exports\":{\"hideGiveawayForTwoHours\":{\"type\":\"reactHoc\",\"name\":\"hideGiveawayForTwoHours\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"dismissGiveawayForTwoHours\":{\"type\":\"reactHoc\",\"name\":\"dismissGiveawayForTwoHours\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Giveaway_Overrides.map","// Generated by Framer (b8d5a97)\nimport{fontStore}from\"framer\";fontStore.loadFonts([\"GF;Roboto-regular\",\"GF;Roboto-700\",\"GF;Roboto-700italic\",\"GF;Roboto-italic\"]);export const fonts=[{explicitInter:true,fonts:[{family:\"Roboto\",source:\"google\",style:\"normal\",url:\"https://fonts.gstatic.com/s/roboto/v48/KFOMCnqEu92Fr1ME7kSn66aGLdTylUAMQXC89YmC2DPNWubEbWmWggvWl0Qn.woff2\",weight:\"400\"},{family:\"Roboto\",source:\"google\",style:\"normal\",url:\"https://fonts.gstatic.com/s/roboto/v48/KFOMCnqEu92Fr1ME7kSn66aGLdTylUAMQXC89YmC2DPNWuYjammWggvWl0Qn.woff2\",weight:\"700\"},{family:\"Roboto\",source:\"google\",style:\"italic\",url:\"https://fonts.gstatic.com/s/roboto/v48/KFOKCnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmOClHrs6ljXfMMLmbXiAr0klQnx24.woff2\",weight:\"700\"},{family:\"Roboto\",source:\"google\",style:\"italic\",url:\"https://fonts.gstatic.com/s/roboto/v48/KFOKCnqEu92Fr1Mu53ZEC9_Vu3r1gIhOszmOClHrs6ljXfMMLoHQiAr0klQnx24.woff2\",weight:\"400\"}]}];export const css=['.framer-w9lCt .framer-styles-preset-1llyn7u:not(.rich-text-wrapper), .framer-w9lCt .framer-styles-preset-1llyn7u.rich-text-wrapper p { --framer-font-family: \"Roboto\", \"Roboto Placeholder\", sans-serif; --framer-font-family-bold: \"Roboto\", \"Roboto Placeholder\", sans-serif; --framer-font-family-bold-italic: \"Roboto\", \"Roboto Placeholder\", sans-serif; --framer-font-family-italic: \"Roboto\", \"Roboto Placeholder\", sans-serif; --framer-font-open-type-features: normal; --framer-font-size: 18px; --framer-font-style: normal; --framer-font-style-bold: normal; --framer-font-style-bold-italic: italic; --framer-font-style-italic: italic; --framer-font-variation-axes: normal; --framer-font-weight: 400; --framer-font-weight-bold: 700; --framer-font-weight-bold-italic: 700; --framer-font-weight-italic: 400; --framer-letter-spacing: 0px; --framer-line-height: 1.5em; --framer-paragraph-spacing: 20px; --framer-text-alignment: left; --framer-text-color: var(--token-207f0dcd-0edc-4d5e-ae5e-51f2a832a9ec, #ffffff); --framer-text-decoration: none; --framer-text-stroke-color: initial; --framer-text-stroke-width: initial; --framer-text-transform: none; }'];export const className=\"framer-w9lCt\";\nexport const __FramerMetadata__ = {\"exports\":{\"className\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"css\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"fonts\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"4SAC0C,IAAsE,IAA4B,EAAqC,EAAK,qdAA6d,EAAiB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,WAAS,WAAS,WAAS,GAAG,GAAM,EAAM,OAAO,EAAsB,EAAK,EAAO,IAAI,CAAC,GAAG,EAAc,WAAa,KAAG,CAAC,EAAe,EAAK,MAAM,CAAC,GAAG,EAAS,KAAG,CAAC,CAAE,CAAC,EAAQ,GAAU,CAAC,SAAO,KAAG,SAAO,QAAM,GAAG,MAAgB,CAAC,GAAG,EAAM,UAAU,GAAQ,EAAM,WAAW,cAAc,GAU19B,EAAK,EAVs/BA,EAAiB,SAAS,EAAM,EAAI,CAAC,GAAK,CAAC,QAAM,YAAU,WAAS,UAAQ,YAAU,GAAG,GAAW,EAAS,CAAK,EAAE,OAAoB,EAAK,EAAI,CAAC,GAAG,EAAU,UAAU,EAAG,eAAe,CAAS,EAAW,WAAa,MAAI,MAAM,CAAC,WAAW,EAAU,GAAG,CAAK,CAAC,CAAC,CAAE,CAU9uC,EAAE,CAV0vC,iCAAiC,EAAK,4DAA4D,EAAK,iBAU/1C,EAAE,cAAc,EAAE,EAAK,YAAY,SAA6B,EAAoB,EAAK,CAAC,UAAU,CAAC,aAAa,eAAe,OAAO,GAAM,MAAM,SAAS,KAAK,EAAY,KAAK,CAAC,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