{"version":3,"file":"ResyButton_1.DyEazXlt.mjs","names":[],"sources":["https:/framerusercontent.com/modules/tq2AKIpEcTwwHZQXMHaF/Xjqh6Fp15QWJprFIIyWd/ResyButton_1.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";export function ResyButtonNourishByRT(){// Effect to load the script and initialize the Resy widget after component mounts\nuseEffect(()=>{// Create script element\nconst script=document.createElement(\"script\");script.src=\"https://widgets.resy.com/embed.js\";script.async=true;script.onload=()=>{// Once script is loaded, initialize the Resy button\nresyWidget.addButton(document.getElementById(\"resyButton-PeCH7KflFuE5bxz96qfXD\"),{venueId:96481,apiKey:\"VWw3OrpqnhHZF2adkoDj9XgK32xC6KCG\",replace:true});};// Append the script to the body\ndocument.body.appendChild(script);// Cleanup: remove the script on component unmount\nreturn()=>{document.body.removeChild(script);};},[]);return /*#__PURE__*/_jsx(\"div\",{style:{textAlign:\"center\"},children:/*#__PURE__*/_jsx(\"a\",{href:\"https://resy.com/cities/hamptons-ny/venues/nourish-ny\",id:\"resyButton-PeCH7KflFuE5bxz96qfXD\",title:\"Resy Booking Widget\",alt:\"Book with Resy\",children:\"Book your Nourish reservation on Resy\"})});}\nexport const __FramerMetadata__ = {\"exports\":{\"ResyButtonNourishByRT\":{\"type\":\"reactComponent\",\"name\":\"ResyButtonNourishByRT\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ResyButton_1.map"],"mappings":"kHAAwE,SAAgB,GAAuB,CAK1D,OAJrD,MAAc,CACd,IAAM,EAAO,SAAS,cAAc,QAAQ,EAG5C,MAH8C,GAAO,IAAI,oCAAoC,EAAO,MAAM,GAAK,EAAO,WAAW,CACjI,WAAW,UAAU,SAAS,eAAe,kCAAkC,EAAE,CAAC,QAAQ,MAAM,OAAO,mCAAmC,QAAQ,EAAI,CAAC,CAAE,EACzJ,SAAS,KAAK,YAAY,CAAM,MACtB,CAAC,SAAS,KAAK,YAAY,CAAM,CAAE,CAAE,EAAE,CAAC,CAAC,EAAsB,EAAK,MAAM,CAAC,MAAM,CAAC,UAAU,QAAQ,EAAE,SAAsB,EAAK,IAAI,CAAC,KAAK,wDAAwD,GAAG,mCAAmC,MAAM,sBAAsB,IAAI,iBAAiB,SAAS,uCAAuC,CAAC,CAAC,CAAC,CAAE,iBAL/S,IAA6B"}