{"version":3,"file":"MapEmbed.B7w9LSR1.mjs","names":["__esmMin","init_jsx_runtime","c","p","addPropertyControls","ControlType","init_framer_CaDWdxiz","MapEmbed","props","src","query","zoom","style","CSS","title","init_MapEmbed"],"sources":["https:/framerusercontent.com/modules/wsighErq6TynJIgMOr8W/tcAWl4XzPWdXiSUCSpsX/MapEmbed.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const CSS=`\n.goof-map{container-type:inline-size;width:100%}\n.goof-map__frame{position:relative;width:100%;aspect-ratio:4/3;overflow:hidden;background:rgba(56,52,55,.06)}\n@container (min-width:420px){.goof-map__frame{aspect-ratio:3/2}}\n.goof-map__frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}\n`;/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 520\n */export default function MapEmbed(props){const{query,title,zoom,style}=props;const src=`https://maps.google.com/maps?q=${encodeURIComponent(query||\"\")}&z=${Math.round(zoom||15)}&output=embed`;return /*#__PURE__*/_jsxs(\"div\",{className:\"goof-map\",style:{...style,height:\"auto\"},children:[/*#__PURE__*/_jsx(\"style\",{suppressHydrationWarning:true,dangerouslySetInnerHTML:{__html:CSS}}),/*#__PURE__*/_jsx(\"div\",{className:\"goof-map__frame\",children:/*#__PURE__*/_jsx(\"iframe\",{src:src,title:title||query,loading:\"lazy\",referrerPolicy:\"no-referrer-when-downgrade\",allowFullScreen:true})})]});}MapEmbed.defaultProps={query:\"goof.Base\",title:\"goof.Base の地図\",zoom:15};addPropertyControls(MapEmbed,{query:{type:ControlType.String,title:\"Query\"},title:{type:ControlType.String,title:\"Title\"},zoom:{type:ControlType.Number,title:\"Zoom\",min:1,max:20,step:1}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"MapEmbed\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicWidth\":\"520\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./MapEmbed.map"],"mappings":"A,mKASG,SAAwBO,EAAS,EAAM,CAAC,GAAK,CAAC,QAAM,QAAM,OAAK,SAAOC,EAAYC,EAAI,kCAAkC,mBAAmBC,GAAO,EAAE,EAAE,KAAK,KAAK,MAAMC,GAAM,EAAE,EAAE,eAAe,MAAoB,gBAAM,MAAM,CAAC,UAAU,WAAW,MAAM,CAAC,GAAGC,EAAM,OAAO,MAAM,EAAE,SAAS,CAAc,gBAAK,QAAQ,CAAC,yBAAyB,GAAK,wBAAwB,CAAC,OAAOC,CAAG,CAAC,CAAC,EAAe,gBAAK,MAAM,CAAC,UAAU,kBAAkB,SAAsB,gBAAK,SAAS,CAAK,MAAI,MAAMC,GAAOJ,EAAM,QAAQ,OAAO,eAAe,6BAA6B,gBAAgB,EAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,C,4CAT1d,EAAI;;;;;EASud,EAAS,aAAa,CAAC,MAAM,YAAY,MAAM,gBAAgB,KAAK,EAAE,EAAEN,EAAoBG,EAAS,CAAC,MAAM,CAAC,KAAKF,EAAY,OAAO,MAAM,OAAO,EAAE,MAAM,CAAC,KAAKA,EAAY,OAAO,MAAM,OAAO,EAAE,KAAK,CAAC,KAAKA,EAAY,OAAO,MAAM,OAAO,IAAI,EAAE,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,C"}