{"version":3,"file":"GlowMap.CfVOMl1W.mjs","names":["__esmMin","p","c","init_jsx_runtime","addPropertyControls","ControlType","init_framer_CKT6jEEQ","GlowMap","props","cid","placeCid","pid","placeId","q","query","DEFAULT_QUERY","src","zoom","directions","DEFAULT_NAME","css","warmTone","showCard","cardTitle","cardLine","DEFAULT_CID","DEFAULT_PLACE_ID","init_GlowMap"],"sources":["https:/framerusercontent.com/modules/vFe3eSX7zX0nYBiL9tsw/1cs5Xw6LxYB6JSPLodBX/GlowMap.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";// Glow Works map. \"change the map section on the main page into a google\n// maps thing\" (Nov 2026). A live Google Map of the clinic, with the clinic\n// pinned, softened into the site's warm tones so it sits calmly beside the\n// paper and cream sections. Drag and zoom work as normal. The address card\n// on top links to directions in Google Maps.\n// Nov 2026: \"my actual post code is w1u 6tt\". The default place now uses\n// W1U 6TT.\n// Nov 2026: \"the maps ... is leading to glow with fatima on google\". A text\n// search can land on another business in the same building, so the map and\n// the directions link now point at the exact Google listing for Glow Works\n// Skin Clinic (its CID and place ID). The text search is only a fallback if\n// both IDs are cleared.\nconst DEFAULT_QUERY=\"Glow Works Skin Clinic, 118 Baker Street, London W1U 6TT\";// Google listing: Glow Works Skin Clinic, 3rd floor, 118 Baker St, W1U 6TT\nconst DEFAULT_CID=\"9411374579256607120\";const DEFAULT_PLACE_ID=\"ChIJZz_qrgETdkgRkEG79FDrm4I\";const DEFAULT_NAME=\"Glow Works Skin Clinic\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function GlowMap(props){const{query,placeCid,placeId,zoom,warmTone,showCard,cardTitle,cardLine}=props;const cid=(placeCid||\"\").trim();const pid=(placeId||\"\").trim();const q=encodeURIComponent(query||DEFAULT_QUERY);const src=cid?`https://maps.google.com/maps?cid=${cid}&z=${zoom}&hl=en-GB&output=embed`:`https://www.google.com/maps?q=${q}&z=${zoom}&hl=en-GB&output=embed`;const directions=pid?`https://www.google.com/maps/dir/?api=1&destination=${encodeURIComponent(DEFAULT_NAME)}&destination_place_id=${pid}`:cid?`https://www.google.com/maps?cid=${cid}`:`https://www.google.com/maps/dir/?api=1&destination=${q}`;return /*#__PURE__*/_jsxs(\"div\",{className:\"gw-map\",children:[/*#__PURE__*/_jsx(\"style\",{children:css}),/*#__PURE__*/_jsx(\"iframe\",{className:\"gw-map-frame\"+(warmTone?\" warm\":\"\"),src:src,title:\"Map showing Glow Works Skin Clinic, Third floor, 118 Baker Street, Marylebone\",loading:\"lazy\",referrerPolicy:\"no-referrer-when-downgrade\",allowFullScreen:true}),showCard?/*#__PURE__*/_jsxs(\"a\",{className:\"gw-map-card\",href:directions,target:\"_blank\",rel:\"noopener noreferrer\",children:[/*#__PURE__*/_jsx(\"span\",{className:\"gw-map-eyebrow\",children:cardTitle}),/*#__PURE__*/_jsx(\"span\",{className:\"gw-map-line\",children:cardLine}),/*#__PURE__*/_jsx(\"span\",{className:\"gw-map-cta\",children:\"Get directions ↗\"})]}):null]});}GlowMap.defaultProps={query:DEFAULT_QUERY,placeCid:DEFAULT_CID,placeId:DEFAULT_PLACE_ID,zoom:16,warmTone:true,showCard:true,cardTitle:\"Central London\",cardLine:\"Third floor, 118 Baker Street\"};addPropertyControls(GlowMap,{placeCid:{type:ControlType.String,title:\"Google CID\",defaultValue:DEFAULT_CID,description:\"The clinic's exact Google listing. Leave as is.\"},placeId:{type:ControlType.String,title:\"Place ID\",defaultValue:DEFAULT_PLACE_ID},query:{type:ControlType.String,title:\"Fallback search\",defaultValue:DEFAULT_QUERY},zoom:{type:ControlType.Number,title:\"Zoom\",defaultValue:16,min:10,max:20,step:1},warmTone:{type:ControlType.Boolean,title:\"Warm tone\",defaultValue:true},showCard:{type:ControlType.Boolean,title:\"Address card\",defaultValue:true},cardTitle:{type:ControlType.String,title:\"Card label\",defaultValue:\"Central London\",hidden:p=>!p.showCard},cardLine:{type:ControlType.String,title:\"Card address\",defaultValue:\"Third floor, 118 Baker Street\",hidden:p=>!p.showCard}});// Palette: ink #171512, cream #fbf8f2, paper #f4efe7, warm beige #a47c60.\nconst css=`\n.gw-map{position:relative;width:100%;height:100%;min-height:420px;background:#f4efe7;overflow:hidden;font-family:'DM Sans',Arial,sans-serif}\n.gw-map-frame{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}\n.gw-map-frame.warm{filter:grayscale(.55) sepia(.22) saturate(.9) contrast(.96) brightness(1.02)}\n.gw-map-card{position:absolute;left:24px;bottom:24px;display:flex;flex-direction:column;gap:6px;padding:18px 22px;background:rgba(251,248,242,.94);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border:1px solid rgba(23,21,18,.08);border-radius:6px;box-shadow:0 14px 34px rgba(23,21,18,.12);text-decoration:none;color:#171512;transition:transform .4s cubic-bezier(.22,1,.36,1),box-shadow .4s cubic-bezier(.22,1,.36,1)}\n.gw-map-card:hover{transform:translateY(-2px);box-shadow:0 18px 40px rgba(23,21,18,.16)}\n.gw-map-card:focus-visible{outline:2px solid #a47c60;outline-offset:3px}\n.gw-map-eyebrow{font-size:10px;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:#a47c60}\n.gw-map-line{font-family:'Noto Serif Display',Georgia,serif;font-size:20px;line-height:1.2;letter-spacing:-.02em}\n.gw-map-cta{margin-top:4px;font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;text-decoration:underline;text-underline-offset:4px;text-decoration-color:#a47c60}\n@media(max-width:600px){.gw-map{min-height:360px}.gw-map-card{left:14px;right:14px;bottom:14px}}\n`;\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GlowMap\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GlowMap.map"],"mappings":"A,m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