{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/n6kqrWYr3JpwScvFZLzb/ZftRcWRADS50U4DBJO5u/TripsterWidget.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/developers/components/auto-sizing\n *\n * framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function TripsterWidget({city,query}){useEffect(()=>{// Create the script element\nconst script=document.createElement(\"script\");script.id=\"tripster-widget-153510\";script.src=`https://experience.tripster.ru/partner/widget.js?city=${encodeURIComponent(city)}&q=${encodeURIComponent(query)}&view=experience&template=horizontal&mobile=list&order=top&width=100%25&num=3&version=2&partner=ingry&features=notitle%2Cprice&script_id=tripster-widget-153510`;script.async=true;// Append the script to the container\nconst container=document.getElementById(\"tripster-widget-container\");container.appendChild(script);// Clean up the previous script when the city or query changes\nreturn()=>{container.innerHTML=\"\"// Clear the container\n;};},[city,query]);return /*#__PURE__*/_jsx(\"div\",{style:containerStyle,id:\"tripster-widget-container\"});}// Styles are written in object syntax\nconst containerStyle={height:\"100%\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",overflow:\"hidden\",width:\"100%\"};// Expose properties for Framer\naddPropertyControls(TripsterWidget,{city:{type:ControlType.String,title:\"City\",defaultValue:\"Saint_Petersburg\",placeholder:\"Enter city\"},query:{type:ControlType.String,title:\"Query\",defaultValue:\"\u0430\u043D\u0438\u0447\u043A\u043E\u0432 \u043C\u043E\u0441\u0442\",placeholder:\"Enter query\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TripsterWidget\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TripsterWidget.map"],
  "mappings": "gGAMkB,SAARA,EAAgC,CAAC,KAAAC,EAAK,MAAAC,CAAK,EAAE,CAAC,OAAAC,EAAU,IAAI,CACtE,IAAMC,EAAO,SAAS,cAAc,QAAQ,EAAEA,EAAO,GAAG,yBAAyBA,EAAO,IAAI,yDAAyD,mBAAmBH,CAAI,CAAC,MAAM,mBAAmBC,CAAK,CAAC,kKAAkKE,EAAO,MAAM,GAC3X,IAAMC,EAAU,SAAS,eAAe,2BAA2B,EAAE,OAAAA,EAAU,YAAYD,CAAM,EAC3F,IAAI,CAACC,EAAU,UAAU,EAC9B,CAAE,EAAE,CAACJ,EAAKC,CAAK,CAAC,EAAsBI,EAAK,MAAM,CAAC,MAAMC,EAAe,GAAG,2BAA2B,CAAC,CAAE,CACzG,IAAMA,EAAe,CAAC,OAAO,OAAO,QAAQ,OAAO,eAAe,SAAS,WAAW,SAAS,SAAS,SAAS,MAAM,MAAM,EAC7HC,EAAoBR,EAAe,CAAC,KAAK,CAAC,KAAKS,EAAY,OAAO,MAAM,OAAO,aAAa,mBAAmB,YAAY,YAAY,EAAE,MAAM,CAAC,KAAKA,EAAY,OAAO,MAAM,QAAQ,aAAa,sEAAe,YAAY,aAAa,CAAC,CAAC",
  "names": ["TripsterWidget", "city", "query", "ue", "script", "container", "p", "containerStyle", "addPropertyControls", "ControlType"]
}
