{"version":3,"file":"GuideBestFor.DdocGlws.mjs","names":["__esmMin","p","c","init_jsx_runtime","init_framer_BpuvUAiZ","addPropertyControls","GuideBestFor","items","props","x","slug","CSS","rich","im","src","NAVY","RUST","SUB","RULE","BG","TINT","SERIF","SANS","css","__FramerMetadata__","init_GuideBestFor","s","re","out","last","m","k","t","ext","i","ControlType","\"exports\"","\"default\"","\"type\"","\"name\"","\"slots\"","\"annotations\"","\"framerContractVersion\"","\"framerSupportedLayoutHeight\"","\"framerIntrinsicWidth\"","\"framerSupportedLayoutWidth\"","\"__FramerMetadata__\""],"sources":["https:/framerusercontent.com/modules/rAkxoHI5CUw1h5D2rEd5/fhQs6iYb1wmWECvFdE9J/GuideBestFor.js"],"sourcesContent":["// GuideBestFor: a short \"pick by\" list in a guide's body (\"Leave it at home\", \"Who sleeps where\"). Type only: a small\n// label, a name and one line per item, in as many columns as fit, divided by hairlines. A name can link down to the\n// entry with the same name. An item shows a picture only when the guide gives it a real one. Can be hidden.\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\";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(/~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))||\"\";// 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 src=i=>(typeof i===\"string\"?i:i?.src)||\"\";const CSS=css(\".omgb{container-type:inline-size;width:100%;color:~N;font:400 16px/1.5 ~A;-webkit-font-smoothing:antialiased;font-variant-numeric:lining-nums;padding:40px 0;scroll-margin-top:110px}\"+\".omgb *{box-sizing:border-box}\"+\".omgb h2{font:400 clamp(30px,6cqi,40px)/1.1 ~F;letter-spacing:-.012em;margin:0 0 10px;text-wrap:balance}\"+\".omgb .lead{margin:0 0 4px;font:italic 400 19px/1.45 ~F;color:~S;max-width:52ch}\"+\".omgb .lead a,.omgb a.go{color:~N;text-decoration:underline;text-underline-offset:3px}\"+\".omgb a.go{display:inline-block;margin-top:18px;font-weight:600;text-decoration-thickness:1.5px;text-underline-offset:5px}\"+\".omgb a:focus-visible{outline:2px solid ~R;outline-offset:3px}\"+\".omgb ul{list-style:none;margin:24px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:0 32px;border-bottom:1px solid ~L}\"+\".omgb li{padding:16px 0 18px;border-top:1px solid ~L;display:grid;gap:3px;align-content:start}\"+\".omgb .art{display:block;width:100%;max-width:140px;height:auto;margin:0 0 10px}\"+\".omgb .st{font-size:13px;line-height:1.35;color:~S}\"+\".omgb .pl{font:400 20px/1.3 ~F;color:~N;text-decoration:none}\"+\".omgb a.pl:hover{text-decoration:underline;text-underline-offset:4px}\"+\".omgb .tx{font-size:14.5px;line-height:1.5;color:~S}\");/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 680\n */export default function GuideBestFor(props){const items=(props.items||[]).filter(x=>x&&x.name);if(props.hidden)return /*#__PURE__*/_jsx(\"div\",{style:{display:\"none\"}});return /*#__PURE__*/_jsxs(\"section\",{className:\"omgb\",id:slug(props.anchor||props.heading||\"\"),style:props.style,\"aria-labelledby\":\"omgb-h\",children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:CSS}}),/*#__PURE__*/_jsx(\"h2\",{id:\"omgb-h\",children:props.heading}),props.lead?/*#__PURE__*/_jsx(\"p\",{className:\"lead\",children:rich(props.lead)}):null,/*#__PURE__*/_jsx(\"ul\",{children:items.map((x,i)=>{const im=src(x.image);return /*#__PURE__*/_jsxs(\"li\",{children:[im?/*#__PURE__*/_jsx(\"img\",{className:\"art\",src:im,alt:\"\",loading:\"lazy\"}):null,x.label?/*#__PURE__*/_jsx(\"span\",{className:\"st\",children:x.label}):null,props.linkNames?/*#__PURE__*/_jsx(\"a\",{className:\"pl\",href:\"#\"+slug(x.name),children:x.name}):/*#__PURE__*/_jsx(\"span\",{className:\"pl\",children:x.name}),x.text?/*#__PURE__*/_jsx(\"span\",{className:\"tx\",children:x.text}):null]},i);})}),props.linkLabel&&props.linkUrl?/*#__PURE__*/_jsx(\"a\",{className:\"go\",href:props.linkUrl,children:props.linkLabel}):null]});}GuideBestFor.defaultProps={heading:\"Which oysters, where\",anchor:\"\",lead:\"\",linkLabel:\"\",linkUrl:\"\",linkNames:true,hidden:false,items:[{label:\"Chargrilled\",name:\"Shunk Gulley\",text:\"The Meyer lemon garlic Parmesan oysters.\"}]};addPropertyControls(GuideBestFor,{heading:{type:ControlType.String,title:\"Heading\"},anchor:{type:ControlType.String,title:\"Anchor (rail label)\"},lead:{type:ControlType.String,title:\"Intro\",displayTextArea:true},items:{type:ControlType.Array,title:\"Cards\",control:{type:ControlType.Object,controls:{label:{type:ControlType.String,title:\"Small label\"},name:{type:ControlType.String,title:\"Name\"},text:{type:ControlType.String,title:\"Line\"},image:{type:ControlType.ResponsiveImage,title:\"Picture (optional)\"}}}},linkNames:{type:ControlType.Boolean,title:\"Names link to entries\"},hidden:{type:ControlType.Boolean,title:\"Hide block\"},linkLabel:{type:ControlType.String,title:\"Link label\"},linkUrl:{type:ControlType.String,title:\"Link (path)\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GuideBestFor\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicWidth\":\"680\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GuideBestFor.map"],"mappings":"A,8JAQG,SAAwBM,EAAa,EAAM,CAAC,IAAMC,GAAOC,EAAM,OAAO,CAAC,EAAA,CAAG,OAAO,GAAGC,GAAGA,EAAE,IAAI,EAA2E,OAAtED,EAAM,OAA2B,gBAAK,MAAM,CAAC,MAAM,CAAC,QAAQ,MAAM,CAAC,CAAC,EAAsB,gBAAM,UAAU,CAAC,UAAU,OAAO,GAAGE,EAAKF,EAAM,QAAQA,EAAM,SAAS,EAAE,EAAE,MAAMA,EAAM,MAAM,kBAAkB,SAAS,SAAS,CAAc,gBAAK,QAAQ,CAAC,wBAAwB,CAAC,OAAOG,CAAG,CAAC,CAAC,EAAe,gBAAK,KAAK,CAAC,GAAG,SAAS,SAASH,EAAM,OAAO,CAAC,EAAEA,EAAM,KAAkB,gBAAK,IAAI,CAAC,UAAU,OAAO,SAASI,EAAKJ,EAAM,IAAI,CAAC,CAAC,EAAE,KAAkB,gBAAK,KAAK,CAAC,SAASD,EAAM,KAAK,EAAE,IAAI,CAAC,IAAMM,EAAGC,EAAIL,EAAE,KAAK,EAAE,MAAoB,gBAAM,KAAK,CAAC,SAAS,CAACI,EAAgB,gBAAK,MAAM,CAAC,UAAU,MAAM,IAAIA,EAAG,IAAI,GAAG,QAAQ,MAAM,CAAC,EAAE,KAAKJ,EAAE,MAAmB,gBAAK,OAAO,CAAC,UAA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