import{u as m,a as M}from"./index.ms17x8jb.js";import{u as c}from"./Map.n9kzrr1n.js";import{C as S}from"./ImageUploader.mhnwnf7g.js";import{C as d}from"./SettingsRow.ea488ybt.js";import"./translations.b896ab1m.js";import{_ as s,a as b}from"./default-i18n.hohxoesu.js";import{w as k,o as _,l as f,m as y,C as g,u as n,M as C,f as h,x as V}from"./runtime-dom.esm-bundler.h3wlw8jh.js";const z={__name:"CustomMarker",setup(x){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=M();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(S),{"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"]))}},A={__name:"DefaultStyle",setup(x){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]=v=>n(o).mapOptions.mapTypeId=v.value),options:r},null,8,["modelValue"])]),_:1},8,["name"])}}};export{z as _,A as a};
