{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/Yhl5GfoaCLyVYMxt9u1F/1MxqjgqhetB9myjeuNZO/ProfessionTest.js"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,useEffect}from\"react\";export default function CareerTestForm(){const[isVisible,setIsVisible]=useState(false);const[hasShownForm,setHasShownForm]=useState(false);const[isMobile,setIsMobile]=useState(false);const[scrollDepth,setScrollDepth]=useState(0);useEffect(()=>{const checkMobile=()=>{const mobile=window.innerWidth<=768;setIsMobile(mobile);if(mobile&&!hasShownForm){setTimeout(()=>showExitForm(),45e3);}};checkMobile();window.addEventListener(\"resize\",checkMobile);let inactivityTimer=null;let mouseLeft=false;const handleInactivity=()=>{if(!hasShownForm){showExitForm();}};const resetInactivityTimer=()=>{if(inactivityTimer){clearTimeout(inactivityTimer);}inactivityTimer=setTimeout(handleInactivity,isMobile?6e4:15e3);};const handleInteraction=()=>{resetInactivityTimer();};const handleScroll=()=>{const windowHeight=window.innerHeight;const documentHeight=document.documentElement.scrollHeight-windowHeight;const scrolled=window.scrollY;const newScrollDepth=scrolled/documentHeight*100;setScrollDepth(newScrollDepth);if(isMobile&&newScrollDepth>70&&!hasShownForm){showExitForm();}handleInteraction();};const handleMouseLeave=e=>{if(!isMobile&&(e.clientY<=0||e.clientY>=window.innerHeight)){mouseLeft=true;showExitForm();}};const handleMouseMove=e=>{if(!isMobile&&e.clientY<10&&!mouseLeft){showExitForm();}handleInteraction();};const handleTouchStart=()=>{handleInteraction();};const handleMobileInactivity=()=>{if(isMobile&&!hasShownForm){showExitForm();}};const showExitForm=()=>{if(!hasShownForm){setIsVisible(true);setHasShownForm(true);}};document.addEventListener(\"mouseleave\",handleMouseLeave);document.addEventListener(\"mousemove\",handleMouseMove);document.addEventListener(\"touchstart\",handleTouchStart);document.addEventListener(\"scroll\",handleScroll);resetInactivityTimer();let mobileTimer=null;if(isMobile){mobileTimer=setTimeout(handleMobileInactivity,6e4);}return()=>{window.removeEventListener(\"resize\",checkMobile);document.removeEventListener(\"mouseleave\",handleMouseLeave);document.removeEventListener(\"mousemove\",handleMouseMove);document.removeEventListener(\"touchstart\",handleTouchStart);document.removeEventListener(\"scroll\",handleScroll);if(inactivityTimer)clearTimeout(inactivityTimer);if(mobileTimer)clearTimeout(mobileTimer);};},[hasShownForm,isMobile,scrollDepth]);const handleClose=()=>{setIsVisible(false);};const handleTestStart=()=>{window.location.href=\"https://test.nfactorial.school?utm_source=website-popup&utm_medium=&utm_campaign=\";};if(!isVisible)return null;return /*#__PURE__*/_jsxs(\"div\",{className:\"overlay\",children:[/*#__PURE__*/_jsxs(\"div\",{className:\"modal\",children:[/*#__PURE__*/_jsx(\"button\",{onClick:handleClose,className:\"close-button\",children:\"\\xd7\"}),/*#__PURE__*/_jsxs(\"h2\",{className:\"heading\",children:[\"\u0427\u0435\u043B\u043E\u0432\u0435\u043A \u043C\u0435\u043D\u044F\u0435\u0442 \u0441\u0432\u043E\u044E\",/*#__PURE__*/_jsx(\"span\",{className:\"highlight\",children:\"\u043F\u0440\u043E\u0444\u0435\u0441\u0441\u0438\u044E 7 \u0440\u0430\u0437\"}),\" \u0437\u0430 \u0436\u0438\u0437\u043D\u044C\"]}),/*#__PURE__*/_jsx(\"p\",{className:\"paragraph\",children:\"\u041F\u0440\u043E\u0439\u0434\u0438\u0442\u0435 \u0442\u0435\u0441\u0442 \u043F\u0440\u044F\u043C\u043E \u0441\u0435\u0439\u0447\u0430\u0441 \u0438 \u0443\u0437\u043D\u0430\u0439\u0442\u0435 \u043A\u0430\u043A\u0430\u044F \u043F\u0440\u043E\u0444\u0435\u0441\u0441\u0438\u044F \u0432\u0430\u043C \u043F\u043E\u0434\u043E\u0439\u0434\u0435\u0442 \u0431\u043E\u043B\u044C\u0448\u0435 \u0432\u0441\u0435\u0433\u043E\"}),/*#__PURE__*/_jsxs(\"ul\",{className:\"benefits-list\",children:[/*#__PURE__*/_jsx(\"li\",{className:\"benefit-item\",children:\"\u2713 \u0411\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u0430\u044F \u043A\u0430\u0440\u044C\u0435\u0440\u043D\u0430\u044F \u043A\u043E\u043D\u0441\u0443\u043B\u044C\u0442\u0430\u0446\u0438\u044F\"}),/*#__PURE__*/_jsx(\"li\",{className:\"benefit-item\",children:\"\u2713 \u041C\u043E\u043C\u0435\u043D\u0442\u0430\u043B\u044C\u043D\u044B\u0439 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\"}),/*#__PURE__*/_jsx(\"li\",{className:\"benefit-item\",children:\"\u2713 \u041F\u0435\u0440\u0441\u043E\u043D\u0430\u043B\u044C\u043D\u044B\u0435 \u0440\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0430\u0446\u0438\u0438 \u043F\u043E \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044E\"})]}),/*#__PURE__*/_jsx(\"button\",{onClick:handleTestStart,className:\"submit-button\",children:\"\u041F\u0440\u043E\u0439\u0442\u0438 \u0442\u0435\u0441\u0442 \u0431\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u043E\"}),/*#__PURE__*/_jsx(\"p\",{className:\"guarantee\",children:\"5 \u043C\u0438\u043D\u0443\u0442 \u2022 100% \u043A\u043E\u043D\u0444\u0438\u0434\u0435\u043D\u0446\u0438\u0430\u043B\u044C\u043D\u043E \u2022 \u041C\u0433\u043D\u043E\u0432\u0435\u043D\u043D\u044B\u0439 \u0440\u0435\u0437\u0443\u043B\u044C\u0442\u0430\u0442\"})]}),/*#__PURE__*/_jsx(\"style\",{jsx:true,children:`\n                .overlay {\n                    position: fixed;\n                    top: 0;\n                    left: 0;\n                    right: 0;\n                    bottom: 0;\n                    background-color: rgba(0, 0, 0, 0.5);\n                    display: flex;\n                    justify-content: center;\n                    align-items: center;\n                    z-index: 1000;\n                    padding: 20px;\n                }\n\n                .modal {\n                    background-color: white;\n                    padding: 40px 30px;\n                    border-radius: 12px;\n                    width: 100%;\n                    max-width: 500px;\n                    position: relative;\n                    animation: slideIn 0.3s ease-out;\n                    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);\n                }\n\n                @keyframes slideIn {\n                    from {\n                        transform: translateY(20px);\n                        opacity: 0;\n                    }\n                    to {\n                        transform: translateY(0);\n                        opacity: 1;\n                    }\n                }\n\n                .close-button {\n                    position: absolute;\n                    right: 15px;\n                    top: 15px;\n                    border: none;\n                    background: none;\n                    font-size: 24px;\n                    cursor: pointer;\n                    color: #666;\n                    padding: 5px;\n                    width: 40px;\n                    height: 40px;\n                    display: flex;\n                    align-items: center;\n                    justify-content: center;\n                    transition: color 0.3s ease;\n                }\n\n                .close-button:hover {\n                    color: #333;\n                }\n\n                .heading {\n                    margin-bottom: 40px;\n                    color: #000;\n                    font-size: clamp(24px, 5vw, 36px);\n                    font-family: Inter, sans-serif;\n                    font-weight: bold;\n                    letter-spacing: -0.04em;\n                    line-height: 1.2;\n                    text-align: center;\n                }\n\n                .highlight {\n                    color: #ff4757;\n                    display: block;\n                }\n\n                .paragraph {\n                    margin-bottom: 30px;\n                    color: #333;\n                    font-size: clamp(14px, 4vw, 16px);\n                    font-family: Inter, sans-serif;\n                    letter-spacing: -0.05em;\n                    line-height: 1.4;\n                    text-align: center;\n                }\n\n                .benefits-list {\n                    list-style: none;\n                    padding: 0;\n                    margin: 30px 0;\n                }\n\n                .benefit-item {\n                    font-size: clamp(16px, 4vw, 18px);\n                    font-family: Inter, sans-serif;\n                    color: #333;\n                    margin-bottom: 12px;\n                    display: flex;\n                    align-items: center;\n                    padding-left: 8px;\n                }\n\n                .submit-button {\n                    width: 100%;\n                    padding: clamp(15px, 4vw, 20px);\n                    background-color: #ff4757;\n                    color: white;\n                    border: none;\n                    border-radius: 8px;\n                    cursor: pointer;\n                    font-size: clamp(16px, 4vw, 20px);\n                    font-weight: bold;\n                    font-family: Inter, sans-serif;\n                    transition: transform 0.2s ease, background-color 0.3s ease;\n                    margin-bottom: 20px;\n                }\n\n                .submit-button:hover {\n                    background-color: #ff6b81;\n                    transform: scale(1.02);\n                }\n\n                .submit-button:active {\n                    transform: scale(0.98);\n                }\n\n                .guarantee {\n                    font-size: clamp(12px, 3.5vw, 14px);\n                    color: #666;\n                    text-align: center;\n                    font-family: Inter, sans-serif;\n                    margin: 0;\n                }\n\n                @media (max-width: 768px) {\n                    .modal {\n                        padding: 30px 20px;\n                    }\n\n                    .benefits-list {\n                        margin: 20px 0;\n                    }\n\n                    .benefit-item {\n                        margin-bottom: 10px;\n                    }\n                }\n\n                @media (max-width: 480px) {\n                    .overlay {\n                        padding: 15px;\n                    }\n\n                    .heading {\n                        margin-bottom: 24px;\n                        font-size: 24px;\n                    }\n                    .paragraph{\n                        font-size: 16px;\n                    }\n                }\n            `})]});}\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CareerTestForm\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ProfessionTest.map"],
  "mappings": "uGAA8G,SAARA,GAAiC,CAAC,GAAK,CAACC,EAAUC,CAAY,EAAEC,EAAS,EAAK,EAAO,CAACC,EAAaC,CAAe,EAAEF,EAAS,EAAK,EAAO,CAACG,EAASC,CAAW,EAAEJ,EAAS,EAAK,EAAO,CAACK,EAAYC,CAAc,EAAEN,EAAS,CAAC,EAAEO,EAAU,IAAI,CAAC,IAAMC,EAAY,IAAI,CAAC,IAAMC,EAAOC,EAAO,YAAY,IAAIN,EAAYK,CAAM,EAAKA,GAAQ,CAACR,GAAc,WAAW,IAAIU,EAAa,EAAE,IAAI,CAAG,EAAEH,EAAY,EAAEE,EAAO,iBAAiB,SAASF,CAAW,EAAE,IAAII,EAAgB,KAASC,EAAU,GAAYC,EAAiB,IAAI,CAAKb,GAAcU,EAAa,CAAG,EAAQI,EAAqB,IAAI,CAAIH,GAAiB,aAAaA,CAAe,EAAGA,EAAgB,WAAWE,EAAiBX,EAAS,IAAI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AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,aAgKtnH,CAAC,CAAC,CAAC,CAAC,EAhK2/E,IAgKz/E",
  "names": ["CareerTestForm", "isVisible", "setIsVisible", "ye", "hasShownForm", "setHasShownForm", "isMobile", "setIsMobile", "scrollDepth", "setScrollDepth", "ue", "checkMobile", "mobile", "window", "showExitForm", "inactivityTimer", "mouseLeft", "handleInactivity", "resetInactivityTimer", "handleInteraction", "handleScroll", "windowHeight", "documentHeight", "newScrollDepth", "handleMouseLeave", "e", "handleMouseMove", "handleTouchStart", "handleMobileInactivity", "mobileTimer", "handleClose", "handleTestStart", "u", "p"]
}
