{"version":3,"file":"Route.Bk6tkHfX.mjs","names":[],"sources":["https:/framerusercontent.com/modules/zrDqg3e0900HiqMtdFY5/L5BhusYuQH8n1o8v7cNT/Route.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import Action from\"https://framer.com/m/Action-44B5.js@E92jCFQyoJHfrm0JZpA2\";import{Hotspot}from\"https://framer.com/m/Hotspot-dPTz.js@puxMxBgkJAPzV0v9Jb5r\";/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/developers/components/auto-sizing\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function Route(props){const{triggerOn,src}=props;const postMessage=()=>{if(!src)return;window.parent.postMessage({methodName:\"setRoute\",args:src},\"*\");};useEffect(()=>{triggerOn===\"onAppear\"&&postMessage();},[triggerOn]);return triggerOn===\"onAppear\"?/*#__PURE__*/_jsx(Action,{...props,title:\"Route\"}):/*#__PURE__*/_jsx(Hotspot,{...props,onClick:postMessage});}addPropertyControls(Route,{triggerOn:{title:\"Trigger On\",type:ControlType.Enum,defaultValue:\"onAppear\",options:[\"onAppear\",\"onClick\"],optionTitles:[\"Appear\",\"Click\"]},src:{type:ControlType.String}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Route\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Route.map"],"mappings":"mZAMG,SAAwB,EAAM,EAAM,CAAC,GAAK,CAAC,YAAU,OAAK,EAAY,MAAgB,CAAK,GAAW,EAAO,OAAO,YAAY,CAAC,WAAW,WAAW,KAAK,EAAI,CAAC,IAAI,EAAuE,OAApE,MAAc,CAAC,IAAY,YAAY,GAAa,EAAG,CAAC,EAAU,CAAC,CAAQ,IAAY,WAAwB,EAAK,EAAO,CAAC,GAAG,EAAM,MAAM,QAAQ,CAAC,CAAc,EAAK,EAAQ,CAAC,GAAG,EAAM,QAAQ,EAAY,CAAC,sBAN9U,IAA6B,IAAoD,IAA6E,IAA+E,CAMmG,EAAoB,EAAM,CAAC,UAAU,CAAC,MAAM,aAAa,KAAK,EAAY,KAAK,aAAa,WAAW,QAAQ,CAAC,WAAW,UAAU,CAAC,aAAa,CAAC,SAAS,QAAQ,CAAC,CAAC,IAAI,CAAC,KAAK,EAAY,OAAO,CAAC,CAAC"}