{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/Hbc0lxqGSRzFG6uMT9yO/OPmIEDVRw3amYB3GBzWp/GoogleMaps.js", "ssg:https://framerusercontent.com/modules/uwdTewUAYgw2IbMjQfGK/8mb3oRAT4O9D7kgxaLzs/Text_Opacity_Words.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,motion}from\"framer\";import{containerStyles,useRadius,borderRadiusControl}from\"https://framer.com/m/framer/default-utils.js@^0.45.0\";import{useMemo}from\"react\";const coordinatesRegex=/^((?:\\-?|\\+?)?\\d+(?:\\.\\d+)?),\\s*((?:\\-?|\\+?)?\\d+(?:\\.\\d+)?)$/;/**\n * GOOGLE MAPS\n *\n * @framerIntrinsicWidth 600\n * @framerIntrinsicHeight 400\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */ export default function GoogleMaps({coordinates,zoom,style,...props}){const borderRadius=useRadius(props);const[latitude1,longitude1]=useMemo(()=>{var ref;const[,latitude,longitude]=(ref=coordinates.match(coordinatesRegex))!==null&&ref!==void 0?ref:[null,\"\",\"\",];return[latitude,longitude];},[coordinates]);return(/*#__PURE__*/ _jsx(motion.div,{style:{...style,...containerStyles,overflow:\"hidden\",borderRadius},...props,children:/*#__PURE__*/ _jsx(\"iframe\",{style:{height:\"100%\",width:\"100%\",border:0},src:`https://maps.google.com/maps?q=${latitude1},${longitude1}&z=${zoom}&output=embed`})}));};addPropertyControls(GoogleMaps,{coordinates:{type:ControlType.String,title:\"Coordinates\",placeholder:\"52.37588, 4.891295\",defaultValue:\"52.37588, 4.891295\",description:\"GPS coordinates can be found directly in [Google Maps](https://maps.google.com).\"},zoom:{type:ControlType.Number,step:1,min:0,max:25,title:\"Zoom\",defaultValue:15},...borderRadiusControl});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GoogleMaps\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"600\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerIntrinsicHeight\":\"400\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GoogleMaps.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{addPropertyControls,ControlType}from\"framer\";import{motion,useScroll,useTransform}from\"framer-motion\";import{useRef}from\"react\";const EachWord=({word,starting,ending,progress})=>{const ref=useRef();const progressVal=useTransform(progress,[starting,ending],[.1,1]);return /*#__PURE__*/_jsxs(motion.span,{style:{opacity:progressVal},children:[word,\" \"]});};/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/developers/#code-components-auto-sizing\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function Text_Opacity_Words(props){const text=props.text;const words=text.split(\" \");const totalWords=words.length;const ref=useRef(null);const{scrollYProgress}=useScroll({target:ref,offset:[\"start 0.5\",\"start 0.15\"]});return /*#__PURE__*/_jsx(\"p\",{ref:ref,style:{...props.font,color:props.textColor},children:words.map((word,idx)=>{const starting=idx/totalWords;const ending=(idx+1)/totalWords;return /*#__PURE__*/_jsx(EachWord,{word:word,starting:starting,ending:ending,progress:scrollYProgress});})});}addPropertyControls(Text_Opacity_Words,{text:{title:\"Text\",type:ControlType.String,defaultValue:\"Hello\"},font:{type:\"font\",controls:\"extended\"},textColor:{type:ControlType.Color}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Text_Opacity_Words\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Text_Opacity_Words.map"],
  "mappings": "0JAAiP,IAAMA,EAAiB,+D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B,IAAMC,EAAjBD,EAAM,KAAsB,MAAM,GAAG,EAAQE,EAAWD,EAAM,OAAaR,EAAIC,EAAO,IAAI,EAAO,CAAC,gBAAAS,CAAe,EAAEC,EAAU,CAAC,OAAOX,EAAI,OAAO,CAAC,YAAY,YAAY,CAAC,CAAC,EAAE,OAAoBY,EAAK,IAAI,CAAC,IAAIZ,EAAI,MAAM,CAAC,GAAGO,EAAM,KAAK,MAAMA,EAAM,SAAS,EAAE,SAASC,EAAM,IAAI,CAACZ,EAAKiB,IAAM,CAAC,IAAMhB,EAASgB,EAAIJ,EAAiBX,GAAQe,EAAI,GAAGJ,EAAW,OAAoBG,EAAKjB,EAAS,CAAC,KAAKC,EAAK,SAASC,EAAS,OAAOC,EAAO,SAASY,CAAe,CAAC,CAAE,CAAC,CAAC,CAAC,CAAE,CAACI,EAAoBR,EAAmB,CAAC,KAAK,CAAC,MAAM,OAAO,KAAKS,EAAY,OAAO,aAAa,OAAO,EAAE,KAAK,CAAC,KAAK,OAAO,SAAS,UAAU,EAAE,UAAU,CAAC,KAAKA,EAAY,KAAK,CAAC,CAAC",
  "names": ["coordinatesRegex", "GoogleMaps", "coordinates", "zoom", "style", "props", "borderRadius", "useRadius", "latitude1", "longitude1", "se", "ref", "latitude", "longitude", "p", "motion", "containerStyles", "addPropertyControls", "ControlType", "borderRadiusControl", "EachWord", "word", "starting", "ending", "progress", "ref", "pe", "progressVal", "useTransform", "u", "motion", "Text_Opacity_Words", "props", "words", "totalWords", "scrollYProgress", "useScroll", "p", "idx", "addPropertyControls", "ControlType"]
}
