{"version":3,"file":"shared-lib.MuSnLUL3.mjs","names":[],"sources":["https:/framerusercontent.com/modules/eQ3vV5jREiEy5vqGJnb4/NbILchKh8D136DOJqYGi/Highlight_text_color.js","https:/framerusercontent.com/modules/tKIZQiWScxL1P8eKC408/rjwSxRnxXNoPr2dX86U6/Smooth_Scroll.js","https:/framerusercontent.com/modules/k0EmWMB8iapOruhmpt9M/kWYHZ9UuTr9HNngnuYWn/siteMetadata.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";// Define the component\nexport default function SelectionColorChanger(props){useEffect(()=>{const style=document.createElement(\"style\");style.type=\"text/css\";style.innerHTML=`::selection { background-color: ${props.selectionColor}; color: ${props.textColor}; }`;document.head.appendChild(style);return()=>{document.head.removeChild(style);};},[props.selectionColor,props.textColor]);// Return an empty div instead of null\nreturn /*#__PURE__*/_jsx(\"div\",{style:{width:\"100%\",height:\"100%\"}});}SelectionColorChanger.displayName=\"Selection Color Changer\";// Add property controls\naddPropertyControls(SelectionColorChanger,{selectionColor:{type:ControlType.Color,title:\"Selection Color\",defaultValue:\"#ffcc00\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"SelectionColorChanger\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Highlight_text_color.map","// Welcome to Code in Framer\n// Get Started: https://www.framer.com/developers/\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";// bazen kuvvetli çekince wheele çok scroll ediyor\n// ona bir max limit eklenebilir\n/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/developers/#code-components-auto-sizing\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n * @framerDisableUnlink\n */export default function Smooth_Scroll(props){// This is a React component containing an Example component\n// - Replace <Example /> with your own code\n// - Find inspiration: https://www.framer.com/developers/\nuseEffect(()=>{setTimeout(function(){window.scrollTo(0,0);},1);if(typeof document!==\"undefined\"&&typeof window!==\"undefined\"){if(!document.querySelector(\"head title\")){document.querySelector(\"#smoothy\").style.display=\"inline-block\";}if(document.querySelector(\"head title\")){loadJS(\"https://cdn.jsdelivr.net/gh/studio-freight/lenis@1.0.29/bundled/lenis.min.js\",true);function loadJS(FILE_URL,async=true){if(typeof Lenis==\"undefined\"){let scriptEle=document.createElement(\"script\");scriptEle.setAttribute(\"src\",FILE_URL);scriptEle.id=\"lenis\";scriptEle.setAttribute(\"type\",\"text/javascript\");scriptEle.setAttribute(\"async\",async);document.body.appendChild(scriptEle);// success event\nscriptEle.addEventListener(\"load\",()=>{//console.log(\"File loaded\")\nsetupLenis();});// error event\nscriptEle.addEventListener(\"error\",ev=>{console.log(\"Error on loading file\",ev);});}else{//console.log(\"lenis already loaded\")\nsetupLenis();}}function setupLenis(){// Listen for the popstate event\nwindow.addEventListener(\"popstate\",function(event){event.preventDefault();//console.log(\"page change\")\n});try{window.lenis.destroy();}catch(e){}setTimeout(function(){window.lenis=new Lenis({lerp:props.lerp,duration:props.duration,easing:t=>Math.min(1,1.001-Math.pow(2,-10*t)),orientation:\"vertical\",gestureOrientation:\"vertical\",smoothWheel:props.smoothWheel,smoothTouch:props.smoothTouch,syncTouch:props.syncTouch,syncTouchLerp:props.syncTouchLerp,touchInertiaMultiplier:props.touchInertiaMultiplier,wheelMultiplier:props.wheelMultiplier,touchMultiplier:props.touchMultiplier,normalizeWheel:props.normalizeWheel,infinite:props.infinite,autoResize:props.autoResize});function raf(time){window.lenis.raf(time);requestAnimationFrame(raf);}requestAnimationFrame(raf);},0);}}}});return /*#__PURE__*/_jsxs(\"div\",{id:\"smoothy\",children:[/*#__PURE__*/_jsx(\"style\",{children:`\nhtml.lenis {\n  height: auto;\n}\n\n.lenis.lenis-smooth {\n  scroll-behavior: auto;\n}\n\n.lenis.lenis-smooth [data-lenis-prevent] {\n  overscroll-behavior: contain;\n}\n\n.lenis.lenis-stopped {\n  overflow: hidden;\n}\n\n.lenis.lenis-scrolling iframe {\n  pointer-events: none;\n}\n\n                #smoothy {\n                    display: none;\n                    background-color: black;\n                    color: white;\n                    font-weight: bold;\n                    text-align: center;\n                    margin: 10px;\n                    padding: 5px;\n                }\n             `}),\"Smooth Scroll\",/*#__PURE__*/_jsx(\"br\",{}),/*#__PURE__*/_jsx(\"small\",{children:\"This will hide itself!\"})]});}/**\n * Created by IntelliJ IDEA.\n *\n * User: phil\n * Date: 15/11/12\n * Time: 11:04 AM\n *\n */// Styles are written in object syntax\n// Learn more: https://reactjs.org/docs/dom-elements.html#style\naddPropertyControls(Smooth_Scroll,{lerp:{type:ControlType.Number,min:.1,max:2,step:.1,defaultValue:.1},duration:{type:ControlType.Number,min:.1,max:5,step:.1,defaultValue:1.2},smoothWheel:{type:ControlType.Boolean,defaultValue:true},smoothTouch:{type:ControlType.Boolean,defaultValue:false},syncTouchLerp:{type:ControlType.Number,min:.1,max:2,step:.1,defaultValue:.1},touchInertiaMultiplier:{type:ControlType.Number,min:1,max:100,step:1,defaultValue:35},wheelMultiplier:{type:ControlType.Number,min:1,max:5,step:1,defaultValue:1},touchMultiplier:{type:ControlType.Number,min:1,max:5,step:1,defaultValue:2},normalizeWheel:{type:ControlType.Boolean,defaultValue:true},infinite:{type:ControlType.Boolean,defaultValue:false},autoResize:{type:ControlType.Boolean,defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Smooth_Scroll\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\",\"framerDisableUnlink\":\"\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Smooth_Scroll.map","// Generated by Framer (99d1409)\nexport default function metadata(params,activeLocale){return{description:\"This is my playground !!\",favicon:\"https://framerusercontent.com/assets/lAUKCzuCjmFwArfJAxgDnF3JU.png\",robots:\"max-image-preview:large\",socialImage:\"https://framerusercontent.com/assets/yC4biCV3ECyTxybVZoj4LE7mQ.jpg\",title:\"Tien Le Portfolio\"};}export const metadataVersion=1;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"metadataVersion\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}"],"mappings":"iTACA,SAAwB,EAAsB,EAAM,CACpD,MADqD,GAAU,IAAI,CAAC,IAAM,EAAM,SAAS,cAAc,QAAQ,CAAgK,OAA/J,EAAM,KAAK,WAAW,EAAM,WAAW,kCAAkC,EAAM,eAAe,WAAW,EAAM,UAAU,KAAK,SAAS,KAAK,YAAY,EAAM,CAAO,IAAI,CAAC,SAAS,KAAK,YAAY,EAAM,AAAE,CAAE,EAAC,CAAC,EAAM,eAAe,EAAM,SAAU,EAAC,CAClV,EAAK,MAAM,CAAC,MAAM,CAAC,MAAM,OAAO,OAAO,MAAO,CAAC,EAAC,AAAE,cACtE,AAHA,GAA2C,IAA6B,IAAoD,CAEtD,EAAsB,YAAY,0BACxG,EAAoB,EAAsB,CAAC,eAAe,CAAC,KAAK,EAAY,MAAM,MAAM,kBAAkB,aAAa,SAAU,EAAC,UAAU,CAAC,KAAK,EAAY,MAAM,MAAM,aAAa,aAAa,SAAU,CAAC,EAAC,GCQ7M,SAAwB,EAAc,EAAM,CASinB,MANhqB,GAAU,IAAI,CAAiD,GAAhD,WAAW,UAAU,CAAC,EAAO,SAAS,EAAE,EAAE,AAAE,EAAC,EAAE,QAAW,SAAW,KAAoB,aAA0B,SAAS,cAAc,aAAa,GAAE,SAAS,cAAc,WAAW,CAAC,MAAM,QAAQ,gBAAmB,SAAS,cAAc,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