{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/h2aFBfVU00IDcSvYeI3S/eF00Zr9F2Y8l0mbjJPTa/siteMetadata.js"],
  "sourcesContent": ["// Generated by Framer (f7ce5cf)\nexport default function metadata(params,activeLocale){return{customHTMLBodyEnd:\"<script>var d=document,w=\\\"https://tally.so/widgets/embed.js\\\",v=function(){\\\"undefined\\\"!=typeof Tally?Tally.loadEmbeds():d.querySelectorAll(\\\"iframe[data-tally-src]:not([src])\\\").forEach((function(e){e.src=e.dataset.tallySrc}))};if(\\\"undefined\\\"!=typeof Tally)v();else if(d.querySelector('script[src=\\\"'+w+'\\\"]')==null){var s=d.createElement(\\\"script\\\");s.src=w,s.onload=v,s.onerror=v,d.body.appendChild(s);}</script>\\n\\n<script type=\\\"text/javascript\\\" src=\\\"https://cdn.jsdelivr.net/npm/toastify-js\\\"></script>\\n\\n<script>\\n    const timeouts = [];\\n    // Save the original pushState method\\n    const originalPushState = history.pushState;\\n\\n    // Override pushState\\n    history.pushState = function(state, title, url) {\\n    // Call the original pushState method\\n    originalPushState.apply(history, arguments);\\n\\n    // Dispatch a custom event or handle the state change\\n    window.dispatchEvent(new Event('pushStateChange'));\\n    };\\n\\n    function resetTimeouts() {\\n        timeouts.forEach(clearTimeout);\\n        timeouts.length = 0; // Leere das Array, um die Referenzen zu entfernen\\n    }\\n\\n    async function fetchActions() {\\n        try {\\n            const response = await fetch(\\\"https://n8n.selectcode.dev/webhook/6e0df91d-6691-4dae-95a2-00da32623f73\\\");\\n            const data = await response.json();\\n            if (Array.isArray(data)) {\\n                filterAndQueueToasts(data);\\n            }\\n        } catch (error) {\\n            console.error(\\\"Error fetching actions:\\\", error);\\n        }\\n    }\\n\\nfunction filterAndQueueToasts(actions) {\\n    const currentUrlPath = window.location.pathname;\\n\\n    resetTimeouts();\\n    \\n    // Filter actions based on URL regex\\n    const filteredActions = actions.filter(action => {\\n        if (!action.show_at_url_path_regex) return (action.message ? true : false); // Show if no regex is defined\\n        try {\\n            return new RegExp(action.show_at_url_path_regex).test(currentUrlPath);\\n        } catch (error) {\\n            console.warn(`Invalid regex: ${action.show_at_url_path_regex}`, error);\\n            return false;\\n        }\\n    });\\n\\n    // Randomize order and queue toasts\\n    const shuffledActions = filteredActions.sort(() => Math.random() - 0.5);\\n    shuffledActions.forEach((action, index) => {\\n        const delay = Math.floor(Math.random() * (30000 - 10000 + 1)) + 10000; // 5-30 sec delay\\n        timeouts.push(setTimeout(() => showToast(action), delay * index));\\n    });\\n}\\n\\nfunction showToast(action) {\\n    const text = action.message;\\n    const cta = action.cta ? `<a href=\\\"${action.cta.url}\\\" style=\\\"color: #ffffff; font-weight: bold; text-decoration: none;\\\"> ${action.cta.label} </a>` : \\\"\\\";\\n\\n    const toast = Toastify({\\n        text: text + (cta ? ` ${cta}` : \\\"\\\"),\\n        duration: 5000,\\n        close: false,\\n        gravity: \\\"bottom\\\",\\n        position: \\\"left\\\",\\n        backgroundColor: \\\"#E73879\\\",\\n        style: {\\n            fontSize: \\\"16px\\\"\\n        },\\n        stopOnFocus: true,\\n        escapeMarkup: false, // Allow HTML inside the toast\\n        onClick: () => {\\n            posthog.capture('bandwagon_toast_clicked', {\\n                'message': text,\\n                'cta': {\\n                    'text': action.cta.label,\\n                    'target_url': action.cta.url,\\n                }\\n            })\\n            toast.hideToast(); // Hide toast immediately on click\\n            if (action.cta) {\\n                window.location.href = action.cta.url;\\n            }\\n        }\\n    });\\n\\n    toast.showToast();\\n}\\n\\nfunction setInitiatorTimeout() {\\n    resetTimeouts();\\n    timeouts.push(setTimeout(() => {\\n        fetchActions();\\n    }, Math.floor(Math.random() * (5000 - 1500 + 1)) + 1500)); // Delay fetching actions by 5 \\n}\\n\\n// Function to listen for URL changes (SPA support)\\nfunction listenForUrlChanges() {\\n    // Listen to popstate event (history changes)\\n    window.addEventListener('popstate', () => {\\n        //fetchActions(); // Re-fetch actions when the URL changes by user back or forward navigation\\n        setInitiatorTimeout();\\n        \\n        const oldIndex = event.state?.historyIndex || 0;\\n        const newIndex = window.history.state?.historyIndex || 0;\\n        \\n        const direction = newIndex < oldIndex ? 'back' : 'forward';\\n\\n        window.posthog.capture('history_navigation', {\\n            direction: direction\\n        });\\n        \\n        window.posthog.capture('$pageview', {\\n            '$current_url': window.location.href\\n        });\\n\\n        history.replaceState({ historyIndex: newIndex + 1 }, '');\\n    });\\n\\n    window.addEventListener('pushStateChange', () => {\\n        setInitiatorTimeout();\\n        window.posthog.capture(\\n            '$pageview',\\n            {\\n            '$current_url': window.location.href,\\n            }\\n        )\\n    });\\n\\n    // Listen to hash changes (for SPAs that change #fragment)\\n    window.addEventListener('hashchange', () => {\\n        //fetchActions(); // Re-fetch actions when hash changes\\n    });\\n\\n    history.replaceState({ historyIndex: 1 }, '');\\n}\\n\\n// Wait for page being fully loaded\\nwindow.onload = function() {\\n    // Initial fetching of actions\\n    setInitiatorTimeout();\\n\\n};\\n    // Start listening for URL changes in SPA\\n    listenForUrlChanges();\\n\\n\\n// https://posthog.com/docs/libraries/google-tag-manager#using-all-the-features-of-posthog-via-google-tag-manager\\n// (function waitForPosthog() {\\n//     if (window.posthog) {\\n//       window.posthog.capture('posthog_loaded');\\n//     } else {\\n//       setTimeout(waitForPosthog, 100);\\n//     }\\n//   })();\\n</script>\",customHTMLHeadEnd:'<script>\\n    !function(t,e){var o,n,p,r;e.__SV||(window.posthog=e,e._i=[],e.init=function(i,s,a){function g(t,e){var o=e.split(\".\");2==o.length&&(t=t[o[0]],e=o[1]),t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}}(p=t.createElement(\"script\")).type=\"text/javascript\",p.crossOrigin=\"anonymous\",p.async=!0,p.src=s.api_host.replace(\".i.posthog.com\",\"-assets.i.posthog.com\")+\"/static/array.js\",(r=t.getElementsByTagName(\"script\")[0]).parentNode.insertBefore(p,r);var u=e;for(void 0!==a?u=e[a]=[]:a=\"posthog\",u.people=u.people||[],u.toString=function(t){var e=\"posthog\";return\"posthog\"!==a&&(e+=\".\"+a),t||(e+=\" (stub)\"),e},u.people.toString=function(){return u.toString(1)+\".people (stub)\"},o=\"init capture register register_once register_for_session unregister unregister_for_session getFeatureFlag getFeatureFlagPayload isFeatureEnabled reloadFeatureFlags updateEarlyAccessFeatureEnrollment getEarlyAccessFeatures on onFeatureFlags onSessionId getSurveys getActiveMatchingSurveys renderSurvey canRenderSurvey getNextSurveyStep identify setPersonProperties group resetGroups setPersonPropertiesForFlags resetPersonPropertiesForFlags setGroupPropertiesForFlags resetGroupPropertiesForFlags reset get_distinct_id getGroups get_session_id get_session_replay_url alias set_config startSessionRecording stopSessionRecording sessionRecordingStarted captureException loadToolbar get_property getSessionProperty createPersonProfile opt_in_capturing opt_out_capturing has_opted_in_capturing has_opted_out_capturing clear_opt_in_out_capturing debug getPageViewId\".split(\" \"),n=0;n<o.length;n++)g(u,o[n]);e._i.push([i,s,a])},e.__SV=1)}(document,window.posthog||[]);\\n    posthog.init(\\'phc_pAvXYD4tnJwTvBmfmKpTri3cec9dxiL85jL8nHCOMde\\', {\\n        api_host:\\'https://eu.i.posthog.com\\',\\n        person_profiles: \\'identified_only\\', // or \\'always\\' to create profiles for anonymous users as well\\n        persistence: \\'memory\\'\\n    })\\n</script>\\n\\n<link rel=\"stylesheet\" type=\"text/css\" href=\"https://cdn.jsdelivr.net/npm/toastify-js/src/toastify.min.css\">\\n\\n\\n\\n<script defer=\"\" data-domain=\"learn-gpt.com\" src=\"https://trends.selectcode.de/js/script.file-downloads.hash.outbound-links.js\"></script>\\n<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>\\n',description:\"LearnGPT responds to you. It explains everything tailored to you. Learn to use AI like a pro! LearnGPT is an adaptive learning assistant that gives you the chance for a happier work life. \uD83D\uDE0C\",favicon:\"https://framerusercontent.com/assets/7RLQLp8WhulbO5OijsnoB3S2bTo.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/383K3dmlClANER8ubRTQ0h1SN0.png\",title:\"LearnGPT - Learn to use AI with an adaptive learning assistant!\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],
  "mappings": "AACe,SAARA,EAA0BC,EAAOC,EAAa,CAAC,MAAM,CAAC,kBAAkB;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;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,YAAykL,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAwzE,YAAY,wMAAiM,QAAQ,uEAAuE,OAAO,0BAA0B,YAAY,sEAAsE,MAAM,iEAAiE,CAAE",
  "names": ["metadata", "params", "activeLocale"]
}
