{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/q5jsx0hgtghOxMvOg0JO/jk5a8nyC17LU2aIxHc7L/Website.js", "ssg:https://framerusercontent.com/modules/pOzlAM2qyEcWxiqV3vYw/5BOk8DNISMA4uaXlW04W/PreviousPage.js", "ssg:https://framer.com/m/framer/store.js@^1.0.0"],
  "sourcesContent": ["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{Frame,addPropertyControls,ControlType}from\"framer\";import{motion}from\"framer-motion\";/**\n * @framerIntrinsicWidth 400\n * @framerIntrinsicHeight 400\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export function WebsiteFrame(props){const[isLoading,setIsLoading]=React.useState(true);const Spinner=/*#__PURE__*/_jsx(motion.div,{style:{borderRadius:\"50%\",width:50,height:50,border:`5px solid ${props.trackColor}`,borderTop:`5px solid ${props.loaderColor}`,boxSizing:\"border-box\"},animate:{rotate:360},transition:{ease:\"linear\",repeat:Infinity,duration:1}});return /*#__PURE__*/_jsxs(Frame,{width:\"100%\",height:\"100%\",background:props.backgroundColor,children:[isLoading&&/*#__PURE__*/_jsx(Frame,{background:\"\",center:true,children:/*#__PURE__*/_jsx(\"div\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",height:\"100%\"},children:Spinner})}),/*#__PURE__*/_jsx(\"iframe\",{src:props.websiteUrl,style:{width:\"100%\",height:\"100%\",border:\"none\"},onLoad:()=>setIsLoading(false)})]});}WebsiteFrame.defaultProps={websiteUrl:\"https://www.example.com\",loaderColor:\"#3498db\",trackColor:\"#e9e9e9\",backgroundColor:\"#fff\"};addPropertyControls(WebsiteFrame,{websiteUrl:{title:\"URL\",type:ControlType.String,defaultValue:\"https://www.example.com\",description:\"Format: https://www... (Not all websites will allow embedding)\"},loaderColor:{title:\"Loader\",type:ControlType.Color,defaultValue:\"#3498db\"},trackColor:{title:\"Spinner BG\",type:ControlType.Color,defaultValue:\"#e9e9e9\"},backgroundColor:{title:\"BG\",type:ControlType.Color,defaultValue:\"#fff\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"WebsiteFrame\":{\"type\":\"reactComponent\",\"name\":\"WebsiteFrame\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"400\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"400\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Website.map", "import{jsx as o}from\"react/jsx-runtime\";// Created by FramerOverrides.com - do not redistribute.\nexport function withGoBack(r){return t=>/*#__PURE__*/o(r,{...t,onClick:()=>{window.history.back();}});}\nexport const __FramerMetadata__ = {\"exports\":{\"withGoBack\":{\"type\":\"reactHoc\",\"name\":\"withGoBack\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PreviousPage.map", "import{useState,useEffect}from\"react\";import{Data,useObserveData}from\"framer\";export function createStore(state1){// Use Data so that a Preview reload resets the state\nconst dataStore=Data({state:Object.freeze({...state1})});// Create a set function that updates the state\nconst setDataStore=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(dataStore.state);}dataStore.state=Object.freeze({...dataStore.state,...newState});};// Store the initial state, copy the object if it's an object\nlet storeState=typeof state1===\"object\"?Object.freeze({...state1}):state1;// Keep a list of all the listeners, in the form of React hook setters\nconst storeSetters=new Set();// Create a set function that updates all the listeners / setters\nconst setStoreState=newState=>{// If the state is an object, make sure we copy it\nif(typeof newState===\"function\"){newState=newState(storeState);}storeState=typeof newState===\"object\"?Object.freeze({...storeState,...newState}):newState;// Update all the listeners / setters with the new value\nstoreSetters.forEach(setter=>setter(storeState));};// Create the actual hook based on everything above\nfunction useStore(){// Create the hook we are going to use as a listener\nconst[state,setState]=useState(storeState);// If we unmount the component using this hook, we need to remove the listener\n// @ts-ignore\nuseEffect(()=>{// But right now, we need to add the listener\nstoreSetters.add(setState);return()=>storeSetters.delete(setState);},[]);// If Data context exists, use Data, otherwise use vanilla React state\nif(useObserveData()===true){useObserveData();return[dataStore.state,setDataStore];}else{// Return the state and a function to update the central store\nreturn[state,setStoreState];}}return useStore;}\nexport const __FramerMetadata__ = {\"exports\":{\"createStore\":{\"type\":\"function\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./createStore.map"],
  "mappings": "sJAMU,SAASA,EAAaC,EAAM,CAAC,GAAK,CAACC,EAAUC,CAAY,EAAQC,EAAS,EAAI,EAAQC,EAAqBC,EAAKC,EAAO,IAAI,CAAC,MAAM,CAAC,aAAa,MAAM,MAAM,GAAG,OAAO,GAAG,OAAO,aAAaN,EAAM,aAAa,UAAU,aAAaA,EAAM,cAAc,UAAU,YAAY,EAAE,QAAQ,CAAC,OAAO,GAAG,EAAE,WAAW,CAAC,KAAK,SAAS,OAAO,IAAS,SAAS,CAAC,CAAC,CAAC,EAAE,OAAoB,EAAMO,EAAM,CAAC,MAAM,OAAO,OAAO,OAAO,WAAWP,EAAM,gBAAgB,SAAS,CAACC,GAAwBI,EAAKE,EAAM,CAAC,WAAW,GAAG,OAAO,GAAK,SAAsBF,EAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,OAAO,WAAW,SAAS,eAAe,SAAS,OAAO,MAAM,EAAE,SAASD,CAAO,CAAC,CAAC,CAAC,EAAeC,EAAK,SAAS,CAAC,IAAIL,EAAM,WAAW,MAAM,CAAC,MAAM,OAAO,OAAO,OAAO,OAAO,MAAM,EAAE,OAAO,IAAIE,EAAa,EAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,CAACH,EAAa,aAAa,CAAC,WAAW,0BAA0B,YAAY,UAAU,WAAW,UAAU,gBAAgB,MAAM,EAAES,EAAoBT,EAAa,CAAC,WAAW,C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,EAAMH,CAAa,CAAG,CAAC,OAAOE,CAAS",
  "names": ["WebsiteFrame", "props", "isLoading", "setIsLoading", "ye", "Spinner", "p", "motion", "Frame", "addPropertyControls", "ControlType", "withGoBack", "r", "t", "p", "window", "createStore", "state1", "dataStore", "Data", "setDataStore", "newState", "storeState", "storeSetters", "setStoreState", "setter", "useStore", "state", "setState", "ye", "ue", "useObserveData"]
}
