{"version":3,"file":"Preloader_animation.ASAaF4by.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/VOfw57NpMYYClNNNbC6Y/SicOJD9rHUTyw1YLXFlL/Preloader_animation.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Geometric Logo Preloader Component for Framer\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function PreloaderComponent(props){const{autoStart,onComplete,backgroundColor,shapeTLColor,shapeTRColor,shapeBLColor,shapeBRColor}=props;const[isVisible,setIsVisible]=useState(true);useEffect(()=>{if(autoStart){// Block scroll during animation - prevent scrolling completely\nconst originalStyle=window.getComputedStyle(document.body).overflow;const originalPosition=window.getComputedStyle(document.body).position;const scrollbarWidth=window.innerWidth-document.documentElement.clientWidth;document.body.style.overflow=\"hidden\";document.body.style.position=\"fixed\";document.body.style.width=\"100%\";document.body.style.top=\"0\";// Add padding to prevent layout shift when scrollbar disappears\nif(scrollbarWidth>0){document.body.style.paddingRight=`${scrollbarWidth}px`;}// Hide preloader after animation completes (3.45s + 0.8s = 4.25s)\nconst timer=setTimeout(()=>{setIsVisible(false);// Restore body styles without transition to avoid the double padding issue\ndocument.body.style.overflow=originalStyle;document.body.style.position=originalPosition;document.body.style.width=\"\";document.body.style.top=\"\";if(scrollbarWidth>0){document.body.style.paddingRight=\"\";}if(onComplete){onComplete();}},3800);return()=>{clearTimeout(timer);document.body.style.overflow=originalStyle;document.body.style.position=originalPosition;document.body.style.width=\"\";document.body.style.top=\"\";document.body.style.paddingRight=\"\";};}},[autoStart,onComplete]);if(!isVisible&&autoStart){return null;}return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"fixed\",top:0,left:0,width:\"100%\",height:\"100%\",backgroundColor:backgroundColor,display:\"flex\",justifyContent:\"center\",alignItems:\"center\",zIndex:9999,animation:autoStart?\"slideUp 0.8s cubic-bezier(0.44, 0, 0.56, 1) 3.0s forwards\":\"none\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`\n                @keyframes slideUp {\n                    0% {\n                        transform: translateY(0);\n                    }\n                    100% {\n                        transform: translateY(-100%);\n                    }\n                }\n\n                @keyframes appear-tl {\n                    0% {\n                        transform: translate(6px, 6px) scale(0.5);\n                        opacity: 0;\n                    }\n                    100% {\n                        transform: translate(0, 0) scale(1);\n                        opacity: 1;\n                    }\n                }\n\n                @keyframes appear-br {\n                    0% {\n                        transform: translate(-6px, -6px) scale(0.5);\n                        opacity: 0;\n                    }\n                    100% {\n                        transform: translate(0, 0) scale(1);\n                        opacity: 1;\n                    }\n                }\n\n                @keyframes appear-tr {\n                    0% {\n                        transform: translate(-6px, 6px) scale(0.5);\n                        opacity: 0;\n                    }\n                    100% {\n                        transform: translate(0, 0) scale(1);\n                        opacity: 1;\n                    }\n                }\n\n                @keyframes appear-bl {\n                    0% {\n                        transform: translate(6px, -6px) scale(0.5);\n                        opacity: 0;\n                    }\n                    100% {\n                        transform: translate(0, 0) scale(1);\n                        opacity: 1;\n                    }\n                }\n\n                @keyframes fadeOut {\n                    0% {\n                        opacity: 1;\n                        transform: scale(1);\n                    }\n                    100% {\n                        opacity: 0;\n                        transform: scale(1);\n                    }\n                }\n\n                .shape-tl {\n                    animation: appear-tl 0.3s cubic-bezier(0.44, 0, 0.56, 1) forwards, \n                               fadeOut 0.3s cubic-bezier(0.44, 0, 0.56, 1) 1.9s forwards;\n                }\n\n                .shape-br {\n                    animation: appear-br 0.3s cubic-bezier(0.44, 0, 0.56, 1) 0.25s forwards, \n                               fadeOut 0.3s cubic-bezier(0.44, 0, 0.56, 1) 2.15s forwards;\n                }\n\n                .shape-tr {\n                    animation: appear-tr 0.3s cubic-bezier(0.44, 0, 0.56, 1) 0.5s forwards, \n                               fadeOut 0.3s cubic-bezier(0.44, 0, 0.56, 1) 2.40s forwards;\n                }\n\n                .shape-bl {\n                    animation: appear-bl 0.3s cubic-bezier(0.44, 0, 0.56, 1) 0.75s forwards, \n                               fadeOut 0.3s cubic-bezier(0.44, 0, 0.56, 1) 2.65s forwards;\n                }\n            `}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"grid\",gridTemplateColumns:\"100px 100px\",gridTemplateRows:\"100px 100px\",justifyContent:\"center\",alignContent:\"center\",gap:\"12px\",width:\"250px\",height:\"250px\"},children:[/*#__PURE__*/_jsx(\"div\",{className:\"shape-tl\",style:{width:\"100%\",height:\"100%\",opacity:0,backgroundColor:shapeTLColor,borderTopLeftRadius:\"100%\",transformOrigin:\"bottom right\"}}),/*#__PURE__*/_jsx(\"div\",{className:\"shape-tr\",style:{width:\"100%\",height:\"100%\",opacity:0,backgroundColor:shapeTRColor,borderTopRightRadius:\"100%\",transformOrigin:\"bottom left\"}}),/*#__PURE__*/_jsx(\"div\",{className:\"shape-bl\",style:{width:\"100%\",height:\"100%\",opacity:0,backgroundColor:shapeBLColor,borderRadius:\"0\",transformOrigin:\"top right\"}}),/*#__PURE__*/_jsx(\"div\",{className:\"shape-br\",style:{width:\"100%\",height:\"100%\",opacity:0,backgroundColor:shapeBRColor,borderTopRightRadius:\"100%\",transformOrigin:\"top left\"}})]})]});}PreloaderComponent.defaultProps={autoStart:true,backgroundColor:\"#FBF6F1\",shapeTLColor:\"#9D8060\",shapeTRColor:\"#E1A58D\",shapeBLColor:\"#A56450\",shapeBRColor:\"#BF9F76\"};addPropertyControls(PreloaderComponent,{autoStart:{type:ControlType.Boolean,title:\"Auto Start\",defaultValue:true,description:\"Start animation automatically\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FBF6F1\"},shapeTLColor:{type:ControlType.Color,title:\"Top Left\",defaultValue:\"#9D8060\"},shapeTRColor:{type:ControlType.Color,title:\"Top Right\",defaultValue:\"#E1A58D\"},shapeBLColor:{type:ControlType.Color,title:\"Bottom Left\",defaultValue:\"#A56450\"},shapeBRColor:{type:ControlType.Color,title:\"Bottom Right\",defaultValue:\"#BF9F76\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PreloaderComponent\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Preloader_animation.map"],"mappings":"sMAKG,SAAwB,EAAmB,EAAM,CAAC,GAAK,CAAC,YAAU,aAAW,kBAAgB,eAAa,eAAa,eAAa,gBAAc,EAAW,CAAC,EAAU,GAAcA,EAAS,EAAI,EAIkU,OAJhU,MAAc,CAAC,GAAG,EAAU,CACpO,IAAM,EAAc,EAAO,iBAAiB,SAAS,IAAI,CAAC,CAAC,SAAe,EAAiB,EAAO,iBAAiB,SAAS,IAAI,CAAC,CAAC,SAAe,EAAe,EAAO,WAAW,SAAS,gBAAgB,YAAY,SAAS,KAAK,MAAM,SAAS,SAAS,SAAS,KAAK,MAAM,SAAS,QAAQ,SAAS,KAAK,MAAM,MAAM,OAAO,SAAS,KAAK,MAAM,IAAI,IACxV,EAAe,IAAG,SAAS,KAAK,MAAM,aAAa,GAAG,EAAe,KACxE,IAAM,EAAM,eAAe,CAAC,EAAa,EAAK,EAC9C,SAAS,KAAK,MAAM,SAAS,EAAc,SAAS,KAAK,MAAM,SAAS,EAAiB,SAAS,KAAK,MAAM,MAAM,GAAG,SAAS,KAAK,MAAM,IAAI,GAAM,EAAe,IAAG,SAAS,KAAK,MAAM,aAAa,IAAO,GAAY,EAAW,CAAG,EAAE,IAAI,EAAE,UAAU,CAAC,aAAa,CAAK,EAAE,SAAS,KAAK,MAAM,SAAS,EAAc,SAAS,KAAK,MAAM,SAAS,EAAiB,SAAS,KAAK,MAAM,MAAM,GAAG,SAAS,KAAK,MAAM,IAAI,GAAG,SAAS,KAAK,MAAM,aAAa,EAAG,CAAE,CAAC,EAAE,CAAC,EAAU,CAAU,CAAC,EAAK,CAAC,GAAW,EAAkB,KAA0B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