import{a as i,u as S}from"./app-core.a6d808ce.js";import{u as m}from"./Map.cf57f35b.js";import{C as M}from"./ImageUploader.99c346e9.js";import{C as c}from"./SettingsRow.0c329e43.js";import{a as b,_ as a}from"./vendor-other.7b559694.js";import{w as k,g as C,f as d,Q as _,R as f,a0 as g,v as s,aq as h,u as V}from"./vendor-vue-ui.de3ab35f.js";const B={__name:"CustomMarker",setup(y){const e="aioseo-pro",{getDataObject:o}=m(),l={customMarker:a("Custom Marker",e),minimumSize:b(a("%1$sThe custom marker should be: 100x100 px.%2$s If the image exceeds those dimensions it could (partially) cover the info popup.",e),"<strong>","</strong>")},n=i(),p=S();return k(()=>o.value.customMarker,r=>{if(C()?.root?.data?.screenContext!=="metabox"){n.options.localBusiness.maps.customMarker=r;return}p.currentPost.local_seo.maps.customMarker=r,p.savePostState()}),(r,t)=>(d(),_(s(c),{name:l.customMarker,align:""},{content:f(()=>[g(s(M),{"img-preview-max-width":"100px","img-preview-max-height":"100px",description:l.minimumSize,modelValue:s(o).customMarker,"onUpdate:modelValue":t[0]||(t[0]=u=>s(o).customMarker=u)},null,8,["description","modelValue"])]),_:1},8,["name"]))}},R={__name:"DefaultStyle",setup(y){const e="aioseo-pro",{getDataObject:o}=m(),l={defaultMapStyle:a("Default Map Style",e)},n=[{label:a("Roadmap",e),value:"roadmap"},{label:a("Hybrid",e),value:"hybrid"},{label:a("Satellite",e),value:"satellite"},{label:a("Terrain",e),value:"terrain"}],p=i(),r=V(()=>o.value.mapOptions.mapTypeId?n.find(t=>t.value===o.value.mapOptions.mapTypeId):n.find(t=>t.value===p.options.localBusiness.maps.mapOptions.mapTypeId));return(t,u)=>{const v=h("base-select");return d(),_(s(c),{name:l.defaultMapStyle},{content:f(()=>[g(v,{size:"medium",modelValue:r.value,"onUpdate:modelValue":u[0]||(u[0]=x=>s(o).mapOptions.mapTypeId=x.value),options:n},null,8,["modelValue"])]),_:1},8,["name"])}}};export{R as _,B as a};
