{"version":3,"file":"GuideStay.B3d-x9eT.mjs","names":["__esmMin","p","c","init_jsx_runtime","init_framer_BpuvUAiZ","addPropertyControls","GuideStay","cta","href","props","ext","to","ln","CSS","NAVY","RUST","SUB","RULE","BG","TINT","ORANGE","SERIF","SANS","css","__FramerMetadata__","init_GuideStay","s","v","ControlType","\"exports\"","\"default\"","\"type\"","\"name\"","\"slots\"","\"annotations\"","\"framerIntrinsicWidth\"","\"framerSupportedLayoutWidth\"","\"framerSupportedLayoutHeight\"","\"framerContractVersion\"","\"__FramerMetadata__\""],"sources":["https:/framerusercontent.com/modules/ky1kRp0IsW0SCzE9CVOl/V3amhPnVtoLtvFoqg30w/GuideStay.js"],"sourcesContent":["// GuideStay: the booking prompt in a guide's body. On desktop (1200px and up) the guide's rail carries a sticky booking\n// card (GuideContents), so this block stays out of the way. Below that, where the rail is hidden, it becomes a slim bar\n// fixed to the bottom of the screen: the house, the minutes to the guide's place, and one button. The headline,\n// line and facts props are kept for guides that still use them and for a future inline variant.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const NAVY=\"#0F233B\",RUST=\"#A8551A\",SUB=\"#4A5B6E\",RULE=\"rgba(15,35,59,.16)\",BG=\"#FAFAFA\",TINT=\"#F3F0E9\",ORANGE=\"#F4A259\";const SERIF='\"Playfair Display\",Georgia,serif',SANS='\"Instrument Sans\",system-ui,-apple-system,\"Segoe UI\",sans-serif';const css=s=>s.replace(/~N/g,NAVY).replace(/~R/g,RUST).replace(/~S/g,SUB).replace(/~L/g,RULE).replace(/~B/g,BG).replace(/~T/g,TINT).replace(/~O/g,ORANGE).replace(/~F/g,SERIF).replace(/~A/g,SANS);const slug=s=>s.toLowerCase().replace(/[’']/g,\"\").replace(/&/g,\"and\").replace(/[^a-z0-9]+/g,\"-\").replace(/^-|-$/g,\"\");const href=v=>(typeof v===\"string\"?v:v&&(v.href||v.url||v.path))||\"\";const src=(i,fb=\"\")=>(typeof i===\"string\"?i:i?.src)||fb;const I=p=>/*#__PURE__*/_jsx(\"svg\",{width:p.size||20,height:p.size||20,viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"1.6\",strokeLinecap:\"round\",strokeLinejoin:\"round\",\"aria-hidden\":\"true\",children:p.children});const HOUSE_ICON=/*#__PURE__*/_jsx(I,{size:18,children:/*#__PURE__*/_jsx(\"path\",{d:\"M3 11l9-7 9 7M5 10v10h14V10\"})});const HOUSE=\"https://framerusercontent.com/images/gX9oqaD1VXF9UQhMy23qjvzbcSo.webp\";const CSS=css(\".omgy{width:100%;color:~N;font:400 15px/1.4 ~A;-webkit-font-smoothing:antialiased}\"+\".omgy *{box-sizing:border-box}\"+\".omgy .bar{position:fixed;left:0;right:0;bottom:0;z-index:20;background:~B;border-top:1px solid rgba(15,35,59,.2);box-shadow:0 -8px 24px rgba(15,35,59,.08);padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px)) 20px}\"+\".omgy .in{max-width:760px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:14px}\"+\".omgy .nm{display:block;font:400 19px/1.15 ~F}.omgy .ln{display:block;font-size:12.5px;line-height:1.35;color:~S;margin-top:2px}\"+\".omgy .btn{flex:none;display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 18px;background:~O;color:~N;border-radius:2px;font:600 15px/1 ~A;letter-spacing:0;text-transform:none;text-decoration:none;white-space:nowrap;transition:background-color .18s cubic-bezier(.2,.8,.2,1)}\"+\".omgy .btn:hover{background:#F6B172}.omgy a:focus-visible{outline:2px solid ~R;outline-offset:3px}\"+\"@media (min-width:1200px){.omgy{display:none}}\"+\"@media (max-width:809px){.omgy .bar{display:none}}\");/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 680\n */export default function GuideStay(props){const cta=href(props.ctaUrl);const ext=/^https?:/.test(cta);const to=(props.toName||\"\").split(\"\\xb7\")[0].trim();const ln=props.minutes?props.minutes+(props.mode?\" \"+props.mode:\"\")+(to?\" to \"+to:\"\"):props.fromArea;return /*#__PURE__*/_jsxs(\"aside\",{className:\"omgy\",style:props.style,\"aria-label\":\"Stay at \"+props.fromName,\"data-om-bar-line\":ln||undefined,children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:CSS}}),/*#__PURE__*/_jsx(\"div\",{className:\"bar\",children:/*#__PURE__*/_jsxs(\"div\",{className:\"in\",children:[/*#__PURE__*/_jsxs(\"span\",{children:[/*#__PURE__*/_jsx(\"span\",{className:\"nm\",children:props.fromName}),ln?/*#__PURE__*/_jsx(\"span\",{className:\"ln\",children:ln}):null]}),/*#__PURE__*/_jsx(\"a\",{className:\"btn\",href:cta,...ext?{target:\"_blank\",rel:\"noopener\"}:{},children:props.barLabel||props.ctaLabel})]})})]});}GuideStay.defaultProps={kicker:\"Stay near the oysters\",headline:\"Stay a 15-minute walk from your next dozen\",line:\"Oyster Manor is in Seacrest Beach, 11 to 15 minutes on foot from The Citizen and George's in Alys Beach. It sleeps 10, so the whole table can walk home together.\",ctaLabel:\"Check availability\",barLabel:\"Check dates\",ctaUrl:\"https://www.30a-vacay.com/vacation-rentals/rental/seacrest---oyster-manor/\",linkLabel:\"See the house\",linkUrl:\"/stay\",facts:\"Sleeps 10 \\xb7 4 bedrooms \\xb7 3.5 baths \\xb7 pool and beach wristbands\",fromName:\"Oyster Manor\",fromArea:\"Seacrest Beach\",toName:\"The Citizen \\xb7 George's\",toArea:\"Alys Beach\",minutes:\"11–15 min\",mode:\"on foot\"};addPropertyControls(GuideStay,{barLabel:{type:ControlType.String,title:\"Bar button label\"},ctaUrl:{type:ControlType.String,title:\"Button link (URL)\"},fromName:{type:ControlType.String,title:\"From\"},fromArea:{type:ControlType.String,title:\"From area\"},toName:{type:ControlType.String,title:\"To\"},toArea:{type:ControlType.String,title:\"To area\"},minutes:{type:ControlType.String,title:\"Minutes\"},mode:{type:ControlType.String,title:\"How (on foot…)\"},kicker:{type:ControlType.String,title:\"Kicker (inline)\"},headline:{type:ControlType.String,title:\"Headline (inline)\",displayTextArea:true},line:{type:ControlType.String,title:\"Line (inline)\",displayTextArea:true},ctaLabel:{type:ControlType.String,title:\"Button label (inline)\"},linkLabel:{type:ControlType.String,title:\"Link label\"},linkUrl:{type:ControlType.String,title:\"Link (path)\"},facts:{type:ControlType.String,title:\"Facts line\"},houseImage:{type:ControlType.ResponsiveImage,title:\"House photo\"},toImage:{type:ControlType.ResponsiveImage,title:\"To sketch\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GuideStay\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"680\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GuideStay.map"],"mappings":"A,8JAQG,SAAwBM,EAAU,EAAM,CAAC,IAAMC,EAAIC,EAAKC,EAAM,MAAM,EAAQC,EAAI,WAAW,KAAKH,CAAG,EAAQI,GAAIF,EAAM,QAAQ,GAAA,CAAI,MAAM,GAAM,CAAC,CAAC,EAAE,CAAC,KAAK,EAAQG,EAAGH,EAAM,QAAQA,EAAM,SAASA,EAAM,KAAK,IAAIA,EAAM,KAAK,KAAKE,EAAG,OAAOA,EAAG,IAAIF,EAAM,SAAS,MAAoB,gBAAM,QAAQ,CAAC,UAAU,OAAO,MAAMA,EAAM,MAAM,aAAa,WAAWA,EAAM,SAAS,mBAAmBG,GAAI,IAAA,GAAU,SAAS,CAAc,gBAAK,QAAQ,CAAC,wBAAwB,CAAC,OAAOC,CAAG,CAAC,CAAC,EAAe,gBAAK,MAAM,CAAC,UAAU,MAAM,SAAsB,gBAAM,MAAM,CAAC,UAAU,KAAK,SAAS,CAAc,gBAAM,OAAO,CAAC,SAAS,CAAc,gBAAK,OAAO,CAAC,UAAU,KAAK,SA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