import{a as u,g as f,i as v,aH as w,H as g,j as a,_ as o,f as b,bG as M}from"./main-634.js";import{F as t}from"./bf-767-388.js";import{S}from"./bf-982-242.js";import"./bf-25-81.js";import"./bf-497-246.js";import"./bf-641-107.js";import"./bf-400-72.js";import"./bf-438-114.js";const _=[{value:"none",label:"None"},{value:"preview",label:"Preview"},{value:"interactive",label:"Interactive"}];function E(){var d;const{css:l}=u(),{fieldKey:s}=f(),[i,c]=v(w);if(!s)return null;const r=g(i[s]),p=((d=r.config)==null?void 0:d.showMap)||"none",m=({target:{value:e}})=>{const n=b(i,h=>{h[s].config.showMap=e});c(n),M({event:`Show map set to '${e}': ${r.lbl||s}`,type:"address_show_map_changed",state:{fields:n,fldKey:s}})};return a.jsx(S,{id:"addr-show-map-stng",title:o("Show Map"),className:l(t.fieldSection,t.hover_tip),tip:o("Embed a Google Map below the address fields. Preview shows the selected location; Interactive lets users click or drag the pin to set the address."),isPro:!0,children:a.jsx("div",{className:l(t.placeholder),children:a.jsx("select",{"data-testid":"addr-show-map-slct",className:l(t.input),"aria-label":o("Map mode"),value:p,onChange:m,children:_.map(e=>a.jsx("option",{value:e.value,children:e.label},e.value))})})})}export{E as default};
