{"version":3,"file":"Timer.DbPugvCy.mjs","names":["React.useState"],"sources":["https:/framerusercontent.com/modules/CIcHDcyS9inxwGtTszgI/TqdsK9X9sHeZTAJMvkKj/Timer.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";// <-- BUNU EKLE\nimport{forwardRef}from\"react\";import{createStore}from\"https://framer.com/m/framer/store.js@^1.0.0\";import{randomColor}from\"https://framer.com/m/framer/utils.js@^0.9.0\";const useStore=createStore({background:\"#0099FF\"});export function withRotate(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:{rotate:90},transition:{duration:2}});});}export function withHover(Component){return /*#__PURE__*/forwardRef((props,ref)=>{return /*#__PURE__*/_jsx(Component,{ref:ref,...props,whileHover:{scale:1.05}});});}export function withRandomColor(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[store,setStore]=useStore();return /*#__PURE__*/_jsx(Component,{ref:ref,...props,animate:{background:store.background},onClick:()=>setStore({background:randomColor()})});});}export function withPopupTimer(Component){return /*#__PURE__*/forwardRef((props,ref)=>{// LOG EKLEYELİM kontrol için:\nconsole.log(\"✅ withPopupTimer \\xe7alıştı\");const[show,setShow]=React.useState(false);React.useEffect(()=>{console.log(\"⏳ Timer başladı\");if(sessionStorage.getItem(\"popupDismissed\")===\"true\")return;const timer=setTimeout(()=>{console.log(\"✅ Popup a\\xe7ılıyor\");setShow(true);},5e3);return()=>clearTimeout(timer);},[]);const closePopup=()=>{console.log(\"❌ Popup kapandı\");setShow(false);sessionStorage.setItem(\"popupDismissed\",\"true\");};if(!show)return null;return /*#__PURE__*/_jsx(\"div\",{onClick:closePopup,style:{position:\"fixed\",inset:0,background:\"rgba(0,0,0,0.5)\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",zIndex:9999999,pointerEvents:\"auto\"},children:/*#__PURE__*/_jsx(\"div\",{onClick:e=>e.stopPropagation(),children:/*#__PURE__*/_jsx(Component,{...props,ref:ref,closePopup:closePopup})})});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withRandomColor\":{\"type\":\"reactHoc\",\"name\":\"withRandomColor\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withRotate\":{\"type\":\"reactHoc\",\"name\":\"withRotate\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHover\":{\"type\":\"reactHoc\",\"name\":\"withHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPopupTimer\":{\"type\":\"reactHoc\",\"name\":\"withPopupTimer\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Timer.map"],"mappings":"wLACq0B,SAAgB,EAAe,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAC35B,QAAQ,IAAI,2BAA8B,CAAC,GAAK,CAAC,EAAK,GAASA,EAAe,GAAM,CAAC,MAAoB,CAAgC,GAA/B,QAAQ,IAAI,kBAAkB,CAAI,eAAe,QAAQ,iBAAiB,GAAG,OAAO,OAAO,IAAM,EAAM,eAAe,CAAC,QAAQ,IAAI,mBAAsB,CAAC,EAAQ,GAAK,EAAG,IAAI,CAAC,UAAU,aAAa,EAAM,EAAG,EAAE,CAAC,CAAC,IAAM,MAAe,CAAC,QAAQ,IAAI,kBAAkB,CAAC,EAAQ,GAAM,CAAC,eAAe,QAAQ,iBAAiB,OAAO,EAAwB,OAAjB,EAAqC,EAAK,MAAM,CAAC,QAAQ,EAAW,MAAM,CAAC,SAAS,QAAQ,MAAM,EAAE,WAAW,kBAAkB,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,OAAO,QAAQ,cAAc,OAAO,CAAC,SAAsB,EAAK,MAAM,CAAC,QAAQ,GAAG,EAAE,iBAAiB,CAAC,SAAsB,EAAK,EAAU,CAAC,GAAG,EAAU,MAAe,aAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAxW,MAA2W,kBAFnwB,IAA4B,IAC4B,IAAqE,CAAe,EAAY,CAAC,WAAW,UAAU,CAAC"}