import{u as m,e as S}from"./index.684c656d.js";import{u as c}from"./Map.f091ee74.js";import{C as M}from"./ImageUploader.ad92d358.js";import{C as d}from"./SettingsRow.892a6d38.js";import"./translations.d159963e.js";import{_ as s,s as b}from"./default-i18n.20001971.js";import{m as k,o as _,c as f,w as y,H as g,u as n,A as C,j as h,y as V}from"./runtime-dom.esm-bundler.d8b05b6d.js";const B={__name:"CustomMarker",setup(v){const t="aioseo-pro",{getDataObject:o}=c(),u={customMarker:s("Custom Marker",t),minimumSize:b(s("%1$sThe custom marker should be: 100x100 px.%2$s If the image exceeds those dimensions it could (partially) cover the info popup.",t),"<strong>","</strong>")},r=m(),i=S();return k(()=>o.value.customMarker,l=>{var a,p;const e=C();if(((p=(a=e==null?void 0:e.root)==null?void 0:a.data)==null?void 0:p.screenContext)!=="metabox"){r.options.localBusiness.maps.customMarker=l;return}i.currentPost.local_seo.maps.customMarker=l,i.savePostState()}),(l,e)=>(_(),f(n(d),{name:u.customMarker,align:""},{content:y(()=>[g(n(M),{"img-preview-max-width":"100px","img-preview-max-height":"100px",description:u.minimumSize,modelValue:n(o).customMarker,"onUpdate:modelValue":e[0]||(e[0]=a=>n(o).customMarker=a)},null,8,["description","modelValue"])]),_:1},8,["name"]))}},j={__name:"DefaultStyle",setup(v){const t="aioseo-pro",{getDataObject:o}=c(),u={defaultMapStyle:s("Default Map Style",t)},r=[{label:s("Roadmap",t),value:"roadmap"},{label:s("Hybrid",t),value:"hybrid"},{label:s("Satellite",t),value:"satellite"},{label:s("Terrain",t),value:"terrain"}],i=m(),l=h(()=>o.value.mapOptions.mapTypeId?r.find(e=>e.value===o.value.mapOptions.mapTypeId):r.find(e=>e.value===i.options.localBusiness.maps.mapOptions.mapTypeId));return(e,a)=>{const p=V("base-select");return _(),f(n(d),{name:u.defaultMapStyle},{content:y(()=>[g(p,{size:"medium",modelValue:l.value,"onUpdate:modelValue":a[0]||(a[0]=x=>n(o).mapOptions.mapTypeId=x.value),options:r},null,8,["modelValue"])]),_:1},8,["name"])}}};export{B as _,j as a};
