import{a as m,u as S}from"./index.6205915e.js";import{u as c}from"./Map.8145ff08.js";import{C as M}from"./ImageUploader.dff7a149.js";import{C as d}from"./SettingsRow.91d13113.js";import"./translations.e71e2202.js";import{_ as s,a as b}from"./default-i18n.65d58dd6.js";import{a2 as k,o as _,c as f,w as y,q as g,u as n,D as C,$ as h,a7 as V}from"./runtime-core.esm-bundler.50cb9e6d.js";const $={__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"]))}},z={__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{$ as _,z as a};
