| 1 |
import{a as u,g as f,i as v,H as w,j as a,_ as i,f as g,bI as b,b1 as M}from"./main-96.js";import{F as t}from"./bf-460-326.js";import{S}from"./bf-283-176.js";import"./bf-781-46.js";import"./bf-687-180.js";import"./bf-551-68.js";import"./bf-200-43.js";import"./bf-431-60.js";/* empty css */import"./bf-63-62.js";import"./bf-762-63.js";import"./bf-163-182.js";const _=[{value:"none",label:"None"},{value:"preview",label:"Preview"},{value:"interactive",label:"Interactive"}];function D(){var d;const{css:o}=u(),{fieldKey:s}=f(),[l,p]=v(M);if(!s)return null;const r=w(l[s]),c=((d=r.config)==null?void 0:d.showMap)||"none",m=({target:{value:e}})=>{const n=g(l,h=>{h[s].config.showMap=e});p(n),b({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:i("Show Map"),className:o(t.fieldSection,t.hover_tip),tip:i("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:o(t.placeholder),children:a.jsx("select",{"data-testid":"addr-show-map-slct",className:o(t.input),"aria-label":i("Map mode"),value:c,onChange:m,children:_.map(e=>a.jsx("option",{value:e.value,children:e.label},e.value))})})})}export{D as default}; |