{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/tKIZQiWScxL1P8eKC408/rjwSxRnxXNoPr2dX86U6/Smooth_Scroll.js", "ssg:https://framer.com/m/framer/icon-nullstate.js@0.7.0", "ssg:https://framerusercontent.com/modules/Ma20hU0GGRxLxZphbywl/OSpwWF91FHPVFyQJjMHt/utils.js"],
  "sourcesContent": ["// 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 \u00E7ekince wheele \u00E7ok 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", "import { jsx as _jsx } from \"react/jsx-runtime\";\nimport * as React from \"react\";\nexport const containerStyles = {\n    width: \"100%\",\n    height: \"100%\",\n    display: \"flex\",\n    justifyContent: \"center\",\n    alignItems: \"center\"\n};\nconst nullIconStyle = {\n    minWidth: \"10px\",\n    minHeight: \"10px\",\n    maxWidth: \"20px\",\n    maxHeight: \"20px\",\n    width: \"60%\",\n    height: \"60%\"\n};\nconst emptyStateStyle = {\n    ...containerStyles,\n    borderRadius: 6,\n    background: \"rgba(149, 149, 149, 0.1)\",\n    border: \"1px dashed rgba(149, 149, 149, 0.15)\",\n    color: \"#a5a5a5\",\n    flexDirection: \"column\"\n};\nexport const NullState = /*#__PURE__*/ React.forwardRef((_, ref)=>{\n    return(/*#__PURE__*/ _jsx(\"div\", {\n        style: emptyStateStyle,\n        ref: ref\n    }));\n}) /*\n\n<svg\n                xmlns=\"http://www.w3.org/2000/svg\"\n                viewBox=\"0 0 30 30\"\n                style={nullIconStyle}\n            >\n                <path\n                    d=\"M 12.857 0 C 19.958 0 25.714 5.756 25.714 12.857 C 25.714 19.958 19.958 25.714 12.857 25.714 C 5.756 25.714 0 19.958 0 12.857 C 0 5.756 5.756 0 12.857 0 Z\"\n                    fill=\"#FFFFFF\"\n                ></path>\n                <path\n                    d=\"M 20.357 20.357 L 27.857 27.857\"\n                    fill=\"transparent\"\n                    strokeWidth=\"4.28\"\n                    stroke=\"#FFFFFF\"\n                    strokeLinecap=\"round\"\n                ></path>\n                <g transform=\"translate(9.643 6.429)\">\n                    <path\n                        d=\"M 3.214 12.857 L 3.214 12.857\"\n                        fill=\"transparent\"\n                        strokeWidth=\"3.75\"\n                        stroke=\"currentColor\"\n                        strokeLinecap=\"round\"\n                    ></path>\n                    <path\n                        d=\"M 0 3.214 C 0 1.004 1.843 0 3.214 0 C 4.586 0 6.429 0.603 6.429 3.214 C 6.429 5.826 3.214 5.913 3.214 7.232 C 3.214 8.552 3.214 8.571 3.214 8.571\"\n                        fill=\"transparent\"\n                        strokeWidth=\"3.22\"\n                        stroke=\"currentColor\"\n                        strokeLinecap=\"round\"\n                        strokeLinejoin=\"round\"\n                    ></path>\n                </g>\n            </svg>\n            */ ;\n\nexport const __FramerMetadata__ = {\"exports\":{\"containerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"NullState\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}}}}\n//# sourceMappingURL=./nullstate.map", "import{useMemo}from\"react\";import{ControlType}from\"framer\";/*\n ** ICON UTILS\n ** Pull as much re-usable logic into here as possible\n ** This will make it easier to replace in all icon components\n */ export const containerStyles={width:\"100%\",height:\"100%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\"};export const defaultEvents={onClick:{type:ControlType.EventHandler},onMouseDown:{type:ControlType.EventHandler},onMouseUp:{type:ControlType.EventHandler},onMouseEnter:{type:ControlType.EventHandler},onMouseLeave:{type:ControlType.EventHandler}};const findByArray=(arr,search)=>arr.find(a=>a.toLowerCase().includes(search));export function getIconSelection(iconKeys,selectByList,iconSearch=\"\",iconSelection,lowercaseIconKeyPairs){// gotta get the exact match first THEN find\n// have a set and try to access ?\nif(selectByList)return iconSelection;if(iconSearch==null||(iconSearch===null||iconSearch===void 0?void 0:iconSearch.length)===0)return null;const iconSearchTerm=iconSearch.toLowerCase().replace(/-|\\s/g,\"\");var _iconSearchTerm;// check for exact match, otherwise use .find\nconst searchResult=(_iconSearchTerm=lowercaseIconKeyPairs[iconSearchTerm])!==null&&_iconSearchTerm!==void 0?_iconSearchTerm:findByArray(iconKeys,iconSearchTerm);return searchResult;}export function useIconSelection(iconKeys,selectByList,iconSearch=\"\",iconSelection,lowercaseIconKeyPairs){// Clean search term\nconst iconSearchResult=useMemo(()=>{if(iconSearch==null||(iconSearch===null||iconSearch===void 0?void 0:iconSearch.length)===0)return null;const iconSearchTerm=iconSearch.toLowerCase().replace(/-|\\s/g,\"\");var _iconSearchTerm;// check for exact match, otherwise use .find\nconst searchResult=(_iconSearchTerm=lowercaseIconKeyPairs[iconSearchTerm])!==null&&_iconSearchTerm!==void 0?_iconSearchTerm:findByArray(iconKeys,iconSearchTerm);return searchResult;},[iconSelection,iconSearch]);const name=selectByList?iconSelection:iconSearchResult;return name;}\nexport const __FramerMetadata__ = {\"exports\":{\"getIconSelection\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"containerStyles\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"useIconSelection\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"defaultEvents\":{\"type\":\"variable\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./utils.map"],
  "mappings": "8JAWkB,SAARA,EAA+BC,EAAM,CAG/C,OAAAC,EAAU,IAAI,CAAiD,GAAhD,WAAW,UAAU,CAACC,EAAO,SAAS,EAAE,CAAC,CAAE,EAAE,CAAC,EAAK,OAAO,SAAW,KAAa,OAAOA,EAAS,MAAiB,SAAS,cAAc,YAAY,IAAG,SAAS,cAAc,UAAU,EAAE,MAAM,QA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ue", "window", "loadJS", "FILE_URL", "async", "scriptEle", "setupLenis", "ev", "event", "t", "raf", "time", "u", "p", "addPropertyControls", "ControlType", "containerStyles", "emptyStateStyle", "containerStyles", "NullState", "Y", "_", "ref", "p", "defaultEvents", "ControlType", "findByArray", "arr", "search", "a", "getIconSelection", "iconKeys", "selectByList", "iconSearch", "iconSelection", "lowercaseIconKeyPairs", "iconSearchTerm", "_iconSearchTerm", "useIconSelection", "iconSearchResult", "se"]
}
