{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/oxc4tWyRzt5zVPtQvUWm/ivR01QEM9Ra0H106mEZD/EasterEgg.js"],
  "sourcesContent": ["import{jsx as e}from\"react/jsx-runtime\";import*as t from\"react\";import{addPropertyControls as r,ControlType as i}from\"framer\";/**\n * @framerDisableUnlink\n *\n * @framerIntrinsicWidth 100\n * @framerIntrinsicHeight 100\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */// Function to create the easter egg logic\nfunction n(r){// Convert the word sequence string to an array of characters\nlet i=r.wordSequence.split(\"\"),[n,o]=t.useState([]),d=e1=>{// Convert typed key to lowercase\nlet t=e1.key.toLowerCase(),d=[...n,t];// Check if the typed keys match the word sequence\nif(d.length>i.length&&d.shift(),i.every((e,t)=>e===d[t])){// Check if the redirect URL starts with \"https://\"\nlet e=r.redirectUrl;e.startsWith(\"https://\")||// Add \"https://\" to the beginning of the URL\n(e=\"https://\"+e),r.openInNewTab?window.open(e,\"_blank\"):window.location.href=e;}// Update the state with the typed keys\no(d);};// Render a transparent element with pointer events set to none\nreturn(// Effect to add and remove the event listener\nt.useEffect(()=>(window.addEventListener(\"keydown\",d),()=>{window.removeEventListener(\"keydown\",d);}),[n]),/*#__PURE__*/e(\"div\",{style:{width:\"100%\",height:\"100%\",pointerEvents:\"none\"}}));}// Add property controls for the word sequence, redirect URL, and open in new tab toggle\nr(n,{wordSequence:{title:\"Word\",type:i.String,defaultValue:\"framer\",description:\"Enter one(!) word that will trigger the redirect.\"},redirectUrl:{title:\"URL\",type:i.String,defaultValue:\"framer.university\",description:\"Enter the URL to redirect to when the word is typed.\"},openInNewTab:{title:\"New Tab\",type:i.Boolean,defaultValue:!1,enabledTitle:\"Yes\",disabledTitle:\"No\",description:\"Toggle to open the link in a new tab.\"}});// Export the code component\nexport default n;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"EasterEggRedirect\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"fixed\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerDisableUnlink\":\"*\",\"framerIntrinsicWidth\":\"100\",\"framerIntrinsicHeight\":\"100\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./EasterEgg.map"],
  "mappings": "gJASA,SAASA,EAAEC,EAAE,CACb,IAAIC,EAAED,EAAE,aAAa,MAAM,EAAE,EAAE,CAACD,EAAEG,CAAC,EAAIC,EAAS,CAAC,CAAC,EAAE,EAAEC,GAAI,CAC1D,IAAIC,EAAED,EAAG,IAAI,YAAY,EAAEE,EAAE,CAAC,GAAGP,EAAEM,CAAC,EACpC,GAAGC,EAAE,OAAOL,EAAE,QAAQK,EAAE,MAAM,EAAEL,EAAE,MAAM,CAAC,EAAEI,IAAI,IAAIC,EAAED,CAAC,CAAC,EAAE,CACzD,IAAI,EAAEL,EAAE,YAAY,EAAE,WAAW,UAAU,IAC1C,EAAE,WAAW,GAAGA,EAAE,aAAaO,EAAO,KAAK,EAAE,QAAQ,EAAEA,EAAO,SAAS,KAAK,CAAE,CAC/EL,EAAEI,CAAC,CAAE,EACL,OACEE,EAAU,KAAKD,EAAO,iBAAiB,UAAU,CAAC,EAAE,IAAI,CAACA,EAAO,oBAAoB,UAAU,CAAC,CAAE,GAAG,CAACR,CAAC,CAAC,EAAe,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,cAAc,MAAM,CAAC,CAAC,CAAG,CAC5LU,EAAEV,EAAE,CAAC,aAAa,CAAC,MAAM,OAAO,KAAKW,EAAE,OAAO,aAAa,SAAS,YAAY,mDAAmD,EAAE,YAAY,CAAC,MAAM,MAAM,KAAKA,EAAE,OAAO,aAAa,oBAAoB,YAAY,sDAAsD,EAAE,aAAa,CAAC,MAAM,UAAU,KAAKA,EAAE,QAAQ,aAAa,GAAG,aAAa,MAAM,cAAc,KAAK,YAAY,uCAAuC,CAAC,CAAC,EACza,IAAOC,EAAQZ",
  "names": ["n", "r", "i", "o", "ye", "e1", "t", "d", "window", "ue", "addPropertyControls", "ControlType", "EasterEgg_default"]
}
