{"version":3,"file":"GuideFAQ.CjV2q7Eq.mjs","names":["__esmMin","p","c","init_jsx_runtime","init_framer_BpuvUAiZ","addPropertyControls","GuideFAQ","items","props","x","ld","plain","slug","CSS","i","rich","NAVY","RUST","__FramerMetadata__","init_GuideFAQ","s","re","out","last","m","k","t","ext","ControlType","\"exports\"","\"default\"","\"type\"","\"name\"","\"slots\"","\"annotations\"","\"framerIntrinsicWidth\"","\"framerContractVersion\"","\"framerSupportedLayoutWidth\"","\"framerSupportedLayoutHeight\"","\"__FramerMetadata__\""],"sources":["https:/framerusercontent.com/modules/AyiX6YOjXc4vtXwSE4po/p2LhaHWWq8rAinTOuA1T/GuideFAQ.js"],"sourcesContent":["// GuideFAQ: a guide's questions, embedded in its body. Native details/summary, so every answer is in the page's HTML\n// while closed; the first one opens by default. Also writes FAQPage structured data. Its anchor is \"questions\".\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const NAVY=\"#0F233B\",RUST=\"#A8551A\";const slug=s=>s.toLowerCase().replace(/[’']/g,\"\").replace(/&/g,\"and\").replace(/[^a-z0-9]+/g,\"-\").replace(/^-|-$/g,\"\");// Renders [label](url) links inside plain copy; external links open in a new tab.\nconst rich=s=>{const re=/\\[([^\\]]+)\\]\\(([^)\\s]+)\\)/g,out=[];let last=0,m,k=0;const t=s||\"\";while(m=re.exec(t)){if(m.index>last)out.push(t.slice(last,m.index));const ext=/^https?:/.test(m[2]);out.push(/*#__PURE__*/_jsx(\"a\",{href:m[2],...ext?{target:\"_blank\",rel:\"noopener\"}:{},children:m[1]},k++));last=m.index+m[0].length;}if(last<t.length)out.push(t.slice(last));return out;};const plain=s=>(s||\"\").replace(/\\[([^\\]]+)\\]\\(([^)\\s]+)\\)/g,\"$1\");const CSS=`\n.omgf{--ink:${NAVY};container-type:inline-size;width:100%;color:var(--ink);font:400 17px/1.55 \"Instrument Sans\",system-ui,-apple-system,\"Segoe UI\",sans-serif;-webkit-font-smoothing:antialiased;padding:36px 0;scroll-margin-top:110px}\n.omgf *{box-sizing:border-box}\n.omgf h2{font:400 clamp(30px,6cqi,40px)/1.1 \"Playfair Display\",Georgia,serif;letter-spacing:-.012em;margin:0 0 20px}\n.omgf .list{display:grid;gap:8px}\n.omgf details{background:#F3F0E9;border-radius:10px;padding:0 18px}\n.omgf summary{cursor:pointer;padding:16px 0;font-weight:600;list-style:none;display:flex;justify-content:space-between;gap:16px;min-height:44px;align-items:center}\n.omgf summary::-webkit-details-marker{display:none}\n.omgf summary::after{content:\"+\";font-weight:400;font-size:22px;line-height:1;flex:none}\n.omgf details[open] summary::after{content:\"−\"}\n.omgf summary:focus-visible{outline:2px solid ${RUST};outline-offset:2px;border-radius:6px}\n.omgf details p{margin:0;padding:0 0 18px;max-width:64ch}\n.omgf details p a{color:var(--ink);text-decoration:underline;text-underline-offset:3px}\n.omgf details p a:focus-visible{outline:2px solid ${RUST};outline-offset:2px;border-radius:4px}\n/* Opening motion, the same recipe as the /faq rows: the answer's height eases open (browsers with ::details-content;\n   others snap as before) and its lines rise out of a soft blur one after another. Closing is quicker and plain. */\n.omgf{interpolate-size:allow-keywords}\n.omgf details::details-content{block-size:0;overflow-y:clip;transition:block-size .26s cubic-bezier(.2,.8,.2,1),content-visibility .26s allow-discrete}\n.omgf details[open]::details-content{block-size:auto;transition-duration:.38s}\n.omgf details>p{opacity:0;transform:translateY(6px);filter:blur(2px);transition:opacity .16s ease-out,transform .16s ease-out,filter .16s ease-out}\n.omgf details[open]>p{opacity:1;transform:none;filter:none;transition:opacity .34s cubic-bezier(.2,.8,.2,1),transform .44s cubic-bezier(.2,.8,.2,1),filter .34s cubic-bezier(.2,.8,.2,1);transition-delay:60ms}\n.omgf details[open]>p:nth-child(2){transition-delay:105ms}.omgf details[open]>p:nth-child(3){transition-delay:150ms}.omgf details[open]>p:nth-child(4){transition-delay:195ms}.omgf details[open]>p:nth-child(n+5){transition-delay:240ms}\n@starting-style{.omgf details[open]>p{opacity:0;transform:translateY(6px);filter:blur(2px)}}\n.omgf summary::after{transition:transform .36s cubic-bezier(.2,.8,.2,1)}\n.omgf details[open] summary::after{transform:rotate(180deg)}\n@media (prefers-reduced-motion:reduce){.omgf details::details-content{transition:none}.omgf details>p,.omgf details[open]>p{transform:none;filter:none;transition:opacity .15s ease-out;transition-delay:0s}.omgf summary::after{transition:none}.omgf details[open] summary::after{transform:none}}\n`;/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 680\n */export default function GuideFAQ(props){const items=(props.items||[]).filter(x=>x&&x.q&&x.a);const ld=props.schema&&items.length?JSON.stringify({\"@context\":\"https://schema.org\",\"@type\":\"FAQPage\",mainEntity:items.map(x=>({\"@type\":\"Question\",name:x.q,acceptedAnswer:{\"@type\":\"Answer\",text:plain(x.a)}}))}).replace(/</g,\"\\\\u003c\"):\"\";return /*#__PURE__*/_jsxs(\"section\",{className:\"omgf\",id:slug(props.anchor||\"Questions\"),style:props.style,\"aria-labelledby\":\"omgf-h\",children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:CSS}}),ld?/*#__PURE__*/_jsx(\"script\",{type:\"application/ld+json\",dangerouslySetInnerHTML:{__html:ld}}):null,/*#__PURE__*/_jsx(\"h2\",{id:\"omgf-h\",children:props.heading}),/*#__PURE__*/_jsx(\"div\",{className:\"list\",children:items.map((x,i)=>/*#__PURE__*/_jsxs(\"details\",{open:i===0,children:[/*#__PURE__*/_jsx(\"summary\",{children:x.q}),/*#__PURE__*/_jsx(\"p\",{children:rich(x.a)})]},i))})]});}GuideFAQ.defaultProps={heading:\"Oyster questions\",anchor:\"Questions\",items:[{q:\"Where can I eat oysters within walking distance of Seacrest Beach?\",a:\"In Alys Beach, 11 to 15 minutes on foot from Oyster Manor. The Citizen and George's at Alys Beach both serve oysters.\"}],schema:true};addPropertyControls(GuideFAQ,{heading:{type:ControlType.String,title:\"Heading\"},anchor:{type:ControlType.String,title:\"Anchor (rail label)\"},items:{type:ControlType.Array,title:\"Questions\",control:{type:ControlType.Object,controls:{q:{type:ControlType.String,title:\"Question\"},a:{type:ControlType.String,title:\"Answer\",displayTextArea:true}}}},schema:{type:ControlType.Boolean,title:\"Structured data\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GuideFAQ\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"680\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GuideFAQ.map"],"mappings":"A,8JAiCG,SAAwBM,EAAS,EAAM,CAAC,IAAMC,GAAOC,EAAM,OAAO,CAAC,EAAA,CAAG,OAAO,GAAGC,GAAGA,EAAE,GAAGA,EAAE,CAAC,EAAQC,EAAGF,EAAM,QAAQD,EAAM,OAAO,KAAK,UAAU,CAAC,WAAW,qBAAqB,QAAQ,UAAU,WAAWA,EAAM,IAAI,IAAI,CAAC,QAAQ,WAAW,KAAKE,EAAE,EAAE,eAAe,CAAC,QAAQ,SAAS,KAAKE,EAAMF,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,KAAK,SAAS,EAAE,GAAG,MAAoB,gBAAM,UAAU,CAAC,UAAU,OAAO,GAAGG,EAAKJ,EAAM,QAAQ,WAAW,EAAE,MAAMA,EAAM,MAAM,kBAAkB,SAAS,SAAS,CAAc,gBAAK,QAAQ,CAAC,wBAAwB,CAAC,OAAOK,CAAG,CAAC,CAAC,EAAEH,EAAgB,gBAAK,SAAS,CAAC,KAAK,sBAAsB,wBAAwB,CAAC,OAAOA,CAAE,CAAC,CAAC,EAAE,KAAkB,gBAAK,KAAK,CAAC,GAAG,SAAS,SAASF,EAAM,OAAO,CAAC,EAAe,gBAAK,MAAM,CAAC,UAAU,OAAO,SAASD,EAAM,KAAK,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